/* === BASE === */
body {
    margin: 0;
    font-family: "Poppins", sans-serif;
    background: #f3f3f3;
}

.entete {
    background-color: #07873a;
    height: 25px;
    width: 100%;
    color: #ffffff;
    font-size: 11px;
    text-align: center;
    padding-top: 10px;
}

/* === CONTENEUR PRINCIPAL === */
.grid-container {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr auto;
    grid-template-areas:
        "header"
        "nav"
        "main"
        "footer";
    gap: 10px;
    padding: 10px;
    max-width: 1350px;
    background-color: #fff;
    margin: 0 auto;
}

.flash_card_cat.regionnal {
  padding: 5px;

  color: #eeeeec;
  /* Vert pour la catégorie régionale */
}

.flash_card_cat.national {
  padding: 5px;

  color: #04b321;
}

.flash_card_cat.international {
  padding: 5px;

  color: #fab941;
}


.main {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 200px auto;
    grid-area: main;
    grid-template-areas:
        "flash flash"
        "contenuflash contenuflash"
    ;
}


/* Titre gauche */
.contenuflash {
    grid-area: contenuflash;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

}










/* === DETAIL CONTAINER === */
.detail-container {
    width: 100%;
    /* Largeur ajustable selon ton besoin */
    max-width: 900px;
    /* Limite la largeur pour les grands écrans */
    background-color: #fafafa;
    /* Fond clair pour contraster avec le reste */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;

    gap: 20px;
}


.flash_info {
    overflow: hidden;
    width: 100%;
}

.flash_track {
    display: flex;
    gap: 10px;
    transition: transform 0.3s ease;
}

.flash_arrow {
    background-color: #07873a;
    color: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 50%;

    z-index: 1000;
    margin: 0 5px;
}

.flash_arrow:hover {
    background-color: #07873a;
}

.flash_arrow.left {
    order: 0;
}

.flash_arrow.right {
    order: 2;
}


/* === FLASH INFO === */
.flash {
    display: grid;
    grid-area: flash;
    background-color: #07873a;
    height: 100%;
    grid-template-columns: 10% 90%;
    grid-template-rows: 1fr;
    grid-template-areas: "flash_titre flash_info_wrapper";
    overflow: hidden;
}


.flash_info_wrapper {
    grid-area: flash_info_wrapper;
    display: flex;
    align-items: center;
    position: relative;
}

/* Titre gauche */
.flash_titre {
    grid-area: flash_titre;
    background-color: #07873a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.h24 {
    color: #fff;
    font-size: 40px;
    font-weight: bolder;
}

.h24_info {
    color: #fca607;
    font-size: 15px;
}

/* Zone info défilante */
.flash_info {
    grid-area: flash_info;
    overflow: hidden;
    position: relative;
}

/* Pause au survol */
.flash_info:hover .flash_track {
    animation-play-state: paused;
}

/* Cartes */
.flash_card {
    flex: 0 0 260px;

    background: #07873a;
    ;
    /* Dégradé vert */
    border-radius: 8px;

    display: flex;
    flex-direction: row;
    gap: 10px;
    padding: 8px;
    min-height: 100px;
    transition: transform 0.2s ease;
    cursor: pointer;

    text-decoration: none;
    /* Enlève le soulignement */

}

.flash_card:hover {
    transform: scale(1.02);
    background-color: #fca607;
    text-decoration: none;
    /* Enlève le soulignement */
}

.flash_card img {
    width: 90px;
    height: 90px;
    border-radius: 5px;
    object-fit: cover;
}

.flash_card_text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.flash_card_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.flash_card_time {
    color: #02410d;
    background-color: #fca607;
    font-size: 11px;
    padding: 5px;
    font-weight: bold;

}

.flash_card_title {
    font-size: 13px;
    color: #ffffff;
    font-weight: bold;
    margin: 0;
    margin-left: 5px;

}

.flash_card_cat {
    font-size: 11px;

    color: #fca607;
    font-weight: bold;
    margin-top: 4px;
}

.flash_card_excerpt {
    font-size: 11px;
    color: #ffffff;
    margin-top: 3px;
    font-weight: 300;
    line-height: 1.3;
}




/* Ajouter un léger effet d'ombre pour mieux les distinguer */
.flash_arrow:hover {
    background-color: #07873a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.carousel {
    display: grid;
    grid-area: carousel;
}

.actualite {
    display: grid;
    grid-area: actualite;
}

.une {
    display: grid;
    grid-area: une;
}

