/* ==========================================================================
   LE COMPTOIR FRANCO-BELGE — Feuille de style principale (style.css)
   Site démo réalisé par Chrisprolls Studio — https://chrisprollsstudio.fr
   --------------------------------------------------------------------------
   SOMMAIRE
   01. Variables (couleurs, polices, espacements)  -> modifier ICI le thème
   02. Reset & base
   03. Utilitaires (conteneur, sections, boutons, titres)
   04. En-tête & navigation
   05. Hero (accueil) et bandeaux de page
   06. Blocs texte + image
   07. Cartes (points forts, toppings)
   08. Galerie photos & lightbox
   09. Avis Google
   10. Menu (image)
   11. Contact (horaires, formulaire, carte)
   12. Pages légales
   13. Pied de page
   14. Bandeau cookies & bouton retour en haut
   15. Animations (révélation au scroll)
   16. Responsive (tablette / mobile)
   ========================================================================== */


/* ==========================================================================
   01. VARIABLES
   Trio demandé par le client : BLANC / BEIGE / VERT (+ noir du logo)
   ========================================================================== */
:root {
    /* Couleurs principales */
    --blanc: #ffffff;
    /*--beige: #faebd5; 	 beige chaud (fonds de sections) */
	--beige: #FFF8E6; 			/* beige clair (fonds de sections) */
    --beige-clair: #fdf6ec;    /* beige très doux (fonds alternés) */
    --vert: #6b9080;           /* vert sauge : titres, boutons, accents */
    --vert-fonce: #4f7363;     /* vert au survol */
    --vert-clair: #e4eee9;     /* vert très pâle (badges, fonds légers) */
    --noir: #1f1f1f;           /* noir du logo */
    --texte: #3b3b3b;          /* texte courant */
    --texte-doux: #6a6a6a;     /* texte secondaire */
    --etoile: #f3b63f;         /* étoiles des avis */

    /* Polices (chargées via Google Fonts dans le <head> de chaque page) */
    --police-titre: "Bitter", Georgia, serif;
    --police-texte: "Nunito Sans", Arial, sans-serif;

    /* Mise en page */
    --largeur-max: 1140px;
    --rayon: 18px;
    --ombre: 0 10px 30px rgba(60, 50, 30, 0.10);
    --ombre-forte: 0 18px 45px rgba(60, 50, 30, 0.18);
    --hauteur-header: 78px;
}


/* ==========================================================================
   02. RESET & BASE
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--hauteur-header) + 10px);
}

body {
    margin: 0;
    font-family: var(--police-texte);
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--texte);
    background: var(--blanc);
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--vert-fonce);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

h1, h2, h3, h4 {
    font-family: var(--police-titre);
    color: var(--vert);
    line-height: 1.2;
    margin: 0 0 0.6em;
}

p {
    margin: 0 0 1.1em;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Accessibilité : lien "aller au contenu" visible uniquement au clavier */
.lien-evitement {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--vert);
    color: var(--blanc);
    padding: 10px 16px;
    z-index: 3000;
}

.lien-evitement:focus {
    left: 10px;
    top: 10px;
}

:focus-visible {
    outline: 3px solid var(--vert);
    outline-offset: 3px;
}


/* ==========================================================================
   03. UTILITAIRES
   ========================================================================== */
.conteneur {
    width: min(100% - 40px, var(--largeur-max));
    margin-inline: auto;
}

.section {
    padding: 90px 0;
}

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

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

/* Titre de section : majuscules + petit trait noir dessous (comme l'inspiration) */
.titre-section {
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: clamp(1.7rem, 3.4vw, 2.5rem);
    margin-bottom: 1.4em;
}

.titre-section::after {
    content: "";
    display: block;
    width: 48px;
    height: 4px;
    background: var(--noir);
    margin: 22px auto 0;
    border-radius: 2px;
}

