/* ============================================================
   CONTACT — CONTACT.CSS
   S'appuie sur les variables et composants de site.css
   (.btn, .eyebrow, .section-head, .icon-badge, .field, .hp-field).
   ============================================================ */

/* Les attributs [hidden] doivent toujours l'emporter sur les display: du fichier */
[hidden] { display: none !important; }

/* `overflow-x: hidden` sur html ET body casse position: sticky (le récapitulatif
   et le menu). `clip` coupe pareil sans créer de conteneur de défilement. */
html:root,
html body { overflow-x: clip; }

/* --- Animations : l'état par défaut est toujours l'état final visible --- */
@keyframes ctUp {
  from { opacity: 0; transform: translateY(18px); }
}

@keyframes ctFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes ctStepFwd {
  from { opacity: 0; transform: translateX(22px); }
}

@keyframes ctStepBack {
  from { opacity: 0; transform: translateX(-22px); }
}

@keyframes ctPop {
  0% { transform: scale(.6); opacity: 0; }
  60% { transform: scale(1.12); }
}

@keyframes ctSpin {
  to { transform: rotate(360deg); }
}

@keyframes ctDraw {
  from { stroke-dashoffset: 1; }
}

@keyframes ctFade {
  from { opacity: 0; transform: translateY(-4px); }
}

.ct-in {
  animation: ctUp .75s cubic-bezier(.22, .61, .36, 1) both;
  animation-delay: calc(var(--i, 0) * .09s);
}

.ct-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   HERO
   ============================================================ */
.ct-hero {
  display: flex;
  align-items: center;
  min-height: min(760px, calc(100vh - 70px));
  padding: clamp(56px, 7vw, 104px) 0 clamp(72px, 8vw, 120px);
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 78% 36%, rgba(60, 140, 220, .11), transparent 32rem),
    radial-gradient(circle at 96% 0%, rgba(129, 114, 221, .08), transparent 24rem);
}

.ct-hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.ct-hero-copy { max-width: 700px; }

.ct-hero h1 {
  max-width: 14ch;
  margin-bottom: .4em;
  font-size: clamp(2.5rem, 4.8vw, 4.3rem);
  line-height: 1.04;
  letter-spacing: -.035em;
}

.ct-hero .lede { max-width: 54ch; margin: 0 0 32px; }

.ct-facts {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 0;
  width: fit-content;
  max-width: 100%;
  margin-top: 46px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.ct-fact {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 0 22px;
  border-right: 1px solid var(--line);
}

.ct-fact:first-child { padding-left: 0; }
.ct-fact:last-child { padding-right: 0; border-right: 0; }

.ct-fact .icon-badge { width: 40px; height: 40px; border-radius: 12px; }

.ct-fact strong {
  display: block;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.2;
  color: var(--ink);
}

.ct-fact small {
  display: block;
  margin-top: 3px;
  font-size: .76rem;
  line-height: 1.35;
  color: var(--muted);
}

/* --- Aperçu d'une boîte de réception --- */
.ct-visual {
  position: relative;
  min-width: 0;
  padding: 36px 48px 48px;
}

.ct-visual::before {
  content: "";
  position: absolute;
  left: 6%;
  top: 6%;
  width: 88%;
  height: 88%;
  border: 1px solid rgba(60, 140, 220, .14);
  border-radius: 50%;
  transform: rotate(-12deg);
  pointer-events: none;
}

.ct-window {
  position: relative;
  z-index: 2;
  max-width: 540px;
  margin: 0 auto;
  overflow: hidden;
  background: white;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  box-shadow:
    0 40px 80px -36px rgba(23, 37, 54, .38),
    0 0 0 8px rgba(255, 255, 255, .55);
}

.ct-win-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 18px;
  background: #f4f7fa;
  border-bottom: 1px solid var(--line);
}

.ct-win-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.ct-win-title {
  margin-left: 10px;
  font-size: .74rem;
  color: var(--muted);
}

