/* ==========================================================================
   Site du Centre Lasallien Africain — feuille de style (style A, institutionnel)
   Couleurs vérifiées : tous les textes ont un contraste ≥ 4,5:1 (WCAG 2.2 AA).
   ========================================================================== */

@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/source-sans-3-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/source-sans-3-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/source-sans-3-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/source-serif-4-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/source-serif-4-latin-700-normal.woff2") format("woff2"); }

:root {
  --nuit: #0E2A47;          /* titres, en-têtes, pied de page */
  --nuit-2: #17385C;
  --bleu: #0B4F8A;          /* liens */
  --bleu-ciel: #EEF6FC;     /* fonds clairs */
  --bleu-pale: #DCEBF7;
  --or: #F2C200;            /* accents (étoile du logo) */
  --or-pale: #FFF8E1;
  --vermillon: #B8400B;     /* bouton Candidater */
  --vert: #1F6B35;
  --vert-pale: #DDF0E2;
  --ocre: #7A4F00;
  --ocre-pale: #FCEFD0;
  --texte: #1F2A37;
  --texte-2: #374151;
  --gris: #4B5563;
  --bord: #E3E8EE;
  --bord-champ: #8C98A5;
  --fond-gris: #F5F8FB;
  --erreur: #B42318;
  --erreur-fonce: #8A1C12;
  --erreur-pale: #FDECEA;
  --succes-pale: #E7F4EA;
  --rayon: 14px;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ombre: 0 10px 30px rgba(14, 42, 71, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6; color: var(--texte); background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--bleu); text-underline-offset: 3px; }
