/* Landing page AireGirotua — s'appuie uniquement sur les tokens du design system (tokens.css). */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { min-height: 100vh; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
button, input, textarea, select { font: inherit; color: inherit; }

.container { width: 100%; max-width: var(--container-xl); margin: 0 auto; padding-inline: max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-right)); }
@media (min-width: 720px) { .container { padding-inline: var(--space-8); } }

.display { font-family: var(--font-display); font-weight: var(--weight-display); text-transform: lowercase; letter-spacing: var(--track-caps); }

/* Icônes (SVG injectés par app.js) */
.icon { display: inline-flex; width: 1.15em; height: 1.15em; flex: none; }
.icon svg { width: 100%; height: 100%; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: var(--veil); backdrop-filter: var(--blur-veil); -webkit-backdrop-filter: var(--blur-veil);
  border-bottom: var(--border-w) solid var(--border-subtle);
  padding-top: env(safe-area-inset-top, 0px);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: var(--space-4); }
@media (min-width: 720px) { .site-header__inner { height: 84px; } }
.brand { display: flex; align-items: center; gap: var(--space-3); text-decoration: none; color: var(--navy-700); }
.brand__mark { width: 36px; height: 36px; }
@media (min-width: 720px) { .brand__mark { width: 48px; height: 48px; } }
.brand__name { font-size: var(--text-xl); line-height: 1; }
@media (min-width: 720px) { .brand__name { font-size: var(--text-2xl); } }
.header-phone {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-heading); font-weight: var(--weight-semibold); font-size: var(--text-sm);
  color: var(--navy-700); text-decoration: none; padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm);
  transition: var(--transition-control);
}
.header-phone:hover { background: var(--blue-100); color: var(--navy-700); }
.header-phone .icon { color: var(--blue-500); }
@media (max-width: 420px) { .header-phone .numeric { display: none; } .header-phone .icon { width: 22px; height: 22px; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--grad-deep); color: var(--text-inverse); }
.hero::after {
  content: ""; position: absolute; width: 520px; height: 520px; right: -140px; top: -180px; border-radius: 50%;
  background: var(--teal-400); opacity: .22; filter: blur(90px); pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; display: grid; gap: var(--space-8); padding-block: var(--space-10) var(--space-12); }
@media (min-width: 960px) { .hero__inner { grid-template-columns: 1.4fr 1fr; align-items: end; padding-block: var(--space-20); } }
.hero__kicker { color: var(--blue-200); margin: 0 0 var(--space-4); }
.hero h1 { color: var(--cream-100); font-size: clamp(38px, 9vw, var(--text-6xl)); line-height: var(--leading-tight); margin: 0 0 var(--space-5); max-width: 13ch; }
.hero__lead { font-size: var(--text-lg); line-height: var(--leading-normal); color: var(--navy-100); max-width: 52ch; margin: 0 0 var(--space-8); }
.hero__facts { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.hero__facts li {
  display: flex; gap: var(--space-3); align-items: flex-start;
  padding: var(--space-4); border-radius: var(--radius-lg);
  background: rgba(248, 248, 242, .08); box-shadow: inset 0 0 0 1px rgba(248, 248, 242, .12);
  font-size: var(--text-sm); color: var(--navy-100);
}
.hero__facts strong { color: var(--cream-100); font-weight: var(--weight-semibold); }
.hero__facts .icon { color: var(--mint-500); width: 20px; height: 20px; margin-top: 1px; }
@media (max-width: 959px) { .hero__facts { grid-template-columns: 1fr; } }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  height: var(--control-h-md); padding: 0 var(--space-6);
  font-family: var(--font-heading); font-weight: var(--weight-semibold); font-size: var(--text-md);
  border: var(--border-w) solid transparent; border-radius: var(--radius-sm);
  cursor: pointer; text-decoration: none; white-space: nowrap; transition: var(--transition-control);
  background: transparent;
}
.btn:active { transform: translateY(1px); box-shadow: var(--inset-press); }
.btn--primary { background: var(--blue-500); color: var(--text-on-brand); box-shadow: var(--shadow-brand); }
.btn--primary:hover { background: var(--blue-600); color: var(--text-on-brand); }
.btn--outline { color: var(--navy-700); border-color: var(--border-strong); background: var(--surface-card); }
.btn--outline:hover { border-color: var(--blue-500); color: var(--blue-600); background: var(--blue-100); }
.btn--ghost { color: var(--text-link); }
.btn--ghost:hover { background: var(--blue-100); color: var(--text-link); }
.btn--on-dark { background: var(--cream-100); color: var(--navy-700); }
.btn--on-dark:hover { background: var(--white); color: var(--navy-700); }
.btn--lg { height: var(--control-h-lg); padding: 0 var(--space-8); font-size: var(--text-lg); }
.btn--sm { height: var(--control-h-sm); padding: 0 var(--space-4); font-size: var(--text-sm); }
.btn[disabled] { opacity: .42; cursor: not-allowed; box-shadow: none; }