.sous-titre {
    text-align: center;
    max-width: 680px;
    margin: -0.6em auto 3em;
    color: var(--texte-doux);
}

/* Petit sur-titre au-dessus d'un titre */
.surtitre {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--vert-fonce);
    background: var(--vert-clair);
    padding: 6px 14px;
    border-radius: 50px;
    margin-bottom: 18px;
}

/* Boutons */
.bouton {
    display: inline-block;
    font-family: var(--police-texte);
    font-weight: 700;
    font-size: 1rem;
    padding: 14px 30px;
    border-radius: 50px;
    border: 2px solid var(--vert);
    background: var(--vert);
    color: var(--blanc);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.bouton:hover {
    background: var(--vert-fonce);
    border-color: var(--vert-fonce);
    color: var(--blanc);
    transform: translateY(-3px);
    box-shadow: var(--ombre);
}

.bouton--contour {
    background: transparent;
    color: var(--vert-fonce);
}

.bouton--contour:hover {
    color: var(--blanc);
}

.groupe-boutons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.centre {
    text-align: center;
}


/* ==========================================================================
   04. EN-TÊTE & NAVIGATION
   ========================================================================== */
.entete {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    transition: box-shadow 0.3s ease;
}

/* Classe ajoutée par animations.js quand on a fait défiler la page */
.entete.est-scrolle {
    box-shadow: 0 4px 22px rgba(0, 0, 0, 0.09);
}

.entete__interieur {
    height: var(--hauteur-header);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo img {
    height: 62px;
    width: auto;
}

.nav__liste {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav__lien {
    display: block;
    padding: 8px 16px;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--noir);
    border-radius: 50px;
    position: relative;
}

.nav__lien:hover {
    color: var(--vert);
}

/* Page courante */
.nav__lien.actif {
    color: var(--vert-fonce);
    background: var(--vert-clair);
}

/* Bouton burger (mobile) */
.burger {
    display: none;
    width: 46px;
    height: 46px;
    border: 0;
    background: var(--vert-clair);
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    position: relative;
}

.burger span,
.burger span::before,
.burger span::after {
    content: "";
    position: absolute;
    left: 13px;
    width: 20px;
    height: 2px;
    background: var(--vert-fonce);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.burger span {
    top: 22px;
}

.burger span::before {
    left: 0;
    top: -7px;
}

.burger span::after {
    left: 0;
    top: 7px;
}

.burger.ouvert span {
    background: transparent;
}

.burger.ouvert span::before {
    transform: translateY(7px) rotate(45deg);
}

.burger.ouvert span::after {
    transform: translateY(-7px) rotate(-45deg);
}


/* ==========================================================================
   05. HERO (accueil) ET BANDEAUX DE PAGE
   ========================================================================== */
.hero {
    background: var(--beige);
    padding: 70px 0 90px;
    overflow: hidden;
}

.hero__grille {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.hero__texte p {
    font-size: 1.15rem;
    max-width: 520px;
}

/* Étiquettes "Bio / Pétrie à la main / Production limitée" */
.etiquettes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0 6px;
}

.etiquette {
    background: var(--blanc);
    color: var(--vert-fonce);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 7px 16px;
    border-radius: 50px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.07);
}

/* Image du hero dans une forme organique */
.hero__visuel {
    position: relative;
}

.hero__visuel img {
    width: 100%;
    aspect-ratio: 4 / 4.4;
    object-fit: cover;
    border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%;
    box-shadow: var(--ombre-forte);
    will-change: transform;
}

/* Pastille flottante (note Google) sur le hero */
.pastille-note {
    position: absolute;
    left: -10px;
    bottom: 30px;
    background: var(--blanc);
    border-radius: var(--rayon);
    padding: 14px 20px;
    box-shadow: var(--ombre-forte);
    text-align: center;
    animation: flotter 4s ease-in-out infinite;
}

.pastille-note strong {
    display: block;
    font-family: var(--police-titre);
    font-size: 1.8rem;
    color: var(--vert);
    line-height: 1.1;
}

.pastille-note small {
    color: var(--texte-doux);
    font-size: 0.82rem;
}

@keyframes flotter {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}

/* Badge "Ouvert / Fermé" (rempli par animations.js) */
.statut-ouverture {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.92rem;
    background: var(--blanc);
    padding: 7px 16px;
    border-radius: 50px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.07);
    margin-bottom: 20px;
}

.statut-ouverture::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #c9c9c9;
}

