/* ═══════════════════════════════════════════════════════════════
   CRÉER MA FICHE AUTO-ÉCOLE — Tunnel 4 étapes (style uniquement)
   Direction : éditoriale BoostDriving (Instrument Serif + Inter),
   coquille 2 colonnes (formulaire + encart dégradé pastel).
   Rayons : pilule pour boutons et puces, 12-14px champs/cartes, 24px coquille.
   Accent unique : cyan de marque (#0EA5E9) + dégradé. Vert reserve aux
   seuls etats de validation (regles mot de passe, INSEE).
   ═══════════════════════════════════════════════════════════════ */

.cb-page {
  --cb-paper:       #FBFAF6;
  --cb-ink:         #0D1220;
  --cb-ink2:        #3A4055;
  --cb-muted:       #8A90A0;
  --cb-line:        #E6E2D7;
  --cb-line-soft:   #F0EDE3;
  --cb-accent:      #0EA5E9;
  --cb-accent-deep: #0284C7;
  --cb-ok:          #16A34A;
  --cb-err:         #DC2626;
  --cb-grad:        linear-gradient(135deg, #0EA5E9 0%, #38BDF8 30%, #F472B6 65%, #FB923C 100%);
  --cb-grad-deep:   linear-gradient(135deg, #0284C7 0%, #0EA5E9 28%, #EC4899 66%, #EA580C 100%);
  --cb-radius:      14px;
  --cb-radius-sm:   12px;
  --cb-radius-lg:   24px;
  --cb-pill:        999px;
  --cb-font-display:'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --cb-font-body:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --cb-font-mono:   'Geist Mono', 'JetBrains Mono', ui-monospace, monospace;

  min-height: 100vh;
  background: var(--cb-paper);
  font-family: var(--cb-font-body);
  color: var(--cb-ink);
  padding: 56px 24px 72px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
body { background: var(--cb-paper); }

/* ─── Coquille deux colonnes ─── */
.cb-shell {
  width: 100%;
  max-width: 1040px;
  display: grid;
  grid-template-columns: 1.28fr 0.85fr;
  background: #fff;
  border: 1px solid var(--cb-line);
  border-radius: var(--cb-radius-lg);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(13, 18, 32, 0.04), 0 34px 80px -44px rgba(13, 18, 32, 0.34);
  animation: cb-rise 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes cb-rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.cb-form-col {
  padding: 52px 56px 44px;
  min-width: 0;
}

/* ─── Barre de progression ─── */
.cb-progress {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
}
.cb-progress__item {
  flex: 1;
  height: 5px;
  border-radius: var(--cb-pill);
  background: var(--cb-line-soft);
  transition: background 0.3s ease;
}
.cb-progress__item.is-done { background: var(--cb-accent); }
.cb-progress__item.is-active { background: var(--cb-grad); }

/* ─── En-tête d'étape ─── */
.cb-step-label {
  font-family: var(--cb-font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--cb-accent-deep);
  margin-bottom: 10px;
}
.cb-title {
  font-family: var(--cb-font-display);
  font-weight: 400;
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}
.cb-subtitle {
  font-size: 0.95rem;
  color: var(--cb-ink2);
  line-height: 1.6;
  margin: 0 0 28px;
  max-width: 48ch;
}

/* ─── Champs ─── */
.cb-field { margin-bottom: 20px; }
.cb-field label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--cb-ink);
  margin-bottom: 7px;
}
.cb-field input[type="text"],
.cb-field input[type="email"],
.cb-field input[type="tel"],
.cb-field input[type="password"] {
  width: 100%;
  padding: 13px 15px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--cb-ink);
  background: #fff;
  border: 1px solid var(--cb-line);
  border-radius: var(--cb-radius-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.cb-field input::placeholder { color: var(--cb-muted); }
.cb-field input:focus {
  outline: none;
  border-color: var(--cb-accent);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}
.cb-field .cb-hint {
  font-size: 0.75rem;
  color: var(--cb-muted);
  margin-top: 7px;
}
/* Ligne d'aide « contactez-nous » sous le formulaire (hors champ). */
.cb-hint--center {
  font-size: 0.75rem;
  color: var(--cb-muted);
  text-align: center;
  margin-top: 18px;
}
.cb-hint--center a {
  color: var(--cb-accent);
  font-weight: 600;
}
.cb-field-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 14px;
}

/* ─── Messages ─── */
.cb-error {
  font-size: 0.8125rem;
  color: var(--cb-err);
  margin-top: 7px;
}
.cb-alert {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-left: 4px solid var(--cb-err);
  border-radius: var(--cb-radius-sm);
  padding: 14px 16px;
  margin-bottom: 22px;
  color: #7F1D1D;
  font-size: 0.875rem;
  line-height: 1.5;
}
.cb-alert--warning {
  background: #FFFBEB;
  border-color: #FDE68A;
  border-left-color: #F59E0B;
  color: #78350F;
}
.cb-alert a { color: inherit; text-decoration: underline; font-weight: 600; }
.cb-alert strong { display: block; margin-bottom: 4px; }

/* ─── Actions / boutons ─── */
.cb-actions {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
}
.cb-btn {
  padding: 13px 28px;
  border-radius: var(--cb-pill);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.12s ease, box-shadow 0.18s ease, opacity 0.15s ease, background 0.18s ease;
}
.cb-btn--primary {
  background: var(--cb-grad);
  color: #fff;
  box-shadow: 0 8px 22px -10px rgba(14, 165, 233, 0.55), 0 4px 10px -6px rgba(244, 114, 182, 0.4);
}
.cb-btn--primary:hover { transform: translateY(-1px); filter: brightness(1.03); }
.cb-btn--primary:active { transform: scale(0.985); }
.cb-btn--primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  filter: none;
}
.cb-btn--ghost {
  background: transparent;
  color: var(--cb-ink2);
  border: 1px solid var(--cb-line);
}
.cb-btn--ghost:hover { background: var(--cb-line-soft); }

/* ─── Jauge mot de passe ─── */
.cb-pwd-meter {
  height: 5px;
  background: var(--cb-line-soft);
  border-radius: var(--cb-pill);
  margin-top: 10px;
  overflow: hidden;
}
.cb-pwd-meter__bar {
  height: 100%;
  width: 0%;
  border-radius: var(--cb-pill);
  transition: width 0.2s ease, background 0.2s ease;
}
.cb-pwd-rules {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  font-size: 0.75rem;
  color: var(--cb-ink2);
}
.cb-pwd-rules li { margin-bottom: 4px; display: flex; align-items: center; gap: 6px; }
.cb-pwd-rules li.is-ok { color: var(--cb-ok); }
.cb-pwd-rules li.is-ok::before { content: '\2713'; font-weight: 700; }
.cb-pwd-rules li:not(.is-ok)::before { content: '\2022'; color: var(--cb-muted); }

/* ─── Types de permis ─── */
.cb-permis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.cb-permis-card {
  border: 1px solid var(--cb-line);
  border-radius: var(--cb-radius);
  padding: 15px;
  cursor: pointer;
  display: block;
  position: relative;
  background: #fff;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.cb-permis-card:hover { border-color: var(--cb-accent); box-shadow: 0 6px 18px -12px rgba(14, 165, 233, 0.5); }
.cb-permis-card input { position: absolute; opacity: 0; pointer-events: none; }
.cb-permis-card__label { font-weight: 700; font-size: 0.875rem; color: var(--cb-ink); }
.cb-permis-card__code { font-size: 0.6875rem; color: var(--cb-muted); margin-top: 4px; font-weight: 600; }
.cb-permis-card.is-checked {
  border-color: var(--cb-accent);
  background: rgba(14, 165, 233, 0.07);
  box-shadow: inset 0 0 0 1px var(--cb-accent);
}
.cb-permis-custom-row {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.cb-permis-custom-row input { flex: 1; }
.cb-permis-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.cb-chip {
  background: rgba(14, 165, 233, 0.1);
  color: var(--cb-accent-deep);
  padding: 5px 10px 5px 12px;
  border-radius: var(--cb-pill);
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cb-chip button {
  border: none;
  background: none;
  color: var(--cb-accent-deep);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0;
}

/* ─── Statut INSEE ─── */
.cb-insee-status {
  font-size: 0.75rem;
  color: var(--cb-muted);
  margin-top: 7px;
  min-height: 16px;
}
.cb-insee-status.is-loading { color: var(--cb-accent-deep); }
.cb-insee-status.is-ok { color: var(--cb-ok); }
.cb-insee-status.is-error { color: var(--cb-err); }

/* ─── Lien bas de carte ─── */
.cb-footer-link {
  text-align: left;
  font-size: 0.8125rem;
  color: var(--cb-muted);
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--cb-line-soft);
}
.cb-footer-link a { color: var(--cb-accent-deep); font-weight: 600; text-decoration: none; }
.cb-footer-link a:hover { text-decoration: underline; }

/* ─── Encart latéral (réassurance, dégradé de marque) ─── */
.cb-aside {
  position: relative;
  background: var(--cb-grad-deep);
  color: #fff;
  overflow: hidden;
}
.cb-aside::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 78% 8%, rgba(255, 255, 255, 0.28), transparent 42%);
  pointer-events: none;
}
.cb-aside__inner {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 52px 40px;
}
.cb-aside__eyebrow {
  font-family: var(--cb-font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 18px;
}
.cb-aside__title {
  font-family: var(--cb-font-display);
  font-weight: 400;
  font-size: 1.85rem;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 28px;
}
.cb-aside__list {
  list-style: none;
  padding: 0;
  margin: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cb-aside__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.95);
}
.cb-aside__check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: var(--cb-pill);
  background: rgba(255, 255, 255, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.cb-aside__check svg { width: 13px; height: 13px; stroke: #fff; }
.cb-aside__note {
  margin: 32px 0 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.8125rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
}

/* ─── Contenu de destination SEO (écran d'entrée uniquement) ───
   La page passe en colonne pour empiler breadcrumb + intro, coquille
   formulaire, puis mini-FAQ. Les étapes 2 à 4 gardent la mise en page
   centrée historique (pas de modificateur). */
.cb-page--landing {
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.cb-landing-head {
  width: 100%;
  max-width: 1040px;
}
.cb-landing-head .breadcrumb { margin-bottom: 20px; }

.cb-intro { margin-bottom: 8px; }
.cb-intro__hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 34px;
  margin-bottom: 24px;
}
.cb-intro__copy {
  max-width: 760px;
}
.cb-intro__eyebrow {
  font-family: var(--cb-font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--cb-accent-deep);
  display: block;
  margin-bottom: 12px;
}
.cb-intro__title {
  font-family: var(--cb-font-display);
  font-weight: 400;
  font-size: clamp(2.75rem, 5.2vw, 4.9rem);
  line-height: 0.98;
  letter-spacing: 0;
  color: var(--cb-ink);
  margin: 0 0 18px;
}
.cb-intro__lede {
  max-width: 670px;
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--cb-ink2);
  margin: 0;
}
.cb-intro__quick {
  flex: 0 0 300px;
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--cb-line);
  border-radius: var(--cb-radius);
  background: rgba(255, 255, 255, 0.74);
}
.cb-intro__quick span {
  display: grid;
  gap: 2px;
  padding-left: 14px;
  border-left: 3px solid var(--cb-accent);
  color: var(--cb-ink2);
  font-size: 0.86rem;
  line-height: 1.35;
}
.cb-intro__quick strong {
  color: var(--cb-ink);
  font-size: 1rem;
}
.cb-intro__grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.16fr) repeat(2, minmax(0, 0.84fr));
  grid-template-rows: minmax(230px, auto) minmax(210px, auto);
  gap: 18px;
}
.cb-intro__card {
  position: relative;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--cb-line);
  border-radius: var(--cb-radius-lg);
  padding: 30px;
  overflow: hidden;
  box-shadow: 0 18px 42px -34px rgba(13, 18, 32, 0.24);
}
.cb-intro__card--price {
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 460px;
  background: linear-gradient(145deg, #BFE0F4 0%, #F2DACE 56%, #F7C9D8 100%);
}
.cb-intro__card--dark {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #171A2E;
  border-color: #171A2E;
  color: #fff;
}
.cb-intro__card--light {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: rgba(255, 255, 255, 0.86);
}
.cb-intro__card--blue {
  grid-column: 2 / span 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  background: #2A97CE;
  border-color: #2A97CE;
  color: #fff;
}
.cb-intro__card-kicker,
.cb-intro__stars {
  display: block;
  margin-bottom: 22px;
  font-family: var(--cb-font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.cb-intro__card-kicker { color: rgba(58, 64, 85, 0.78); }
.cb-intro__stars { color: #F59A63; }
.cb-intro__big {
  display: block;
  margin-top: auto;
  font-family: var(--cb-font-display);
  font-size: clamp(6rem, 12vw, 10rem);
  font-weight: 400;
  line-height: 0.88;
  color: var(--cb-ink);
}
.cb-intro__card-sub {
  margin: 16px 0 8px;
  font-family: var(--cb-font-display);
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  font-style: italic;
  line-height: 1.04;
  color: var(--cb-ink);
}
.cb-intro__card-title {
  font-family: var(--cb-font-display);
  font-size: clamp(1.85rem, 3.1vw, 2.45rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: 0;
  color: var(--cb-ink);
  margin: 0 0 16px;
}
.cb-intro__card-text {
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--cb-ink2);
  margin: 0;
}
.cb-intro__card--dark .cb-intro__card-title,
.cb-intro__card--blue .cb-intro__card-title,
.cb-intro__card--dark .cb-intro__card-text,
.cb-intro__card--blue .cb-intro__card-text,
.cb-intro__card--blue .cb-intro__card-kicker {
  color: #fff;
}
.cb-intro__card--dark .cb-intro__card-text,
.cb-intro__card--blue .cb-intro__card-text {
  color: rgba(255, 255, 255, 0.84);
}
.cb-intro__ticks {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cb-intro__ticks li {
  position: relative;
  padding-left: 24px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.95rem;
  line-height: 1.35;
}
.cb-intro__ticks li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 4px;
  width: 7px;
  height: 12px;
  border-right: 2px solid #F59A63;
  border-bottom: 2px solid #F59A63;
  transform: rotate(45deg);
}
.cb-intro__link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border-radius: var(--cb-pill);
  background: #fff;
  color: #0D1220;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.cb-intro__link:hover {
  transform: translateY(-1px);
}

.cb-faq {
  width: 100%;
  max-width: 1040px;
}
.cb-faq__title {
  font-family: var(--cb-font-display);
  font-weight: 400;
  font-size: 1.6rem;
  letter-spacing: -0.01em;
  color: var(--cb-ink);
  margin: 8px 0 18px;
}
.cb-faq__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.cb-faq__item {
  background: #fff;
  border: 1px solid var(--cb-line);
  border-radius: var(--cb-radius);
  padding: 20px 22px;
}
.cb-faq__q {
  font-family: var(--cb-font-body);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--cb-ink);
  margin: 0 0 8px;
}
.cb-faq__a {
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--cb-ink2);
  margin: 0;
}
.cb-faq__a a {
  color: var(--cb-accent-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ─── Responsive ─── */
@media (max-width: 880px) {
  .cb-page { padding: 32px 16px 48px; }
  .cb-shell { grid-template-columns: 1fr; max-width: 560px; }
  .cb-form-col { padding: 40px 28px 32px; order: 1; }
  .cb-aside { order: 2; }
  .cb-aside__inner { padding: 36px 28px; }
  .cb-aside__list { margin-bottom: 0; }
  .cb-landing-head { max-width: 560px; }
  .cb-intro__hero {
    align-items: stretch;
    flex-direction: column;
    gap: 18px;
  }
  .cb-intro__title { font-size: clamp(2.35rem, 12vw, 3.45rem); }
  .cb-intro__lede { font-size: 1rem; }
  .cb-intro__quick {
    flex-basis: auto;
  }
  .cb-intro__grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .cb-intro__card,
  .cb-intro__card--price,
  .cb-intro__card--blue {
    grid-column: auto;
    grid-row: auto;
  }
  .cb-intro__card--price {
    min-height: 330px;
  }
  .cb-intro__card--blue {
    align-items: flex-start;
    flex-direction: column;
  }
  .cb-intro__link {
    width: 100%;
  }
  .cb-faq { max-width: 560px; }
  .cb-faq__list { grid-template-columns: 1fr; }
}
@media (max-width: 440px) {
  .cb-form-col { padding: 32px 20px 28px; }
  .cb-field-row { grid-template-columns: 1fr; }
  .cb-intro__card {
    padding: 24px;
  }
  .cb-intro__big {
    font-size: clamp(5.25rem, 30vw, 7rem);
  }
}

/* ─── Mouvement réduit ─── */
@media (prefers-reduced-motion: reduce) {
  .cb-shell { animation: none; }
  .cb-btn,
  .cb-field input,
  .cb-permis-card,
  .cb-progress__item { transition: none; }
}
