/* =====================================================================
   ONPMD — Charte graphique
   Ordre National des Professions Médicales de Djibouti
   ---------------------------------------------------------------------
   Couleurs issues du logo officiel (bleu / rouge / vert du caducée) et
   du drapeau national. Typographie : Fraunces (titres) + Manrope (texte).
   ===================================================================== */

:root {
  /* Palette institutionnelle */
  --c-primary: #143d7b;        /* Bleu Ordre (titres, nav, boutons) */
  --c-primary-700: #0e2d5c;    /* Bleu profond (fonds sombres) */
  --c-primary-900: #081c3d;
  --c-primary-100: #e4edf9;
  --c-primary-50: #f1f6fd;
  --c-sky: #4f8be0;            /* Bleu du logo */
  --c-sky-100: #e7f0fc;
  --c-green: #00a651;          /* Vert du logo */
  --c-green-700: #00843f;
  --c-green-100: #e1f5ea;
  --c-red: #e63946;            /* Rouge du logo — alertes, plaintes */
  --c-red-100: #fde8ea;
  --c-gold: #d8a84a;           /* Accent discret (distinctions) */

  /* Neutres */
  --c-ink: #0f1b2d;
  --c-ink-2: #334155;
  --c-muted: #64748b;
  --c-line: #dfe6ef;
  --c-bg: #f5f8fc;
  --c-surface: #ffffff;

  /* Typo */
  --f-display: "Fraunces", Georgia, "Times New Roman", serif;
  --f-body: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Formes */
  --radius-s: 8px;
  --radius: 14px;
  --radius-l: 22px;
  --shadow-s: 0 1px 2px rgba(15, 27, 45, .06), 0 1px 3px rgba(15, 27, 45, .04);
  --shadow: 0 10px 30px -12px rgba(15, 27, 45, .18);
  --shadow-l: 0 24px 60px -20px rgba(8, 28, 61, .35);

  --container: 1180px;
  --gutter: 20px;
}

