/* =========================================================
   Carnet Tropikal — site vitrine
   Palette issue du logo : terracotta, sable, vert palme
   ========================================================= */
:root {
  --terracotta: #d1825f;
  --terracotta-dark: #b5653f;
  --terracotta-soft: #e6b39b;
  --sand: #f3e5dc;
  --cream: #fbf6f1;
  --rose: #efe2df;
  --green: #5f8a6a;
  --green-soft: #a3baa7;
  --ink: #2e2622;
  --ink-soft: #6e625b;
  --line: #e4d6cc;
  --white: #ffffff;
  --gold: #e8c48a;

  --font-display: "Fraunces", Georgia, serif;
  --font-script: "Caveat", cursive;
  --font-body: "DM Sans", system-ui, -apple-system, sans-serif;

  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 10px 30px -12px rgba(73, 42, 25, .25);
  --shadow-lg: 0 30px 60px -20px rgba(73, 42, 25, .35);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --gutter: clamp(16px, 4vw, 40px);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.12; margin: 0; letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
h2 em, h1 em { font-style: italic; color: var(--terracotta); }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 200; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 3px; border-radius: 6px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 600 1rem/1 var(--font-body);
  padding: 14px 24px; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), background-color .25s, box-shadow .25s, color .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn--sm { padding: 10px 18px; font-size: .92rem; }
