/* ============================================================
   Diasporas de France — Design system v1 (17/08/2026)
   Standard : très visuel, très attractif, très utile.
   Neutralité : aucune couleur partisane, ton institutionnel chaleureux.
   ============================================================ */

:root {
  --encre: #17203d;          /* texte principal, bleu nuit profond */
  --encre-2: #46506e;        /* texte secondaire */
  --indigo: #2b3a8f;         /* couleur de marque */
  --indigo-fonce: #1e2a68;
  --or: #c8922a;             /* accent chaleureux */
  --or-pale: #f7ecd8;
  --fond: #fdfcf9;           /* fond page, blanc cassé chaud */
  --fond-2: #f4f2ec;         /* fond de section alternée */
  --carte: #ffffff;
  --lisere: #e4e1d8;
  --ok: #1e7a4d;
  --info-fond: #eef2ff;
  --alerte-fond: #fdf3e4;
  --rayon: 14px;
  --ombre: 0 1px 2px rgba(23,32,61,.06), 0 8px 28px rgba(23,32,61,.08);
  --police: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--police);
  color: var(--encre);
  background: var(--fond);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--indigo); text-decoration: none; }
a:hover { text-decoration: underline; }

.conteneur { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- En-tête ---------- */
.entete {
  background: linear-gradient(135deg, var(--indigo-fonce) 0%, var(--indigo) 70%, #3c4ea8 100%);
  color: #fff;
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 2px 12px rgba(23,32,61,.25);
}
.entete-barre { display: flex; align-items: center; gap: 28px; padding: 14px 0; }
.logo { font-weight: 800; font-size: 1.25rem; color: #fff; letter-spacing: .2px; display: flex; align-items: center; gap: 10px; }
.logo:hover { text-decoration: none; }
.logo .pastille {
  width: 34px; height: 34px; border-radius: 50%;
  background: conic-gradient(from 210deg, var(--or), #e8c169, var(--or));
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.05rem; color: var(--indigo-fonce);
}
.nav-principale { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.nav-principale a {
  color: #e8ebff; font-size: .92rem; font-weight: 600;
  padding: 8px 13px; border-radius: 999px;
}
.nav-principale a:hover, .nav-principale a[aria-current="page"] {
  background: rgba(255,255,255,.14); color: #fff; text-decoration: none;
}

/* ---------- Héros ---------- */
.heros {
  background: linear-gradient(135deg, var(--indigo-fonce), var(--indigo) 60%, #3c4ea8);
  color: #fff; padding: 64px 0 72px;
}
.heros h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); line-height: 1.15; letter-spacing: -.5px; max-width: 21ch; }
.heros .sous-titre { margin-top: 18px; font-size: 1.15rem; color: #dfe4ff; max-width: 58ch; }
.heros .heros-actions { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }

.bouton {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px; font-weight: 700; font-size: 1rem;
  transition: transform .12s ease, box-shadow .12s ease;
}
.bouton:hover { text-decoration: none; transform: translateY(-1px); }
.bouton-or { background: linear-gradient(180deg, #e0aa45, var(--or)); color: #241a05; box-shadow: 0 6px 18px rgba(200,146,42,.4); }
.bouton-contour { border: 1.5px solid rgba(255,255,255,.55); color: #fff; }
.bouton-indigo { background: var(--indigo); color: #fff; box-shadow: var(--ombre); }

/* ---------- Fil d'Ariane ---------- */
.ariane { font-size: .88rem; color: var(--encre-2); padding: 18px 0 0; }
.ariane a { color: var(--encre-2); }
.ariane span[aria-current] { color: var(--encre); font-weight: 600; }

/* ---------- Corps de page démarche ---------- */
.page-titre { padding: 26px 0 8px; }
.page-titre h1 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); line-height: 1.2; letter-spacing: -.4px; }
.page-titre .chapeau { margin-top: 12px; font-size: 1.08rem; color: var(--encre-2); max-width: 68ch; }
.maj { display: inline-block; margin-top: 14px; font-size: .82rem; font-weight: 600; color: var(--encre-2);
  background: var(--fond-2); border: 1px solid var(--lisere); padding: 4px 12px; border-radius: 999px; }

main section { padding: 26px 0; }
main h2 { font-size: 1.45rem; margin-bottom: 14px; letter-spacing: -.2px; }
main h3 { font-size: 1.12rem; margin: 20px 0 8px; }
main p + p { margin-top: 12px; }
main ul, main ol { padding-left: 24px; margin: 10px 0; }
main li + li { margin-top: 7px; }

/* L'essentiel */
.essentiel {
  background: var(--info-fond); border: 1px solid #cdd6f4; border-radius: var(--rayon);
  padding: 22px 26px; margin: 22px 0;
}
.essentiel h2 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .6px; color: var(--indigo); margin-bottom: 10px; }
.essentiel ul { margin: 0; }

/* Étapes numérotées */
.etapes { counter-reset: etape; list-style: none; padding-left: 0; margin: 18px 0; }
.etapes > li {
  counter-increment: etape; position: relative; padding: 16px 20px 16px 66px;
  background: var(--carte); border: 1px solid var(--lisere); border-radius: var(--rayon);
  box-shadow: var(--ombre); margin-top: 12px;
}
.etapes > li::before {
  content: counter(etape); position: absolute; left: 18px; top: 16px;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--indigo); color: #fff; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.etapes > li strong:first-child { display: block; margin-bottom: 4px; }

/* Encadrés */
.encadre { border-radius: var(--rayon); padding: 18px 22px; margin: 18px 0; border: 1px solid; }
.encadre-info { background: var(--info-fond); border-color: #cdd6f4; }
.encadre-attention { background: var(--alerte-fond); border-color: #ecd3a3; }
.encadre .picto { font-size: 1.1rem; margin-right: 6px; }

/* Cartes */
.grille-cartes { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; margin: 20px 0; }
.carte {
  background: var(--carte); border: 1px solid var(--lisere); border-radius: var(--rayon);
  padding: 22px; box-shadow: var(--ombre); display: block; color: var(--encre);
  transition: transform .12s ease, box-shadow .12s ease;
}
a.carte:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 4px 8px rgba(23,32,61,.08), 0 14px 36px rgba(23,32,61,.12); }
.carte .picto-carte { font-size: 1.6rem; }
.carte h3 { margin: 10px 0 6px; font-size: 1.08rem; }
.carte p { font-size: .93rem; color: var(--encre-2); }

/* Chiffres clés */
.chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin: 22px 0; }
.chiffre {
  background: var(--carte); border: 1px solid var(--lisere); border-radius: var(--rayon);
  padding: 20px; box-shadow: var(--ombre);
}
.chiffre .valeur { font-size: 1.9rem; font-weight: 800; letter-spacing: -.5px; color: var(--indigo); }
.chiffre .legende { font-size: .88rem; color: var(--encre-2); margin-top: 4px; }
.chiffre .source-mini { font-size: .74rem; color: var(--encre-2); margin-top: 8px; opacity: .8; }

/* Tableaux */
.defile-x { overflow-x: auto; margin: 16px 0; border: 1px solid var(--lisere); border-radius: var(--rayon); }
table { border-collapse: collapse; width: 100%; font-size: .93rem; background: var(--carte); }
th, td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--lisere); }
th { background: var(--fond-2); font-size: .82rem; text-transform: uppercase; letter-spacing: .4px; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* FAQ */
.faq details {
  background: var(--carte); border: 1px solid var(--lisere); border-radius: var(--rayon);
  margin-top: 10px; box-shadow: var(--ombre); overflow: hidden;
}
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 700; list-style: none; position: relative; padding-right: 46px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 12px; font-size: 1.4rem; color: var(--or); font-weight: 800; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 20px 18px; color: var(--encre-2); }

/* Sources */
.sources {
  background: var(--fond-2); border: 1px solid var(--lisere); border-radius: var(--rayon);
  padding: 20px 24px; margin: 26px 0; font-size: .9rem;
}
.sources h2 { font-size: .95rem; text-transform: uppercase; letter-spacing: .6px; color: var(--encre-2); }
.sources ul { margin: 8px 0 0; }
.sources .date-consult { color: var(--encre-2); }

/* Sélecteur pays (chips) */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.chip {
  border: 1.5px solid var(--lisere); background: var(--carte); border-radius: 999px;
  padding: 8px 16px; font-size: .92rem; font-weight: 600; color: var(--encre);
}
.chip:hover { border-color: var(--indigo); color: var(--indigo); text-decoration: none; }

/* Bandeau section alternée */
.section-alt { background: var(--fond-2); border-top: 1px solid var(--lisere); border-bottom: 1px solid var(--lisere); }

/* ---------- Pied de page ---------- */
.pied {
  margin-top: 48px; background: var(--encre); color: #b9c0d8; padding: 44px 0 28px; font-size: .9rem;
}
.pied a { color: #dfe4ff; }
.pied .colonnes { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
.pied h4 { color: #fff; margin-bottom: 10px; font-size: .95rem; }
.pied ul { list-style: none; }
.pied li { margin-top: 6px; }
.pied .legal { margin-top: 32px; padding-top: 18px; border-top: 1px solid #2c3552; font-size: .8rem; }

@media (max-width: 720px) {
  .entete-barre { flex-wrap: wrap; gap: 10px; }
  .heros { padding: 44px 0 52px; }
  body { font-size: 16px; }
}
