/* Capi : site vitrine. Thème clair chaleureux par défaut, thème sombre disponible. */
:root {
  --bg: #fbf8f4; --bg2: #f4ede4; --card: #ffffff; --line: #ece2d7;
  --ink: #3f2a22; --text: #5c463c; --muted: #8a7366;
  --brown: #7b4a3f; --brown-2: #9a5f4f; --sage: #9aab84; --sage-2: #e6eddd;
  --yuzu: #f6b73c; --yuzu-ink: #c2741b; --pink: #dca9b0; --pink-2: #f7e4e6;
  --shadow: 0 1px 2px #3f2a2210, 0 12px 32px #3f2a2214;
  --radius: 22px;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Geist", -apple-system, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #17120f; --bg2: #1f1814; --card: #241c18; --line: #3a2e27;
  --ink: #f6ece3; --text: #dccbbe; --muted: #a8968a;
  --brown: #e8b48f; --brown-2: #f2c9a8; --sage: #a9bd94; --sage-2: #26301f;
  --yuzu-ink: #f6b73c; --pink-2: #3a2426;
  --shadow: 0 1px 2px #0006, 0 12px 32px #0008;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #17120f; --bg2: #1f1814; --card: #241c18; --line: #3a2e27;
    --ink: #f6ece3; --text: #dccbbe; --muted: #a8968a;
    --brown: #e8b48f; --brown-2: #f2c9a8; --sage: #a9bd94; --sage-2: #26301f;
    --yuzu-ink: #f6b73c; --pink-2: #3a2426;
    --shadow: 0 1px 2px #0006, 0 12px 32px #0008;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
img { max-width: 100%; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
section { padding: 110px 0; }
h1, h2, h3 { color: var(--ink); line-height: 1.08; margin: 0; letter-spacing: -0.02em; font-weight: 600; }
h1 { font-size: clamp(44px, 7vw, 84px); letter-spacing: -0.035em; }
h2 { font-size: clamp(34px, 4.6vw, 54px); }
h3 { font-size: 21px; letter-spacing: -0.01em; }
em.s { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--yuzu-ink); letter-spacing: -0.01em; }
.eyebrow { font: 500 13px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--brown-2); margin-bottom: 18px; }
.lead { font-size: 19px; color: var(--muted); max-width: 640px; }
.center { text-align: center; } .center .lead { margin: 22px auto 0; }

/* Boutons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px; border-radius: 999px; font: 600 17px/1 var(--sans); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brown); color: var(--bg); box-shadow: 0 8px 24px #7b4a3f40; }
:root[data-theme="dark"] .btn-primary { color: #2a1a14; }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn svg { width: 18px; height: 18px; }

/* Barre de navigation */
nav.top { position: sticky; top: 0; z-index: 20; backdrop-filter: saturate(1.4) blur(14px); background: color-mix(in srgb, var(--bg) 82%, transparent); border-bottom: 1px solid var(--line); }
nav.top .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; color: var(--ink); text-decoration: none; }
.brand img { width: 34px; height: 34px; }
nav.top .links { display: flex; gap: 26px; margin-left: auto; }
nav.top .links a { text-decoration: none; color: var(--text); font-size: 16px; }
nav.top .links a:hover { color: var(--ink); }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn.lang { font: 600 13px var(--sans); text-decoration: none; }
nav.top .btn { padding: 11px 20px; font-size: 15px; }