.ct-inbox {
  display: grid;
  gap: 12px;
  padding: 18px;
  background: var(--blue-pale);
}

.ct-mail {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  column-gap: 14px;
  row-gap: 3px;
  padding: 16px 18px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.ct-mail--new {
  border-color: rgba(60, 140, 220, .5);
  box-shadow:
    0 0 0 3px rgba(60, 140, 220, .1),
    0 16px 30px -20px rgba(37, 107, 176, .55);
}

.ct-mail--old { opacity: .78; }

.ct-mail-avatar {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding-bottom: 2px;
  border-radius: 12px;
  color: white;
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 700;
}

.ct-mail-avatar--brand {
  background: var(--blue-dark);
  font-family: var(--font-logo);
  font-weight: 400;
  font-size: 1.05rem;
}

.ct-mail-avatar--violet { background: var(--violet); }

.ct-mail-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.ct-mail-head strong { font-size: .88rem; color: var(--ink); }

.ct-mail-head em {
  font-style: normal;
  font-size: .72rem;
  font-weight: 600;
  color: var(--blue-deep);
}

.ct-mail--old .ct-mail-head em { color: var(--muted); font-weight: 500; }

.ct-mail-subject {
  margin: 0;
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}

.ct-mail-preview {
  grid-column: 2;
  margin: 2px 0 0;
  font-size: .82rem;
  line-height: 1.55;
  color: var(--muted);
}

.ct-mail-chips {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.ct-file,
.ct-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 600;
}

.ct-file {
  background: var(--blue-soft);
  color: var(--blue-deep);
}

.ct-file svg { width: 14px; height: 14px; }

.ct-tag {
  background: var(--green-bg);
  color: #1f6b47;
}

.ct-badge {
  position: absolute;
  z-index: 3;
  filter: drop-shadow(0 13px 20px rgba(27, 39, 53, .14));
}

.ct-badge .icon-badge {
  width: 54px;
  height: 54px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: 0 0 0 5px rgba(255, 255, 255, .55);
}

.ct-badge .icon-badge svg { width: 24px; height: 24px; }

.ct-badge--1 { top: 3%; right: 1%; animation: ctFloat 4.8s ease-in-out infinite; }
.ct-badge--2 { top: 38%; left: -2%; animation: ctFloat 5.6s ease-in-out infinite .3s; }
.ct-badge--3 { bottom: 4%; right: 12%; animation: ctFloat 5.2s ease-in-out infinite .6s; }

/* ============================================================
   BRIEF
   ============================================================ */
.ct-brief .section-head { max-width: 640px; }

.ct-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, .7fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}

.ct-card {
  scroll-margin-top: 92px;
  min-width: 0;
  overflow: hidden;
  background: white;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 30px 70px -40px rgba(23, 37, 54, .32);
}

/* --- Progression --- */
.ct-card-top { padding: 28px clamp(22px, 4vw, 40px) 0; }

.ct-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ct-form:not(.is-wizard) .ct-steps { display: none; }

.ct-step-btn {
  display: flex;
  flex-direction: column;
  gap: 11px;
  width: 100%;
  padding: 0;
  background: none;
  border: 0;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.ct-step-btn:disabled { cursor: default; }

.ct-step-bar {
  display: block;
  height: 4px;
  border-radius: 999px;
  background: var(--line);
  transition: background .3s ease;
}

.ct-step-label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--muted);
  transition: color .2s ease;
}

.ct-step-label b {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--line);
  color: var(--muted);
  font-size: .72rem;
  transition: background .3s ease, color .3s ease;
}

.ct-steps li.is-current .ct-step-bar { background: var(--blue-deep); }
.ct-steps li.is-current .ct-step-label { color: var(--ink); }
.ct-steps li.is-current .ct-step-label b { background: var(--blue-deep); color: white; }

