/* ==========================================================================
   CHARTE GRAPHIQUE - ARRONDISSEMENT DE HÊVIÉ (BÉNIN)
   Design System Premium, Cohérent & Entièrement Responsive
   ========================================================================== */

/* IMPORT DE LA POLICE MONTSERRAT */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

:root {
    /* PALETTE DE COULEURS DE HÊVIÉ */
    --primary: #0a5246;
    /* Vert émeraude administratif */
    --primary-dark: #073a31;
    /* Vert foncé pour contrastes forts */
    --primary-light: #e6f0ee;
    /* Vert très clair pour arrière-plans de cartes */
    --accent: #c29738;
    /* Or/Ocre béninois */
    --accent-dark: #a17c2a;
    /* Or foncé pour les boutons au survol */
    --accent-light: #faf5e6;
    /* Or très clair */
    --danger: #be123c;
    /* Rouge brique culturel */
    --text-dark: #1e293b;
    /* Texte principal (Gris ardoise très foncé) */
    --text-muted: #64748b;
    /* Texte secondaire */
    --bg-light: #f8fafc;
    /* Arrière-plan de la page */
    --bg-white: #ffffff;
    /* Blanc pur pour les cartes */

    /* SYSTÈME DE GRILLES & OMBRES DE VALEUR */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 10px 25px -5px rgba(10, 82, 70, 0.05), 0 8px 10px -6px rgba(10, 82, 70, 0.05);
    --shadow-lg: 0 20px 40px -15px rgba(10, 82, 70, 0.1), 0 10px 20px -10px rgba(10, 82, 70, 0.08);
    --shadow-inset: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);

    /* RAYON DES ARROUNDIS */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;

    /* ANIMATIONS TRANSITIONS */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   RESET & STYLES GLOBAUX
   ========================================================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

/* TITRES */
h2,
h3,
h4,
h5,
h6 {
    color: var(--primary-dark);
    font-weight: 700;
    line-height: 1.3;
}

h1{
    color: white
    font-weight: 700;
    line-height: 1.3;
}
h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    position: relative;
    padding-bottom: 12px;
}

h2.section-title-line::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--accent);
    border-radius: 2px;
}

p {
    margin-bottom: 1rem;
}

.text-justify {
    text-align: justify;
    text-justify: inter-word;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent);
}

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

/* BOUTONS GENERIQUES */
.btn-primary-hevie {
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--primary);
    color: var(--bg-white) !important;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary-hevie:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-accent-hevie {
    display: inline-block;
    padding: 12px 28px;
    background-color: #0a5d56;
    color: var(--bg-white) !important;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

.btn-accent-hevie:hover {
    background-color: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* CONTENEUR */
.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* ==========================================================================
   NAVIGATION COHÉRENTE & GLASSMORPHIC HEADER
   ========================================================================== */
header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background: linear-gradient(70deg, rgba(34, 85, 45, 0.95), rgba(34, 85, 45, 0.95), rgba(60, 132, 49, 0.8), rgb(177, 235, 77));

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.navsize {
    width: 100%;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    max-width: 1240px;
    margin: 0 auto;
}

/* LOGO */
.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: var(--transition);
}

.logo:hover img {
    transform: scale(1.03);
}

.logo-small img {
    height: 70px;
    width: auto;
}

/* MENU DESKTOP */
.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 10px;
}

.nav-links>li {
    position: relative;
    padding: 10px 0;
}

.nav-links>li>a {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-links>li:hover>a,
.nav-links>li.active>a {
    color: var(--accent-light);
    background: rgba(255, 255, 255, 0.1);
}

/* SUBMENU MODERNE */
.submenu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--bg-white);
    min-width: 250px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(10, 82, 70, 0.08);
    list-style: none;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.submenu::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: transparent transparent var(--bg-white) transparent;
}

.dropdown:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.submenu li a {
    display: block;
    padding: 10px 16px;
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
}

.submenu li a:hover {
    background-color: var(--primary-light);
    color: var(--primary-dark);
    padding-left: 20px;
}

