:root {
  --lime: #D8DF20; --lime-soft: #F2F5BF; --lime-dark: #55581a;
  --ink: #1d1d1b; --paper: #FBF9F4; --grey: #6b6b66; --line: #E4E0D6; --kraft: #C8A36B;
  --danger: #B3261E;
  --titre: "Libre Franklin", "Arial Black", sans-serif;
  --texte: "Nunito", "Segoe UI", sans-serif;
  --main: "Amatic SC", cursive;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { overflow-x: clip; background: var(--paper); color: var(--ink); font-family: var(--texte); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: inherit; }
p, li { text-wrap: pretty; }
.conteneur { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* Typographie */
.titre { font-family: var(--titre); font-weight: 900; text-transform: uppercase; letter-spacing: -.02em; line-height: .98; text-wrap: balance; }
.surtitre { font-weight: 900; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--grey); display: flex; align-items: center; gap: 10px; }
.surtitre::before { content: ""; width: 26px; height: 7px; background: var(--lime); }
.surligne { background: linear-gradient(var(--lime), var(--lime)) no-repeat 0 100% / 100% 42%; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.main { font-family: var(--main); font-weight: 700; }

/* En-tête */
.entete { padding: 20px 0; }
.entete .conteneur { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.logo { background: var(--ink); color: #fff; font-family: var(--titre); font-weight: 900; padding: 6px 12px; text-decoration: none; letter-spacing: .02em; }
.logo span { color: var(--lime); }
.logo-img { height: 42px; width: auto; }
.entete a.lien { font-weight: 700; font-size: 15px; color: var(--grey); text-decoration: none; }

/* Boutons */
.bouton { display: inline-flex; align-items: center; gap: 8px; background: var(--lime); color: var(--ink); font-family: var(--texte); font-weight: 900; font-size: 17px; padding: 14px 26px; border-radius: 40px; border: 2px solid var(--ink); text-decoration: none; cursor: pointer; transition: transform .15s; }
.bouton:hover { transform: translateY(-2px); }
.bouton:disabled { opacity: .6; cursor: wait; transform: none; }
.bouton.secondaire { background: transparent; }

/* Héros */
.heros { padding: 30px 0 70px; }
.heros .conteneur { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
.heros h1 { font-size: clamp(46px, 7vw, 86px); margin: 16px 0 14px; }
.heros .slogan { font-size: 21px; font-weight: 700; margin-bottom: 14px; }
.heros .intro { color: #3d3d38; margin-bottom: 26px; max-width: 560px; }
.garanties { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; font-size: 14px; font-weight: 800; color: var(--grey); }
.garanties span::before { content: "✓ "; color: var(--ink); }
.visuel { position: relative; }
.visuel img { transform: rotate(2deg); box-shadow: 0 18px 40px rgba(0,0,0,.18); border-radius: 4px; width: 100%; max-width: 420px; height: auto; margin-inline: auto; }
.postit { position: absolute; background: var(--lime); padding: 22px 16px 14px; font-family: var(--main); font-weight: 700; font-size: 25px; line-height: 1.05; box-shadow: 0 4px 10px rgba(0,0,0,.18); width: 200px; }
.postit::before { content: ""; position: absolute; top: -12px; left: 50%; width: 80px; height: 24px; transform: translateX(-50%) rotate(-3deg); background: rgba(255,255,255,.55); }

/* Sections */
section { padding: 70px 0; }
section h2 { font-size: clamp(32px, 4.5vw, 52px); margin: 14px 0 34px; }
.sombre { background: var(--ink); color: #fff; }
.sombre .surtitre { color: var(--lime); }
.cartes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.carte { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.sombre .carte { background: #2a2a27; border-color: #3a3a36; }
.carte .num { font-family: var(--titre); font-weight: 900; font-size: 34px; color: var(--lime); -webkit-text-stroke: 1.5px var(--ink); line-height: 1; margin-bottom: 12px; }
.sombre .carte .num { -webkit-text-stroke: 0; }
.carte h3 { font-size: 18px; margin-bottom: 6px; }
.carte p { font-size: 15px; color: #cfcec6; }
.apercus { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.apercus img { border-radius: 4px; box-shadow: 0 8px 22px rgba(0,0,0,.12); }
.apercus figure:nth-child(odd) img { transform: rotate(-1.5deg); }
.apercus figure:nth-child(even) img { transform: rotate(1.5deg); }
.apercus figcaption { text-align: center; font-weight: 800; font-size: 14px; margin-top: 14px; color: var(--grey); }
.etapes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: etape; }
.etapes .carte::before { counter-increment: etape; content: counter(etape); display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--lime); font-family: var(--titre); font-weight: 900; font-size: 20px; margin-bottom: 12px; }
.etapes .carte p { color: var(--grey); }

/* Formulaire */
.formulaire { background: #fff; border: 2px solid var(--ink); border-radius: 20px; padding: 36px; max-width: 820px; margin-inline: auto; box-shadow: 10px 10px 0 var(--lime); }
.progression { display: flex; gap: 10px; margin-bottom: 28px; }
.progression div { flex: 1; font-size: 13px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--grey); border-top: 6px solid var(--line); padding-top: 8px; }
.progression div.actif { color: var(--ink); border-color: var(--lime); }
.etape-form[hidden] { display: none; }
.grille { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grille .large { grid-column: 1 / -1; }
.champ label, .question legend { display: block; font-weight: 800; font-size: 15px; margin-bottom: 6px; }
.champ small { color: var(--grey); font-weight: 600; }
.champ input[type=text], .champ input[type=email], .champ input[type=tel], .champ input[type=url], .champ select {
  width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border: 1.5px solid #cfcab9; border-radius: 10px; background: var(--paper);
}
.champ input:focus, .champ select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--lime); }
.question { border: none; margin-bottom: 24px; }
.puces { display: flex; flex-wrap: wrap; gap: 8px; }
.puces label { position: relative; }
.puces input { position: absolute; opacity: 0; pointer-events: none; }
.puces span { display: inline-block; padding: 9px 15px; border: 1.5px solid #cfcab9; border-radius: 30px; font-weight: 700; font-size: 15px; cursor: pointer; background: var(--paper); transition: all .12s; }
.puces input:checked + span { background: var(--lime); border-color: var(--ink); }
.puces input:focus-visible + span { box-shadow: 0 0 0 3px var(--ink); }
.reglette { display: flex; align-items: center; gap: 16px; }
.reglette input { flex: 1; accent-color: var(--ink); height: 6px; }
.reglette output { font-family: var(--titre); font-weight: 900; font-size: 22px; min-width: 90px; }
.erreur { color: var(--danger); font-size: 14px; font-weight: 700; margin-top: 5px; min-height: 0; }
.case { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.case input { margin-top: 5px; accent-color: var(--ink); width: 18px; height: 18px; }
.actions { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.mentions { font-size: 13px; color: var(--grey); margin-top: 18px; }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.message-global { background: #FCEBEB; color: var(--danger); font-weight: 700; border-radius: 10px; padding: 12px 16px; margin-top: 16px; }

/* FAQ */
.faq { max-width: 820px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { font-weight: 800; font-size: 18px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; font-family: var(--titre); font-weight: 900; font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 10px; color: #3d3d38; }

.pied { padding: 36px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--grey); }
.pied .conteneur { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Page merci */
.suivi { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; padding: 20px 0 70px; }
.suivi h1 { font-size: clamp(38px, 6vw, 68px); margin: 14px 0 12px; }
.liste-etapes { list-style: none; margin-top: 28px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 10px 22px; }
.liste-etapes li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: start; color: #a4a198; transition: color .3s; }
.liste-etapes li:last-child { border-bottom: none; }
.liste-etapes .pastille { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #d6d2c6; display: grid; place-items: center; font-weight: 900; font-size: 14px; }
.liste-etapes b { display: block; font-size: 16px; }
.liste-etapes small { font-size: 14px; }
.liste-etapes li.en-cours { color: var(--ink); }
.liste-etapes li.en-cours .pastille { border-color: var(--ink); border-top-color: var(--lime); animation: tourne 0.9s linear infinite; }
.liste-etapes li.fait { color: var(--ink); }
.liste-etapes li.fait .pastille { background: var(--lime); border-color: var(--ink); }
.liste-etapes li.fait .pastille::after { content: "✓"; }
@keyframes tourne { to { transform: rotate(360deg); } }
.chrono { font-weight: 800; color: var(--grey); font-size: 14px; margin-top: 12px; }
.encart { background: var(--ink); color: #fff; border-radius: 18px; padding: 30px; position: relative; }
.encart h2 { font-size: 30px; color: var(--lime); margin: 0 0 14px; }
.encart p { color: #e2e1da; margin-bottom: 18px; }
.encart .postit { position: static; transform: rotate(-3deg); margin: 26px auto 0; color: var(--ink); width: auto; max-width: 280px; }
.fini { background: var(--lime-soft); border: 2px solid var(--ink); border-radius: 14px; padding: 18px 20px; margin-top: 20px; font-weight: 700; }
.fini[hidden] { display: none; }

@media (max-width: 860px) {
  .heros .conteneur, .suivi { grid-template-columns: 1fr; }
  .visuel { max-width: 380px; margin-inline: auto; }
  .cartes, .apercus { grid-template-columns: 1fr 1fr; }
  .etapes { grid-template-columns: 1fr; }
  .formulaire { padding: 24px 18px; box-shadow: 6px 6px 0 var(--lime); }
  .grille { grid-template-columns: 1fr; }
  section { padding: 50px 0; }
}
