/* =========================================================
   KSTUDIO CAMP · landing
   Même DA que le module : aplats, contours encre, ombres dures,
   Bricolage Grotesque + Geist Mono. Mobile d'abord (375 px).
   ========================================================= */
:root {
  --fond: #F9F8F5;
  --carte: #FFFFFF;
  --encre: #14181A;
  --sombre: #0D1A18;
  --orange: #FB923C;
  --orange-f: #C2410C;
  --teal: #9AD0C9;
  --teal-f: #2F6F68;
  --creme-orange: #FFEBD6;
  --creme-teal: #DDF0EC;
  --gris: #4F4F4C;

  --font: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --gut: 16px;
  --r: 18px;
  --trait: 3px solid var(--encre);
  --ombre: 4px 4px 0 var(--encre);
  --nav-h: 56px;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); background: var(--sombre); }
body {
  margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.5;
  color: var(--encre); background: var(--fond); overflow-x: clip;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--orange); color: var(--encre); padding: 10px 14px; border-radius: 10px; border: var(--trait); }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gut); }

/* ---------- typo ---------- */
h1, h2, h3 { font-family: var(--font); letter-spacing: -.02em; text-wrap: balance; }
h1 { font-weight: 800; font-size: clamp(40px, 11.5vw, 84px); line-height: .98; }
h2 { font-weight: 800; font-size: clamp(29px, 7.6vw, 52px); line-height: 1.04; margin-bottom: 18px; }
h3 { font-weight: 700; font-size: 21px; line-height: 1.15; }
.etiquette {
  display: inline-block; font: 700 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--orange-f); margin-bottom: 14px;
}
.etiquette--clair { color: var(--orange); }

/* ---------- boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; text-align: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px; cursor: pointer; text-decoration: none;
  font-weight: 700; font-size: 16px; line-height: 1.15;
  background: var(--orange); color: var(--encre); border: var(--trait); box-shadow: var(--ombre);
  transition: transform .15s, box-shadow .15s, background .2s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--encre); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--encre); }
.btn--grand { min-height: 56px; padding: 14px 26px; font-size: 18px; }
.btn--petit { min-height: 40px; padding: 8px 16px; font-size: 14px; box-shadow: 3px 3px 0 var(--encre); }
.btn--fantome { background: transparent; color: inherit; box-shadow: none; border-color: currentColor; }
.btn--fantome:hover { background: rgba(255, 255, 255, .1); box-shadow: none; transform: none; }
.bloc--sombre .btn { border-color: var(--fond); box-shadow: 4px 4px 0 var(--fond); }
.bloc--sombre .btn--fantome, .hero .btn--fantome { border-color: var(--fond); box-shadow: none; color: var(--fond); }
.btn--sombre { background: var(--encre); color: var(--fond); }
.btn--sombre:hover { background: #000; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 0 var(--gut); background: rgba(13, 26, 24, .92); color: var(--fond);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.nav .btn { border-color: var(--fond); box-shadow: 3px 3px 0 var(--fond); }
.nav__logo { display: inline-flex; align-items: center; gap: 8px; font: 700 13px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.nav__pastille { width: 14px; height: 14px; border-radius: 50%; background: var(--orange); border: 2.5px solid currentColor; flex: none; }

/* ---------- blocs ---------- */
.bloc { padding: 64px 0; position: relative; }
.bloc--clair { background: var(--fond); }
.bloc--creme { background: var(--creme-orange); }
.bloc--teal { background: var(--creme-teal); }
.bloc--orange { background: var(--orange); }
.bloc--orange .etiquette { color: var(--encre); }
.bloc--sombre { background: var(--sombre); color: var(--fond); }

