/* =========================
   VARIABLES GLOBALES
   ========================= */
:root {
    --rouge: #9b0909;
    --bleu: #156082;
    --marron: #6d4c41;
    --beige: #f5eee2;

    --fond: #ffffff;
    --texte: #1f1f1f;
    --muted: #6b6b6b;

    --radius: 14px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.06);

    --transition: 0.16s ease;
}

/* =========================
   RESET SIMPLE
   ========================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, sans-serif;
    background: var(--fond);
    color: var(--texte);
    line-height: 1.6;
}

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

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

a:hover {
    text-decoration: none;
}

/* =========================
   LAYOUT
   ========================= */
.container {
    width: min(1120px, 100% - 2.5rem);
    margin-inline: auto;
}

.section {
    padding: 6rem 0 5rem;
}

.section-alt {
    background: var(--beige);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: clamp(2rem, 3vw, 2.6rem);
    margin: 0 0 0.5rem;
}

.section-title-small {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--muted);
    margin: 0;
}

/* =========================
   BOUTONS
   ========================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.4rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.btn-primary {
    background: var(--rouge);
    border-color: var(--rouge);
    color: #fff;
}
.btn-primary:hover {
    background: #7c0707;
    border-color: #7c0707;
    transform: translateY(-1px);
}

.btn-ghost {
    background: var(--bleu);
    border-color: var(--bleu);
    color: #fff;
}
.btn-ghost:hover {
    background: #104d69;
    border-color: #104d69;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #fff;
    border-color: var(--marron);
    color: var(--marron);
}
.btn-secondary:hover {
    background: var(--beige);
}

/* bouton mis en avant */
.btn-highlight {
    box-shadow: 0 0 0 3px rgba(155, 9, 9, 0.15);
    position: relative;
}
.btn-highlight::after {
    content: "★";
    margin-left: 0.45rem;
    font-size: 0.9rem;
}

/* =========================
   HEADER
   ========================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 900;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    justify-content: space-between;
    padding: 0.75rem 0;
}

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

/* Nav */
.main-nav ul {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav a {
    position: relative;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--texte);
    padding-bottom: 0.2rem;
}

/* Surlignage stylé */
.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: var(--bleu);
    transition: width 0.2s ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
    width: 100%;
}

/* section active */
.main-nav a.is-active::after {
    width: 100%;
    background: var(--rouge);
}

/* Burger */
.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 0.25rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #fff;
    cursor: pointer;
    margin-left: auto;
}
.burger span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #333;
    margin-inline: auto;
}

/* =========================
   BANDEAU RÉUNION PUBLIQUE
   ========================= */
.meeting-banner {
    position: fixed;
    bottom: 0;
    inset-inline: 0;
    padding: 0.6rem 0;
    background: linear-gradient(135deg, var(--rouge), var(--bleu));
    color: #fff;
    z-index: 1200;
    font-size: 0.9rem;
}
.meeting-banner.is-hidden {
    display: none;
}

.meeting-banner__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.meeting-banner__text {
    margin: 0;
}

.meeting-banner__close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
}

/* =========================
   BANDEAU COOKIES
   ========================= */
.cookie-banner {
    position: fixed;
    bottom: 3.4rem;
    left: 0;
    right: 0;
    z-index: 1100;
    pointer-events: none;
}
.cookie-banner__inner {
    pointer-events: auto;
    max-width: 520px;
    margin-left: auto;
    margin-right: 1.5rem;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
    padding: 0.9rem 1.2rem;
    display: flex;
    gap: 0.85rem;
    align-items: center;
}
.cookie-banner__icon {
    font-size: 1.6rem;
}
.cookie-banner__text {
    margin: 0 0 0.5rem;
    font-size: 0.9rem;
}
.cookie-banner__actions {
    display: flex;
    gap: 0.4rem;
}

.cookie-banner.hidden {
    display: none;
}

/* masqué sur mobile */
@media (max-width: 880px) {
    .cookie-banner {
        display: none;
    }
}

/* =========================
   HERO
   ========================= */
.hero {
    padding-top: 7rem;
    background: #ffffff;
}

