/* Police Manrope embarquée (licence libre OFL) : aucun appel à un service extérieur */
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 500 800; font-display: swap; src: url(polices/manrope-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 500 800; font-display: swap; src: url(polices/manrope-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ink: #0d1321;
  --night: #111a2e;
  --night-2: #1a2540;
  --accent: #ffc21a;
  --accent-dark: #e0a800;
  --bg: #f5f6f8;
  --card: #ffffff;
  --line: #e3e6ec;
  --text: #1c2333;
  --muted: #667085;
  --ok: #15803d;
  --ok-bg: #e8f6ee;
  --warn: #b45309;
  --warn-bg: #fff4e0;
  --danger: #b91c1c;
  --danger-bg: #fdeaea;
  --info: #1d4ed8;
  --info-bg: #e9effd;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(13, 19, 33, .06), 0 8px 24px rgba(13, 19, 33, .06);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  font-size: 16px;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.2; margin: 0; }

/* ---------- Bandeau démo ---------- */
.demo-bandeau {
  background: var(--accent);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  padding: 6px 16px;
}

/* ---------- En-tête ---------- */
.entete {
  background: var(--night);
  color: #fff;
}
.entete-in {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: .02em; }
.logo b { font-weight: 800; }
.logo-mark { width: 32px; height: 32px; flex: none; }
.entete-tel { text-decoration: none; font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.entete-tel small { display: block; font-weight: 500; color: #aab3c5; font-size: 12px; }

/* ---------- Accueil ---------- */
.hero {
  background: radial-gradient(1200px 400px at 80% -10%, #25345a 0%, transparent 60%), var(--night);
  color: #fff;
  padding: 40px 16px 120px;
}
.hero-in { max-width: 1120px; margin: 0 auto; }
.hero h1 { font-size: clamp(28px, 5vw, 44px); font-weight: 800; max-width: 720px; letter-spacing: -.01em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { color: #c8cfdc; font-size: 18px; max-width: 620px; margin: 16px 0 0; }
.atouts { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.atouts li { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.atouts svg { width: 18px; height: 18px; color: var(--accent); flex: none; }

.principal { max-width: 760px; margin: -88px auto 0; padding: 0 16px 48px; }

/* ---------- Carte formulaire ---------- */
.carte {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.form-carte { padding: 24px 20px 20px; }
@media (min-width: 640px) { .form-carte { padding: 32px 36px 28px; } }

.progression { margin-bottom: 22px; }
.progression-texte { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.progression-barre { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; }
.progression-barre span { display: block; height: 100%; background: var(--accent); border-radius: 99px; transition: width .3s ease; }

.etape-titre { font-size: 24px; font-weight: 800; margin-bottom: 4px; }
.etape-sous { color: var(--muted); margin: 0 0 22px; }

.champ { margin-bottom: 22px; }
.champ > label, .champ > .label { display: block; font-weight: 700; margin-bottom: 8px; font-size: 15px; }
.aide { font-size: 13px; color: var(--muted); margin: -4px 0 10px; }
.erreur { color: var(--danger); font-size: 13px; font-weight: 600; margin-top: 6px; }
.champ.invalide input, .champ.invalide .choix label > span { border-color: var(--danger); }

input[type=text], input[type=email], input[type=tel], input[type=date], input[type=number], textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-size: 16px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(255, 194, 26, .45); }
.deux { display: grid; gap: 14px; }
@media (min-width: 560px) { .deux { grid-template-columns: 1fr 1fr; } }
.deux .champ { margin-bottom: 0; }
.deux + .champ, .deux + .deux { margin-top: 22px; }
.suffixe { position: relative; }
.suffixe input { padding-right: 40px; }
.suffixe::after { content: attr(data-suffixe); position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; }

.choix { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 480px) {
  .choix.c2 { grid-template-columns: repeat(2, 1fr); }
  .choix.c3 { grid-template-columns: repeat(3, 1fr); }
  .choix.c4 { grid-template-columns: repeat(4, 1fr); }
}
.choix.c3, .choix.c4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 480px) { .choix.c3 { grid-template-columns: repeat(3, 1fr); } .choix.c4 { grid-template-columns: repeat(4, 1fr); } }
.choix label { position: relative; cursor: pointer; }
.choix input { position: absolute; opacity: 0; pointer-events: none; }
.choix label > span {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-weight: 600;
  font-size: 15px;
  transition: border-color .15s, background .15s;
}
.choix span small { display: block; font-weight: 500; color: var(--muted); font-size: 13px; }
.choix label > span::before {
  content: '';
  width: 18px; height: 18px; flex: none;
  border: 2px solid #b7bfcc;
  border-radius: 50%;
  background: #fff;
}
.choix.multi label > span::before { border-radius: 5px; }
.choix label:hover > span { border-color: #b7bfcc; }
.choix input:checked + span { border-color: var(--ink); background: #fffbea; }
.choix input:checked + span::before { border-color: var(--ink); background: var(--ink); box-shadow: inset 0 0 0 3px #fff; }
.choix.multi input:checked + span::before { box-shadow: none; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' stroke='%23fff' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.choix input:focus-visible + span { box-shadow: 0 0 0 3px rgba(255, 194, 26, .6); }

.gros-choix label > span { min-height: 72px; font-size: 17px; }

.case { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); cursor: pointer; }
.case input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--ink); flex: none; }

.actions { display: flex; gap: 10px; justify-content: space-between; align-items: center; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.btn {
  appearance: none;
  border: 0;
  border-radius: 10px;
  padding: 14px 22px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background .15s, transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn-principal { background: var(--accent); color: var(--ink); }
.btn-principal:hover { background: var(--accent-dark); }
.btn-sombre { background: var(--ink); color: #fff; }
.btn-sombre:hover { background: var(--night-2); }
.btn-ok { background: var(--ok); color: #fff; }
.btn-ok:hover { background: #116a32; }
.btn-lien { background: none; color: var(--muted); padding: 14px 8px; }
.btn-lien:hover { color: var(--text); }
.btn-contour { background: #fff; border: 1.5px solid var(--line); color: var(--text); }
.btn-contour:hover { border-color: #b7bfcc; }
.btn-petit { padding: 9px 14px; font-size: 14px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-large { flex: 1; }

.lien-exemple { background: none; border: 0; color: var(--muted); text-decoration: underline; font-size: 13px; cursor: pointer; padding: 0; margin-top: 12px; }

/* ---------- Récapitulatif ---------- */
.recap-bloc { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; }
.recap-bloc h3 { font-size: 15px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.recap-bloc h3 button { background: none; border: 0; color: var(--info); font-weight: 600; cursor: pointer; font-size: 13px; padding: 4px; }
dl.lignes { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 6px 14px; font-size: 14px; }
dl.lignes dt { color: var(--muted); }
dl.lignes dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

/* ---------- Confirmation ---------- */
.confirmation { text-align: center; padding: 12px 4px; }
.confirmation .pastille { width: 64px; height: 64px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); display: grid; place-items: center; margin: 0 auto 16px; }
.confirmation .pastille svg { width: 32px; height: 32px; }
.confirmation h2 { font-size: 26px; font-weight: 800; }
.confirmation .delai { background: #fffbea; border: 1px solid #f5dc8a; border-radius: 12px; padding: 16px; margin: 20px 0; font-size: 17px; }
.confirmation .ref { color: var(--muted); font-size: 14px; }
.confirmation .contacts { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }

/* ---------- Pied de page ---------- */
.pied { max-width: 1120px; margin: 0 auto; padding: 24px 16px 40px; color: var(--muted); font-size: 13px; text-align: center; }
.pied a { color: var(--muted); }

/* ---------- Réassurance sous formulaire ---------- */
.reassurance { display: grid; gap: 12px; margin-top: 20px; }
@media (min-width: 640px) { .reassurance { grid-template-columns: repeat(3, 1fr); } }
.reassurance div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font-size: 14px; }
.reassurance strong { display: block; font-size: 15px; margin-bottom: 2px; }

/* ---------- Fenêtre modale (e-mails) ---------- */
.modale { position: fixed; inset: 0; background: rgba(13, 19, 33, .55); display: none; align-items: flex-start; justify-content: center; padding: 24px 12px; overflow-y: auto; z-index: 50; }
.modale.ouverte { display: flex; }
.modale-in { background: var(--bg); border-radius: var(--radius); width: 100%; max-width: 640px; box-shadow: var(--shadow); }
.modale-haut { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); font-weight: 700; }
.modale-haut button { background: none; border: 0; font-size: 26px; line-height: 1; cursor: pointer; color: var(--muted); }
.modale-corps { padding: 16px; }

.mail { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.mail-entete { padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 13px; background: #fafbfc; }
.mail-entete div { overflow-wrap: anywhere; }
.mail-entete span { display: inline-block; width: 52px; color: var(--muted); }
.mail-corps { padding: 20px; font-size: 15px; }
.mail-logo { display: flex; align-items: center; gap: 8px; font-weight: 700; margin-bottom: 18px; }
.mail-logo .logo-mark { width: 26px; height: 26px; }
.mail-encart { background: #fffbea; border-left: 4px solid var(--accent); padding: 12px 14px; border-radius: 6px; }
.mail-devis { border: 1.5px solid var(--ink); border-radius: 12px; padding: 18px; margin: 18px 0; }
.mail-devis-titre { font-weight: 800; font-size: 18px; }
.mail-devis-sous { color: var(--muted); font-size: 14px; }
.mail-prix { font-size: 32px; font-weight: 800; margin: 10px 0 0; }
.mail-prix small { font-size: 15px; font-weight: 600; color: var(--muted); }
.mail-devis-opt { font-size: 14px; margin: 10px 0; }
.mail-devis-opt ul { margin: 4px 0 0; padding-left: 20px; }
.mail-petit { font-size: 12px; color: var(--muted); }
.mail-pied { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 12px; font-size: 12px; color: var(--muted); }

/* ---------- Espace courtier ---------- */
.courtier-page { max-width: 1240px; margin: 0 auto; padding: 20px 16px 48px; }
.courtier-titre { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.courtier-titre h1 { font-size: 24px; font-weight: 800; }
.courtier-titre p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.onglets { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.onglets button { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 7px 14px; font-weight: 600; font-size: 14px; cursor: pointer; }
.onglets button.actif { background: var(--ink); color: #fff; border-color: var(--ink); }
.onglets button b { display: inline-block; min-width: 20px; margin-left: 4px; padding: 0 6px; border-radius: 99px; background: var(--accent); color: var(--ink); font-size: 12px; }

.courtier-grille { display: grid; gap: 16px; }
@media (min-width: 960px) { .courtier-grille { grid-template-columns: 360px minmax(0, 1fr); align-items: start; } }
.liste { display: grid; gap: 10px; }
.demande-item { text-align: left; width: 100%; padding: 14px 16px; cursor: pointer; border: 1.5px solid var(--line); background: #fff; border-radius: 12px; display: grid; gap: 4px; }
.demande-item:hover { border-color: #b7bfcc; }
.demande-item.actif { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(255, 194, 26, .45); }
.demande-item .ligne1 { display: flex; justify-content: space-between; gap: 8px; font-weight: 700; }
.demande-item .ligne2 { font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; gap: 8px; }
.vide { padding: 24px; text-align: center; color: var(--muted); }

.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 99px; white-space: nowrap; }
.badge-a_valider { background: var(--warn-bg); color: var(--warn); }
.badge-envoye { background: var(--ok-bg); color: var(--ok); }
.badge-a_rappeler { background: var(--info-bg); color: var(--info); }

.fiche { padding: 20px; }
@media (min-width: 640px) { .fiche { padding: 26px 28px; } }
.fiche-haut { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
.fiche-haut h2 { font-size: 22px; font-weight: 800; }
.fiche-haut .meta { color: var(--muted); font-size: 14px; }
.contacts-rapides { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }

.alertes { display: grid; gap: 8px; margin-bottom: 20px; }
.alerte { padding: 10px 12px; border-radius: 10px; font-size: 14px; font-weight: 600; display: flex; gap: 8px; }
.alerte-danger { background: var(--danger-bg); color: var(--danger); }
.alerte-warn { background: var(--warn-bg); color: var(--warn); }
.alerte-info { background: var(--info-bg); color: var(--info); }
.alerte-ok { background: var(--ok-bg); color: var(--ok); }

.fiche-sections { display: grid; gap: 12px; margin-bottom: 22px; }
@media (min-width: 720px) { .fiche-sections { grid-template-columns: 1fr 1fr; } }

.tarif { border: 1.5px solid var(--ink); border-radius: 12px; padding: 18px; }
.tarif-haut { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.tarif-haut h3 { font-size: 17px; }
.etiquette-simule { font-size: 12px; font-weight: 700; background: var(--accent); color: var(--ink); padding: 3px 9px; border-radius: 99px; }
.tarif table { width: 100%; border-collapse: collapse; font-size: 14px; }
.tarif td { padding: 7px 0; border-bottom: 1px solid var(--line); }
.tarif td:last-child { text-align: right; font-weight: 600; white-space: nowrap; padding-left: 12px; }
.tarif tr.total td { border-bottom: 0; font-weight: 800; font-size: 16px; padding-top: 10px; }
.tarif-edition { display: grid; gap: 14px; margin-top: 16px; }
@media (min-width: 640px) { .tarif-edition { grid-template-columns: 200px 1fr; } }
.tarif-edition label { font-weight: 700; font-size: 14px; display: block; margin-bottom: 6px; }
.tarif-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.envoye-info { margin-top: 16px; }

/* ---------- Ajouts : pièces, fiche de conseil ---------- */
.pieces { margin-bottom: 22px; display: grid; gap: 8px; }
.pieces h3 { margin-bottom: 4px; }
.pieces .compte { font-size: 13px; font-weight: 600; color: var(--muted); }
.pieces .case { color: var(--text); }
.tarif tr.sous-total td { font-weight: 700; border-top: 1.5px solid var(--ink); }
.fiche-conseil h4 { font-size: 15px; margin: 18px 0 6px; }
.fiche-conseil p, .fiche-conseil li { font-size: 14px; }
.fiche-conseil ul { padding-left: 20px; margin: 6px 0; }
.signature-zone { margin-top: 18px; border: 1.5px dashed var(--line); border-radius: 10px; padding: 18px; text-align: center; color: var(--muted); font-size: 13px; }
.a-preparer { text-align: left; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin: 18px 0; font-size: 14px; }
.a-preparer ul { margin: 6px 0 0; padding-left: 20px; }
.tarif-haut h3 small.usage { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-top: 2px; }

/* ---------- Listes déroulantes et bloc véhicule ---------- */
select {
  width: 100%;
  padding: 13px 40px 13px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%23667085' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") right 14px center/16px no-repeat;
  appearance: none;
  font-size: 16px;
  outline: none;
}
select:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(255, 194, 26, .45); }
.champ.invalide select { border-color: var(--danger); }
.recherche-immat { display: flex; gap: 8px; }
.recherche-immat input { flex: 1; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.recherche-immat .btn { padding: 12px 18px; }
.info-veh { margin-top: 10px; padding: 10px 12px; border-radius: 10px; font-size: 14px; font-weight: 600; }
.info-veh.ok { background: var(--ok-bg); color: var(--ok); }
.info-veh.erreur { background: var(--warn-bg); color: var(--warn); }
.carte-veh { margin-top: 12px; border: 1.5px solid var(--ink); border-radius: 12px; padding: 12px 14px; display: grid; gap: 2px; background: #fffbea; }
.carte-veh span { font-size: 14px; color: var(--muted); }
.liste-veh { display: grid; gap: 10px; }
.bloc-vehicule .lien-exemple { display: block; margin-top: 12px; }

/* ---------- Dates en trois listes déroulantes ---------- */
.date-trio { display: grid; grid-template-columns: 1fr 1fr 1.5fr; gap: 8px; max-width: 280px; }
.date-trio input { text-align: center; padding-left: 6px; padding-right: 6px; }

/* ---------- Dépôt des documents ---------- */
.docs-entete { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 700; font-size: 14px; margin-bottom: 14px; }
.doc-bloc { border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 12px; }
.doc-bloc.doc-ecart { border-color: var(--danger); }
.doc-titre { font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.doc-titre .obligatoire { font-size: 12px; font-weight: 700; color: var(--danger); background: var(--bg); border-radius: 99px; padding: 2px 8px; margin-left: 4px; white-space: nowrap; }
.doc-titre .facultatif { font-size: 12px; font-weight: 600; color: var(--muted); background: var(--bg); border-radius: 99px; padding: 2px 8px; margin-left: 4px; }
.depots { display: grid; gap: 8px; }
@media (min-width: 480px) { .depots.d2 { grid-template-columns: 1fr 1fr; } }
.depot { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-height: 58px; padding: 10px 12px; border: 1.5px dashed #b7bfcc; border-radius: 10px; background: #fafbfc; cursor: pointer; font-size: 14px; }
.depot:hover { border-color: var(--ink); background: #fffbea; }
.depot input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.depot input:focus-visible + .depot-face { outline: 3px solid rgba(255, 194, 26, .6); }
.depot-face { font-weight: 700; }
.depot-action { color: var(--info); font-weight: 600; margin-left: auto; }
.depot.rempli { border-style: solid; border-color: var(--ok); background: var(--ok-bg); cursor: default; }
.depot-nom { color: var(--ok); font-weight: 600; min-width: 0; overflow-wrap: anywhere; flex: 1; }
.depot-taille { color: var(--muted); font-size: 12px; }
.depot-retirer { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: 13px; padding: 4px; }
.verif { margin-top: 10px; padding: 10px 12px; border-radius: 10px; font-size: 14px; }
.verif.ok { background: var(--ok-bg); color: var(--ok); font-weight: 600; }
.verif.attente { background: var(--warn-bg); color: var(--warn); font-weight: 600; }
.verif.encours { background: var(--info-bg); color: var(--info); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.verif.ecart { background: var(--danger-bg); color: var(--danger); }
.verif.ecart ul { margin: 6px 0; padding-left: 18px; }
.verif.ecart li { margin-bottom: 4px; }
.verif.ecart small { color: var(--text); }
.rond { width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: tourne .8s linear infinite; flex: none; }
@keyframes tourne { to { transform: rotate(360deg); } }
.lien-corriger { background: none; border: 0; padding: 0 2px; color: var(--info); text-decoration: underline; font-weight: 700; cursor: pointer; font-size: 14px; }
.docs-note { margin-top: 6px; }
dd.doc-ok { color: var(--ok); }
dd.doc-ecart { color: var(--danger); }
dd.doc-manquant, dd.doc-incomplet, dd.doc-facultatif { color: var(--muted); }

/* ---------- Comparatif des formules (e-mail, fiche de conseil) ---------- */
.comparatif-scroll { overflow-x: auto; margin: 14px 0; -webkit-overflow-scrolling: touch; }
.comparatif { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 420px; }
.comparatif th, .comparatif td { padding: 7px 8px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
.comparatif th:first-child, .comparatif td:first-child { text-align: left; color: var(--text); }
.comparatif th { font-weight: 800; font-size: 14px; vertical-align: bottom; }
.comparatif th small, .comparatif td small { display: block; font-weight: 500; color: var(--muted); font-size: 11px; }
.comparatif .conseille { background: #fffbea; }
.comparatif th.conseille { border-top: 3px solid var(--accent); }
.comparatif .ligne-prix strong { font-size: 15px; }
.comparatif .oui { color: var(--ok); font-weight: 800; }
.comparatif .non { color: #b7bfcc; }
.comparatif td.petit { font-size: 11px; color: var(--muted); }
.pastille-conseil { display: inline-block; background: var(--accent); color: var(--ink); font-size: 11px; font-weight: 800; padding: 1px 8px; border-radius: 99px; margin-bottom: 4px; }
.comparatif th .pastille-conseil { display: block; width: max-content; margin: 0 auto 4px; }
.choix-client { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }

/* ---------- Espace courtier : formules et documents ---------- */
.tarifs { display: grid; gap: 10px; }
.tarifs-titre { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.tarifs-titre h3 { font-size: 17px; }
details.tarif { border-color: var(--line); }
details.tarif.tarif-conseille { border-color: var(--ink); }
details.tarif summary { list-style: none; cursor: pointer; margin-bottom: 0; }
details.tarif summary::-webkit-details-marker { display: none; }
details.tarif[open] summary { margin-bottom: 10px; }
.tarif-prix { font-weight: 800; font-size: 18px; white-space: nowrap; text-align: right; }
.tarif-prix small { display: block; font-size: 12px; font-weight: 600; color: var(--muted); }
.tarif-edition.un { grid-template-columns: 1fr; }
.badge-ecart { background: var(--danger-bg); color: var(--danger); }
.badge-neutre { background: var(--bg); color: var(--muted); }
.doc-ligne { border-top: 1px solid var(--line); padding-top: 10px; display: grid; gap: 6px; }
.doc-ligne-haut { display: flex; justify-content: space-between; gap: 8px; align-items: center; font-size: 14px; }
.fichiers { display: flex; flex-wrap: wrap; gap: 6px; }
.fichier { font-size: 12px; background: var(--bg); border-radius: 6px; padding: 2px 8px; overflow-wrap: anywhere; }
table.controle { width: 100%; border-collapse: collapse; font-size: 13px; }
table.controle th { text-align: left; color: var(--muted); font-weight: 600; padding: 4px 6px 4px 0; }
table.controle td { padding: 4px 6px 4px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
table.controle tr.ko td { color: var(--danger); font-weight: 700; }
.verif.ok small { display: block; font-weight: 500; color: var(--text); opacity: .75; }
.nowrap { white-space: nowrap; }
.depot.rempli { flex-wrap: nowrap; }
.depot-nom { flex: 1 1 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Dossier courtier en parties ---------- */
.sommaire { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; position: sticky; top: 0; background: var(--card); padding: 8px 0; z-index: 2; }
.sommaire a { text-decoration: none; font-size: 13px; font-weight: 700; border: 1px solid var(--line); border-radius: 99px; padding: 6px 12px; }
.sommaire a:hover { border-color: var(--ink); background: #fffbea; }
.partie { border-top: 2px solid var(--line); padding-top: 18px; margin-top: 22px; scroll-margin-top: 60px; }
.partie-titre { font-size: 17px; margin-bottom: 12px; }
.partie .tarifs-titre { margin-bottom: 6px; }
.partie .tarifs { margin-top: 12px; }
.conseil-bloc { background: #fffbea; border: 1px solid #f5dc8a; border-radius: 12px; padding: 14px 16px; font-size: 14px; margin-top: 10px; }
.conseil-bloc p { margin: 6px 0; }
.conseil-bloc ul { margin: 4px 0 10px; padding-left: 20px; }
.conseil-bloc .alerte { margin-top: 10px; }

/* ---------- Choix de la formule par le client ---------- */
.choix-page { max-width: 760px; margin: 24px auto 0; padding: 0 16px 48px; }
.mail-choix { display: grid; gap: 8px; margin: 10px 0; }
.mail-choix .btn { text-decoration: none; text-align: center; }
.choix-attente { color: var(--muted); font-style: italic; }
.choix-client.ok { background: var(--ok-bg); border-color: #b9e3c8; }
.choix-client.ecart { background: var(--warn-bg); border-color: #f5d49a; }
.signature-zone.signee { border-style: solid; border-color: var(--ok); color: var(--ok); font-weight: 700; background: var(--ok-bg); }
.autres-choix { font-size: 14px; margin: 12px 0 0; }
.autres-choix a { color: var(--info); }
.choix-sous-titre { font-size: 18px; margin: 26px 0 4px; }
.conseil-bloc .btn { text-decoration: none; margin-top: 6px; }
.lien-demo { text-align: center; font-size: 13px; margin-top: 20px; }
.lien-demo a { color: var(--muted); }
.badge-choisi { background: var(--info-bg); color: var(--info); }
@media (max-width: 560px) {
  .comparatif { min-width: 0; font-size: 12px; table-layout: fixed; }
  .comparatif th:first-child, .comparatif td:first-child { width: 38%; }
  .comparatif th, .comparatif td { padding: 6px 4px; overflow-wrap: break-word; hyphens: auto; }
  .comparatif th { font-size: 12px; }
  .comparatif .ligne-prix strong { font-size: 13px; }
}

/* ---------- Écarts : décisions du courtier ---------- */
tr.actions-ecart td { border-top: 0; padding: 6px 0 12px; }
.boutons-ecart { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.boutons-ecart .btn { font-weight: 700; }
.note-courtier { display: block; font-weight: 600; color: var(--ok); font-size: 12px; }
.redemande { background: var(--info-bg); color: var(--info); border-radius: 8px; padding: 8px 10px; font-size: 13px; font-weight: 600; }
.historique { background: var(--bg); border-radius: 10px; padding: 10px 12px; font-size: 13px; }
.historique ul { margin: 4px 0 0; padding-left: 18px; }
.alerte.bloque { flex-basis: 100%; }

/* ---------- Visionneuse de documents ---------- */
.modale-in.large { max-width: 1180px; }
.visionneuse { display: grid; gap: 16px; }
@media (min-width: 900px) { .visionneuse { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; } }
.vis-cadre { background: #2a3142; border-radius: 12px; padding: 12px; max-height: 70vh; overflow: auto; }
.vis-img, .vis-faux svg { display: block; width: 100%; height: auto; cursor: zoom-in; border-radius: 6px; }
.vis-img.zoome, .vis-faux.zoome svg { width: 220%; max-width: none; cursor: zoom-out; }
.vis-pdf { width: 100%; height: 65vh; border: 0; border-radius: 6px; background: #fff; }
.vis-vide { color: #fff; padding: 40px 16px; text-align: center; }
.vis-onglets { display: flex; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
.vis-onglets button { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 6px 14px; font-weight: 700; cursor: pointer; }
.vis-onglets button.actif { background: var(--ink); color: #fff; border-color: var(--ink); }
.vis-controle { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
button.fichier { border: 1px solid var(--line); cursor: pointer; font-weight: 600; color: var(--info); }
button.fichier:hover { border-color: var(--info); background: var(--info-bg); }
.deja-recus { list-style: none; padding: 0; margin: 0; color: var(--ok); font-weight: 600; font-size: 14px; display: grid; gap: 4px; }

/* ---------- Rappels automatiques ---------- */
.rappels { margin-top: 12px; }
.rappels h3 { flex-wrap: wrap; gap: 8px; }
.frise { list-style: none; margin: 8px 0; padding: 0 0 0 14px; border-left: 2px solid var(--line); display: grid; gap: 6px; font-size: 13px; }
.frise li { position: relative; }
.frise li::before { content: ''; position: absolute; left: -20px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.frise .quand { color: var(--muted); font-weight: 600; margin-right: 8px; }
.demo-horloge { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 10px; margin-top: 6px; }
.demo-horloge a { text-decoration: none; }
.a-preparer .btn { text-decoration: none; margin-top: 4px; }

/* Dossier transmis à MFA (espace courtier) */
.pieces-mfa { margin: 6px 0 0; padding-left: 20px; font-size: 14px; }
.pieces-mfa li { margin: 2px 0; overflow-wrap: anywhere; }
.recap-mfa .fiche-sections { margin: 12px 0; }
.recap-mfa .recap-bloc { margin-bottom: 12px; }
@media print { .recap-mfa .recap-bloc { break-inside: avoid; } }

/* Frais de dossier, signature des 3 documents et paiement */
.suivi-client { list-style: none; padding: 0; margin: 10px 0; font-size: 14px; display: grid; gap: 6px; }
.suivi-client li { padding: 8px 12px; border-radius: 8px; background: var(--warn-bg); color: var(--warn); font-weight: 600; }
.suivi-client li.fait { background: var(--ok-bg); color: var(--ok); }
.etapes-client { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; font-weight: 700; }
.etapes-client li { border: 1px solid var(--line); border-radius: 99px; padding: 6px 12px; color: var(--muted); }
.etapes-client li.actif { border-color: var(--ink); background: #fffbea; color: var(--ink); }
.etapes-client li.fait { border-color: var(--ok); background: var(--ok-bg); color: var(--ok); }
details.doc-a-signer { border: 1px solid var(--line); border-radius: 12px; margin-top: 10px; overflow: hidden; }
details.doc-a-signer summary { cursor: pointer; padding: 12px 14px; font-weight: 700; background: #fafbfc; }
details.doc-a-signer[open] summary { border-bottom: 1px solid var(--line); }
details.doc-a-signer .mail { border: 0; border-radius: 0; }
.accord-frais { margin-top: 18px; color: var(--text); }
.paiement-bloc { border: 1.5px solid var(--ink); border-radius: 12px; padding: 16px; margin: 16px 0; }
.paiement-bloc .choix-sous-titre { margin-top: 0; }

.mandat-case { margin-top: 18px; color: var(--text); }
.date-effet-bloc { border: 1.5px solid var(--ink); border-radius: 12px; padding: 14px 16px; margin: 18px 0; }
.date-effet-bloc .choix-sous-titre { margin-top: 0; }
.date-effet-bloc select { width: 100%; max-width: 360px; }
.jour-meme { margin-top: 10px; background: #fffbea; border: 1px solid #f5dc8a; border-radius: 10px; padding: 12px; display: grid; gap: 8px; font-size: 14px; }
.jour-meme .case { color: var(--text); }

/* Souscription chez MFA */
.badge-souscription { background: var(--info-bg); color: var(--info); }
.badge-clos { background: var(--ok-bg); color: var(--ok); }
.etape-mfa { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-top: 10px; }
.etape-mfa.faite { border-color: #b9e3c8; background: var(--ok-bg); }
.etape-mfa-titre { font-weight: 700; font-size: 15px; }
.etape-mfa-corps { margin-top: 8px; display: grid; gap: 8px; font-size: 14px; }
.doc-retour { display: block; font-size: 14px; padding: 6px 0; }
.doc-retour input { margin-left: 6px; max-width: 100%; }
.doc-client { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-top: 10px; display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.doc-client strong { overflow-wrap: anywhere; }
.acompte-bloc { border: 1.5px solid var(--ink); border-radius: 12px; padding: 16px; margin: 16px 0; display: grid; gap: 10px; }
.acompte-bloc .code { font-size: 22px; font-weight: 800; letter-spacing: 2px; background: #fffbea; border: 1px dashed var(--accent); border-radius: 8px; padding: 8px 12px; display: inline-block; }

/* Mode de la démo : avec ou sans API MFA */
.mode-demo { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; border: 1.5px solid var(--ink); border-radius: 12px; padding: 10px 14px; margin-bottom: 14px; background: #fffbea; }
.mode-demo .mode-titre { font-weight: 800; font-size: 14px; }
.mode-demo button { border: 1.5px solid var(--ink); background: #fff; border-radius: 99px; padding: 6px 14px; font-weight: 700; font-size: 13px; cursor: pointer; font-family: inherit; }
.mode-demo button.actif { background: var(--ink); color: #fff; }
.mode-demo .aide { flex-basis: 100%; margin: 2px 0 0; }
.etapes-sans-api { margin: 8px 0; padding-left: 20px; }
.etapes-sans-api li.fait { color: var(--ok); font-weight: 700; }
.tarif-mfa { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-top: 10px; }
.tarif-mfa.tarif-conseille { border-color: var(--ink); }

/* MVP */
label .facultatif { font-size: 12px; font-weight: 600; color: var(--muted); background: var(--bg); border-radius: 99px; padding: 2px 8px; margin-left: 4px; }
.note-frais { margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.info-client { margin: 4px 0 18px; padding: 12px 14px; border-radius: 12px; font-weight: 500; line-height: 1.5; }

/* Dossier côté courtier */
.dossier-page .principal { margin-top: 28px; max-width: 860px; }
.verdict { border-radius: 14px; padding: 16px 18px; font-size: 19px; font-weight: 800; margin: 14px 0 18px; }
.verdict.ok { background: var(--ok-bg); color: var(--ok); }
.verdict.derogation { background: var(--warn-bg); color: var(--warn); }
.verdict.impossible { background: var(--danger-bg); color: var(--danger); }
.verdict.info { background: var(--bg); color: var(--ink); border: 1px solid var(--line); }
.signalements { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 8px; }
.signalements li { border-radius: 10px; padding: 10px 12px; font-size: 14px; line-height: 1.5; border-left: 5px solid; }
.signalements li b { display: block; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 2px; }
.signalements .impossible { background: var(--danger-bg); border-color: var(--danger); }
.signalements .derogation { background: var(--warn-bg); border-color: var(--warn); }
.signalements .info { background: var(--bg); border-color: var(--muted); }
.dossier-entete { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: baseline; }
.dossier-entete small { color: var(--muted); }
.dossier-titre { font-size: 15px; margin: 22px 0 10px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
@media print { .demo-bandeau, .entete, .dossier-actions { display: none !important; } .dossier-page .principal { margin: 0; max-width: none; } .carte { box-shadow: none; border: 0; } }

/* Piège à robots du formulaire : hors de l'écran */
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Pages légales (mentions légales, confidentialité, cookies) */
.page-legale h2 { font-size: 18px; margin: 26px 0 8px; }
.page-legale p, .page-legale li { line-height: 1.6; }
.page-legale ul { padding-left: 20px; margin: 0 0 12px; }
.page-legale li { margin-bottom: 6px; }
.page-legale a { color: var(--info); }
.page-legale mark { background: #ffe8a3; padding: 0 3px; }

/* Bouton « Je finirai plus tard » */
.plus-tard { margin-top: 18px; text-align: center; }
.plus-tard .aide { margin: 0 0 8px; }
.btn-plus-tard { background: #fff5f5; color: #b42318; border: 1.5px solid #e8a3a3; flex-direction: column; line-height: 1.3; }
.btn-plus-tard:hover { background: #ffe9e9; border-color: #b42318; }
.btn-plus-tard small { font-weight: 500; opacity: .9; }
.plus-tard .btn { width: 100%; }

/* Cases de dépôt sur deux colonnes : elles restent dans le cadre même avec un long nom de fichier (coupé par « … ») */
.depots > * { min-width: 0; }
.depot.rempli .depot-face, .depot.rempli .depot-taille, .depot.rempli .depot-retirer { flex: none; }

/* Icône de chaque document demandé, à gauche de son titre */
.doc-titre { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px; }
.doc-icone { width: 150px; height: 96px; filter: drop-shadow(0 1px 3px rgba(13, 19, 33, .22)); }
@media (max-width: 480px) { .doc-titre { grid-template-columns: 1fr; } .doc-icone { width: 200px; height: 128px; } }

/* Carte grise : document en hauteur */
.doc-icone.en-hauteur { width: 96px; height: 140px; justify-self: center; }
@media (max-width: 480px) { .doc-icone.en-hauteur { width: 130px; height: 190px; } }