/* Héros */
.hero { padding: 90px 0 40px; position: relative; text-align: center; }
.hero::before, .hero::after { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; filter: blur(90px); opacity: .5; z-index: -1; }
.hero::before { background: var(--sage-2); left: -160px; top: -80px; }
.hero::after { background: var(--pink-2); right: -160px; top: 120px; }
.hero .lead { margin: 26px auto 0; font-size: 20px; }
.hero .ctas { display: flex; gap: 14px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.hero .meta { margin-top: 22px; font-size: 15px; color: var(--muted); }
.hero .meta span + span::before { content: "·"; margin: 0 10px; }
.hero .made { margin-top: 8px; font-size: 14px; color: var(--muted); opacity: .85; }

/* Bureau de démonstration (héros) */
.desk { position: relative; margin: 64px auto 0; max-width: 1060px; aspect-ratio: 16 / 9.4; border-radius: 26px; overflow: hidden;
  background: radial-gradient(120% 90% at 20% 10%, #f6d7a7 0%, transparent 55%), radial-gradient(100% 80% at 90% 30%, #e7b6b8 0%, transparent 55%), linear-gradient(160deg, #a9bd94, #7f9a83 60%, #6f8a8f);
  box-shadow: var(--shadow), 0 40px 80px #3f2a2224; border: 1px solid var(--line); }
.desk .menubar { position: absolute; inset: 0 0 auto 0; height: 30px; background: #ffffff55; backdrop-filter: blur(10px); display: flex; align-items: center; gap: 18px; padding: 0 16px; font: 600 13px var(--sans); color: #2c211b; }
.desk .menubar .right { margin-left: auto; display: flex; gap: 14px; align-items: center; opacity: .8; }
.desk .menubar img { width: 16px; height: 16px; filter: brightness(0); opacity: .75; }
.win { position: absolute; background: #fffdfb; border-radius: 12px; box-shadow: 0 18px 50px #2c211b33, 0 0 0 1px #2c211b14; overflow: hidden; }
.win .bar { height: 30px; background: #f2ece6; display: flex; align-items: center; gap: 7px; padding: 0 12px; border-bottom: 1px solid #e7ded5; }
.win .bar i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.win .bar i:nth-child(1) { background: #ff5f57; } .win .bar i:nth-child(2) { background: #febc2e; } .win .bar i:nth-child(3) { background: #28c840; }
.win .bar b { margin-left: 10px; font: 500 12px var(--sans); color: #8a7366; }
.win .body { padding: 18px; display: grid; gap: 10px; }
.win .body span { display: block; height: 10px; border-radius: 6px; background: #efe7df; }
.win .body span.s { width: 60%; } .win .body span.m { width: 82%; } .win .body span.k { background: #e6eddd; width: 40%; height: 26px; }
.desk .dock { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); height: 52px; padding: 8px 12px; display: flex; gap: 10px; border-radius: 18px; background: #ffffff4d; backdrop-filter: blur(12px); border: 1px solid #ffffff66; }
.desk .dock i { width: 36px; height: 36px; border-radius: 10px; display: block; }
.desk .pet { position: absolute; width: 96px; height: 96px; cursor: grab; z-index: 5; }
.capi-svg { width: 100%; height: 100%; display: block; overflow: visible; }
.desk .hint { position: absolute; right: 18px; bottom: 74px; font: 500 13px var(--sans); color: #fff; background: #2c211b66; padding: 7px 12px; border-radius: 999px; backdrop-filter: blur(6px); }

/* Bandeau « pensé pour » */
.marquee { border-block: 1px solid var(--line); padding: 26px 0; overflow: hidden; text-align: center; }
.marquee .eyebrow { margin-bottom: 14px; }
.marquee .track { display: flex; gap: 34px; width: max-content; animation: scroll 40s linear infinite; font-size: 20px; color: var(--muted); }
.marquee .track span::after { content: "•"; margin-left: 34px; color: var(--yuzu); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* Étapes */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.step .num { font: 500 14px var(--mono); color: var(--yuzu-ink); }
.step h3 { margin: 18px 0 10px; }
.step p { margin: 0; color: var(--muted); font-size: 16px; }

/* Talents (cartes avec un Capi vivant) */
.talents { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.talent { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.talent .stage { height: 210px; position: relative; background: linear-gradient(180deg, var(--sage-2), transparent); border-bottom: 1px solid var(--line); overflow: hidden; }
.talent .stage .pet { position: absolute; width: 150px; height: 150px; left: 50%; bottom: 14px; transform: translateX(-50%); }
.talent .stage .ground { position: absolute; left: 0; right: 0; bottom: 14px; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 14px, transparent 14px 26px); }
.talent .stage .ground.scroll { animation: ground 0.55s linear infinite; }
@keyframes ground { to { background-position: -26px 0; } }
.talent .stage .wintop { position: absolute; left: 12%; right: 12%; bottom: -6px; height: 22px; background: var(--card); border-radius: 10px 10px 0 0; box-shadow: 0 0 0 1px var(--line), 0 -6px 16px #3f2a2212; }
.talent .txt { padding: 24px 26px 28px; }
.talent h3 { margin-bottom: 8px; }
.talent p { margin: 0; color: var(--muted); font-size: 16px; }

/* Bien-être */
.care { display: grid; grid-template-columns: 1.05fr 1fr; gap: 50px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 30px; padding: 56px; box-shadow: var(--shadow); }
.moment { position: relative; padding-top: 120px; }
.moment .pet { position: absolute; width: 170px; height: 170px; left: 8%; top: 0; }
.moment .mcard { background: #fffaf3; border: 5px solid #7b4a3f; border-radius: 26px; padding: 34px 26px 28px; text-align: center; box-shadow: 0 20px 40px #3f2a2222; }
.moment .mcard b { display: block; font-size: 28px; color: #7b4a3f; letter-spacing: -0.02em; }
.moment .mcard small { display: block; margin-top: 8px; color: #8a6f63; font-size: 15px; min-height: 2.6em; }
.moment .mcard .count { margin-top: 10px; font: 700 26px var(--sans); color: #86976f; min-height: 1.3em; }
.moment .tabs { display: flex; gap: 8px; justify-content: center; margin-top: 18px; }
.moment .tabs button { font: 500 14px var(--sans); border: 1px solid var(--line); background: var(--bg); color: var(--text); padding: 8px 14px; border-radius: 999px; cursor: pointer; }
.moment .tabs button.on { background: var(--brown); color: var(--bg); border-color: transparent; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 30px 0 26px; }
.stats div { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.stats b { display: block; font-size: 26px; color: var(--ink); letter-spacing: -0.02em; }
.stats span { font-size: 14px; color: var(--muted); }
ul.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
ul.checks li { padding-left: 32px; position: relative; font-size: 16px; }
ul.checks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--sage-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%236f8a5a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }

/* Tenue ninja : scène au crépuscule */
.ninja-card { grid-template-columns: 1.1fr 1fr; }
.ninja-stage { position: relative; height: 380px; border-radius: 22px; overflow: hidden;
  background: radial-gradient(90% 70% at 80% 0%, #8c7aa6 0%, transparent 60%), linear-gradient(170deg, #3d3a4b 0%, #5b5670 55%, #8a7f8f 100%); }
.ninja-stage .moon { position: absolute; right: 9%; top: 9%; width: 46px; height: 46px; border-radius: 50%; background: #fff3c4; box-shadow: 0 0 40px #fff3c480; }
.ninja-stage .stars { position: absolute; inset: 0; background-image: radial-gradient(#fff 1px, transparent 1.5px); background-size: 46px 52px; opacity: .35; }
.ninja-stage .mini-win { position: absolute; background: #fffdfb; border-radius: 10px; box-shadow: 0 14px 36px #14101e66; }
.ninja-stage .mini-win::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 22px; background: #f2ece6; border-radius: 10px 10px 0 0; }
.ninja-stage .mini-win i { position: absolute; top: 7px; width: 8px; height: 8px; border-radius: 50%; }
.ninja-stage .mini-win i:nth-child(1) { left: 10px; background: #ff5f57; } .ninja-stage .mini-win i:nth-child(2) { left: 23px; background: #febc2e; } .ninja-stage .mini-win i:nth-child(3) { left: 36px; background: #28c840; }
.ninja-stage .ground { position: absolute; left: 0; right: 0; bottom: 0; height: 16px; background: #2b2836; }
.ninja-stage .pet { position: absolute; width: 112px; height: 112px; }
.ninja-tabs { display: flex; gap: 8px; justify-content: center; margin-top: 18px; }
.ninja-tabs button { font: 500 14px var(--sans); border: 1px solid var(--line); background: var(--bg); color: var(--text); padding: 8px 14px; border-radius: 999px; cursor: pointer; }
.ninja-tabs button.on { background: var(--brown); color: var(--bg); border-color: transparent; }
:root[data-theme="dark"] .ninja-tabs button.on { color: #2a1a14; }

/* Garde-robe : Capi à habiller soi-même */
.wardrobe-card { grid-template-columns: 1fr 1fr; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.swatches button { width: 34px; height: 34px; border-radius: 50%; border: 3px solid #7b4a3f; cursor: pointer; padding: 0; outline-offset: 3px; }
.swatches button.on { outline: 2.5px solid var(--brown); }
.chips { display: grid; gap: 8px; margin-top: 18px; }
.chip-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.chip-row span { width: 64px; font: 500 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--brown-2); }
.chips button { font: 500 14px var(--sans); border: 1px solid var(--line); background: var(--bg); color: var(--text); padding: 8px 14px; border-radius: 999px; cursor: pointer; }
.chips button.on { background: var(--brown); color: var(--bg); border-color: transparent; }
:root[data-theme="dark"] .chips button.on { color: #2a1a14; }
.chips button.outfit { border-style: dashed; }
.try { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.dress-stage { position: relative; height: 300px; border-radius: 22px; overflow: hidden; background: radial-gradient(80% 70% at 50% 30%, var(--sage-2), transparent 70%), var(--bg); border: 1px solid var(--line); }
.dress-stage .pet { position: absolute; width: 230px; height: 230px; left: 50%; bottom: 10px; transform: translateX(-50%); }
.pack-card { margin-top: 16px; padding: 18px 20px; border-radius: 18px; border: 2px dashed var(--yuzu); background: var(--bg); }
.pack-card div { display: flex; justify-content: space-between; align-items: baseline; color: var(--ink); font-size: 18px; }
.pack-price { font-weight: 700; }
.pack-card p { margin: 6px 0 14px; color: var(--muted); font-size: 15px; }
.pack-card .btn { padding: 10px 18px; font-size: 15px; }
.pack-card .btn[aria-disabled="true"] { opacity: .6; pointer-events: none; }

/* Léger et discret */
.zeros { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.zeros b { display: block; font-size: 56px; line-height: 1; color: var(--ink); letter-spacing: -0.04em; }
.zeros h3 { margin: 12px 0 8px; }
.zeros p { margin: 0; color: var(--muted); font-size: 16px; }

/* Tarifs */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; max-width: 860px; margin: 56px auto 0; }
.plan { display: flex; flex-direction: column; }
.plan.pro { border: 2px solid var(--brown); position: relative; }
.plan .tag { position: absolute; top: -13px; right: 24px; background: var(--yuzu); color: #3f2a22; font: 600 13px var(--sans); padding: 5px 12px; border-radius: 999px; }
.plan h3 { font-size: 24px; }
.plan .price { margin: 16px 0 4px; font-size: 52px; font-weight: 700; color: var(--ink); letter-spacing: -0.03em; }
.plan .price small { font-size: 17px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan .note { color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.plan ul.checks { margin-bottom: 28px; flex: 1; }
.plan .btn { justify-content: center; }
.fine { text-align: center; color: var(--muted); font-size: 14px; max-width: 640px; margin: 22px auto 0; }

/* FAQ */
.faq { max-width: 780px; margin: 50px auto 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 22px 4px; }
.faq summary { cursor: pointer; list-style: none; font-size: 19px; font-weight: 600; color: var(--ink); display: flex; justify-content: space-between; gap: 20px; }
.faq summary::after { content: "+"; font-weight: 400; color: var(--muted); font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 12px 0 0; color: var(--muted); }

/* Appel final et pied de page */
.final { text-align: center; padding: 120px 0 130px; position: relative; overflow: hidden; }
.final .pet { width: 150px; height: 150px; margin: 0 auto 10px; }
.final .ctas { margin-top: 32px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
footer { border-top: 1px solid var(--line); padding: 50px 0 60px; font-size: 15px; }
footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; }
footer h4 { margin: 0 0 12px; color: var(--ink); font-size: 15px; }
footer a { display: block; text-decoration: none; color: var(--muted); margin: 6px 0; }
footer a:hover { color: var(--ink); }
footer .small { color: var(--muted); margin-top: 12px; }

/* Téléphones et tablettes */
@media (max-width: 900px) {
  section { padding: 80px 0; }
  nav.top .links { display: none; }
  nav.top .wrap { gap: 12px; }
  nav.top .theme { margin-left: auto; }
  nav.top .lang { margin-left: auto; }
  nav.top .lang + .theme { margin-left: 0; }
  .steps, .talents, .zeros, .plans { grid-template-columns: 1fr; }
  .care, .ninja-card, .wardrobe-card { grid-template-columns: 1fr; padding: 32px 22px; }
  .ninja-stage { height: 320px; }
  .desk { aspect-ratio: 4 / 5; border-radius: 20px; }
  .desk .hint { display: none; }
  footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .stats { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .stats b { font-size: 21px; }
  .hero .meta span + span::before { margin: 0 6px; }
}
@media (prefers-reduced-motion: reduce) { .marquee .track, .talent .stage .ground.scroll { animation: none; } html { scroll-behavior: auto; } }
@media (max-width: 520px) { .hero h1 br, section h2 br { display: none; } }
