/* =========================================
   Emploi sécurité — Premium noir/rouge (page-only)
   Fichier : assets/css/emploi-securite.css
   ========================================= */

:root {
    --is-main: #0f172a;
    --is-main-2: #000000;
    --is-accent: #b11217;
    --is-accent-dark: #8f0e12;
    --is-bg: #f6f8fc;
    --is-alt: #0b1220;
    --is-text: #0f172a;
    --is-muted: rgba(15,23,42,.72);
    --is-radius: 18px;
    --is-shadow: 0 10px 30px rgba(15,23,42,.10);
    --is-shadow-2: 0 18px 40px rgba(0,0,0,.28);
}

/* Utilitaires */
.is-subtitle {
    color: var(--is-muted);
    margin: 0;
    max-width: 78ch;
}

.is-section {
    padding: 64px 0;
    background: var(--is-bg);
}

.is-section--alt {
    background: linear-gradient(180deg, var(--is-alt), #060a14);
}

.is-section-head {
    margin-bottom: 18px;
}

.is-h2 {
    font-weight: 950;
    letter-spacing: -.3px;
    margin: 0 0 8px;
}

.is-h3 {
    font-weight: 900;
    margin: 0 0 8px;
}

.text-white-75 {
    color: rgba(255,255,255,.75) !important;
}

/* =========================
   HERO
   ========================= */
.is-hero {
    position: relative;
    padding: 43px 0 64px;
    overflow: hidden;
    background: radial-gradient(900px 520px at 18% 20%, rgba(177,18,23,.60), transparent 60%), radial-gradient(700px 420px at 88% 18%, rgba(177,18,23,.34), transparent 62%), linear-gradient(135deg, rgba(177,18,23,.95) 0%, rgba(15,23,42,.95) 52%, rgba(0,0,0,1) 100%);
    min-height:600px;
}

    .is-hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(1000px 520px at 50% 0%, rgba(255,255,255,.12), transparent 60%), radial-gradient(1200px 700px at 50% 100%, rgba(0,0,0,.55), rgba(0,0,0,.78));
        pointer-events: none;
    }

    .is-hero > .container {
        position: relative;
        z-index: 1;
    }

.is-hero-wave {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    width: 100%;
    height: 120px;
}

    .is-hero-wave path {
        fill: var(--is-bg);
    }

.is-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.16);
    color: rgba(255,255,255,.90);
    font-weight: 850;
}

.btn-is-primary {
    background: var(--is-accent);
    border: 1px solid var(--is-accent);
    color: #fff;
    font-weight: 900;
    border-radius: 999px;
    box-shadow: 0 12px 26px rgba(177,18,23,.18);
}

    .btn-is-primary:hover {
        background: var(--is-accent-dark);
        border-color: var(--is-accent-dark);
        color: #fff;
    }

.btn-is-outline {
    background: transparent;
    border: 1px solid rgba(255,255,255,.45);
    color: #fff;
    font-weight: 900;
    border-radius: 999px;
}

    .btn-is-outline:hover {
        border-color: rgba(255,255,255,.70);
        color: #fff;
    }

.btn-is-soft {
    background: rgba(177,18,23,.10);
    border: 1px solid rgba(177,18,23,.18);
    color: var(--is-accent-dark);
    font-weight: 900;
    border-radius: 999px;
}

    .btn-is-soft:hover {
        background: rgba(177,18,23,.14);
        border-color: rgba(177,18,23,.26);
    }

.is-hero-card {
    border-radius: var(--is-radius);
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.16);
    box-shadow: var(--is-shadow-2);
    padding: 18px;
    backdrop-filter: blur(10px);
}

.is-hero-card-header {
    padding: 6px 6px 10px;
    border-bottom: 1px solid rgba(255,255,255,.14);
    margin-bottom: 10px;
}

.is-hero-card-title {
    color: #fff;
    font-weight: 900;
}

.is-hero-card-sub {
    color: rgba(255,255,255,.72);
    font-size: .95rem;
}

.is-hero-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

    .is-hero-list li {
        display: flex;
        gap: 10px;
        align-items: flex-start;
        color: rgba(255,255,255,.84);
    }

    .is-hero-list i {
        color: rgba(255,255,255,.92);
        margin-top: 2px;
    }

