/* ============================================
   RÉINITIALISATION ET BASE
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Oswald', sans-serif; /* Police Ministry alternative */
    background-color: #FFFFFF; /* Blanc */
    color: #000000;
    line-height: 1.6;
}

.container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px 20px;
}

/* ============================================
   NAVIGATION PRINCIPALE
   ============================================ */

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
     margin-top: 2px;
    border-bottom: 2px solid #E6E6E6;

    margin-bottom: 30px;
}

.nav-logo .logo-placeholder {
   /* width: 80px;
    height: 80px;
    background-color: #E6E6E6;*/
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #666;
   /*  margin-bottom: 6px;*/
     margin-left: 44px;

}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu li a {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2rem;
    color: #003366;
    text-decoration: none;
    letter-spacing: 1px;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    color: #00A86B;
}

.nav-menu li a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #00A86B;
}

/* ============================================
   EN-TÊTE
   ============================================ */

header {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #E6E6E6;
}

/* Style alternatif pour l'en-tête sans logo */
.titre-principal {
    width: 100%;
}

.titre-principal h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3.5rem;
    color: #003366;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.sous-titre {
    font-size: 1.2rem;
    color: #333;
    font-weight: 300;
}

/* Style avec logo (pour référence) */
.logo-placeholder-large {
   width: 120px;
    height: 120px;
    background-color: #E6E6E6;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 30px;
    font-size: 14px;
    color: #666;
}

/* ============================================
   CONTENU PRINCIPAL
   ============================================ */

main {
    display: flex;
    flex: 1;
    gap: 40px;
}

.contenu-principal {
    flex: 2;
    padding-right: 20px;
}

.texte-intro {
    margin-bottom: 30px;
}

