/* ==========================================================================
   Croix Blanche de l'Aisne — feuille de style
   ========================================================================== */

:root {
  --navy-900: #061a3a;
  --navy: #0b2c63;
  --blue: #1f5bb8;
  --sky: #eaf1fb;
  --red: #d7141f;
  --red-600: #b50f18;
  --yellow: #f2c230;

  --ink: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f6f8fc;
  --white: #ffffff;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgb(15 23 42 / .06), 0 2px 8px rgb(15 23 42 / .05);
  --shadow: 0 10px 30px -12px rgb(11 44 99 / .25);
  --shadow-lg: 0 30px 60px -20px rgb(6 26 58 / .35);

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 76px;

  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(2.3rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.25rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
svg { flex-shrink: 0; }

:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 12px; color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section { padding-block: clamp(64px, 9vw, 112px); }
.section--white { background: var(--white); }
.section--tight { padding-block: clamp(48px, 6vw, 72px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--red); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 3px; background: currentColor; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 62ch; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--split { max-width: none; display: flex; flex-wrap: wrap; gap: 20px; align-items: end; justify-content: space-between; }
.section-head--split > div { max-width: 640px; }

/* ---------- Boutons ---------- */
.btn {
  --b: var(--navy);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; border: 2px solid var(--b);
  background: var(--b); color: #fff;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn svg { width: 20px; height: 20px; transition: transform .2s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn--red { --b: var(--red); }
.btn--red:hover { background: var(--red-600); border-color: var(--red-600); }
.btn--ghost { background: transparent; color: var(--navy); }
.btn--ghost:hover { background: var(--navy); }
.btn--light { --b: #fff; color: var(--navy); }
.btn--light:hover { color: var(--navy); }
.btn--outline-light { background: transparent; border-color: rgb(255 255 255 / .55); color: #fff; }
.btn--outline-light:hover { background: rgb(255 255 255 / .12); border-color: #fff; }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: .92rem; }
.btn--block { width: 100%; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; color: var(--navy); }
.link-arrow svg { width: 18px; height: 18px; transition: transform .2s ease; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- En-tête ---------- */
.tricolor { height: 4px; background: linear-gradient(90deg, var(--navy) 0 33.3%, #fff 33.3% 66.6%, var(--red) 66.6%); }
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(255 255 255 / .9);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand img { width: 50px; height: 50px; }
.brand-name { display: block; font-weight: 800; font-size: 1.05rem; line-height: 1.1; letter-spacing: -.01em; }
.brand-sub { display: block; font-size: .78rem; color: var(--muted); font-weight: 500; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative; padding: 10px 14px; border-radius: 999px;
  font-weight: 600; font-size: .98rem; color: var(--ink); text-decoration: none;
  transition: background .2s ease, color .2s ease;
}
.nav a:hover { background: var(--sky); color: var(--navy); }
.nav a[aria-current="page"] { color: var(--navy); background: var(--sky); }
.header-cta { display: flex; gap: 10px; align-items: center; }

.nav-toggle {
  display: none; width: 46px; height: 46px; border-radius: 12px;
  border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-open { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .header-cta .btn--member { display: none; }
  .nav {
    position: fixed; inset: calc(var(--header-h) + 4px) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 16px var(--gutter) 24px; background: #fff;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: transform .25s ease, opacity .25s ease, visibility .25s;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav a { padding: 14px 16px; font-size: 1.05rem; border-radius: 12px; }
  .nav .nav-member { display: flex; margin-top: 8px; }
  .nav-open .nav { transform: none; opacity: 1; visibility: visible; }
}
@media (min-width: 961px) { .nav .nav-member { display: none; } }
@media (max-width: 480px) {
  .brand img { width: 42px; height: 42px; }
  .brand-name { font-size: .98rem; }
  .header-cta .btn--contact { display: none; }
}

/* ---------- Héros (accueil) ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(88vh, 760px); display: flex; align-items: center;
  color: #fff; background: var(--navy-900);
}
.hero__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 30% 35%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgb(6 26 58 / .94) 0%, rgb(6 26 58 / .82) 40%, rgb(11 44 99 / .35) 75%, rgb(11 44 99 / .15) 100%),
    linear-gradient(0deg, rgb(6 26 58 / .55), transparent 40%);
}
.hero__content { padding-block: 96px 140px; max-width: 720px; }
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: #fff; background: linear-gradient(transparent 62%, rgb(215 20 31 / .85) 62% 92%, transparent 92%); padding-inline: 4px; }
.hero p { font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: rgb(255 255 255 / .88); max-width: 56ch; margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.badge-agree {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px;
  padding: 8px 16px 8px 8px; border-radius: 999px;
  background: rgb(255 255 255 / .1); border: 1px solid rgb(255 255 255 / .22);
  backdrop-filter: blur(6px); font-size: .9rem; font-weight: 600;
}
.badge-agree span.dot {
  width: 28px; height: 28px; border-radius: 50%; background: #f28c1a;
  display: grid; place-items: center;
}
.badge-agree span.dot::after { content: ""; width: 0; height: 0; border-left: 8px solid transparent; border-right: 8px solid transparent; border-bottom: 13px solid #1d3f91; transform: translateY(-1px); }

/* Bandeau chiffres */
/* Autant de colonnes égales que de chiffres (2, 3 ou 4) : rien à modifier si on en ajoute ou en retire un. */
.stats {
  position: relative; z-index: 2; margin-top: -72px;
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden;
}
.stat { padding: 28px 24px; display: flex; gap: 16px; align-items: center; justify-content: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--sky); color: var(--navy); }
.stat__icon svg { width: 26px; height: 26px; }
.stat__value { font-size: 1.9rem; font-weight: 800; color: var(--ink); line-height: 1; letter-spacing: -.02em; }
.stat__label { font-size: .92rem; color: var(--muted); margin-top: 4px; line-height: 1.3; }
.stat--accent .stat__icon { background: var(--red); color: #fff; }
.stat--accent .stat__value { color: var(--red); }
@media (max-width: 960px) {
  .stat { padding: 22px 18px; gap: 12px; }
  .stat__value { font-size: 1.6rem; }
}
/* Téléphone : un chiffre par ligne */
@media (max-width: 700px) {
  .stats { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: 1fr; margin-top: -48px; }
  .stat { justify-content: flex-start; padding: 18px 20px; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- Cartes missions ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 960px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-3 { grid-template-columns: 1fr; } }

.card {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card__icon {
  width: 56px; height: 56px; border-radius: 16px; margin-bottom: 22px;
  display: grid; place-items: center; color: #fff; background: var(--navy);
}
.card__icon svg { width: 28px; height: 28px; }
.card__icon--red { background: var(--red); }
.card__icon--blue { background: var(--blue); }
.card p { color: var(--muted); margin-bottom: 0; }
.card .link-arrow { margin-top: 18px; }

/* ---------- Présentation ---------- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.split--reverse > :first-child { order: 2; }
@media (max-width: 900px) { .split, .split--reverse { grid-template-columns: 1fr; } .split--reverse > :first-child { order: 0; } }

.media-stack { position: relative; padding: 0 0 36px 36px; }
.media-stack__main { border-radius: 24px; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; box-shadow: var(--shadow-lg); }
.media-stack::before {
  content: ""; position: absolute; left: 0; bottom: 0; width: 70%; height: 70%;
  border-radius: 24px; background: repeating-linear-gradient(-45deg, var(--sky) 0 10px, transparent 10px 20px);
  z-index: -1;
}
.motto {
  position: absolute; right: -12px; bottom: 0; background: var(--red); color: #fff;
  padding: 20px 26px; border-radius: 18px; box-shadow: var(--shadow-lg);
}
.motto strong { display: block; font-size: 1.8rem; letter-spacing: .08em; line-height: 1; }
.motto span { font-size: .85rem; opacity: .9; }
@media (max-width: 900px) { .media-stack { max-width: 460px; margin-inline: auto; } .motto { right: 0; } }

.checklist { list-style: none; padding: 0; margin: 24px 0 32px; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; }
.checklist svg { width: 24px; height: 24px; color: var(--red); margin-top: 2px; }
.checklist strong { color: var(--ink); }

/* ---------- Actualités ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 960px) { .news-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .news-grid { grid-template-columns: 1fr; } }

.news-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit;
  transition: transform .25s ease, box-shadow .25s ease;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: inherit; }
.news-card__media { position: relative; aspect-ratio: 16 / 10; background: linear-gradient(135deg, var(--navy), var(--blue)); overflow: hidden; }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.news-card:hover .news-card__media img { transform: scale(1.05); }
.news-card__media .placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: rgb(255 255 255 / .5); }
.news-card__media .placeholder svg { width: 56px; height: 56px; }
.tag {
  display: inline-block; padding: 5px 12px; border-radius: 999px;
  font-size: .76rem; font-weight: 700; letter-spacing: .02em;
  background: var(--sky); color: var(--navy);
}
.news-card__media .tag { position: absolute; top: 14px; left: 14px; background: #fff; box-shadow: var(--shadow-sm); }
.tag--secourisme { color: var(--red-600); background: #fdecee; }
.tag--evenements { color: #7a4b00; background: #fff4d6; }
.news-card__media .tag--secourisme, .news-card__media .tag--evenements { background: #fff; }
.news-card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.news-card__date { font-size: .85rem; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.news-card__date svg { width: 16px; height: 16px; }
.news-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.news-card p { color: var(--muted); font-size: .97rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-card .link-arrow { margin-top: auto; padding-top: 18px; font-size: .95rem; }

/* Mise en avant (premier article) */
@media (min-width: 961px) {
  .news-grid--featured .news-card:first-child { grid-column: span 2; flex-direction: row; }
  .news-grid--featured .news-card:first-child .news-card__media { aspect-ratio: auto; flex: 1.2; min-height: 100%; }
  .news-grid--featured .news-card:first-child .news-card__body { flex: 1; padding: 32px; justify-content: center; }
  .news-grid--featured .news-card:first-child h3 { font-size: 1.6rem; }
}

.toolbar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 32px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font: inherit; font-size: .92rem; font-weight: 600; cursor: pointer;
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--text); transition: all .2s ease;
}
.chip:hover { border-color: var(--navy); color: var(--navy); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.search { position: relative; flex: 0 1 320px; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.search input { width: 100%; padding-left: 42px !important; border-radius: 999px !important; }
.empty { text-align: center; padding: 56px 20px; background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }

/* ---------- En-tête de page intérieure ---------- */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden; color: #fff;
  background: radial-gradient(1200px 400px at 85% -10%, rgb(31 91 184 / .55), transparent 60%), var(--navy-900);
  padding-block: clamp(64px, 9vw, 104px) clamp(56px, 7vw, 88px);
}
.page-hero::after {
  content: ""; position: absolute; right: -80px; bottom: -120px; width: 380px; height: 380px; z-index: -1;
  background:
    linear-gradient(var(--red), var(--red)) center / 34% 100% no-repeat,
    linear-gradient(var(--red), var(--red)) center / 100% 34% no-repeat;
  opacity: .12; transform: rotate(-12deg); border-radius: 20px;
}
.page-hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 14px; }
.page-hero p { color: rgb(255 255 255 / .82); font-size: 1.2rem; max-width: 60ch; margin: 0; }
.page-hero .eyebrow { color: #ff8a90; }
.breadcrumb { display: flex; gap: 8px; font-size: .9rem; margin-bottom: 18px; color: rgb(255 255 255 / .7); }
.breadcrumb a { color: rgb(255 255 255 / .85); text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }

/* ---------- Formations ---------- */
.path { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; position: relative; }
.path::before { content: ""; position: absolute; top: 27px; left: 12%; right: 12%; height: 3px; background: linear-gradient(90deg, var(--navy), var(--blue), var(--red)); border-radius: 3px; }
.path__step { position: relative; text-align: center; padding: 0 12px; }
.path__num {
  counter-increment: step; width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: 1.15rem;
  background: #fff; color: var(--navy); border: 3px solid var(--navy); position: relative;
}
.path__num::before { content: counter(step); }
.path__step:last-child .path__num { background: var(--red); border-color: var(--red); color: #fff; }
.path__step h3 { font-size: 1.05rem; margin-bottom: 4px; }
.path__step p { font-size: .92rem; color: var(--muted); margin: 0; }
@media (max-width: 760px) {
  .path { grid-template-columns: 1fr; gap: 22px; }
  .path::before { top: 10px; bottom: 10px; left: 27px; right: auto; width: 3px; height: auto; background: linear-gradient(180deg, var(--navy), var(--blue), var(--red)); }
  .path__step { display: grid; grid-template-columns: 56px 1fr; gap: 0 18px; text-align: left; padding: 0; }
  .path__num { margin: 0; grid-row: span 2; }
}

.course {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; transition: transform .25s ease, box-shadow .25s ease;
}
.course:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.course__top { padding: 26px 28px 0; display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.course__code { font-size: 2rem; font-weight: 800; color: var(--navy); letter-spacing: -.03em; line-height: 1; }
.course__body { padding: 14px 28px 0; flex: 1; }
.course__body h3 { font-size: 1.12rem; margin-bottom: 8px; }
.course__body p { color: var(--muted); font-size: .97rem; }
.course__meta { list-style: none; padding: 0; margin: 0 0 6px; display: grid; gap: 8px; font-size: .93rem; }
.course__meta li { display: flex; gap: 10px; align-items: flex-start; }
.course__meta svg { width: 18px; height: 18px; color: var(--blue); margin-top: 3px; }
.course__foot { padding: 20px 28px 26px; }
.course--accent { border-top: 4px solid var(--red); }

.notice {
  display: flex; gap: 14px; align-items: flex-start; padding: 18px 22px; border-radius: 14px;
  background: var(--sky); color: var(--navy); font-size: .97rem;
}
.notice svg { width: 22px; height: 22px; margin-top: 2px; }
.notice p { margin: 0; }

/* ---------- Bandeau d'appel ---------- */
.cta-band {
  display: grid; grid-template-columns: 1fr 1fr; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg);
}
.cta-band > div { padding: clamp(32px, 5vw, 56px); color: #fff; }
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
.cta-band p { color: rgb(255 255 255 / .85); margin-bottom: 28px; }
.cta-band__a { background: linear-gradient(140deg, var(--navy) 0%, var(--blue) 100%); }
.cta-band__b { background: linear-gradient(140deg, var(--red) 0%, #8f0a12 100%); }
.cta-band .cta-icon { width: 52px; height: 52px; border-radius: 14px; background: rgb(255 255 255 / .14); display: grid; place-items: center; margin-bottom: 20px; }
.cta-band .cta-icon svg { width: 26px; height: 26px; }
@media (max-width: 800px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: 380px 1fr; gap: 32px; align-items: start; }
@media (max-width: 960px) { .contact-layout { grid-template-columns: 1fr; } }
.info-panel { background: var(--navy-900); color: #fff; border-radius: var(--radius); padding: 32px; position: sticky; top: calc(var(--header-h) + 24px); }
@media (max-width: 960px) { .info-panel { position: static; } }
.info-panel h2 { color: #fff; font-size: 1.4rem; }
.info-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 20px; }
.info-list li { display: flex; gap: 14px; }
.info-list .ico { width: 44px; height: 44px; border-radius: 12px; background: rgb(255 255 255 / .1); display: grid; place-items: center; flex-shrink: 0; }
.info-list .ico svg { width: 22px; height: 22px; }
.info-list small { display: block; color: rgb(255 255 255 / .6); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.info-list a, .info-list span { color: #fff; text-decoration: none; font-weight: 600; word-break: break-word; }
.info-list a:hover { text-decoration: underline; }
.hours { border-top: 1px solid rgb(255 255 255 / .15); padding-top: 22px; }
.hours h3 { color: #fff; font-size: 1rem; display: flex; gap: 8px; align-items: center; }
.hours h3 svg { width: 18px; height: 18px; }
.hours dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; font-size: .95rem; }
.hours dt { color: rgb(255 255 255 / .65); }
.hours dd { margin: 0; text-align: right; font-weight: 600; }
.map-link { margin-top: 24px; }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); }
.form-card h2 { font-size: 1.6rem; }
.subjects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 10px 0 28px; border: 0; padding: 0; }
.subjects legend { font-weight: 700; color: var(--ink); margin-bottom: 12px; padding: 0; }
@media (max-width: 560px) { .subjects { grid-template-columns: 1fr; } }
.subject { position: relative; }
.subject input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.subject label {
  display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 14px;
  border: 2px solid var(--line); cursor: pointer; transition: all .2s ease; height: 100%;
}
.subject label .ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--sky); color: var(--navy); flex-shrink: 0; transition: all .2s ease; }
.subject label .ico svg { width: 22px; height: 22px; }
.subject label strong { display: block; color: var(--ink); line-height: 1.25; }
.subject label span.d { font-size: .87rem; color: var(--muted); line-height: 1.3; }
.subject input:hover + label { border-color: #b8c6dc; }
.subject input:focus-visible + label { outline: 3px solid var(--yellow); outline-offset: 2px; }
.subject input:checked + label { border-color: var(--navy); background: #f3f7fd; }
.subject input:checked + label .ico { background: var(--navy); color: #fff; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; color: var(--ink); font-size: .95rem; margin-bottom: 6px; }
.field .req { color: var(--red); }
.field .hint { font-size: .85rem; color: var(--muted); margin-top: 6px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="date"], input[type="datetime-local"], input[type="number"], input[type="search"], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
textarea { min-height: 150px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgb(31 91 184 / .15); }
.conditional { display: none; }
.conditional.is-visible { display: contents; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; color: var(--muted); }
.consent input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--navy); flex-shrink: 0; }
.form-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 8px; }
.form-status { border-radius: 12px; padding: 14px 18px; font-weight: 600; display: none; }
.form-status.is-ok { display: block; background: #e8f7ee; color: #116b3a; }
.form-status.is-error { display: block; background: #fdecee; color: var(--red-600); }

/* ---------- Article ---------- */
.article-hero { background: var(--navy-900); color: #fff; padding-block: clamp(48px, 7vw, 80px) clamp(140px, 18vw, 220px); }
.article-hero h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.2rem); max-width: 22ch; }
.article-meta { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; color: rgb(255 255 255 / .75); font-size: .95rem; }
.article-meta span { display: inline-flex; gap: 8px; align-items: center; }
.article-meta svg { width: 18px; height: 18px; }
.article-cover { margin-top: clamp(-200px, -16vw, -120px); }
.article-cover img { width: 100%; max-height: 560px; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow-lg); }
.prose { max-width: 720px; margin-inline: auto; font-size: 1.1rem; }
.prose h2, .prose h3 { margin-top: 1.8em; }
.prose h3 { font-size: 1.35rem; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--red); }
.prose strong { color: var(--ink); }
.prose img { border-radius: 14px; margin-block: 1.5em; }
.article-foot { max-width: 720px; margin: 48px auto 0; padding-top: 28px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--navy-900); color: rgb(255 255 255 / .75); padding-top: clamp(56px, 7vw, 80px); font-size: .97rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.footer-brand img { width: 56px; height: 56px; background: #fff; border-radius: 50%; padding: 3px; }
.footer-brand strong { color: #fff; display: block; font-size: 1.1rem; }
.site-footer h3 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: rgb(255 255 255 / .8); 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 svg { width: 18px; height: 18px; margin-top: 4px; color: #ff8a90; }
.social { display: flex; gap: 10px; margin-top: 20px; }
.social a { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgb(255 255 255 / .08); color: #fff; transition: background .2s ease; }
.social a:hover { background: #1877f2; }
.social svg { width: 20px; height: 20px; }
.footer-bottom { margin-top: 56px; padding-block: 24px; border-top: 1px solid rgb(255 255 255 / .1); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: .88rem; color: rgb(255 255 255 / .55); }
.footer-bottom a { color: rgb(255 255 255 / .7); }

/* ---------- Animations d'apparition ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Mentions légales ---------- */
.legal { max-width: 800px; }
.legal h2 { font-size: 1.4rem; margin-top: 2em; }
.legal .todo { background: #fff4d6; color: #7a4b00; padding: 1px 6px; border-radius: 6px; font-weight: 600; }

@media print {
  .site-header, .site-footer, .cta-band, .nav-toggle { display: none !important; }
  body { background: #fff; }
}

/* ==========================================================================
   Espace membre : connexion, inscription, tableau de bord
   ========================================================================== */
[hidden] { display: none !important; }

.auth-wrap { padding-block: clamp(32px, 6vw, 72px); background: var(--bg); }
.auth {
  display: grid; grid-template-columns: 1fr 1.05fr; min-height: 620px;
  background: #fff; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg);
}
.auth--wide { grid-template-columns: .8fr 1.2fr; }
@media (max-width: 900px) { .auth, .auth--wide { grid-template-columns: 1fr; } }

.auth__aside {
  position: relative; isolation: isolate; color: #fff; padding: clamp(32px, 4vw, 52px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  background: var(--navy-900);
}
.auth__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.auth__aside::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(160deg, rgb(6 26 58 / .92) 0%, rgb(11 44 99 / .82) 55%, rgb(215 20 31 / .55) 120%);
}
.auth__aside h2 { color: #fff; font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.auth__aside p { color: rgb(255 255 255 / .85); }
.auth__logo { width: 72px; height: 72px; background: #fff; border-radius: 50%; padding: 4px; }
.perks { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.perks li { display: flex; gap: 14px; align-items: flex-start; color: rgb(255 255 255 / .9); }
.perks .ico { width: 38px; height: 38px; border-radius: 10px; background: rgb(255 255 255 / .12); display: grid; place-items: center; flex-shrink: 0; }
.perks svg { width: 20px; height: 20px; }
.perks strong { color: #fff; display: block; }
@media (max-width: 900px) { .auth__aside .perks { display: none; } .auth__aside { gap: 16px; } }

.auth__main { padding: clamp(28px, 5vw, 60px); display: flex; flex-direction: column; justify-content: center; }
.auth__main h1 { font-size: clamp(1.8rem, 3vw, 2.3rem); margin-bottom: 6px; }
.auth__sub { color: var(--muted); margin-bottom: 28px; }
.auth__form { display: grid; gap: 18px; }
.auth__switch { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); text-align: center; }
.auth__switch a { font-weight: 700; color: var(--navy); }
.field-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.field-row a { font-size: .9rem; font-weight: 600; }
input[type="password"] {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.pw { position: relative; }
.pw input { padding-right: 52px; }
.pw button {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer;
  display: grid; place-items: center;
}
.pw button:hover { background: var(--sky); color: var(--navy); }
.pw button svg { width: 20px; height: 20px; }
.pw button .eye-off { display: none; }
.pw button[aria-pressed="true"] .eye { display: none; }
.pw button[aria-pressed="true"] .eye-off { display: block; }

.strength { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.strength__bars { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.strength__bars span { height: 5px; border-radius: 5px; background: var(--line); transition: background .2s ease; }
.strength__label { font-size: .82rem; font-weight: 600; min-width: 70px; text-align: right; color: var(--muted); }
.strength[data-level="0"] .strength__bars span:nth-child(1),
.strength[data-level="1"] .strength__bars span:nth-child(1) { background: var(--red); }
.strength[data-level="2"] .strength__bars span:nth-child(-n+2) { background: #f0a020; }
.strength[data-level="3"] .strength__bars span:nth-child(-n+3) { background: #2e9d5b; }
.strength[data-level="4"] .strength__bars span { background: #1c7c45; }

.notice--warn { background: #fff4d6; color: #7a4b00; margin-bottom: 22px; }
.notice--warn code { background: rgb(0 0 0 / .06); padding: 1px 6px; border-radius: 6px; font-size: .9em; }

.done { text-align: center; padding: 12px 0; }
.done:focus { outline: none; }
.done__icon { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 20px; background: #e8f7ee; color: #1c7c45; display: grid; place-items: center; }
.done__icon svg { width: 36px; height: 36px; }

/* Tableau de bord */
.dash-hero { background: var(--navy-900); color: #fff; padding-block: clamp(40px, 6vw, 64px) clamp(88px, 10vw, 120px); }
.dash-hero__inner { display: flex; flex-wrap: wrap; gap: 20px 28px; align-items: center; }
.avatar {
  width: 80px; height: 80px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  background: linear-gradient(135deg, var(--red), #8f0a12); color: #fff; font-size: 1.8rem; font-weight: 800;
  box-shadow: 0 0 0 4px rgb(255 255 255 / .15);
}
.dash-hero h1 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin: 0 0 6px; }
.dash-hero p { margin: 0; color: rgb(255 255 255 / .75); }
.dash-hero .btn { margin-left: auto; }
@media (max-width: 640px) { .dash-hero .btn { margin-left: 0; } }

.dash { margin-top: clamp(-80px, -8vw, -56px); display: grid; grid-template-columns: 340px 1fr; gap: 24px; align-items: start; }
@media (max-width: 960px) { .dash { grid-template-columns: 1fr; } }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); box-shadow: var(--shadow-sm); }
.panel + .panel { margin-top: 24px; }
.panel h2 { font-size: 1.25rem; margin-bottom: 4px; }
.panel__sub { color: var(--muted); font-size: .95rem; margin-bottom: 22px; }
.facts { margin: 0; display: grid; gap: 14px; }
.facts div { display: flex; justify-content: space-between; gap: 12px; font-size: .95rem; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.facts div:last-child { border: 0; padding-bottom: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; color: var(--ink); text-align: right; word-break: break-word; }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: .8rem; font-weight: 700; }
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
/* Rôles : membre (à l'inscription) → bénévole / admin (attribués par l'association) */
.badge--membre { background: var(--sky); color: var(--navy); }
.badge--benevole { background: #e8f7ee; color: #1c7c45; }
.badge--admin { background: #fdecee; color: var(--red-600); }

.validation { border-radius: 14px; padding: 18px 20px; margin-bottom: 22px; font-size: .95rem; }
.validation p { margin: 10px 0 0; }
.validation--membre { background: #f3f7fd; border: 1px solid #cddcf2; }
.validation--benevole { background: #f1faf4; border: 1px solid #bfe5cc; }
.validation--admin { background: #fdf3f4; border: 1px solid #f3c2c6; }

.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 640px) { .quick { grid-template-columns: 1fr; } }
.quick a {
  display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 14px;
  border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 700; transition: all .2s ease;
}
.quick a:hover { border-color: var(--navy); background: #f3f7fd; color: var(--navy); }
.quick a span { font-weight: 400; font-size: .88rem; color: var(--muted); }
.quick svg { width: 26px; height: 26px; color: var(--red); }

.loading { display: grid; place-items: center; gap: 16px; padding: 120px 20px; color: var(--muted); }
.spinner { width: 44px; height: 44px; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--navy); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   Double authentification (A2F)
   ========================================================================== */
.link-btn {
  background: none; border: 0; padding: 4px 0; font: inherit; font-size: .92rem; font-weight: 600;
  color: var(--blue); text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.link-btn:hover { color: var(--navy); }

.code-input {
  font-family: Consolas, "Courier New", monospace !important;
  font-size: 1.6rem !important; letter-spacing: .45em; text-align: center; padding: 14px 12px !important;
}
.code-input.is-secours { letter-spacing: .15em; font-size: 1.3rem !important; }

/* Connexion : deuxième étape */
.a2f-ico { width: 64px; height: 64px; border-radius: 18px; background: var(--sky); color: var(--navy); display: grid; place-items: center; }
.a2f-ico svg { width: 32px; height: 32px; }
.a2f-actions { display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: center; }

/* Espace membre */
.a2f-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 4px; }
.a2f-head h2 { margin: 0; }
.badge--off { background: #eef1f5; color: var(--muted); }
.badge--on { background: #e8f7ee; color: #1c7c45; }

.a2f-choix { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .a2f-choix { grid-template-columns: 1fr; } }
.a2f-option {
  display: flex; gap: 14px; align-items: flex-start; text-align: left; font: inherit; cursor: pointer;
  padding: 16px; border-radius: 14px; border: 2px solid var(--line); background: #fff; color: var(--text);
  transition: border-color .2s ease, background .2s ease;
}
.a2f-option:hover { border-color: var(--navy); background: #f3f7fd; }
.a2f-option .ico { width: 42px; height: 42px; border-radius: 12px; background: var(--sky); color: var(--navy); display: grid; place-items: center; flex-shrink: 0; }
.a2f-option .ico svg { width: 22px; height: 22px; }
.a2f-option strong { display: block; color: var(--ink); line-height: 1.25; }
.a2f-option .d { font-size: .87rem; color: var(--muted); line-height: 1.35; }

.a2f-step { margin-top: 4px; }
.a2f-step + .a2f-step { margin-top: 18px; }
.a2f-totp { display: grid; grid-template-columns: 200px 1fr; gap: 8px 24px; align-items: start; }
@media (max-width: 640px) { .a2f-totp { grid-template-columns: 1fr; justify-items: center; } }
.a2f-qr { width: 200px; height: 200px; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.a2f-qr svg { width: 100%; height: 100%; display: block; }
.a2f-etapes { margin: 0; padding-left: 1.2em; font-size: .95rem; display: grid; gap: 8px; }
.a2f-etapes li::marker { color: var(--red); font-weight: 700; }
.a2f-secret { grid-column: 1 / -1; font-size: .9rem; color: var(--muted); margin: 6px 0 0; }
.a2f-secret code {
  display: inline-block; margin-top: 4px; padding: 4px 10px; border-radius: 8px; background: var(--sky);
  color: var(--navy); font-family: Consolas, "Courier New", monospace; font-size: .95rem; word-break: break-all;
}

.codes-secours {
  list-style: none; margin: 16px 0; padding: 16px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 24px;
  background: #f6f8fc; border: 1px dashed #b8c6dc; border-radius: 12px;
  font-family: Consolas, "Courier New", monospace; font-size: 1.1rem; color: var(--ink); letter-spacing: .06em;
}
@media (min-width: 640px) { .codes-secours { grid-template-columns: repeat(5, 1fr); } }

.a2f-facts { margin-bottom: 18px; }
.a2f-danger { --b: var(--red); color: var(--red); }
.a2f-danger:hover { background: var(--red); color: #fff; }

/* ==========================================================================
   Espace d'administration
   ========================================================================== */
.muted { color: var(--muted); }
.admin { display: grid; grid-template-columns: 250px 1fr; min-height: calc(100vh - var(--header-h)); background: var(--bg); }
@media (max-width: 960px) { .admin { grid-template-columns: 1fr; } }

.admin-nav {
  background: var(--navy-900); color: rgb(255 255 255 / .8); padding: 24px 14px;
  position: sticky; top: calc(var(--header-h) + 4px); height: calc(100vh - var(--header-h) - 4px);
  display: flex; flex-direction: column; gap: 18px; overflow-y: auto;
}
.admin-nav__titre { display: flex; gap: 10px; align-items: center; color: #fff; font-weight: 800; padding: 0 10px; }
.admin-nav__titre svg { width: 22px; height: 22px; color: #ff8a90; }
.admin-nav nav { display: grid; gap: 2px; }
.admin-nav a, .admin-nav__bientot {
  display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px;
  color: rgb(255 255 255 / .82); text-decoration: none; font-weight: 600; font-size: .95rem;
}
.admin-nav a:hover { background: rgb(255 255 255 / .08); color: #fff; }
.admin-nav a[aria-current="page"] { background: rgb(255 255 255 / .14); color: #fff; }
.admin-nav svg { width: 19px; height: 19px; flex-shrink: 0; }
.admin-nav__bientot { opacity: .45; cursor: default; }
.admin-nav__bientot em { margin-left: auto; font-style: normal; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; }
.admin-nav__retour { margin-top: auto; font-size: .9rem !important; }
@media (max-width: 960px) {
  .admin-nav { position: static; height: auto; padding: 12px; gap: 8px; }
  .admin-nav nav { display: flex; overflow-x: auto; gap: 4px; }
  .admin-nav a, .admin-nav__bientot { white-space: nowrap; padding: 8px 12px; }
  .admin-nav__bientot, .admin-nav__titre { display: none; }
  .admin-nav__retour { margin-top: 0; }
}

.admin-main { padding: clamp(20px, 3vw, 36px); min-width: 0; }
.admin-main > .form-status { margin-bottom: 16px; }
.admin-h1 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin: 0 0 20px; }
.admin-compte { color: var(--muted); font-weight: 600; font-size: .7em; }
.admin-tete { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; }
.admin-tete .admin-h1 { margin-bottom: 16px; }
.admin-alertes { display: grid; gap: 10px; margin-bottom: 20px; }
.admin-alertes .notice { margin: 0; }
.admin-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; align-items: start; }
.admin-cols .panel + .panel { margin-top: 0; }
@media (max-width: 1100px) { .admin-cols { grid-template-columns: 1fr; } }
.panel-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.panel-tete h2 { margin: 0; }
.panel-tete .link-arrow { font-size: .9rem; }

.tuiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.tuile {
  display: flex; flex-direction: column; gap: 4px; padding: 20px; border-radius: 16px; background: #fff;
  border: 1px solid var(--line); text-decoration: none; color: var(--text); transition: border-color .2s ease, transform .2s ease;
}
a.tuile[href]:hover { border-color: var(--navy); transform: translateY(-2px); color: var(--text); }
.tuile__valeur { font-size: 2rem; font-weight: 800; color: var(--ink); line-height: 1; letter-spacing: -.02em; }
.tuile__libelle { font-size: .9rem; color: var(--muted); }
.tuile--accent .tuile__valeur { color: var(--red); }

.liste-simple { list-style: none; margin: 0; padding: 0; display: grid; }
.liste-simple li { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--line); font-size: .93rem; }
.liste-simple li:first-child { border-top: 0; }
.lien-ligne { background: none; border: 0; padding: 0; font: inherit; text-align: left; cursor: pointer; color: var(--ink); flex: 1 1 200px; }
.lien-ligne:hover strong { text-decoration: underline; }

/* Filtres + tableau */
.admin-filtres { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.admin-filtres .search { flex: 1 1 260px; }
.admin-filtres select { width: auto; flex: 0 1 auto; padding: 10px 12px; border-radius: 999px; font-size: .92rem; }
.table-wrap { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.admin-table th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; padding: 12px 16px; background: #f8fafc; border-bottom: 1px solid var(--line); }
.admin-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.admin-table tbody tr:last-child td { border-bottom: 0; }
.admin-table tr[data-ouvrir] { cursor: pointer; }
.admin-table tr[data-ouvrir]:hover, .admin-table tr[data-ouvrir]:focus-visible { background: #f3f7fd; outline: none; }
.admin-table .vide { text-align: center; padding: 40px 16px; }
@media (max-width: 760px) {
  .admin-table thead { display: none; }
  .admin-table, .admin-table tbody, .admin-table tr, .admin-table td { display: block; width: 100%; }
  .admin-table tr { padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .admin-table td { padding: 3px 0; border: 0; display: flex; gap: 10px; justify-content: space-between; text-align: right; }
  .admin-table td::before { content: attr(data-label); color: var(--muted); font-size: .82rem; text-align: left; flex-shrink: 0; }
  .admin-table td:first-child { display: block; text-align: left; margin-bottom: 6px; }
  .admin-table td:first-child::before { content: none; }
}
.pagination { display: flex; gap: 14px; align-items: center; justify-content: center; margin-top: 16px; font-size: .92rem; color: var(--muted); }
.perm-mini { display: block; font-size: .78rem; color: var(--muted); margin-top: 4px; }
.etat { display: inline-block; font-size: .82rem; font-weight: 700; }
.etat--actif { color: #1c7c45; }
.etat--attente { color: #8a5600; }
.etat--suspendu { color: var(--red-600); }

/* Panneau latéral (fiche membre) */
.tiroir { position: fixed; inset: 0; z-index: 100; }
.tiroir__fond { position: absolute; inset: 0; background: rgb(6 26 58 / .45); }
.tiroir__panneau {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(520px, 100%); background: #fff; overflow-y: auto;
  padding: 28px clamp(18px, 3vw, 32px) 40px; box-shadow: -20px 0 50px -20px rgb(6 26 58 / .4);
}
body.tiroir-ouvert { overflow: hidden; }
.tiroir__x { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer; display: grid; place-items: center; color: var(--ink); }
.tiroir__x svg { width: 20px; height: 20px; }
.tiroir h2 { font-size: 1.5rem; margin: 0 48px 8px 0; }
.fiche-badges { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 18px; }
.fiche-badges .perm-mini { flex-basis: 100%; margin: 0; }
.fiche-bloc { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 20px; display: grid; gap: 12px; }
.fiche-bloc h3 { font-size: 1.05rem; margin: 0; }
.fiche-bloc .btn { justify-self: start; }
.fiche-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.fiche-danger h3 { color: var(--red-600); }
.choix-role { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.choix-role label, .perm { display: flex; gap: 8px; align-items: center; font-weight: 600; cursor: pointer; }
.choix-role input, .perm input { width: 18px; height: 18px; accent-color: var(--navy); }
.perms { display: grid; gap: 8px; padding: 14px 16px; background: #f6f8fc; border-radius: 12px; }
.perms p { margin: 0; font-size: .9rem; }
.presets { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.presets .chip { padding: 5px 12px; font-size: .82rem; }
.tiroir .notice { margin-top: 20px; }
.quick a.quick--admin { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.quick a.quick--admin span { color: rgb(255 255 255 / .7); }
.quick a.quick--admin svg { color: #ff8a90; }
.quick a.quick--admin:hover { background: var(--navy); color: #fff; }

/* ==========================================================================
   Documents à lire et signer
   ========================================================================== */
.docs-panel { border-left: 4px solid var(--red); }
.docs-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.docs-liste a {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 16px;
  padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); text-decoration: none; color: var(--ink);
  transition: border-color .2s ease, background .2s ease;
}
.docs-liste a:hover { border-color: var(--navy); background: #f3f7fd; color: var(--ink); }
.docs-liste .is-a-signer a { border-color: #f3c2c6; background: #fdf6f7; }
.docs-etat { font-size: .85rem; font-weight: 700; }
.is-a-signer .docs-etat { color: var(--red-600); }
.is-signe .docs-etat { color: #1c7c45; }
.is-signe .docs-etat::before { content: "✓ "; }

.doc-hero { padding-bottom: clamp(48px, 6vw, 72px); }
.doc-hero h1 { margin-bottom: 8px; }
.doc-page { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; margin-top: -32px; padding-bottom: clamp(56px, 8vw, 96px); position: relative; }
@media (max-width: 960px) { .doc-page { grid-template-columns: 1fr; } }
.doc-description { color: var(--muted); font-size: 1.02rem; }
.doc-pdf-barre { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; justify-content: space-between; padding: 14px 16px; background: #f6f8fc; border-radius: 12px; font-weight: 600; color: var(--ink); }
.doc-pdf-barre span { flex: 1 1 200px; word-break: break-word; }
.doc-pdf { width: 100%; height: 78vh; min-height: 520px; border: 1px solid var(--line); border-radius: 12px; margin-top: 14px; background: #f6f8fc; }
.doc-texte { font-size: 1.05rem; line-height: 1.75; color: var(--text); max-width: 75ch; }
.doc-texte p { margin: 0 0 1.1em; }
.doc-signature { position: sticky; top: calc(var(--header-h) + 24px); }
@media (max-width: 960px) { .doc-signature { position: static; } }
.doc-signature h2 { font-size: 1.25rem; }
.doc-signature form { display: grid; gap: 16px; }
.doc-certif { font-size: .97rem; color: var(--ink); font-weight: 600; }
.doc-signe { text-align: center; }
.doc-signe p { color: var(--muted); }

/* Administration des documents */
.docs-admin { display: grid; gap: 12px; }
.doc-carte {
  display: grid; gap: 8px; width: 100%; text-align: left; font: inherit; cursor: pointer; color: var(--text);
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; transition: border-color .2s ease, transform .2s ease;
}
.doc-carte:hover { border-color: var(--navy); transform: translateY(-2px); }
.doc-carte.is-archive { opacity: .7; }
.doc-carte__tete { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; color: var(--ink); font-size: 1.05rem; }
.doc-carte__chiffres { font-size: .92rem; }
.doc-carte .muted { font-size: .88rem; }
.progression { display: block; height: 8px; border-radius: 8px; background: var(--line); overflow: hidden; }
.progression span { display: block; height: 100%; background: linear-gradient(90deg, #2e9d5b, #1c7c45); border-radius: 8px; }
.doc-form { margin-bottom: 20px; }
.doc-form h2 { font-size: 1.3rem; }
.doc-form textarea { min-height: 0; }
.doc-choix { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.doc-choix legend { font-weight: 600; color: var(--ink); font-size: .95rem; margin-bottom: 8px; padding: 0; width: 100%; }
.doc-choix label { display: flex; gap: 8px; align-items: center; cursor: pointer; }
.doc-choix input { width: 18px; height: 18px; accent-color: var(--navy); }
.doc-actions { margin: 18px 0 8px; }
.doc-filtres { margin: 18px 0 12px; }
[data-doc-vue-detail] .tuiles { margin-top: 16px; }

/* Formulaire de contact : champ piège anti-robots (hors écran, jamais vu par les visiteurs) */
.piege { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
input[type="file"] { font: inherit; font-size: .92rem; max-width: 100%; }

/* ==========================================================================
   Messages et demandes (administration)
   ========================================================================== */
.nav-compteur { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--red); color: #fff; font-size: .75rem; font-weight: 800; display: inline-grid; place-items: center; }
.msg-onglets { margin-bottom: 14px; }
.msg-onglets .chip span { opacity: .75; font-weight: 600; }
.msg-moi { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .92rem; cursor: pointer; }
.msg-moi input { width: 18px; height: 18px; accent-color: var(--navy); }
.msg-reglages { margin-bottom: 20px; }
.msg-reglages h2 { font-size: 1.2rem; }
.msg-liste { display: grid; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.msg-liste .empty { border: 0; border-radius: 0; }
.msg-ligne {
  display: grid; grid-template-columns: 150px 1fr auto; gap: 6px 16px; align-items: center; padding: 14px 18px;
  border-top: 1px solid var(--line); text-decoration: none; color: var(--text);
}
.msg-ligne:first-child { border-top: 0; }
.msg-ligne:hover { background: #f3f7fd; color: var(--text); }
.msg-ligne.is-non-lu { background: #fffaf0; box-shadow: inset 4px 0 0 var(--red); }
.msg-ligne.is-non-lu strong { color: var(--ink); font-weight: 800; }
.msg-ligne__corps { min-width: 0; }
.msg-ligne__extrait { display: block; font-size: .9rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-ligne__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: .82rem; text-align: right; }
@media (max-width: 760px) {
  .msg-ligne { grid-template-columns: 1fr; }
  .msg-ligne__meta { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 12px; justify-content: flex-start; }
}
.msg-type { display: inline-block; justify-self: start; padding: 4px 10px; border-radius: 999px; font-size: .75rem; font-weight: 800; background: var(--sky); color: var(--navy); }
.msg-type--dps { background: #fdecee; color: var(--red-600); }
.msg-type--recrutement { background: #e8f7ee; color: #1c7c45; }
.msg-type--formations { background: #fff4d6; color: #7a4b00; }
.statut-msg { font-weight: 800; }
.statut-msg--nouveau { color: var(--red-600); }
.statut-msg--en_cours { color: #8a5600; }
.statut-msg--traite { color: #1c7c45; }
.statut-msg--archive { color: var(--muted); }

.msg-detail { display: grid; grid-template-columns: 1fr 300px; gap: 20px; align-items: start; margin-top: 12px; }
.msg-detail > div > .panel + .panel { margin-top: 20px; }
@media (max-width: 1100px) { .msg-detail { grid-template-columns: 1fr; } .msg-cote { order: -1; } }
.msg-entete .admin-h1 { margin: 8px 0 2px; }
.msg-h2 { font-size: 1.1rem; margin: 22px 0 10px; }
.msg-detail .panel > .msg-h2:first-child { margin-top: 0; }
.msg-texte { white-space: pre-wrap; word-break: break-word; background: #f6f8fc; border-radius: 12px; padding: 16px 18px; color: var(--ink); }
.msg-pieces { display: grid; gap: 8px; margin-top: 16px; }
.msg-piece { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; font-size: .93rem; }
.msg-cote { display: grid; gap: 14px; position: sticky; top: calc(var(--header-h) + 20px); }
@media (max-width: 1100px) { .msg-cote { position: static; } }
.msg-suivi { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.suivi { border-left: 3px solid var(--line); padding: 6px 0 6px 14px; font-size: .93rem; }
.suivi--reponse { border-color: #1c7c45; }
.suivi--note { border-color: #f2a516; background: #fffaeb; border-radius: 0 10px 10px 0; padding-right: 12px; }
.suivi__tete { margin-bottom: 4px; }
.suivi__texte { white-space: pre-wrap; word-break: break-word; color: var(--ink); }
.suivi--statut .suivi__texte, .suivi--attribution .suivi__texte { color: var(--muted); }
.msg-ecrire { display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 16px; }
.msg-ecrire textarea { min-height: 130px; }

/* ==========================================================================
   Demande de DPS : calcul du RIS
   ========================================================================== */
.dps-titre { font-size: 1.15rem; margin: 8px 0 -4px; }
.ris { display: grid; gap: 16px; padding: 22px; border-radius: 16px; background: #f6f8fc; border: 1px solid var(--line); }
.ris__tete h3 { font-size: 1.15rem; margin: 0 0 6px; }
.ris__tete p { margin: 0; font-size: .93rem; color: var(--muted); }
.ris-critere { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.ris-critere legend { font-weight: 700; color: var(--ink); margin-bottom: 8px; padding: 0; display: flex; align-items: center; gap: 8px; }
.ris-code { display: inline-grid; place-items: center; min-width: 30px; height: 24px; padding: 0 6px; border-radius: 6px; background: var(--navy); color: #fff; font-size: .75rem; font-weight: 800; }
.ris-critere label {
  display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; cursor: pointer;
  background: #fff; border: 2px solid var(--line); font-size: .93rem; line-height: 1.45; transition: border-color .15s ease, background .15s ease;
}
.ris-critere label:hover { border-color: #b8c6dc; }
.ris-critere input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--navy); flex-shrink: 0; }
.ris-critere label:has(input:checked) { border-color: var(--navy); background: #f3f7fd; }
.ris-critere strong { color: var(--ink); }
.ris-resultat { border-radius: 14px; padding: 16px 18px; background: #fff; border: 2px dashed #b8c6dc; }
.ris-attente { margin: 0; color: var(--muted); font-size: .93rem; }
.ris-resultat__principal { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.ris-resultat__type { font-size: 1.6rem; font-weight: 800; letter-spacing: -.01em; }
.ris-resultat__nb { font-size: 1.05rem; color: var(--ink); }
.ris-resultat__nb strong { font-size: 1.3rem; }
.ris-resultat__libelle { margin: 4px 0 8px; font-weight: 600; color: var(--ink); }
.ris-resultat__calcul { margin: 0; font-size: .85rem; color: var(--muted); }
.ris-resultat__note { margin: 8px 0 0; font-size: .85rem; color: #8a5600; }
.ris-resultat--aucun, .ris-resultat--paps { border-style: solid; border-color: #bfe5cc; background: #f1faf4; }
.ris-resultat--aucun .ris-resultat__type, .ris-resultat--paps .ris-resultat__type { color: #1c7c45; }
.ris-resultat--pe { border-style: solid; border-color: #cddcf2; background: #f3f7fd; }
.ris-resultat--pe .ris-resultat__type { color: var(--navy); }
.ris-resultat--me { border-style: solid; border-color: #f6dfa0; background: #fffaeb; }
.ris-resultat--me .ris-resultat__type { color: #8a5600; }
.ris-resultat--ge { border-style: solid; border-color: #f3c2c6; background: #fdf3f4; }
.ris-resultat--ge .ris-resultat__type { color: var(--red-600); }
.dps-services { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.dps-services legend { font-weight: 600; color: var(--ink); font-size: .95rem; margin-bottom: 8px; padding: 0; width: 100%; }
.dps-services label { display: flex; gap: 8px; align-items: center; cursor: pointer; font-size: .95rem; }
.dps-services input { width: 18px; height: 18px; accent-color: var(--navy); }

/* RIS dans l'administration */
.ris-badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .75rem; font-weight: 800; background: var(--sky); color: var(--navy); white-space: nowrap; }
.ris-badge--me { background: #fff4d6; color: #7a4b00; }
.ris-badge--ge { background: #fdecee; color: var(--red-600); }
.ris-badge--paps, .ris-badge--aucun { background: #e8f7ee; color: #1c7c45; }
.ris-admin { margin-top: 20px; padding: 18px; border-radius: 14px; border: 1px solid #cddcf2; background: #f3f7fd; }
.ris-admin--me { border-color: #f6dfa0; background: #fffaeb; }
.ris-admin--ge { border-color: #f3c2c6; background: #fdf3f4; }
.ris-admin--paps, .ris-admin--aucun { border-color: #bfe5cc; background: #f1faf4; }
.ris-admin__tete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 16px; margin-bottom: 12px; }
.ris-admin__tete .msg-h2 { margin: 0; }
.ris-admin__resultat { font-size: 1.15rem; font-weight: 800; color: var(--ink); }
.ris-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.ris-table th { text-align: left; font-weight: 600; color: var(--muted); padding: 8px 12px 8px 0; vertical-align: top; width: 38%; }
.ris-table td { padding: 8px 0; vertical-align: top; color: var(--ink); }
.ris-table tr + tr th, .ris-table tr + tr td { border-top: 1px solid rgb(0 0 0 / .06); }
.ris-table td .muted { display: block; font-size: .85rem; }
.ris-table__total th, .ris-table__total td { font-size: 1rem; color: var(--ink); }
.ris-alerte { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: #fff4d6; color: #8a5600; font-size: .75rem; font-weight: 800; }
.ris-admin__note { margin: 10px 0 0; font-size: .85rem; }
@media (max-width: 560px) { .ris-table th { width: auto; display: block; padding-bottom: 0; } .ris-table td { display: block; padding-top: 2px; } .ris-table tr + tr td { border-top: 0; } }

/* ---------- Administration : mailing ---------- */
.ml-intro { margin: -6px 0 18px; }
.ml-echec { color: var(--red-600); font-weight: 700; }
.ml-grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.ml-col { display: grid; gap: 24px; min-width: 0; }
.ml-col .panel + .panel { margin-top: 0; }
.ml-col--apercu { position: sticky; top: calc(var(--header-h) + 16px); }
.ml-actions { grid-column: 1 / -1; padding-block: 18px; }
.ml-actions .form-actions { margin-top: 0; }
.ml-outils { display: inline-flex; flex-wrap: wrap; gap: 6px 16px; font-size: .9rem; }
.field .ml-import { cursor: pointer; display: inline; margin: 0; color: var(--blue); font-size: .92rem; }
.field .ml-import:hover { color: var(--navy); }
.ml-code { min-height: 340px; font-family: ui-monospace, "Cascadia Code", Consolas, "Courier New", monospace; font-size: .85rem; line-height: 1.5; tab-size: 2; white-space: pre; overflow-wrap: normal; overflow-x: auto; background: #fbfcfe; }
.ml-variables { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; font-size: .9rem; }
.ml-variables .chip { padding: 5px 12px; font-size: .85rem; }
.hint code, .ml-variables code { background: var(--sky); color: var(--navy); padding: 1px 6px; border-radius: 6px; font-size: .9em; }
.ml-groupes { border: 0; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.ml-groupes label { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1.5px solid var(--line); border-radius: 12px; font-weight: 600; color: var(--ink); cursor: pointer; }
.ml-groupes label:has(input:checked) { border-color: var(--navy); background: var(--sky); }
.ml-groupes input { width: 18px; height: 18px; accent-color: var(--navy); }
.ml-compte p { margin: 6px 0 0; font-size: .95rem; }
.ml-total strong { font-size: 1.25rem; color: var(--navy); }
.ml-invalides { color: var(--red-600); font-weight: 600; overflow-wrap: anywhere; }
.ml-apercu__tete { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.ml-apercu__tete h2 { margin: 0; }
.ml-enveloppe { margin: 0 0 12px; padding: 12px 14px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); font-size: .9rem; display: grid; gap: 4px; }
.ml-enveloppe div { display: flex; gap: 10px; min-width: 0; }
.ml-enveloppe dt { color: var(--muted); width: 48px; flex-shrink: 0; }
.ml-enveloppe dd { margin: 0; color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.ml-cadre { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #e9edf3; transition: max-width .25s ease; max-width: 100%; margin-inline: auto; }
.ml-cadre.is-mobile { max-width: 375px; border-width: 8px; border-color: #1e293b; border-radius: 28px; }
.ml-cadre iframe { display: block; width: 100%; height: min(70vh, 720px); border: 0; background: #fff; }
.ml-supprimer { color: var(--red-600); margin-left: auto; }
.ml-supprimer:hover { color: var(--red); }
@media (max-width: 1100px) {
  .ml-grille { grid-template-columns: minmax(0, 1fr); }
  .ml-col--apercu { position: static; }
  .ml-cadre iframe { height: 560px; }
}
@media (max-width: 560px) { .ml-supprimer { margin-left: 0; } }
.ml-format { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ml-format legend { font-weight: 600; color: var(--ink); font-size: .95rem; margin-bottom: 6px; padding: 0; }
.ml-format label { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; }
.ml-format label:has(input:checked) { border-color: var(--navy); background: var(--sky); }
.ml-format input { margin-top: 4px; accent-color: var(--navy); flex-shrink: 0; }
.ml-format strong { display: block; color: var(--ink); font-size: .95rem; }
.ml-format small { display: block; color: var(--muted); font-size: .84rem; line-height: 1.4; margin-top: 2px; }
@media (max-width: 560px) { .ml-format { grid-template-columns: 1fr; } }
.ml-barre { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.ml-barre .chip { padding: 5px 12px; font-size: .85rem; }
#ml-texte { min-height: 260px; line-height: 1.55; }
.ml-alertes { margin-top: 10px; display: grid; gap: 6px; }
.ml-alertes p { margin: 0; padding: 10px 12px; border-radius: 10px; background: #fff4d6; color: #7a4b00; font-size: .88rem; font-weight: 600; overflow-wrap: anywhere; }
.ml-alertes p.is-info { background: var(--sky); color: var(--navy); }

/* ---------- Bandeau d'annonce (Administration › Contenus) ---------- */
.annonce { background: var(--navy); color: #fff; font-size: .95rem; position: relative; z-index: 60; }
.annonce--alerte { background: var(--red); }
.annonce__in { display: flex; align-items: center; gap: 16px; padding-block: 10px; }
.annonce p { margin: 0; flex: 1; line-height: 1.45; }
.annonce a { color: #fff; font-weight: 700; white-space: nowrap; text-underline-offset: 3px; display: inline-flex; align-items: center; gap: 6px; }
.annonce a svg { width: 16px; height: 16px; }
.annonce a:hover { color: #fff; opacity: .85; }
.annonce__x { flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgb(255 255 255 / .15); color: #fff; font-size: 1.3rem; line-height: 1; cursor: pointer; }
.annonce__x:hover { background: rgb(255 255 255 / .3); }
@media (max-width: 560px) { .annonce a { white-space: normal; } }

/* ---------- Formations : prochaines sessions ---------- */
.sessions { display: grid; gap: 12px; }
.session { display: grid; grid-template-columns: auto 1fr auto; gap: 18px 22px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; box-shadow: var(--shadow-sm); }
.session.is-complet { opacity: .7; }
.session__date { width: 64px; height: 68px; border-radius: 14px; background: var(--sky); color: var(--navy); display: grid; place-content: center; text-align: center; line-height: 1.05; }
.session__jour { font-size: 1.6rem; font-weight: 800; }
.session__mois { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.session__corps p { margin: 0; }
.session__titre { color: var(--ink); font-size: 1.05rem; }
.session__titre strong { color: var(--red-600); margin-right: 4px; }
.session__quand { color: var(--text); font-size: .95rem; margin-top: 2px !important; }
.session__quand::first-letter { text-transform: uppercase; }
.session__infos { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: .9rem; color: var(--muted); }
.session__infos li { display: inline-flex; gap: 6px; align-items: center; }
.session__infos svg { width: 16px; height: 16px; color: var(--blue); }
.session__note { font-size: .88rem; color: var(--muted); margin-top: 6px !important; }
.session__action { display: grid; gap: 8px; justify-items: end; }
.session__places { font-size: .85rem; font-weight: 700; color: #1c7c45; }
.session__places.is-peu { color: #8a5600; }
.session__places.is-complet { color: var(--red-600); }
@media (max-width: 640px) {
  .session { grid-template-columns: auto 1fr; padding: 16px; }
  .session__action { grid-column: 1 / -1; grid-auto-flow: column; justify-content: space-between; align-items: center; justify-items: start; }
}
.course__prochaine { margin: 12px 0 0 !important; font-size: .9rem !important; color: var(--navy) !important; background: var(--sky); padding: 8px 12px; border-radius: 10px; }

/* ---------- Administration : actualités, formations, contenus ---------- */
.site-barre { position: sticky; bottom: 0; z-index: 5; display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: flex-end; margin-top: 24px; padding: 14px 18px; background: rgb(255 255 255 / .96); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 -6px 24px -12px rgb(11 44 99 / .25); }
.site-barre .form-status { flex: 1; min-width: 200px; padding: 10px 14px; }
[data-vue="formations"] .panel + .panel, [data-vue="contenus"] .panel + .panel { margin-top: 24px; }

.ac-liste { display: grid; gap: 10px; margin-top: 16px; }
.ac-carte { display: flex; gap: 16px; align-items: center; width: 100%; text-align: left; font: inherit; color: var(--text); background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px; cursor: pointer; transition: border-color .2s ease, transform .2s ease; }
.ac-carte:hover { border-color: var(--navy); transform: translateY(-1px); }
.ac-carte img, .ac-carte__vide { width: 96px; height: 64px; border-radius: 10px; object-fit: cover; flex-shrink: 0; background: var(--sky); }
.ac-carte__vide { display: grid; place-items: center; color: var(--blue); font-size: 1.4rem; }
.ac-carte__texte { display: grid; gap: 4px; min-width: 0; justify-items: start; }
.ac-carte__texte strong { color: var(--ink); overflow-wrap: anywhere; }
.ac-carte__texte .muted { font-size: .88rem; }
.ac-grille { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.ac-cote { display: grid; gap: 24px; position: sticky; top: calc(var(--header-h) + 16px); }
.ac-cote .panel + .panel { margin-top: 0; }
.ac-cote h2 { font-size: 1.1rem; margin-bottom: 12px; }
.ac-statut { grid-template-columns: 1fr; }
.ac-couverture { border-radius: 12px; overflow: hidden; background: var(--sky); min-height: 120px; display: grid; place-items: center; text-align: center; }
.ac-couverture img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.ac-couverture p { margin: 0; padding: 16px; font-size: .9rem; }
.ac-barre { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; border: 1.5px solid var(--line); border-bottom: 0; border-radius: 12px 12px 0 0; background: var(--bg); }
.ac-barre .chip { padding: 5px 11px; font-size: .85rem; }
.ac-editeur { max-width: none; min-height: 360px; padding: 14px 18px; border: 1.5px solid var(--line); border-radius: 0 0 12px 12px; background: #fff; font-size: 1rem; line-height: 1.65; color: var(--text); overflow-wrap: anywhere; }
.ac-editeur:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgb(31 91 184 / .15); }
.ac-editeur:empty::before { content: attr(data-placeholder); color: var(--muted); }
.ac-editeur img { max-width: 100%; height: auto; }
.ac-editeur blockquote, .prose blockquote { margin: 1.2em 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--red); color: var(--ink); font-style: italic; }
.ac-editeur h3 { margin-top: 1.2em; }
@media (max-width: 1100px) { .ac-grille { grid-template-columns: minmax(0, 1fr); } .ac-cote { position: static; } }

.fo-sessions { display: grid; gap: 12px; }
.fo-session { border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 12px; padding: 14px 16px; background: #fff; }
.fo-session.is-passee { opacity: .6; border-left-color: var(--line); }
.fo-session.is-annulee { border-left-color: var(--red); }
.fo-session__grille { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 14px; }
.fo-session .field label, .fo-formation .field label { font-size: .85rem; margin-bottom: 4px; }
.fo-session input, .fo-session select { padding: 9px 11px; font-size: .95rem; }
.fo-col-2 { grid-column: span 2; }
.fo-session__actions, .fo-formation__actions { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: flex-end; align-items: center; margin-top: 10px; }
.fo-formation__actions .link-btn:disabled { opacity: .35; cursor: default; }
@media (max-width: 900px) { .fo-session__grille { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .fo-session__grille { grid-template-columns: 1fr; } .fo-col-2 { grid-column: auto; } }
.fo-catalogue { display: grid; gap: 10px; }
.fo-formation { border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.fo-formation.is-masquee { background: var(--bg); }
.fo-formation summary { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; padding: 14px 16px; cursor: pointer; list-style: none; }
.fo-formation summary::-webkit-details-marker { display: none; }
.fo-formation summary::before { content: "›"; font-size: 1.3rem; line-height: 1; color: var(--muted); transition: transform .2s ease; }
.fo-formation[open] summary::before { transform: rotate(90deg); }
.fo-formation__code { font-weight: 800; color: var(--navy); }
.fo-formation__titre { color: var(--ink); flex: 1; min-width: 0; }
.fo-formation__corps { padding: 4px 16px 16px; border-top: 1px solid var(--line); padding-top: 16px; }
.fo-formation textarea { min-height: 0; }

.co-hero { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px; align-items: start; margin-top: 8px; }
.co-photo { border-radius: 12px; overflow: hidden; background: var(--sky); aspect-ratio: 16 / 10; }
.co-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 800px) { .co-hero { grid-template-columns: 1fr; } }
.co-sous-titre { font-size: 1rem; margin: 24px 0 10px; }
.co-chiffres { display: grid; gap: 8px; margin-bottom: 8px; }
.co-chiffre { display: grid; grid-template-columns: 140px minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.co-chiffre input { padding: 9px 11px; }
@media (max-width: 560px) { .co-chiffre { grid-template-columns: 1fr; } }
.co-apercu-annonce { margin-top: 16px; }
.co-apercu-annonce .annonce { border-radius: 10px; }
.co-apercu-annonce .annonce__in { padding-inline: 14px; }
.co-apercu-annonce p.muted { margin: 0; font-size: .9rem; }

/* ---------- Administration : Service ---------- */
[data-vue="service"] .panel + .panel, [data-vue="service"] form + .panel { margin-top: 24px; }
.sv-modes { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 16px; }
@media (max-width: 900px) { .sv-modes { grid-template-columns: 1fr; } }
.sv-rappel { margin-bottom: 18px; }
.sv-rappel a { font-weight: 700; margin-left: 6px; }
.sv-code { margin-top: 20px; padding: 18px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); }
.sv-code h3 { font-size: 1.05rem; margin: 0 0 6px; }
.sv-code > p.muted { font-size: .92rem; margin: 0 0 12px; }
.sv-code__ligne { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.sv-code__ligne .field { flex: 1; min-width: 200px; }
.sv-code__ligne input { font-family: ui-monospace, Consolas, monospace; font-size: 1.05rem; letter-spacing: .04em; }
.sv-lien { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.sv-lien input { flex: 1; min-width: 200px; font-size: .9rem; background: #fff; color: var(--muted); }
.sv-liens { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; margin: 12px 0 0; font-size: .92rem; }
.sv-liens a { font-weight: 600; }
.sv-sante { list-style: none; margin: 14px 0 10px; padding: 0; display: grid; gap: 8px; }
.sv-sante li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--bg); }
.sv-sante li > span:last-child { display: grid; gap: 2px; min-width: 0; }
.sv-sante strong { color: var(--ink); font-size: .95rem; }
.sv-sante .muted { font-size: .88rem; overflow-wrap: anywhere; }
.sv-sante__ic { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; font-size: .8rem; font-weight: 800; color: #fff; }
.sv-sante__ok .sv-sante__ic { background: #1c7c45; }
.sv-sante__warn .sv-sante__ic { background: #d08a00; }
.sv-sante__ko { background: #fdecee !important; }
.sv-sante__ko .sv-sante__ic { background: var(--red); }
.sv-outils { display: grid; gap: 12px; margin-top: 8px; }
.sv-outil { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; }
.sv-outil p { margin: 4px 0 0; font-size: .9rem; }
.sv-outil .btn { flex-shrink: 0; }
@media (max-width: 560px) { .sv-outil { flex-direction: column; align-items: stretch; } }

/* ---------- Administration : journal, sécurité des connexions ---------- */
.notice--danger { background: #fdecee; color: var(--red-600); }
.notice--danger a, .notice--warn a { font-weight: 700; margin-left: 4px; }
.jr-onglets { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 2px solid var(--line); margin-bottom: 20px; }
.jr-onglet { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; margin-bottom: -2px; border-bottom: 3px solid transparent; font-weight: 700; color: var(--muted); text-decoration: none; }
.jr-onglet:hover { color: var(--navy); }
.jr-onglet.is-actif { color: var(--navy); border-bottom-color: var(--red); }
.jr-onglet .admin-compte { font-size: .85em; }
.jr-pastille { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--red); color: #fff; font-size: .75rem; font-weight: 800; }
.sc-tete { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.sc-niveau { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; padding: 16px 18px; border-radius: 14px; margin-bottom: 16px; font-size: .97rem; border-left: 6px solid; }
.sc-niveau strong { font-size: 1.1rem; }
.sc-niveau--calme { background: #e8f7ee; color: #116b3a; border-color: #1c7c45; }
.sc-niveau--surveiller { background: #fff4d6; color: #7a4b00; border-color: #d08a00; }
.sc-niveau--attaque { background: #fdecee; color: var(--red-600); border-color: var(--red); }
.sc-tuiles { margin-bottom: 16px; }
[data-jr-onglet="securite"] .panel { margin-top: 20px; }
.sc-ip { font-family: ui-monospace, Consolas, monospace; font-size: .9rem; color: var(--ink); }
button.sc-ip { color: var(--blue); }
tr.sc-suspect td { background: #fff7f7; }
.sc-bloquer { display: inline-flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; font-size: .88rem; color: var(--muted); }
.sc-bloquer .link-btn { font-size: .88rem; }
.sc-filtres { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 12px; }
.sc-filtres .search { flex: 1; min-width: 220px; }
.sc-filtres select { width: auto; }
.sc-portees { grid-template-columns: 1fr 1fr; }
@media (max-width: 700px) { .sc-portees { grid-template-columns: 1fr; } }
.sc-portees legend { font-weight: 600; color: var(--ink); font-size: .95rem; margin-bottom: 6px; padding: 0; }
.auth-bloque { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 18px; }
.auth-bloque strong { display: block; font-size: 1.05rem; margin-bottom: 4px; }
.auth-bloque p { margin: 0; }

/* ---------- Compte membre : demandes et inscriptions aux formations ---------- */
.contact-compte { margin-bottom: 20px; }
.contact-compte a { font-weight: 700; }
.contact-lien-espace { display: inline-block; margin-top: 6px; font-weight: 700; color: inherit; }
input[readonly] { background: var(--bg); color: var(--muted); }
.mes-formations { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mf { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; }
.mf.is-passee, .mf.is-annulee { opacity: .65; }
.mf__date { width: 62px; text-align: center; border-radius: 12px; background: var(--sky); color: var(--navy); padding: 8px 4px; line-height: 1.1; }
.mf__date span { display: block; font-size: 1.5rem; font-weight: 800; }
.mf__date small { font-size: .7rem; font-weight: 700; text-transform: uppercase; }
.mf__corps { display: grid; gap: 2px; min-width: 0; }
.mf__corps strong { color: var(--ink); }
.mf__corps .muted { font-size: .9rem; }
.mf__infos { font-size: .88rem; color: var(--navy); }
.mf__alerte { font-size: .88rem; font-weight: 700; color: var(--red-600); }
.mf__etat { display: grid; gap: 4px; justify-items: end; text-align: right; }
.mf__etat .link-btn { font-size: .85rem; }
@media (max-width: 560px) { .mf { grid-template-columns: auto 1fr; } .mf__etat { grid-column: 1 / -1; grid-auto-flow: column; justify-content: space-between; justify-items: start; } }
.mes-demandes { display: grid; gap: 10px; }
.md { border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.md summary { display: flex; flex-wrap: wrap; gap: 8px 14px; justify-content: space-between; align-items: center; padding: 12px 16px; cursor: pointer; list-style: none; }
.md summary::-webkit-details-marker { display: none; }
.md__titre { display: grid; gap: 2px; }
.md__titre strong { color: var(--ink); }
.md__titre .muted { font-size: .88rem; }
.md__etat { display: inline-flex; gap: 10px; align-items: center; }
.md__rep { font-size: .8rem; font-weight: 800; color: #fff; background: var(--blue); padding: 2px 10px; border-radius: 999px; }
.md__corps { padding: 4px 16px 16px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.md__details { margin: 10px 0 0; display: grid; gap: 4px; font-size: .9rem; }
.md__details div { display: flex; gap: 8px; flex-wrap: wrap; }
.md__details dt { color: var(--muted); }
.md__details dd { margin: 0; color: var(--ink); font-weight: 600; }
.md__bulle { padding: 12px 14px; border-radius: 14px; background: var(--sky); max-width: 92%; }
.md__bulle--moi { background: var(--bg); border: 1px solid var(--line); justify-self: end; }
.md__bulle p { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .95rem; }
.md__qui { font-size: .8rem; font-weight: 700; color: var(--navy); }
.md__attente { margin: 0; font-size: .9rem; }
.badge-compte { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--sky); color: var(--navy); font-size: .72rem; font-weight: 800; vertical-align: middle; }
.msgd-inscription dd .btn { margin: 6px 6px 0 0; }
.fo-btn-inscrits { font-weight: 700; margin-right: auto; }
.fo-a-confirmer { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: #fff4d6; color: #8a5600; font-size: .75rem; font-weight: 800; }
.fo-inscrits { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--bg); }
.fo-inscrits h4 { margin: 0 0 8px; font-size: .95rem; }
.fo-inscrits__liste { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; }
.fo-inscrits__liste li { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: space-between; align-items: center; padding: 8px 10px; background: #fff; border-radius: 10px; font-size: .92rem; }
.fo-inscrits__etat { display: inline-flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.fo-inscrits__ajout { display: flex; flex-wrap: wrap; gap: 8px; }
.fo-inscrits__ajout input { flex: 1; min-width: 200px; padding: 8px 11px; }

/* ---------- Administration : suivi des sessions de formation ---------- */
.fo-pastille { background: #d08a00; }
.su-liste { display: grid; gap: 10px; margin-top: 16px; }
.su-carte { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; color: var(--text); text-decoration: none; transition: border-color .2s ease, transform .2s ease; }
.su-carte:hover { border-color: var(--navy); transform: translateY(-1px); color: var(--text); }
.su-carte.is-passee { background: var(--bg); }
.su-carte.is-annulee { opacity: .6; }
.su-carte__corps { display: grid; gap: 3px; min-width: 0; }
.su-carte__corps strong { color: var(--ink); }
.su-carte__corps .muted { font-size: .9rem; }
.su-jauge { margin-top: 6px; max-width: 320px; }
.su-carte__chiffres { display: grid; gap: 5px; justify-items: end; text-align: right; font-size: .9rem; }
@media (max-width: 700px) { .su-carte { grid-template-columns: auto minmax(0, 1fr); } .su-carte__chiffres { grid-column: 1 / -1; justify-items: start; text-align: left; } }
.su-entete { display: flex; gap: 16px; align-items: center; margin: 12px 0 16px; }
.su-titre { margin: 0 0 4px !important; }
.su-actions { margin: 16px 0 8px; gap: 10px; }
[data-su-fiche-vue] > .panel { margin-top: 20px; }
.su-ecrire { margin-top: 16px; }
.su-ecrire h2 { font-size: 1.15rem; margin-bottom: 12px; }
.su-table td { vertical-align: top; }
.su-table tr.is-annulee td { opacity: .55; }
.su-actions-ligne { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; }
.su-actions-ligne .link-btn { font-size: .85rem; padding: 0; }
.su-presence { display: inline-flex; gap: 6px; }
.su-presence .chip { padding: 4px 10px; font-size: .82rem; }
.su-presence .chip[data-su-presence="present"][aria-pressed="true"] { background: #1c7c45; border-color: #1c7c45; }
.su-presence .chip[data-su-presence="absent"][aria-pressed="true"] { background: var(--red); border-color: var(--red); }
.su-note { padding: 7px 10px; font-size: .88rem; min-width: 150px; }
.su-note.is-enregistre { border-color: #1c7c45; box-shadow: 0 0 0 3px rgb(28 124 69 / .15); }
.badge-compte--sans { background: #f1f4f9; color: var(--muted); }
.su-ajout { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.su-ajout h3 { font-size: 1rem; margin: 0 0 4px; }
.su-ajout .muted { font-size: .88rem; margin: 0 0 10px; }
.su-ajout__champs { display: grid; grid-template-columns: 1.2fr 1.2fr 1fr auto; gap: 8px; }
.su-ajout__champs input { padding: 9px 11px; }
@media (max-width: 800px) { .su-ajout__champs { grid-template-columns: 1fr; } }
.su-entete .mf__date { flex-shrink: 0; }
.su-complet { color: var(--red-600); }

/* ---------- Service : onglet État du serveur ---------- */
.jr-pastille--orange { background: #d08a00; }
.sv-resume { margin-bottom: 4px; }
.sv-grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
.sv-grille .panel + .panel { margin-top: 0; }
@media (max-width: 960px) { .sv-grille { grid-template-columns: 1fr; } }
[data-sv-onglet="etat"] > .panel { margin-top: 20px; }
.sv-config { margin: 0; display: grid; gap: 8px; }
.sv-config > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 4px 12px; padding: 8px 10px; border-radius: 10px; background: var(--bg); font-size: .92rem; }
.sv-config dt { color: var(--muted); display: flex; gap: 8px; align-items: flex-start; }
.sv-config dt .sv-sante__ic { width: 18px; height: 18px; font-size: .65rem; margin-top: 2px; }
.sv-config dd { margin: 0; color: var(--ink); font-weight: 600; overflow-wrap: anywhere; display: grid; gap: 2px; }
.sv-config dd .muted { font-weight: 400; font-size: .85rem; }
.sv-config__ok .sv-sante__ic { background: #1c7c45; }
.sv-config__warn .sv-sante__ic { background: #d08a00; }
.sv-config__ko { background: #fdecee !important; }
.sv-config__ko .sv-sante__ic { background: var(--red); }
@media (max-width: 480px) { .sv-config > div { grid-template-columns: 1fr; } }

/* Service › Accès par pays */
.jr-pastille--vert { background: #1c7c45; }
.sc-niveau--neutre { background: var(--sky); color: var(--navy); border-color: #9aa5b8; }
.geo-envoi { cursor: pointer; }
.geo-h3 { margin: 22px 0 10px; font-size: 1.02rem; }
.geo-pays { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px 16px; }
.geo-pays label { display: flex; gap: 8px; align-items: center; font-size: .94rem; cursor: pointer; }
.geo-test { display: flex; flex-wrap: wrap; gap: 10px; }
.geo-test input { flex: 1; min-width: 160px; font-family: ui-monospace, Consolas, monospace; }
.geo-resultat { margin: 14px 0 0; padding: 0; font-size: .95rem; }
.geo-resultat.is-ok, .geo-resultat.is-ko { padding: 12px 14px; border-radius: 10px; }
.geo-resultat.is-ok { background: #e8f7ee; color: #116b3a; }
.geo-resultat.is-ko { background: #fdecee; color: var(--red-600); }
.geo-stats { list-style: none; margin: 0; padding: 0; }
.geo-stats li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line, #e6e9ef); font-size: .94rem; }
.geo-stats li:last-child { border-bottom: 0; }
