/* 
   Danané Actu - Feuille de style ultra-haute fidélité
   Version : 8.0 (Rejet complet de la densité Abidjan.net pour revenir à la pure maquette communale, avec carrousels horizontaux tactiles par rangée)
*/

:root {
    --primary-green: #005C2E;       /* Vert sapin de la maquette */
    --primary-green-dark: #004522; 
    --accent-orange: #FF6600;       /* Orange vif de la maquette */
    --accent-orange-dark: #E05300;
    --cream-bg: #EAE6DF;            /* Fond beige papier doux caractéristique */
    --white: #FFFFFF;
    --dark-text: #1C2833;
    --sidebar-yellow: #FEF9E7;      /* Couleur crème-jaune du bloc Annonces */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
}

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

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--cream-bg);
    color: var(--dark-text);
    line-height: 1.4;
    padding-bottom: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ==========================================================================
   STRUCTURE D'EN-TÊTE GRILLE (DOCKÉ EN DESKTOP) 
   ========================================================================== */

.site-header {
    background-color: transparent;
    position: relative;
    z-index: 1000;
    margin-bottom: 25px;
}

.header-grid {
    display: grid;
    grid-template-columns: 310px 1fr;
    align-items: stretch;
}

/* BLOC DE LOGO BLANC PROTRUDANT */
.logo-container {
    background-color: var(--white);
    padding: 15px 25px;
    border-bottom-left-radius: 35px;
    border-bottom-right-radius: 35px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    position: relative;
    z-index: 1010;
    margin-bottom: -22px; /* Dépasse sur la navigation verte et le hero */
}

.logo-circle {
    background-color: var(--primary-green);
    color: var(--white);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--accent-orange);
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.logo-tower-svg {
    width: 32px;
    height: 32px;
}

.logo-text h1 {
    font-size: 1.9rem;
    font-weight: 900;
    color: var(--primary-green);
    line-height: 0.95;
    letter-spacing: -0.5px;
}

.logo-text h1 .accent-red {
    color: #E74C3C; /* Accent rouge sur le é */
}

.logo-sub {
    color: var(--accent-orange);
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 5px;
    display: block;
    margin-top: 1px;
}

/* COLONNE DROITE EN-TÊTE */
.header-right-column {
    display: flex;
    flex-direction: column;
}

/* TOP BAR ORANGE */
.top-bar-orange {
    background: linear-gradient(to right, var(--accent-orange), var(--accent-orange-dark));
    color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 25px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.top-links-orange {
    display: flex;
    gap: 20px;
}

.top-link-item {
    color: var(--white);
    font-weight: bold;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0.95;
}

.top-link-item:hover {
    opacity: 1;
}

.top-search-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.made-with-ai-badge {
    background-color: var(--white);
    color: #2C3E50;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    box-shadow: var(--shadow-sm);
}

.search-form {
    display: flex;
    background: var(--white);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    height: 28px;
    border: 1px solid rgba(0,0,0,0.1);
}

.search-form input {
    border: none;
    padding: 0 10px;
    font-size: 0.8rem;
    outline: none;
    width: 170px;
}

.search-form button {
    background-color: var(--primary-green);
    color: var(--white);
    border: none;
    padding: 0 12px;
    cursor: pointer;
    font-size: 0.85rem;
}

/* NAVIGATION VERTE DE DROITE */
.main-navigation-green {
    background-color: var(--primary-green);
    display: flex;
    align-items: center;
    padding: 0 25px;
    height: 48px;
}

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

.nav-menu li a {
    color: var(--white);
    font-weight: bold;
    font-size: 0.82rem;
    padding: 15px 18px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.2px;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    background-color: var(--primary-green-dark);
    color: var(--accent-orange);
}

/* ==========================================================================
   MISE EN PAGE PRINCIPALE ET HERO 
   ========================================================================== */

.main-content-layout {
    display: flex;
    flex-direction: column;
    gap: 25px;
    padding-bottom: 50px;
}

.db-status-banner {
    background-color: #FFF2CC;
    border-left: 5px solid var(--accent-orange);
    color: #7B241C;
    padding: 10px 15px;
    border-radius: var(--border-radius-sm);
    font-size: 0.85rem;
    font-weight: bold;
}

/* HERO SECTION À BORDURE BLANCHE CARDER */
.hero-section {
    background-size: cover;
    background-position: center;
    height: 400px;
    border: 5px solid var(--white);
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: flex-end;
    padding: 35px;
    box-shadow: var(--shadow-md);
}

.hero-content {
    color: var(--white);
    max-width: 600px;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.7);
}

.hero-title {
    font-size: 2.3rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 10px;
}

.hero-excerpt {
    font-size: 1.05rem;
    margin-bottom: 15px;
    opacity: 0.95;
}

/* ==========================================================================
   SECTION DERNIÈRES NOUVELLES
   ========================================================================== */

.latest-news-section {
    margin-bottom: 5px;
}