.ct-steps li.is-done .ct-step-bar { background: var(--blue); }
.ct-steps li.is-done .ct-step-label b { background: var(--blue-soft); color: var(--blue-deep); }
.ct-steps li.is-done .ct-step-btn:hover .ct-step-label { color: var(--blue-deep); }

.ct-step-btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 5px;
  border-radius: 6px;
}

/* --- Alerte --- */
.ct-alert {
  margin: 20px 0 0;
  padding: 13px 16px;
  background: var(--coral-bg);
  border: 1px solid rgba(239, 95, 119, .4);
  border-radius: 12px;
  color: #a1233c;
  font-size: .9rem;
  line-height: 1.5;
}

/* --- Panneaux --- */
.ct-panels { padding: 30px clamp(22px, 4vw, 40px) 10px; }

.ct-step[data-dir="fwd"] { animation: ctStepFwd .38s cubic-bezier(.22, .61, .36, 1); }
.ct-step[data-dir="back"] { animation: ctStepBack .38s cubic-bezier(.22, .61, .36, 1); }

.ct-form:not(.is-wizard) .ct-step + .ct-step {
  margin-top: 44px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.ct-step-head { margin-bottom: 26px; }

.ct-kicker {
  margin: 0 0 8px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--blue-deep);
}

.ct-step-head h3 {
  margin: 0 0 6px;
  font-size: clamp(1.4rem, 2.3vw, 1.8rem);
  letter-spacing: -.025em;
  outline: none;
}

.ct-step-head p:last-child {
  margin: 0;
  font-size: .94rem;
  color: var(--muted);
}

.ct-group {
  min-width: 0;
  margin: 0 0 28px;
  padding: 0;
  border: 0;
}

.ct-legend {
  display: block;
  margin: 0 0 12px;
  padding: 0;
  font-size: .83rem;
  font-weight: 600;
  color: var(--muted);
}

.ct-opt {
  margin-left: 4px;
  font-size: .74rem;
  font-weight: 500;
  color: #8493a3;
}

.ct-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
}

/* --- Champs (complète .field de site.css) --- */
.ct-form .field { margin-bottom: 22px; }

