/* ==========================================================================
   APMSB — feuille de styles
   Couleurs tirées du logo : vert profond, blanc, noir du Gwenn-ha-du.
   ========================================================================== */
@font-face { font-family: "Zilla Slab"; font-weight: 600; font-display: swap; src: url("../fonts/zilla-slab-latin-600-normal-k8z89Mb.woff2") format("woff2"); }
@font-face { font-family: "Zilla Slab"; font-weight: 700; font-display: swap; src: url("../fonts/zilla-slab-latin-700-normal-vLH1Xn7.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 400; font-display: swap; src: url("../fonts/public-sans-latin-400-normal-FdCi-lj.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 400; font-style: italic; font-display: swap; src: url("../fonts/public-sans-latin-400-italic-Y9SVINf.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 500; font-display: swap; src: url("../fonts/public-sans-latin-500-normal-78ZO697.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 600; font-display: swap; src: url("../fonts/public-sans-latin-600-normal-iY8tfZ6.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 700; font-display: swap; src: url("../fonts/public-sans-latin-700-normal-UeV5zpK.woff2") format("woff2"); }

:root {
  --g9: #0a3d1f;      /* vert profond du logo */
  --g10: #062a15;
  --g7: #1b6235;
  --g5: #2e8b47;      /* vert de la coupe d'Hygie */
  --g3: #9fd0ab;
  --g1: #e5f0e7;
  --sage: #e5f0e7;     /* teinte claire du vert */
  --sage-2: #d6e7da;
  --paper: #f4f7f4;
  --stone: #f1f2ef;
  --intro-a: #0a3d1f;   /* vert du logo */
  --intro-b: #0a3d1f;
  --white: #fff;
  --black: #000;
  --ink: #12251a;
  --muted: #47594d;
  --line: #d2ddd4;
  --field: #6b8273;
  --danger: #b3261e;
  --warn-bg: #fff6dc; --warn-line: #c79100;
  --focus: #0a3d1f;
  --serif: "Zilla Slab", "Rockwell", "Roboto Slab", Georgia, serif;
  --sans: "Public Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --r-sm: 8px; --r: 14px; --r-lg: 28px;
  --wrap: 1180px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--white); }
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--g7); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--g9); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--white); color: var(--g9); padding: .7rem 1rem; border-radius: var(--r-sm); font-weight: 600; }
.skip:focus { top: 1rem; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.ico { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.muted { color: var(--muted); }
.pre { white-space: pre-wrap; }

/* ---------- Typographie ---------- */
.h1, .h2, .h3, .h4, h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.12; letter-spacing: -.005em; margin: 0 0 .5em; color: var(--g9); }
.h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
.h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); }
.h3 { font-size: 1.35rem; font-weight: 600; }
.h4 { font-size: 1.15rem; font-weight: 600; margin-top: 1.5rem; }
p { margin: 0 0 1em; }
.prose { max-width: 68ch; }
.prose h2 { font-size: 1.6rem; margin-top: 2.2rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .35em; }
.lead, .lead-prose p:first-child { font-size: 1.2rem; line-height: 1.55; color: var(--ink); }
.page-lead { font-size: 1.2rem; color: var(--muted); max-width: 60ch; }

/* ---------- Boutons ---------- */
.btn { --bg: var(--white); --fg: var(--g9); --bd: var(--g9);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 46px; padding: .6em 1.2em;
  font: 600 1rem/1.2 var(--sans); color: var(--fg); background: var(--bg); border: 2px solid var(--bd); border-radius: 999px;
  text-decoration: none; cursor: pointer; transition: background .2s, color .2s, transform .2s var(--ease), box-shadow .2s; }