.section-title {
    font-size: 1.4rem;
    font-weight: bold;
    font-style: italic;
    color: var(--primary-green);
    border-bottom: 3px solid var(--accent-orange);
    display: inline-block;
    padding-bottom: 2px;
    margin-bottom: 15px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.news-card {
    border: 3px solid var(--white);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    background-color: var(--primary-green); /* Fond vert sapin de la maquette */
    color: var(--white);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.card-image-wrapper {
    height: 135px;
    overflow: hidden;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-meta {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-category {
    color: #F5B041; /* Orange clair */
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.card-heading {
    font-size: 0.85rem;
    font-weight: bold;
    line-height: 1.35;
    flex-grow: 1;
}

.card-indicator-dot {
    background-color: var(--accent-orange);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-top: 10px;
    align-self: flex-start;
}

/* ==========================================================================
   GRILLES ET BLOCS MÉDIUMS DE LA MAQUETTE
   ========================================================================== */

/* ROW 1 : SOCIETE, ECONOMIE, WIDGET JAUNE */
.row-three-columns-top {
    display: grid;
    grid-template-columns: 1.25fr 1.25fr 1fr;
    gap: 20px;
}

.editorial-column-box {
    background-color: var(--white);
    border: 3px solid var(--white);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    position: relative;
    padding-top: 25px; /* Pour l'espace du badge chevauchant */
    min-height: 160px;
}

/* Badge horizontal tab */
.block-badge {
    position: absolute;
    top: -12px;
    left: 15px;
    background-color: var(--accent-orange);
    color: var(--white);
    font-weight: bold;
    font-size: 0.85rem;
    padding: 4px 18px;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.05);
}

.editorial-card-layout {
    display: flex;
    align-items: stretch;
    height: 100%;
}

.editorial-card-text {
    width: 58%;
    padding: 15px 12px 15px 15px;
    display: flex;
    align-items: center;
}

.editorial-card-text h3 {
    font-size: 0.95rem;
    font-weight: bold;
    color: var(--dark-text);
    line-height: 1.4;
    margin: 0;
}

.editorial-card-img {
    width: 42%;
    padding: 10px;
}

.editorial-card-img img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-radius: 6px;
}

/* WIDGET ANNONCES JAUNE */
.widget-yellow-ann {
    background-color: var(--sidebar-yellow);
    border: 1px solid #F5CBA7;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.yellow-ann-header {
    background-color: #FFF2CC;
    padding: 10px 15px;
    border-bottom: 2px solid #F5CBA7;
}

.yellow-ann-header h3 {
    color: #C0392B;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
}

.yellow-ann-header h3 i {
    color: #27AE60;
}

.yellow-ann-header p {
    font-size: 0.72rem;
    color: #7B241C;
    font-weight: bold;
    margin-top: 1px;
}

.yellow-ann-body {
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
}

.app-icon-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    width: 100%;
}

.app-icon-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 4px;
    border-radius: var(--border-radius-md);
    color: var(--white);
    font-size: 0.65rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}

.app-icon-btn i {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.app-icon-btn.red { background-color: #D98880; }
.app-icon-btn.green { background-color: #7DCEA0; }
.app-icon-btn.orange { background-color: #F0B27A; }

/* ROW 2 : ANNONCES ORANGE, AGENDA VERT, INFOS PRATIQUES ORANGE */
.row-three-columns-bottom {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 20px;
}

/* Annonces Orange */
.widget-orange-ann {
    background-color: var(--white);
    border: 3px solid var(--white);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    position: relative;
    padding-top: 25px;
    display: flex;
    flex-direction: column;
}

.widget-orange-ann-header {
    position: absolute;
    top: -12px;
    left: 15px;
    background-color: var(--accent-orange);
    color: var(--white);
    font-weight: bold;
    font-size: 0.85rem;
    padding: 4px 18px;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.05);
}

.widget-orange-ann-body {
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
    background-color: #FFF2E6; /* Fond léger orange */
    border-radius: var(--border-radius-sm);
}

.widget-orange-ann-body h4 {
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--dark-text);
    line-height: 1.35;
    margin-bottom: 12px;
}

.btn-orange-full {
    background-color: var(--accent-orange);
    color: var(--white);
    font-weight: bold;
    text-align: center;
    padding: 8px 12px;
    border-radius: var(--border-radius-sm);
    font-size: 0.8rem;
    display: block;
}

/* Agenda Vert (Double section interne de la maquette) */
.widget-agenda-green {
    background-color: #E8F8F5;
    border: 1px solid #A3E4D7;
    border-radius: var(--border-radius-md);
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    overflow: hidden;
}

.agenda-main-area {
    padding: 15px;
    border-right: 1px dashed #A3E4D7;
}

.agenda-title-row {
    margin-bottom: 10px;
}

.agenda-title-row h3 {
    color: var(--primary-green);
    font-size: 1.1rem;
    font-weight: bold;
    line-height: 1.1;
}

.agenda-title-row span {
    font-size: 0.72rem;
    color: #16A085;
    font-weight: bold;
}

.agenda-mini-list {
    list-style: none;
}

.agenda-mini-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    border-bottom: 1px solid rgba(22, 160, 133, 0.1);
    font-size: 0.78rem;
}

.agenda-mini-list li:last-child {
    border-bottom: none;
}

.agenda-mini-list .bullet {
    background-color: var(--accent-orange);
    color: var(--white);
    width: 15px;
    height: 15px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.62rem;
    font-weight: bold;
}

.agenda-mini-list .text {
    font-weight: bold;
    color: #117A65;
}

/* Côté Droit de l'Agenda (À ne pas manquer) */
.agenda-not-to-miss {
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.tag-not-to-miss {
    font-weight: bold;
    font-size: 0.75rem;
    color: #117A65;
    text-transform: uppercase;
}

.not-to-miss-links {
    list-style: none;
}

.not-to-miss-links li {
    font-size: 0.72rem;
    color: #117A65;
    font-weight: bold;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.not-to-miss-links li i {
    font-size: 0.95rem;
}

.text-blue {
    color: #2980B9;
}

.not-to-miss-row-icons {
    display: flex;
    gap: 5px;
    margin: 4px 0 4px 20px;
}

.btn-small-icon {
    background-color: #2980B9;
    color: var(--white);
    width: 22px;
    height: 22px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

.agenda-share-row {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    color: #16A085;
    font-size: 0.85rem;
}

/* Infos Pratiques Orange */
.widget-practical-orange {
    background-color: var(--white);
    border: 3px solid var(--white);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    position: relative;
    padding-top: 25px;
    display: flex;
    flex-direction: column;
}

.practical-title {
    position: absolute;
    top: -12px;
    left: 15px;
    background-color: var(--accent-orange);
    color: var(--white);
    font-weight: bold;
    font-size: 0.85rem;
    padding: 4px 18px;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.05);
}

.practical-subtitle {
    padding: 15px 15px 5px 15px;
    font-size: 0.75rem;
    font-weight: bold;
    color: #A04000;
    display: flex;
    align-items: center;
    gap: 5px;
    background-color: #FFF2E6;
}

.practical-icons-layout {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    padding: 15px !important;
    background-color: #FFF2E6;
    flex-grow: 1;
    border-radius: 0 0 var(--border-radius-sm) var(--border-radius-sm);
}

.practical-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.practical-icon-item:hover {
    transform: translateY(-3px);
}

.practical-icon-item:hover .practical-circle-btn {
    background-color: var(--accent-orange-dark);
    box-shadow: 0 4px 10px rgba(255, 102, 0, 0.3);
}

.practical-icon-item:hover .practical-circle-btn.green {
    background-color: var(--primary-green-dark);
    box-shadow: 0 4px 10px rgba(0, 92, 46, 0.3);
}

.practical-item-label {
    font-size: 0.65rem;
    font-weight: bold;
    text-align: center;
    color: var(--dark-text);
    transition: color 0.2s;
}

.practical-icon-item:hover .practical-item-label {
    color: var(--accent-orange);
}

.practical-circle-btn {
    background-color: var(--accent-orange);
    color: var(--white);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.practical-circle-btn.green {
    background-color: var(--primary-green);
}

/* ==========================================================================
   GALERIE ET BLOC BAS DE PAGE
   ========================================================================== */

.row-two-columns-bottom {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.gallery-wrapper-block {
    background-color: var(--white);
    border-radius: var(--border-radius-md);
    padding: 15px;
    box-shadow: var(--shadow-sm);
    border: 3px solid var(--white);
}

.gallery-block-header {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-green);
    border-bottom: 3px solid var(--accent-orange);
    display: inline-block;
    padding-bottom: 2px;
    margin-bottom: 15px;
}

.gallery-photos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 15px;
}

.gallery-photo-item {
    height: 130px;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
}

.gallery-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn-orange-wide {
    background-color: var(--accent-orange);
    color: var(--white);
    display: block;
    text-align: center;
    padding: 10px;
    border-radius: var(--border-radius-sm);
    font-weight: bold;
    font-size: 0.85rem;
}

/* Suivee-nous */
.widget-follow-green {
    background-color: #E8F8F5;
    border: 1px solid #A1DED2;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.follow-header {
    background-color: var(--primary-green);
    color: var(--white);
    padding: 10px 15px;
    font-weight: bold;
    font-size: 0.92rem;
}

.follow-body {
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
}

.follow-body p {
    font-size: 0.8rem;
    font-weight: bold;
    color: var(--primary-green);
    margin-bottom: 12px;
}

.social-mini-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    width: 100%;
}

.social-box {
    color: var(--white);
    height: 38px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}

.social-box.fb { background-color: #3B5998; }
.social-box.tw { background-color: #1DA1F2; }
.social-box.yt { background-color: #FF0000; }
.social-box.wa { background-color: #25D366; }

/* ==========================================================================
   PIED DE PAGE ET RESPONSIVITÉ
   ========================================================================== */

.main-footer {
    background-color: var(--primary-green-dark);
    color: var(--white);
    padding: 30px 0;
    margin-top: 35px;
    text-align: center;
    border-top: 5px solid var(--accent-orange);
}

.footer-links-row {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 12px;
    font-weight: bold;
    font-size: 0.78rem;
}

.footer-separator {
    color: var(--accent-orange);
    font-weight: bold;
}

.footer-copyright {
    font-size: 0.72rem;
    opacity: 0.8;
}

/* MENU BURGER RESPONSIVE MOBILE AVEC TIROIR COULISSANT GAUCHE-DROITE */
.burger-menu-btn {
    display: none;
}

.menu-close-item {
    display: none;
}

@media (max-width: 992px) {
    .header-grid {
        grid-template-columns: 1fr;
    }
    
    .logo-container {
        justify-content: center;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        margin-bottom: 0;
        padding: 10px;
    }
    
    .row-three-columns-top {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .row-three-columns-bottom {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .row-two-columns-bottom {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .top-bar-orange {
        flex-direction: column;
        gap: 8px;
        align-items: center;
        padding: 10px;
    }
    
    .main-navigation-green {
        height: auto;
        padding: 10px 15px;
    }

    .burger-menu-btn {
        display: block;
        background: none;
        border: none;
        color: var(--white);
        font-size: 1.5rem;
        cursor: pointer;
    }

    /* Le menu coulissant glisse de la GAUCHE vers la DROITE (démarre hors écran à left: -300px) */
    .nav-menu {
        position: fixed;
        top: 0;
        left: -300px; /* Caché à gauche */
        width: 260px;
        height: 100vh;
        background-color: var(--primary-green-dark);
        flex-direction: column;
        z-index: 1051;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 4px 0 15px rgba(0,0,0,0.4);
        padding: 60px 0 20px 0;
    }

    .nav-menu.open {
        left: 0; /* Glisse vers la droite */
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu li a {
        padding: 15px 25px;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        text-align: left;
    }

    .menu-close-item {
        display: block;
        position: absolute;
        top: 15px;
        right: 20px;
    }

    .menu-close-btn {
        background: none;
        border: none;
        color: var(--white);
        font-size: 2.2rem;
        cursor: pointer;
    }

    .menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(2px);
        z-index: 1050;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .menu-overlay.open {
        display: block;
        opacity: 1;
    }

    body.menu-lock {
        overflow: hidden;
    }

    /* CARROUSEL SCROLLABLE GAUCHE-DROITE SUR MOBILE POUR CHAQUE LIGNE DE LA MAQUETTE */
    .mobile-scroll-row {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        gap: 15px;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }

    .mobile-scroll-row > * {
        flex: 0 0 85% !important;
        scroll-snap-align: start;
    }

    .news-grid {
        display: flex !important; /* Force flex pour le scroll */
    }

    .hero-section {
        height: 280px;
        padding: 20px;
    }

    .hero-title {
        font-size: 1.6rem;
    }
}

/* ==========================================================================
   ADDITIONS VERSION 2 : HERO SLIDER DÉFILANT DYNAMIQUE & GRILLE 5x6
   ========================================================================== */

.hero-slider-wrapper {
    position: relative;
    border: 5px solid var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    height: 400px;
    box-shadow: var(--shadow-md);
}

.hero-slides-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: flex-end;
    padding: 35px;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-category-badge {
    background-color: var(--accent-orange);
    color: var(--white);
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: var(--border-radius-sm);
    display: inline-block;
    margin-bottom: 12px;
}

/* Flèches de navigation */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.4);
    color: var(--white);
    border: none;
    font-size: 1.5rem;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    transition: background-color 0.2s, color 0.2s;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-arrow:hover {
    background-color: var(--accent-orange);
    color: var(--white);
}

.prev-arrow { left: 20px; }
.next-arrow { right: 20px; }

/* Points de navigation */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slider-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.2s;
}

.slider-dots .dot.active {
    background-color: var(--accent-orange);
    width: 12px;
    height: 12px;
}

/* ==========================================================================
   GRILLE D'ACTUALITÉS 5 COLONNES x 6 RANGÉES
   ========================================================================== */
.flux-news-section-5x6 {
    margin-top: 15px;
    margin-bottom: 25px;
}

.news-grid-5x6 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

.compact-news-card-5x6 {
    background-color: var(--white);
    border: 3px solid var(--white);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}

.compact-news-card-5x6:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-green);
}

.compact-card-img-wrapper {
    height: 110px;
    position: relative;
    overflow: hidden;
}

.compact-card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.compact-card-category {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background-color: var(--primary-green);
    color: var(--white);
    font-size: 0.65rem;
    font-weight: bold;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: var(--border-radius-sm);
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.compact-card-meta {
    padding: 10px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.compact-card-heading {
    font-size: 0.8rem;
    font-weight: bold;
    color: var(--dark-text);
    line-height: 1.3;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.compact-card-link {
    font-size: 0.75rem;
    color: var(--accent-orange);
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: auto;
}

.compact-card-link:hover {
    color: var(--primary-green);
}

/* Responsivité pour la grille 5x6 et sliders */
@media (max-width: 1024px) {
    .news-grid-5x6 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .news-grid-5x6 {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-slider-wrapper {
        height: 280px;
    }
    .hero-slide {
        padding: 20px;
    }
}


/* ==========================================================================
   STYLES COMPLÉMENTAIRES POUR LA PAGE CATÉGORIE (V3)
   ========================================================================== */

/* Fil d'Ariane (Breadcrumbs) */
.breadcrumb-container {
    margin-top: 10px;
    background-color: var(--white);
    padding: 10px 20px;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-sm);
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--muted-gray);
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(0,0,0,0.03);
}

.breadcrumb-container a {
    color: var(--primary-green);
    transition: color 0.2s;
}

.breadcrumb-container a:hover {
    color: var(--accent-orange);
}

.breadcrumb-separator {
    color: var(--accent-orange);
}

/* Structure Page Catégorie */
.category-page-grid {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 25px;
    margin-top: 10px;
}

.category-main-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Grille d'articles de catégorie */
.category-articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* Cartes Articles Catégorie */
.category-article-card {
    background-color: var(--white);
    border: 3px solid var(--white);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}

.category-article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-green);
}

.category-card-img {
    height: 180px;
    overflow: hidden;
    position: relative;
}

.category-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.category-article-card:hover .category-card-img img {
    transform: scale(1.05);
}

.category-card-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.category-card-body h3 {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--dark-text);
    line-height: 1.35;
    margin-bottom: 10px;
}

.category-card-body p {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.45;
    margin-bottom: 15px;
}

.category-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px dashed rgba(0,0,0,0.06);
    padding-top: 12px;
}

.category-card-date {
    font-size: 0.75rem;
    color: var(--muted-gray);
    font-weight: bold;
}

.category-card-link {
    color: var(--accent-orange);
    font-weight: bold;
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.category-card-link:hover {
    color: var(--primary-green);
}

/* Zone d'information vide (No articles) */
.empty-category-box {
    background-color: var(--white);
    border: 3px solid var(--white);
    border-radius: var(--border-radius-md);
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.empty-category-icon {
    font-size: 3rem;
    color: var(--accent-orange);
    margin-bottom: 15px;
}

.empty-category-box h3 {
    font-size: 1.3rem;
    color: var(--primary-green);
    margin-bottom: 10px;
    font-weight: bold;
}

.empty-category-box p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
}

/* Listes d'annonces de style carnet/nécro pour rubrique Annonces */
.announcements-category-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.announcement-item-row {
    background-color: var(--white);
    border: 3px solid var(--white);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: border-color 0.2s;
}

.announcement-item-row:hover {
    border-color: var(--accent-orange);
}

.ann-item-left {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 80%;
}

.ann-item-badge {
    background-color: var(--primary-green);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: bold;
    padding: 3px 10px;
    border-radius: var(--border-radius-sm);
    align-self: flex-start;
    text-transform: uppercase;
}

.ann-item-title {
    font-size: 1.05rem;
    font-weight: bold;
    color: var(--dark-text);
}

.ann-item-desc {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.4;
}

.ann-item-contact {
    font-size: 0.78rem;
    color: var(--accent-orange-dark);
    font-weight: bold;
}

.ann-item-right {
    font-size: 1.8rem;
    color: var(--accent-orange);
}

@media (max-width: 992px) {
    .category-page-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .category-articles-grid {
        grid-template-columns: 1fr;
    }
    
    .announcement-item-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .ann-item-left {
        max-width: 100%;
    }
    
    .ann-item-right {
        align-self: flex-end;
    }
}


/* ==========================================================================
   STYLES COMPLÉMENTAIRES POUR LA PAGE ARTICLE (HIGH FIDELITY)
   ========================================================================== */

/* Fil d'Ariane (Breadcrumbs) */
.breadcrumb-container {
    margin-top: 15px;
    margin-bottom: 5px;
}

.breadcrumb-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: bold;
    color: var(--primary-green);
    background-color: var(--white);
    padding: 10px 15px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--white);
}

.breadcrumb-list a {
    color: var(--accent-orange);
    transition: color 0.15s;
}

.breadcrumb-list a:hover {
    color: var(--primary-green-dark);
}

.breadcrumb-list .separator {
    font-size: 0.65rem;
    color: #95A5A6;
}

.breadcrumb-list .active {
    color: var(--dark-text);
    opacity: 0.8;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    max-width: 300px;
}

/* Grille spécifique de la page article */
.article-page-grid {
    margin-top: 10px;
}

/* Bloc d'article complet */
.full-article-box {
    background-color: var(--white);
    border: 3px solid var(--white);
    border-radius: var(--border-radius-md);
    padding: 25px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 25px;
}

.article-detail-title {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary-green-dark);
    line-height: 1.15;
    margin-bottom: 15px;
    border-left: 5px solid var(--accent-orange);
    padding-left: 15px;
}

.article-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    font-size: 0.8rem;
    color: #7F8C8D;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px dashed var(--border-color);
}

.meta-item i {
    color: var(--accent-orange);
    margin-right: 4px;
}

.meta-item.category .block-badge {
    position: static;
    display: inline-block;
    padding: 2px 10px;
    font-size: 0.72rem;
    border-radius: 4px;
    box-shadow: none;
}

.article-detail-img-container {
    width: 100%;
    max-height: 450px;
    overflow: hidden;
    border-radius: var(--border-radius-md);
    margin-bottom: 25px;
    box-shadow: var(--shadow-sm);
}

.article-detail-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-detail-content {
    font-size: 1rem;
    line-height: 1.6;
    color: #2C3E50;
}

.article-lead {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-green);
    line-height: 1.45;
    margin-bottom: 20px;
    background-color: var(--sidebar-yellow);
    padding: 15px;
    border-radius: var(--border-radius-sm);
    border-left: 4px solid var(--accent-orange);
}

.article-detail-content p {
    margin-bottom: 15px;
    text-align: justify;
}

.dotted-article-divider {
    border: none;
    border-top: 2px dotted #BDC3C7;
    margin: 25px 0;
}

/* Zone Likes & Partages */
.interaction-share-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    background-color: #F8F9F9;
    padding: 15px 20px;
    border-radius: var(--border-radius-md);
    border: 1px solid #E5E7E9;
}

