/* ==========================================================================
   Régularisation Séjour — Feuille de style principale
   Charte alignée sur les landing pages etrangers.* et naturalisation.*
   ➜ Toutes les couleurs / polices sont centralisées dans :root.
     Pour caler au pixel près sur les LP, remplacez simplement les valeurs
     ci-dessous (inspecteur du navigateur > Computed styles sur la LP).
   ========================================================================== */

:root {
  /* Couleurs de marque */
  --navy-900: #0b2545;   /* titres, footer */
  --navy-700: #13315c;   /* fonds sombres secondaires */
  --blue-600: #1f5fd1;   /* liens, étapes, accents */
  --blue-50:  #eef4ff;   /* fonds légers bleutés */
  --cta:      #f07d1f;   /* bouton principal « Être rappelé » */
  --cta-dark: #d8680c;
  --urgent:   #d63031;   /* OQTF / urgence */
  --urgent-bg:#fff1f0;
  --ok:       #1e9e5a;   /* validations, badges « Régularisé » */
  --ok-bg:    #eafaf1;
  --star:     #f5b301;
  --wa:       #25d366;   /* WhatsApp */

  /* Neutres */
  --ink:   #1b2432;
  --muted: #5b6778;
  --line:  #e2e8f0;
  --bg:    #f4f7fb;
  --white: #ffffff;

  /* Typographie */
  --font-head: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Rythme */
  --radius-s: 8px;
  --radius:   14px;
  --radius-l: 22px;
  --shadow:   0 10px 30px -12px rgba(11, 37, 69, .25);
  --shadow-s: 0 2px 10px rgba(11, 37, 69, .08);
  --wrap: 1180px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  padding-bottom: 64px; /* place pour la barre mobile */
}
@media (min-width: 900px) { body { padding-bottom: 0; } }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-600); }
a:hover { color: var(--navy-900); }
:focus-visible { outline: 3px solid var(--cta); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy-900); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(1.8rem, 4.2vw, 2.8rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.center { text-align: center; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy-900); color: #fff; padding: .6rem 1rem; z-index: 999; }
.skip:focus { left: 0; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  padding: .9rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: background .15s, transform .15s, box-shadow .15s;
  line-height: 1.2;
}
.btn-cta { background: var(--cta); color: #fff; box-shadow: 0 8px 20px -8px rgba(240,125,31,.7); }
.btn-cta:hover { background: var(--cta-dark); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--navy-900); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy-900); color: var(--navy-900); }
.btn-dark { background: var(--navy-900); color: #fff; }
.btn-dark:hover { background: var(--navy-700); color: #fff; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #1eb858; color: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: .55rem 1rem; font-size: .9rem; }

/* ---------- Bandeau disclaimer ---------- */
.disclaimer {
  background: var(--navy-900); color: #d6e2f3; font-size: .8rem; text-align: center;
  padding: .45rem 1rem; line-height: 1.4;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(6px);
}
.header-row { display: flex; align-items: center; gap: 1rem; min-height: 72px; }
.logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--navy-900); flex-shrink: 0; }
.logo img { height: 46px; width: auto; }
.logo-mark {
  width: 40px; height: 40px; border-radius: 10px; background: var(--navy-900);
  display: grid; place-items: center; color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1rem;
}
.logo-text { font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; line-height: 1.05; }
.logo-text small { display: block; font-family: var(--font-body); font-weight: 500; font-size: .72rem; color: var(--muted); }

.main-nav { margin-left: auto; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: .15rem; align-items: center; }
.nav-list > li { position: relative; }
.nav-list > li > a, .nav-list > li > button {
  display: flex; align-items: center; gap: .3rem; padding: .6rem .75rem; border-radius: var(--radius-s);
  font-family: var(--font-head); font-weight: 600; font-size: .93rem; color: var(--navy-900);
  text-decoration: none; background: none; border: 0; cursor: pointer;
}
.nav-list > li > a:hover, .nav-list > li > button:hover,
.nav-list > li > a[aria-current="page"], .nav-list > li.is-active > a { background: var(--blue-50); color: var(--blue-600); }
.caret { width: 10px; height: 10px; transition: transform .2s; }
.submenu {
  list-style: none; margin: 0; padding: .5rem; position: absolute; top: calc(100% + 6px); left: 0;
  min-width: 270px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s;
}
.submenu a {
  display: block; padding: .55rem .8rem; border-radius: var(--radius-s); color: var(--ink);
  text-decoration: none; font-size: .93rem;
}
.submenu a:hover, .submenu a[aria-current="page"] { background: var(--blue-50); color: var(--blue-600); }
.submenu .sub-all { font-weight: 600; color: var(--navy-900); border-bottom: 1px solid var(--line); border-radius: var(--radius-s) var(--radius-s) 0 0; margin-bottom: .3rem; }
.has-sub:hover .submenu, .has-sub:focus-within .submenu, .has-sub.open .submenu { opacity: 1; visibility: visible; transform: none; }
.has-sub.open .caret { transform: rotate(180deg); }

