/* ==========================================================================
   ERSF — feuille de style du site
   ========================================================================== */

@font-face {
  font-family: "ERSF Sans";
  src: url("../fonts/ersf-sans.woff2") format("woff2-variations"), url("../fonts/ersf-sans.woff2") format("woff2");
  font-weight: 300 800;
  font-style: oblique 0deg 12deg;
  font-display: swap;
}

:root {
  --brand: #b5004b;
  --brand-dark: #8f003b;
  --brand-darker: #6e002d;
  --brand-tint: #c94e80;
  --brand-soft: #fbedf3;
  --brand-softer: #fdf6f9;
  --ink: #142133;
  --ink-2: #33414f;
  --muted: #5f6b78;
  --line: #e3e6eb;
  --line-strong: #cdd2d9;
  --bg: #ffffff;
  --bg-soft: #f4f5f7;
  --bg-softer: #f9fafb;
  --navy: #0f1b2a;
  --navy-2: #182638;
  --success: #12704a;
  --success-soft: #e6f4ee;
  --warning: #9a5b00;
  --warning-soft: #fff4e0;
  --danger: #b42318;
  --danger-soft: #fdecea;
  --info: #1f4f8a;
  --info-soft: #e9f1fb;
  --radius-s: 6px;
  --radius: 10px;
  --radius-l: 16px;
  --shadow-s: 0 1px 2px rgba(20, 33, 51, .06), 0 1px 3px rgba(20, 33, 51, .06);
  --shadow: 0 4px 12px rgba(20, 33, 51, .07), 0 1px 3px rgba(20, 33, 51, .05);
  --shadow-l: 0 18px 40px rgba(20, 33, 51, .12), 0 4px 12px rgba(20, 33, 51, .06);
  --container: 1240px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "ERSF Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--bg);
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.no-scroll { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.015em; }
h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.1rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.55rem, 1.2rem + 1.3vw, 2.2rem); }
h3 { font-size: 1.22rem; letter-spacing: -.01em; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
strong { color: var(--ink); font-weight: 650; }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

.icon { width: 1.25em; height: 1.25em; flex: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius-s); font-weight: 600;
}
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 860px; }

/* ---------- Barre de progression et chargement ---------- */

.progress-bar {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 300;
  background: var(--brand); transform-origin: 0 50%; transform: scaleX(0); opacity: 0;
  transition: transform .4s var(--ease), opacity .3s;
}
.progress-bar.is-active { opacity: 1; transform: scaleX(.7); transition: transform 6s cubic-bezier(.1, .7, .1, 1), opacity .2s; }
.progress-bar.is-done { opacity: 0; transform: scaleX(1); transition: transform .25s, opacity .4s .2s; }

