
html {
    scroll-behavior: smooth; /* C'est cette ligne qui crée l'effet de glissement */
}

#contact {
    scroll-margin-top: 80px; /* Évite que le menu collant ne cache le titre "Contact" */
}



/* ==========================================
   1. VARIABLES ET CONFIGURATION
   ========================================== */
:root {
    --primary-color: #003366;
    --primary-blue: #0056b3;
    --secondary-color: #f39c12;
    --accent-green: #28a745;
    --dark-grey: #333333;
    --light-grey: #f8f9fa;
    --white: #ffffff;
    --text-color: #444444;
    --transition: all 0.3s ease-in-out;
}

* {
    margin: 0; padding: 0; box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

/* ==========================================
   2. NAVIGATION
   ========================================== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 8%;
    background-color: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.site-logo { height: 55px; }

.nav-links { display: flex; list-style: none; gap: 25px; }

.nav-links a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--secondary-color);
}

/* ==========================================
   3. HEADERS
   ========================================== */
header, .page-header {
    background: linear-gradient(rgba(0, 51, 102, 0.8), rgba(0, 0, 0, 0.7)), 
                url('images/header-bg.jpg') center/cover no-repeat;
    color: var(--white);
    text-align: center;
    padding: 80px 20px;
}

header h1 { font-size: 2.5rem; text-transform: uppercase; }

/* ==========================================
   4. GRILLE DES MEMBRES (Correction Photo)
   ========================================== */
.container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

.membres-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.membre-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: var(--transition);
}

.membre-card:hover { transform: translateY(-5px); }

/* Le cadre de la photo (Cercle) */
.photo-wrapper {
    width: 150px;
    height: 150px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--light-grey);
}

.membre-photo {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Empêche la déformation */
}