.header-actions { display: flex; gap: .5rem; align-items: center; }
.phone-link { font-family: var(--font-head); font-weight: 700; color: var(--navy-900); text-decoration: none; white-space: nowrap; display: inline-flex; gap: .35rem; align-items: center; }
.burger { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: var(--radius-s); width: 44px; height: 44px; cursor: pointer; }
.burger span, .burger span::before, .burger span::after { display: block; width: 20px; height: 2px; background: var(--navy-900); margin: auto; position: relative; transition: .2s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 1080px) {
  .header-actions .btn-cta { display: none; }
}
@media (max-width: 960px) {
  .burger { display: block; }
  .header-actions { display: none; }
  .main-nav {
    position: fixed; inset: 72px 0 0 0; background: #fff; overflow-y: auto; padding: 1rem 1.25rem 6rem;
    transform: translateX(100%); transition: transform .25s; margin: 0;
  }
  .main-nav.open { transform: none; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { border-bottom: 1px solid var(--line); }
  .nav-list > li > a, .nav-list > li > button { width: 100%; justify-content: space-between; padding: 1rem .25rem; font-size: 1.05rem; }
  .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 .75rem .5rem; display: none; min-width: 0; }
  .has-sub:hover .submenu { display: none; }
  .has-sub.open .submenu { display: block; }
  .mobile-nav-cta { display: grid !important; gap: .6rem; margin-top: 1.25rem; }
}
.mobile-nav-cta { display: none; }

/* ---------- Bandeau urgence OQTF ---------- */
.urgent-bar {
  display: flex; align-items: center; gap: .75rem; background: var(--urgent-bg);
  border-bottom: 1px solid #f6c9c6; color: #7a1414; text-decoration: none; padding: .7rem 0; font-size: .92rem;
}
.urgent-bar:hover { color: #5c0e0e; background: #ffe6e4; }
.urgent-bar .wrap { display: flex; align-items: center; gap: .75rem; }
.urgent-bar .chev { margin-left: auto; font-size: 1.4rem; line-height: 1; }
.pill-urgent { background: var(--urgent); color: #fff; font-weight: 700; font-size: .75rem; padding: .2rem .55rem; border-radius: 999px; flex-shrink: 0; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, var(--blue-50) 0%, #fff 100%); padding: 3rem 0 3.5rem; }
.hero-grid { display: grid; gap: 2.5rem; grid-template-columns: 1.05fr .95fr; align-items: start; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 1.75rem; } }
.proof-chip {
  display: inline-flex; align-items: center; gap: .45rem; background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: .35rem .85rem .35rem .45rem; font-size: .85rem; font-weight: 600; color: var(--navy-900); margin-bottom: 1rem;
}
.proof-chip .dot { width: 22px; height: 22px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; font-size: .7rem; }
.hero-lead { font-size: 1.12rem; color: var(--muted); max-width: 58ch; }
.trust-row { display: flex; flex-wrap: wrap; gap: .5rem .9rem; margin: 1.25rem 0 1.5rem; padding: 0; list-style: none; font-size: .92rem; font-weight: 600; color: var(--navy-900); }
.trust-row li { display: flex; align-items: center; gap: .35rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; }
.rating { display: flex; align-items: center; gap: .6rem; margin-top: 1.5rem; font-size: .9rem; color: var(--muted); }
.stars { color: var(--star); letter-spacing: 2px; font-size: 1rem; }

/* Mini-témoignages dans le hero */
.mini-testis { display: grid; gap: .75rem; margin-top: 1.5rem; }
.mini-testi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; display: grid; grid-template-columns: 40px 1fr; gap: .2rem .75rem; font-size: .9rem; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--navy-900); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; grid-row: span 2; }
.mini-testi strong { color: var(--navy-900); }
.badge-ok { display: inline-block; background: var(--ok-bg); color: var(--ok); font-weight: 700; font-size: .75rem; padding: .15rem .55rem; border-radius: 999px; margin-left: .35rem; }

