/* Noté — page de préinscription. Polices hébergées ici (aucun appel à Google Fonts). */
@font-face { font-family: "Fredoka"; font-weight: 700; font-display: swap; src: url("fonts/fredoka-700.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 {
  --rose: #F6B8CC;
  --rose-clair: #FCE4EC;
  --papier: #FFF7FA;
  --encre: #2B1328;
  --encre-douce: #5E3F57;
  --framboise: #D6336C;
  --framboise-texte: #BE2459;
  --framboise-fonce: #9C1C48;
  --vert: #2FB59A;
  --blanc: #FFFFFF;
  --bord: #F0DCE5;
  --lavande: #E3DAF7;
  --menthe: #D3F1E8;
  --ciel: #D6E9FA;
  --miel: #FCEFC7;
  --rayon: 22px;
  --ombre: 0 18px 40px -24px rgba(90, 30, 70, .45);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--framboise-texte); text-underline-offset: 3px; }
a:hover { color: var(--framboise-fonce); }
:focus-visible { outline: 3px solid var(--encre); outline-offset: 3px; border-radius: 6px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

.skip { position: absolute; left: 16px; top: -60px; background: var(--encre); color: #fff; padding: 10px 16px; border-radius: 12px; z-index: 10; text-decoration: none; }
.skip:focus { top: 12px; color: #fff; }

/* ---------- En-tête ---------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0; }
.logo { font-family: "Fredoka", "Nunito", sans-serif; font-weight: 700; font-size: 32px; letter-spacing: -.5px; color: var(--encre); text-decoration: none; line-height: 1; }
.logo span { color: var(--framboise); }
.logo:hover { color: var(--encre); }
.pill { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.72); border: 1.5px solid rgba(43,19,40,.08); padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 800; white-space: nowrap; }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--framboise); display: block; }

/* ---------- Haut de page ---------- */
.hero { position: relative; background: var(--rose); overflow: hidden; isolation: isolate; padding-bottom: 56px; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; z-index: -1; }
.hero::before { width: 520px; height: 520px; right: -160px; top: -120px; background: rgba(255,255,255,.28); }
.hero::after { width: 380px; height: 380px; left: -170px; bottom: -140px; background: rgba(255,255,255,.22); }
.hero-grid { display: grid; gap: 28px; padding-top: 8px; }
.kicker { display: inline-block; font-weight: 900; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: var(--framboise-texte); margin: 6px 0 10px; }
h1 { font-family: "Fredoka", "Nunito", sans-serif; font-weight: 700; font-size: clamp(42px, 11vw, 74px); line-height: 1.02; letter-spacing: -1px; margin: 0; }
.slogan { font-family: "Fredoka", "Nunito", sans-serif; font-size: clamp(24px, 6vw, 32px); margin: 12px 0 0; color: var(--framboise-texte); }
.lead { font-size: 18px; color: var(--encre-douce); margin: 16px 0 0; max-width: 34ch; }
.lead q { color: var(--encre); quotes: "« " " »"; }

/* ---------- Formulaire ---------- */
.card { background: var(--blanc); border-radius: var(--rayon); border: 1.5px solid var(--bord); box-shadow: 0 5px 0 var(--bord), var(--ombre); }
.form-card { padding: 22px 20px 20px; margin-top: 26px; max-width: 480px; }
.form-card h2 { font-family: "Fredoka", "Nunito", sans-serif; font-size: 23px; line-height: 1.2; margin: 0 0 4px; }
.form-card .sub { margin: 0 0 16px; font-size: 15px; color: var(--encre-douce); }
label.champ { display: block; font-weight: 900; font-size: 15px; margin-bottom: 6px; }
input[type="email"] {
  width: 100%; font: inherit; font-weight: 800; font-size: 17px; color: var(--encre);
  padding: 14px 16px; border-radius: 16px; border: 2px solid #E7CFDA; background: var(--papier);
  transition: border-color .15s, box-shadow .15s;
}
input[type="email"]::placeholder { color: #A68A9C; font-weight: 700; }
input[type="email"]:focus { outline: none; border-color: var(--framboise); box-shadow: 0 0 0 4px rgba(214,51,108,.18); }
input[aria-invalid="true"] { border-color: var(--framboise-texte); }
.coche { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; margin: 16px 0 4px; font-size: 14.5px; line-height: 1.45; color: var(--encre-douce); cursor: pointer; }
.coche input { appearance: none; -webkit-appearance: none; width: 26px; height: 26px; margin: 0; border-radius: 8px; border: 2px solid #D9B8C8; background: var(--blanc); display: grid; place-content: center; cursor: pointer; transition: background .15s, border-color .15s; }
.coche input::after { content: ""; width: 12px; height: 7px; border-left: 3px solid #fff; border-bottom: 3px solid #fff; transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform .15s; }
.coche input:checked { background: var(--vert); border-color: var(--vert); }
.coche input:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.coche input:focus-visible { outline: 3px solid var(--encre); outline-offset: 2px; }
.coche b { color: var(--encre); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.robot { min-height: 0; margin-top: 10px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  margin-top: 14px; padding: 16px 22px; border: 0; border-radius: 18px; cursor: pointer;
  font: inherit; font-weight: 900; font-size: 18px; color: #fff; background: var(--framboise-texte);
  box-shadow: 0 5px 0 var(--framboise-fonce); transform: translateY(0); transition: transform .08s, box-shadow .08s, background .15s;
  text-decoration: none;
}
.btn:hover { background: #B01F51; color: #fff; }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--framboise-fonce); }
.btn[disabled] { opacity: .7; cursor: progress; }
.btn .rond { width: 18px; height: 18px; border-radius: 50%; border: 3px solid rgba(255,255,255,.4); border-top-color: #fff; display: none; animation: tourne .8s linear infinite; }
.btn.charge .rond { display: block; }
@keyframes tourne { to { transform: rotate(360deg); } }
.message { margin: 12px 0 0; font-size: 15px; font-weight: 800; min-height: 0; }
.message.erreur { color: var(--framboise-texte); }
.petit { font-size: 13.5px; color: var(--encre-douce); margin: 14px 0 0; line-height: 1.5; }
noscript p { background: var(--miel); padding: 10px 12px; border-radius: 12px; font-size: 14px; margin: 12px 0 0; }

/* ---------- Visuel téléphone ---------- */
.visuel { position: relative; display: grid; place-items: center; padding: 10px 0 0; }
.phone {
  position: relative; width: min(300px, 78vw); aspect-ratio: 480 / 1000; border-radius: 46px; padding: 11px;
  background: #1E0F1C; box-shadow: 0 40px 70px -30px rgba(60, 10, 40, .55), inset 0 0 0 2px #3A2236;
  transform: rotate(-3deg);
}
.phone .ecran { width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: #FFF6F9; }
.phone .ecran img { width: 100%; height: auto; }
.noto { position: absolute; width: min(130px, 32vw); left: max(2px, calc(50% - min(300px, 78vw) / 2 - 46px)); bottom: 40px; z-index: 2; transform: rotate(-8deg); filter: drop-shadow(0 14px 16px rgba(90,30,70,.25)); }
.bulle { position: absolute; right: max(0px, calc(50% - min(300px, 78vw) / 2 - 40px)); top: 4%; background: var(--blanc); border-radius: 18px 18px 6px 18px; padding: 10px 14px; font-size: 14px; font-weight: 900; box-shadow: var(--ombre); display: flex; align-items: center; gap: 8px; max-width: 210px; line-height: 1.3; z-index: 2; }
.bulle .mic { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--framboise-texte); display: grid; place-items: center; }
.bulle .mic svg { width: 14px; height: 14px; }
.badge-ok { position: absolute; right: max(4px, calc(50% - min(300px, 78vw) / 2 - 28px)); bottom: 22%; background: var(--vert); color: #0F2E27; border-radius: 999px; padding: 8px 14px; font-weight: 900; font-size: 14px; box-shadow: 0 5px 0 #23917B; }

/* ---------- Sections ---------- */
section { padding: 64px 0; }
h2.titre { font-family: "Fredoka", "Nunito", sans-serif; font-size: clamp(30px, 7.5vw, 44px); line-height: 1.08; margin: 0 0 10px; letter-spacing: -.5px; }
.intro { color: var(--encre-douce); margin: 0 0 28px; max-width: 46ch; font-size: 18px; }
.etapes { display: grid; gap: 16px; padding: 0; margin: 0; list-style: none; }
.etape { padding: 22px 20px; position: relative; }
.etape .num { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-family: "Fredoka", sans-serif; font-size: 22px; margin-bottom: 12px; }
.etape:nth-child(1) .num { background: var(--rose-clair); }
.etape:nth-child(2) .num { background: var(--lavande); }
.etape:nth-child(3) .num { background: var(--menthe); }
.etape h3 { font-family: "Fredoka", sans-serif; font-size: 22px; margin: 0 0 6px; }
.etape p { margin: 0; color: var(--encre-douce); }
.etape .exemple { display: inline-block; margin-top: 10px; background: var(--papier); border: 1.5px dashed #E2C3D2; border-radius: 12px; padding: 6px 10px; font-size: 14.5px; color: var(--encre); }

.echo { background: var(--lavande); border-radius: 36px; padding: 36px 22px; display: grid; gap: 22px; align-items: center; overflow: hidden; position: relative; }
.echo img { width: 170px; margin-inline: auto; filter: drop-shadow(0 16px 18px rgba(60,30,90,.22)); }
.echo p { margin: 0 0 10px; color: var(--encre-douce); }
.echo .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.echo .tags span { background: rgba(255,255,255,.75); border-radius: 999px; padding: 6px 12px; font-size: 14px; font-weight: 900; }

.faq { display: grid; gap: 12px; max-width: 760px; }
.faq details { padding: 0; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 54px 18px 20px; font-weight: 900; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 9px; background: var(--rose-clair); display: grid; place-items: center; font-family: "Fredoka", sans-serif; font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq .rep { padding: 0 20px 18px; color: var(--encre-douce); }
.faq .rep p { margin: 0 0 8px; }

.final { background: var(--encre); color: #fff; border-radius: 36px; padding: 40px 24px; text-align: center; }
.final h2 { color: #fff; }
.final p { color: #E9D6E2; margin: 0 auto 22px; max-width: 40ch; }
.final .btn { width: auto; background: var(--rose); color: var(--encre); box-shadow: 0 5px 0 #C9849C; }
.final .btn:hover { background: #F9C9D8; color: var(--encre); }

/* ---------- Pied de page ---------- */
footer { padding: 40px 0 48px; font-size: 15px; color: var(--encre-douce); }
.pied { display: grid; gap: 18px; }
.reseaux { display: flex; gap: 10px; flex-wrap: wrap; }
.reseaux a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--encre); background: var(--blanc); border: 1.5px solid var(--bord); padding: 8px 14px; border-radius: 999px; font-weight: 900; font-size: 14.5px; }
.reseaux a:hover { border-color: var(--framboise); }
.reseaux svg { width: 16px; height: 16px; }
.liens { display: flex; gap: 8px 18px; flex-wrap: wrap; }
.liens a { color: var(--encre-douce); font-weight: 800; }
.mention { font-size: 13px; color: #8A6E80; margin: 0; }

/* ---------- Pages simples (merci, légal) ---------- */
.simple { min-height: 100vh; display: flex; flex-direction: column; }
.simple main { flex: 1; }
.bandeau { background: var(--rose); padding-bottom: 8px; }
.centre { text-align: center; padding: 48px 0 72px; }
.centre img { width: 150px; margin: 0 auto 18px; }
.centre h1 { font-size: clamp(36px, 9vw, 56px); }
.centre p { color: var(--encre-douce); max-width: 40ch; margin: 14px auto 0; font-size: 18px; }
.centre .btn { width: auto; margin-top: 26px; }
.legal { max-width: 760px; padding: 40px 0 64px; }
.legal h1 { font-size: clamp(34px, 8vw, 48px); margin-bottom: 8px; }
.legal .maj { color: var(--encre-douce); margin: 0 0 28px; font-size: 15px; }
.legal h2 { font-family: "Fredoka", sans-serif; font-size: 24px; margin: 34px 0 8px; }
.legal p, .legal li { color: #44283E; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal .encadre { background: var(--blanc); border: 1.5px solid var(--bord); border-radius: 18px; padding: 16px 18px; margin: 12px 0; }
.legal table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 10px 0; display: block; overflow-x: auto; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1.5px solid var(--bord); }
.legal th { font-weight: 900; color: var(--encre); background: var(--rose-clair); }

/* ---------- Apparition douce ---------- */
.js .monte { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .monte.vu { opacity: 1; transform: none; }
.flotte { animation: flotte 5s ease-in-out infinite; }
@keyframes flotte { 50% { transform: translateY(-8px) rotate(-8deg); } }
.bulle.flotte { animation-name: flotte-b; animation-duration: 6s; }
@keyframes flotte-b { 50% { transform: translateY(-6px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .flotte, .bulle.flotte, .btn .rond { animation: none; }
  .js .monte { opacity: 1; transform: none; transition: none; }
}

/* ---------- Écrans larges ---------- */
@media (min-width: 900px) {
  body { font-size: 18px; }
  .hero { padding-bottom: 80px; }
  .hero-grid { grid-template-columns: 1.05fr .95fr; align-items: center; gap: 40px; padding-top: 24px; }
  .visuel { padding: 0; }
  .phone { width: 330px; }
  .noto { width: 170px; left: 6px; bottom: 60px; }
  .bulle { right: 0; top: 5%; }
  .badge-ok { right: 30px; bottom: 26%; }
  section { padding: 96px 0; }
  .etapes { grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .echo { grid-template-columns: 240px 1fr; padding: 48px 56px; }
  .echo img { width: 210px; }
  .final { padding: 64px 40px; }
  .pied { grid-template-columns: 1fr auto; align-items: center; }
}

/* Tableau de la politique de confidentialité : en cartes sur téléphone */
@media (max-width: 640px) {
  .legal table, .legal tbody, .legal tr, .legal td { display: block; width: 100%; }
  .legal thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .legal tr { background: var(--blanc); border: 1.5px solid var(--bord); border-radius: 16px; padding: 6px 4px; margin-bottom: 12px; }
  .legal td { border: 0; padding: 6px 12px; }
  .legal td::before { content: attr(data-label); display: block; font-weight: 900; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--framboise-texte); }
}
