/* =========================================================
   GLOBAL
========================================================= */
:root {
    --green-main: #1f5e4b;
    --green-accent: #2f7a63;
    --green-light: #e6f1ed;
    --text-dark: #1c2b27;
    --white:#fff;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--green-main);
}

h1, h2 {
    letter-spacing: 0.04em;
}

h3 {
    margin-top: 40px;
}
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}


.page-section {
    padding: 80px 0;
}

.bg-light {
    background-color: #f8f9fa !important;
}
.bg-green-light {
    background-color: var(--green-light); !important;
}
.section-heading {
    text-align: center;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--green-main);
    letter-spacing: 0.06em;
    margin-bottom: 10px;
}

.divider {
    width: 80px;
    height: 4px;
    background-color: var(--green-main);
    margin: 15px auto 40px;
    border-radius: 2px;
}

.divider.light {
    background-color: var(--green-light);
}


/* =========================================================
   EQUIPE
========================================================= */

/* --- Section Équipe --- */
#equipe {
    background-color: #f4f7f6 !important; /* Un gris-vert très doux */
}

/* Style de la Carte */
#equipe .card {
    border: none;
    border-radius: 16px; /* Arrondis plus doux */
    background: #ffffff;
    transition: all 0.3s ease-in-out;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Effet au survol */
#equipe .card:hover {
    transform: translateY(-10px); /* La carte s'élève */
    box-shadow: 0 15px 35px rgba(31, 94, 75, 0.1) !important; /* Ombre teintée verte */
    border-color: var(--green-accent);
}

/* Nom du membre */
#equipe .card-body h5 {
    color: var(--green-main);
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    position: relative;
    padding-bottom: 10px;
}

/* Petit trait décoratif sous le nom */
#equipe .card-body h5::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background-color: var(--green-accent);
    opacity: 0.5;
}

/* Rôle / Profession */
#equipe .card-body .text-muted {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    font-weight: 600;
    color: var(--green-accent) !important; /* On donne de la couleur au rôle */
    margin-bottom: 1rem;
}

/* Biographie */
#equipe .card-body .small {
    color: #546e7a;
    line-height: 1.6;
    font-style: italic;
}

/* Ajustement pour l'accessibilité : focus visible */
#equipe .card:focus-within {
    outline: 2px solid var(--green-accent);
    outline-offset: 4px;
}

#equipe strong {
    color: var(--green-accent);
}
/* =========================================================
   HERO
========================================================= */

.hero {
    position: relative;
    height: 75vh;
    background: url('../img/header.webp') center / cover no-repeat;
    color: #fff;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.45);
}

.hero-content {
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    max-width: 900px;
}

.hero-title {
    font-size: 2.6rem;
    font-weight: 700;
        color: #fff;

}

.hero-subtitle {
    font-size: 1.3rem;
    margin-top: 12px;
}

.hero-meta {
    margin-top: 20px;
    font-size: 0.95rem;
    opacity: 0.9;
}

/* =========================================================
   PRINCIPES / LISTES
========================================================= */

.principes-list,
.gouvernance-list,
.engagements-list {
    max-width: 700px;
    margin: 30px auto 0;
    list-style: none;
    padding: 0;
}

.principes-list li,
.gouvernance-list li,
.engagements-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--green-light);
}


.engagements-list li {
    border-color: rgba(255, 255, 255, 0.3);
}

/* --- Section Annonce de Candidature --- */
#candidature {
    background: linear-gradient(to bottom, #ffffff, #fdfdfd);
}

/* Le titre du candidat */
#candidature h3 {
    font-size: 2.5rem;
    color: var(--green-dark);
    margin-top: 10px;
    margin-bottom: 5px;
    font-weight: 800;
}

/* Infos clés (Profession | Age) */
.candidat-meta {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    color: var(--green-accent) !important;
    font-size: 0.9rem;
    margin-bottom: 30px;
}

/* Citation / Engagement : Mise en valeur "Punchline" */
.candidat-engagement {
    font-style: italic;
    line-height: 1.5;
    color: var(--green-main) !important;
    max-width: 800px;
    margin: 0 auto 40px;
    padding: 15px;
    position: relative;
    border-top: 1px solid rgba(31, 94, 75, 0.1);
    border-bottom: 1px solid rgba(31, 94, 75, 0.1);
}

/* Guillemets décoratifs */
.candidat-engagement::before {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    padding: 0 15px;
    font-size: 3rem;
    color: var(--green-accent);
    line-height: 1;
}

/* Biographie : Texte plus fluide et aéré */
.candidat-bio {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-main);
    text-align: justify;
    max-width: 800px;
    margin: 0 auto;
}

/* Animation subtile pour le texte */
#candidature .col-md-8 {
    animation: fadeInSlide 1s ease-out;
}

@keyframes fadeInSlide {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

#equipe .btn {
    background-color: var(--green-main);
    border-color: var(--green-main);
}

/* =========================================================
   LISTE MUNICIPALE – TITRE ET DESCRIPTION
========================================================= */

.liste-header {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.liste-nom {
    font-weight: 700;
    font-size: 1.5rem;
    color: #1f5e4b;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.liste-description {
    font-size: 1.1rem;
    color: #4a5f59;
    margin: 0;
    text-align: justify;
    line-height: 1.8;

}

/* =========================================================
   AXES DE PROJET
========================================================= */

.axe-projet {
    margin-bottom: 50px;
}

.axe-projet h3 {
    font-weight: 600;
    margin-bottom: 8px;
}
.axe-objectif {
    font-style: italic;
    color: var(--green-accent);
    margin-bottom: 14px;
}

#projet .btn {
    background-color: var(--green-main);
    border-color: var(--green-main);
}

