/* ==========================================================================================
   NANTUA : ENSEMBLE, feuille de style
   Couleurs de la charte : modifier uniquement les variables ci-dessous.
   Contrastes vérifiés (WCAG AA) par « php outils/verifier.php ».
   ========================================================================================== */

:root {
    --ne-marine: #0A2A66;        /* bleu marine principal */
    --ne-accent: #1E4FC2;        /* bleu accent */
    --ne-accent-fonce: #163C96;  /* survol des boutons */
    --ne-clair: #9EC1FF;         /* bleu clair, sur fond marine uniquement */
    --ne-fond: #EEF3FC;          /* fond clair */
    --ne-texte: #14213D;         /* texte */
    --ne-texte-doux: #3D4A66;    /* texte secondaire */
    --ne-bordure: #D3DEF3;
    --ne-erreur: #A61B1B;
    --ne-ok: #136B3A;
    --ne-ombre: 0 10px 30px rgba(10, 42, 102, 0.10);
    --ne-ombre-forte: 0 18px 40px rgba(10, 42, 102, 0.18);
    --ne-rayon: 1rem;
    --ne-titres: "Montserrat", "Segoe UI", Arial, sans-serif;
    --ne-corps: "Inter", "Segoe UI", Arial, sans-serif;
    --bs-body-font-family: var(--ne-corps);
    --bs-body-color: var(--ne-texte);
    --bs-link-color-rgb: 30, 79, 194;
    --bs-link-hover-color-rgb: 10, 42, 102;
}

