/* Styles communs du tunnel (formulaire, vidéo, quiz, pages simples) */
@font-face { font-family: 'LPX Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/lpx-sans.woff2) format('woff2'); }
@font-face { font-family: 'LPX Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url(/fonts/lpx-serif.woff2) format('woff2'); }

:root {
  --encre: #101828;
  --texte: #475467;
  --doux: #667085;
  --pale: #98A2B3;
  --trait: #EAECF0;
  --fond-doux: #F5F7FA;
  --bleu: #1D4ED8;
  --bleu-fonce: #1E40AF;
  --bleu-pale: #E8EFFF;
  --rouge: #D92D20;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: #fff; }
body {
  font-family: 'LPX Sans', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: var(--encre);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
.col { max-width: 460px; margin: 0 auto; padding: 0 26px; }

/* ---------- Formulaire de capture ---------- */
.capture { padding: 18px 26px 26px; }
.capture form { max-width: 460px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.champ { position: relative; }
.champ input {
  width: 100%; height: 56px; padding: 0 16px; border: 1px solid var(--trait); border-radius: 12px;
  font: inherit; font-size: 17px; color: var(--encre); background: #fff; outline: none;
  transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none;
}
.champ input::placeholder { color: var(--pale); }
.champ input:focus { border-color: var(--bleu); box-shadow: 0 0 0 4px rgba(29,78,216,.12); }
.champ.icone input { padding-left: 46px; }
.champ.icone svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--doux); pointer-events: none; }
.champ.erreur input { border-color: var(--rouge); box-shadow: 0 0 0 4px rgba(217,45,32,.10); }
.champ .msg { display: none; font-size: 13px; color: var(--rouge); margin: 6px 2px 0; }
.champ.erreur .msg { display: block; }

.btn {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; height: 58px; padding: 0 20px; border: 0; border-radius: 12px; cursor: pointer;
  background: var(--bleu); color: #fff; font: inherit; font-size: 17px; font-weight: 600; letter-spacing: -0.01em;
  box-shadow: 0 6px 18px rgba(29,78,216,.25); transition: background .15s, transform .1s; text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) { .btn:hover { background: var(--bleu-fonce); } }
.btn:active { transform: scale(.985); }
.btn[disabled] { cursor: default; opacity: .9; }
.btn .roue { display: none; width: 20px; height: 20px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: tourne .7s linear infinite; }
.btn.charge .roue { display: block; }
.btn.charge .lbl, .btn.charge .ico { display: none; }
@keyframes tourne { to { transform: rotate(360deg); } }

.capture .rassure { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; color: var(--doux); margin: 4px 0 0; text-align: center; }
.capture .rassure a { color: var(--doux); }
.capture .oups { display: none; font-size: 14px; color: var(--rouge); text-align: center; margin: 2px 0 0; }
.capture .oups.vu { display: block; }

/* ---------- Lecteur vidéo ---------- */
.vp { position: relative; padding-bottom: 56.25%; height: 0; border-radius: 18px; overflow: hidden; cursor: pointer; background: #111; box-shadow: 0 8px 24px rgba(16,24,40,.14), 0 1px 2px rgba(16,24,40,.08); }
.vp img, .vp iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vp img { object-fit: cover; }
.vp .play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.vp .play span { width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,.94); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(0,0,0,.3); transition: transform .2s; }
@media (hover: hover) { .vp:hover .play span { transform: scale(1.06); } }
.vp.on { cursor: default; }

/* ---------- Pages simples (VSL, quiz, RDV, KO) ---------- */
.entete { background: var(--encre); color: #fff; text-align: center; padding: 12px 16px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.entete .point { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #F04438; margin: 0 8px 1px 0; box-shadow: 0 0 0 3px rgba(240,68,56,.25); }
.page { padding: 32px 0 56px; }
.page h1 { font-size: 30px; line-height: 1.12; letter-spacing: -0.025em; font-weight: 700; margin: 0 0 12px; text-wrap: balance; }
.page .chapo { font-size: 16px; line-height: 1.5; color: var(--texte); margin: 0 0 24px; text-wrap: pretty; }
.page .apres-video { margin-top: 22px; transition: opacity .4s, transform .4s; }
.page .apres-video.cache { opacity: 0; transform: translateY(8px); pointer-events: none; }
.pied { text-align: center; padding: 24px 26px 32px; font-size: 12px; color: var(--pale); }
.pied a { color: var(--pale); }

/* ---------- Quiz ---------- */
.barre { height: 4px; background: var(--trait); border-radius: 99px; overflow: hidden; margin: 0 0 28px; }
.barre i { display: block; height: 100%; width: 0; background: var(--bleu); border-radius: 99px; transition: width .35s ease; }
.etape { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--pale); margin: 0 0 10px; }
.question { font-size: 23px; line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 20px; text-wrap: balance; }
.reponses { display: flex; flex-direction: column; gap: 10px; }
.rep {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 58px; padding: 14px 16px;
  border: 1px solid var(--trait); border-radius: 14px; background: #fff; font: inherit; font-size: 16px; font-weight: 500; color: var(--encre);
  text-align: left; cursor: pointer; transition: border-color .15s, background .15s; -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) { .rep:hover { border-color: #C8D2E6; background: #FAFBFD; } }
.rep .coche { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid #D0D5DD; display: flex; align-items: center; justify-content: center; transition: all .15s; }
.rep .coche svg { opacity: 0; transition: opacity .15s; }
.rep.choisie { border-color: var(--bleu); background: var(--bleu-pale); }
.rep.choisie .coche { background: var(--bleu); border-color: var(--bleu); }
.rep.choisie .coche svg { opacity: 1; }
.retour { display: inline-flex; align-items: center; gap: 6px; margin: 20px 0 0; padding: 6px 0; border: 0; background: none; font: inherit; font-size: 14px; color: var(--doux); cursor: pointer; }
.retour[hidden] { display: none; }
.anim { animation: entre .3s ease both; }
@keyframes entre { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }

/* ---------- Calendly ---------- */
.calendly { min-width: 300px; height: 1050px; margin: 0 -10px; }
@media (min-width: 700px) { .rdv .col { max-width: 760px; } .calendly { height: 760px; } }

@media (prefers-reduced-motion: reduce) { .anim, .barre i, .btn .roue { animation: none; transition: none; } }