.btn:hover { color: var(--fg); text-decoration: none; transform: translateY(-1px); box-shadow: 0 6px 18px -8px rgba(10, 61, 31, .45); }
.btn:active { transform: translateY(0); }
.btn-primary { --bg: var(--g9); --fg: var(--white); --bd: var(--g9); }
.btn-primary:hover { --bg: var(--g7); --bd: var(--g7); }
.btn-ghost { --bg: transparent; --bd: rgba(10, 61, 31, .35); }
.btn-ghost:hover { --bd: var(--g9); }
.btn-light { --bg: var(--white); --fg: var(--g9); --bd: var(--white); }
.btn-outline-light { --bg: transparent; --fg: var(--white); --bd: rgba(255,255,255,.55); }
.btn-outline-light:hover { --bd: var(--white); }
.btn-danger { --bg: var(--white); --fg: var(--danger); --bd: var(--danger); }
.btn-small { min-height: 38px; padding: .35em .9em; font-size: .92rem; }
.btn-large { min-height: 54px; padding: .8em 1.6em; font-size: 1.06rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-top: 1.5rem; }
.link-arrow { display: inline-flex; align-items: center; gap: .45em; font-weight: 600; text-decoration: none; color: var(--g7); }
.link-arrow .ico { transition: transform .25s var(--ease); }
.link-arrow:hover .ico { transform: translateX(4px); }
.link-back .ico { transform: rotate(180deg); }
.link-back:hover .ico { transform: rotate(180deg) translateX(4px); }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 8px 30px -22px rgba(6, 42, 21, .5); }
.header-inner { width: min(100% - 2.5rem, 1300px); display: flex; align-items: center; gap: 1.25rem; min-height: 78px; }
.brand { flex: none; display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--g9); margin-right: auto; }
.brand img { width: 56px; height: 56px; border-radius: 50%; }
.brand-text { display: flex; flex-direction: column; font-family: var(--serif); line-height: 1.05; }
.brand-text span { font-size: .84rem; font-weight: 600; white-space: nowrap; }
.brand-text strong { font-size: 1.3rem; }
.main-nav { display: flex; align-items: center; gap: .9rem; }
.nav-links { display: flex; gap: .2rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; padding: .5rem .62rem; white-space: nowrap; border-radius: 999px; color: var(--ink); font-weight: 500; text-decoration: none; }
.nav-links a:hover { background: var(--g1); color: var(--g9); }
.nav-links a[aria-current] { color: var(--g9); background: var(--g1); font-weight: 600; }
.nav-actions { display: flex; gap: .5rem; }
.nav-actions .btn { min-height: 42px; padding: .45em 1em; white-space: nowrap; }
.menu-toggle { display: none; align-items: center; gap: .5rem; padding: .55rem .9rem; border: 2px solid var(--g9); border-radius: 999px; color: var(--g9); font-weight: 600; text-decoration: none; background: var(--white); cursor: pointer; }
.menu-icon { display: grid; gap: 4px; width: 18px; }
.menu-icon i { display: block; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.menu-open .menu-icon i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-icon i:nth-child(2) { opacity: 0; }
.menu-open .menu-icon i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1280px) {
  .menu-toggle { display: inline-flex; }
  .main-nav { display: none; }
  .js .main-nav { display: flex; position: fixed; inset: 78px 0 0; flex-direction: column; align-items: stretch; gap: 1.5rem; padding: 1.5rem 1.25rem 2rem; background: var(--white); overflow-y: auto;
    visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .25s, transform .3s var(--ease), visibility 0s .3s; }
  .js .menu-open .main-nav { visibility: visible; opacity: 1; transform: none; transition: opacity .25s, transform .3s var(--ease); }
  .nav-links { flex-direction: column; gap: .25rem; }
  .nav-links a { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; padding: .7rem 1rem; border-radius: var(--r); }
  .nav-actions { flex-direction: column; }
  .nav-actions .btn { min-height: 52px; }
  body.no-scroll { overflow: hidden; }
}
@media (max-width: 520px) {
  .brand-text span { font-size: .8rem; } .brand-text strong { font-size: 1.1rem; }
  .brand img { width: 46px; height: 46px; }
  .menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* ---------- Fil d'Ariane ---------- */
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .3rem; list-style: none; margin: 0; padding: 1.2rem 0 0; font-size: .92rem; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: .3rem; color: var(--field); }
.breadcrumb a { color: var(--muted); }

/* ==========================================================================
   Accueil : le grand moment d'ouverture
   ========================================================================== */
.intro { position: relative; overflow: hidden; background: var(--g9); color: var(--white); isolation: isolate; }
.intro-flag { position: absolute; inset: 0 0 0 30%; width: 70%; height: 100%; z-index: -2;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 38%); mask-image: linear-gradient(90deg, transparent 0%, #000 38%);
  animation: flag-in 1.6s var(--ease) both; }
.flag-stripes .stripe-row { animation: wave 22s linear infinite; will-change: transform; }
.flag-stripes .stripe-row:nth-child(2n) { animation-duration: 24s; }
.flag-stripes .stripe-row:nth-child(3n) { animation-duration: 20s; }
.stripe-dark { fill: var(--black); opacity: .55; }
.stripe-light { fill: var(--white); opacity: .13; }
.intro-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; opacity: 0; transition: opacity 1.2s; mix-blend-mode: luminosity; }
.intro-video.is-playing { opacity: .35; }
.intro-ermines { position: absolute; top: clamp(1.5rem, 5vw, 3.5rem); left: 47%; width: 120px; height: 120px; z-index: -1; color: var(--white); }
.ermine { position: absolute; width: 22px; height: 33px; opacity: 0; animation: ermine-in .6s var(--ease) both; }
.ermine:nth-child(1) { left: 0; top: 0; animation-delay: .9s; }    .ermine:nth-child(2) { left: 40px; top: 0; animation-delay: 1s; }
.ermine:nth-child(3) { left: 80px; top: 0; animation-delay: 1.1s; } .ermine:nth-child(4) { left: 20px; top: 42px; animation-delay: 1.2s; }
.ermine:nth-child(5) { left: 60px; top: 42px; animation-delay: 1.3s; } .ermine:nth-child(6) { left: 0; top: 84px; animation-delay: 1.4s; }
.ermine:nth-child(7) { left: 40px; top: 84px; animation-delay: 1.5s; } .ermine:nth-child(8) { left: 80px; top: 84px; animation-delay: 1.6s; }
.intro-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(6rem, 10vw, 8rem); }
.intro-kicker { display: flex; align-items: center; gap: .75rem; font-family: var(--sans); font-weight: 600; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--g3); margin-bottom: 1.3rem; animation: rise .8s var(--ease) .1s both; }
.kicker-line { width: 36px; height: 2px; background: var(--g3); border-radius: 2px; }
.intro-title { font-size: clamp(2.4rem, 5vw, 4.1rem); line-height: 1.05; letter-spacing: -.015em; color: var(--white); margin-bottom: 1.4rem; max-width: 17ch; text-wrap: balance; animation: rise .9s var(--ease) .2s both; }
.intro-intro { font-size: clamp(1.1rem, 1.6vw, 1.28rem); max-width: 46ch; color: rgba(255,255,255,.88); animation: rise .9s var(--ease) .35s both; }
.paths { display: grid; gap: .8rem; margin-top: 2.2rem; max-width: 520px; animation: rise .9s var(--ease) .5s both; }
.path { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; padding: 1rem 1.25rem; border-radius: 20px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.22); color: var(--white); text-decoration: none;
  transition: background .3s, color .3s, border-color .3s, transform .35s var(--ease); }