.is-hero-note {
    font-size: .95rem;
    color: rgba(255,255,255,.72);
}

.is-hero-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

@media (max-width: 992px) {
    .is-hero-kpis {
        grid-template-columns: 1fr;
    }
}

.is-kpi {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 12px;
    border-radius: 14px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
}

.is-kpi-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(177,18,23,.30);
    border: 1px solid rgba(255,255,255,.14);
    color: #fff;
}

.is-kpi-title {
    color: rgba(255,255,255,.72);
    font-size: .85rem;
    font-weight: 800;
}

.is-kpi-value {
    color: rgba(255,255,255,.92);
    font-weight: 900;
}

/* =========================
   CARDS (génériques)
   ========================= */
.is-card {
    background: #fff;
    border: 1px solid rgba(15,23,42,.08);
    border-radius: var(--is-radius);
    padding: 18px;
    box-shadow: var(--is-shadow);
}

.is-card-kicker {
    display: inline-flex;
    align-items: center;
    font-weight: 900;
    color: rgba(15,23,42,.72);
    margin-bottom: 10px;
}

.is-card-subtitle {
    font-weight: 900;
    color: rgba(15,23,42,.70);
}

.is-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(177,18,23,.10);
    border: 1px solid rgba(177,18,23,.16);
    color: var(--is-accent);
    margin-bottom: 10px;
}

.is-price {
    font-weight: 1000;
    font-size: 2rem;
    letter-spacing: -.5px;
    margin-bottom: 10px;
}

    .is-price span {
        color: var(--is-accent);
    }

.is-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

    .is-list li {
        display: flex;
        gap: 10px;
        align-items: center;
        color: rgba(15,23,42,.82);
        font-weight: 650;
    }

    .is-list i {
        color: var(--is-accent);
    }

.is-bullets {
    margin: 0;
    padding-left: 18px;
    color: rgba(15,23,42,.78);
}

    .is-bullets li {
        margin: 8px 0;
    }

.is-alert {
    padding: 12px;
    border-radius: 14px;
    background: rgba(15,23,42,.04);
    border: 1px solid rgba(15,23,42,.10);
    color: rgba(15,23,42,.80);
    font-weight: 650;
}

.is-sep {
    border: none;
    border-top: 1px solid rgba(15,23,42,.10);
    margin: 18px 0;
}

/* =========================
   GALERIE IMAGES "MISSIONS"
   -> corrige : images non visibles, hauteur, ratio, fallback
   ========================= */

/* conteneur figure */
.is-media {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    margin: 0;
    border: 1px solid rgba(15,23,42,.08);
    box-shadow: 0 12px 26px rgba(15,23,42,.08);
    background: radial-gradient(500px 300px at 30% 10%, rgba(177,18,23,.10), transparent 60%), linear-gradient(180deg, rgba(15,23,42,.06), rgba(15,23,42,.02));
}

    /* ratio stable (évite les blocs vides) */
    .is-media::before {
        content: "";
        display: block;
        padding-top: 72%; /* ~4:3 */
    }

    /* l'image se place en absolu */
    .is-media > img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block; /* important */
        transform: scale(1.02);
        transition: transform .25s ease, filter .25s ease;
    }

    /* hover subtil */
    .is-media:hover > img {
        transform: scale(1.05);
        filter: saturate(1.05) contrast(1.02);
    }

    /* caption en bas avec gradient */
    .is-media > figcaption {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        padding: 12px 12px;
        color: #fff;
        font-weight: 900;
        font-size: .95rem;
        background: linear-gradient(180deg, transparent, rgba(0,0,0,.70));
        text-shadow: 0 6px 16px rgba(0,0,0,.50);
    }

    /* Fallback quand l'image n'existe pas :
   - ton onerror peut faire display:none sur img
   - on affiche alors un fond + une icône via pseudo-element */
    .is-media.is-media--fallback {
        background: radial-gradient(600px 320px at 30% 10%, rgba(177,18,23,.18), transparent 60%), linear-gradient(135deg, rgba(15,23,42,.10), rgba(15,23,42,.04));
    }

        .is-media.is-media--fallback::after {
            content: "\F4CB"; /* bootstrap icon codepoint? (ne dépend pas) */
            /* on évite de dépendre d’un codepoint précis -> on met un simple décor */
            content: "";
            position: absolute;
            inset: 0;
            background: radial-gradient(120px 120px at 18% 22%, rgba(177,18,23,.22), transparent 70%), radial-gradient(240px 240px at 70% 30%, rgba(15,23,42,.12), transparent 70%);
            pointer-events: none;
        }

        /* Si l'image est absente (display:none), on évite un “trou” */
        .is-media.is-media--fallback > img {
            display: none !important;
        }