.like-container {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-like {
    background-color: var(--white);
    color: var(--dark-text);
    border: 1px solid #BDC3C7;
    font-weight: bold;
    font-size: 0.85rem;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-like i {
    color: #95A5A6;
    transition: transform 0.2s ease;
}

.btn-like:hover {
    background-color: var(--cream-bg);
    border-color: var(--accent-orange);
}

.btn-like:hover i {
    transform: scale(1.15);
}

.btn-like.liked {
    background-color: var(--accent-orange);
    color: var(--white);
    border-color: var(--accent-orange);
}

.btn-like.liked i {
    color: var(--white);
}

.likes-count {
    font-size: 0.85rem;
    color: #34495E;
}

.likes-count i {
    margin-right: 2px;
}

.share-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.share-title {
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--primary-green-dark);
}

.share-buttons-row {
    display: flex;
    gap: 8px;
}

.share-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.share-btn:hover {
    transform: translateY(-2px);
}

.share-btn.fb { background-color: #3B5998; }
.share-btn.tw { background-color: #1DA1F2; }
.share-btn.wa { background-color: #25D366; }

/* Encarts publicitaires réservés */
.editorial-advert-space {
    background-color: #FDF2E9;
    border: 2px dashed var(--accent-orange);
    border-radius: var(--border-radius-md);
    padding: 15px;
    text-align: center;
    margin-bottom: 25px;
}

.adv-tag {
    font-size: 0.65rem;
    font-weight: bold;
    text-transform: uppercase;
    color: var(--accent-orange-dark);
    display: block;
    margin-bottom: 6px;
    letter-spacing: 1px;
}

.adv-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--primary-green-dark);
}

.adv-banner i {
    font-size: 1.1rem;
}

.sidebar-ad-box {
    background-color: var(--white);
    border: 3px solid var(--white);
    border-radius: var(--border-radius-md);
    padding: 15px;
    box-shadow: var(--shadow-sm);
    margin-top: 20px;
}

.ad-small-tag {
    font-size: 0.62rem;
    font-weight: bold;
    color: #95A5A6;
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
    border-bottom: 1px solid #ECF0F1;
    padding-bottom: 3px;
}

.ad-img-mock {
    text-align: center;
    padding: 10px;
    background-color: #FDF2E9;
    border-radius: var(--border-radius-sm);
}

.ad-img-mock i {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.ad-img-mock h4 {
    font-size: 0.95rem;
    font-weight: 900;
    color: var(--primary-green-dark);
    margin-bottom: 5px;
}

.ad-img-mock p {
    font-size: 0.75rem;
    color: #555;
    line-height: 1.35;
    margin-bottom: 10px;
}

.ad-img-mock small {
    font-size: 0.7rem;
    font-weight: bold;
    color: var(--accent-orange-dark);
    display: block;
}

/* Espace Commentaires */
.comments-section {
    background-color: var(--white);
    border: 3px solid var(--white);
    border-radius: var(--border-radius-md);
    padding: 25px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 25px;
}

.comments-header {
    border-bottom: 3px solid var(--accent-orange);
    padding-bottom: 5px;
    margin-bottom: 20px;
}

.comments-header h2 {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--primary-green);
}

.comments-header h2 i {
    color: var(--accent-orange);
}

.auth-simulation-banner {
    background-color: #FFF2CC;
    border-left: 4px solid var(--accent-orange);
    padding: 10px 15px;
    border-radius: var(--border-radius-sm);
    margin-bottom: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.auth-simulation-banner a {
    color: var(--primary-green);
    text-decoration: underline;
    margin-left: 10px;
}

.auth-simulation-banner a:hover {
    color: var(--accent-orange);
}

.comment-form-container {
    margin-bottom: 25px;
}

.comment-write-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #BDC3C7;
    border-radius: var(--border-radius-sm);
    font-family: inherit;
    font-size: 0.85rem;
    outline: none;
    resize: vertical;
    transition: border-color 0.2s;
}

.comment-write-form textarea:focus {
    border-color: var(--primary-green);
}

.comment-locked-alert {
    background-color: #EAEDED;
    border: 1px dashed #BDC3C7;
    padding: 15px;
    border-radius: var(--border-radius-sm);
    text-align: center;
    font-size: 0.82rem;
    font-weight: bold;
    color: #566573;
}

.comment-locked-alert i {
    color: var(--accent-orange);
    margin-right: 4px;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.no-comments-yet {
    text-align: center;
    font-size: 0.85rem;
    color: #7F8C8D;
    font-style: italic;
    padding: 15px 0;
}

.comment-item-box {
    display: flex;
    gap: 12px;
    background-color: #F8F9F9;
    padding: 15px;
    border-radius: var(--border-radius-md);
    border: 1px solid #E5E7E9;
}

.comment-avatar {
    font-size: 2.2rem;
    color: var(--primary-green);
    display: flex;
    align-items: flex-start;
}

.comment-body-area {
    flex-grow: 1;
}

.comment-meta-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.commenter-name {
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--primary-green-dark);
}

.comment-date {
    font-size: 0.72rem;
    color: #95A5A6;
}

.comment-text-content {
    font-size: 0.82rem;
    color: #34495E;
    line-height: 1.45;
}

/* Grille des articles connexes */
.related-articles-section {
    margin-bottom: 5px;
}

.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.related-news-card {
    border: 3px solid var(--white);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    background-color: var(--primary-green);
    color: var(--white);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.related-card-img-wrapper {
    height: 120px;
    overflow: hidden;
}

.related-card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-card-meta {
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.related-card-heading {
    font-size: 0.8rem;
    font-weight: bold;
    line-height: 1.35;
    margin-bottom: 8px;
}

.related-card-heading a:hover {
    color: var(--accent-orange);
}

@media (max-width: 768px) {
    .related-articles-grid {
        grid-template-columns: 1fr;
    }
    .interaction-share-box {
        flex-direction: column;
        align-items: flex-start;
    }
    .article-detail-title {
        font-size: 1.5rem;
    }
}


/* ==========================================================================
   COMMUNAL SIDEBAR WIDGETS STYLING (CORRECTING AGENDA & PRACTICAL DISPLAYS)
   ========================================================================== */

.widget-card {
    background-color: var(--white);
    border: 3px solid var(--white);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: 25px;
}

/* Agenda Widget */
.widget-agenda {
    border: 3px solid var(--white);
}

.widget-agenda-header {
    background-color: var(--primary-green);
    color: var(--white);
    padding: 12px 15px;
    border-bottom: 3px solid var(--accent-orange);
}

.widget-agenda-header h3 {
    font-size: 1.05rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.widget-agenda-sub {
    font-size: 0.72rem;
    opacity: 0.95;
    display: block;
    margin-top: 3px;
    font-weight: 500;
}

.widget-agenda-body {
    padding: 15px;
    background-color: #F9F9F7;
}

.agenda-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.agenda-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
}

.agenda-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.agenda-date-box {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.agenda-date-box .bullet {
    background-color: var(--accent-orange);
    color: var(--white);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: bold;
}

.agenda-details h4 {
    font-size: 0.88rem;
    font-weight: bold;
    color: var(--dark-text);
    margin: 0;
    line-height: 1.3;
}

/* Infos Pratiques Widget */
.widget-practical {
    border: 3px solid var(--white);
}

.widget-practical-header {
    background-color: var(--accent-orange);
    color: var(--white);
    padding: 12px 15px;
    border-bottom: 3px solid var(--primary-green);
}

.widget-practical-header h3 {
    font-size: 1.05rem;
    font-weight: bold;
    margin: 0;
}

.widget-practical-sub {
    font-size: 0.72rem;
    opacity: 0.95;
    display: block;
    margin-top: 3px;
    font-weight: 500;
}

.widget-practical-body {
    padding: 18px 15px;
    background-color: #FFF2E6;
}

.practical-icons-layout {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
}

.practical-circle-btn {
    background-color: var(--accent-orange);
    color: var(--white);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
}

.practical-circle-btn:hover {
    transform: scale(1.08);
}

.practical-circle-btn.green {
    background-color: var(--primary-green);
}


/* ==========================================================================
   TWO-COLUMN ADVERTISING LAYOUT
   ========================================================================== */

.editorial-advert-space-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.editorial-advert-space-2col .editorial-advert-space {
    margin-bottom: 0; /* Override margin */
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 768px) {
    .editorial-advert-space-2col {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}


/* ==========================================================================
   AUTHENTICATION POPUP MODAL STYLING
   ========================================================================== */

.auth-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.auth-modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.auth-modal-card {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    width: 90%;
    max-width: 420px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    border: 4px solid var(--primary-green);
}

.auth-modal-overlay.open .auth-modal-card {
    transform: translateY(0);
}

.auth-modal-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #888;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.auth-modal-close-btn:hover {
    color: var(--accent-orange);
}

.auth-modal-tabs {
    display: flex;
    border-bottom: 2px solid var(--border-green);
    margin-bottom: 25px;
}

.auth-tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 12px 10px;
    font-size: 1rem;
    font-weight: bold;
    color: #888;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
}

.auth-tab-btn.active {
    color: var(--primary-green);
    border-bottom-color: var(--primary-green);
}

.auth-tab-content {
    display: none;
}

.auth-tab-content.active {
    display: block;
}

.auth-modal-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.auth-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.auth-form-group label {
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--dark-text);
}

.auth-form-group input {
    border: 1.5px solid #CBD5E1;
    border-radius: var(--border-radius-sm);
    padding: 10px 12px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}

.auth-form-group input:focus {
    border-color: var(--primary-green);
}

.auth-help-text {
    font-size: 0.72rem;
    color: #64748B;
    line-height: 1.3;
}

.btn-auth-submit {
    border: none;
    padding: 12px;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
}

/* Authentication alerts inside comments section */
.auth-alert {
    padding: 12px 15px;
    border-radius: var(--border-radius-sm);
    font-size: 0.85rem;
    font-weight: bold;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-alert.error-alert {
    background-color: #FDE8E8;
    color: #C81E1E;
    border-left: 4px solid #C81E1E;
}

.auth-alert.success-alert {
    background-color: #DEF7EC;
    color: #03543F;
    border-left: 4px solid #03543F;
}

.comment-locked-alert {
    background-color: #F8FAFC;
    border: 1.5px dashed #CBD5E1;
    border-radius: var(--border-radius-md);
    padding: 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.comment-locked-alert p {
    font-size: 0.9rem;
    font-weight: bold;
    color: #475569;
}

.comment-locked-alert .btn-orange {
    font-size: 0.9rem;
    padding: 10px 20px;
}


/* ==========================================================================
   MENU DÉROULANT "DANANÉ" (DESKTOP)
   ========================================================================== */

.nav-dropdown {
    position: relative;
}

.nav-dropdown:hover .dropdown-submenu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--primary-green-dark);
    min-width: 210px;
    box-shadow: var(--shadow-md);
    list-style: none;
    padding: 8px 0;
    margin: 0;
    border-top: 3px solid var(--accent-orange);
    border-bottom-left-radius: var(--border-radius-md);
    border-bottom-right-radius: var(--border-radius-md);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropdown-submenu li {
    width: 100%;
    margin: 0;
    padding: 0;
}

.dropdown-submenu li a {
    color: var(--white) !important;
    font-weight: bold !important;
    font-size: 0.8rem !important;
    text-transform: none !important; /* Pas de tout en majuscules */
    padding: 10px 20px !important;
    display: block !important;
    letter-spacing: 0.2px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background-color: transparent !important;
    transition: all 0.2s ease;
}

.dropdown-submenu li:last-child a {
    border-bottom: none;
}

.dropdown-submenu li a:hover {
    background-color: var(--primary-green) !important;
    color: var(--accent-orange) !important;
    padding-left: 24px !important; /* Effet de décalage au survol */
}

/* ==========================================================================
   RESPONSIVITÉ / AJUSTEMENT DROPDOWN MOBILE
   ========================================================================== */

@media (max-width: 768px) {
    /* Sur mobile, on affiche les sous-menus de manière verticale pliable */
    .dropdown-submenu {
        display: none;
        position: static;
        background-color: rgba(0, 0, 0, 0.15) !important;
        box-shadow: none !important;
        border-top: none !important;
        border-left: 3px solid var(--accent-orange) !important;
        padding: 5px 0 5px 15px !important;
        margin-top: 5px !important;
        width: 100% !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        border-radius: 0 !important;
        transition: none !important;
    }

    .dropdown-submenu.show {
        display: block !important;
    }

    .dropdown-submenu li a {
        padding: 10px 15px !important;
        font-size: 0.85rem !important;
        border-bottom: none !important;
    }

    .dropdown-submenu li a:hover {
        padding-left: 15px !important;
        background-color: transparent !important;
    }
}


/* ==========================================================================
   LOADER & SPINNER STYLES (FOR COMMENT SUBMISSION)
   ========================================================================== */

.submit-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin-loader 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

.comment-form-container {
    position: relative;
}

.form-loader-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.75);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: var(--border-radius-sm);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.form-loader-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.loader-spinner-circle {
    width: 35px;
    height: 35px;
    border: 3px solid rgba(0, 92, 46, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary-green);
    animation: spin-loader 1s linear infinite;
    margin-bottom: 10px;
}

.loader-text {
    font-size: 0.8rem;
    font-weight: bold;
    color: var(--primary-green);
}

@keyframes spin-loader {
    to { transform: rotate(360deg); }
}


/* ==========================================================================
   STYLE DU WIDGET NÉCROLOGIE (REMPLACE SUIVEZ-NOUS SUR L'INDEX)
   ========================================================================== */
.widget-necrology-green {
    background-color: #FFF5F5;
    border: 1px solid #FADBD8;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.necro-header {
    background-color: #7B241C; /* Rouge bordeaux funéraire élégant */
    color: var(--white);
    padding: 10px 15px;
    font-weight: bold;
    font-size: 0.92rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.necro-body {
    padding: 15px;
}

.necro-tagline {
    font-size: 0.72rem;
    font-weight: bold;
    color: #7B241C;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px dashed #FADBD8;
    padding-bottom: 4px;
}

.necro-mini-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.necro-mini-list li {
    border-bottom: 1px solid rgba(123, 36, 28, 0.05);
    padding-bottom: 8px;
}

.necro-mini-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.necro-item-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
}

.necro-item-link:hover {
    transform: translateX(3px);
}

.necro-avatar-mini {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #34495E;
    color: var(--white);
    border: 2px solid #7B241C;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.necro-avatar-mini img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.necro-item-details h4 {
    font-size: 0.82rem;
    font-weight: bold;
    color: #1C2833;
    line-height: 1.2;
    margin-bottom: 2px;
}

.necro-item-details small {
    font-size: 0.68rem;
    color: #7F8C8D;
    display: block;
    line-height: 1.2;
}

/* ==========================================================================
   STYLE POUR LA LISTE DE L'AGENDA (agenda.php) & DETAILS (agenda_content.php)
   ========================================================================== */
.agenda-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 15px;
}

.agenda-card {
    background-color: var(--white);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 3px solid var(--white);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.agenda-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-green);
}

.agenda-card-image {
    height: 160px;
    overflow: hidden;
    position: relative;
}

.agenda-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.agenda-card:hover .agenda-card-image img {
    transform: scale(1.05);
}

/* Date badge flottant sur l'image de l'évènement */
.agenda-card-date-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: var(--accent-orange);
    color: var(--white);
    padding: 6px 12px;
    border-radius: var(--border-radius-sm);
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.agenda-card-date-badge .day {
    font-size: 1.2rem;
    font-weight: 900;
    line-height: 1;
    display: block;
}

.agenda-card-date-badge .month {
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    display: block;
}

.agenda-card-body {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.agenda-card-title {
    font-size: 1rem;
    font-weight: bold;
    color: var(--primary-green);
    margin-bottom: 10px;
    line-height: 1.3;
}

.agenda-card-info-row {
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.agenda-card-info-row i {
    color: var(--accent-orange);
    width: 14px;
}

.agenda-card-excerpt {
    font-size: 0.8rem;
    color: #555;
    line-height: 1.4;
    margin-bottom: 15px;
    flex-grow: 1;
}

/* Agenda Content Details Page */
.agenda-detail-container {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    border: 5px solid var(--white);
    box-shadow: var(--shadow-sm);
    padding: 25px;
}

.agenda-detail-meta {
    background-color: #E8F8F5;
    border: 1px solid #A3E4D7;
    border-radius: var(--border-radius-md);
    padding: 15px 20px;
    margin: 20px 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.agenda-meta-card {
    display: flex;
    align-items: center;
    gap: 12px;
}

.agenda-meta-card .meta-icon {
    width: 40px;
    height: 40px;
    background-color: var(--primary-green);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: var(--shadow-sm);
}

.agenda-meta-card .meta-text h5 {
    font-size: 0.72rem;
    color: #16A085;
    text-transform: uppercase;
    font-weight: bold;
    margin-bottom: 1px;
}

.agenda-meta-card .meta-text p {
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--dark-text);
}

.agenda-detail-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #2C3E50;
    margin-top: 15px;
}

/* ========================================================================= =
   STYLE POUR LA GALERIE PHOTO (galerie.php)
   ========================================================================== */
.galerie-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 15px;
}

.galerie-item-card {
    background-color: var(--white);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 3px solid var(--white);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.galerie-item-card:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-orange);
}

