/* =======================================================
   MAIRIE DE MONTJEAN (53320) — Feuille de style globale
   style.css
   ======================================================= */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,600;0,700;1,400&family=Source+Sans+3:wght@400;500;600;700&display=swap');


/* ── 1. Variables ──────────────────────────────────────── */
:root {
    /* Palette — extraite du logo Montjean */
    --clr-green: #79AE35;
    /* vert du rectangle logo   */
    --clr-green-dark: #598021;
    /* vert foncé — hover       */
    --clr-green-light: #EDF4DC;
    /* vert très clair — fond   */
    --clr-blue: #3C82C8;
    /* bleu du J courbe         */
    --clr-blue-light: #D8EAFA;
    --clr-dark: #202020;
    /* noir bande logo          */
    --clr-text: #2A3820;
    /* texte principal          */
    --clr-text-mid: #526040;
    /* texte secondaire         */
    --clr-gray-bg: #F5F7F2;
    /* fond section alterné     */
    --clr-border: #CDD9B2;
    --clr-white: #FFFFFF;

    /* Typographie */
    --font-display: 'Lora', Georgia, serif;
    --font-body: 'Source Sans 3', system-ui, -apple-system, sans-serif;

    /* Échelle typographique */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.225rem;
    --text-xl: 1.375rem;
    --text-2xl: 1.75rem;
    --text-3xl: 2.25rem;
    --text-4xl: 3rem;

    /* Espacement */
    --sp-1: 0.25rem;
    --sp-2: 0.5rem;
    --sp-3: 0.75rem;
    --sp-4: 1rem;
    --sp-5: 1.25rem;
    --sp-6: 1.5rem;
    --sp-8: 2rem;
    --sp-10: 2.5rem;
    --sp-12: 3rem;
    --sp-16: 4rem;
    --sp-20: 5rem;

    /* Conteneur */
    --container-max: 1200px;
    --container-pad: clamp(1rem, 4vw, 2.5rem);

    /* Rayons */
    --radius-sm: 3px;
    --radius-md: 7px;
    --radius-lg: 14px;

    /* Ombres */
    --shadow-sm: 0 2px 8px rgba(28, 28, 28, 0.07);
    --shadow-card: 0 3px 14px rgba(28, 28, 28, 0.08);
    --shadow-lift: 0 8px 28px rgba(121, 174, 53, 0.16);

    /* Transitions */
    --ease: 200ms ease;
}


/* ── 2. Reset & base ───────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.75;
    color: var(--clr-text);
    background: var(--clr-white);
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--clr-blue);
    text-decoration: none;
    transition: color var(--ease);
}

a:hover {
    color: var(--clr-green-dark);
}

a:focus-visible {
    outline: 2px solid var(--clr-green);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

ul {
    list-style: none;
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}


/* ── 3. En-tête ────────────────────────────────────────── */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--clr-white);
    box-shadow: 0 2px 10px rgba(28, 28, 28, 0.12);
}

/* Bande supérieure : fond sombre du logo, logo centré */
.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--sp-3) var(--container-pad);
    background: var(--clr-dark);
    gap: var(--sp-4);
    flex-wrap: wrap;
}

.logo-link img {
    height: 54px;
    width: auto;
}

.header-links {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
}

.quick-link {
    font-size: var(--text-sm);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.82);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: var(--sp-2) var(--sp-4);
    border-radius: var(--radius-sm);
    transition: color var(--ease), background var(--ease);
}

.quick-link:hover {
    color: var(--clr-green);
    background: rgba(255, 255, 255, 0.07);
}

/* Bouton « Connexion » : mis en avant par une bordure */
.quick-link--login {
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.quick-link--login:hover {
    border-color: var(--clr-green);
}

/* ── Navigation : bande verte + menus déroulants ──────────── */
.main-nav {
    background: var(--clr-green);
    position: relative;
    z-index: 200;
}

/* Burger — masqué sur desktop */
.nav-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: var(--sp-3) var(--sp-4);
    background: none;
    border: none;
    cursor: pointer;
    margin-left: auto;
}