/* BOUTON MOBILE */
.btn-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: var(--bg-white);
    font-size: 1.5rem;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    cursor: pointer;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.btn-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* ==========================================================================
   MENU MOBILE TIROIR (DRAWER OVERLAY)
   ========================================================================== */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    z-index: 1999;
    transition: var(--transition);
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mnu-top {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    height: 100vh;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.3);
    z-index: 2000;
    overflow-y: auto;
    padding: 30px 20px;
    transition: var(--transition);
}

.mnu-top.vu {
    left: 0;
}

.mnu-top .mobile-logo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
}

.mnu-top .mobile-logo-header img {
    height: 45px;
}

.mnu-top .btn-close-mobile {
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
}

.mnu-top ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mnu-top li {
    width: 100%;
}

.mnu-top li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    color: white;
    font-weight: 600;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
}

.mnu-top li a:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--accent-light);
}

/* SOUS MENU MOBILE */
.mobile-submenu {
    max-height: 0;
    overflow: hidden;
    list-style: none;
    padding-left: 15px;
    margin-top: 5px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-left: 2px solid rgba(255, 255, 255, 0.2);
    transition: max-height 0.4s ease-out;
}

.mobile-submenu.active {
    max-height: 300px;
}

.mobile-submenu li a {
    background: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 8px 12px;
}

.mobile-submenu li a:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   BANNER HERO DIAPORAMA
   ========================================================================== */
.banner {
    position: relative;
    height: 80vh;
    min-height: 500px;
    overflow: hidden;
    margin-top: 70px;
    /* Espace pour le header sticky */
}

.slides {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 25px;
    left: 0;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 1.2s ease-in-out, transform 1.2s ease-in-out;
}

.slide.active {
    opacity: 1;
    transform: scale(1);
}

.banner .overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.fond {
    position: absolute;
    top: 70%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    z-index: 2;
    width: 90%;
    max-width: 800px;
    font-family: 'Arial', Helvetica, sans-serif;
    
}


.banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    z-index: 2;
    width: 90%;
    max-width: 800px;
}

.banner-content h1 {
    color: white;
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.banner-content p {
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 35px;
    color: var(--accent-light);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* MARQUEE INFOS */
.marquee {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #0a5d56;
    /* Fond Ocre d'accent */
    overflow: hidden;
    padding: 12px 0;
    z-index: 3;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

.marquee-content {
    display: inline-flex;
    white-space: nowrap;
    gap: 50px;
    animation: scrollText 35s linear infinite;
}

.marquee-content span {
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

@keyframes scrollText {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ==========================================================================
   PRESENTATION ASYMETRIQUE PREMIUM
   ========================================================================== */
.presentation {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.presentation .container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.presentation .text {
    flex: 1.2;
}

.presentation h2 {
    color: var(--primary-dark);
    margin-bottom: 25px;
    font-size: 2.2rem;
}

.presentation h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background-color: var(--accent);
    border-radius: 2px;
}

.presentation p {
    color: var(--text-dark);
    font-size: 1.05rem;
    margin-bottom: 20px;
    line-height: 1.8;
}

.presentation .image {
    flex: 0.8;
    position: relative;
}

.presentation .image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.presentation .image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100px;
    height: 100px;
    border-top: 4px solid var(--accent);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius-md) 0 0 0;
    z-index: 0;
}

.presentation .image::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    border-bottom: 4px solid var(--primary);
    border-right: 4px solid var(--primary);
    border-radius: 0 0 var(--radius-md) 0;
    z-index: 0;
}

.presentation .image:hover img {
    transform: scale(1.02);
}

/* ==========================================================================
   DOMAINES D'INTERVENTION (SERVICES GRID)
   ========================================================================== */
.services {
    padding: 100px 0;
    background-color: var(--bg-white);
    text-align: center;
}

.services h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    display: inline-block;
}

.services-intro {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 60px;
    font-size: 1.1rem;
}

.services-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.service-card {
    background-color: var(--bg-light);
    padding: 40px 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(10, 82, 70, 0.03);
    text-align: left;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    background-color: var(--bg-white);
    border-color: rgba(10, 82, 70, 0.08);
}

.service-card:hover::after {
    transform: scaleX(1);
}

.service-card .icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-light);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
    transition: var(--transition);
}

.service-card .icon i {
    font-size: 24px;
    color: var(--primary);
    transition: var(--transition);
}

.service-card:hover .icon {
    background-color: var(--primary);
}