.path-ico { width: 52px; height: 52px; padding: 9px; border-radius: 50%; background: rgba(255,255,255,.08); color: var(--g3); transition: color .3s, background .3s; }
.path-text { display: flex; flex-direction: column; }
.path-text strong { font-family: var(--serif); font-size: 1.35rem; line-height: 1.15; color: var(--white); transition: color .3s; }
.path-text span { font-size: .95rem; color: rgba(255,255,255,.82); transition: color .3s; }
.path-arrow { width: 26px; height: 26px; color: var(--white); transition: transform .35s var(--ease), color .3s; }
.path:hover, .path:focus-visible { background: var(--white); border-color: var(--white); transform: translateX(6px); }
.path:hover .path-text strong, .path:hover .path-arrow, .path:focus-visible .path-text strong, .path:focus-visible .path-arrow { color: var(--g9); }
.path:hover .path-text span, .path:focus-visible .path-text span { color: var(--muted); }
.path:hover .path-ico, .path:focus-visible .path-ico { background: var(--g1); color: var(--g5); }
.path:hover .path-arrow { transform: translateX(4px); }
.intro .path:focus-visible { outline-color: var(--white); }
.intro-seal { position: relative; justify-self: center; width: min(440px, 100%); aspect-ratio: 1; animation: seal-in 1.4s var(--ease) .25s both; }
.seal-logo { position: relative; width: 100%; height: 100%; border-radius: 50%; background: var(--white); box-shadow: 0 0 0 10px rgba(255,255,255,.1), 0 40px 80px -30px rgba(0,0,0,.6); }
.seal-ring { position: absolute; inset: -26px; border-radius: 50%; border: 1px dashed rgba(255,255,255,.35); animation: spin 120s linear infinite; }

@keyframes flag-in { from { opacity: 0; transform: translateX(6%); } }
@keyframes wave { to { transform: translateX(-1200px); } }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }
@keyframes seal-in { from { opacity: 0; transform: scale(.86) rotate(-10deg); } }
@keyframes ermine-in { from { opacity: 0; transform: translateY(-10px) scale(.6); } to { opacity: .9; } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .intro-grid { grid-template-columns: 1fr; padding-bottom: 7rem; }
  .intro-seal { order: -1; width: min(240px, 62vw); }
  .seal-ring { inset: -14px; }
  .intro-flag { inset: 0; width: 100%; -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 70%); mask-image: linear-gradient(180deg, #000 0%, transparent 70%); }
  .intro-ermines { display: none; }
  .intro-title { max-width: none; }
}

/* Accès rapides */
.quickbar { position: relative; z-index: 2; margin-top: -3rem; }
.quick-list { display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; padding: .5rem; margin-block: 0; background: var(--white); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 24px 60px -36px rgba(6, 42, 21, .45); }
.quick-list li { display: flex; }
.quick-list a { flex: 1; display: flex; align-items: center; gap: .9rem; padding: 1rem 1.2rem; border-radius: 16px; color: var(--ink); text-decoration: none; transition: background .2s; }
.quick-list a:hover { background: var(--sage); }
.quick-ico { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--sage); color: var(--g7); transition: background .2s, color .2s; }
.quick-ico .ico { width: 22px; height: 22px; }
.quick-list a:hover .quick-ico { background: var(--g9); color: var(--white); }
.quick-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.quick-text strong { font-family: var(--serif); font-size: 1.12rem; font-weight: 600; color: var(--g9); }
.quick-text span { font-size: .86rem; color: var(--muted); }
.quick-list li + li { border-left: 1px solid var(--line); }
@media (max-width: 900px) { .quick-list { grid-template-columns: 1fr 1fr; } .quick-list li:nth-child(3) { border-left: 0; } .quick-list li:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 480px) { .quick-list a { flex-direction: column; align-items: flex-start; padding: .9rem .8rem; gap: .55rem; } .quick-ico { width: 38px; height: 38px; } .quick-text strong { font-size: 1rem; } .quick-text span { font-size: .8rem; } }

/* Sections */
.section { padding-block: clamp(4rem, 8vw, 6.5rem); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.section-head .h2 { margin: 0; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5.5rem); align-items: start; }
.audiences { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.audiences li { display: grid; grid-template-columns: 56px 1fr; gap: 1rem; padding: 1.2rem; border-radius: var(--r); background: var(--paper); }
.audiences svg { width: 56px; height: 56px; padding: 11px; border-radius: 50%; background: var(--white); color: var(--g7); }
.audiences h3 { font-size: 1.2rem; margin-bottom: .2em; }
.audiences p { margin: 0; color: var(--muted); }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

.missions { background: var(--paper); }
.mission-list { list-style: none; margin: 2.2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.mission svg { width: 54px; height: 54px; color: var(--g5); margin-bottom: 1rem; }
.mission h3 { font-size: 1.3rem; }
.mission p { color: var(--muted); margin: 0; }
@media (max-width: 960px) { .mission-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .mission-list { grid-template-columns: 1fr; } }

/* Parcours pédagogique : la ligne se remplit au défilement */
.journey-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 5rem); }
.journey-head { position: sticky; top: 120px; align-self: start; }
.journey-head p { color: var(--muted); max-width: 40ch; }
.steps { --p: 0; position: relative; list-style: none; margin: 0; padding: 0 0 0 4.2rem; counter-reset: step; }
.steps::before, .steps::after { content: ""; position: absolute; left: 1.45rem; top: .6rem; bottom: .6rem; width: 3px; border-radius: 3px; background: var(--line); }
.steps::after { background: var(--g5); transform-origin: top; }
.js .steps:not(.is-static)::after { transform: scaleY(var(--p)); }
.step { position: relative; padding-bottom: 2.6rem; counter-increment: step; }
.step:last-child { padding-bottom: 0; }
.step-dot { position: absolute; left: -4.2rem; top: 0; width: 3rem; height: 3rem; display: grid; place-items: center; border-radius: 50%; z-index: 1;
  background: var(--g9); border: 3px solid var(--g9); color: var(--white);
  font: 700 1.2rem var(--serif); transition: background .4s, border-color .4s, color .4s, transform .4s var(--ease); }
