/* Site Skalzy : couleurs du thème Menthe de l'app, police Nunito (hébergée ici, aucun appel à un tiers). */
@font-face { font-family: "Nunito"; src: url("/fonts/Nunito_700Bold.ttf") format("truetype"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/fonts/Nunito_800ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/fonts/Nunito_900Black.ttf") format("truetype"); font-weight: 900; font-display: swap; }

:root {
  --bg: #ffffff;
  --surface: #eef3f0;
  --tint: #e3faef;
  --line: #dce5e0;
  --ink: #10231a;
  --muted: #52635a;
  --primary: #2bd48a;
  --primary-dark: #1fa86c;
  --on-primary: #08311f;
  --accent: #157a4c;
  --coral: #ff7a59;
  --radius: 22px;
  --shadow: 0 18px 50px -24px rgba(16, 35, 26, 0.35);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1813;
    --surface: #17241d;
    --tint: #123323;
    --line: #28392f;
    --ink: #e8f4ee;
    --muted: #9fb3a8;
    --accent: #4fe0a0;
    --shadow: 0 18px 50px -24px rgba(0, 0, 0, 0.8);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 700 17px/1.55 "Nunito", system-ui, -apple-system, sans-serif; }
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3, h4 { font-weight: 900; line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 6vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(720px, 100% - 32px); }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 0.88rem; }
.lead { font-size: 1.15rem; color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-weight: 900; color: var(--accent); font-size: 0.85rem; margin-bottom: 0.6em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hp { position: absolute; left: -9999px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--bg); padding: 8px 12px; border-radius: 10px; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }

/* En-tête */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-weight: 900; font-size: 1.3rem; }
.nav-links { display: flex; gap: 20px; margin-left: auto; }
.nav-links a { color: var(--muted); text-decoration: none; }
.nav-links a:hover { color: var(--ink); }
@media (max-width: 760px) { .nav-links { display: none; } .nav .btn { margin-left: auto; } }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px; border: 0; border-radius: 16px; background: var(--primary); color: var(--on-primary); font: 900 1rem "Nunito", sans-serif; text-transform: uppercase; letter-spacing: 0.04em; text-decoration: none; cursor: pointer; box-shadow: 0 5px 0 var(--primary-dark); transition: transform 0.12s, box-shadow 0.12s; }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--primary-dark); }
.btn--small { min-height: 42px; padding: 0 16px; font-size: 0.85rem; box-shadow: 0 4px 0 var(--primary-dark); }
.btn--ghost { background: transparent; color: var(--accent); box-shadow: none; border: 2px solid var(--line); }
.store { display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 6px 18px; border-radius: 14px; background: #000; color: #fff; text-decoration: none; }
.store span { display: flex; flex-direction: column; font-size: 1.15rem; font-weight: 900; line-height: 1.1; }
.store small { font-size: 0.72rem; font-weight: 700; opacity: 0.85; }
.store--soon { opacity: 0.85; cursor: default; }
@media (prefers-color-scheme: dark) { .store { background: #fff; color: #000; } }

/* Accueil */
.hero { padding: clamp(40px, 8vw, 90px) 0 40px; background: radial-gradient(120% 80% at 80% 10%, var(--tint), transparent 60%); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin: 28px 0; }
.hero-cta--center { justify-content: center; }
.stats { display: flex; gap: 28px; list-style: none; padding: 0; margin: 0; color: var(--muted); }
.stats strong { display: block; font-size: 1.9rem; font-weight: 900; color: var(--ink); }
.hero-visual { position: relative; display: flex; justify-content: center; }
.puffy-hero { position: absolute; left: -10px; bottom: 30px; width: 150px; filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.18)); }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero-visual { margin-top: 10px; } }

.phone { margin: 0; width: min(290px, 78vw); padding: 10px; background: #111; border-radius: 46px; box-shadow: var(--shadow), inset 0 0 0 2px #333; }
.phone img { display: block; width: 100%; border-radius: 37px; }

.section { padding: clamp(56px, 9vw, 100px) 0; }
.section--tint { background: var(--surface); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 40px; }
.step { text-align: center; display: flex; flex-direction: column; align-items: center; }
.step p { color: var(--muted); max-width: 32ch; }
.step .phone { margin-top: auto; width: min(250px, 70vw); }
.num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: var(--on-primary); font-weight: 900; font-size: 1.2rem; margin-bottom: 12px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; gap: 56px; } }