.role {
    display: block;
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

/* ==========================================
   5. FOOTER ET RESEAUX SOCIAUX
   ========================================== */
.footer {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 40px 20px;
    margin-top: 50px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.social-icon {
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: 0.3s;
}

.social-icon.facebook:hover { background: #1877F2; }
.social-icon.whatsapp:hover { background: #25D366; }




/* ==========================================
   6. RESPONSIVE
   ========================================== */
@media (max-width: 768px) {
    .nav-links { display: none; } /* Idéalement ajouter un menu burger ici */
    .membres-grid { grid-template-columns: 1fr; }
}

/* ==========================================
   7. POUR LE FORMULAIRE
   Ce code crée des "boîtes" d'alerte élégantes et centrées
   ========================================== */
   /* Styles pour les messages de retour du formulaire */
.feedback-container {
    max-width: 600px;
    margin: 100px auto;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.feedback-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.feedback-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.feedback-container h1 {
    margin-bottom: 20px;
    font-size: 24px;
}

.btn-retour {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 25px;
    background-color: #007bff; /* Ajustez selon la couleur de l'AJDDTA */
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.btn-retour:hover {
    background-color: #0056b3;
}

/* ==========================================
   8. GALERIE (Images non coupées)
   ========================================== */
.galerie-2-colonnes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    align-items: start;
}

.galerie-item {
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.galerie-item img {
    width: 100% !important;
    height: auto !important; /* L'image définit sa propre hauteur */
    display: block;
    object-fit: contain; /* L'image s'affiche entièrement */
    transition: transform 0.4s;
    cursor: pointer;
}

.galerie-item img:hover {
    transform: scale(1.05);
}

/* ==========================================
   9. ACTUALITÉS (Gestion de "Lire la suite")
   ========================================== */
.container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

.news-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 25px;
    margin-bottom: 30px;
    border-left: 5px solid var(--primary-blue);
}

.date {
    color: var(--accent-green);
    font-weight: bold;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 10px;
}

/* LE TEXTE CACHÉ - C'est ici que le JS agit */
.full-text {
    display: none; /* Caché au départ */
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    color: #555;
    animation: fadeIn 0.5s ease;
}

.btn-read {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 18px;
    background-color: var(--primary-blue);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-read:hover {
    background-color: #004494;
}


/* ==========================================
   10. Style du Bandeau Défilant
   ========================================== */

/* --- Style du Bandeau Défilant --- */
.ajddta-top-announcement {
    background: linear-gradient(90deg, #e67e22, #d35400); /* Orange lié au dynamisme du logo */
    color: #ffffff;
    height: 45px;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    border-bottom: 2px solid #f39c12;
    z-index: 1000;
}

.scroll-wrapper {
    width: 100%;
    white-space: nowrap;
}

.scroll-content {
    display: inline-block;
    padding-left: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1rem;
    font-weight: 400;
    animation: defilement-permanent 35s linear infinite; /* Vitesse ajustable */
}

/* Style du badge Événement */
.event-tag {
    background: #ffffff;
    color: #d35400;
    padding: 2px 10px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 0.75rem;
    margin-right: 10px;
}

.scroll-content strong {
    color: #ffd700; /* Couleur Or pour faire ressortir le titre */
    text-transform: uppercase;
}

/* --- Animation --- */
@keyframes defilement-permanent {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* --- PAUSE AU SURVOL --- */
.ajddta-top-announcement:hover .scroll-content {
    animation-play-state: paused;
    cursor: pointer;
}

/* --- Adaptabilité Mobile --- */
@media (max-width: 600px) {
    .ajddta-top-announcement {
        height: 40px;
        font-size: 0.85rem;
    }
    .scroll-content {
        animation-duration: 25s; /* Un peu plus rapide sur mobile car écran plus court */
    }
}
/* 11--- SECTION CONTACT --- */
#contact {
    padding: 60px 20px;
    background-color: #f8f9fa; /* Fond très léger pour faire ressortir le formulaire */
    text-align: center;
}

#contact h2 {
    color: #2e7d32; /* Vert foncé lié à l'écologie/développement */
    margin-bottom: 30px;
    font-size: 2rem;
    position: relative;
    padding-bottom: 10px;
}

#contact h2::after {
    content: '';
    width: 60px;
    height: 4px;
    background: #ff9800; /* Orange dynamique (rappel logo possible) */
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* --- LE CONTENEUR DU FORMULAIRE --- */
.contact-container {
    max-width: 700px;
    margin: 0 auto;
    background: #ffffff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-top: 5px solid #2e7d32; /* Rappel du vert principal */
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box; /* Évite que l'input dépasse */
}

/* Effet quand on clique dans un champ */
.form-group input:focus, 
.form-group textarea:focus {
    border-color: #2e7d32;
    outline: none;
    box-shadow: 0 0 8px rgba(46, 125, 50, 0.2);
    background-color: #f1f8e9;
}

/* --- LE BOUTON D'ENVOI --- */
.btn-submit {
    width: 100%;
    padding: 15px;
    background-color: #2e7d32;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn-submit:hover {
    background-color: #1b5e20; /* Vert encore plus foncé au survol */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-submit:active {
    transform: translateY(0);
}

/* --- RESPONSIVE --- */
@media (max-width: 600px) {
    .contact-container {
        padding: 20px;
    }
}


/* ==========================================
   12. SECTION À PROPOS (CORRIGÉ)
   ========================================== */
#a-propos {
    padding: 80px 10%; 
    background-color: var(--white);
    text-align: center;
}

#a-propos .container-text {
    max-width: 900px;
    margin: 0 auto;
}

#a-propos h2 {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 35px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    display: inline-block; /* Nécessaire pour que la barre après soit bien centrée */
}

#a-propos h2::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

#a-propos p {
    font-size: 1.15rem;
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 25px;
    text-align: justify; /* Aligné proprement */
}

/* On force le style sur l'intro pour qu'elle se démarque */
#a-propos .intro-text {
    font-weight: 600;
    color: var(--primary-color);
    border-left: 5px solid var(--secondary-color);
    padding: 10px 0 10px 25px;
    text-align: left; /* L'intro rend mieux alignée à gauche avec la bordure */
    background-color: var(--light-grey);
    border-radius: 0 10px 10px 0;
}

/* Responsive pour tablettes et mobiles */
@media (max-width: 768px) {
    #a-propos {
        padding: 50px 20px;
    }
    #a-propos h2 {
        font-size: 1.8rem;
    }
    #a-propos p {
        font-size: 1rem;
    }
}

/* ==========================================
   13. SECTION GALERIE PAGE D'ACCUEIL (6 photos par ligne)
   ========================================== */
#galerie {
    padding: 60px 5%; /* Un peu plus de largeur sur les côtés */
    background-color: var(--white);
    text-align: center;
}

#galerie h2 {
    color: var(--primary-color);
    margin-bottom: 40px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

#galerie h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
    margin: 10px auto 0;
}

/* LE CONTENEUR GRID AJUSTÉ À 6 COLONNES */
.grid-container {
    display: grid;
    /* On définit 6 colonnes égales */
    grid-template-columns: repeat(6, 1fr); 
    gap: 15px; /* Espace réduit pour ne pas trop manger de place */
}

/* CHAQUE CADRE PHOTO */
.photo {
    width: 100%;
    height: 180px; /* Hauteur réduite car les photos sont plus étroites à 6 par ligne */
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.photo img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Important pour que vos photos ne soient pas déformées */
    display: block;
    transition: transform 0.5s ease;
}

