:root {
  --ink: #07101d;
  --ink-soft: #111c2c;
  --paper: #f3f3ed;
  --white: #ffffff;
  --muted: #637083;
  --line: #d7d9d4;
  --yellow: #ffd51f;
  --red: #df2432;
  --blue: #168bd2;
  --max: 1180px;
  --pad: clamp(1.2rem, 4vw, 3.5rem);
  --display: "Arial Narrow", "Roboto Condensed", "Segoe UI", sans-serif;
  --body: "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
.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; }
.wrap { width: min(var(--max), calc(100% - (var(--pad) * 2))); margin-inline: auto; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 1000; background: var(--yellow); padding: .7rem 1rem; font-weight: 800; }
.skip-link:focus { top: 1rem; }

.emergency-bar { background: var(--yellow); color: var(--ink); font-size: .84rem; font-weight: 800; letter-spacing: .035em; text-transform: uppercase; }
.emergency-bar .wrap { display: flex; min-height: 36px; align-items: center; justify-content: space-between; gap: 1rem; }
.emergency-bar a { text-decoration-thickness: 2px; text-underline-offset: 3px; }
.emergency-bar span:last-child { font-weight: 650; text-transform: none; letter-spacing: 0; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(7, 16, 29, .96); color: var(--white); border-bottom: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(14px); }
.nav-shell { display: flex; min-height: 80px; align-items: center; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; flex: 0 0 auto; }
.brand img { width: 42px; height: 50px; object-fit: contain;  }
.brand strong { display: block; font-family: var(--display); font-size: 1.03rem; line-height: 1; letter-spacing: .055em; text-transform: uppercase; }
.brand small { display: block; margin-top: .28rem; color: #aeb7c4; font-size: .67rem; letter-spacing: .16em; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: .15rem; margin-left: auto; }
.main-nav a { position: relative; padding: .72rem .9rem; color: #dbe0e8; font-size: .9rem; font-weight: 700; text-decoration: none; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--white); }
.main-nav a[aria-current="page"]::after { content: ""; position: absolute; left: .9rem; right: .9rem; bottom: .25rem; height: 3px; background: var(--yellow); }
.nav-cta { margin-left: .75rem; background: var(--red); color: var(--white) !important; border: 1px solid var(--red); }
.nav-cta::after { display: none; }
.menu-button { display: none; margin-left: auto; width: 46px; height: 42px; border: 1px solid rgba(255,255,255,.25); background: transparent; align-items: center; justify-content: center; cursor: pointer; }
.menu-button span, .menu-button span::before, .menu-button span::after { display: block; width: 20px; height: 2px; background: #fff; content: ""; transition: .2s ease; }
.menu-button span { position: relative; }
.menu-button span::before { position: absolute; top: -6px; }
.menu-button span::after { position: absolute; top: 6px; }
.menu-button[aria-expanded="true"] span { background: transparent; }
.menu-button[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.menu-button[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

.hero { position: relative; min-height: min(760px, calc(100vh - 116px)); background: var(--ink); color: var(--white); overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0 0 0 42%; z-index: -2; background: url("assets/photo_accueil.jpg") center/cover no-repeat; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--ink) 0 35%, rgba(7,16,29,.94) 47%, rgba(7,16,29,.15) 78%), linear-gradient(0deg, rgba(7,16,29,.9), transparent 45%); }
.hero-grid { display: grid; min-height: inherit; grid-template-columns: repeat(12, 1fr); align-items: center; padding-block: clamp(4rem, 10vh, 7.5rem); }
.hero-copy { grid-column: 1 / span 7; max-width: 730px; }
.eyebrow { display: inline-flex; align-items: center; gap: .75rem; margin: 0 0 1rem; color: var(--yellow); font-size: .8rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 32px; height: 3px; background: currentColor; }
h1, h2, h3 { font-family: var(--display); line-height: .98; text-wrap: balance; }
h1 { margin: 0; font-size: clamp(3.3rem, 8.5vw, 7.2rem); letter-spacing: -.065em; text-transform: uppercase; }
h2 { margin: 0; font-size: clamp(2.2rem, 5vw, 4.5rem); letter-spacing: -.055em; text-transform: uppercase; }
h3 { margin: 0; font-size: clamp(1.2rem, 2.1vw, 1.7rem); letter-spacing: -.02em; }
.hero-lead { max-width: 610px; margin: 1.4rem 0 0; color: #d5dce6; font-size: clamp(1.05rem, 1.8vw, 1.32rem); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; padding: .8rem 1.15rem; border: 2px solid transparent; background: var(--yellow); color: var(--ink); font-size: .86rem; font-weight: 850; letter-spacing: .055em; text-decoration: none; text-transform: uppercase; transition: transform .2s ease, background .2s ease, color .2s ease; }
.button:hover { transform: translateY(-2px); background: #ffe263; }
.button.secondary { border-color: rgba(255,255,255,.6); background: rgba(7,16,29,.5); color: var(--white); }
.button.secondary:hover { border-color: var(--white); background: var(--white); color: var(--ink); }
.button.dark { background: var(--ink); color: var(--white); }
.button.dark:hover { background: #26354a; }
.hero-number { position: absolute; right: var(--pad); bottom: -2.3rem; z-index: -1; color: rgba(255, 255, 255, 0.705); font-family: var(--display); font-size: clamp(10rem, 27vw, 27rem); font-weight: 900; line-height: .72; letter-spacing: -.1em; }
/*.hero-stripe { position: absolute; right: 0; top: 0; width: 18px; height: 100%; background: repeating-linear-gradient(135deg, var(--red) 0 12px, var(--yellow) 12px 24px); }*/
.fact-band { position: relative; z-index: 2; margin-top: -52px; }
.fact-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--white); box-shadow: 0 24px 65px rgba(7,16,29,.15); }
.fact { min-height: 124px; padding: 1.5rem; border-right: 1px solid var(--line); }
.fact:last-child { border-right: 0; }
.fact strong { display: block; color: var(--red); font-family: var(--display); font-size: clamp(1.8rem, 3.2vw, 3rem); line-height: 1; letter-spacing: -.045em; }
.fact span { display: block; margin-top: .5rem; color: #49576a; font-size: .82rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }

.section { padding-block: clamp(5rem, 10vw, 9rem); }
.section.compact { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section-head { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr); gap: 4rem; align-items: end; margin-bottom: 3.5rem; }
.section-head p, .lead { margin: 0; color: var(--muted); font-size: 1.08rem; }
.section-head .eyebrow { margin-bottom: .9rem; color: var(--red); }
.mission-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #b8bcb8; border-left: 1px solid #b8bcb8; }
.mission-card { position: relative; min-height: 315px; padding: 2rem; border-right: 1px solid #b8bcb8; border-bottom: 1px solid #b8bcb8; background: transparent; transition: background .25s ease, color .25s ease; }
.mission-card:hover { background: var(--ink); color: var(--white); }
.mission-card .index { display: inline-grid; width: 42px; height: 42px; place-items: center; border: 1px solid currentColor; color: var(--red); font-family: var(--display); font-weight: 900; }
.mission-card h3 { margin-top: 3.5rem; text-transform: uppercase; }
.mission-card p { margin: .9rem 0 0; color: var(--muted); }
.mission-card:hover p { color: #c7d0dc; }

.split-section { display: grid; grid-template-columns: 1fr 1fr; min-height: 650px; background: var(--ink); color: var(--white); }
.split-image { min-height: 520px; background: url("assets/SRV_1818.JPG") center/cover no-repeat; }
.split-copy { display: flex; align-items: center; padding: clamp(3rem, 7vw, 7rem); }
.split-copy-inner { max-width: 620px; }
.split-copy p { color: #c8d0da; }
.split-copy .feature-list { margin: 2rem 0; }
.feature-list { list-style: none; padding: 0; }
.feature-list li { display: grid; grid-template-columns: 28px 1fr; gap: .85rem; padding: .8rem 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.feature-list li::before { content: "+"; color: var(--yellow); font-size: 1.3rem; font-weight: 900; }

.communes { background: var(--white); }
.commune-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .7rem 2rem; padding-top: 2rem; border-top: 5px solid var(--ink); }
.commune-grid span { padding: .35rem 0; color: #3f4b5b; font-size: .92rem; border-bottom: 1px solid #ecece8; }
.utility-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.utility-card { display: flex; min-height: 210px; flex-direction: column; justify-content: space-between; padding: 1.7rem; border-top: 6px solid var(--yellow); background: var(--white); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.utility-card:hover { transform: translateY(-4px); box-shadow: 0 18px 45px rgba(7,16,29,.1); }
.utility-card.red { border-color: var(--red); }
.utility-card.blue { border-color: var(--blue); }
.utility-card .tag { color: var(--muted); font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.utility-card strong { font-family: var(--display); font-size: 1.55rem; line-height: 1.05; text-transform: uppercase; }
.utility-card span:last-child { color: var(--muted); font-size: .9rem; }

.page-hero { position: relative; overflow: hidden; padding: clamp(4.5rem, 10vw, 8rem) 0; background: var(--ink); color: var(--white); }
.page-hero::after { content: ""; position: absolute; right: -10%; top: -70%; width: 48%; aspect-ratio: 1; border: 90px solid rgba(255,213,31,.07); border-radius: 50%; }
.page-hero h1 { max-width: 970px; font-size: clamp(3rem, 7vw, 6.5rem); }
.page-hero p { max-width: 680px; margin: 1.4rem 0 0; color: #cbd3dd; font-size: 1.18rem; }
.breadcrumb { margin-bottom: 1.5rem; color: #aeb9c7; font-size: .82rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.breadcrumb a { color: var(--yellow); text-underline-offset: 3px; }

.intro-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); gap: clamp(3rem, 8vw, 8rem); align-items: start; }
.intro-copy h2 { margin-bottom: 1.5rem; }
.intro-copy p { color: #485568; font-size: 1.08rem; }
.crest-card { position: sticky; top: 120px; padding: 2rem; background: var(--white); border-top: 8px solid var(--yellow); }
.crest-card img { width: min(240px, 70%); margin: 0 auto 1.5rem; }
.crest-card dl { margin: 0; }
.crest-card div { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.crest-card dt { color: var(--muted); }
.crest-card dd { margin: 0; font-weight: 800; text-align: right; }

.dark-section { background: var(--ink); color: var(--white); }
.org-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 3rem; }
.org-card { min-height: 330px; padding: 2rem; border: 1px solid #304058; background: var(--ink-soft); }
.org-card .abbr { color: var(--yellow); font-family: var(--display); font-size: 3.4rem; font-weight: 900; line-height: 1; }
.org-card h3 { margin: 1rem 0; text-transform: uppercase; }
.org-card p { color: #bdc7d4; }
.org-card small { color: #8f9bad; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }

.timeline { position: relative; max-width: 920px; margin: 3rem auto 0; }
.timeline::before { content: ""; position: absolute; left: 90px; top: 0; bottom: 0; width: 2px; background: #c6c9c4; }
.timeline-item { display: grid; grid-template-columns: 70px 1fr; gap: 3rem; padding-bottom: 3rem; }
.timeline-item .year { color: var(--red); font-family: var(--display); font-size: 1.5rem; font-weight: 900; }
.timeline-item .content { position: relative; padding: 0 0 0 1.5rem; }
.timeline-item .content::before { content: ""; position: absolute; left: -2.32rem; top: .25rem; width: 14px; height: 14px; background: var(--yellow); border: 4px solid var(--ink); outline: 2px solid var(--yellow); }
.timeline-item p { margin: .5rem 0 0; color: var(--muted); }

.join-hero { display: grid; grid-template-columns: 1.02fr .98fr; background: var(--ink); color: var(--white); }
.join-visual { min-height: 560px; background: linear-gradient(0deg, rgba(7,16,29,.25), rgba(7,16,29,.25)), url("assets/formation-volontaires.jpg") center/cover no-repeat; }
.join-copy { display: flex; align-items: center; padding: clamp(3rem, 7vw, 7rem); }
.join-copy p { color: #c7d0dc; font-size: 1.08rem; }
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid #b9bdb8; }
.step { counter-increment: step; min-height: 260px; padding: 1.6rem; border-right: 1px solid #b9bdb8; }
.step:last-child { border-right: 0; }
.step::before { content: "0" counter(step); display: block; margin-bottom: 3rem; color: var(--red); font-family: var(--display); font-size: 1.2rem; font-weight: 900; }
.step p { color: var(--muted); }
.faq { max-width: 900px; margin: 2.5rem auto 0; border-top: 1px solid #aeb3af; }
.faq details { border-bottom: 1px solid #aeb3af; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.35rem 0; cursor: pointer; font-family: var(--display); font-size: 1.2rem; font-weight: 800; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--red); font-size: 1.6rem; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 1.4rem; color: var(--muted); }

.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 1rem; }
.contact-card { min-height: 380px; padding: clamp(2rem, 5vw, 4rem); background: var(--white); }
.contact-card.dark { background: var(--ink); color: var(--white); }
.contact-card h2 { font-size: clamp(2rem, 4.5vw, 3.8rem); }
.contact-card p { color: var(--muted); }
.contact-card.dark p { color: #c2cbd6; }
.contact-list { list-style: none; padding: 0; margin: 2rem 0 0; }
.contact-list li { padding: 1rem 0; border-top: 1px solid var(--line); }
.contact-card.dark .contact-list li { border-color: #334258; }
.contact-list small { display: block; color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.contact-card.dark .contact-list small { color: #94a2b5; }
.contact-list a, .contact-list strong { font-size: 1.04rem; font-weight: 750; text-underline-offset: 4px; }
.notice { padding: 1.2rem 1.4rem; border-left: 5px solid var(--yellow); background: #fff9d9; color: #394455; }
.emergency-panel { display: grid; grid-template-columns: auto 1fr; gap: 1.3rem; align-items: center; margin-top: 2rem; padding: 1.5rem; background: var(--red); color: var(--white); }
.emergency-panel strong { font-family: var(--display); font-size: 3rem; line-height: 1; }
.emergency-panel p { margin: 0; color: var(--white); }
.contact-email { font-size: 1.04rem; font-weight: 750; overflow-wrap: anywhere; }
.contact-form-section { scroll-margin-top: 100px; }
.contact-form-layout { display: grid; grid-template-columns: minmax(270px, .72fr) minmax(0, 1.28fr); gap: clamp(2rem, 7vw, 7rem); align-items: start; }
.contact-form-intro { position: sticky; top: 120px; }
.contact-form-intro > p:not(.eyebrow) { color: var(--muted); font-size: 1.05rem; }
.contact-form-intro .notice { margin-top: 2rem; }
.contact-form { position: relative; padding: clamp(1.5rem, 4vw, 3rem); border-top: 6px solid var(--red); background: var(--white); box-shadow: 0 20px 55px rgba(7,16,29,.09); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.form-field { display: flex; min-width: 0; flex-direction: column; gap: .5rem; }
.form-field-wide { grid-column: 1 / -1; }
.form-field label { color: var(--ink); font-size: .88rem; font-weight: 800; }
.form-field label span, .form-consent > span > span { color: var(--red); }
.form-field input, .form-field select, .form-field textarea { width: 100%; min-height: 52px; padding: .75rem .85rem; border: 1px solid #aeb5bf; border-radius: 0; background: #fbfcfd; color: var(--ink); font-size: 1rem; }
.form-field textarea { min-height: 180px; resize: vertical; line-height: 1.5; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--blue); outline: 3px solid rgba(35,91,161,.2); }
.form-field [aria-invalid="true"] { border-color: var(--red); outline-color: rgba(223,36,50,.16); }
.form-field > small { color: var(--muted); font-size: .78rem; }
.form-consent { display: grid; grid-template-columns: 22px 1fr; gap: .75rem; align-items: start; margin-top: 1.4rem; color: #3d4a5c; font-size: .9rem; cursor: pointer; }
.form-consent input { width: 21px; height: 21px; margin: 0; accent-color: var(--red); }
.form-consent .form-error { grid-column: 2; }
.form-error { display: block; color: #a31524 !important; font-size: .8rem !important; font-weight: 750; }
.form-status { margin-top: 1.3rem; padding: 0; font-weight: 750; }
.form-status:empty { display: none; }
.form-status.is-pending, .form-status.is-success, .form-status.is-error { padding: .9rem 1rem; border-left: 5px solid var(--blue); background: #edf4fc; }
.form-status.is-success { border-color: #167348; background: #eaf7f0; color: #105c39; }
.form-status.is-error { border-color: var(--red); background: #fff0f1; color: #8d1520; }
.form-submit { margin-top: 1.35rem; border: 0; cursor: pointer; }
.form-submit:disabled { cursor: wait; opacity: .65; transform: none; }
.form-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.cta-band { position: relative; overflow: hidden; padding: clamp(4rem, 8vw, 7rem) 0; background: var(--yellow); }
.cta-band::after { content: ""; position: absolute; inset: auto -8% -35% auto; width: 430px; aspect-ratio: 1; border: 80px solid rgba(7,16,29,.08); border-radius: 50%; }
.cta-layout { position: relative; z-index: 1; display: flex; align-items: end; justify-content: space-between; gap: 3rem; }
.cta-layout h2 { max-width: 760px; }
.cta-layout p { max-width: 650px; margin-bottom: 0; }

.site-footer { background: #050b13; color: #bac3d0; }
.footer-grid { display: grid; grid-template-columns: 1.35fr .75fr .9fr .9fr; gap: 3rem; padding-block: 4.5rem; }
.footer-brand { display: flex; gap: 1rem; align-items: flex-start; }
.footer-brand img { width: 58px; }
.footer-brand strong { color: var(--white); font-family: var(--display); font-size: 1.2rem; text-transform: uppercase; }
.footer-brand p { max-width: 360px; margin: .55rem 0 0; color: #8f9aaa; font-size: .9rem; }
.footer-col h3 { margin-bottom: 1rem; color: var(--white); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.footer-col a, .footer-col span { display: block; padding: .25rem 0; color: #b9c3d0; font-size: .9rem; text-underline-offset: 3px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; padding: 1.2rem 0; border-top: 1px solid #253146; color: #818d9d; font-size: .77rem; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }

@media (max-width: 900px) {
  .menu-button { display: inline-flex; }
  .main-nav { position: absolute; left: 0; right: 0; top: 80px; display: none; align-items: stretch; flex-direction: column; padding: 1rem var(--pad) 1.5rem; background: var(--ink); border-top: 1px solid #2a374a; box-shadow: 0 18px 30px rgba(0,0,0,.25); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: .9rem 0; border-bottom: 1px solid #263347; }
  .main-nav a[aria-current="page"]::after { display: none; }
  .nav-cta { margin: .75rem 0 0; padding-inline: 1rem !important; text-align: center; }
  .hero::before { left: 18%; opacity: .7; }
  .hero::after { background: linear-gradient(90deg, rgba(7,16,29,.98), rgba(7,16,29,.58)), linear-gradient(0deg, var(--ink), transparent 55%); }
  .hero-copy { grid-column: 1 / -1; max-width: 680px; }
  .fact-grid { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(2) { border-right: 0; }
  .fact:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .section-head { grid-template-columns: 1fr; gap: 1.5rem; }
  .mission-grid, .org-grid { grid-template-columns: 1fr 1fr; }
  .split-section, .join-hero { grid-template-columns: 1fr; }
  .split-image, .join-visual { min-height: 480px; }
  .commune-grid { grid-template-columns: repeat(3, 1fr); }
  .intro-grid { grid-template-columns: 1fr; }
  .crest-card { position: static; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(2) { border-right: 0; }
  .step:nth-child(-n+2) { border-bottom: 1px solid #b9bdb8; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

/* Navigation secondaire partagée */
.nav-more { position: relative; }
.nav-more summary {
  position: relative;
  display: flex;
  align-items: center;
  gap: .42rem;
  padding: .72rem .9rem;
  color: #dbe0e8;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.nav-more summary::-webkit-details-marker { display: none; }
.nav-more summary::after { content: "+"; color: var(--yellow); font-size: 1.05rem; line-height: 1; }
.nav-more[open] summary::after { content: "−"; }
.nav-more summary:hover, .nav-more summary.is-active { color: var(--white); }
.nav-more summary.is-active::before { content: ""; position: absolute; left: .9rem; right: .9rem; bottom: .25rem; height: 3px; background: var(--yellow); }
.nav-submenu {
  position: absolute;
  top: calc(100% + .55rem);
  left: 0;
  width: 270px;
  padding: .6rem;
  border-top: 4px solid var(--yellow);
  background: var(--white);
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
}
.nav-submenu::before { content: ""; position: absolute; left: 0; right: 0; top: -.8rem; height: .8rem; }
.main-nav .nav-submenu a { display: block; padding: .7rem .8rem; color: #263347; font-size: .86rem; }
.main-nav .nav-submenu a:hover, .main-nav .nav-submenu a[aria-current="page"] { background: #f0f1ec; color: var(--ink); }
.main-nav .nav-submenu a[aria-current="page"]::after { left: .1rem; right: auto; top: .5rem; bottom: .5rem; width: 4px; height: auto; }

/* Pages institutionnelles */
.page-hero-compact { padding-block: clamp(3.8rem, 7vw, 6rem); }
.page-hero-compact h1 { font-size: clamp(3.3rem, 7vw, 6.3rem); }
.split-intro { display: grid; grid-template-columns: minmax(300px, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 8vw, 8rem); align-items: start; }
.prose-lead { padding-top: .4rem; border-top: 5px solid var(--ink); }
.prose-lead p { margin: 0 0 1rem; color: #485568; font-size: 1.08rem; }
.section-tint { background: #e8e9e4; }

.people-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: #304058; border: 1px solid #304058; }
.person-card { position: relative; min-width: 0; background: var(--ink-soft); overflow: hidden; }
.person-card.person-lead { background: #182940; }
.person-photo { position: relative; aspect-ratio: 1 / 1; border: 0; background: #0b1422; overflow: hidden; }
.person-photo::after { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(5,13,24,.28)); content: ""; pointer-events: none; }
.person-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; filter: saturate(.82) contrast(1.04); transition: filter .35s ease, transform .5s ease; }
.person-card:hover .person-photo img, .codir-card:hover .person-photo img { filter: saturate(1) contrast(1.02); transform: scale(1.025); }
.person-card-copy { min-height: 150px; padding: 1.25rem 1.35rem 1.4rem; }
.person-rank { display: block; color: var(--yellow); font-size: .66rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.person-card h3 { margin-top: .65rem; color: var(--white); font-size: 1.28rem; text-transform: uppercase; }
.person-card p { margin: .55rem 0 0; color: #aeb9c8; font-size: .9rem; }
.staff-strip { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 5px solid var(--ink); background: var(--white); }
.staff-strip article { display: grid; min-height: 172px; grid-template-columns: 105px 1fr; gap: 1.25rem; align-items: center; padding: 1.2rem; border-right: 1px solid var(--line); }
.staff-strip article:last-child { border: 0; }
.staff-strip strong, .staff-strip span { display: block; }
.staff-photo { width: 105px; height: 130px; object-fit: cover; object-position: center 18%; background: #d7d9d4; }
.staff-strip strong { font-family: var(--display); font-size: 1.15rem; line-height: 1.05; text-transform: uppercase; }
.staff-strip span { margin-top: .5rem; color: var(--muted); }
.role-list { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid #b9bdb8; }
.role-list article { display: grid; min-height: 108px; grid-template-columns: 72px minmax(155px, .7fr) 1fr; gap: 1rem; align-items: center; padding: .8rem .4rem; border-bottom: 1px solid #b9bdb8; }
.role-list article:nth-child(odd) { padding-right: 1.6rem; border-right: 1px solid #b9bdb8; }
.role-list article:nth-child(even) { padding-left: 1.6rem; }
.role-list strong { font-family: var(--display); text-transform: uppercase; }
.role-list span { color: var(--muted); font-size: .9rem; }
.role-photo { width: 68px; height: 82px; object-fit: cover; object-position: center 18%; background: #d7d9d4; }
.role-photo-fallback { display: grid; place-items: center; background: var(--ink); color: var(--yellow) !important; font-family: var(--display); font-size: 1rem !important; font-weight: 900; }

/* Organes d'intervention */
.oi-overview { display: grid; grid-template-columns: repeat(2, 160px) minmax(260px, 1fr); gap: 1.5rem; align-items: center; }
.oi-stat { min-height: 145px; padding: 1.4rem; border-top: 5px solid var(--red); background: var(--white); }
.oi-stat strong { display: block; color: var(--red); font-family: var(--display); font-size: 3.2rem; line-height: 1; }
.oi-stat span { display: block; margin-top: .7rem; color: var(--muted); font-size: .72rem; font-weight: 850; line-height: 1.3; letter-spacing: .07em; text-transform: uppercase; }
.oi-overview > p { color: var(--muted); font-size: 1.05rem; }
.oi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.oi-card {
  grid-column: auto;
  min-height: 520px;
  background: var(--white);
  border-top: 6px solid var(--ink);
  overflow: hidden;
}

.oi-card:nth-child(4) {
  grid-column: auto;
}
.oi-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  width: calc((100% - 1rem) / 2);
  justify-self: center;
}
.oi-card-primary { border-color: var(--red); }
.oi-photo { position: relative; margin: 0; aspect-ratio: 16 / 9; background: var(--ink); overflow: hidden; }
.oi-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease, filter .3s ease; }
.oi-photo::after { position: absolute; inset: auto 0 0; height: 55%; background: linear-gradient(transparent, rgba(4,10,18,.82)); content: ""; pointer-events: none; }
.oi-photo figcaption { position: absolute; right: 1rem; bottom: .8rem; left: 1rem; z-index: 1; color: var(--white); font-size: .7rem; font-weight: 800; letter-spacing: .04em; }
.oi-card:hover .oi-photo img { filter: saturate(1.06); transform: scale(1.025); }
.oi-card-body { padding: 1.35rem 1.7rem 1.7rem; }
.oi-card-top { display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: .7rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.oi-code { color: var(--red); }
.oi-card h3 { margin-top: 1.7rem; font-size: 1.9rem; text-transform: uppercase; }
.oi-type { margin: .4rem 0 1.4rem; color: var(--red); font-size: .76rem; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.oi-card dl { margin: 0; }
.oi-card dl div { padding: .65rem 0; border-top: 1px solid var(--line); }
.oi-card dt { color: var(--muted); font-size: .68rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.oi-card dd { margin: .1rem 0 0; font-weight: 750; }
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.compare-grid article { padding: clamp(2rem, 5vw, 4rem); border: 1px solid #304058; background: var(--ink-soft); }
.compare-grid article > span { color: var(--yellow); font-family: var(--display); font-size: clamp(3.5rem, 8vw, 6rem); font-weight: 900; line-height: 1; }
.compare-grid h3 { margin-top: 1.2rem; color: var(--white); text-transform: uppercase; }
.compare-grid p { color: #bdc7d4; }

/* Véhicules */
.vehicle-hero { display: grid; grid-template-columns: 1.15fr .85fr; min-height: 630px; background: var(--ink); color: var(--white); }
.vehicle-hero-image { min-height: 480px; background: linear-gradient(0deg, rgba(7,16,29,.2), rgba(7,16,29,.05)), url("assets/echelle-venoge.jpg") center/cover no-repeat; }
.vehicle-hero-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(3rem, 6vw, 6rem); }
.vehicle-hero h1 { font-size: clamp(4rem, 8vw, 7rem); }
.vehicle-hero-copy > p { max-width: 560px; color: #c7d0dc; font-size: 1.08rem; }
.vehicle-feature { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 2rem; padding: 1rem 0; border-top: 1px solid #40516a; border-bottom: 1px solid #40516a; }
.vehicle-feature span { color: var(--yellow); font-size: .75rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.vehicle-feature strong { text-align: right; }
.fleet-filter { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.fleet-filter button { display: inline-flex; align-items: center; gap: .7rem; min-height: 44px; padding: .6rem .85rem; border: 1px solid #b7bbb7; background: transparent; color: #39475a; font-size: .8rem; font-weight: 800; cursor: pointer; }
.fleet-filter button span { display: grid; width: 23px; height: 23px; place-items: center; background: #dddfda; font-size: .68rem; }
.fleet-filter button:hover { border-color: var(--ink); }
.fleet-filter button.is-active { border-color: var(--ink); background: var(--ink); color: var(--white); }
.fleet-filter button.is-active span { background: var(--yellow); color: var(--ink); }
.fleet-help { margin: -.8rem 0 1.3rem; color: var(--muted); font-size: .88rem; }
.fleet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: #c6c9c4; border: 1px solid #c6c9c4; }
.vehicle-card { position: relative; display: grid; grid-template-columns: 78px 1fr; grid-template-rows: 1fr auto; gap: 1rem; min-height: 230px; padding: 1.5rem; background: var(--white); cursor: pointer; overflow: hidden; isolation: isolate; }
.vehicle-card[hidden] { display: none; }
.vehicle-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7,16,29,.97), rgba(7,16,29,.62) 70%, rgba(7,16,29,.28)); opacity: 0; transition: opacity .25s ease; }
.vehicle-photo { position: absolute; inset: 0; z-index: -2; opacity: 0; transform: scale(1.04); transition: opacity .25s ease, transform .4s ease; }
.vehicle-photo img { width: 100%; height: 100%; object-fit: cover; }
.vehicle-copy { min-width: 0; }
.vehicle-number { position: relative; color: var(--red); font-family: var(--display); font-size: 3rem; font-weight: 900; line-height: .85; transition: color .2s ease; }
.vehicle-card small { color: var(--red); font-size: .72rem; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; transition: color .2s ease; }
.vehicle-card h3 { margin-top: 1.1rem; font-size: 1.4rem; text-transform: uppercase; transition: color .2s ease; }
.vehicle-card p { margin: .55rem 0 0; color: var(--muted); font-size: .88rem; transition: color .2s ease; }
.vehicle-view { position: relative; grid-column: 2; align-self: end; color: var(--ink); font-size: .72rem; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; transition: color .2s ease; }
.vehicle-view::before { content: "+"; display: inline-grid; width: 22px; height: 22px; margin-right: .5rem; place-items: center; background: var(--yellow); color: var(--ink); }

@media (hover: hover) {
  .vehicle-card:hover::after, .vehicle-card:hover .vehicle-photo { opacity: 1; }
  .vehicle-card:hover .vehicle-photo { transform: scale(1); }
  .vehicle-card:hover .vehicle-number, .vehicle-card:hover small { color: var(--yellow); }
  .vehicle-card:hover h3, .vehicle-card:hover p, .vehicle-card:hover .vehicle-view { color: var(--white); }
}
.vehicle-card:focus-visible::after, .vehicle-card:focus-visible .vehicle-photo { opacity: 1; }
.vehicle-card:focus-visible .vehicle-photo { transform: scale(1); }
.vehicle-card:focus-visible .vehicle-number, .vehicle-card:focus-visible small { color: var(--yellow); }
.vehicle-card:focus-visible h3, .vehicle-card:focus-visible p, .vehicle-card:focus-visible .vehicle-view { color: var(--white); }

.dialog-open { overflow: hidden; }
.vehicle-dialog { width: min(1120px, calc(100% - 2rem)); max-width: none; max-height: calc(100% - 2rem); padding: 0; border: 0; background: var(--ink); color: var(--white); box-shadow: 0 30px 100px rgba(0,0,0,.48); overflow-y: auto; }
.vehicle-dialog::backdrop { background: rgba(2,7,13,.84); backdrop-filter: blur(6px); }
.vehicle-dialog-layout { position: relative; display: grid; grid-template-columns: 1fr; min-height: 0; }
.vehicle-dialog-close { position: absolute; right: 1rem; top: 1rem; z-index: 2; min-height: 42px; padding: .6rem .9rem; border: 1px solid rgba(255,255,255,.5); background: rgba(7,16,29,.8); color: var(--white); font-size: .72rem; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; cursor: pointer; }
.vehicle-dialog-close:hover { background: var(--white); color: var(--ink); }
.vehicle-dialog-visual { min-width: 0; margin: 0; background: #02060b; }
.vehicle-dialog-visual img { width: 100%; height: clamp(300px, 58vh, 620px); min-height: 0; object-fit: cover; }
.vehicle-dialog-copy { display: flex; min-width: 0; align-items: center; flex-direction: column; padding: clamp(1.5rem, 3vw, 2.75rem); text-align: center; }
.vehicle-dialog-copy small { color: var(--yellow); font-size: .75rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.vehicle-dialog-copy h2 { max-width: 980px; margin-top: .75rem; font-size: clamp(2rem, 4vw, 3.5rem); overflow-wrap: normal; word-break: normal; hyphens: none; }
.vehicle-dialog-copy p { margin: .8rem 0 1.35rem; color: #b8c3d1; }
.vehicle-dialog-nav { display: grid; width: min(100%, 660px); grid-template-columns: 1fr auto 1fr; gap: .75rem; align-items: center; padding-top: 1.2rem; border-top: 1px solid #3b4960; }
.vehicle-dialog-nav button { position: relative; min-height: 52px; padding: .65rem .8rem; border: 1px solid #53627a; background: var(--ink-soft); color: var(--white); box-shadow: inset 0 -3px 0 var(--yellow); font-size: .72rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease; }
.vehicle-dialog-nav button:hover { border-color: var(--yellow); background: var(--yellow); color: var(--ink); transform: translateY(-2px); }
.vehicle-dialog-nav span { display: grid; min-width: 54px; min-height: 44px; place-items: center; border: 1px solid #3b4960; background: #0b1524; color: var(--yellow); font-size: .72rem; font-weight: 850; letter-spacing: .04em; }

/* CODIR */
.governance-intro { display: grid; grid-template-columns: 300px 1fr; gap: clamp(2rem, 7vw, 7rem); align-items: center; }
.governance-number { display: flex; align-items: center; gap: 1.2rem; padding: 2rem; background: var(--yellow); }
.governance-number strong { font-family: var(--display); font-size: 5.5rem; line-height: .8; }
.governance-number span { font-size: .75rem; font-weight: 850; line-height: 1.35; letter-spacing: .07em; text-transform: uppercase; }
.codir-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: #304058; border: 1px solid #304058; }
.codir-card { min-width: 0; background: var(--ink-soft); overflow: hidden; }
.codir-card.codir-lead { grid-column: span 2; background: #182940; }
.codir-card.codir-lead .person-photo { aspect-ratio: 2 / 1; }
.codir-card-copy { min-height: 146px; padding: 1.25rem 1.4rem 1.4rem; }
.codir-card small { display: block; color: var(--yellow); font-size: .7rem; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.codir-card h3 { margin-top: .35rem; color: var(--white); text-transform: uppercase; }
.codir-card p { margin: .5rem 0 0; color: #aeb9c8; font-size: .9rem; }
.portrait-fallback { display: grid; aspect-ratio: 1 / 1; place-items: center; background: linear-gradient(135deg, #17263a, #0c1727); color: var(--yellow); font-family: var(--display); font-size: clamp(3rem, 6vw, 5rem); font-weight: 900; letter-spacing: -.04em; }
.support-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.support-grid-four { grid-template-columns: repeat(4, 1fr); }
.support-grid article { min-width: 0; border-top: 5px solid var(--yellow); background: var(--white); overflow: hidden; }
.support-grid article > div { min-height: 155px; padding: 1.25rem; }
.support-grid small, .support-grid strong, .support-grid span { display: block; }
.support-grid small { color: var(--muted); font-size: .68rem; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.support-grid strong { margin-top: 1rem; font-family: var(--display); font-size: 1.12rem; line-height: 1.05; text-transform: uppercase; }
.support-grid span { margin-top: .35rem; color: var(--muted); }
.support-photo, .support-avatar { width: 100%; aspect-ratio: 4 / 3; background: #d7d9d4; }
.support-photo { display: block; object-fit: cover; object-position: center 18%; }
.support-avatar { display: grid !important; height: auto; place-items: center; background: var(--ink); color: var(--yellow); font-family: var(--display); font-size: 3rem; font-weight: 900; }
.support-grid .support-avatar + div { min-height: 155px; padding: 1.25rem; }

[data-portrait-trigger] { cursor: zoom-in; }
[data-portrait-trigger]:focus-visible { outline: 4px solid var(--yellow); outline-offset: -4px; }
.portrait-dialog { width: min(980px, calc(100% - 2rem)); max-width: none; max-height: calc(100% - 2rem); padding: 0; border: 0; background: #02060b; color: var(--white); box-shadow: 0 30px 100px rgba(0,0,0,.58); overflow: hidden; }
.portrait-dialog::backdrop { background: rgba(2,7,13,.9); backdrop-filter: blur(7px); }
.portrait-dialog-shell { position: relative; }
.portrait-dialog-close { position: absolute; right: 1rem; top: 1rem; z-index: 2; min-height: 44px; padding: .65rem 1rem; border: 1px solid rgba(255,255,255,.6); background: rgba(7,16,29,.86); color: var(--white); font-size: .72rem; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; cursor: pointer; }
.portrait-dialog-close:hover { border-color: var(--yellow); background: var(--yellow); color: var(--ink); }
.portrait-dialog-visual { display: grid; margin: 0; grid-template-rows: minmax(0, 1fr) auto; }
.portrait-dialog-visual img { width: 100%; height: min(76vh, 900px); object-fit: contain; background: #02060b; }
.portrait-dialog-visual figcaption { padding: 1.15rem 1.4rem 1.3rem; border-top: 1px solid #2d3a4d; background: var(--ink); text-align: center; }
.portrait-dialog-visual small { display: block; color: var(--yellow); font-size: .72rem; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.portrait-dialog-visual h2 { margin-top: .35rem; font-size: clamp(1.7rem, 4vw, 2.8rem); text-transform: uppercase; }
.document-callout { display: flex; align-items: end; justify-content: space-between; gap: 3rem; }
.document-callout > div { max-width: 730px; }
.document-callout p:not(.eyebrow) { color: var(--muted); }

/* Liens */
.link-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.link-card { position: relative; display: flex; min-height: 310px; flex-direction: column; padding: 1.5rem; border-top: 6px solid var(--yellow); background: var(--white); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.link-card:hover { transform: translateY(-4px); box-shadow: 0 18px 45px rgba(7,16,29,.1); }
.link-index { color: #c9ccc7; font-family: var(--display); font-size: 2.5rem; font-weight: 900; line-height: 1; }
.link-card small { margin-top: 2.5rem; color: var(--red); font-size: .68rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.link-card strong { margin-top: .4rem; font-family: var(--display); font-size: 1.55rem; text-transform: uppercase; }
.link-card p { margin: .7rem 0 1.2rem; color: var(--muted); font-size: .88rem; }
.link-arrow { margin-top: auto; font-size: .78rem; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.external-list { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid #b4b8b3; }
.external-list a { display: flex; min-height: 116px; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem 1rem; border-bottom: 1px solid #b4b8b3; text-decoration: none; }
.external-list a:nth-child(odd) { border-right: 1px solid #b4b8b3; }
.external-list a:hover { background: var(--white); }
.external-list small, .external-list strong { display: block; }
.external-list small { color: var(--muted); font-size: .67rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.external-list strong { margin-top: .35rem; font-family: var(--display); font-size: 1.25rem; text-transform: uppercase; }
.external-list b { color: var(--red); font-size: 1.5rem; }
.commune-link-grid a { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .65rem 0; border-bottom: 1px solid #ecece8; color: #3f4b5b; font-size: .92rem; font-weight: 750; text-decoration: none; transition: color .2s ease, border-color .2s ease; }
.commune-link-grid a::after { color: var(--red); font-size: .88rem; content: "↗"; transition: transform .2s ease; }
.commune-link-label { display: flex; min-width: 0; align-items: center; gap: .7rem; }
.commune-coat { width: 26px; height: 32px; flex: 0 0 26px; object-fit: contain; }
.commune-link-grid a:hover { border-color: var(--red); color: var(--red); }
.commune-link-grid a:hover::after { transform: translate(2px, -2px); }
.commune-link-grid a:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.emergency-links { padding-block: clamp(4rem, 8vw, 7rem); background: var(--red); color: var(--white); }
.emergency-links-grid { display: grid; grid-template-columns: 1.3fr repeat(3, .55fr); gap: 1rem; align-items: stretch; }
.emergency-links-grid > div { padding-right: 2rem; }
.emergency-links-grid > div p:last-child { color: #ffe4e7; }
.emergency-links-grid a { display: flex; min-height: 180px; flex-direction: column; justify-content: space-between; padding: 1.3rem; border: 1px solid rgba(255,255,255,.55); text-decoration: none; }
.emergency-links-grid a:hover { background: var(--white); color: var(--red); }
.emergency-links-grid a span { font-size: .7rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.emergency-links-grid a strong { font-family: var(--display); font-size: 4rem; line-height: 1; }

@media (max-width: 1100px) {
  .main-nav a, .nav-more summary { padding-inline: .65rem; font-size: .82rem; }
  .nav-cta { margin-left: .35rem; }
  .people-grid, .codir-grid { grid-template-columns: repeat(3, 1fr); }
  .support-grid-four { grid-template-columns: repeat(2, 1fr); }
  .oi-overview { grid-template-columns: repeat(3, 1fr); }
  .oi-overview > p { grid-column: 1 / -1; }
  .fleet-grid, .link-grid { grid-template-columns: repeat(2, 1fr); }
  .emergency-links-grid { grid-template-columns: repeat(3, 1fr); }
  .emergency-links-grid > div { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .nav-more summary { padding: .9rem 0; border-bottom: 1px solid #263347; }
  .nav-more summary.is-active::before { display: none; }
  .nav-submenu { position: static; width: auto; padding: .2rem 0 .5rem 1rem; border: 0; background: #0d1828; box-shadow: none; }
  .main-nav .nav-submenu a { padding: .75rem 1rem; border-color: #263347; background: transparent; color: #c8d0dc; }
  .main-nav .nav-submenu a:hover, .main-nav .nav-submenu a[aria-current="page"] { background: #17243a; color: var(--white); }
  .split-intro, .vehicle-hero { grid-template-columns: 1fr; }
  .people-grid, .codir-grid { grid-template-columns: repeat(2, 1fr); }
  .role-list { grid-template-columns: 1fr; }
  .role-list article:nth-child(odd), .role-list article:nth-child(even) { padding-inline: .4rem; border-right: 0; }
  .oi-grid { grid-template-columns: 1fr 1fr; }
  .oi-card, .oi-card:nth-child(4) { grid-column: auto; }
  .oi-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .vehicle-hero-image { min-height: 470px; }
  .governance-intro { grid-template-columns: 240px 1fr; }
  .link-grid { grid-template-columns: 1fr 1fr; }
  .contact-form-layout { grid-template-columns: 1fr; }
  .contact-form-intro { position: static; }
}

@media (max-width: 620px) {
  .footer-grid { grid-template-columns: 1fr; }
  .people-grid, .codir-grid, .staff-strip, .oi-overview, .oi-grid, .compare-grid, .fleet-grid, .support-grid, .link-grid, .external-list { grid-template-columns: 1fr; }
  .person-card { min-height: 0; }
  .staff-strip article { min-height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .role-list article { grid-template-columns: 68px 1fr; column-gap: .85rem; row-gap: .15rem; }
  .role-list article > span:last-child { grid-column: 2; align-self: start; }
  .oi-overview > p { grid-column: auto; }
  .oi-card, .oi-card:last-child { grid-column: auto; width: auto; min-height: auto; justify-self: stretch; }
  .vehicle-hero-image { min-height: 330px; }
  .vehicle-hero-copy { padding: 3rem var(--pad); }
  .vehicle-feature { align-items: flex-start; flex-direction: column; }
  .vehicle-feature strong { text-align: left; }
  .fleet-filter { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .4rem; }
  .fleet-filter button { flex: 0 0 auto; }
  .vehicle-card { min-height: 210px; }
  .vehicle-dialog { width: calc(100% - 1rem); max-height: calc(100% - 1rem); }
  .vehicle-dialog-layout { min-height: 0; }
  .vehicle-dialog-visual img { height: 42vh; min-height: 250px; }
  .vehicle-dialog-copy { padding: 1.5rem; }
  .vehicle-dialog-copy h2 { font-size: 2rem; }
  .vehicle-dialog-copy p { margin-bottom: 1.3rem; }
  .governance-intro { grid-template-columns: 1fr; }
  .governance-number { width: fit-content; }
  .codir-card.codir-lead { grid-column: auto; }
  .codir-card.codir-lead .person-photo { aspect-ratio: 1 / 1; }
  .document-callout { align-items: stretch; flex-direction: column; }
  .external-list a:nth-child(odd) { border-right: 0; }
  .emergency-links-grid { grid-template-columns: 1fr; }
  .emergency-links-grid > div { grid-column: auto; }
  .emergency-links-grid a { min-height: 130px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field-wide { grid-column: auto; }
  .contact-form { padding: 1.35rem; }
}

@media (max-width: 420px) {
  .vehicle-dialog-nav { grid-template-columns: 1fr 1fr; }
  .vehicle-dialog-nav span { grid-column: 1 / -1; grid-row: 1; justify-self: center; }
  .vehicle-dialog-nav button { grid-row: 2; }
}

@media (max-width: 620px) {
  .emergency-bar span:last-child { display: none; }
  .nav-shell { min-height: 72px; gap: .8rem; }
  .brand img { width: 36px; height: 43px; }
  .brand strong { font-size: .9rem; }
  .brand small { font-size: .58rem; }
  .main-nav { top: 72px; }
  .hero { min-height: 680px; }
  .hero::before { inset: 0; background-position: 62% center; opacity: .55; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .fact-band { margin-top: 0; }
  .fact-grid { grid-template-columns: 1fr 1fr; box-shadow: none; }
  .fact { min-height: 112px; padding: 1.1rem; }
  .mission-grid, .org-grid, .utility-grid { grid-template-columns: 1fr; }
  .mission-card { min-height: 265px; }
  .split-image, .join-visual { min-height: 350px; }
  .split-copy, .join-copy { padding: 3rem var(--pad); }
  .commune-grid { grid-template-columns: 1fr 1fr; gap-inline: 1rem; }
  .timeline { --timeline-axis: 72px; }
  .timeline::before { left: var(--timeline-axis); }
  .timeline-item { position: relative; grid-template-columns: 60px minmax(0, 1fr); gap: 2rem; }
  .timeline-item .year { white-space: nowrap; line-height: 1.1; }
  .timeline-item .content::before { display: none; }
  .timeline-item::before { content: ""; position: absolute; left: calc(var(--timeline-axis) - 11px); top: .25rem; width: 14px; height: 14px; background: var(--yellow); border: 4px solid var(--ink); outline: 2px solid var(--yellow); }
  .steps { grid-template-columns: 1fr; }
  .step { min-height: auto; border-right: 0; border-bottom: 1px solid #b9bdb8; }
  .step:last-child { border-bottom: 0; }
  .step::before { margin-bottom: 1.5rem; }
  .cta-layout { align-items: stretch; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-bottom { flex-direction: column; }
}

/* La barre jaune quitte l'écran, puis le menu reste fixé en haut. */
[data-shared-menu] {
  position: sticky;
  top: -36px;
  z-index: 50;
}

.site-header {
  position: relative;
  top: auto;
  z-index: auto;
}

/* Page Alarmes */
.alarms-hero {
  padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(2.6rem, 5vw, 4rem);
  background: var(--ink);
  color: var(--white);
}

.alarms-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: end;
}

.alarms-hero h1 { font-size: clamp(3.2rem, 7vw, 6rem); }
.alarms-hero .lead { max-width: 720px; margin-top: 1.2rem; color: #c7d0dc; }

.alarms-hero-note {
  padding: 1.25rem 1.4rem;
  border-left: 5px solid var(--yellow);
  background: rgba(255,255,255,.07);
  color: #d8dee7;
  font-size: .92rem;
}

.alarms-hero-note strong {
  display: block;
  margin-bottom: .2rem;
  color: var(--white);
  font-family: var(--display);
  font-size: 1.1rem;
  text-transform: uppercase;
}

.alarms-dashboard { padding: clamp(2.2rem, 5vw, 4rem) 0 clamp(5rem, 9vw, 8rem); }

.alarms-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.2rem 2rem;
  align-items: end;
  margin-bottom: 1.2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #b9bdb8;
}

.alarms-toolbar > div { min-width: 0; }

.alarms-control-label {
  display: block;
  margin-bottom: .55rem;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.alarms-years, .alarms-sort { display: flex; flex-wrap: wrap; gap: .45rem; }

.alarms-year-select { display: none; }

.alarms-filter {
  min-height: 42px;
  padding: .55rem .8rem;
  border: 1px solid #b9bdb8;
  background: transparent;
  color: #39475a;
  font-size: .82rem;
  font-weight: 800;
  cursor: pointer;
}

.alarms-filter:hover { border-color: var(--ink); color: var(--ink); }
.alarms-filter.is-active { border-color: var(--red); background: var(--red); color: var(--white); }
.alarms-sort .alarms-filter.is-active { border-color: var(--ink); background: var(--ink); }

.alarms-status {
  min-height: 1.6rem;
  margin: 0 0 1.4rem;
  color: var(--muted);
  font-size: .9rem;
}

.alarms-status strong { color: var(--ink); }
.alarms-content[aria-busy="true"] { opacity: .72; }
.alarms-loading { display: grid; gap: .8rem; }

.alarms-loading span {
  display: block;
  height: 64px;
  background: linear-gradient(90deg, #e5e6e1 25%, #f2f2ee 50%, #e5e6e1 75%);
  background-size: 200% 100%;
  animation: alarms-shimmer 1.3s linear infinite;
}

@keyframes alarms-shimmer { to { background-position: -200% 0; } }

.alarms-month {
  margin-bottom: 1.6rem;
  border: 1px solid #cfd2cd;
  background: var(--white);
  box-shadow: 0 12px 32px rgba(7,16,29,.055);
}

.alarms-month-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.3rem;
  border-bottom: 1px solid #cfd2cd;
  background: var(--ink);
  color: var(--white);
}

.alarms-month-header h2 { font-size: clamp(1.45rem, 3vw, 2rem); letter-spacing: -.025em; }

.alarms-month-count {
  flex: 0 0 auto;
  color: var(--yellow);
  font-size: .75rem;
  font-weight: 850;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.alarms-table-scroll { width: 100%; overflow-x: auto; }

.alarms-table {
  width: 100%;
  min-width: 940px;
  border-collapse: collapse;
  background: var(--white);
}

.alarms-table th {
  padding: .85rem 1rem;
  background: #e9eae5;
  color: #3e4a5c;
  font-size: .75rem;
  font-weight: 850;
  letter-spacing: .06em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.alarms-table td {
  padding: .9rem 1rem;
  border-top: 1px solid #e5e6e1;
  color: #273448;
  font-size: .9rem;
  line-height: 1.45;
  vertical-align: top;
}

.alarms-table tbody tr:nth-child(even) td { background: #f8f8f5; }
.alarms-table tbody tr:hover td { background: #eef6fb; }
.alarms-table td:first-child { color: var(--red); font-family: var(--display); font-weight: 900; }
.alarms-col-number { width: 68px; }
.alarms-col-date, .alarms-col-time { width: 92px; white-space: nowrap; }
.alarms-col-place { width: 165px; }
.alarms-col-unit { width: 270px; }

.alarms-error {
  padding: 1.4rem;
  border-left: 5px solid var(--red);
  background: #fff0f1;
  color: #7f1d28;
}

.alarms-error p { margin: 0 0 1rem; }

@media (max-width: 900px) {
  .alarms-hero-grid, .alarms-toolbar { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .alarms-years { display: none; }
  .alarms-year-select {
    display: block;
    width: 100%;
    min-height: 50px;
    padding: .7rem 2.8rem .7rem 1rem;
    border: 2px solid var(--ink);
    border-radius: 0;
    background-color: var(--white);
    color: var(--ink);
    font: inherit;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
  }
  .alarms-year-select:focus { outline: 3px solid var(--yellow); outline-offset: 2px; }
  .alarms-filter { flex: 0 0 auto; }
  .alarms-sort { display: grid; grid-template-columns: 1fr 1fr; }
  .alarms-table { min-width: 0; }
  .alarms-table thead { display: none; }
  .alarms-table, .alarms-table tbody, .alarms-table tr, .alarms-table td { display: block; width: 100%; }
  .alarms-table tbody { display: grid; gap: .8rem; padding: .8rem; background: #eceee9; }
  .alarms-table tr { padding: .55rem 1rem; background: var(--white); border-left: 4px solid var(--red); }
  .alarms-table td,
  .alarms-table tbody tr:nth-child(even) td,
  .alarms-table tbody tr:hover td {
    display: grid;
    grid-template-columns: 98px 1fr;
    gap: .8rem;
    padding: .48rem 0;
    border: 0;
    border-bottom: 1px solid #ecece7;
    background: transparent;
    white-space: normal;
  }
  .alarms-table td:last-child { border-bottom: 0; }
  .alarms-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: .7rem;
    font-weight: 850;
    letter-spacing: .05em;
    text-transform: uppercase;
  }
}

@media (max-width: 520px) {
  .alarms-sort { grid-template-columns: 1fr; }
  .alarms-sort .alarms-filter { width: 100%; }
  .alarms-month-header { align-items: flex-start; flex-direction: column; }
}