/* ---- Polices hébergées sur le site (aucun appel à un service tiers) ---- */
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/montserrat-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 900; font-display: swap; src: url("../fonts/montserrat-latin-900-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }

/* ---- Base : texte confortable à lire, sur téléphone d'abord ---- */
html { font-size: 17px; }
@media (min-width: 992px) { html { font-size: 17.5px; } }
body { font-family: var(--ne-corps); color: var(--ne-texte); background: #FFFFFF; line-height: 1.6; }
h1, h2, h3, h4, .ne-titres { font-family: var(--ne-titres); font-weight: 800; color: inherit; letter-spacing: -0.01em; }
strong, b, .fw-bold, .form-label { font-weight: 600; }
a { color: var(--ne-accent); text-underline-offset: 0.18em; }
a:hover { color: var(--ne-marine); }
::selection { background: var(--ne-clair); color: var(--ne-marine); }
.container { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.ne-icone { width: 1.25em; height: 1.25em; flex-shrink: 0; vertical-align: -0.25em; }

/* Focus clavier toujours visible */
:focus-visible { outline: 3px solid var(--ne-accent); outline-offset: 3px; }
.ne-hero :focus-visible, .ne-fond-marine :focus-visible, .ne-bloc-recrutement :focus-visible, .ne-pied :focus-visible { outline-color: var(--ne-clair); }
main:focus { outline: none; }

.ne-evitement { position: absolute; left: 16px; top: -100px; z-index: 2000; padding: 0.75rem 1.25rem; background: var(--ne-marine); color: #FFFFFF; border-radius: 0.5rem; font-weight: 600; }
.ne-evitement:focus { top: 16px; color: #FFFFFF; }

/* ---- Boutons : pilules avec ombre, faciles à toucher ---- */
.btn { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 0.6rem 1.35rem; border-radius: 999px; font-weight: 600; transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease; }
.btn-lg { min-height: 56px; font-size: 1.05rem; padding: 0.75rem 1.6rem; }
.btn-sm { min-height: 40px; padding: 0.35rem 1rem; font-size: 0.9rem; }
.btn-primary { --bs-btn-bg: var(--ne-accent); --bs-btn-border-color: var(--ne-accent); --bs-btn-hover-bg: var(--ne-accent-fonce); --bs-btn-hover-border-color: var(--ne-accent-fonce); --bs-btn-active-bg: var(--ne-marine); --bs-btn-active-border-color: var(--ne-marine); --bs-btn-disabled-bg: var(--ne-accent); --bs-btn-disabled-border-color: var(--ne-accent); box-shadow: 0 6px 16px rgba(30, 79, 194, 0.28); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(30, 79, 194, 0.36); }
.btn-outline-primary { --bs-btn-color: var(--ne-accent); --bs-btn-border-color: var(--ne-accent); --bs-btn-hover-bg: var(--ne-fond); --bs-btn-hover-color: var(--ne-marine); --bs-btn-hover-border-color: var(--ne-marine); --bs-btn-active-bg: var(--ne-fond); --bs-btn-active-color: var(--ne-marine); border-width: 2px; background: #FFFFFF; }
.btn-clair { background: #FFFFFF; color: var(--ne-marine); border: 2px solid #FFFFFF; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22); }
.btn-clair:hover, .btn-clair:focus-visible { background: var(--ne-clair); border-color: var(--ne-clair); color: var(--ne-marine); transform: translateY(-1px); }
.btn-outline-light { border-width: 2px; color: #FFFFFF; }
.btn-outline-light:hover { color: var(--ne-marine); }
.ne-boutons { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
@media (max-width: 575px) { .ne-boutons > .btn { width: 100%; } }

/* ---- En-tête et menu ---- */
.ne-entete { position: sticky; top: 0; z-index: 1030; background: rgba(255, 255, 255, 0.97); border-bottom: 1px solid var(--ne-bordure); }
@supports (backdrop-filter: blur(8px)) { .ne-entete { background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(8px); } }
.ne-entete .navbar { padding: 0.6rem 0; }
.ne-entete .btn { white-space: nowrap; }
.ne-logo { font-family: var(--ne-titres); font-weight: 900; font-size: 1.15rem; letter-spacing: 0.02em; color: var(--ne-marine); text-transform: uppercase; white-space: nowrap; line-height: 1.1; }
.ne-logo:hover { color: var(--ne-marine); }
.ne-logo-deux-points { color: var(--ne-accent); }
@media (min-width: 400px) { .ne-logo { font-size: 1.3rem; } }
.ne-bouton-menu { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 48px; padding: 0.4rem 0.9rem; border: 2px solid var(--ne-bordure); border-radius: 999px; color: var(--ne-marine); font-weight: 600; font-size: 1rem; }
.ne-bouton-menu:focus { box-shadow: none; }
.navbar-nav .nav-link { position: relative; color: var(--ne-texte); font-weight: 600; padding: 0.7rem 0.85rem; border-radius: 0.5rem; white-space: nowrap; }
.navbar-nav .nav-link:hover { color: var(--ne-accent); background: var(--ne-fond); }
.navbar-nav .nav-link.active { color: var(--ne-accent); }
.navbar-nav .nav-link.active::after { content: ""; position: absolute; left: 0.85rem; right: 0.85rem; bottom: 4px; height: 3px; border-radius: 2px; background: var(--ne-accent); }
@media (max-width: 1199px) {
    .navbar-collapse { padding: 0.5rem 0 0.75rem; }
    .navbar-nav .nav-link { font-size: 1.05rem; padding: 0.8rem 0.75rem; }
    .navbar-nav .nav-link.active::after { left: 0; right: auto; top: 25%; bottom: 25%; width: 3px; height: auto; }
}

/* ---- Sections ---- */
.ne-section { padding: 56px 0; }
@media (min-width: 992px) { .ne-section { padding: 88px 0; } }
.ne-fond-clair { background: var(--ne-fond); }
.ne-fond-marine { background: var(--ne-marine); color: #FFFFFF; }
.ne-surtitre { font-family: var(--ne-corps); font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ne-accent); margin-bottom: 0.75rem; }
.ne-surtitre-clair { color: var(--ne-clair); }
.ne-entete-section { text-align: center; max-width: 760px; margin: 0 auto 2.5rem; }
.ne-titre-section { font-size: clamp(1.7rem, 4.5vw, 2.5rem); font-weight: 900; margin-bottom: 0.75rem; }
.ne-titre-bloc { font-size: clamp(1.35rem, 3vw, 1.75rem); font-weight: 800; margin-bottom: 1rem; }
.ne-chapo { font-size: 1.15rem; color: var(--ne-texte-doux); margin-bottom: 0; }
.ne-chapo-clair { color: var(--ne-clair); }

/* ---- Haut de page (bandeau marine) ---- */
.ne-hero { position: relative; overflow: hidden; background: var(--ne-marine); color: #FFFFFF; padding: 48px 0 56px; }
.ne-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60rem 30rem at 85% 10%, rgba(30, 79, 194, 0.55), transparent 60%), radial-gradient(40rem 24rem at -10% 110%, rgba(158, 193, 255, 0.16), transparent 60%); pointer-events: none; }
.ne-hero > .container { position: relative; }
@media (min-width: 992px) { .ne-hero { padding: 96px 0 104px; } }
.ne-hero-page { padding: 48px 0; }
@media (min-width: 992px) { .ne-hero-page { padding: 80px 0 72px; } }
.ne-hero-court { padding: 40px 0; }
@media (min-width: 992px) { .ne-hero-court { padding: 64px 0 56px; } }
.ne-hero-titre { font-size: clamp(2rem, 7vw, 3.4rem); font-weight: 900; line-height: 1.08; letter-spacing: -0.02em; margin-bottom: 1rem; max-width: 18ch; }
.ne-hero-page .ne-hero-titre { max-width: 22ch; font-size: clamp(1.9rem, 6vw, 3rem); }
.ne-hero-accroche { font-size: clamp(1.1rem, 2.6vw, 1.35rem); color: var(--ne-clair); max-width: 40ch; margin-bottom: 0; }
.ne-hero-photo { position: relative; max-width: 420px; margin: 0 auto; }
.ne-hero-photo figcaption { position: absolute; left: 1rem; bottom: 1rem; padding: 0.45rem 0.9rem; border-radius: 999px; background: rgba(10, 42, 102, 0.92); color: #FFFFFF; font-weight: 600; font-size: 0.9rem; }
.ne-photo { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 1.25rem; box-shadow: var(--ne-ombre-forte); }
.ne-photo-attente { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem; background: linear-gradient(160deg, #1E4FC2 0%, #0A2A66 75%); border: 2px solid rgba(158, 193, 255, 0.4); color: #FFFFFF; }
.ne-photo-attente span { font-family: var(--ne-titres); font-weight: 900; font-size: 5rem; letter-spacing: 0.04em; line-height: 1; }
.ne-photo-attente small { color: var(--ne-clair); font-weight: 600; }
@media (max-width: 991px) { .ne-hero-photo { max-width: 300px; } }

/* Sommaire des axes (page Notre projet) */
.ne-sommaire { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; }
.ne-sommaire a { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; padding: 0.4rem 0.95rem 0.4rem 0.45rem; border-radius: 999px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(158, 193, 255, 0.35); color: #FFFFFF; font-weight: 600; font-size: 0.95rem; text-decoration: none; transition: background-color 0.15s ease; }
.ne-sommaire a:hover { background: rgba(255, 255, 255, 0.18); color: #FFFFFF; }
.ne-sommaire span { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ne-clair); color: var(--ne-marine); font-family: var(--ne-titres); font-weight: 900; font-size: 0.8rem; }

/* ---- Pastilles et icônes ---- */
.ne-pastille-icone { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 0.85rem; background: var(--ne-fond); color: var(--ne-accent); }
.ne-pastille-icone .ne-icone { width: 26px; height: 26px; }
.ne-pastille-grande { width: 64px; height: 64px; }
.ne-pastille-grande .ne-icone { width: 32px; height: 32px; }
.ne-pastille-claire { background: rgba(158, 193, 255, 0.18); color: var(--ne-clair); }
.ne-fond-clair .ne-pastille-icone { background: #FFFFFF; }
.ne-coche { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--ne-accent); color: #FFFFFF; }
.ne-coche .ne-icone { width: 16px; height: 16px; stroke-width: 3; }

/* ---- Bloc constat ---- */
.ne-constat-item { display: flex; align-items: center; gap: 1rem; height: 100%; padding: 1.25rem 1.35rem; border-radius: var(--ne-rayon); background: #FFFFFF; box-shadow: var(--ne-ombre); font-size: 1.1rem; font-weight: 600; }
.ne-constat-conclusion { margin: 2.25rem auto 0; text-align: center; font-family: var(--ne-titres); font-weight: 900; font-size: clamp(1.8rem, 6vw, 3rem); line-height: 1.1; color: var(--ne-marine); }
.ne-constat-conclusion::after { content: ""; display: block; width: 72px; height: 5px; margin: 1rem auto 0; border-radius: 3px; background: var(--ne-accent); }

/* ---- Engagement phare ---- */
.ne-engagement { max-width: 900px; margin: 0 auto; text-align: center; }
.ne-engagement-ligne { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; margin: 0.5rem 0 1.25rem; }
.ne-engagement-chiffre { font-family: var(--ne-titres); font-weight: 900; font-size: clamp(5rem, 22vw, 9.5rem); line-height: 0.95; color: var(--ne-clair); letter-spacing: -0.03em; }
.ne-engagement-titre { font-family: var(--ne-titres); font-weight: 800; font-size: clamp(1.4rem, 4vw, 2.1rem); line-height: 1.2; }
.ne-engagement-texte { font-size: clamp(1.1rem, 2.6vw, 1.3rem); color: var(--ne-clair); max-width: 44ch; margin: 0 auto; }

/* ---- Cartes des axes (cliquables, se soulèvent au survol) ---- */
.ne-carte-axe { position: relative; display: flex; flex-direction: column; height: 100%; padding: 1.5rem; border-radius: var(--ne-rayon); background: #FFFFFF; border: 1px solid var(--ne-bordure); color: var(--ne-texte); text-decoration: none; transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.ne-carte-axe:hover, .ne-carte-axe:focus-visible { color: var(--ne-texte); transform: translateY(-4px); box-shadow: var(--ne-ombre-forte); border-color: var(--ne-accent); }
.ne-carte-haut { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.1rem; }
.ne-numero { font-family: var(--ne-titres); font-weight: 900; font-size: 2.25rem; line-height: 1; color: var(--ne-accent); }
.ne-carte-titre { font-family: var(--ne-titres); font-weight: 800; font-size: 1.25rem; line-height: 1.25; color: var(--ne-marine); margin-bottom: 0.6rem; }
.ne-carte-texte { color: var(--ne-texte-doux); margin-bottom: 1.25rem; }
.ne-carte-lien { margin-top: auto; display: inline-flex; align-items: center; color: var(--ne-accent); font-weight: 600; }
.ne-carte-axe:hover .ne-carte-lien .ne-icone { transform: translateX(3px); }
.ne-carte-lien .ne-icone { transition: transform 0.2s ease; }

/* ---- Blocs recrutement et consultation ---- */
.ne-bloc-recrutement { position: relative; overflow: hidden; padding: 2rem; border-radius: 1.25rem; background: linear-gradient(140deg, var(--ne-accent) 0%, var(--ne-marine) 70%); color: #FFFFFF; box-shadow: var(--ne-ombre-forte); }
.ne-bloc-recrutement .ne-titre-bloc { font-size: clamp(1.4rem, 3.4vw, 2rem); line-height: 1.25; }
@media (min-width: 992px) { .ne-bloc-recrutement { padding: 3rem; } }
.ne-bloc-blanc { padding: 2rem; border-radius: 1.25rem; background: #FFFFFF; box-shadow: var(--ne-ombre); }
@media (min-width: 992px) { .ne-bloc-blanc { padding: 2.5rem; } }
.ne-encart { padding: 1.75rem; }
.ne-encart .ne-titre-bloc { font-size: 1.35rem; }
.ne-bloc-recrutement p:not(.ne-surtitre) { color: #FFFFFF; }

/* ---- Page Notre projet ---- */
.ne-axe { scroll-margin-top: 80px; }
.ne-axe-entete { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.ne-axe-numero { font-family: var(--ne-titres); font-weight: 900; font-size: 3.75rem; line-height: 1; color: var(--ne-accent); letter-spacing: -0.03em; }
.ne-mesures li { display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem 1.25rem; margin-bottom: 0.75rem; border-radius: var(--ne-rayon); background: #FFFFFF; border: 1px solid var(--ne-bordure); font-size: 1.08rem; transition: box-shadow 0.2s ease; }
.ne-mesures li:hover { box-shadow: var(--ne-ombre); }
.ne-mesures li .ne-coche { margin-top: 0.1rem; }

/* ---- Page Qui suis-je ---- */
.ne-portrait { max-width: 380px; }
.ne-reperes { margin: 1.5rem 0 0; }
.ne-reperes li { display: flex; align-items: center; gap: 0.75rem; padding: 0.45rem 0; font-weight: 600; }
.ne-reperes-clair .ne-coche { background: var(--ne-clair); color: var(--ne-marine); }
.ne-texte-portrait p { font-size: 1.2rem; line-height: 1.7; }
.ne-texte-portrait p:first-child { font-size: 1.35rem; font-weight: 600; color: var(--ne-marine); }
.ne-citation { margin: 2rem 0 0; padding: 1.5rem 1.75rem; border-left: 5px solid var(--ne-accent); border-radius: 0 var(--ne-rayon) var(--ne-rayon) 0; background: var(--ne-fond); font-family: var(--ne-titres); font-weight: 800; font-size: clamp(1.25rem, 3vw, 1.6rem); line-height: 1.3; color: var(--ne-marine); }

/* ---- Formulaires ---- */
.ne-formulaire { padding: 1.5rem; border-radius: 1.25rem; background: #FFFFFF; box-shadow: var(--ne-ombre); }
@media (min-width: 768px) { .ne-formulaire { padding: 2.5rem; } }
.form-label { color: var(--ne-texte); margin-bottom: 0.4rem; }
.form-control, .form-select { min-height: 52px; font-size: 1rem; border: 2px solid var(--ne-bordure); border-radius: 0.75rem; color: var(--ne-texte); }
textarea.form-control { min-height: 130px; }
.form-control:focus, .form-select:focus { border-color: var(--ne-accent); box-shadow: 0 0 0 4px rgba(30, 79, 194, 0.18); }
.form-control[aria-invalid="true"], .form-select[aria-invalid="true"] { border-color: var(--ne-erreur); }
.ne-aide { font-size: 0.92rem; color: var(--ne-texte-doux); }
.ne-erreur { display: flex; align-items: center; gap: 0.4rem; margin: 0.4rem 0 0; color: var(--ne-erreur); font-weight: 600; font-size: 0.95rem; }
.ne-alerte { display: flex; gap: 0.75rem; align-items: flex-start; padding: 1rem 1.25rem; margin-bottom: 1.25rem; border-radius: 0.75rem; background: #FDECEC; color: var(--ne-erreur); border: 1px solid #F3C2C2; font-weight: 600; }
.ne-alerte:focus { outline: 3px solid var(--ne-erreur); outline-offset: 2px; }
.ne-alerte-ok { background: #E7F5EC; color: var(--ne-ok); border-color: #BFE3CB; }
.ne-alerte-info { background: #FFF7E0; color: #6B4A00; border-color: #F1DFA6; }
.ne-groupe { margin: 1.75rem 0; padding: 0; border: 0; }
.ne-groupe legend { font-size: 1rem; float: none; }
.ne-cases { display: grid; grid-template-columns: 1fr; gap: 0.6rem; }
@media (min-width: 768px) { .ne-cases { grid-template-columns: 1fr 1fr; } }
.ne-cases-ligne { grid-template-columns: repeat(2, minmax(0, 160px)); }
.ne-case { position: relative; }
.ne-case input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ne-case label { display: flex; align-items: center; gap: 0.75rem; min-height: 56px; height: 100%; padding: 0.65rem 1rem 0.65rem 3rem; border: 2px solid var(--ne-bordure); border-radius: 0.75rem; background: #FFFFFF; font-weight: 600; cursor: pointer; transition: border-color 0.15s ease, background-color 0.15s ease; }
.ne-case label::before { content: ""; position: absolute; left: 1rem; top: 50%; width: 22px; height: 22px; margin-top: -11px; border: 2px solid #6A7894; border-radius: 6px; background: #FFFFFF; }
.ne-case input[type="radio"] + label::before { border-radius: 50%; }
.ne-case label:hover { border-color: var(--ne-accent); }
.ne-case input:checked + label { border-color: var(--ne-accent); background: var(--ne-fond); }
.ne-case input:checked + label::before { border-color: var(--ne-accent); background: var(--ne-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 15px no-repeat; }
.ne-case input[type="radio"]:checked + label::before { background: var(--ne-accent); box-shadow: inset 0 0 0 4px #FFFFFF; }
.ne-case input:focus-visible + label { outline: 3px solid var(--ne-accent); outline-offset: 2px; }
.ne-case input:disabled + label { opacity: 0.55; cursor: not-allowed; }
.ne-case-numero { font-family: var(--ne-titres); font-weight: 900; color: var(--ne-accent); }
.ne-compteur { font-weight: 600; color: var(--ne-accent); }
.ne-consentement { position: relative; display: flex; gap: 0.75rem; align-items: flex-start; padding: 1rem 1.15rem; border-radius: 0.75rem; background: var(--ne-fond); border: 2px solid transparent; }
.ne-consentement.is-erreur { border-color: var(--ne-erreur); }
.ne-consentement .form-check-input { flex-shrink: 0; width: 24px; height: 24px; margin: 0.1rem 0 0; border: 2px solid #6A7894; cursor: pointer; }
.ne-consentement .form-check-input:checked { background-color: var(--ne-accent); border-color: var(--ne-accent); }
.ne-consentement label { font-size: 0.95rem; cursor: pointer; }
.ne-piege { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.ne-merci-icone { display: inline-flex; align-items: center; justify-content: center; width: 80px; height: 80px; margin-bottom: 1.5rem; border-radius: 50%; background: var(--ne-clair); color: var(--ne-marine); }
.ne-merci-icone .ne-icone { width: 40px; height: 40px; stroke-width: 3; }
.ne-merci-icone + .ne-hero-titre { margin-left: auto; margin-right: auto; }

/* ---- Pages légales ---- */
.ne-texte-legal { max-width: 780px; }
.ne-texte-legal h2 { font-size: 1.35rem; margin: 2.25rem 0 0.75rem; color: var(--ne-marine); }
.ne-texte-legal h2:first-child { margin-top: 0; }
.ne-texte-legal ul { padding-left: 1.25rem; }
.ne-texte-legal li { margin-bottom: 0.4rem; }

/* ---- Pied de page ---- */
.ne-pied { background: var(--ne-marine); color: #FFFFFF; padding: 56px 0 32px; }
.ne-pied a { color: #FFFFFF; text-decoration: none; display: inline-flex; align-items: center; min-height: 40px; }
.ne-pied a:hover { color: var(--ne-clair); text-decoration: underline; }
.ne-logo-pied { color: #FFFFFF; font-size: 1.35rem; }
.ne-pied-ligne { font-family: var(--ne-titres); font-weight: 800; font-size: 1.15rem; color: var(--ne-clair); }
.ne-pied-titre { font-family: var(--ne-corps); font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ne-clair); margin-bottom: 0.75rem; }
.ne-pied-bas { margin: 2.5rem 0 0; padding-top: 1.25rem; border-top: 1px solid rgba(158, 193, 255, 0.25); color: var(--ne-clair); font-size: 0.9rem; text-align: center; }

/* ---- Barre d'action sur téléphone, bouton flottant sur ordinateur ---- */
.ne-barre-mobile { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1020; display: flex; gap: 0.5rem; padding: 0.6rem max(12px, env(safe-area-inset-left, 0px)) calc(0.6rem + env(safe-area-inset-bottom, 0px)); background: rgba(255, 255, 255, 0.97); border-top: 1px solid var(--ne-bordure); box-shadow: 0 -6px 20px rgba(10, 42, 102, 0.08); }
.ne-barre-mobile .btn { flex: 1 1 0; min-width: 0; padding-left: 0.6rem; padding-right: 0.6rem; font-size: 0.95rem; white-space: nowrap; }
@media (max-width: 991px) { body:has(.ne-barre-mobile) .ne-pied { padding-bottom: 104px; } }
.ne-flottant { position: fixed; right: 24px; bottom: 24px; z-index: 1020; box-shadow: var(--ne-ombre-forte); opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity 0.25s ease, transform 0.25s ease; }
.ne-flottant.is-visible { opacity: 1; transform: none; pointer-events: auto; }

/* ---- Apparition douce au défilement (désactivée si l'utilisateur limite les animations) ---- */
@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
    .js [data-ne-apparition] { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
    .js [data-ne-apparition].is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---- Espace équipe (/admin) ---- */
.ne-admin-etroit { max-width: 520px; margin: 0 auto; }
.ne-code { padding: 0.9rem 1rem; border-radius: 0.5rem; background: var(--ne-marine); color: #FFFFFF; }
.ne-admin-barre { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.ne-onglets { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.ne-onglets a { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; padding: 0.4rem 1rem; border-radius: 999px; background: #FFFFFF; border: 2px solid var(--ne-bordure); color: var(--ne-texte); font-weight: 600; text-decoration: none; }
.ne-onglets a.active { border-color: var(--ne-accent); color: var(--ne-accent); }
.ne-badge { display: inline-flex; min-width: 28px; justify-content: center; padding: 0.05rem 0.5rem; border-radius: 999px; background: var(--ne-accent); color: #FFFFFF; font-size: 0.85rem; }
.ne-admin-outils { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.5rem; }
.ne-recherche { display: flex; flex-wrap: wrap; gap: 0.5rem; flex: 1 1 380px; }
.ne-recherche .form-control { flex: 1 1 220px; width: auto; }
.ne-reponse { margin-bottom: 0.6rem; border-radius: 0.75rem; background: #FFFFFF; border: 1px solid var(--ne-bordure); }
.ne-reponse summary { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; padding: 0.9rem 1.15rem; cursor: pointer; font-weight: 600; }
.ne-reponse-date { color: var(--ne-texte-doux); font-variant-numeric: tabular-nums; }
.ne-reponse[open] { box-shadow: var(--ne-ombre); }
.ne-reponse > form { padding: 0 1.15rem 1.15rem; }
.ne-reponse-detail { display: grid; grid-template-columns: 1fr; gap: 0.15rem 1.25rem; margin: 0; padding: 0 1.15rem 1rem; }
@media (min-width: 768px) { .ne-reponse-detail { grid-template-columns: 240px 1fr; } }
.ne-reponse-detail dt { color: var(--ne-texte-doux); font-weight: 600; }
.ne-reponse-detail dd { margin-bottom: 0.5rem; white-space: normal; overflow-wrap: anywhere; }
.ne-barre-stat { display: grid; grid-template-columns: 1fr auto; gap: 0 0.5rem; margin-bottom: 0.6rem; font-size: 0.92rem; }
.ne-barre-stat meter { grid-column: 1 / -1; width: 100%; height: 10px; }

/* Sur les dégradés qui commencent par le bleu accent, le bleu clair ne suffit pas : texte blanc. */
.ne-bloc-recrutement .ne-surtitre-clair, .ne-photo-attente small { color: #FFFFFF; }
.ne-barre-stat meter::-webkit-meter-optimum-value { background: var(--ne-accent); }
.ne-barre-stat meter::-webkit-meter-bar { background: var(--ne-fond); border: 0; border-radius: 5px; }
.ne-barre-stat meter::-moz-meter-bar { background: var(--ne-accent); }

/* Photo réelle : affichée dans ses proportions (l'emplacement d'attente reste en 4:5). */
.ne-photo-cadre { display: block; }
img.ne-photo { aspect-ratio: auto; object-position: center top; background: var(--ne-fond); }