.service-card:hover .icon i {
    color: white;
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--primary-dark);
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 0;
}

/* ==========================================================================
   TIMELINE HISTORIQUE (PAGE ACCUEIL & PAGE HISTORIQUE)
   ========================================================================== */
.historique {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.historique h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 60px;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-light) 0%, var(--primary) 20%, var(--primary) 80%, var(--primary-light) 100%);
    border-radius: 2px;
}

.timeline-item {
    padding: 20px 40px;
    position: relative;
    width: 50%;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 24px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--accent);
    border: 4px solid var(--bg-white);
    box-shadow: 0 0 0 4px rgba(194, 151, 56, 0.2);
    z-index: 2;
    transition: var(--transition);
}

.timeline-item:hover::before {
    background-color: var(--danger);
    transform: scale(1.2);
}

.timeline-item:nth-child(odd)::before {
    right: -10px;
}

.timeline-item:nth-child(even)::before {
    left: -10px;
}

.timeline-date {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-dark);
    margin-bottom: 8px;
    display: inline-block;
}

.timeline-content {
    background-color: var(--bg-white);
    padding: 25px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(10, 82, 70, 0.05);
    transition: var(--transition);
}

.timeline-content:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.timeline-content h3 {
    font-size: 1.2rem;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.timeline-content p {
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.btn-more {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-more:hover {
    color: var(--accent);
}

/* ==========================================================================
   SOMMAIRE DE L'HISTORIQUE (TOC INTERACTIVE)
   ========================================================================== */
.sommaire {
    background: var(--bg-white);
    padding: 30px;
    border-radius: var(--radius-md);
    border-left: 5px solid var(--accent);
    margin-bottom: 50px;
    box-shadow: var(--shadow-sm);
}

.sommaire h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
    color: var(--primary-dark);
}

.sommaire ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.sommaire li a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.sommaire li a::before {
    content: '\f0a9';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--accent);
}

.sommaire li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.bloc-historique {
    background: var(--bg-white);
    padding: 40px;
    border-radius: var(--radius-md);
    margin-bottom: 45px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(10, 82, 70, 0.05);
    transition: var(--transition);
    scroll-margin-top: 100px;
    opacity: 0;
    transform: translateY(40px);
}

.bloc-historique.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.bloc-historique:hover {
    box-shadow: var(--shadow-lg);
}

.bloc-historique h2 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.8rem;
    border-bottom: 1px solid var(--primary-light);
    padding-bottom: 15px;
}

.bloc-historique h2 i {
    margin-right: 12px;
    color: var(--accent);
}

.bloc-historique h3 {
    margin-top: 25px;
    color: var(--primary-dark);
    font-size: 1.15rem;
    border-left: 3px solid var(--accent);
    padding-left: 10px;
    margin-bottom: 12px;
}

.bloc-historique ul {
    list-style: none;
    margin-left: 10px;
    margin-bottom: 20px;
}

.bloc-historique ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
}

.bloc-historique ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
    font-size: 1.4rem;
    top: -2px;
}

/* ==========================================================================
   PAGE CHEF ARRONDISSEMENT
   ========================================================================== */
.chef-hero,
.hero-mairie,
.hero-actu,
.hero {
    height: 35vh;
    min-height: 250px;
    background: url('../asset/Image/Ministère1.png') center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    margin-top: 70px;
}

.chef-hero h1,
.hero-mairie h1,
.hero-actu h1,
.hero h1 {
    color: white;
    font-size: 2.5rem;
    font-weight: 800;
}

.chef {
    padding: 100px 0;
    background-color: var(--bg-white);
}

.container-chef {
    display: flex;
    gap: 60px;
    align-items: center;
}

.chef-image {
    flex: 0.8;
}

.chef-image img {
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 5px solid var(--primary-light);
}

.chef-content {
    flex: 1.2;
}

.chef-content h2 {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 25px;
}

.chef-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background-color: var(--accent);
    border-radius: 2px;
}

.chef-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.chef-content .signature {
    margin-top: 30px;
    font-weight: 700;
    color: var(--primary-dark);
    font-style: italic;
    font-size: 1.1rem;
    display: flex;
    flex-direction: column;
}

.chef-content .signature::after {
    content: 'Chef d\'Arrondissement de Hêvié';
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: normal;
}