.ct-form .field textarea {
  width: 100%;
  min-height: 150px;
  padding: 14px;
  resize: vertical;
  background: white;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: .95rem;
  line-height: 1.65;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.ct-form .field textarea::placeholder,
.ct-form .field input::placeholder { color: #98a6b4; }

.ct-form .field textarea:focus {
  border-color: var(--blue);
  outline: none;
  box-shadow: 0 0 0 4px rgba(60, 140, 220, .12);
}

.ct-form .field input,
.ct-form .field textarea { width: 100%; }

.ct-form .field.has-error input,
.ct-form .field.has-error textarea {
  border-color: var(--coral);
  box-shadow: 0 0 0 4px rgba(239, 95, 119, .12);
}

.ct-error {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  max-width: none;
  margin: 2px 0 0;
  font-size: .82rem;
  line-height: 1.45;
  color: #b5314b;
}

.ct-error::before {
  content: "!";
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #b5314b;
  color: white;
  font-size: .7rem;
  font-weight: 700;
}

.ct-message-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.ct-starters { display: flex; flex-wrap: wrap; gap: 8px; }

.ct-starter {
  padding: 7px 13px;
  background: var(--blue-pale);
  border: 1px dashed var(--line-strong);
  border-radius: 999px;
  color: var(--ink-soft);
  font: 500 .78rem var(--font-body);
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}

.ct-starter:hover {
  background: white;
  border-color: var(--blue);
  border-style: solid;
  color: var(--blue-deep);
}

.ct-starter:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.ct-counter {
  margin-left: auto;
  font-size: .76rem;
  font-variant-numeric: tabular-nums;
  color: #8493a3;
}

/* --- Cartes de choix (checkbox / radio) --- */
.ct-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ct-options--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.ct-option {
  position: relative;
  display: block;
  cursor: pointer;
}

.ct-option--wide { grid-column: 1 / -1; }

.ct-option input,
.ct-chip input,
.ct-consent input {
  position: absolute;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}

.ct-option input { inset: 0; width: 100%; height: 100%; z-index: 1; }

.ct-option-body {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 100%;
  padding: 16px 18px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease, transform .2s ease;
}

.ct-option:hover .ct-option-body {
  border-color: rgba(60, 140, 220, .5);
  transform: translateY(-1px);
}

.ct-option input:checked + .ct-option-body {
  background: var(--blue-pale);
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(60, 140, 220, .14);
}

.ct-option input:focus-visible + .ct-option-body {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.ct-group.has-error .ct-option-body { border-color: rgba(239, 95, 119, .6); }

.ct-option-text { min-width: 0; flex: 1; }

.ct-option-text strong {
  display: block;
  font-size: .94rem;
  line-height: 1.3;
  color: var(--ink);
}

.ct-option-text small {
  display: block;
  margin-top: 2px;
  font-size: .78rem;
  line-height: 1.4;
  color: var(--muted);
}

.ct-option-check {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  background: white;
  color: white;
  transition: background .2s ease, border-color .2s ease;
}

.ct-option-check svg {
  width: 12px;
  height: 12px;
  opacity: 0;
  transform: scale(.5);
  transition: opacity .2s ease, transform .25s cubic-bezier(.3, 1.6, .5, 1);
}

.ct-option input:checked + .ct-option-body .ct-option-check {
  background: var(--blue-deep);
  border-color: var(--blue-deep);
}

.ct-option input:checked + .ct-option-body .ct-option-check svg {
  opacity: 1;
  transform: scale(1);
}

/* Variante compacte (préférence de contact) */
.ct-option--compact .ct-option-body {
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 16px;
}

.ct-option--compact .ct-option-check {
  position: absolute;
  top: 14px;
  right: 14px;
}

.ct-pref-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--blue-soft);
  color: var(--blue-deep);
}

.ct-pref-icon svg { width: 19px; height: 19px; }

/* --- Puces --- */
.ct-chips { display: flex; flex-wrap: wrap; gap: 10px; }

.ct-chip { position: relative; cursor: pointer; }
.ct-chip input { inset: 0; width: 100%; height: 100%; z-index: 1; }

.ct-chip span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  background: white;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: .9rem;
  font-weight: 500;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.ct-chip:hover span { border-color: var(--blue); color: var(--blue-deep); }

.ct-chip input:checked + span {
  background: var(--blue-deep);
  border-color: var(--blue-deep);
  color: white;
}

.ct-chip input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 3px; }

/* --- Consentement --- */
.ct-consent {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: .86rem;
  line-height: 1.6;
  color: var(--muted);
  cursor: pointer;
}

.ct-consent input { width: 22px; height: 22px; left: 0; top: 0; z-index: 1; }

.ct-consent-box {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  background: white;
  border: 1.5px solid var(--line-strong);
  border-radius: 7px;
  color: white;
  transition: background .2s ease, border-color .2s ease;
}

.ct-consent-box svg {
  width: 13px;
  height: 13px;
  opacity: 0;
  transform: scale(.5);
  transition: opacity .2s ease, transform .25s cubic-bezier(.3, 1.6, .5, 1);
}

.ct-consent input:checked + .ct-consent-box {
  background: var(--blue-deep);
  border-color: var(--blue-deep);
}

.ct-consent input:checked + .ct-consent-box svg { opacity: 1; transform: scale(1); }
.ct-consent input:focus-visible + .ct-consent-box { outline: 2px solid var(--blue); outline-offset: 3px; }
.ct-group.has-error .ct-consent-box { border-color: var(--coral); }
.ct-consent a { color: var(--blue-deep); }

/* --- Actions --- */
.ct-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 8px;
  padding: 20px clamp(22px, 4vw, 40px);
  background: linear-gradient(180deg, white, var(--blue-pale));
  border-top: 1px solid var(--line);
}