.btn--lg { padding: 17px 30px; font-size: 1.05rem; }
.btn--primary { background: var(--terracotta); color: #fff; box-shadow: 0 10px 24px -10px rgba(181, 101, 63, .8); }
.btn--primary:hover { background: var(--terracotta-dark); }
.btn--ghost { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn--ghost:hover { background: #fff; color: var(--ink); }
.btn--outline { color: var(--ink); border-color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: #fff; }

.link { color: var(--terracotta-dark); font-weight: 600; text-underline-offset: 3px; }

/* ---------- Petits éléments ---------- */
.eyebrow {
  font-family: var(--font-script); font-size: 1.6rem; color: var(--terracotta); line-height: 1; margin-bottom: 10px;
}
.eyebrow--light { color: var(--terracotta-soft); }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 999px; font-size: .88rem; font-weight: 500;
}
.chip svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.chip--glass { background: rgba(255, 255, 255, .18); color: #fff; border: 1px solid rgba(255, 255, 255, .35); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.chip--gold { background: rgba(232, 196, 138, .2); color: var(--gold); border: 1px solid rgba(232, 196, 138, .5); }
.script { font-family: var(--font-script); font-size: 1.35em; color: var(--terracotta-soft); }

/* ---------- Navigation ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 100; transition: background-color .35s, box-shadow .35s, padding .35s; padding: 14px 0; }
.nav__inner { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.nav__logo { display: block; position: relative; height: 70px; width: 163px; flex-shrink: 0; transition: height .35s, width .35s; }
.nav.is-solid .nav__logo { height: 56px; width: 130px; }
.nav__logo img { position: absolute; inset: 0; height: 100%; width: auto; transition: opacity .3s; }
.nav__logo .logo-dark { opacity: 0; }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a:not(.btn) { color: #fff; text-decoration: none; font-weight: 500; font-size: .96rem; position: relative; }
.nav__links a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 100%; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav__links a:not(.btn):hover::after { transform: scaleX(1); }
.nav__burger { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.nav__burger span { display: block; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; transition: transform .3s, opacity .3s, background-color .3s; }

.nav.is-solid { background: rgba(251, 246, 241, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); padding: 8px 0; }
.nav.is-solid .logo-light { opacity: 0; }
.nav.is-solid .logo-dark { opacity: 1; }
.nav.is-solid .nav__links a:not(.btn) { color: var(--ink); }
.nav.is-solid .nav__burger span { background: var(--ink); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; color: #fff; overflow: hidden; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% center; background: #7fc8c0 url("assets/hero-poster.jpg") center / cover; }
.hero__veil { position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(30, 22, 18, .55) 0%, rgba(30, 22, 18, .15) 30%, rgba(30, 22, 18, .25) 60%, rgba(30, 22, 18, .75) 100%),
    linear-gradient(90deg, rgba(60, 33, 20, .55) 0%, rgba(60, 33, 20, 0) 65%);
}
.hero__content { padding-top: 120px; padding-bottom: 110px; }
.hero__title { font-size: clamp(2.6rem, 7vw, 5.6rem); font-weight: 400; max-width: 14ch; margin: 22px 0 22px; text-shadow: 0 2px 30px rgba(0, 0, 0, .25); }
.hero__script { display: block; font-family: var(--font-script); font-weight: 700; color: var(--terracotta-soft); font-size: .78em; line-height: 1; margin-top: .15em; letter-spacing: 0; }
.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 34rem; opacity: .95; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__facts { list-style: none; padding: 0; margin: 44px 0 0; display: flex; flex-wrap: wrap; gap: 10px 34px; font-size: .95rem; opacity: .92; }
.hero__facts li { display: flex; align-items: baseline; gap: 8px; }
.hero__facts strong { font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; }
.hero__scroll { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); width: 28px; height: 46px; border: 2px solid rgba(255, 255, 255, .7); border-radius: 20px; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; background: #fff; border-radius: 2px; animation: scrolldot 1.8s infinite; }
@keyframes scrolldot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 130px) 0; }
.section--sand { background: var(--sand); }
.section--cream { background: var(--cream); }
.section--dark { background: #2b221d; color: #f6ece4; }
.section--dark h2 em { color: var(--terracotta-soft); }
.section__head { text-align: center; max-width: 760px; margin: 0 auto clamp(40px, 6vw, 64px); }
.section__head--left { text-align: left; margin-left: 0; }
.section__lead { margin-top: 16px; font-size: 1.1rem; color: var(--ink-soft); }
.section--dark .section__lead { color: #cdbdb2; }

/* ---------- Comparatif ---------- */
.compare { display: grid; grid-template-columns: 1fr auto 1fr; gap: 28px; align-items: stretch; }
.compare__col { border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 44px); }
.compare__col--before { background: var(--white); box-shadow: var(--shadow); }
.compare__col--after { background: var(--ink); color: #f6ece4; box-shadow: var(--shadow-lg); }
.compare__title { font-size: 1.6rem; font-weight: 500; margin-bottom: 22px; }
.compare__col--before .compare__title { color: var(--ink-soft); }
.compare__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.compare__list li { display: flex; gap: 14px; align-items: flex-start; }
.compare__col--before li { color: var(--ink-soft); }
.ico { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .95rem; margin-top: 1px; }
.ico--bad { background: var(--rose); color: #b4574a; }
.ico--good { background: var(--terracotta); color: #fff; }
.compare__foot { margin-top: 26px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .15); color: #cdbdb2; font-style: italic; }
.compare__arrow { display: grid; place-items: center; }
.compare__arrow img { width: 48px; height: auto; animation: bob 3s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* ---------- Inclus ---------- */
.inclus { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.inclus__visual { position: relative; }
.inclus__visual::before { content: ""; position: absolute; inset: 8% 4% -4% -4%; background: var(--sand); border-radius: 50% 40% 45% 55% / 50% 55% 45% 50%; z-index: -1; }
.inclus__visual img { mix-blend-mode: multiply; filter: drop-shadow(0 30px 40px rgba(73, 42, 25, .25)); }
.features { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 24px 28px; }
.feature { display: flex; gap: 14px; align-items: flex-start; }
.feature__ico { flex-shrink: 0; width: 46px; height: 46px; border-radius: 14px; background: var(--sand); display: grid; place-items: center; color: var(--terracotta-dark); }
.feature__ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-family: var(--font-body); font-size: 1.02rem; font-weight: 700; margin-bottom: 2px; }
.feature p { color: var(--ink-soft); font-size: .95rem; line-height: 1.45; }

/* ---------- Styles de carnets ---------- */
.themes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.theme { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4; background: var(--ink); box-shadow: var(--shadow); isolation: isolate; }
.theme img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease); }
.theme::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(30, 20, 15, .85) 100%); transition: background-color .4s; }
.theme__body { position: absolute; inset: auto 0 0 0; padding: 22px; color: #fff; }
.theme h3 { font-size: 1.5rem; font-weight: 500; }
.theme p { font-size: .93rem; opacity: .9; margin-top: 4px; line-height: 1.4; }
.theme__cta { display: inline-flex; gap: 6px; margin-top: 14px; font-weight: 600; font-size: .9rem; text-decoration: none; color: #fff; padding: 9px 16px; border-radius: 999px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .4); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background-color .3s, color .3s; }
.theme__cta::before { content: ""; position: absolute; inset: 0; }
.theme:hover img { transform: scale(1.07); }
.theme:hover .theme__cta, .theme__cta:focus-visible { background: var(--terracotta); border-color: var(--terracotta); }
.theme.is-match { outline: 4px solid var(--terracotta); outline-offset: 4px; }

/* ---------- Aperçu ---------- */
.previews { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.preview { margin: 0; background: #1f1814; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid rgba(255, 255, 255, .08); }
.preview img { background: #fff; width: 100%; aspect-ratio: 1920 / 1300; object-fit: cover; }
.preview figcaption { padding: 16px 22px; font-family: var(--font-script); font-size: 1.5rem; color: var(--terracotta-soft); }

/* ---------- Étapes ---------- */
.steps { list-style: none; padding: 0; margin: 0 0 clamp(56px, 8vw, 90px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; top: 34px; left: 16%; right: 16%; border-top: 2px dashed var(--terracotta-soft); z-index: 0; }
.step { position: relative; text-align: center; padding: 0 12px; }
.step__num { position: relative; z-index: 1; display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 20px; border-radius: 50%; background: var(--terracotta); color: #fff; font-family: var(--font-display); font-size: 1.5rem; box-shadow: 0 0 0 8px var(--cream); }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--ink-soft); }

/* ---------- Quiz ---------- */
.quiz { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; background: var(--ink); color: #f6ece4; border-radius: var(--radius-lg); padding: clamp(28px, 5vw, 56px); box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.quiz::before { content: ""; position: absolute; width: 380px; height: 380px; right: -120px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(209, 130, 95, .45), transparent 70%); }
.quiz__intro h2 { color: #fff; font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.quiz__intro p { color: #cdbdb2; margin-top: 12px; }
.quiz__form { position: relative; min-height: 260px; display: flex; flex-direction: column; }
.quiz__step { border: 0; padding: 0; margin: 0; display: none; }
.quiz__step.is-active { display: block; animation: fadein .4s var(--ease); }
.quiz__step legend { font-family: var(--font-display); font-size: 1.45rem; margin-bottom: 18px; padding: 0; }
.quiz__count { display: block; font-family: var(--font-body); font-size: .82rem; letter-spacing: .12em; color: var(--terracotta-soft); margin-bottom: 6px; }
.quiz__opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quiz__opts label { cursor: pointer; }
.quiz__opts input { position: absolute; opacity: 0; pointer-events: none; }
.quiz__opts span { display: block; padding: 15px 18px; border-radius: 14px; border: 1.5px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .04); transition: border-color .2s, background-color .2s; font-weight: 500; }
.quiz__opts label:hover span { border-color: var(--terracotta-soft); }
.quiz__opts input:checked + span { border-color: var(--terracotta); background: rgba(209, 130, 95, .22); }
.quiz__opts input:focus-visible + span { outline: 3px solid var(--terracotta); outline-offset: 2px; }
.quiz__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 24px; }
.quiz__nav #quizNext { margin-left: auto; }
.quiz .btn--ghost { border-color: rgba(255, 255, 255, .35); }
.quiz__result { animation: fadein .5s var(--ease); }
.quiz__result .res { display: grid; grid-template-columns: 140px 1fr; gap: 20px; align-items: center; }
.quiz__result img { width: 140px; height: 170px; object-fit: cover; border-radius: 14px; }
.quiz__result small { color: var(--terracotta-soft); font-family: var(--font-script); font-size: 1.4rem; }
.quiz__result h3 { font-size: 1.9rem; font-weight: 500; color: #fff; }
.quiz__result p { color: #cdbdb2; margin: 6px 0 16px; }
@keyframes fadein { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Avis ---------- */
.rating { margin-top: 14px; font-size: 1.05rem; color: var(--ink-soft); }
.stars { color: var(--terracotta); letter-spacing: 2px; }
.reviews { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.review { margin: 0; background: var(--white); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; position: relative; }
.review::before { content: "“"; font-family: var(--font-display); font-size: 5rem; line-height: .6; color: var(--terracotta-soft); position: absolute; top: 24px; right: 20px; opacity: .6; }
.review p { font-size: .98rem; flex: 1; }
.review footer { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-direction: column; }
.review footer span { font-size: .86rem; color: var(--ink-soft); }

/* ---------- Pourquoi ---------- */
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.why__item { text-align: center; padding: 32px 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); transition: transform .3s var(--ease), box-shadow .3s; }
.why__item:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.why__ico { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; background: var(--sand); font-size: 1.7rem; }
.why__item h3 { margin-bottom: 6px; }
.why__item p { color: var(--ink-soft); font-size: .95rem; }

/* ---------- Pura Vida ---------- */
.puravida { position: relative; padding: clamp(90px, 12vw, 160px) 0; isolation: isolate; overflow: hidden; }
.puravida__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.puravida__veil { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(25, 18, 14, .85) 0%, rgba(25, 18, 14, .55) 55%, rgba(25, 18, 14, .15) 100%); }
.puravida__card { max-width: 560px; color: #f6ece4; }
.puravida__card h2 { color: #fff; margin: 18px 0 16px; }
.puravida__card h2 em { color: var(--gold); }
.puravida__lead { font-size: 1.12rem; color: #e6d8cd; }
.puravida__list { list-style: none; padding: 0; margin: 26px 0 34px; display: grid; gap: 12px; }
.puravida__list li { display: flex; gap: 12px; align-items: center; }
.puravida__list li::before { content: "✓"; flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--ink); font-weight: 700; font-size: .85rem; }

/* ---------- Réassurance / newsletter ---------- */
.trust { list-style: none; padding: 0; margin: 0 0 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.trust li { display: flex; gap: 14px; align-items: center; padding: 20px 22px; background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); }
.trust li > span { font-size: 1.6rem; }
.trust strong { display: block; }
.trust small { color: var(--ink-soft); font-size: .9rem; }
.news { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; background: var(--sand); border-radius: var(--radius-lg); padding: clamp(28px, 5vw, 52px); }
.news h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.news p { color: var(--ink-soft); margin-top: 10px; }
.news__form { display: flex; flex-wrap: wrap; gap: 10px; }
.news__form input { flex: 1 1 220px; min-width: 0; padding: 15px 20px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font: inherit; color: var(--ink); }
.news__form input:focus { outline: none; border-color: var(--terracotta); box-shadow: 0 0 0 4px rgba(209, 130, 95, .18); }
.news__msg { flex-basis: 100%; font-size: .93rem; color: var(--green); font-weight: 500; padding-left: 8px; }

/* ---------- CTA final ---------- */
.final { padding: clamp(80px, 10vw, 120px) 0; text-align: center; background: radial-gradient(ellipse at top, var(--sand), var(--cream) 70%); }
.final__inner { display: flex; flex-direction: column; align-items: center; }
.final img { width: 56px; height: auto; margin-bottom: 22px; animation: bob 3s ease-in-out infinite; }
.final h2 { max-width: 16ch; }
.final p { color: var(--ink-soft); margin-top: 14px; font-size: 1.1rem; }
.final .hero__ctas { justify-content: center; }

/* ---------- Pied de page ---------- */
.footer { background: #231b17; color: #cdbdb2; padding: 64px 0 28px; font-size: .95rem; }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 32px; }
.footer__contact strong { color: #fff; font-weight: 600; }
.footer__contact a { overflow-wrap: anywhere; }
.footer__brand img { width: 180px; height: auto; margin-bottom: 14px; }
.footer__brand a { color: var(--terracotta-soft); }
.footer__nav { display: flex; flex-direction: column; gap: 10px; }
.footer__nav a { text-decoration: none; }
.footer__nav a:hover { color: #fff; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .82rem; color: #9b8b80; }
.footer__credit a { color: inherit; }

/* ---------- WhatsApp ---------- */
.whatsapp { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 58px; height: 58px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 10px 24px -6px rgba(0, 0, 0, .35); transition: transform .25s var(--ease); }
.whatsapp:hover { transform: scale(1.08); }
.whatsapp svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- Apparition au défilement ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .themes { grid-template-columns: repeat(2, 1fr); }
  .reviews, .why { grid-template-columns: repeat(2, 1fr); }
  .inclus { grid-template-columns: 1fr; }
  .inclus__visual { max-width: 560px; margin: 0 auto; }
}

@media (max-width: 860px) {
  .nav__burger { display: block; position: relative; z-index: 2; }
  .nav__links {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 26px;
    background: var(--cream); transform: translateY(-100%); transition: transform .45s var(--ease); visibility: hidden;
  }
  .nav__links a:not(.btn) { color: var(--ink) !important; font-family: var(--font-display); font-size: 1.7rem; }
  .nav.is-open .nav__links { transform: none; visibility: visible; }
  .nav.is-open .nav__burger span { background: var(--ink); }
  .nav.is-open .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.is-open .nav__burger span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav.is-open .logo-light { opacity: 0; }
  .nav.is-open .logo-dark { opacity: 1; }

  .compare { grid-template-columns: 1fr; }
  .compare__arrow { transform: rotate(0); }
  .previews { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .steps::before { display: none; }
  .quiz { grid-template-columns: 1fr; gap: 24px; }
  .news { grid-template-columns: 1fr; }
  .trust { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .themes { gap: 12px; }
  .theme { aspect-ratio: 3 / 4.4; }
  .theme__body { padding: 14px; }
  .theme h3 { font-size: 1.15rem; }
  .theme p { display: none; }
  .theme__cta { padding: 7px 12px; font-size: .8rem; margin-top: 8px; }
  .features { grid-template-columns: 1fr; }
  .reviews, .why { grid-template-columns: 1fr; }
  .quiz__opts { grid-template-columns: 1fr; }
  .quiz__result .res { grid-template-columns: 1fr; }
  .quiz__result img { width: 100%; height: 180px; }
  .hero__ctas .btn { width: 100%; }
  .hero__facts { gap: 6px 22px; }
  .hero__facts strong { font-size: 1.25rem; }
  .whatsapp { width: 52px; height: 52px; right: 14px; bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Pura Vida : voile plus uniforme sur mobile pour la lisibilité */
@media (max-width: 860px) {
  .puravida__veil { background: linear-gradient(180deg, rgba(25, 18, 14, .78), rgba(25, 18, 14, .88)); }
}


/* ---------- Pages légales ---------- */
.legal-top { background: var(--cream); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.legal-top__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.legal-top__logo img { height: 56px; width: auto; }
.legal { max-width: 820px; padding-top: clamp(40px, 7vw, 72px); padding-bottom: clamp(56px, 9vw, 100px); }
.legal h1 { font-size: clamp(2.1rem, 5vw, 3rem); }
.legal__date { color: var(--ink-soft); font-size: .92rem; margin-top: 10px; }
.legal__tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 8px; }
.legal__tabs a { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-size: .92rem; font-weight: 500; background: var(--white); }
.legal__tabs a[aria-current="page"] { background: var(--terracotta); border-color: var(--terracotta); color: #fff; }
.legal h2 { font-size: 1.45rem; margin: 40px 0 12px; }
.legal p, .legal li { color: #463b35; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 1.2em; margin: 12px 0; display: grid; gap: 6px; }
.legal a { color: var(--terracotta-dark); text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal__card { background: var(--sand); border-radius: var(--radius); padding: 22px 26px; margin: 14px 0 16px; }
.legal__card ul { margin-bottom: 0; }
@media (max-width: 560px) { .legal-top__logo img { height: 44px; } }
.quiz__note { font-size: .88rem; color: #cdbdb2; margin-top: 12px !important; }
.theme[data-theme="bienetre"] img { object-position: 66% center; }
.theme[data-theme="immersion"] img { object-position: 48% center; }
/* 11 vignettes : grille 3 colonnes sur ordinateur, la dernière (Friendly Vibe) s'étire pour finir la rangée */
.themes { grid-template-columns: repeat(3, 1fr); }
.theme[data-theme="peche"] img { object-position: 72% center; }
.theme[data-theme="sport"] img { object-position: 42% 40%; }
.theme[data-theme="amis"] { grid-column: span 2; aspect-ratio: auto; }
@media (max-width: 1024px) {
  .themes { grid-template-columns: repeat(2, 1fr); }
  .theme[data-theme="amis"] { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
}
@media (max-width: 560px) {
  .theme[data-theme="amis"] { aspect-ratio: 4 / 3; }
}
.theme[data-theme="amis"] img { object-position: 40% 30%; }
.theme[data-theme="feminin"] img { object-position: center 72%; }
.theme[data-theme="aventure"] img { object-position: center 45%; }
.theme[data-theme="romantique"] img { object-position: 40% 30%; }
.theme[data-theme="famille"] img { object-position: center 35%; }
/* Logo officiel (cocotiers, avion et « Tropikal » en noir) partout ;
   dans le pied de page sombre, il est posé sur un cartouche crème pour rester lisible. */
.footer__brand img { background: var(--cream, #faf4ec); padding: 12px 16px; border-radius: 14px; box-sizing: content-box; }
/* En-tête : bandeau beige sur toute la largeur, dès le haut de la page (logo noir lisible) */
.nav, .nav.is-solid { background: rgba(251, 246, 241, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line), 0 6px 20px rgba(0, 0, 0, .08); }
.nav .logo-light { opacity: 0; }
.nav .logo-dark { opacity: 1; }
.nav .nav__links a:not(.btn) { color: var(--ink); }
.nav .nav__burger span { background: var(--ink); }
/* Le flou du bandeau empêcherait le menu mobile de couvrir l'écran : on le retire sur mobile */
@media (max-width: 860px) {
  .nav, .nav.is-solid { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgb(251, 246, 241); }
}
/* Devise sous le comparatif */
.motto { margin: 56px auto 0; max-width: 760px; text-align: center; font-family: var(--font-display); font-size: clamp(1.6rem, 3.2vw, 2.4rem); line-height: 1.2; color: var(--ink); }
.motto__script { display: block; margin-top: 6px; font-family: var(--font-script); font-weight: 700; font-size: 1.15em; color: var(--terracotta); }
@media (max-width: 560px) { .motto { margin-top: 40px; } }
.motto__wink { display: block; margin-bottom: 14px; font-family: var(--font-body, inherit); font-size: .6em; font-style: italic; letter-spacing: .01em; color: #6b5a50; }
@media (max-width: 560px) { .motto__wink { font-size: .62em; } }
