/* GERMS Consulting — feuille de style */
@font-face { font-family: "Barlow"; font-weight: 300; font-style: normal; font-display: swap; src: url("../fonts/barlow-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/barlow-latin-600-normal.woff2") format("woff2"); }

:root {
  --red: #b40404;
  --red-2: #d8432b;
  --ink: #3a3335;
  --muted: #8d8587;
  --line: #e6e0df;
  --tint: #f6f3f2;
  --dark: #3f2226;
  --c-routes: #b40404;
  --c-ouvrages: #1f5fae;
  --c-hydraulique: #0f8a86;
  --c-urbanisme: #c98a12;
  --wrap: 1240px;
  --font: "Barlow", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 30px; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body { margin: 0; font-family: var(--font); font-weight: 400; color: var(--ink); background: #fff; line-height: 1.65; font-size: 16px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); }
p { margin: 0 0 1em; }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

h1, h2, h3 { margin: 0; font-weight: 300; line-height: 1.15; }
h2 { color: var(--red); font-size: clamp(1.9rem, 3.2vw, 2.7rem); letter-spacing: .01em; margin-bottom: 26px; padding-bottom: 18px; position: relative; }
h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 2px; background: var(--red); }
.eyebrow { color: var(--muted); font-size: .95rem; letter-spacing: .04em; margin: 0 0 10px; }
.kicker { font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--ink); margin: 22px 0 4px; }
.label { text-transform: uppercase; font-size: .75rem; letter-spacing: .12em; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.mono { font-family: ui-monospace, Consolas, monospace; font-size: .85em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.section { padding: 110px 0; }
.section--tint { background: var(--tint); }
.section__intro { max-width: 640px; color: var(--muted); margin-bottom: 44px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--red); color: #fff; padding: 10px 16px; z-index: 2000; }
.skip-link:focus { left: 10px; top: 10px; }

/* Boutons */
.btn { display: inline-block; padding: 10px 22px; border: 1px solid var(--red); color: var(--red); background: transparent; text-decoration: none; font-size: .92rem; font-weight: 500; letter-spacing: .03em; cursor: pointer; transition: background .25s, color .25s; margin-top: 14px; }
.btn:hover, .btn:focus-visible { background: var(--red); color: #fff; }
.btn--light { border-color: rgba(255, 255, 255, .8); color: #fff; margin-right: 8px; }
.btn--light:hover, .btn--light:focus-visible { background: #fff; color: var(--dark); }
.link { background: none; border: 0; padding: 0; color: var(--red); font-size: .92rem; font-weight: 500; cursor: pointer; }
.link::after { content: " →"; }
.link:hover { text-decoration: underline; }

/* Logo et bouton menu */
.logo { position: absolute; top: 26px; left: 34px; z-index: 50; display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.logo img { background: #fff; border-radius: 4px; padding: 3px; }
.logo span { font-size: 1.35rem; font-weight: 500; letter-spacing: .14em; line-height: 1; }
.logo small { display: block; font-size: .68rem; font-weight: 400; letter-spacing: .34em; margin-top: 5px; text-transform: lowercase; }
.menu-btn { position: fixed; top: 26px; right: 34px; z-index: 1200; width: 62px; height: 62px; border-radius: 50%; border: 0; background: #fff; box-shadow: 0 4px 18px rgba(58, 51, 53, .18); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; transition: transform .2s; }
.menu-btn:hover { transform: scale(1.06); }
.menu-btn__lines { display: flex; flex-direction: column; gap: 5px; width: 22px; }
.menu-btn__lines i { height: 1.5px; background: var(--ink); transition: transform .25s, opacity .2s, background .2s; }
.menu-btn__lines i:last-child { background: var(--red); width: 60%; margin-left: auto; }
.menu-btn__label { font-size: .58rem; letter-spacing: .1em; color: var(--muted); }
.menu-btn[aria-expanded="true"] i:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] i:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); width: 100%; }

.menu { position: fixed; inset: 0; z-index: 1100; background: #fff; overflow-y: auto; animation: fade .25s; }
.menu[hidden] { display: none; }
.menu__inner { min-height: 100%; max-width: var(--wrap); margin: 0 auto; padding: 110px 28px 60px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; align-items: center; }
.menu__links { list-style: none; margin: 0; padding: 0; }
.menu__links a { display: inline-block; font-size: clamp(1.6rem, 3.6vw, 2.6rem); font-weight: 300; color: var(--ink); text-decoration: none; padding: 6px 0; transition: color .2s, padding-left .2s; }
.menu__links a:hover, .menu__links a:focus-visible { color: var(--red); padding-left: 14px; }
.menu__aside { border-left: 1px solid var(--line); padding-left: 40px; color: var(--ink); }
.menu__aside a:not(.btn) { color: var(--ink); text-decoration: none; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* Accueil */
.hero { position: relative; height: min(78vh, 720px); min-height: 480px; display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--red); }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(70, 62, 64, .62) 0%, rgba(120, 70, 62, .45) 40%, rgba(196, 44, 22, .86) 100%); }
.hero__title { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; width: 100%; max-width: 1100px; padding: 0 28px; color: #fff; font-size: clamp(1.7rem, 3.7vw, 3.1rem); font-weight: 300; letter-spacing: .01em; }
.hero__left { text-align: right; transform: translateY(-34px); }
.hero__right { text-align: left; transform: translateY(34px); }
.hero__mark { width: clamp(120px, 19vw, 250px); height: auto; fill: none; stroke: #ff5a36; stroke-width: 5; opacity: .95; margin: 0 8px; }
.hero__mark .fill { fill: #ff5a36; stroke: none; }
.hero__mark .thin { stroke-width: 1.5; opacity: .7; }

.intro { position: relative; z-index: 2; }
.intro__box { margin: -74px 0 0 22%; background: #fff; padding: 46px 60px 46px 46px; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; max-width: 1150px; }
.intro__lead { font-size: 1.12rem; font-weight: 500; color: var(--ink); }
.intro__box div p { color: var(--muted); font-size: .95rem; margin-bottom: 4px; }

/* Blocs deux colonnes */
.duo { display: grid; grid-template-columns: .9fr 1fr; gap: 80px; align-items: start; }
.duo--center { align-items: center; }
.duo__media { margin: 0; }
.duo__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 190px)); gap: 26px 40px; margin: 0 0 50px; text-align: center; }
.stats dt { font-size: clamp(3rem, 5.4vw, 4.6rem); font-weight: 500; color: var(--red-2); line-height: 1; background: linear-gradient(180deg, var(--red-2), var(--red)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stats dd { margin: 4px 0 0; font-weight: 500; font-size: 1rem; letter-spacing: .03em; }
.person { display: flex; align-items: center; gap: 14px; margin: 26px 0 6px; }
.person img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; }
.person p { margin: 0; font-size: .92rem; color: var(--muted); line-height: 1.4; }
.person strong { color: var(--ink); font-weight: 600; }

/* Domaines */
.missions { padding-top: 20px; }
.missions__grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 14px; }
.mission { position: relative; height: min(74vh, 640px); min-height: 380px; border: 0; padding: 0; overflow: hidden; cursor: pointer; background: var(--dark); color: #fff; }
.mission img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease, opacity .4s; opacity: .78; }
.mission::after { content: ""; position: absolute; inset: 0; background: linear-gradient(200deg, rgba(110, 60, 110, .30), rgba(63, 34, 38, .55)); transition: opacity .4s; }
.mission:hover img, .mission:focus-visible img { transform: scale(1.06); opacity: 1; }
.mission:hover::after, .mission:focus-visible::after { opacity: .55; }
.mission__text { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px; text-align: center; }
.mission__text strong { font-size: 1.35rem; font-weight: 500; letter-spacing: .02em; }
.mission__text small { font-size: .9rem; max-width: 26ch; opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s; }
.mission:hover small, .mission:focus-visible small { opacity: .95; transform: none; }
.mission__text i, .band i { width: 26px; height: 26px; border: 1px solid currentColor; border-radius: 50%; position: relative; flex: none; }
.mission__text i::after, .band i::after { content: ""; position: absolute; left: 8px; top: 8.5px; width: 7px; height: 7px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); }

/* Qualité */
.roundel { margin: 0 auto; width: min(100%, 460px); aspect-ratio: 1; position: relative; }
.roundel img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; border-radius: 50%; }
.roundel::before { content: ""; position: absolute; inset: -22px; border: 1px solid var(--red); border-radius: 50%; opacity: .5; }
.roundel::after { content: ""; position: absolute; left: 50%; top: -46px; bottom: -46px; width: 1px; background: linear-gradient(var(--red) 0 46px, transparent 46px calc(100% - 46px), var(--red) calc(100% - 46px)); opacity: .5; }

/* Réalisations */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 40px; }
.cat { position: relative; height: 170px; border: 0; padding: 0; overflow: hidden; cursor: pointer; background: var(--dark); color: #fff; text-align: left; }
.cat img { width: 100%; height: 100%; object-fit: cover; opacity: .55; filter: grayscale(.6); transition: opacity .3s, filter .3s, transform .6s; }
.cat:hover img { opacity: .75; transform: scale(1.05); }
.cat span { position: absolute; left: 20px; right: 20px; bottom: 16px; }
.cat strong { display: block; font-size: 1.15rem; font-weight: 500; line-height: 1.2; }
.cat small { font-size: .85rem; opacity: .9; }
.cat::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--red-2); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.cat[aria-selected="true"] img { opacity: .9; filter: none; }
.cat[aria-selected="true"]::after { transform: scaleX(1); }
.cat[aria-selected="true"]::before { content: ""; position: absolute; inset: 0; z-index: 1; border: 2px solid var(--red-2); pointer-events: none; }
.cat span { z-index: 2; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }

.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.project { background: #fff; border: 0; padding: 0; text-align: left; cursor: pointer; color: var(--ink); display: flex; flex-direction: column; animation: rise .4s both; }
.project__img { position: relative; overflow: hidden; aspect-ratio: 3 / 2; }
.project__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.project:hover img, .project:focus-visible img { transform: scale(1.05); }
.project__badge { position: absolute; top: 12px; left: 12px; background: var(--red); color: #fff; font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; }
.project__count { position: absolute; right: 12px; bottom: 12px; background: rgba(0, 0, 0, .6); color: #fff; font-size: .75rem; padding: 3px 9px; border-radius: 99px; }
.project__body { padding: 18px 20px 22px; }
.project__body strong { display: block; font-size: 1.08rem; font-weight: 500; line-height: 1.3; }
.project__body small { color: var(--muted); font-size: .88rem; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Carte */
.geo { display: grid; grid-template-columns: 1fr 350px; border: 1px solid var(--line); background: #fff; }
.geo__map-wrap { position: relative; min-height: 580px; }
.geo__map { position: absolute; inset: 0; background: #e9e6e4; }
.geo__coords { position: absolute; left: 12px; bottom: 28px; z-index: 500; background: rgba(58, 51, 53, .9); color: #fff; font: 12px/1.5 ui-monospace, Consolas, monospace; padding: 6px 10px; display: flex; flex-direction: column; pointer-events: none; }
.geo__coords b { color: #ffab99; font-weight: 600; margin-right: 4px; }
.geo__panel { display: flex; flex-direction: column; border-left: 1px solid var(--line); max-height: 580px; }
.geo__filters { display: flex; flex-wrap: wrap; gap: 6px; padding: 16px; border-bottom: 1px solid var(--line); }
.chip { background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: .82rem; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.dot--routes { background: var(--c-routes); }
.dot--ouvrages { background: var(--c-ouvrages); }
.dot--hydraulique { background: var(--c-hydraulique); }
.dot--urbanisme { background: var(--c-urbanisme); }
.dot--siege { background: #fff; border: 3px solid var(--red); }
.geo__list { list-style: none; margin: 0; padding: 6px 0; overflow-y: auto; flex: 1; }
.geo__list button { all: unset; box-sizing: border-box; width: 100%; display: flex; gap: 10px; align-items: flex-start; padding: 9px 16px; cursor: pointer; }
.geo__list button:hover, .geo__list button:focus-visible { background: var(--tint); }
.geo__list .dot { margin-top: 7px; }
.geo__list strong { display: block; font-weight: 500; font-size: .95rem; line-height: 1.3; }
.geo__list small { color: var(--muted); font-size: .78rem; font-family: ui-monospace, Consolas, monospace; }
.geo__meta { padding: 14px 16px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted); }
.geo__meta p { margin: 0 0 4px; }
.geo__meta b { color: var(--ink); font-weight: 600; }
.geo__dl { display: inline-block; margin-top: 6px; font-weight: 500; }
.pin { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin: 0 5px 0 0; vertical-align: baseline; background: var(--ink); }
.pin--ind { background: #fff; border: 2px solid var(--ink); margin-left: 12px; }

.leaflet-container { font-family: var(--font); }
.leaflet-popup-content { margin: 0; width: 250px !important; }
.leaflet-popup-content-wrapper { padding: 0; overflow: hidden; border-radius: 2px; }
.pop img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.pop__body { padding: 10px 14px 12px; }
.pop__body strong { display: block; color: var(--ink); font-size: .98rem; font-weight: 600; line-height: 1.25; }
.pop__body span { color: var(--muted); font-size: .82rem; display: block; }
.pop__body code { font-size: .74rem; color: var(--ink); }
.pop__body em { display: block; font-style: normal; font-size: .72rem; color: var(--red); margin-top: 2px; }
.siege-marker { width: 22px; height: 22px; background: var(--red); border: 3px solid #fff; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: 0 2px 6px rgba(0, 0, 0, .4); }
.pays-marker { background: #fff; border: 1px solid var(--ink); color: var(--ink); font: 600 11px/1 var(--font); letter-spacing: .06em; text-transform: uppercase; padding: 4px 7px; white-space: nowrap; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); }

/* Présence */
.countries { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 20px; }
.country { background: #fff; padding: 30px 26px; border-top: 3px solid var(--line); }
.country--hq { border-top-color: var(--red); }
.flag { width: 48px; height: 32px; box-shadow: 0 0 0 1px var(--line); margin-bottom: 20px; display: block; }
.country__role { text-transform: uppercase; font-size: .72rem; letter-spacing: .12em; font-weight: 600; color: var(--muted); margin: 0 0 2px; }
.country--hq .country__role { color: var(--red); }
.country h3 { font-size: 1.7rem; margin-bottom: 10px; color: var(--ink); }
.country p { color: var(--muted); font-size: .93rem; }

/* Actualités */
.news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px 26px; }
.post { border: 0; background: none; padding: 0; text-align: left; cursor: pointer; color: var(--ink); display: flex; flex-direction: column; }
.post__img { overflow: hidden; aspect-ratio: 3 / 2; position: relative; }
.post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.post:hover img, .post:focus-visible img { transform: scale(1.05); }
.post__date { display: block; color: var(--red); font-size: .82rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin: 16px 0 6px; }
.post strong { font-size: 1.2rem; font-weight: 500; line-height: 1.3; display: block; }
.post p { color: var(--muted); font-size: .93rem; margin: 8px 0 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post--lead { grid-column: span 3; display: grid; grid-template-columns: 1.25fr 1fr; gap: 44px; align-items: center; }
.post--lead .post__img { aspect-ratio: 16 / 9; }
.post--lead strong { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 300; }
.post--lead .post__date { margin-top: 0; }
.post--lead p { -webkit-line-clamp: 5; font-size: 1rem; }
.post__more { color: var(--red); font-size: .92rem; font-weight: 500; margin-top: 12px; display: inline-block; }

/* Partenaires */
.partners__logos { background: #fff; padding: 24px; margin: 0 auto 30px; max-width: 880px; width: 100%; }
.partners__list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.partners__list li { background: #fff; border: 1px solid var(--line); padding: 5px 14px; font-size: .88rem; }

/* Bandeau double */
.band { display: grid; grid-template-columns: 1fr 1fr; }
.band a { display: flex; align-items: center; justify-content: center; gap: 20px; padding: 46px 24px; font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 300; color: var(--ink); text-decoration: none; background: #d9cfcf; transition: background .3s, color .3s; }
.band a + a { background: #ece6e6; }
.band a:hover, .band a:focus-visible { background: var(--red); color: #fff; }
.band i { transition: transform .3s; }
.band a:hover i { transform: translateX(8px); }

/* Pied de page */
.footer { background: var(--dark); color: #e9dcdc; padding-top: 64px; position: relative; overflow: hidden; }
.footer::before { content: ""; position: absolute; left: -90px; top: -60px; width: 380px; height: 380px; border: 46px solid rgba(255, 255, 255, .035); border-radius: 50%; pointer-events: none; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 50px; padding-bottom: 50px; position: relative; }
.footer__id { display: flex; gap: 22px; align-items: flex-start; }
.footer__id img { background: #fff; border-radius: 4px; padding: 3px; }
.footer address { font-style: normal; font-size: .93rem; line-height: 1.7; }
.footer address a { color: #fff; text-decoration: none; }
.footer address a:hover { text-decoration: underline; }
.footer h2 { color: #fff; font-size: 1.45rem; margin-bottom: 6px; padding-bottom: 0; }
.footer h2::after { display: none; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .25); padding-top: 18px; padding-bottom: 22px; display: flex; gap: 28px; flex-wrap: wrap; font-size: .8rem; position: relative; }
.footer__bottom a { color: #e9dcdc; }
.footer__credits { margin-left: auto; opacity: .75; }

/* Visionneuse */
.viewer { position: fixed; inset: 0; margin: auto; border: 0; padding: 0; width: min(1180px, calc(100vw - 24px)); max-width: none; height: fit-content; max-height: calc(100vh - 24px); background: #fff; overflow: auto; }
.viewer[open] { display: grid; grid-template-columns: 1.7fr 1fr; }
.viewer::backdrop { background: rgba(40, 24, 26, .86); }
.viewer__stage { position: relative; background: #1c1617; display: flex; align-items: center; min-height: 320px; }
.viewer__stage img { width: 100%; max-height: calc(100vh - 24px); object-fit: contain; }
.viewer__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); color: var(--ink); font-size: 26px; line-height: 1; cursor: pointer; padding-bottom: 4px; }
.viewer__nav--prev { left: 12px; }
.viewer__nav--next { right: 12px; }
.viewer__nav:hover { background: var(--red); color: #fff; }
.viewer__count { position: absolute; left: 14px; bottom: 12px; color: #fff; font-size: .8rem; background: rgba(0, 0, 0, .55); padding: 2px 10px; border-radius: 99px; }
.viewer__body { padding: 54px 30px 30px; }
.viewer__body h3 { font-size: 1.6rem; color: var(--red); margin-bottom: 14px; }
.viewer__body .eyebrow { text-transform: uppercase; font-size: .78rem; letter-spacing: .1em; font-weight: 600; }
.viewer__thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 18px 0 6px; }
.viewer__thumbs button { border: 2px solid transparent; padding: 0; cursor: pointer; background: none; aspect-ratio: 1; overflow: hidden; }
.viewer__thumbs button[aria-current="true"] { border-color: var(--red); }
.viewer__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.viewer__close { position: absolute; top: 10px; right: 10px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 24px; line-height: 1; cursor: pointer; }
.viewer__close:hover { background: var(--red); color: #fff; border-color: var(--red); }

/* Apparition au défilement */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* Adaptation aux écrans */
@media (max-width: 1080px) {
  .geo { grid-template-columns: 1fr; }
  .geo__panel { max-height: none; border-left: 0; border-top: 1px solid var(--line); }
  .geo__list { max-height: 280px; }
  .countries { grid-template-columns: 1fr 1fr; }
  .cats { grid-template-columns: 1fr 1fr; }
  .intro__box { margin-left: 8%; }
}
@media (max-width: 900px) {
  .section { padding: 76px 0; }
  .duo { grid-template-columns: 1fr; gap: 44px; }
  .duo__media img { aspect-ratio: 4 / 3; }
  .stats { margin-left: auto; margin-right: auto; }
  .intro__box { grid-template-columns: 1fr; gap: 18px; margin: -50px 20px 0; padding: 32px 28px; }
  .missions__grid { grid-template-columns: 1fr; }
  .mission { height: 300px; min-height: 0; }
  .mission__text small { opacity: .95; transform: none; }
  .projects, .news { grid-template-columns: 1fr 1fr; }
  .post--lead { grid-column: span 2; grid-template-columns: 1fr; gap: 0; }
  .post--lead .post__date { margin-top: 16px; }
  .footer__grid { grid-template-columns: 1fr; gap: 34px; }
  .footer__credits { margin-left: 0; }
  .menu__inner { grid-template-columns: 1fr; gap: 30px; align-items: start; }
  .menu__aside { border-left: 0; border-top: 1px solid var(--line); padding: 26px 0 0; }
  .viewer[open] { grid-template-columns: 1fr; }
  .viewer__stage img { max-height: 52vh; }
  .viewer__body { padding: 24px 22px 26px; }
  .roundel { width: min(78%, 380px); margin-top: 30px; margin-bottom: 30px; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 20px; }
  .logo { top: 18px; left: 18px; }
  .menu-btn { top: 16px; right: 16px; width: 54px; height: 54px; }
  .hero { height: 76vh; }
  .hero__title { grid-template-columns: 1fr; justify-items: center; text-align: center; font-size: 1.9rem; gap: 6px; }
  .hero__left, .hero__right { text-align: center; transform: none; }
  .hero__mark { width: 96px; }
  .projects, .news, .countries, .band { grid-template-columns: 1fr; }
  .post--lead { grid-column: auto; }
  .cats { gap: 10px; }
  .cat { height: 120px; }
  .cat span { left: 12px; right: 12px; bottom: 10px; }
  .cat strong { font-size: 1rem; }
  .geo__map-wrap { min-height: 430px; }
  .band a { padding: 32px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