.parcours { margin-top: 44px; }
.modules { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.module { display: flex; gap: 14px; align-items: center; background: var(--bg); border: 2px solid var(--line); border-radius: 18px; padding: 12px; }
.module img { width: 64px; height: 64px; flex: none; }
.module h4 { font-size: 1rem; margin: 0 0 2px; }
.module p { margin: 0; color: var(--muted); font-size: 0.88rem; }

.feature { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center; margin-top: 56px; }
.feature--reverse { grid-template-columns: auto 1fr; }
.feature--reverse > div { order: 2; }
.feature p { color: var(--muted); max-width: 46ch; font-size: 1.1rem; }
.outfits { display: flex; gap: 10px; margin-top: 12px; }
.outfits img { width: 72px; height: 72px; background: var(--surface); border-radius: 18px; padding: 4px; }
@media (max-width: 760px) { .feature, .feature--reverse { grid-template-columns: 1fr; justify-items: center; text-align: center; } .feature--reverse > div { order: 0; } .outfits { justify-content: center; } }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 56px; }
.cards--2 { grid-template-columns: repeat(2, 1fr); margin: 24px 0 40px; }
.card { background: var(--surface); border-radius: var(--radius); padding: 22px; }
.section--tint .card { background: var(--bg); }
.card p { color: var(--muted); margin: 0; }
.card h2 { font-size: 1.2rem; }
.themes { display: flex; gap: 2px; height: 48px; align-items: center; }
@media (max-width: 860px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .cards, .cards--2 { grid-template-columns: 1fr; } }

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 360px)); justify-content: center; gap: 20px; margin: 36px 0 16px; }
.plan { position: relative; background: var(--bg); border: 2px solid var(--line); border-radius: var(--radius); padding: 28px; }
.plan--pro { border-color: var(--primary); box-shadow: var(--shadow); }
.price { font-size: 2.4rem; font-weight: 900; margin: 0; }
.price span { font-size: 1rem; color: var(--muted); }
.badge { position: absolute; top: -14px; left: 24px; margin: 0; background: var(--coral); color: #fff; padding: 4px 12px; border-radius: 999px; font-size: 0.82rem; font-weight: 900; }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; }
.ticks li { padding-left: 30px; background: url("/img/icons/check.png") left center / 22px no-repeat; }
@media (max-width: 640px) { .plans { grid-template-columns: 1fr; } }

.waitlist { margin-top: 24px; text-align: left; }
.waitlist-row { display: flex; gap: 10px; }
.waitlist input[type="email"] { flex: 1; min-width: 0; min-height: 52px; padding: 0 16px; border: 2px solid var(--line); border-radius: 16px; background: var(--bg); color: var(--ink); font: 700 1rem "Nunito", sans-serif; }
.waitlist input[type="email"]:focus { border-color: var(--primary); outline: none; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; font-size: 0.88rem; color: var(--muted); }
.consent input { margin-top: 4px; accent-color: var(--primary); width: 18px; height: 18px; flex: none; }
.waitlist-done { margin-top: 14px; padding: 12px 16px; border-radius: 14px; background: var(--tint); color: var(--accent); }
.waitlist-error { margin-top: 14px; color: #c0392b; }
@media (max-width: 520px) { .waitlist-row { flex-direction: column; } }

.qa { background: var(--bg); border-radius: 18px; padding: 4px 20px; margin-top: 12px; border: 2px solid var(--line); }
.qa summary { cursor: pointer; padding: 14px 0; font-weight: 900; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.qa summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; line-height: 1; }
.qa[open] summary::after { content: "–"; }
.qa p { color: var(--muted); }

.float { animation: float 4s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .float { animation: none; } html { scroll-behavior: auto; } .btn { transition: none; } }

/* Documents */
.legal { padding: 48px 0 80px; max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.legal h2 { font-size: 1.45rem; margin-top: 2em; scroll-margin-top: 80px; }
.legal h3 { font-size: 1.1rem; margin-top: 1.4em; scroll-margin-top: 80px; }
.legal p, .legal li { color: color-mix(in srgb, var(--ink) 85%, var(--muted)); font-weight: 600; }
.legal .meta { color: var(--muted); font-size: 0.9rem; }
.legal li { margin-bottom: 0.4em; }
.toc details { background: var(--surface); border-radius: 16px; padding: 10px 18px; margin: 8px 0 24px; }
.toc summary { cursor: pointer; font-weight: 900; }
.toc ol { margin: 10px 0 4px; padding-left: 22px; }
.table { overflow-x: auto; margin: 0 0 1em; }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { background: var(--surface); font-weight: 900; }
@media (max-width: 640px) {
  thead { display: none; }
  table, tbody, tr, td { display: block; width: 100%; }
  tr { border: 2px solid var(--line); border-radius: 14px; margin-bottom: 10px; padding: 6px 0; }
  td { border: 0; padding: 6px 12px; }
  td::before { content: attr(data-label); display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); font-weight: 900; }
}

/* Parrainage */
.referral .code-box { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center; margin: 22px 0 8px; }
.referral .code-box[hidden] { display: none; }
.code { font-size: 2rem; font-weight: 900; letter-spacing: 0.18em; padding: 8px 18px; border: 3px dashed var(--primary); border-radius: 16px; }

/* Pied de page */
.foot { border-top: 1px solid var(--line); padding: 48px 0 32px; background: var(--bg); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 28px; margin-bottom: 20px; }
.foot-grid > div { display: flex; flex-direction: column; gap: 8px; }
.foot-grid a:not(.brand) { color: var(--muted); text-decoration: none; }
.foot-grid a:not(.brand):hover { color: var(--ink); }
.foot-title { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 0 0 4px; }
@media (max-width: 640px) { .foot-grid { grid-template-columns: 1fr; } }
