/* Guide « Passer au stade 3 » : page de demande, page de téléchargement et
   bandeau de l'accueil. Même formulaire partout (Netlify « guide-stade-3 »). */
.guide-main {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 56px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 48px 24px 72px;
}
.guide-cover {
  margin: 0;
  perspective: 1200px;
}
.guide-cover img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow:
    0 2px 0 #ffffff inset,
    0 40px 60px -30px #0e2c5373,
    0 12px 24px -12px #0e2c5340;
  transform: rotateY(-8deg) rotateX(2deg);
  transform-origin: left center;
  transition: transform 0.8s var(--ease);
}
.guide-cover:hover img {
  transform: rotateY(-2deg);
}
.guide-pitch h1 {
  margin: var(--space-3) 0 var(--space-4);
  color: var(--navy);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}
.guide-lead {
  margin: 0 0 var(--space-6);
  color: var(--body);
  font-size: 18px;
  line-height: 1.55;
}
.guide-points {
  display: grid;
  gap: var(--space-3);
  margin: 0 0 var(--space-8);
  padding: 0;
  list-style: none;
}
.guide-points li {
  position: relative;
  padding-left: 26px;
  color: var(--body);
  font-size: 16px;
  line-height: 1.5;
}
.guide-points li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 7px;
  width: 9px;
  height: 9px;
  background: #4f8fe6;
  transform: rotate(45deg);
  border-radius: 1px;
}
.guide-points b {
  color: var(--navy);
}
.guide-form {
  display: grid;
  gap: var(--space-3);
}
.guide-form-row {
  display: flex;
  gap: var(--space-3);
  align-items: flex-end;
}
.guide-email {
  flex: 1;
  display: grid;
  gap: 6px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
}
.guide-email input {
  height: var(--button-height);
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-button);
  background: var(--white);
  color: var(--navy);
  font: inherit;
  font-weight: 500;
  font-size: 16px;
}
.guide-email input:focus-visible {
  outline: 2px solid #4f8fe6;
  outline-offset: 2px;
}
.guide-form button {
  flex: none;
  white-space: nowrap;
}
.guide-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--body);
  font-size: 13px;
  line-height: 1.45;
}
.guide-consent input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--navy);
}
.guide-note,
.guide-alt {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.guide-alt {
  margin-top: var(--space-6);
  font-size: 14px;
}
.guide-download {
  margin-bottom: var(--space-8);
}
.guide-next {
  padding: var(--space-6);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius-card) * 2);
  background: var(--wash);
}
.guide-next p {
  margin: 0 0 var(--space-4);
  color: var(--body);
  font-size: 15px;
  line-height: 1.55;
}
.guide-next b {
  color: var(--navy);
}
.guide-next-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
}
.guide-alt-link {
  color: var(--navy);
  font-size: 14px;
}

/* Bandeau de l'accueil */
.guide-band {
  padding: 72px 0;
  background:
    radial-gradient(120% 140% at 85% 20%, #1d4a86 0%, transparent 60%), #0c1f38;
  color: #c9d7ea;
}
.guide-band-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.55fr) minmax(0, 1.45fr);
  align-items: center;
  gap: 56px;
}
.guide-band .guide-cover img {
  box-shadow: 0 40px 60px -28px #000c;
}
.guide-band .eyebrow {
  color: #9cc4ff;
}
.guide-band h2 {
  margin: var(--space-3) 0 var(--space-4);
  color: var(--white);
  font-size: var(--section-title-size);
  line-height: var(--section-title-line-height);
  font-weight: var(--section-title-weight);
  letter-spacing: -0.035em;
}
.guide-band .guide-lead,
.guide-band .guide-consent,
.guide-band .guide-note {
  color: #c9d7ea;
}
.guide-band .guide-note a,
.guide-band .guide-alt a {
  color: var(--white);
}
.guide-band .guide-email {
  color: var(--white);
}
.guide-band .guide-email input {
  border-color: #ffffff33;
}
.guide-band .guide-form .action-primary {
  background: linear-gradient(110deg, #f6f4f0, #dbe7f6);
  border-color: #dbe7f6;
  color: #0b2547;
}
.guide-band .guide-alt {
  color: #9fb3cf;
}

/* Thème sombre (pages du guide) */
html.dark .guide-pitch h1,
html.dark .guide-points b,
html.dark .guide-next b,
html.dark .guide-email,
html.dark .guide-alt-link {
  color: #e6eef8;
}
html.dark .guide-lead,
html.dark .guide-points li,
html.dark .guide-consent,
html.dark .guide-next p {
  color: #afc2db;
}
html.dark .guide-email input {
  background: #10233d;
  border-color: #2a4a74;
  color: #e6eef8;
}
html.dark .guide-next {
  background: #10233d;
  border-color: #22385a;
}

@media (max-width: 800px) {
  .guide-main {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 24px 20px 56px;
  }
  .guide-cover {
    max-width: 220px;
  }
  .guide-cover img {
    transform: none;
  }
  .guide-form-row {
    flex-direction: column;
    align-items: stretch;
  }
  .guide-band {
    padding: 56px 0;
  }
  .guide-band-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .guide-band .guide-cover {
    max-width: 180px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .guide-cover img {
    transition: none;
  }
}

/* Guide en libre accès : la lecture d'abord, l'e-mail en option. */
.guide-open {
  display: inline-flex;
  margin-top: var(--space-5);
}
.guide-optin {
  margin: var(--space-6) 0 var(--space-2);
  font-size: 14px;
  color: var(--muted);
}
html.dark .guide-optin {
  color: var(--dark-text);
}
.guide-band .guide-open {
  background: linear-gradient(110deg, #f6f4f0, #dbe7f6);
  border-color: #dbe7f6;
  color: #0b2547;
}
.guide-band .guide-optin {
  color: #c9d7ea;
}
.guide-band .guide-form .action-secondary {
  background: transparent;
  border: 1px solid #ffffff66;
  color: var(--white);
}