.video {
    display: grid;
    grid-area: video;
}

.audio {
    display: grid;
    grid-area: audio;
}

.conseil {
    display: grid;
    grid-area: conseil;
}

.direction {
    display: grid;
    grid-area: direction;
}

.delegue {
    display: grid;
    grid-area: delegue;
}

.coordinateur {
    display: grid;
    grid-area: coordinateur;
}

.document {
    display: grid;
    grid-area: document;
}

.galerie {
    display: grid;
    grid-area: galerie;
}

.partenaire {
    display: grid;
    grid-area: partenaire;
}



/* === HEADER === */
.header {
    display: grid;
    grid-area: header;
    grid-template-columns: 3fr 2fr 3fr 1fr;
    grid-template-areas: "header_pres logo header_icon amoirier";
    align-items: center;
    gap: 10px;
}

/* Présidents */
.header_pres {
  grid-area: header_pres;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  padding: 10px;

}

.president {
  text-align: center;
}

.president .photo {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #06ce06;
  padding: 5px;
  transition: border 0.3s ease;
  /* transition douce pour la bordure */
}

/* Bordure orange au survol */
.president .photo:hover {
    transform: scale(1.1);
  border: 2px solid orange;
  /* Change la bordure en orange au survol */
}


.photo {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #06ce06;
  padding: 5px;
  transition: border 0.3s ease;
}

/* Taille spéciale pour SAWADOGO Issaka */
.photo.speciale {
  width: 100px;
  /* EXEMPLE : taille plus grande */
  height: 100px;
  border: 3px solid #ff8800;
  /* Exemple autre couleur */
}


/* Taille spéciale pour SAWADOGO Issaka */
.president .photo.speciale:hover {
  width: 100px;
  /* EXEMPLE : taille plus grande */
  height: 100px;
  border: 3px solid #06ce06;
  /* Exemple autre couleur */
}

/* Bordure orange au survol */
.president .photo:hover {
  transform: scale(1.1);
  border: 3px solid orange;
  /* Change la bordure en orange au survol */
}


.president .nom {
  display: block;
  font-weight: bold;
  color: #133a03;
  font-size: 11px;
  margin-top: 5px;
}

.president-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.president-link:hover {
  text-decoration: none;

}
.president .fonction {
font-weight: bold;
  
}
.president .fonction,
.president .titre {
  display: block;
  font-size: 9px;
  font-weight: 300;
  color: #07873a;
  
}



/* Logo principal */
.logo {
    grid-area: logo;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo img {
    height: 120px;
    max-width: 100%;
}

/* Icônes header */
.header_icon {
    grid-area: header_icon;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: #e2f0e8;
    border-radius: 50px;
    height: 100px;
    flex-wrap: wrap;
    text-align: center;
}

.header_icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

/* Boîte pour chaque icône */
.icon-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #133a03;
    font-size: 12px;
    font-weight: 600;
    transition: transform 0.2s ease, color 0.3s ease;
}

/* === Point rouge clignotant avant "Direct" === */
.dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: red;
    border-radius: 50%;
    margin-right: 5px;
    animation: blink 1s infinite;
    vertical-align: middle;
}

/* Animation du clignotement */
@keyframes blink {

    0%,
    50%,
    100% {
        opacity: 1;
    }

    25%,
    75% {
        opacity: 0;
    }
}

.icon-box img {
    width: 55px;
    height: 55px;
    object-fit: contain;
    margin-bottom: 5px;
}

/* Effet au survol */
.icon-box:hover {
    transform: scale(1.1);
    color: #07873a;
}

/* Armoiries */

/* Armoiries */
.amoirier {
  grid-area: amoirier;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  color: #133a03;
  font-size: 12px;
  font-weight: bolder;
  transition: transform 0.2s ease, color 0.3s ease;
}

.amoirier img {
  width: 100px;
  height: 100px;
  max-width: 100%;
  margin-bottom: 5px;
}

/* Effet au survol */
.amoirier:hover {
  transform: scale(1.1);
  color: #07873a;
}

/* ==== MENU NAVBAR ==== */
.nav {
    grid-area: nav;
    background-color: #07873a;
    color: white;
    height: auto;
    border-radius: 30px;
    padding: 10px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    padding: 0 20px;
    flex-wrap: wrap;
}

.logo_nav img {
    height: 40px;
    max-width: 100%;
}

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

.nav-links li a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    font-size: 12px;
    transition: color 0.3s;
    background-color: #07873a;
    height: 40px;
    padding: 5px 10px;
    border-radius: 30px;
}