.statut-ouverture.ouvert::before {
    background: #3fae6a;
    box-shadow: 0 0 0 4px rgba(63, 174, 106, 0.2);
}

.statut-ouverture.ferme::before {
    background: #d9674f;
}

/* Bandeau de titre des pages intérieures */
.bandeau-page {
    background: var(--beige);
    text-align: center;
    padding: 70px 0 60px;
}

.bandeau-page h1 {
    font-size: clamp(2rem, 4.5vw, 3.1rem);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.3em;
}

.bandeau-page p {
    max-width: 640px;
    margin: 0 auto;
    color: var(--texte-doux);
    font-size: 1.12rem;
}


/* ==========================================================================
   06. BLOCS TEXTE + IMAGE
   ========================================================================== */
.duo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Variante : image à droite */
.duo--inverse .duo__image {
    order: 2;
}

.duo__image img {
    width: 100%;
    border-radius: var(--rayon);
    box-shadow: var(--ombre);
    object-fit: cover;
}

.duo__texte h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    text-transform: uppercase;
}

.duo__texte h2::after {
    content: "";
    display: block;
    width: 40px;
    height: 4px;
    background: var(--noir);
    margin-top: 16px;
    border-radius: 2px;
}

/* Citation mise en valeur */
.citation {
    border-left: 4px solid var(--vert);
    padding: 6px 0 6px 22px;
    margin: 26px 0 0;
    font-family: var(--police-titre);
    font-size: 1.2rem;
    color: var(--vert-fonce);
}


/* ==========================================================================
   07. CARTES (points forts, toppings)
   ========================================================================== */