.burger-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--clr-white);
    border-radius: 2px;
    transition: transform var(--ease), opacity var(--ease);
}

/* Liste principale */
.nav-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

/* Chaque item de nav */
.nav-item {
    position: relative;
}

/* Bouton déclencheur de catégorie */
.nav-trigger {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    padding: var(--sp-3) var(--sp-5);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--clr-white);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: none;
    border: none;
    cursor: pointer;
    transition: background var(--ease);
    white-space: nowrap;
}

.nav-trigger:hover,
.nav-item.is-open .nav-trigger {
    background: var(--clr-green-dark);
}

/* Flèche SVG */
.nav-arrow {
    transition: transform var(--ease);
    flex-shrink: 0;
}

.nav-item.is-open .nav-arrow {
    transform: rotate(180deg);
}

/* Dropdown */
.nav-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--clr-white);
    border-top: 3px solid var(--clr-green);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: 0 8px 24px rgba(28, 28, 28, 0.14);
    z-index: 300;
    padding: var(--sp-2) 0;
}

.nav-item.is-open .nav-dropdown {
    display: block;
}

.nav-dropdown li a {
    display: block;
    padding: var(--sp-3) var(--sp-5);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--clr-text);
    transition: background var(--ease), color var(--ease), padding-left var(--ease);
}

.nav-dropdown li a:hover {
    background: var(--clr-green-light);
    color: var(--clr-green-dark);
    padding-left: calc(var(--sp-5) + 6px);
}

/* Séparateurs entre items */
.nav-dropdown li+li {
    border-top: 1px solid var(--clr-border);
}


/* ── 4. Contenu principal ──────────────────────────────── */

.site-content {
    min-height: 60vh;
}


/* ── 5. Hero ───────────────────────────────────────────── */

.hero {
    position: relative;
    overflow: hidden;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2A3820 0%, var(--clr-green-dark) 60%, var(--clr-green) 100%);
}

/* Image de fond — pleine opacité, aucun filtre */
.hero > img:first-child {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    z-index: 0;
}

/* Pas d'overlay sombre */
.hero::after {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--sp-12) var(--container-pad);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(var(--text-2xl), 5vw, var(--text-4xl));
    font-weight: 700;
    color: var(--clr-dark);
    line-height: 1.15;
    margin-bottom: var(--sp-3);
}

/*
  Signature visuelle — le même rectangle vert que dans le logo,
  appliqué sous chaque titre de hero comme marque d'identité.
*/
.hero-title::after {
    content: '';
    display: block;
    margin: var(--sp-4) auto 0;
    width: 56px;
    height: 4px;
    background: var(--clr-green);
    border-radius: 2px;
}

.hero-text {
    font-size: var(--text-lg);
    color: var(--clr-text-mid);
    max-width: 560px;
    margin-top: var(--sp-2);
}


/* ── 6. Section ────────────────────────────────────────── */

.section {
    padding: var(--sp-16) var(--container-pad);
    background: var(--clr-white);
}

.section:nth-of-type(even) {
    background: var(--clr-white);
}

.section-content {
    max-width: var(--container-max);
    margin: 0 auto;
}

/*
  Signature — bordure gauche verte sur tous les titres de section.
  Déclinaison du rectangle vert du logo, fil rouge visuel du site.
*/
.section-title {
    font-family: var(--font-display);
    font-size: clamp(var(--text-xl), 3vw, var(--text-3xl));
    font-weight: 700;
    color: var(--clr-dark);
    line-height: 1.25;
    padding-left: var(--sp-5);
    border-left: 4px solid var(--clr-green);
    margin-bottom: var(--sp-6);
}

/* Sur fond vert clair (sections paires), le titre vire au vert foncé */
.section:nth-of-type(even) .section-title {
    color: var(--clr-green-dark);
}

.section-text {
    font-size: var(--text-lg);
    color: var(--clr-text-mid);
    max-width: 740px;
    line-height: 1.85;
    margin-bottom: var(--sp-8);
}


/* ── 7. Cards ──────────────────────────────────────────── */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--sp-6);
    margin-top: var(--sp-6);
}