/* Bloc texte + gros logo */
.hero-top {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.hero-top-text {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-title {
    font-size: clamp(2.4rem, 4vw, 3.3rem);
    margin: 0 0 0.5rem;
    color: var(--rouge);
}

.hero-kicker {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: 0.8rem;
}

.hero-text {
    margin-bottom: 1.5rem;
    color: var(--muted);
    max-width: 650px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero-top-logo {
    flex: 0 0 280px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.hero-top-logo img {
    max-width: 280px;
    width: 100%;
    height: auto;
}

/* Vidéo hero */
.hero-media .video-wrapper {
    border-radius: 0;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-top: 2rem;
}

.hero-video {
    width: 100%;
    display: block;
    border-radius: 0;
}

.video-caption {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--muted);
}

/* =========================
   FRISE 2020–2025
   ========================= */
.timeline {
    margin-top: 2.5rem;
    background: #fff;
    border-radius: 14px;
    padding: 1.8rem 1.8rem 1.6rem;
    box-shadow: var(--shadow);
}

.timeline-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    display: grid;
    gap: 1.2rem;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.timeline-item {
    padding-left: 1.2rem;
    position: relative;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--rouge), var(--bleu));
}

.timeline-year {
    font-weight: 700;
    margin-bottom: 0.15rem;
}

.timeline-text {
    font-size: 0.95rem;
    color: var(--muted);
}

.timeline-actions {
    margin-top: 1.5rem;
    text-align: center;
}

/* =========================
   SECTION MANDAT (SANS FOND IMAGE)
   ========================= */
.section-mandat-question {
    margin-top: 2.5rem;
}

.section-mandat-content {
    padding: 1.8rem 1.8rem 1.6rem;
    border-radius: 14px;
    background: var(--beige);
}

.section-mandat-content h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
}

/* =========================
   GRILLES & CARTES
   ========================= */
.cards-grid {
    display: grid;
    gap: 1.5rem;
}

.cards-grid--3 {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.cards-grid--4 {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.card {
    background: #fff;
    padding: 1.4rem 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.card h3 {
    margin-top: 0;
}

.card-link {
    display: block;
}

.card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 0.9rem;
}

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

/* Équipe */
.card-person {
    text-align: center;
}

.card-person-photo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--rouge), var(--bleu));
    border-radius: 999px;
    margin: 0 auto 0.75rem;
}

.card-person--leader {
    background: #fff;
}

.card-person-photo--leader {
    width: 100%;
    height: 220px;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.card-person-photo--leader img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Blog / actualités */
.card-blog .card-meta {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

/* =========================
   FORMULAIRES
   ========================= */
.form-grid {
    display: grid;
    gap: 1.2rem 1.5rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.form-field--full {
    grid-column: 1 / -1;
}

label {
    font-weight: 600;
    font-size: 0.9rem;
}

input[type="text"],
input[type="email"],
select,
textarea {
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.16);
    padding: 0.55rem 0.7rem;
    font: inherit;
}

textarea {
    resize: vertical;
}

.form-consent label {
    font-weight: 400;
}

.form-consent input[type="checkbox"] {
    margin-right: 0.4rem;
}

.form-actions {
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.form-success {
    margin: 0;
    font-size: 0.9rem;
    color: var(--bleu);
}

/* =========================
   FAQ
   ========================= */
.faq-list details {
    background: #fff;
    border-radius: 12px;
    padding: 0.9rem 1.1rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    margin-bottom: 0.9rem;
}

.faq-list summary {
    font-weight: 600;
    cursor: pointer;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list p {
    margin-top: 0.5rem;
    font-size: 0.95rem;
}

/* =========================
   CONTACT
   ========================= */
.contact-grid {
    display: grid;
    gap: 2rem;
}

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

.social-list li + li {
    margin-top: 0.4rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 0.5rem;
    font-size: 0.9rem;
    font-weight: 700;
}

.social-icon--facebook {
    background: var(--bleu);
    color: #fff;
}

/* =========================
   FOOTER
   ========================= */
.site-footer {
    background: #111;
    color: #fff;
    font-size: 0.85rem;
    padding: 1.8rem 0;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.site-footer a {
    color: #fff;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
}

/* =========================
   ANIMATIONS
   ========================= */
.fade-in {
    opacity: 0;
    transform: translateY(10px);
    transition: 0.35s ease-out;
}

.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 880px) {
    .main-nav {
        position: fixed;
        top: 4rem;
        inset-inline: 0;
        background: #ffffffee;
        transform: translateY(-120%);
        transition: 0.2s ease;
        padding: 1.5rem 0;
        box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
        z-index: 950;
    }

    .main-nav.is-open {
        transform: translateY(0);
    }

    .main-nav ul {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .burger {
        display: flex;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

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

    .cards-grid--4 .card-person--leader {
        grid-column: span 1;
    }

    .hero-top {
        flex-direction: column-reverse;
        align-items: flex-start;
    }

    .hero-top-logo {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 600px) {
    .section {
        padding: 4rem 0 3rem;
    }

    .timeline-list {
        grid-template-columns: 1fr;
    }
}
