/* Choose Nation : bleu marine profond + une touche de bleu clair */
:root {
  --navy-900: #0b1f44;
  --navy-800: #13295a;
  --navy-700: #1d3a78;
  --navy-100: #e6ecf7;
  --accent: #3d8bfd;
  --accent-soft: #e8f2ff;
  --accent-strong: #1f6fe0;
  --bg: #f4f7fc;
  --card: #ffffff;
  --border: #e3e9f3;
  --text: #0f1b33;
  --text-2: #4a5872;
  --text-3: #7a879e;
  --ok: #157f4f;
  --ok-bg: #e7f6ee;
  --warn: #9a5b00;
  --warn-bg: #fff4e0;
  --bad: #b3261e;
  --bad-bg: #fdecea;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(11, 31, 68, .04), 0 6px 20px rgba(11, 31, 68, .06);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
}
a { color: var(--accent-strong); }
h1, h2, h3 { line-height: 1.2; margin: 0; color: var(--navy-900); }
p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid rgba(61, 139, 253, .45); outline-offset: 2px; border-radius: 8px; }

/* ---------- Barre du haut ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  max-width: 1120px; margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy-900); }
.brand-logo svg { width: 34px; height: 34px; display: block; }
.brand-logo rect { fill: var(--navy-900); }
.brand-logo circle, .brand-logo path { fill: none; stroke: #66b2ff; stroke-width: 2; }
.brand-name { font-weight: 800; font-size: 18px; letter-spacing: -.01em; }

.mainnav { display: flex; gap: 6px; }
.mainnav a {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 999px;
  text-decoration: none; color: var(--text-2); font-weight: 600; font-size: 15px;
}
.mainnav a svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mainnav a:hover { background: var(--navy-100); color: var(--navy-900); }
.mainnav a.active { background: var(--navy-900); color: #fff; }

/* ---------- Mise en page ---------- */
.app { max-width: 1120px; margin: 0 auto; padding: 28px 20px 64px; outline: none; }
.page-head { margin-bottom: 24px; }
.page-head h1 { font-size: clamp(26px, 4vw, 34px); font-weight: 800; letter-spacing: -.02em; }
.page-head p { color: var(--text-2); margin-top: 6px; }

.back {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 0; padding: 6px 10px 6px 4px; margin: 0 0 14px -4px;
  color: var(--text-2); font-weight: 600; font-size: 15px; cursor: pointer; border-radius: 10px;
}
.back:hover { color: var(--navy-900); background: var(--navy-100); }
.back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}
.card + .card { margin-top: 18px; }
.card h2 { font-size: 19px; font-weight: 700; }
.card-sub { color: var(--text-2); font-size: 15px; margin-top: 4px; }

.grid { display: grid; gap: 18px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px;
  border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, box-shadow .15s;
}
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn-primary { background: var(--navy-900); color: #fff; }
.btn-primary:hover { background: var(--navy-700); box-shadow: 0 6px 18px rgba(11, 31, 68, .22); }
.btn-ghost { background: #fff; color: var(--navy-900); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-strong); }
.btn-danger { background: #fff; color: var(--bad); border-color: #f2c5c1; }
.btn-danger:hover { background: var(--bad-bg); }
.btn-block { width: 100%; }
.btn-lg { min-height: 56px; font-size: 17px; padding: 14px 28px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--accent-strong); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--navy-900); }

/* ---------- Formulaires ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field + .field { margin-top: 16px; }
.field label, .field .label { font-weight: 600; font-size: 15px; color: var(--navy-900); }
.field .hint { font-size: 13px; color: var(--text-3); }
.input, .select {
  width: 100%; min-height: 48px; padding: 11px 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: #fbfcfe; font-size: 16px;
  transition: border-color .15s, background-color .15s;
}
.input:hover, .select:hover { border-color: #c9d4e6; }
.input:focus, .select:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px rgba(61, 139, 253, .15); }
.input.invalid { border-color: var(--bad); }
.error { color: var(--bad); font-size: 14px; font-weight: 500; min-height: 0; }
.error:empty { display: none; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 16px; }
.form-grid .field + .field { margin-top: 0; }
.form-grid .full { grid-column: 1 / -1; }

.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label {
  padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--border);
  background: #fbfcfe; font-weight: 600; font-size: 15px; color: var(--text-2); cursor: pointer;
}
.seg label:hover { border-color: var(--accent); }
.seg input:checked + label { background: var(--accent-soft); border-color: var(--accent); color: var(--navy-900); }
.seg input:focus-visible + label { outline: 3px solid rgba(61, 139, 253, .45); outline-offset: 2px; }

.divider { display: flex; align-items: center; gap: 12px; color: var(--text-3); font-size: 14px; margin: 20px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.google-btn svg { stroke: none; }

/* ---------- Accueil ---------- */
.hero {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center;
  padding: 24px 0 40px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-soft); color: var(--accent-strong);
  font-weight: 700; font-size: 13px; letter-spacing: .02em;
  padding: 6px 12px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(32px, 5.4vw, 54px); font-weight: 800; letter-spacing: -.03em; }
.hero h1 em { font-style: normal; color: var(--accent-strong); }
.hero .lead { font-size: 18px; color: var(--text-2); margin-top: 18px; max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 28px; }
.hero-actions .login-link { color: var(--text-2); font-size: 15px; }
.hero-actions .login-link a { font-weight: 700; }