.grille-cartes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.carte {
    background: var(--blanc);
    border-radius: var(--rayon);
    padding: 36px 28px;
    text-align: center;
    box-shadow: var(--ombre);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.carte:hover {
    transform: translateY(-8px);
    box-shadow: var(--ombre-forte);
}

.carte__icone {
    width: 68px;
    height: 68px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: var(--vert-clair);
    display: grid;
    place-items: center;
    font-size: 1.9rem;
}

.carte h3 {
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.carte p {
    margin: 0;
    color: var(--texte-doux);
}

/* Chiffres clés (compteurs animés) */
.chiffres {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    text-align: center;
}

.chiffre strong {
    display: block;
    font-family: var(--police-titre);
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    color: var(--vert);
    line-height: 1.1;
}

.chiffre span {
    color: var(--texte-doux);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
}


/* ==========================================================================
   08. GALERIE PHOTOS & LIGHTBOX
   ========================================================================== */
.galerie {
    columns: 3;
    column-gap: 18px;
}

.galerie__item {
    break-inside: avoid;
    margin-bottom: 18px;
    border-radius: var(--rayon);
    overflow: hidden;
    cursor: zoom-in;
    box-shadow: var(--ombre);
    position: relative;
}

.galerie__item img {
    width: 100%;
    transition: transform 0.5s ease;
}

.galerie__item:hover img {
    transform: scale(1.06);
}

/* Fenêtre d'agrandissement (créée par animations.js) */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(20, 20, 20, 0.88);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 4000;
    padding: 30px;
    cursor: zoom-out;
}

.lightbox.ouverte {
    display: flex;
    animation: apparition 0.25s ease;
}

.lightbox img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 10px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.lightbox__fermer {
    position: absolute;
    top: 18px;
    right: 24px;
    font-size: 2.4rem;
    color: var(--blanc);
    background: none;
    border: 0;
    cursor: pointer;
    line-height: 1;
}

@keyframes apparition {
    from { opacity: 0; }
    to   { opacity: 1; }
}


/* ==========================================================================
   09. AVIS GOOGLE
   (module en dur pour l'instant — voir commentaire dans index.html pour
   brancher l'API Google Places plus tard)
   ========================================================================== */
.avis__resume {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.avis__note {
    font-family: var(--police-titre);
    font-size: 3rem;
    font-weight: 700;
    color: var(--vert);
    line-height: 1;
}

.etoiles {
    color: var(--etoile);
    letter-spacing: 3px;
    font-size: 1.2rem;
}

.avis__nombre {
    color: var(--texte-doux);
    font-size: 0.95rem;
}

/* Carrousel : piste qui défile horizontalement, cartes "aimantées" (scroll-snap).
   Sans JavaScript, on peut quand même la faire défiler au doigt / à la souris. */
.avis__piste {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 22px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 12px 4px 26px;
    margin: 0 -4px;
    outline-offset: 4px;
}

.avis__piste::-webkit-scrollbar {
    display: none;
}

.avis__carte {
    flex: 0 0 calc((100% - 44px) / 3);   /* 3 avis visibles sur ordinateur */
    scroll-snap-align: start;
    background: var(--blanc);
    border-radius: var(--rayon);
    padding: 26px 22px;
    box-shadow: var(--ombre);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.avis__carte:hover {
    transform: translateY(-6px);
}

.avis__auteur {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.avis__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--vert);
    color: var(--blanc);
    display: grid;
    place-items: center;
    font-weight: 700;
    flex-shrink: 0;
}

.avis__auteur strong {
    display: block;
    line-height: 1.2;
    color: var(--noir);
}

.avis__auteur small {
    color: var(--texte-doux);
}

.avis__texte {
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 10px 0 0;
    color: var(--texte);
}

.avis__lien {
    text-align: center;
    margin-top: 36px;
}


/* ==========================================================================
   10. MENU (image envoyée par la cliente)
   ========================================================================== */
.menu__cadre {
    max-width: 900px;
    margin: 0 auto;
    background: var(--blanc);
    border-radius: var(--rayon);
    padding: 16px;
    box-shadow: var(--ombre);
}

.menu__cadre img {
    width: 100%;
    border-radius: 10px;
    cursor: zoom-in;
}

/* Bloc affiché tant que l'image du menu n'est pas en place */
.menu__attente {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    border: 2px dashed var(--vert);
    border-radius: var(--rayon);
    padding: 50px 30px;
    background: var(--blanc);
}

.menu__attente h2 {
    font-size: 1.5rem;
}

.note-menu {
    max-width: 700px;
    margin: 30px auto 0;
    text-align: center;
    color: var(--texte-doux);
    font-size: 0.95rem;
}


/* ==========================================================================
   11. CONTACT (horaires, formulaire, carte)
   ========================================================================== */
.contact__grille {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: start;
}

.infos-contact {
    display: grid;
    gap: 22px;
}

.info {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.info__icone {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--vert-clair);
    display: grid;
    place-items: center;
    font-size: 1.3rem;
}

.info h3 {
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}

.info p {
    margin: 0;
}

/* Tableau des horaires */
.horaires {
    width: 100%;
    border-collapse: collapse;
    max-width: 340px;
}

.horaires td {
    padding: 5px 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.12);
}

.horaires td:last-child {
    text-align: right;
    font-weight: 700;
}

.horaires .jour-ferme td:last-child {
    color: #b9553f;
}

/* Jour du jour mis en avant par animations.js */
.horaires tr.aujourdhui td {
    color: var(--vert-fonce);
    font-weight: 700;
}

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

.reseaux a {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--vert);
    color: var(--blanc);
    display: grid;
    place-items: center;
    transition: transform 0.2s ease, background 0.2s ease;
}