/* =========================
   SECTION SOMBRE : features + glass cards
   -> corrige les gros rectangles blancs
   ========================= */

.is-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

@media (max-width: 576px) {
    .is-feature-grid {
        grid-template-columns: 1fr;
    }
}

.is-feature {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.08);
    backdrop-filter: blur(10px);
}

    .is-feature i {
        width: 40px;
        height: 40px;
        border-radius: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(177,18,23,.28);
        border: 1px solid rgba(255,255,255,.14);
        color: #fff;
        flex: 0 0 auto;
    }

.is-feature-title {
    color: #fff;
    font-weight: 950;
    margin-bottom: 2px;
}

.is-feature-text {
    color: rgba(255,255,255,.75);
    font-weight: 650;
}

/* Glass card : on force avec spécificité pour battre des styles globaux */
.is-section--alt .is-card.is-card--glass {
    background: rgba(255,255,255,.08) !important;
    border: 1px solid rgba(255,255,255,.14) !important;
    box-shadow: var(--is-shadow-2) !important;
    color: #fff !important;
    backdrop-filter: blur(10px);
}

    .is-section--alt .is-card.is-card--glass .text-white-75 {
        color: rgba(255,255,255,.78) !important;
    }

/* =========================
   TABLE SESSIONS : FIX lisibilité
   ========================= */
.is-table-wrap {
    border-radius: var(--is-radius);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.14);
    box-shadow: var(--is-shadow-2);
    background: rgba(255,255,255,.06);
    backdrop-filter: blur(10px);
}

.is-table {
    color: rgba(255,255,255,.90);
    background: transparent;
}

    .is-table thead th {
        background: rgba(0,0,0,.40);
        color: #fff;
        border: none !important;
        padding: 14px;
        font-weight: 950;
    }

    .is-table tbody tr {
        background: rgba(0,0,0,.18);
    }

    .is-table tbody td {
        padding: 14px;
        border-top: 1px solid rgba(255,255,255,.10);
        color: rgba(255,255,255,.88);
        font-weight: 650;
    }

.is-row-sep td {
    background: rgba(0,0,0,.45) !important;
    color: rgba(255,255,255,.92) !important;
    font-weight: 950;
}

.is-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(177,18,23,.22);
    border: 1px solid rgba(255,255,255,.14);
    color: #fff;
    font-weight: 900;
}

/* =========================
   FORMULAIRE
   ========================= */
.is-form {
    background: #fff;
    border: 1px solid rgba(15,23,42,.08);
    border-radius: var(--is-radius);
    padding: 18px;
    box-shadow: var(--is-shadow);
}

.is-input {
    border-radius: 14px;
    border: 1px solid rgba(15,23,42,.12);
    padding: 12px;
}

    .is-input:focus {
        border-color: rgba(177,18,23,.45);
        box-shadow: 0 0 0 .25rem rgba(177,18,23,.18);
    }

.is-form-note {
    padding: 12px;
    border-radius: 14px;
    background: rgba(15,23,42,.03);
    border: 1px solid rgba(15,23,42,.08);
    color: rgba(15,23,42,.78);
    font-weight: 650;
}
/* =========================================================
   FIX #1 — Thématiques : texte invisible dans les cards
   ========================================================= */

/* Force la lisibilité de tout le contenu dans la section thématiques */
#themes .is-card,
#themes .is-card * {
    color: var(--is-text) !important;
    opacity: 1 !important;
    visibility: visible !important;
}

    /* Titres */
    #themes .is-card .is-h3,
    #themes .is-card h3 {
        color: var(--is-text) !important;
    }

    /* Paragraphes / descriptions (si tu as p.text-muted ou autre) */
    #themes .is-card p,
    #themes .is-card .text-muted {
        color: rgba(15,23,42,.78) !important;
    }

    /* Sécurité : parfois un style global met font-size:0 dans des cards */
    #themes .is-card p,
    #themes .is-card li,
    #themes .is-card span {
        font-size: 1rem !important;
        line-height: 1.55 !important;
    }