/* ---------- hero ---------- */
.hero { background: var(--sombre); color: var(--fond); padding: calc(var(--nav-h) + 28px) 0 56px; overflow: clip; }
.hero__grille { display: grid; gap: 28px; }
.hero__sous { margin-top: 20px; font-size: 19px; max-width: 34ch; color: #DCE6E3; }
.hero__cta { display: flex; flex-direction: column; gap: 12px; margin-top: 26px; }
.hero__micro { margin-top: 16px; font: 500 13px/1.4 var(--mono); color: var(--teal); }
.souligne { position: relative; display: inline-block; color: var(--orange); }
.souligne svg { position: absolute; left: 0; bottom: -.14em; width: 100%; height: .22em; overflow: visible; }
.souligne path { fill: none; stroke: var(--orange); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 340; stroke-dashoffset: 340; animation: trace 1s .5s cubic-bezier(.6, 0, .2, 1) forwards; }
@keyframes trace { to { stroke-dashoffset: 0; } }

.hero__visuel { display: flex; justify-content: center; }
.scene-main { position: relative; width: min(100%, 360px); aspect-ratio: 340 / 330; }
.scene-main .main-svg { width: 78%; margin-left: 22%; overflow: visible; }
.klemy--hero { position: absolute; left: -2%; bottom: -4%; width: 44%; }

/* ---------- Klemy ---------- */
.klemy svg { width: 100%; height: auto; overflow: visible; }
.klemy .bouche, .klemy .joue, .klemy .goutte, .klemy .interro, .klemy .etincelles { opacity: 0; }

/* ---------- la main (partagée hero + section) ---------- */
.main-svg .palme { fill: #FFF6EA; stroke: var(--encre); stroke-width: 4; }
.main-svg .peau { fill: #FFF6EA; stroke: var(--encre); stroke-width: 4; transition: fill .3s; }
.main-svg .ongle { fill: rgba(20, 24, 26, .08); }
.main-svg .etiq { font: 800 15px var(--font); fill: var(--encre); letter-spacing: -.01em; }
.main-svg .coche { fill: none; stroke: var(--encre); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.main-svg .doigt[data-etat="allume"] .peau { fill: var(--orange); }
.main-svg .doigt[data-etat="allume"] { filter: drop-shadow(0 0 9px rgba(251, 146, 60, .9)); }
.main-svg .doigt[data-etat="valide"] .peau { fill: var(--teal); }
.main-svg .doigt[data-etat="valide"] .coche { opacity: 1; }

/* ---------- principe ---------- */
.principe { display: grid; gap: 32px; }
.principe p + p { margin-top: 14px; }
.principe__texte p { font-size: 18px; max-width: 52ch; }
.bulles { position: relative; display: grid; gap: 16px; padding-bottom: 6px; }
.bulle { border: var(--trait); border-radius: var(--r); padding: 14px 18px 16px; box-shadow: var(--ombre); }
.bulle__etiq { display: block; font: 700 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; }
.bulle p { font-weight: 700; font-size: 20px; line-height: 1.25; }
.bulle--dit { background: #fff; }
.bulle--dit .bulle__etiq { color: var(--orange-f); }
.bulle--pense { background: var(--creme-teal); border-style: dashed; margin-left: 28px; }
.bulle--pense .bulle__etiq { color: var(--teal-f); }
.klemy--bulles { width: 110px; margin-top: 2px; }

/* ---------- comment ça marche ---------- */
.etapes { display: grid; gap: 16px; margin-top: 24px; }
.etape { position: relative; background: #fff; border: var(--trait); border-radius: var(--r); box-shadow: var(--ombre); padding: 18px 18px 20px 72px; }
.etape p { margin-top: 6px; color: var(--gris); }
.etape__n { position: absolute; left: 16px; top: 16px; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--orange); border: var(--trait); font: 800 20px/1 var(--font); }
.jours { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0 0 -54px; }
.jours li { background: var(--creme-orange); border: 2.5px solid var(--encre); border-radius: 14px; padding: 8px 8px 10px; display: flex; flex-direction: column; gap: 4px; }
.jours b { font: 700 13px/1 var(--mono); color: var(--orange-f); }
.jours span { font-size: 13px; line-height: 1.2; font-weight: 600; }

.sous-titre { margin: 52px 0 18px; }
.telephones { display: flex; gap: 20px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; padding: 6px var(--gut) 18px; margin: 0 calc(var(--gut) * -1); scrollbar-width: thin; }
.tel { flex: 0 0 min(66vw, 250px); scroll-snap-align: center; text-align: center; }
.tel__cadre { position: relative; background: var(--encre); border-radius: 34px; padding: 9px; box-shadow: var(--ombre); aspect-ratio: 390 / 690; }
.tel__cadre::before { content: ""; position: absolute; top: 15px; left: 50%; width: 54px; height: 6px; margin-left: -27px; border-radius: 6px; background: #000; z-index: 2; }
.tel__cadre img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 26px; background: var(--fond); }
.tel figcaption { margin-top: 14px; font-size: 14px; line-height: 1.3; color: var(--gris); }
.tel figcaption b { display: block; color: var(--encre); font-size: 16px; }

/* ---------- la main : section signature ---------- */
.main-intro { color: #DCE6E3; max-width: 46ch; margin-bottom: 8px; }
.main-scene { display: grid; gap: 0; margin-top: 8px; }
.main-pin { position: sticky; top: var(--nav-h); z-index: 5; display: flex; justify-content: center; padding: 10px 0 12px; background: linear-gradient(var(--sombre) 82%, rgba(13, 26, 24, 0)); }
.main-pin .main-svg { height: 190px; width: auto; overflow: visible; }
.doigts { display: grid; gap: 16px; padding: 14px 0 6px; }
.doigt-etape { border: 3px solid rgba(249, 248, 245, .22); border-radius: var(--r); padding: 16px 18px 18px; transition: border-color .3s, background .3s, transform .3s; opacity: .55; }
.doigt-etape.actif { border-color: var(--orange); background: rgba(251, 146, 60, .1); opacity: 1; }
.doigt-etape.fait { opacity: .85; border-color: var(--teal); }
.doigt-etape__tete { display: flex; align-items: center; gap: 10px; font: 700 14px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--orange); }
.doigt-etape__tete b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--orange); color: var(--encre); font-size: 14px; }
.doigt-etape.fait .doigt-etape__tete { color: var(--teal); }
.doigt-etape.fait .doigt-etape__tete b { background: var(--teal); }
.doigt-etape__astuce { margin-top: 10px; font-size: 19px; font-weight: 700; line-height: 1.25; }
.doigt-etape__ligne { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(249, 248, 245, .08); font: 500 15px/1.4 var(--mono); color: #DCE6E3; }
.phrase { margin-top: 56px; text-align: center; font-weight: 800; font-size: clamp(34px, 10vw, 76px); line-height: 1; letter-spacing: -.03em; text-wrap: balance; }
.phrase em { font-style: normal; color: var(--orange); }
.phrase-signe { text-align: center; margin-top: 12px; font: 700 13px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--teal); }
.cta-ligne { display: flex; justify-content: center; margin-top: 32px; }

.bientot { display: inline-block; vertical-align: middle; margin-left: 6px; padding: 4px 9px; border-radius: 999px; background: var(--encre); color: var(--fond); font: 700 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.regle { margin: 40px auto 0; max-width: 34ch; padding: 16px 18px; border: 3px dashed var(--teal); border-radius: var(--r); text-align: center; font-size: 20px; line-height: 1.3; }
.regle b { display: block; }
.regle b:first-child { margin-bottom: 6px; color: var(--orange); }

/* ---------- module test ---------- */
.module-intro { font-size: 19px; max-width: 48ch; margin-bottom: 28px; }
.module-grille { display: grid; gap: 22px; }
.appris { background: var(--fond); border: var(--trait); border-radius: var(--r); box-shadow: var(--ombre); padding: 20px; }
.appris h3 { margin-bottom: 12px; }
.appris li { position: relative; padding: 9px 0 9px 32px; border-top: 2px dashed rgba(20, 24, 26, .2); font-weight: 600; }
.appris li:first-child { border-top: 0; }
.appris li::before { content: ""; position: absolute; left: 0; top: 13px; width: 20px; height: 20px; border-radius: 50%; background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 6.5' fill='none' stroke='%2314181A' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; border: 2px solid var(--encre); }
.appris__contenu { margin-top: 14px; color: var(--gris); font-size: 16px; }
.appris__contenu b { color: var(--encre); }
.avant-apres { display: grid; gap: 14px; }
.aa { border: var(--trait); border-radius: var(--r); padding: 16px 18px 18px; background: #fff; box-shadow: var(--ombre); }
.aa--avant { background: #ECEAE4; }
.aa--avant .aa__res { color: #77766F; }
.aa__etiq { display: inline-block; font: 700 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 5px 9px; border-radius: 999px; background: var(--encre); color: var(--fond); }
.aa--apres .aa__etiq { background: var(--orange); color: var(--encre); border: 2px solid var(--encre); padding: 3px 7px; }
.aa__brief { margin-top: 10px; font-weight: 700; }
.aa__res { margin-top: 8px; padding-top: 8px; border-top: 2px dashed rgba(20, 24, 26, .25); font-size: 16px; }
.aa__legende { text-align: center; font: 700 13px/1.3 var(--mono); letter-spacing: .04em; text-transform: uppercase; }

/* ---------- pour qui ---------- */
.qui { display: grid; gap: 24px; }
.qui__liste { display: grid; gap: 12px; }
.qui__liste li { background: #fff; border: var(--trait); border-radius: var(--r); padding: 16px 18px; font-weight: 600; box-shadow: var(--ombre); }
.qui__liste li:nth-child(even) { margin-left: 14px; }

/* ---------- faq ---------- */
.faq__liste { display: grid; gap: 10px; margin-top: 20px; max-width: 760px; }
details { background: #fff; border: var(--trait); border-radius: 16px; }
summary { list-style: none; cursor: pointer; padding: 16px 52px 16px 18px; font-weight: 700; position: relative; line-height: 1.25; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 14px; top: 50%; width: 28px; height: 28px; margin-top: -14px; display: grid; place-items: center; border-radius: 50%; background: var(--orange); border: 2.5px solid var(--encre); font: 700 18px/1 var(--mono); transition: transform .25s; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 18px 18px; color: var(--gris); }
details a { color: var(--orange-f); font-weight: 700; }

/* ---------- final ---------- */
.final__grille { display: grid; gap: 22px; justify-items: start; align-items: center; }
.klemy--final { width: 150px; }
.final h2 { font-size: clamp(30px, 8vw, 56px); }

/* ---------- formulaire factice ---------- */
.notify { margin-top: 18px; padding: 16px; border: 2.5px solid var(--fond); border-radius: var(--r); background: rgba(249, 248, 245, .06); max-width: 520px; }
.notify__label { display: block; font-size: 14px; margin-bottom: 10px; color: #DCE6E3; }
.notify__champ { display: flex; flex-direction: column; gap: 10px; }
.notify input { min-height: 48px; padding: 10px 16px; border-radius: 999px; border: var(--trait); background: #fff; color: var(--encre); width: 100%; }
.notify input::placeholder { color: #77766F; }
.notify input[aria-invalid="true"] { border-color: #E0483E; }
.notify__etat { min-height: 1.4em; margin-top: 10px; font-weight: 700; color: var(--teal); }
.notify__etat.err { color: #FFB4AC; }

/* ---------- pied ---------- */
.pied { background: var(--sombre); color: #C9D6D2; padding: 28px 0 36px; border-top: 1px solid rgba(249, 248, 245, .15); font-size: 14px; }
.pied__ligne { display: flex; flex-direction: column; gap: 10px; }
.pied .nav__logo { color: var(--fond); }
.pied a { color: var(--teal); }

/* ---------- reveal (gated par JS) ---------- */
.js-anim .reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1); }
.js-anim .reveal.in { opacity: 1; transform: none; }

/* ---------- desktop ---------- */
@media (min-width: 760px) {
  :root { --gut: 28px; }
  .bloc { padding: 96px 0; }
  .hero { padding: calc(var(--nav-h) + 56px) 0 88px; }
  .hero__grille { grid-template-columns: 1.1fr .9fr; align-items: center; gap: 48px; }
  .hero__cta { flex-direction: row; flex-wrap: wrap; }
  .scene-main { width: min(100%, 460px); }
  .principe { grid-template-columns: 1fr 1fr; align-items: center; gap: 56px; }
  .etapes { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .telephones { margin: 0; padding: 6px 4px 18px; justify-content: center; overflow: visible; flex-wrap: wrap; }
  .tel { flex: 0 0 230px; }
  .main-scene { grid-template-columns: minmax(280px, 1fr) 1.1fr; gap: 56px; align-items: start; margin-top: 24px; }
  .main-pin { top: calc(var(--nav-h) + 24px); background: none; padding: 0; }
  .main-pin .main-svg { height: min(64vh, 480px); }
  .doigts { gap: 20px; padding: 0; }
  .doigt-etape { padding: 22px 24px 24px; min-height: 30vh; display: flex; flex-direction: column; justify-content: center; }
  .module-grille { grid-template-columns: 1fr 1.1fr; gap: 32px; align-items: start; }
  .qui { grid-template-columns: 1fr 1fr; align-items: center; gap: 56px; }
  .notify__champ { flex-direction: row; }
  .notify .btn { white-space: nowrap; }
  .final__grille { grid-template-columns: 220px 1fr; gap: 48px; }
  .klemy--final { width: 210px; }
  .pied__ligne { flex-direction: row; justify-content: space-between; align-items: center; }
}
@media (min-width: 1000px) {
  .etapes { grid-template-columns: repeat(4, 1fr); }
  .jours { margin-left: 0; grid-template-columns: 1fr; }
  .etape { padding: 76px 18px 20px; }
  .etape__n { left: 18px; top: 18px; }
  .jours li { flex-direction: row; justify-content: space-between; align-items: center; }
  .telephones { flex-wrap: nowrap; }
}

/* ---------- mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .souligne path { animation: none; stroke-dashoffset: 0; }
  .js-anim .reveal { opacity: 1; transform: none; transition: opacity .2s; }
  .btn, .doigt-etape, .main-svg .peau, details summary::after { transition: none; }
  .btn:hover, .btn:active { transform: none; }
}
