/* =========================================
   Pages de capture des guides gratuits
   Réutilise les variables de style.css (:root). Aucune nouvelle palette.
   Mobile d'abord.
   ========================================= */

.g-skip { position: absolute; left: -9999px; top: 0; }
.g-skip:focus { left: 12px; top: 12px; z-index: 300; background: var(--gold); color: var(--navy); padding: 8px 14px; border-radius: var(--radius); }

body.guide-page { background: var(--navy); color: var(--gray-light); }

/* ── Barre du haut : logo seulement ── */
.g-top { display: flex; align-items: center; height: 48px; padding: 0 20px; border-bottom: 2px solid var(--gold); background: var(--navy); }
.g-logo { font-family: var(--font-main); font-size: 1.35rem; font-weight: 600; color: var(--white); letter-spacing: 0.04em; text-decoration: none; }
.g-logo span { color: var(--gold); }

.g-wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.g-narrow { max-width: 720px; }

/* ── Bloc de capture (page du guide et accueil) ── */
.g-hero, .guide-capture { background: var(--navy); padding: 18px 0 28px; }
.guide-capture { padding-top: 86px; border-bottom: 1px solid rgba(255,255,255,0.10); }
body.has-notif .guide-capture { padding-top: 122px; }
.guide-capture + .hero { padding-top: 72px; }
body.has-notif .guide-capture + .hero { padding-top: 72px; }

.g-capture {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "title" "sub" "form" "cover";
  column-gap: 16px;
  row-gap: 12px;
  align-items: start;
}
.g-title { grid-area: title; min-width: 0; }
.g-sub { grid-area: sub; font-size: 0.9rem; line-height: 1.5; color: var(--gray-light); font-weight: 300; }
.g-cover-pic { display: contents; }
.g-cover { grid-area: cover; justify-self: center; margin-top: 12px; width: 150px; height: auto; aspect-ratio: 17 / 22; object-fit: cover; overflow: hidden; font-size: 0; min-width: 0; border-radius: 3px; box-shadow: 0 6px 20px rgba(0,0,0,0.35); background: var(--navy); }
.g-form-wrap { grid-area: form; }