/* Effets au survol */
.photo:hover {
    transform: scale(1.05); /* Petit effet de zoom sur le cadre */
    z-index: 10; /* Passe au-dessus des autres lors du zoom */
}

/* --- RESPONSIVE : INDISPENSABLE POUR LE MOBILE --- */

/* Écrans moyens (Tablettes) : on passe à 3 photos par ligne */
@media (max-width: 1200px) {
    .grid-container {
        grid-template-columns: repeat(3, 1fr);
    }
    .photo { height: 200px; }
}

/* Petits écrans (Mobiles) : on passe à 2 ou 1 photo par ligne */
@media (max-width: 600px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .photo { height: 150px; }
}


/* ==========================================
   14. Styles pour la page Nos Actions
   ========================================== */
   
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Grille des actions */
.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

/* Cartes d'action */
.action-card {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.action-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-color: #e67e22; /* Couleur orange de l'accent */
}

/* Icônes dans les cartes */
.action-icon {
    font-size: 50px;
    color: #27ae60; /* Vert pour le développement/croissance */
    margin-bottom: 20px;
    display: inline-block;
}

.action-card h2 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.action-card h2::after {
    content: '';
    width: 50px;
    height: 3px;
    background: #e67e22;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.action-card p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Bouton d'action (CTA) */
.btn-contact:hover {
    background: #d35400 !important;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(230, 126, 34, 0.4);
}

/* Animation d'apparition (si vous utilisez du JS pour 'reveal') */
/* État initial : invisible et légèrement décalé vers le bas */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

/* État final : visible et à sa place (activé par le JS) */
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
/* --- Responsive --- */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }
    
    .actions-grid {
        grid-template-columns: 1fr; /* Une seule colonne sur mobile */
        gap: 20px;
    }
}

/* ==========================================
   15. Styles additionnels pour le Footer
   ========================================== */
   



/* --- FOOTER FINAL AJDDTA --- */

.footer {
    background-color: #2c3e50;
    padding: 40px 20px;
    text-align: center;
    border-top: 4px solid #e67e22;
    color: #ffffff;
}