.ct-actions-end { display: flex; gap: 12px; margin-left: auto; }

.ct-form:not(.is-wizard) .ct-prev,
.ct-form:not(.is-wizard) .ct-next { display: none; }

.ct-submit .ct-submit-label { transition: opacity .2s ease; }

.ct-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2.5px solid rgba(255, 255, 255, .35);
  border-top-color: white;
  border-radius: 50%;
  opacity: 0;
}

.ct-submit.is-loading { pointer-events: none; }
.ct-submit.is-loading .ct-submit-label { opacity: 0; }
.ct-submit.is-loading .ct-spinner { opacity: 1; animation: ctSpin .7s linear infinite; }

.ct-assure {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 26px;
  padding: 0 clamp(22px, 4vw, 40px) 24px;
  background: var(--blue-pale);
  font-size: .8rem;
  color: var(--muted);
}

.ct-assure li { display: flex; align-items: center; gap: 8px; }
.ct-assure svg { width: 15px; height: 15px; color: var(--green); }

/* --- Confirmation d'envoi --- */
.ct-success {
  display: grid;
  justify-items: start;
  gap: 14px;
  padding: clamp(32px, 5vw, 56px) clamp(24px, 4vw, 48px);
  outline: none;
}

.ct-success-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-bottom: 6px;
  border-radius: 22px;
  background: var(--green-bg);
  color: var(--green);
  animation: ctPop .55s cubic-bezier(.3, 1.4, .5, 1);
}

.ct-success-icon svg { width: 44px; height: 44px; }

.ct-success-icon circle,
.ct-success-icon path {
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  animation: ctDraw .7s ease .15s both;
}

.ct-success-icon circle { opacity: .35; }

.ct-success h3 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.2rem); }

.ct-success p { margin: 0; max-width: 52ch; color: var(--muted); }

.ct-success-steps {
  display: grid;
  gap: 12px;
  width: 100%;
  margin: 10px 0 8px;
  padding: 20px 22px;
  background: var(--blue-pale);
  border: 1px solid var(--line);
  border-radius: 16px;
  list-style: none;
}

.ct-success-steps li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: .94rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.ct-success-steps b {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--blue-deep);
  color: white;
  font-size: .78rem;
}

.ct-again {
  margin-top: 4px;
  font-size: .88rem;
  font-weight: 500;
  color: var(--muted);
}

.ct-again:hover { color: var(--blue-deep); }

/* ============================================================
   RÉCAPITULATIF + COORDONNÉES
   ============================================================ */
.ct-aside {
  position: sticky;
  top: 96px;
  min-width: 0;
}

.ct-recap {
  position: relative;
  overflow: hidden;
  padding: 26px;
  color: white;
  background:
    radial-gradient(circle at 92% 0%, rgba(129, 114, 221, .38), transparent 14rem),
    radial-gradient(circle at 0% 100%, rgba(60, 140, 220, .3), transparent 14rem),
    linear-gradient(165deg, #1d4c7b, #173f69 60%, #12335a);
  border-radius: 22px;
  box-shadow: 0 30px 70px -36px rgba(23, 63, 105, .75);
}

.ct-recap-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ct-recap-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -.01em;
}

.ct-recap-state {
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  font-style: normal;
  font-size: .72rem;
  font-weight: 600;
}

