/* Tope-là : feuille de style du site */

@font-face { font-family: "Nunito"; font-weight: 400; font-display: swap; src: url("fonts/nunito-400.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 600; font-display: swap; src: url("fonts/nunito-600.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 700; font-display: swap; src: url("fonts/nunito-700.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 800; font-display: swap; src: url("fonts/nunito-800.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 900; font-display: swap; src: url("fonts/nunito-900.woff2") format("woff2"); }

:root {
  --cream: #FFF6EF;
  --paper: #FFFFFF;
  --peach: #F07F67;
  --peach-ink: #C4513A;      /* pêche assez foncé pour du texte lisible */
  --peach-soft: #FDE4DA;
  --lav: #9D8DE0;
  --lav-ink: #6553B8;
  --lav-soft: #ECE8FB;
  --honey: #F4BE5E;
  --honey-soft: #FDF0D5;
  --sage: #5E9A6F;
  --cocoa: #3D2B26;
  --cocoa-soft: #7A655E;
  --line: #F1E3D9;
  --radius-l: 32px;
  --radius-m: 20px;
  --shadow: 0 18px 40px -18px rgba(150, 70, 45, .28);
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--cocoa);
  font-family: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.6;
  font-weight: 400;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--peach-ink); text-underline-offset: 3px; }
a:hover { color: var(--cocoa); }
:focus-visible { outline: 3px solid var(--lav-ink); outline-offset: 3px; border-radius: 8px; }