.step-dot::before { content: counter(step); }
.step h3 { font-size: 1.45rem; margin-bottom: .3em; transition: color .4s; color: var(--g9); }
.step p { color: var(--muted); max-width: 46ch; margin: 0; }
.js .steps:not(.is-static) .step:not(.is-on) .step-dot { background: var(--white); border-color: var(--line); color: var(--muted); }
.js .steps:not(.is-static) .step:not(.is-on) h3 { color: var(--muted); }
.js .steps:not(.is-static) .step.is-on .step-dot { transform: scale(1.06); }
.steps-compact { margin: 1.5rem 0 2rem; }
@media (max-width: 860px) { .journey-grid { grid-template-columns: 1fr; } .journey-head { position: static; } }

/* Avantages */
.benefits { position: relative; background: var(--g9); color: var(--white); overflow: hidden; }
.benefits::after { content: ""; position: absolute; inset: auto 0 0; height: 46px; background: repeating-linear-gradient(180deg, rgba(0,0,0,.4) 0 5px, transparent 5px 10px); opacity: .55; }
.benefits .h2, .benefits h3 { color: var(--white); }
.benefits-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.benefits-head p { color: rgba(255,255,255,.88); font-size: 1.15rem; }
.cotisation { margin-top: 1rem; padding: 1rem 1.2rem; border-radius: var(--r); background: rgba(255,255,255,.08); }
.cotisation p:last-child { margin: 0; }
.benefit-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.benefit-list li { display: grid; gap: .8rem; padding: 1.4rem; border-radius: 20px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); }
.benefit-list svg { width: 46px; height: 46px; color: var(--g3); }
.benefit-list h3 { font-size: 1.3rem; margin-bottom: .2em; }
.benefit-list p { margin: 0; color: rgba(255,255,255,.82); }
.benefits :focus-visible { outline-color: var(--white); }
@media (max-width: 900px) { .benefits-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .benefit-list { grid-template-columns: 1fr; } }

/* Actualités (cartes) */
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.news-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 1rem; }
.news-card { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: 18px; background: var(--white); border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; }
.news-card:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -28px rgba(6, 42, 21, .55); border-color: var(--g3); }
.news-card:focus-within { border-color: var(--g9); }
.news-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.news-body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.news-meta { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .8rem; }
.tag { display: inline-block; padding: .2em .7em; border-radius: 999px; font-size: .82rem; font-weight: 600; background: var(--g1); color: var(--g9); }
.tag-evenement { background: var(--g9); color: var(--white); }
.tag-aud { background: transparent; border: 1px solid var(--line); color: var(--muted); }
.news-title { font-size: 1.3rem; margin-bottom: .4em; }
.news-title a { color: var(--g9); text-decoration: none; }
.news-title a::after { content: ""; position: absolute; inset: 0; }
.news-title a:hover { text-decoration: underline; }
.news-when { display: flex; align-items: center; gap: .4rem; font-size: .92rem; color: var(--muted); margin-bottom: .6em; }
.news-excerpt { color: var(--muted); margin: 0; }
.is-event .news-body { border-top: 5px solid var(--g9); }
@media (max-width: 960px) { .news-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .news-grid, .news-grid-2 { grid-template-columns: 1fr; } }

/* Boîte à outils */
.toolbox { padding-top: 0; }
.toolbox-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 2rem; align-items: center; padding: clamp(1.8rem, 4vw, 2.8rem); border-radius: var(--r-lg); background: var(--g1); }
.toolbox-ico { width: 84px; height: 84px; padding: 18px; border-radius: 50%; background: var(--white); color: var(--g7); }
.toolbox-inner .h2 { margin-bottom: .3em; }
.toolbox-inner p { margin: 0; color: var(--muted); max-width: 60ch; }
.toolbox-inner .btn-row { margin: 0; }
@media (max-width: 860px) { .toolbox-inner { grid-template-columns: 1fr; } }

/* Apparition au défilement (sobre, une seule fois) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal:nth-child(2) { transition-delay: .08s; } .js .reveal:nth-child(3) { transition-delay: .16s; } .js .reveal:nth-child(4) { transition-delay: .24s; }

/* ==========================================================================
   Pages intérieures
   ========================================================================== */
.page-head { padding-block: 1.6rem clamp(2rem, 4vw, 3rem); }
.page-head .h1 { margin-bottom: .35em; }
.page-ico { width: 64px; height: 64px; color: var(--g5); margin-bottom: .8rem; }
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; padding-bottom: 5rem; }
.side { display: grid; gap: 1.2rem; position: sticky; top: 110px; }
.side-card { padding: 1.5rem; border-radius: 20px; background: var(--paper); }
.side-card p:last-child { margin-bottom: 0; }
.side-card .h3 { margin-bottom: .6em; }
.side-dark { background: var(--g9); color: var(--white); }
.side-dark .h3 { color: var(--white); }
.side-dark :focus-visible { outline-color: var(--white); }
@media (max-width: 920px) { .page-grid { grid-template-columns: 1fr; } .side { position: static; } }
.anchors ul { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 1.5rem 0 0; padding: 0; }
.anchors a { display: inline-block; padding: .4rem .9rem; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--g9); font-weight: 500; font-size: .95rem; }
.anchors a:hover { border-color: var(--g9); background: var(--g1); }
.people { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .9rem; }
.people li { display: flex; gap: .8rem; align-items: center; }
.initials { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 50%; background: var(--g9); color: var(--white); font: 700 1.1rem var(--serif); }
.links { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.links a { font-weight: 600; display: inline-flex; gap: .3rem; align-items: center; }
.links span { display: block; font-size: .92rem; color: var(--muted); }

/* Documents */
.doc-list { list-style: none; margin: 0 0 1.2rem; padding: 0; display: grid; gap: .7rem; }
.doc { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; padding: 1rem 1.1rem; border-radius: var(--r); border: 1px solid var(--line); background: var(--white); transition: border-color .2s; }
.doc:hover { border-color: var(--g3); }
.doc-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--g1); color: var(--g7); }
.doc-ico .ico { width: 22px; height: 22px; }
.doc-title { margin: 0; font-weight: 600; }
.doc-desc { margin: .15rem 0 0; color: var(--muted); font-size: .95rem; }
.doc-meta { margin: .2rem 0 0; font-size: .85rem; color: var(--muted); }
@media (max-width: 620px) { .doc { grid-template-columns: auto 1fr; } .doc .btn { grid-column: 1 / -1; } }
.doc-group { margin-bottom: 2rem; }
.recent-docs { padding: 1.5rem; border-radius: 20px; background: var(--g1); margin-bottom: 2rem; }