.g-eyebrow { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.g-h1 { font-family: var(--font-main); font-size: 1.55rem; font-weight: 600; line-height: 1.15; color: var(--white); letter-spacing: 0.01em; }

/* ── Carte claire du formulaire : seul endroit avec ce traitement ── */
.g-form { background: var(--off-white); color: var(--text); border-radius: 10px; padding: 16px; box-shadow: 0 10px 36px rgba(0,0,0,0.35); }
.g-field { margin-bottom: 10px; }
.g-field label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--navy); margin-bottom: 4px; }
.g-field input[type="text"], .g-field input[type="email"] {
  width: 100%; height: 48px; padding: 0 14px;
  font-family: var(--font-body); font-size: 1rem; color: var(--text);
  background: var(--white); border: 1.5px solid var(--gray-mid); border-radius: var(--radius);
}
.g-field input:focus-visible, .g-btn:focus-visible, .g-form a:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.g-field input[aria-invalid="true"] { border-color: #9B1C1C; border-width: 2px; }

.g-consent { display: grid; grid-template-columns: 24px 1fr; column-gap: 10px; align-items: start; margin-bottom: 14px; }
.g-consent input { width: 22px; height: 22px; margin-top: 1px; accent-color: var(--navy); }
.g-consent label { font-size: 0.74rem; font-weight: 400; line-height: 1.4; color: #333; margin: 0; }
.g-consent label a { color: var(--navy); text-decoration: underline; }
.g-consent .g-error { grid-column: 1 / -1; }

.g-error { font-size: 0.85rem; font-weight: 600; color: #9B1C1C; margin-top: 4px; }
.g-error[hidden] { display: none; }
.g-error-form { margin-top: 10px; }

.g-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.g-btn {
  display: block; width: 100%; min-height: 52px; padding: 14px 20px;
  background: var(--gold); color: var(--navy); border: 0; border-radius: var(--radius);
  font-family: var(--font-body); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  text-align: center; text-decoration: none; cursor: pointer; transition: background 0.2s;
}
.g-btn:hover { background: var(--gold-light); }
.g-btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.g-btn[disabled]:hover { background: var(--gold); }
.g-hint { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } /* lu par les lecteurs d'écran; visible dès 900 px */
.g-hint[hidden] { display: none; }
.g-btn-inline { display: inline-block; width: auto; min-width: 260px; }
.g-btn-outline { background: transparent; color: var(--gold); border: 1.5px solid var(--gold); }
.g-btn-outline:hover { background: var(--gold); color: var(--navy); }

.g-note { font-size: 0.78rem; line-height: 1.5; color: var(--gray-light); margin-top: 12px; }

/* ── Contenu sous le premier écran ── */
.g-body { background: var(--navy); padding: 36px 0 48px; border-top: 1px solid rgba(255,255,255,0.10); }
.g-body p { font-size: 1rem; line-height: 1.7; margin-bottom: 14px; }
.g-body h2, .g-suite h2 { font-family: var(--font-main); font-size: 1.7rem; font-weight: 600; color: var(--white); margin: 28px 0 12px; }
.g-steps { list-style: none; counter-reset: v; margin: 0 0 16px; padding: 0; }
.g-steps li { counter-increment: v; position: relative; padding: 4px 0 14px 52px; border-bottom: 1px solid rgba(255,255,255,0.08); margin-bottom: 14px; }
.g-steps li::before { content: counter(v); position: absolute; left: 0; top: -2px; font-family: var(--font-main); font-size: 2rem; font-weight: 600; line-height: 1; color: var(--gold); }
.g-steps strong { display: block; color: var(--white); font-weight: 600; margin-bottom: 2px; }
.g-steps span { font-size: 0.95rem; color: var(--gray-light); }

/* ── Remerciement ── */
.g-merci { padding: 40px 0 56px; }
.g-merci .g-h1 { font-size: 2.1rem; margin-bottom: 24px; }
.g-merci-pdf .g-note { display: block; margin-top: 8px; }
.g-suite { margin-top: 36px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,0.10); }
.g-suite p { line-height: 1.7; margin-bottom: 16px; }

.g-foot { padding: 20px; text-align: center; font-size: 0.78rem; line-height: 1.6; color: var(--gray-light); border-top: 1px solid rgba(255,255,255,0.10); background: var(--navy); }
.g-foot a { color: var(--gold-light); }
.g-foot p + p { margin-top: 4px; }

/* Accueil, petit écran : on garde le formulaire dans le premier écran */
@media (max-width: 899px) {
  .guide-capture .g-eyebrow { display: none; }
  .guide-capture .g-capture { row-gap: 8px; }
  .guide-capture .g-form { padding: 14px; }
  .guide-capture .g-field { margin-bottom: 8px; }
}

/* ── Écrans plus larges ── */
@media (min-width: 900px) {
  .g-hint { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; font-size: 0.78rem; line-height: 1.4; color: #333; margin-top: 8px; text-align: center; }
  .g-top { height: 70px; padding: 0 60px; }
  .g-logo { font-size: 1.45rem; }
  .g-hero, .guide-capture { padding: 56px 0 64px; }
  .guide-capture { padding-top: 130px; }
  body.has-notif .guide-capture { padding-top: 170px; }
  .g-capture {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.8fr);
    grid-template-areas: "title cover" "sub cover" "form cover";
    column-gap: 64px; row-gap: 18px; align-items: start;
  }
  .g-cover { width: 100%; max-width: 380px; justify-self: center; align-self: center; grid-row: 1 / span 3; }
  .g-h1 { font-size: 2.9rem; }
  .g-sub { font-size: 1.1rem; }
  .g-form { padding: 24px; }
  .g-body h2, .g-suite h2 { font-size: 2rem; }
  .g-btn { width: 100%; }
  .g-btn-inline { width: auto; }
}
