/* ═══════════════════════════════════════════════════════════
   TARA Institut — Inscription en ligne
   inscription.php (parcours), mon-dossier.php (suivi), carte de la page Contact
   ═══════════════════════════════════════════════════════════ */

.ins { --ins-ring: 0 0 0 2px var(--color-navy), 0 14px 36px rgba(26, 37, 121, .18); background: var(--bg-base); }
[data-theme="dark"] .ins { --ins-ring: 0 0 0 2px #7C8CFF, 0 14px 36px rgba(0, 0, 0, .5); }

/* ── Hero ──────────────────────────────────────────────────── */
.ins-hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: calc(var(--navbar-height) + var(--topbar-height) + 56px) 0 72px;
  background: var(--gradient-hero); color: #fff;
}
.ins-hero--compact { padding-bottom: 96px; }
.ins-hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(520px 420px at 88% 8%, rgba(212, 35, 35, .55), transparent 70%),
    radial-gradient(420px 360px at 4% 100%, rgba(80, 110, 255, .35), transparent 70%);
  animation: insGlow 12s ease-in-out infinite alternate;
}
.ins-hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: url("../../images/guilloche-light.svg") 110% 50% / 760px auto no-repeat;
  opacity: .07;
}
@keyframes insGlow { to { transform: scale(1.08) translate(-2%, 1%); } }

.ins-hero__inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: center; }
.ins-hero--compact .ins-hero__inner { grid-template-columns: 1fr; }
.ins-eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px;
  padding: 7px 14px; border-radius: var(--radius-full);
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18);
  font-size: var(--text-sm); font-weight: 600; letter-spacing: .02em;
}
.ins-eyebrow__dot { width: 8px; height: 8px; border-radius: 50%; background: #34D399; box-shadow: 0 0 0 0 rgba(52, 211, 153, .7); animation: insPulse 2s infinite; }
@keyframes insPulse { 70% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }

/* Titres posés sur un fond sombre : reset.css leur donne --text-primary (bleu nuit en mode clair). */
.ins-hero__title, .dz-celebrate h2, .ins-promo h2 { color: #fff; }

.ins-hero__title {
  font-family: var(--font-heading); font-size: var(--text-6xl); font-weight: 800;
  line-height: 1.04; letter-spacing: -.03em; margin-bottom: 20px; max-width: 16ch;
}
.ins-hero__title em { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: #FFB4B4; }
.ins-hero__text { font-size: var(--text-lg); line-height: 1.7; color: rgba(255, 255, 255, .82); max-width: 54ch; }
.ins-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.ins-start { font-size: var(--text-base); padding-inline: 28px; min-height: 54px; }

.ins-road { list-style: none; display: grid; gap: 12px; padding: 0; margin: 0; counter-reset: road; }
.ins-road li {
  position: relative; display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(10px); font-size: var(--text-base); color: rgba(255, 255, 255, .85);
  opacity: 0; transform: translateX(24px);
  animation: insRise .7s var(--ease-smooth) forwards; animation-delay: calc(.25s + var(--i) * .12s);
}
.ins-road li b { color: #fff; }
.ins-road li:not(:last-child)::after {
  content: ""; position: absolute; left: 39px; bottom: -13px; width: 2px; height: 14px;
  background: linear-gradient(rgba(255, 255, 255, .35), transparent);
}
.ins-road__icon { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 12px; background: rgba(255, 255, 255, .14); color: #fff; }
.ins-road li:last-child .ins-road__icon { background: var(--color-red); }
@keyframes insRise { to { opacity: 1; transform: none; } }

/* ── Scène ─────────────────────────────────────────────────── */
.ins-stage { position: relative; padding: 0 0 96px; margin-top: -40px; scroll-margin-top: calc(var(--navbar-height) + 12px); }
.ins-hero--compact + .ins-stage { margin-top: -64px; }

.ins-alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-md); font-size: var(--text-sm); margin-bottom: 20px; }
.ins-alert svg { flex: none; margin-top: 2px; }
.ins-alert p + p { margin-top: 4px; }
.ins-alert--error { background: #FEF2F2; border: 1px solid #FECACA; color: #991B1B; }
[data-theme="dark"] .ins-alert--error { background: rgba(239, 68, 68, .12); border-color: rgba(239, 68, 68, .3); color: #FCA5A5; }

.ins-off { max-width: 560px; margin: 0 auto; padding: 40px 32px; text-align: center; background: var(--bg-surface); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); }
.ins-off__icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--color-navy-pale); color: var(--color-navy); margin-bottom: 14px; }
.ins-off h2 { font-family: var(--font-heading); font-size: var(--text-2xl); margin-bottom: 8px; }
.ins-off p { color: var(--text-secondary); margin-bottom: 18px; }
.ins-off__debug { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); word-break: break-all; }

/* ── Assistant ─────────────────────────────────────────────── */
.wz { animation: wzOpen .8s var(--ease-smooth); }
.wz[hidden] { display: none; }
@keyframes wzOpen { from { opacity: 0; transform: translateY(40px) scale(.98); } }

.wz-progress {
  position: relative; list-style: none; display: grid; grid-template-columns: repeat(7, 1fr);
  margin: 0 0 18px; padding: 18px 20px 16px; border-radius: var(--radius-xl);
  background: var(--bg-surface); box-shadow: var(--shadow-lg); border: 1px solid var(--border-light);
}
.wz-progress li[data-wz-dot] { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.wz-progress__dot {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg-surface); border: 2px solid var(--border-mid); color: var(--text-muted);
  font-weight: 700; font-size: var(--text-sm);
  transition: all var(--duration-slow) var(--ease-bounce);
}
.wz-progress__dot svg { display: none; }
.wz-progress__label { font-size: var(--text-xs); font-weight: 600; color: var(--text-muted); transition: color var(--duration-base); }
.wz-progress li.is-active .wz-progress__dot { border-color: var(--color-navy); background: var(--color-navy); color: #fff; transform: scale(1.12); box-shadow: 0 0 0 6px var(--color-navy-pale); }
.wz-progress li.is-active .wz-progress__label { color: var(--text-primary); }
.wz-progress li.is-done .wz-progress__dot { border-color: var(--color-success); background: var(--color-success); color: #fff; }
.wz-progress li.is-done .wz-progress__dot b { display: none; }
.wz-progress li.is-done .wz-progress__dot svg { display: block; }
.wz-progress li.is-done { cursor: pointer; }
.wz-progress li.is-done .wz-progress__label { color: var(--text-secondary); }
.wz-progress__bar { position: absolute; left: calc(100% / 14 + 20px); right: calc(100% / 14 + 20px); top: 35px; height: 3px; border-radius: 3px; background: var(--border-light); }
.wz-progress__bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--color-success), var(--color-navy)); transition: width .7s var(--ease-smooth); }