/* Page hero (pages internes) */
.page-hero { background: linear-gradient(180deg, var(--blue-50), #fff); padding: 2rem 0 2.5rem; border-bottom: 1px solid var(--line); }
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 1rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "›"; margin-right: .35rem; color: #9aa6b6; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--blue-600); text-decoration: underline; }
.page-hero .hero-lead { font-size: 1.08rem; }
.page-hero .trust-row { margin-bottom: 0; }

/* ---------- Formulaire multi-étapes (quiz) ---------- */
.quiz {
  background: #fff; border-radius: var(--radius-l); box-shadow: var(--shadow); border: 1px solid var(--line);
  padding: 1.5rem; position: relative; scroll-margin-top: 100px;
}
.quiz-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .6rem; font-size: .85rem; color: var(--muted); font-weight: 600; }
.progress { height: 6px; background: var(--bg); border-radius: 99px; overflow: hidden; margin-bottom: 1.25rem; }
.progress span { display: block; height: 100%; width: 25%; background: linear-gradient(90deg, var(--blue-600), var(--ok)); transition: width .3s; }
.quiz-step { display: none; }
.quiz-step.active { display: block; }
.quiz-step h3 { font-size: 1.25rem; margin-bottom: .3rem; }
.quiz-step .help { font-size: .9rem; color: var(--muted); margin-bottom: 1rem; }
.choices { display: grid; gap: .6rem; }
.choice {
  display: flex; justify-content: space-between; align-items: center; gap: .75rem; width: 100%; text-align: left;
  background: #fff; border: 2px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem;
  font: 600 .98rem var(--font-body); color: var(--navy-900); cursor: pointer; transition: border-color .15s, background .15s;
}
.choice:hover, .choice:focus-visible { border-color: var(--blue-600); background: var(--blue-50); }
.choice.selected { border-color: var(--ok); background: var(--ok-bg); }
.choice .arr { color: var(--blue-600); font-weight: 800; }
.choice.is-urgent { border-color: #f3b4b1; }
.quiz-back { background: none; border: 0; color: var(--muted); font-weight: 600; cursor: pointer; margin-top: .9rem; padding: .3rem 0; font-size: .9rem; }
.quiz-back:hover { color: var(--navy-900); }
.found { display: flex; align-items: center; gap: .75rem; background: var(--ok-bg); border-radius: var(--radius); padding: .8rem 1rem; margin-bottom: 1rem; color: #14532d; font-weight: 600; font-size: .95rem; }
.found b { font-family: var(--font-head); font-size: 1.6rem; color: var(--ok); }

.field { margin-bottom: .8rem; }
.field label { display: block; font-weight: 600; font-size: .88rem; color: var(--navy-900); margin-bottom: .3rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .85rem 1rem; border: 2px solid var(--line); border-radius: var(--radius-s);
  font: 1rem var(--font-body); color: var(--ink); background: #fff; transition: border-color .15s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-600); }
.field input.invalid { border-color: var(--urgent); }
.consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .82rem; color: var(--muted); margin: .4rem 0 1rem; line-height: 1.45; }
.consent input { margin-top: .2rem; width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--ok); }
.form-note { font-size: .78rem; color: var(--muted); text-align: center; margin: .75rem 0 0; }
.form-error { color: var(--urgent); font-size: .85rem; font-weight: 600; margin: .3rem 0 0; min-height: 1.2em; }
.hp { position: absolute; left: -5000px; }
.quiz-success { text-align: center; padding: 1.5rem .5rem; }
.quiz-success .check { width: 64px; height: 64px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); display: grid; place-items: center; font-size: 2rem; margin: 0 auto 1rem; }

/* ---------- Sections ---------- */
.section { padding: 4rem 0; }
.section-alt { background: var(--bg); }
.section-dark { background: var(--navy-900); color: #d6e2f3; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 720px; margin: 0 auto 2.5rem; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* Cartes « Pourquoi passer par nous » */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 800px) { .features { grid-template-columns: 1fr; } }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.feature .ico { width: 52px; height: 52px; border-radius: 14px; background: var(--blue-50); display: grid; place-items: center; font-size: 1.6rem; margin-bottom: 1rem; }
.feature p { color: var(--muted); margin: 0; font-size: .96rem; }

/* Cartes services / pôles */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 900px) { .services { grid-template-columns: 1fr; } }
.service {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l);
  padding: 1.75rem; text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s;
  border-top: 5px solid var(--blue-600);
}
.service:hover { border-color: var(--blue-600); box-shadow: var(--shadow); color: var(--ink); }
.service.s-urgent { border-top-color: var(--urgent); }
.service.s-asile { border-top-color: var(--ok); }
.service h3 { font-size: 1.35rem; display: flex; align-items: center; gap: .5rem; }
.service p { color: var(--muted); font-size: .96rem; }
.service ul { list-style: none; padding: 0; margin: 0 0 1.25rem; font-size: .93rem; }
.service li { padding: .35rem 0; border-bottom: 1px dashed var(--line); }
.service li::before { content: "✓"; color: var(--ok); font-weight: 800; margin-right: .45rem; }
.service .more { margin-top: auto; font-family: var(--font-head); font-weight: 700; color: var(--blue-600); }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; padding: .2rem .55rem; border-radius: 999px; background: var(--blue-50); color: var(--blue-600); vertical-align: middle; }
.tag-urgent { background: var(--urgent); color: #fff; }

/* Sous-pages liées (grille compacte) */
.subgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .9rem; }
.subcard {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  background: #fff; border: 2px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem;
  text-decoration: none; color: var(--navy-900); font-family: var(--font-head); font-weight: 700; font-size: .98rem;
}
.subcard:hover { border-color: var(--blue-600); background: var(--blue-50); color: var(--navy-900); }
.subcard .emo { font-size: 1.3rem; }
.subcard .arr { color: var(--blue-600); }