/* =========================================================
   FIX #2 — Sessions : dates/horaires invisibles
   ========================================================= */

/* Neutralise les styles "muted" dans la section sombre */
#sessions .text-muted,
#sessions .text-secondary {
    color: rgba(255,255,255,.80) !important;
}

/* Force la couleur sur toutes les cellules */
#sessions table.is-table tbody td {
    color: rgba(255,255,255,.90) !important;
    opacity: 1 !important;
    visibility: visible !important;
}

    /* Force en particulier Dates (col 2) et Horaires (col 4) */
    #sessions table.is-table tbody td:nth-child(2),
    #sessions table.is-table tbody td:nth-child(4) {
        color: rgba(255,255,255,.92) !important;
        font-weight: 700 !important;
    }

/* Si Bootstrap applique un fond clair sur certains <tr> */
#sessions table.is-table tbody tr {
    background: rgba(0,0,0,.18) !important;
}

/* Évite un overwrite global sur <td> ou <table> */
#sessions table.is-table,
#sessions table.is-table * {
    text-shadow: none !important;
}
/* =========================================================
   FIX FINAL — Sessions : dates invisibles à cause du .text-muted global
   ========================================================= */

/* Le wrapper peut rester "premium" */
#sessions .is-table-wrap {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.14);
}

/* Header sombre OK */
#sessions table.is-table thead th {
    background: rgba(0,0,0,.40) !important;
    color: #fff !important;
}

/* IMPORTANT: body du tableau = lignes blanches + texte foncé (lisible) */
#sessions table.is-table tbody tr {
    background: #fff !important;
}

/* Force le texte des cellules en foncé */
#sessions table.is-table tbody td {
    color: rgba(15,23,42,.88) !important;
    border-top: 1px solid rgba(15,23,42,.08) !important;
}

/* Année 2026 : ligne séparateur sombre */
#sessions table.is-table tbody tr.is-row-sep td {
    background: rgba(0,0,0,.45) !important;
    color: rgba(255,255,255,.92) !important;
    border-top: 1px solid rgba(255,255,255,.10) !important;
}

/* Annule le .text-muted global UNIQUEMENT dans #sessions */
#sessions .text-muted,
#sessions .text-secondary,
#sessions .text-body-secondary {
    color: rgba(15,23,42,.70) !important;
}

/* Force Dates (col 2) et Horaires (col 4) au cas où */
#sessions table.is-table tbody td:nth-child(2),
#sessions table.is-table tbody td:nth-child(4) {
    color: rgba(15,23,42,.88) !important;
    font-weight: 700 !important;
}

/* Le pill reste rose */
#sessions .is-pill {
    background: rgba(177,18,23,.14) !important;
    border: 1px solid rgba(177,18,23,.18) !important;
    color: rgba(15,23,42,.80) !important;
}
/* =========================================================
   Alternance backgrounds (clair / soft / alt)
   ========================================================= */

.is-section--soft {
    background: var(--is-bg);
    position: relative;
}

    .is-section--soft::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(900px 420px at 15% 20%, rgba(177,18,23,.06), transparent 60%), radial-gradient(900px 420px at 85% 30%, rgba(15,23,42,.06), transparent 60%);
        pointer-events: none;
    }

    .is-section--soft > .container {
        position: relative;
        z-index: 1;
    }

/* Optionnel : quand deux .is-section se suivent, évite l'impression de "même bloc" */
.is-section + .is-section {
    border-top: 1px solid rgba(15,23,42,.06);
}

/* =========================================================
   "Ce que nous offrons"
   ========================================================= */

.is-offer-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.is-offer-badge {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(177,18,23,.10);
    border: 1px solid rgba(177,18,23,.16);
    color: var(--is-accent);
    flex: 0 0 auto;
}

.is-offer-title {
    font-weight: 950;
    color: rgba(15,23,42,.92);
    margin-bottom: 4px;
}

/* IMPORTANT : ton global met .text-muted en blanc.
   On neutralise dans les sections claires (soft + normales) */
.is-section:not(.is-section--alt) .text-muted {
    color: rgba(15,23,42,.72) !important;
}