.card {
    position: relative;
    overflow: hidden;
    background: var(--clr-white);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    padding: var(--sp-6);
    box-shadow: var(--shadow-card);
    transition: box-shadow var(--ease), transform var(--ease);
}

/* Liseré vert en haut de chaque card — signature visuelle du site */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--clr-green);
}

.card:hover {
    box-shadow: var(--shadow-lift);
    transform: translateY(-3px);
}

/* Section:nth-of-type(even) → fond vert clair, cards restent blanches avec bordure verte */
.section:nth-of-type(even) .card {
    background: var(--clr-white);
    border-color: var(--clr-green);
    box-shadow: 0 3px 14px rgba(121,174,53,0.12);
}

.section:nth-of-type(even) .card:hover {
    box-shadow: var(--shadow-lift);
}

/* En-tête : logo + titre alignés */
.card-header {
    display: flex;
    align-items: center;
    gap: var(--sp-4);
    margin-bottom: var(--sp-4);
    padding-bottom: var(--sp-4);
    border-bottom: 2px solid var(--clr-green);
}

.card-title {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--clr-dark);
    line-height: 1.3;
}

/* Logo optionnel dans l'en-tête (ex: logos d'association) */
.card-image {
    flex-shrink: 0;
    display: block;
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 50%;
    border: 1px solid var(--clr-border);
    background: var(--clr-white);
    padding: 4px;
}

.card-text {
    font-size: var(--text-base);
    color: var(--clr-text-mid);
    line-height: 1.7;
    margin-top: var(--sp-2);
}

.card-text:first-of-type {
    margin-top: 0;
}

/* Tableau des réseaux (Facebook, site web, Instagram...) */
.card-reseaux {
    width: 100%;
    border-collapse: collapse;
    margin-top: var(--sp-5);
    font-size: var(--text-sm);
}

.card-reseaux th,
.card-reseaux td {
    padding: var(--sp-2) 0;
    text-align: left;
    border-top: 1px solid var(--clr-border);
}

.card-reseaux tr:first-child th,
.card-reseaux tr:first-child td {
    border-top: none;
}

.card-reseaux th {
    font-weight: 600;
    color: var(--clr-text);
    width: 40%;
}

.card-reseaux td a {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-1);
    font-weight: 600;
    color: var(--clr-blue);
}

.card-reseaux td a:hover {
    color: var(--clr-green-dark);
}


/* ── 8. Actions / Boutons ──────────────────────────────── */

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-3);
    margin-top: var(--sp-6);
}

/* Bouton principal — vert plein */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-2);
    padding: var(--sp-3) var(--sp-6);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    background: var(--clr-green);
    color: var(--clr-white);
    border: 2px solid transparent;
    transition: background var(--ease), box-shadow var(--ease), color var(--ease);
    cursor: pointer;
}

.btn:hover {
    background: var(--clr-green-dark);
    color: var(--clr-white);
    box-shadow: 0 4px 16px rgba(89, 128, 33, 0.30);
}

.btn:focus-visible {
    outline: 2px solid var(--clr-green-dark);
    outline-offset: 3px;
}

/* Boutons secondaires (à partir du 2e dans .actions) — contour bleu */
.actions .btn+.btn {
    background: var(--clr-white);
    color: var(--clr-blue);
    border-color: var(--clr-blue);
}

.actions .btn+.btn:hover {
    background: var(--clr-blue-light);
    color: var(--clr-blue);
    box-shadow: none;
}


/* ── 9. Liste ──────────────────────────────────────────── */

.list {
    margin-top: var(--sp-4);
    display: flex;
    flex-direction: column;
}

.list-item {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding: var(--sp-3) 0;
    font-size: var(--text-base);
    color: var(--clr-text);
    border-bottom: 1px solid var(--clr-border);
}

.list-item:last-child {
    border-bottom: none;
}

.list-item::before {
    content: '';
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--clr-green);
}


/* ── 10. Tableau ───────────────────────────────────────── */