.nav-links li a:hover {
    color: #081f02;
    background-color: #f19f06;
}

/* ==== MENU BURGER ==== */
.menu-toggle {
    display: none;
    font-size: 28px;
    color: white;
    cursor: pointer;
}

/* === FOOTER === */
.footer {
    grid-area: footer;
    background-color: #07873a;
    color: #fff;
    padding: 30px 20px;
    border-radius: 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: auto;
}

.footer-logo img {
    width: 90px;
}

.footer-logo p {
    color: #ccc;
    font-size: 13px;
}

.footer-links h4,
.footer-social h4,
.footer-contact h4 {
    color: #f1c40f;
    margin-bottom: 10px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin: 5px 0;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
}

.footer-links a:hover {
    color: #f1c40f;
}

.footer-social a {
    color: #ccc;
    font-size: 22px;
    margin-right: 10px;
}

.footer-social a:hover {
    color: #f1c40f;
}

/* Pour bien centrer l'image et le texte à l’intérieur */
.detail-header {
    display: flex;
    align-items: center;
    justify-content: center;
    /* 🔹 Centre image + texte */
    flex-wrap: wrap;
    gap: 30px;
    width: 100%;
    text-align: left;
    /* Laisse le texte aligné proprement */
}

.detail-header img {
    width: 250px;
    height: 250px;
    border-radius: 8px;
    object-fit: cover;
    border: 3px solid #0b4b1e;
}

.detail-info {
    max-width: 500px;
}

.detail-info h2 {
    color: #0b4b1e;
    margin-bottom: 10px;
}

.detail-info p {
    margin: 5px 0;
    color: #333;
}

.description {
    margin-top: 25px;
    line-height: 1.7;
    color: #444;
    text-align: justify;
}

.video-section {
    margin-top: 30px;
    text-align: center;
}

.video-section iframe {
    width: 100%;
    max-width: 700px;
    height: 400px;
    border: none;
    border-radius: 10px;
}

.back-link {
    display: inline-block;
    margin-top: 20px;
    text-decoration: none;
    color: white;
    background-color: #0b4b1e;
    padding: 10px 18px;
    border-radius: 6px;
    transition: background-color 0.3s;
}

.back-link:hover {
    background-color: #14692f;
}

/* === RESPONSIVE === */


/* Mobiles (≤ 768px) */
@media (max-width: 768px) {

    .grid-container {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr;
        grid-template-areas:
            "header"
            "nav"
            "main"
            "footer";
    }

    .header {
        display: grid;
        grid-area: header;
        grid-template-columns: 1fr;
        grid-template-areas:
            "logo"
            "header_pres"
            "header_icon"
            "amoirier";
        text-align: center;
    }

    .header_pres {
        flex-direction: row;
        grid-area: header_pres;

    }

    .logo img {
        height: 90px;
    }

    .header_icon img {
        width: 50px;
        height: 50px;
    }

    .header_icon {
        flex-direction: row;
        justify-content: space-evenly;
        height: auto;
        padding: 10px;
    }

    .icon-box img {
        width: 45px;
        height: 45px;
    }

    .icon-box span {
        font-size: 11px;
    }

    /* Menu burger */
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: #07873a;
        display: none;
        text-align: center;
        border-radius: 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li a {
        padding: 10px;
        font-size: 14px;
        border-radius: 0;
    }

    .navbar {
        flex-direction: row;
        justify-content: space-between;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-social a {
        font-size: 28px;
    }

    .main {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: 200px auto;
        grid-area: main;
        grid-template-areas:
            "flash "
            "contenuflash "
        ;
    }


    /* Titre gauche */
    .contenuflash {
        grid-area: contenuflash;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;

    }

    .flash {
        display: grid;
        padding-bottom: 20px;
        grid-area: flash;
        background-color: #07873a;
        height: 100%;
        grid-template-columns: 100%;
        grid-template-rows: 60px 1fr;
        grid-template-areas: "flash_titre "
            "flash_info_wrapper";
        overflow: hidden;
    }


    .flash_info_wrapper {
        grid-area: flash_info_wrapper;
        display: flex;
        align-items: center;
        position: relative;
    }

    /* Titre gauche */
    .flash_titre {
        grid-area: flash_titre;
        background-color: #07873a;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        margin-bottom: 20px;
    }

    .h24 {
        color: #fff;
        font-size: 20px;
        font-weight: bolder;
    }

    .h24_info {
        color: #f3db05;
        font-size: 10px;
    }


}