:root{
  --lav:#6A5ACD;
  --ink:#1F1B2E;
  --gray:#8A8FA3;
  --shadow:0 1px 6px rgba(0,0,0,.05);
  --radius:16px;
  --container: 1200px;
  --gutter: 24px;
}

/* ====== CONTENEUR PRINCIPAL – 1200px max ====== */
.site-container {
  max-width: var(--container);
  width: 100%;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  margin-left: auto;
  margin-right: auto;
}

/* Desktop large : padding fixe, plus aéré */
@media (min-width: 1280px) {
  .site-container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Typo globale */
body{ font-family:"Inter",sans-serif; color:var(--ink); }
h1,h2,h3{
  font-family:"Poppins",sans-serif;
  font-weight:600;
  letter-spacing:-0.3px;
}
.text-gray,.muted{ color:var(--gray); }

/* ====== HEADER – MOBILE + DESKTOP ====== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(135deg, #6A5ACD 0%, #5A4BB8 100%);
  color: #fff;
  backdrop-filter: saturate(130%) blur(12px);
  -webkit-backdrop-filter: saturate(130%) blur(12px);
}

/* MOBILE – PREMIUM + LOCAL */
@media (max-width: 1023px) {
  .site-header {
    padding: 0.4rem 1.25rem;
    gap: 1rem;
  }

  .header-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }

  .header-brand img {
    height: 2.5rem !important;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,.15));
  }

  .mobile-logo {
    height: 3.25rem; 
    filter: drop-shadow(0 1px 2px rgba(0,0,0,.15));
  }

  .header-brand span {
    font-size: 0.875rem;
    line-height: 1.1;
  }

  .header-cta {
    background: #fff !important;
    color: #6A5ACD !important;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.55rem 0.9rem;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(106,90,205,.25);
    transition: all .2s ease;
  }

  .header-cta:hover,
  .header-cta:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(106,90,205,.35);
  }
}

/* Ultra-mobile */
@media (max-width: 375px) {
  .header-brand span { display: none; }
  .header-cta { padding: 0.5rem 0.75rem; font-size: 0.8125rem; }
}

/* DESKTOP – TOP TIER */
@media (min-width: 1024px) {
  /* Bloc 1 : Variables et règles générales */
  :root { --header-h: 76px; }

  .site-header {
    height: var(--header-h);
    box-shadow: 0 1px 0 rgba(255,255,255,.1), 0 4px 12px rgba(0,0,0,.08);
    transition: all .3s ease;
  }

  .site-header:hover {
    box-shadow: 0 1px 0 rgba(255,255,255,.15), 0 8px 20px rgba(0,0,0,.12);
  }

  /* RÈGLE AJOUTÉE : Définition de la taille du logo sur desktop */
  .mobile-logo {
    height: 2.5rem; /* Rétablit la taille standard (40px) sur grand écran */
  }

  /* Bloc 2 : Intégré – Mise en page du conteneur */
  .site-header .site-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem !important; /* ← padding large écran */
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
  }
  
  /* Le reste des règles (header-brand, header-cta, etc.) */
  .header-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform .2s ease;
  }
  .header-brand:hover { transform: translateY(-1px); }

  .header-brand img {
    /* Cette règle devient redondante mais peut rester pour la compatibilité */
    height: 2.5rem !important; 
    filter: drop-shadow(0 1px 2px rgba(0,0,0,.2));
  }

  .header-cta {
    background: #fff !important;
    color: #6A5ACD !important;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.75rem 1.75rem;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(106,90,205,.25);
    transition: all .25s ease;
    position: relative;
    overflow: hidden;
  }

  .header-cta::before {
    content: "";
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.4), transparent);
    transition: left .6s;
  }

  .header-cta:hover::before { left: 100%; }
  .header-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(106,90,205,.35);
  }
}

/* --- HERO --- */
.hero{ position:relative; isolation:isolate; }
.hero::before{
  content:""; position:absolute; inset:0; z-index:-1;
  background:radial-gradient(60% 60% at 80% 10%, rgba(106,90,205,.08), transparent 60%);
}

