/* =========================================================
   Facteur24 — identité visuelle
   ========================================================= */

:root {
  --blue: #0b54ce;
  --blue-dark: #093fa3;
  --blue-soft: #dfe9fd;
  --blue-band: #e9f0fe;
  --yellow: #ffc72c;
  --page: #f6f9ff;
  --ink: #101a33;
  --ink-soft: #5b6478;
  --ink-mute: #8a93a8;
  --line: #e5eaf2;
  --dark: #0d0d12;
  --green: #56b45c;
  --red: #e5343d;
  --radius: 16px;
  --shadow: 0 2px 16px rgba(16, 40, 90, 0.07);
  --font: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font);
  background: var(--page);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); }
svg { width: 20px; height: 20px; display: block; }

/* ------------------------------- topbar ------------------------------- */

.topbar { background: var(--yellow); }
.topbar__inner {
  max-width: 1440px; margin: 0 auto; padding: 11px 24px;
  display: flex; align-items: center; justify-content: center; gap: 16px;
  font-size: 14.5px; color: #1c1600; flex-wrap: wrap;
}
.topbar__q strong { font-weight: 800; }
.topbar__sep { width: 1px; height: 20px; background: rgba(0, 0, 0, 0.22); }
.topbar__mail { color: #1c1600; font-weight: 800; text-decoration: none; }
.badge { border-radius: 999px; padding: 3px 11px; font-size: 12.5px; font-weight: 700; }
.badge--reactif { background: #e8c69b; color: #5c3d10; }

/* ------------------------------- header ------------------------------- */

.site-header { background: #fff; padding: 22px 24px; display: flex; justify-content: center; }

.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.logo__mark {
  width: 42px; height: 42px; border-radius: 50%; background: var(--blue);
  color: #fff; display: grid; place-items: center; flex: none;
}
.logo__mark svg { width: 22px; height: 22px; transform: rotate(-2deg); }
.logo__mark--sm { width: 30px; height: 30px; }
.logo__mark--sm svg { width: 16px; height: 16px; }
.logo__text { font-size: 28px; font-weight: 700; color: #1a1f36; letter-spacing: -0.01em; }
.logo--sm .logo__text { font-size: 20px; }

/* ------------------------------- stepper ------------------------------ */

.stepper-band { background: var(--blue-band); padding: 15px 24px; }
.stepper {
  list-style: none; margin: 0 auto; padding: 0; max-width: 1440px;
  display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
}
.stepper__item { display: flex; align-items: center; gap: 10px; }
.stepper__sep { color: #a9bbdb; }
.stepper__bullet {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: #cddcf6; color: #7e8ba6; font-weight: 700; font-size: 14.5px; flex: none;
}
.stepper__bullet svg { width: 16px; height: 16px; }
.stepper__label { font-size: 15.5px; font-weight: 700; color: #8794ad; }
.stepper__item.is-current .stepper__bullet { background: var(--blue); color: #fff; }
.stepper__item.is-current .stepper__label { color: var(--ink); }
.stepper__item.is-done .stepper__bullet { background: #b9cdf1; color: #fff; }

/* ------------------------------- layout ------------------------------- */

.funnel__grid {
  max-width: 1440px; margin: 0 auto; padding: 26px 24px 0;
  display: grid; grid-template-columns: minmax(0, 1fr) 418px; gap: 30px; align-items: start;
}
.funnel__main { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.step { display: flex; flex-direction: column; gap: 22px; }
.step[hidden] { display: none; }

.page-funnel { padding-bottom: 120px; }
.funnel__actions {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 24px rgba(16, 40, 90, 0.07);
  padding: 14px max(24px, env(safe-area-inset-left)) calc(14px + env(safe-area-inset-bottom));
}
.funnel__actions-inner {
  max-width: 1440px; margin: 0 auto;
  display: flex; align-items: center; gap: 16px;
}
.spacer { flex: 1; }

.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 30px; }

.page-title { font-size: 38px; line-height: 1.15; font-weight: 700; margin: 6px 0 8px; letter-spacing: -0.015em; }
.page-title--pay { font-size: 34px; }
.page-sub { color: var(--ink-soft); font-size: 17px; margin: 0 0 6px; }

/* -------------------------------- party ------------------------------- */

.party__head { display: flex; align-items: center; gap: 11px; margin-bottom: 20px; }
.party__icon {
  width: 36px; height: 36px; border-radius: 10px; background: #eef3fb; color: #1a2340;
  display: grid; place-items: center; flex: none;
}
.party__icon svg { width: 21px; height: 21px; }
.party__title { font-size: 17px; font-weight: 800; letter-spacing: 0.04em; margin: 0; }
.party__sub { color: var(--ink-soft); font-weight: 600; }

.radio-row { display: flex; gap: 34px; margin-bottom: 22px; flex-wrap: wrap; }
.radio { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 15.5px; font-weight: 500; }
.radio input { position: absolute; opacity: 0; width: 0; height: 0; }
.radio__dot {
  width: 19px; height: 19px; border-radius: 50%; border: 2px solid #c3ccdb; background: #fff;
  display: inline-block; flex: none; transition: border-color 0.12s;
}
.radio input:checked + .radio__dot { border-color: var(--blue); border-width: 5.5px; }
.radio input:focus-visible + .radio__dot { box-shadow: 0 0 0 3px rgba(11, 84, 206, 0.2); }

/* -------------------------------- forms ------------------------------- */

.grid { display: grid; grid-template-columns: repeat(9, 1fr); gap: 16px 22px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field--span3 { grid-column: span 3; }
.field--span9 { grid-column: span 9; }
.field[hidden] { display: none; }

.field__label { font-size: 15px; font-weight: 600; color: #4c576d; display: inline-flex; align-items: center; gap: 7px; }
.field__hint { color: var(--ink-mute); font-weight: 400; }

.input {
  width: 100%; height: 56px; border: 1.5px solid var(--line); border-radius: 12px;
  padding: 0 18px; font-family: inherit; font-size: 16px; font-weight: 600; color: var(--ink);
  background: #fff; outline: none; transition: border-color 0.12s, box-shadow 0.12s;
}
.input::placeholder { color: #9aa3b2; font-weight: 400; }
.input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(11, 84, 206, 0.12); }
.input--filled { background: #f6f8fb; }
.textarea { height: auto; padding: 16px 18px; line-height: 1.6; font-weight: 500; resize: vertical; }

.field.is-error .input { border-color: var(--red); }
.field__error { color: var(--red); font-size: 13.5px; margin: 0; font-weight: 500; }
.field__error[hidden] { display: none; }

.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 46px; cursor: pointer; }
.select__chevron {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  color: #4c576d; pointer-events: none;
}

.check { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px; cursor: pointer; font-size: 14.5px; color: #33415c; }
.check--small { align-items: start; font-size: 13px; color: #4c576d; margin-bottom: 12px; line-height: 1.4; }
.check input { position: absolute; opacity: 0; width: 0; height: 0; }
.check__box {
  width: 20px; height: 20px; border-radius: 5px; border: 1.8px solid #c3ccdb; background: #fff;
  display: grid; place-items: center; flex: none; transition: background 0.12s, border-color 0.12s;
}
.check__box svg { width: 13px; height: 13px; color: transparent; }
.check input:checked + .check__box { background: var(--blue); border-color: var(--blue); }
.check input:checked + .check__box svg { color: #fff; }
.check input:focus-visible + .check__box { box-shadow: 0 0 0 3px rgba(11, 84, 206, 0.2); }
.check--small .check__box { margin-top: 1px; }

.tip { color: var(--ink-mute); display: inline-grid; place-items: center; cursor: help; position: relative; }
.tip svg { width: 15px; height: 15px; }
.tip::after {
  content: attr(data-tip); position: absolute; bottom: 145%; left: 50%; transform: translateX(-50%);
  background: #12141a; color: #fff; padding: 9px 12px; border-radius: 8px; font-size: 12.5px;
  font-weight: 500; width: 240px; opacity: 0; pointer-events: none; transition: opacity 0.15s; z-index: 5;
}
.tip:hover::after, .tip:focus::after { opacity: 1; }

/* ------------------------------- buttons ------------------------------ */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; border-radius: 999px; padding: 0 30px; height: 56px;
  font-family: inherit; font-size: 17px; font-weight: 700; cursor: pointer;
  text-decoration: none; transition: transform 0.08s, background 0.15s, opacity 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn--dark { background: var(--dark); color: #fff; }
.btn--dark:hover { background: #24242e; }
.btn--ghost { background: #fff; color: #12141a; border: 1.5px solid var(--line); }
.btn--outline { background: #fff; color: #12141a; border: 1.5px solid #d7dfea; }
.btn--danger { background: #fff; color: var(--red); border: 1.5px solid #f3c7c9; height: 48px; font-size: 15px; margin-top: 14px; width: 100%; }
.btn--xs { height: 34px; padding: 0 14px; font-size: 13.5px; }
.btn--back { padding-left: 22px; }
.btn--next { min-width: 190px; }
.btn--pay {
  width: 100%; background: var(--green); color: #fff; height: 60px; font-size: 18px;
  box-shadow: 0 0 0 5px rgba(86, 180, 92, 0.18);
}
.btn--pay:hover { background: #4aa550; }

.linklike {
  background: none; border: 0; padding: 0; font: inherit; font-size: 14px; font-weight: 500;
  color: var(--blue); text-decoration: underline; cursor: pointer;
}
.icon-btn { background: none; border: 0; color: var(--ink-soft); cursor: pointer; padding: 6px; }

/* ------------------------------- upload ------------------------------- */

.upload__head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 20px; }
.upload__icon { width: 44px; height: 44px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; flex: none; }
.upload__title { font-size: 21px; font-weight: 700; margin: 0 0 6px; }
.upload__desc { margin: 0; color: var(--ink-soft); font-size: 15px; }

.dropzone {
  border: 1.5px dashed #d7dfea; border-radius: 12px; padding: 54px 20px; text-align: center;
  background: #fff; cursor: pointer; transition: border-color 0.15s, background 0.15s;
}
.dropzone:hover, .dropzone:focus-visible, .dropzone.is-drag { border-color: var(--blue); background: #f5f8ff; outline: none; }
.dropzone__icon { display: grid; place-items: center; color: #9aa3b2; margin-bottom: 16px; }
.dropzone__icon svg { width: 30px; height: 30px; }
.dropzone__t1 { margin: 0; color: #4c576d; font-size: 15.5px; }
.dropzone__or { margin: 4px 0; color: var(--ink-mute); font-size: 15px; }
.dropzone__t2 { margin: 0; }
.dropzone__t2 .linklike { color: #1a2340; font-size: 15.5px; }

.filelist { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.filelist li { display: flex; align-items: center; gap: 12px; border: 1px solid #eef1f6; border-radius: 10px; padding: 12px 14px; }
.filelist__ico { color: var(--blue); flex: none; }
.filelist__n { flex: 1; min-width: 0; font-weight: 600; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filelist__m { color: var(--ink-mute); font-weight: 500; font-size: 13px; }
.filelist__x { background: none; border: 0; color: var(--ink-mute); cursor: pointer; padding: 4px; }
.filelist__x:hover { color: var(--red); }

.upload__progress { height: 5px; border-radius: 999px; background: #e9eef7; margin-top: 14px; overflow: hidden; }
.upload__progress span { display: block; height: 100%; width: 30%; background: var(--blue); border-radius: 999px; animation: slide 1.1s ease-in-out infinite; }
@keyframes slide { 0% { margin-left: -30%; } 100% { margin-left: 100%; } }

.dashed-btn {
  width: 100%; border: 2px dashed #2a6fe0; border-radius: 12px; background: #fff;
  padding: 22px; font-family: inherit; font-size: 17px; font-weight: 700; color: var(--blue);
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px;
}
.dashed-btn:hover { background: #f5f8ff; }
.dashed-btn__plus { font-size: 22px; line-height: 1; }

.editor__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.editor-card .field { margin-bottom: 16px; }
.editor__count { color: var(--ink-mute); font-size: 13.5px; margin: 8px 0 0; }
.editor__actions { display: flex; justify-content: flex-end; gap: 12px; }

/* -------------------------------- legal ------------------------------- */

.legal { color: #97a0b1; font-size: 13.5px; padding: 6px 4px 0; }
.legal p { margin: 0 0 14px; }
.legal__link .linklike { color: #97a0b1; font-size: 13.5px; }
.noscript { background: #fff3cd; color: #6b5300; padding: 14px 24px; text-align: center; font-weight: 600; }

/* ------------------------------- sidebar ------------------------------ */

.sidebar { min-width: 0; }
.sidebar__inner { position: sticky; top: 22px; }
.recap { padding: 0; overflow: hidden; }
.recap__head { background: var(--blue); color: #fff; padding: 17px 26px; font-size: 19px; font-weight: 700; }
.recap__body { padding: 22px 26px 26px; }

.urgent { background: var(--blue-soft); border-radius: 10px; padding: 14px 16px; position: relative; }
.urgent__t { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 700; color: #0b3fa8; font-size: 15.5px; }
.urgent__t svg { width: 19px; height: 19px; }
.urgent__s { margin: 5px 0 0; color: #1b4085; font-size: 13.5px; }
.urgent__close { position: absolute; top: 9px; right: 9px; background: none; border: 0; color: #40598f; cursor: pointer; padding: 4px; }
.urgent__close svg { width: 15px; height: 15px; }

.thumb { position: relative; margin: 20px 0 6px; display: flex; justify-content: center; }
.thumb__page {
  width: 172px; height: 224px; background: #fff; border: 1px solid #dfe5ee; border-radius: 3px;
  box-shadow: 0 3px 12px rgba(16, 40, 90, 0.12); overflow: hidden; position: relative;
}
.thumb__page img, .thumb__page iframe, .thumb__page embed { width: 100%; height: 100%; object-fit: cover; object-position: top; border: 0; pointer-events: none; }
.thumb__page pre { margin: 0; padding: 8px; font-size: 4px; line-height: 1.5; white-space: pre-wrap; font-family: var(--font); color: #333; }
.thumb__btn {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  background: #12141a; color: #fff; border: 0; border-radius: 999px; padding: 12px 20px;
  font-family: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; gap: 9px; white-space: nowrap;
}

.recap__date {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border: 1px solid #e6ebf3; border-radius: 10px; padding: 13px 16px; margin: 18px 0;
  font-size: 15px; color: #43506b;
}
.recap__date > span { display: inline-flex; align-items: center; gap: 9px; }
.recap__date strong { color: var(--ink); }

.recap__h { font-size: 16.5px; font-weight: 700; margin: 20px 0 12px; color: var(--ink); }
.recap__h--row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.recap__party { display: grid; grid-template-columns: auto 1fr; gap: 12px; margin-bottom: 16px; font-size: 14.5px; }
.recap__label { color: var(--ink-soft); }
.recap__val { text-align: right; }
.recap__val p { margin: 0; }
.recap__val p[data-bind$='_name'] { font-weight: 700; }
.recap__val p[data-bind$='_addr'] { font-weight: 700; }
.recap__hr { border: 0; border-top: 1px solid #e9edf4; margin: 18px 0; }
.recap__line { display: flex; justify-content: space-between; gap: 14px; padding: 7px 0; font-size: 14.5px; color: var(--ink-soft); }
.recap__line strong { color: var(--ink); font-weight: 700; text-align: right; }
.recap__line--b > span { color: var(--ink); font-weight: 700; }
[data-only-step] { display: none; }
[data-only-step].is-visible { display: revert; }

/* ------------------------------ paiement ------------------------------ */

.pay-card { padding: 0; overflow: hidden; border: 1.5px solid var(--blue); }
.pay__head { background: #1b2436; color: #fff; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 15px; font-weight: 700; font-size: 16px; }
.pay__body { padding: 24px 30px 30px; }
.radio-row--pay { margin-bottom: 20px; }
.input-icon { position: relative; margin-bottom: 12px; }
.input-icon .input { padding-left: 52px; }
.input-icon__i { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--ink-mute); pointer-events: none; }

.card-grid { display: grid; grid-template-columns: 1fr 1fr; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 16px; }
.card-grid .input { border: 0; border-radius: 0; box-shadow: none; }
.card-grid .input:focus { box-shadow: inset 0 0 0 2px rgba(11, 84, 206, 0.25); }
.card-grid__num { grid-column: 1 / -1; border-bottom: 1.5px solid var(--line) !important; }
.card-grid__cvv { border-left: 1.5px solid var(--line) !important; }
.card-grid.is-error { border-color: var(--red); }

.pay__fine { color: var(--ink-mute); font-size: 12px; text-align: center; margin: 14px 0 0; line-height: 1.5; }

/* Cellules recevant les iframes Stripe : même gabarit que les autres champs */
.stripe-field { padding: 18px 18px 0; height: 56px; }
.card-grid__num.stripe-field { border-bottom: 1.5px solid var(--line); }
.card-grid__cvv.stripe-field { border-left: 1.5px solid var(--line); }
.card-grid.is-focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(11, 84, 206, 0.12); }
.stripe-fallback {
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
  border: 1.5px solid var(--line); border-radius: 12px; padding: 16px 18px;
  color: var(--ink-soft); font-size: 14px; line-height: 1.45;
}
.stripe-fallback svg { color: var(--blue); flex: none; }

.perks__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.perks__brand { display: inline-flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 700; }
.crown { font-size: 18px; }
.perks__tag { color: var(--ink-soft); text-align: right; font-size: 16px; }
.perks__list { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.perks__list li { display: flex; align-items: center; gap: 12px; font-size: 15.5px; }
.perks__list li::before { content: '✓'; color: var(--yellow); font-weight: 800; }

.help-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.help-card { background: #16202f; color: #fff; border-radius: var(--radius); padding: 24px 26px; }
.help-card__t { font-weight: 700; font-size: 16px; margin: 0 0 4px; }
.help-card__s { color: #b6c0d0; font-size: 14px; margin: 0 0 16px; }
.help-card__mail { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 14.5px; }
.help-card__mail a { color: #fff; text-decoration: none; }
.help-card__h { color: #8d99ac; font-size: 12px; margin: 2px 0 0 30px; }
.help-account { padding: 24px 26px; }
.help-account .help-card__t, .help-account .help-card__s { color: var(--ink); }
.help-account .help-card__s { color: var(--ink-soft); }

/* -------------------------------- modal ------------------------------- */

.modal { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(20, 26, 40, 0.6); }
.modal__box {
  position: relative; background: #fff; border-radius: 18px; width: min(760px, 100%);
  max-height: 90vh; overflow: auto; padding: 34px 40px 30px;
}
.modal__box--sm { width: min(480px, 100%); }
.modal__close { position: absolute; top: 18px; right: 20px; background: none; border: 0; color: var(--ink-mute); cursor: pointer; padding: 6px; }
.modal__close svg { width: 22px; height: 22px; }
.modal__title { display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 28px; font-weight: 700; margin: 0 0 24px; }
.modal__eye { color: var(--yellow); display: grid; place-items: center; }
.modal__eye svg { width: 26px; height: 26px; }
.modal__viewer { border: 2px solid #12141a; height: min(56vh, 520px); overflow: auto; background: #fff; margin-bottom: 26px; }
.modal__viewer img { width: 100%; display: block; }
.modal__viewer iframe, .modal__viewer embed { width: 100%; height: 100%; border: 0; display: block; }
.modal__viewer pre { margin: 0; padding: 40px 48px; white-space: pre-wrap; font-family: var(--font); font-size: 14px; line-height: 1.7; }
.modal__actions { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.modal__actions .btn { flex: 1; min-width: 200px; }

.opt-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 26px; }
.opt { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.opt__label { font-weight: 600; font-size: 15.5px; }
.opt .select { min-width: 220px; }
.opt--switch { cursor: pointer; }
.opt--switch input { position: absolute; opacity: 0; }
.switch { width: 46px; height: 26px; border-radius: 999px; background: #d5dbe6; position: relative; transition: background 0.15s; flex: none; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform 0.15s; }
.opt--switch input:checked + .switch { background: var(--blue); }
.opt--switch input:checked + .switch::after { transform: translateX(20px); }

.overlay { position: fixed; inset: 0; background: rgba(246, 249, 255, 0.82); z-index: 80; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; font-weight: 600; color: var(--ink-soft); }
.overlay[hidden] { display: none; }
.spinner { width: 44px; height: 44px; border-radius: 50%; border: 4px solid #d7e2f6; border-top-color: var(--blue); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%);
  background: #12141a; color: #fff; padding: 14px 22px; border-radius: 12px; z-index: 90;
  font-weight: 600; font-size: 15px; max-width: 90vw;
}

/* ---------------------------- confirmation ---------------------------- */

.confirm { max-width: 720px; margin: 40px auto 80px; padding: 0 24px; }
.confirm__box { text-align: center; padding: 44px 44px 40px; }
.confirm__check { width: 62px; height: 62px; border-radius: 50%; background: #e3f5e4; color: var(--green); display: grid; place-items: center; margin: 0 auto 18px; }
.confirm__check svg { width: 30px; height: 30px; }
.confirm h1 { font-size: 30px; margin: 0 0 8px; }
.confirm__ref { color: var(--ink-soft); margin: 0 0 18px; }
.confirm__dl { display: grid; gap: 14px; text-align: left; margin: 26px 0 30px; }
.confirm__dl dt { color: var(--ink-soft); font-size: 14px; }
.confirm__dl dd { margin: 2px 0 0; font-weight: 600; }

/* ------------------------------ responsive ---------------------------- */

@media (max-width: 1180px) {
  .funnel__grid { grid-template-columns: minmax(0, 1fr); }
  .sidebar__inner { position: static; }
  .page-title { font-size: 32px; }
}

@media (max-width: 760px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .field--span3, .field--span9 { grid-column: span 3; }
  .card { padding: 20px 18px; }
  .funnel__grid, .funnel__actions { padding-left: 16px; padding-right: 16px; }
  .page-title { font-size: 26px; }
  .modal__box { padding: 28px 20px 22px; }
  .modal__title { font-size: 22px; }
  .help-row { grid-template-columns: 1fr; }
  .perks__head { flex-direction: column; }
  .perks__tag { text-align: left; }
  .btn { height: 52px; font-size: 16px; padding: 0 22px; }
  .btn--next { min-width: 0; flex: 1; }
  .topbar__sep { display: none; }
}


/* ------------------------- choix du type de courrier ------------------------ */

.opt-list { display: flex; flex-direction: column; gap: 16px; }

.opt-card {
  display: grid; grid-template-columns: 200px minmax(0, 1fr) auto; align-items: center; gap: 24px;
  width: 100%; text-align: left; background: #fff; border: 1px solid #eceef2;
  border-radius: 14px; padding: 14px 22px 14px 14px; cursor: pointer;
  font-family: inherit; transition: border-color 0.15s, box-shadow 0.15s, transform 0.08s;
}
.opt-card:hover { border-color: #cfd8e6; box-shadow: 0 4px 20px rgba(16, 40, 90, 0.07); }
.opt-card:active { transform: translateY(1px); }
.opt-card:focus-visible { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(11, 84, 206, 0.15); }

.opt-card__art { border-radius: 10px; overflow: hidden; background: #f6f8fd; display: block; }
.opt-card__art img { width: 100%; height: auto; display: block; }

.opt-card__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.opt-card__title { font-size: 20px; font-weight: 700; color: var(--ink); }
.opt-card--violet .opt-card__title { color: #6a2ee6; }
.opt-card__desc { font-size: 15px; color: var(--ink-soft); line-height: 1.45; }
.opt-card__chevron { color: #9aa3b2; display: grid; place-items: center; }
.opt-card__chevron svg { width: 22px; height: 22px; }

/* --------------------------- panneaux de rédaction -------------------------- */

.panel-mode__head { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 8px; }
.back-link {
  display: inline-flex; align-items: center; gap: 7px; background: none; border: 0; padding: 0;
  font: inherit; font-size: 14.5px; font-weight: 600; color: var(--blue); cursor: pointer;
}
.back-link svg { width: 16px; height: 16px; }
.panel-mode .upload__desc { margin-bottom: 18px; }
.panel-mode .field { margin-bottom: 16px; }

.ai-note { color: var(--ink-mute); font-size: 13px; margin: 14px 0 0; line-height: 1.5; }

/* --------------------------------- modèles ---------------------------------- */

.tpl-search { margin-bottom: 20px; }
.tpl-group { margin-bottom: 26px; }
.tpl-group[hidden] { display: none; }
.tpl-group__h { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); margin: 0 0 12px; }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.tpl {
  display: flex; flex-direction: column; gap: 5px; text-align: left; cursor: pointer;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px;
  font-family: inherit; transition: border-color 0.15s, background 0.15s;
}
.tpl:hover { border-color: var(--blue); background: #f7f9ff; }
.tpl[hidden] { display: none; }
.tpl__t { font-size: 15px; font-weight: 700; color: var(--ink); }
.tpl__d { font-size: 13.5px; color: var(--ink-soft); line-height: 1.4; }

@media (max-width: 760px) {
  .opt-card { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; padding: 12px; }
  .opt-card__chevron { display: none; }
  .opt-card__title { font-size: 17px; }
  .opt-card__desc { font-size: 14px; }
  .tpl-grid { grid-template-columns: 1fr; }
  .funnel__actions { padding-left: 16px; padding-right: 16px; }
}