.reseaux a:hover {
    background: var(--vert-fonce);
    color: var(--blanc);
    transform: translateY(-4px) rotate(-6deg);
}

.reseaux svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

/* Formulaire */
.formulaire {
    background: var(--beige-clair);
    border-radius: var(--rayon);
    padding: 36px;
    box-shadow: var(--ombre);
}

.formulaire h2 {
    font-size: 1.6rem;
    text-transform: uppercase;
}

.champ {
    margin-bottom: 18px;
}

.champ label {
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.champ input[type="text"],
.champ input[type="email"],
.champ input[type="tel"],
.champ textarea {
    width: 100%;
    font-family: var(--police-texte);
    font-size: 1rem;
    padding: 13px 16px;
    border: 2px solid transparent;
    border-radius: 12px;
    background: var(--blanc);
    color: var(--texte);
    transition: border-color 0.2s ease;
}

.champ input:focus,
.champ textarea:focus {
    outline: none;
    border-color: var(--vert);
}

.champ textarea {
    min-height: 150px;
    resize: vertical;
}

.champ--case {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 0.88rem;
    color: var(--texte-doux);
}

.champ--case input {
    margin-top: 5px;
    accent-color: var(--vert);
}

/* Champ anti-spam invisible (honeypot) */
.champ-cache {
    display: none !important;
}

.message-formulaire {
    margin-top: 16px;
    padding: 14px 18px;
    border-radius: 12px;
    font-weight: 700;
    display: none;
}

.message-formulaire.succes {
    display: block;
    background: #e3f3e9;
    color: #2d7a4d;
}

.message-formulaire.erreur {
    display: block;
    background: #fbe7e2;
    color: #a8412c;
}

/* Carte Google Maps */
.carte-maps {
    margin-top: 60px;
    border-radius: var(--rayon);
    overflow: hidden;
    box-shadow: var(--ombre);
    background: var(--vert-clair);
    min-height: 420px;
    position: relative;
}

.carte-maps iframe {
    width: 100%;
    height: 420px;
    border: 0;
    display: block;
}

/* Message affiché tant que les cookies Google Maps ne sont pas acceptés */
.carte-maps__attente {
    min-height: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px;
    gap: 6px;
}

.carte-maps__attente p {
    max-width: 480px;
}


/* ==========================================================================
   12. PAGES LÉGALES
   ========================================================================== */
.legal {
    max-width: 820px;
}

.legal h2 {
    font-size: 1.5rem;
    margin-top: 2.2em;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.legal h3 {
    font-size: 1.1rem;
    color: var(--noir);
    margin-top: 1.6em;
}

.legal table {
    width: 100%;
    border-collapse: collapse;
    margin: 18px 0;
    font-size: 0.97rem;
}

.legal th,
.legal td {
    text-align: left;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    vertical-align: top;
}

.legal th {
    width: 38%;
    background: var(--beige-clair);
    color: var(--noir);
}


/* ==========================================================================
   13. PIED DE PAGE
   ========================================================================== */
.pied {
    background: var(--noir);
    color: #d9d4ca;
    padding: 70px 0 0;
    font-size: 0.97rem;
}

.pied a {
    color: #d9d4ca;
}

.pied a:hover {
    color: var(--blanc);
}

.pied__grille {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 50px;
}

.pied__logo {
    width: 120px;
    border-radius: 50%;
    background: var(--blanc);
    padding: 6px;
    margin-bottom: 16px;
}

.pied h3 {
    color: var(--blanc);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

.pied li {
    margin-bottom: 8px;
}

.pied .reseaux a {
    background: rgba(255, 255, 255, 0.12);
}

.pied .reseaux a:hover {
    background: var(--vert);
}

.pied__bas {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 22px 0;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.88rem;
}

.pied__legal {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.pied__legal button {
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    color: #d9d4ca;
    cursor: pointer;
    text-decoration: underline;
}

.pied__legal button:hover {
    color: var(--blanc);
}

.credit a {
    color: #9fc2b3;
    font-weight: 700;
}


/* ==========================================================================
   14. BANDEAU COOKIES & BOUTON RETOUR EN HAUT
   ========================================================================== */
.cookies {
    position: fixed;
    left: 20px;
    bottom: 20px;
    max-width: 440px;
    background: var(--blanc);
    border-radius: var(--rayon);
    box-shadow: var(--ombre-forte);
    padding: 24px;
    z-index: 3500;
    display: none;
    border-top: 5px solid var(--vert);
}

.cookies.visible {
    display: block;
    animation: monter 0.4s ease;
}

.cookies h2 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.cookies p {
    font-size: 0.92rem;
    line-height: 1.55;
    margin-bottom: 16px;
}

.cookies__boutons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookies__boutons .bouton {
    padding: 10px 22px;
    font-size: 0.92rem;
}

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

.haut-de-page {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--vert);
    background: var(--blanc);
    color: var(--vert-fonce);
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: var(--ombre);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.2s ease;
    z-index: 900;
}

.haut-de-page.visible {
    opacity: 1;
    visibility: visible;
}

.haut-de-page:hover {
    transform: translateY(-4px);
    background: var(--vert);
    color: var(--blanc);
}


/* ==========================================================================
   15. ANIMATIONS — révélation au scroll
   Les éléments portant data-anim sont masqués puis révélés par animations.js
   (classe .revele). Sans JavaScript, ils restent visibles (classe .js ajoutée
   par le script sur <html>).
   ========================================================================== */
.js [data-anim] {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.js [data-anim="monter"]  { transform: translateY(40px); }
.js [data-anim="gauche"]  { transform: translateX(-50px); }
.js [data-anim="droite"]  { transform: translateX(50px); }
.js [data-anim="zoom"]    { transform: scale(0.92); }

.js [data-anim].revele {
    opacity: 1;
    transform: none;
}

/* Respect des utilisateurs qui préfèrent moins d'animations */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }

    .js [data-anim] {
        opacity: 1;
        transform: none;
    }
}


/* ==========================================================================
   16. RESPONSIVE
   ========================================================================== */
@media (max-width: 1000px) {
    .avis__carte {
        flex-basis: calc((100% - 22px) / 2);   /* 2 avis visibles sur tablette */
    }

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

    .galerie {
        columns: 2;
    }
}

@media (max-width: 860px) {
    .section {
        padding: 64px 0;
    }

    /* Navigation mobile : menu déroulant */
    .burger {
        display: block;
    }

    .nav {
        position: absolute;
        top: var(--hauteur-header);
        left: 0;
        right: 0;
        background: var(--blanc);
        box-shadow: 0 14px 25px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
    }

    .nav.ouvert {
        max-height: 420px;
    }

    .nav__liste {
        flex-direction: column;
        align-items: stretch;
        padding: 14px 20px 22px;
    }

    .nav__lien {
        padding: 14px 18px;
        font-size: 1rem;
    }

    .hero__grille,
    .duo,
    .contact__grille {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .duo--inverse .duo__image {
        order: 0;
    }

    .hero__visuel {
        max-width: 460px;
        margin: 0 auto;
    }

    .grille-cartes,
    .chiffres {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .avis__carte {
        flex-basis: 100%;   /* 1 avis visible sur mobile */
    }
}

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

    .galerie {
        columns: 1;
    }

    .formulaire {
        padding: 24px 20px;
    }

    .cookies {
        left: 10px;
        right: 10px;
        bottom: 10px;
        max-width: none;
    }

    .logo img {
        height: 54px;
    }
}


/* ==========================================================================
   CORRECTIF : empêche tout défilement horizontal sur mobile
   (les animations "gauche"/"droite" décalent les éléments hors de l'écran
   avant leur apparition ; "clip" coupe ce qui dépasse sans casser le sticky)
   ========================================================================== */
html,
body {
    overflow-x: clip;
}


/* Ajustements du site */
.contact__photo { margin: 0; grid-column: 1 / -1; }
.contact__photo img { display:block; width:100%; max-height:380px; object-fit:cover; border-radius:var(--rayon); }
.carte-maps { min-height: 0; }
.menu__cadre img { height:auto; max-height:none; object-fit:contain; }
@media (max-width: 760px) {
  .contact__photo img { max-height:260px; }
  .menu__cadre { padding:7px; }
}

/* Écran d'accueil animé, sans bibliothèque externe */
.intro-gaufre {
  position:fixed; inset:0; z-index:9999; display:grid; place-items:center;
  overflow:hidden; background:#fff; opacity:1; visibility:visible;
  transition:opacity 1s ease, visibility 1s ease;
}
.intro-gaufre__logo {
  display:block; width:min(250px,58vw); height:auto; overflow:visible;
  transform-origin:center center;
  /* Le logo apparaît en fondu avec un léger zoom */
  animation:intro-logo-entree .8s cubic-bezier(.2,.75,.25,1) both;
}

/* Les morsures : des cercles BLANCS (comme le fond) qui grossissent l'un après l'autre.
   Posés sur le bord du logo, ils laissent des creux arrondis, comme des marques de dents.
   "forwards" : une fois mordu, le logo reste mordu jusqu'à la fin. */
.intro-gaufre__morsure circle {
  fill:#fff;
  transform-box:fill-box; transform-origin:center;
  transform:scale(0);
  animation:intro-morsure .3s cubic-bezier(.3,1.4,.5,1) forwards;
}

/* Fin de l'intro : seul le fond blanc disparaît en fondu (le logo reste croqué). */
.intro-gaufre.intro-terminee { opacity:0; visibility:hidden; pointer-events:none; }

@keyframes intro-logo-entree {
  0%   { transform:scale(.82); opacity:0; }
  100% { transform:scale(1);   opacity:1; }
}

@keyframes intro-morsure {
  0%   { transform:scale(0); }
  100% { transform:scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  /* Pas d'animation : le logo s'affiche simplement entier */
  .intro-gaufre__logo { animation:none; }
  .intro-gaufre__morsure { display:none; }
  .intro-gaufre { transition:none; }
}

/* Empêche les drapeaux/emoji de dépasser des pastilles circulaires */
.carte__icone { overflow:hidden; max-width:100%; }


/* Correctifs responsive demandés */
.note-compteur { display:flex; align-items:baseline; justify-content:center; gap:.08em; white-space:nowrap; }
.note-compteur > span { font-size:1em; }
.note-compteur small { font:inherit; font-size:.72em; }
.galerie { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; align-items:start; }
.galerie__item { min-width:0; margin:0 0 18px !important; }
.galerie__item img { display:block; width:100%; height:auto; aspect-ratio:4 / 3; object-fit:cover; }
.galerie__item--derniere { grid-column:2; }
#titre-galerie + .galerie + p { margin-top:30px; }
.pied__legal { align-items:center; }
.pied__legal button { text-decoration:none; }
.pied__legal a { text-decoration:none; }
.pied__legal a:hover, .pied__legal button:hover { text-decoration:none; }
.carte__icone--drapeaux { display:flex; align-items:center; justify-content:center; gap:7px; overflow:hidden; }
.drapeau { display:flex; width:31px; height:21px; flex:0 0 31px; overflow:hidden; border-radius:3px; box-shadow:0 1px 3px #0002; }
.drapeau i { display:block; flex:1; }
.drapeau--fr i:nth-child(1) { background:#1b3f91; } .drapeau--fr i:nth-child(2) { background:#fff; } .drapeau--fr i:nth-child(3) { background:#e43b42; }
.drapeau--be { flex-direction:row; } .drapeau--be i:nth-child(1) { background:#171717; } .drapeau--be i:nth-child(2) { background:#f6d22d; } .drapeau--be i:nth-child(3) { background:#e43b42; }
.contact__grille { grid-template-columns:minmax(0,1fr) minmax(0,1.1fr); align-items:start; column-gap:36px; row-gap:22px; }
.contact__photo { grid-column:1; grid-row:1; width:100%; max-width:390px; justify-self:center; align-self:start; }
.contact__photo img { width:100%; max-height:280px; object-fit:contain; object-position:center; }
.infos-contact { grid-column:1; grid-row:2; }
.formulaire { grid-column:2; grid-row:1 / span 2; align-self:start; }
@media (max-width:860px) {
 .galerie { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .galerie__item--derniere { grid-column:auto; }
 .contact__grille { grid-template-columns:minmax(0,1fr); }
 .contact__photo, .infos-contact, .formulaire { grid-column:1; grid-row:auto; width:100%; max-width:100%; }
 .contact__photo { max-width:440px; }
 .contact__photo img { max-height:260px; }
}
@media (max-width:560px) { .galerie { grid-template-columns:minmax(0,1fr); } .chiffre strong { font-size:clamp(2rem,11vw,3rem); } .pied__legal { gap:12px 18px; } }



/* ==========================================================================
   AJOUTS (v3) : menu en 3 parties, images à la place des icônes
   ========================================================================== */

/* ---------- Menu : 3 parties ----------
   Mobile / tablette : l'une sous l'autre, en pleine largeur (max 680 px).
   Ordinateur (>= 900 px) : parties 1 et 2 côte à côte, partie 3 centrée dessous. */
.menu__parties {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    max-width: 680px;
    margin: 0 auto;
}

.menu__parties .menu__cadre {
    max-width: none;
    margin: 0;
}

@media (min-width: 900px) {
    .menu__parties {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 1180px;
        gap: 28px;
    }

    /* La 3e partie occupe les deux colonnes mais garde la largeur d'une colonne */
    .menu__cadre--large {
        grid-column: 1 / -1;
        justify-self: center;
        width: calc(50% - 14px);
    }
}

/* ---------- Images à la place des icônes (cartes "forces") ---------- */
.carte__visuel {
    height: 150px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carte__visuel img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.carte:hover .carte__visuel img {
    transform: translateY(-4px) scale(1.05);
}

@media (prefers-reduced-motion: reduce) {
    .carte__visuel img { transition: none; }
    .carte:hover .carte__visuel img { transform: none; }
}



/* ==========================================================================
   AJOUTS (v4) : commandes du carrousel d'avis (flèches, points, pause)
   ========================================================================== */
.avis__controles {
    display: none;            /* affichées uniquement si JavaScript fonctionne */
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.js .avis__controles {
    display: flex;
}

.avis__fleche,
.avis__pause {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid var(--vert);
    background: var(--blanc);
    color: var(--vert);
    font-size: 1.5rem;
    line-height: 1;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.avis__pause {
    width: 34px;
    height: 34px;
    font-size: 0.7rem;
    letter-spacing: -1px;
}

.avis__fleche:hover,
.avis__pause:hover {
    background: var(--vert);
    color: var(--blanc);
}

.avis__fleche:active {
    transform: scale(0.92);
}

.avis__points {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
    max-width: 240px;
}

/* Chaque point a une zone de toucher de 24 px mais s'affiche plus petit */
.avis__point {
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    display: grid;
    place-items: center;
}

.avis__point::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: var(--vert);
    opacity: 0.3;
    transition: width 0.3s ease, opacity 0.3s ease;
}

.avis__point.actif::before {
    width: 24px;
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .avis__point::before,
    .avis__fleche { transition: none; }
}