.wz-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.wz-card {
  position: relative; min-width: 0; padding: clamp(22px, 4vw, 40px);
  background: var(--bg-surface); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg); border: 1px solid var(--border-light);
}

.wz-step { border: 0; padding: 0; margin: 0; min-width: 0; }
.wz-step[hidden] { display: none; }
.wz-step.is-entering { animation: wzIn .55s var(--ease-smooth) both; }
.wz-step.is-entering-back { animation: wzInBack .55s var(--ease-smooth) both; }
@keyframes wzIn { from { opacity: 0; transform: translateX(36px); } }
@keyframes wzInBack { from { opacity: 0; transform: translateX(-36px); } }

.wz-step__head { display: grid; gap: 6px; margin-bottom: 26px; padding: 0; width: 100%; }
.wz-step__kicker { font-size: var(--text-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--color-red); }
.wz-step__title { font-family: var(--font-heading); font-size: var(--text-4xl); font-weight: 800; letter-spacing: -.025em; line-height: 1.12; color: var(--text-primary); }
.wz-step__lead { color: var(--text-secondary); font-size: var(--text-base); }

/* Cartes à choisir : la carte choisie ressort, les autres s'effacent. */
.wz-choices { display: grid; gap: 14px; }
.wz-choices > label { cursor: pointer; }
.wz-choices.has-choice > label:not(.is-selected) { opacity: .42; filter: grayscale(.9); transform: scale(.985); }
.wz-choices.has-choice > label:not(.is-selected):hover { opacity: .8; filter: none; }

.wz-check { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--color-navy); color: #fff; opacity: 0; transform: scale(.4) rotate(-30deg); transition: all var(--duration-slow) var(--ease-bounce); }
.is-selected .wz-check { opacity: 1; transform: none; }