/* ---------- Section demande ---------- */
.demande { padding-block: var(--space-12) var(--space-16); }
@media (min-width: 960px) { .demande { padding-block: var(--section-y); } }
.demande__layout { display: grid; gap: var(--space-8); align-items: start; }
@media (min-width: 960px) { .demande__layout { grid-template-columns: minmax(0, 1fr) 340px; gap: var(--space-12); } }
.demande__main { min-width: 0; }
.section-title { font-size: clamp(30px, 6vw, var(--text-4xl)); color: var(--text-heading); line-height: var(--leading-tight); margin: 0 0 var(--space-3); }
.demande__intro { color: var(--text-muted); max-width: 60ch; margin: 0 0 var(--space-8); }

/* Étapes */
.stepper { display: none; list-style: none; margin: 0 0 var(--space-8); padding: 0; counter-reset: step; gap: var(--space-2); }
@media (min-width: 720px) { .stepper { display: flex; } }
.stepper li {
  counter-increment: step; flex: 1; display: flex; flex-direction: column; gap: var(--space-2);
  font-family: var(--font-heading); font-size: var(--text-sm); font-weight: var(--weight-medium); color: var(--stone-500);
}
.stepper li::before { content: ""; height: 4px; border-radius: 2px; background: var(--cream-200); box-shadow: var(--inset-hairline); transition: background-color var(--dur-slow) var(--ease-out); }
.stepper li.is-done::before { background: var(--mint-500); box-shadow: none; }
.stepper li.is-active::before { background: var(--blue-500); box-shadow: none; }
.stepper li.is-active { color: var(--navy-700); font-weight: var(--weight-bold); }
.stepper li.is-done { color: var(--navy-700); }
.stepper-mobile { display: flex; align-items: baseline; gap: var(--space-2); margin: 0 0 var(--space-5); font-family: var(--font-heading); font-weight: var(--weight-bold); color: var(--navy-700); }
.stepper-mobile #step-count { color: var(--blue-600); }
@media (min-width: 720px) { .stepper-mobile { display: none; } }

.step { border: 0; padding: 0; margin: 0; min-width: 0; display: flex; flex-direction: column; gap: var(--space-6); }
.step.is-entering { animation: step-in var(--dur-slow) var(--ease-out); }
@keyframes step-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.step__title { font-family: var(--font-heading); font-size: var(--text-2xl); font-weight: var(--weight-bold); color: var(--text-heading); letter-spacing: var(--track-snug); padding: 0; margin: 0 0 var(--space-5); }
.step__help { margin: calc(var(--space-4) * -1) 0 0; color: var(--text-muted); max-width: 60ch; }

/* Champs */
.field { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
.field--inline { flex-direction: row; align-items: center; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; }
.field__label { font-family: var(--font-heading); font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--navy-700); }
.field__hint { font-size: var(--text-sm); color: var(--text-muted); }
.field__hint.is-warning { color: var(--warning); }
.req { color: var(--blue-500); }
.optional { font-family: var(--font-sans); font-weight: var(--weight-regular); font-size: var(--text-xs); color: var(--text-muted); margin-left: var(--space-1); }
.subfields { display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-5); border-radius: var(--radius-lg); background: var(--surface-sunken); }