.h1{ font-size:clamp(2rem,4vw,3.25rem); line-height:1.15; }
.h2{ font-size:clamp(1.75rem,3vw,2.25rem); line-height:1.2; }
.lede{ font-size:clamp(1rem,2.2vw,1.125rem); color:var(--gray); }

.btn-primary{
  display:inline-flex; justify-content:center; align-items:center;
  padding:.75rem 1.25rem; font-weight:600; font-size:.95rem;
  color:#fff; background:var(--lav); border-radius:12px;
  box-shadow:var(--shadow); text-decoration:none;
}
.btn-primary:hover{ opacity:.92; }
.btn-primary:focus-visible{ outline:2px solid var(--lav); outline-offset:2px; }

.btn-ghost{
  display:inline-flex; justify-content:center; align-items:center;
  padding:.75rem 1.25rem; font-weight:600; font-size:.95rem;
  border:1px solid rgba(0,0,0,.1); border-radius:12px; text-decoration:none; color:var(--ink);
}
.btn-ghost:hover{ background:rgba(0,0,0,.04); }

.card{
  border:1px solid rgba(106,90,205,.08);
  border-radius:var(--radius);
  background:linear-gradient(180deg,#fff 0%,#f8f7ff 100%);
  box-shadow:0 4px 10px rgba(31,27,46,.05);
  transition:transform .2s ease, box-shadow .3s ease;
}
.card:hover{
  transform:translateY(-2px);
  box-shadow:0 6px 16px rgba(106,90,205,.15);
}
.card-title{ font-weight:600; color:var(--ink); }
.card-text{ color:var(--gray); font-size:.95rem; margin-top:.25rem; }

/* IMAGES CORRIGÉES – PAS DE DÉFORMATION */
.thumb{
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: top;
  border-radius: 12px;
  display: block;
}

.footer{
  background:linear-gradient(180deg,#f6f4ff 0%, #efeafd 100%);
  text-align:center; padding:2.75rem 1rem;
  border-top:1px solid rgba(0,0,0,.06);
}
.footer p{ color:#6f6c86; font-size:.95rem; letter-spacing:.2px; }
.footer-link{ color:var(--lav); text-decoration:none; font-weight:600; }
.footer-link:hover{ text-decoration:underline; }

.bottom-bar{
  position:fixed; left:0; right:0; bottom:0; z-index:60;
  display:flex; justify-content:space-around; gap:.5rem;
  padding:.6rem clamp(.75rem, 3vw, 1.25rem) calc(.6rem + env(safe-area-inset-bottom)) clamp(.75rem, 3vw, 1.25rem);
  background:rgba(255,255,255,.92);
  backdrop-filter:blur(12px);
  border-top:1px solid rgba(0,0,0,.06);
  box-shadow:0 -6px 22px rgba(31,27,46,.08);
  border-top-left-radius:16px; border-top-right-radius:16px;
}
.bb-item{
  flex:1; min-width:0;
  display:flex; flex-direction:column; align-items:center; gap:.35rem;
  padding:.4rem .5rem; text-decoration:none;
  color:var(--lav); font-weight:600;
  opacity:.92; transition:opacity .2s ease, transform .12s ease;
}
.bb-item svg{ width:22px; height:22px; fill:var(--lav); opacity:.98; }
.bb-item span{ font-size:clamp(.65rem, 2.2vw, .75rem); }
.bb-item:hover{ opacity:1; }
.bb-item:active{ transform:translateY(1px); }
.bb-item[aria-current="page"],
.bb-item.is-active{
  color:#fff;
  background:linear-gradient(180deg,#7a6bf0,#6A5ACD);
  border-radius:14px;
  box-shadow:0 2px 10px rgba(106,90,205,.25);
}
.bb-item[aria-current="page"] svg,
.bb-item.is-active svg{ fill:#fff; }

@media (min-width:1025px){ .bottom-bar{ display:none; } }
@media (max-width:1024px){ body{ padding-bottom:72px; } }

blockquote.card {
  box-shadow: 0 3px 10px rgba(106, 90, 205, 0.08);
  border: none;
  line-height: 1.5;
  font-size: 0.95rem;
  color: var(--ink);
  position: relative;
}
blockquote.card em {
  color: var(--gray);
  font-style: normal;
  display: block;
  margin-top: 0.5rem;
}
@media (max-width: 640px) {
  blockquote.card {
    padding: 1.25rem 1rem;
    font-size: 0.92rem;
  }
}
@media (hover: hover) and (pointer: fine) {
  blockquote.card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }
  blockquote.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(106, 90, 205, 0.15);
  }
}
[aria-label="Atouts"] .card{
  transition: transform .25s ease, box-shadow .25s ease;
}
@media (hover:hover) and (pointer:fine){
  [aria-label="Atouts"] .card:hover{
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(106, 90, 205, 0.15);
  }
}
.h2{ margin-bottom:.35rem; }
.site-container > .muted:first-of-type{ margin-top:.5rem; }
.card p{ line-height:1.6; }
@media (max-width:640px){
  .site-container.py-12{ padding-top:2.5rem; padding-bottom:2.5rem; }
}
.divider{
  height:1px; border:0; margin:2.25rem 0;
  background:linear-gradient(90deg, transparent, rgba(106,90,205,.25), transparent);
}
.btn-ghost:focus-visible,
.footer-link:focus-visible{
  outline:2px solid var(--lav);
  outline-offset:2px;
  border-radius:6px;
}
@media (hover:hover) and (pointer:fine){
  .btn-primary{ transition: transform .15s ease, box-shadow .2s ease; }
  .btn-primary:hover{
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(106, 90, 205, 0.15);
  }
}
.gradient-text {
  background: linear-gradient(90deg, #6A5ACD, #9B84EE);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.badge-optimise {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #6A5ACD, #7C6FF4);
  color: #fff;
  padding: 0.4rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(106, 90, 205, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.badge-optimise:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(106, 90, 205, 0.35);
}

/* ====== Desktop base ====== */
@media (min-width:1024px){
  .h1{ font-size: clamp(36px, 3.2vw, 48px); line-height: 1.1; }
  .h2{ font-size: clamp(26px, 2.2vw, 32px); line-height: 1.18; }
  .lede{ font-size: 18px; }
}
.grid-12{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
}
.span-6{ grid-column: span 6 / span 6; }
.span-5{ grid-column: span 5 / span 5; }
.span-7{ grid-column: span 7 / span 7; }
@media (min-width:1024px){
  .voyant-card{
    display:flex;
    flex-direction:column;
    height:100%;
  }
  .voyant-card .thumb{
    aspect-ratio: 4/3;
    object-fit: cover;
    width:100%;
  }
}
@media (min-width:1024px){
  .footer .site-container{
    display:flex;
    align-items:center;
    justify-content:space-between;
  }
}

/* ===== Retouches responsive mobile Suisse – V2 ===== */
.vi-hero-home{
  overflow:hidden;
}
.vi-hero-kicker{
  display:inline-flex;
  align-items:center;
  gap:.45rem;
  padding:.42rem .78rem;
  border-radius:999px;
  background:rgba(106,90,205,.09);
  color:#5f4fd0;
  font-weight:700;
  font-size:.82rem;
  line-height:1;
  margin-bottom:1rem;
}
.vi-hero-kicker::before{
  content:"";
  width:.48rem;
  height:.48rem;
  border-radius:999px;
  background:#6A5ACD;
  box-shadow:0 0 0 5px rgba(106,90,205,.10);
}
.vi-hero-subtitle{
  margin-top:1.1rem;
  font-size:clamp(1.18rem, 5vw, 1.55rem);
  line-height:1.25;
  font-weight:650;
  color:#1f1b2e;
}
.vi-hero-offer-card{
  position:relative;
  margin-top:1rem;
  padding:1rem;
  border:1px solid rgba(106,90,205,.16);
  border-radius:24px;
  background:linear-gradient(180deg, rgba(255,255,255,.96), rgba(246,243,255,.96));
  box-shadow:0 16px 38px rgba(106,90,205,.10), 0 1px 0 rgba(255,255,255,.85) inset;
  overflow:hidden;
}
.vi-hero-offer-card::before{
  content:"";
  position:absolute;
  inset:-40% -20% auto auto;
  width:180px;
  height:180px;
  border-radius:999px;
  background:radial-gradient(circle, rgba(154,132,238,.22), transparent 66%);
}
.vi-hero-offer-label{
  position:relative;
  display:inline-flex;
  align-items:center;
  gap:.45rem;
  color:#6A5ACD;
  font-size:.82rem;
  font-weight:800;
}
.vi-hero-offer-label::before{
  content:"✦";
  font-size:.9rem;
}
.vi-hero-offer-main{
  position:relative;
  display:block;
  margin-top:.45rem;
  font-weight:800;
  font-size:clamp(1.15rem, 5vw, 1.45rem);
  line-height:1.2;
  color:#111827;
}
.vi-hero-offer-price{
  position:relative;
  display:block;
  margin-top:.28rem;
  font-style:normal;
  font-size:clamp(2.15rem, 10vw, 3.1rem);
  line-height:1;
  font-weight:850;
  letter-spacing:-.04em;
  color:#6A5ACD;
}
.vi-hero-offer-note{
  position:relative;
  display:flex;
  flex-wrap:wrap;
  gap:.45rem;
  margin-top:.75rem;
  color:#64748b;
  font-size:.82rem;
  line-height:1.35;
}
.vi-hero-offer-note span{
  display:inline-flex;
  align-items:center;
  gap:.25rem;
  padding:.35rem .55rem;
  border-radius:999px;
  background:#fff;
  border:1px solid rgba(106,90,205,.10);
}
.vi-hero-actions{
  display:flex;
  flex-direction:column;
  gap:.7rem;
  margin-top:1rem;
}
.vi-hero-actions .btn-primary,
.vi-hero-actions .btn-ghost{
  width:100%;
  min-height:46px;
  border-radius:999px;
}

/* FAQ : évite les ponctuations isolées et améliore le toucher mobile */
details.card > summary{
  line-height:1.45;
  text-wrap:pretty;
  padding-right:.25rem;
}
.no-break-punct{
  word-break:normal;
  overflow-wrap:normal;
}

.vi-nowrap{
  white-space:nowrap;
}

@media (max-width:639px){
  .site-container{
    padding-left:1.25rem;
    padding-right:1.25rem;
  }
  .vi-hero-home{
    background:
      radial-gradient(circle at 88% 4%, rgba(154,132,238,.16), transparent 38%),
      linear-gradient(180deg, #fff 0%, #fbfaff 58%, #fff 100%);
  }
  .vi-hero-home .site-container{
    padding-top:2.35rem;
    padding-bottom:2.1rem;
  }
  .vi-hero-home .h1{
    font-size:clamp(1.92rem, 8.7vw, 2.55rem);
    line-height:1.13;
    letter-spacing:-.04em;
  }
  .vi-hero-home .muted{
    font-size:1rem;
    line-height:1.65;
  }
}


/* Sécurité UX cartes voyants : un voyant en consultation/pause/indisponible ne peut pas être choisi pour paiement immédiat */
.vi-live-paypick.is-disabled,
.vi-live-paypick:disabled{
  cursor:not-allowed;
}
.vi-live-paypick.is-disabled .vi-live-chip,
.vi-live-paypick:disabled .vi-live-chip{
  color:#64748b;
  background:#f8fafc;
  border-color:rgba(148,163,184,.30);
  box-shadow:none;
}
.vi-sheet-btn:disabled,
.vi-sheet-btn.is-disabled{
  cursor:not-allowed;
  opacity:.58;
  box-shadow:none;
}


/* Desktop uniquement : évite les coupures disgracieuses dans les CTA du hero téléphone */
@media (min-width: 1024px) {
  .vi-phone-hero-copy {
    max-width: 760px !important;
  }

  .vi-phone-hero-actions {
    display: grid !important;
    grid-template-columns: 1.08fr 0.82fr 1.12fr;
    gap: 12px;
    max-width: 760px;
  }

  .vi-phone-hero-actions .btn-primary,
  .vi-phone-hero-actions .btn-ghost,
  .vi-desktop-nowrap {
    white-space: nowrap;
  }
}