.page-loader {
  position: fixed; inset: 0; z-index: 290; display: grid; place-items: center;
  background: rgba(255, 255, 255, .82); backdrop-filter: blur(2px);
  opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
}
.page-loader.is-visible { opacity: 1; visibility: visible; }
.page-loader__inner { display: grid; justify-items: center; gap: 18px; }
.page-loader .logo { width: 92px; }
.page-loader__track { width: 120px; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.page-loader__track span { display: block; width: 40%; height: 100%; background: var(--brand); border-radius: 3px; animation: track 1s var(--ease) infinite; }
@keyframes track { from { transform: translateX(-100%); } to { transform: translateX(260%); } }

.spinner {
  width: 1.1em; height: 1.1em; border-radius: 50%; flex: none;
  border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.skeleton, .media:not(.is-loaded) {
  background: linear-gradient(100deg, var(--bg-soft) 30%, #eceef1 50%, var(--bg-soft) 70%) 0 0 / 300% 100%;
  animation: shimmer 1.4s linear infinite;
}
@keyframes shimmer { to { background-position: -150% 0; } }

/* ---------- Boutons ---------- */

.btn {
  --btn-bg: var(--brand); --btn-fg: #fff; --btn-bd: var(--brand);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: 0 22px; border-radius: var(--radius-s);
  background: var(--btn-bg); color: var(--btn-fg); border: 1.5px solid var(--btn-bd);
  font: inherit; font-size: .98rem; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .18s, border-color .18s, color .18s, box-shadow .18s, transform .18s;
}
.btn:hover { --btn-bg: var(--brand-dark); --btn-bd: var(--brand-dark); color: var(--btn-fg); }
.btn:active { transform: translateY(1px); }
.btn .icon { width: 1.15em; height: 1.15em; }
.btn-secondary { --btn-bg: #fff; --btn-fg: var(--brand); --btn-bd: var(--brand); }
.btn-secondary:hover { --btn-bg: var(--brand-soft); --btn-fg: var(--brand-dark); --btn-bd: var(--brand-dark); }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line-strong); }
.btn-ghost:hover { --btn-bg: var(--bg-soft); --btn-fg: var(--ink); --btn-bd: var(--ink); }
.btn-white { --btn-bg: #fff; --btn-fg: var(--brand); --btn-bd: #fff; }
.btn-white:hover { --btn-bg: var(--brand-soft); --btn-fg: var(--brand-dark); --btn-bd: var(--brand-soft); }
.btn-outline-white { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, .7); }
.btn-outline-white:hover { --btn-bg: rgba(255, 255, 255, .12); --btn-fg: #fff; --btn-bd: #fff; }
.btn-danger { --btn-bg: var(--danger); --btn-bd: var(--danger); }
.btn-danger:hover { --btn-bg: #8f1c13; --btn-bd: #8f1c13; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: .9rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-loading { pointer-events: none; opacity: .8; }
.btn.is-loading .icon { display: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .4em; font-weight: 600; text-decoration: none; color: var(--brand);
}
.link-arrow .icon { transition: transform .2s var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- Bandeau d'information ---------- */

.alert-bar { background: var(--info-soft); color: var(--info); font-size: .92rem; border-bottom: 1px solid #d5e3f4; }
.alert-bar.is-warning { background: var(--warning-soft); color: var(--warning); border-color: #f5dfb7; }
.alert-bar.is-brand { background: var(--brand-soft); color: var(--brand-darker); border-color: #f3d3e1; }
.alert-bar .container { display: flex; align-items: center; gap: 10px; min-height: 44px; padding-top: 8px; padding-bottom: 8px; }
.alert-bar p { margin: 0; flex: 1; }
.alert-bar a { color: inherit; font-weight: 650; white-space: nowrap; }

/* ---------- En-tête ---------- */

.topbar { background: var(--navy); color: #c9d1db; font-size: .84rem; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; min-height: 38px; gap: 16px; }
.topbar a { color: #dfe5ec; text-decoration: none; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar__links { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.topbar__note { display: flex; align-items: center; gap: 8px; }
.topbar__note .icon { width: 15px; height: 15px; color: var(--brand-tint); }

.site-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.site-header.is-scrolled { box-shadow: var(--shadow); }
.header-inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex: none; }
.brand .logo { width: 84px; height: auto; }
.brand__text { display: grid; line-height: 1.15; border-left: 1px solid var(--line); padding-left: 12px; }
.brand__text strong { font-size: .86rem; font-weight: 650; color: var(--ink); letter-spacing: .01em; }
.brand__text span { font-size: .76rem; color: var(--muted); }

.main-nav { flex: 1; height: 100%; }
.main-nav__list { display: flex; height: 100%; margin: 0; padding: 0; list-style: none; gap: 4px; }
.main-nav__item { display: flex; align-items: stretch; }
.main-nav__trigger {
  position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 0 14px;
  font: inherit; font-size: .98rem; font-weight: 600; color: var(--ink); background: none; border: 0; cursor: pointer; text-decoration: none;
}
.main-nav__trigger .icon { width: 16px; height: 16px; color: var(--muted); transition: transform .2s var(--ease); }
.main-nav__trigger::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0;
  background: var(--brand); transform: scaleX(0); transition: transform .2s var(--ease);
}
.main-nav__trigger:hover, .main-nav__trigger[aria-expanded="true"], .main-nav__trigger.is-current { color: var(--brand); }
.main-nav__trigger[aria-expanded="true"] .icon { transform: rotate(180deg); color: var(--brand); }
.main-nav__trigger[aria-expanded="true"]::after, .main-nav__trigger.is-current::after { transform: scaleX(1); }

.mega {
  position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid var(--line);
  box-shadow: 0 24px 40px rgba(20, 33, 51, .12); opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s, transform .18s var(--ease), visibility .18s;
}
.mega.is-open { opacity: 1; visibility: visible; transform: none; }
.mega__inner { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 40px; padding: 36px 24px 40px; }
.mega__intro h2 { font-size: 1.5rem; margin-bottom: .4em; }
.mega__intro p { color: var(--muted); font-size: .96rem; }
.mega__links { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 20px; list-style: none; margin: 0; padding: 0; align-content: start; }
.mega__link { display: flex; gap: 14px; padding: 12px; border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: background-color .15s; }
.mega__link:hover { background: var(--bg-soft); color: var(--ink); }
.mega__link .icon-box { width: 40px; height: 40px; }
.mega__link strong { display: block; font-size: .98rem; margin-bottom: 2px; }
.mega__link span { display: block; font-size: .86rem; color: var(--muted); line-height: 1.4; }
.mega__link:hover strong { color: var(--brand); }
.mega__feature {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px;
  padding: 24px; border-radius: var(--radius-l); background: var(--brand); color: #fff; min-height: 220px; text-decoration: none;
}
.mega__feature::before {
  content: ""; position: absolute; width: 220px; height: 150px; right: -60px; top: -40px; border-radius: 40px;
  background: var(--brand-tint); transform: rotate(-8deg); opacity: .65;
}
.mega__feature > * { position: relative; }
.mega__feature strong { color: #fff; font-size: 1.15rem; }
.mega__feature p { margin: 0; color: rgba(255, 255, 255, .88); font-size: .92rem; }
.mega__feature .link-arrow { color: #fff; margin-top: 6px; }
.mega__feature:hover { color: #fff; background: var(--brand-dark); }

.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-s);
  border: 1px solid transparent; background: none; color: var(--ink); cursor: pointer; text-decoration: none;
}
.icon-btn:hover { background: var(--bg-soft); color: var(--brand); }
.icon-btn .icon { width: 22px; height: 22px; }
.account-btn { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; padding: 4px 12px 4px 4px; border-radius: 999px; border: 1px solid var(--line); }
.account-btn:hover { border-color: var(--brand); color: var(--brand); }
.avatar { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; font-size: .8rem; font-weight: 700; letter-spacing: .02em; flex: none; }
.avatar.lg { width: 56px; height: 56px; font-size: 1.1rem; }
.menu-toggle { display: none; }

.search-panel { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid var(--line); box-shadow: var(--shadow-l); padding: 28px 0; display: none; }
.search-panel.is-open { display: block; }
.search-form { display: flex; gap: 10px; }
.search-form .field-input { flex: 1; min-height: 54px; font-size: 1.05rem; }

/* Navigation mobile */
.mobile-nav { display: none; }

/* ---------- Icônes encadrées ---------- */

.icon-box { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); flex: none; }
.icon-box .icon { width: 22px; height: 22px; }
.icon-box.lg { width: 60px; height: 60px; border-radius: 14px; }
.icon-box.lg .icon { width: 28px; height: 28px; }
.icon-box.navy { background: #e8ecf2; color: var(--ink); }
.icon-box.white { background: rgba(255, 255, 255, .14); color: #fff; }

/* ---------- Accueil ---------- */

.hero { position: relative; overflow: hidden; background: var(--bg-softer); border-bottom: 1px solid var(--line); }
.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding: 64px 24px 112px; }
.hero__kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); font-size: .85rem; font-weight: 600; }
.hero__kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.hero h1 { margin-bottom: 20px; max-width: 16ch; }
.hero__lead { font-size: 1.15rem; color: var(--ink-2); max-width: 54ch; margin-bottom: 30px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__visual { position: relative; }
.hero__visual::before {
  content: ""; position: absolute; inset: 8% -10% -6% 10%; border-radius: 48px; background: var(--brand-soft); transform: rotate(-6deg);
}
.hero__visual::after {
  content: ""; position: absolute; width: 46%; height: 34%; left: -6%; bottom: -8%; border-radius: 32px; background: var(--brand); transform: rotate(-6deg); opacity: .92;
}
.hero__image { position: relative; z-index: 1; border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 3.3; box-shadow: var(--shadow-l); }
.hero__image img { width: 100%; height: 100%; object-fit: cover; }
.hero__caption {
  position: absolute; z-index: 2; right: 18px; bottom: 18px; display: flex; align-items: center; gap: 10px; max-width: 280px;
  padding: 12px 16px; border-radius: var(--radius); background: rgba(255, 255, 255, .95); box-shadow: var(--shadow); font-size: .86rem; color: var(--ink); line-height: 1.35;
}
.hero__caption .icon { color: var(--brand); }

.quick { position: relative; z-index: 3; margin-top: -64px; }
.quick__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.quick__item {
  display: flex; align-items: center; gap: 16px; padding: 22px; background: #fff; border-radius: var(--radius-l);
  box-shadow: var(--shadow); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: transform .2s var(--ease), box-shadow .2s, border-color .2s;
}
.quick__item:hover { transform: translateY(-3px); box-shadow: var(--shadow-l); border-color: #f0c9d9; color: var(--ink); }
.quick__item strong { display: block; font-size: 1.02rem; line-height: 1.25; }
.quick__item span { display: block; font-size: .86rem; color: var(--muted); line-height: 1.35; margin-top: 2px; }
.quick__item > .icon { margin-left: auto; color: var(--brand); width: 20px; height: 20px; transition: transform .2s var(--ease); }
.quick__item:hover > .icon { transform: translateX(3px); }

.section { padding: 88px 0; }
.section.tight { padding: 56px 0; }
.section.soft { background: var(--bg-soft); }
.section.navy { background: var(--navy); color: #c6cfda; }
.section.navy h2, .section.navy h3 { color: #fff; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 8px 0 0; color: var(--muted); max-width: 62ch; }
.kicker { display: inline-block; margin-bottom: 10px; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.section.navy .kicker { color: #f08bb5; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Cartes d'actualité */
.news-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l);
  overflow: hidden; text-decoration: none; color: inherit; transition: box-shadow .2s, transform .2s var(--ease), border-color .2s; height: 100%;
}
.news-card:hover { box-shadow: var(--shadow-l); transform: translateY(-3px); border-color: transparent; color: inherit; }
.news-card .media { aspect-ratio: 16 / 9; overflow: hidden; }
.news-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease), opacity .3s; }
.news-card:hover .media img { transform: scale(1.03); }
.news-card__body { display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 24px; flex: 1; }
.news-card h3 { margin: 0; font-size: 1.15rem; line-height: 1.3; }
.news-card:hover h3 { color: var(--brand); }
.news-card p { margin: 0; color: var(--muted); font-size: .95rem; }
.news-card__foot { margin-top: auto; padding-top: 8px; }
.news-card.is-large { flex-direction: row; grid-column: span 2; }
.news-card.is-large .media { aspect-ratio: auto; flex: 1.1; min-height: 320px; }
.news-card.is-large .news-card__body { flex: 1; padding: 32px; justify-content: center; }
.news-card.is-large h3 { font-size: 1.55rem; }

.media img { opacity: 0; }
.media.is-loaded img { opacity: 1; }

.placeholder-art {
  position: relative; width: 100%; height: 100%; min-height: 100%; background: var(--brand); display: grid; place-items: center; overflow: hidden;
}
.placeholder-art::before, .placeholder-art::after { content: ""; position: absolute; border-radius: 36px; background: var(--brand-tint); opacity: .55; transform: rotate(-8deg); }
.placeholder-art::before { width: 55%; height: 60%; right: -12%; top: -18%; }
.placeholder-art::after { width: 45%; height: 40%; left: -10%; bottom: -16%; }
.placeholder-art .logo { position: relative; z-index: 1; width: 30%; max-width: 120px; }
.placeholder-art.is-navy { background: var(--navy-2); }
.placeholder-art.is-navy::before, .placeholder-art.is-navy::after { background: #2c3e56; }

.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: .84rem; color: var(--muted); }
.meta .icon { width: 15px; height: 15px; }
.meta span { display: inline-flex; align-items: center; gap: 6px; }

.tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .78rem; font-weight: 650; letter-spacing: .01em;
  background: var(--bg-soft); color: var(--ink-2); line-height: 1.35;
}
.tag.brand { background: var(--brand-soft); color: var(--brand-dark); }
.tag.navy { background: var(--navy); color: #fff; }
.tag.success { background: var(--success-soft); color: var(--success); }
.tag.warning { background: var(--warning-soft); color: var(--warning); }
.tag.danger { background: var(--danger-soft); color: var(--danger); }
.tag.info { background: var(--info-soft); color: var(--info); }
.tag .icon { width: 13px; height: 13px; }

/* Liste de communiqués */
.press-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.press-item { display: grid; grid-template-columns: 92px 1fr auto; gap: 24px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); }
.press-date { text-align: center; padding: 10px 6px; border-radius: var(--radius); background: var(--bg-soft); color: var(--ink); line-height: 1.1; }
.press-date strong { display: block; font-size: 1.6rem; font-weight: 700; }
.press-date span { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-top: 4px; }
.press-item h3 { margin: 6px 0 4px; font-size: 1.12rem; }
.press-item h3 a { color: var(--ink); text-decoration: none; }
.press-item h3 a:hover { color: var(--brand); }
.press-item p { margin: 0; font-size: .94rem; color: var(--muted); }

/* Cartes génériques */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); padding: 28px; }
.card h3 { margin-bottom: .45em; }
.card p:last-child { margin-bottom: 0; }
.card.soft { background: var(--bg-softer); }
.card.link-card { display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: inherit; transition: box-shadow .2s, transform .2s var(--ease), border-color .2s; }
.card.link-card:hover { box-shadow: var(--shadow-l); transform: translateY(-3px); border-color: transparent; color: inherit; }
.card.link-card:hover h3 { color: var(--brand); }
.card.link-card p { color: var(--muted); margin: 0; }
.card.link-card .link-arrow { margin-top: auto; }

.feature-list { display: grid; gap: 14px; list-style: none; margin: 0; padding: 0; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; }
.feature-list .icon { color: var(--brand); margin-top: .2em; }

/* Chiffres et repères */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius-l); background: #fff; overflow: hidden; }
.fact { padding: 28px; border-right: 1px solid var(--line); }
.fact:last-child { border-right: 0; }
.fact strong { display: block; font-size: 1.9rem; line-height: 1.1; color: var(--brand); font-weight: 700; letter-spacing: -.02em; margin-bottom: 6px; }
.fact span { display: block; color: var(--muted); font-size: .94rem; line-height: 1.4; }

/* Bandeau d'appel */
.cta-band { position: relative; overflow: hidden; background: var(--brand); color: #fff; border-radius: 24px; padding: 56px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
.cta-band::before { content: ""; position: absolute; width: 380px; height: 260px; right: -80px; top: -110px; border-radius: 60px; background: var(--brand-tint); opacity: .6; transform: rotate(-8deg); }
.cta-band::after { content: ""; position: absolute; width: 260px; height: 170px; right: 180px; bottom: -120px; border-radius: 44px; background: var(--brand-tint); opacity: .45; transform: rotate(-8deg); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { color: rgba(255, 255, 255, .9); margin: 0; font-size: 1.06rem; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }

/* Valeurs */
.value-card { padding: 28px; border-radius: var(--radius-l); background: #fff; border: 1px solid var(--line); height: 100%; }
.value-card .icon-box { margin-bottom: 18px; }
.value-card h3 { margin-bottom: 8px; }
.value-card p { margin: 0; color: var(--muted); font-size: .97rem; }
.section.navy .value-card { background: var(--navy-2); border-color: #26364b; }
.section.navy .value-card p { color: #aab6c4; }

/* ---------- Pages intérieures ---------- */

.page-head { position: relative; overflow: hidden; background: var(--bg-softer); border-bottom: 1px solid var(--line); padding: 28px 0 52px; }
.page-head::after { content: ""; position: absolute; width: 420px; height: 280px; right: -120px; top: -90px; border-radius: 64px; background: var(--brand-soft); transform: rotate(-8deg); }
.page-head .container { position: relative; z-index: 1; }
.page-head h1 { margin: 18px 0 14px; max-width: 22ch; }
.page-head .lead { font-size: 1.15rem; max-width: 62ch; color: var(--ink-2); margin: 0; }
.page-head .meta { margin-top: 18px; }

.breadcrumb { font-size: .86rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.breadcrumb li { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.breadcrumb li + li::before { content: ""; width: 6px; height: 6px; border-right: 1.5px solid var(--line-strong); border-top: 1.5px solid var(--line-strong); transform: rotate(45deg); margin-right: 4px; }
.breadcrumb a { color: var(--ink-2); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand); text-decoration: underline; }

.with-side { display: grid; grid-template-columns: 270px 1fr; gap: 64px; padding: 56px 24px 96px; align-items: start; }
.side-nav { position: sticky; top: calc(var(--header-h) + 24px); }
.side-nav__title { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px 14px; }
.side-nav ul { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.side-nav a { display: block; padding: 10px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink-2); text-decoration: none; font-size: .96rem; font-weight: 500; }
.side-nav a:hover { color: var(--brand); background: var(--bg-softer); }
.side-nav a[aria-current="page"] { color: var(--brand); border-left-color: var(--brand); font-weight: 650; background: var(--brand-softer); }
.side-help { margin-top: 28px; padding: 20px; border-radius: var(--radius-l); background: var(--bg-soft); font-size: .92rem; }
.side-help strong { display: block; margin-bottom: 6px; }
.side-help p { color: var(--muted); margin-bottom: 12px; }

.page-body { padding-top: 56px; padding-bottom: 96px; }

.prose { max-width: 72ch; }
.prose h2 { margin-top: 1.8em; font-size: clamp(1.4rem, 1.15rem + .8vw, 1.75rem); }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--brand); }
.prose blockquote { margin: 1.6em 0; padding: 18px 24px; border-left: 4px solid var(--brand); background: var(--brand-softer); border-radius: 0 var(--radius) var(--radius) 0; color: var(--ink); font-size: 1.08rem; }
.prose blockquote p:last-child { margin: 0; }
.lead-text { font-size: 1.2rem; color: var(--ink); line-height: 1.55; }

.content-stack > * + * { margin-top: 48px; }

.callout { display: flex; gap: 16px; padding: 20px 22px; border-radius: var(--radius-l); background: var(--info-soft); color: var(--info); }
.callout .icon { margin-top: 2px; width: 22px; height: 22px; }
.callout p { margin: 0; color: var(--ink-2); }
.callout strong { color: var(--ink); }
.callout.warning { background: var(--warning-soft); color: var(--warning); }
.callout.brand { background: var(--brand-soft); color: var(--brand); }
.callout.success { background: var(--success-soft); color: var(--success); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.top { align-items: start; }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 23px; top: 10px; bottom: 10px; width: 2px; background: var(--line); }
.timeline li { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: 20px; padding-bottom: 32px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline .step-num { position: relative; z-index: 1; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #fff; border: 2px solid var(--brand); color: var(--brand); font-weight: 700; }
.timeline h3 { margin: 10px 0 6px; }
.timeline p { margin: 0; color: var(--muted); }

.people { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.person { display: flex; gap: 18px; align-items: center; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-l); background: #fff; }
.person .avatar { width: 64px; height: 64px; font-size: 1.25rem; }
.person strong { display: block; font-size: 1.1rem; }
.person span { color: var(--muted); font-size: .94rem; }

.doc-list { display: grid; gap: 12px; list-style: none; margin: 0; padding: 0; }
.doc-item { display: flex; align-items: center; gap: 18px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius-l); background: #fff; transition: border-color .2s, box-shadow .2s; }
.doc-item:hover { border-color: #efc5d7; box-shadow: var(--shadow); }
.doc-item__body { flex: 1; min-width: 0; }
.doc-item h3 { font-size: 1.04rem; margin: 0 0 4px; }
.doc-item p { margin: 0 0 6px; font-size: .92rem; color: var(--muted); }

.accordion { border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 4px; cursor: pointer; list-style: none; font-weight: 650; color: var(--ink); font-size: 1.06rem; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary .icon { color: var(--brand); transition: transform .2s var(--ease); }
.accordion details[open] summary .icon { transform: rotate(180deg); }
.accordion summary:hover { color: var(--brand); }
.accordion .answer { padding: 0 4px 22px; color: var(--ink-2); max-width: 70ch; }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.tabs a { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); text-decoration: none; font-size: .92rem; font-weight: 600; }
.tabs a:hover { border-color: var(--brand); color: var(--brand); }
.tabs a[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.pager { display: flex; justify-content: center; gap: 6px; margin-top: 48px; }
.pager a, .pager span { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border-radius: var(--radius-s); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; }
.pager a:hover { border-color: var(--brand); color: var(--brand); }
.pager [aria-current="page"] { background: var(--brand); border-color: var(--brand); color: #fff; }

.empty { text-align: center; padding: 56px 24px; border: 1px dashed var(--line-strong); border-radius: var(--radius-l); color: var(--muted); }
.empty .icon-box { margin: 0 auto 16px; }
.empty h3 { margin-bottom: 6px; }

/* Article */
.article-hero { margin: -24px 0 40px; border-radius: var(--radius-l); overflow: hidden; aspect-ratio: 16 / 7; }
.article-hero img { width: 100%; height: 100%; object-fit: cover; }
.article-layout { display: grid; grid-template-columns: 1fr 300px; gap: 64px; align-items: start; }
.article-aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 16px; }
.share-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Formulaires ---------- */

.form { display: grid; gap: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; }
.field-label { font-weight: 650; color: var(--ink); font-size: .95rem; }
.field-label .req { color: var(--brand); margin-left: 2px; }
.field-hint { font-size: .86rem; color: var(--muted); margin-top: -2px; }
.field-input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line-strong); border-radius: var(--radius-s); transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.55; }
.field select { appearance: none; padding-right: 42px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23142133' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; }
.field-input:hover, .field select:hover, .field textarea:hover { border-color: #aab2bd; }
.field-input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(181, 0, 75, .15); }
.field.has-error .field-input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.field-error { display: flex; align-items: center; gap: 6px; color: var(--danger); font-size: .88rem; font-weight: 550; }
.field-error .icon { width: 16px; height: 16px; }
.password-wrap { position: relative; }
.password-wrap .field-input { padding-right: 52px; }
.password-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 44px; height: 42px; display: grid; place-items: center; background: none; border: 0; color: var(--muted); cursor: pointer; border-radius: var(--radius-s); }
.password-toggle:hover { color: var(--brand); }
.password-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 2px; }
.password-meter span { height: 4px; border-radius: 4px; background: var(--line); transition: background-color .2s; }
.password-meter[data-score="1"] span:nth-child(-n+1) { background: var(--danger); }
.password-meter[data-score="2"] span:nth-child(-n+2) { background: #d97706; }
.password-meter[data-score="3"] span:nth-child(-n+3) { background: #65a30d; }
.password-meter[data-score="4"] span { background: var(--success); }

.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: .95rem; line-height: 1.5; }
.check input { appearance: none; flex: none; width: 22px; height: 22px; margin: 1px 0 0; border: 1.5px solid var(--line-strong); border-radius: 5px; background: #fff; cursor: pointer; display: grid; place-items: center; transition: background-color .15s, border-color .15s; }
.check input:checked { background: var(--brand); border-color: var(--brand); }
.check input:checked::after { content: ""; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.check input:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: var(--radius); font-size: .95rem; }
.notice .icon { margin-top: 2px; }
.notice p { margin: 0; }
.notice.success { background: var(--success-soft); color: var(--success); }
.notice.error { background: var(--danger-soft); color: var(--danger); }
.notice.info { background: var(--info-soft); color: var(--info); }
.notice.warning { background: var(--warning-soft); color: var(--warning); }
.notice p, .notice span { color: var(--ink-2); }

.flash-stack { position: fixed; z-index: 250; right: 20px; top: calc(var(--header-h) + 52px); display: grid; gap: 10px; width: min(420px, calc(100vw - 40px)); }
.flash { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--info); box-shadow: var(--shadow-l); font-size: .95rem; color: var(--ink); animation: flash-in .35s var(--ease); }
.flash.success { border-left-color: var(--success); }
.flash.success .icon { color: var(--success); }
.flash.error { border-left-color: var(--danger); }
.flash.error .icon { color: var(--danger); }
.flash.info .icon { color: var(--info); }
.flash p { margin: 0; flex: 1; }
.flash button { background: none; border: 0; padding: 2px; color: var(--muted); cursor: pointer; }
.flash.is-leaving { opacity: 0; transform: translateX(16px); transition: opacity .3s, transform .3s; }
@keyframes flash-in { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- Authentification ---------- */

.auth { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - var(--header-h) - 38px); }
.auth__aside { position: relative; overflow: hidden; background: var(--brand); color: #fff; padding: 64px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.auth__aside::before { content: ""; position: absolute; width: 460px; height: 320px; right: -160px; top: -110px; border-radius: 72px; background: var(--brand-tint); opacity: .6; transform: rotate(-8deg); }
.auth__aside::after { content: ""; position: absolute; width: 340px; height: 220px; left: -110px; bottom: -90px; border-radius: 56px; background: var(--brand-tint); opacity: .45; transform: rotate(-8deg); }
.auth__aside > * { position: relative; z-index: 1; }
.auth__aside h2 { color: #fff; font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.3rem); max-width: 18ch; }
.auth__aside p { color: rgba(255, 255, 255, .9); max-width: 46ch; }
.auth__aside .feature-list .icon { color: #fff; }
.auth__aside .feature-list li { color: rgba(255, 255, 255, .95); }
.auth__main { display: flex; align-items: center; justify-content: center; padding: 56px 24px; background: #fff; }
.auth__box { width: 100%; max-width: 440px; }
.auth__box h1 { font-size: 2rem; margin-bottom: 8px; }
.auth__box > p { color: var(--muted); margin-bottom: 28px; }
.auth__alt { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); text-align: center; color: var(--muted); font-size: .95rem; }
.auth__alt a { font-weight: 650; }
.field-inline { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: .9rem; }

/* ---------- Espace personnel ---------- */

.account { display: grid; grid-template-columns: 280px 1fr; gap: 40px; padding: 40px 24px 96px; align-items: start; }
.account-side { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 16px; }
.account-card { display: flex; align-items: center; gap: 14px; padding: 20px; border-radius: var(--radius-l); background: var(--navy); color: #fff; }
.account-card strong { display: block; color: #fff; line-height: 1.25; }
.account-card .tag { margin-top: 6px; background: rgba(255, 255, 255, .14); color: #fff; }
.account-nav { display: grid; gap: 2px; padding: 8px; border: 1px solid var(--line); border-radius: var(--radius-l); background: #fff; }
.account-nav a, .account-nav button { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: var(--radius); color: var(--ink-2); text-decoration: none; font: inherit; font-size: .96rem; font-weight: 550; background: none; border: 0; cursor: pointer; width: 100%; text-align: left; }
.account-nav a:hover, .account-nav button:hover { background: var(--bg-soft); color: var(--ink); }
.account-nav a[aria-current="page"] { background: var(--brand-soft); color: var(--brand-dark); }
.account-nav .icon { width: 20px; height: 20px; }
.account-nav hr { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; }
.account-main h1 { font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.3rem); margin-bottom: 6px; }
.account-main > .lead { color: var(--muted); margin-bottom: 32px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); padding: 28px; }
.panel + .panel { margin-top: 24px; }
.panel h2 { font-size: 1.25rem; margin-bottom: 4px; }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.panel-head p { margin: 0; color: var(--muted); font-size: .94rem; }
.role-path { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: role; }
.role-step { position: relative; padding: 18px 16px 18px 0; border-top: 3px solid var(--line); }
.role-step.is-done { border-top-color: var(--brand); }
.role-step.is-current { border-top-color: var(--brand); }
.role-step strong { display: flex; align-items: center; gap: 8px; font-size: .98rem; }
.role-step span { display: block; color: var(--muted); font-size: .88rem; margin-top: 4px; }
.role-step .icon { width: 18px; height: 18px; color: var(--line-strong); }
.role-step.is-done .icon, .role-step.is-current .icon { color: var(--brand); }

.status-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 8px 0 4px; }
.status-track div { padding-top: 12px; border-top: 4px solid var(--line); font-size: .86rem; color: var(--muted); font-weight: 550; }
.status-track div.is-done { border-top-color: var(--brand); color: var(--ink); }

.thread { display: grid; gap: 14px; list-style: none; margin: 0 0 20px; padding: 0; }
.thread li { padding: 16px 18px; border-radius: var(--radius); background: var(--bg-soft); }
.thread li.is-staff { background: var(--brand-softer); border: 1px solid #f3d7e3; }
.thread li.is-status { background: #fff; border: 1px dashed var(--line-strong); }
.thread li.is-internal { background: var(--warning-soft); }
.thread__meta { display: flex; justify-content: space-between; gap: 12px; font-size: .84rem; color: var(--muted); margin-bottom: 6px; }
.thread__meta strong { color: var(--ink); font-size: .9rem; }
.thread p { margin: 0; white-space: pre-line; }

.dl { display: grid; grid-template-columns: 200px 1fr; gap: 12px 24px; margin: 0; }
.dl dt { color: var(--muted); font-size: .94rem; }
.dl dd { margin: 0; color: var(--ink); font-weight: 550; }

/* ---------- Pied de page ---------- */

.site-footer { background: var(--navy); color: #aeb9c6; font-size: .95rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 48px; padding: 64px 24px 48px; }
.footer-brand .logo { width: 96px; margin-bottom: 20px; }
.footer-brand p { max-width: 38ch; font-size: .92rem; line-height: 1.6; }
.site-footer h2 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .09em; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: #d6dde6; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { width: 18px; height: 18px; color: #f08bb5; margin-top: 3px; }
.footer-bottom { border-top: 1px solid #22324a; }
.footer-bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 22px; padding-bottom: 22px; font-size: .86rem; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 8px 22px; }

/* ---------- Pages d'erreur et maintenance ---------- */

.error-page { padding: 96px 0; text-align: center; }
.error-page .code { font-size: 5rem; font-weight: 800; color: var(--brand); line-height: 1; letter-spacing: -.04em; margin-bottom: 12px; }
.error-page p { max-width: 52ch; margin: 0 auto 28px; color: var(--muted); }
.error-page .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- Apparition au défilement ---------- */

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Adaptation aux écrans ---------- */

@media (max-width: 1180px) {
  .main-nav__trigger { padding: 0 10px; font-size: .94rem; }
  .brand__text { display: none; }
  .mega__inner { grid-template-columns: 1fr 2fr; }
  .mega__feature { display: none; }
}

@media (max-width: 1024px) {
  :root { --header-h: 68px; }
  .main-nav, .header-actions .account-btn > span:not(.avatar), .header-actions .btn-connect { display: none; }
  .account-btn { padding: 3px; border: 0; }
  .menu-toggle { display: inline-grid; }
  .hero__inner { grid-template-columns: 1fr; gap: 40px; padding-bottom: 104px; }
  .hero__visual { max-width: 640px; }
  .quick__grid { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(2) { border-right: 0; }
  .fact:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .with-side, .account { grid-template-columns: 1fr; gap: 32px; }
  .side-nav, .account-side { position: static; }
  .side-nav ul { display: flex; overflow-x: auto; border-left: 0; border-bottom: 2px solid var(--line); scrollbar-width: none; }
  .side-nav a { white-space: nowrap; border-left: 0; margin-left: 0; border-bottom: 2px solid transparent; margin-bottom: -2px; }
  .side-nav a[aria-current="page"] { border-bottom-color: var(--brand); background: none; }
  .side-nav__title, .side-help { display: none; }
  .article-layout { grid-template-columns: 1fr; }
  .article-aside { position: static; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .cta-band { grid-template-columns: 1fr; padding: 40px; }
  .cta-band .actions { justify-content: flex-start; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .auth { grid-template-columns: 1fr; }
  .auth__aside { display: none; }
  .news-card.is-large { grid-column: span 2; }

  .mobile-nav {
    display: block; position: fixed; inset: var(--header-h) 0 0 0; z-index: 99; background: #fff; overflow-y: auto;
    transform: translateX(100%); visibility: hidden; transition: transform .28s var(--ease), visibility .28s;
  }
  .mobile-nav.is-open { transform: none; visibility: visible; }
  .mobile-nav__inner { padding: 12px 24px 40px; }
  .mobile-nav details { border-bottom: 1px solid var(--line); }
  .mobile-nav summary { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; font-weight: 650; font-size: 1.1rem; color: var(--ink); cursor: pointer; list-style: none; }
  .mobile-nav summary::-webkit-details-marker { display: none; }
  .mobile-nav summary .icon { color: var(--brand); transition: transform .2s; }
  .mobile-nav details[open] summary .icon { transform: rotate(180deg); }
  .mobile-nav ul { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 2px; }
  .mobile-nav li a { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-radius: var(--radius); color: var(--ink-2); text-decoration: none; }
  .mobile-nav li a:hover { background: var(--bg-soft); }
  .mobile-nav li .icon { color: var(--brand); width: 20px; height: 20px; }
  .mobile-nav__direct { display: block; padding: 18px 0; border-bottom: 1px solid var(--line); font-weight: 650; font-size: 1.1rem; color: var(--ink); text-decoration: none; }
  .mobile-nav__actions { display: grid; gap: 10px; margin-top: 24px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .container { padding-left: 16px; padding-right: 16px; }
  .topbar { display: none; }
  .topbar .container { justify-content: center; }
  .header-inner { gap: 12px; }
  .brand .logo { width: 72px; }
  .hero__inner { padding: 40px 16px 96px; }
  .hero__caption { display: none; }
  .quick__grid, .grid-2, .grid-3, .grid-4, .people { grid-template-columns: 1fr; }
  .quick__item { padding: 18px; }
  .section { padding: 64px 0; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .news-card.is-large { grid-column: auto; flex-direction: column; }
  .news-card.is-large .media { min-height: 0; aspect-ratio: 16 / 9; flex: none; }
  .news-card.is-large .news-card__body { padding: 22px; }
  .news-card.is-large h3 { font-size: 1.25rem; }
  .press-item { grid-template-columns: 64px 1fr; gap: 16px; }
  .press-item > :last-child { grid-column: 2; }
  .press-date strong { font-size: 1.3rem; }
  .facts { grid-template-columns: 1fr; }
  .fact { border-right: 0; border-bottom: 1px solid var(--line); }
  .fact:last-child { border-bottom: 0; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; padding: 48px 16px 32px; }
  .with-side { padding: 32px 16px 64px; }
  .account { padding: 24px 16px 64px; }
  .panel, .card { padding: 22px; }
  .cta-band { padding: 32px 24px; border-radius: 18px; }
  .role-path { grid-template-columns: 1fr; }
  .status-track { grid-template-columns: repeat(2, 1fr); }
  .dl { grid-template-columns: 1fr; gap: 4px; }
  .dl dd { margin-bottom: 10px; }
  .doc-item { flex-wrap: wrap; }
  .search-form { flex-direction: column; }
  .flash-stack { right: 12px; left: 12px; width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .topbar, .site-header, .alert-bar, .site-footer, .side-nav, .article-aside, .progress-bar, .page-loader { display: none !important; }
  body { font-size: 12pt; color: #000; }
}

.logo-tile { aspect-ratio: 4 / 3; border-radius: var(--radius); margin-bottom: 16px; }
.logo-tile .logo { width: 46%; }

/* ---------- Compléments ---------- */

.pre-line { white-space: pre-line; }
.auth-logo { width: 110px; }
.maintenance-logo { width: 120px; }
.auth-foot { display: flex; align-items: center; gap: 8px; margin: 0; font-size: .9rem; }
.auth-foot .icon { width: 17px; height: 17px; }
.account-main > .grid { margin-top: 24px; }
.account-main > .grid + .panel { margin-top: 24px; }
.account-main .grid .panel { margin-top: 0; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.account-main .grid .panel h2 { margin: 6px 0 0; }
.account-main .grid .panel p { margin: 0; color: var(--muted); }
.account-main .grid .panel .btn { margin-top: auto; }
.account-main .form > .panel + .panel { margin-top: 0; }
.panel.form h2 { margin-bottom: 0; }
.card h3 .icon { display: inline; vertical-align: -3px; color: var(--brand); margin-right: 4px; }
.card > .icon-box { margin-bottom: 18px; }
.value-card .icon-box.lg { margin-bottom: 18px; }
.content-stack > .hero__actions { margin-top: 32px; }
.split .facts { grid-template-columns: repeat(2, 1fr); }
.split .fact:nth-child(2n) { border-right: 0; }
.split .fact:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
@media (max-width: 720px) {
  .split .facts { grid-template-columns: 1fr; }
  .split .fact { border-right: 0; border-bottom: 1px solid var(--line); }
  .split .fact:last-child { border-bottom: 0; }
}
.placeholder-art.is-soft { background: var(--brand-soft); }
.placeholder-art.is-soft::before, .placeholder-art.is-soft::after { background: #f5d3e1; opacity: .8; }

/* Icônes toujours centrées dans leur cartouche, quel que soit le contexte */
.icon-box, .mega__link .icon-box, .quick__item .icon-box, .stat .icon-box, .person .icon-box {
  display: inline-grid !important; place-items: center; margin: 0; font-size: inherit; color: var(--brand); line-height: 1;
}
.icon-box.navy { color: var(--ink); }
.icon-box.white { color: #fff; }
.icon-box > .icon { display: block; margin: 0; }
.mega__link, .quick__item { align-items: center; }
.mega__link { align-items: flex-start; }
.mega__link > .icon-box { margin-top: 2px; }

/* En-tête : logo seul, barre supérieure alignée à droite */
.topbar .container { justify-content: flex-end; }
.brand .logo { width: auto; height: 46px; }
.page-loader .logo { width: 110px; height: auto; }
.footer-brand .logo { width: 110px; height: auto; }
.placeholder-art .logo { width: 32%; max-width: 140px; height: auto; }
.logo-tile .logo { width: 50%; }
.admin-brand .logo { width: 76px; height: auto; }
.auth-logo, .maintenance-logo { width: 120px; height: auto; }
@media (max-width: 720px) { .brand .logo { height: 40px; } }

/* Logo dans les vignettes sans image : jamais recadré ni étiré */
.news-card .media .placeholder-art img.logo,
.placeholder-art img.logo { width: 34%; max-width: 150px; height: auto; object-fit: contain; transform: none !important; opacity: 1; }
.news-card.is-large .media .placeholder-art img.logo { width: 30%; max-width: 170px; }

/* Photos de profil */
.avatar { overflow: hidden; }
.avatar.has-photo { background: var(--bg-soft); }
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.avatar.xl { width: 96px; height: 96px; font-size: 1.7rem; }
.avatar-edit { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.avatar-edit__actions { display: grid; gap: 10px; justify-items: start; flex: 1; min-width: 220px; }
.avatar-edit__actions .field-hint { margin: 0; }
.avatar-edit label.btn { cursor: pointer; }
.avatar-edit input[type="file"]:focus-visible + .check, .avatar-edit label.btn:focus-within { outline: 3px solid var(--brand); outline-offset: 2px; }

/* Publication à la une : pleine largeur, bannière au format paysage */
.news-card.is-featured { grid-column: 1 / -1; flex-direction: row; }
.news-card.is-featured .media { flex: 0 0 62%; aspect-ratio: 16 / 9; }
.news-card.is-featured .news-card__body { flex: 1; padding: 36px 40px; justify-content: center; gap: 14px; }
.news-card.is-featured h3 { font-size: clamp(1.35rem, 1rem + 1vw, 1.8rem); line-height: 1.25; }
.news-card.is-featured p { font-size: 1rem; }
.news-card.is-featured .news-card__foot { margin-top: 8px; }
.news-card.is-featured:hover .media img { transform: scale(1.015); }
@media (max-width: 1024px) {
  .news-card.is-featured .media { flex-basis: 55%; }
  .news-card.is-featured .news-card__body { padding: 28px; }
}
@media (max-width: 720px) {
  .news-card.is-featured { flex-direction: column; }
  .news-card.is-featured .media { flex: none; width: 100%; }
  .news-card.is-featured .news-card__body { padding: 22px; }
}

/* Colonnes de contenu : jamais plus larges que l'écran */
.with-side, .account { grid-template-columns: 270px minmax(0, 1fr); }
.account { grid-template-columns: 280px minmax(0, 1fr); }
.with-side > *, .account > *, .article-layout > *, .split > *, .grid > * { min-width: 0; }
.prose, .doc-item__body, .news-card__body { overflow-wrap: break-word; }

@media (max-width: 1024px) {
  .with-side, .account { grid-template-columns: minmax(0, 1fr); }
  .page-body { padding-top: 40px; padding-bottom: 72px; }
}

@media (max-width: 720px) {
  .page-body { padding-top: 28px; padding-bottom: 56px; }
  .page-head { padding: 20px 0 32px; }
  .page-head h1 { margin: 12px 0 10px; }
  .page-head .lead { font-size: 1.04rem; }
  .content-stack > * + * { margin-top: 32px; }
  .side-nav { margin: 0 -16px; padding: 0 16px; }

  /* Filtres : une seule ligne défilante, plus compacte */
  .tabs { flex-wrap: nowrap; overflow-x: auto; gap: 6px; margin: 0 -16px 24px; padding: 2px 16px 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs a { flex: none; padding: 7px 13px; font-size: .86rem; white-space: nowrap; }

  .doc-item { align-items: flex-start; gap: 14px; padding: 16px; }
  .doc-item > .icon-box { width: 40px; height: 40px; }
  .doc-item > .btn { width: 100%; }
  .meta { gap: 6px 10px; }
  .article-hero { margin: 0 0 24px; border-radius: var(--radius); }
  .lead-text { font-size: 1.08rem; }
}