/* Accordéon situations */
.accordion { max-width: 860px; margin: 0 auto; display: grid; gap: .75rem; }
.acc-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.acc-item.urgent { border-color: #f3b4b1; }
.acc-btn {
  width: 100%; display: flex; align-items: center; gap: .75rem; text-align: left; background: none; border: 0;
  padding: 1.1rem 1.25rem; font: 700 1.02rem var(--font-head); color: var(--navy-900); cursor: pointer;
}
.acc-btn .tag { margin-left: auto; }
.acc-btn .caret { margin-left: .5rem; flex-shrink: 0; }
.acc-btn[aria-expanded="true"] .caret { transform: rotate(180deg); }
.acc-panel { padding: 0 1.25rem 1.2rem; color: var(--muted); }
.acc-panel[hidden] { display: none; }
.acc-panel a { font-weight: 700; }

/* Témoignages */
.testis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 900px) { .testis { grid-template-columns: 1fr; } }
.testi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; display: flex; flex-direction: column; gap: .7rem; }
.testi-top { display: flex; align-items: center; gap: .75rem; }
.testi-top strong { display: block; color: var(--navy-900); font-family: var(--font-head); }
.testi-top small { color: var(--muted); }
.testi blockquote { margin: 0; font-size: .96rem; color: var(--ink); }
.testi .loc { font-size: .85rem; color: var(--muted); margin-top: auto; }