/* VISION & OBJECTIFS */
.vision {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.vision h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
}

.objectifs {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: white;
    text-align: center;
}

.objectifs h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 40px;
}

.objectifs-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.objectif {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 30px 20px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.objectif:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.objectif i {
    font-size: 2.2rem;
    color: var(--accent);
    margin-bottom: 15px;
}

.objectif p {
    color: white;
    margin-bottom: 0;
    font-weight: 600;
    font-size: 0.95rem;
}

/* GRILLE ANCIENS CHEFS */
.anciens-chefs {
    padding: 100px 0;
    background-color: var(--bg-white);
}

.section-title h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.section-title p {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 50px;
}

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

.chef-card {
    background-color: var(--bg-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(10, 82, 70, 0.04);
    text-align: center;
    transition: var(--transition);
    padding-bottom: 25px;
}

.chef-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    background-color: var(--bg-white);
    border-color: rgba(10, 82, 70, 0.08);
}

.chef-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-bottom: 4px solid var(--primary-light);
    transition: var(--transition);
}

.chef-card:hover img {
    border-color: var(--accent);
}

.chef-card h3 {
    font-size: 1.15rem;
    color: var(--primary-dark);
    margin: 20px 0 5px;
    padding: 0 15px;
}

.chef-card span {
    display: inline-block;
    background-color: var(--accent-light);
    color: var(--accent-dark);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 15px;
}

.chef-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    padding: 0 20px;
    margin-bottom: 0;
    line-height: 1.6;
}

/* ==========================================================================
   PAGE MAIRIE ABOMEY-CALAVI
   ========================================================================== */
.mairie {
    padding: 100px 0;
    background-color: var(--bg-white);
}

.container-mairie {
    display: flex;
    gap: 60px;
    align-items: center;
}

.mairie-image {
    flex: 0.8;
}

.mairie-image img {
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.mairie-image .badge-maire {
    background-color: var(--accent);
    color: white;
    font-weight: 700;
    text-align: center;
    padding: 10px;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    margin-top: -4px;
}

.mairie-content {
    flex: 1.2;
}

.mairie-content h2 {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 25px;
}

.mairie-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background-color: var(--accent);
    border-radius: 2px;
}

.mairie-content p {
    font-size: 1.05rem;
    line-height: 1.8;
}

.mission {
    padding: 80px 0;
    background-color: var(--bg-light);
    text-align: center;
}

.mission h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    display: inline-block;
}

.mission p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* ==========================================================================
   ACCORDEONS SERVICES SAA & DAC ACCUEIL
   ========================================================================== */
.section-services-list {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.card-box {
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(10, 82, 70, 0.05);
    margin-bottom: 30px;
}

.card-box h2 {
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 12px;
}

.card-box h2 i {
    margin-right: 12px;
    color: var(--accent);
}

.card-box p {
    font-size: 1.05rem;
    margin-bottom: 20px;
}

.list {
    list-style: none;
    margin-bottom: 20px;
}

.list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    font-size: 1.02rem;
}

.list li i {
    position: absolute;
    left: 0;
    top: 4px;
    color: var(--accent);
    font-size: 1.1rem;
}

/* LISTES D'ACCORDÉONS INTERACTIVES (SAA / DAC) */
.services-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.service-item {
    border-radius: var(--radius-sm);
    border: 1px solid rgba(10, 82, 70, 0.08);
    background-color: var(--bg-light);
    overflow: hidden;
    transition: var(--transition);
}

.service-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.service-title {
    padding: 16px 20px;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--primary-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background-color: var(--bg-white);
    transition: var(--transition);
}

.service-title::after {
    content: '\f054';
    /* Flèche droite FontAwesome */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.9rem;
    color: var(--primary);
    transition: var(--transition);
}

.service-item.active .service-title {
    background-color: var(--primary);
    color: white;
}

.service-item.active .service-title::after {
    transform: rotate(90deg);
    color: white;
}

.service-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    background-color: var(--bg-white);
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.service-item.active .service-content {
    max-height: 500px;
    padding: 20px;
    border-top: 1px solid rgba(10, 82, 70, 0.08);
}

