/* ============================================================
   SASP - Feuille de style principale
   Palette et typographie calquees sur joinlapd.com :
   police Inter, bleu marine #012B6D, bleus #217BC0 / #BADCFF.
   ============================================================ */

:root {
    /* Bleus officiels (repris du vrai site) */
    --navy:       #012b6d;   /* bleu principal : header, sections, texte sur clair */
    --navy-2:     #01235a;   /* variation */
    --navy-deep:  #011a44;   /* footer / profondeur */
    --blue:       #217bc0;   /* bleu moyen : accents, boutons */
    --blue-light: #badcff;   /* bleu clair : cartes processus, accents */
    --gold:       #f5a623;   /* jaune / or du slogan (comme le site original) */
    --arrow-dark: #160042;   /* bouton fleche actif (comme l'original) */

    /* Neutres */
    --ink:    #ffffff;
    --muted:  #b9cdf0;       /* texte attenue sur fond navy */

    --maxw: 1240px;
    --radius: 12px;
    --ease: cubic-bezier(.22, .61, .36, 1);
    --shadow-sm: 0 6px 16px rgba(1, 12, 40, .22);
    --shadow-md: 0 16px 34px rgba(1, 12, 40, .32);
    --shadow-lg: 0 26px 50px rgba(1, 12, 40, .42);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Inter', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    color: var(--navy);
    background: var(--navy);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip; /* comme hidden (pas de scroll horizontal) mais SANS casser position:sticky */
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }

/* ---------- Placeholder image (fond neutre, en attendant les photos) ---------- */
.ph {
    background-color: #0a2f6e;
    background-image:
        radial-gradient(120% 90% at 20% 10%, rgba(255,255,255,.06), rgba(255,255,255,0) 55%),
        linear-gradient(160deg, #0a3a86 0%, #022257 60%, #011a44 100%);
    background-size: cover;
    background-position: center;
    position: relative;
}
.ph::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.05) 50%, transparent 65%);
    background-size: 250% 100%;
    animation: shimmer 6s var(--ease) infinite;
    pointer-events: none;
}
@keyframes shimmer {
    0%   { background-position: 150% 0; }
    100% { background-position: -150% 0; }
}

/* ============================================================
   ANIMATIONS D'APPARITION (au defilement, via JS)
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}
/* transform:none apres l'apparition : evite de garder un calque GPU qui
   rendrait le texte flou. */
.reveal.is-visible { opacity: 1; transform: none; }
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(26px); }
    to   { opacity: 1; transform: none; }
}

/* ============================================================
   EN-TETE / NAVIGATION
   ============================================================ */
.site-header {
    background: var(--navy);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 0 rgba(255,255,255,.06);
    transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
/* Au defilement : on change UNIQUEMENT le fond et l'ombre (aucun changement
   de taille), sinon l'en-tete collant retaille en boucle et la page tremble. */
.site-header.scrolled {
    background: #011f4f;
    box-shadow: var(--shadow-md);
}

.header-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 24px;
}

/* Logo (image affichee a sa taille naturelle, sans cercle ajoute) */
.logo { display: flex; align-items: center; flex-shrink: 0; line-height: 0; }
.logo-img {
    height: 68px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    transition: transform .2s var(--ease);
}
.logo:hover .logo-img { transform: scale(1.05); }

/* Navigation : tout sur une seule ligne, aligne verticalement */
.main-nav { display: flex; align-items: center; gap: 20px; margin-left: auto; flex-wrap: nowrap; }
.main-nav ul { display: flex; align-items: center; gap: 20px; flex-wrap: nowrap; }
.main-nav li { position: relative; display: flex; align-items: center; }
.main-nav a {
    position: relative;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .3px;
    text-transform: uppercase;
    color: #fff;
    padding: 6px 0;
    transition: color .18s var(--ease);
    white-space: nowrap;
}
.main-nav a::after {
    content: "";
    position: absolute;
    left: 0; bottom: -2px;
    width: 100%; height: 2px;
    background: var(--blue-light);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .28s var(--ease);
}
.main-nav a:hover { color: var(--blue-light); }
.main-nav a:hover::after { transform: scaleX(1); }
.caret { font-size: 9px; opacity: .8; }