/* =========================================================
   MEGA MENU
========================================================= */

.mega-btn-fixed {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
    width: 48px;
    height: 48px;
    background-color: var(--green-main);
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

.mega-icon,
.mega-icon::before,
.mega-icon::after {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    position: absolute;
    left: 13px;
    transition: 0.3s;
}

.mega-icon {
    top: 23px;
}

.mega-icon::before {
    content: "";
    top: -7px;
    position: absolute;
}

.mega-icon::after {
    content: "";
    top: 7px;
    position: absolute;
}

.mega-menu {
    position: fixed;
    inset: 0;
    background-color: #0f2f26;
    color: #fff;
    display: none;
    z-index: 1040;
}

.mega-menu.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.mega-inner {
    max-width: 500px;
    width: 100%;
    text-align: center;
}

.mega-title a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

.mega-links {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.mega-links li {
    margin: 8px 0;
}

.mega-links a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
}

.mega-cat {
    margin-top: 20px;
    font-weight: 600;
    opacity: 0.7;
}

.mega-cta {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 25px;
    border: 1px solid #fff;
    color: #fff;
        border-color: var(--green-light);

    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9rem;
}
.mega-cta:hover,
.mega-cta:focus-visible {
    background-color: var(--green-light);
    color: var(--green-main);
}

/* =========================================================
   CONTACT
========================================================= */

#contact .form-control {
    border-radius: 0;
    font-size: 0.95rem;
}

#contact textarea {
    resize: none;
}

#contact button {
    background-color: var(--green-main);
    border-color: var(--green-main);
}

#contact button:hover,
#contact button:focus-visible {
    background-color: var(--green-accent);
    border-color: var(--green-accent);
}

/* =========================================================
   FOOTER
========================================================= */

.footer {
    font-size: 0.9rem;
        background-color: var(--green-main);
    color: #fff;
}

.footer a {
    text-decoration: none;
        color: #eaf4f0;

}

.footer a:hover {
    text-decoration: underline;
        color: #ffffff;

}



/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .page-section {
        padding: 60px 0;
    }
}

/* =========================================================
   ACCORDÉONS (PROJET)
========================================================= */
.gouvernance-list {
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 0 auto;
}

.collapse-toggle {
    background: var(--white) !important;
    border: 1px solid #e0e6ed !important;
    padding: 1.25rem 1.5rem !important;
    border-radius: var(--radius-md) !important;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    transition: var(--transition);
    text-decoration: none !important;
      color: var(--green-main);
}

.collapse-toggle:hover {
    border-color: var(--green-accent) !important;
    background-color: var(--green-soft) !important;
          color: var(--green-main);

}

.collapse-icon {
    width: 24px;
    height: 24px;
    background: var(--green-soft);
    color: var(--green-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-weight: bold;
    font-size: 1.2rem;
}

.collapse-toggle[aria-expanded="true"] .collapse-icon {
    background: var(--green-main);
    color: var(--white);
    transform: rotate(45deg); /* Transformation en X */
}


.collapse-content {
    background-color: #f4f8f6;
    border-left: 4px solid #1f5e4b;
    padding: 14px 18px;
    margin-left: 10px;
    border-radius: 4px;
}

.collapse-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.collapse-list li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 6px;
    color: #2f4f45;
    font-size: 0.95rem;
}

.collapse-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #1f5e4b;
    font-weight: bold;
}
/* --- Boutons CTA du Hero --- */

/* Bouton Principal (Plein) */
.btn-cta-primary {
    background-color: var(--green-accent);
    color: white !important;
    border: 2px solid var(--green-accent);
    padding: 12px 30px;
    border-radius: 50px; /* Style arrondi très sympathique */
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-cta-primary:hover {
    background-color: white;
    color: var(--green-accent) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Bouton Secondaire (Contour) */
.btn-cta-outline {
    background-color: transparent;
    color: white !important;
    border: 2px solid white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px); /* Effet de verre moderne */
}

.btn-cta-outline:hover {
    background-color: white;
    color: var(--green-main) !important;
    transform: translateY(-2px);
}

/* Ajustement mobile pour les boutons */
@media (max-width: 576px) {
    .hero-cta {
        padding: 0 20px;
    }
    .btn-lg {
        font-size: 1rem;
    }
}

#newsletter button {
    background-color: var(--white);
    color: var(--green-main);
    border-color: var(--green-main);
}
#newsletter h2 {
    color: var(--white);
}
.newsletter-section {
    background-color: var(--green-main) !important;
    color: var(--white);
}

.candidat-portrait {
    width: 250px;
    height: 250px;
    margin: 0 auto 24px;
    overflow: hidden;
    border-radius: 12px; /* carré adouci, pas rond */
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    animation: fadeUp 0.8s ease-out both;
}

.candidat-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.4s ease;
}

/* micro-interaction au survol */
.candidat-portrait:hover img {
    transform: scale(1.05);
    filter: contrast(1.05);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.candidat-meta {
    font-weight: 500;
    opacity: 0.85;
    margin-bottom: 12px;
}

.candidat-engagement {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 20px;
}

.candidat-bio {
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.6;
}