/* Filtres et recherche */
.filters { display: flex; flex-wrap: wrap; gap: .8rem; align-items: flex-end; padding: 1.2rem; border-radius: 18px; background: var(--paper); margin-bottom: 1.2rem; }
.filters .field { margin: 0; min-width: 150px; }
.filters .field-grow { flex: 1 1 260px; }
.cat-chips ul { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0 0 1rem; }
.cat-chips a { display: inline-block; padding: .4rem .9rem; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: .95rem; }
.cat-chips a[aria-current] { background: var(--g9); border-color: var(--g9); color: var(--white); }
.cat-chips span { opacity: .75; }
.results-count { color: var(--muted); font-size: .95rem; }
.lib { padding-bottom: 5rem; }
.pager ul { display: flex; gap: .4rem; list-style: none; padding: 0; margin: 2rem 0 0; justify-content: center; }
.pager a, .pager span { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 .6rem; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; }
.pager span[aria-current] { background: var(--g9); color: var(--white); border-color: var(--g9); }
.upcoming { margin-bottom: 2rem; padding: 1.4rem; border-radius: 20px; background: var(--g9); color: var(--white); }
.upcoming .h3 { color: var(--white); }
.upcoming ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.upcoming li { display: grid; grid-template-columns: 90px 1fr; column-gap: 1rem; align-items: center; }
.upcoming time { grid-row: span 2; display: flex; flex-direction: column; align-items: center; padding: .4rem; border-radius: 12px; background: var(--white); color: var(--g9); font-size: .8rem; line-height: 1.1; text-align: center; }
.upcoming time span { font: 700 1.7rem var(--serif); }
.upcoming a { color: var(--white); font-weight: 600; }
.up-place { font-size: .9rem; opacity: .8; }
.upcoming :focus-visible { outline-color: var(--white); }

/* Article */
.article { max-width: 780px; padding-block: 1.5rem 4rem; }
.article-date { color: var(--muted); }
.article-img { width: 100%; border-radius: 20px; margin: 1rem 0 2rem; }
.event-box { display: grid; gap: .3rem; padding: 1rem 1.2rem; border-radius: var(--r); background: var(--g1); margin: 1rem 0; }
.event-box p { display: flex; gap: .5rem; align-items: center; margin: 0; }
.article-foot { margin-top: 3rem; }

/* Contact */
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 3rem; }
.contact-card { padding: 1.4rem; border-radius: 20px; background: var(--paper); }
.contact-card .ico { width: 30px; height: 30px; color: var(--g5); margin-bottom: .6rem; }
.contact-card h3 { font-size: 1.15rem; margin-bottom: .3em; }
.contact-card address, .contact-card p { font-style: normal; margin: 0; word-break: break-word; }
.useful { margin-top: 1rem; }
.useful-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.useful-list a { position: relative; display: grid; gap: .15rem; padding: 1.2rem 3.4rem 1.2rem 1.3rem; border-radius: 18px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .2s, background .2s; }
.useful-list a:hover { border-color: var(--g9); background: var(--paper); }
.useful-name { font: 700 1.2rem var(--serif); color: var(--g9); }
.useful-url { font-size: .9rem; color: var(--g7); }
.useful-desc { color: var(--muted); font-size: .95rem; }
.useful-list .ico { position: absolute; right: 1.2rem; top: 1.3rem; width: 22px; height: 22px; color: var(--g7); }

/* Pages de confirmation et d'erreur */
.confirm { max-width: 720px; text-align: center; padding-block: 4rem 6rem; }
.confirm .prose, .confirm .page-lead { margin-inline: auto; }
.confirm .btn-row { justify-content: center; }
.confirm-ico { width: 76px; height: 76px; padding: 18px; border-radius: 50%; background: var(--g9); color: var(--white); margin-bottom: 1.2rem; }
.confirm-ico-muted { background: var(--g1); color: var(--g9); }
.empty { padding: 2rem; border-radius: 20px; border: 2px dashed var(--line); text-align: center; color: var(--muted); }
.empty strong { color: var(--ink); }
.empty-inline { color: var(--muted); }

/* Pages légales */
.legal { padding-block: 1.5rem 5rem; }
.legal-date { margin-top: 2rem; color: var(--muted); font-size: .92rem; }
.todo { display: inline-block; padding: .1em .5em; border-radius: 6px; background: var(--warn-bg); border: 1px solid var(--warn-line); font-weight: 600; font-size: .92rem; }
.table-wrap { overflow-x: auto; margin: 1rem 0 1.5rem; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; vertical-align: top; padding: .75rem .8rem; border-bottom: 1px solid var(--line); }
thead th { background: var(--paper); font-weight: 600; }
.sitemap-page { padding-block: 1.5rem 5rem; }