.hero-visual {
  background: var(--navy-900); border-radius: 28px; padding: 26px; color: #fff;
  box-shadow: 0 24px 50px rgba(11, 31, 68, .22);
}
.hero-visual .hv-title { font-size: 14px; color: #a9bddf; font-weight: 600; }
.hero-visual .hv-name { font-size: 20px; font-weight: 700; margin-top: 2px; }
.hv-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.hv-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 14px; padding: 12px 14px; font-weight: 600; font-size: 15px;
}
.hv-list .pill { font-size: 12px; }
.hv-next-t { font-size: 13px; color: #a9bddf; font-weight: 600; margin: 16px 0 6px; }
.hv-next { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.hv-next li { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; color: #e6edf8; line-height: 1.35; }
.hv-next svg { width: 16px; height: 16px; flex: none; margin-top: 2px; fill: none; stroke: #f0a35e; stroke-width: 2.2; }
.hv-foot { font-size: 13px; color: #a9bddf; margin-top: 16px; }

.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.benefit .icon {
  width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-strong);
  display: grid; place-items: center; margin-bottom: 16px;
}
.benefit .icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.benefit h3 { font-size: 18px; font-weight: 700; }
.benefit p { color: var(--text-2); margin-top: 6px; font-size: 15px; }
.home-foot { text-align: center; color: var(--text-3); font-size: 14px; margin-top: 36px; }

/* ---------- Écrans de compte ---------- */
.auth { max-width: 460px; margin: 0 auto; }
.auth .card { padding: 30px; }
.auth h1 { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.auth .card-sub { margin-bottom: 22px; }
.auth-foot { text-align: center; margin-top: 18px; color: var(--text-2); font-size: 15px; }
.auth-foot a { font-weight: 700; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.note {
  background: var(--accent-soft); color: var(--navy-800); border-radius: var(--radius-sm);
  padding: 12px 14px; font-size: 14px; margin-top: 16px;
}
.success-box { background: var(--ok-bg); color: var(--ok); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 14px; font-weight: 600; margin-top: 14px; }

/* ---------- Tableau de bord ---------- */
.dash-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.cta-card {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: #fff; border: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.cta-card h2 { color: #fff; font-size: 22px; }
.cta-card p { color: #c9d7f0; margin-top: 6px; }
.cta-card .btn { background: #fff; color: var(--navy-900); }
.cta-card .btn:hover { background: var(--accent-soft); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.stat { background: var(--bg); border-radius: 14px; padding: 14px 16px; }
.stat .num { font-size: 26px; font-weight: 800; color: var(--navy-900); }
.stat .lbl { font-size: 13px; color: var(--text-2); font-weight: 500; }

.progress { height: 8px; background: var(--navy-100); border-radius: 99px; overflow: hidden; margin-top: 8px; }
.progress span { display: block; height: 100%; background: var(--accent); border-radius: 99px; }

.mini-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.mini-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px; border: 1px solid var(--border); border-radius: 14px;
}
.mini-list .name { font-weight: 600; }
.mini-list .meta { font-size: 13px; color: var(--text-3); }

.timeline { list-style: none; margin: 16px 0 0; padding: 0; }
.timeline li { display: flex; gap: 14px; padding: 10px 0; }
.timeline li + li { border-top: 1px dashed var(--border); }
.timeline .dot {
  flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-strong);
  display: grid; place-items: center;
}
.timeline .dot svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.timeline .txt { font-weight: 600; font-size: 15px; }
.timeline .when { font-size: 13px; color: var(--text-3); }

.empty { text-align: center; color: var(--text-2); padding: 18px 8px; font-size: 15px; }
.empty strong { display: block; color: var(--navy-900); margin-bottom: 4px; }

/* ---------- Statuts ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 5px 11px; border-radius: 999px; font-weight: 700; font-size: 13px;
}
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.ok, .pill.elig { background: var(--ok-bg); color: var(--ok); }
.pill.cond, .pill.doc { background: var(--warn-bg); color: var(--warn); }
.pill.non { background: var(--bad-bg); color: var(--bad); }
.hero-visual .pill.ok, .hero-visual .pill.elig { background: rgba(76, 214, 145, .16); color: #7ee2ad; }
.hero-visual .pill.cond, .hero-visual .pill.doc { background: rgba(255, 186, 73, .16); color: #ffcd7a; }
.hero-visual .pill.non { background: rgba(255, 120, 110, .16); color: #ff9d95; }

/* ---------- Écran principal : vérification ---------- */
.check-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 22px; align-items: start; }
.check-form .card + .card { margin-top: 14px; }
.check-form h2 { display: flex; align-items: center; gap: 10px; font-size: 17px; margin-bottom: 16px; }
.step-num {
  width: 28px; height: 28px; border-radius: 9px; background: var(--navy-900); color: #fff;
  display: grid; place-items: center; font-size: 14px; font-weight: 800; flex: none;
}
.sample-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  background: var(--accent-soft); border: 1px solid #cfe2ff; border-radius: 14px;
  padding: 12px 16px; margin-bottom: 14px; font-size: 14px; color: var(--navy-800);
}
.submit-bar {
  position: sticky; bottom: 12px; z-index: 5; margin-top: 14px;
  background: rgba(244, 247, 252, .9); backdrop-filter: blur(6px); border-radius: 999px; padding: 4px;
}
.results { position: sticky; top: 84px; }
.results-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.results-head h2 { font-size: 22px; font-weight: 800; }
.results-head .meta { font-size: 13px; color: var(--text-3); }
.summary-line { color: var(--text-2); margin-top: 4px; font-size: 15px; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }

.prog { padding: 20px; }
.prog + .prog { margin-top: 14px; }
.prog-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.prog h3 { font-size: 18px; font-weight: 700; }
.prog .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tag { font-size: 12.5px; font-weight: 600; color: var(--text-2); background: var(--bg); border-radius: 8px; padding: 3px 9px; }
.prog .desc { color: var(--text-2); font-size: 14.5px; margin-top: 10px; }

.criteria { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 6px; }
.criteria li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; }
.criteria .ic { flex: none; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; margin-top: 1px; }
.criteria .ic svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.criteria .yes .ic { background: var(--ok-bg); color: var(--ok); }
.criteria .no .ic { background: var(--bad-bg); color: var(--bad); }
.criteria .no.soft .ic { background: var(--warn-bg); color: var(--warn); }
.criteria .no { color: var(--text); }
.criteria .yes { color: var(--text-2); }

.missing {
  margin-top: 14px; border-radius: 14px; background: #fffaf1; border: 1px solid #f6e2bd; padding: 14px 16px;
}
.missing.hard { background: #fff6f5; border-color: #f6d3cf; }
.missing.allgood { background: var(--ok-bg); border-color: #c6ead6; color: var(--ok); font-weight: 600; font-size: 14.5px; }
.missing h4 { margin: 0 0 6px; font-size: 14px; color: var(--navy-900); }
.missing ul { margin: 0; padding-left: 18px; font-size: 14.5px; color: var(--text); }
.missing li + li { margin-top: 4px; }

.prog-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; font-size: 13.5px; }
.prog-foot a { font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.prog-foot a svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.prog-foot .upd { color: var(--text-3); }

.flash { animation: flash 1.2s ease-out 1; }
@keyframes flash { from { box-shadow: 0 0 0 4px rgba(61, 139, 253, .35); } to { box-shadow: var(--shadow); } }

/* ---------- Paramètres ---------- */
.settings { max-width: 720px; }
.settings .actions { display: flex; justify-content: flex-end; margin-top: 18px; }
.avatar {
  width: 56px; height: 56px; border-radius: 16px; background: var(--navy-900); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 22px; flex: none;
}
.profile-head { display: flex; gap: 14px; align-items: center; margin-bottom: 20px; }
.profile-head .who { font-weight: 700; font-size: 18px; color: var(--navy-900); }
.profile-head .mail { color: var(--text-2); font-size: 14px; }
.logout-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Message éphémère ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px);
  background: var(--navy-900); color: #fff; padding: 13px 20px; border-radius: 14px;
  font-weight: 600; font-size: 15px; box-shadow: 0 12px 30px rgba(11, 31, 68, .3);
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 50;
  max-width: calc(100% - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Téléphone ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 28px; padding-top: 8px; }
  .benefits { grid-template-columns: 1fr; }
  .dash-grid, .check-layout { grid-template-columns: minmax(0, 1fr); }
  .results { position: static; }
}
@media (max-width: 640px) {
  .app { padding: 20px 16px 104px; }
  .card { padding: 20px; }
  .auth .card { padding: 22px; }
  .form-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .stat { padding: 12px; }
  .stat .num { font-size: 22px; }
  .mainnav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: #fff; border-top: 1px solid var(--border);
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); justify-content: space-around; gap: 4px;
  }
  .mainnav a { flex-direction: column; gap: 3px; font-size: 12px; padding: 7px 10px; border-radius: 14px; flex: 1; }
  .submit-bar { bottom: 84px; }
  .toast { bottom: auto; top: 76px; }
  .topbar { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  .prog-top { flex-direction: column-reverse; align-items: flex-start; gap: 8px; }
  .pill { white-space: normal; }
  .mini-list li { flex-wrap: wrap; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ---------- Ajouts : parcours du user flow ---------- */
.top-login {
  font-weight: 700; font-size: 15px; text-decoration: none; color: var(--navy-900);
  padding: 9px 18px; border-radius: 999px; border: 1.5px solid var(--border); background: #fff;
}
.top-login:hover { border-color: var(--accent); color: var(--accent-strong); }
.hv-lvl { font-weight: 500; color: #a9bddf; font-size: 12px; margin-left: 4px; }
.label-sm { font-size: 14px; font-weight: 600; color: var(--text-2); }
.link-btn.small { font-size: 14px; }
.count-badge { background: var(--navy-100); color: var(--navy-900); font-weight: 800; font-size: 13px; border-radius: 999px; padding: 3px 11px; }
.dash-grid > div > .card + .card, .dash-grid > div > .card { margin-top: 0; }
.dash-grid > div { display: grid; gap: 18px; align-content: start; }

.row-actions { display: flex; gap: 6px; flex: none; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 11px; border: 1px solid var(--border); background: #fff;
  display: grid; place-items: center; cursor: pointer; color: var(--text-2); flex: none;
  transition: background-color .15s, border-color .15s, color .15s;
}
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn:hover { border-color: var(--accent); color: var(--accent-strong); background: var(--accent-soft); }
.icon-btn.danger:hover { border-color: #f2c5c1; color: var(--bad); background: var(--bad-bg); }

/* Choix du projet */
.projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.project {
  display: flex; align-items: center; gap: 16px; text-align: left; width: 100%;
  font: inherit; color: inherit; text-decoration: none; cursor: pointer;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.project.card + .project.card { margin-top: 0; }
.project .icon {
  width: 52px; height: 52px; border-radius: 16px; background: var(--accent-soft); color: var(--accent-strong);
  display: grid; place-items: center; flex: none;
}
.project .icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.project-body { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.project-title { font-size: 19px; font-weight: 700; color: var(--navy-900); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.project-text { color: var(--text-2); font-size: 15px; }
.project .go { color: var(--navy-900); flex: none; }
.project .go svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.project.live { border-color: var(--accent); }
.project.live:hover { box-shadow: 0 10px 28px rgba(11, 31, 68, .12); transform: translateY(-1px); }
.project.live .icon { background: var(--navy-900); color: #fff; }
.project.soon { background: #fafbfd; box-shadow: none; cursor: default; }
.project.soon .icon { background: var(--navy-100); color: var(--text-3); }
.project.soon .project-title { color: var(--text-2); }
.badge { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.badge.live { background: var(--ok-bg); color: var(--ok); }
.badge.soon { background: var(--navy-100); color: var(--text-2); }

/* Questionnaire */
.check-form > .card + .card { margin-top: 14px; }
.checked-list { position: sticky; top: 84px; }

/* Résultat */
.verdict { display: flex; gap: 18px; align-items: flex-start; }
.verdict-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; flex: none; }
.verdict-ic svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.verdict.ok .verdict-ic { background: var(--ok-bg); color: var(--ok); }
.verdict.cond .verdict-ic { background: var(--warn-bg); color: var(--warn); }
.verdict.non .verdict-ic { background: var(--bad-bg); color: var(--bad); }
.verdict.ok { border-left: 5px solid var(--ok); }
.verdict.cond { border-left: 5px solid #e5a43a; }
.verdict.non { border-left: 5px solid var(--bad); }
.verdict h1 { font-size: clamp(22px, 3.4vw, 28px); font-weight: 800; letter-spacing: -.02em; }
.verdict-body > p { color: var(--text-2); margin-top: 4px; }
.verdict .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.verdict .meta { font-size: 13px; color: var(--text-3); margin-top: 12px; }
.section-title { font-size: 14px; font-weight: 700; color: var(--text-2); text-transform: uppercase; letter-spacing: .05em; margin: 30px 0 12px; }
.result-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

@media (max-width: 900px) {
  .checked-list { position: static; }
}
@media (max-width: 640px) {
  .projects { grid-template-columns: 1fr; }
  .verdict { flex-direction: column; gap: 12px; }
  .top-login { padding: 8px 14px; font-size: 14px; }
}

/* ---------- Plan d'action ---------- */
.plan { margin-top: 14px; border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; background: #fbfcfe; }
.plan h4 { margin: 0; font-size: 14px; color: var(--navy-900); }
.plan-count { font-size: 13px; font-weight: 700; color: var(--accent-strong); font-variant-numeric: tabular-nums; }
.plan-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 4px; }
.plan-list li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 6px; border-radius: 10px; }
.plan-list li:hover { background: var(--accent-soft); }
.plan-list input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--navy-900); cursor: pointer; }
.plan-list label { display: flex; flex-direction: column; gap: 1px; cursor: pointer; flex: 1; min-width: 0; }
.plan-text { font-size: 14.5px; color: var(--text); }
.plan-when { font-size: 12.5px; color: var(--text-3); font-weight: 600; }
.plan-list li.fix .plan-when { color: var(--warn); }
.plan-list li.done .plan-text { color: var(--text-3); text-decoration: line-through; }
.plan-row { display: block; }
.plan-row-main { display: grid; gap: 2px; }
.next-step { margin-top: 6px; }

/* ---------- Déconnexion dans la barre ---------- */
.mainnav .nav-logout {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 999px; border: 0; background: none; cursor: pointer;
  color: var(--bad); font-weight: 600; font-size: 15px;
}
.mainnav .nav-logout svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mainnav .nav-logout:hover { background: var(--bad-bg); }
@media (max-width: 640px) {
  .mainnav .nav-logout { flex-direction: column; gap: 3px; font-size: 12px; padding: 7px 10px; border-radius: 14px; flex: 1; }
}

/* ---------- Logo Choose Nation ---------- */
.brand { gap: 8px; }
.brand-pin { height: 36px; width: auto; display: block; }
.brand-word { height: 22px; width: auto; display: block; }
.hero-logo { display: block; height: 100px; width: auto; max-width: 100%; margin-bottom: 22px; }
@media (max-width: 640px) {
  .brand-pin { height: 30px; }
  .brand-word { height: 18px; }
  .hero-logo { height: 80px; }
}

/* ---------- Parcours : Démarrer, e-mail confirmé, désinscription ---------- */
.page-head.row-between { align-items: flex-end; flex-wrap: wrap; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 4px; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--navy-900); cursor: pointer; }
.consent label { font-weight: 500; font-size: 14.5px; color: var(--text); cursor: pointer; }
.legal { font-size: 13.5px; color: var(--text-2); margin-left: 30px; }
.legal summary { cursor: pointer; color: var(--accent-strong); font-weight: 600; }
.legal p { margin-top: 6px; }
.verdict-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 16px; }
.start-card {
  margin-top: 26px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700)); color: #fff; border: 0;
}
.start-card h2 { color: #fff; font-size: 22px; }
.start-card p { color: #c9d7f0; margin-top: 6px; max-width: 520px; }
.start-card .btn-primary { background: #fff; color: var(--navy-900); }
.start-card .btn-primary:hover { background: var(--accent-soft); }
.result-actions { justify-content: center; }
.confirm-card { text-align: center; }
.confirm-ic { width: 64px; height: 64px; border-radius: 20px; background: var(--ok-bg); color: var(--ok); display: grid; place-items: center; margin: 0 auto 16px; }
.confirm-ic svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.danger-zone { border-color: #f2c5c1; }
.mini-list .badge { vertical-align: 2px; margin-left: 4px; }

/* ---------- Parcours v2 : questionnaire en étapes ---------- */
.stepper { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.stepper li { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 14px; background: var(--card); border: 1px solid var(--border); color: var(--text-3); font-weight: 600; font-size: 14px; min-width: 0; }
.stepper-num { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--navy-100); color: var(--text-2); font-size: 13px; font-weight: 800; flex: none; }
.stepper-num svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.stepper-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stepper li.current { border-color: var(--navy-900); color: var(--navy-900); }
.stepper li.current .stepper-num { background: var(--navy-900); color: #fff; }
.stepper li.done { color: var(--ok); }
.stepper li.done .stepper-num { background: var(--ok-bg); color: var(--ok); }
.unknown-hint { margin-top: 14px; }
.check-form .field + .field { margin-top: 0; }
.check-form .card > .field + .form-grid { margin-top: 16px; }

/* Résultats : Démarrer et autres destinations */
.prog-cta { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--border); }
.prog-cta .meta { font-size: 13.5px; color: var(--text-2); }
.prog-cta .btn svg, .btn-ghost svg { width: 18px; height: 18px; }
.dest-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.dest-card { display: flex; flex-direction: column; gap: 14px; }
.dest-card.card + .dest-card.card { margin-top: 0; }
.dest-top { display: flex; gap: 12px; align-items: center; }
.dest-top h3 { font-size: 18px; font-weight: 700; }
.dest-top .meta { font-size: 13px; color: var(--text-3); }
.dest-ic { width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-strong); display: grid; place-items: center; flex: none; }
.dest-ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dest-progs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; flex: 1; }
.dest-progs li { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; flex-wrap: wrap; }
.btn-sm { min-height: 36px; padding: 6px 14px; font-size: 14px; }

/* Ma feuille de route */
.roadmap-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 18px; align-items: start; }
.roadmap-head .eyebrow { margin-bottom: 10px; }
.roadmap-head h1 { font-size: clamp(22px, 3.4vw, 28px); font-weight: 800; letter-spacing: -.02em; }
.roadmap-head p { color: var(--text-2); margin-top: 4px; }
.roadmap-progress { grid-column: 1 / -1; }
.road { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.road-step.card + .road-step.card { margin-top: 0; }
.road-step { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; }
.road-num { width: 34px; height: 34px; border-radius: 11px; background: var(--navy-900); color: #fff; display: grid; place-items: center; font-weight: 800; flex: none; font-variant-numeric: tabular-nums; }
.road-step.fix .road-num { background: var(--warn-bg); color: var(--warn); }
.road-step.done .road-num { background: var(--ok-bg); color: var(--ok); }
.road-step.done h3 { color: var(--text-3); text-decoration: line-through; }
.road-body { flex: 1; min-width: 0; }
.road-top { display: flex; justify-content: space-between; gap: 10px 16px; align-items: flex-start; flex-wrap: wrap; }
.road-top h3 { font-size: 16.5px; font-weight: 700; flex: 1; min-width: 200px; }
.road-when { font-size: 12.5px; font-weight: 700; color: var(--accent-strong); background: var(--accent-soft); border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.road-step.fix .road-when { color: var(--warn); background: var(--warn-bg); }
.road-docs { margin-top: 10px; }
.road-docs ul { margin: 4px 0 0; padding-left: 18px; font-size: 14.5px; }
.road-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; font-size: 13.5px; }
.road-foot a { font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.road-foot a svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.road-check { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--navy-900); cursor: pointer; padding: 6px 12px; border: 1.5px solid var(--border); border-radius: 999px; background: #fff; }
.road-check:hover { border-color: var(--accent); }
.road-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--ok); cursor: pointer; }
.road-step.done .road-check { border-color: #c6ead6; background: var(--ok-bg); color: var(--ok); }
.result-actions .danger-link, .danger-link { color: var(--bad); }

/* Bientôt disponible */
.soon-ic { background: var(--navy-100); color: var(--navy-900); }

/* Mon compte */
.switch-row { align-items: center; }
.switch { position: relative; width: 46px; height: 26px; flex: none; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: #cfd8e8; transition: background-color .15s; pointer-events: none; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(11, 31, 68, .25); transition: transform .15s; }
.switch input:checked + span { background: var(--navy-900); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { outline: 3px solid rgba(61, 139, 253, .45); outline-offset: 2px; }
.data-preview { flex-basis: 100%; font-size: 14px; }
.data-preview summary { cursor: pointer; color: var(--accent-strong); font-weight: 600; }
.data-preview pre { margin: 10px 0 0; max-height: 280px; overflow: auto; background: var(--bg); border-radius: 12px; padding: 12px; font-size: 12.5px; white-space: pre-wrap; word-break: break-word; }
.delete-link { text-align: center; margin-top: 22px; }
.erase { margin-top: 16px; background: var(--bad-bg); border: 1px solid #f6d3cf; border-radius: 14px; padding: 14px 16px; }
.erase h4 { margin: 0 0 6px; font-size: 14px; color: var(--bad); }
.erase ul { margin: 0; padding-left: 18px; font-size: 14.5px; }

@media (max-width: 900px) {
  .dest-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .stepper { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .stepper li { flex-direction: column; padding: 8px 4px; font-size: 11.5px; text-align: center; gap: 4px; }
  .stepper-label { white-space: normal; }
  .road-step { padding: 16px; gap: 12px; }
  .roadmap-head { grid-template-columns: 1fr; }
}

/* ---------- Conditions à remplir ---------- */
.cond-summary { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.cond-summary .num { font-size: 34px; font-weight: 800; color: var(--navy-900); line-height: 1; }
.cond-summary .lbl { font-size: 13px; color: var(--text-2); font-weight: 600; }
.cond-summary p { color: var(--text-2); flex: 1; min-width: 200px; }
.cond-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.cond-item { border-radius: 14px; padding: 12px 14px; border: 1px solid var(--border); font-size: 14.5px; }
.cond-item.mine { background: #fffaf1; border-color: #f6e2bd; }
.cond-item.fixed { background: var(--bg); }
.cond-top { display: flex; justify-content: space-between; gap: 8px 12px; align-items: flex-start; flex-wrap: wrap; }
.cond-label { font-weight: 700; color: var(--navy-900); flex: 1; min-width: 180px; }
.cond-tag { font-size: 12px; font-weight: 700; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.cond-item.mine .cond-tag { background: var(--warn-bg); color: var(--warn); }
.cond-item.fixed .cond-tag { background: var(--navy-100); color: var(--text-2); }
.cond-fix { margin-top: 6px; color: var(--text); }
.cond-item a { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; font-size: 13.5px; font-weight: 600; }
.cond-item a svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cond-met { margin-top: 14px; font-size: 14px; }
.cond-met summary { cursor: pointer; color: var(--accent-strong); font-weight: 600; }
.cond-card + .cond-card, .cond-summary + .cond-card { margin-top: 14px; }

/* Accueil : diaporama des exemples de résultats */
.hv-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hv-dots { display: flex; gap: 8px; }
.hv-dot { width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; background: rgba(255, 255, 255, .3); cursor: pointer; transition: background .2s, width .2s; }
.hv-dot.on { background: #fff; width: 24px; border-radius: 6px; }
.hv-dot:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hv-slides { display: grid; }
.hv-slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateX(16px); transition: opacity .45s ease, transform .45s ease, visibility .45s; }
.hv-slide.on { opacity: 1; visibility: visible; transform: none; }
.hv-kind { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 13px; font-weight: 600; color: #cfe0ff; background: rgba(255, 255, 255, .1); padding: 4px 10px; border-radius: 999px; }
.hv-kind svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hv-slide .hv-name { font-size: 20px; font-weight: 700; margin-top: 8px; }
@media (prefers-reduced-motion: reduce) { .hv-slide, .hv-dot { transition: none; } }

/* =========================================================
   Charte v2 : bleu marine + orange du logo
   L'orange marque l'action principale et ce qui est actif.
   Sur fond clair, le texte orange utilise la teinte foncée (lisible).
   ========================================================= */
:root {
  --orange: #fb9a42;
  --orange-hover: #f48a2a;
  --orange-soft: #fff2e5;
  --orange-line: #ffd9b5;
  --orange-text: #b2560a;
  --radius: 20px;
  --shadow: 0 1px 2px rgba(11, 31, 68, .04), 0 8px 24px rgba(11, 31, 68, .06);
}

/* Barre du haut : un filet orange, comme le logo */
.topbar { border-top: 3px solid var(--orange); }
.mainnav a.active { background: var(--navy-900); color: #fff; box-shadow: inset 0 -3px 0 var(--orange); }

/* Action principale : orange, texte marine (contraste élevé) */
.btn-primary { background: var(--orange); color: var(--navy-900); box-shadow: 0 6px 16px rgba(251, 154, 66, .28); }
.btn-primary:hover { background: var(--orange-hover); color: var(--navy-900); box-shadow: 0 8px 22px rgba(251, 154, 66, .36); transform: translateY(-1px); }
.btn-primary:active { transform: none; }
.btn { transition: background-color .15s, border-color .15s, box-shadow .15s, transform .15s; }
.cta-card .btn, .start-card .btn-primary { background: var(--orange); color: var(--navy-900); }
.cta-card .btn:hover, .start-card .btn-primary:hover { background: var(--orange-hover); }
.btn-ghost:hover { border-color: var(--orange); color: var(--navy-900); background: var(--orange-soft); }

/* Accents de texte */
.hero h1 em { color: var(--orange-text); background: linear-gradient(transparent 62%, var(--orange-soft) 62%); padding: 0 4px; border-radius: 4px; }
.eyebrow { background: var(--orange-soft); color: var(--orange-text); }
.link-btn { color: var(--navy-700); text-decoration-color: var(--orange); }
.link-btn:hover { color: var(--orange-text); }

/* Accueil */
.hero-visual { position: relative; overflow: hidden; }
.hero-visual::after { content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%; right: -60px; top: -60px; background: radial-gradient(circle, rgba(251, 154, 66, .35), transparent 70%); pointer-events: none; }
.hv-dot.on { background: var(--orange); }
.benefit .icon { background: var(--orange-soft); color: var(--orange-text); }
.benefit { transition: transform .2s, box-shadow .2s; }
.benefit:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(11, 31, 68, .1); }

/* Mon espace : bandeau d'accueil façon application de services publics */
.page-head.row-between {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700)); color: #fff;
  padding: 26px 26px 24px; border-radius: 24px; position: relative; overflow: hidden;
}
.page-head.row-between::after { content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%; right: -70px; bottom: -110px; background: radial-gradient(circle, rgba(251, 154, 66, .4), transparent 70%); pointer-events: none; }
.page-head.row-between h1 { color: #fff; }
.page-head.row-between p { color: #c9d7f0; }
.page-head.row-between .link-btn { color: #fff; position: relative; z-index: 1; }

/* Choix du projet : tuiles de services */
.project.live { border-color: var(--orange-line); }
.project.live .icon { background: var(--orange); color: var(--navy-900); }
.project.live:hover { border-color: var(--orange); box-shadow: 0 12px 28px rgba(11, 31, 68, .12); transform: translateY(-2px); }
.project.live .go { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--orange-soft); transition: background-color .15s, transform .15s; }
.project.live:hover .go { background: var(--orange); transform: translateX(2px); }

/* Questionnaire : étapes reliées par une barre de progression */
.stepper li.current { border-color: var(--orange); background: var(--orange-soft); }
.stepper li.current .stepper-num { background: var(--orange); color: var(--navy-900); }
.stepper li.done { border-color: #cdebdc; }
.sample-banner { background: var(--orange-soft); border-color: var(--orange-line); }
.seg input:checked + label { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.input:focus, .select:focus { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(251, 154, 66, .18); }

/* Feuille de route et progression */
.progress span { background: linear-gradient(90deg, var(--orange), #ffb877); transition: width .4s ease; }
.road-num { background: var(--orange); color: var(--navy-900); }
.road-step.done .road-num { background: var(--ok); color: #fff; }
.dest-ic { background: var(--orange-soft); color: var(--orange-text); }
.dest-card { transition: transform .2s, box-shadow .2s; }
.dest-card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(11, 31, 68, .1); }
.count-badge { background: var(--orange-soft); color: var(--orange-text); }

/* Message de confirmation : une pastille orange */
.toast { border-left: 4px solid var(--orange); }

/* Barre du bas sur téléphone : onglet actif bien visible */
@media (max-width: 640px) {
  .mainnav { box-shadow: 0 -6px 20px rgba(11, 31, 68, .06); }
  .mainnav a.active { background: var(--orange-soft); color: var(--navy-900); box-shadow: none; }
  .mainnav a.active svg { color: var(--orange-text); }
  .page-head.row-between { padding: 22px 20px; border-radius: 20px; }
}

/* Passage d'un écran à l'autre : glissement court, dans le sens de la navigation */
.app.page-in > * { animation: pageIn .32s cubic-bezier(.2, .7, .2, 1) both; }
.app.page-in.page-back > * { animation-name: pageBack; }
.app.page-in > *:nth-child(2) { animation-delay: .03s; }
.app.page-in > *:nth-child(3) { animation-delay: .06s; }
.app.page-in > *:nth-child(n+4) { animation-delay: .09s; }
@keyframes pageIn { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
@keyframes pageBack { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .app.page-in > * { animation: none !important; } }
.check-layout.single { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.stepper { max-width: 760px; }

/* Statuts neutres du parcours Travailler */
.pill.libre { background: var(--ok-bg); color: var(--ok); }
.pill.exempt { background: #eef1f6; color: #5b6880; }
.pill.exempt::before { background: #9aa6ba; }
.hero-visual .pill.libre { background: rgba(76, 214, 145, .16); color: #7ee2ad; }
.hero-visual .pill.exempt { background: rgba(255, 255, 255, .1); color: #c3cfe4; }
.prog.exempt { background: #fafbfd; box-shadow: none; }
.prog.exempt h3 { color: var(--text-2); }
.missing.neutral { background: #f1f4f9; color: #4a5872; border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; margin-top: 12px; font-size: 14.5px; }

/* =========================================================
   Style « application de services » (inspiration Egovern)
   ========================================================= */
/* Mon espace : bandeau orange, salutation et barre de recherche qui déborde */
.dash-hero {
  position: relative; border-radius: 28px; padding: 26px 26px 52px; margin-bottom: 44px;
  background: radial-gradient(120% 140% at 100% 0%, #ffb877 0%, var(--orange) 45%, #f0812a 100%);
  color: var(--navy-900); overflow: visible;
}
.dash-hero::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(60% 80% at 10% 120%, rgba(255, 255, 255, .25), transparent 60%); }
.dash-hello { display: flex; align-items: center; gap: 14px; position: relative; }
.dash-hello .avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--navy-900); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 20px; border: 3px solid rgba(255, 255, 255, .7); flex: none; }
.dash-hello p { font-weight: 600; font-size: 15px; color: var(--navy-800); }
.dash-hello h1 { font-size: clamp(24px, 3.6vw, 32px); font-weight: 800; letter-spacing: -.02em; color: var(--navy-900); }
.dash-search {
  position: absolute; left: 20px; right: 20px; bottom: -26px;
  display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 0 18px;
  background: #fff; border-radius: 16px; box-shadow: 0 10px 28px rgba(11, 31, 68, .12);
  color: var(--text-3); text-decoration: none; font-weight: 500; transition: box-shadow .15s, transform .15s;
}
.dash-search span { flex: 1; }
.dash-search svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.dash-search svg:last-child { color: var(--orange-text); }
.dash-search:hover { transform: translateY(-1px); box-shadow: 0 14px 32px rgba(11, 31, 68, .16); color: var(--navy-900); }

/* Accès rapides : grille d'icônes */
.services { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; padding: 18px 14px; margin-bottom: 18px; }
.service { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px 4px; border-radius: 14px; text-decoration: none; color: var(--text); font-size: 13.5px; font-weight: 600; text-align: center; transition: background-color .15s, transform .15s; }
.service:hover { background: var(--bg); transform: translateY(-2px); }
.service-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; }
.service-ic svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.service.t1 .service-ic { background: var(--orange-soft); color: #d36b16; }
.service.t2 .service-ic { background: #e8f2ff; color: #2f6fd6; }
.service.t3 .service-ic { background: #e7f6ee; color: #23885a; }
.service.t4 .service-ic { background: #fdeceb; color: #d0493f; }

/* Listes : une petite tuile d'icône par ligne */
.mini-list.history li { align-items: center; gap: 12px; }
.row-main { flex: 1; min-width: 0; }
.row-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.row-ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.row-ic.study { background: var(--orange-soft); color: #d36b16; }
.row-ic.work { background: #e8f2ff; color: #2f6fd6; }

/* Résumé : anneau de répartition */
.donut-wrap { display: flex; align-items: center; gap: 22px; margin-top: 16px; flex-wrap: wrap; }
.donut-box { position: relative; width: 150px; height: 150px; flex: none; }
.donut { width: 100%; height: 100%; transform: rotate(0deg); }
.donut circle { fill: none; stroke-width: 5.2; }
.donut-bg { stroke: #eef1f6; }
.donut-seg { stroke-linecap: round; transition: stroke-dasharray .5s ease; }
.donut-seg.ok { stroke: var(--orange); }
.donut-seg.cond { stroke: #ffc796; }
.donut-seg.non { stroke: #d9dee8; }
.donut-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.donut-center .num { font-size: 34px; font-weight: 800; color: var(--navy-900); line-height: 1; }
.donut-center .lbl { font-size: 13px; color: var(--text-2); margin-top: 4px; }
.donut-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; flex: 1; min-width: 160px; }
.donut-legend li { display: grid; grid-template-columns: 12px 1fr auto; gap: 10px; align-items: center; }
.donut-legend .dot { width: 10px; height: 10px; border-radius: 50%; }
.donut-legend .dot.ok { background: var(--orange); }
.donut-legend .dot.cond { background: #ffc796; }
.donut-legend .dot.non { background: #d9dee8; }
.donut-legend strong { display: block; font-size: 17px; color: var(--navy-900); line-height: 1.2; }
.donut-legend span { font-size: 13px; color: var(--text-2); }
.donut-legend em { font-style: normal; font-size: 13px; color: var(--text-3); font-weight: 600; }

/* Feuille de route : cartes à liseré de couleur, prochaine étape en orange */
.road-step { border-left: 4px solid var(--border); }
.road-step.done { border-left-color: var(--ok); }
.road-step.fix { border-left-color: #e5a43a; }
.road-step.next { background: var(--orange); border-color: var(--orange); border-left-color: var(--orange); box-shadow: 0 12px 26px rgba(251, 154, 66, .32); }
.road-step.next h3, .road-step.next .road-docs, .road-step.next .label-sm, .road-step.next .road-foot a { color: var(--navy-900); }
.road-step.next .road-num { background: var(--navy-900); color: #fff; }
.road-step.next .road-when { background: rgba(255, 255, 255, .6); color: var(--navy-900); }
.road-step.next .road-check { border-color: rgba(11, 31, 68, .2); }
.road-step.next::before { content: "Prochaine étape"; position: absolute; top: -10px; left: 18px; background: var(--navy-900); color: #fff; font-size: 11.5px; font-weight: 700; padding: 2px 10px; border-radius: 999px; }
.road-step { position: relative; }

/* Téléphone : barre du bas avec bouton central rond, déconnexion en haut */
@media (max-width: 900px) {
  .services { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .dash-hero { padding: 22px 18px 50px; border-radius: 0 0 26px 26px; margin: -20px -16px 44px; }
  .dash-search { left: 14px; right: 14px; }
  .services { padding: 12px 6px; }
  .service { font-size: 12px; }
  .mainnav { align-items: flex-end; }
  .mainnav a[data-route="tableau-de-bord"] { order: 1; }
  .mainnav a[data-route="verifier"] { order: 2; flex: none; width: 66px; height: 66px; margin: -30px 6px 0; padding: 0; border-radius: 50%; background: var(--orange); color: var(--navy-900); justify-content: center; box-shadow: 0 10px 22px rgba(251, 154, 66, .45); border: 4px solid #fff; }
  .mainnav a[data-route="verifier"] span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .mainnav a[data-route="verifier"] svg { width: 26px; height: 26px; }
  .mainnav a[data-route="verifier"].active { background: var(--orange); box-shadow: 0 10px 22px rgba(251, 154, 66, .45); }
  .mainnav a[data-route="parametres"] { order: 3; }
  .mainnav .nav-logout { position: fixed; top: 16px; right: 14px; flex: none; flex-direction: row; padding: 6px 12px; font-size: 13px; background: #fff; border: 1.5px solid var(--border); z-index: 40; }
  .mainnav .nav-logout svg { width: 16px; height: 16px; }
  .mainnav a.active { color: var(--orange-text); background: none; }
}
.plan-row-main { flex: 1; min-width: 0; }
/* Mon espace : 3 accès rapides seulement */
.services { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dash-search strong { color: var(--navy-900); margin-right: 8px; }
.dash-search svg:first-child { color: var(--orange-text); }
@media (max-width: 900px) { .services { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .dash-search span { font-size: 14px; line-height: 1.3; } }
/* Statut indéterminé, critère inconnu, démarches de l'employeur */
.pill.indet { background: #eef2fb; color: #3d5a99; }
.hero-visual .pill.indet { background: rgba(255, 255, 255, .12); color: #cfe0ff; }
.criteria li.unknown .ic { background: #eef2fb; color: #3d5a99; font-weight: 800; font-size: 13px; display: grid; place-items: center; }
.who-tag { display: inline-block; margin: 0 8px 4px 0; padding: 2px 9px; border-radius: 999px; background: #e8f2ff; color: #2f5fb3; font-size: 11.5px; font-weight: 700; vertical-align: 2px; }
.road-step.next .who-tag { background: rgba(255, 255, 255, .7); color: var(--navy-900); }

/* Schéma travailleur v3 : détail du programme, étapes, pièces, alerte */
.tally { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; padding: 0; }
.tally li { padding: 4px 11px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--navy-100); color: var(--navy-800); }
.tally li.ok { background: var(--ok-bg); color: var(--ok); }
.tally li.cond { background: var(--warn-bg); color: var(--warn); }
.tally li.non { background: #f0f2f6; color: var(--text-2); }
.tally li.indet { background: #eef2fb; color: #3d5a99; }
.detail-head h1 { font-size: clamp(22px, 3vw, 28px); margin: 6px 0 10px; line-height: 1.25; }
.detail-head .desc { margin-top: 12px; }
.detail-cta { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.cond-detail { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 12px; }
.cond-row { margin: 0; border-left: 4px solid var(--border); }
.cond-row.ok { border-left-color: var(--ok); }
.cond-row.cond { border-left-color: var(--orange); }
.cond-row.non { border-left-color: var(--bad); }
.cond-row.indet { border-left-color: #3d5a99; }
.cond-row .cond-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.cond-row .cond-label { font-weight: 700; color: var(--text); }
.cond-row .cond-fix { margin: 8px 0 0; color: var(--text-2); font-size: 14.5px; }
.state-tag { flex: none; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.state-tag.ok { background: var(--ok-bg); color: var(--ok); }
.state-tag.cond { background: var(--warn-bg); color: var(--warn); }
.state-tag.non { background: var(--bad-bg); color: var(--bad); }
.state-tag.indet { background: #eef2fb; color: #3d5a99; }
.cond-src { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; margin-top: 10px; font-size: 13px; color: var(--text-3); }
.cond-src a { font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.cond-src a svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.auth.wide { max-width: 680px; }
.sub-h { font-size: 16px; margin: 20px 0 8px; }
.plain-list { margin: 0; padding-left: 20px; color: var(--text-2); line-height: 1.7; }
.emp-step { margin-bottom: 14px; }
.emp-step h3 { margin: 0; font-size: 16px; }
.facts { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.facts li { background: var(--bg); border-radius: var(--radius-sm); padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.facts strong { font-size: 14.5px; color: var(--text); }
.facts a { display: inline-flex; align-items: center; gap: 5px; }
.facts a svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.row-actions-wide { display: flex; flex-wrap: wrap; gap: 10px; }
.row-actions-wide .btn svg { width: 18px; height: 18px; }
.pieces { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.pieces label { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; }
.pieces input { width: 20px; height: 20px; accent-color: var(--ok); flex: none; }
.pieces span { flex: 1; font-weight: 600; }
.pieces em { font-style: normal; font-size: 12.5px; color: var(--text-3); }
.pieces input:checked ~ em { color: var(--ok); font-weight: 700; }
.pieces label:has(input:checked) { border-color: var(--ok); background: var(--ok-bg); }
.road-shortcuts { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 16px; }
.road-links { display: inline-flex; flex-wrap: wrap; gap: 14px; }
.alert-card { display: flex; gap: 14px; align-items: flex-start; border: 1.5px solid var(--orange); background: #fff8f1; }
.change-note { color: #9a4a0c; font-weight: 600; }
.alert-ic { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--orange); color: var(--navy-900); display: grid; place-items: center; }
.alert-ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; }
.alert-body { flex: 1; min-width: 0; }
.alert-body h2 { margin: 0 0 4px; font-size: 17px; }
.alert-body ul { margin: 8px 0 0; padding-left: 18px; color: var(--text-2); font-size: 14px; }
.alert-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 12px; }
@media (max-width: 640px) {
  .cond-row .cond-top { flex-direction: column; }
  .detail-cta, .row-actions-wide { flex-direction: column; align-items: stretch; }
  .row-actions-wide .btn, .detail-cta .btn { width: 100%; justify-content: center; }
}

/* Schéma étudiant v4 : profil commun, pages obligatoires, consentements, admission */
.known-card .facts { margin-top: 16px; }
.known-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 20px; }
.known-actions .btn svg { width: 18px; height: 18px; }
.known-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; background: var(--bg); border-radius: var(--radius-sm); }
.known-row .label-sm { display: block; margin-bottom: 2px; }
.site-foot { margin: 48px auto 0; padding: 22px 0 8px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px; font-size: 13px; color: var(--text-3); max-width: 1100px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-foot a { color: var(--text-2); font-weight: 600; text-decoration: none; }
.site-foot a:hover { color: var(--orange-text); text-decoration: underline; }
button.back { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.legal-page h1 { margin: 6px 0 6px; }
.legal-page ul { margin: 6px 0 0; padding-left: 20px; color: var(--text-2); line-height: 1.7; }
.legal-page p { color: var(--text-2); line-height: 1.65; }
.legal-version { margin-top: 22px; font-size: 13px; color: var(--text-3); font-weight: 600; }
.todo { background: var(--warn-bg); color: var(--warn); padding: 1px 7px; border-radius: 6px; font-weight: 700; font-size: .92em; }
.legal-links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 8px 0 0 30px; }
.legal-panel { margin: 10px 0 0; max-height: 280px; overflow: auto; padding: 14px 16px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 13.5px; }
.legal-panel .sub-h { font-size: 14px; margin: 14px 0 4px; }
.legal-panel p, .legal-panel ul { color: var(--text-2); margin: 0; }
.legal-panel ul { padding-left: 18px; }
.consent-when { font-size: 12px; margin-top: 3px; color: var(--text-3); }
.profile-card .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.profile-card .chip { padding: 4px 10px; border-radius: 999px; background: var(--navy-100); color: var(--navy-800); font-size: 12.5px; font-weight: 600; }
@media (max-width: 640px) {
  .site-foot { margin-bottom: 90px; flex-direction: column; }
  .known-row { flex-direction: column; align-items: flex-start; }
  .legal-links { margin-left: 0; }
}

/* Menu : Mon espace, Mes résultats, Mon compte (Nouveau projet est dans Mon espace) */
.mainnav a[data-route="verifier"] { display: none !important; }
@media (max-width: 640px) {
  .mainnav a[data-route="resultats"] { order: 2; }
}

/* Schéma étudiant v6 : services, fiches pays, ambassade, Atlas, experts */
.services { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.country-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.country-rub { margin: 0; }
.country-rub h2 { font-size: 16px; margin: 0 0 6px; }
.country-rub p { color: var(--text-2); margin: 0; line-height: 1.55; }
.country-list { display: grid; gap: 12px; }
.country-card { display: flex; align-items: center; gap: 14px; margin: 0; text-decoration: none; color: var(--text); }
.country-card > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.country-card .service-ic { background: #e7f6ee; color: #23885a; flex: none; }
.country-card > svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; color: var(--orange-text); }
.post-name { margin: 4px 0 0; font-size: 15px; color: var(--navy-800); }
.atlas-log { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-direction: column; gap: 10px; max-height: 460px; overflow: auto; }
.atlas-log li { max-width: 85%; padding: 10px 14px; border-radius: 16px; line-height: 1.5; font-size: 14.5px; }
.atlas-log .from-atlas { background: var(--bg); align-self: flex-start; border-bottom-left-radius: 4px; }
.atlas-log .from-me { background: var(--navy-900); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.atlas-log ul { margin: 6px 0; padding-left: 18px; }
.atlas-log a { font-weight: 600; }
.atlas-log a svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; vertical-align: -1px; margin-left: 3px; }
.atlas-log .when { display: block; font-size: 11.5px; opacity: .7; margin-top: 4px; }
.atlas-note { display: block; margin-top: 6px; font-size: 12.5px; color: var(--text-3); font-style: normal; }
.atlas-sugg { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.chip-btn { border: 1.5px solid var(--border); background: #fff; border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13px; font-weight: 600; color: var(--navy-800); cursor: pointer; }
.chip-btn:hover { border-color: var(--orange); color: var(--orange-text); }
.atlas-form { display: flex; gap: 10px; }
.atlas-form .input { flex: 1; }
.demo-note { margin-bottom: 14px; }
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.expert-list { display: grid; gap: 14px; }
.expert h2 { margin: 0; font-size: 18px; }
.expert .tags { margin-top: 10px; }
@media (max-width: 640px) {
  .form-grid.three { grid-template-columns: 1fr; }
  .atlas-log li { max-width: 100%; }
}
/* Mon ambassade ou consulat : rubrique de Mon espace */
.services { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .services { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.embassy-card .post { padding: 14px 0 0; margin-top: 14px; border-top: 1px solid var(--border); }
.embassy-card .post-dest { margin: 0; font-size: 15px; color: var(--text); }
.embassy-card .post-name { font-size: 14px; }
.embassy-card .facts { grid-template-columns: 1fr; }

/* Espace expert */
.pro-link { margin-top: 18px; font-size: 14px; color: var(--text-2); }
.pro-link a { color: var(--orange-text); font-weight: 600; }
.pro-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 12px 16px; margin-bottom: 18px; }
.pro-nav a { padding: 8px 14px; border-radius: 999px; color: var(--text-2); font-weight: 600; text-decoration: none; }
.pro-nav a:hover { background: var(--navy-100); }
.pro-nav a.on { background: var(--navy-900); color: #fff; box-shadow: inset 0 -3px 0 var(--orange); }
.pro-nav .danger-link { margin-left: auto; }
.pro-who { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; margin-right: 8px; color: var(--navy-900); }
.pro-who svg { width: 20px; height: 20px; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.check-grid label { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--card); cursor: pointer; }
.check-grid label:has(input:checked) { border-color: var(--orange); background: var(--orange-soft); }
.check-grid input { width: 18px; height: 18px; accent-color: var(--orange); flex: none; }
.verified-on { margin: 6px 0 0; }
@media (max-width: 560px) { .pro-nav .danger-link { margin-left: 0; } .check-grid { grid-template-columns: 1fr 1fr; } }

/* Dépôt des pièces en PDF dans la feuille de route */
.piece-list { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 8px; }
.road-docs ul.piece-list { padding-left: 0; }
.piece-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; padding: 8px 12px; border: 1px dashed var(--border); border-radius: var(--radius-sm); background: var(--card); }
.piece-row.has-file { border-style: solid; border-color: var(--ok); background: var(--ok-bg); }
.piece-name { font-weight: 600; }
.piece-file { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.piece-file .tag svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.5; margin-right: 4px; }
.piece-file .btn svg { width: 16px; height: 16px; }
.file-hidden { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; pointer-events: none; }
.piece-row label.link-btn { cursor: pointer; }
.file-hidden:focus-visible + .link-btn, .file-hidden:focus-visible ~ .link-btn { outline: 2px solid var(--accent); }

.portal-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; border: 2px solid var(--orange); background: var(--orange-soft); margin-top: 18px; }
.portal-card h2 { margin: 0 0 4px; }
.portal-card .btn svg { width: 18px; height: 18px; margin-left: 6px; }

/* ===== v7 : maquettes Mon espace et Fiche pays (police, couleurs, bandeau, cartes) ===== */
:root {
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font: "DM Sans", "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --navy-900: #12213f; --navy-800: #1a2c4f; --navy-700: #26407a;
  --bg: #f1f3f8; --radius: 22px;
  --orange: #dc7424; --orange-hover: #c5651b; --orange-text: #b2560a;
}
body { font-family: var(--font); }
h1, h2, .page-head h1 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 6px 16px rgba(220, 116, 36, .28); }
.btn-primary:hover { background: var(--orange-hover); color: #fff; box-shadow: 0 8px 22px rgba(220, 116, 36, .36); }
.card { border-radius: 22px; }
.mx { max-width: 760px; margin: 0 auto; }
.scene { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 62%; pointer-events: none; fill: currentColor; }
.scene .snow { fill: #fff; opacity: .85; }
.mx-hero { position: relative; overflow: hidden; border-radius: 28px; color: #fff; min-height: 330px; padding: 20px 22px 74px; display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(180deg, #12213f 0%, #1c3158 60%, #243c6a 100%); }
.mx-hero .sc-back { color: #2b4272; opacity: .75; height: 58%; }
.mx-hero .sc-front { color: #172a4d; height: 40%; left: 26%; width: 90%; }
.mx-sun { position: absolute; width: 96px; height: 96px; border-radius: 50%; right: 15%; top: 70px; background: linear-gradient(160deg, #d9a273, #b98660); opacity: .92; }
.mx-bar { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; }
.mx-brand { font-weight: 700; font-size: 19px; letter-spacing: -.01em; }
.mx-brand b { color: #f4a05a; font-weight: 700; }
.mx-avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .14); border: 1.5px solid rgba(255, 255, 255, .4); color: #fff; font-weight: 700; text-decoration: none; }
.mx-hero-body { position: relative; z-index: 1; margin-top: 64px; }
.mx-hero-body p { margin: 0 0 4px; font-size: 15px; color: #dbe4f5; }
.mx-hero-body h1 { color: #fff; font-size: clamp(32px, 7vw, 42px); line-height: 1.1; }
.mx-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; font-size: 14px; color: #dbe4f5; }
.mx-pill { background: #dff3e6; color: #17653f; font-weight: 700; font-size: 14px; padding: 6px 14px; border-radius: 999px; }
.mx-pill.cond, .mx-pill.indet { background: #fff0d6; color: #8a5200; }
.mx-pill.doc { background: #fff0d6; color: #8a5200; }
.mx-pill.non, .mx-pill.exempt { background: #fde3e0; color: #a3261c; }
.mx-next { position: relative; z-index: 2; margin: -52px 8px 0; background: #fff; border-radius: 26px; box-shadow: 0 14px 34px rgba(18, 33, 63, .14); padding: 20px 22px; display: flex; align-items: center; gap: 20px; }
.mx-donut { position: relative; width: 84px; height: 84px; flex: none; }
.mx-donut svg { width: 100%; height: 100%; }
.mx-donut circle { fill: none; stroke-width: 4.6; }
.mx-donut .bg { stroke: #eceff5; }
.mx-donut .fg { stroke: var(--orange); stroke-linecap: round; }
.mx-donut-c { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1.1; }
.mx-donut-c strong { font-family: var(--serif); font-size: 22px; color: var(--navy-900); }
.mx-donut-c span { font-size: 12px; color: var(--text-2); }
.mx-next-body { display: grid; gap: 4px; min-width: 0; }
.mx-eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-text); }
.mx-next-body strong { font-size: 18px; line-height: 1.25; color: var(--navy-900); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mx-next-body a { font-weight: 700; color: var(--orange-text); text-decoration: none; }
.mx > .alert-card { margin-top: 18px; }
.mx-sec-head { display: flex; align-items: baseline; justify-content: space-between; margin: 34px 2px 14px; }
.mx-sec-head h2, .mx-h2 { font-size: 26px; color: var(--navy-900); }
.mx-h2 { margin: 34px 2px 14px; }
.mx-sec-head span { font-size: 14px; color: var(--text-2); }
.mx-scroll { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 14px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; -webkit-overflow-scrolling: touch; }
.mx-dest { position: relative; flex: 0 0 min(78%, 300px); height: 300px; border-radius: 28px; overflow: hidden; scroll-snap-align: start; color: #fff; }
.mx-dest.tone0 { background: linear-gradient(180deg, #7a8fc4 0%, #6178b2 50%, #243766 100%); }
.mx-dest.tone1 { background: linear-gradient(180deg, #d4a574 0%, #bc8858 55%, #5c3a22 100%); }
.mx-dest.tone2 { background: linear-gradient(180deg, #86b6ae 0%, #55908a 55%, #1f4a4e 100%); }
.mx-dest .scene { color: rgba(18, 33, 63, .55); height: 70%; }
.mx-dest-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 20px 20px; background: linear-gradient(180deg, transparent, rgba(11, 20, 40, .72)); }
.mx-dest-body h3 { color: #fff; font-family: var(--serif); font-size: 26px; font-weight: 600; }
.mx-dest-body p { margin: 2px 0 14px; font-size: 15px; color: #e8eefb; }
.btn-orange, .btn-orange-wide { background: var(--orange); color: #fff; font-weight: 700; font-family: inherit; font-size: 16px; border: 0; border-radius: 999px; cursor: pointer; text-decoration: none; }
.btn-orange { padding: 11px 26px; }
.btn-orange:hover, .btn-orange-wide:hover { background: var(--orange-hover); }
.btn-orange-wide { display: block; text-align: center; padding: 16px; border-radius: 20px; margin: 18px 0; box-shadow: 0 8px 20px rgba(220, 116, 36, .26); }
.mx-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mx-tile { display: grid; gap: 4px; align-content: start; background: #fff; border-radius: 22px; padding: 18px; text-decoration: none; color: var(--navy-900); box-shadow: var(--shadow); min-height: 150px; }
.mx-tile strong { font-size: 17px; margin-top: 10px; }
.mx-tile > span:last-child { font-size: 15px; color: var(--text-2); }
.mx-tile-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; }
.mx-tile-ic svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mx-tile.t1 .mx-tile-ic { background: #fde8d6; color: #c1581a; }
.mx-tile.t2 .mx-tile-ic { background: #e3e9f8; color: #2d4a94; }
.mx-tile.t3 .mx-tile-ic { background: #dff1e7; color: #23885a; }
.mx-tile.t4 { background: #12213f; color: #fff; }
.mx-tile.t4 > span:last-child { color: #c9d4ea; }
.mx-tile.t4 .mx-tile-ic { background: rgba(255, 255, 255, .12); color: #f4a05a; }
.mx-tile:hover { transform: translateY(-2px); }
.mx-profile { background: #fff; border-radius: 22px; padding: 20px; box-shadow: var(--shadow); }
.mx-profile h3 { font-size: 17px; font-weight: 700; margin: 0 0 6px; }
.mx-profile p { margin: 0 0 10px; color: var(--text-2); }
.mx-profile a { font-weight: 700; color: var(--orange-text); text-decoration: none; }
/* Fiche pays */
.fp-hero { position: relative; overflow: hidden; border-radius: 28px; min-height: 300px; color: #fff; padding: 18px; display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(180deg, #5e8796 0%, #3b6272 45%, #14263a 100%); }
.fp-hero .sc-back { color: #2c5463; height: 70%; opacity: .85; }
.fp-hero .sc-front { color: #11273a; height: 46%; }
.fp-back { position: absolute; top: 16px; left: 16px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .16); border: 1.5px solid rgba(255, 255, 255, .35); color: #fff; }
.fp-back svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.fp-tag { position: absolute; top: 20px; right: 16px; background: rgba(255, 255, 255, .18); border: 1.5px solid rgba(255, 255, 255, .35); font-weight: 600; font-size: 14px; padding: 6px 14px; border-radius: 999px; }
.fp-hero-body { position: relative; z-index: 1; padding-top: 110px; }
.fp-hero-body h1 { color: #fff; font-size: 44px; line-height: 1.05; }
.fp-hero-body p { margin: 6px 0 4px; font-size: 16px; color: #e3ecf5; }
.fp-upd { font-size: 13.5px; color: #c9d8e6; }
.fp-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.fp-fact { background: #fff; border-radius: 20px; padding: 16px 18px; box-shadow: var(--shadow); display: grid; gap: 6px; }
.fp-fact span { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.fp-fact strong { font-family: var(--serif); font-size: 20px; color: var(--navy-900); }
.fp-list { background: #fff; border-radius: 24px; box-shadow: var(--shadow); overflow: hidden; }
.fp-row + .fp-row { border-top: 1px solid var(--border); }
.fp-row summary { list-style: none; display: flex; align-items: center; gap: 14px; padding: 14px 16px; cursor: pointer; }
.fp-row summary::-webkit-details-marker { display: none; }
.fp-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex: none; }
.fp-ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fp-ic.f1 { background: #fde4e4; color: #cf3f3f; } .fp-ic.f2 { background: #fde8d6; color: #c1581a; } .fp-ic.f3 { background: #e3e9f8; color: #2d4a94; }
.fp-ic.f4 { background: #dff1e7; color: #23885a; } .fp-ic.f5 { background: #ece4f7; color: #6b42b5; }
.fp-t { flex: 1; min-width: 0; display: grid; gap: 1px; }
.fp-t strong { font-size: 16px; color: var(--navy-900); }
.fp-t span { font-size: 14px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fp-chev { width: 20px; height: 20px; flex: none; color: var(--text-3); transform: rotate(180deg); transition: transform .2s; }
.fp-chev svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.fp-row[open] .fp-chev { transform: rotate(270deg); }
.fp-body { padding: 0 16px 16px 74px; }
.fp-body p { margin: 0 0 8px; color: var(--text); line-height: 1.55; }
.fp-cities { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fp-city { position: relative; height: 150px; border-radius: 22px; overflow: hidden; color: #fff; }
.fp-city.tone0 { background: linear-gradient(180deg, #7a8fc4, #243766); } .fp-city.tone1 { background: linear-gradient(180deg, #d4a574, #5c3a22); } .fp-city.tone2 { background: linear-gradient(180deg, #86b6ae, #1f4a4e); }
.fp-city .scene { color: rgba(18, 33, 63, .5); }
.fp-city strong { position: absolute; left: 14px; bottom: 12px; font-family: var(--serif); font-size: 18px; }
.fp-note { margin: 22px 0 0; padding: 16px 18px; background: #e8ecf6; border-radius: 18px; font-size: 14px; color: var(--text-2); line-height: 1.55; }
/* Barre du bas : Mon espace, Projets, Atlas, Compte */
@media (max-width: 640px) {
  body.on-dash .topbar { display: none; }
  body.on-dash .app { padding-top: 0; }
  .mx-hero { margin: 0 -16px; border-radius: 0 0 30px 30px; min-height: 360px; padding-top: 22px; }
  .mx-next { margin: -54px 0 0; }
  .mainnav { background: #fff; border-top: 1px solid var(--border); box-shadow: none; align-items: center; }
  .mainnav a { flex-direction: row; justify-content: center; font-size: 13.5px; font-weight: 600; color: var(--navy-900); padding: 14px 6px; border-radius: 0; }
  .mainnav a svg { display: none; }
  .mainnav a.active { background: none; color: var(--orange-text); font-weight: 700; box-shadow: none; }
  .mainnav .nav-logout { display: none; }
  .mx-scroll { margin: 0 -16px; }
}
@media (min-width: 641px) { .mx-bar { display: none; } .mx-hero-body { margin-top: 90px; } .mx-scroll { margin: 0; padding: 2px 0 14px; } }
@media (max-width: 640px) {
  .mainnav a[data-route="tableau-de-bord"] { order: 1; } .mainnav a[data-route="projets"] { order: 2; } .mainnav a[data-route="atlas"] { order: 3; } .mainnav a[data-route="parametres"] { order: 4; }
}
/* Version large (ordinateur) : on utilise toute la largeur de la page */
.mx { max-width: none; }
@media (min-width: 900px) {
  .mx-hero { min-height: 300px; padding: 28px 40px 84px; }
  .mx-hero-body { margin-top: 70px; }
  .mx-next { margin: -56px 24px 0; padding: 24px 32px; }
  .mx-scroll { overflow: visible; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 2px 0 14px; }
  .mx-dest { flex: none; height: 280px; }
  .mx-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mx > .mx-profile { max-width: none; }
  .fp-hero { min-height: 280px; padding: 28px 40px; }
  .fp-back { top: 24px; left: 32px; } .fp-tag { top: 28px; right: 32px; }
  .fp-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fp-list { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
  .fp-row:nth-child(2) { border-top: 0; }
  .fp-row:nth-child(even) { border-left: 1px solid var(--border); }
  .fp-cities { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .btn-orange-wide { max-width: 420px; margin-left: auto; margin-right: auto; }
}
/* La flèche retour de la fiche pays doit rester cliquable au-dessus du décor */
.fp-back, .fp-tag { z-index: 5; }
.fp-back { cursor: pointer; text-decoration: none; }
.fp-hero-body, .fp-hero .scene { pointer-events: none; }
/* Voyager : formalités d'entrée */
.pill.sans { background: var(--ok-bg); color: var(--ok); }
.pill.autor, .pill.visa { background: var(--warn-bg); color: var(--warn); }
.mx-pill.sans { background: #dff3e6; color: #17653f; }
.mx-pill.autor, .mx-pill.visa { background: #fff0d6; color: #8a5200; }
.chk-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.chk { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1.5px solid var(--border); border-radius: 999px; background: #fff; font-weight: 600; cursor: pointer; }
.chk input { accent-color: var(--orange); width: 18px; height: 18px; }
.tou-docs { margin: 10px 0 4px; }
.tou-docs ul { margin: 6px 0 0; padding-left: 20px; color: var(--text-2); line-height: 1.6; }

/* ---------- Demander l'asile ---------- */
.pill.info { background: #e8eefb; color: #2c4a8a; }
.pill.info::before { background: #5b7bc4; }
.hero-visual .pill.info { background: rgba(255, 255, 255, .12); color: #cfe0ff; }
.mx-pill.info { background: #e3ecff; color: #23417a; }
.road-when { white-space: normal; }
.quick-exit {
  position: fixed; right: 16px; bottom: 24px; z-index: 60; display: inline-flex; align-items: center; gap: 8px;
  background: #a3261c; color: #fff; border: 0; border-radius: 999px; padding: 12px 18px; font: inherit; font-weight: 700; font-size: 15px;
  box-shadow: 0 8px 24px rgba(163, 38, 28, .35); cursor: pointer; transition: transform .15s ease, background .15s ease;
}
.quick-exit:hover { background: #861d15; transform: translateY(-1px); }
.quick-exit:focus-visible { outline: 3px solid #ffb4ab; outline-offset: 3px; }
.asy-device h2 { display: flex; align-items: center; gap: 8px; }
.asy-device h2 svg { width: 22px; height: 22px; flex: none; color: var(--bad); }
.asy-device .btn { margin-top: 6px; }
.quick-exit svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
@media (max-width: 640px) { .quick-exit { bottom: 92px; right: 12px; padding: 11px 16px; } }
.asy-ask h2 { font-size: 24px; }
.asy-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.asy-choice {
  display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border: 2px solid var(--border); border-radius: var(--radius);
  text-decoration: none; color: var(--text); background: #fff; transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.asy-choice strong { font-size: 17px; color: var(--navy-900); }
.asy-choice span { color: var(--text-2); font-size: 14.5px; }
.asy-choice:hover { border-color: var(--accent); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(11, 31, 68, .08); }
.asy-choice.danger { border-color: #f1c4bf; background: #fff6f5; }
.asy-choice.danger strong { color: #a3261c; }
.asy-choice.danger:hover { border-color: #a3261c; }
.asy-alt { margin-top: 16px; font-size: 14.5px; color: var(--text-2); }
.asy-never { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.asy-never li { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.asy-never svg { width: 18px; height: 18px; flex: none; fill: none; stroke: #a3261c; stroke-width: 2.4; stroke-linecap: round; background: #fde3e0; border-radius: 50%; padding: 3px; box-sizing: content-box; }
.asy-panel { text-align: left; }
.asy-panel h1 { margin-top: 8px; }
.asy-911 { background: #a3261c; color: #fff; margin-top: 18px; }
.asy-911:hover { background: #861d15; }
.asy-soon { display: block; margin-top: 8px; font-size: 13px; color: var(--text-3); }
.asy-verdict { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; border-left: 4px solid #5b7bc4; }
.asy-verdict p { flex: 1; min-width: 220px; margin: 0; color: var(--text); font-weight: 500; }
.asy-role { display: inline-block; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--accent-strong); margin-bottom: 4px; }
.asy-dl-card { border: 1.5px solid #f3c58a; background: #fffaf2; }
.asy-deadlines { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.asy-deadlines li { display: flex; flex-direction: column; gap: 4px; background: #fff; border-radius: var(--radius-sm); border-left: 4px solid #c2410c; padding: 12px 14px; }
.asy-deadlines strong { color: #9a3412; font-size: 15px; }
.asy-deadlines span:last-child { color: var(--text-2); font-size: 14.5px; }
.deadline-tag { display: inline-block; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: #9a3412; background: #ffedd5; border-radius: 6px; padding: 2px 8px; margin-right: 8px; vertical-align: middle; }
.asy-deadlines .deadline-tag { align-self: flex-start; margin: 0; }
.road-step.deadline { border-left-color: #c2410c; }
.road-step.deadline .road-num { background: #ffedd5; color: #9a3412; }
.road-step.deadline .road-when { color: #9a3412; background: #ffedd5; }
.asy-watch { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.asy-watch li { background: var(--warn-bg); color: var(--text); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 14.5px; }
.asy-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.asy-actions .btn svg { width: 18px; height: 18px; }
@media (max-width: 640px) {
  .asy-choices { grid-template-columns: 1fr; }
  .asy-actions .btn { width: 100%; justify-content: center; }
}
.plain-list a svg, .atlas-log a svg, .asy-panel a svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -2px; margin-left: 3px; }
.asy-panel .plain-list { line-height: 1.6; }
.asy-panel .plain-list li + li { margin-top: 6px; }
.post + .post { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }

/* ---------- Photos des destinations ---------- */
.ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ph-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 20, 40, .35) 0%, rgba(11, 20, 40, .15) 40%, rgba(11, 20, 40, .78) 100%); }
.mx-hero.has-ph > *:not(.ph):not(.ph-shade), .fp-hero.has-ph > .fp-hero-body { position: relative; z-index: 1; }
.fp-hero.has-ph .fp-back, .fp-hero.has-ph .fp-tag { z-index: 2; backdrop-filter: blur(6px); }
.mx-hero-body h1, .fp-hero-body h1 { text-shadow: 0 2px 14px rgba(0, 0, 0, .25); }
.mx-dest .ph { z-index: 0; }
.mx-dest-body { z-index: 1; }
.ph-credit { margin: 8px 2px 0; font-size: 12.5px; color: var(--text-3); }
/* Accueil : photo derrière les exemples, puis mosaïque des destinations */
.hero-visual .hv-photo { opacity: .3; }
.hero-visual > *:not(.hv-photo) { position: relative; z-index: 1; }
.home-dests { margin: 8px 0 44px; }
.home-dests .mx-sec-head { margin-top: 0; }
.hd-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: 200px 200px; gap: 14px; }
.hd-card { position: relative; overflow: hidden; border-radius: 26px; color: #fff; text-decoration: none; background: var(--navy-900); box-shadow: 0 12px 28px rgba(11, 31, 68, .14); }
.hd-card.big { grid-row: span 2; }
.hd-card .ph { transition: transform .5s ease; }
.hd-card:hover .ph { transform: scale(1.05); }
.hd-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 50px 18px 16px; background: linear-gradient(180deg, transparent, rgba(11, 20, 40, .78)); display: grid; gap: 2px; }
.hd-body strong { font-family: var(--serif); font-size: 24px; font-weight: 600; }
.hd-card.big .hd-body strong { font-size: 32px; }
.hd-body span { font-size: 14px; color: #e8eefb; }
@media (max-width: 760px) {
  .hd-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 2px 16px 12px; grid-template-rows: none; }
  .hd-card, .hd-card.big { flex: 0 0 min(72%, 280px); height: 260px; scroll-snap-align: start; }
}
/* Fiches pays : vignette photo */
.cc-photo { position: relative; flex: none; width: 56px; height: 56px; border-radius: 16px; overflow: hidden; background: var(--navy-900); }
.country-card > span:nth-child(2) { flex: 1 1 0; min-width: 0; }
/* Résultat : bandeau de la destination et cartes des autres destinations */
.res-banner { position: relative; overflow: hidden; border-radius: 24px; min-height: 150px; margin: 30px 0 16px; display: flex; align-items: flex-end; color: #fff; background: var(--navy-900); }
.res-banner > div { position: relative; z-index: 1; width: 100%; padding: 40px 22px 16px; background: linear-gradient(180deg, transparent, rgba(11, 20, 40, .8)); }
.res-banner span { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #f4c49a; }
.res-banner h2 { color: #fff; font-family: var(--serif); font-size: 28px; margin: 2px 0 0; }
.dest-photo { position: relative; overflow: hidden; height: 140px; background: var(--navy-900); margin: -24px -24px 0; border-radius: 21px 21px 0 0; color: #fff; display: flex; align-items: flex-end; }
.dest-photo > div { position: relative; z-index: 1; width: 100%; padding: 30px 18px 12px; background: linear-gradient(180deg, transparent, rgba(11, 20, 40, .78)); }
.dest-photo h3 { color: #fff; font-family: var(--serif); font-size: 22px; margin: 0; }
.dest-photo span { font-size: 14px; color: #e8eefb; }
@media (max-width: 640px) { .dest-photo { margin: -20px -20px 0; } }
@media (prefers-reduced-motion: reduce) { .hd-card .ph { transition: none; } .hd-card:hover .ph { transform: none; } }
.country-card .cc-tag { align-self: flex-start; margin-top: 4px; }

/* ===== v8 : finition sobre et professionnelle (esprit Revolut / Indotravi) ===== */
:root {
  --serif: "DM Sans", "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --bg: #f5f6f8; --border: #e5e7ec;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 2px 8px rgba(16, 24, 40, .04);
}
h1, h2, .page-head h1 { font-weight: 700; letter-spacing: -.035em; }
h3 { letter-spacing: -.015em; }
.hero h1 { font-weight: 700; letter-spacing: -.045em; line-height: 1.04; }
/* Plus de halos ni de lueurs orangées */
.hero-visual::after, .page-head.row-between::after, .mx-sun { display: none; }
.hero h1 em { background: none; padding: 0; color: inherit; }
.btn-primary, .btn-primary:hover, .btn-orange-wide, .road-step.next,
.mainnav a[data-route="verifier"], .mainnav a[data-route="verifier"].active { box-shadow: none; }
.btn-primary:hover { transform: none; }
.input:focus, .select:focus { border-color: var(--navy-900); box-shadow: 0 0 0 3px rgba(18, 33, 63, .1); }
.progress span { background: var(--orange); }
.topbar { border-top: 0; background: rgba(255, 255, 255, .86); }
.mainnav a.active, .pro-nav a.on { box-shadow: none; }
.mx-hero { background: #12213f; }
.btn-orange-wide { border-radius: 999px; }
/* Cartes plus nettes : fine bordure, ombre discrète */
.card, .mx-tile, .mx-profile, .fp-fact, .fp-list, .mx-next { border: 1px solid var(--border); box-shadow: var(--shadow); }
.mx-next { box-shadow: 0 8px 24px rgba(16, 24, 40, .08); }
.dest-card:hover, .mx-tile:hover { box-shadow: 0 8px 24px rgba(16, 24, 40, .08); }
.mx-tile.t4 { border-color: #12213f; }
.hd-card, .hero-visual { box-shadow: none; }
.eyebrow { letter-spacing: 0; }
/* Accueil : grande photo plein cadre, texte blanc, encart d'exemples en verre dépoli */
.hero.hero-ph { position: relative; isolation: isolate; overflow: hidden; border-radius: 32px; padding: 64px 56px; margin-bottom: 48px; color: #fff; min-height: 560px; background: #12213f; }
.hero-ph > .ph { z-index: -2; }
.hero-ph::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8, 14, 28, .82) 0%, rgba(8, 14, 28, .55) 50%, rgba(8, 14, 28, .2) 100%); }
.hero-ph .hero-logo { display: none; }
.hero-ph h1 { color: #fff; }
.hero-ph .lead { color: rgba(255, 255, 255, .86); }
.hero-ph .eyebrow { background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(8px); }
.hero-ph .btn-primary { background: #fff; color: #12213f; }
.hero-ph .btn-primary:hover { background: #eef1f6; color: #12213f; }
.hero-ph .hero-actions .login-link, .hero-ph .pro-link { color: rgba(255, 255, 255, .78); }
.hero-ph .hero-actions .login-link a, .hero-ph .pro-link a { color: #fff; }
.hero-ph .hero-visual { background: rgba(10, 18, 36, .55); border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.hero-ph .hero-visual .hv-photo { display: none; }
@media (max-width: 900px) {
  .hero.hero-ph { padding: 40px 24px; min-height: 0; }
  .hero-ph::before { background: linear-gradient(180deg, rgba(8, 14, 28, .78) 0%, rgba(8, 14, 28, .6) 55%, rgba(8, 14, 28, .82) 100%); }
}
@media (max-width: 640px) {
  .hero.hero-ph { margin: -20px -16px 36px; border-radius: 0 0 28px 28px; padding: 36px 20px 28px; }
}
.benefit .icon { background: #f0f2f6; color: var(--navy-900); }
.home-foot { color: var(--text-3); }
/* Bande « Ils sont partis » */
.people { margin: 0 0 48px; }
.people .mx-sec-head { margin-top: 0; }
.pp-lead { color: var(--text-2); max-width: 620px; margin: -4px 2px 16px; }
.pp-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.pp-card { position: relative; margin: 0; aspect-ratio: 3 / 4; border-radius: 22px; overflow: hidden; background: #12213f; }
.pp-card figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 14px 12px; color: #fff; font-weight: 700; font-size: 15px; background: linear-gradient(180deg, transparent, rgba(8, 14, 28, .75)); }
@media (max-width: 760px) {
  .pp-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 2px 16px 12px; }
  .pp-card { flex: 0 0 46%; scroll-snap-align: start; }
}

/* ===== v9 : en-tête façon Revolut et grande image plein écran (accueil) ===== */
.pubnav { display: none; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.top-signup { display: none; }
body.on-home .pubnav:not([hidden]) { display: flex; gap: 4px; margin-right: auto; margin-left: 28px; }
.pubnav button, .pubnav a { background: none; border: 0; font: inherit; font-weight: 600; font-size: 15.5px; color: inherit; padding: 8px 14px; border-radius: 999px; cursor: pointer; text-decoration: none; }
body.on-home .top-signup:not([hidden]) { display: inline-flex; align-items: center; font-weight: 700; font-size: 15px; text-decoration: none; padding: 10px 22px; border-radius: 999px; background: #fff; color: #12213f; }
body.on-home .topbar { position: absolute; left: 0; right: 0; background: transparent; border-bottom: 0; backdrop-filter: none; -webkit-backdrop-filter: none; color: #fff; }
body.on-home .topbar-inner { max-width: 1240px; padding: 22px 24px; }
body.on-home .brand-word { filter: brightness(0) invert(1); }
body.on-home .pubnav button:hover, body.on-home .pubnav a:hover { background: rgba(255, 255, 255, .14); }
body.on-home .top-login { background: transparent; border-color: transparent; color: #fff; }
body.on-home .top-login:hover { background: rgba(255, 255, 255, .14); color: #fff; }
/* Héros pleine largeur, sans arrondis, sous l'en-tête */
body.on-home .app { padding-top: 0; }
.hero.hero-ph { width: 100vw; margin: 0 calc(50% - 50vw) 56px; border-radius: 0; min-height: min(860px, 100vh); padding: 150px max(24px, calc(50vw - 596px)) 72px; align-items: center; }
.hero-ph::before { background: linear-gradient(90deg, rgba(8, 14, 28, .78) 0%, rgba(8, 14, 28, .5) 45%, rgba(8, 14, 28, .15) 100%), linear-gradient(180deg, rgba(8, 14, 28, .45) 0%, transparent 28%); }
.hero-ph h1 { font-size: clamp(40px, 6.4vw, 84px); line-height: 1; letter-spacing: -.05em; max-width: 12ch; }
.hero-ph .lead { font-size: 19px; max-width: 560px; }
@media (max-width: 900px) {
  body.on-home .pubnav { display: none !important; }
  .hero.hero-ph { padding: 120px 24px 48px; min-height: 0; }
}
@media (max-width: 640px) {
  body.on-home .topbar-inner { padding: 14px 16px; }
  body.on-home .top-signup { display: none !important; }
  .hero.hero-ph { margin: 0 -16px 36px; width: auto; padding: 96px 20px 28px; border-radius: 0 0 28px 28px; }
}
/* Les parcours */
.parcours, .features { margin: 0 0 48px; }
.parcours .mx-sec-head, .features .mx-sec-head { margin-top: 0; }
.pc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.pc-card { position: relative; overflow: hidden; min-height: 210px; border-radius: 24px; color: #fff; text-decoration: none; background: #12213f; display: flex; align-items: flex-end; }
.pc-card .ph { transition: transform .5s ease; }
.pc-card:hover .ph { transform: scale(1.05); }
.pc-body { position: relative; z-index: 1; width: 100%; display: grid; gap: 2px; padding: 56px 18px 16px; background: linear-gradient(180deg, transparent, rgba(8, 14, 28, .82)); }
.pc-body strong { font-size: 22px; letter-spacing: -.02em; }
.pc-body > span:last-child { font-size: 14px; color: #e3e9f5; }
.pc-ic { position: absolute; top: -150px; left: 16px; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .25); backdrop-filter: blur(8px); }
.pc-ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pc-card { padding-top: 0; }
.pc-asy { background: #eef1f6; color: var(--navy-900); border: 1px solid var(--border); }
.pc-asy .pc-body { background: none; padding-top: 70px; }
.pc-asy .pc-body > span:last-child { color: var(--text-2); }
.pc-asy .pc-ic { background: #fff; border-color: var(--border); color: var(--navy-900); }
/* Fonctionnalités */
.ft-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ft { background: #fff; border: 1px solid var(--border); border-radius: 22px; padding: 22px; }
.ft-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: #f0f2f6; color: var(--navy-900); margin-bottom: 14px; }
.ft-ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ft h3 { font-size: 17px; font-weight: 700; }
.ft p { color: var(--text-2); font-size: 15px; margin-top: 6px; }
@media (max-width: 900px) { .pc-grid, .ft-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pc-grid, .ft-grid { grid-template-columns: 1fr; } .pc-card { min-height: 170px; } }
@media (prefers-reduced-motion: reduce) { .pc-card .ph { transition: none; } .pc-card:hover .ph { transform: none; } }
.pc-ic { position: static; margin-bottom: 10px; }
.pc-asy .pc-body { padding-top: 24px; }

/* v10 : rubriques de même hauteur, sans décalage au survol */
.pc-grid, .ft-grid, .benefits, .hd-grid, .pp-grid { align-items: stretch; }
.ft, .benefit, .pc-card { height: 100%; box-sizing: border-box; }
.ft:hover, .benefit:hover { transform: none; }

/* v11 : même finition sur toutes les pages */
/* Icônes neutres partout (plus de pastilles de couleur) */
.mx-tile.t1 .mx-tile-ic, .mx-tile.t2 .mx-tile-ic, .mx-tile.t3 .mx-tile-ic,
.fp-ic.f1, .fp-ic.f2, .fp-ic.f3, .fp-ic.f4, .fp-ic.f5,
.row-ic, .row-ic.study, .row-ic.work, .project .icon { background: #f0f2f6; color: var(--navy-900); }
.mx-tile.t4 .mx-tile-ic { color: #fff; }
.mx-tile { border: 1px solid var(--border); box-shadow: none; transition: border-color .2s; }
.mx-tile:hover { transform: none; border-color: #c9d1de; }
/* Mon espace : grande photo, ombre douce, sans skyline dessiné */
.mx-hero { min-height: 380px; border-radius: 28px; }
.mx-hero > .ph { z-index: 0; }
.mx-hero > .ph-shade { z-index: 0; }
.mx-hero-body h1 { font-size: clamp(32px, 4.4vw, 52px); letter-spacing: -.03em; }
.mx-next { box-shadow: 0 12px 32px rgba(15, 26, 51, .1); border: 1px solid var(--border); }
/* Choix du projet en cartes photo */
.pc-choose { margin-top: 8px; }
.pc-choose .pc-card { min-height: 230px; }
.pc-soon { opacity: .85; }
.pc-soon .badge { vertical-align: middle; margin-left: 6px; font-size: 11px; }
/* Connexion / inscription : formulaire + photo */
.auth-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: stretch; max-width: 1080px; margin: 0 auto; }
.auth-split .auth { width: 100%; max-width: 460px; margin: 0 0 0 auto; }
.auth-ph { position: relative; overflow: hidden; border-radius: 28px; min-height: 560px; display: flex; align-items: flex-end; color: #fff; background: var(--navy-900); }
.auth-ph-body { position: relative; z-index: 1; padding: 28px; display: grid; gap: 6px; }
.auth-ph-body strong { font-size: 28px; line-height: 1.15; letter-spacing: -.02em; }
.auth-ph-body span { color: #e3e9f5; font-size: 15px; max-width: 380px; }
@media (max-width: 900px) { .auth-split { display: block; } .auth-ph { display: none; } .auth-split .auth { margin: 0 auto; } }
/* Feuille de route et régions en photo */
.road-banner { margin: 0 0 16px; min-height: 170px; }
.fp-city .ph-shade { z-index: 0; }
.fp-city strong { z-index: 1; }
.mx-hero > .ph-shade { background: linear-gradient(180deg, rgba(11, 20, 40, .55) 0%, rgba(11, 20, 40, .3) 45%, rgba(11, 20, 40, .7) 100%); }
/* Accueil quand on est connecté : menu lisible sur la photo */
body.on-home .topbar .mainnav a, body.on-home .topbar .mainnav button { color: rgba(255, 255, 255, .9); background: transparent; border-color: transparent; }
body.on-home .topbar .mainnav a:hover, body.on-home .topbar .mainnav button:hover { color: #fff; background: rgba(255, 255, 255, .14); }

/* v12 : toutes les rubriques centrées au milieu de l'écran */
.stepper, .check-layout.single, .settings { margin-left: auto; margin-right: auto; }
.settings { max-width: 760px; }
.app:has(> .check-layout.single), .app:has(> .settings), .app:has(> .stepper) { max-width: 800px; }
.app:has(> .auth:not(.wide)) { max-width: 500px; }
.app:has(> .auth.wide) { max-width: 720px; }
.app:has(> .auth-split) { max-width: 1120px; }
/* Exemples de résultats : statuts du parcours Voyager sur fond sombre */
.hero-visual .pill.sans { background: rgba(76, 214, 145, .16); color: #7ee2ad; }
.hero-visual .pill.autor, .hero-visual .pill.visa { background: rgba(255, 186, 73, .16); color: #ffcd7a; }
#parcours, #hd-title, #fonctions { scroll-margin-top: 24px; }
/* Connexion / inscription : le formulaire et la photo ont la même hauteur */
.auth-split { grid-template-rows: auto 1fr auto; row-gap: 0; }
.auth-split > .auth { grid-column: 1; grid-row: 1 / 4; display: grid; grid-template-rows: subgrid; }
.auth-split > .auth > .card { height: 100%; box-sizing: border-box; }
.auth-split > .auth-ph { grid-column: 2; grid-row: 2; min-height: 0; }
/* « Ils sont partis » : un onglet par parcours */
.pp-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.pp-tab { border: 1px solid var(--border); background: #fff; color: var(--navy-900); border-radius: 999px; padding: 8px 16px; font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; }
.pp-tab:hover { border-color: #c9d1de; }
.pp-tab.on { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.pp-tab:focus-visible { outline: 3px solid #9cc2ff; outline-offset: 2px; }
@media (max-width: 640px) { .pp-tabs { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 14px; padding: 0 16px 4px; } .pp-tab { flex: none; } }

/* v14 : carte « Rejoindre sa famille » avec photo */
.pc-soon { opacity: 1; }
.pc-soon .badge.soon { background: rgba(255,255,255,.22); color: #fff; backdrop-filter: blur(4px); }

/* ---------- Nouvelle-Zélande : informations en cours de validation ---------- */
.pending-note { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 16px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--warn-bg); color: var(--warn); border: 1px solid #f3dcb3; font-size: 14px; line-height: 1.5; }
.pending-note svg { flex: 0 0 20px; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }
.pending-note strong { display: block; font-size: 15px; color: #6b3f00; }
.pending-note span { color: #6b3f00; }
.prog .pending-note { margin: 12px 0 4px; }
.cond-quote { margin: 10px 0 0; padding: 8px 12px; border-left: 3px solid var(--border); color: var(--text-2); font-size: 14px; font-style: italic; }
.fp-facts-list { margin: 10px 0 0; font-size: 14px; }
.fp-facts-list li { margin-bottom: 6px; }
.fp-facts-list a { font-weight: 600; margin-left: 4px; }
.fp-facts-list a svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; vertical-align: -2px; }
.hd-grid { grid-auto-rows: 150px; }
.hd-card.no-ph { background: linear-gradient(135deg, var(--navy-800), #1f6f6b); }
.hd-grid .hd-card.no-ph:last-child { grid-column: 1 / -1; }
@media (max-width: 760px) { .hd-grid .hd-card.no-ph:last-child { grid-column: auto; } }

/* ===== v15 : héros plus lumineux (drapeaux des nations), rubriques qui défilent, page Experts ===== */
.hero-ph::before { background: linear-gradient(90deg, rgba(10, 22, 48, .86) 0%, rgba(10, 22, 48, .74) 38%, rgba(10, 22, 48, .3) 62%, rgba(10, 22, 48, .05) 100%), linear-gradient(180deg, rgba(10, 22, 48, .55) 0%, transparent 22%, transparent 78%, rgba(10, 22, 48, .45) 100%); }
.hero-ph h1, .hero-ph .lead, .hero-ph .pro-link, .hero-ph .login-link { text-shadow: 0 2px 16px rgba(6, 14, 32, .6); }
.hero-ph .lead, .hero-ph .pro-link, .hero-ph .hero-actions .login-link { color: #fff; }
.hero-ph .hero-visual { background: rgba(10, 18, 36, .72); }
@media (max-width: 900px) { .hero-ph::before { background: linear-gradient(180deg, rgba(10, 22, 48, .78) 0%, rgba(10, 22, 48, .7) 55%, rgba(10, 22, 48, .82) 100%); } }
.hero-ph .ph { object-position: center 40%; }
/* « Ils sont partis » : fondu doux quand la rubrique change */
.pp-panel:not([hidden]) .pp-grid { animation: ppFade .5s ease; }
@keyframes ppFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .pp-panel:not([hidden]) .pp-grid { animation: none; } }
/* Page Experts : même grande image et mêmes cartes que l'accueil */
.xp-hero { min-height: min(680px, 88vh); }
.xp-hero > div:not(.hero-visual) { max-width: 640px; }
.xp-hero h1 { max-width: 14ch; }
.xp-hero .ph { object-position: center 30%; }
.xp-band { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; margin: 0 0 48px; }
.xp-band-text { background: #fff; border: 1px solid var(--border); border-radius: 22px; padding: 26px; }
.xp-band-text h2 { font-size: 24px; letter-spacing: -.02em; margin-bottom: 14px; }
.xp-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.xp-steps li { display: flex; gap: 14px; align-items: flex-start; }
.xp-steps strong { font-size: 16px; color: var(--navy-900); }
.xp-steps p { color: var(--text-2); font-size: 15px; margin-top: 2px; }
.xp-n { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--orange-soft); color: var(--orange-text); font-weight: 700; }
.xp-fee { background: var(--navy-900); color: #fff; border-radius: 22px; padding: 26px; display: flex; flex-direction: column; gap: 8px; }
.xp-fee h3 { color: #fff; font-size: 22px; letter-spacing: -.02em; }
.xp-fee p { color: #c9d4e8; }
.xp-fee-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 255, 255, .12); margin-bottom: 6px; }
.xp-fee-ic svg, .xp-charte svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.xp-charte { margin-top: auto; padding-top: 12px; display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 700; text-decoration: none; }
.xp-charte:hover { text-decoration: underline; }
.xp-cta { text-align: center; background: #fff; border: 1px solid var(--border); border-radius: 22px; padding: 34px 22px; margin: 0 0 24px; }
.xp-cta h2 { font-size: 26px; letter-spacing: -.02em; margin-bottom: 18px; }
.xp-cta .row-actions-wide { justify-content: center; }
.xp-cta .note { margin-top: 16px; }
@media (max-width: 900px) { .xp-band { grid-template-columns: 1fr; } }
/* Sixième destination (Nouvelle-Zélande) : toute la largeur, avec sa photo */
.hd-grid .hd-card:nth-child(6):last-child { grid-column: 1 / -1; }
.hd-grid .hd-card:nth-child(6):last-child .ph { object-position: center 55%; }
@media (max-width: 760px) { .hd-grid .hd-card:nth-child(6):last-child { grid-column: auto; } }

/* v16 — hero plus lumineux : photo éclaircie, voile concentré derrière le texte, carte plus transparente */
.hero-ph .ph { filter: brightness(1.14) saturate(1.3) contrast(1.04); }
.hero-ph::before { background: linear-gradient(90deg, rgba(10, 22, 48, .72) 0%, rgba(10, 22, 48, .5) 34%, rgba(10, 22, 48, .12) 56%, rgba(10, 22, 48, 0) 100%), linear-gradient(180deg, rgba(10, 22, 48, .4) 0%, transparent 18%); }
.hero-ph h1, .hero-ph .lead, .hero-ph .pro-link, .hero-ph .login-link { text-shadow: 0 2px 18px rgba(6, 14, 32, .7); }
.hero-ph .hero-visual { background: rgba(10, 18, 36, .5); }
@media (max-width: 900px) { .hero-ph::before { background: linear-gradient(180deg, rgba(10, 22, 48, .62) 0%, rgba(10, 22, 48, .5) 55%, rgba(10, 22, 48, .7) 100%); } }

/* v17 — lisibilité : fond bleu nuit presque uni derrière le texte, photo lumineuse à droite, carte en verre plus opaque.
   La teinte du voile est une variable (--hero-veil-rgb) pour suivre un futur changement de palette. */
:root { --hero-veil-rgb: 10, 22, 48; }
.hero-ph::before { background: linear-gradient(90deg, rgba(var(--hero-veil-rgb), .94) 0%, rgba(var(--hero-veil-rgb), .9) 32%, rgba(var(--hero-veil-rgb), .55) 46%, rgba(var(--hero-veil-rgb), .08) 60%, rgba(var(--hero-veil-rgb), 0) 100%), linear-gradient(180deg, rgba(var(--hero-veil-rgb), .35) 0%, transparent 16%); }
.hero-ph .hero-visual { background: rgba(var(--hero-veil-rgb), .78); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2); }
@media (max-width: 900px) { .hero-ph::before { background: linear-gradient(180deg, rgba(var(--hero-veil-rgb), .8) 0%, rgba(var(--hero-veil-rgb), .74) 60%, rgba(var(--hero-veil-rgb), .86) 100%); } }

/* v18 — logo « Envol » : épingle avec un globe, même orange pour l’épingle, « Nation » et les boutons (var --orange) */
.brand .brand-pin { height: 36px; width: auto; display: block; }
.brand-pin .pin-body { fill: var(--orange); }
.brand-pin .pin-globe { stroke: var(--navy-900); }
.brand .brand-word { height: auto; font: 700 21px/1 var(--font); letter-spacing: -.02em; color: var(--navy-900); white-space: nowrap; }
.brand-word b { color: var(--orange); font-weight: 700; }
body.on-home .brand-word { filter: none; color: #fff; }
.hero-logo { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; height: auto; }
.hero-logo .brand-pin { height: 64px; width: auto; }
.hero-logo .brand-word { font: 700 30px/1 var(--font); letter-spacing: -.02em; color: var(--navy-900); }
.mx-brand b { color: var(--orange); }
@media (max-width: 640px) { .brand .brand-pin { height: 30px; } .brand .brand-word { font-size: 18px; } }

/* v19 — tous les écrans de formulaire (connexion, inscription, questionnaires, asile, experts, paramètres) : fond blanc professionnel, cartes bordées */
body:has(.app > .auth, .app > .auth-split, .app > .check-layout, .app > .stepper, .app > .settings) { --bg: #fff; background: #fff; }
body:has(.app > .auth, .app > .auth-split, .app > .check-layout, .app > .stepper, .app > .settings) .app .card { border: 1px solid var(--border); box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .06); }

/* v20 — foire aux questions de l'accueil, par profil */
.faq { margin-top: 56px; }
.faq-grid { align-items: start; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.faq-group { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 18px 20px 8px; }
.faq-group h3 { margin: 0 0 6px; font-size: 15px; color: var(--orange); letter-spacing: .01em; }
.faq-item { border-top: 1px solid var(--border); }
.faq-item:first-of-type { border-top: 0; }
.faq-item summary { cursor: pointer; list-style: none; padding: 12px 24px 12px 0; font-weight: 600; color: var(--navy-900); position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 2px; top: 10px; font-size: 20px; color: var(--orange); }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin: 0 0 14px; color: var(--muted, #4a5872); line-height: 1.55; }

/* v21 — Mon espace : rubriques dans le menu du haut, ambassade en bloc d'urgence bien visible */
.embassy-card.sos { border: 2px solid var(--bad, #b3261e); background: #fff; box-shadow: 0 10px 28px rgba(179, 38, 30, .12); margin: 18px 0; }
.embassy-card.sos .sos-head { display: flex; gap: 14px; align-items: flex-start; }
.embassy-card.sos .sos-ic { flex: none; width: 48px; height: 48px; border-radius: 14px; background: var(--bad-bg, #fdecea); color: var(--bad, #b3261e); display: grid; place-items: center; }
.embassy-card.sos .sos-ic svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.embassy-card.sos .sos-eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--bad, #b3261e); }
.embassy-card.sos h2 { margin: 2px 0 4px; }
.embassy-card.sos .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.embassy-card.sos .facts li:nth-child(2) a { display: inline-block; margin-top: 4px; padding: 8px 16px; border-radius: 999px; background: var(--bad, #b3261e); color: #fff; text-decoration: none; }
@media (max-width: 760px) { .embassy-card.sos .facts { grid-template-columns: 1fr; } }
.mainnav a span { white-space: nowrap; }
@media (min-width: 901px) { .mainnav { gap: 2px; } .mainnav a { padding-left: 11px; padding-right: 11px; } }
@media (max-width: 640px) {
  .mainnav a[data-route="tableau-de-bord"] { order: 1; } .mainnav a[data-route="ambassade"] { order: 2; } .mainnav a[data-route="projets"] { order: 3; } .mainnav a[data-route="pays"] { order: 4; } .mainnav a[data-route="dossiers"] { order: 5; } .mainnav a[data-route="atlas"] { order: 6; } .mainnav a[data-route="parametres"] { order: 7; }
  .mainnav a[data-route="ambassade"] { color: var(--bad, #b3261e); }
}
/* v22 — Fiches pays : mes pays d'abord, puis les autres */
.country-list.cl-mine .country-card { border: 2px solid var(--orange); }
.cc-tag.cc-mine { background: var(--orange-soft, #fdeedf); color: var(--orange-text, #b2560a); margin-right: 6px; }

/* v23 — fond blanc sur tous les écrans (fini le gris), cartes bordées pour rester lisibles */
:root { --bg: #fff; }
body { background: #fff; }
.app .card, .country-card, .fp-list, .fp-fact, .mx-profile, .mx-next, .faq-group { border: 1px solid var(--border); box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .06); }
.app .card .card { box-shadow: none; }

/* v24 — accueil réordonné : promesse, parcours, preuves, 3 étapes, FAQ par profil, bouton collé en bas sur téléphone */
.hero-reass { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: #fff; }
.hero-reass li { display: inline-flex; align-items: center; gap: 6px; text-shadow: 0 2px 12px rgba(6,14,32,.6); }
.hero-reass svg { width: 16px; height: 16px; fill: none; stroke: #f4a463; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.prop-proofline { background: #f5f7fa; border-radius: 12px; padding: 10px 12px; }
.prop-proofline small { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); font-weight: 700; margin-bottom: 2px; }
.prop-num { background: var(--orange); color: #fff; font-weight: 700; font-size: 20px; }
.prop-cap { color: var(--text-3); font-size: 13px; margin-top: 10px; }
.faq .pp-tabs { margin-bottom: 14px; }
.faq-panel { max-width: 760px; }
.prop-final { margin-top: 36px; padding: 28px; border-radius: 22px; }
.prop-final .btn { background: var(--orange); color: #fff; }
.prop-pro { text-align: center; font-size: 14px; color: var(--text-2); margin-top: 10px; }
.prop-pro a { color: var(--orange-text); font-weight: 600; }
.prop-sticky { display: none; }
@media (max-width: 700px) {
  .prop-sticky { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff; border-top: 1px solid var(--border); padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
  .prop-sticky .btn { width: 100%; justify-content: center; }
  .app { padding-bottom: 90px; }
}

/* Taux de change : montant en euros indicatif à côté des dollars (taux-change.js) */
.fx-eur { color: var(--text-2); font-size: .92em; font-weight: 400; white-space: nowrap; }
.fx-note { max-width: 1100px; margin: 24px auto 0; padding: 0 16px; font-size: 12.5px; color: var(--text-2); }

/* Accueil : rythme par fonds alternés (blanc, crème, bandeau marine), les formulaires restent blancs */
:root { --cream: #fbf6ee; }
.app > .parcours, .app > .prop-proof, .app > .prop-steps, .app > .home-dests, .app > .people, .app > .faq {
  margin: 0; padding: 52px 0; box-shadow: 0 0 0 100vmax var(--band); clip-path: inset(0 -100vmax); background: var(--band);
}
.app > .parcours { --band: #fff; margin-top: 8px; }
.app > .prop-proof { --band: var(--cream); }
.app > .prop-steps { --band: var(--navy-900); color: #fff; padding: 60px 0; }
.app > .home-dests { --band: var(--cream); }
.app > .people { --band: #fff; }
.app > .faq { --band: var(--cream); }
.app > .faq + .prop-final { margin-top: 48px; }
.prop-steps h2 { color: #fff; }
.prop-steps .mx-sec-head span { color: rgba(255, 255, 255, .72); }
.prop-steps .ft { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .16); }
.prop-steps .ft h3 { color: #fff; }
.prop-steps .ft p { color: rgba(255, 255, 255, .8); }
.prop-steps .prop-num { background: var(--orange); color: var(--navy-900); }
.prop-steps-cta { margin: 28px 0 0; display: flex; justify-content: center; }
.prop-steps-cta .btn-primary:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
/* Pied de page marine pour fermer la page */
.site-foot { border-top: 0; color: rgba(255, 255, 255, .7); padding: 26px 0; box-shadow: 0 0 0 100vmax var(--navy-900); clip-path: inset(0 -100vmax -200px); background: var(--navy-900); }
.site-foot a { color: #fff; }
.site-foot a:hover { color: var(--orange); }
/* Anti-robots Cloudflare Turnstile : la case n'apparaît que si Cloudflare a un doute */
.cn-turnstile { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 1000; }
.cn-turnstile:empty { display: none; }

/* v25 : présentation des programmes (fiches, regroupement, autres destinations) */
.pv2 .pf-brief { font-size: 16px; color: var(--text-1, #12213f); margin-top: 12px; max-width: 70ch; }
.pf-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin: 16px 0 0; }
.pf-facts div { background: #f5f7fa; border-radius: 14px; padding: 12px 14px; min-width: 0; }
.pf-facts dt { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; color: var(--text-3); }
.pf-facts dd { margin: 4px 0 0; font-weight: 600; color: var(--navy-900); font-size: 14.5px; }
.pf-block { margin-top: 14px; border: 1px solid #f1c7c7; background: #fdf3f3; border-radius: 14px; padding: 12px 14px; }
.pf-block .label-sm { color: #9b2c2c; }
.pf-block ul { margin: 6px 0 0; padding-left: 18px; font-size: 14.5px; color: var(--text-2); }
.pf-progress { margin-top: 16px; }
.pf-bar { display: flex; gap: 3px; height: 8px; border-radius: 99px; overflow: hidden; }
.pf-bar span, .pf-legend i { background: #cfd5e0; }
.pf-bar .ok, .pf-legend .ok i { background: var(--ok, #1f7a4d); }
.pf-bar .cond, .pf-legend .cond i { background: #e0a43a; }
.pf-bar .prep, .pf-legend .prep i { background: #5b7bd5; }
.pf-bar .auto, .pf-legend .auto i { background: #8a94a8; }
.pf-bar .non, .pf-legend .non i { background: #c24141; }
.pf-legend { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13.5px; color: var(--text-2); }
.pf-legend li { display: inline-flex; align-items: center; gap: 6px; }
.pf-legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.pf-legend strong { color: var(--navy-900); }
.pf-more { margin-top: 14px; font-size: 14.5px; color: var(--text-2); }
.pf-more summary { cursor: pointer; font-weight: 600; color: var(--navy-900); }
.pf-more p { margin-top: 8px; }
.pv2-h { font-size: 18px; margin: 18px 0 10px; color: var(--navy-900); }
.pv2-h span, .pv2-closed summary span { display: inline-grid; place-items: center; min-width: 26px; height: 26px; border-radius: 99px; background: #f0f2f6; font-size: 13px; margin-left: 6px; }
.pv2-closed { margin-top: 22px; }
.pv2-closed > summary { cursor: pointer; font-size: 18px; font-weight: 700; color: var(--navy-900); list-style: none; display: flex; align-items: center; gap: 4px; padding: 14px 18px; border: 1px solid var(--border); border-radius: 18px; background: #fff; }
.pv2-closed > summary em { margin-left: auto; font-style: normal; font-size: 14px; color: var(--orange-text, #b85a12); font-weight: 600; }
.pv2-closed[open] > summary { margin-bottom: 14px; }
@media (max-width: 700px) { .pv2-closed > summary em { display: none; } }

/* v25 : cartes « Autres destinations » */
.dest-card { justify-content: flex-start; }
.dest-card .btn-block { margin-top: auto; }
.dv2-count { display: grid; gap: 2px; padding: 0 2px; }
.dv2-count strong { font-size: 17px; color: var(--navy-900); }
.dv2-count span { font-size: 13.5px; color: var(--text-3); }
.dv2-list { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--border); }
.dv2-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 2px; border-bottom: 1px solid var(--border); }
.dv2-name { font-size: 14.5px; font-weight: 600; color: var(--navy-900); min-width: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dv2-list .pill { flex: none; font-size: 12.5px; }
.dv2-none { font-size: 14px; color: var(--text-2); background: #f5f7fa; border-radius: 12px; padding: 10px 12px; margin: 0; }
.dv2-list li { flex-direction: column; align-items: flex-start; gap: 6px; }
.dv2-name { display: block; -webkit-line-clamp: unset; overflow: visible; }

/* Mentions secondaires plus discrètes */
.dv2-rest { margin: auto 0 0; font-size: 12.5px; color: var(--text-3); opacity: .85; }
.dest-card .dv2-rest + .btn-block { margin-top: 0; }
.pv2-closed { margin-top: 14px; }
.pv2-closed > summary { font-size: 14.5px; font-weight: 600; color: var(--text-3); border: 0; background: transparent; padding: 6px 2px; border-radius: 0; }
.pv2-closed > summary span { min-width: 22px; height: 22px; font-size: 12px; color: var(--text-3); }
.pv2-closed > summary em { margin-left: 12px; font-size: 13px; color: var(--text-3); text-decoration: underline; font-weight: 500; }
.pv2-closed > summary::before { content: "+"; font-weight: 700; margin-right: 6px; }
.pv2-closed[open] > summary::before { content: "−"; }
.pv2-closed .card.prog { opacity: .92; }

/* v25 : bloc verdict plus lisible */
.verdict .vd-lead { font-size: 18px; color: var(--text); font-weight: 600; margin-top: 6px; }
.vd-steps { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.vd-steps li { position: relative; padding-left: 30px; font-size: 15.5px; color: var(--text-2); line-height: 1.4; }
.vd-steps li::before { content: ""; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.vd-steps .vd-ok::before { content: "✓"; background: var(--ok-bg); color: var(--ok); }
.vd-steps .vd-todo::before { content: "…"; background: #eef1f8; color: #5b7bd5; }
.vd-steps .vd-auth::before { content: "•"; background: #f1f3f7; color: #7a879e; }
.vd-profile { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--border); font-size: 13.5px; color: var(--text-3); line-height: 1.6; }
.vd-profile b { color: var(--text-2); font-weight: 700; margin-right: 6px; }
.vd-profile i { font-style: normal; opacity: .6; }
.verdict .vd-profile + .meta { margin-top: 4px; font-size: 12.5px; }

/* v25 : photos de destination plus lumineuses, la ville choisie */
.res-banner { min-height: 220px; }
.res-banner .ph, .dest-photo .ph { filter: brightness(1.06) saturate(1.08); object-position: center 60%; }
.res-banner > div { padding: 70px 26px 18px; background: linear-gradient(180deg, rgba(11, 20, 40, 0) 0%, rgba(11, 20, 40, .08) 45%, rgba(11, 20, 40, .62) 100%); }
.res-banner h2 { font-size: 32px; text-shadow: 0 1px 12px rgba(0, 0, 0, .35); }
.res-banner span { text-shadow: 0 1px 8px rgba(0, 0, 0, .4); }
.dest-photo { height: 160px; }
.dest-photo > div { padding: 46px 18px 12px; background: linear-gradient(180deg, rgba(11, 20, 40, 0) 0%, rgba(11, 20, 40, .06) 40%, rgba(11, 20, 40, .6) 100%); }
.dest-photo h3 { text-shadow: 0 1px 10px rgba(0, 0, 0, .35); }
@media (max-width: 640px) { .res-banner { min-height: 170px; } .res-banner h2 { font-size: 26px; } }
.res-banner > div { background: linear-gradient(180deg, rgba(11, 20, 40, 0) 0%, rgba(11, 20, 40, .12) 40%, rgba(11, 20, 40, .72) 100%); }
.res-banner span { color: #fff; text-shadow: 0 1px 10px rgba(0, 0, 0, .5); }
.res-banner > div { background: none; }
.res-banner::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(11, 20, 40, .5) 0%, rgba(11, 20, 40, .15) 45%, rgba(11, 20, 40, 0) 70%), linear-gradient(180deg, rgba(11, 20, 40, 0) 20%, rgba(11, 20, 40, .45) 58%, rgba(11, 20, 40, .88) 100%); }
.res-banner { min-height: 260px; }
.res-banner .ph { object-position: center 42%; }