/* Barre d'infos (Numéros et Map) */
.footer-info-bar {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Forçage des couleurs des icônes selon le logo */
.icon-orange { color: #e67e22 !important; }
.icon-green { color: #27ae60 !important; }

/* Correction radicale de la couleur des numéros */
.phone-number {
    color: #ffffff !important; 
    text-decoration: none !important;
    font-weight: bold;
    transition: 0.3s;
}

.phone-number:hover {
    color: #e67e22 !important; /* Orange au survol */
}

.location-text {
    font-weight: bold;
    color: #ffffff;
}

/* Réseaux Sociaux */
.social-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    color: white !important;
    border-radius: 50%;
    margin: 0 8px;
    transition: 0.3s;
}

.social-icon:hover {
    background: #e67e22;
    transform: translateY(-3px);
}

/* Copyright sur une seule ligne sur PC */
.copyright-container {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    font-size: 0.9rem;
    color: #bdc3c7;
    display: flex;
    justify-content: center;
}

.copyright-container span {
    white-space: nowrap; /* Force la ligne unique */
}

.designer-link {
    color: #ffffff !important;
    text-decoration: none;
}

.designer-link:hover {
    color: #27ae60 !important; /* Vert au survol */
}

/* Adaptation pour mobile (Tablette et Téléphone) */
@media (max-width: 900px) {
    .copyright-container span {
        white-space: normal; /* Autorise le retour à la ligne sur mobile pour éviter que ça sorte de l'écran */
        display: block;
        line-height: 1.6;
    }
    
    .footer-info-bar {
        flex-direction: column;
        gap: 15px;
    }
}
/* --- COULEURS LOGO AJDDTA --- */
:root {
    --orange-ajddta: #e67e22;
    --vert-ajddta: #27ae60;
}

/* Forçage de la couleur des numéros */
.phone-link.link-orange {
    color: var(--orange-ajddta) !important;
    -webkit-text-fill-color: var(--orange-ajddta) !important;
    font-weight: bold;
    text-decoration: none;
}

.phone-link.link-green {
    color: var(--vert-ajddta) !important;
    -webkit-text-fill-color: var(--vert-ajddta) !important;
    font-weight: bold;
    text-decoration: none;
}

/* STYLE DE LA SIGNATURE AUTHENTIC AVEC EFFET */
.signature-authentic {
    color: var(--orange-ajddta) !important;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    /* Petit effet d'ombre subtil pour faire ressortir le nom */
    text-shadow: 0 0 8px rgba(230, 126, 34, 0.3);
}

.signature-authentic:hover {
    color: var(--vert-ajddta) !important;
    -webkit-text-fill-color: var(--vert-ajddta) !important;
    text-shadow: 0 0 10px rgba(39, 174, 96, 0.5);
    text-decoration: underline;
}

/* --- STRUCTURE DU FOOTER --- */
.footer {
    background-color: #2c3e50;
    padding: 40px 20px;
    text-align: center;
    border-top: 4px solid var(--orange-ajddta);
}

.footer-info-bar {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.color-orange { color: var(--orange-ajddta) !important; }
.color-green { color: var(--vert-ajddta) !important; }

/* Copyright sur une ligne */
.copyright-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    white-space: nowrap; /* Force la ligne unique */
    font-size: 0.9rem;
}

.copyright-container span {
    white-space: nowrap;
}

/* Mobile */
@media (max-width: 768px) {
    .copyright-container span {
        white-space: normal;
    }
    .footer-info-bar {
        flex-direction: column;
        gap: 15px;
    }
}

/* --- Couleurs des icônes dans la grille des projets --- */

/* Style général de l'icône */
.action-icon i {
    font-size: 50px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

/* 1. Éducation (Orange) */
.action-card:nth-child(1) .action-icon i {
    color: #e67e22 !important; /* Orange AJDDTA */
}

/* 2. Santé (Vert) */
.action-card:nth-child(2) .action-icon i {
    color: #27ae60 !important; /* Vert AJDDTA */
}

/* 3. Développement Durable (Orange) */
.action-card:nth-child(3) .action-icon i {
    color: #e67e22 !important; /* Orange AJDDTA */
}

/* 4. Union & Culture (Vert) */
.action-card:nth-child(4) .action-icon i {
    color: #27ae60 !important; /* Vert AJDDTA */
}
/* 5. AGR & Autonomisation (Orange vif) */
.action-card:nth-child(5) .action-icon i {
    color: #FF9800 !important; /* Orange  AJDDTA */
}

/* 6. Sport & Cohésion (Orange) */
.action-card:nth-child(6) .action-icon i {
    color: #e67e22 !important; /* Orange AJDDTA */
}

/* 7. Numérique pour Tous (Bleu électrique ou Cyan foncé) */
.action-card:nth-child(7) .action-icon i {
    color: #007BFF !important; /*  Bleu */
}
/* 8. Solidarité & Urgences (Rouge corail ou Vert Émeraude (#E53935 ou #2E7D32)) */
.action-card:nth-child(8) .action-icon i {
    color: #2E7D32 !important; /* Vert AJDDTA */
}

/* Effet au survol de la carte : l'icône bouge légèrement */
.action-card:hover .action-icon i {
    transform: scale(1.1);
}

/* Couleurs spécifiques pour les icônes de projets */
.icon-orange {
    color: #e67e22 !important; /* Orange du logo */
}

.icon-green {
    color: #27ae60 !important; /* Vert du logo */
}
.icon-Bleu {
    color: #007BFF !important; /* Vert du logo */
}
.icon-green {
    color: #27ae60 !important; /* Vert du logo */
}

/* Taille des icônes pour qu'elles soient bien visibles */
.action-icon i {
    font-size: 50px;
    margin-bottom: 15px;
    display: block;
}

.signature-authentic {
    color: #27ae60; /* Vert AJDDTA */
    text-decoration: none;
    font-weight: bold;
    border-bottom: 1px solid transparent;
    transition: 0.3s;
}

.signature-authentic:hover {
    color: #e67e22; /* Passe à l'orange au survol */
    border-bottom: 1px solid #e67e22;
}

/* État initial : l'élément est caché et décalé vers le bas */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

/* État quand le JavaScript ajoute la classe "active" lors du scroll */
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Ce code force l'affichage pour vérifier si les éléments existent bien */
.reveal {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
    display: block !important;
}

/* code css image de fond page d'acceuil */
.hero-section {
    /* Chemin de l'image */
    background-image: url('images/DSCF7420.JPG');
    
    /* L'image s'adapte pour couvrir toute la zone sans se déformer */
    background-size: cover; 
    
    /* Positionnement pour éviter de ne voir que le ciel ou les arbres */
    background-position: center center;
    
    /* Hauteur : 60vh représente 60% de la hauteur de l'écran, 
       ce qui est idéal pour une bannière comme sur l'image */
    min-height: 60vh; 
    
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.overlay {
    /* Couleur sombre semi-transparente pour faire ressortir le texte */
    background-color: rgba(0, 0, 0, 0.4); 
    padding: 40px 20px;
    
    /* On retire border-radius: 10px et width/height 100% 
       si vous voulez que la bande noire traverse tout l'écran comme sur l'image */
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

h1 {
    font-size: 3rem; /* Ajustez selon vos besoins */
    margin-bottom: 10px;
    text-transform: uppercase;
    font-weight: bold;
}

p {
    font-size: 1.2rem;
}

/* Pour rendre le logo visible et lisible */
/* Style du conteneur de la barre de navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5%; /* Ajuste l'espacement sur les côtés */
    background-color: #ffffff; /* Assure un fond blanc pour le contraste */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Ajoute une légère ombre pour la profondeur */
}

/* Optimisation du logo */
.logo-container {
    display: flex;
    align-items: center;
}

.site-logo {
    height: 80px;    /* Augmente la hauteur pour la lisibilité */
    width: auto;      /* Garde les proportions de l'image */
    max-width: 100%;  /* Sécurité pour le mobile */
    transition: transform 0.3s ease; /* Petit effet au survol */
}

.site-logo:hover {
    transform: scale(1.05); /* Le logo s'agrandit légèrement au survol */
}

/* Ajustement des liens pour qu'ils soient alignés avec le logo */
.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* Adaptation Mobile (Responsive) (Pour éviter que le logo ne devienne minuscule ou n'écrase le menu sur téléphone) */

@media (max-width: 768px) {
    .navbar {
        flex-direction: column; /* Empile le logo et le menu */
        padding: 15px;
    }
    
    .site-logo {
        height: 60px; /* Un peu plus petit sur mobile */
        margin-bottom: 10px;
    }
    
    .nav-links {
        gap: 10px;
        font-size: 0.8rem;
    }
}

/* Style global de la section des articles pour la page actualité */
.ajddta-articles-container {
    max-width: 900px;
    margin: 30px auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333333;
    line-height: 1.6;
    padding: 0 15px;
}

/* Style de la carte/article */
.ajddta-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ajddta-card:hover {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

/* En-tête de l'article */
.ajddta-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.ajddta-badge {
    background-color: #2e7d32; /* Vert AJDDTA */
    color: #ffffff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-remerciement {
    background-color: #1565c0; /* Bleu pour les remerciements */
}

.ajddta-date {
    font-size: 0.85rem;
    color: #757575;
}

/* Titres et contenus */
.ajddta-title {
    color: #1a252f;
    font-size: 1.6rem;
    margin-top: 0;
    margin-bottom: 15px;
    line-height: 1.3;
}

.ajddta-chapeau {
    font-weight: 600;
    font-size: 1.05rem;
    color: #4a5568;
    background-color: #f8fafc;
    padding: 15px;
    border-left: 4px solid #2e7d32;
    border-radius: 0 6px 6px 0;
    margin-bottom: 20px;
}

.ajddta-content h3 {
    color: #2c3e50;
    font-size: 1.25rem;
    margin-top: 25px;
    margin-bottom: 10px;
    border-bottom: 2px solid #edf2f7;
    padding-bottom: 5px;
}

.ajddta-content ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.ajddta-content li {
    margin-bottom: 10px;
}

/* Citation / Conclusion */
.ajddta-quote {
    margin: 25px 0 10px 0;
    padding: 20px;
    background-color: #f0f7f4;
    border-radius: 8px;
    border: 1px solid #c8e6c9;
    font-style: italic;
    color: #1b5e20;
    font-size: 1.1rem;
    text-align: center;
}

.ajddta-quote footer {
    margin-top: 10px;
    font-style: normal;
    font-size: 0.9rem;
    color: #388e3c;
}

/* Adaptabilité mobile */
@media (max-width: 600px) {
    .ajddta-card {
        padding: 20px;
    }
    .ajddta-title {
        font-size: 1.3rem;
    }
    .ajddta-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* Style pour l'encadré "Cap sur la prochaine édition" */
.ajddta-next-edition {
    background-color: #e3f2fd; /* Fond bleu très clair */
    border-left: 4px solid #1565c0; /* Bordure bleue accordée au badge */
    padding: 15px 20px;
    border-radius: 0 6px 6px 0;
    margin: 20px 0;
}

.ajddta-next-edition h3 {
    color: #0d47a1;
    font-size: 1.15rem;
    margin-top: 0;
    margin-bottom: 8px;
    border-bottom: none !important; /* Pas de bordure sous ce titre spécifique */
    padding-bottom: 0 !important;
}

.ajddta-next-edition p {
    margin: 0;
    color: #334155;
    font-size: 0.95rem;
}