/* ==========================================================================
   Formulaires
   ========================================================================== */
.form fieldset { border: 0; padding: 0; margin: 0 0 1.8rem; }
.form legend { font: 700 1.35rem var(--serif); color: var(--g9); margin-bottom: 1rem; padding: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.2rem; }
.form-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
.field-wide { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid, .form-grid-3 { grid-template-columns: 1fr; } }
.form-narrow { max-width: 560px; }
.field { margin-bottom: 1.15rem; }
.field > label, .form-inline > label { display: block; font-weight: 600; margin-bottom: .35rem; }
.optional { font-weight: 400; color: var(--muted); }
.hint { margin: -.15rem 0 .45rem; font-size: .9rem; color: var(--muted); }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=search], input[type=datetime-local], input[type=date], input[type=file], select, textarea {
  width: 100%; min-height: 48px; padding: .65rem .85rem; font: inherit; color: var(--ink); background: var(--white);
  border: 1.5px solid var(--field); border-radius: 10px; transition: border-color .2s, box-shadow .2s; }
textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
input[type=file] { padding: .55rem; }
input:hover, select:hover, textarea:hover { border-color: var(--g9); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; border-color: var(--g9); box-shadow: 0 0 0 3px var(--g3); }
.has-error input, .has-error select, .has-error textarea, [aria-invalid=true] { border-color: var(--danger); }
select:not([multiple]):not([size]) {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 2.75rem; text-overflow: ellipsis;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%230a3d1f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9rem center; background-size: 16px 16px; }
select:not([multiple]):not([size]):hover, select:not([multiple]):not([size]):focus-visible { background-color: var(--paper); }
select:has(option[value=""]:checked) { color: var(--muted); }
select option { color: var(--ink); }
select::-ms-expand { display: none; }
.error-msg { display: flex; gap: .4rem; align-items: flex-start; margin: .4rem 0 0; color: var(--danger); font-weight: 600; font-size: .92rem; }
.check { display: flex; gap: .7rem; align-items: flex-start; font-weight: 400; cursor: pointer; margin-bottom: .6rem; }
.check input { width: 22px; height: 22px; margin: .15rem 0 0; flex: none; accent-color: var(--g9); }
.check-light { color: rgba(255,255,255,.85); font-size: .88rem; }
.check-light a { color: var(--white); }
.form-note { font-size: .92rem; color: var(--muted); }
.pw { position: relative; }
.pw input { padding-right: 6.5rem; }
.pw-toggle { position: absolute; right: .35rem; top: 50%; transform: translateY(-50%); min-height: 38px; padding: 0 .8rem; border: 0; border-radius: 8px; background: var(--g1); color: var(--g9); font: 600 .9rem var(--sans); cursor: pointer; display: none; }
.js .pw-toggle { display: block; }
.adh-steps { display: flex; gap: .5rem; list-style: none; padding: 0; margin: 0 0 2rem; counter-reset: s; }
.adh-steps li { flex: 1; counter-increment: s; padding: .8rem 1rem; border-radius: 14px; background: var(--paper); font-size: .92rem; color: var(--muted); }
.adh-steps li::before { content: counter(s); display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; margin-right: .5rem; border-radius: 50%; background: var(--white); font-weight: 700; color: var(--g9); }
.adh-steps .is-current { background: var(--g9); color: var(--white); }
@media (max-width: 640px) { .adh-steps { flex-direction: column; } }
.form-inline { display: grid; gap: .5rem; }

/* Alertes */
.alert { padding: 1rem 1.2rem; border-radius: 14px; margin-bottom: 1.5rem; border-left: 5px solid; }
.alert p:last-child, .alert ul:last-child { margin-bottom: 0; }
.alert-ok { background: var(--g1); border-color: var(--g5); }
.alert-error { background: #fdecea; border-color: var(--danger); }
.alert-error a { color: var(--danger); font-weight: 600; }
.alert-warn { background: var(--warn-bg); border-color: var(--warn-line); }

/* Connexion */
.auth { display: grid; place-items: center; padding-block: 2.5rem 6rem; }
.auth-card { width: min(100%, 460px); padding: clamp(1.6rem, 5vw, 2.6rem); border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); box-shadow: 0 30px 70px -45px rgba(6, 42, 21, .6); }
.auth-card > img { border-radius: 50%; margin-bottom: 1rem; }
.auth-links { margin-top: 1rem; text-align: center; }
.auth-help { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .95rem; }
.member-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.5rem; }
.member-actions { display: flex; flex-wrap: wrap; gap: .5rem; }

/* ==========================================================================
   Pied de page
   ========================================================================== */
.site-footer { position: relative; background: var(--g10); color: rgba(255,255,255,.85); padding-top: 4rem; overflow: hidden; }
.site-footer a { color: var(--white); }
.site-footer :focus-visible { outline-color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.1fr .9fr 1.2fr; gap: 3rem; padding-bottom: 3rem; }
.footer-id img { border-radius: 50%; background: var(--white); margin-bottom: 1rem; }
.footer-name { font: 700 1.25rem var(--serif); color: var(--white); max-width: 26ch; line-height: 1.2; }