.table-wrapper {
    overflow-x: auto;
    margin-top: var(--sp-6);
    border-radius: var(--radius-md);
    border: 1px solid var(--clr-border);
    box-shadow: var(--shadow-card);
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-sm);
    background: var(--clr-white);
}

/* En-tête du tableau : fond sombre — reprend la bande noire du logo */
.table-head {
    background: var(--clr-dark);
}

.table-th {
    padding: var(--sp-3) var(--sp-5);
    text-align: left;
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--clr-white);
    white-space: nowrap;
}

.table-body .table-row:nth-child(even) {
    background: var(--clr-gray-bg);
}

.table-row:hover {
    background: var(--clr-green-light);
}

.table-td {
    padding: var(--sp-3) var(--sp-5);
    color: var(--clr-text-mid);
    border-bottom: 1px solid var(--clr-border);
    vertical-align: middle;
}

.table-row:last-child .table-td {
    border-bottom: none;
}

/* Ligne de groupe dans le tableau */
.table-group td {
    padding: var(--sp-2) var(--sp-5);
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--clr-green-dark);
    background: var(--clr-green-light);
    border-bottom: 1px solid var(--clr-border);
}


/* ── 11. Intégration iframe ────────────────────────────── */
.integration {
    display: flex;
    flex-direction: column;
    gap: var(--sp-4);
    margin-top: var(--sp-6);
}

.integration-iframe {
    width: 100%;
    height: 100vh; /* hauteur écran complet */
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}


/* ── 12. Image ─────────────────────────────────────────── */

.image {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    margin-top: var(--sp-6);
}

/* ── 14. Utilitaires ───────────────────────────────────── */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* ── 15. Responsive ────────────────────────────────────── */

/* Tablette */
@media (max-width: 900px) {
    .cards {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

/* Mobile */
@media (max-width: 640px) {

    /* Logo en haut centré, liens en dessous côte à côte */
    .header-top {
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: var(--sp-4) var(--sp-4) var(--sp-3);
    }

    .logo-link {
        order: -1;
        margin-bottom: var(--sp-3);
    }

    .logo-link img {
        height: 48px;
    }

    /* Liens rapides côte à côte sous le logo */
    .header-top {
        flex-direction: column;
        align-items: center;
    }

    .header-links {
        display: flex;
        gap: var(--sp-4);
        justify-content: center;
    }

    /* Burger visible */
    .nav-burger {
        display: flex;
    }

    /* Liste masquée par défaut, visible quand ouverte */
    .nav-list {
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 0;
        width: 100%;
    }

    .nav-list.is-open {
        display: flex;
    }

    /* Dropdown mobile : position statique, fond gris */
    .nav-dropdown {
        position: static;
        border-top: none;
        border-radius: 0;
        box-shadow: none;
        background: var(--clr-green-dark);
        padding: 0;
    }

    .nav-item.is-open .nav-dropdown {
        display: block;
    }

    .nav-trigger {
        width: 100%;
        justify-content: space-between;
        padding: var(--sp-3) var(--sp-4);
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .nav-dropdown li a {
        color: rgba(255, 255, 255, 0.88);
        padding: var(--sp-3) var(--sp-6);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .nav-dropdown li a:hover {
        background: rgba(0, 0, 0, 0.15);
        color: var(--clr-white);
        padding-left: calc(var(--sp-6) + 6px);
    }

    .nav-dropdown li+li {
        border-top: none;
    }

    .hero {
        min-height: 220px;
    }

    .hero-content {
        padding: var(--sp-12) var(--sp-4) var(--sp-8);
    }

    .section {
        padding: var(--sp-12) var(--sp-4);
    }

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

    .actions {
        flex-direction: column;
    }

    .actions .btn,
    .actions .btn+.btn {
        width: 100%;
        text-align: center;
    }

    .table-th,
    .table-td {
        padding: var(--sp-2) var(--sp-3);
        font-size: var(--text-xs);
    }

    .site-footer {
        grid-template-columns: 1fr;
        text-align: center;
        padding: var(--sp-12) var(--sp-4) var(--sp-8);
    }

    .site-footer h2 {
        border-left: none;
        border-bottom: 3px solid var(--clr-green);
        padding-left: 0;
        padding-bottom: var(--sp-2);
        display: inline-block;
    }

    .site-footer nav {
        align-items: center;
    }

    .site-footer>p:last-child {
        grid-column: 1;
    }
}



/* ── 13. Accès rapides (section homepage) ──────────────── */

.qa-track {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: var(--sp-4);
    margin-top: var(--sp-6);
}

.qa-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-3);
    text-decoration: none;
    color: var(--clr-text);
    padding: var(--sp-4) var(--sp-2);
    border-radius: var(--radius-lg);
    border: 1px solid transparent;
    transition: background var(--ease), border-color var(--ease), transform var(--ease);
}

.qa-item:hover {
    background: var(--clr-white);
    border-color: var(--clr-green);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lift);
    color: var(--clr-green-dark);
}

.qa-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--clr-green);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--ease), transform var(--ease);
    box-shadow: 0 4px 16px rgba(121,174,53,0.30);
}

