:root{
  --bg: #f6f2ea;
  --text: #111;
  --muted:#6b6b6b;
  --line:#e8e1d7;
  --white:#fff;
  --green:#31bc7b;
  --green-dark:#159457;
  --shadow: 0 12px 30px rgba(0,0,0,.08);
  --radius: 18px;
  --max: 1300px;
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Helvetica Neue", sans-serif;
}

@font-face {
  font-family: "elizeth";
  src: url("fonts/elizeth.otf") format("opentype");
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family:var(--sans);
  color:var(--text);
  background:var(--bg);
}
a{color:inherit; text-decoration:none}
img{max-width:100%; display:block}

.container{max-width:var(--max); margin:0 auto; padding:0 20px}

#siteHeader{
  display: contents;
}

/* Header */
header{
  position:sticky;
  top:0;
  z-index:20;
  background: rgba(246,242,234,1); /* ✅ opaque */
  /* backdrop-filter: none;  (déjà pas utilisé) */
}

.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height:72px;
  gap:18px;
}

.brand{
  display:flex;
  align-items:center;
}

.brand a{
  display:flex;
  align-items:center;
}

.brandLogo{
  height: 25px;
  width: auto;
  max-height: none;
  max-width: none;
  display: block;
}

/* Desktop nav */
.navlinks{
  display:flex;
  align-items:center;
  gap:70px;
  color:#2a2a2a;
  font-weight:500;
}

.navlinks a{opacity:.9}

.navlinks a:hover{
  color: var(--green);
  font-weight: 900;
}

.navlinks a.active{
  color: var(--green);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 6px;
}

/* CTA */
.ctamenu{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:11px 45px;
  border-radius:999px;
  background:var(--green);
  color:#fff;
  font-weight:700;
  border:1px solid rgba(0,0,0,.06);
  transition:transform .15s ease, background .15s ease;
  white-space:nowrap;
  font-size:16px;
}
.ctamenu:hover{background:var(--green-dark); transform:translateY(-1px)}

.cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:11px 45px;
  border-radius:999px;
  background:var(--green);
  color:#fff;
  font-weight:700;
  border:1px solid rgba(0,0,0,.06);
  transition:transform .15s ease, background .15s ease;
  white-space:nowrap;
  font-size:16px;
}
.cta:hover{background:var(--green-dark); transform:translateY(-1px)}

.burger{display:none}

.cta-hero{
  padding:11px 100px;
  vertical-align: bottom;
}

/* Hero */
.hero{padding:42px 0 0px}
.heroGrid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:28px;
}
.h1{
  font-family: "elizeth", serif;
  font-weight: 700;
  font-style: normal;
  font-size:3em;
  line-height:1.03;
  margin:0 0 12px;
  letter-spacing:-1.2px;
}
.sub{
  margin:20px 0 50px;
  color:var(--muted);
  max-width:60ch;
  font-size:15.5px;
  line-height:1.55;
}
.heroActions{display:flex; gap:12px; align-items:center; flex-wrap:wrap}

.ghost{
  display:inline-flex; align-items:center; justify-content:center;
  padding:11px 16px;
  border-radius:999px;
  background:transparent;
  border:1px solid rgba(0,0,0,.12);
  font-weight:700;
  color:#222;
}
.ghost:hover{background:rgba(255,255,255,.55)}

/* Hero carousel mock */
.carousel{
  position:relative;
  overflow:hidden;
  width: 650px;
  aspect-ratio: auto;
  height: auto;
}

.carouselInner{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
  height:100%;
}

.carousel img{
  width:100%;
  aspect-ratio: 1 / 1;
  height:auto;
  object-fit:cover;
  min-height:0;
}

.carousel .divider{
  position:absolute; top:0; bottom:0; left:50%;
  width:1px; background:rgba(255,255,255,.7);
  mix-blend-mode:overlay;
}

.arrow::before{ content:none; }

.carousel .arrow,
.baFrame .arrow{
  position:absolute;
  left:50%; top:50%;
  transform:translate(-50%,-50%);
  display:flex;
  align-items:center;
  justify-content:center;
  pointer-events:none;
  width:auto;
  height:auto;
  border-radius:0;
  background:none;
  border:none;
  box-shadow:none;
}

.arrow svg,
.arrowIcon{
  display:block;
}

.carousel .arrow img,
.baFrame .arrow img{
  width: 48px !important;
  height: auto !important;
  max-width: none !important;
  display:block;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,.35));
}

/* Compatibility bar */
.compat{
  background:#111;
  color:#fff;
  padding:14px 0;
  margin-top:60px;
}
.compatRow{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:22px;
  flex-wrap:wrap;
  text-align:center;
  font-weight:600;
}
.pill{
  display:inline-flex;
  gap:8px;
  align-items:center;
  opacity:1;
  font-weight:700;
}
.logoChip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 15px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  font-size:13px;
  letter-spacing:0.2px;
}
.icon_compatible{ margin:0 10px 0 0; }
.logoChip img{
  height: 25px;
  width: auto;
  display: block;
}

/* Section base */
section{padding:48px 0}
.sectionTitle{
  font-family: "elizeth", serif;
  font-weight: 700;
  font-style: normal;
  text-align:center;
  margin:0 0 26px;
  font-size:2.5em;
  letter-spacing:-.2px;
}