/* ---------- Reset léger ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-ink-2);
  background: var(--c-bg);
  overflow-x: clip;
}
img, svg { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: var(--c-primary); text-decoration: none; }
a:hover { color: var(--c-sky); }
h1, h2, h3, h4 {
  font-family: var(--f-display);
  color: var(--c-ink);
  line-height: 1.15;
  margin: 0 0 .5em;
  font-weight: 600;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2rem, 4vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
small, .small { font-size: .875rem; }
.muted { color: var(--c-muted); }
.text-center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--c-ink-2); }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.container--narrow { max-width: 820px; }

/* ---------- Accessibilité ---------- */
.skip-link {
  position: absolute; left: -999px; top: 8px; background: var(--c-primary); color: #fff;
  padding: 10px 14px; border-radius: var(--radius-s); z-index: 1000;
}
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--c-sky); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .75rem 1.3rem; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 700; font-size: .95rem; line-height: 1; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--c-primary); color: #fff; box-shadow: 0 6px 16px -6px rgba(20, 61, 123, .6); }
.btn--primary:hover { background: var(--c-primary-700); color: #fff; }
.btn--green { background: var(--c-green); color: #fff; box-shadow: 0 6px 16px -6px rgba(0, 166, 81, .6); }
.btn--green:hover { background: var(--c-green-700); color: #fff; }
.btn--outline { border-color: var(--c-primary); color: var(--c-primary); background: transparent; }
.btn--outline:hover { background: var(--c-primary-50); color: var(--c-primary); }
.btn--white { background: #fff; color: var(--c-primary); }
.btn--white:hover { background: var(--c-primary-50); color: var(--c-primary-700); }
.btn--ghost { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn--ghost:hover { background: rgba(255, 255, 255, .22); color: #fff; }
.btn--danger { background: var(--c-red); color: #fff; }
.btn--sm { padding: .55rem 1rem; font-size: .85rem; }
.btn--lg { padding: .95rem 1.7rem; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn svg { width: 18px; height: 18px; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .7rem; border-radius: 999px;
  font-size: .75rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  background: var(--c-primary-100); color: var(--c-primary);
}
.badge--green { background: var(--c-green-100); color: var(--c-green-700); }
.badge--red { background: var(--c-red-100); color: #b3202c; }
.badge--sky { background: var(--c-sky-100); color: #2b63b3; }
.badge--gold { background: #fbf1dc; color: #8a6418; }
.badge--neutral { background: #eef2f7; color: var(--c-ink-2); }

/* ---------- Barre supérieure ---------- */
.topbar { background: var(--c-primary-900); color: #c9d6ea; font-size: .82rem; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 38px; }
.topbar ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.4rem; flex-wrap: wrap; }
.topbar li { display: inline-flex; align-items: center; gap: .4rem; }
.topbar a { color: #e2ebf7; }
.topbar a:hover { color: #fff; }
.topbar svg { width: 14px; height: 14px; opacity: .8; }
.topbar .social { gap: .6rem; }
.topbar .social a { display: inline-flex; width: 26px; height: 26px; border-radius: 50%; align-items: center; justify-content: center; background: rgba(255, 255, 255, .08); }
.topbar .social a:hover { background: var(--c-sky); }
.topbar .social svg { width: 13px; height: 13px; opacity: 1; }

/* ---------- En-tête & navigation ---------- */
.header {
  position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--c-line);
}
.header .container { display: flex; align-items: center; gap: 1rem; min-height: 84px; }
.brand { display: flex; align-items: center; gap: .8rem; color: var(--c-ink); }
.brand img { height: 56px; width: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; white-space: nowrap; }
.brand__name { font-family: var(--f-display); font-weight: 700; font-size: 1.35rem; letter-spacing: .02em; }
.brand__name b { color: var(--c-sky); }
.brand__name i { color: var(--c-red); font-style: normal; }
.brand__name u { color: var(--c-green); text-decoration: none; }
.brand__tagline { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--c-muted); font-weight: 700; margin-top: 2px; }

.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .2rem; }
.nav ul a {
  display: inline-block; padding: .6rem .6rem; border-radius: 10px; font-weight: 700; font-size: .88rem; color: var(--c-ink-2); white-space: nowrap;
}
@media (max-width: 1400px) { .brand__tagline { display: none; } }
.nav ul a:hover { background: var(--c-primary-50); color: var(--c-primary); }
.nav ul a.is-active { color: var(--c-primary); background: var(--c-primary-100); }
.header__cta { display: flex; gap: .5rem; }
.nav-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--c-line); border-radius: 10px; background: #fff; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--c-ink); position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--c-ink); }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }

@media (max-width: 1024px) {
  .nav-toggle { display: inline-flex; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--c-line);
         box-shadow: var(--shadow); display: none; padding: .6rem var(--gutter) 1rem; }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; gap: .1rem; }
  .nav ul a { display: block; padding: .8rem .9rem; }
  .header__cta { display: none; }
  .nav .header__cta--mobile { display: flex; flex-direction: column; gap: .5rem; margin-top: .8rem; padding-top: .8rem; border-top: 1px solid var(--c-line); }
  .brand img { height: 48px; }
  .brand__tagline { display: none; }
}
@media (min-width: 1025px) { .header__cta--mobile { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden; background: var(--c-primary-900);
  min-height: 560px; display: flex; align-items: center;
}
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; opacity: .55; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(8, 28, 61, .96) 0%, rgba(8, 28, 61, .78) 45%, rgba(8, 28, 61, .35) 100%);
}
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; padding: 4.5rem 0; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 500; }
.hero h1 em { font-style: italic; color: #a7c6f3; }
.hero p { font-size: 1.12rem; color: #d7e2f3; max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.6rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem; font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--c-sky); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.hero .eyebrow { color: #9cc0f5; }

/* Carte de recherche dans le hero */
.search-card {
  background: #fff; color: var(--c-ink); border-radius: var(--radius-l); padding: 1.6rem; box-shadow: var(--shadow-l);
}
.search-card h2 { font-size: 1.45rem; margin-bottom: .2rem; }
.search-card p { color: var(--c-muted); font-size: .92rem; margin-bottom: 1.1rem; }
.search-card .field + .field { margin-top: .8rem; }
.search-card .btn { margin-top: 1rem; }
.search-card__hint { margin-top: .9rem; font-size: .82rem; color: var(--c-muted); }

/* ---------- Bandes & sections ---------- */
.section { padding: 5rem 0; }
.section--tight { padding: 3rem 0; }
.section--alt { background: var(--c-surface); border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); }
.section--dark { background: var(--c-primary-700); color: #d7e2f3; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section-head { max-width: 680px; margin-bottom: 2.5rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head p { color: var(--c-muted); font-size: 1.05rem; }
.section-head--row { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.section-head--row > div { max-width: 640px; }

/* Bande de chiffres clés */
.stats { background: var(--c-surface); border-bottom: 1px solid var(--c-line); }
.stats .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 1.6rem 1.4rem; display: flex; gap: 1rem; align-items: center; border-right: 1px solid var(--c-line); }
.stat:last-child { border-right: 0; }
.stat__icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--c-primary-100); color: var(--c-primary); }
.stat__icon svg { width: 24px; height: 24px; }
.stat__icon--green { background: var(--c-green-100); color: var(--c-green-700); }
.stat__icon--red { background: var(--c-red-100); color: var(--c-red); }
.stat__icon--sky { background: var(--c-sky-100); color: var(--c-sky); }
.stat__value { font-family: var(--f-display); font-size: 1.9rem; font-weight: 700; color: var(--c-ink); line-height: 1; }
.stat__label { font-size: .85rem; color: var(--c-muted); font-weight: 600; margin-top: .25rem; }

/* ---------- Grilles & cartes ---------- */
.grid { display: grid; gap: 1.4rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 1.6rem;
  box-shadow: var(--shadow-s); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card--link:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #c9d6ea; }
.card__icon { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 1rem; background: var(--c-primary-100); color: var(--c-primary); }
.card__icon svg { width: 26px; height: 26px; }
.card__icon--green { background: var(--c-green-100); color: var(--c-green-700); }
.card__icon--red { background: var(--c-red-100); color: var(--c-red); }
.card__icon--sky { background: var(--c-sky-100); color: var(--c-sky); }
.card__icon--gold { background: #fbf1dc; color: #a67a24; }
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--c-muted); margin-bottom: 0; }
.card .more { display: inline-flex; align-items: center; gap: .3rem; margin-top: 1rem; font-weight: 700; font-size: .9rem; }
.card .more svg { width: 16px; height: 16px; transition: transform .2s; }
.card--link:hover .more svg { transform: translateX(3px); }

/* Mission / présentation */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.split__media { position: relative; }
.split__media img { border-radius: var(--radius-l); box-shadow: var(--shadow-l); }
.split__media .float-card {
  position: absolute; left: -24px; bottom: -24px; background: #fff; padding: 1rem 1.2rem; border-radius: var(--radius); box-shadow: var(--shadow);
  display: flex; gap: .8rem; align-items: center; max-width: 290px;
}
.split__media .float-card img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; box-shadow: none; }
.checklist { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .7rem; }
.checklist li { display: flex; gap: .7rem; align-items: flex-start; }
.checklist li::before {
  content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; margin-top: 2px;
  background: var(--c-green-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300843f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/13px no-repeat;
}

/* Valeurs (Moralité - Probité - Dévouement) */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.value { padding: 2rem; border-radius: var(--radius-l); color: #fff; position: relative; overflow: hidden; }
.value--sky { background: linear-gradient(145deg, #4f8be0, #2b63b3); }
.value--red { background: linear-gradient(145deg, #ef4b58, #c0202d); }
.value--green { background: linear-gradient(145deg, #11b862, #00843f); }
.value h3 { color: #fff; font-size: 1.6rem; }
.value p { color: rgba(255, 255, 255, .88); margin: 0; }
.value::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: rgba(255, 255, 255, .12); }

/* Actualités */
.news-card { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.news-card__media { aspect-ratio: 16 / 10; background: var(--c-primary-100); overflow: hidden; }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; }
.news-card__body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.news-card__date { font-size: .8rem; font-weight: 700; color: var(--c-muted); text-transform: uppercase; letter-spacing: .08em; }
.news-card h3 { font-size: 1.15rem; margin: 0; }
.news-card h3 a { color: var(--c-ink); }
.news-card h3 a:hover { color: var(--c-primary); }
.news-card p { color: var(--c-muted); font-size: .95rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-card .more { margin-top: auto; padding-top: .6rem; font-weight: 700; font-size: .9rem; }

/* Documents / textes réglementaires */
.doc-list { display: grid; gap: .8rem; }
.doc-item {
  display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s;
}
.doc-item:hover { border-color: #c9d6ea; box-shadow: var(--shadow-s); }
.doc-item__icon { flex: none; width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--c-red-100); color: var(--c-red); }
.doc-item__icon svg { width: 22px; height: 22px; }
.doc-item__body { flex: 1; min-width: 0; }
.doc-item__title { font-weight: 700; color: var(--c-ink); display: block; }
.doc-item__meta { font-size: .82rem; color: var(--c-muted); }
.doc-item .btn { flex: none; }

/* Annuaire : fiches professionnels */
.pro-card { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 1.3rem; display: flex; gap: 1rem; align-items: flex-start; }
.pro-card__avatar { flex: none; width: 64px; height: 64px; border-radius: 50%; background: var(--c-primary-100); color: var(--c-primary); display: grid; place-items: center; font-family: var(--f-display); font-weight: 700; font-size: 1.3rem; overflow: hidden; }
.pro-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.pro-card__name { font-weight: 800; color: var(--c-ink); font-size: 1.05rem; }
.pro-card__spec { color: var(--c-primary); font-weight: 600; font-size: .92rem; }
.pro-card__meta { font-size: .86rem; color: var(--c-muted); margin-top: .35rem; display: flex; flex-wrap: wrap; gap: .3rem 1rem; }
.pro-card__meta span { display: inline-flex; gap: .3rem; align-items: center; }
.pro-card__meta svg { width: 14px; height: 14px; }
.pro-card .badge { margin-top: .6rem; }

/* Étapes (procédure d'inscription) */
.steps { counter-reset: step; display: grid; gap: 1rem; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 1.2rem; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 1.4rem; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--f-display); font-size: 1.6rem; font-weight: 700; color: var(--c-sky); line-height: 1;
}
.step h3 { font-size: 1.15rem; margin-bottom: .3rem; }
.step p { color: var(--c-muted); margin: 0; }

/* Accordéon natif */
.accordion details { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); margin-bottom: .7rem; }
.accordion summary { cursor: pointer; padding: 1rem 1.3rem; font-weight: 700; color: var(--c-ink); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-size: 1.3rem; color: var(--c-sky); font-weight: 400; }
.accordion details[open] summary::after { content: "–"; }
.accordion details > div { padding: 0 1.3rem 1.2rem; color: var(--c-ink-2); }

/* ---------- Formulaires ---------- */
.field { display: flex; flex-direction: column; gap: .35rem; }
.field label { font-weight: 700; font-size: .88rem; color: var(--c-ink); }
.field label .req { color: var(--c-red); }
.field .help { font-size: .8rem; color: var(--c-muted); }
.input, .select, .textarea {
  width: 100%; font: inherit; color: var(--c-ink); background: #fff; border: 1.5px solid var(--c-line); border-radius: 10px; padding: .72rem .9rem;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--c-sky); box-shadow: 0 0 0 4px rgba(79, 139, 224, .18); }
.textarea { min-height: 140px; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .8rem center; background-size: 16px; padding-right: 2.4rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
.form-grid .span-2 { grid-column: span 2; }
.search-bar { grid-template-columns: 1.2fr 1fr 1fr auto; align-items: end; }
@media (max-width: 900px) { .search-bar { grid-template-columns: 1fr 1fr; } .search-bar .field:last-child { grid-column: span 2; } .search-bar .btn { width: 100%; } }
@media (max-width: 560px) { .search-bar { grid-template-columns: 1fr; } .search-bar .field:last-child { grid-column: auto; } }
.form-section { margin-bottom: 2rem; }
.form-section h3 { font-size: 1.1rem; padding-bottom: .5rem; border-bottom: 2px solid var(--c-primary-100); margin-bottom: 1.1rem; }
.form-actions { display: flex; gap: .8rem; flex-wrap: wrap; align-items: center; margin-top: 1.5rem; }
.file-input { padding: .55rem .9rem; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .92rem; }
.check input { margin-top: .3rem; accent-color: var(--c-primary); width: 18px; height: 18px; }

/* Alertes */
.alert { padding: 1rem 1.2rem; border-radius: var(--radius); border: 1px solid; margin-bottom: 1.2rem; display: flex; gap: .8rem; align-items: flex-start; }
.alert svg { flex: none; width: 20px; height: 20px; margin-top: 2px; }
.alert--success { background: var(--c-green-100); border-color: #b7e6c9; color: #0b5e33; }
.alert--error { background: var(--c-red-100); border-color: #f4bfc4; color: #8f1a24; }
.alert--info { background: var(--c-sky-100); border-color: #c4d9f6; color: #1f4b8c; }
.alert--warn { background: #fff6e0; border-color: #f2dba0; color: #7a5410; }

/* ---------- Tableaux ---------- */
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th, .table td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid var(--c-line); vertical-align: middle; }
.table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--c-muted); background: var(--c-bg); }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--c-primary-50); }

/* ---------- Bannière de page intérieure ---------- */
.page-hero { background: var(--c-primary-700); color: #fff; padding: 3.6rem 0 3rem; position: relative; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; background:
    radial-gradient(600px 300px at 90% 0%, rgba(79, 139, 224, .35), transparent 70%),
    radial-gradient(400px 260px at 10% 100%, rgba(0, 166, 81, .25), transparent 70%);
}
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; margin-bottom: .4rem; }
.page-hero p { color: #c9d6ea; max-width: 640px; font-size: 1.08rem; margin: 0; }
.breadcrumb { display: flex; gap: .5rem; font-size: .82rem; color: #9db4d9; margin-bottom: 1rem; flex-wrap: wrap; }
.breadcrumb a { color: #c9d6ea; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span::before { content: "/"; margin-right: .5rem; opacity: .5; }

/* Mise en page avec barre latérale */
.layout { display: grid; grid-template-columns: 1fr 320px; gap: 2.5rem; align-items: start; }
.layout--equal { grid-template-columns: 1fr 1fr; }
.sidebar { position: sticky; top: 100px; display: grid; gap: 1.2rem; }
.sidebar .card h3 { font-size: 1.05rem; }
.sidebar .card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .5rem; }
.sidebar .card li a { display: flex; gap: .5rem; align-items: center; font-weight: 600; color: var(--c-ink-2); }
.sidebar .card li a:hover { color: var(--c-primary); }
.prose h2 { margin-top: 2rem; font-size: 1.6rem; }
.prose h3 { margin-top: 1.5rem; }
.prose p, .prose li { color: var(--c-ink-2); }
.prose blockquote { margin: 1.5rem 0; padding: 1.2rem 1.5rem; border-left: 4px solid var(--c-sky); background: var(--c-surface); border-radius: 0 var(--radius) var(--radius) 0; font-family: var(--f-display); font-size: 1.15rem; color: var(--c-ink); }

/* Encart contact */
.contact-box { display: grid; gap: 1rem; }
.contact-box__item { display: flex; gap: .9rem; align-items: flex-start; }
.contact-box__item svg { width: 20px; height: 20px; color: var(--c-sky); flex: none; margin-top: 3px; }
.contact-box__item b { display: block; color: var(--c-ink); font-size: .9rem; }
.map { border-radius: var(--radius-l); overflow: hidden; border: 1px solid var(--c-line); box-shadow: var(--shadow); aspect-ratio: 16 / 10; background: var(--c-primary-100); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Bloc d'appel à l'action */
.cta { background: linear-gradient(120deg, var(--c-primary-700), var(--c-primary)); color: #fff; border-radius: var(--radius-l); padding: 3rem; display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem; align-items: center; position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; right: -80px; bottom: -120px; width: 320px; height: 320px; border-radius: 50%; background: rgba(79, 139, 224, .25); }
.cta h2 { color: #fff; margin-bottom: .5rem; }
.cta p { color: #d7e2f3; margin: 0; }
.cta__actions { display: flex; gap: .7rem; flex-wrap: wrap; justify-content: flex-end; position: relative; z-index: 1; }

/* Mot du président */
.quote-card { background: #fff; border-radius: var(--radius-l); padding: 2.4rem; box-shadow: var(--shadow); display: grid; grid-template-columns: 120px 1fr; gap: 2rem; align-items: center; border: 1px solid var(--c-line); }
.quote-card img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 4px solid var(--c-primary-100); }
.quote-card blockquote { margin: 0; font-family: var(--f-display); font-size: 1.25rem; color: var(--c-ink); line-height: 1.5; }
.quote-card cite { display: block; font-style: normal; margin-top: 1rem; font-size: .9rem; color: var(--c-muted); font-family: var(--f-body); }
.quote-card cite b { color: var(--c-ink); display: block; font-size: 1rem; }

/* ---------- Pied de page ---------- */
.footer { background: var(--c-primary-900); color: #b7c6df; margin-top: auto; }
.footer__main { padding: 4rem 0 3rem; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; }
.footer h4 { color: #fff; font-family: var(--f-body); font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1.1rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer a { color: #c9d6ea; }
.footer a:hover { color: #fff; }
.footer p { color: #9db1d0; font-size: .95rem; }
.footer__brand img { height: 64px; margin-bottom: 1rem; }
.footer__brand .motto { font-family: var(--f-display); color: #fff; font-size: 1.05rem; }
.footer__brand .motto b { color: var(--c-sky); } .footer__brand .motto i { color: #ff6b76; font-style: normal; } .footer__brand .motto u { color: #2ad178; text-decoration: none; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 1.2rem 0; font-size: .82rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer .social { display: flex; gap: .5rem; margin-top: 1rem; }
.footer .social a { width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .08); display: inline-grid; place-items: center; }
.footer .social a:hover { background: var(--c-sky); color: #fff; }
.footer .social svg { width: 15px; height: 15px; }
.footer__contact li { display: flex; gap: .6rem; align-items: flex-start; }
.footer__contact svg { width: 16px; height: 16px; flex: none; margin-top: 4px; color: var(--c-sky); }

/* ---------- Utilitaires ---------- */
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2.5rem; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; }
.flex { display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.pagination { display: flex; gap: .4rem; justify-content: center; margin-top: 2rem; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 40px; height: 40px; padding: 0 .7rem; display: inline-grid; place-items: center; border-radius: 10px; border: 1px solid var(--c-line); background: #fff; font-weight: 700; }
.pagination .is-current { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.empty { text-align: center; padding: 3rem 1rem; color: var(--c-muted); background: #fff; border: 1px dashed var(--c-line); border-radius: var(--radius); }
.empty svg { width: 48px; height: 48px; margin: 0 auto 1rem; color: #b8c4d6; }

/* Animation d'apparition douce */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.is-visible { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; padding: 3.5rem 0; }
  .hero { min-height: 0; }
  .stats .container { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--c-line); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .footer__main { grid-template-columns: 1fr 1fr; }
  .layout, .layout--equal { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .split { grid-template-columns: 1fr; gap: 2.5rem; }
  .split__media .float-card { left: 12px; bottom: -18px; }
  .cta { grid-template-columns: 1fr; }
  .cta__actions { justify-content: flex-start; }
}
@media (max-width: 680px) {
  .section { padding: 3.2rem 0; }
  .grid--2, .grid--3, .grid--4, .values, .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: auto; }
  .stats .container { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--c-line); }
  .stat:last-child { border-bottom: 0; }
  .footer__main { grid-template-columns: 1fr; gap: 2rem; }
  .topbar ul.info { display: none; }
  .quote-card { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .doc-item { flex-wrap: wrap; }
  .doc-item .btn { width: 100%; }
  .page-hero { padding: 2.6rem 0 2.2rem; }
  .step { grid-template-columns: 40px 1fr; gap: .8rem; padding: 1.1rem; }
  .cta { padding: 2rem 1.4rem; }
  .search-card { padding: 1.3rem; }
}

/* ---------- Impression ---------- */
@media print {
  .topbar, .header, .footer, .hero__actions, .btn, .nav-toggle { display: none !important; }
  body { background: #fff; color: #000; }
}