/* Guide numéroté (vraie séquence) */
.guide { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
@media (max-width: 800px) { .guide { grid-template-columns: 1fr; } }
.guide-item { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 1.5rem; }
.guide-item h3 { display: flex; gap: .6rem; align-items: baseline; }
.guide-item h3 span { color: var(--blue-600); }
.guide-item ul { margin: 0; padding-left: 1.1rem; color: var(--muted); }
.guide-item p { color: var(--muted); margin: 0; }
.tip { max-width: 860px; margin: 2rem auto 0; background: #fffbea; border: 1px solid #f6e3a1; border-radius: var(--radius); padding: 1.1rem 1.25rem; font-size: .96rem; }

/* CTA band */
.cta-band { background: var(--navy-900); color: #d6e2f3; border-radius: var(--radius-l); padding: 2.5rem; display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: center; }
.cta-band h2 { color: #fff; margin-bottom: .3rem; }
.cta-band p { margin: 0; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.cta-band .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.cta-band .btn-ghost:hover { border-color: #fff; }
@media (max-width: 800px) { .cta-band { grid-template-columns: 1fr; padding: 1.75rem; } }

/* ---------- Mise en page article / pages internes ---------- */
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 3rem; align-items: start; }
@media (max-width: 980px) { .content-grid { grid-template-columns: 1fr; gap: 2rem; } }
.aside { position: sticky; top: 96px; display: grid; gap: 1rem; }
@media (max-width: 980px) { .aside { position: static; } }
.aside-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.aside-card h3 { font-size: 1.05rem; }
.aside-card ul { list-style: none; margin: 0; padding: 0; }
.aside-card li a { display: block; padding: .5rem 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: .93rem; }
.aside-card li:last-child a { border-bottom: 0; }
.aside-card li a:hover, .aside-card li a[aria-current="page"] { color: var(--blue-600); font-weight: 600; }
.aside-help { background: var(--navy-900); color: #d6e2f3; border: 0; }
.aside-help h3 { color: #fff; }
.aside-help .btn { margin-top: .5rem; }

.prose { font-size: 1.04rem; max-width: 72ch; }
.prose > *:first-child { margin-top: 0; }
.prose h2 { margin-top: 2.2rem; padding-top: .2rem; }
.prose h3 { margin-top: 1.6rem; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--blue-600); }
.prose blockquote { margin: 1.5rem 0; padding: 1rem 1.25rem; border-left: 4px solid var(--blue-600); background: var(--blue-50); border-radius: 0 var(--radius-s) var(--radius-s) 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 1rem 0 1.5rem; }
.prose th, .prose td { padding: .65rem .8rem; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--bg); color: var(--navy-900); font-family: var(--font-head); }
.table-scroll { overflow-x: auto; }

.cases { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin: 1rem 0 1.5rem; }
@media (max-width: 640px) { .cases { grid-template-columns: 1fr; } }
.case { background: var(--bg); border-radius: var(--radius); padding: 1.1rem 1.2rem; border: 1px solid var(--line); }
.case h3 { margin: 0 0 .5rem !important; font-size: 1.02rem; color: var(--blue-600); }
.case ul { margin: 0; padding-left: 1.1rem; font-size: .94rem; }

.keybox { background: var(--ok-bg); border: 1px solid #bfe8d0; border-radius: var(--radius); padding: 1.1rem 1.25rem; margin: 1.5rem 0; }
.keybox strong:first-child { color: #14532d; }
.alertbox { background: var(--urgent-bg); border: 1px solid #f3b4b1; border-radius: var(--radius); padding: 1.1rem 1.25rem; margin: 1.5rem 0; color: #5c0e0e; }
.proofs { display: grid; gap: .7rem; margin: 1rem 0 1.5rem; }
.proof { display: grid; grid-template-columns: auto 1fr; gap: .8rem; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; }
.proof .lvl { font-family: var(--font-head); font-weight: 700; font-size: .78rem; padding: .25rem .6rem; border-radius: 999px; white-space: nowrap; }
.lvl-1 { background: var(--ok-bg); color: var(--ok); }
.lvl-2 { background: var(--blue-50); color: var(--blue-600); }
.lvl-3 { background: #fff4e5; color: #9a5b00; }

.juris { margin: 2.5rem 0 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); padding: 1.6rem; position: relative; }
.juris::before { content: "⚖️"; position: absolute; top: -18px; left: 1.4rem; background: #fff; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); }
.juris h2 { margin-top: .4rem !important; font-size: 1.3rem; }
.juris .by { font-size: .85rem; color: var(--muted); font-style: italic; }
.juris p { font-size: .98rem; }
.juris .conclusion { font-style: italic; color: var(--navy-900); font-weight: 500; border-top: 1px solid var(--line); padding-top: 1rem; margin: 1rem 0 0; }

.inline-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; justify-content: space-between; background: var(--blue-50); border: 1px solid #cfe0ff; border-radius: var(--radius); padding: 1.1rem 1.25rem; margin: 2rem 0; }
.inline-cta p { margin: 0; font-weight: 600; color: var(--navy-900); }

.toc { background: var(--bg); border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 2rem; font-size: .95rem; }
.toc strong { font-family: var(--font-head); color: var(--navy-900); }
.toc ol { margin: .5rem 0 0; padding-left: 1.2rem; }

/* ---------- Actualités ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 900px) { .posts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .posts { grid-template-columns: 1fr; } }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.post-card:hover { border-color: var(--blue-600); color: var(--ink); }
.post-card:hover h3 { color: var(--blue-600); }
.post-thumb { aspect-ratio: 16/9; background: var(--navy-900); display: grid; place-items: center; color: #fff; font-size: 2.4rem; position: relative; overflow: hidden; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-thumb.t-oqtf { background: linear-gradient(135deg, #7a1414, var(--urgent)); }
.post-thumb.t-reg { background: linear-gradient(135deg, var(--navy-900), var(--blue-600)); }
.post-thumb.t-asile { background: linear-gradient(135deg, #0f5132, var(--ok)); }
.post-thumb.t-info { background: linear-gradient(135deg, var(--navy-700), #4a6fa5); }
.post-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.post-meta { font-size: .8rem; color: var(--muted); display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.post-body h3 { font-size: 1.05rem; margin: 0; transition: color .15s; }
.post-body p { font-size: .92rem; color: var(--muted); margin: 0; }
.post-body .more { margin-top: auto; padding-top: .5rem; font-weight: 700; color: var(--blue-600); font-size: .92rem; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 2rem; }
.filters button { border: 2px solid var(--line); background: #fff; border-radius: 999px; padding: .45rem 1rem; font: 600 .9rem var(--font-body); color: var(--navy-900); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.article-meta { display: flex; flex-wrap: wrap; gap: .5rem 1rem; font-size: .9rem; color: var(--muted); margin-top: .5rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 2rem; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .8rem; }
.contact-list li { display: flex; gap: .9rem; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; }
.contact-list .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--blue-50); display: grid; place-items: center; font-size: 1.3rem; flex-shrink: 0; }
.contact-list strong { display: block; font-family: var(--font-head); color: var(--navy-900); }
.contact-list a { font-weight: 600; text-decoration: none; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); padding: 1.75rem; box-shadow: var(--shadow); }
.two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 .9rem; }
@media (max-width: 560px) { .two-cols { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: .7rem; }
.faq summary { cursor: pointer; padding: 1rem 1.25rem; font-family: var(--font-head); font-weight: 700; color: var(--navy-900); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; color: var(--blue-600); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 1.25rem 1.1rem; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #b9c8dc; padding: 3.5rem 0 1.5rem; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: .9rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .45rem; }
.site-footer a { color: #b9c8dc; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .logo { color: #fff; margin-bottom: 1rem; }
.site-footer .logo-mark { background: #fff; color: var(--navy-900); }
.site-footer .logo-text small { color: #9fb3cc; }
.footer-warning { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .82rem; line-height: 1.5; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; margin-top: 1rem; font-size: .82rem; }

/* ---------- Barre mobile & WhatsApp ---------- */
.mobile-bar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1.4fr; gap: .5rem; padding: .55rem .6rem calc(.55rem + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(11,37,69,.08); }
.mobile-bar .btn { padding: .8rem .5rem; font-size: .95rem; }
@media (min-width: 900px) { .mobile-bar { display: none; } }
.wa-float { position: fixed; right: 18px; bottom: 84px; z-index: 61; width: 56px; height: 56px; border-radius: 50%; background: var(--wa); display: grid; place-items: center; box-shadow: 0 8px 20px -6px rgba(0,0,0,.35); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }
@media (min-width: 900px) { .wa-float { bottom: 24px; } }

/* ---------- Cookies ---------- */
.cookie { position: fixed; left: 1rem; right: 1rem; bottom: 80px; z-index: 70; max-width: 520px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1rem 1.1rem; font-size: .88rem; display: none; }
.cookie.show { display: block; }
.cookie .row { display: flex; gap: .5rem; margin-top: .7rem; justify-content: flex-end; }
@media (min-width: 900px) { .cookie { bottom: 1rem; } }

/* 404 */
.notfound { text-align: center; padding: 5rem 0; }
.notfound .big { font-family: var(--font-head); font-size: 5rem; font-weight: 800; color: var(--blue-600); line-height: 1; }

/* Utilitaires */
.mt-0 { margin-top: 0 !important; }
.mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0 !important; }

/* ==========================================================================
   CHARTE LANDING PAGES (calée sur etrangers.* et naturalisation.*)
   Ces règles surchargent les valeurs ci-dessus.
   ========================================================================== */
:root {
  --dark:     #131b2e;   /* bandeau disclaimer, footer */
  --navy-900: #233b87;   /* bleu marque : titres accentués, contours, formulaires */
  --navy-700: #1b2f6e;
  --blue-600: #233b87;
  --blue-50:  #eef1f9;
  --cta:      #4a9f55;   /* vert « Être rappelé » */
  --cta-dark: #3d8a47;
  --urgent:   #c62828;
  --urgent-bg:#fdecec;
  --urgent-line:#f2b8b8;
  --ok:       #43a047;
  --ok-bg:    #e9f6ea;
  --wa:       #4cc85f;
  --ink:      #0f172a;
  --muted:    #5b6477;
  --line:     #e2e6ef;
  --bg:       #f6f8fb;
  --font-head: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}
body { color: var(--ink); }
h1, h2, h3, h4 { color: var(--ink); }
h1 { font-weight: 800; letter-spacing: -.025em; line-height: 1.12; }
h2 { font-weight: 800; letter-spacing: -.02em; }
h1 .hl, h2 .hl { color: var(--navy-900); }
a { color: var(--navy-900); }

/* Boutons */
.btn { font-weight: 700; }
.btn-cta { background: var(--cta); color: #fff; box-shadow: 0 10px 24px -10px rgba(74,159,85,.75); }
.btn-cta:hover { background: var(--cta-dark); color: #fff; }
.btn-ghost { background: #fff; color: var(--navy-900); border: 2.5px solid var(--navy-900); }
.btn-ghost:hover { background: var(--blue-50); color: var(--navy-900); border-color: var(--navy-900); }
.btn-wa-line { background: #fff; color: var(--cta); border: 2.5px solid var(--cta); }
.btn-wa-line:hover { background: var(--ok-bg); color: var(--cta-dark); }
.btn-dark { background: var(--navy-900); }
.btn-lg { padding: 1.05rem 2rem; font-size: 1.1rem; }

/* Bandeau + header */
.disclaimer { background: var(--dark); color: #e6e9f2; }
.site-header { box-shadow: 0 2px 12px rgba(15,23,42,.05); }
.header-row { min-height: 92px; }
.logo img { height: 70px; width: auto; }
.logo .logo-fallback { display: none; align-items: center; gap: .6rem; }
.logo-mark { background: var(--navy-900); }
.logo-text { color: var(--navy-900); }
.nav-list > li > a, .nav-list > li > button { font-weight: 600; color: var(--ink); }
.nav-list > li > a:hover, .nav-list > li > button:hover,
.nav-list > li > a[aria-current="page"], .nav-list > li.is-active > a, .nav-list > li.is-active > button { background: var(--blue-50); color: var(--navy-900); }
.header-actions .btn-ghost { padding: .6rem 1.1rem; }
.header-actions .btn-wa-line { padding: .6rem 1.1rem; }
@media (max-width: 1280px) { .header-actions .btn-wa-line { display: none; } }
@media (max-width: 1140px) { .header-actions .btn-cta { display: none; } }
@media (max-width: 960px) { .main-nav { inset: 84px 0 0 0; } }

/* Bandeau urgent pleine largeur (pages internes) */
.urgent-bar { background: #f8dcdc; border-bottom: 1px solid var(--urgent-line); color: var(--urgent); font-weight: 600; justify-content: center; }
.urgent-bar:hover { background: #f5d0d0; color: #a51f1f; }
.urgent-bar .wrap { justify-content: center; }
.urgent-bar .chev { margin-left: .5rem; }
.pill-urgent { background: var(--urgent); padding: .25rem .7rem; font-size: .8rem; }

/* Fond à motif « + » */
.hero, .page-hero {
  background-color: var(--bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M20 15v10M15 20h10' stroke='%23e3e7ef' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
}
.page-hero { border-bottom: 1px solid var(--line); }

/* Hero accueil : colonne centrée, comme la LP etrangers */
.hero { padding: 3rem 0 4rem; }
.hero-col { max-width: 1000px; margin: 0 auto; }
.urgent-box { display: flex; align-items: center; gap: 1rem; background: var(--urgent-bg); border: 1.5px solid var(--urgent-line); border-radius: 14px; padding: 1rem 1.25rem; text-decoration: none; color: var(--urgent); margin-bottom: 2rem; }
.urgent-box:hover { background: #fbe1e1; color: var(--urgent); }
.urgent-box .ico { font-size: 1.8rem; line-height: 1; }
.urgent-box strong { display: block; font-size: 1.08rem; }
.urgent-box span.t { color: #9f1d1d; }
.urgent-box .chev { margin-left: auto; font-size: 1.5rem; }
.proof-chip { background: #eef1f8; border: 1.5px solid #d9dfee; color: var(--navy-900); padding: .4rem 1rem; font-size: .95rem; }
.proof-chip .dot { width: 10px; height: 10px; background: var(--cta); font-size: 0; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); margin-bottom: .5em; }
.hero-lead { color: var(--muted); font-size: 1.15rem; }
.trust-inline { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.1rem; list-style: none; padding: 0; margin: 1.5rem 0 2rem; color: var(--muted); font-size: 1rem; }
.phone-pill { display: inline-flex; align-items: center; gap: .4rem; background: #eef1f8; border: 1.5px solid #d9dfee; border-radius: 999px; padding: .35rem 1rem; color: var(--navy-900); font-weight: 800; text-decoration: none; }
.phone-pill:hover { background: #e3e8f6; color: var(--navy-900); }

/* Badges de confiance en pastilles (LP naturalisation) */
.trust-row { gap: .6rem; }
.trust-row li { background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: .45rem 1rem; font-weight: 600; color: var(--ink); box-shadow: 0 1px 3px rgba(15,23,42,.04); }

/* Page hero interne */
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); color: var(--navy-900); }

/* Quiz */
.quiz { padding: 0; overflow: hidden; border-radius: 20px; box-shadow: 0 18px 40px -18px rgba(15,23,42,.25); border: 1px solid var(--line); }
.quiz .progress { height: 10px; border-radius: 0; margin: 0; background: #e8ecf4; }
.quiz .progress span { background: var(--navy-900); }
.quiz-inner { padding: 1.6rem 1.75rem 1.75rem; }
.quiz-title { background: var(--navy-900); color: #fff; text-align: center; padding: 1.3rem 1.25rem 1.1rem; }
.quiz-title strong { display: block; font-size: 1.3rem; font-weight: 800; letter-spacing: -.01em; }
.quiz-title span { font-size: .9rem; color: #d7defa; }
.quiz-head { margin-bottom: .4rem; }
.quiz-head [data-step-label] { color: var(--cta); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; font-size: .85rem; }
.quiz-step h3 { font-size: 1.35rem; font-weight: 800; }
.choice { border: 2px solid var(--line); border-radius: 14px; padding: 1.05rem 1.25rem; font: 500 1.05rem var(--font-body); color: var(--ink); }
.choice:hover, .choice:focus-visible { border-color: var(--navy-900); background: #f7f9fe; }
.choice .arr { color: #6b7280; }
.choice.selected { border-color: var(--cta); background: var(--ok-bg); }
.choice.is-urgent .arr { color: var(--urgent); }
.found { background: var(--ok-bg); color: #1f5f28; }
.found b { color: var(--cta); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy-900); }
.aside .quiz-inner { padding: 1.25rem; }
.aside .quiz-step h3 { font-size: 1.12rem; }
.aside .choice { padding: .8rem 1rem; font-size: .95rem; }

/* Cartes */
.service { border-top-color: var(--navy-900); border-radius: 18px; }
.service.s-asile { border-top-color: var(--cta); }
.service.s-urgent { border-top-color: var(--urgent); }
.service li::before { color: var(--cta); }
.feature .ico { background: var(--blue-50); }
.subcard:hover { border-color: var(--navy-900); }
.tag { background: var(--blue-50); color: var(--navy-900); }
.tag-urgent { background: var(--urgent); color: #fff; }
.acc-item.urgent { border-color: var(--urgent-line); }
.alertbox { background: var(--urgent-bg); border-color: var(--urgent-line); color: #7f1414; }
.keybox { background: var(--ok-bg); border-color: #c6e6c9; }
.inline-cta { background: var(--blue-50); border-color: #d6ddf1; }
.prose li::marker { color: var(--navy-900); }
.prose blockquote { border-left-color: var(--navy-900); }
.post-thumb.t-reg { background: linear-gradient(135deg, var(--navy-700), #3f5bb0); }
.post-thumb.t-asile { background: linear-gradient(135deg, #2e6b36, var(--cta)); }
.post-thumb.t-oqtf { background: linear-gradient(135deg, #8e1c1c, var(--urgent)); }
.post-thumb.t-info { background: linear-gradient(135deg, var(--dark), #3a4766); }
.filters button[aria-pressed="true"] { background: var(--navy-900); border-color: var(--navy-900); }

/* Bandeau CTA et aide latérale */
.cta-band, .aside-help { background: var(--navy-900); }
.cta-band .btn-ghost, .aside-help .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }

/* Footer */
.site-footer { background: var(--dark); }
.site-footer .logo img { height: 84px; }

/* WhatsApp & barre mobile */
.wa-float { width: 62px; height: 62px; box-shadow: 0 10px 24px -8px rgba(76,200,95,.7); }
.mobile-bar .btn-ghost { border-width: 2px; }
/* Header : largeur et anti-retour à la ligne */
.site-header .wrap { width: min(100% - 2.5rem, 1340px); }
.btn, .nav-list > li > a, .nav-list > li > button { white-space: nowrap; }
.nav-list > li > a, .nav-list > li > button { padding: .6rem .6rem; font-size: .92rem; }
.header-actions { margin-left: .5rem; }
.header-actions .btn { padding: .6rem 1rem; font-size: .92rem; }
@media (max-width: 1480px) { .header-actions .btn-wa-line { display: none; } }
@media (max-width: 1240px) { .header-actions .btn-cta { display: none; } }
@media (max-width: 1100px) { .header-actions { display: none; } }
@media (max-width: 1100px) and (min-width: 961px) { .nav-list > li > a, .nav-list > li > button { padding: .6rem .45rem; font-size: .88rem; } }
@media (max-width: 640px) {
  .urgent-bar { font-size: .82rem; padding: .55rem 0; }
  .urgent-box { padding: .85rem 1rem; }
  .urgent-box .ico { font-size: 1.4rem; }
  .hero { padding-top: 1.5rem; }
  .cookie { bottom: 76px; font-size: .82rem; }
}