.qa-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--clr-white);
    stroke-width: 1.8;
}

.qa-item:hover .qa-icon {
    background: var(--clr-green-dark);
}

.qa-label {
    font-size: var(--text-sm);
    font-weight: 700;
    text-align: center;
    color: var(--clr-text);
    line-height: 1.3;
}

.qa-item:hover .qa-label {
    color: var(--clr-green-dark);
}

@media (max-width: 640px) {
    .qa-track {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--sp-3);
    }

    .qa-icon {
        width: 52px;
        height: 52px;
    }

    .qa-icon svg {
        width: 22px;
        height: 22px;
    }

    .qa-label {
        font-size: var(--text-xs);
    }
}

@media (max-width: 400px) {
    .qa-track {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* ── 14. Horaires ─────────────────────────────────────── */

.horaires {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: var(--sp-4);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--clr-border);
    box-shadow: var(--shadow-card);
}

.horaires-row {
    display: grid;
    grid-template-columns: 160px 1fr;
    align-items: center;
    gap: var(--sp-4);
    padding: var(--sp-4) var(--sp-6);
    background: var(--clr-white);
    border-bottom: 1px solid var(--clr-border);
    transition: background var(--ease);
}

.horaires-row:last-child {
    border-bottom: none;
}

.horaires-row:hover {
    background: var(--clr-green-light);
}

/* Ligne "Fermé" — fond légèrement rosé, discret */
.horaires-row--ferme {
    background: #fdf5f5;
}

.horaires-row--ferme:hover {
    background: #faeaea;
}

.horaires-label {
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--clr-dark);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.horaires-row--ferme .horaires-label {
    color: var(--clr-text-mid);
}

.horaires-plage {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--clr-green-dark);
}

.horaires-row--ferme .horaires-plage {
    font-weight: 500;
    color: #b05050;
}

/* Sections paires — fond vert clair, les rows restent blanches */
.section:nth-of-type(even) .horaires-row {
    background: var(--clr-white);
}

.section:nth-of-type(even) .horaires-row:hover {
    background: var(--clr-green-light);
}

.section:nth-of-type(even) .horaires-row--ferme {
    background: #fdf5f5;
}

@media (max-width: 480px) {
    .horaires-row {
        grid-template-columns: 1fr;
        gap: var(--sp-1);
        padding: var(--sp-3) var(--sp-4);
    }

    .horaires-label {
        font-size: var(--text-xs);
    }
}


/* ── 15. Page Contact ──────────────────────────────────── */

.contact__grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--sp-12);
    align-items: start;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--sp-5);
}

.contact-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-5);
}

.contact-form__field {
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
}

.contact-form__field--full {
    grid-column: 1 / -1;
}

.contact-form__field span {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--clr-text);
}

.contact-form__field input,
.contact-form__field textarea {
    font-family: var(--font-body);
    font-size: var(--text-base);
    padding: var(--sp-3) var(--sp-4);
    border: 1.5px solid var(--clr-border);
    border-radius: var(--radius-sm);
    background: var(--clr-white);
    color: var(--clr-text);
    transition: border-color var(--ease), box-shadow var(--ease);
    resize: vertical;
}