.input {
  width: 100%; height: var(--control-h-md); padding: 0 var(--space-4);
  font-family: var(--font-sans); font-size: var(--text-md); color: var(--text-body);
  background: var(--surface-card); border: var(--border-w) solid var(--border-subtle); border-radius: var(--radius-sm);
  transition: var(--transition-control);
}
.input:focus { outline: none; border-color: var(--blue-400); box-shadow: 0 0 0 3px var(--blue-100); }
.input.is-invalid { border-color: var(--danger); }
.input--short { max-width: 160px; }
.textarea { height: auto; padding: var(--space-3) var(--space-4); resize: vertical; line-height: var(--leading-normal); }
.input::placeholder { color: var(--stone-400); }

.grid-2 { display: grid; gap: var(--space-5); }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-2__full { grid-column: 1 / -1; } }

/* Chips (radio stylés) */
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip:not(.chip--add) > span, .chip--add {
  display: inline-flex; align-items: center; gap: var(--space-2);
  min-height: 40px; padding: 0 var(--space-4); border-radius: var(--radius-pill);
  font-family: var(--font-sans); font-size: var(--text-sm); font-weight: var(--weight-medium);
  background: var(--surface-card); color: var(--text-body);
  border: var(--border-w) solid var(--border-subtle); transition: var(--transition-control); cursor: pointer;
}
.chip:hover > span:not(.icon), .chip--add:hover { border-color: var(--blue-400); }
.chip input:checked + span { background: var(--navy-700); border-color: var(--navy-700); color: var(--cream-100); }
.chip input:focus-visible + span { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.chip--add .icon { color: var(--blue-500); width: 16px; height: 16px; }
.chip--add[disabled] { opacity: .42; cursor: not-allowed; }

/* Cartes de choix */
.choice-cards { display: grid; gap: var(--space-3); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .choice-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.choice-card {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-1);
  padding: var(--space-4); min-height: 96px; border-radius: var(--radius-lg);
  background: var(--surface-card); border: var(--border-w) solid var(--border-subtle);
  font-family: var(--font-heading); font-weight: var(--weight-semibold); color: var(--navy-700);
  cursor: pointer; transition: var(--transition-control);
}
.choice-card input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice-card .icon { width: 24px; height: 24px; color: var(--blue-500); margin-bottom: var(--space-2); }
.choice-card small { font-family: var(--font-sans); font-weight: var(--weight-regular); font-size: var(--text-xs); color: var(--text-muted); }
.choice-card:hover { border-color: var(--blue-400); }
.choice-card:has(input:checked) { border-color: var(--blue-500); box-shadow: 0 0 0 1px var(--blue-500); background: var(--blue-100); }
.choice-card:has(input:focus-visible) { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

/* Interrupteurs */
.switch { display: flex; align-items: center; gap: var(--space-3); cursor: pointer; font-size: var(--text-md); min-height: 40px; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__track { position: relative; width: 44px; height: 26px; flex: none; border-radius: var(--radius-pill); background: var(--stone-300); transition: background-color var(--dur-base) var(--ease-out); }
.switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--white); box-shadow: var(--shadow-sm); transition: transform var(--dur-base) var(--ease-out); }
.switch input:checked + .switch__track { background: var(--blue-500); }
.switch input:checked + .switch__track::after { transform: translateX(18px); }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

/* Case à cocher */
.checkbox { display: flex; gap: var(--space-3); align-items: flex-start; cursor: pointer; font-size: var(--text-sm); color: var(--text-body); margin-top: var(--space-2); }
.checkbox input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.checkbox__box { flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: var(--radius-xs); border: var(--border-w) solid var(--stone-400); background: var(--surface-card); display: inline-flex; align-items: center; justify-content: center; color: transparent; transition: var(--transition-control); }
.checkbox__box .icon { width: 14px; height: 14px; }
.checkbox input:checked + .checkbox__box { background: var(--blue-500); border-color: var(--blue-500); color: var(--white); }
.checkbox input:focus-visible + .checkbox__box { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.checkbox.is-invalid .checkbox__box { border-color: var(--danger); }

/* Compteurs */
.counter { display: inline-flex; align-items: stretch; border: var(--border-w) solid var(--border-subtle); border-radius: var(--radius-sm); background: var(--surface-card); overflow: hidden; }
.counter__btn { width: 44px; border: 0; background: transparent; color: var(--navy-700); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: var(--transition-control); }
.counter__btn:hover { background: var(--blue-100); }
.counter__btn .icon { width: 18px; height: 18px; }
.counter input { width: 56px; height: var(--control-h-md); border: 0; border-inline: var(--border-w) solid var(--border-subtle); text-align: center; font-size: var(--text-md); background: transparent; -moz-appearance: textfield; }
.counter input::-webkit-inner-spin-button, .counter input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.counter input:focus { outline: none; background: var(--blue-100); }
.counter--unit { position: relative; }
.counter--unit input { width: 84px; padding-right: 26px; }
.counter__unit { position: absolute; right: 52px; top: 50%; transform: translateY(-50%); font-size: var(--text-sm); color: var(--text-muted); pointer-events: none; }

/* ---------- Pièces ---------- */
.rooms { display: flex; flex-direction: column; gap: var(--space-4); }
.rooms-empty, .room-limit { margin: 0; font-size: var(--text-sm); color: var(--text-muted); }
.room-limit { color: var(--navy-700); padding: var(--space-4); border-radius: var(--radius-lg); background: var(--warning-soft); }
.room {
  background: var(--surface-card); border: var(--border-w) solid var(--border-subtle); border-radius: var(--radius-lg);
  padding: var(--space-5); display: grid; gap: var(--space-4);
}
.room.is-new { animation: step-in var(--dur-slow) var(--ease-out); }
.room__head { display: flex; align-items: center; gap: var(--space-3); }
.room__name {
  flex: 1; min-width: 0; border: 0; border-bottom: var(--border-w) dashed var(--border-subtle); background: transparent;
  font-family: var(--font-heading); font-size: var(--text-lg); font-weight: var(--weight-bold); color: var(--navy-700);
  padding: var(--space-1) 0; border-radius: 0;
}
.room__name:focus { outline: none; border-bottom-color: var(--blue-500); }
.room__remove { width: 36px; height: 36px; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--stone-500); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.room__remove:hover { background: var(--danger-soft); color: var(--danger); }
.room__main { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; }

/* Jauge de puissance : l'élément signature de la page */
.power { display: grid; gap: var(--space-2); min-width: 150px; flex: 1; max-width: 260px; }
.power__value { display: flex; align-items: baseline; justify-content: flex-end; gap: var(--space-2); }
.power__kw { font-family: var(--font-numeric); font-variant-numeric: tabular-nums; font-size: var(--text-3xl); font-weight: var(--weight-bold); color: var(--navy-700); line-height: 1; }
.power__label { font-size: var(--text-xs); color: var(--text-muted); }
.power__bar { position: relative; height: 8px; border-radius: 4px; background: var(--cream-200); overflow: hidden; }
.power__fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 4px; background: var(--grad-air); background-size: 260px 100%; transition: width var(--dur-slow) var(--ease-out); }
.power__unit { text-align: right; font-size: var(--text-xs); font-family: var(--font-heading); font-weight: var(--weight-semibold); color: var(--blue-700); }
@media (max-width: 559px) {
  .power { max-width: none; flex-basis: 100%; }
  .power__value { justify-content: flex-start; }
  .power__unit { text-align: left; }
}
.power.is-over .power__kw { color: var(--warning); }
.power.is-over .power__unit { color: var(--warning); }

.room__flags { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.room__flags .chip > span { min-height: 36px; font-size: var(--text-xs); }
.room__height { display: flex; align-items: center; gap: var(--space-3); font-size: var(--text-sm); }
.room__height .input { width: 96px; height: 36px; }
.room details { border-top: var(--border-w) solid var(--border-subtle); padding-top: var(--space-3); }
.room summary { cursor: pointer; font-family: var(--font-heading); font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--blue-600); list-style: none; display: flex; align-items: center; gap: var(--space-2); }
.room summary::-webkit-details-marker { display: none; }
.room summary .icon { transition: transform var(--dur-base) var(--ease-out); width: 16px; height: 16px; }
.room details[open] summary .icon { transform: rotate(180deg); }
.room__more { display: grid; gap: var(--space-4); padding-top: var(--space-4); }

/* ---------- Photos ---------- */
.photo-slots { display: grid; gap: var(--space-4); }
.photo-slot { background: var(--surface-card); border: var(--border-w) solid var(--border-subtle); border-radius: var(--radius-lg); padding: var(--space-5); display: grid; gap: var(--space-4); }
.photo-slot.has-photos { border-color: var(--mint-500); }
.photo-slot__head { display: flex; gap: var(--space-4); align-items: flex-start; }
.photo-slot__head > .icon { width: 44px; height: 44px; padding: 11px; border-radius: var(--radius-md); background: var(--blue-100); color: var(--blue-600); }
.photo-slot.has-photos .photo-slot__head > .icon { background: var(--mint-100); color: var(--teal-600); }
.photo-slot__title { margin: 0; font-family: var(--font-heading); font-weight: var(--weight-bold); color: var(--navy-700); }
.photo-slot__hint { margin: 0; font-size: var(--text-sm); color: var(--text-muted); }
.photo-slot__thumbs { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.photo-slot__thumbs:empty { display: none; }
.thumb { position: relative; width: 84px; height: 84px; border-radius: var(--radius-md); overflow: hidden; background: var(--cream-200); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb button { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border: 0; border-radius: var(--radius-sm); background: var(--veil-deep); color: var(--white); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.thumb button .icon { width: 14px; height: 14px; }
.photo-slot__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.photo-slot__actions label.btn { position: relative; }
.note { display: flex; gap: var(--space-2); align-items: flex-start; margin: 0; font-size: var(--text-sm); color: var(--text-muted); }
.note .icon { color: var(--blue-500); margin-top: 2px; }

/* ---------- Actions ---------- */
.form-error { margin: var(--space-5) 0 0; padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm); background: var(--danger-soft); color: var(--danger); font-size: var(--text-sm); }
.step-actions { margin-top: var(--space-8); display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }
.step-actions__summary { margin: 0; font-size: var(--text-sm); color: var(--text-muted); }
.step-actions__buttons { display: flex; gap: var(--space-3); margin-left: auto; }
.step-actions .icon { width: 18px; height: 18px; }
@media (max-width: 719px) {
  .step-actions {
    position: sticky; bottom: 0; z-index: 20; margin-inline: -16px; margin-top: var(--space-6);
    padding: var(--space-3) 16px calc(var(--space-3) + env(safe-area-inset-bottom, 0px));
    background: var(--veil); backdrop-filter: var(--blur-veil); -webkit-backdrop-filter: var(--blur-veil);
    border-top: var(--border-w) solid var(--border-subtle);
  }
  .step-actions__buttons { flex: 1; justify-content: flex-end; }
  #btn-next, #btn-submit { flex: 1; max-width: 240px; }
}

/* ---------- Bilan (colonne de droite) ---------- */
.bilan { display: none; }
@media (min-width: 960px) {
  .bilan {
    display: block; position: sticky; top: 108px;
    background: var(--navy-700); color: var(--navy-100); border-radius: var(--radius-xl); padding: var(--space-6);
  }
}
.bilan__title { margin: 0 0 var(--space-5); font-family: var(--font-heading); font-size: var(--text-lg); font-weight: var(--weight-bold); color: var(--cream-100); }
.bilan__rooms { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.bilan__rooms li { display: grid; grid-template-columns: 1fr auto; gap: 2px var(--space-3); font-size: var(--text-sm); }
.bilan__rooms .b-name { color: var(--cream-100); font-weight: var(--weight-medium); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bilan__rooms .b-kw { font-family: var(--font-numeric); font-variant-numeric: tabular-nums; font-weight: var(--weight-bold); color: var(--cream-100); }
.bilan__rooms .b-detail { grid-column: 1 / -1; color: var(--navy-300); font-size: var(--text-xs); }
.bilan__empty { margin: 0; font-size: var(--text-sm); color: var(--navy-300); }
.bilan__total { margin-top: var(--space-5); padding-top: var(--space-5); border-top: var(--border-w) solid rgba(248, 248, 242, .16); display: grid; gap: var(--space-2); }
.bilan__row { display: flex; justify-content: space-between; gap: var(--space-3); font-size: var(--text-sm); }
.bilan__row strong { color: var(--cream-100); font-family: var(--font-heading); }
#bilan-kw { font-size: var(--text-2xl); }
.bilan__note { margin: var(--space-5) 0 0; font-size: var(--text-xs); line-height: var(--leading-normal); color: var(--navy-300); }

/* ---------- Confirmation ---------- */
.confirmation { max-width: 620px; outline: none; }
.confirmation__badge { width: 64px; height: 64px; border-radius: var(--radius-lg); background: var(--mint-100); color: var(--teal-600); display: flex; align-items: center; justify-content: center; margin-bottom: var(--space-6); animation: step-in var(--dur-slow) var(--ease-out); }
.confirmation__badge .icon { width: 32px; height: 32px; }
.confirmation__ref { color: var(--text-muted); margin: 0 0 var(--space-8); }
.confirmation__ref .numeric { color: var(--navy-700); font-weight: var(--weight-bold); }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; }
.timeline li { position: relative; display: grid; grid-template-columns: 32px 1fr; gap: var(--space-4); padding-bottom: var(--space-6); }
.timeline li:not(:last-child)::before { content: ""; position: absolute; left: 15px; top: 32px; bottom: 0; width: 2px; background: var(--stone-300); }
.timeline li.is-done::before { background: var(--mint-500); }
.timeline__dot { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--stone-300); background: var(--surface-page); display: flex; align-items: center; justify-content: center; color: var(--white); }
.timeline__dot .icon { width: 16px; height: 16px; }
.is-done .timeline__dot { background: var(--mint-500); border-color: var(--mint-500); }
.is-active .timeline__dot { border-color: var(--blue-500); }
.is-active .timeline__dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--blue-500); animation: pulse 1.6s var(--ease-in-out) infinite; }
@keyframes pulse { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .is-active .timeline__dot::after { animation: none; } }
.timeline__title { margin: 4px 0 var(--space-1); font-family: var(--font-heading); font-weight: var(--weight-bold); color: var(--navy-700); }
li:not(.is-done):not(.is-active) .timeline__title { color: var(--stone-500); }
.timeline__text { margin: 0; font-size: var(--text-sm); color: var(--text-muted); }
.is-action .timeline__dot { background: var(--warning); border-color: var(--warning); }
.timeline__list { display: grid; gap: var(--space-1); margin: var(--space-3) 0; padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); background: var(--warning-soft); color: var(--navy-700); font-weight: var(--weight-medium); }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--surface-sunken); border-top: var(--border-w) solid var(--border-subtle); padding-block: var(--space-10) calc(var(--space-10) + env(safe-area-inset-bottom, 0px)); font-size: var(--text-sm); color: var(--text-muted); }
.site-footer__inner { display: grid; gap: var(--space-6); }
@media (min-width: 960px) { .site-footer__inner { grid-template-columns: 1fr auto; align-items: end; } }
.site-footer p { margin: 0 0 var(--space-1); }
.site-footer__name { font-size: var(--text-xl); color: var(--navy-700); margin-bottom: var(--space-2) !important; }
.site-footer__demo { max-width: 42ch; }