.foot-coords { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .7rem; }
.foot-coords li { display: grid; grid-template-columns: 34px 1fr; gap: .7rem; align-items: start; line-height: 1.45; }
.foot-coords .ico { width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: rgba(255,255,255,.08); color: var(--g3); }
.foot-coords li > :last-child { padding-top: .35rem; word-break: break-word; }
.footer-title { font: 700 1.2rem var(--serif); color: var(--white); margin-bottom: 1rem; }
.footer-nav ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.footer-nav a { text-decoration: none; color: rgba(255,255,255,.85); }
.footer-nav a:hover { color: var(--white); text-decoration: underline; }
.nl-label { display: block; font-weight: 600; margin-bottom: .4rem; color: var(--white); }
.nl-row { display: flex; gap: .5rem; margin-bottom: .8rem; }
.nl-row input { flex: 1; min-width: 0; border-color: transparent; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 1.4rem 2.8rem; border-top: 1px solid rgba(255,255,255,.15); font-size: .9rem; }
.footer-legal p { margin: 0; }
.footer-legal ul { display: flex; flex-wrap: wrap; gap: 1.2rem; list-style: none; padding: 0; margin: 0; }
.footer-stripes { position: absolute; left: 0; bottom: 0; width: 100%; height: 24px; stroke: rgba(255,255,255,.12); stroke-width: 4; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-news { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } .nl-row { flex-direction: column; } }

/* ==========================================================================
   Administration
   ========================================================================== */