.ct-recap-state.is-sent { background: rgba(111, 211, 163, .22); color: #aef0cc; }

.ct-meter { margin-top: 18px; }

.ct-meter-bar {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
}

.ct-meter-bar i {
  display: block;
  width: var(--p, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8cc4f5, #ffffff);
  transition: width .5s cubic-bezier(.22, .61, .36, 1);
}

.ct-meter span {
  display: block;
  margin-top: 8px;
  font-size: .78rem;
  color: rgba(255, 255, 255, .72);
}

.ct-meter b { color: white; font-variant-numeric: tabular-nums; }

.ct-sum { margin: 20px 0 0; }

.ct-sum > div {
  padding: 13px 0;
  border-top: 1px dashed rgba(255, 255, 255, .2);
}

.ct-sum dt {
  margin-bottom: 5px;
  font-size: .74rem;
  color: rgba(255, 255, 255, .64);
}

.ct-sum dd {
  margin: 0;
  font-size: .9rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.ct-sum-empty { color: rgba(255, 255, 255, .5); }

.ct-sum-tag {
  display: inline-block;
  margin: 0 6px 6px 0;
  padding: 3px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .15);
  font-size: .78rem;
}

.ct-sum small { display: block; color: rgba(255, 255, 255, .66); font-size: .78rem; }

.ct-links-title {
  max-width: none;
  margin: 8px 0 4px;
  padding-top: 18px;
  border-top: 1px dashed rgba(255, 255, 255, .2);
  font-family: var(--font-display);
  font-size: .86rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .8);
}

.ct-links li {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 10px 0;
}

.ct-links-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 11px;
  background: rgba(255, 255, 255, .11);
}

.ct-links-icon svg { width: 17px; height: 17px; }

.ct-links strong {
  display: block;
  font-size: .86rem;
  line-height: 1.3;
}

.ct-links span:not(.ct-links-icon),
.ct-links a {
  display: block;
  font-size: .8rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, .72);
}

.ct-links a { color: white; text-decoration-color: rgba(255, 255, 255, .4); overflow-wrap: anywhere; }
.ct-links a:hover { text-decoration-color: white; }
.ct-recap a:focus-visible { outline-color: white; }

/* ============================================================
   ET ENSUITE ?
   ============================================================ */
.ct-next-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 110px);
  align-items: center;
}

.ct-next .section-head { margin-bottom: 36px; }

.ct-proposal {
  position: relative;
  max-width: 440px;
  margin: 0;
  overflow: hidden;
  background: white;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  transform: rotate(-1.4deg);
}

.ct-prop-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  background: #f4f7fa;
  border-bottom: 1px solid var(--line);
}

.ct-prop-file {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.ct-prop-file svg { width: 16px; height: 16px; color: var(--blue-deep); }

.ct-prop-head em {
  font-style: normal;
  font-size: .7rem;
  color: var(--muted);
}

.ct-prop-body { padding: 22px 22px 20px; }

.ct-prop-title {
  max-width: none;
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--ink);
}

.ct-prop-body ul li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line-strong);
  font-size: .86rem;
  color: var(--ink-soft);
}

.ct-prop-body ul b { font-variant-numeric: tabular-nums; color: var(--ink); }

.ct-prop-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--blue-soft);
  border-radius: 12px;
  font-size: .86rem;
  font-weight: 600;
  color: var(--blue-deep);
}

.ct-prop-total b {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -.02em;
  color: var(--blue-dark);
}

.ct-prop-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.ct-prop-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--green-bg);
  color: #1f6b47;
  font-size: .72rem;
  font-weight: 600;
}

.ct-prop-meta span::before { content: "✓"; font-size: .7rem; }

/* --- Déroulé --- */
.ct-timeline {
  position: relative;
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ct-tl-item:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 24px;
  bottom: -42px;
  left: 23px;
  width: 2px;
  background: linear-gradient(rgba(60, 140, 220, .55), var(--line-strong));
}