/* Lien mis en avant : bleu clair, meme hauteur que les autres */
.nav-cta { color: var(--blue-light) !important; }
.nav-cta:hover { color: #fff !important; }

/* Recherche */
.nav-search input {
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 9px 18px;
    font-size: 12px;
    min-width: 210px;
    background: rgba(255,255,255,.96);
    color: var(--navy);
    outline: none;
    transition: box-shadow .2s var(--ease), background .2s var(--ease);
}
.nav-search input::placeholder { color: #7f8aa3; }
.nav-search input:focus { background: #fff; box-shadow: 0 0 0 3px rgba(33,123,192,.45); }

/* Menu mobile */
.nav-toggle { display: none; margin-left: auto; background: none; border: none; cursor: pointer; padding: 8px; flex-direction: column; gap: 5px; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: #fff; border-radius: 2px; transition: transform .25s var(--ease), opacity .25s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    min-height: 66vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-color: var(--navy);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
/* Voile noir 50% comme sur le vrai site */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    z-index: 1;
}
.hero-content { position: relative; z-index: 2; padding: 40px 20px; }
.hero-kicker {
    color: var(--gold);
    font-weight: 800;
    font-size: clamp(14px, 2vw, 22px);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin: 0 0 14px;
    text-shadow: 0 2px 10px rgba(0,0,0,.5);
    animation: fadeUp .9s .15s var(--ease) both;
}
.hero-title {
    color: #fff;
    font-weight: 700;
    font-size: clamp(46px, 9vw, 116px);
    letter-spacing: -0.5px;
    line-height: .95;
    margin: 0;
    text-shadow: 0 6px 26px rgba(0,0,0,.5);
    animation: fadeUp 1s .32s var(--ease) both;
}

/* Indicateur de defilement */
.scroll-cue {
    position: absolute;
    left: 50%; bottom: 26px;
    transform: translateX(-50%);
    z-index: 2;
    width: 26px; height: 42px;
    border: 2px solid rgba(255,255,255,.6);
    border-radius: 14px;
    animation: fadeUp 1s .6s var(--ease) both;
}
.scroll-cue::before {
    content: "";
    position: absolute;
    left: 50%; top: 8px;
    width: 4px; height: 8px;
    margin-left: -2px;
    background: var(--blue-light);
    border-radius: 2px;
    animation: cueMove 1.8s var(--ease) infinite;
}
@keyframes cueMove {
    0%   { transform: translateY(0); opacity: 1; }
    70%  { transform: translateY(14px); opacity: 0; }
    100% { transform: translateY(0); opacity: 0; }
}

/* Bande bleue sous le hero */
.hero + .cards-section { border-top: 26px solid var(--navy); }

/* ============================================================
   GRILLE DE CARTES
   ============================================================ */
.cards-section {
    background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
    padding: 46px 24px 66px;
}
.cards-grid {
    max-width: var(--maxw);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}
.grid-card {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    isolation: isolate;
    box-shadow: var(--shadow-sm);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.grid-card-bg { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; transition: transform .6s var(--ease); }
.grid-card-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(0,0,0,.2) 0%, rgba(0,0,0,.62) 100%);
    transition: background .35s var(--ease);
}
.grid-card-title {
    position: relative;
    z-index: 2;
    color: #fff;
    font-weight: 700;
    font-size: clamp(18px, 2.1vw, 26px);
    letter-spacing: .2px;
    text-transform: uppercase;
    padding: 0 18px;
    text-shadow: 0 2px 12px rgba(0,0,0,.6);
    transition: transform .35s var(--ease);
}
.grid-card::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    height: 4px; width: 100%;
    z-index: 3;
    background: var(--blue-light);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .4s var(--ease);
}
.grid-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.grid-card:hover .grid-card-bg { transform: scale(1.08); }
.grid-card:hover .grid-card-overlay { background: linear-gradient(180deg, rgba(1,43,109,.35) 0%, rgba(0,0,0,.6) 100%); }
.grid-card:hover .grid-card-title { transform: translateY(-6px) scale(1.03); }
.grid-card:hover::after { transform: scaleX(1); }

/* ============================================================
   PROCESSUS D'EMBAUCHE
   ============================================================ */
.process-section { background: #ffffff; }

.process-head {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 54px 24px 34px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}
.process-kicker {
    color: #5f6f90;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0 0 8px;
}
.process-kicker::before {
    content: "";
    display: inline-block;
    width: 26px; height: 3px;
    background: var(--blue);
    vertical-align: middle;
    margin-right: 10px;
    border-radius: 2px;
}
.process-title {
    color: var(--navy);
    font-weight: 700;
    font-size: clamp(28px, 4vw, 46px);
    letter-spacing: -0.5px;
    text-transform: uppercase;
    margin: 0;
}
.process-arrows { display: flex; gap: 12px; flex-shrink: 0; }
.arrow-btn {
    width: 46px; height: 46px;
    border-radius: 50%;
    border: 1px solid #d4dae6;
    background: #fff;
    color: var(--navy);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: transform .18s var(--ease), background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.arrow-btn--active { background: var(--arrow-dark); color: #fff; border-color: var(--arrow-dark); }
.arrow-btn:hover { background: var(--blue); color: #fff; border-color: var(--blue); transform: translateY(-2px); }

.process-body { background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%); position: relative; }
.process-cards {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 34px;
    transform: translateY(-44px);
}
.process-card {
    position: relative;
    background: linear-gradient(160deg, #ffffff 0%, #d6e8ff 55%, var(--blue-light) 100%);
    border-radius: var(--radius);
    min-height: 230px;
    display: flex;
    align-items: flex-end;
    padding: 28px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.process-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(255,255,255,.6), rgba(255,255,255,0) 45%);
    pointer-events: none;
}
.step-num {
    position: absolute;
    top: 16px; right: 22px;
    font-weight: 800;
    font-size: 54px;
    line-height: 1;
    color: rgba(1,43,109,.13);
    letter-spacing: 1px;
}
.process-card span.step-label {
    position: relative;
    color: var(--navy);
    font-weight: 700;
    font-size: clamp(20px, 2.2vw, 26px);
    letter-spacing: -0.2px;
    text-transform: uppercase;
    line-height: 1.15;
}
.process-card::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 100%; height: 5px;
    background: var(--blue);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .4s var(--ease);
}
.process-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.process-card:hover::after { transform: scaleX(1); }

.process-dots { display: flex; justify-content: center; gap: 10px; padding: 0 0 62px; }
.dot {
    width: 32px; height: 32px;
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700;
    color: #fff;
    background: rgba(255,255,255,.16);
    transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
    cursor: pointer;
}
.dot:hover { transform: translateY(-2px); background: rgba(255,255,255,.3); }
.dot--active { background: #fff; color: var(--navy); }

/* ============================================================
   PIED DE PAGE
   ============================================================ */
.site-footer {
    background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
    color: var(--muted);
}
.footer-top {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 54px 24px 42px;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1.4fr;
    gap: 30px;
}
.footer-brand { display: flex; align-items: flex-start; gap: 12px; }
.logo-img--footer { height: 122px; width: auto; }

.footer-links li { margin-bottom: 14px; }
.footer-links a {
    position: relative;
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: .3px;
    text-transform: uppercase;
    transition: color .18s var(--ease), padding-left .18s var(--ease);
}
.footer-links a:hover { color: var(--blue-light); padding-left: 6px; }

.newsletter-title {
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0 0 14px;
}
.newsletter-form { display: flex; border-radius: 8px; overflow: hidden; box-shadow: var(--shadow-sm); }
.newsletter-form input {
    flex: 1;
    border: none;
    padding: 14px 16px;
    font-size: 13px;
    letter-spacing: .5px;
    color: var(--navy);
    outline: none;
}
.newsletter-form button {
    border: none;
    background: var(--blue);
    color: #fff;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 0 22px;
    cursor: pointer;
    text-transform: uppercase;
    transition: filter .18s var(--ease), background .18s var(--ease);
}
.newsletter-form button:hover { background: #1b6aa8; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.12);
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 22px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}
.copyright { margin: 0; font-size: 12px; color: var(--muted); letter-spacing: -0.2px; }
.footer-legal { display: flex; gap: 26px; }
.footer-legal a {
    font-size: 12px; font-weight: 600; letter-spacing: .3px;
    text-transform: uppercase; color: var(--muted);
    transition: color .18s var(--ease);
}
.footer-legal a:hover { color: #fff; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
    width: 36px; height: 36px;
    border-radius: 8px;
    background: rgba(255,255,255,.1);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.footer-social a:hover { background: var(--blue); color: #fff; transform: translateY(-3px); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
/* Ecrans intermediaires : on resserre pour garder une seule ligne alignee */
@media (max-width: 1300px) {
    .main-nav { gap: 16px; }
    .main-nav ul { gap: 16px; }
    .main-nav a { font-size: 12px; letter-spacing: .2px; }
    .nav-search input { min-width: 175px; }
    .logo-img { height: 58px; }
}

/* En dessous, la barre ne tient plus sur une ligne : menu burger */
@media (max-width: 1150px) {
    .nav-toggle { display: flex; }
    .main-nav {
        display: none;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: #011f4f;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px 24px 24px;
        box-shadow: var(--shadow-md);
    }
    .main-nav.open { display: flex; animation: fadeUp .3s var(--ease) both; }
    .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
    .main-nav li { display: block; border-bottom: 1px solid rgba(255,255,255,.1); }
    .main-nav a { display: block; padding: 14px 4px; }
    .main-nav a::after { display: none; }
    .nav-cta { padding: 14px 4px; }
    .nav-search { margin-top: 8px; }
    .nav-search input { width: 100%; min-width: 0; }

    .cards-grid { grid-template-columns: repeat(2, 1fr); }
    .process-head { flex-direction: column; }
    .process-cards { grid-template-columns: 1fr; transform: translateY(-30px); }
    .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .cards-grid { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .hero { min-height: 56vh; }
}

/* Accessibilite : respecter la reduction des animations */
@media (prefers-reduced-motion: reduce) {
    * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   MENU DEROULANT (RECRUTEMENT) + BOUTON DESACTIVE
   ============================================================ */
.nav-cta--disabled { pointer-events: none; cursor: default; }
.main-nav .has-dropdown { position: relative; }
.nav-parent { cursor: pointer; }
/* Le prefixe .main-nav donne une priorite superieure a .main-nav ul (display:flex),
   sinon le menu resterait toujours visible et etale a l'horizontale. */
.main-nav .dropdown {
    display: none;
    position: absolute;
    top: 100%; left: 0;
    min-width: 240px;
    flex-direction: column;
    background: #011f4f;
    border-top: 3px solid var(--blue-light);
    border-radius: 0 0 10px 10px;
    box-shadow: var(--shadow-md);
    padding: 6px 0;
    z-index: 200;
}
.main-nav .has-dropdown:hover > .dropdown,
.main-nav .has-dropdown.open > .dropdown { display: block; }
.main-nav .dropdown li { display: block; }
.main-nav .dropdown a {
    display: block;
    padding: 12px 18px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .2px;
    text-transform: none;
    white-space: nowrap;
    color: #fff;
}
.main-nav .dropdown a::after { display: none !important; }
.main-nav .dropdown a:hover { background: rgba(255,255,255,.08); color: var(--blue-light); }

/* ============================================================
   PAGES DE CONTENU (emplois, conditions, offre, formulaire)
   ============================================================ */
.page { background: #fff; color: var(--navy); min-height: 60vh; }
.content-wrap { max-width: var(--maxw); margin: 0 auto; padding: 40px 24px 70px; }

/* Banniere "carrieres" */
.careers-hero {
    position: relative;
    overflow: hidden;
    background-color: var(--navy);
    background-image: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
    background-size: cover;
    background-position: center;
}
.careers-hero-inner { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; padding: 44px 24px 0; }
.careers-hero--short .careers-hero-inner { padding-bottom: 44px; }

/* Variante avec photo de fond (voile sombre pour lisibilite) */
.careers-hero-overlay { display: none; }
.careers-hero--photo .careers-hero-overlay {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(1,15,40,.5) 0%, rgba(1,15,40,.72) 100%);
}
.careers-hero--photo .careers-hero-inner { padding-top: 84px; padding-bottom: 64px; }
.careers-hero--photo .careers-title,
.careers-hero--photo .careers-eyebrow { text-shadow: 0 3px 12px rgba(0,0,0,.55); }
.careers-eyebrow { color: var(--blue-light); font-weight: 700; letter-spacing: 2px; text-transform: uppercase; font-size: 13px; margin: 0 0 6px; }
.careers-title { color: #fff; font-weight: 800; font-size: clamp(30px, 5vw, 54px); letter-spacing: -0.5px; margin: 0 0 26px; text-transform: uppercase; }
.careers-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.careers-strip-item { aspect-ratio: 3 / 4; background-size: cover; background-position: center; }

/* Intro + bouton creer */
.jobs-topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.jobs-intro-text { color: #4a5a77; font-size: 16px; margin: 0; }
.btn-create {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--blue); color: #fff; font-weight: 700; text-transform: uppercase;
    letter-spacing: .5px; font-size: 13px; padding: 12px 20px; border-radius: 8px;
    transition: background .18s var(--ease), transform .18s var(--ease);
}
.btn-create:hover { background: #1b6aa8; transform: translateY(-2px); }

/* Liste des offres */
.job-list { border-top: 1px solid #e3e8f0; }
.job-item { padding: 26px 0; border-bottom: 1px solid #e3e8f0; }
.job-item-title { font-size: clamp(20px, 2.4vw, 26px); font-weight: 700; margin: 0 0 10px; }
.job-item-title a { color: var(--blue); }
.job-item-title a:hover { text-decoration: underline; }
.job-item-meta { color: #33456b; font-size: 14px; line-height: 1.7; }
.job-item-meta strong { color: var(--navy); font-weight: 700; }
.jobs-empty { padding: 40px 0; color: #6b7a99; font-style: italic; }

/* Detail d'une offre */
.back-link { display: inline-block; margin-bottom: 18px; color: var(--blue); font-weight: 600; font-size: 14px; }
.back-link:hover { text-decoration: underline; }
.offre-title { font-size: clamp(26px, 4vw, 40px); font-weight: 800; color: var(--blue); margin: 0 0 24px; }
.offre-top { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 40px; padding-bottom: 26px; border-bottom: 1px solid #e3e8f0; }
.offre-field { display: grid; grid-template-columns: 160px 1fr; gap: 10px; align-items: start; }
.offre-field .lbl { font-weight: 700; color: var(--navy); font-size: 14px; }
.offre-field .val { color: #33456b; font-size: 14px; }
.offre-sections { padding-top: 28px; }
.offre-section { margin-bottom: 26px; }
.offre-section h3 { color: var(--navy); font-size: 16px; font-weight: 800; text-transform: uppercase; letter-spacing: .3px; margin: 0 0 10px; }
.offre-section p { color: #33456b; font-size: 15px; line-height: 1.7; margin: 0; white-space: pre-line; }

/* Formulaire de creation + saisie du code */
.code-gate { max-width: 440px; margin: 30px auto; background: #f5f8fd; border: 1px solid #dde5f1; border-radius: 12px; padding: 30px; text-align: center; }
.code-gate h2 { color: var(--navy); font-size: 22px; margin: 0 0 6px; }
.code-gate p { color: #5f6f90; font-size: 14px; margin: 0 0 20px; }
.form-msg-error { background: #fdecec; color: #a12727; border: 1px solid #f3c2c2; padding: 12px 16px; border-radius: 8px; font-size: 14px; margin: 0 0 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; color: var(--navy); font-size: 14px; margin-bottom: 6px; }
.field input, .field textarea, .code-gate input {
    width: 100%; border: 1px solid #cdd6e5; border-radius: 8px; padding: 12px 14px;
    font-size: 14px; font-family: inherit; color: var(--navy); outline: none;
    transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .code-gate input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(33,123,192,.18); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.form-section-title { font-size: 15px; font-weight: 800; color: var(--navy); text-transform: uppercase; letter-spacing: .3px; margin: 26px 0 14px; padding-bottom: 8px; border-bottom: 2px solid var(--blue-light); }
.btn-submit { background: var(--blue); color: #fff; border: none; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; font-size: 14px; padding: 14px 26px; border-radius: 8px; cursor: pointer; transition: background .18s var(--ease); }
.btn-submit:hover { background: #1b6aa8; }
.form-msg-ok { background: #eaf7ee; color: #1e6b3a; border: 1px solid #b9e3c6; padding: 12px 16px; border-radius: 8px; font-size: 14px; margin: 0 0 18px; }

/* Espace admin : liste des offres + suppression */
.admin-jobs { margin-top: 44px; }
.admin-job-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid #e3e8f0; }
.admin-job-info a { color: var(--blue); font-weight: 700; font-size: 15px; }
.admin-job-info a:hover { text-decoration: underline; }
.admin-job-loc { display: block; color: #6b7a99; font-size: 13px; margin-top: 2px; }
.btn-delete { background: #c0392b; color: #fff; border: none; font-weight: 700; font-size: 13px; padding: 9px 16px; border-radius: 8px; cursor: pointer; text-transform: uppercase; letter-spacing: .3px; transition: background .18s var(--ease); flex-shrink: 0; }
.btn-delete:hover { background: #a12f22; }

/* Accordeon des conditions (page /conditions) */
.cond-list { max-width: 860px; }
.cond-item { border: 1px solid #e0e6f0; border-radius: 10px; margin-bottom: 12px; overflow: hidden; background: #fff; }
.cond-head {
    cursor: pointer;
    padding: 18px 22px;
    font-weight: 700;
    font-size: 17px;
    color: var(--navy);
    background: #f5f8fd;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background .15s var(--ease);
}
.cond-head::-webkit-details-marker { display: none; }
.cond-head::after { content: "+"; font-size: 24px; line-height: 1; color: var(--blue); font-weight: 700; margin-left: 16px; }
.cond-item[open] .cond-head { background: #eaf1fb; }
.cond-item[open] .cond-head::after { content: "\2212"; }
.cond-head:hover { background: #eaf1fb; }
.cond-body { padding: 8px 24px 22px; }
.cond-intro { color: #4a5a77; font-size: 15px; margin: 8px 0 12px; font-style: italic; }
.cond-subtitle { color: var(--navy); font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .5px; margin: 16px 0 8px; }
.cond-subtitle::before { content: ""; display: inline-block; width: 18px; height: 3px; background: var(--blue); vertical-align: middle; margin-right: 9px; border-radius: 2px; }
.cond-body ul, .cond-body ol { margin: 0; padding-left: 24px; }
.cond-body ul { list-style: disc; }
.cond-body ol { list-style: decimal; }
.cond-body li { color: #33456b; font-size: 15px; line-height: 1.7; margin-bottom: 8px; }

/* Bloc conditions generales + titres de categorie */
.cond-general { background: linear-gradient(160deg, #f4f8ff, #e7f0fc); border: 1px solid #d3e0f2; border-left: 5px solid var(--blue); border-radius: 12px; padding: 24px 28px; margin: 8px 0 34px; max-width: 860px; }
.cond-general h2 { color: var(--navy); font-size: 18px; margin: 0 0 14px; text-transform: uppercase; letter-spacing: .3px; }
.cond-general ul { list-style: disc; margin: 0; padding-left: 22px; }
.cond-general li { color: #33456b; font-size: 15px; line-height: 1.7; margin-bottom: 8px; }
.cond-cat-title { color: var(--navy); font-size: clamp(20px, 2.4vw, 26px); font-weight: 800; text-transform: uppercase; letter-spacing: .3px; margin: 36px 0 16px; padding-bottom: 10px; border-bottom: 2px solid var(--blue-light); max-width: 860px; }

/* Page Evenements du SASP */
.evt-intro { background: #eaf2fc; border: 1px solid #d3e2f5; border-radius: 12px; padding: 30px 28px; text-align: center; margin: 0 auto 34px; max-width: 980px; }
.evt-intro h2 { color: var(--blue); font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; margin: 0 0 12px; }
.evt-intro p { color: #33456b; font-size: 16px; margin: 0 auto 8px; max-width: 760px; line-height: 1.6; }
.evt-intro-note { font-weight: 700; color: var(--navy); }

.evt-card { border: 1.5px solid #cdddf3; border-radius: 12px; padding: 24px 28px; background: #fff; max-width: 980px; margin: 0 auto 26px; }
.evt-card p { margin: 0 0 8px; color: #33456b; font-size: 15px; line-height: 1.6; }
.evt-card p:last-child { margin-bottom: 0; }
.evt-card-strong { color: var(--navy); font-weight: 800; font-size: 17px; text-transform: uppercase; letter-spacing: .3px; }
.evt-card strong { color: var(--navy); }

.evt-remarks { border: 1.5px solid #cdddf3; border-radius: 12px; padding: 28px 30px; background: #fff; max-width: 980px; margin: 0 auto; }
.evt-remarks p { color: #33456b; font-size: 15px; line-height: 1.7; margin: 0 0 12px; }
.evt-remarks strong { color: var(--navy); }
.evt-strong { color: var(--navy); font-weight: 700; font-size: 16px; }
.evt-bye { color: var(--blue); font-weight: 800; font-size: 18px; margin: 18px 0 0 !important; }

/* Sections en deux colonnes (Fit4Hire, Préparation orale, Mentor) */
.evt-section { margin: 44px 0; }
.evt-section-title { background: var(--navy); color: #fff; text-align: center; padding: 16px 20px; font-size: clamp(19px, 2.6vw, 26px); font-weight: 800; letter-spacing: .3px; }
.evt-section-title--light { background: var(--blue-light); color: var(--navy); }
.evt-split { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; border: 1px solid #e0e6f0; border-top: none; }
.evt-photo { min-height: 380px; background-color: #d9e2f0; background-size: cover; background-position: center; }
.evt-photo--empty { background-color: #d9e2f0; } /* emplacement vide, a remplir plus tard */
.evt-split-text { padding: 30px 34px; }
.evt-split-text h3 { color: var(--blue); font-size: 22px; font-weight: 800; margin: 0 0 14px; }
.evt-split-text > p { color: #33456b; font-size: 15px; line-height: 1.7; margin: 0 0 14px; }
.evt-split-text ul { list-style: disc; margin: 0 0 16px; padding-left: 22px; }
.evt-split-text li { color: #33456b; font-size: 15px; line-height: 1.7; margin-bottom: 10px; }
.evt-infobox { border: 1px solid #cdddf3; border-radius: 10px; padding: 18px 20px; background: #f5f8fd; }
.evt-infobox p { margin: 0 0 6px; font-size: 14px; color: #33456b; line-height: 1.6; }
.evt-infobox p:last-child { margin-bottom: 0; }
.evt-infobox strong { color: var(--navy); }

@media (max-width: 820px) {
    .evt-split { grid-template-columns: 1fr; }
    .evt-photo { min-height: 220px; }
}

/* ===== Page Formation a l'academie ===== */
.hero--page { justify-content: center; text-align: left; }
.hero--page .hero-content { position: relative; z-index: 2; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; text-align: left; }
.hero--page .hero-title { text-align: left; margin: 0; }
.hero-title .gold { color: var(--gold); }
.hero-rule { display: block; width: min(520px, 70%); height: 3px; background: rgba(255,255,255,.55); margin: 10px 0 16px; }
.hero-sub { color: #fff; font-weight: 700; font-size: clamp(15px, 2vw, 22px); text-transform: uppercase; letter-spacing: .5px; margin: 0 0 22px; text-shadow: 0 2px 8px rgba(0,0,0,.5); }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-hero { display: inline-block; padding: 13px 26px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; font-size: 14px; border-radius: 4px; transition: transform .18s var(--ease), filter .18s var(--ease); }
.btn-hero:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn-hero--blue { background: var(--blue); color: #fff; }
.btn-hero--teal { background: #159a9a; color: #fff; }
.btn-hero.nav-cta--disabled:hover { transform: none; }

.evt-split--box { border-top: 1px solid #e0e6f0; border-radius: 12px; overflow: hidden; }
.btn-academy { display: inline-block; background: var(--blue); color: #fff; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; font-size: 13px; padding: 12px 22px; border-radius: 6px; margin-top: 6px; transition: background .18s var(--ease); }
.btn-academy:hover { background: #1b6aa8; }

.acad-item { margin-bottom: 22px; }
.acad-item:last-child { margin-bottom: 0; }
.acad-item h4 { color: var(--navy); font-size: 16px; font-weight: 800; text-transform: uppercase; letter-spacing: .3px; margin: 0 0 8px; display: flex; align-items: center; gap: 12px; }
.acad-item h4::before { content: ""; width: 24px; height: 24px; flex-shrink: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='11' fill='%23217bc0'/%3E%3Cpath d='M6.5 12.5l3.3 3.3 7.7-8' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }
.acad-item p { color: #33456b; font-size: 14.5px; line-height: 1.65; margin: 0; }

/* Message du formulaire d'abonnement (pied de page, fond sombre) */
.newsletter-msg { font-size: 12px; margin: 8px 0 0; min-height: 15px; line-height: 1.4; }
.newsletter-msg.ok { color: #8be0a6; }
.newsletter-msg.err { color: #ff9d9d; }

@media (max-width: 900px) {
    .careers-strip { grid-template-columns: repeat(3, 1fr); }
    .offre-top { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1150px) {
    /* Sur mobile : pas d'ouverture au survol, seulement au clic (.open) */
    .main-nav .dropdown { position: static; display: none; min-width: 0; box-shadow: none; border-top: none; background: rgba(255,255,255,.05); border-radius: 0; padding: 0; }
    .main-nav .has-dropdown:hover > .dropdown { display: none; }
    .main-nav .has-dropdown.open > .dropdown { display: block; }
    .main-nav .dropdown a { padding: 12px 16px 12px 30px; }
}
@media (max-width: 560px) {
    .careers-strip { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
   PAGE FORMATION À L'ACADÉMIE (contenu)
   Reproduction de joinlapd.com/academy-training (LAPD -> SASP)
   ============================================================ */

/* Bandeau de titre pleine largeur (bleu, ou bleu clair) */
.acad-band {
    background: var(--navy);
    color: #fff;
    text-align: center;
    padding: 18px 24px;
    margin: 0;
    font-size: clamp(20px, 2.8vw, 30px);
    font-weight: 800;
    letter-spacing: .3px;
    text-transform: uppercase;
}
.acad-band--light { background: var(--blue-light); color: var(--navy); }

/* Deux colonnes : texte + photo (ou photo + texte) */
.acad-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    background: #fff;
}
.acad-copy {
    padding: 42px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.acad-copy--pad { padding: 46px 48px; }
.acad-copy h2 {
    color: var(--blue);
    font-size: clamp(26px, 3.4vw, 38px);
    font-weight: 800;
    line-height: 1.12;
    margin: 0 0 18px;
}
.acad-copy > p { color: #33456b; font-size: 15.5px; line-height: 1.75; margin: 0 0 16px; }
.acad-copy > p:last-child { margin-bottom: 0; }
.acad-lead { font-weight: 800; color: var(--navy); }
.acad-copy ul { list-style: disc; margin: 4px 0 0; padding-left: 22px; }
.acad-copy li { color: #33456b; font-size: 15px; line-height: 1.7; margin-bottom: 10px; }
.acad-copy li strong { color: var(--navy); }
.acad-copy .btn-academy { align-self: flex-start; margin-top: 18px; }

/* Photo (colonne) */
.acad-photo {
    min-height: 440px;
    background-color: #d9e2f0;
    background-size: cover;
    background-position: center;
}

/* Emplacement photo vide, numéroté (en attendant les vraies images) */
.is-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: repeating-linear-gradient(45deg, #e6edf7 0 22px, #dde6f3 22px 44px);
    color: #5f6f90;
    text-align: center;
}
.acad-ph { font-size: 13px; letter-spacing: .3px; padding: 10px 16px; }
.acad-ph b {
    display: block;
    font-size: 15px;
    color: var(--navy);
    background: #fff;
    border: 1px solid #c6d3e8;
    border-radius: 999px;
    padding: 5px 14px;
    margin: 0 auto 8px;
    width: max-content;
}

/* Item "icône + titre + texte" */
.acad-feat { margin-bottom: 26px; }
.acad-feat:last-child { margin-bottom: 0; }
.acad-feat-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.acad-feat-ico { width: 30px; height: 30px; color: var(--blue); flex-shrink: 0; }
.acad-feat-ico svg { width: 100%; height: 100%; display: block; }
.acad-feat h4 {
    color: var(--navy);
    font-size: 17px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .3px;
    margin: 0;
    line-height: 1.2;
}
.acad-feat p { color: #33456b; font-size: 14.5px; line-height: 1.65; margin: 0; }

/* Bandeau CAP (titre or sur fond bleu + sous-titre) */
.acad-cap-band { background: var(--navy); text-align: center; padding: 26px 24px; }
.acad-cap-band h2 {
    color: var(--gold);
    font-weight: 800;
    font-size: clamp(24px, 3.6vw, 42px);
    margin: 0 0 8px;
    line-height: 1.1;
}
.acad-cap-band p { color: #fff; font-size: clamp(15px, 1.9vw, 20px); font-weight: 600; margin: 0; }

/* Bande photo pleine largeur (sous le bandeau CAP) */
.acad-cap-strip {
    height: clamp(180px, 26vw, 300px);
    background-color: #0a2f6e;
    background-size: cover;
    background-position: center;
}

/* Cartes d'emplacements + sessions CAP */
.acad-locations,
.acad-cap-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    align-items: start;
}
.acad-cap-wrap { padding-top: 0; }
.acad-loc-card {
    border: 1px solid #d5deec;
    border-radius: 12px;
    padding: 24px 26px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}
.acad-loc-card h3 {
    color: var(--navy);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.3;
    margin: 0 0 12px;
}
.acad-loc-card p { color: #33456b; font-size: 14.5px; line-height: 1.65; margin: 0 0 10px; }
.acad-loc-card p:last-child { margin-bottom: 0; }
.acad-loc-card strong { color: var(--navy); }
.acad-loc-note { color: #5f6f90; font-style: italic; }
.acad-loc-photo {
    min-height: 220px;
    border-radius: 12px;
    background-color: #d9e2f0;
    background-size: cover;
    background-position: center;
    margin-top: 14px;
    overflow: hidden;
}
/* Dans la grille des emplacements, la photo occupe sa case entière */
.acad-locations > .acad-loc-photo { margin-top: 0; min-height: 100%; }

/* Carte "Où nous trouver" : image de carte entière sur fond sombre */
.acad-map-card .acad-loc-photo {
    min-height: 340px;
    background-color: #141821;
    background-size: contain;
    background-repeat: no-repeat;
}

/* ---- Page "Test à choix multiples (MCT)" ---- */
/* Sections à fond bleu clair (alternance avec les sections blanches) */
.acad-split--tint { background: #eaf2fc; }

/* Bloc d'introduction (texte centré pleine largeur) */
.mct-intro { padding-top: 46px; padding-bottom: 10px; }
.mct-intro .acad-lead { color: var(--navy); font-size: 16px; line-height: 1.7; margin: 0 0 16px; }
.mct-intro ul { list-style: disc; margin: 0; padding-left: 24px; }
.mct-intro li { color: var(--blue); font-size: 15.5px; line-height: 1.8; margin-bottom: 10px; }

/* ---- Page "Test des capacités physiques (PAT)" ---- */
/* Bandeau bleu : titre + paragraphe d'introduction */
.pat-band { background: var(--navy); color: #fff; padding: 30px 24px 36px; }
.pat-band h2 { text-align: center; font-size: clamp(24px, 3.4vw, 38px); font-weight: 800; margin: 0 0 18px; }
.pat-band p { max-width: 1000px; margin: 0 auto; font-size: 15.5px; line-height: 1.75; color: #eaf1fb; }
.pat-band strong { color: #fff; }
.pat-band a { color: #fff; text-decoration: underline; font-weight: 700; }

/* Les quatre épreuves : liste numérotée + boutons vidéo turquoise */
.pat-tests { list-style: none; counter-reset: pat; margin: 6px 0 0; padding: 0; }
.pat-tests li { counter-increment: pat; margin-bottom: 24px; }
.pat-tests li:last-child { margin-bottom: 0; }
.pat-test-name { display: block; color: var(--navy); font-weight: 700; font-size: 17px; margin-bottom: 12px; }
.pat-test-name::before { content: counter(pat) ". "; color: var(--blue); font-weight: 800; }
.btn-video {
    display: inline-block;
    background: #159a9a;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    font-size: 12px;
    padding: 10px 18px;
    border-radius: 6px;
    transition: filter .18s var(--ease), transform .18s var(--ease);
}
.btn-video:hover { filter: brightness(1.08); transform: translateY(-1px); }

/* Liens (téléchargements / mentors) dans le programme d'entraînement */
.pat-link { color: var(--blue); font-weight: 800; text-decoration: underline; text-transform: uppercase; letter-spacing: .3px; font-size: 14px; }
.pat-link:hover { color: #1b6aa8; }

/* ---- Page "Entretien du département" ---- */
/* Bandeau violet (titre + sous-titre) */
.ent-band { background: #5c2d91; color: #fff; text-align: center; padding: 30px 24px 36px; }
.ent-band h2 { font-size: clamp(26px, 3.6vw, 40px); font-weight: 800; margin: 0 0 12px; }
.ent-band p { font-size: 16px; line-height: 1.6; margin: 0 auto; max-width: 760px; color: #efe7f8; }

/* Liste numérotée des critères d'entretien */
.ent-numbers { margin: 10px 0 16px; padding-left: 24px; }
.ent-numbers li { color: var(--navy); font-weight: 700; font-size: 16px; line-height: 1.6; margin-bottom: 8px; }
.ent-numbers li::marker { color: var(--blue); font-weight: 800; }

/* Sous-titres bleus (Préparation orale) */
.ent-subtitle { color: var(--blue); font-size: clamp(19px, 2.4vw, 24px); font-weight: 800; margin: 8px 0 18px; }
.ent-subtitle:not(:first-child) { margin-top: 40px; }

/* Accordéon des questions (réutilise .cond-item, largeur pleine) */
.ent-questions { max-width: none; }

/* Liste finale (déclaration finale) */
.ent-final { list-style: disc; margin: 0; padding-left: 24px; max-width: 900px; }
.ent-final li { color: #33456b; font-size: 15.5px; line-height: 1.75; margin-bottom: 12px; }
.ent-final strong { color: var(--navy); }

/* Emplacement vidéo (à remplacer par une intégration YouTube) */
.ent-video { margin: 26px 0 0; max-width: 720px; }
.ent-video-ph {
    aspect-ratio: 16 / 9;
    background: linear-gradient(160deg, #0a3a86 0%, #011a44 100%);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: #cddcf5;
    font-weight: 600;
    font-size: 15px;
    box-shadow: var(--shadow-sm);
}
.ent-video-play {
    width: 62px; height: 62px;
    border-radius: 50%;
    background: rgba(255,255,255,.14);
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; color: #fff; padding-left: 4px;
}
/* Vignette vidéo (image ent-video.jpg + bouton lecture) */
.ent-video-thumb {
    position: relative;
    display: flex; align-items: center; justify-content: center;
    aspect-ratio: 16 / 9;
    background-size: cover; background-position: center;
    border-radius: 12px; overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.ent-video-thumb::before {
    content: ""; position: absolute; inset: 0;
    background: rgba(4, 20, 50, .34);
    transition: background .2s var(--ease);
}
.ent-video-thumb:hover::before { background: rgba(4, 20, 50, .16); }
.ent-video-thumb .ent-video-play {
    position: relative; z-index: 1;
    background: rgba(0, 0, 0, .55);
    transition: transform .2s var(--ease);
}
.ent-video-thumb:hover .ent-video-play { transform: scale(1.08); }

/* ---- Page "FAQ" ---- */
.faq-section { background: #eef4fc; }
.faq-title { color: var(--blue); text-align: center; font-size: clamp(24px, 3.6vw, 40px); font-weight: 800; line-height: 1.2; margin: 0 0 30px; }
.faq-list { max-width: 1000px; margin: 0 auto; }
/* Sur fond bleu clair, les cartes de questions restent bien blanches */
.faq-list .cond-item { background: #fff; }

/* ============================================================
   BOUTON PORTAIL (en-tete) + PAGE PORTAIL INTERNE
   ============================================================ */
.portal-btn {
    display: inline-flex; align-items: center; gap: 7px;
    flex-shrink: 0;
    padding: 8px 15px;
    border: 1px solid rgba(245, 166, 35, .5);
    border-radius: 999px;
    background: rgba(245, 166, 35, .10);
    color: var(--gold);
    font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase;
    white-space: nowrap;
    transition: background .18s var(--ease), color .18s var(--ease), transform .18s var(--ease);
}
.portal-btn svg { width: 16px; height: 16px; display: block; }
.portal-btn:hover { background: var(--gold); color: var(--navy); transform: translateY(-1px); }
/* Entre 1150 et 1300px, on masque le libellé pour garder une seule ligne */
@media (max-width: 1300px) { .portal-btn { padding: 8px 11px; } .portal-btn span { display: none; } }
@media (max-width: 1150px) { .portal-btn { padding: 8px 15px; } .portal-btn span { display: inline; } }

/* ---- Page portail ---- */
.portail-page { background: #f4f7fc; }
.portail-page .content-wrap { padding-top: 56px; padding-bottom: 80px; }

.portail-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 44px; align-items: start; }

.portail-title { color: var(--navy); font-size: clamp(30px, 4vw, 46px); font-weight: 800; line-height: 1.12; margin: 0 0 18px; }
.portail-lead { color: #4a5a77; font-size: 16px; line-height: 1.7; margin: 0 0 26px; max-width: 560px; }

.portail-restrict { background: #fff; border: 1px solid #e2e8f2; border-left: 4px solid var(--gold); border-radius: 10px; padding: 18px 22px; margin: 0 0 30px; max-width: 560px; box-shadow: var(--shadow-sm); }
.portail-restrict-title { color: var(--navy); font-weight: 800; font-size: 15px; margin: 0 0 8px; }
.portail-restrict-title::before { content: "\25CF  "; color: var(--gold); }
.portail-restrict p { color: #5f6f90; font-size: 14px; line-height: 1.6; margin: 0; }

.portail-div-label { color: #8a97b3; font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; margin: 0 0 12px; }
.portail-div-card { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid #e2e8f2; border-radius: 10px; padding: 16px 20px; max-width: 560px; box-shadow: var(--shadow-sm); }
.portail-div-badge { width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; background: linear-gradient(160deg, var(--blue), var(--navy)); color: #fff; font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center; letter-spacing: .5px; }
.portail-div-name { color: var(--navy); font-weight: 700; font-size: 16px; margin: 0; }
.portail-div-sub { color: #8a97b3; font-size: 13px; margin: 2px 0 0; }

.portail-login { background: #fff; border: 1px solid #e2e8f2; border-radius: 16px; padding: 40px 34px; text-align: center; box-shadow: var(--shadow-md); }
.portail-lock { width: 74px; height: 74px; margin: 0 auto 20px; border-radius: 50%; background: linear-gradient(160deg, #eaf1fb, #d6e6fb); display: flex; align-items: center; justify-content: center; color: var(--navy); }
.portail-lock svg { width: 34px; height: 34px; }
.portail-lock--ok { background: linear-gradient(160deg, #e7f7ec, #c9ecd4); color: #1e8f4e; }
.portail-login h2 { color: var(--navy); font-size: 24px; font-weight: 800; margin: 0 0 12px; }
.portail-login-text { color: #5f6f90; font-size: 14.5px; line-height: 1.6; margin: 0 0 22px; }

.btn-discord { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; background: #5865F2; color: #fff; font-weight: 700; font-size: 15px; padding: 14px 20px; border-radius: 10px; transition: filter .18s var(--ease), transform .18s var(--ease); }
.btn-discord svg { width: 22px; height: 22px; }
.btn-discord:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-discord--off { background: #9aa0c9; cursor: not-allowed; }
.btn-discord--off:hover { filter: none; transform: none; }

.portail-note { color: #8a97b3; font-size: 13px; line-height: 1.6; margin: 20px 0 0; }
.portail-config { color: #a1701c; background: #fdf3e0; border: 1px solid #f2dcae; border-radius: 8px; padding: 9px 12px; font-size: 12.5px; margin: 12px 0 0; }
.portail-config code { background: rgba(0,0,0,.06); padding: 1px 5px; border-radius: 4px; }
.portail-denied { background: #fdecec; color: #a12727; border: 1px solid #f3c2c2; border-radius: 8px; padding: 12px 14px; font-size: 13.5px; line-height: 1.5; margin: 0 0 18px; text-align: left; }

.portail-granted { max-width: 960px; margin: 0 auto; text-align: center; }
.portail-granted h1 { color: var(--navy); font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; margin: 0 0 10px; }
.portail-granted-sub { color: #4a5a77; font-size: 16px; line-height: 1.7; margin: 0 auto 6px; max-width: 620px; }
.portail-roles-line { color: #1e8f4e; font-weight: 700; font-size: 14px; margin: 0 0 30px; }

/* Cases des divisions du SASP */
.portail-units { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; margin: 0 0 34px; text-align: left; }
.portail-unit { display: block; background: #fff; border: 1px solid #e2e8f2; border-left: 4px solid var(--blue); border-radius: 12px; padding: 22px 22px; box-shadow: var(--shadow-sm); transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease); }
.portail-unit:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.portail-unit h3 { color: var(--navy); font-size: 17px; font-weight: 800; margin: 0 0 8px; }
.portail-unit p { color: #5f6f90; font-size: 13px; line-height: 1.55; margin: 0; }
.portail-logout { margin-top: 6px; }

@media (max-width: 860px) {
    .portail-grid { grid-template-columns: 1fr; gap: 30px; }
    .portail-page .content-wrap { padding-top: 36px; }
}
@media (max-width: 480px) {
    .portail-units { grid-template-columns: 1fr; }
}

/* Cases "Bientôt" (outils pas encore actifs) */
.portail-unit--soon { position: relative; opacity: .68; }
.portail-unit--soon:hover { transform: none; box-shadow: var(--shadow-sm); }
.soon-tag { position: absolute; top: 14px; right: 14px; background: #eef1f6; color: #8a97b3; font-size: 10px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; }

/* ============================================================
   OUTIL : RAPPORT D'INTERVENTION (générateur)
   ============================================================ */
.rapport-h1 { color: var(--navy); font-size: clamp(24px, 3.2vw, 34px); font-weight: 800; margin: 8px 0 6px; }
.rapport-intro { color: #5f6f90; font-size: 15px; line-height: 1.6; margin: 0 0 26px; max-width: 740px; }
.rapport-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }

.field .opt { color: #9aa7c2; font-weight: 500; font-size: 12px; }

.dyn-rows { margin-bottom: 10px; }
.dyn-rows .drow { display: grid; grid-template-columns: 120px 1fr 36px; gap: 8px; margin-bottom: 8px; }
.dyn-rows .crow { display: grid; grid-template-columns: 1fr 36px; gap: 8px; margin-bottom: 8px; }
.dyn-rows input { width: 100%; border: 1px solid #cdd6e5; border-radius: 8px; padding: 11px 12px; font-size: 14px; font-family: inherit; color: var(--navy); outline: none; transition: border-color .18s var(--ease), box-shadow .18s var(--ease); }
.dyn-rows input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(33,123,192,.18); }
.dyn-del { border: 1px solid #e6c6c6; background: #fdf1f1; color: #c0392b; border-radius: 8px; cursor: pointer; font-size: 18px; line-height: 1; transition: background .15s var(--ease); }
.dyn-del:hover { background: #f7dede; }
.dyn-add { background: #eef4fc; color: var(--blue); border: 1px solid #d3e2f5; border-radius: 8px; padding: 8px 15px; font-size: 13px; font-weight: 700; cursor: pointer; transition: background .15s var(--ease); }
.dyn-add:hover { background: #e0ecfb; }

.rapport-preview { position: sticky; top: 90px; }
.rapport-preview-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.rapport-preview-head span { font-weight: 800; color: var(--navy); font-size: 14px; text-transform: uppercase; letter-spacing: .5px; }
.btn-copy { background: var(--blue); color: #fff; border: none; border-radius: 8px; padding: 9px 20px; font-weight: 700; font-size: 13px; cursor: pointer; transition: background .18s var(--ease); }
.btn-copy:hover { background: #1b6aa8; }
.rapport-out { background: #fbfbf7; border: 1px solid #dfe5ef; border-radius: 12px; padding: 22px 20px; font-family: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; font-size: 12.5px; line-height: 1.6; color: #1c2942; white-space: pre-wrap; word-break: break-word; max-height: 74vh; overflow: auto; box-shadow: var(--shadow-sm); margin: 0; }

@media (max-width: 900px) {
    .rapport-grid { grid-template-columns: 1fr; }
    .rapport-preview { position: static; }
}

/* ============================================================
   OUTIL : CODE PÉNAL / GRILLE DES PEINES
   ============================================================ */
.code-rules { background: #f5f8fd; border: 1px solid #dde5f1; border-left: 5px solid var(--blue); border-radius: 12px; padding: 20px 24px; margin: 4px 0 22px; }
.code-rules-title { color: var(--navy); font-weight: 800; font-size: 15px; text-transform: uppercase; letter-spacing: .4px; margin: 0 0 12px; }
.code-rules ul { list-style: disc; margin: 0; padding-left: 22px; }
.code-rules li { color: #33456b; font-size: 14px; line-height: 1.7; margin-bottom: 8px; }
.code-rules li:last-child { margin-bottom: 0; }
.code-rules strong { color: var(--navy); }

.code-search { margin: 0 0 18px; }
.code-search input {
    width: 100%;
    border: 1px solid #cdd6e5;
    border-radius: 10px;
    padding: 14px 18px;
    font-size: 15px;
    font-family: inherit;
    color: var(--navy);
    outline: none;
    background: #fff;
    transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.code-search input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(33,123,192,.18); }

.code-table-wrap { overflow-x: auto; border: 1px solid #e2e8f2; border-radius: 12px; box-shadow: var(--shadow-sm); }
.code-table { width: 100%; border-collapse: collapse; min-width: 920px; }
.code-table thead th {
    background: #e9edf3; color: var(--navy);
    font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .3px;
    padding: 13px 16px; text-align: left; border-bottom: 1px solid #d5deec;
    position: sticky; top: 0; z-index: 2;
}
.code-table td { padding: 12px 16px; font-size: 13px; line-height: 1.5; border-bottom: 1px solid #eef2f7; vertical-align: top; }
.code-table tbody tr.code-row:nth-child(even) { background: #f7f9fc; }

/* Bandeaux "livre" et "section" dans le tableau */
.code-livre td { background: var(--navy); color: #fff; text-align: center; font-weight: 800; font-size: clamp(16px, 2.2vw, 22px); letter-spacing: .5px; padding: 14px; text-transform: uppercase; }
.code-livre--teal td { background: #1f9e9e; }   /* code aérien */
.code-livre--gold td { background: #c49a16; }   /* code du travail et des entreprises */
.code-section td { background: var(--blue); color: #fff; text-align: center; font-weight: 700; font-size: 13px; letter-spacing: 1.5px; padding: 8px; text-transform: uppercase; }
/* Couleurs par type de section (repère visuel) */
.code-section--green td  { background: #2f9e51; }   /* délits mineurs */
.code-section--gold td   { background: #d99e12; }   /* délits majeurs */
.code-section--orange td { background: #e08a1e; }
.code-section--red td    { background: #c0392b; }   /* crimes */

.code-chef { color: var(--blue); font-weight: 700; }
.code-amende { color: var(--navy); font-weight: 800; white-space: nowrap; }
.code-peine { color: #33456b; }
.code-notes { color: #5f6f90; }
.code-penal { color: #5f6f90; }
.code-noresult { display: none; padding: 22px; text-align: center; color: #8a97b3; font-style: italic; margin: 0; }

/* ---- Calculateur de peine ---- */
.calc-panel { position: sticky; z-index: 20; background: #fff; border: 1px solid #d5deec; border-radius: 12px; box-shadow: var(--shadow-md); padding: 16px 18px; margin: 0 0 18px; }
.calc-top { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.calc-title { color: var(--navy); font-size: 17px; font-weight: 800; margin: 0; display: flex; align-items: center; gap: 8px; }
.calc-count { background: var(--blue); color: #fff; font-size: 12px; font-weight: 800; border-radius: 999px; padding: 2px 9px; min-width: 22px; text-align: center; }
.calc-check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--navy); font-weight: 600; cursor: pointer; }
.calc-check-note { color: #8a97b3; font-weight: 500; }
.calc-clear { margin-left: auto; background: #fdf1f1; color: #c0392b; border: 1px solid #e6c6c6; border-radius: 8px; padding: 7px 14px; font-size: 12px; font-weight: 700; cursor: pointer; transition: background .15s var(--ease); }
.calc-clear:hover { background: #f7dede; }

.calc-mineur-alert { margin: 12px 0 0; background: #fdecec; color: #a12727; border: 1px solid #f3c2c2; border-radius: 8px; padding: 10px 14px; font-size: 13px; font-weight: 700; }

.calc-list { margin: 12px 0 0; max-height: 220px; overflow-y: auto; }
.calc-empty { color: #8a97b3; font-size: 13px; font-style: italic; margin: 4px 0; }
.calc-item { display: flex; align-items: center; gap: 12px; padding: 8px 6px; border-bottom: 1px solid #eef2f7; font-size: 13px; }
.calc-item:last-child { border-bottom: none; }
.calc-item-name { flex: 1; color: var(--navy); font-weight: 600; min-width: 150px; }
.calc-item-amende { color: var(--navy); font-weight: 800; white-space: nowrap; }
.calc-item-peine { color: #5f6f90; white-space: nowrap; min-width: 58px; text-align: right; }
.calc-qty { width: 60px; border: 1px solid #cdd6e5; border-radius: 6px; padding: 5px 8px; font-size: 13px; text-align: center; font-family: inherit; }
.calc-rm { background: none; border: none; color: #c0392b; font-size: 20px; cursor: pointer; line-height: 1; padding: 0 4px; }

.calc-foot { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin: 12px 0 0; padding-top: 12px; border-top: 2px solid #eef2f7; }
.calc-total { display: flex; flex-direction: column; }
.calc-total span { font-size: 11px; color: #8a97b3; text-transform: uppercase; letter-spacing: .5px; font-weight: 700; }
.calc-total strong { font-size: 21px; color: var(--navy); }
.calc-status { margin-left: auto; font-size: 13px; font-weight: 800; padding: 8px 16px; border-radius: 999px; }
.calc-status--proc   { background: #fdecec; color: #c0392b; }
.calc-status--police { background: #eaf7ee; color: #1e8f4e; }

/* Lignes cliquables + sélection */
.code-row { cursor: pointer; }
.code-row:not(.is-selected):hover > td { background: #eef4fc; }
.code-row.is-selected > td { background: #dcebfb; }
.code-row.is-selected > td:first-child { box-shadow: inset 4px 0 0 var(--blue); }

@media (max-width: 700px) {
    .calc-foot { gap: 14px; }
    .calc-status { margin-left: 0; }
    .calc-item-name { min-width: 110px; }
}

/* ---- Gestion des rôles (superviseur) ---- */
.roles-grid { display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: start; }
.roles-list { background: #fff; border: 1px solid #e2e8f2; border-radius: 12px; padding: 14px; box-shadow: var(--shadow-sm); }
.roles-search { width: 100%; border: 1px solid #cdd6e5; border-radius: 8px; padding: 10px 12px; font-size: 14px; font-family: inherit; color: var(--navy); outline: none; }
.roles-search:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(33,123,192,.18); }
.roles-count { color: #8a97b3; font-size: 12px; margin: 10px 2px; text-transform: uppercase; letter-spacing: .5px; font-weight: 700; }
.roles-list ul { max-height: 460px; overflow-y: auto; }
.roles-member { display: block; padding: 10px 12px; border-radius: 8px; color: var(--navy); font-size: 14px; font-weight: 600; }
.roles-member:hover { background: #eef4fc; }
.roles-member.is-active { background: var(--blue); color: #fff; }
.roles-empty { color: #8a97b3; font-size: 13px; font-style: italic; padding: 10px 12px; }

.roles-detail { background: #fff; border: 1px solid #e2e8f2; border-radius: 12px; padding: 24px 26px; box-shadow: var(--shadow-sm); min-height: 200px; }
.roles-detail-name { color: var(--navy); font-size: 22px; font-weight: 800; margin: 0 0 2px; }
.roles-detail-id { color: #8a97b3; font-size: 13px; margin: 0 0 20px; }
.roles-placeholder { color: #8a97b3; font-style: italic; }
.role-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #eef2f7; }
.role-row:last-child { border-bottom: none; }
.role-name { flex: 1; color: var(--navy); font-weight: 700; font-size: 14px; }
.role-reason { width: 190px; border: 1px solid #cdd6e5; border-radius: 8px; padding: 8px 10px; font-size: 13px; font-family: inherit; color: var(--navy); outline: none; }
.role-reason:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(33,123,192,.18); }
.role-remove { background: #c0392b; color: #fff; border: none; border-radius: 8px; padding: 8px 16px; font-weight: 700; font-size: 13px; cursor: pointer; transition: background .15s var(--ease); }
.role-remove:hover { background: #a12f22; }

@media (max-width: 820px) {
    .roles-grid { grid-template-columns: 1fr; }
    .roles-list ul { max-height: 260px; }
    .role-row { flex-wrap: wrap; }
    .role-reason { width: 100%; }
}

/* Responsive : une colonne sur petit écran */
@media (max-width: 900px) {
    .acad-split { grid-template-columns: 1fr; }
    .acad-copy, .acad-copy--pad { padding: 32px 26px; }
    .acad-photo { min-height: 260px; order: -1; } /* photo au-dessus du texte */
    .acad-locations, .acad-cap-cards { grid-template-columns: 1fr; }
    .acad-locations > .acad-loc-photo { min-height: 220px; }
}

/* ============================================================
   OUTIL : FICHE D'ÉVALUATION D'UN AGENT
   ============================================================ */
.eval-block-label { display: block; font-weight: 700; color: var(--navy); font-size: 14px; margin: 4px 0 10px; }
.eval-notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; margin-bottom: 18px; }
.eval-note { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #f5f8fd; border: 1px solid #dde5f1; border-radius: 10px; padding: 8px 12px; }
.eval-note label { font-weight: 700; color: #33456b; font-size: 13.5px; margin: 0; }
.eval-note-in { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.eval-note-in span { color: #7488ad; font-weight: 700; font-size: 13px; }
.e-note { width: 66px; text-align: center; padding: 8px 6px !important; margin: 0; }

.eval-average { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: #eef4fc; border: 1px solid #d3e1f5; border-left: 5px solid var(--blue); border-radius: 12px; padding: 14px 18px; margin: 0 0 20px; }
.eval-average-lbl { font-weight: 800; color: var(--navy); text-transform: uppercase; letter-spacing: .5px; font-size: 13px; }
.eval-average-val { font-weight: 900; color: var(--navy); font-size: 22px; line-height: 1; }
.eval-average-niv { font-weight: 800; font-size: 13px; padding: 4px 12px; border-radius: 999px; background: #fff; border: 1px solid #d3e1f5; color: #33456b; }
.eval-average--low { border-left-color: #c0392b; }
.eval-average--low .eval-average-niv { background: #fdecea; border-color: #f4c7c0; color: #a5281b; }
.eval-average--ok  { border-left-color: #2e8b57; }
.eval-average--ok  .eval-average-niv { background: #e7f6ee; border-color: #bfe5cf; color: #1f6b41; }
.eval-average--lt  { border-left-color: var(--gold); }
.eval-average--lt  .eval-average-niv { background: #fdf3e0; border-color: #f2dcae; color: #a1701c; }
.eval-average--cmd { border-left-color: #7d3cc0; }
.eval-average--cmd .eval-average-niv { background: #f2e9fb; border-color: #ddc7f2; color: #5f2b95; }

@media (max-width: 560px) {
    .eval-notes { grid-template-columns: 1fr; }
}

/* ============================================================
   DOA - FICHES DE CIBLE / SUSPECT
   ============================================================ */

/* --- Boutons communs --- */
.btn-new { display: inline-flex; align-items: center; gap: 6px; background: var(--navy); color: #fff; font-weight: 800; font-size: 14px; text-decoration: none; padding: 12px 20px; border-radius: 10px; box-shadow: var(--shadow-sm); transition: background .18s var(--ease), transform .18s var(--ease); white-space: nowrap; }
.btn-new:hover { background: #013a8f; transform: translateY(-1px); }
.btn-cancel { display: inline-flex; align-items: center; padding: 12px 20px; border-radius: 10px; font-weight: 700; font-size: 14px; text-decoration: none; color: #55617a; background: #eef1f6; border: 1px solid #dce2ec; }
.btn-cancel:hover { background: #e3e8f0; }
.btn-delete { background: #c0392b; color: #fff; border: none; border-radius: 10px; padding: 12px 20px; font-weight: 800; font-size: 14px; cursor: pointer; transition: background .18s var(--ease); }
.btn-delete:hover { background: #a12f22; }

/* --- Badges statut (reutilises liste + dossier) --- */
.badge-statut { display: inline-block; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; padding: 4px 11px; border-radius: 999px; color: #fff; }
.badge-statut--surv { background: #217bc0; }
.badge-statut--rech { background: #c0392b; }
.badge-statut--arr  { background: #2e8b57; }
.badge-statut--jud  { background: #7d3cc0; }

/* --- Tags de menace (vignette liste) --- */
.cible-menace-tag { position: absolute; top: 8px; left: 8px; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; padding: 3px 9px; border-radius: 6px; color: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.cible-menace-tag--faible   { background: #2e8b57; }
.cible-menace-tag--moyen    { background: #d68a10; }
.cible-menace-tag--eleve    { background: #c0392b; }
.cible-menace-tag--critique { background: #6d1414; }

/* --- En-tete de liste --- */
.cible-list-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 18px; }
.cible-list-head .portail-title { margin: 0 0 4px; }
.cible-list-head .portail-lead { margin: 0; }

/* --- Barre d'outils (recherche + filtres) --- */
.doa-toolbar { display: flex; flex-direction: column; gap: 10px; background: #f5f8fd; border: 1px solid #dde5f1; border-radius: 12px; padding: 14px 16px; margin-bottom: 22px; }
.doa-search { width: 100%; padding: 11px 14px; border: 1px solid #cfd9e8; border-radius: 9px; font-size: 14px; background: #fff; }
.doa-search:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(33,123,192,.18); }
.doa-filters { display: flex; flex-wrap: wrap; gap: 7px; }
.doa-chip { background: #fff; border: 1px solid #cfd9e8; color: #46536e; font-weight: 700; font-size: 12.5px; padding: 6px 13px; border-radius: 999px; cursor: pointer; transition: all .15s var(--ease); }
.doa-chip:hover { border-color: var(--blue); color: var(--navy); }
.doa-chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }

/* --- Grille de cartes --- */
.cible-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.cible-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #e2e8f2; border-radius: 14px; overflow: hidden; text-decoration: none; box-shadow: var(--shadow-sm); transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease); }
.cible-card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(1,43,109,.14); border-color: #c6d3e8; }
.cible-card-photo { position: relative; aspect-ratio: 4 / 3; background: #0e1b33; overflow: hidden; }
.cible-card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cible-card-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #4a628c; background: linear-gradient(135deg, #16233f, #0c1526); }
.cible-card-body { padding: 12px 14px 15px; display: flex; flex-direction: column; gap: 3px; }
.cible-num { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 11px; color: #8a97b0; letter-spacing: .5px; }
.cible-card-body h3 { margin: 0; color: var(--navy); font-size: 16px; font-weight: 800; line-height: 1.25; }
.cible-alias { color: #6b7896; font-style: italic; font-size: 12.5px; }
.cible-gang { color: #46536e; font-size: 13px; margin-top: 2px; }
.cible-card-body .badge-statut { align-self: flex-start; margin-top: 8px; }

.cible-noresult { color: #6b7896; font-style: italic; text-align: center; padding: 24px 0; }
.cible-empty { text-align: center; padding: 60px 20px; background: #f5f8fd; border: 1px dashed #cfd9e8; border-radius: 14px; }
.cible-empty p { color: #55617a; font-size: 16px; margin: 0 0 16px; }

/* ============================================================
   DOSSIER DETAILLE
   ============================================================ */
.dossier { max-width: 940px; margin: 0 auto; background: #fff; border: 1px solid #dce4f0; border-radius: 16px; overflow: hidden; box-shadow: 0 14px 40px rgba(1,26,68,.12); }
.dossier-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; background: linear-gradient(120deg, #012b6d, #01173d); color: #fff; padding: 22px 26px; }
.dossier-kicker { display: block; text-transform: uppercase; letter-spacing: 1.4px; font-size: 11.5px; font-weight: 700; color: var(--gold); margin-bottom: 6px; }
.dossier-head h1 { margin: 0; color: #fff; font-size: 26px; line-height: 1.2; }
.dossier-alias { font-weight: 500; color: #b9cdf0; }
.dossier-stamp { flex: 0 0 auto; border: 2px solid #e05a4b; color: #ff8a7a; font-weight: 900; text-transform: uppercase; letter-spacing: 1px; font-size: 12px; text-align: center; padding: 7px 12px; border-radius: 8px; line-height: 1.3; }
.dossier-stamp span { display: block; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; color: #ffd7d0; letter-spacing: .5px; margin-top: 2px; }

.dossier-menace { display: flex; align-items: center; gap: 12px; padding: 11px 26px; color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .5px; }
.dossier-menace strong { font-size: 15px; font-weight: 900; }
.dossier-menace span:first-child { opacity: .85; font-weight: 700; }
.dossier-menace--faible   { background: #2e8b57; }
.dossier-menace--moyen    { background: #d68a10; }
.dossier-menace--eleve    { background: #c0392b; }
.dossier-menace--critique { background: #6d1414; }
.dossier-armed { margin-left: auto; background: rgba(0,0,0,.32); border: 1px solid rgba(255,255,255,.5); padding: 4px 12px; border-radius: 6px; font-weight: 900; letter-spacing: .6px; }

.dossier-top { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 24px 26px; }
.dossier-photo { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.dossier-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; border: 3px solid #0e1b33; }
.dossier-photo-ph { width: 100%; aspect-ratio: 4 / 5; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #4a628c; background: linear-gradient(135deg, #16233f, #0c1526); }
.dossier-photo-ph span { font-size: 12px; }

.dossier-id dl { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 0; }
.dossier-id dl > div { padding: 9px 0; border-bottom: 1px solid #eef1f7; }
.dossier-id dt { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: #8a97b0; font-weight: 700; margin-bottom: 3px; }
.dossier-id dd { margin: 0; color: #1c2942; font-size: 14.5px; font-weight: 600; }

.dossier-section { padding: 20px 26px; border-top: 1px solid #eef1f7; }
.dossier-section h2 { margin: 0 0 12px; font-size: 13px; text-transform: uppercase; letter-spacing: .8px; color: var(--navy); font-weight: 800; }
.dossier-crimes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.dossier-crimes li { position: relative; padding-left: 20px; color: #33456b; font-size: 14px; }
.dossier-crimes li::before { content: ""; position: absolute; left: 4px; top: 8px; width: 7px; height: 7px; border-radius: 2px; background: #c0392b; }
.dossier-two { display: grid; grid-template-columns: 1fr 1fr; }
.dossier-two .dossier-section { border-top: 1px solid #eef1f7; }
.dossier-two .dossier-section:nth-child(2) { border-left: 1px solid #eef1f7; }
.dossier-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.dossier-table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .4px; color: #8a97b0; border-bottom: 1px solid #e2e8f2; padding: 6px 8px 6px 0; }
.dossier-table td { padding: 7px 8px 7px 0; border-bottom: 1px solid #f1f4f9; color: #33456b; }
.dossier-table .mono { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .5px; }
.dossier-assoc { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.dossier-assoc li { color: #1c2942; font-size: 14px; }
.dossier-assoc li span { color: #6b7896; font-size: 12.5px; }
.dossier-notes { color: #33456b; font-size: 14px; line-height: 1.65; margin: 0; }
.dossier-empty { color: #97a2b8; font-style: italic; font-size: 13.5px; margin: 0; }

.dossier-meta { display: flex; flex-wrap: wrap; gap: 6px 22px; padding: 16px 26px; border-top: 1px solid #eef1f7; background: #f9fbfe; color: #7a869e; font-size: 12.5px; }
.dossier-meta strong { color: #46536e; font-family: ui-monospace, Menlo, Consolas, monospace; }
.dossier-actions { display: flex; gap: 12px; align-items: center; padding: 18px 26px 24px; }

/* ============================================================
   FORMULAIRE DE FICHE
   ============================================================ */
.cible-form-cols { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; }
.cible-form-side { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 12px; }
.cible-photo-box { width: 100%; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; border: 2px dashed #cfd9e8; background: #f5f8fd; }
.cible-photo-box img { width: 100%; height: 100%; object-fit: cover; }
.cible-photo-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #97a2b8; font-size: 13px; }
.cible-file { display: block; text-align: center; background: var(--blue); color: #fff; font-weight: 700; font-size: 13.5px; padding: 10px; border-radius: 9px; cursor: pointer; transition: background .18s var(--ease); }
.cible-file:hover { background: #1b6aa8; }
.cible-file input { display: none; }
.cible-remove-photo, .cible-danger-check { display: flex; align-items: center; gap: 7px; font-size: 13px; color: #46536e; font-weight: 600; cursor: pointer; }
.cible-danger-check { background: #fdecea; border: 1px solid #f4c7c0; color: #a5281b; padding: 9px 11px; border-radius: 8px; font-weight: 700; }

.cible-form-legend { margin: 26px 0 12px; padding-bottom: 7px; border-bottom: 2px solid #eef1f7; color: var(--navy); font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .7px; }
.cible-form-main .cible-form-legend:first-child { margin-top: 0; }
.form-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.dyn-rows { display: flex; flex-direction: column; gap: 8px; }
.dyn-row { display: grid; gap: 8px; align-items: center; }
.dyn-row-veh { grid-template-columns: 1fr 1fr 1fr auto; }
.dyn-row-ass { grid-template-columns: 1fr 1fr auto; }
.dyn-row input { padding: 9px 11px; border: 1px solid #cfd9e8; border-radius: 8px; font-size: 13.5px; }
.dyn-row input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(33,123,192,.15); }
.dyn-del { width: 34px; height: 34px; border: 1px solid #f4c7c0; background: #fdecea; color: #c0392b; border-radius: 8px; font-size: 18px; line-height: 1; cursor: pointer; transition: background .15s var(--ease); }
.dyn-del:hover { background: #f8d7d2; }
.btn-add { margin-top: 10px; background: #eef4fc; border: 1px dashed #b7cdea; color: var(--navy); font-weight: 700; font-size: 13px; padding: 9px 15px; border-radius: 9px; cursor: pointer; transition: background .15s var(--ease); }
.btn-add:hover { background: #e2edfb; }
.cible-form-actions { display: flex; gap: 12px; align-items: center; margin-top: 30px; }

@media (max-width: 860px) {
    .cible-form-cols { grid-template-columns: 1fr; }
    .cible-form-side { position: static; max-width: 320px; }
    .dossier-top { grid-template-columns: 1fr; }
    .dossier-photo { max-width: 240px; }
    .dossier-two { grid-template-columns: 1fr; }
    .dossier-two .dossier-section:nth-child(2) { border-left: none; }
}
@media (max-width: 560px) {
    .dossier-id dl { grid-template-columns: 1fr; }
    .form-grid-3 { grid-template-columns: 1fr; }
    .dossier-head h1 { font-size: 21px; }
}

/* ============================================================
   DOA - Fiche de cible : ecran d'accueil (2 options), chefs, PDF
   ============================================================ */

/* Ecran d'accueil : 2 grandes options */
.doa-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 22px; max-width: 760px; }
.doa-choice-card { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; background: #fff; border: 1px solid #e2e8f2; border-left: 5px solid var(--blue); border-radius: 14px; padding: 26px 24px; text-decoration: none; box-shadow: var(--shadow-sm); transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease); }
.doa-choice-card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(1,43,109,.14); }
.doa-choice-card--accent { border-left-color: var(--gold); }
.doa-choice-ic { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 12px; background: #eef4fc; color: var(--navy); margin-bottom: 6px; }
.doa-choice-card--accent .doa-choice-ic { background: #fdf3e0; color: #a1701c; }
.doa-choice-card h3 { margin: 0; color: var(--navy); font-size: 19px; font-weight: 800; }
.doa-choice-card p { margin: 0; color: #55617a; font-size: 14px; }
.doa-choice-count { margin-top: 8px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: #8a97b0; }

/* Icone "pas de photo" (taille selon le contexte) */
.nophoto-ic { color: #6a7d9c; }
.cible-card-ph .nophoto-ic { width: 54px; height: 54px; }
.dossier-photo-ph .nophoto-ic, .cible-photo-ph .nophoto-ic { width: 72px; height: 72px; }

/* Selecteur de chefs d'accusation */
.chef-help { color: #6b7896; font-size: 13px; margin: 0 0 10px; }
.chef-picker { display: flex; gap: 8px; margin-bottom: 10px; }
.chef-picker select, .chef-picker input { flex: 1; min-width: 0; padding: 10px 11px; border: 1px solid #cfd9e8; border-radius: 8px; font-size: 13.5px; background: #fff; }
.chef-picker select:focus, .chef-picker input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(33,123,192,.15); }
.chef-picker .btn-add { margin: 0; white-space: nowrap; }
.chefs-list { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.chefs-list li { display: flex; align-items: center; gap: 10px; background: #f5f8fd; border: 1px solid #dde5f1; border-left: 4px solid #c0392b; border-radius: 9px; padding: 9px 12px; }
.chefs-list li span { flex: 1; color: #26324c; font-size: 13.5px; font-weight: 600; }
.chef-del { width: 28px; height: 28px; border: 1px solid #f4c7c0; background: #fdecea; color: #c0392b; border-radius: 7px; font-size: 16px; line-height: 1; cursor: pointer; flex: 0 0 auto; }
.chef-del:hover { background: #f8d7d2; }

/* Bouton PDF */
.btn-pdf { display: inline-flex; align-items: center; gap: 6px; background: #1f6b41; color: #fff; font-weight: 800; font-size: 14px; text-decoration: none; padding: 12px 20px; border-radius: 10px; transition: background .18s var(--ease); }
.btn-pdf:hover { background: #185634; }

@media (max-width: 620px) {
    .doa-choice { grid-template-columns: 1fr; }
    .chef-picker { flex-direction: column; }
}

/* ============================================================
   DOA - Registre des organisations (gangs)
   ============================================================ */
.org-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.org-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #e2e8f2; border-radius: 14px; overflow: hidden; text-decoration: none; box-shadow: var(--shadow-sm); transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease); }
.org-card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(1,43,109,.14); border-color: #c6d3e8; }
.org-card-band { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 15px; color: #fff; }
.org-card-band h3 { margin: 0; color: #fff; font-size: 17px; font-weight: 800; line-height: 1.2; }
.org-menace-mini { flex: 0 0 auto; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; background: rgba(0,0,0,.22); padding: 3px 9px; border-radius: 999px; }
.org-card--faible   .org-card-band { background: #2e8b57; }
.org-card--moyen    .org-card-band { background: #d68a10; }
.org-card--eleve    .org-card-band { background: #c0392b; }
.org-card--critique .org-card-band { background: #6d1414; }

.org-card-body { padding: 12px 15px 15px; display: flex; flex-direction: column; gap: 7px; }
.org-num { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 11px; color: #8a97b0; letter-spacing: .5px; }
.org-row { display: flex; gap: 8px; font-size: 13.5px; }
.org-k { flex: 0 0 74px; color: #8a97b0; font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .3px; padding-top: 2px; }
.org-v { color: #26324c; font-weight: 600; }
.org-foot { margin-top: 3px; color: #7a869e; font-size: 12px; }

.org-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.org-tags--sm { margin-top: 2px; }
.org-tag { display: inline-block; background: #eef4fc; border: 1px solid #d3e1f5; color: #33456b; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.org-tag--more { background: #f0f2f6; color: #7a869e; border-color: #dde2ea; }

/* Formulaire : cases d'activites */
.org-check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px 14px; }
.org-check { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: #33456b; font-weight: 600; background: #f5f8fd; border: 1px solid #dde5f1; border-radius: 8px; padding: 8px 11px; cursor: pointer; }
.org-check input { flex: 0 0 auto; }

/* Lignes dynamiques membres / rivaux */
.dyn-row-mem   { grid-template-columns: 1fr 1fr auto; }
.dyn-row-rival { grid-template-columns: 1fr auto; }

@media (max-width: 560px) {
    .org-grid { grid-template-columns: 1fr; }
    .org-check-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   PORTAIL INTERNE - Habillage institutionnel (sobre)
   Coins nets, aplats, bordures fines, badges carres, en-tetes pleins.
   Ne touche que les classes des outils internes (pas le site public).
   ============================================================ */

/* Coins nets partout dans les outils internes */
.portail-unit, .portail-unit--soon,
.cible-card, .cible-card-photo, .org-card, .dossier,
.doa-toolbar, .cible-empty, .rapport-out, .rapport-preview, .code-rules,
.eval-average, .doa-choice-card, .chefs-list li, .org-check,
.field input, .field textarea, .field select,
.doa-search, .chef-picker select, .chef-picker input, .dyn-row input, .code-gate input,
.btn-new, .btn-submit, .btn-cancel, .btn-delete, .btn-pdf, .btn-copy, .btn-add,
.doa-chip, .form-msg-ok, .form-msg-error, .portail-config, .soon-tag {
    border-radius: 3px !important;
}

/* Cartes & panneaux : plats, bordure fine, survol discret (pas de "flottement") */
.cible-card, .org-card, .portail-unit, .portail-unit--soon, .dossier, .doa-choice-card {
    box-shadow: none;
    border: 1px solid #ccd5e2;
}
.cible-card:hover, .org-card:hover, .portail-unit:hover, .doa-choice-card:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--navy);
    background: #fbfcfe;
}

/* Dossier : en-tete aplati (navy plein) + filet dore, sans ombre ni ombrage texte */
.dossier { box-shadow: none; border: 1px solid #bfcadd; }
.dossier-head { background: var(--navy); border-bottom: 3px solid var(--gold); }
.dossier-head h1 { text-shadow: none; }
.dossier-stamp { border-radius: 2px; background: rgba(0,0,0,.15); }

/* Badges / statuts / tags : carres, majuscules, sobres */
.badge-statut, .cible-menace-tag, .org-menace-mini, .eval-average-niv {
    border-radius: 2px !important;
    letter-spacing: .5px;
    box-shadow: none;
}
.org-tag { background: #eef1f6; border-color: #d2d9e4; color: #3a465c; border-radius: 2px !important; font-weight: 700; }
.org-tag--more { background: #f0f2f6; color: #7a869e; }
.chef-del, .dyn-del { border-radius: 2px; }

/* Boutons : plats, rectangulaires, sans translation au survol */
.btn-new, .btn-submit, .btn-pdf, .btn-delete { box-shadow: none; }
.btn-new:hover, .btn-submit:hover { transform: none; }

/* Placeholders photo : aplat sombre (fini le degrade) */
.cible-card-ph, .dossier-photo-ph, .cible-photo-ph { background: #1b2740; background-image: none; }

/* Grilles un peu plus denses */
.cible-grid, .org-grid { gap: 14px; }

/* Sections de dossier : filets plus nets */
.dossier-section { border-top: 1px solid #e4e9f1; }
.dossier-id dl > div { border-bottom: 1px solid #e8ecf3; }

/* ============================================================
   DOA - Amelioration liste (tableau de bord) + fiche (profil)
   ============================================================ */

/* --- Bandeau de statistiques --- */
.doa-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); gap: 10px; margin: 16px 0 18px; }
.doa-stat { display: flex; flex-direction: column; gap: 5px; background: #fff; border: 1px solid #ccd5e2; border-left: 4px solid var(--navy); border-radius: 3px; padding: 12px 14px; }
.doa-stat-n { font-size: 26px; font-weight: 800; color: var(--navy); line-height: 1; font-variant-numeric: tabular-nums; }
.doa-stat-l { font-size: 10.5px; text-transform: uppercase; letter-spacing: .5px; color: #6b7896; font-weight: 700; }
.doa-stat--rech { border-left-color: #c0392b; } .doa-stat--rech .doa-stat-n { color: #c0392b; }
.doa-stat--surv { border-left-color: #217bc0; } .doa-stat--surv .doa-stat-n { color: #217bc0; }
.doa-stat--arr  { border-left-color: #2e8b57; } .doa-stat--arr .doa-stat-n { color: #2e8b57; }
.doa-stat--crit { border-left-color: #6d1414; } .doa-stat--crit .doa-stat-n { color: #6d1414; }

/* --- Recherche avec icone + compteur --- */
.doa-search-wrap { position: relative; }
.doa-search-wrap > svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #8a97b0; pointer-events: none; }
.doa-search-wrap .doa-search { padding-left: 36px; }
.doa-count { align-self: flex-end; font-size: 12px; color: #6b7896; font-weight: 600; }

/* --- Accent de menace en haut des cartes --- */
.cible-card { border-top: 3px solid #ccd5e2; }
.cible-card--faible   { border-top-color: #2e8b57; }
.cible-card--moyen    { border-top-color: #d68a10; }
.cible-card--eleve    { border-top-color: #c0392b; }
.cible-card--critique { border-top-color: #6d1414; }

/* ============================================================
   FICHE (profil deux colonnes)
   ============================================================ */
.dossier-head-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }

.dossier-keyfacts { display: flex; flex-wrap: wrap; background: #f4f7fb; border-bottom: 1px solid #e0e6ef; }
.kf { flex: 1 1 auto; min-width: 130px; padding: 11px 18px; border-right: 1px solid #e0e6ef; display: flex; flex-direction: column; gap: 4px; }
.kf:last-child { border-right: none; }
.kf-l { font-size: 10px; text-transform: uppercase; letter-spacing: .5px; color: #7a869e; font-weight: 700; }
.kf-v { font-size: 14px; color: #1c2942; font-weight: 700; }
.kf--danger { background: #c0392b; flex: 0 0 auto; align-items: center; justify-content: center; }
.kf--danger .kf-v { color: #fff; text-transform: uppercase; letter-spacing: .5px; font-size: 12.5px; font-weight: 800; }
.menace-pill { display: inline-block; color: #fff; font-weight: 800; font-size: 11px; text-transform: uppercase; letter-spacing: .4px; padding: 3px 10px; border-radius: 2px; }
.menace-pill--faible { background: #2e8b57; } .menace-pill--moyen { background: #d68a10; }
.menace-pill--eleve { background: #c0392b; } .menace-pill--critique { background: #6d1414; }

.dossier-cols { display: grid; grid-template-columns: 250px 1fr; }
.dossier-side { padding: 22px 20px; border-right: 1px solid #eef1f7; background: #fafbfd; display: flex; flex-direction: column; gap: 16px; }
.dossier-side .dossier-photo { align-items: stretch; }
.dossier-side .dossier-photo img { border-radius: 3px; border: 2px solid #16233f; }
.dossier-side .dossier-photo-ph { border-radius: 3px; }
.dossier-idlist { margin: 0; display: flex; flex-direction: column; }
.dossier-idlist > div { padding: 8px 0; border-bottom: 1px solid #eef1f7; }
.dossier-idlist > div:last-child { border-bottom: none; }
.dossier-idlist dt { font-size: 10px; text-transform: uppercase; letter-spacing: .5px; color: #8a97b0; font-weight: 700; margin-bottom: 2px; }
.dossier-idlist dd { margin: 0; font-size: 14px; color: #1c2942; font-weight: 600; word-break: break-word; }

.dossier-main { padding: 22px 24px; display: flex; flex-direction: column; gap: 18px; }
.dcard { background: #fff; border: 1px solid #e4e9f1; border-radius: 3px; padding: 15px 18px; }
.dcard h2 { margin: 0 0 12px; font-size: 12.5px; text-transform: uppercase; letter-spacing: .7px; color: var(--navy); font-weight: 800; padding-bottom: 8px; border-bottom: 2px solid #eef1f7; }
.dcard-two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.dossier-chefs { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 7px; }
.dossier-chefs li { color: #33456b; font-size: 14px; padding-left: 4px; }

@media (max-width: 780px) {
    .dossier-cols { grid-template-columns: 1fr; }
    .dossier-side { border-right: none; border-bottom: 1px solid #eef1f7; max-width: 320px; }
    .dcard-two { grid-template-columns: 1fr; }
}

/* ============================================================
   DOA - Dossiers d'enquete (statuts, timeline, sidebar blocks)
   ============================================================ */
.badge-statut--sopen { background: #217bc0; }
.badge-statut--sprog { background: #d68a10; }
.badge-statut--swait { background: #7a869e; }
.badge-statut--sproc { background: #7d3cc0; }
.badge-statut--sclos { background: #2e8b57; }

.side-block h3 { margin: 0 0 8px; font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--navy); font-weight: 800; padding-bottom: 6px; border-bottom: 1px solid #e4e9f1; }
.side-meta { margin: 0; font-size: 13px; color: #33456b; line-height: 1.5; }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 13px 18px; border-left: 2px solid #dbe2ec; }
.timeline li:last-child { padding-bottom: 2px; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: 3px; width: 8px; height: 8px; border-radius: 50%; background: var(--navy); border: 2px solid #fff; box-shadow: 0 0 0 1px #dbe2ec; }
.tl-date { display: block; font-size: 11px; font-weight: 700; color: #8a97b0; text-transform: uppercase; letter-spacing: .3px; }
.tl-fait { display: block; font-size: 13.5px; color: #33456b; margin-top: 2px; }

/* ============================================================
   DOA - Registre des saisies
   ============================================================ */
.sai-cat { background: #fff; border: 1px solid #d4dbe6; border-radius: 4px; overflow: hidden; margin-bottom: 16px; }
.sai-cat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; color: #fff; }
.sai-cat-head h2 { margin: 0; font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; color: #fff; }
.sai-cat-count { flex: 0 0 auto; font-size: 11.5px; font-weight: 700; background: rgba(0,0,0,.22); padding: 3px 11px; border-radius: 999px; }
.sai-cat--cfeu .sai-cat-head { background: #7d1414; }
.sai-cat--cbla .sai-cat-head { background: #c0392b; }
.sai-cat--cmun .sai-cat-head { background: #9c5221; }
.sai-cat--cstu .sai-cat-head { background: #6d3c9c; }
.sai-cat--carg .sai-cat-head { background: #2e8b57; }
.sai-cat--cveh .sai-cat-head { background: #217bc0; }
.sai-cat--cmat .sai-cat-head { background: #c8891a; }
.sai-cat--cdoc .sai-cat-head { background: #5a6b86; }
.sai-cat--caut .sai-cat-head { background: #7a869e; }

.sai-items { display: flex; flex-direction: column; }
.sai-item { display: flex; align-items: center; gap: 14px; padding: 11px 16px; border-top: 1px solid #eef1f7; }
.sai-item:first-child { border-top: none; }
.sai-qty { flex: 0 0 auto; min-width: 54px; text-align: center; background: var(--navy); color: #fff; font-weight: 800; font-size: 14px; padding: 7px 10px; border-radius: 4px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sai-item-main { flex: 1 1 auto; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.sai-nom { font-size: 15px; font-weight: 700; color: #1c2942; }
.sai-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sai-tag { background: #eef1f6; border: 1px solid #d3d9e4; color: #3a465c; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 2px; letter-spacing: .3px; }
.sai-loc { font-size: 12px; color: #6b7896; }
.sai-link { font-size: 11px; font-weight: 800; text-decoration: none; padding: 2px 8px; border-radius: 2px; background: #e7f0fb; color: #1c5aa0; border: 1px solid #c9deef; }
.sai-link:hover { background: #d8e7f8; }
.sai-link--cib { background: #fdecea; color: #a5281b; border-color: #f4c7c0; }
.sai-link--cib:hover { background: #f8d7d2; }
.sai-desc { font-size: 12.5px; color: #55617a; }
.sai-actions { flex: 0 0 auto; display: flex; gap: 6px; align-items: center; }
.sai-actions form { margin: 0; display: inline; }
.sai-ic { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: 1px solid #dce2ec; background: #f5f8fd; color: #55617a; border-radius: 4px; text-decoration: none; cursor: pointer; font-size: 15px; line-height: 1; }
.sai-ic:hover { background: #e8eef7; }
.sai-ic--del { border-color: #f4c7c0; background: #fdecea; color: #c0392b; }
.sai-ic--del:hover { background: #f8d7d2; }

/* ============================================================
   DOA - Rapports d'operation (statuts)
   ============================================================ */
.org-card--rplan  .org-card-band { background: #217bc0; }
.org-card--rprog  .org-card-band { background: #c8891a; }
.org-card--rdone  .org-card-band { background: #2e8b57; }
.org-card--rabort .org-card-band { background: #c0392b; }
.badge-statut--rplan  { background: #217bc0; }
.badge-statut--rprog  { background: #c8891a; }
.badge-statut--rdone  { background: #2e8b57; }
.badge-statut--rabort { background: #c0392b; }
.side-links { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }

/* ============================================================
   POLICE ACADEMIE - Dossier des recrues
   ============================================================ */
.rec-head { margin-bottom: 18px; }
.rec-head-id { display: flex; flex-direction: column; gap: 3px; }
.rec-pseudo-lg { font-size: 22px; font-weight: 800; color: var(--navy); }
.rec-user { color: #6b7896; font-size: 14px; }
.rec-did { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 11.5px; color: #8a97b0; }

.rec-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.rec-form-check { display: flex; align-items: center; gap: 8px; background: #f5f8fd; border: 1px solid #dde5f1; border-radius: 4px; padding: 11px 13px; font-size: 14px; font-weight: 600; color: #33456b; cursor: pointer; }

.rec-list { display: flex; flex-direction: column; gap: 8px; }
.rec-row { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid #d4dbe6; border-radius: 4px; padding: 12px 16px; text-decoration: none; transition: border-color .15s var(--ease), background .15s var(--ease); }
.rec-row:hover { border-color: var(--navy); background: #fafcff; }
.rec-id { flex: 0 0 auto; width: 210px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rec-pseudo { font-size: 15px; font-weight: 700; color: #1c2942; display: flex; align-items: center; gap: 8px; }
.rec-fto { font-size: 9.5px; font-weight: 800; background: var(--navy); color: #fff; padding: 1px 6px; border-radius: 2px; letter-spacing: .5px; }
.rec-forms { flex: 1 1 auto; display: flex; flex-wrap: wrap; gap: 6px; }
.rec-fbadge { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 2px; background: #eef1f6; color: #9aa6bb; border: 1px solid #dde2ea; }
.rec-fbadge.is-ok { background: #e7f6ee; color: #1f6b41; border-color: #bfe5cf; }
.rec-meta { flex: 0 0 auto; display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.rec-untracked { font-size: 11.5px; color: #8a97b0; font-style: italic; }
.rec-titu { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; color: #1f6b41; background: #e7f6ee; border: 1px solid #bfe5cf; padding: 2px 7px; border-radius: 2px; }
.rec-signe { font-size: 11px; color: #6b7896; }
.rec-go { flex: 0 0 auto; font-size: 12px; font-weight: 700; color: var(--blue); }

@media (max-width: 720px) {
    .rec-row { flex-wrap: wrap; gap: 10px; }
    .rec-id { width: 100%; }
    .rec-meta { align-items: flex-start; }
    .rec-go { display: none; }
}

/* ============================================================
   Champs d'upload de fichiers (declaration de saisie)
   ============================================================ */
.file-input { display: block; width: 100%; font-size: 14px; color: #33456b; background: #f5f8fd; border: 1px dashed #b9c8de; border-radius: 6px; padding: 12px; cursor: pointer; box-sizing: border-box; }
.file-input:hover { border-color: var(--navy); background: #eef4fc; }
.file-input::file-selector-button { font: inherit; font-weight: 700; color: #fff; background: var(--navy); border: 0; border-radius: 4px; padding: 8px 14px; margin-right: 12px; cursor: pointer; }
.file-input::file-selector-button:hover { background: var(--blue); }

/* Badge "+N autres formations" dans le Dossier des agents */
.rec-fbadge--more { background: #eaf0f8; color: #33507e; border-color: #cdd9ec; font-weight: 800; }

/* ============================================================
   POLICE ACADEMIE - Cours / modules de formation
   ============================================================ */
.course-wrap { max-width: 900px; margin: 0 auto; }

.course-hero { position: relative; overflow: hidden; border-radius: 12px; padding: 34px 40px; margin-bottom: 26px;
    background: linear-gradient(135deg, #0b2340 0%, #12365e 55%, #1c4e6b 100%); color: #fff;
    display: flex; align-items: center; gap: 26px; box-shadow: 0 14px 34px rgba(9,25,45,.28); }
.course-hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px;
    background: radial-gradient(circle, rgba(255,255,255,.08), transparent 70%); }
.course-hero-badge { flex: 0 0 auto; width: 96px; height: 96px; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(0,0,0,.35)); }
.course-hero-tag { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase;
    background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); padding: 4px 11px; border-radius: 40px; margin-bottom: 10px; }
.course-hero h1 { font-size: 30px; font-weight: 800; margin: 0 0 6px; line-height: 1.1; }
.course-hero .course-sub { margin: 0; color: #cfe0f2; font-size: 15px; }

.course-lead { font-size: 16px; line-height: 1.7; color: #2c3a52; background: #f3f7fc; border-left: 4px solid var(--blue);
    padding: 16px 20px; border-radius: 0 8px 8px 0; margin-bottom: 26px; font-style: italic; }

.course-section { position: relative; background: #fff; border: 1px solid #e0e7f0; border-radius: 10px;
    padding: 22px 26px 24px; margin-bottom: 18px; box-shadow: 0 2px 10px rgba(20,40,70,.04); }
.course-section h2 { display: flex; align-items: center; gap: 12px; font-size: 19px; color: var(--navy); margin: 0 0 14px; }
.course-num { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 8px; background: var(--navy); color: #fff;
    display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; }
.course-section p { font-size: 15px; line-height: 1.75; color: #33425c; margin: 0 0 12px; }
.course-section p:last-child { margin-bottom: 0; }
.course-section strong { color: #16233a; }

.course-list { list-style: none; margin: 6px 0 12px; padding: 0; }
.course-list li { position: relative; padding: 7px 0 7px 26px; font-size: 15px; line-height: 1.55; color: #33425c; border-bottom: 1px dashed #eef2f7; }
.course-list li:last-child { border-bottom: 0; }
.course-list li::before { content: ""; position: absolute; left: 4px; top: 15px; width: 8px; height: 8px; border-radius: 2px; background: var(--blue); transform: rotate(45deg); }

.course-specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin: 6px 0 4px; }
.spec-item { background: #f6f9fd; border: 1px solid #e2e9f2; border-radius: 8px; padding: 10px 13px; }
.spec-k { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: #7a889e; margin-bottom: 3px; }
.spec-v { font-size: 15px; font-weight: 700; color: var(--navy); }

.course-figure { margin: 16px 0 4px; text-align: center; }
.course-figure img { max-width: 100%; height: auto; border-radius: 10px; border: 1px solid #dce4ee; box-shadow: 0 6px 18px rgba(20,40,70,.10); }
.course-figure figcaption { font-size: 12.5px; color: #7a889e; margin-top: 8px; font-style: italic; }
.course-figure--empty { border: 2px dashed #c7d3e2; border-radius: 10px; background: #f6f9fd; color: #93a2b8;
    padding: 34px 20px; font-size: 13.5px; font-weight: 600; }
.course-figure--empty svg { display: block; margin: 0 auto 8px; opacity: .6; }

.course-callout { display: flex; gap: 14px; align-items: flex-start; border-radius: 10px; padding: 16px 20px; margin: 16px 0; font-size: 14.5px; line-height: 1.65; }
.course-callout .ci { flex: 0 0 auto; font-size: 20px; line-height: 1.3; }
.course-callout--warn { background: #fdeceb; border: 1px solid #f4c3bf; color: #8a2018; }
.course-callout--warn strong { color: #6f160f; }
.course-callout--info { background: #eef4fc; border: 1px solid #cfe0f2; color: #1c466f; }

/* Quiz */
.quiz-block { margin-top: 30px; border-radius: 12px; overflow: hidden; border: 1px solid #d9e2ee; box-shadow: 0 6px 20px rgba(20,40,70,.07); }
.quiz-head { background: linear-gradient(135deg, #12365e, #1c4e6b); color: #fff; padding: 18px 24px; }
.quiz-head h2 { margin: 0 0 4px; font-size: 19px; }
.quiz-head p { margin: 0; font-size: 13.5px; color: #cfe0f2; }
.quiz-body { background: #fff; padding: 8px 24px 22px; }
.quiz-q { padding: 18px 0; border-bottom: 1px solid #eef2f7; }
.quiz-q:last-child { border-bottom: 0; }
.quiz-qn { display: flex; gap: 10px; font-size: 15.5px; font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.quiz-qn .qi { flex: 0 0 auto; color: var(--blue); }
.quiz-options { display: flex; flex-direction: column; gap: 8px; }
.quiz-opt { text-align: left; font: inherit; font-size: 14.5px; color: #33425c; background: #f6f9fd; border: 1.5px solid #e2e9f2;
    border-radius: 8px; padding: 11px 14px; cursor: pointer; transition: background .12s, border-color .12s; }
.quiz-opt:hover:not(:disabled) { border-color: var(--blue); background: #eef4fc; }
.quiz-opt:disabled { cursor: default; }
.quiz-opt.is-correct { background: #e7f6ee; border-color: #57b37e; color: #1f6b41; font-weight: 700; }
.quiz-opt.is-wrong { background: #fdeceb; border-color: #e0776e; color: #8a2018; }
.quiz-feedback { margin-top: 10px; font-size: 13.5px; font-weight: 700; min-height: 18px; }
.quiz-feedback.ok { color: #1f6b41; }
.quiz-feedback.ko { color: #8a2018; }

@media (max-width: 640px) {
    .course-hero { flex-direction: column; text-align: center; padding: 26px 22px; }
    .course-hero h1 { font-size: 24px; }
}

/* ---- Schema "intervention graduee" (escalier de la force) ---- */
.continuum { display: flex; align-items: flex-end; gap: 8px; margin: 18px 0 6px; }
.cont-step { flex: 1; border-radius: 8px 8px 6px 6px; padding: 10px 8px 12px; color: #fff; text-align: center; position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 7px; }
.cont-s1 { min-height: 80px;  background: #3f9d63; }
.cont-s2 { min-height: 106px; background: #7fb03a; }
.cont-s3 { min-height: 132px; background: #e0a325; }
.cont-s4 { min-height: 160px; background: #e2732a; }
.cont-s5 { min-height: 190px; background: #c0392b; }
.cont-lvl { display: inline-block; width: 22px; height: 22px; line-height: 22px; border-radius: 50%; background: rgba(255,255,255,.25); font-weight: 800; margin: 0 auto; font-size: 12px; }
.cont-lbl { font-size: 12px; font-weight: 700; line-height: 1.25; }
.cont-step.is-here { box-shadow: 0 0 0 3px #12365e, 0 8px 18px rgba(0,0,0,.18); }
.cont-badge { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: #12365e; color: #fff; font-size: 10px; font-weight: 800; padding: 2px 9px; border-radius: 20px; white-space: nowrap; }
.cont-note { font-size: 13.5px; color: #7a889e; font-style: italic; margin-top: 12px; }
@media (max-width: 640px) { .continuum { gap: 5px; } .cont-lbl { font-size: 10px; } .cont-badge { font-size: 9px; padding: 2px 6px; } }

/* ---- Schema des zones d'impact ---- */
.zones-fig { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; justify-content: center; margin: 16px 0 6px; padding: 20px; background: #f6f9fd; border: 1px solid #e2e9f2; border-radius: 10px; }
.zones-fig svg { width: 150px; height: auto; flex: 0 0 auto; }
.zones-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.zones-legend li { display: flex; align-items: center; gap: 11px; font-size: 14px; color: #33425c; max-width: 320px; line-height: 1.4; }
.zk { width: 18px; height: 18px; border-radius: 5px; flex: 0 0 auto; }
.zk-no { background: #f2c4bf; border: 2px solid #c0392b; }
.zk-ok { background: #bfe6cd; border: 2px solid #3f9d63; }

/* ---- Regles de securite (cartes numerotees) ---- */
.rules-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; margin: 14px 0 4px; }
.rule-card { display: flex; gap: 12px; align-items: flex-start; background: #f6f9fd; border: 1px solid #e2e9f2; border-left: 4px solid var(--blue); border-radius: 8px; padding: 13px 15px; }
.rule-n { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 7px; background: var(--navy); color: #fff; font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.rule-t { font-size: 14px; line-height: 1.5; color: #33425c; }

/* ---- CEVITAL : les 7 etapes ---- */
.cevital-steps { display: flex; flex-direction: column; gap: 10px; margin: 14px 0 4px; }
.cev-step { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid #e0e7f0; border-radius: 10px; padding: 11px 16px; box-shadow: 0 2px 8px rgba(20,40,70,.04); }
.cev-letter { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 11px; background: linear-gradient(135deg, #12365e, #1c4e6b); color: #fff; font-size: 20px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.cev-body { display: flex; flex-direction: column; }
.cev-word { font-size: 16px; font-weight: 800; color: var(--navy); }
.cev-desc { font-size: 13.5px; color: #66748c; margin-top: 1px; }

/* ---- Concours : questions d'entretien & phases ---- */
.qa-part { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; color: var(--navy); margin: 18px 0 9px; padding-bottom: 6px; border-bottom: 2px solid #e6ecf4; }
.qa-part:first-child { margin-top: 4px; }
.qa-list { display: flex; flex-direction: column; gap: 10px; margin: 8px 0 4px; }
.qa-item { display: flex; gap: 12px; background: #f6f9fd; border: 1px solid #e2e9f2; border-radius: 8px; padding: 12px 15px; }
.qa-n { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 800; font-size: 12px; display: flex; align-items: center; justify-content: center; }
.qa-q { font-size: 14.5px; font-weight: 700; color: #23324c; line-height: 1.45; }
.qa-obj { font-size: 12.5px; color: #7a889e; font-style: italic; margin-top: 4px; }
.phase { margin: 4px 0 14px; }
.phase-t { font-size: 14.5px; font-weight: 800; color: var(--navy); margin-bottom: 4px; }

/* Cases de division verrouillees (acces restreint par role) */
.portail-unit--locked { opacity: .62; cursor: not-allowed; }
.portail-unit--locked h3, .portail-unit--locked p { color: #8a97b0; }
.lock-tag { position: absolute; top: 12px; right: 14px; font-size: 11px; font-weight: 800; color: #8a97b0; letter-spacing: .3px; }

/* ---- Banque de recrutement : tirage aleatoire ---- */
.rand-wrap { text-align: center; margin: 4px 0 24px; }
.rand-btn { font: inherit; font-weight: 800; font-size: 15px; color: #fff; background: linear-gradient(135deg, #12365e, #1c4e6b); border: 0; border-radius: 10px; padding: 13px 22px; cursor: pointer; box-shadow: 0 6px 16px rgba(20,40,70,.18); }
.rand-btn:hover { filter: brightness(1.08); }
.rand-box { margin: 16px auto 0; max-width: 620px; background: #fff; border: 1px solid #d9e2ee; border-left: 4px solid var(--blue); border-radius: 10px; padding: 18px 22px; font-size: 16px; font-weight: 700; color: #23324c; line-height: 1.5; display: none; text-align: left; }
.rand-box.show { display: block; }
.rand-box .rand-cat { display: block; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; color: var(--blue); margin-bottom: 6px; }

/* ---- Banque de recrutement : reponses + icones Flaticon ---- */
.qa-rep { display: block; font-size: 13.5px; color: #2c3a52; line-height: 1.55; background: #eef4fc; border: 1px solid #d7e5f7; border-radius: 6px; padding: 8px 12px; margin-top: 7px; }
.qa-rep strong { color: #1c466f; }
.course-num .fi { font-size: 16px; line-height: 1; }
.rand-btn .fi { margin-right: 7px; vertical-align: -2px; }
.rand-box .rand-rep { display: block; margin-top: 9px; font-size: 13.5px; font-weight: 500; color: #2c3a52; line-height: 1.5; }
.rand-box .rand-rep strong { color: #1c466f; }
.course-callout .ci .fi { line-height: 1; }

/* ---- SAHP : liste des grades ---- */
.rank-list { display: flex; flex-direction: column; gap: 8px; margin: 12px 0 4px; }
.rank-row { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid #e0e7f0; border-radius: 9px; padding: 10px 15px; box-shadow: 0 2px 8px rgba(20,40,70,.04); }
.rank-lvl { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 8px; background: var(--navy); color: #fff; font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.rank-body { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.rank-name { font-size: 15.5px; font-weight: 700; color: #1c2942; }
.rank-en { font-size: 12px; color: #8a97b0; }
.rank-insigne { flex: 0 0 auto; margin-left: auto; font-size: 13px; color: #5a6b86; text-align: right; white-space: nowrap; }
.rank-role { font-size: 12.7px; color: #5a6b86; line-height: 1.5; margin-top: 2px; }
.rank-stars { color: #c8a63a; letter-spacing: 2px; font-size: 16px; }
@media (max-width: 560px) { .rank-en { display: none; } .rank-insigne { font-size: 12px; } }

/* ---- SAHP : reglement interieur (document juridique) ---- */
.reg-wrap { max-width: 900px; }
.reg-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; margin: 2px 0 24px; font-size: 12.5px; color: #5a6b86; }
.reg-meta span { display: inline-flex; align-items: center; gap: 6px; }
.reg-meta b { color: #2a3b57; font-weight: 700; }

.reg-preamble { border: 1px solid #d9e4f2; border-radius: 12px; padding: 20px 24px; margin: 0 0 26px; background: linear-gradient(180deg, #f5f9fe 0%, #eef4fc 100%); }
.reg-preamble h2 { margin: 0 0 10px; font-size: 15px; text-transform: uppercase; letter-spacing: 1px; color: #132a52; }
.reg-preamble p { margin: 0 0 10px; font-size: 14.3px; line-height: 1.7; color: #2f3b52; }
.reg-preamble p:last-child { margin-bottom: 0; }
.reg-devise { text-align: center; font-weight: 800; letter-spacing: 1px; color: #1c466f; text-transform: uppercase; font-size: 13.5px; margin: 4px 0 2px; }

.reg-toc { background: #fff; border: 1px solid #e2e9f2; border-radius: 12px; padding: 18px 22px; margin: 0 0 30px; box-shadow: 0 3px 12px rgba(20,40,70,.05); }
.reg-toc h2 { margin: 0 0 12px; font-size: 13px; text-transform: uppercase; letter-spacing: .8px; color: var(--navy); }
.reg-toc ol { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 30px; }
.reg-toc li { break-inside: avoid; margin: 0 0 3px; }
.reg-toc a { display: flex; gap: 10px; text-decoration: none; color: #34435e; font-size: 13.3px; padding: 6px 9px; border-radius: 7px; transition: background .15s; }
.reg-toc a:hover { background: #eef4fc; color: var(--navy); }
.reg-toc a b { color: #2a5a8c; font-weight: 800; white-space: nowrap; }
@media (max-width: 640px) { .reg-toc ol { columns: 1; } }

.reg-titre { margin: 36px 0 0; scroll-margin-top: 16px; }
.reg-titre-head { display: flex; align-items: center; gap: 15px; padding: 14px 20px; border-radius: 11px; background: linear-gradient(135deg, #132a52 0%, #234d7d 55%, #2a5a8c 100%); color: #fff; box-shadow: 0 5px 16px rgba(19,42,82,.18); }
.reg-titre-head .rt-ic { flex: 0 0 auto; font-size: 23px; line-height: 1; opacity: .92; display: flex; }
.reg-titre-head .rt-k { font-size: 11px; text-transform: uppercase; letter-spacing: 2px; opacity: .82; display: block; }
.reg-titre-head h2 { margin: 3px 0 0; font-size: 18.5px; color: #fff; line-height: 1.25; }

.reg-article { border: 1px solid #e4ebf4; border-left: 3px solid #c79a2e; border-radius: 0 10px 10px 0; padding: 15px 20px 16px; margin: 13px 0 0; background: #fff; box-shadow: 0 2px 8px rgba(20,40,70,.04); }
.reg-article > h3 { margin: 0 0 9px; font-size: 15.5px; color: #1c2942; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.reg-article > h3 .art-n { color: #b8861f; font-weight: 800; font-size: 12.5px; text-transform: uppercase; letter-spacing: .5px; white-space: nowrap; }
.reg-article p { margin: 0 0 9px; font-size: 14.2px; line-height: 1.66; color: #2f3b52; }
.reg-article p:last-child { margin-bottom: 0; }
.reg-article ul { margin: 7px 0 9px; padding-left: 4px; list-style: none; }
.reg-article ul li { position: relative; padding-left: 20px; font-size: 14px; line-height: 1.62; margin: 0 0 6px; color: #374559; }
.reg-article ul li::before { content: "§"; position: absolute; left: 0; top: 0; color: #c79a2e; font-weight: 800; }
.reg-article ol.alineas { margin: 7px 0 9px; padding-left: 22px; }
.reg-article ol.alineas li { font-size: 14px; line-height: 1.62; margin: 0 0 6px; color: #374559; }
.reg-note { background: #eef4fc; border: 1px solid #cfe0f2; border-radius: 8px; padding: 10px 14px; font-size: 13.2px; line-height: 1.6; color: #1c466f; margin: 11px 0 0; }
.reg-note.warn { background: #fdeceb; border-color: #f4c3bf; color: #8a2018; }
.reg-back-top { display: inline-block; margin: 10px 0 0; font-size: 12px; color: #8a97b0; text-decoration: none; }
.reg-back-top:hover { color: var(--navy); }

.reg-fleet { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin: 10px 0 2px; }
.reg-fleet-item { border: 1px solid #e2e9f2; border-radius: 9px; padding: 11px 14px; background: #f8fbff; }
.reg-fleet-item .fv-cat { font-size: 10.5px; text-transform: uppercase; letter-spacing: 1px; color: #8a97b0; font-weight: 700; }
.reg-fleet-item .fv-name { font-size: 14px; font-weight: 700; color: #1c2942; margin: 2px 0 3px; }
.reg-fleet-item .fv-desc { font-size: 12.5px; color: #5a6b86; line-height: 1.5; }
