/* ==========================================================================
   Gendarmerie nationale du Niger — site public
   Bleu de l'Arme, orange et vert du drapeau. Titres en Barlow Condensed
   (allure d'insigne), texte en Source Sans 3.
   ========================================================================== */
:root {
    --navy: #15306f;          /* bleu de l'écusson */
    --navy-deep: #0b1b45;
    --navy-soft: #e8edf7;
    --orange: #e05206;
    --orange-dark: #b84204;
    --green: #0a8f3c;
    --ink: #1c2533;
    --muted: #5d6878;
    --line: #dde3eb;
    --paper: #f5f7fa;
    --white: #fff;
    --radius: 6px;
    --font-head: "Barlow Condensed", "Arial Narrow", sans-serif;
    --font-body: "Source Sans 3", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; color: var(--navy); line-height: 1.15; letter-spacing: .005em; }
a { color: var(--navy); }
a:hover { color: var(--orange); }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.skip-link { position: absolute; left: -999px; top: .5rem; z-index: 2000; background: var(--orange); color: #fff; padding: .5rem 1rem; font-weight: 700; }
.skip-link:focus { left: .5rem; }
.tricolor { height: 5px; background: linear-gradient(90deg, var(--orange) 0 33.33%, #fff 33.33% 66.66%, var(--green) 66.66%); }
.main-nav .tricolor { box-shadow: 0 1px 0 #c8d1de; }

/* ---------- bandeau supérieur ---------- */
.topbar { background: var(--navy-deep); color: #c9d3e2; font-size: .9rem; }
.topbar-inner { display: flex; align-items: center; gap: 1rem; min-height: 40px; }
.flash-label { flex: none; background: var(--orange); color: #fff; font-weight: 700; padding: .15rem .7rem; border-radius: 3px; font-size: .82rem; }
.flash { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 1.5rem, #000 calc(100% - 1.5rem), transparent); mask-image: linear-gradient(90deg, transparent, #000 1.5rem, #000 calc(100% - 1.5rem), transparent); }
.flash-track { display: flex; gap: 3rem; width: max-content; animation: flash 40s linear infinite; }
.flash:hover .flash-track, .flash:focus-within .flash-track { animation-play-state: paused; }
.flash a { color: #fff; text-decoration: none; white-space: nowrap; }
.flash a:hover { color: #ffb487; }
.flash a::before { content: "•"; color: var(--orange); margin-right: .6rem; }
@keyframes flash { to { transform: translateX(-50%); } }
.socials { display: flex; gap: .35rem; margin-left: auto; }
.socials a { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: #c9d3e2; text-decoration: none; }
.socials a:hover { background: var(--orange); color: #fff; }

/* ---------- en-tête ---------- */
.site-header { background: #fff; }
.header-inner { display: flex; align-items: center; gap: 1.5rem; padding-block: 1.1rem; }
.brand { display: flex; align-items: center; gap: 1rem; text-decoration: none; color: var(--ink); min-width: 0; }
.brand img, .brand .crest { width: 78px; height: 78px; flex: none; object-fit: contain; }
.crest { display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.6rem; border: 3px solid var(--orange); }
.brand-lines small { display: block; font-size: .92rem; color: var(--muted); line-height: 1.3; }
.brand-lines strong { display: block; font-family: var(--font-head); font-size: clamp(1.5rem, 3vw, 2.15rem); color: var(--navy); line-height: 1.05; margin-top: .2rem; }
.brand-lines em { display: block; font-style: normal; font-size: .85rem; color: var(--orange-dark); font-weight: 600; margin-top: .15rem; }

/* l'élément marquant : le numéro vert */
.green-line { margin-left: auto; display: flex; align-items: center; gap: .9rem; padding: .55rem 1.2rem .55rem .7rem; border-radius: 999px; background: var(--navy); color: #fff; text-decoration: none; box-shadow: 0 10px 24px -14px rgba(11, 27, 51, .8); }
.green-line:hover { color: #fff; background: var(--navy-deep); }
.green-line .ring { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--green); font-size: 1.5rem; animation: ring 4s ease-in-out 1s 3; }
@keyframes ring { 0%, 20%, 100% { transform: rotate(0); } 4%, 12% { transform: rotate(-14deg); } 8%, 16% { transform: rotate(14deg); } }
.green-line small { display: block; font-size: .8rem; color: #c9d3e2; line-height: 1.2; }
.green-line b { display: block; font-family: var(--font-head); font-size: 2rem; line-height: 1; letter-spacing: .02em; }
.green-line b span { font-size: 1.1rem; color: #ffb487; font-weight: 600; margin: 0 .25rem; }

/* ---------- navigation ---------- */
.main-nav { background: var(--navy); position: sticky; top: 0; z-index: 1020; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: nowrap; }
.nav-list > li > a, .nav-list > li > button { display: block; padding: .95rem 1rem; color: #fff; text-decoration: none; font-family: var(--font-head); font-size: 1.12rem; font-weight: 600; letter-spacing: .02em; background: none; border: 0; }
.nav-list > li > a:hover, .nav-list > li > button:hover, .nav-list > li > .active { background: rgba(255, 255, 255, .08); color: #fff; box-shadow: inset 0 -4px 0 var(--orange); }
.nav-list .dropdown-menu { border: 0; border-top: 3px solid var(--orange); border-radius: 0 0 var(--radius) var(--radius); padding: .4rem 0; min-width: 260px; box-shadow: 0 18px 40px -18px rgba(11, 27, 51, .55); }
.nav-list .dropdown-item { padding: .55rem 1.1rem; color: var(--ink); }
.nav-list .dropdown-item:hover, .nav-list .dropdown-item:focus { background: var(--navy-soft); color: var(--navy); }
.nav-search { margin-left: auto; display: flex; align-items: center; padding-left: .8rem; }
.nav-search input { width: 200px; border: 0; border-radius: 999px 0 0 999px; padding: .4rem .9rem; font-size: .95rem; }
.nav-search button { border: 0; border-radius: 0 999px 999px 0; background: var(--orange); color: #fff; padding: .4rem .8rem; }
.nav-toggle { display: none; }

/* ---------- éléments communs ---------- */
.section { padding-block: clamp(2.8rem, 6vw, 4.5rem); }
.section.alt { background: var(--paper); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.6rem; flex-wrap: wrap; }
.section-head h2 { margin: 0; font-size: clamp(1.7rem, 3.5vw, 2.3rem); padding-left: .9rem; border-left: 6px solid var(--orange); }
.section-head p { margin: .35rem 0 0 1.4rem; color: var(--muted); }
.link-more { font-weight: 700; text-decoration: none; color: var(--orange-dark); white-space: nowrap; }
.link-more:hover { color: var(--navy); }
.btn-gn { display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1.3rem; border-radius: var(--radius); background: var(--orange); color: #fff; font-weight: 700; text-decoration: none; border: 2px solid var(--orange); transition: background-color .15s; }
.btn-gn:hover { background: var(--orange-dark); border-color: var(--orange-dark); color: #fff; }
.btn-gn.outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-gn.outline:hover { background: var(--navy); color: #fff; }
.btn-gn.light { background: #fff; color: var(--navy); border-color: #fff; }
.tag { display: inline-block; padding: .12rem .55rem; border-radius: 3px; font-size: .78rem; font-weight: 700; color: #fff; background: var(--navy); text-decoration: none; }
.meta { color: var(--muted); font-size: .9rem; }
.meta i { color: var(--orange); margin-right: .25rem; }
.placeholder-img { display: grid; place-items: center; width: 100%; height: 100%; background: linear-gradient(135deg, var(--navy), var(--navy-deep)); color: rgba(255, 255, 255, .35); font-size: 2.5rem; }

/* ---------- accueil : à la une ---------- */
.hero { padding: 1.6rem 0 2rem; background: var(--paper); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 1.4rem; }
.slider { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--navy-deep); min-height: 440px; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .7s; }
.slide.is-active { opacity: 1; z-index: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 4rem 1.8rem 1.6rem; background: linear-gradient(transparent, rgba(11, 27, 51, .92) 55%); color: #fff; }
.slide-text h2 { color: #fff; font-size: clamp(1.4rem, 3vw, 2.1rem); margin: .5rem 0 .4rem; }
.slide-text h2 a { color: #fff; text-decoration: none; }
.slide-text h2 a:hover { text-decoration: underline; }
.slide-text .meta { color: #c9d3e2; }
.slider-nav { position: absolute; right: 1.2rem; top: 1.2rem; z-index: 2; display: flex; gap: .4rem; }
.slider-nav button { width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); color: var(--navy); }
.slider-nav button:hover { background: var(--orange); color: #fff; }
.slider-dots { position: absolute; left: 1.8rem; top: 1.3rem; z-index: 2; display: flex; gap: .35rem; }
.slider-dots button { width: 26px; height: 5px; border: 0; border-radius: 3px; background: rgba(255, 255, 255, .45); padding: 0; }
.slider-dots button.is-active { background: var(--orange); }
.side-news { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); display: flex; flex-direction: column; }
.side-news h2 { font-size: 1.35rem; margin: 0; padding: 1rem 1.2rem; border-bottom: 3px solid var(--orange); }
.side-item { display: flex; gap: .85rem; padding: .85rem 1.2rem; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.side-item:last-child { border-bottom: 0; }
.side-item:hover { background: var(--navy-soft); color: var(--ink); }
.side-item .thumb { width: 92px; height: 68px; flex: none; border-radius: 4px; overflow: hidden; }
.side-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.side-item strong { display: block; font-size: .96rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.side-item .meta { font-size: .8rem; }

/* bande « numéro vert » mobile + concours */
.alert-band { background: var(--orange); color: #fff; }
.alert-band .inner { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; padding-block: 1.2rem; }
.alert-band h2 { color: #fff; margin: 0; font-size: 1.6rem; }
.alert-band p { margin: 0; opacity: .95; }
.alert-band .btn-gn { margin-left: auto; }

/* missions */
.missions { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.mission { padding: 1.6rem 1.4rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.mission i { font-size: 1.7rem; color: var(--orange); margin-bottom: .8rem; }
.mission h3 { font-size: 1.35rem; margin-bottom: .4rem; }
.mission p { color: var(--muted); margin: 0; font-size: .98rem; }

/* mot du commandant */
.command { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 2.5rem; align-items: center; }
.command figure { margin: 0; }
.command figure img, .command figure .placeholder-img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); border-bottom: 6px solid var(--orange); }
.command blockquote { margin: 0; font-size: 1.18rem; line-height: 1.7; color: var(--ink); }
.command blockquote::before { content: "“"; display: block; font-family: Georgia, serif; font-size: 4rem; line-height: .6; color: var(--orange); }
.command cite { display: block; margin-top: 1rem; font-style: normal; }
.command cite strong { display: block; font-family: var(--font-head); font-size: 1.4rem; color: var(--navy); }

/* cartes d'actualité */
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.news-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.news-card .media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy-soft); }
.news-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.news-card:hover .media img { transform: scale(1.04); }
.news-card .media .tag { position: absolute; left: .8rem; top: .8rem; }
.news-card .body { padding: 1rem 1.15rem 1.2rem; display: flex; flex-direction: column; flex: 1; }
.news-card h3 { font-size: 1.25rem; margin: .35rem 0 .5rem; }
.news-card h3 a { text-decoration: none; color: var(--navy); }
.news-card h3 a:hover { color: var(--orange); }
.news-card p { color: var(--muted); font-size: .97rem; margin: 0 0 1rem; }
.news-card .more { margin-top: auto; font-weight: 700; text-decoration: none; color: var(--orange-dark); }

/* communiqués */
.com-list { list-style: none; padding: 0; margin: 0; }
.com-list li { display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.com-date { flex: none; width: 64px; text-align: center; background: var(--navy); color: #fff; border-radius: var(--radius); padding: .35rem 0; font-family: var(--font-head); line-height: 1.1; }
.com-date b { display: block; font-size: 1.6rem; }
.com-date span { font-size: .85rem; text-transform: lowercase; }
.com-list a { font-weight: 600; text-decoration: none; }
.com-list small { display: block; color: var(--muted); }

/* concours */
.concours-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem; align-items: center; padding: 1.6rem 1.8rem; border-radius: var(--radius); background: var(--navy); color: #dbe3ef; }
.concours-card h3 { color: #fff; font-size: 1.7rem; margin: .4rem 0; }
.concours-card .facts { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; margin-top: .6rem; }
.concours-card .facts span i { color: #ffb487; margin-right: .35rem; }
.status { display: inline-block; padding: .15rem .6rem; border-radius: 3px; font-size: .82rem; font-weight: 700; }
.status.ouvert { background: var(--green); color: #fff; }
.status.a_venir { background: #ffd8bf; color: var(--orange-dark); }
.status.clos { background: #d9dee6; color: var(--muted); }

/* vidéos */
.video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.video-card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.video-card .frame { aspect-ratio: 16 / 9; background: #000; }
.video-card .frame iframe, .video-card .frame video { width: 100%; height: 100%; border: 0; display: block; }
.video-card h3 { font-size: 1.15rem; padding: .8rem 1rem 0; margin: 0; }
.video-card .meta { padding: .2rem 1rem .9rem; }

/* galerie */
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.2rem; }
.album-card { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; text-decoration: none; }
.album-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.album-card:hover img { transform: scale(1.05); }
.album-card .caption { position: absolute; inset: auto 0 0; padding: 2.5rem 1rem .9rem; background: linear-gradient(transparent, rgba(11, 27, 51, .9)); color: #fff; }
.album-card .caption strong { display: block; font-family: var(--font-head); font-size: 1.2rem; line-height: 1.2; }
.album-card .caption small { color: #c9d3e2; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .7rem; }
.photo-grid a { display: block; aspect-ratio: 4 / 3; border-radius: 4px; overflow: hidden; }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.photo-grid a:hover img { transform: scale(1.05); }

/* partenaires */
.partners { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2.5rem; }
.partners a, .partners span { display: block; filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s; }
.partners a:hover { filter: none; opacity: 1; }
.partners img { height: 70px; width: auto; object-fit: contain; }

/* ---------- pages intérieures ---------- */
.page-head { background: var(--navy); color: #fff; padding: 2.4rem 0 2.1rem; position: relative; }
.page-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: linear-gradient(90deg, var(--orange) 0 33.33%, #fff 33.33% 66.66%, var(--green) 66.66%); }
.page-head h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3rem); margin: .3rem 0 0; }
.page-head p { color: #c9d3e2; margin: .5rem 0 0; max-width: 760px; font-size: 1.1rem; }
.breadcrumb { margin: 0; font-size: .9rem; }
.breadcrumb a { color: #c9d3e2; }
.breadcrumb-item + .breadcrumb-item::before { color: #8193ad; }
.breadcrumb-item.active { color: #fff; }
.prose { max-width: 760px; font-size: 1.1rem; line-height: 1.75; }
.prose img { border-radius: var(--radius); height: auto; }
.prose h2 { font-size: 1.8rem; margin-top: 2rem; }
.prose h3 { font-size: 1.45rem; margin-top: 1.6rem; }
.prose blockquote { border-left: 4px solid var(--orange); padding: .3rem 0 .3rem 1.2rem; color: var(--muted); font-style: italic; }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); }
.prose table { width: 100%; border-collapse: collapse; }
.prose td, .prose th { border: 1px solid var(--line); padding: .5rem .7rem; }
.article-cover { border-radius: var(--radius); overflow: hidden; margin-bottom: 1.5rem; }
.article-cover img { width: 100%; max-height: 520px; object-fit: cover; }
.sidebar-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; margin-bottom: 1.5rem; background: #fff; }
.sidebar-box h2 { font-size: 1.3rem; padding-bottom: .5rem; border-bottom: 3px solid var(--orange); margin-bottom: .6rem; }
.sidebar-box ul { list-style: none; padding: 0; margin: 0; }
.sidebar-box li { padding: .5rem 0; border-bottom: 1px solid var(--line); }
.sidebar-box li:last-child { border-bottom: 0; }
.sidebar-box li a { text-decoration: none; font-weight: 600; }
.sidebar-box li a.active { color: var(--orange); }
.filters { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.5rem; }
.filters a { padding: .35rem .9rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .92rem; background: #fff; }
.filters a.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.empty { padding: 3rem 1rem; text-align: center; color: var(--muted); border: 2px dashed var(--line); border-radius: var(--radius); }
.share { display: flex; gap: .4rem; align-items: center; margin-top: 2rem; }
.share a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--navy-soft); text-decoration: none; }
.share a:hover { background: var(--navy); color: #fff; }

/* recrutement : fiche du concours */
.fact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.fact { padding: 1rem 1.1rem; border: 1px solid var(--line); border-left: 5px solid var(--orange); border-radius: var(--radius); background: #fff; }
.fact small { display: block; color: var(--muted); font-size: .85rem; }
.fact strong { font-family: var(--font-head); font-size: 1.3rem; color: var(--navy); line-height: 1.2; }
.check-list { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.check-list li { position: relative; padding: .55rem 0 .55rem 2rem; border-bottom: 1px solid var(--line); }
.check-list li::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; left: .2rem; top: .6rem; color: var(--green); }
.doc-list { counter-reset: d; list-style: none; padding: 0; }
.doc-list li { counter-increment: d; position: relative; padding: .55rem 0 .55rem 2.6rem; border-bottom: 1px solid var(--line); }
.doc-list li::before { content: counter(d); position: absolute; left: 0; top: .5rem; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: .85rem; font-weight: 700; }
.nb-box { padding: 1.2rem 1.4rem; border-radius: var(--radius); background: #fff4ec; border: 1px solid #ffd2b6; }
.nb-box ol { margin: 0; padding-left: 1.2rem; }
.nb-box li { margin: .3rem 0; font-weight: 600; }
.soon { padding: 1.2rem 1.4rem; border-radius: var(--radius); background: var(--navy-soft); border: 1px dashed #9fb2cc; }

/* brigades */
.unit-region { margin-bottom: 2rem; }
.unit-region h2 { font-size: 1.6rem; display: flex; align-items: center; gap: .6rem; }
.unit-region h2 small { font-family: var(--font-body); font-size: .9rem; color: var(--muted); font-weight: 400; }
.units-table { width: 100%; border-collapse: collapse; background: #fff; }
.units-table th { text-align: left; background: var(--navy-soft); color: var(--navy); padding: .6rem .8rem; font-weight: 700; font-size: .92rem; }
.units-table td { padding: .65rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.units-table a { font-weight: 700; text-decoration: none; white-space: nowrap; }

/* formulaire de contact */
.form-gn .form-control, .form-gn .form-select { padding: .65rem .85rem; border-color: #cbd3de; }
.form-gn .form-control:focus, .form-gn .form-select:focus { border-color: var(--navy); box-shadow: 0 0 0 .2rem rgba(19, 41, 75, .15); }
.hp { position: absolute; left: -5000px; }
.alert-ok { padding: 1rem 1.2rem; border-radius: var(--radius); background: #e5f7ea; color: #0b6b22; border: 1px solid #b6e6c2; margin-bottom: 1.5rem; }

/* visionneuse de photos */
.lightbox { position: fixed; inset: 0; z-index: 3000; background: rgba(6, 14, 28, .94); display: flex; align-items: center; justify-content: center; padding: 3rem 4.5rem; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; text-align: center; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 8rem); object-fit: contain; border-radius: 4px; }
.lightbox figcaption { color: #dbe3ef; margin-top: .8rem; }
.lightbox button { position: absolute; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; font-size: 1.2rem; }
.lightbox button:hover { background: var(--orange); }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; }
.lb-next { right: 1rem; top: 50%; }

/* ---------- pied de page ---------- */
.site-footer { background: var(--navy-deep); color: #b8c4d6; margin-top: 0; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-block: 3rem 2rem; }
.site-footer h2 { color: #fff; font-size: 1.3rem; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.site-footer a { color: #dfe6f0; text-decoration: none; }
.site-footer a:hover { color: #ffb487; }
.footer-links a::before { content: "\f101"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: .8em; color: var(--orange); margin-right: .5rem; }
.footer-contact li { display: flex; gap: .6rem; }
.footer-contact i { color: var(--orange); margin-top: .3rem; width: 1rem; }
.footer-green { display: inline-flex; flex-direction: column; margin-top: 1rem; padding: .7rem 1rem; border: 1px solid rgba(255, 255, 255, .15); border-radius: var(--radius); }
.footer-green b { font-family: var(--font-head); font-size: 1.8rem; color: #fff; line-height: 1.1; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-block: 1rem; font-size: .88rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.to-top { position: fixed; right: 1rem; bottom: 1rem; z-index: 900; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--orange); color: #fff; text-decoration: none; opacity: 0; pointer-events: none; transition: opacity .2s; }
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { color: #fff; background: var(--orange-dark); }

/* ---------- responsive ---------- */
@media (max-width: 1399.98px) {
    .nav-search input { width: 150px; }
    .nav-list > li > a, .nav-list > li > button { padding: .9rem .8rem; }
}
@media (max-width: 1199.98px) {
    .nav-search input { width: 110px; }
    .nav-list > li > a, .nav-list > li > button { padding: .9rem .6rem; font-size: 1.02rem; }
}
@media (max-width: 991.98px) {
    .hero-grid, .command { grid-template-columns: 1fr; }
    .command figure { max-width: 260px; }
    .news-grid, .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .site-footer .cols { grid-template-columns: 1fr 1fr; }
    .green-line { padding: .45rem .9rem .45rem .5rem; }
    .green-line .ring { width: 44px; height: 44px; font-size: 1.2rem; }
    .green-line b { font-size: 1.5rem; }
    .nav-toggle { display: block; margin-left: auto; background: none; border: 0; color: #fff; font-size: 1.4rem; padding: .7rem .4rem; }
    .main-nav .nav-wrap { display: none; width: 100%; }
    .main-nav.open .nav-wrap { display: block; }
    .main-nav .container-xl { flex-wrap: wrap; }
    .nav-list { flex-direction: column; flex-wrap: wrap; }
    .nav-list .dropdown-menu { position: static !important; transform: none !important; box-shadow: none; border-top: 0; background: rgba(255, 255, 255, .05); }
    .nav-list .dropdown-item { color: #dfe6f0; }
    .nav-search { margin: .6rem 0 1rem; }
    .nav-search input { flex: 1; width: auto; }
}
@media (max-width: 767.98px) {
    .header-inner { flex-wrap: wrap; }
    .brand img, .brand .crest { width: 58px; height: 58px; }
    .green-line { margin-left: 0; width: 100%; justify-content: center; }
    .slider { min-height: 320px; }
    .news-grid, .video-grid { grid-template-columns: 1fr; }
    .site-footer .cols { grid-template-columns: 1fr; }
    .concours-card { grid-template-columns: 1fr; }
    .topbar .flash-label { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
    .topbar, .main-nav, .site-footer, .to-top, .share, .green-line { display: none !important; }
    .page-head { background: none; color: #000; }
    .page-head h1 { color: #000; }
}


/* ==========================================================================
   Refonte institutionnelle : pleine largeur, identité de l'écusson
   ========================================================================== */
.container-xl { max-width: none; padding-inline: clamp(1rem, 4vw, 4.5rem); }

/* en-tête */
.site-header { border-bottom: 1px solid #e3e8f1; }
.header-inner { padding-block: .9rem; gap: 2rem; }
.brand img { width: 96px; height: 96px; filter: drop-shadow(0 6px 14px rgba(11, 27, 69, .25)); }
.brand-lines .republic { display: flex; align-items: center; gap: .55rem; font-size: .8rem; font-weight: 700; letter-spacing: .08em; color: var(--navy-deep); text-transform: uppercase; }
.brand-lines .republic i { display: inline-block; width: 26px; height: 16px; border-radius: 2px; background: linear-gradient(var(--orange) 0 33.3%, #fff 33.3% 66.6%, var(--green) 66.6%); box-shadow: 0 0 0 1px #d5dbe6; position: relative; }
.brand-lines .republic i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-radius: 50%; background: var(--orange); }
.brand-lines .republic span { font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--muted); }
.brand-lines small { margin-top: .1rem; }
.brand-lines strong { font-size: clamp(1.7rem, 3.2vw, 2.6rem); text-transform: uppercase; letter-spacing: .02em; }
.brand-lines em { font-size: .95rem; letter-spacing: .02em; }
.header-side { margin-left: auto; display: flex; align-items: center; gap: 1.2rem; }
.header-side .insigne { height: 88px; width: auto; }

/* navigation */
.nav-list > li > a, .nav-list > li > button { font-size: 1.15rem; padding: 1rem 1.15rem; }

/* bandeau d'accueil pleine largeur */
.banner { position: relative; min-height: clamp(420px, 62vh, 640px); display: flex; align-items: center; color: #fff; background: var(--navy-deep) center / cover no-repeat; overflow: hidden; }
.banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 27, 69, .96) 0%, rgba(11, 27, 69, .88) 34%, rgba(11, 27, 69, .35) 68%, rgba(11, 27, 69, .1) 100%); }
.banner::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: linear-gradient(90deg, var(--orange) 0 33.33%, #fff 33.33% 66.66%, var(--green) 66.66%); }
.banner .container-xl { position: relative; z-index: 1; }
.banner-text { max-width: 860px; padding-block: 3rem 6.5rem; }
.banner-kicker { display: inline-flex; align-items: center; gap: .6rem; padding: .35rem .9rem .35rem .4rem; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); font-size: .92rem; }
.banner-kicker img { width: 30px; height: 30px; }
.banner h1 { color: #fff; font-size: clamp(2.2rem, 4.2vw, 3.7rem); line-height: 1; margin: 1.1rem 0 1rem; text-transform: uppercase; letter-spacing: .01em; }
.banner p.lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: #d6def0; max-width: 600px; margin-bottom: 1.8rem; }
.banner .motto { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; margin-bottom: 1.8rem; font-family: var(--font-head); font-size: 1.35rem; font-weight: 600; letter-spacing: .03em; }
.banner .motto span { display: inline-flex; align-items: center; gap: .55rem; }
.banner .motto span::before { content: ""; width: 9px; height: 9px; transform: rotate(45deg); background: var(--orange); }
.banner .btns { display: flex; flex-wrap: wrap; gap: .8rem; }
.banner .btn-gn.ghost { background: transparent; border-color: rgba(255, 255, 255, .6); color: #fff; }
.banner .btn-gn.ghost:hover { background: #fff; color: var(--navy); }

/* accès rapides, à cheval sur le bandeau */
.quick { position: relative; z-index: 3; margin-top: -4.2rem; }
.quick-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: #fff; border-radius: 10px; box-shadow: 0 24px 50px -24px rgba(11, 27, 69, .45); overflow: hidden; }
.quick a { display: flex; gap: 1rem; align-items: center; padding: 1.4rem 1.5rem; text-decoration: none; color: var(--ink); border-right: 1px solid #e6ebf3; transition: background-color .15s; }
.quick a:last-child { border-right: 0; }
.quick a:hover { background: var(--navy-soft); color: var(--ink); }
.quick a .ico { width: 54px; height: 54px; flex: none; border-radius: 12px; display: grid; place-items: center; font-size: 1.35rem; background: var(--navy-soft); color: var(--navy); }
.quick a.urgent .ico { background: var(--green); color: #fff; }
.quick a strong { display: block; font-family: var(--font-head); font-size: 1.3rem; color: var(--navy); line-height: 1.1; }
.quick a span span { display: block; color: var(--muted); font-size: .92rem; line-height: 1.35; margin-top: .2rem; }
.quick a.urgent strong { font-size: 1.6rem; }

/* sections */
.hero { background: #fff; padding-top: 3rem; }
.section.alt { background: var(--paper); }
.section-head h2 { text-transform: none; }

/* bloc institutionnel du Haut Commandant */
.command { grid-template-columns: minmax(260px, 380px) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); }
.command figure { position: relative; }
.command figure::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 3px solid var(--orange); border-radius: var(--radius); z-index: 0; }
.command figure img, .command figure .placeholder-img { position: relative; z-index: 1; border-bottom: 0; }
.command blockquote { font-size: 1.25rem; max-width: 760px; }

/* bandeau d'identité (siège) */
.identity { position: relative; color: #fff; background: var(--navy-deep); overflow: hidden; }
.identity .grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
.identity .photo { min-height: 360px; background: center / cover no-repeat; }
.identity .text { padding: clamp(2.5rem, 5vw, 4.5rem) clamp(1.5rem, 5vw, 5rem); display: flex; flex-direction: column; justify-content: center; }
.identity h2 { color: #fff; font-size: clamp(1.9rem, 3.4vw, 2.8rem); margin-bottom: 1rem; }
.identity p { color: #cfd8ea; font-size: 1.1rem; max-width: 620px; }
.identity .values { display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.identity .values div { padding: 1rem; border: 1px solid rgba(255, 255, 255, .15); border-top: 4px solid var(--orange); border-radius: 6px; background: rgba(255, 255, 255, .04); }
.identity .values strong { display: block; font-family: var(--font-head); font-size: 1.2rem; }
.identity .values small { color: #b8c4dc; }

/* en-tête des pages intérieures avec la photo du siège */
.page-head { background: linear-gradient(90deg, rgba(11, 27, 69, .97), rgba(11, 27, 69, .82) 60%, rgba(11, 27, 69, .6)), var(--page-photo, none) center 40% / cover no-repeat, var(--navy); padding: 3rem 0 2.6rem; }

/* pied de page */
.site-footer .cols { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; padding-block: 3.5rem 2rem; }
.footer-brand { display: flex; gap: 1rem; align-items: flex-start; }
.footer-brand img { width: 84px; height: auto; flex: none; }
.footer-brand h2 { margin-bottom: .2rem; }
.footer-brand .motto { color: #ffb487; font-weight: 600; font-size: .92rem; margin-bottom: .8rem; }
.footer-bottom .republic { display: inline-flex; align-items: center; gap: .5rem; }
.footer-bottom .republic i { display: inline-block; width: 22px; height: 14px; border-radius: 2px; background: linear-gradient(var(--orange) 0 33.3%, #fff 33.3% 66.6%, var(--green) 66.6%); }

@media (max-width: 1199.98px) {
    .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .quick a:nth-child(2) { border-right: 0; }
    .quick a:nth-child(-n+2) { border-bottom: 1px solid #e6ebf3; }
    .header-side .insigne { display: none; }
}
@media (max-width: 991.98px) {
    .identity .grid { grid-template-columns: 1fr; }
    .identity .photo { min-height: 260px; }
    .site-footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767.98px) {
    .brand img { width: 64px; height: 64px; }
    .brand-lines .republic span { display: none; }
    .header-side { width: 100%; margin-left: 0; }
    .banner-text { padding-block: 2.2rem 5.5rem; }
    .quick-grid { grid-template-columns: 1fr; }
    .quick a { border-right: 0; border-bottom: 1px solid #e6ebf3; }
    .identity .values { grid-template-columns: 1fr; }
    .site-footer .cols { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Contenus officiels : urgence, missions, corps, organigramme, chronologie,
   Haut Commandant
   ========================================================================== */
.topbar .emergency { color: #ffd2b5; font-weight: 600; }
.topbar .emergency i { color: var(--orange); margin-right: .3rem; }

.prose:empty { display: none; }
.block-missions, .block-corps, .orga, .timeline-gn { margin: 1.5rem 0 2rem; max-width: none; }
article .block-missions, article .block-corps, article .orga, article .timeline-gn { width: 100%; }

.block-missions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem 2rem; }
.bm-item { display: flex; gap: 1rem; align-items: flex-start; }
.bm-ico { flex: none; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; font-size: 1.3rem; box-shadow: 0 0 0 5px var(--navy-soft); }
.bm-item h3 { font-size: 1.35rem; margin: .2rem 0 .35rem; }
.bm-item p { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.6; }

.block-corps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.bc-item { padding: 1.6rem 1.4rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--navy); text-align: center; }
.bc-item:nth-child(2) { border-top-color: var(--orange); }
.bc-item:nth-child(3) { border-top-color: var(--green); }
.bc-rank { display: flex; justify-content: center; gap: .25rem; color: var(--orange); font-size: 1.1rem; min-height: 1.5rem; margin-bottom: .6rem; }
.bc-item h3 { font-size: 1.45rem; margin-bottom: .6rem; }
.bc-item p { margin: 0; color: var(--muted); font-size: .98rem; line-height: 1.6; }

/* organigramme */
.orga { margin-inline: 0; padding: clamp(1rem, 3vw, 2rem); background: var(--paper); border: 1px solid var(--line); border-radius: 10px; }
.orga-top { display: flex; align-items: center; gap: 1rem; width: fit-content; margin: 0 auto 2.2rem; padding: .9rem 1.8rem .9rem 1rem; border-radius: 999px; background: var(--navy); color: #fff; position: relative; box-shadow: 0 14px 30px -16px rgba(11, 27, 69, .7); }
.orga-top::after { content: ""; position: absolute; left: 50%; bottom: -2.2rem; width: 3px; height: 2.2rem; background: var(--orange); }
.orga-top img { width: 52px; height: 52px; }
.orga-top small { display: block; color: #c4cfe6; font-size: .85rem; }
.orga-top strong { font-family: var(--font-head); font-size: 1.7rem; line-height: 1; letter-spacing: .02em; text-transform: uppercase; }
.orga-branches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; border-top: 3px solid var(--orange); padding-top: 1.4rem; }
.orga-branch { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 1rem; position: relative; }
.orga-branch::before { content: ""; position: absolute; left: 50%; top: -1.45rem; width: 3px; height: 1.4rem; background: var(--orange); }
.orga-branch h3 { font-size: 1.2rem; text-align: center; padding: .55rem .6rem; margin: 0 0 1rem; border-radius: 6px; background: var(--navy-soft); }
.orga-branch:nth-child(2) h3 { background: #e7f3ec; color: #0b5a2e; }
.orga-branch:nth-child(3) h3 { background: #fff0e6; color: var(--orange-dark); }
.orga-units { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.orga-units > li { display: flex; gap: .6rem; align-items: flex-start; }
.orga-unit { flex: none; min-width: 72px; text-align: center; padding: .3rem .5rem; border-radius: 5px; background: var(--navy); color: #fff; font-weight: 700; font-size: .88rem; }
.orga-sub { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .3rem; }
.orga-sub li { padding: .22rem .5rem; border-radius: 4px; background: #fff4ec; border: 1px solid #ffd2b6; color: #8a3a06; font-size: .8rem; font-weight: 700; }
.orga-bottom { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; padding-top: .9rem; border-top: 1px dashed var(--line); }
.orga-bottom span { padding: .35rem .7rem; border-radius: 5px; background: #4a2a6b; color: #fff; font-weight: 700; font-size: .85rem; }
.orga-branch:nth-child(3) .orga-bottom span { background: var(--green); }
.orga figcaption { text-align: center; color: var(--muted); font-size: .88rem; margin-top: 1rem; }

/* chronologie des Hauts Commandants */
.timeline-gn { list-style: none; padding: 0; position: relative; max-width: 1100px; margin-inline: auto !important; }
.timeline-gn::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; background: linear-gradient(var(--orange), var(--navy) 30%, var(--navy) 80%, var(--green)); }
.timeline-gn li { display: grid; grid-template-columns: 1fr 90px 1fr; align-items: center; margin-bottom: 1.1rem; position: relative; }
.timeline-gn .tl-photo { grid-column: 2; justify-self: center; width: 78px; height: 78px; border-radius: 50%; overflow: hidden; background: #fff; border: 3px solid #fff; box-shadow: 0 0 0 3px var(--navy), 0 8px 18px -8px rgba(11, 27, 69, .6); z-index: 1; }
.timeline-gn .tl-photo img { width: 100%; height: 100%; object-fit: cover; }
.timeline-gn .tl-photo img.tl-insigne { object-fit: contain; padding: 8px; background: var(--navy-soft); }
.timeline-gn .tl-card { grid-row: 1; grid-column: 1; justify-self: end; max-width: 420px; padding: .85rem 1.1rem; border-radius: 8px; background: var(--navy); color: #fff; text-align: right; }
.timeline-gn li:nth-child(even) .tl-card { grid-column: 3; justify-self: start; text-align: left; }
.timeline-gn .tl-card strong { display: block; font-family: var(--font-head); font-size: 1.2rem; line-height: 1.2; }
.timeline-gn .tl-period { display: block; margin-top: .25rem; color: #ffc19c; font-size: .9rem; }
.timeline-gn .tl-badge { display: inline-block; margin-bottom: .35rem; padding: .1rem .55rem; border-radius: 3px; background: var(--green); font-size: .75rem; font-weight: 700; }
.timeline-gn li.is-current .tl-card { background: var(--orange); }
.timeline-gn li.is-current .tl-period { color: #fff; }
.timeline-gn li.is-current .tl-photo { width: 96px; height: 96px; box-shadow: 0 0 0 4px var(--orange), 0 10px 22px -8px rgba(11, 27, 69, .6); }

/* Haut Commandant */
.chief { display: grid; grid-template-columns: minmax(260px, 380px) minmax(0, 1fr); gap: 2rem; align-items: start; }
.chief-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; box-shadow: 0 18px 40px -26px rgba(11, 27, 69, .55); position: sticky; top: 5rem; }
.chief-photo { aspect-ratio: 4 / 5; background: var(--navy-soft); }
.chief-photo img { width: 100%; height: 100%; object-fit: cover; }
.chief-id { padding: 1.2rem 1.3rem 1.4rem; border-top: 5px solid var(--orange); text-align: center; }
.chief-id h2 { font-size: 1.6rem; margin: 0 0 .3rem; }
.chief-id p { margin: 0; color: var(--muted); font-weight: 600; }
.chief-tabs .nav-tabs { border: 0; gap: .3rem; }
.chief-tabs .nav-link { border: 0; border-radius: 8px 8px 0 0; background: var(--navy-deep); color: #fff; font-family: var(--font-head); font-size: 1.2rem; font-weight: 600; padding: .8rem 1.3rem; }
.chief-tabs .nav-link.active { background: var(--navy); color: #fff; box-shadow: inset 0 -4px 0 var(--orange); }
.chief-tabs .tab-content { background: #fff; border: 1px solid var(--line); border-radius: 0 10px 10px 10px; padding: clamp(1.2rem, 3vw, 2.2rem); }
.chief-tabs .tab-content .prose { max-width: none; text-align: justify; }
.chief-empty { background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--orange); border-radius: 10px; padding: 1.8rem; }
.chief-empty p { font-size: 1.1rem; line-height: 1.7; }
.leader-mini { text-align: center; }
.leader-mini .ph { aspect-ratio: 4 / 5; border-radius: 8px; overflow: hidden; border-bottom: 5px solid var(--orange); margin-bottom: .8rem; }
.leader-mini .ph img { width: 100%; height: 100%; object-fit: cover; }
.leader-mini h3 { font-size: 1.3rem; margin: 0; }
.leader-mini p { color: var(--muted); }

/* les pages « La Gendarmerie » utilisent toute la largeur pour ces blocs */
.page-wide .col-lg-8 { flex: 0 0 auto; width: 100%; }
.page-wide .prose { max-width: 980px; }

@media (max-width: 991.98px) {
    .block-missions { grid-template-columns: 1fr; }
    .block-corps, .orga-branches { grid-template-columns: 1fr; }
    .chief { grid-template-columns: 1fr; }
    .chief-card { position: static; max-width: 420px; }
}
@media (max-width: 767.98px) {
    .timeline-gn::before { left: 39px; }
    .timeline-gn li { grid-template-columns: 78px 1fr; gap: 1rem; }
    .timeline-gn .tl-photo { grid-column: 1; }
    .timeline-gn .tl-card, .timeline-gn li:nth-child(even) .tl-card { grid-column: 2; justify-self: start; text-align: left; }
}

/* ==========================================================================
   Nos missions : cartes encadrées et animations
   ========================================================================== */
.missions-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.mission-card { position: relative; overflow: hidden; padding: 2rem 1.7rem 1.8rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 28px -22px rgba(11, 27, 69, .5); transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s, border-color .35s; isolation: isolate; }
.mission-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: linear-gradient(90deg, var(--orange) 0 33.33%, #fff 33.33% 66.66%, var(--green) 66.66%); opacity: .9; }
.mission-card::after { content: ""; position: absolute; left: 0; bottom: 0; height: 4px; width: 0; background: var(--navy); transition: width .45s ease; }
.mission-card:hover { transform: translateY(-8px); border-color: #c9d3e6; box-shadow: 0 26px 46px -24px rgba(11, 27, 69, .55); }
.mission-card:hover::after { width: 100%; }
.mc-num { position: absolute; right: 1.2rem; top: .9rem; font-family: var(--font-head); font-size: 3.4rem; font-weight: 700; line-height: 1; color: var(--navy-soft); z-index: -1; transition: color .35s, transform .35s; }
.mission-card:hover .mc-num { color: #ffe3d1; transform: scale(1.08); }
.mc-ico { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 1.1rem; background: var(--navy); color: #fff; font-size: 1.55rem; box-shadow: 0 10px 20px -10px rgba(21, 48, 111, .8); transition: background-color .35s, transform .45s cubic-bezier(.2, .8, .2, 1); }
.mission-card:hover .mc-ico { background: var(--orange); transform: rotate(-8deg) scale(1.06); }
.mission-card h3 { font-size: 1.45rem; margin-bottom: .55rem; }
.mission-card p { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.65; }

/* apparition au défilement */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .7s ease var(--d, 0ms), transform .7s cubic-bezier(.2, .8, .2, 1) var(--d, 0ms), box-shadow .35s, border-color .35s; }
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal].is-visible:hover { transform: translateY(-8px); transition-delay: 0ms; }
.no-js [data-reveal] { opacity: 1; transform: none; }

@media (max-width: 1199.98px) { .missions-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767.98px) { .missions-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; } }

/* ==========================================================================
   Espace candidat (lot 2)
   ========================================================================== */
.cand-auth { display: grid; grid-template-columns: minmax(260px, 380px) minmax(0, 640px); gap: 2rem; justify-content: center; align-items: start; }
.cand-auth-side { padding: 2rem; border-radius: 12px; background: var(--navy); background-image: linear-gradient(160deg, var(--navy), var(--navy-deep)); color: #d6def0; }
.cand-auth-side h2 { color: #fff; font-size: 1.7rem; margin: 1rem 0; }
.cand-auth-side ul { list-style: none; padding: 0; margin: 0 0 1.4rem; display: grid; gap: .7rem; }
.cand-auth-side li i { width: 1.6rem; color: var(--orange); }
.cand-auth-card { padding: clamp(1.4rem, 3vw, 2.2rem); border-radius: 12px; background: #fff; border: 1px solid var(--line); box-shadow: 0 20px 44px -30px rgba(11, 27, 69, .55); }
.otp-input { font-size: 1.8rem; letter-spacing: .6em; text-align: center; font-weight: 700; }
.cand-alert { display: flex; gap: .7rem; align-items: flex-start; padding: .9rem 1.1rem; border-radius: 8px; margin-bottom: 1rem; }
.cand-alert ul { margin: .3rem 0 0; padding-left: 1.1rem; }
.cand-alert.ok { background: #e5f7ea; color: #0b5a2e; }
.cand-alert.warn { background: #fff4e5; color: #7a4a00; }
.cand-alert.err { background: #fdecea; color: #8d1c12; }
.cand-alert.dev { background: #eef2ff; color: #2c3e9a; border: 1px dashed #9aa8e6; }
.cand-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; padding: .9rem 1.2rem; margin-bottom: 1.5rem; border-radius: 10px; background: var(--navy-soft); }
.cand-who { display: flex; align-items: center; gap: .8rem; }
.cand-who strong { display: block; font-family: var(--font-head); color: var(--navy); font-size: 1.15rem; }
.cand-who span { font-size: .88rem; color: var(--muted); }
.cand-avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; font-weight: 700; }
.cand-bar nav { display: flex; gap: .3rem; flex-wrap: wrap; align-items: center; }
.cand-bar nav a, .cand-bar nav button { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .85rem; border-radius: 99px; border: 0; background: none; color: var(--ink); text-decoration: none; font-weight: 600; }
.cand-bar nav a:hover, .cand-bar nav button:hover { background: #fff; }
.cand-bar nav a.active { background: var(--navy); color: #fff; }
.cand-bar nav form { margin: 0; }
.cand-title { font-size: 1.6rem; margin-bottom: 1rem; }
.cand-open { display: grid; gap: .8rem; }
.cand-open-item { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 1.2rem 1.4rem; border-radius: 10px; background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--green); }
.cand-open-item h3 { font-size: 1.35rem; margin: .4rem 0 .2rem; }
.cand-app { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 1.1rem 1.3rem; margin-bottom: .7rem; border-radius: 10px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: inherit; transition: border-color .2s, transform .2s; }
.cand-app:hover { border-color: var(--navy); transform: translateY(-2px); color: inherit; }
.cand-app strong { display: block; font-family: var(--font-head); font-size: 1.25rem; color: var(--navy); }
.cand-ref { font-family: ui-monospace, Consolas, monospace; font-size: .85rem; font-weight: 700; color: var(--orange-dark); }
.cand-status { display: inline-block; padding: .25rem .75rem; border-radius: 99px; font-size: .82rem; font-weight: 700; white-space: nowrap; }
.cand-status.big { font-size: .95rem; padding: .35rem .95rem; }
.cand-status.secondary { background: #eceff3; color: #4d5868; }
.cand-status.info { background: #e3edfb; color: #1f4f9b; }
.cand-status.warning { background: #fff1d6; color: #7a5600; }
.cand-status.success { background: #dcf2e4; color: #0b6a35; }
.cand-status.danger { background: #fbe3e1; color: #9b1c12; }
.cand-status.primary { background: var(--navy); color: #fff; }
.cand-mini-progress { width: 90px; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.cand-mini-progress span { display: block; height: 100%; background: var(--orange); }

.cand-steps { list-style: none; padding: 0; margin: 0 0 1.6rem; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); counter-reset: s; }
.cand-steps li { position: relative; text-align: center; padding-top: 2.6rem; }
.cand-steps li::before { content: ""; position: absolute; top: 1.15rem; left: -50%; width: 100%; height: 3px; background: var(--line); }
.cand-steps li:first-child::before { display: none; }
.cand-steps li.done::before, .cand-steps li.current::before { background: var(--green); }
.cand-steps .n { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 2.4rem; height: 2.4rem; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--line); font-weight: 700; color: var(--muted); z-index: 1; }
.cand-steps li.done .n { background: var(--green); border-color: var(--green); color: #fff; }
.cand-steps li.current .n { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: 0 0 0 5px var(--navy-soft); }
.cand-steps .l { font-size: .9rem; font-weight: 600; color: var(--muted); }
.cand-steps li.current .l { color: var(--navy); }
.cand-steps a { text-decoration: none; color: inherit; display: block; }
.cand-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1.5rem; align-items: start; }
.cand-card { padding: clamp(1.2rem, 3vw, 2rem); border-radius: 12px; background: #fff; border: 1px solid var(--line); box-shadow: 0 16px 36px -30px rgba(11, 27, 69, .6); }
.cand-card h2 { font-size: 1.6rem; margin-bottom: .4rem; }
.cand-card .form-label { font-weight: 600; font-size: .95rem; }
.cand-choice { display: flex; gap: .5rem; }
.cand-choice label { flex: 1; display: flex; align-items: center; gap: .45rem; padding: .55rem .8rem; border: 1.5px solid #cbd3de; border-radius: 6px; cursor: pointer; font-weight: 600; }
.cand-choice label:has(input:checked) { border-color: var(--navy); background: var(--navy-soft); }
.cand-actions { display: flex; justify-content: space-between; gap: .8rem; flex-wrap: wrap; margin-top: 1.6rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.cand-aside { position: sticky; top: 5rem; }
.cand-aside ul { padding-left: 1.1rem; margin: 0; }
.doc-slots { display: grid; gap: .7rem; margin: 1.2rem 0; }
.doc-slot { display: flex; align-items: center; gap: 1rem; padding: .8rem; border: 1.5px dashed #c7d0dd; border-radius: 10px; background: #fafbfd; transition: border-color .2s; }
.doc-slot.is-done { border-style: solid; border-color: #b6e0c4; background: #f4fbf6; }
.doc-slot.is-loading { opacity: .6; }
.doc-thumb { width: 64px; height: 64px; flex: none; border-radius: 8px; overflow: hidden; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); color: var(--muted); font-size: 1.5rem; }
.doc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.doc-body { flex: 1; min-width: 0; }
.doc-body strong { display: block; }
.doc-body .ok { color: #0b6a35; font-size: .88rem; }
.doc-body .todo { color: var(--muted); font-size: .88rem; }
.doc-actions { display: flex; gap: .4rem; align-items: center; }
.doc-actions form { margin: 0; }
.btn-file { position: relative; overflow: hidden; cursor: pointer; padding: .5rem .9rem; }
.btn-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.btn-icon-gn { width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--navy); text-decoration: none; }
.btn-icon-gn.danger { color: #b42318; }
.cand-summary { display: grid; grid-template-columns: minmax(160px, 34%) 1fr; gap: .45rem 1rem; margin: 0; }
.cand-summary dt { color: var(--muted); font-weight: 600; }
.cand-summary dd { margin: 0; }
.elig-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.elig-list li { display: flex; gap: .7rem; align-items: flex-start; padding: .65rem .8rem; border-radius: 8px; background: var(--paper); }
.elig-list i { margin-top: .2rem; font-size: 1.15rem; }
.elig-list .ok i { color: #0b8a3a; } .elig-list .ko { background: #fdecea; } .elig-list .ko i { color: #b42318; } .elig-list .na i { color: #98a2b3; }
.elig-list small { display: block; color: var(--muted); }
.cand-declaration { display: flex; gap: .8rem; align-items: flex-start; padding: 1rem 1.1rem; border: 2px solid var(--navy); border-radius: 10px; background: var(--navy-soft); cursor: pointer; font-weight: 600; }
.cand-declaration input { width: 1.3rem; height: 1.3rem; flex: none; margin-top: .15rem; accent-color: var(--navy); }
.cand-head { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; padding: 1.4rem 1.6rem; margin-bottom: 1.5rem; border-radius: 12px; background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--orange); }
.cand-head h2 { font-size: 1.6rem; margin: .3rem 0; }
.cand-track { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; }
.cand-track li { position: relative; padding: 1rem 1rem 1rem 3.6rem; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.cand-track .n { position: absolute; left: 1rem; top: 1rem; width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; background: var(--line); color: var(--muted); font-weight: 700; }
.cand-track li.done { border-color: #b6e0c4; }
.cand-track li.done .n { background: var(--green); color: #fff; }
.cand-track li.current { border-color: var(--navy); box-shadow: 0 0 0 3px var(--navy-soft); }
.cand-track li.current .n { background: var(--navy); color: #fff; }
.cand-track strong { display: block; color: var(--navy); }
.cand-track small { color: var(--muted); }
.verify-box { display: flex; gap: 1.2rem; align-items: flex-start; padding: 1.8rem; border-radius: 12px; border: 1px solid; }
.verify-box > i { font-size: 2.6rem; }
.verify-box.ok { background: #f0faf3; border-color: #b6e0c4; } .verify-box.ok > i { color: #0b8a3a; }
.verify-box.ko { background: #fdf1f0; border-color: #f3c5bf; } .verify-box.ko > i { color: #b42318; }
.apply-cta { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 1.3rem 1.5rem; border-radius: 12px; background: linear-gradient(120deg, var(--navy), var(--navy-deep)); color: #d6def0; }
.apply-cta strong { display: block; color: #fff; font-family: var(--font-head); font-size: 1.45rem; }

@media (max-width: 991.98px) {
    .cand-auth, .cand-grid { grid-template-columns: 1fr; }
    .cand-aside { position: static; }
    .cand-track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
    .cand-steps .l { font-size: .72rem; }
    .doc-slot { flex-wrap: wrap; }
    .doc-actions { width: 100%; justify-content: flex-end; }
    .cand-summary { grid-template-columns: 1fr; }
    .cand-summary dt { margin-top: .4rem; }
    .cand-track { grid-template-columns: 1fr; }
}

/* mot de passe : bouton « œil » */
.pw-wrap { position: relative; display: block; flex: 1 1 auto; min-width: 0; }
.input-group > .pw-wrap { width: 1%; }
.pw-wrap > input { width: 100%; padding-right: 2.9rem !important; }
.pw-eye { position: absolute; right: .35rem; top: 50%; transform: translateY(-50%); width: 2.2rem; height: 2.2rem; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: #5d6878; cursor: pointer; }
.pw-eye:hover { background: rgba(21, 48, 111, .08); color: #15306f; }
.pw-eye:focus-visible { outline: 3px solid #e05206; outline-offset: 1px; }
.pw-wrap:has(.is-invalid) ~ .invalid-feedback { display: block; }

/* résultats et décisions (lot 3) */
.cand-result { display: flex; gap: 1rem; align-items: flex-start; padding: 1.3rem 1.5rem; border-radius: 12px; margin-bottom: 1.2rem; }
.cand-result > i { font-size: 2rem; }
.cand-result h3 { font-size: 1.4rem; margin: 0 0 .25rem; }
.cand-result.ok { background: #e3f5ea; color: #0b5a2e; } .cand-result.ok h3 { color: #0b5a2e; }
.cand-result.wait { background: #fff4e5; color: #7a4a00; } .cand-result.wait h3 { color: #7a4a00; }
.cand-result.ko { background: var(--navy-soft); color: var(--navy); }
.results-search { max-width: 460px; }
.results-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .6rem; }
.res-item { padding: .7rem .9rem; border-radius: 8px; background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--green); }
.res-item.attente { border-left-color: var(--orange); }
.res-item b { display: block; font-family: var(--font-head); font-size: 1.3rem; color: var(--navy); }
.res-item span { display: block; font-size: .85rem; color: var(--muted); }
.res-item small { color: var(--muted); }

/* mot du Haut Commandant : extrait justifié sur l'accueil, texte complet justifié sur sa page */
.command blockquote.chief-quote { text-align: justify; hyphens: auto; }
.chief-tabs .tab-content .prose { text-align: justify; hyphens: auto; }

/* réseaux sociaux du pied de page */
.footer-social { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; margin: 1rem 0 .2rem; }
.footer-social span { font-weight: 600; color: #fff; margin-right: .3rem; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: #fff; font-size: 1.05rem; transition: background-color .2s, transform .2s; }
.footer-social a:hover { background: #1877f2; color: #fff; transform: translateY(-2px); }