.texte-intro p {
    margin-bottom: 15px;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* ============================================
   BOUTON UNIQUE
   ============================================ */

.bouton-container {
    margin-top: 40px;
}

.bouton {
    display: inline-block;
    background-color: #00A86B;
    color: white;
    padding: 15px 35px;
    text-decoration: none;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.3rem;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: opacity 0.3s;
}

.bouton:hover {
    opacity: 0.9;
}

/* ============================================
   BARRE LATÉRALE
   ============================================ */

.sidebar {
    flex: 1;
    background-color: #F8F8F8;
    padding: 25px;
    min-width: 300px;
    display: flex;
    flex-direction: column;
}

.sidebar h2 {
    font-family: 'Bebas Neue', sans-serif;
    color: #003366;
    font-size: 1.8rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #E6E6E6;
}

/* ============================================
   SECTION ACTUALITÉS
   ============================================ */

.actualites {
    flex: 1;
    margin-bottom: 40px;
}

.actualite-item {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #E6E6E6;
}

.actualite-item h3 {
    color: #0056B3;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.actualite-item p {
    font-size: 0.9rem;
    color: #666;
}

/* ============================================
   SECTION RÉSEAUX SOCIAUX
   ============================================ */

.reseaux-sociaux {
    flex: 2;
}

.publication {
    background-color: white;
    padding: 15px;
    margin-bottom: 15px;
    border-left: 4px solid #00A86B;
}

.publication p {
    margin-bottom: 8px;
}

.date {
    font-size: 0.85rem;
    color: #888;
    font-style: italic;
}

/* ============================================
   PIED DE PAGE
   ============================================ */

footer {
    margin-top: 50px;
    padding: 25px 0;
    text-align: center;
    border-top: 2px solid #E6E6E6;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2rem;
    color: #003366;
}

/* ============================================
   STYLES POUR LES PAGES DE CONTENU
   ============================================ */

.page-content {
    flex: 2;
    padding-right: 20px;
}

.page-content h2 {
    font-family: 'Bebas Neue', sans-serif;
    color: #003366;
    font-size: 2.5rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #00A86B;
}

.page-content .texte-intro {
    margin-bottom: 30px;
}

/* ============================================
   FORMULAIRE DE CONTACT
   ============================================ */

.contact-form {
    background-color: #F8F8F8;
    padding: 30px;
    margin-top: 30px;
}

.form-intro {
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 400;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #E6E6E6;
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.required::after {
    content: " *";
    color: #d9534f;
}

.contact-info {
    background-color: #F8F8F8;
    padding: 20px;
    margin-top: 30px;
    border-left: 4px solid #00A86B;
}

.contact-info h3 {
    font-family: 'Bebas Neue', sans-serif;
    color: #003366;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* ============================================
   MESSAGES DE SUCCÈS / ERREUR
   ============================================ */

.message-success,
.message-error {
    padding: 20px;
    margin: 30px 0;
    border-radius: 4px;
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    line-height: 1.6;
    animation: fadeIn 0.5s ease-in;
}

.message-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message-success strong,
.message-error strong {
    font-size: 1.2rem;
    display: block;
    margin-bottom: 8px;
}

/* Animation d'apparition */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Pour les rendre visibles lorsqu'on les affiche */
.message-success[style*="display: block"],
.message-error[style*="display: block"] {
    display: block !important;
}

/* ============================================
   STYLES SPÉCIFIQUES POUR LES PAGES
   ============================================ */

/* Style pour les listes dans les pages de contenu */
.page-content ul {
    margin: 20px 0;
    padding-left: 20px;
}

.page-content ul li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Conteneur pour grille d'équipe */
.equipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.membre-equipe {
    background-color: #F8F8F8;
    padding: 15px;
    text-align: center;
}

.membre-equipe img {
    width: 100%;
    height: auto;
    margin-bottom: 10px;
}

/* Style pour les sections d'information */
.info-section {
    background-color: #F8F8F8;
    padding: 20px;
    margin: 20px 0;
    border-left: 4px solid #00A86B;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    main {
        flex-direction: column;
    }
    
    .sidebar {
        min-width: 100%;
        order: 2;
    }
    
    .contenu-principal,
    .page-content {
        order: 1;
        padding-right: 0;
    }
    
    .titre-principal h1 {
        font-size: 2.8rem;
    }
    
    .nav-menu {
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .main-nav {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .titre-principal h1 {
        font-size: 2.2rem;
        text-align: center;
    }
    
    .sous-titre {
        text-align: center;
    }
    
    .page-content h2 {
        font-size: 2rem;
    }
    
    header {
        flex-direction: column;
        text-align: center;
    }
    
    .logo-placeholder-large {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .equipe-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px 10px;
    }
    
    .titre-principal h1 {
        font-size: 1.8rem;
    }
    
    .bouton {
        padding: 12px 25px;
        font-size: 1.1rem;
        width: 100%;
        text-align: center;
    }
    
    .sidebar {
        padding: 15px;
    }
    
    .contact-form {
        padding: 20px;
    }
}

/* Fond assombri */
        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            inset: 0;
            background: rgba(0, 0, 0, 0.9);
        }

        /* Contenu centré */
        .modal-content {
            position: relative;
            max-width: 800px;
            margin: 5% auto;
            padding: 0;
            background: #000;
            border-radius: 8px;
            overflow: hidden;
        }

        /* Vidéo responsive */
        .modal video {
            width: 100%;
            height: auto;
            display: block;
        }

        /* Bouton fermeture */
        .close {
            position: absolute;
            top: 10px;
            right: 10px;
            background: rgba(255, 255, 255, 0.9);
            color: #000;
            font-size: 28px;
            width: 40px;
            height: 40px;
            line-height: 40px;
            text-align: center;
            border-radius: 50%;
            cursor: pointer;
            z-index: 1001;
            border: none;
            font-family: sans-serif;
        }

        .close:hover {
            background: white;
            transform: scale(1.1);
        }

        /* VIGNETTE */
        .video-thumbnail {
            position: relative;
            cursor: pointer;
            max-width: 400px;
            margin: 10px 0;
            border-radius: 8px;
            overflow: hidden;
            border: 3px solid #E6E6E6;
            transition: all 0.3s ease;
        }

        .video-thumbnail:hover {
            border-color: #00A86B;
            transform: translateY(-3px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        }

        .video-thumbnail img {
            width: 100%;
            height: auto;
            display: block;
            transition: transform 0.5s ease;
        }

        .video-thumbnail:hover img {
            transform: scale(1.05);
        }

        /* Bouton play sur la vignette */
        .play-button {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 70px;
            height: 70px;
            background: rgba(0, 86, 179, 0.85);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 28px;
            transition: all 0.3s ease;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        }

        .video-thumbnail:hover .play-button {
            background: rgba(0, 168, 107, 0.95);
            transform: translate(-50%, -50%) scale(1.1);
            box-shadow: 0 8px 25px rgba(0, 168, 107, 0.4);
        }

        .play-button::after {
            content: "▶";
            margin-left: 4px;
        }

        /* Titre au-dessus de la vignette */
        .actualite-item h3 {
            color: #003366;
            margin-bottom: 10px;
            font-size: 1.3rem;
        }

        .actualite-item p {
            color: #666;
            margin-bottom: 15px;
            font-style: italic;
        }

        /* Texte "Cliquez pour voir" */
        .video-caption {
            font-size: 0.9rem;
            color: #00A86B;
            margin-top: 5px;
            text-align: center;
        }

        /* Responsive */
        @media (max-width: 768px) {
            .modal-content {
                margin: 0;
                border-radius: 0;
                width: 100%;
                height: 100%;
            }
            
            .video-thumbnail {
                max-width: 100%;
            }
            
            .play-button {
                width: 60px;
                height: 60px;
                font-size: 24px;
            }
        }
              /*18/2/2026* Ahmed/
        /* ============================================
   POPUP DOCUMENTS OFFICIELS
   ============================================ */

/* Overlay de fond */
.documents-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(3px);
}

/* Conteneur principal de la popup */
.documents-popup {
    background-color: white;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 12px;
    position: relative;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 51, 102, 0.3);
    animation: popupAppear 0.3s ease-out;
}

@keyframes popupAppear {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Bouton fermeture */
.popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    cursor: pointer;
    color: #003366;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
    background: #F8F8F8;
    line-height: 1;
}

.popup-close:hover {
    background: #00A86B;
    color: white;
    transform: rotate(90deg);
}

/* En-tête de la popup */
.popup-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #00A86B;
    padding-bottom: 20px;
}

.popup-header h2 {
    font-family: 'Bebas Neue', sans-serif;
    color: #003366;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.popup-header p {
    color: #666;
    font-size: 1.1rem;
}

/* Grille des documents */
.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Carte document */
.document-card {
    background: #F8F8F8;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s;
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.document-card:hover {
    transform: translateY(-5px);
    border-color: #00A86B;
    box-shadow: 0 10px 20px rgba(0, 168, 107, 0.15);
}

/* Image du document */
.document-image {
    height: 140px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.document-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,51,102,0.2), rgba(0,51,102,0.6));
}

.document-image span {
    position: relative;
    z-index: 2;
    font-size: 48px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* Info document */
.document-info {
    padding: 15px;
    text-align: center;
}

.document-info h3 {
    font-family: 'Bebas Neue', sans-serif;
    color: #003366;
    font-size: 1.4rem;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.document-info p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

/* Badge PDF */
.pdf-badge {
    display: inline-block;
    background-color: #00A86B;
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Section séparateur */
.popup-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #E6E6E6;
}

.popup-section h3 {
    font-family: 'Bebas Neue', sans-serif;
    color: #003366;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* Liens supplémentaires */
.documents-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.doc-link {
    background: #F8F8F8;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    color: #003366;
    transition: all 0.3s;
    flex: 1 1 auto;
    border-left: 4px solid #00A86B;
}

.doc-link:hover {
    background: #E6E6E6;
    transform: translateX(5px);
}

/* Responsive */
@media (max-width: 768px) {
    .documents-popup {
        padding: 20px;
        width: 95%;
    }
    
    .popup-header h2 {
        font-size: 2rem;
    }
    
    .documents-grid {
        grid-template-columns: 1fr;
    }
    
    .popup-close {
        top: 10px;
        right: 10px;
    }
}