/* ==========================================================================
   APDNK — Maquette du site
   Conforme à la charte « Orientation et uniformisation des sites web des
   institutions de la République » : couleurs, typographies, en-tête,
   diaporama, titres de section, cartes, pied de page.
   ========================================================================== */

/* 1. Polices (hébergées localement, licence OFL) ------------------------- */
@font-face { font-family: "Cooper Hewitt"; font-weight: 400; font-display: swap; src: url("../fonts/cooper-hewitt-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Cooper Hewitt"; font-weight: 600; font-display: swap; src: url("../fonts/cooper-hewitt-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Cooper Hewitt"; font-weight: 700; font-display: swap; src: url("../fonts/cooper-hewitt-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 300; font-display: swap; src: url("../fonts/poppins-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap; src: url("../fonts/poppins-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-display: swap; src: url("../fonts/poppins-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap; src: url("../fonts/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Great Vibes"; font-weight: 400; font-display: swap; src: url("../fonts/great-vibes-latin-400-normal.woff2") format("woff2"); }

/* 2. Variables ----------------------------------------------------------- */
:root {
  /* Couleurs principales de la charte */
  --blue: #1C4293;
  --cyan: #0095C9;
  --red: #DB3832;
  --yellow: #FFF24B;
  /* Couleurs secondaires de la charte */
  --blue-2: #17418A;
  --red-2: #B72625;
  --dark: #09242E;
  --slate: #405D64;
  /* Dérivés neutres */
  --navy: #0d2459;
  --ink: #1b2331;
  --text: #3d4656;
  --muted: #6a7384;
  --line: #e3e7ef;
  --paper: #f4f6fa;
  --blue-50: #edf2fb;

  --f-title: "Cooper Hewitt", "Poppins", system-ui, sans-serif;
  --f-body: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-accent: "Great Vibes", cursive;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 32px);
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --shadow: 0 18px 40px -24px rgba(13, 36, 89, .35);
  --header-h: 96px;
}

/* 3. Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 1rem/1.7 var(--f-body); color: var(--text); background: #fff; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-title); font-weight: 700; line-height: 1.15; color: var(--navy); overflow-wrap: break-word; hyphens: manual; }
h1, h2, h3 { text-wrap: balance; }
p { margin: 0; }
p, li { text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.wrap { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; left: 0; top: 0; padding: 0; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }
.section { padding: clamp(64px, 8vw, 104px) 0; }
.section.alt { background: var(--paper); }
.section.tight { padding-top: 0; }

/* 4. Boutons ------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 26px; border-radius: 999px; border: 2px solid transparent; font: 600 .95rem/1 var(--f-title); letter-spacing: .01em; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn:hover { transform: translateY(-1px); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-2); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-2); }
.btn-line { border-color: var(--red); color: var(--red); background: #fff; }
.btn-line:hover { background: var(--red); color: #fff; }
.btn-white { background: #fff; color: var(--blue); }
.btn-white:hover { background: var(--yellow); color: var(--navy); }
.btn-ghost { border-color: rgba(255, 255, 255, .6); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--blue); }
.center { text-align: center; }
.more { margin-top: clamp(32px, 4vw, 48px); text-align: center; }

/* 5. En-tête (charte : bloc armoirie à gauche, menu en capitales, item actif en pastille) */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 1px 0 var(--line); transition: box-shadow .2s; }
.site-header.scrolled { box-shadow: 0 10px 30px -18px rgba(13, 36, 89, .35); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.brand { flex-shrink: 0; display: block; }
.brand img { height: 62px; width: auto; }
.menu { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.menu a { position: relative; padding: 10px 14px; border-radius: 999px; font: 600 .86rem/1 var(--f-title); letter-spacing: .04em; text-transform: uppercase; text-decoration: none; color: var(--navy); white-space: nowrap; transition: background .2s, color .2s; }
.menu a:hover { color: var(--blue); background: var(--blue-50); }
.menu a[aria-current="page"] { background: var(--blue); color: #fff; }
.header-tools { display: flex; align-items: center; gap: 6px; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 0; background: transparent; color: var(--navy); cursor: pointer; text-decoration: none; }
.icon-btn:hover { background: var(--blue-50); color: var(--blue); }
.icon-btn svg { width: 21px; height: 21px; }
.burger { display: none; }

/* 6. Accueil : bienvenue + diaporama « À la une » (en carte) -------- */
.hero { position: relative; overflow: hidden; color: #fff; background: linear-gradient(120deg, var(--navy) 0%, var(--blue) 55%, var(--blue-2) 100%); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .22; background: url("../img/bandeau.jpg") center / cover no-repeat; mix-blend-mode: screen; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: linear-gradient(90deg, var(--cyan) 0 33.3%, var(--yellow) 33.3% 66.6%, var(--red) 66.6%); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(56px, 7vw, 88px); }
.hero-eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font: 600 .8rem/1.4 var(--f-title); letter-spacing: .1em; text-transform: uppercase; color: var(--yellow); }
.hero-eyebrow::before { content: ""; flex-shrink: 0; width: 6px; height: 34px; border-radius: 3px; background: linear-gradient(180deg, var(--cyan) 0 33.3%, var(--yellow) 33.3% 66.6%, var(--red) 66.6%); }
.hero-welcome h1 { color: #fff; font-weight: 700; font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.08; }
.hero-lead { margin-top: 18px; max-width: 540px; font-weight: 300; font-size: clamp(1rem, 1.3vw, 1.1rem); color: rgba(255, 255, 255, .88); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-quick { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 30px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .2); }
.hero-quick a { display: inline-flex; align-items: center; gap: 8px; font: 600 .82rem/1 var(--f-title); letter-spacing: .05em; text-transform: uppercase; color: #fff; text-decoration: none; }
.hero-quick a:hover { color: var(--yellow); }
.hero-quick svg { width: 16px; height: 16px; color: var(--yellow); }

.slider { position: relative; }
.slides { position: relative; display: grid; border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 40px 80px -36px rgba(0, 0, 0, .65); background: var(--navy); }
.slide { grid-area: 1 / 1; position: relative; aspect-ratio: 5 / 4; display: flex; align-items: flex-end; opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility 0s .8s; }
.slide.is-active { opacity: 1; visibility: visible; transition: opacity .8s ease; }
.slide-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 7s ease-out; }
.slide.is-active .slide-img { transform: scale(1); }
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(9, 22, 58, .94) 0%, rgba(9, 22, 58, .6) 38%, rgba(9, 22, 58, 0) 68%); }
.slide-content { position: relative; z-index: 2; width: 100%; padding: clamp(20px, 3vw, 32px); }
.slide-accent { font: 400 clamp(1.9rem, 3vw, 2.5rem)/1 var(--f-accent); color: var(--yellow); margin-bottom: 8px; }
.slide-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 12px; font-size: .84rem; color: rgba(255, 255, 255, .85); }
.slide h2 { font-size: clamp(1.15rem, 1.9vw, 1.55rem); line-height: 1.2; text-transform: uppercase; color: #fff; letter-spacing: .01em; }
.slide h2 a { color: inherit; text-decoration: none; }
.slide h2 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.slide h2 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.slide .tag { position: relative; z-index: 2; }
.slider-nav { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 18px; }
.dots { display: flex; align-items: center; gap: 10px; }
.dot { position: relative; width: 12px; height: 12px; padding: 0; border-radius: 999px; border: 2px solid #fff; background: transparent; cursor: pointer; overflow: hidden; transition: width .3s; }
.dot.is-active { width: 44px; background: rgba(255, 255, 255, .25); }
.dot.is-active::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 0; background: #fff; animation: dot-progress var(--slide-delay, 7s) linear forwards; }
.slider.is-paused .dot.is-active::after, .slider:hover .dot.is-active::after, .slider:focus-within .dot.is-active::after { animation-play-state: paused; }
@keyframes dot-progress { to { width: 100%; } }
.slider-btns { display: flex; gap: 8px; }
.slider-btn { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .45); background: transparent; color: #fff; cursor: pointer; }
.slider-btn:hover { background: #fff; color: var(--blue); }
.slider-btn svg { width: 18px; height: 18px; }
.slider-btn[aria-pressed="true"] { background: var(--yellow); color: var(--navy); border-color: var(--yellow); }

/* 7. Titres de section (charte : ornement, titre centré, double soulignement, sous-titre) */
.sec-head { text-align: center; max-width: 760px; margin: 0 auto clamp(36px, 5vw, 56px); }
.orn { display: inline-flex; align-items: center; gap: 5px; margin-bottom: 14px; }
.orn i { display: block; width: 5px; height: 5px; border-radius: 50%; background: var(--red); opacity: .45; }
.orn i:nth-child(2), .orn i:nth-child(6) { width: 7px; height: 7px; opacity: .75; }
.orn b { display: block; width: 34px; height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--cyan) 0 33.3%, var(--yellow) 33.3% 66.6%, var(--red) 66.6%); }
.sec-head h2 { font-weight: 600; font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.uline { display: flex; justify-content: center; gap: 6px; margin: 14px 0 0; }
.uline::before { content: ""; width: 56px; height: 3px; border-radius: 2px; background: var(--navy); }
.uline::after { content: ""; width: 14px; height: 3px; border-radius: 2px; background: var(--red); }
.sec-head p { margin-top: 16px; font-family: var(--f-title); font-size: clamp(1rem, 1.3vw, 1.12rem); color: var(--muted); }
.on-dark .sec-head h2 { color: #fff; }
.on-dark .sec-head p { color: rgba(255, 255, 255, .8); }
.on-dark .uline::before { background: #fff; }

/* 8. Étiquettes ---------------------------------------------------------- */
.tag { display: inline-block; font: 700 .72rem/1 var(--f-title); letter-spacing: .1em; text-transform: uppercase; color: var(--red); text-decoration: none; }
a.tag:hover { text-decoration: underline; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags .tag { padding: 7px 12px; border-radius: 999px; background: rgba(219, 56, 50, .08); }
.tags .tag:hover { background: var(--red); color: #fff; text-decoration: none; }
.slide .tag { padding: 7px 12px; border-radius: 999px; background: var(--yellow); color: var(--navy); }

/* 9. Teaser (affichage résumé d'un article : image, étiquette, titre, date) */
.grid { display: grid; gap: 28px 24px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.teaser { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--r); overflow: hidden; box-shadow: 0 0 0 1px var(--line); transition: box-shadow .25s, transform .25s; }
.teaser:hover { box-shadow: 0 0 0 1px transparent, var(--shadow); transform: translateY(-3px); }
.teaser-img { aspect-ratio: 3 / 2; overflow: hidden; background: var(--paper); }
.teaser-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.teaser:hover .teaser-img img { transform: scale(1.05); }
.teaser-body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 22px; }
.teaser h3 { font-size: 1.1rem; font-weight: 700; line-height: 1.3; }
.teaser h3 a { color: var(--navy); text-decoration: none; }
.teaser h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.teaser h3 a:hover { color: var(--blue); }
.teaser .tag { position: relative; z-index: 2; align-self: flex-start; }
.teaser time, .date { display: inline-flex; align-items: center; gap: 7px; margin-top: auto; font-size: .82rem; color: var(--muted); }
.teaser time svg, .date svg { width: 15px; height: 15px; color: var(--red); }
.teaser[hidden] { display: none; }

/* 10. Bloc « L'APDNK » (charte : image à gauche, texte à droite) --------- */
.intro { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.logo-card { background: #fff; border-radius: var(--r-lg); padding: clamp(28px, 4vw, 48px); box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.logo-card img { width: 100%; height: auto; }
.intro-text .statement { font-weight: 600; font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.6; color: var(--ink); }
.intro-text .sign { margin-top: 20px; font-style: italic; color: var(--ink); }
.intro-text .sign span { display: block; color: var(--red); }
.intro-text .btn { margin-top: 28px; }

/* 11. Écosystème / missions (charte : cartes icône + titre bleu + texte) - */
.eco { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.eco.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.eco.cols-4 .eco-item { flex-direction: column; }
.eco-item { display: flex; gap: 16px; padding: 24px; background: #fff; border-radius: var(--r); box-shadow: 0 0 0 1px var(--line); transition: box-shadow .2s, transform .2s; }
.eco-item:hover { box-shadow: 0 0 0 1px var(--line), var(--shadow); transform: translateY(-2px); }
.eco-ico { flex-shrink: 0; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: var(--blue-50); color: var(--blue); }
.eco-ico svg { width: 24px; height: 24px; }
.eco-item h3 { font-size: 1.05rem; color: var(--blue); margin-bottom: 6px; }
.eco-item p { font-size: .88rem; color: var(--muted); line-height: 1.6; }
.eco-item.featured { background: var(--blue); box-shadow: none; }
.eco-item.featured h3, .eco-item.featured p { color: #fff; }
.eco-item.featured .eco-ico { background: rgba(255, 255, 255, .15); color: var(--yellow); }

/* 12. Bande bleue (charte : bloc institutionnel bleu, boutons rouges) ---- */
.band { position: relative; overflow: hidden; background: var(--blue); color: #fff; }
.band::before { content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none; background: radial-gradient(circle at 15% 20%, rgba(0, 149, 201, .35), transparent 40%), radial-gradient(circle at 85% 80%, rgba(0, 149, 201, .25), transparent 45%); }
.band .wrap { position: relative; }
.steps-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.step-col { display: flex; flex-direction: column; gap: 12px; padding: 8px 28px; border-left: 1px solid rgba(255, 255, 255, .2); }
.step-col:first-child { border-left: 0; padding-left: 0; }
.step-col svg { width: 34px; height: 34px; color: var(--yellow); }
.step-col h3 { font-size: 1.2rem; color: #fff; }
.step-col p { font-size: .88rem; color: rgba(255, 255, 255, .8); }
.step-col .btn { margin-top: auto; align-self: flex-start; min-height: 42px; padding: 0 20px; font-size: .86rem; }
.audience { margin-top: 44px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .2); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.audience strong { font-family: var(--f-title); color: var(--yellow); }
.audience span { font-size: .84rem; padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .1); }

/* 13. Principes et recettes ---------------------------------------------- */
.principles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.principle { padding: 22px; border-radius: var(--r); background: #fff; box-shadow: 0 0 0 1px var(--line); }
.principle svg { width: 28px; height: 28px; color: var(--cyan); margin-bottom: 12px; }
.principle h3 { font-size: 1rem; margin-bottom: 4px; }
.principle p { font-size: .85rem; color: var(--muted); line-height: 1.55; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.photo { position: relative; margin: 0; }
.photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-lg); }
.photo figcaption { margin-top: 16px; font-size: .8rem; color: var(--muted); }
.kicker { font: 400 2.2rem/1 var(--f-accent); color: var(--red); margin-bottom: 6px; }
.split h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 600; }
.split .lead { margin: 16px 0 22px; color: var(--muted); }
.checklist { list-style: none; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; }
.checklist svg { flex-shrink: 0; width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--blue); color: #fff; }
.checklist strong { display: block; font-family: var(--f-title); color: var(--navy); }
.checklist span { font-size: .88rem; color: var(--muted); }

/* 14. En-tête des pages intérieures : un seul modèle, sobre ------------ */
.page-title { position: relative; overflow: hidden; background: var(--paper); border-bottom: 1px solid var(--line); }
.page-title::after { content: ""; position: absolute; right: -60px; top: -60px; width: 420px; height: 420px; pointer-events: none; opacity: .5;
  background: radial-gradient(circle, rgba(28, 66, 147, .14) 1.5px, transparent 1.6px) 0 0 / 18px 18px; mask-image: radial-gradient(circle, #000 30%, transparent 70%); }
.page-title .wrap { position: relative; z-index: 1; padding-top: clamp(28px, 4vw, 44px); padding-bottom: clamp(32px, 4.5vw, 52px); }
.page-title h1 { position: relative; padding-left: 22px; font-weight: 600; font-size: clamp(1.8rem, 3.4vw, 2.7rem); max-width: 900px; }
.page-title h1::before { content: ""; position: absolute; left: 0; top: .12em; bottom: .12em; width: 6px; border-radius: 3px; background: linear-gradient(180deg, var(--cyan) 0 33.3%, var(--yellow) 33.3% 66.6%, var(--red) 66.6%); }
.page-title .lead { margin-top: 14px; padding-left: 22px; max-width: 760px; font-size: clamp(.98rem, 1.2vw, 1.08rem); color: var(--muted); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 18px; font-size: .82rem; color: var(--muted); }
.crumbs a { color: var(--blue); text-decoration: none; font-weight: 500; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span[aria-hidden] { opacity: .5; }
.crumbs [aria-current] { color: var(--muted); }
.crumbs-bar { background: var(--paper); border-bottom: 1px solid var(--line); }
.crumbs-bar .crumbs { margin: 0; padding: 16px 0; }
.crumbs-bar [aria-current] { display: inline-block; max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.subnav { position: sticky; top: var(--header-h); z-index: 40; background: #fff; box-shadow: 0 1px 0 var(--line); }
.subnav .wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.subnav a { flex-shrink: 0; padding: 16px 14px; font: 600 .82rem/1 var(--f-title); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); text-decoration: none; border-bottom: 3px solid transparent; }
.subnav a:hover, .subnav a.active { color: var(--blue); border-bottom-color: var(--red); }

/* 15. Liste filtrable ---------------------------------------------------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; margin-bottom: 32px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font: 600 .8rem/1 var(--f-title); letter-spacing: .04em; text-transform: uppercase; color: var(--navy); cursor: pointer; }
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.search { position: relative; flex: 0 1 300px; }
.search input { width: 100%; height: 46px; padding: 0 18px 0 46px; border: 1px solid var(--line); border-radius: 999px; font: 400 .9rem var(--f-body); color: var(--ink); background: #fff; }
.search input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0, 149, 201, .15); }
.search svg { position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--muted); }
.empty { padding: 40px 0; text-align: center; color: var(--muted); }

/* 16. Article (affichage complet) ---------------------------------------- */
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 60; pointer-events: none; }
.read-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--cyan), var(--yellow), var(--red)); }
.article { padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 7vw, 88px); }
.article-wrap { max-width: 860px; margin: 0 auto; }
.article-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-bottom: 18px; }
.article-top .meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .85rem; color: var(--muted); }
.article-top .meta span { display: inline-flex; align-items: center; gap: 6px; }
.article-top .meta svg { width: 15px; height: 15px; color: var(--red); }
.article-title { font-weight: 600; font-size: clamp(1.8rem, 3.8vw, 2.9rem); line-height: 1.12; }
.article-cover { margin: clamp(28px, 4vw, 40px) 0 0; }
.article-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-lg); }
.article-cover figcaption { margin-top: 10px; font-size: .8rem; color: var(--muted); }
.article-layout { display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); margin-top: clamp(32px, 4vw, 48px); }
.share-rail { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.share-rail span { margin-bottom: 4px; font: 600 .66rem/1 var(--f-title); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); writing-mode: vertical-rl; transform: rotate(180deg); }
.share-rail a, .share-rail button { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--blue); cursor: pointer; }
.share-rail a:hover, .share-rail button:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.share-rail svg { width: 18px; height: 18px; }
.prose { font-size: 1.04rem; line-height: 1.8; color: var(--text); }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { margin-top: 1.9em; font-weight: 600; font-size: clamp(1.4rem, 2.4vw, 1.75rem); }
.prose h3 { margin-top: 1.6em; font-size: 1.2rem; }
.prose .lead-text { font-size: 1.18rem; line-height: 1.7; color: var(--ink); }
.prose strong { color: var(--ink); }
.prose a { text-underline-offset: 3px; }
.prose ul, .prose ol { padding: 0; list-style: none; display: grid; gap: 10px; }
.prose .bullets li { position: relative; padding-left: 26px; }
.prose .bullets li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 8px; height: 8px; border-radius: 2px; background: var(--red); transform: rotate(45deg); }
.prose .numbered { counter-reset: n; }
.prose .numbered li { position: relative; padding-left: 44px; counter-increment: n; }
.prose .numbered li::before { content: counter(n); position: absolute; left: 0; top: 0; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--blue); color: #fff; font: 700 .85rem/1 var(--f-title); }
.key-points { padding: clamp(22px, 3vw, 32px); border-radius: var(--r); background: var(--blue-50); border-left: 4px solid var(--blue); }
.key-points h2 { margin: 0 0 16px !important; font-size: 1.25rem !important; }
.article-figure { margin: 2em 0 !important; }
.article-figure img { width: 100%; height: auto; border-radius: var(--r); }
.article-figure figcaption { margin-top: 10px; font-size: .8rem; color: var(--muted); }
.quote { margin: 2em 0 !important; padding: 26px 28px; border-radius: 0 var(--r) var(--r) 0; border-left: 4px solid var(--red); background: var(--paper); }
.quote p { font-style: italic; font-size: 1.08rem; color: var(--navy); }
.quote footer { margin-top: 10px; font-size: .86rem; font-weight: 600; color: var(--red); font-style: italic; }
.files { margin-top: 2.6em !important; padding: clamp(20px, 3vw, 28px); border-radius: var(--r); background: var(--paper); }
.files h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 16px !important; font-size: 1.2rem !important; }
.files h2 svg { width: 20px; height: 20px; color: var(--red); }
.file-list { display: grid; gap: 10px; }
.file { display: flex; align-items: center; gap: 16px; padding: 14px 16px; background: #fff; border-radius: var(--r-sm); box-shadow: 0 0 0 1px var(--line); }
.file-ico { flex-shrink: 0; width: 44px; height: 52px; display: grid; place-items: center; border-radius: 6px; background: var(--red); color: #fff; font: 700 .7rem/1 var(--f-title); letter-spacing: .06em; clip-path: polygon(0 0, 70% 0, 100% 24%, 100% 100%, 0 100%); }
.file-info { flex: 1; min-width: 0; line-height: 1.4; }
.file-info strong { display: block; font-family: var(--f-title); font-size: .95rem; color: var(--navy); overflow-wrap: anywhere; }
.file-info small { font-size: .78rem; color: var(--muted); }
.file .btn { min-height: 42px; padding: 0 18px; font-size: .86rem; }
.article-end { margin-top: 2.6em !important; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.article-end > span { margin-right: 6px; font: 600 .85rem/1 var(--f-title); color: var(--muted); }
.share-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--navy); font: 500 .84rem/1 var(--f-body); text-decoration: none; cursor: pointer; }
.share-btn:hover { border-color: var(--blue); color: var(--blue); }
.share-btn svg { width: 16px; height: 16px; }
.pager { margin-top: 2.2em !important; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pager a { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px; border-radius: var(--r); background: #fff; box-shadow: 0 0 0 1px var(--line); text-decoration: none; transition: box-shadow .2s; }
.pager a:hover { box-shadow: 0 0 0 1px var(--blue); }
.pager .next { text-align: right; align-items: flex-end; }
.pager small { display: inline-flex; align-items: center; gap: 6px; font: 700 .72rem/1 var(--f-title); letter-spacing: .1em; text-transform: uppercase; color: var(--red); }
.pager small svg { width: 14px; height: 14px; }
.pager strong { font-family: var(--f-title); font-size: 1rem; line-height: 1.3; color: var(--navy); }

/* 17. Formulaires (contact unique) --------------------------------------- */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(28px, 4vw, 48px); align-items: start; }
.form-card { padding: clamp(24px, 4vw, 44px); border-radius: var(--r-lg); background: #fff; box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.form-card h2 { font-weight: 600; font-size: 1.7rem; }
.form-card .hint-top { margin: 8px 0 26px; font-size: .88rem; color: var(--muted); }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.field { position: relative; }
.field.full { grid-column: 1 / -1; }
.field > label { display: block; margin-bottom: 7px; font: 600 .86rem/1.3 var(--f-title); color: var(--navy); }
.req { color: var(--red); }
.field input, .field select, .field textarea { width: 100%; padding: 13px 16px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--paper); font: 400 .93rem/1.4 var(--f-body); color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cyan); background: #fff; box-shadow: 0 0 0 3px rgba(0, 149, 201, .15); }
.field textarea { min-height: 150px; resize: vertical; }
.objet-field select { border: 2px solid var(--blue); background: #fff; font-weight: 600; color: var(--navy); }
.objet-hint { margin-top: 10px; padding: 12px 16px; border-radius: var(--r-sm); background: var(--blue-50); border-left: 3px solid var(--cyan); font-size: .86rem; color: var(--navy); }
.dropzone { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px; border: 2px dashed #cfd6e3; border-radius: var(--r); background: var(--paper); text-align: center; color: var(--muted); cursor: pointer; }
.dropzone:hover, .dropzone.over { border-color: var(--cyan); background: #fff; }
.dropzone svg { width: 26px; height: 26px; color: var(--blue); }
.dropzone strong { color: var(--blue); }
.dropzone small { font-size: .76rem; }
.dropzone-list { margin-top: 10px; list-style: none; display: grid; gap: 6px; font-size: .84rem; color: var(--navy); }
.dropzone-list li { padding: 8px 12px; border-radius: 8px; background: var(--blue-50); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .86rem; color: var(--muted); cursor: pointer; }
.consent input { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 3px; accent-color: var(--blue); }
.form-actions { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; }
.side { display: grid; gap: 20px; position: sticky; top: calc(var(--header-h) + 24px); }
.side-card { padding: 26px; border-radius: var(--r); background: #fff; box-shadow: 0 0 0 1px var(--line); }
.side-card h3 { margin-bottom: 14px; font-size: 1.1rem; }
.side-card p { font-size: .88rem; color: var(--muted); }
.side-card.blue { background: var(--blue); box-shadow: none; color: #fff; }
.side-card.blue h3 { color: #fff; }
.side-card .logo-full { width: 100%; height: auto; margin-bottom: 4px; }
.contact-list { list-style: none; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; line-height: 1.5; }
.contact-list svg { flex-shrink: 0; width: 18px; height: 18px; margin-top: 2px; color: var(--yellow); }
.contact-list a { color: #fff; }
.link-list { list-style: none; display: grid; }
.link-list li + li { border-top: 1px solid var(--line); }
.link-list a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 0; font: 600 .92rem/1.3 var(--f-title); color: var(--navy); text-decoration: none; }
.link-list a:hover { color: var(--red); }
.link-list svg { width: 16px; height: 16px; color: var(--red); }

/* 18. L'Agence ----------------------------------------------------------- */
.mvv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.mvv article { padding: 30px; border-radius: var(--r); background: #fff; box-shadow: 0 0 0 1px var(--line); border-top: 5px solid var(--accent, var(--blue)); }
.mvv h3 { margin-bottom: 10px; font-size: 1.3rem; }
.mvv p { font-size: .92rem; color: var(--muted); }
.team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.member { overflow: hidden; border-radius: var(--r); background: #fff; box-shadow: 0 0 0 1px var(--line); }
.member img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: top; }
.member div { padding: 22px; }
.member .role { display: block; margin-bottom: 6px; font: 700 .72rem/1.3 var(--f-title); letter-spacing: .1em; text-transform: uppercase; color: var(--red); }
.member h3 { font-size: 1.25rem; }
.member p { margin-top: 8px; font-size: .88rem; color: var(--muted); }
.timeline { position: relative; display: grid; gap: 28px; padding-left: 34px; border-left: 2px solid var(--line); margin-left: 8px; }
.tl-item { position: relative; }
.tl-item::before { content: ""; position: absolute; left: -44px; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 4px solid var(--blue); }
.tl-item.key::before { border-color: var(--red); }
.tl-date { font: 700 .76rem/1 var(--f-title); letter-spacing: .1em; text-transform: uppercase; color: var(--red); }
.tl-item h3 { margin: 6px 0; font-size: 1.15rem; }
.tl-item p { font-size: .9rem; color: var(--muted); }
.tl-item a { font-size: .88rem; font-weight: 600; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(28px, 5vw, 64px); align-items: start; }
.callout { display: flex; gap: 16px; padding: 22px 24px; border-radius: var(--r); background: var(--blue-50); }
.callout svg { flex-shrink: 0; width: 24px; height: 24px; color: var(--blue); }
.callout strong { display: block; font-family: var(--f-title); color: var(--navy); margin-bottom: 4px; }
.callout p { font-size: .9rem; color: var(--text); }
.callout.warn { background: #fff8d6; }
.callout.warn svg { color: #8a7300; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: s; }
.step { position: relative; padding: 26px 24px 24px; border-radius: var(--r); background: #fff; box-shadow: 0 0 0 1px var(--line); counter-increment: s; }
.step::before { content: counter(s, decimal-leading-zero); display: block; margin-bottom: 10px; font: 700 1.6rem/1 var(--f-title); color: var(--red); }
.step h3 { font-size: 1.1rem; margin-bottom: 6px; }
.step p { font-size: .88rem; color: var(--muted); }

/* 19. Pied de page (charte : ligne tricolore, fond bleu, logo blanc, accès rapide, liens utiles, lettre d'information) */
.footer { position: relative; margin-top: 0; color: #fff; background: var(--blue); overflow: hidden; }
.footer::before { content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background: radial-gradient(circle at 80% 10%, rgba(0, 149, 201, .45), transparent 40%), radial-gradient(circle at 10% 90%, rgba(9, 22, 58, .6), transparent 45%),
  repeating-linear-gradient(115deg, rgba(255, 255, 255, .04) 0 1px, transparent 1px 90px); }
.ligne-etat { position: relative; display: flex; height: 8px; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.ligne-etat i { flex: 1; }
.ligne-etat i:nth-child(1) { background: var(--cyan); }
.ligne-etat i:nth-child(2) { background: var(--yellow); }
.ligne-etat i:nth-child(3) { background: var(--red); }
.footer .wrap { position: relative; }
.footer-main { display: grid; grid-template-columns: 1.25fr 1px 1fr 1fr 1.15fr; gap: 36px; padding: 56px 0 40px; }
.footer-sep { background: rgba(255, 255, 255, .25); }
.footer-brand img { height: 74px; width: auto; margin-bottom: 22px; }
.footer-contact { list-style: none; display: grid; gap: 10px; font-size: .86rem; color: rgba(255, 255, 255, .9); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.5; }
.footer-contact svg { flex-shrink: 0; width: 16px; height: 16px; margin-top: 3px; }
.footer-contact a { color: #fff; text-decoration: none; }
.socials { display: flex; gap: 12px; margin-top: 22px; }
.socials a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--blue); }
.socials a:hover { background: var(--yellow); }
.socials svg { width: 18px; height: 18px; }
.footer h4 { margin-bottom: 18px; font-weight: 600; font-size: 1.05rem; color: #fff; }
.footer ul.links { list-style: none; display: grid; gap: 9px; }
.footer ul.links a { font-size: .9rem; color: rgba(255, 255, 255, .88); text-decoration: none; }
.footer ul.links a:hover { color: var(--yellow); }
.newsletter p { margin-bottom: 14px; font-size: .86rem; color: rgba(255, 255, 255, .8); }
.newsletter input { width: 100%; height: 48px; padding: 0 22px; border: 0; border-radius: 999px; font: 500 .9rem var(--f-body); color: var(--ink); }
.newsletter .btn { width: 100%; margin-top: 12px; }
.footer-bottom { padding: 20px 0 26px; border-top: 1px solid rgba(255, 255, 255, .18); text-align: center; font: 500 .84rem/1.5 var(--f-title); color: rgba(255, 255, 255, .85); }
.footer-bottom a { color: #fff; text-decoration: none; }
.footer-bottom a:hover { text-decoration: underline; }

/* 20. Repères de maquette ------------------------------------------------ */
.zone-note { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin: -12px 0 24px; font-size: .74rem; color: var(--muted); }
.zone-note span { padding: 3px 8px; border-radius: 6px; background: var(--yellow); color: var(--navy); font: 700 .66rem/1.3 var(--f-title); letter-spacing: .08em; text-transform: uppercase; }
.mock-index { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.mock-index a { display: block; padding: 24px; border-radius: var(--r); background: #fff; box-shadow: 0 0 0 1px var(--line); text-decoration: none; transition: box-shadow .2s; }
.mock-index a:hover { box-shadow: 0 0 0 1px var(--blue), var(--shadow); }
.mock-index .num { font: 700 .8rem/1 var(--f-title); color: var(--red); }
.mock-index h3 { margin: 10px 0 6px; font-size: 1.15rem; }
.mock-index p { font-size: .86rem; color: var(--muted); }

/* 21. Adaptations -------------------------------------------------------- */
@media (max-width: 1180px) {
  :root { --header-h: 80px; }
  .brand img { height: 52px; }
  .burger { display: grid; }
  .menu { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px var(--gutter) 20px; background: #fff; box-shadow: 0 20px 30px -20px rgba(13, 36, 89, .4); }
  .menu.open { display: flex; }
  .menu a { padding: 14px 16px; border-radius: var(--r-sm); font-size: .9rem; }
  .header-tools { margin-left: auto; }
  .grid.cols-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .eco.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-main { grid-template-columns: 1.2fr 1px 1fr 1fr; }
  .newsletter { grid-column: 1 / -1; max-width: 520px; }
}
@media (max-width: 960px) {
  .grid, .grid.cols-4, .eco, .mvv, .team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .principles, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 0; }
  .step-col:nth-child(3) { border-left: 0; padding-left: 0; }
  .intro, .split, .two-col, .contact-layout, .hero-grid { grid-template-columns: 1fr; }
  .side { position: static; }
  .article-layout { grid-template-columns: 1fr; }
  .share-rail { display: none; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-sep { display: none; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .grid, .grid.cols-4, .eco, .eco.cols-4, .mvv, .team, .team.cols-2, .principles, .steps, .fields, .mock-index { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .step-col { border-left: 0; padding-left: 0; }
  .slide { aspect-ratio: 4 / 5; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .search { flex-basis: auto; }
  .pager { grid-template-columns: 1fr; }
  .pager .next { text-align: left; align-items: flex-start; }
  .file { flex-wrap: wrap; }
  .file .btn { width: 100%; }
  .footer-main { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .slide-img { transform: none; }
}

/* 22. Compléments --------------------------------------------------------- */
.h-display { font-weight: 600; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.field > label.dropzone { display: flex; margin: 0; font: 400 .88rem/1.5 var(--f-body); color: var(--muted); }
.field > label.consent { display: flex; margin: 0; font: 400 .86rem/1.5 var(--f-body); color: var(--muted); }
.mock-link { display: inline-block; margin-left: 10px; padding: 3px 10px; border-radius: 999px; background: var(--yellow); color: var(--navy) !important; font-weight: 700; }

/* 23. Recherche : fenêtre (popup) ---------------------------------------- */
body.search-lock { overflow: hidden; }
.search-overlay { position: fixed; inset: 0; z-index: 300; background: rgba(9, 22, 58, .55); backdrop-filter: blur(6px); overflow-y: auto; opacity: 0; transition: opacity .25s; }
.search-overlay.open { opacity: 1; }
.search-overlay[hidden] { display: none; }
.search-panel { background: #fff; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .5); transform: translateY(-24px); transition: transform .3s ease; }
.search-overlay.open .search-panel { transform: none; }
.search-panel::before { content: ""; display: block; height: 6px; background: linear-gradient(90deg, var(--cyan) 0 33.3%, var(--yellow) 33.3% 66.6%, var(--red) 66.6%); }
.search-panel .wrap { max-width: calc(980px + 2 * var(--gutter)); padding-top: 26px; padding-bottom: 30px; }
.search-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.search-kicker { font: 600 .82rem/1 var(--f-title); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.search-close { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--navy); cursor: pointer; }
.search-close:hover { background: var(--red); border-color: var(--red); color: #fff; }
.search-close svg { width: 20px; height: 20px; }
.search-bar { position: relative; display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 54px; border: 2px solid var(--blue); border-radius: 999px; background: #fff; transition: box-shadow .2s; }
.search-bar:focus-within { box-shadow: 0 0 0 5px rgba(0, 149, 201, .18); }
.search-bar > svg { position: absolute; left: 20px; top: 50%; width: 22px; height: 22px; transform: translateY(-50%); color: var(--blue); }
.search-bar input[type="search"] { flex: 1; min-width: 0; height: 52px; border: 0; outline: 0; background: transparent; font: 500 1.08rem var(--f-body); color: var(--ink); }
.search-bar input::-webkit-search-cancel-button { cursor: pointer; }
.search-bar .btn { flex-shrink: 0; }
.search-scope { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.search-scope span { margin-right: 4px; font-size: .84rem; color: var(--muted); }
.search-scope .chip { padding: 8px 14px; font-size: .74rem; }
.search-live { margin-top: 20px; }
.search-live:empty { display: none; }
.live-list { list-style: none; display: grid; gap: 4px; }
.live-item a { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 10px 12px; border-radius: var(--r-sm); text-decoration: none; }
.live-item a:hover, .live-item a:focus-visible, .live-item.is-active a { background: var(--blue-50); }
.live-item img { width: 72px; height: 48px; object-fit: cover; border-radius: 8px; }
.live-item strong { display: block; font: 700 .98rem/1.3 var(--f-title); color: var(--navy); }
.live-item small { display: block; margin-top: 3px; font-size: .78rem; color: var(--muted); }
.live-item .tag { font-size: .66rem; }
.live-item time { font-size: .78rem; color: var(--muted); white-space: nowrap; }
.live-all { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.live-all a { font: 600 .9rem/1 var(--f-title); color: var(--red); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.live-all svg { width: 16px; height: 16px; }
.live-empty { padding: 18px 4px; color: var(--muted); font-size: .92rem; }
mark { padding: 0 2px; border-radius: 3px; background: rgba(255, 242, 75, .75); color: inherit; }
.search-suggest { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.search-suggest h3 { margin-bottom: 12px; font: 600 .8rem/1 var(--f-title); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.search-suggest .chip, .no-results .chip, .search-start .chip { text-decoration: none; text-transform: none; letter-spacing: 0; font-size: .86rem; }
.search-overlay.has-query .search-suggest { display: none; }
.search-help { margin-top: 20px; font-size: .76rem; color: var(--muted); }
kbd { display: inline-block; padding: 2px 7px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; background: var(--paper); font: 600 .72rem/1.4 var(--f-body); color: var(--navy); }

/* 24. Recherche : page de résultats -------------------------------------- */
.search-bar.big { max-width: 860px; margin: 0 auto 28px; }
.search-page .zone-note { margin: 0 0 32px; }
.search-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(28px, 4vw, 48px); align-items: start; }
.facets { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 22px; }
.facet { padding: 20px; border-radius: var(--r); background: #fff; box-shadow: 0 0 0 1px var(--line); }
.facet h2 { margin-bottom: 12px; font: 600 .8rem/1 var(--f-title); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.facet ul { list-style: none; display: grid; gap: 2px; }
.facet a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 8px; font-size: .9rem; color: var(--navy); text-decoration: none; }
.facet a:hover { background: var(--blue-50); }
.facet a.active { background: var(--blue); color: #fff; }
.facet a.empty-facet { opacity: .4; pointer-events: none; }
.facet .count { min-width: 26px; padding: 2px 8px; border-radius: 999px; background: var(--paper); font: 600 .74rem/1.4 var(--f-title); color: var(--muted); text-align: center; }
.facet a.active .count { background: rgba(255, 255, 255, .2); color: #fff; }
.facet-reset { font: 600 .86rem/1 var(--f-title); color: var(--red); }
.results-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.results-count { font-size: .98rem; color: var(--muted); }
.results-count strong { color: var(--navy); font-family: var(--f-title); font-size: 1.1rem; }
.sort { display: inline-flex; align-items: center; gap: 10px; font-size: .86rem; color: var(--muted); }
.sort select { height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; font: 500 .86rem var(--f-body); color: var(--navy); }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.active-filters:empty { display: none; }
.filter-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 8px 6px 14px; border-radius: 999px; background: var(--blue-50); font: 600 .78rem/1 var(--f-title); color: var(--blue); border: 0; cursor: pointer; }
.filter-pill svg { width: 14px; height: 14px; }
.filter-pill:hover { background: var(--red); color: #fff; }
.result-list { list-style: none; margin-top: 8px; }
.result { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 22px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.result-img { display: block; aspect-ratio: 3 / 2; border-radius: var(--r-sm); overflow: hidden; background: var(--paper); }
.result-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.result:hover .result-img img { transform: scale(1.05); }
.result-path { font-size: .78rem; color: var(--muted); margin-bottom: 6px; }
.result-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-bottom: 6px; }
.result-meta time { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--muted); }
.result-meta time svg { width: 14px; height: 14px; color: var(--red); }
.result-type { padding: 3px 8px; border-radius: 6px; background: var(--paper); font: 600 .7rem/1.3 var(--f-title); letter-spacing: .06em; text-transform: uppercase; color: var(--slate); }
.result h3 { font-size: 1.18rem; line-height: 1.3; }
.result h3 a { color: var(--navy); text-decoration: none; }
.result h3 a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.result p { margin-top: 8px; font-size: .9rem; line-height: 1.65; color: var(--text); }
.pager-num { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 32px; }
.pager-num:empty { display: none; }
.pager-num button { min-width: 42px; height: 42px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font: 600 .88rem/1 var(--f-title); color: var(--navy); cursor: pointer; }
.pager-num button:hover { border-color: var(--blue); }
.pager-num button[aria-current="page"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.pager-num button:disabled { opacity: .4; cursor: default; }
.no-results, .search-start { padding: 48px 24px; text-align: center; }
.no-results-ico { display: inline-grid; place-items: center; width: 72px; height: 72px; margin-bottom: 16px; border-radius: 50%; background: var(--blue-50); color: var(--blue); }
.no-results-ico svg { width: 32px; height: 32px; }
.no-results h2, .search-start h2 { font-weight: 600; font-size: 1.6rem; }
.no-results p, .search-start p { margin: 10px 0 18px; color: var(--muted); }
.bullets-plain { list-style: none; display: grid; gap: 6px; margin-bottom: 22px; font-size: .9rem; color: var(--text); }
.no-results .chips, .search-start .chips { justify-content: center; }

@media (max-width: 960px) {
  .search-layout { grid-template-columns: 1fr; }
  .facets { position: static; grid-template-columns: 1fr 1fr; }
  .search-suggest { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .search-bar { padding-left: 46px; }
  .search-bar > svg { left: 16px; }
  .search-bar .btn { padding: 0 16px; }
  .search-bar input[type="search"] { height: 46px; font-size: 1rem; }
  .facets { grid-template-columns: 1fr; }
  .result { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; }
  .result p { display: none; }
  .live-item a { grid-template-columns: 56px minmax(0, 1fr); }
  .live-item img { width: 56px; height: 40px; }
  .live-item time { display: none; }
  .search-help { display: none; }
}
.facet li:has(> .empty-facet) { display: none; }
.facets-wrap > summary { display: none; }
.facets-wrap { position: sticky; top: calc(var(--header-h) + 24px); }
.facets-wrap .facets { position: static; }
@media (max-width: 960px) {
  .facets-wrap { position: static; }
  .facets-wrap > summary { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-radius: var(--r); background: #fff; box-shadow: 0 0 0 1px var(--line); font: 600 .9rem/1 var(--f-title); color: var(--navy); cursor: pointer; list-style: none; }
  .facets-wrap > summary::-webkit-details-marker { display: none; }
  .facets-wrap > summary svg { width: 18px; height: 18px; color: var(--red); }
  .facets-wrap[open] > summary { margin-bottom: 14px; }
}
.team.cols-2 { grid-template-columns: repeat(2, minmax(0, 340px)); justify-content: center; }

/* 25. Questions fréquentes ------------------------------------------------ */
.qa-list { display: grid; gap: 12px; }
.qa-list.narrow { max-width: 900px; margin: 0 auto; }
.qa { border-radius: var(--r); background: #fff; box-shadow: 0 0 0 1px var(--line); transition: box-shadow .2s; scroll-margin-top: calc(var(--header-h) + 24px); }
.qa:hover { box-shadow: 0 0 0 1px #cfd6e3; }
.qa[open] { box-shadow: 0 0 0 2px var(--blue), var(--shadow); }
.qa summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 24px; cursor: pointer; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa-q { font: 600 1.06rem/1.4 var(--f-title); color: var(--navy); }
.qa[open] .qa-q { color: var(--blue); }
.qa-ico { position: relative; flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--blue-50); transition: background .2s, transform .3s; }
.qa-ico::before, .qa-ico::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px; background: var(--blue); transition: transform .3s; }
.qa-ico::after { transform: rotate(90deg); }
.qa[open] .qa-ico { background: var(--red); transform: rotate(180deg); }
.qa[open] .qa-ico::before { background: #fff; }
.qa[open] .qa-ico::after { transform: rotate(0); background: #fff; }
.qa-a { padding: 0 24px 22px; font-size: .97rem; line-height: 1.75; }
.qa-a > * + * { margin-top: .8em; }
.qa-a .bullets, .qa-a .numbered { gap: 6px; }
.qa-a .numbered li { padding-left: 38px; }
.qa-a .numbered li::before { width: 26px; height: 26px; font-size: .78rem; }
.qa-link { font-size: .8rem; }
.qa-link a { color: var(--muted); }
.qa.hit { box-shadow: 0 0 0 2px var(--yellow), var(--shadow); }
.faq-search { margin-bottom: 20px; }
.faq-page .zone-note { margin: 0 0 32px; }
.faq-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.faq-nav { position: sticky; top: calc(var(--header-h) + 24px); padding: 20px; border-radius: var(--r); background: #fff; box-shadow: 0 0 0 1px var(--line); }
.faq-nav h2 { margin-bottom: 12px; font: 600 .8rem/1 var(--f-title); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.faq-nav ul { list-style: none; display: grid; gap: 2px; }
.faq-nav a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 10px; border-radius: 8px; font-size: .9rem; color: var(--navy); text-decoration: none; }
.faq-nav a:hover { background: var(--blue-50); }
.faq-nav a.active { background: var(--blue); color: #fff; }
.faq-nav .count { min-width: 26px; padding: 2px 8px; border-radius: 999px; background: var(--paper); font: 600 .74rem/1.4 var(--f-title); color: var(--muted); text-align: center; }
.faq-nav a.active .count { background: rgba(255, 255, 255, .2); color: #fff; }
.faq-tools { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.faq-tools .btn { width: 100%; min-height: 42px; font-size: .86rem; }
.faq-count { margin-bottom: 8px; font-size: .9rem; color: var(--muted); }
.faq-count:empty { display: none; }
.qa-group { scroll-margin-top: calc(var(--header-h) + 24px); }
.qa-group + .qa-group { margin-top: 44px; }
.qa-group h2 { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font-weight: 600; font-size: clamp(1.3rem, 2vw, 1.6rem); }
.qa-group h2::before { content: ""; width: 6px; height: 1.1em; border-radius: 3px; background: linear-gradient(180deg, var(--cyan) 0 33.3%, var(--yellow) 33.3% 66.6%, var(--red) 66.6%); }
.qa-group[hidden], .qa[hidden] { display: none; }
.faq-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; margin-top: 48px; padding: clamp(24px, 3vw, 36px); border-radius: var(--r-lg); background: var(--blue); color: #fff; }
.faq-cta h2 { color: #fff; font-weight: 600; font-size: 1.4rem; }
.faq-cta p { margin-top: 6px; color: rgba(255, 255, 255, .82); font-size: .92rem; }
.faq-cta-btns { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 960px) {
  .faq-layout { grid-template-columns: 1fr; }
  .faq-nav { position: static; }
  .faq-nav ul { display: flex; flex-wrap: wrap; gap: 6px; }
  .faq-nav a { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: .84rem; }
}
@media (max-width: 600px) {
  .qa summary { padding: 16px 18px; }
  .qa-a { padding: 0 18px 18px; }
  .qa-q { font-size: 1rem; }
}
.qa-files { list-style: none; display: grid; gap: 8px; margin-top: 1.1em !important; }
.qa-files a { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-radius: var(--r-sm); background: var(--paper); text-decoration: none; transition: background .2s; }
.qa-files a:hover { background: var(--blue-50); }
.qa-files .file-ico { width: 34px; height: 40px; font-size: .62rem; }
.qa-file-name { flex: 1; min-width: 0; font: 600 .88rem/1.35 var(--f-title); color: var(--navy); overflow-wrap: anywhere; }
.qa-file-name small { display: block; font: 400 .74rem/1.4 var(--f-body); color: var(--muted); }
.qa-file-dl { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; font: 600 .84rem/1 var(--f-title); color: var(--blue); }
.qa-file-dl svg { width: 16px; height: 16px; }
@media (max-width: 600px) { .qa-file-dl { font-size: 0; } .qa-file-dl svg { width: 20px; height: 20px; } }