/* Établissements */
.wz-choices--brands { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.wz-brand {
  position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 250px;
  padding: 26px; border-radius: var(--radius-xl); overflow: hidden; isolation: isolate;
  background: var(--bg-surface); border: 1.5px solid var(--border-light);
  transition: transform var(--duration-slow) var(--ease-smooth), box-shadow var(--duration-slow) var(--ease-smooth), opacity var(--duration-slow), filter var(--duration-slow), border-color var(--duration-base);
}
.wz-brand::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: var(--brand-color); }
.wz-brand::after { content: ""; position: absolute; z-index: -1; right: -80px; bottom: -80px; width: 220px; height: 220px; border-radius: 50%; background: var(--brand-glow); transition: transform .7s var(--ease-smooth); }
.wz-brand:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.wz-brand:hover::after, .wz-brand.is-selected::after { transform: scale(1.35); }
.wz-brand.is-selected { border-color: transparent; box-shadow: var(--ins-ring); transform: translateY(-4px); }
.wz-brand--tara { --brand-color: linear-gradient(90deg, var(--color-red), var(--color-navy)); --brand-glow: radial-gradient(circle, rgba(212, 35, 35, .16), transparent 70%); --brand-ink: var(--color-red); }
.wz-brand--fit { --brand-color: linear-gradient(90deg, #0E9F6E, #0B7A8C); --brand-glow: radial-gradient(circle, rgba(14, 159, 110, .18), transparent 70%); --brand-ink: #0E9F6E; }
.wz-brand__mark { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: var(--brand-color); color: #fff; font-family: var(--font-heading); font-weight: 800; font-size: 15px; letter-spacing: .04em; box-shadow: 0 10px 24px rgba(15, 23, 42, .18); }
.wz-brand__name { font-family: var(--font-heading); font-size: var(--text-3xl); font-weight: 800; letter-spacing: -.02em; color: var(--text-primary); margin-top: 8px; }
.wz-brand__desc { color: var(--text-secondary); font-size: var(--text-sm); line-height: 1.6; }
.wz-brand__meta { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.wz-brand__meta > span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: var(--radius-full); background: var(--bg-surface-2); color: var(--text-secondary); font-size: var(--text-xs); font-weight: 600; }
.wz-brand__meta svg { color: var(--brand-ink); }

/* Centres */
.wz-choices--centres { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.wz-city { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; margin-top: 6px; font-size: var(--text-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
.wz-city::after { content: ""; flex: 1; height: 1px; background: var(--border-light); }
.wz-centre, .wz-level, .wz-bank {
  position: relative; display: flex; flex-direction: column; gap: 6px; padding: 20px 22px;
  border-radius: var(--radius-lg); background: var(--bg-surface); border: 1.5px solid var(--border-light);
  transition: transform var(--duration-slow) var(--ease-smooth), box-shadow var(--duration-slow) var(--ease-smooth), opacity var(--duration-slow), filter var(--duration-slow), border-color var(--duration-base);
  animation: wzPop .5s var(--ease-smooth) both; animation-delay: calc(var(--i, 0) * 50ms);
}
@keyframes wzPop { from { opacity: 0; transform: translateY(14px); } }
.wz-centre:hover, .wz-level:hover, .wz-bank:hover { border-color: var(--border-strong); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.wz-centre.is-selected, .wz-level.is-selected, .wz-bank.is-selected { border-color: transparent; box-shadow: var(--ins-ring); }
.wz-centre__pin { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--color-navy-pale); color: var(--color-navy); margin-bottom: 6px; }
[data-theme="dark"] .wz-centre__pin { color: #A5B4FC; }
.wz-centre__name { font-family: var(--font-heading); font-size: var(--text-lg); font-weight: 700; color: var(--text-primary); padding-right: 30px; }
.wz-centre__addr { font-size: var(--text-sm); color: var(--text-secondary); }
.wz-centre__tel { font-size: var(--text-xs); color: var(--text-muted); }

/* Langues et niveaux */
.wz-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.wz-tab { min-height: 42px; padding: 0 18px; border-radius: var(--radius-full); border: 1.5px solid var(--border-light); background: var(--bg-surface); color: var(--text-secondary); font: 600 var(--text-sm) var(--font-body); cursor: pointer; transition: var(--transition-color), transform var(--duration-fast); }
.wz-tab:hover { border-color: var(--border-strong); color: var(--text-primary); }
.wz-tab[aria-selected="true"] { background: var(--color-navy); border-color: var(--color-navy); color: #fff; }
.wz-tab:active { transform: scale(.97); }
.wz-choices--levels { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.wz-level__top { display: flex; align-items: baseline; gap: 10px; padding-right: 30px; }
.wz-level__code { font-family: var(--font-heading); font-size: 2.2rem; font-weight: 800; line-height: 1; letter-spacing: -.03em; color: var(--color-navy); }
[data-theme="dark"] .wz-level__code { color: #A5B4FC; }
.wz-level__variant { font-size: var(--text-xs); font-weight: 700; padding: 4px 9px; border-radius: var(--radius-full); background: var(--color-red-pale); color: var(--color-red); }
.wz-level__dur { font-size: var(--text-xs); color: var(--text-muted); }
.wz-level__price { margin-top: 10px; padding-top: 12px; border-top: 1px dashed var(--border-light); font-family: var(--font-heading); font-size: var(--text-xl); font-weight: 800; color: var(--text-primary); }
.wz-level__min { font-size: var(--text-xs); color: var(--text-secondary); }
.wz-date .wz-level__code { font-size: 1.35rem; white-space: nowrap; }
.wz-prep { margin-top: 26px; display: grid; gap: 4px; }

/* Banques */
.wz-choices--banks { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.wz-bank { flex-direction: row; align-items: center; gap: 14px; }
.wz-bank__logo { display: grid; place-items: center; flex: none; width: 54px; height: 54px; border-radius: 14px; font-family: var(--font-heading); font-weight: 800; font-size: 13px; color: #fff; background: var(--bank-color, var(--color-navy)); }
.wz-bank--cca { --bank-color: linear-gradient(135deg, #0B5D3B, #18A05E); }
.wz-bank--afriland { --bank-color: linear-gradient(135deg, #B01C1C, #E53535); }
.wz-bank__name { display: block; font-family: var(--font-heading); font-weight: 700; font-size: var(--text-lg); color: var(--text-primary); }
.wz-bank__sub { display: block; font-size: var(--text-xs); color: var(--text-muted); }
.wz-only { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; padding: 12px 14px; border-radius: var(--radius-md); background: var(--color-navy-pale); color: var(--text-primary); font-size: var(--text-sm); }

.wz-bankinfo { margin-top: 20px; padding: 22px; border-radius: var(--radius-lg); background: linear-gradient(160deg, var(--color-navy-dark), var(--color-navy) 70%); color: #fff; position: relative; overflow: hidden; animation: wzPop .5s var(--ease-smooth); }
.wz-bankinfo::after { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(212, 35, 35, .5), transparent 70%); }
.wz-bankinfo[hidden] { display: none; }
.wz-bankinfo__title { position: relative; font-family: var(--font-heading); font-size: var(--text-xl); font-weight: 800; margin-bottom: 14px; }
.wz-bankinfo dl { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px 18px; margin-bottom: 16px; }
.wz-bankinfo dt { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.wz-bankinfo dd { font-family: var(--font-mono); font-weight: 600; font-size: var(--text-sm); word-break: break-word; }
.wz-bankinfo__holder { grid-column: 1 / -1; }
.wz-bankinfo__wide { grid-column: span 2; }
@media (max-width: 480px) { .wz-bankinfo__wide { grid-column: 1 / -1; } }
.wz-bankinfo__holder dd { font-family: var(--font-body); }
.wz-bankinfo ol { position: relative; list-style: none; display: grid; gap: 8px; padding: 14px 0 0; margin: 0; border-top: 1px solid rgba(255, 255, 255, .15); counter-reset: bk; font-size: var(--text-sm); color: rgba(255, 255, 255, .85); }
.wz-bankinfo ol li { counter-increment: bk; display: grid; grid-template-columns: 24px 1fr; gap: 8px; }
.wz-bankinfo ol li::before { content: counter(bk); display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, .16); font-weight: 700; font-size: 11px; }

/* Champs */
.wz-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.wz-fields--tight { gap: 12px; }
.wz-field { display: grid; gap: 7px; align-content: start; }
.wz-field--full { grid-column: 1 / -1; }
.wz-field > label, .wz-field__label { font-size: var(--text-sm); font-weight: 600; color: var(--text-primary); }
.wz-field em { font-style: normal; font-weight: 400; color: var(--text-muted); }
.wz-field input, .wz-field textarea {
  width: 100%; min-height: 52px; padding: 12px 16px; border-radius: var(--radius-md);
  border: 1.5px solid var(--border-mid); background: var(--bg-surface); color: var(--text-primary);
  font: 500 var(--text-base) var(--font-body); transition: border-color var(--duration-fast), box-shadow var(--duration-base);
}
.wz-field textarea { min-height: 96px; resize: vertical; }
.wz-field input:focus, .wz-field textarea:focus { outline: none; border-color: var(--color-navy); box-shadow: 0 0 0 4px var(--color-navy-pale); }
[data-theme="dark"] .wz-field input:focus, [data-theme="dark"] .wz-field textarea:focus { border-color: #7C8CFF; }
.wz-field input.is-invalid { border-color: var(--color-danger); box-shadow: 0 0 0 4px rgba(239, 68, 68, .12); animation: wzShake .4s; }
@keyframes wzShake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.wz-field small { font-size: var(--text-xs); color: var(--text-muted); }
.wz-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.wz-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: var(--radius-full); border: 1.5px solid var(--border-mid); color: var(--text-secondary); font-size: var(--text-sm); font-weight: 600; cursor: pointer; transition: var(--transition-color); }
.wz-pill:hover { border-color: var(--border-strong); }
.wz-pill:has(input:checked) { background: var(--color-navy); border-color: var(--color-navy); color: #fff; }
.wz-pill:has(input:focus-visible), .wz-choices > label:has(input:focus-visible) { outline: 3px solid var(--color-red); outline-offset: 3px; }

/* Récapitulatif */
.wz-recap { display: grid; border: 1px solid var(--border-light); border-radius: var(--radius-lg); overflow: hidden; }
.wz-recap > button { display: grid; grid-template-columns: 150px 1fr auto; gap: 14px; align-items: center; width: 100%; padding: 14px 18px; border: 0; border-bottom: 1px solid var(--border-light); background: var(--bg-surface); text-align: left; font: inherit; color: inherit; cursor: pointer; transition: background var(--duration-fast); animation: wzPop .45s var(--ease-smooth) both; animation-delay: calc(var(--i, 0) * 60ms); }
.wz-recap > button:last-child { border-bottom: 0; }
.wz-recap > button:hover { background: var(--bg-surface-2); }
.wz-recap dt { font-size: var(--text-sm); color: var(--text-muted); }
.wz-recap dd { font-weight: 600; color: var(--text-primary); }
.wz-recap__edit { font-size: var(--text-xs); font-weight: 600; color: var(--color-navy); }
[data-theme="dark"] .wz-recap__edit { color: #A5B4FC; }
.wz-recap__total { background: var(--color-navy-pale) !important; }
.wz-recap__total dd { font-family: var(--font-heading); font-size: var(--text-2xl); font-weight: 800; color: var(--color-red); }
.wz-next { margin-top: 20px; padding: 18px 20px; border-radius: var(--radius-lg); background: var(--bg-surface-2); }
.wz-next__title { font-family: var(--font-heading); font-weight: 700; margin-bottom: 10px; }
.wz-next ol { display: grid; gap: 8px; padding-left: 20px; margin: 0; color: var(--text-secondary); font-size: var(--text-sm); }
.wz-next b { color: var(--text-primary); }
.wz-consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; font-size: var(--text-sm); color: var(--text-secondary); cursor: pointer; }
.wz-consent input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--color-navy); flex: none; }
.wz-consent a { color: var(--color-navy); text-decoration: underline; }
[data-theme="dark"] .wz-consent a { color: #A5B4FC; }

/* Navigation */
.wz-nav { display: flex; align-items: center; gap: 12px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--border-light); }
.wz-back { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 14px 0 8px; border: 0; border-radius: var(--radius-full); background: none; color: var(--text-secondary); font: 600 var(--text-sm) var(--font-body); cursor: pointer; }
.wz-back:hover { background: var(--bg-surface-2); color: var(--text-primary); }
.wz-back[hidden] { display: none; }
.wz-back__icon { transform: rotate(180deg); }
.wz-nav__total { display: none; line-height: 1.2; }
.wz-nav__total span { font-size: var(--text-xs); color: var(--text-muted); }
.wz-nav__total b { font-family: var(--font-heading); font-size: var(--text-lg); color: var(--text-primary); }
.wz-next-btn, .wz-submit { margin-left: auto; min-height: 52px; padding-inline: 26px; }
.wz-next-btn[hidden], .wz-submit[hidden] { display: none; }
.wz-next-btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.wz-submit.is-loading { pointer-events: none; opacity: .8; }

/* Récapitulatif latéral */
.wz-summary { position: sticky; top: calc(var(--navbar-height-small) + 18px); padding: 24px; border-radius: var(--radius-xl); background: var(--bg-navy); color: #fff; box-shadow: var(--shadow-lg); overflow: hidden; isolation: isolate; }
.wz-summary::before { content: ""; position: absolute; z-index: -1; inset: auto -90px -110px auto; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(212, 35, 35, .45), transparent 70%); }
.wz-summary__kicker { font-size: var(--text-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .55); margin-bottom: 14px; }
.wz-summary__list { list-style: none; display: grid; gap: 12px; padding: 0; margin: 0 0 20px; }
.wz-summary__list li { display: grid; gap: 2px; padding-left: 14px; border-left: 2px solid rgba(255, 255, 255, .14); transition: border-color var(--duration-slow); }
.wz-summary__list li.is-filled { border-color: #34D399; }
.wz-summary__list li.is-filled b { animation: wzFlash .6s var(--ease-smooth); }
@keyframes wzFlash { from { opacity: 0; transform: translateY(6px); } }
.wz-summary__list span { font-size: var(--text-xs); color: rgba(255, 255, 255, .55); }
.wz-summary__list b { font-size: var(--text-sm); font-weight: 600; }
.wz-summary__amount { display: grid; gap: 2px; padding: 16px; border-radius: var(--radius-md); background: rgba(255, 255, 255, .08); }
.wz-summary__amount span { font-size: var(--text-xs); color: rgba(255, 255, 255, .6); }
.wz-summary__amount b { font-family: var(--font-heading); font-size: var(--text-3xl); font-weight: 800; letter-spacing: -.02em; }
.wz-summary__amount small { font-size: var(--text-xs); color: rgba(255, 255, 255, .7); }
.wz-summary__amount small[hidden] { display: none; }
.wz-summary__safe { display: flex; gap: 8px; margin-top: 16px; font-size: var(--text-xs); line-height: 1.5; color: rgba(255, 255, 255, .65); }
.wz-summary__safe svg { flex: none; color: #34D399; }

/* ── Mon dossier ───────────────────────────────────────────── */
.dz-lookup { max-width: 520px; margin: 0 auto; padding: clamp(24px, 5vw, 40px); border-radius: var(--radius-xl); background: var(--bg-surface); box-shadow: var(--shadow-xl); border: 1px solid var(--border-light); text-align: center; animation: wzOpen .7s var(--ease-smooth); }
.dz-lookup__icon { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; background: var(--gradient-tara); color: #fff; margin-bottom: 14px; }
.dz-lookup h2 { font-family: var(--font-heading); font-size: var(--text-3xl); font-weight: 800; margin-bottom: 6px; }
.dz-lookup > p { color: var(--text-secondary); margin-bottom: 22px; }
.dz-lookup__form { display: grid; gap: 14px; text-align: left; }
.dz-lookup__form .btn { justify-content: center; min-height: 52px; }
.dz-lookup .dz-lookup__alt { margin: 18px 0 0; font-size: var(--text-sm); }
.dz-lookup__alt a { color: var(--color-red); font-weight: 600; }

.dz-celebrate { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; margin-bottom: 18px; padding: 24px 28px; border-radius: var(--radius-xl); background: linear-gradient(135deg, #065F46, #0E9F6E); color: #fff; box-shadow: 0 20px 50px rgba(14, 159, 110, .3); animation: wzOpen .8s var(--ease-smooth); }
.dz-celebrate--soft { grid-template-columns: auto 1fr; }
.dz-celebrate h2 { font-family: var(--font-heading); font-size: var(--text-2xl); font-weight: 800; margin-bottom: 4px; }
.dz-celebrate p { color: rgba(255, 255, 255, .85); font-size: var(--text-sm); }
.dz-celebrate__check { width: 58px; height: 58px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.dz-celebrate__check circle { stroke: rgba(255, 255, 255, .4); stroke-dasharray: 151; stroke-dashoffset: 151; animation: dzDraw .7s .2s var(--ease-smooth) forwards; }
.dz-celebrate__check path { stroke-dasharray: 36; stroke-dashoffset: 36; animation: dzDraw .45s .8s var(--ease-smooth) forwards; }
@keyframes dzDraw { to { stroke-dashoffset: 0; } }
.dz-celebrate .dz-code { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .25); color: #fff; }
.dz-celebrate .dz-code b { color: #fff; }
.dz-celebrate .dz-copy { background: #fff; color: #065F46; }

.dz-code { display: inline-grid; grid-template-columns: auto auto; align-items: center; gap: 2px 10px; padding: 8px 10px 8px 14px; border-radius: var(--radius-md); border: 1px solid var(--border-light); background: var(--bg-surface-2); }
.dz-code > span { grid-column: 1 / -1; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
.dz-celebrate .dz-code > span { color: rgba(255, 255, 255, .7); }
.dz-code b { font-family: var(--font-mono); font-size: var(--text-base); letter-spacing: .04em; color: var(--color-red); }
.dz-code--big b { font-size: var(--text-2xl); }
.dz-copy { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border: 0; border-radius: var(--radius-full); background: var(--color-navy); color: #fff; font: 600 var(--text-xs) var(--font-body); cursor: pointer; transition: transform var(--duration-fast); }
.dz-copy:active { transform: scale(.95); }
.dz-copy.is-copied { background: var(--color-success) !important; color: #fff !important; }
.dz-copy--icon { min-height: 30px; width: 30px; padding: 0; justify-content: center; }

.dz-card { padding: clamp(22px, 4vw, 40px); border-radius: var(--radius-xl); background: var(--bg-surface); box-shadow: var(--shadow-xl); border: 1px solid var(--border-light); animation: wzOpen .7s .1s var(--ease-smooth) both; }
.dz-card__head { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; }
.dz-card__kicker { font-size: var(--text-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--color-red); margin-bottom: 6px; }
.dz-card__name { font-family: var(--font-heading); font-size: var(--text-4xl); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.dz-card__formation { color: var(--text-secondary); margin-top: 4px; }
.dz-card__side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }

.dz-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--radius-full); font-size: var(--text-sm); font-weight: 700; border: 1px solid; }
.dz-badge i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: insPulse 2s infinite; }
.dz-badge--wait { background: #EEF2FF; border-color: #C7D2FE; color: #3730A3; }
.dz-badge--pending { background: #FFF7ED; border-color: #FED7AA; color: #C2410C; }
.dz-badge--ok { background: #ECFDF5; border-color: #A7F3D0; color: #047857; }
.dz-badge--ko { background: #FEF2F2; border-color: #FECACA; color: #B91C1C; }
.dz-badge--ok i, .dz-badge--ko i { animation: none; }

.dz-timeline { position: relative; list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); padding: 0; margin: 0 0 18px; }
.dz-timeline::before, .dz-timeline::after { content: ""; position: absolute; top: 21px; left: 10%; height: 3px; border-radius: 3px; }
.dz-timeline::before { right: 10%; background: var(--border-light); }
.dz-timeline::after { width: calc(80% * var(--done) / 4); max-width: 80%; background: linear-gradient(90deg, var(--color-success), #34D399); transform-origin: left; animation: dzGrow 1.1s .3s var(--ease-smooth) both; }
@keyframes dzGrow { from { transform: scaleX(0); } }
.dz-timeline__step { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; animation: wzPop .5s var(--ease-smooth) both; animation-delay: calc(.2s + var(--i) * .1s); }
.dz-timeline__dot { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--bg-surface); border: 2px solid var(--border-mid); color: var(--text-muted); }
.dz-timeline__label { font-size: var(--text-xs); font-weight: 600; color: var(--text-muted); max-width: 13ch; }
.is-done .dz-timeline__dot { background: var(--color-success); border-color: var(--color-success); color: #fff; }
.is-done .dz-timeline__label { color: var(--text-secondary); }
.is-now .dz-timeline__dot { background: var(--color-navy); border-color: var(--color-navy); color: #fff; box-shadow: 0 0 0 7px var(--color-navy-pale); animation: dzNow 2.2s infinite; }
.is-now .dz-timeline__label { color: var(--text-primary); }
.is-ko .dz-timeline__dot { background: var(--color-danger); border-color: var(--color-danger); color: #fff; }
@keyframes dzNow { 50% { box-shadow: 0 0 0 12px rgba(26, 37, 121, .04); } }

.dz-status-text { max-width: 70ch; margin: 0 auto 28px; text-align: center; color: var(--text-secondary); }

.dz-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.dz-panel { position: relative; padding: 26px; border-radius: var(--radius-lg); border: 1px solid var(--border-light); background: var(--bg-surface-2); display: flex; flex-direction: column; gap: 14px; }
.dz-panel h3 { font-family: var(--font-heading); font-size: var(--text-2xl); font-weight: 800; padding-left: 46px; min-height: 36px; display: flex; align-items: center; }
.dz-panel .dz-panel__num { position: absolute; top: 26px; left: 26px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--color-red); color: #fff; font-weight: 800; }
.dz-bank { padding: 18px; border-radius: var(--radius-md); background: var(--bg-surface); border: 1.5px solid var(--color-navy); }
[data-theme="dark"] .dz-bank { border-color: #7C8CFF; }
.dz-bank__name { font-family: var(--font-heading); font-weight: 800; font-size: var(--text-lg); color: var(--color-navy); margin-bottom: 10px; }
[data-theme="dark"] .dz-bank__name { color: #A5B4FC; }
.dz-bank__rows { display: grid; gap: 6px; margin-bottom: 12px; }
.dz-bank__rows div { display: grid; grid-template-columns: 96px 1fr; gap: 10px; font-size: var(--text-sm); }
.dz-bank__rows dt { color: var(--text-muted); }
.dz-bank__rows dd { font-weight: 600; word-break: break-word; }
.dz-mono { font-family: var(--font-mono); }
.dz-amount { font-size: var(--text-sm); color: var(--text-secondary); display: grid; gap: 2px; }
.dz-amount b { font-family: var(--font-heading); color: var(--text-primary); font-size: var(--text-xl); }
.dz-amount small b { font-size: inherit; font-family: inherit; }
.dz-slip { justify-content: center; min-height: 52px; }
.dz-hint { font-size: var(--text-xs); color: var(--text-muted); }

.dz-drop { position: relative; display: grid; justify-items: center; gap: 6px; padding: 26px 18px; border-radius: var(--radius-lg); border: 2px dashed var(--border-strong); background: var(--bg-surface); text-align: center; cursor: pointer; transition: border-color var(--duration-base), background var(--duration-base), transform var(--duration-base); }
.dz-drop:hover, .dz-drop.is-dragover { border-color: var(--color-navy); background: var(--color-navy-pale); transform: translateY(-2px); }
.dz-drop:has(input:focus-visible) { outline: 3px solid var(--color-red); outline-offset: 3px; }
.dz-drop.has-file { border-style: solid; border-color: var(--color-success); }
.dz-drop__icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--color-navy); color: #fff; margin-bottom: 4px; }
.dz-drop.has-file .dz-drop__icon { background: var(--color-success); }
.dz-drop b { font-size: var(--text-sm); color: var(--text-primary); word-break: break-all; }
.dz-drop small { font-size: var(--text-xs); color: var(--text-muted); }
.dz-drop__preview { max-height: 160px; max-width: 100%; border-radius: var(--radius-sm); margin-top: 8px; box-shadow: var(--shadow-md); }
.dz-drop__preview[hidden] { display: none; }
.dz-upload { display: grid; gap: 14px; }
.dz-upload__btn { justify-content: center; min-height: 52px; }

.dz-visit { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.dz-visit > * { padding: 24px; border-radius: var(--radius-lg); background: var(--bg-surface-2); border: 1px solid var(--border-light); }
.dz-visit__place { display: flex; gap: 16px; }
.dz-visit__pin { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 14px; background: var(--color-red); color: #fff; }
.dz-visit__kicker { font-size: var(--text-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px; }
.dz-visit__name { font-family: var(--font-heading); font-size: var(--text-xl); font-weight: 800; margin-bottom: 4px; }
.dz-visit__place p:not(.dz-visit__kicker):not(.dz-visit__name) { font-size: var(--text-sm); color: var(--text-secondary); }
.dz-visit__place a { color: var(--color-navy); font-weight: 600; }
[data-theme="dark"] .dz-visit__place a { color: #A5B4FC; }
.dz-visit__bring ul { list-style: none; display: grid; gap: 10px; padding: 0; margin: 0 0 12px; }
.dz-visit__bring li { display: flex; gap: 10px; font-size: var(--text-sm); }
.dz-visit__bring li svg { flex: none; color: var(--color-success); margin-top: 2px; }
.dz-visit__comment { grid-column: 1 / -1; display: grid; gap: 4px; background: #FEF2F2 !important; border-color: #FECACA !important; color: #991B1B; }
.dz-visit__comment span:first-child { font-size: var(--text-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.dz-visit--ko > .btn { justify-self: start; align-self: center; padding: 0 18px; border: 0; background: #25D366; }

.dz-welcome { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 10px 0 6px; }

.dz-details { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px; margin-top: 28px; border-radius: var(--radius-md); overflow: hidden; background: var(--border-light); border: 1px solid var(--border-light); }
.dz-details div { padding: 14px 16px; background: var(--bg-surface); }
.dz-details dt { font-size: var(--text-xs); color: var(--text-muted); }
.dz-details dd { font-weight: 600; font-size: var(--text-sm); word-break: break-word; }

.dz-card__foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.dz-link { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 4px; border: 0; background: none; color: var(--color-navy); font: 600 var(--text-sm) var(--font-body); cursor: pointer; }
[data-theme="dark"] .dz-link { color: #A5B4FC; }
.dz-link--muted { color: var(--text-muted) !important; }
.dz-link:hover span { text-decoration: underline; }

/* ── Carte « Inscription en ligne » de la page Contact ─────── */
.ins-promo { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: center; padding: clamp(24px, 4vw, 44px); border-radius: var(--radius-xl); background: var(--gradient-hero); color: #fff; box-shadow: var(--shadow-xl); position: relative; overflow: hidden; isolation: isolate; }
.ins-promo::after { content: ""; position: absolute; z-index: -1; right: -100px; top: -120px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(212, 35, 35, .5), transparent 70%); }
.ins-promo h2 { font-family: var(--font-heading); font-size: var(--text-4xl); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; margin-bottom: 12px; }
.ins-promo p { color: rgba(255, 255, 255, .8); }
.ins-promo__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.ins-promo .ins-road li { opacity: 1; transform: none; animation: none; padding: 12px 14px; }

/* ── Petits écrans ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .ins-hero__inner { grid-template-columns: 1fr; gap: 36px; }
  .wz-layout { grid-template-columns: 1fr; }
  .wz-summary { display: none; }
  .wz-nav__total:not([hidden]) { display: grid; }
  .ins-promo { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .ins-hero { padding-top: calc(var(--navbar-height-small) + 36px); padding-bottom: 64px; }
  .wz-progress { padding: 14px 10px 12px; }
  .wz-progress__label { display: none; }
  .wz-progress li.is-active .wz-progress__label { display: block; position: absolute; top: 44px; white-space: nowrap; font-size: 11px; }
  .wz-progress { padding-bottom: 30px; }
  .wz-progress__dot { width: 30px; height: 30px; font-size: 12px; }
  .wz-progress__bar { top: 29px; left: calc(100% / 14 + 10px); right: calc(100% / 14 + 10px); }
  .wz-fields, .dz-grid, .dz-visit { grid-template-columns: 1fr; }
  .wz-brand { min-height: 0; }
  .wz-recap > button { grid-template-columns: 1fr auto; }
  .wz-recap dt { grid-column: 1 / -1; }
  .wz-nav { position: sticky; bottom: 0; z-index: 5; margin: 24px -22px -22px; padding: 14px 16px; background: var(--bg-surface); border-radius: 0 0 var(--radius-xl) var(--radius-xl); box-shadow: 0 -8px 24px rgba(15, 23, 42, .08); }
  .wz-next-btn, .wz-submit { padding-inline: 18px; }
  /* Le bouton WhatsApp flottant ne doit pas masquer « Continuer ». */
  body.wz-open .whatsapp-float { bottom: calc(96px + env(safe-area-inset-bottom)) !important; }
  .dz-celebrate { grid-template-columns: auto 1fr; padding: 20px; }
  .dz-celebrate .dz-code { grid-column: 1 / -1; justify-self: start; }
  .dz-card__side { align-items: flex-start; }
  .dz-timeline__label { font-size: 10.5px; }
  .dz-timeline__dot { width: 38px; height: 38px; }
  .dz-timeline::before, .dz-timeline::after { top: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .ins *, .ins *::before, .ins *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .ins-road li { opacity: 1; transform: none; }
}