.ct-tl-item {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.ct-tl-node {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background: white;
  border: 2px solid var(--blue-deep);
  border-radius: 50%;
  box-shadow: 0 0 0 7px var(--white);
  color: var(--blue-deep);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
}

.ct-tl-card {
  padding: 22px 24px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.ct-tl-time {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-deep);
  font-size: .74rem;
  font-weight: 600;
}

.ct-tl-card h3 { margin-bottom: 6px; }

.ct-tl-card p {
  margin: 0;
  font-size: .92rem;
  color: var(--muted);
}

/* ============================================================
   PREUVES
   ============================================================ */
.ct-proof-grid {
  display: grid;
  grid-template-columns: minmax(260px, .7fr) minmax(0, 1.3fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: center;
}

.ct-score { display: flex; flex-direction: column; align-items: flex-start; }

.ct-score-note {
  max-width: none;
  margin: 8px 0 4px;
  font-family: var(--font-display);
  font-size: clamp(4.2rem, 8vw, 6.6rem);
  font-weight: 700;
  line-height: .95;
  letter-spacing: -.055em;
  color: var(--ink);
}

.ct-score-sub {
  margin: 10px 0 26px;
  font-size: .95rem;
  color: var(--muted);
}

.ct-stars { display: inline-flex; gap: 3px; }
.ct-stars svg { width: 18px; height: 18px; fill: #e0a52a; }
.ct-score .ct-stars svg { width: 24px; height: 24px; }

.ct-logos {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 30px;
}

.ct-logo-stack { display: flex; }

.ct-logo-stack img {
  width: 44px;
  height: 44px;
  margin-left: -12px;
  object-fit: cover;
  background: white;
  border: 3px solid var(--blue-soft);
  border-radius: 50%;
}

.ct-logo-stack img:first-child { margin-left: 0; }

.ct-logos p {
  margin: 0;
  font-size: .84rem;
  line-height: 1.4;
  color: var(--muted);
}

.ct-logos strong { display: block; font-size: .95rem; color: var(--ink); }

.ct-reviews {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ct-review {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 26px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}

.ct-review:nth-child(2) { margin-top: 32px; }

.ct-review-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ct-review-top > div { min-width: 0; flex: 1; }

.ct-review-top cite {
  display: block;
  font-style: normal;
  font-size: .92rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}

.ct-review-top small { font-size: .74rem; color: var(--muted); }

.ct-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  color: white;
  font-size: .82rem;
  font-weight: 700;
}

.ct-tone-0 { background: #2f7ccb; }
.ct-tone-1 { background: #7461d6; }
.ct-tone-2 { background: #b97f0f; }
.ct-tone-3 { background: #d9445f; }
.ct-tone-4 { background: #2a8a5b; }

.ct-review blockquote { margin: 0; flex: 1; }

.ct-review blockquote p {
  max-width: none;
  margin: 0;
  font-size: .94rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.ct-review-link {
  align-self: flex-start;
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
}

.ct-review-link:hover { text-decoration: underline; }

/* ============================================================
   FAQ
   ============================================================ */
.ct-faq-grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(36px, 6vw, 100px);
  align-items: start;
}

.ct-faq-intro { position: sticky; top: 100px; }
.ct-faq-intro .section-head { margin-bottom: 28px; }

.ct-faq-list details { border-top: 1px solid var(--line-strong); }
.ct-faq-list details:last-child { border-bottom: 1px solid var(--line-strong); }

.ct-faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.35;
  color: var(--ink);
  list-style: none;
  cursor: pointer;
  transition: color .2s ease;
}

.ct-faq-list summary::-webkit-details-marker { display: none; }
.ct-faq-list summary:hover { color: var(--blue-deep); }

.ct-faq-list summary:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
  border-radius: 8px;
}

.ct-faq-list summary i {
  position: relative;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--blue-deep);
  transition: transform .3s ease, background .2s ease, border-color .2s ease;
}

.ct-faq-list summary i::before,
.ct-faq-list summary i::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: currentColor;
  border-radius: 2px;
  transform: translate(-50%, -50%);
}

.ct-faq-list summary i::before { width: 12px; height: 2px; }
.ct-faq-list summary i::after { width: 2px; height: 12px; }

.ct-faq-list details[open] summary { color: var(--blue-deep); }

.ct-faq-list details[open] summary i {
  transform: rotate(45deg);
  background: var(--blue-soft);
  border-color: rgba(60, 140, 220, .5);
}

.ct-faq-a { padding: 0 52px 26px 0; animation: ctFade .3s ease; }

.ct-faq-a p {
  max-width: 62ch;
  margin: 0;
  font-size: .96rem;
  line-height: 1.75;
  color: var(--muted);
}

@supports selector(::details-content) {
  .ct-faq-list details { interpolate-size: allow-keywords; }

  .ct-faq-list details::details-content {
    block-size: 0;
    overflow: clip;
    opacity: 0;
    transition: block-size .35s ease, opacity .3s ease, content-visibility .35s allow-discrete;
  }

  .ct-faq-list details[open]::details-content { block-size: auto; opacity: 1; }
  .ct-faq-a { animation: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-height: 780px) {
  .ct-aside { position: static; }
}

@media (max-width: 1200px) {
  .ct-hero .container { grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); gap: 36px; }
  .ct-visual { padding: 28px 30px 40px; }
  .ct-fact { padding-left: 16px; padding-right: 16px; }
  .ct-review:nth-child(2) { margin-top: 0; }
}

@media (max-width: 1020px) {
  .ct-layout { grid-template-columns: 1fr; }
  .ct-aside { position: static; }

  /* Sur mobile, le bloc latéral ne garde que les coordonnées */
  .ct-recap-top,
  .ct-meter,
  .ct-sum { display: none; }

  .ct-links-title { margin-top: 0; padding-top: 0; border-top: 0; }

  .ct-next-grid,
  .ct-proof-grid,
  .ct-faq-grid { grid-template-columns: 1fr; }

  .ct-proposal { max-width: 480px; }
  .ct-faq-intro { position: static; }
}

@media (max-width: 900px) {
  .ct-hero { min-height: auto; padding-top: 48px; }
  .ct-hero .container { grid-template-columns: 1fr; gap: 40px; }
  .ct-visual { width: min(100%, 520px); margin: 0 auto; }
  .ct-hero h1 { max-width: 16ch; }
  .ct-facts { width: 100%; }
}

@media (max-width: 720px) {
  .ct-options--3 { grid-template-columns: 1fr; }

  .ct-options--3 .ct-option-body {
    flex-direction: row;
    align-items: center;
    padding: 14px 16px;
  }

  .ct-options--3 .ct-option-check { position: static; }
  .ct-reviews { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .ct-visual { padding: 18px 22px 30px; }
  .ct-mail--old { display: none; }
  .ct-badge .icon-badge { width: 43px; height: 43px; border-radius: 12px; }
  .ct-badge .icon-badge svg { width: 19px; height: 19px; }

  .ct-facts { grid-template-columns: 1fr; }

  .ct-fact,
  .ct-fact:first-child,
  .ct-fact:last-child {
    padding: 12px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .ct-fact:last-child { border-bottom: 0; }

  .ct-hero .button-row { flex-direction: column; align-items: stretch; }
  .ct-hero .btn { width: 100%; }

  .ct-options { grid-template-columns: 1fr; }
  .ct-row { grid-template-columns: 1fr; }

  /* Seule l'étape en cours garde son libellé */
  .ct-steps li:not(.is-current) .ct-step-label { font-size: 0; gap: 0; }
  .ct-steps li:not(.is-current) .ct-step-label b { font-size: .72rem; }

  .ct-actions { flex-direction: column-reverse; align-items: stretch; }
  .ct-actions-end { margin-left: 0; }
  .ct-actions-end .btn,
  .ct-prev { width: 100%; }

  .ct-tl-item { grid-template-columns: 40px minmax(0, 1fr); gap: 16px; }
  .ct-tl-node { width: 40px; height: 40px; font-size: .95rem; }
  .ct-tl-item:not(:last-child)::before { left: 19px; top: 20px; }
  .ct-tl-card { padding: 18px; }

  .ct-faq-a { padding-right: 0; }
  .ct-faq-list summary { font-size: 1rem; }
}