.contact-form__field input:focus,
.contact-form__field textarea:focus {
    outline: none;
    border-color: var(--clr-green);
    box-shadow: 0 0 0 3px var(--clr-green-light);
}

.required { color: var(--clr-green-dark); }
.optional { font-size: var(--text-xs); color: var(--clr-text-mid); font-weight: 400; }

.contact-form__mention {
    font-size: var(--text-xs);
    color: var(--clr-text-mid);
}

.contact-success {
    padding: var(--sp-4) var(--sp-5);
    background: var(--clr-green-light);
    border-left: 4px solid var(--clr-green);
    border-radius: var(--radius-sm);
    color: var(--clr-green-dark);
    font-weight: 600;
    margin-bottom: var(--sp-5);
}

.contact-error {
    padding: var(--sp-3) var(--sp-5);
    background: #FBE4E4;
    color: #C24A4A;
    border-radius: var(--radius-sm);
    font-weight: 600;
    margin-bottom: var(--sp-4);
}

.contact-info-block {
    background: var(--clr-white);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    padding: var(--sp-6);
    box-shadow: var(--shadow-card);
    margin-top: var(--sp-6);
}

.contact-info-block h3 {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--clr-dark);
    margin-bottom: var(--sp-4);
    padding-bottom: var(--sp-3);
    border-bottom: 2px solid var(--clr-green-light);
}

.contact-info-block address {
    font-style: normal;
    font-size: var(--text-sm);
    color: var(--clr-text-mid);
    line-height: 1.9;
}

.contact-info-block a {
    color: var(--clr-blue);
    font-weight: 600;
}

@media (max-width: 900px) {
    .contact__grid {
        grid-template-columns: 1fr;
    }

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

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

.site-footer{
    background:var(--clr-dark);
    color:#fff;
}

/* Illustration */

/* =========================
   FOOTER HERO (IMAGE)
   ========================= */

.footer-hero{
    position:relative;
    width:100%;
    height:520px;
    overflow:hidden;
    /* Fallback si l'image ne charge pas */
    background: linear-gradient(135deg, #1a2410 0%, var(--clr-green-dark) 100%);
}

/* image — légèrement assombrie pour que le texte passe */
.footer-illustration{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center bottom;
    /* Pas de filtre — couleurs naturelles */
}

/* dégradé fort en bas pour lisibilité des icônes */
.footer-hero::after{
    display:none;
}

/* ==========================
   Contenu footer
   ========================== */

.footer-content{
    max-width:var(--container-max);
    margin:5rem auto 0;
    padding:0 var(--container-pad);

    display:flex;
    justify-content:space-between;
    gap:4rem;
}

.footer-col{
    flex:1;
}

.footer-logo{
    width:170px;
    margin-bottom:1.5rem;
}

.footer-col h3{
    margin-bottom:1rem;
}

.footer-col nav{
    display:flex;
    flex-direction:column;
    gap:.75rem;
}

.footer-col a{
    color:rgba(255,255,255,.8);
}

.footer-col a:hover{
    color:var(--clr-green);
}

.footer-bottom{
    max-width:var(--container-max);
    margin:3rem auto 0;
    padding:2rem var(--container-pad);
    border-top:1px solid rgba(255,255,255,.1);
    text-align:center;
    color:rgba(255,255,255,.55);
}

/* ==========================
   Responsive
   ========================== */

@media(max-width:900px){

    .footer-overlay{
        margin-top:-4rem;
    }

    .qa-track{
        flex-wrap:wrap;
    }

    .qa-track::before{
        display:none;
    }

    .qa-item{
        flex:0 0 25%;
        margin-bottom:2rem;
    }

    .footer-content{
        flex-direction:column;
        text-align:center;
    }

    .footer-logo{
        margin-inline:auto;
    }

}

@media(max-width:600px){

    .footer-overlay{
        margin-top:-2rem;
    }

    .qa-item{
        flex:0 0 50%;
    }

}