.galerie-item-img {
    height: 180px;
    overflow: hidden;
}

.galerie-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.galerie-item-info {
    padding: 15px;
}

.galerie-item-info h3 {
    font-size: 0.95rem;
    font-weight: bold;
    color: var(--primary-green);
    margin-bottom: 6px;
    line-height: 1.3;
}

.galerie-item-info p {
    font-size: 0.78rem;
    color: #555;
    line-height: 1.4;
}

/* ========================================================================= =
   LIGHTBOX ZOOM MODAL (galerie.php)
   ========================================================================== */
.lightbox-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox-modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-modal-card {
    position: relative;
    max-width: 80%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: zoom-in-lightbox 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes zoom-in-lightbox {
    from { transform: scale(0.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lightbox-modal-img {
    max-width: 100%;
    max-height: 70vh;
    border-radius: var(--border-radius-md);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 4px solid var(--white);
    object-fit: contain;
}

.lightbox-modal-close-btn {
    position: absolute;
    top: -45px;
    right: 0;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.lightbox-modal-close-btn:hover {
    color: var(--accent-orange);
}

.lightbox-modal-caption {
    color: var(--white);
    text-align: center;
    margin-top: 15px;
    max-width: 600px;
}

.lightbox-modal-caption h3 {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--accent-orange);
    margin-bottom: 5px;
}

.lightbox-modal-caption p {
    font-size: 0.85rem;
    opacity: 0.9;
    line-height: 1.4;
}

/* ========================================================================= =
   ADJUSTMENTS FOR RESPONSIVE
   ========================================================================== */
@media (max-width: 992px) {
    .agenda-grid, .galerie-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .agenda-detail-meta {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

@media (max-width: 576px) {
    .agenda-grid, .galerie-grid {
        grid-template-columns: 1fr;
    }
}


/* ==========================================================================
   WIDGET PETITES ANNONCES MODERNE (ACCUEIL)
   ========================================================================== */
.mini-ann-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
    max-height: 290px;
    overflow-y: auto;
    padding-right: 5px;
}

/* Scrollbar fine pour les annonces */
.mini-ann-list::-webkit-scrollbar {
    width: 4px;
}
.mini-ann-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.03);
    border-radius: 4px;
}
.mini-ann-list::-webkit-scrollbar-thumb {
    background: var(--accent-orange);
    border-radius: 4px;
}

.mini-ann-item {
    background-color: var(--white);
    border: 1px solid rgba(255, 102, 0, 0.15);
    border-radius: var(--border-radius-sm);
    padding: 8px 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 3px;
    text-align: left;
}

.mini-ann-item:hover {
    border-color: var(--accent-orange);
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(255, 102, 0, 0.08);
    background-color: #FFFDF9;
}

.mini-ann-badge {
    align-self: flex-start;
    background-color: var(--accent-orange);
    color: var(--white);
    font-size: 0.62rem;
    font-weight: bold;
    padding: 1px 5px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.2px;
}

.mini-ann-title {
    font-size: 0.78rem;
    font-weight: bold;
    color: var(--dark-text);
    line-height: 1.3;
}


/* ==========================================================================
   TERRITOIRE DE NIMBA (FILTRAGE ET DESIGN)
   ========================================================================== */
.nimba-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.stat-card {
    background-color: var(--white);
    border-radius: var(--border-radius-md);
    padding: 15px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 5px solid var(--primary-green);
    transition: transform 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-card.p-green { border-left-color: var(--primary-green); }
.stat-card.p-green .stat-icon { color: var(--primary-green); background-color: #E8F8F5; }

.stat-card.p-emerald { border-left-color: var(--accent-emerald); }
.stat-card.p-emerald .stat-icon { color: var(--accent-emerald); background-color: #E8FDF0; }

.stat-card.p-orange { border-left-color: var(--accent-orange); }
.stat-card.p-orange .stat-icon { color: var(--accent-orange); background-color: #FFF2E6; }

.stat-card.p-yellow { border-left-color: #F1C40F; }
.stat-card.p-yellow .stat-icon { color: #F1C40F; background-color: #FEF9E7; }

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.stat-details h3 {
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--dark-text);
}

.stat-details p {
    font-size: 0.72rem;
    color: var(--muted-gray);
    font-weight: bold;
    text-transform: uppercase;
}

.nimba-filtering-panel {
    background-color: var(--white);
    border-radius: var(--border-radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 25px;
    border: 1px solid var(--border-green);
}

.search-box-wrapper {
    position: relative;
    margin-bottom: 15px;
}

.search-box-wrapper .search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted-gray);
    font-size: 1rem;
}

.search-box-wrapper input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 2px solid #EAE6DF;
    border-radius: var(--border-radius-md);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
    background-color: #F9F9F9;
}

.search-box-wrapper input:focus {
    border-color: var(--primary-green);
    background-color: var(--white);
}

.filter-tabs-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-tab-btn {
    background-color: #F5F2EC;
    color: var(--dark-text);
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-tab-btn:hover {
    background-color: #EAE6DF;
}

.filter-tab-btn.active {
    background-color: var(--primary-green);
    color: var(--white);
}

.filtered-count-info {
    font-size: 0.8rem;
    color: var(--muted-gray);
    margin-bottom: 15px;
}

.nimba-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.nimba-entity-card {
    background-color: var(--white);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid var(--border-green);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, opacity 0.3s ease;
    opacity: 1;
}

.nimba-entity-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.entity-card-header {
    padding: 12px 15px;
    color: var(--white);
    position: relative;
}

.entity-card-header.prefecture { background-color: var(--primary-green); }
.entity-card-header.sous_prefecture { background-color: #117A65; }
.entity-card-header.canton { background-color: var(--accent-orange); }
.entity-card-header.village_campement { background-color: #D35400; }

.entity-type-badge {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    display: block;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.entity-name {
    font-size: 1.1rem;
    font-weight: 800;
}

.entity-card-body {
    padding: 15px;
}

.entity-desc {
    font-size: 0.8rem;
    color: var(--dark-text);
    line-height: 1.4;
    margin-bottom: 12px;
}

.entity-details-list {
    list-style: none;
    border-top: 1px dashed var(--border-green);
    padding-top: 12px;
}

.entity-details-list li {
    font-size: 0.78rem;
    color: #555;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.entity-details-list li:last-child {
    margin-bottom: 0;
}

.entity-details-list li i {
    color: var(--accent-orange);
    width: 14px;
    text-align: center;
}

.no-nimba-results {
    background-color: var(--white);
    border-radius: var(--border-radius-md);
    padding: 40px;
    text-align: center;
    border: 1px dashed var(--accent-orange);
    display: none;
    margin-bottom: 30px;
}

.no-nimba-results i {
    font-size: 3rem;
    color: var(--accent-orange);
    margin-bottom: 15px;
}

.no-nimba-results h3 {
    font-size: 1.2rem;
    color: var(--primary-green);
    margin-bottom: 6px;
}

.no-nimba-results p {
    font-size: 0.85rem;
    color: var(--muted-gray);
}

.breadcrumb-container {
    background-color: var(--white);
    padding: 10px 15px;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-sm);
    margin-bottom: 25px;
    border: 1px solid var(--border-green);
}

.breadcrumb-list {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: bold;
    color: var(--muted-gray);
}

.breadcrumb-list a {
    color: var(--primary-green);
    text-decoration: none;
}

.breadcrumb-list a:hover {
    color: var(--accent-orange);
}

.breadcrumb-list .separator {
    font-size: 0.65rem;
    color: var(--border-green);
}

.breadcrumb-list .active {
    color: var(--dark-text);
}


/* ==========================================================================
   NIMBA STATS GRID MOBILE RESPONSIVE SCROLL
   ========================================================================== */
@media (max-width: 768px) {
    .nimba-stats-grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        gap: 15px !important;
        padding-bottom: 12px !important;
        margin-bottom: 20px !important;
        -webkit-overflow-scrolling: touch !important;
        scroll-snap-type: x mandatory !important;
        width: 100% !important;
    }
    
    .nimba-stats-grid .stat-card {
        flex: 0 0 75% !important;
        scroll-snap-align: start !important;
        box-sizing: border-box !important;
        min-width: 220px !important;
    }
}


/* ==========================================================================
   DEPECHES DEFILANTES (TICKER) STYLING
   ========================================================================== */
.ticker-wrapper-bar {
    display: flex;
    align-items: center;
    background-color: var(--white);
    border: 3px solid var(--white);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    margin-top: 15px;
    margin-bottom: 20px;
    height: 44px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-green);
}

.ticker-label {
    background-color: var(--accent-orange);
    color: var(--white);
    padding: 0 18px;
    font-weight: 900;
    font-size: 0.82rem;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 100%;
    z-index: 10;
    position: relative;
    box-shadow: 4px 0 8px rgba(0,0,0,0.1);
}

.ticker-scroll-content {
    overflow: hidden;
    flex-grow: 1;
    display: flex;
    align-items: center;
    height: 100%;
    position: relative;
    background-color: #FFFDF9; /* Très léger crème pour le confort de lecture */
}

.ticker-scroll-inner {
    display: flex;
    align-items: center;
    white-space: nowrap;
    padding-left: 10px;
    animation: ticker-scrolling 35s linear infinite;
}

.ticker-scroll-inner:hover {
    animation-play-state: paused;
}

.ticker-item {
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--dark-text);
    padding: 0 15px;
    display: inline-block;
}

.ticker-item a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ticker-item a:hover {
    color: var(--primary-green);
}

.ticker-separator {
    color: var(--accent-orange);
    font-weight: 900;
    font-size: 1rem;
}

.animate-pulse-fast {
    animation: pulse-fast 0.8s infinite alternate;
}

@keyframes pulse-fast {
    0% { opacity: 0.5; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1.1); }
}

@keyframes ticker-scrolling {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (max-width: 768px) {
    .ticker-wrapper-bar {
        height: 38px;
        margin-top: 10px;
        margin-bottom: 15px;
    }
    .ticker-label {
        font-size: 0.72rem;
        padding: 0 10px;
        gap: 4px;
    }
    .ticker-item {
        font-size: 0.78rem;
        padding: 0 10px;
    }
}

/* ==========================================================================
   NOUVEAUX STYLES DU PIED DE PAGE EN COLONNES (footer.php)
   ========================================================================== */
.main-footer {
    background-color: var(--primary-green-dark) !important;
    color: var(--white) !important;
    padding: 40px 0 25px 0 !important;
    text-align: left !important; /* On passe de center à left pour l'affichage en colonnes */
    border-top: 5px solid var(--accent-orange) !important;
    margin-top: 40px !important;
}

.footer-grid-columns {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 30px !important;
    margin-bottom: 25px !important;
}

.footer-col h4 {
    color: var(--accent-orange) !important;
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    margin-bottom: 15px !important;
    border-bottom: 2px solid rgba(255, 102, 0, 0.25) !important;
    padding-bottom: 6px !important;
    display: inline-block !important;
    letter-spacing: 0.5px !important;
}

.footer-col h4 i {
    margin-right: 6px !important;
    color: var(--accent-orange) !important;
}

.footer-col-links, .footer-col-contact {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.footer-col-links li, .footer-col-contact li {
    font-size: 0.82rem !important;
    line-height: 1.6 !important;
    margin-bottom: 10px !important;
    color: rgba(255, 255, 255, 0.85) !important;
}

.footer-col-links a {
    color: rgba(255, 255, 255, 0.85) !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.footer-col-links a i {
    font-size: 0.7rem !important;
    color: var(--accent-orange) !important;
    transition: transform 0.2s ease !important;
}

.footer-col-links a:hover {
    color: var(--accent-orange) !important;
    padding-left: 4px !important;
}

.footer-col-links a:hover i {
    transform: translateX(2px) !important;
}

.footer-col-contact li {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
}

.footer-col-contact li i {
    color: var(--accent-orange) !important;
    margin-top: 3px !important;
    width: 14px !important;
    text-align: center !important;
}

.footer-divider-line {
    border: none !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    margin: 25px 0 !important;
}

.footer-copyright-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 15px !important;
    font-size: 0.78rem !important;
    color: rgba(255, 255, 255, 0.7) !important;
}

.footer-copyright-row strong {
    color: var(--accent-orange) !important;
}

.footer-creator-credits {
    font-style: italic !important;
    font-size: 0.75rem !important;
    color: rgba(255, 255, 255, 0.5) !important;
}

@media (max-width: 992px) {
    .footer-grid-columns {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 25px !important;
    }
}

@media (max-width: 576px) {
    .footer-grid-columns {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    .footer-copyright-row {
        flex-direction: column !important;
        text-align: center !important;
    }
}

/* ==========================================================================
   WIDGET DE STATISTIQUES ET DE CONSULTATION DANS LE FOOTER
   ========================================================================== */
.footer-stats-bar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-md);
    padding: 15px 10px;
    margin: 25px auto 15px auto;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 500;
}

.footer-stat-item i {
    font-size: 1.2rem;
}

.footer-stat-item i.fa-users-line {
    color: var(--accent-orange) !important;
}

.footer-stat-item i.fa-chart-line {
    color: var(--accent-emerald) !important;
}

.footer-stat-item i.fa-eye {
    color: #F1C40F !important; /* Jaune or */
}

.footer-stat-item strong {
    font-size: 1.05rem;
    font-weight: 800;
    margin-right: 2px;
}

@media (max-width: 768px) {
    .footer-stats-bar {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
        padding: 15px 20px;
    }
}