.service-content p {
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.service-content .dor {
    color: var(--accent);
    font-weight: bold;
    margin-right: 6px;
}

/* ==========================================================================
   PAGE ACTUALITÉS & FILTRES
   ========================================================================== */
.actus {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filters .btn {
    border: none;
    padding: 10px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    background-color: var(--bg-white);
    color: var(--text-dark);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.filters .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.filters .btn-primary {
    background-color: var(--primary);
    color: white;
}

.filters .btn-success {
    background-color: var(--bg-white);
    border: 1px solid var(--primary);
    color: var(--primary);
}

.filters .btn-success:hover,
.filters .btn-success.active {
    background-color: var(--primary);
    color: white;
}

.actus-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.actu-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(10, 82, 70, 0.04);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.actu-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(10, 82, 70, 0.08);
}

.actu-card img,
.actu-card video {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.actu-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.actu-content .date {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.actu-content h3 {
    font-size: 1.15rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
    line-height: 1.4;
}

.btn-actu {
    margin-top: auto;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-actu:hover {
    color: var(--accent);
}

.btn-actu::after {
    content: '→';
}

/* ==========================================================================
   PAGE CONTACT & COORDINATES
   ========================================================================== */
.contact {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.contact-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    margin-bottom: 60px;
}

.contact-form,
.contact-info {
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(10, 82, 70, 0.05);
}

.contact-form h2,
.contact-info h2 {
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 12px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #e2e8f0;
    background-color: #f8fafc;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    background-color: white;
    box-shadow: 0 0 0 3px rgba(10, 82, 70, 0.1);
}

.contact-form button {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 14px 28px;
    font-weight: 700;
    font-size: 1rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    width: 100%;
    transition: var(--transition);
}

.contact-form button:hover {
    background-color: var(--primary-dark);
    box-shadow: var(--shadow-md);
}

.info-box {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.info-box i {
    font-size: 1.3rem;
    color: var(--accent);
    margin-top: 4px;
}

.info-box p {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 0;
}

.btn-whatsapp {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    background-color: #25D366;
    color: white !important;
    padding: 12px 24px;
    font-weight: 700;
    border-radius: 30px;
    margin-top: 30px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background-color: #1ebe5d;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.map {
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 5px solid white;
}

.map iframe {
    width: 100%;
    height: 400px;
    border: none;
}

/* ==========================================================================
   BOUTON ROTATION RETOUR EN HAUT (BACK TO TOP)
   ========================================================================== */
#topBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 99;
    font-size: 1.2rem;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

#topBtn:hover {
    background-color: var(--accent);
    transform: translateY(-3px);
}

/* ==========================================================================
   SECTION PRE-FOOTER (LOCALISATION & COORDINATES - INDEX)
   ========================================================================== */
.pre-footer {
    background-color: var(--primary);
    color: white;
    padding: 60px 0;
}

.pre-footer-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.pre-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pre-box i {
    font-size: 2.2rem;
    color: var(--accent-light);
    margin-bottom: 15px;
}

.pre-box h3 {
    color: white;
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.pre-box p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
}

/* ==========================================================================
   FOOTER COMPONENT MODERNISÉ
   ========================================================================== */
.footer {
    background-color: var(--primary-dark);
    color: white;
    padding: 80px 0 30px;
    border-top: 4px solid var(--accent);
}

.footer-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
    gap: 40px;

    width: 90%;

    margin: auto;
    margin-bottom: 50px;
}

.footer-box h2 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.footer-box h3 {
    color: var(--accent);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-box p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.footer-box ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-box ul li a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
}

.footer-box ul li a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.socials {
    display: flex;
    gap: 12px;
}

.socials a {
    background-color: rgba(255, 255, 255, 0.08);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.2rem;
    transition: var(--transition);
}

.socials a:hover {
    background-color: var(--accent);
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ==========================================================================
   RESPONSIVE DESIGN (BREAKPOINTS COHERENTS)
   ========================================================================== */

/* Écrans de moyenne taille (Tablettes & Laptops) */
@media (max-width: 1024px) {
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .services-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .pre-footer-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .chefs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .objectifs-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .actus-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Écrans mobiles de taille large */
@media (max-width: 992px) {

    .nav-links,
    .logo-small {
        display: none;
    }

    .btn-toggle {
        display: flex;
    }

    .banner-content h1 {
        font-size: 2.8rem;
    }

    .banner-content p {
        font-size: 1.15rem;
    }
}

/* Écrans mobiles de taille moyenne & petite */
@media (max-width: 768px) {

    .presentation .container,
    .container-chef,
    .container-mairie,
    .contact-container {
        flex-direction: column;
        gap: 40px;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .presentation .image,
    .mairie-image,
    .chef-image {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 45px;
        padding-right: 0;
        text-align: left !important;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-item::before {
        left: 10px !important;
        right: auto !important;
    }

    .sommaire ul {
        grid-template-columns: 1fr;
    }

    .pre-footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .chefs-grid {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin: 0 auto;
    }

    .objectifs-container {
        grid-template-columns: 1fr;
    }

    .actus-container {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .card-box {
        padding: 25px;
    }

    .contact-form,
    .contact-info {
        padding: 25px;
    }

    #topBtn {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
}

/* ==========================================================================
   MODAL DE COMMUNIQUÉ ET DETAILED NEWS (PREMIUM)
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(7, 58, 49, 0.85);
    /* Vert foncé avec opacité */
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.4s ease;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 850px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(194, 151, 56, 0.2);
    position: relative;
    animation: modalSlideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 2.2rem;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.modal-close:hover {
    color: var(--danger);
    transform: rotate(90deg);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: 40px;
    color: white;
    position: relative;
}

.modal-badge {
    display: inline-block;
    background-color: var(--accent);
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 0.8rem;
    padding: 6px 16px;
    border-radius: 30px;
    text-transform: uppercase;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.modal-header h2 {
    color: white;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.modal-meta {
    font-size: 0.9rem;
    color: var(--accent-light);
}

.modal-body {
    padding: 40px;
}

.modal-desc {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 30px;
}

.alert-box {
    display: flex;
    gap: 15px;
    background-color: var(--accent-light);
    border-left: 4px solid var(--accent);
    padding: 15px 20px;
    border-radius: var(--radius-sm);
    margin-top: 20px;
    align-items: center;
}

.alert-box i {
    color: var(--accent-dark);
    font-size: 1.3rem;
}

/* TIMETABLE LAYOUT */
.timetable {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.timetable-day {
    background-color: var(--primary-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(10, 82, 70, 0.08);
}

.day-header {
    background-color: var(--primary);
    color: white;
    padding: 12px 20px;
    font-weight: 700;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.day-slots {
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.slot {
    display: flex;
    justify-content: space-between;
    padding: 8px 15px;
    background-color: var(--bg-white);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(10, 82, 70, 0.03);
}

.slot .time {
    font-weight: 700;
    color: var(--primary-dark);
}

.slot .location {
    font-weight: 600;
    color: var(--text-dark);
}

/* GALLERY LAYOUT */
.gallery-title {
    font-size: 1.3rem;
    color: var(--primary-dark);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 8px;
}

.modal-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.gallery-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gallery-item img {
    border-radius: var(--radius-sm);
    width: 100%;
    height: 140px;
    object-fit: cover;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.gallery-item img:hover {
    transform: scale(1.03);
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
}

.gallery-caption {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    font-weight: 500;
}

/* SIGNATURE */
.modal-signature {
    text-align: right;
    margin-top: 30px;
    border-top: 1px solid #e2e8f0;
    padding-top: 20px;
}

.modal-signature p {
    margin-bottom: 5px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.modal-signature .signature-name {
    font-weight: 700;
    color: var(--primary-dark);
    font-size: 1.1rem;
}

.modal-signature .signature-title {
    color: var(--accent-dark);
    font-weight: 600;
    font-size: 0.95rem;
}

/* LIGHTBOX FOR IMAGE ZOOM */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
    display: flex;
    opacity: 1;
}

.lightbox-overlay img {
    max-width: 90%;
    max-height: 85%;
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 35px;
    font-size: 3rem;
    color: white;
    cursor: pointer;
    transition: var(--transition);
}

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

/* RESPONSIVE FOR MODAL */
@media (max-width: 768px) {
    .modal-header {
        padding: 30px 20px;
    }

    .modal-body {
        padding: 30px 20px;
    }

    .modal-gallery {
        grid-template-columns: 1fr;
    }

    .gallery-item img {
        height: 200px;
    }

    .slot {
        flex-direction: column;
        gap: 5px;
    }
}