/****
    *
    *		@Author [Benoit Hinck]
    *		@Copyright [2007]
    *
    *		@Pagename : header-style.css 
    *
    *		@Revisions
    *			Le 03/11/2025 : Création
    *
    ****/

    
    /* !-- ================= ----------- ================ --! */
    /* !-- =================  Home Page  ================ --! */
    /* !-- ================= ----------- ================ --! */
    
    /* =============================================================== */
    /* ---------------------  CONTENU PRINCIPAL  --------------------- */
    /* =============================================================== */
    .page-wrapper {
        background: var(--primary-2);
        border-radius: 8px;
        box-sizing: border-box;
        box-shadow: 0 6px 20px rgba(0,0,0,0.04);
        margin: 0 20px;
        max-width: var(--max-width);
        padding: 0 20px 4px 20px;
    }

    /* =============================================================== */
    /* ----------------  BANNIÈRE CENTRÉE SOUS HEADER  --------------- */
    /* =============================================================== */
    .hero-wrapper {
        max-width: var(--max-width);
        margin: 0 auto;
        padding: 0 16px;
    }

    .hero-banner {
        background: var(--primary-2);
        border-radius: var(--radius);
        height: 400px;
        overflow: hidden;
        position: relative;
        width: 100%;
    }

    /* Image responsive */
    .hero-banner picture img {
        height: 100%;
        object-fit: cover;
        object-position: center bottom;
        width: 100%;
    }

    /* TEXTE SUR IMAGE */
    .hero-text {
        color: white;
        left: 32px;
        position: absolute;
        text-shadow: 0 2px 8px rgba(0,0,0,0.6);
        top: 28px;
        z-index: 10;
    }

    .hero-text h1 {
        font-size: 2.5rem;
        margin-bottom: 6px;
    }

    .hero-text p {
        font-size: 1.1rem;
        opacity: 0.9;
    }

    @media (max-width: 768px) {
        .hero-banner { height: 180px; }
        .hero-text h1 { font-size: 1.4rem; }
    }


    /* =============================================================== */
    /* ----------------  BANNIÈRE CENTRÉE SOUS HEADER  --------------- */
    /* =============================================================== */
    .apropos {
        max-width: var(--max-width);
        margin: 40px auto;
        padding: 20px 16px;
    }

    .apropos h2 {
        font-size: 1.8rem;
        font-weight: 700;
        margin-top: 20px;
        margin-bottom: 24px;
        color: #003F86;
        text-align: left;
    }

    /* =============================================================== */
    /* ------------------------  MISSIONS  --------------------------- */
    /* =============================================================== */

    .missions {
        max-width: var(--max-width);
        margin: 40px auto;
        padding: 0 16px;
    }

    .missions h2 {
        font-size: 1.8rem;
        font-weight: 700;
        margin-bottom: 24px;
        color: #003F86;
        text-align: left;
    }

    .apropos-grid,
    .missions-grid {
        display: flex;
        gap: 20px;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .apropos-card,
    .mission-card {
        align-items: flex-start;
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        display: flex;
        flex: 1 1 calc(33.333% - 20px);
        flex-direction: column;
        padding: 20px;
        text-align: left;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }


/*.mission-card {
    flex: 1 1 calc(33.333% - 20px);
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}*/

    .mission-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 6px 16px rgba(0,0,0,0.12);
    }

    .mission-icon {
        /*filter: invert(24%) sepia(100%) saturate(300%) hue-rotate(120deg);*/
        height: 64px;
        margin-bottom: 16px;
        object-fit: contain; /* évite les déformations */
        width: 64px; /* taille uniforme */
    }

    .mission-card h3 {
        font-size: 1.2rem;
        margin-bottom: 8px;
        color: #003F86;
    }

    .mission-card p {
        font-size: 0.95rem;
        color: #333;
        line-height: 1.4;
    }

    /* ✅ Responsive */
    @media (max-width: 992px) {
        .mission-card {
            flex: 1 1 calc(50% - 20px);
        }
    }

    @media (max-width: 600px) {
        .mission-card {
            flex: 1 1 100%;
        }
    }

    /* =============================================================== */
    /* ---------------------  CLASSIFICATION  ------------------------ */
    /* =============================================================== */
    .classification-process {
        max-width: var(--max-width);
        margin: 40px auto;
        padding: 0 16px;
    }
    .classification-process h2 {
        font-size: 1.8rem;
        font-weight: 700;
        margin-bottom: 24px;
        color: #003F86;
        text-align: left;
    }
    .process-steps {
        display: flex;
        gap: 20px;
        justify-content: space-between;
        flex-wrap: wrap;
    }
    .process-step {
        align-items: center;
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        display: flex;
        flex: 1 1 calc(25% - 20px);
        flex-direction: column;
        padding: 20px;
        text-align: center;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }


    .process-image {
        width: 100%;
        height: auto;
        object-fit: contain; /* ou cover si tu veux remplir */
        border-radius: 6px;
    }

    .process-step:hover {
        transform: translateY(-6px);
        box-shadow: 0 6px 16px rgba(0,0,0,0.12);
    }

    .process-step p {
        font-size: 1rem;
        color: #333;
        line-height: 1.4;
        margin-top: 12px;
    }


    /* ✅ Responsive */