.admin-body { background: var(--paper); }
.admin-shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 100vh; }
.admin-side { position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 1.5rem; padding: 1.4rem 1rem; background: var(--g10); color: var(--white); }
.admin-side :focus-visible { outline-color: var(--white); }
.admin-brand { display: flex; align-items: center; gap: .6rem; color: var(--white); text-decoration: none; font: 700 1.15rem var(--serif); }
.admin-brand img { border-radius: 50%; background: var(--white); }
.admin-side ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .15rem; }
.admin-side nav a { display: block; padding: .55rem .8rem; border-radius: 10px; color: rgba(255,255,255,.85); text-decoration: none; }
.admin-side nav a:hover { background: rgba(255,255,255,.08); color: var(--white); }
.admin-side nav a[aria-current] { background: var(--white); color: var(--g9); font-weight: 600; }
.admin-user { margin-top: auto; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.15); font-size: .92rem; }
.admin-user p { margin: 0 0 .4rem; font-weight: 600; }
.admin-link { display: block; padding: .25rem 0; background: none; border: 0; font: inherit; color: rgba(255,255,255,.85); text-decoration: underline; cursor: pointer; }
.admin-main { padding: clamp(1.2rem, 3vw, 2.5rem); max-width: 1200px; }
.admin-h1 { font-size: 2rem; margin-bottom: 1.2rem; }
.admin-card { padding: 1.4rem; border-radius: 18px; background: var(--white); border: 1px solid var(--line); margin-bottom: 1.2rem; }
.admin-card legend { font: 700 1.15rem var(--serif); color: var(--g9); padding: 0 .3rem; }
fieldset.admin-card { margin-bottom: 1.2rem; }
.info-card { background: var(--g1); border-color: transparent; }
.info-card p { margin: 0; }
.admin-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; align-items: start; }
.admin-cols-form { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.admin-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.admin-toolbar p { margin: 0; }
.admin-table { background: var(--white); border-radius: 14px; overflow: hidden; }
.admin-table th[scope=row] { font-weight: 600; }
.admin-table .actions { display: flex; flex-wrap: wrap; gap: .4rem; }
.admin-back { font-weight: 600; }
.admin-thumb { display: block; width: 100%; max-width: 280px; border-radius: 10px; margin-bottom: .6rem; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; list-style: none; padding: 0; margin: 0 0 1.5rem; }
.stat-grid a { display: block; height: 100%; padding: 1.2rem; border-radius: 16px; background: var(--white); border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.stat-grid a:hover { border-color: var(--g9); }
.stat-grid strong { display: block; font: 700 2.2rem var(--serif); color: var(--g9); line-height: 1; margin-bottom: .3rem; }
.stat-grid span { font-size: .92rem; color: var(--muted); }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.checklist li { display: flex; gap: .6rem; align-items: flex-start; }
.checklist .ok .ico { color: var(--g5); }
.checklist .ko .ico { color: var(--warn-line); }
.simple-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.badge { display: inline-block; padding: .15em .6em; border-radius: 999px; font-size: .8rem; font-weight: 600; white-space: nowrap; }
.badge-nouvelle { background: #e7eefc; color: #1d3f86; }
.badge-en_cours { background: var(--warn-bg); color: #6b4e00; }
.badge-acceptee { background: var(--g1); color: var(--g9); }
.badge-refusee { background: #fdecea; color: var(--danger); }
.tabs { display: flex; flex-wrap: wrap; gap: .3rem; }
.tabs a { padding: .45rem .9rem; border-radius: 999px; background: var(--white); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: .92rem; }
.tabs a[aria-current] { background: var(--g9); border-color: var(--g9); color: var(--white); }
.dl { display: grid; grid-template-columns: 130px 1fr; gap: .6rem 1rem; margin: 0; }
.dl dt { font-weight: 600; color: var(--muted); }
.dl dd { margin: 0; word-break: break-word; }
.danger-zone { margin-top: 1.5rem; padding: 1rem; border-radius: 12px; border: 1px solid #f1c4bf; }
.danger-zone summary { cursor: pointer; color: var(--danger); font-weight: 600; }
.inline-form { display: flex; gap: .4rem; align-items: center; }
.inline-form select { min-height: 38px; padding: .3rem .5rem; width: auto; }
.js [data-hide-js] { display: none; }
.copy-field { max-width: 640px; font-size: .9rem; }
.invite-box p { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.text-group .field { padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.text-group .field:last-child { border: 0; padding-bottom: 0; }
.sticky-save { position: sticky; bottom: 0; padding: 1rem 0; background: linear-gradient(transparent, var(--paper) 35%); }
.msg-list { list-style: none; padding: 0; margin: 0; }
.msg-list .is-done { opacity: .65; }
@media (max-width: 960px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: static; height: auto; }
  .admin-side ul { display: flex; flex-wrap: wrap; }
  .admin-cols, .admin-cols-form { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Préférences de l'utilisateur
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .flag-stripes .stripe-row, .seal-ring { animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .ermine { opacity: .9; }
  .intro-video { display: none; }
}
@media (forced-colors: active) {
  .btn, .path, .news-card, .doc, .side-card { border: 1px solid CanvasText; }
  .stripe-dark, .stripe-light { display: none; }
}
@media print {
  .site-header, .site-footer, .quickbar, .intro-flag, .intro-ermines, .breadcrumb, .side, .filters { display: none !important; }
  .intro { background: none; color: #000; } .intro-title { color: #000; }
  body { font-size: 11pt; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; }
}

/* Cadres de formulaire dans l'administration */
.form fieldset.admin-card { padding: 1.4rem; border: 1px solid var(--line); border-radius: 18px; background: var(--white); }
.form fieldset.admin-card > legend { float: left; width: 100%; padding: 0; margin-bottom: .9rem; font-size: 1.2rem; }
.form fieldset.admin-card > legend + * { clear: both; }


/* ==========================================================================
   Ancrage breton et coordonnées
   ========================================================================== */
.ancrage-section { background: var(--white); padding-top: 0; }
.ancrage { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; margin-top: 2rem; }
.ancrage-map { margin: 0; padding: clamp(1rem, 3vw, 2rem); border-radius: var(--r-lg); background: var(--sage); }
.bzh-map { display: block; width: 100%; height: auto; overflow: visible; }
.bzh-map .dep { fill: var(--white); stroke: var(--g7); stroke-width: 1.1; stroke-linejoin: round; transition: fill .3s; }
.bzh-map .dep:hover { fill: #f5faf6; }
.bzh-map .city-dot { fill: var(--g9); }
.bzh-map .city-halo { fill: var(--g5); opacity: .18; transform-box: fill-box; transform-origin: center; animation: halo 3.2s var(--ease) infinite; }
.bzh-map text { font: 700 22px var(--serif); fill: var(--g9); }
.ancrage-map figcaption { margin-top: 1rem; color: var(--muted); font-size: .95rem; text-align: center; }
@keyframes halo { 0%, 100% { transform: scale(1); opacity: .2; } 50% { transform: scale(1.5); opacity: .06; } }
.coords { padding: clamp(1.4rem, 3vw, 2.2rem); border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--white); box-shadow: 0 24px 50px -40px rgba(10, 61, 31, .5); }
.coords-title { margin-bottom: 1.2rem; }
.coord-list { list-style: none; padding: 0; margin: 0; display: grid; }
.coord-list li { display: grid; grid-template-columns: 48px 1fr; gap: 1rem; align-items: start; padding: 1rem 0; border-top: 1px solid var(--line); }
.coord-list li:first-child { border-top: 0; padding-top: 0; }
.coord-ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--sage); color: var(--g7); }
.coord-ico .ico { width: 22px; height: 22px; }
.coord-label { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .2rem; }
.coord-list address { font-style: normal; line-height: 1.5; }
.coord-value { font-weight: 600; font-size: 1.08rem; color: var(--g9); text-decoration: none; word-break: break-word; }
.coord-value:hover { text-decoration: underline; }
.coords .btn-row { margin-top: 1.2rem; }
.contact-block { margin-bottom: 3rem; }
.contact-block .ancrage { margin-top: 0; grid-template-columns: 1fr; }
@media (min-width: 1100px) { .contact-block .ancrage { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 860px) { .ancrage { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .bzh-map .city-halo { animation: none; } }

/* Cibles tactiles confortables sur écran tactile (WCAG 2.5.8, recommandations mobiles 44 px) */
.footer-nav ul { gap: 0; }
.footer-nav a { display: inline-block; padding: .3rem 0; }
.footer-legal a { display: inline-block; padding: .2rem 0; }
@media (pointer: coarse) {
  .footer-nav a { padding: .65rem 0; }
  .footer-legal ul { gap: .4rem 1.4rem; }
  .footer-legal a { padding: .55rem 0; }
  .breadcrumb a { display: inline-block; padding: .4rem 0; }
}

/* Administration sur mobile et tablette */
.admin-main { min-width: 0; }
@media (max-width: 960px) {
  .admin-shell { grid-template-columns: minmax(0, 1fr); }
  .admin-side { gap: .8rem; padding: .9rem 1rem .6rem; }
  .admin-side ul { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; margin: 0 -1rem; padding: 0 1rem .4rem; scrollbar-width: thin; }
  .admin-side nav li { flex: none; scroll-snap-align: start; }
  .admin-side nav a { white-space: nowrap; min-height: 44px; display: flex; align-items: center; }
  .admin-user { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem 1.2rem; padding-top: .6rem; }
  .admin-user p { margin: 0; flex-basis: 100%; }
  .admin-user .admin-link { min-height: 44px; display: inline-flex; align-items: center; }
  .admin-h1 { font-size: 1.6rem; }
  .table-wrap { background: linear-gradient(90deg, var(--white) 30%, transparent), linear-gradient(90deg, transparent, var(--white) 70%) 100% 0, radial-gradient(farthest-side at 0 50%, rgba(0,0,0,.14), transparent), radial-gradient(farthest-side at 100% 50%, rgba(0,0,0,.14), transparent) 100% 0;
    background-repeat: no-repeat; background-size: 40px 100%, 40px 100%, 14px 100%, 14px 100%; background-attachment: local, local, scroll, scroll; }
  .admin-table { background: transparent; }
  .admin-table .actions { min-width: 220px; }
  .dl { grid-template-columns: 1fr; gap: .1rem; }
  .dl dd { margin-bottom: .6rem; }
}