h1, h2, h3 { font-weight: 900; line-height: 1.08; margin: 0; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.6rem, 6.2vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); }
h3 { font-size: 1.35rem; line-height: 1.25; letter-spacing: -0.01em; }
p { margin: 0; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--cocoa); color: #fff; padding: 10px 16px; border-radius: 0 0 12px 0; z-index: 20; }
.skip:focus { left: 0; }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255, 246, 239, .88); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { white-space: nowrap; display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--cocoa); font-weight: 900; font-size: 1.35rem; letter-spacing: -0.02em; }
.brand img { width: 38px; height: 38px; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--cocoa); text-decoration: none; font-weight: 700; font-size: 1rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--peach-ink); }
.nav .btn { padding: 10px 18px; font-size: .95rem; }
.nav .btn-store, .nav .btn-store:hover { color: #fff; }
@media (max-width: 760px) { .nav .hide-sm { display: none; } .nav { gap: 16px; } }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 26px; border-radius: 999px; font-weight: 800; font-size: 1.05rem; text-decoration: none; border: 0; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.btn:active { transform: scale(.97); }
.btn-store { background: var(--cocoa); color: #fff; box-shadow: 0 10px 22px -10px rgba(61, 43, 38, .6); }
.btn-store:hover { color: #fff; box-shadow: 0 14px 26px -10px rgba(61, 43, 38, .7); }
.btn svg { width: 22px; height: 22px; fill: currentColor; margin-top: -2px; }
.btn-peach { background: var(--peach); color: #fff; box-shadow: 0 10px 22px -10px rgba(240, 127, 103, .8); }
.btn-peach:hover { color: #fff; }

/* ---------- Héros ---------- */
.hero { padding: 56px 0 40px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 40px; }
.hero-copy p.lead { font-size: 1.25rem; color: var(--cocoa-soft); margin-top: 22px; max-width: 34ch; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 32px; }
.hero-cta small { color: var(--cocoa-soft); font-size: .95rem; font-weight: 600; }
.hero-art { position: relative; }
.hero-art .illu { width: 100%; max-width: 560px; margin-inline: auto; }

/* La carte « Notre semaine » : l'élément signature, reprise de l'app */
.week-card { position: absolute; left: -6%; bottom: 2%; width: min(320px, 70%); background: var(--paper); border-radius: 26px; padding: 18px 18px 16px; box-shadow: var(--shadow); }
.week-card .head { display: flex; justify-content: space-between; align-items: baseline; font-weight: 800; font-size: .95rem; }
.week-card .head span { color: var(--cocoa-soft); font-weight: 700; font-size: .85rem; }
.week-card .duo { display: grid; grid-template-columns: 1fr 1px 1fr; gap: 10px; margin-top: 14px; align-items: center; }
.week-card .divider { background: var(--line); height: 80%; }
.person { display: flex; flex-direction: column; align-items: center; gap: 6px; font-weight: 800; font-size: .95rem; }
.ring { position: relative; width: 74px; height: 74px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 900; font-size: 1.05rem; }
.ring .track { fill: none; stroke-width: 9; opacity: .16; }
.ring .bar { fill: none; stroke-width: 9; stroke-linecap: round; stroke-dasharray: 0 999; animation: fill 1.2s .4s cubic-bezier(.2, .8, .2, 1) forwards; }
@keyframes fill { to { stroke-dasharray: var(--p) 999; } }
.week-card .status { margin-top: 12px; background: var(--cream); border-radius: 14px; padding: 9px 12px; font-size: .88rem; font-weight: 700; text-align: center; }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { margin-top: 10px; }
  .week-card { position: relative; left: auto; bottom: auto; margin: -36px auto 0; width: min(340px, 100%); }
}
@media (max-width: 420px) { .nav { gap: 12px; } .nav a { font-size: .92rem; } .nav .btn { padding: 9px 14px; } .brand { font-size: 1.2rem; } .brand img { width: 32px; height: 32px; } }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-head { max-width: 640px; }
.section-head p { color: var(--cocoa-soft); font-size: 1.15rem; margin-top: 16px; }

/* Étapes : une vraie séquence, donc numérotée */
.steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.steps li { position: relative; background: var(--paper); border-radius: var(--radius-l); padding: 30px 26px 28px; counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--peach-soft); color: var(--peach-ink); font-weight: 900; font-size: 1.2rem; margin-bottom: 18px; }
.steps li:nth-child(2)::before { background: var(--lav-soft); color: var(--lav-ink); }
.steps li:nth-child(3)::before { background: var(--honey-soft); color: #9A6B12; }
.steps h3 { margin-bottom: 10px; }
.steps p { color: var(--cocoa-soft); font-size: 1.02rem; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Sports */
.sports { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; padding: 0; list-style: none; }
.sports li { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px 10px 12px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-weight: 700; font-size: 1rem; }
.sports svg { width: 22px; height: 22px; fill: var(--peach); }
.sports li:nth-child(even) svg { fill: var(--lav); }

/* Fonctionnalités en alternance */
.feature { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 56px; }
.feature + .feature { margin-top: 90px; }
.feature.flip .feature-art { order: 2; }
.feature-art { border-radius: var(--radius-l); background: var(--paper); padding: 28px; }
.feature-art.lav { background: var(--lav-soft); }
.feature-art.honey { background: var(--honey-soft); }
.feature-art img { width: 100%; max-width: 440px; margin-inline: auto; }
.feature-copy p { color: var(--cocoa-soft); font-size: 1.12rem; margin-top: 16px; max-width: 44ch; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }
.ticks svg { flex: none; width: 24px; height: 24px; margin-top: 2px; fill: var(--sage); }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; gap: 28px; } .feature.flip .feature-art { order: 0; } }

/* Petites fonctions */
.extras { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 40px; margin-top: 50px; }
.extra svg { width: 30px; height: 30px; fill: var(--peach); }
.extra:nth-child(3n+2) svg { fill: var(--lav); }
.extra:nth-child(3n) svg { fill: var(--honey); }
.extra h3 { font-size: 1.15rem; margin: 12px 0 6px; }
.extra p { color: var(--cocoa-soft); font-size: 1rem; }
@media (max-width: 860px) { .extras { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .extras { grid-template-columns: 1fr; } }

/* Tarif */
.pricing { background: var(--paper); border-radius: 40px; padding: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.pricing .who { display: flex; align-items: center; gap: 12px; margin-top: 22px; font-weight: 700; }
.pricing .who .dots { display: flex; }
.pricing .who .dots span { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--paper); }
.pricing .who .dots span:first-child { background: var(--peach); }
.pricing .who .dots span:last-child { background: var(--lav); margin-left: -10px; }
.plans { display: grid; gap: 14px; }
.plan { border: 2px solid var(--line); border-radius: var(--radius-m); padding: 20px 22px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.plan.best { border-color: var(--peach); background: #FFFBF8; }
.plan h3 { font-size: 1.2rem; }
.plan .sub { color: var(--cocoa-soft); font-size: .95rem; font-weight: 600; }
.plan .price { font-weight: 900; font-size: 1.6rem; white-space: nowrap; text-align: right; line-height: 1.1; }
.plan .price small { display: block; font-size: .85rem; font-weight: 700; color: var(--peach-ink); }
.badge { display: inline-block; background: var(--sage); color: #fff; font-weight: 800; font-size: .78rem; padding: 3px 9px; border-radius: 999px; margin-left: 8px; vertical-align: 2px; }
.fineprint { color: var(--cocoa-soft); font-size: .88rem; margin-top: 16px; }
@media (max-width: 860px) { .pricing { grid-template-columns: 1fr; padding: 34px 24px; gap: 30px; } }

/* FAQ */
.faq { margin-top: 36px; max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; font-weight: 800; font-size: 1.12rem; padding: 18px 40px 18px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; border-right: 3px solid var(--peach); border-bottom: 3px solid var(--peach); transform: translateY(-70%) rotate(45deg); transition: transform .2s ease; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p, .faq details ul { color: var(--cocoa-soft); padding: 0 0 20px; margin: 0; font-size: 1.04rem; }
.faq details ul { padding-left: 22px; }
.faq details li + li { margin-top: 6px; }

/* Appel final */
.final { text-align: center; }
.final .wrap { display: flex; flex-direction: column; align-items: center; }
.final img { width: min(300px, 70%); margin-bottom: 8px; }
.final p { color: var(--cocoa-soft); font-size: 1.15rem; margin: 14px 0 28px; }
.disclaimer { color: var(--cocoa-soft); font-size: .92rem; max-width: 70ch; margin: 64px auto 0; text-align: center; }

/* ---------- Pied de page ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; margin-top: 40px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.site-footer a { color: var(--cocoa); text-decoration: none; font-weight: 700; font-size: .95rem; }
.site-footer a:hover { color: var(--peach-ink); }
.site-footer p { color: var(--cocoa-soft); font-size: .92rem; }

/* ---------- Pages de texte (légal, assistance) ---------- */
.doc { padding: 56px 0 40px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.doc .updated { color: var(--cocoa-soft); margin-top: 12px; font-weight: 600; }
.doc .intro { font-size: 1.15rem; margin-top: 22px; color: var(--cocoa-soft); }
.doc h2 { font-size: 1.6rem; margin: 48px 0 14px; letter-spacing: -0.015em; }
.doc h3 { font-size: 1.15rem; margin: 26px 0 8px; }
.doc p + p { margin-top: 14px; }
.doc ul { padding-left: 22px; margin: 12px 0 0; }
.doc li + li { margin-top: 8px; }
.doc table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 1rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 10px; border-bottom: 1px solid var(--line); }
.doc th { font-weight: 800; }
.doc .tablewrap { overflow-x: auto; }
.callout { background: var(--paper); border-radius: var(--radius-m); padding: 22px 24px; margin-top: 26px; }
.callout.lav { background: var(--lav-soft); }
.callout strong { display: block; margin-bottom: 6px; }
.contact-mail { font-size: 1.35rem; font-weight: 900; }
.toc { margin-top: 26px; padding: 18px 22px; background: var(--paper); border-radius: var(--radius-m); }
.toc ol { margin: 0; padding-left: 22px; columns: 2; column-gap: 32px; }
.toc a { color: var(--cocoa); font-weight: 700; text-decoration: none; }
.toc a:hover { color: var(--peach-ink); }
@media (max-width: 600px) { .toc ol { columns: 1; } }

.notfound { text-align: center; padding: 80px 0 40px; }
.notfound img { width: min(280px, 70%); margin: 0 auto 20px; }
.notfound p { color: var(--cocoa-soft); margin: 14px 0 28px; font-size: 1.15rem; }