@media (max-width: 992px) {
    .process-step {
        flex: 1 1 calc(50% - 20px); /* 2 colonnes sur tablette */
    }
}

@media (max-width: 600px) {
    .process-step {
        flex: 1 1 100%; /* 1 colonne sur smartphone */
    }
}



    /* =============================================================== */
    /* ------------------------ STYLES CARDS ------------------------- */


    .card {
        background-color: white;
        border-radius: 8px;
        padding: 1rem;
        margin-bottom: 1.5rem;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        display: flex;
        align-items: flex-start;
        gap: 1rem;
        opacity: 0;
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .card:nth-child(odd) {
        transform: translateX(-50px);
    }
    .card:nth-child(even) {
        transform: translateX(50px);
    }

    .card.visible {
        opacity: 1;
        transform: translateX(0);
    }

    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    }

    .card img {
        width: 30px;
        height: 30px;
        object-fit: contain;
        margin-top: 4px;
        flex-shrink: 0;
    }

    /* !-- ================= ----------- ================ --! */
    /* !-- =========== Introduction de la page ========== --! */
    /* !-- =========== ----------------------- ========== --! */
    
    .intro-text {
        display: block !important;
        flex-direction: column !important;
        text-align: left;
    }

    .intro-text h1 {
        font-size: 32px;
        margin-bottom: 16px;
        color: #003F86;
    }
    
    .intro-text p {
        margin-bottom: 12px;
        line-height: 1.5;
    }

    /* !-- ================= ----------- ================ --! */
    /* !-- ============ Double puce par card ============ --! */
    /* !-- ============ -------------------- ============ --! */

    /* Empêche l'affichage en ligne quand il y a plusieurs lignes */
    .card.card-multi {
        display: block;
    }

    /* Effet zoom + glow au survol des icônes */
    .card.card-multi img {
        transition: transform 0.25s ease, filter 0.25s ease;
    }

    .card.card-multi img:hover {
        transform: scale(1.35) rotate(1.5deg);
        filter: drop-shadow(0 0 6px rgba(0, 63, 134, 0.45));
    }

    
    /* Structure pour les lignes puce + texte */
    .link-row {
        display: flex;
        align-items: center;
        gap: 1rem;               /* même espace qu'avant */
        width: 100%;             /* chaque ligne prend toute la largeur */
        margin-bottom: 10px;     /* espace vertical entre les lignes */
        transition: background-color 0.25s ease, padding-left 0.25s ease;
        opacity: 0;
        transform: translateY(10px);
        animation: fadeUp 0.5s ease forwards;
    }

    .link-row:nth-child(1) { animation-delay: 0.1s; }
    .link-row:nth-child(2) { animation-delay: 0.2s; }
    .link-row:nth-child(3) { animation-delay: 0.3s; }

    @keyframes fadeUp {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Effet hover sur toute la ligne */
    .link-row:hover {
        background: rgba(0, 63, 134, 0.08);
        padding-left: 8px;
        border-radius: 6px;
    }

    /* Taille des icônes dans les lignes */
    .link-row img {
        width: 40px;
        height: 40px;
        object-fit: contain;
    }

    .link-row p {
        flex: 1;                 /* le texte prend tout l'espace restant */
        margin: 0;               /* supprimer les marges par défaut */
    }

    /* !-- ================= ----------- ================ --! */
    /* !-- ================= Classement ================ --! */
    /* !-- ================= ----------- ================ --! */
    
    /* CONTENEUR PRINCIPAL */
    .classement-container {
        display: flex;
        flex-wrap: wrap;
        gap: 40px;
        justify-content: center;
        padding: 40px 20px;
    }

    /* CARTE PREMIUM */
    .classement-card {
        width: 320px;
        height: 440px;
        border-radius: 28px;
        background: rgba(255,255,255,0.25);
        overflow: hidden;
        position: relative;
        transition: 0.4s ease;
    }

    /* Effet glassmorphism */
    .classement-glass {
        backdrop-filter: blur(18px) saturate(180%);
        -webkit-backdrop-filter: blur(18px) saturate(180%);
        background: rgba(255, 255, 255, 0.45);
        border-radius: 28px;
        height: 100%;
        padding: 30px 25px;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    /* ==================== CONTENEUR ICONES ==================== */
    .classement-icon {
        position: relative;
        width: 130px;
        height: 130px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    /* ========================== IMAGES ======================== 
            Une seule image, on change la src via JavaScript
       ========================================================== */

    .icon-img {
        width: 130px;
        height: auto;
        object-fit: contain;
        display: block;
        margin: 0;
        padding: 0;
        transition:
            opacity 0.30s ease,
            transform 0.45s cubic-bezier(.25,.8,.25,1),
            filter 0.45s ease;
        will-change: transform, filter, opacity;
    }

    /* ===================== EFFET AU SURVOL ==================== */

    .classement-card:hover .icon-img {
        transform: scale(1.15);
        filter: 
            brightness(1.35) 
            contrast(1.1) 
            drop-shadow(0 0 12px rgba(0,63,134,0.55));
    }
    
    /* =========================== TEXTES ======================== */

    /* TITRES */
    .classement-card h2 {
        font-size: 24px;
        font-weight: 700;
        color: #ffffff;
        letter-spacing: 1px;
        margin-bottom: 12px;
    }

    /* DESCRIPTION */
    .classement-card p {
        font-size: 15px;
        color: #e8e8e8;
        margin-bottom: 25px;
        line-height: 1.4em;
    }

    /* =========================== BOUTONS ======================== */

    .btn-classement {
        background: #003F86;
        color: white;
        padding: 12px 26px;
        border-radius: 50px;
        font-size: 16px;
        text-decoration: none;
        font-weight: 600;
        transition: 0.3s ease;
        box-shadow: 0 6px 16px rgba(0,63,134,0.35);
    }

    /* Hover bouton */
    .btn-classement:hover {
        background: #0056c7;
        box-shadow: 0 8px 22px rgba(0,63,134,0.45);
    }

    /* ================== ANIMATION CARTE ======================= */

    .classement-card:hover {
        transform: scale(1.04) rotate(1.5deg);
        box-shadow: 0 18px 35px rgba(0,0,0,0.28);
    }

    /* ======================== RESPONSIVE ======================= */

    @media (max-width: 768px) {
        .classement-card {
            width: 90%;
            max-width: 360px;
        }
    }

    /* ============ Animation apparition au scroll =============== */

    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* !-- ================= ----------- ================ --! */
    /* !-- ================= Statistiques =============== --! */
    /* !-- ================= ----------- ================ --! */

    /* ====== Styles spécifiques à la page Statistiques (premium) ====== */




    /* ===============================
        WRAPPER GLOBAL
    ================================ */

    .stats-wrapper {
        display: flex;
        gap: 28px;
        margin: 36px auto;
        max-width: 1300px;
        padding: 0 20px;
        animation: fadeIn 0.6s ease;
    }

    /* ===============================
    SIDEBAR PREMIUM
    ================================ */

    /* Sidebar sticky */
    .stats-sidebar {
        width: 240px;
        position: sticky;
        top: 110px;
        height: fit-content;
        background: rgba(255,255,255,0.35);
        backdrop-filter: blur(14px) saturate(180%);
        border-radius: 18px;
        padding: 20px 25px;
        box-shadow: 0 8px 18px rgba(0,0,0,0.12);
    }

    .stats-sidebar h3 {
        margin-bottom: 12px;
        font-size: 20px;
        color: #003F86;
        font-weight: 700;
    }

    .stats-sidebar ul {
        list-style: none;
        padding: 0;
    }

    .stats-sidebar ul li {
        margin-bottom: 10px;
    }

    .stats-sidebar a {
        color: #0056c7;
        font-size: 15px;
        font-weight: 600;
        text-decoration: none;
        transition: 0.25s;
    }

    .stats-sidebar a:hover {
        color: #FF5733;
        padding-left: 4px;
        transition:0.18s;
    }


    /* ===============================
    CONTENT PREMIUM
    ================================ */

    .stats-content {
        flex: 1;
    }

    /* ===============================
    TITRE PREMIUM ANIMÉ
    ================================ */

    .stats-title {
        text-align: center;
        font-size: 34px;
        font-weight: 800;
        color: #003F86;
        margin-bottom: 35px;
        letter-spacing:0.2px;
        animation: popIn 0.7s ease;
    }
    

    /* ===============================
    SECTIONS PREMIUM
    ================================ */

    /* Section card */
    .stats-section {
        background: rgba(255,255,255,0.28);
        border-radius: 22px;
        padding: 25px;
        margin-bottom: 45px;
        backdrop-filter: blur(14px) saturate(180%);
        box-shadow: 0 6px 16px rgba(0,0,0,0.12);
        animation: fadeUp 0.6s ease forwards;
    }

    /* Section title with icon */
    .section-title {
        font-size: 22px;
        font-weight: 700;
        color: #0056c7;
        margin-bottom: 20px;
        display:flex;
        align-items:center;
        gap:12px;      
    }

    .section-title .icon {
        width:36px; height:36px; display:inline-flex; align-items:center; justify-content:center;
    }


    /* ===============================
    GALERIE PREMIUM
    ================================ */

    .thumb-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 18px;
    }

    /* -------------------------------
    CARTE MINIATURE PREMIUM
    -------------------------------- */

    .thumb-card {
        background: rgba(255,255,255,0.38);
        border-radius: 16px;
        color:inherit;
        cursor: pointer;
        box-shadow: 0 8px 16px rgba(0,0,0,0.16);
        display:block;
        overflow: hidden;
        min-height: 160px;
        position: relative;
        text-decoration:none;
        transition: transform 0.28s ease, box-shadow 0.28s ease;
    }

    /* Image itself — contain so not cropped */
    .thumb-card img {
        animation: fadeIn 0.8s forwards;
        background: rgba(255,255,255,0.6);              /* ✅ Joli fond si image plus petite */
        display: block;
        height: 160px;
        object-fit: contain;                               /* ✅ Affiche l'image entière / cover : couvre avec l'image */
        transition: transform 0.30s ease, filter 0.30s ease;
        width: 100%;    
    }

    /* Overlay bottom (voir + print) */
    .thumb-overlay {
    position:absolute;
    left:0; right:0; bottom:0;
    padding:8px 10px;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.28) 100%);
    color:#fff;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:8px;
    transform: translateY(30%);
    opacity:0;
    transition: transform 0.28s ease, opacity 0.28s ease;
    }

    /* Hover: zoom + show overlay */
    .thumb-card:hover { 
        box-shadow: 0 18px 34px rgba(0,0,0,0.18);
        transform: translateY(-6px);
    }
    
    /* Zoom premium */
    .thumb-card:hover img {
        transform: scale(1.18);
        filter: brightness(1.1) contrast(1.1);
    }

    /* Overlay premium */
    .thumb-overlay {
        position: absolute;
        bottom: 0;
        width: 100%;
        background: rgba(0,63,134,0.75);
        color: white;
        text-align: center;
        padding: 6px 0;
        font-size: 15px;
        opacity: 0;
        transform: translateY(100%);
        transition: 0.3s ease;
    }

    .thumb-overlay .label {
        font-size: 14px; 
        font-weight: 700; 
    
    }

    .thumb-overlay .btn-print {
        background:#003F86;
        box-shadow: 0 6px 14px rgba(0,63,134,0.24);
        border-radius: 8px; 
        color:#fff; 
        font-size: 13px;
        padding: 6px 10px;
        text-decoration: none; 
    }

    .thumb-overlay .btn-print:hover {
        background: #0056c7;
    }

    .thumb-card:hover .thumb-overlay {
        opacity:1; 
        transform: translateY(0); 
    }


    /* ===============================
    ANIMATIONS
    ================================ */

    @keyframes fadeUp {
        from { opacity: 0; transform: translateY(20px); }
        to   { opacity: 1; transform: translateY(0); }
    }

    @keyframes fadeIn {
        from { opacity: 0; }
        to   { opacity: 1; }
    }

    @keyframes popIn {
        0% { transform: scale(0.85); opacity: 0; }
        100% { transform: scale(1); opacity: 1; }
    }


    /* ===============================
    RESPONSIVE DESIGN
    ================================ */
    @media (max-width: 992px) {
        .stats-wrapper {
            flex-direction: column;
            padding: 0 10px;
        }

        .stats-sidebar {
            position: relative;
            top: 0;
            width: 100%;
            margin-bottom: 30px;
        }
    }

    /* tiny utility */
    .visible { 
        opacity: 1 !important; 
        transform: none !important; 
    }

    /* ===============================
    FIN DU FICHIER CSS
    ================================ */

    

    

    

    
    

    