a:hover { color: var(--nuit); }
h1, h2, h3 { color: var(--nuit); line-height: 1.2; }
h1, h2 { font-family: var(--serif); font-weight: 700; }
h1 { font-size: clamp(2rem, 4.2vw, 3.25rem); margin: 0; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); margin: 0 0 .5rem; }
h3 { font-size: 1.3rem; margin: 0; }
p { margin: 0 0 1rem; }
:focus-visible { outline: 3px solid var(--or); outline-offset: 2px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--nuit); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip-link:focus { top: 12px; color: #fff; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.muted { color: var(--gris); }
.section { padding: 80px 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.section-head p { margin: 0; color: var(--gris); max-width: 680px; }
.eyebrow { font-size: .875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--bleu); }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 12px 22px; border-radius: 8px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; border: 1px solid transparent; text-align: center; }
.btn-primary { background: var(--nuit); color: #fff; }
.btn-primary:hover { background: var(--nuit-2); color: #fff; }
.btn-cta { background: var(--vermillon); color: #fff; }
.btn-cta:hover { background: #9A3509; color: #fff; }
.btn-outline { background: #fff; color: var(--nuit); border-color: var(--nuit); }
.btn-outline:hover { background: var(--bleu-ciel); color: var(--nuit); }
.btn-or { background: var(--or); color: var(--nuit); }
.btn-or:hover { background: #E0B400; color: var(--nuit); }
.btn-block { width: 100%; }
.link-arrow { font-weight: 700; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }

/* ---------- Bandeau supérieur et en-tête ---------- */
.topbar { background: var(--nuit); color: #DCE8F3; font-size: .875rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.topbar a { color: #DCE8F3; text-decoration: none; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar-contacts { display: flex; gap: 24px; flex-wrap: wrap; }

.site-header { background: #fff; border-bottom: 1px solid var(--bord); position: relative; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { width: 62px; height: 60px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.25rem; color: var(--nuit); }
.brand-short { display: none; text-decoration: none; }
.brand-sub { font-size: .8125rem; color: var(--gris); letter-spacing: .04em; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; }
.main-nav a { color: var(--nuit); text-decoration: none; font-weight: 600; padding: 8px 0; display: inline-block; }
.main-nav a:hover { color: var(--bleu); text-decoration: underline; }
.main-nav a[aria-current="page"] { color: var(--bleu); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.header-actions { display: flex; align-items: center; gap: 10px; order: 3; }
.main-nav { order: 2; margin-left: auto; }
.menu-toggle { display: none; width: 46px; height: 46px; border: 1px solid #C9D2DC; border-radius: 8px; background: #fff; align-items: center; justify-content: center; cursor: pointer; }
.menu-toggle svg { width: 22px; height: 22px; }

/* ---------- Héros de la page d'accueil ---------- */
.hero { background: var(--bleu-ciel); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 88px; }
.hero-text { display: flex; flex-direction: column; gap: 22px; }
.hero-text p { font-size: 1.1875rem; color: var(--texte-2); max-width: 560px; margin: 0; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-visual { position: relative; }
.hero-visual img, .photo-placeholder { width: 100%; height: 400px; object-fit: cover; border-radius: 16px; }
.photo-placeholder { background: repeating-linear-gradient(135deg, #D6E6F3 0 14px, #CCDFEF 14px 28px); display: flex; align-items: center; justify-content: center; color: var(--bleu); font-weight: 600; text-align: center; padding: 16px; }
.hero-badge { position: absolute; left: -22px; bottom: -22px; background: var(--or); color: var(--nuit); border-radius: 12px; padding: 16px 20px; max-width: 260px; font-weight: 700; line-height: 1.3; text-decoration: none; box-shadow: var(--ombre); }
.hero-badge:hover { color: var(--nuit); text-decoration: underline; }

.quick-search { margin-top: -36px; position: relative; z-index: 2; }
.quick-search form { background: #fff; border: 1px solid var(--bord); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 20px; display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; }
.quick-search .field { flex: 1 1 240px; margin: 0; }

/* ---------- Cartes ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.card { border: 1px solid var(--bord); border-radius: var(--rayon); padding: 28px; display: flex; flex-direction: column; gap: 12px; background: #fff; }
.card p { margin: 0; color: var(--gris); }
.card .link-arrow { margin-top: auto; }
.card h2, .card h3 { font-family: var(--sans); font-size: 1.3rem; }
.card h2 a, .card h3 a { color: inherit; text-decoration: none; }
.card h2 a:hover, .card h3 a:hover { text-decoration: underline; }
.icon-chip { width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.icon-chip svg { width: 26px; height: 26px; }
.tag { display: inline-block; font-weight: 700; font-size: .8125rem; padding: 4px 10px; border-radius: 999px; background: #F1F4F7; color: var(--texte-2); }
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.sigle { font-size: .875rem; font-weight: 700; letter-spacing: .06em; }

.c-bleu .icon-chip, .tag.c-bleu { background: var(--bleu-pale); }
.c-bleu .icon-chip svg { stroke: var(--bleu); }
.c-bleu .sigle, .tag.c-bleu { color: var(--bleu); }
.c-vert .icon-chip, .tag.c-vert { background: var(--vert-pale); }
.c-vert .icon-chip svg { stroke: var(--vert); }
.c-vert .sigle, .tag.c-vert { color: var(--vert); }
.c-or .icon-chip, .tag.c-or { background: var(--ocre-pale); }
.c-or .icon-chip svg { stroke: var(--ocre); }
.c-or .sigle, .tag.c-or { color: var(--ocre); }

.facts-inline { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: .9375rem; margin: 0; }
.facts-inline dt { color: var(--gris); }
.facts-inline dd { margin: 0; }

/* ---------- Bandeau institution ---------- */
.band-dark { background: var(--nuit); color: #fff; }
.band-dark h2, .band-dark h3 { color: #fff; }
.band-dark a { color: var(--or); }
.band-dark a:hover { color: #fff; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 36px 0; }
.stat { border-top: 3px solid var(--or); padding-top: 16px; }
.stat-value { font-family: var(--serif); font-size: 2.5rem; font-weight: 700; line-height: 1.1; }
.stat-label { color: #DCE8F3; }
.values h3 { color: var(--or); font-size: 1.25rem; margin-bottom: 6px; }
.values p { color: #DCE8F3; margin: 0; }

/* ---------- Étapes ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; counter-reset: etape; }
.steps li { background: var(--fond-gris); border-radius: 12px; padding: 20px; display: flex; gap: 14px; counter-increment: etape; }
.steps li::before { content: counter(etape); flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--nuit); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.steps li.current::before { background: var(--vermillon); }
.steps strong { color: var(--nuit); display: block; }
.steps span { font-size: .9375rem; color: var(--gris); }
.steps-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.steps-4 li { background: #fff; flex-direction: column; gap: 6px; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 56px; align-items: start; }
.split-news { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 32px; }

/* ---------- Actualités et agenda ---------- */
.news-card { display: flex; flex-direction: column; gap: 10px; }
.news-card img, .news-card .thumb { width: 100%; height: 190px; object-fit: cover; border-radius: 12px; }
.thumb { background: repeating-linear-gradient(135deg, #EDF1F5 0 12px, #E4EAF0 12px 24px); }
.news-card h3 { font-size: 1.2rem; }
.news-card h3 a { color: inherit; text-decoration: none; }
.news-card h3 a:hover { text-decoration: underline; }
.meta { font-size: .875rem; color: var(--gris); }
.events-box { background: var(--or-pale); border-radius: var(--rayon); padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.event-item { display: flex; gap: 14px; align-items: flex-start; }
.date-chip { flex: none; width: 60px; text-align: center; background: #fff; border-radius: 10px; padding: 6px 0; color: var(--nuit); line-height: 1.2; }
.date-chip .d { font-size: 1.375rem; font-weight: 700; display: block; }
.date-chip .m { font-size: .8125rem; display: block; }
.event-item strong a { color: var(--nuit); text-decoration: none; }
.event-item strong a:hover { text-decoration: underline; }

.cta-band { background: var(--or); }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 40px; padding-bottom: 40px; flex-wrap: wrap; }
.cta-band h2 { margin: 0; font-size: 1.75rem; }

/* ---------- En-têtes de pages intérieures ---------- */
.page-head { background: var(--bleu-ciel); }
.page-head .wrap { padding-top: 28px; padding-bottom: 44px; display: flex; flex-direction: column; gap: 12px; }
.page-head p { margin: 0; max-width: 700px; color: var(--texte-2); }
.page-head-dark { background: var(--nuit); color: #fff; }
.page-head-dark h1 { color: #fff; }
.page-head-dark p { color: #DCE8F3; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: .9375rem; color: var(--gris); }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; }
.page-head-dark .breadcrumb ol, .page-head-dark .breadcrumb a { color: #DCE8F3; }
.badge-or { align-self: flex-start; background: var(--or); color: var(--nuit); font-weight: 700; font-size: .875rem; padding: 4px 12px; border-radius: 999px; }

/* ---------- Catalogue ---------- */
.catalog { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 40px; align-items: start; padding-top: 40px; padding-bottom: 80px; }
.filters { border: 1px solid var(--bord); border-radius: var(--rayon); padding: 22px; display: flex; flex-direction: column; gap: 22px; }
.filters fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.filters legend { font-weight: 700; color: var(--nuit); margin-bottom: 8px; }
.check { display: flex; gap: 10px; align-items: center; min-height: 32px; }
.check input { width: 20px; height: 20px; flex: none; accent-color: var(--nuit); }
.results-count { margin: 0 0 18px; color: var(--gris); }
.empty-state { background: var(--fond-gris); border-radius: var(--rayon); padding: 32px; text-align: center; }
.aside-help { background: var(--or-pale); border-radius: var(--rayon); padding: 24px; display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.aside-help p { margin: 0; }

/* ---------- Fiche formation ---------- */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: -28px 0 0; background: #fff; border: 1px solid var(--bord); border-radius: var(--rayon); padding: 22px; box-shadow: var(--ombre); position: relative; }
.facts dt { font-size: .875rem; color: var(--gris); }
.facts dd { margin: 0; font-weight: 700; color: var(--nuit); font-size: 1.1875rem; }
.layout-aside { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; padding-top: 56px; padding-bottom: 80px; }
.layout-aside > div > section { margin-bottom: 44px; }
.layout-aside aside { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 20px; }
.box { border: 1px solid var(--bord); border-radius: var(--rayon); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.box h2 { font-family: var(--sans); font-size: 1.25rem; margin: 0; }
.box-grey { background: var(--fond-gris); border: 0; }
.prose { max-width: 760px; }
.prose h2 { margin-top: 2rem; }
.prose h3 { margin: 1.5rem 0 .5rem; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li { margin-bottom: .35rem; }
.prose blockquote { margin: 1.5rem 0; padding: 12px 20px; border-left: 4px solid var(--or); background: var(--or-pale); }
.prose table { border-collapse: collapse; width: 100%; }
.prose th, .prose td { border: 1px solid var(--bord); padding: 8px 10px; text-align: left; }
.placeholder-note { color: var(--gris); font-style: italic; }

/* ---------- Formulaires ---------- */
.form-card { border: 1px solid var(--bord); border-radius: 16px; padding: 32px; box-shadow: var(--ombre); background: #fff; }
.form-card h2 { font-size: 1.75rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-grid .field { margin-bottom: 0; }
.field label, .field .label { font-weight: 600; color: var(--nuit); }
.field input, .field select, .field textarea { font: inherit; color: var(--texte); padding: 11px 13px; border: 1px solid var(--bord-champ); border-radius: 8px; min-height: 46px; background: #fff; width: 100%; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--or); outline-offset: 1px; border-color: var(--nuit); }
.field .hint { font-size: .875rem; color: var(--gris); margin: 0; }
.field .error-msg { color: var(--erreur); font-weight: 600; font-size: .9375rem; margin: 0; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--erreur); border-width: 2px; }
.req { color: var(--vermillon); }
fieldset.field { border: 0; padding: 0; margin: 0 0 18px; }
fieldset.field legend { font-weight: 600; color: var(--nuit); margin-bottom: 8px; padding: 0; }
.radios { display: flex; gap: 22px; flex-wrap: wrap; }
.radios label { display: flex; gap: 8px; align-items: center; font-weight: 400; color: var(--texte); min-height: 32px; }
.radios input { width: 20px; height: 20px; accent-color: var(--nuit); min-height: 0; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .9375rem; color: var(--texte-2); }
.consent input { width: 22px; height: 22px; flex: none; margin-top: 2px; accent-color: var(--nuit); }
.privacy-note { font-size: .875rem; color: var(--gris); background: var(--fond-gris); border-radius: 10px; padding: 12px 14px; }

.alert { border-radius: 10px; padding: 14px 16px; margin-bottom: 20px; border: 1px solid; }
.alert-error { background: var(--erreur-pale); border-color: var(--erreur); color: var(--erreur-fonce); }
.alert-error ul { margin: 8px 0 0; padding-left: 20px; }
.alert-error a { color: var(--erreur-fonce); }
.alert-success { background: var(--succes-pale); border-color: var(--vert); color: #14532D; }
.alert-info { background: var(--bleu-ciel); border-color: var(--bleu); color: var(--nuit); }

.success-panel { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.success-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--vert-pale); display: flex; align-items: center; justify-content: center; }

table.simple { border-collapse: collapse; width: 100%; }
table.simple caption { text-align: left; color: var(--gris); font-size: .875rem; padding-bottom: 8px; }
table.simple th, table.simple td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--bord); vertical-align: top; }
table.simple th { font-weight: 600; }

details.faq-item { border-bottom: 1px solid var(--bord); padding: 12px 0; }
details.faq-item summary { font-weight: 600; color: var(--nuit); cursor: pointer; min-height: 32px; }
details.faq-item .prose { margin-top: 8px; }
details.programme { border: 1px solid var(--bord); border-radius: 12px; padding: 16px 20px; margin-bottom: 12px; }
details.programme summary { font-weight: 700; color: var(--nuit); cursor: pointer; }

.pagination ul { list-style: none; display: flex; gap: 8px; padding: 0; margin: 32px 0 0; flex-wrap: wrap; }
.pagination a, .pagination span { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; border: 1px solid var(--bord); border-radius: 8px; text-decoration: none; padding: 0 12px; }
.pagination [aria-current="page"] { background: var(--nuit); color: #fff; border-color: var(--nuit); }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--nuit); color: #DCE8F3; font-size: .9375rem; }
.site-footer a { color: #DCE8F3; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding-top: 56px; padding-bottom: 40px; }
.footer-grid h2 { font-family: var(--sans); font-size: 1rem; color: #fff; margin: 0 0 10px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-logo { width: 72px; height: 70px; object-fit: contain; background: #fff; border-radius: 10px; padding: 4px; margin-bottom: 12px; }
.footer-bottom { border-top: 1px solid #27486B; }
.footer-bottom .wrap { display: flex; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; flex-wrap: wrap; font-size: .875rem; }
.footer-bottom ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- Page d'erreur ---------- */
.error-page { padding: 80px 0; text-align: left; }
.error-code { font-family: var(--serif); font-size: 4rem; font-weight: 700; color: var(--or); line-height: 1; }

/* ---------- Utilitaires (aucun style en ligne : la politique de sécurité les interdit) ---------- */
.flash-zone { padding-top: 20px; }
.section-flush-top { padding-top: 0; }
.section-tight { padding-top: 48px; padding-bottom: 80px; }
.no-margin { margin: 0; }
.mt-s { margin-top: 18px; }
.mt-l { margin-top: 48px; }
.strong-nuit { color: var(--nuit); }
.span-all { grid-column: 1 / -1; }
.self-start { align-self: flex-start; }
.h-box { font-family: var(--sans); font-size: 1.25rem; margin: 0; }
.pb-facts { padding-bottom: 60px !important; }
.box-or { background: var(--or-pale); border: 0; margin-bottom: 44px; }
.box-or p { margin: 0; }
.box h3 { font-family: var(--sans); font-size: 1.1rem; }
.layout-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
.layout-form > section, .layout-form > div > section { margin-bottom: 40px; }
.plain-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.event-list { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-direction: column; gap: 18px; }
.event-row { border: 1px solid var(--bord); border-radius: var(--rayon); padding: 18px; }
.event-row h3 { font-family: var(--sans); font-size: 1.25rem; margin-bottom: 4px; }
.event-row h3 a { color: var(--nuit); text-decoration: none; }
.event-row h3 a:hover { text-decoration: underline; }
.event-row .date-chip { background: var(--bleu-ciel); }
.article-figure { margin: 0 0 28px; }
.article-figure img { border-radius: var(--rayon); width: 100%; }
.lead { font-size: 1.1875rem; color: var(--texte-2); max-width: 680px; }
.debug { white-space: pre-wrap; background: #111; color: #eee; padding: 16px; border-radius: 8px; font-size: .8rem; overflow-x: auto; }
.h3 { font-family: var(--sans); font-size: 1.2rem; margin: 0; }
[hidden] { display: none !important; }
@media (max-width: 900px) { .layout-form { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Écrans moyens et petits ---------- */
@media (max-width: 1000px) {
  .main-nav ul { gap: 18px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .wrap { padding: 0 16px; }
  .section { padding: 56px 0; }
  .hero .wrap, .grid-3, .grid-2, .split, .split-news, .catalog, .layout-aside, .form-grid, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .hero .wrap { padding-top: 32px; padding-bottom: 56px; gap: 32px; }
  .hero-visual img, .photo-placeholder { height: 220px; }
  .hero-badge { left: 12px; bottom: -18px; }
  .steps, .steps-4 { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .layout-aside aside { position: static; }
  .form-card { padding: 20px; }
  .brand img { width: 46px; height: 45px; }
  .brand-sub { display: none; }
  .topbar-contacts { display: none; }
  .site-header .wrap { gap: 12px; }
  .hero-badge { position: static; display: inline-block; margin-top: 12px; }

  /* Menu mobile : visible par défaut, replié seulement si JavaScript est actif */
  .js .menu-toggle { display: inline-flex; }
  .main-nav { width: 100%; }
  .site-header .wrap { flex-wrap: wrap; }
  .header-actions { order: 2; margin-left: auto; }
  .main-nav { margin-left: 0; order: 3; }
  .js .main-nav { display: none; }
  .js .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav li a { display: block; padding: 14px 0; border-bottom: 1px solid var(--bord); font-size: 1.125rem; }
  .header-actions .btn-cta { padding: 10px 14px; }
}

@media (max-width: 520px) {
  .brand-long { display: none; }
  .brand-short { display: inline; }
}

@media print {
  .topbar, .site-header nav, .menu-toggle, .site-footer, .hero-badge, .quick-search, .btn { display: none !important; }
  body { font-size: 12pt; }
  a { color: #000; }
}