/* How it works */
.how{
  background-color: white;
  border-top:1px solid rgba(0,0,0,.04);
  border-bottom:1px solid rgba(0,0,0,.04);
}
.steps{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:18px;
  align-items:stretch;
  margin-top:12px;
}
.step{
  background:rgba(255,255,255,.65);
  padding:18px 16px;
  text-align:center;
}

.icon{
  width:100px; height:100px;
  margin:0 auto 10px;
  display:grid; place-items:center;
  font-size:22px;
}

.step h3{
  font-family: "elizeth", serif;
  font-weight: 700;
  font-style: normal;
  margin:0 0 6px;
  font-size:25px;
  letter-spacing:-.2px;
}
.step p{
  margin:0;
  color:var(--muted);
  font-size:13.5px;
  line-height:1.45;
}
.centerCta{
  display:flex; justify-content:center;
  margin-top:22px;
}

/* Before/After blocks */
.baWrap{
  display:grid;
  gap:18px;
  max-width:860px;
  margin:0 auto;
}
.baCard{ overflow:hidden; }

.baLabels{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:0;
  padding:12px 14px 6px;
  color:#333;
  font-weight:700;
  font-size:12px;
  opacity:.85;
}
.baFrame{
  position:relative;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;  
}
.baFrame img{
  width:100%;
  object-fit:cover;
}
.baFrame .divider{
  position:absolute; top:0; bottom:0; left:50%;
  width:1px; background:rgba(255,255,255,.75);
  mix-blend-mode:overlay;
}

.bottomCta{
  display:flex; justify-content:center;
  margin-top:22px;
}

.spacer{height:26px}

html{
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
  overflow-y: scroll;
}

/* ===============================
   Responsive (<= 920px)
   =============================== */

@media (max-width: 920px){

  header{
  position: sticky;
  top: 0;
  z-index: 6000;
  background: rgba(246,242,234,1);
  }

  .brand{
    position: relative;
    z-index: 6200;
  }
  
  .nav{
  position: relative;
  z-index: 6100; /* ✅ assure logo + burger au-dessus */
  }

 /* Burger */
  .burger{
    position: relative;
    z-index: 6200; /* ✅ au-dessus */
    display:inline-flex;
    width:40px;
    height:40px;
    border-radius:12px;
    border:1px solid rgba(0,0,0,.12);
    align-items:center;
    justify-content:center;
    background:rgba(255,255,255,.55);
  }
  .burger::before{
    content:"≡";
    font-size:25px;
    font-weight:900;
    color: var(--green);
  }
  .burger[aria-expanded="true"]::before{
    content:"✕";
    font-size:18px;
  }

  /* ✅ MENU plein écran, indépendant du scroll */
  .navlinks{
    z-index: 5000;
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    padding: calc(var(--header-h, 72px) + 18px) 22px 22px;
    background: rgba(246,242,234,.98);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 4000;

    /* fermé */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
  }

  /* ouvert */
  .navlinks.isOpen{
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition: opacity .18s ease, transform .18s ease, visibility 0s;
  }

  /* CTA dans le menu */
  .navlinks .mobileCta{
    width: min(520px, 92vw);
    justify-content: center;
    margin-top: 10px;
  }

  /* Hero / layout */
  .h1{font-size:44px}
  .heroGrid{grid-template-columns:1fr; gap:18px}

  .carousel{
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }

  .steps{
    grid-template-columns:1fr;
    max-width:520px;
    margin-left:auto;
    margin-right:auto;
  }
}

/* ===============================
   Mobile small (<= 520px)
   =============================== */

@media (max-width: 520px){

  .brandLogo{
    height: 20px;
    width: auto;
    max-height: none;
    max-width: none;
    display: block;
  }

  .hero{padding:10px 0 0px}

  .h1{
    font-size:35px;
    text-align: center;
    margin:0 0 12px;
  }

  .sectionTitle{
    font-size: 35px;
    line-height:1.03;
  }

  .sub{
    margin:0 0 20px 0;
    text-align: center;
  }

  .carousel{ max-width: 325px; }

  /* Si tu veux que le CTA dans le header disparaisse sur petit mobile,
     attention : ça cache TOUS les .ctamenu (y compris celui dans le menu).
     Donc on limite au header seulement si tu as un CTA dans le header.
     Ici, tu n’en as pas, donc tu peux supprimer ce bloc si besoin.
  */
  /* header .ctamenu{ display:none; } */

  .cta-hero{
    padding:11px 80px;
    vertical-align: bottom;
  }

  .carousel .divider{display:none}

  .baLabels{padding-bottom:10px}
  .baFrame img{height:175px}

  .carousel .arrow,.baFrame .arrow{ width:40px; }

  .carouselInner{ gap:5px; }
  .baFrame{ gap:5px; }

  .icon{ width:75px; height:75px; }

  .steps{ gap:0px; }

  .compat{ margin-top: 20px; }
  .compatRow{ gap: 10px; }

  section{ padding:30px 0; }

  .logoChip{
    padding:3px;
    border:0;
    font-weight:500;
  }

  .logoChip img{ height: 15px; }

  .step h3{ margin:0; }
}
