/* Feuille de style de départ : palette et typographie provisoires, à affiner. */

/* Police des titres : Comic Neue (libre, proche de Comic Sans en plus soigné).
   Déposer les fichiers dans public/fonts/ (voir public/fonts/LISEZMOI.txt) ;
   sans eux, le navigateur prend Comic Sans MS puis une police sans empattement. */
@font-face {
    font-family: "Comic Neue"; font-style: normal; font-weight: 400; font-display: swap;
    src: local("Comic Neue"), local("ComicNeue-Regular"), url("../fonts/ComicNeue-Regular.woff2") format("woff2");
}
@font-face {
    font-family: "Comic Neue"; font-style: italic; font-weight: 400; font-display: swap;
    src: local("Comic Neue Italic"), local("ComicNeue-Italic"), url("../fonts/ComicNeue-Italic.woff2") format("woff2");
}
@font-face {
    font-family: "Comic Neue"; font-style: normal; font-weight: 700; font-display: swap;
    src: local("Comic Neue Bold"), local("ComicNeue-Bold"), url("../fonts/ComicNeue-Bold.woff2") format("woff2");
}
:root {
    --fond: #fffdf9;
    --texte: #231f1a;
    --discret: #6b6259;
    --accent: #d9650b;        /* rappel de l'orange de l'ancien menu */
    --accent-fonce: #a84c06;
    --filet: #e6ddd2;
    --carte: #ffffff;
    --largeur: 60rem;
    --police-titre: "Comic Neue", "Comic Sans MS", "Comic Sans", "Chalkboard SE", "Segoe Print", sans-serif;
}
@media (prefers-color-scheme: dark) {
    :root {
        --fond: #1b1814; --texte: #f1ebe3; --discret: #b3a99d;
        --accent: #ff9340; --accent-fonce: #ffb070; --filet: #3a342d; --carte: #24201b;
    }
}

*, *::before, *::after { box-sizing: border-box; }
body {
    margin: 0;
    font: 1rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--texte);
    background: var(--fond);
}
a { color: var(--accent-fonce); }
a:hover { color: var(--accent); }

.bandeau-dev { background: #7a2e0e; color: #fff; text-align: center; font-size: .85rem; padding: .25rem; }

.entete {
    display: grid; gap: .5rem 1.5rem; align-items: center;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    max-width: var(--largeur); margin: 0 auto; padding: 1rem;
    border-bottom: 3px solid var(--accent);
}
.entete__quand { margin: 0; line-height: 1.3; color: var(--discret); font-size: .95rem; }
.entete__date { display: block; }
.entete__date::first-letter { text-transform: uppercase; }
.entete__heure { display: block; font-family: var(--police-titre); font-weight: 700; font-size: 1.35rem; color: var(--accent-fonce); }
.entete__nom {
    font-family: var(--police-titre); font-size: clamp(2rem, 6vw, 3rem); font-weight: 700; line-height: 1.1;
    text-align: center; text-decoration: none; color: var(--texte);
}
.entete__contact {
    margin: 0; text-align: right; line-height: 1.4; font-size: 1rem;
    font-family: var(--police-titre); font-style: italic; text-shadow: 1px 1px 2px rgba(0, 0, 0, .22);
}
.entete__contact a { color: var(--texte); text-decoration: none; }
.entete__contact a:hover, .entete__contact a:focus-visible { text-decoration: underline; }
/* Menu : sous le titre, sous la ligne orange, centré */
.menu {
    display: flex; flex-wrap: wrap; gap: .25rem 1.75rem; justify-content: center;
    max-width: var(--largeur); margin: 0 auto; padding: .6rem 1rem 0;
}
.menu a {
    font-family: var(--police-titre); font-size: 1.15rem; font-weight: 700;
    text-decoration: none; padding: .25rem 0; border-bottom: 3px solid transparent; color: var(--texte);
}
.menu a:hover, .menu a[aria-current="page"] { border-bottom-color: var(--accent); }

.contenu { max-width: var(--largeur); margin: 0 auto; padding: 1rem; }
h1, h2 { font-family: var(--police-titre); font-weight: 700; text-align: center; }
h1 { font-size: 2.2rem; line-height: 1.2; margin: 1.5rem 0 1rem; }
h2 { font-size: 1.8rem; line-height: 1.2; margin: 2rem 0 1.25rem; }

.filtres { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin: 0 0 1.5rem; }
.filtres a {
    padding: .25rem .9rem; border: 1px solid var(--filet); border-radius: 999px;
    text-decoration: none; color: var(--texte); background: var(--carte);
}
.filtres a[aria-current="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }

.evt {
    display: flex; gap: 1rem 1.25rem; align-items: center;
    padding: 1rem; margin-bottom: .75rem;
    background: var(--carte); border: 1px solid var(--filet); border-left: 4px solid var(--accent); border-radius: .4rem;
}
.evt__date { flex: 0 0 12rem; font-weight: 600; }
.evt__heure { display: block; font-weight: 400; color: var(--discret); }
.evt__corps { flex: 1 1 0; min-width: 0; }
.evt__type { margin: 0; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; color: var(--discret); }
.evt__titre { margin: .1rem 0 0; font-size: 1.15rem; }
.evt__resume { margin: .4rem 0 0; font-size: .92rem; line-height: 1.45; color: var(--discret); }
.evt__suite { white-space: nowrap; }
.evt__liens { flex: 0 0 auto; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .35rem; font-size: .85rem; }
.evt__liens a { display: inline-flex; align-items: center; gap: .35rem; text-decoration: none; }
.evt__liens a:hover { text-decoration: underline; }
.evt__acces { flex: 0 0 5.5rem; display: flex; flex-direction: column; gap: .35rem; align-items: center; justify-content: center; }
.evt--annule .evt__titre, .evt--annule .evt__date { text-decoration: line-through; color: var(--discret); }

.badge { display: inline-block; padding: .1rem .6rem; border-radius: .3rem; font-size: .8rem; border: 1px solid var(--filet); }
.badge--annule { background: #b3261e; border-color: #b3261e; color: #fff; }
.badge--tarif { position: relative; cursor: help; }
.badge--tarif:hover, .badge--tarif:focus-visible { border-color: var(--accent); outline: none; }
.badge--tarif:focus-visible { box-shadow: 0 0 0 2px var(--accent); }
/* Infobulle : reste dans le texte de la page (lue par les lecteurs d'écran), seulement masquée à l'écran */
.infobulle {
    position: absolute; bottom: calc(100% + .45rem); left: 50%; transform: translateX(-50%);
    padding: .2rem .7rem; border-radius: .3rem; white-space: nowrap;
    background: var(--texte); color: var(--fond); font-size: .85rem; font-weight: 600;
    opacity: 0; pointer-events: none; transition: opacity .12s;
}
.infobulle::after {
    content: ""; position: absolute; top: 100%; left: 50%; margin-left: -5px;
    border: 5px solid transparent; border-top-color: var(--texte);
}
.badge--tarif:hover .infobulle, .badge--tarif:focus .infobulle { opacity: 1; }

.pied {
    max-width: 84rem; margin: 3rem auto 0; padding: 1rem;
    border-top: 1px solid var(--filet); color: var(--discret); font-size: .9rem;
}
.pied p { margin: .2rem 0; }
/* Adresse, contact et copyright sur une seule ligne (retour à la ligne automatique sur téléphone) */
.pied__ligne { display: flex; flex-wrap: wrap; justify-content: center; gap: .2rem 1.5rem; text-align: center; font-size: .85rem; }


/* Texte réservé aux lecteurs d'écran et aux moteurs de recherche */
.sr-only {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Bloc d'accueil : photos du lieu en fond, voile clair par-dessus, logo (noir sur blanc) sur une carte au centre.
   Trois présentations, choisies par la classe de <section class="hero ..."> dans public/index.php :
     hero--duo        la salle à gauche, le bar à droite (images nettes)
     hero--panorama   une seule photo panoramique, légèrement floutée
     (sans classe)    dégradé orangé seul
   Pour un fond plus ou moins léger, ajuster l'opacité de --voile (0 = photo brute, 1 = tout blanc). */
.hero {
    --voile: rgba(255, 249, 240, .45);
    --carte-opacite: .6;  /* opacité de la carte du logo : 1 = blanc plein, plus bas = photo plus visible */
    position: relative; overflow: hidden; isolation: isolate;
    display: flex; justify-content: center;
    padding: 1.5rem clamp(.75rem, 5vw, 3rem); margin: 0;
    border-radius: .6rem; border: 1px solid var(--filet);
    background: linear-gradient(135deg, #f0b27a 0%, #d9650b 55%, #8f3f06 100%);
}
.hero--panorama {
    background:
        linear-gradient(var(--voile), var(--voile)),
        url("../img/lieu-panorama.jpg") center / cover no-repeat,
        linear-gradient(135deg, #f0b27a 0%, #d9650b 55%, #8f3f06 100%);
}
.hero--duo::before, .hero--duo::after {
    content: ""; position: absolute; top: 0; bottom: 0; z-index: -1;
}
.hero--duo::before {
    left: 0; right: 50%;
    background: linear-gradient(var(--voile), var(--voile)), url("../img/lieu-salle.jpg") 25% center / cover no-repeat;
}
.hero--duo::after {
    left: 50%; right: 0;
    background: linear-gradient(var(--voile), var(--voile)), url("../img/lieu-bar.jpg") 75% center / cover no-repeat;
}
.hero__carte {
    position: relative; width: 100%; max-width: 36rem; text-align: center;
    background: rgba(255, 255, 255, var(--carte-opacite)); color: #231f1a;
    -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
    border-radius: .5rem; box-shadow: 0 .4rem 1.4rem rgba(0, 0, 0, .28);
    padding: 1.25rem 1rem 1.5rem;
}
.hero__slogan { margin: 0 0 .75rem; font-size: clamp(1.6rem, 5vw, 2.6rem); line-height: 1.15; }
.hero__logo { display: block; width: 100%; max-width: 34rem; height: auto; margin: 0 auto; }
.hero__devise {
    margin: .75rem 0 0; font-family: var(--police-titre); font-size: clamp(1.1rem, 3.5vw, 1.7rem); font-weight: 700;
    letter-spacing: clamp(.08em, 1.6vw, .3em); padding-left: .2em;
}

/* Carte d'événement avec vignette d'affiche */
.evt__vignette { flex: 0 0 5.5rem; }
.evt__vignette img {
    display: block; width: 100%; height: auto;
    background: #fff; border: 1px solid var(--filet); border-radius: .25rem;
}
.evt__titre a { color: inherit; text-decoration: none; }
.evt__titre a:hover { color: var(--accent-fonce); text-decoration: underline; }

/* Page de détail d'un événement */
.fiche__entete { text-align: center; padding-bottom: 1rem; margin-bottom: 1.25rem; border-bottom: 1px solid var(--filet); }
.fiche__entete .evt__type { font-size: .9rem; }
.fiche__entete h1 { margin: .25rem 0 .75rem; }
.fiche__quand { margin: 0; font-size: 1.25rem; font-weight: 600; }
.fiche__heure { margin-left: .6rem; padding-left: .8rem; border-left: 2px solid var(--accent); color: var(--accent-fonce); }
.fiche__badges { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin: .75rem 0 0; }
.badge--grand { font-size: .95rem; padding: .15rem .8rem; }
.fiche__corps { display: grid; grid-template-columns: minmax(0, 22rem) 1fr; gap: 1.5rem 2rem; align-items: start; margin-top: 1rem; }
.fiche__corps--seul { display: block; max-width: 40rem; margin-left: auto; margin-right: auto; }
.fiche__texte p:first-child { margin-top: 0; }
.fiche__affiche img {
    display: block; width: 100%; height: auto;
    background: #fff; border: 1px solid var(--filet); border-radius: .4rem;
}
.fiche__liens { padding-left: 1.2rem; }
.fiche__corps--seul .fiche__liens { list-style: none; padding: 0; text-align: center; }
.fiche__retour { margin-top: 2rem; text-align: center; }
.fiche--annule h1 { text-decoration: line-through; color: var(--discret); }

/* Écran moyen, accueil : le titre prend toute la largeur, date à gauche et contact à droite en dessous. */
@media (max-width: 52rem) {
    .entete--contact { grid-template-columns: minmax(0, 1fr) auto; }
    .entete--contact .entete__nom { grid-column: 1 / -1; order: -1; }
}
/* Téléphone : date et heure passent sous le titre, tout est centré. */
@media (max-width: 36rem) {
    .entete { grid-template-columns: 1fr; justify-items: center; text-align: center; }
    .entete__nom { order: 1; }
    .entete__quand { order: 2; }
    .entete__contact { order: 3; text-align: center; }
    .entete--contact .entete__nom { grid-column: auto; }
    .entete__date, .entete__heure { display: inline; }
    .entete__heure { margin-left: .5rem; font-size: 1.1rem; }
}
@media (max-width: 40rem) {
    .evt { flex-wrap: wrap; align-items: flex-start; }
    .evt__vignette { flex-basis: 4.5rem; }
    .evt__date { flex: 1 1 8rem; }
    .evt__corps { flex: 1 1 100%; }
    .evt__liens { flex-direction: row; gap: 1rem; }
    .evt__acces { flex: 0 0 auto; flex-direction: row; margin-left: auto; }
    .fiche__corps { grid-template-columns: 1fr; }
}

.titre-section { margin-top: 1.25rem; }

/* Recherche dans les archives */
.recherche { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .5rem; margin: 0 0 1rem; }
.recherche label { flex: 1 0 100%; text-align: center; font-weight: 600; }
.recherche input[type="search"] {
    flex: 0 1 22rem; min-width: 0; padding: .5rem .75rem; font: inherit;
    border: 1px solid var(--filet); border-radius: .4rem; background: #fff; color: inherit;
}
.recherche button {
    padding: .5rem 1rem; font: inherit; font-weight: 600; cursor: pointer;
    border: 1px solid var(--accent); border-radius: .4rem; background: var(--accent); color: #fff;
}
.recherche button:hover { background: var(--accent-fonce); border-color: var(--accent-fonce); }

/* Cartes d'événement : l'affiche passe à droite du texte (écrans larges) pour que les dates et les titres
   restent alignés d'une carte à l'autre, avec ou sans affiche. Pour revenir à l'affiche à gauche :
   supprimer ce bloc @media. */
@media (min-width: 40.01rem) {
    .evt__date { order: 1; } .evt__corps { order: 2; } .evt__vignette { order: 3; }
    .evt__liens { order: 4; } .evt__acces { order: 5; }
}

/* Listes d'événements regroupées par mois (agenda, archives) */
.groupe-mois { margin-bottom: 1.5rem; }
.groupe-mois__titre {
    text-align: left; font-size: 1.4rem; margin: 2rem 0 .75rem; padding-bottom: .25rem;
    border-bottom: 2px solid var(--accent); color: var(--accent-fonce);
}
.lien-archives { text-align: center; margin: -.5rem 0 1rem; }
.lien-archives a { font-weight: 600; }
.lien-archives--bas { margin: 2.5rem 0 0; padding-top: 1rem; border-top: 1px solid var(--filet); }
.resume-liste { text-align: center; margin: -.5rem 0 .5rem; color: var(--discret); }
.vide { text-align: center; color: var(--discret); margin: 2rem 0; }
.annee-nav { display: flex; justify-content: space-between; margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--filet); font-weight: 600; }
.annee-nav a { text-decoration: none; }
.annee-nav a:hover { text-decoration: underline; }
@media (prefers-reduced-motion: reduce) { .infobulle { transition: none; } }

/* Page « Accès » */
.acces { max-width: 48rem; margin: 0 auto; }
.acces__coordonnees { font-style: normal; text-align: center; margin: 0 0 1rem; }
.carte {
    height: 18rem; max-width: 100%; border: 1px solid var(--filet); border-radius: .5rem; overflow: hidden;
    background: var(--carte); display: flex; align-items: center; justify-content: center; text-align: center;
}
.carte__attente { padding: 1.5rem; max-width: 30rem; }
.carte iframe { width: 100%; height: 100%; border: 0; }
.bouton {
    font: inherit; font-weight: 700; cursor: pointer; padding: .6rem 1.4rem; border: 0; border-radius: .4rem;
    background: var(--accent-fonce); color: var(--fond);
}
.bouton:hover { background: var(--accent); }
.bouton:focus-visible { outline: 3px solid var(--texte); outline-offset: 2px; }
.acces__liens { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.5rem; margin: .75rem 0 0; }
.acces__etapes { padding-left: 1.5rem; line-height: 1.6; }
.acces__etapes li { margin-bottom: .6rem; padding-left: .25rem; }
@media (max-width: 40rem) { .carte { height: 16rem; } }


/* ---- Pages de rubrique (texte + photos) : Location salle ---- */
.rubrique { display: flow-root; max-width: 48rem; margin: 0 auto; }
.rubrique h2 { text-align: left; font-size: 1.6rem; margin: 2rem 0 .75rem; }
.rubrique h2:first-of-type { margin-top: .5rem; }
.coches { list-style: none; margin: 0; padding: 0; }
.coches li { position: relative; padding-left: 1.8rem; margin: .35rem 0; }
.coches li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--accent-fonce); font-weight: 700; }
.coches ul { list-style: none; margin: .25rem 0 0; padding-left: .25rem; }
.coches ul li::before { content: "–"; }
/* Rubriques saisies dans l'administration : même présentation que Location salle (coches orange, liens de téléphone) */
.rubrique.texte-riche h2 { font-size: 1.5rem; margin: 1.1rem 0 .4rem; }
.rubrique.texte-riche h2:first-child, .rubrique.texte-riche .photos + h2 { margin-top: .5rem; }
.rubrique.texte-riche ul { list-style: none; margin: 0 0 .6rem; padding: 0; }
.rubrique.texte-riche p { margin: .5rem 0; }
.rubrique__demande { margin-top: .9rem !important; }
.rubrique.texte-riche li { position: relative; padding-left: 1.8rem; margin: .25rem 0; }
.rubrique.texte-riche li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--accent-fonce); font-weight: 700; }
.rubrique.texte-riche strong a, .rubrique.texte-riche a[href^="tel:"] { font-weight: 700; }

/* Photos « posées » sur la page, à droite du texte (le texte les contourne) */
.photos { position: relative; z-index: 1; float: right; width: 15rem; margin: 0 0 1rem 1.75rem; display: grid; gap: 1rem; }
.photos__photo { margin: 0; }
.photos__photo a { display: block; background: #fff; padding: .4rem .4rem 1.2rem; border-radius: .15rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .28); transform: rotate(var(--angle, 0deg)); transition: transform .15s; }
.photos__photo a:hover, .photos__photo a:focus-visible { transform: rotate(0deg) scale(1.04); }
.photos__photo img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.photos__photo:nth-child(1) { --angle: -3deg; }
.photos__photo:nth-child(2) { --angle: 2.5deg; }
.photos__photo:nth-child(3) { --angle: -1.5deg; }
/* Variante « diagonale » : les photos se décalent en escalier et débordent un peu sur le texte */
.photos--diagonale { width: 17rem; margin-right: -3rem; gap: .25rem; }
.photos--diagonale .photos__photo:nth-child(1) { margin-left: 0; }
.photos--diagonale .photos__photo:nth-child(2) { margin-left: 1.5rem; }
.photos--diagonale .photos__photo:nth-child(3) { margin-left: 3rem; }
@media (max-width: 40rem) {
    .photos, .photos--diagonale { float: none; width: auto; margin: 0 0 1rem; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
    .photos--diagonale .photos__photo { margin-left: 0 !important; }
    .photos__photo a { padding: .25rem .25rem .6rem; }
}
.agrandi { max-width: min(60rem, 96vw); padding: .5rem; border: 0; border-radius: .4rem; background: var(--carte); }
.agrandi::backdrop { background: rgba(0, 0, 0, .75); }
.agrandi img { display: block; max-width: 100%; max-height: 80vh; margin: 0 auto; }
.agrandi p { margin: .4rem 0 0; text-align: center; color: var(--discret); }
.agrandi form { margin: 0; text-align: right; }
.agrandi__scene { position: relative; }
.agrandi__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 2.6rem; height: 3.6rem; border: 0; border-radius: .3rem;
    background: rgba(0, 0, 0, .45); color: #fff; font-size: 2.2rem; line-height: 1; cursor: pointer; }
.agrandi__nav:hover, .agrandi__nav:focus-visible { background: rgba(0, 0, 0, .75); }
.agrandi__prec { left: .4rem; } .agrandi__suiv { right: .4rem; }


/* ---- Textes saisis dans l'administration (actualités, rubriques) ---- */
.texte-riche { overflow-wrap: anywhere; }
.texte-riche h2 { text-align: left; font-size: 1.5rem; margin: 1.75rem 0 .5rem; }
.texte-riche h3 { text-align: left; font-size: 1.15rem; margin: 1.1rem 0 .3rem; }
.texte-riche .discret { color: var(--discret); font-size: .9rem; }
.texte-riche ul { padding-left: 1.4rem; }
.texte-riche li { margin: .25rem 0; }
.actus { max-width: 48rem; margin: 0 auto; }
.actu { padding: 1rem 1.25rem; margin-bottom: 1.25rem; background: var(--carte); border: 1px solid var(--filet); border-left: 4px solid var(--accent); border-radius: .4rem; }
.actu__titre { text-align: left; font-size: 1.4rem; margin: 0; }
.actu__date { margin: .15rem 0 .75rem; color: var(--discret); font-size: .9rem; }
.actu .texte-riche > :last-child { margin-bottom: 0; }
.apercu-bandeau { max-width: 48rem; margin: 0 auto 1rem; padding: .5rem 1rem; border: 2px dashed var(--accent); border-radius: .4rem; text-align: center; font-weight: 600; }

/* Actualité avec image : image à gauche (écrans larges), au-dessus sur téléphone ; un clic l'agrandit */
.actu--image { display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.actu__image { display: block; }
.actu__image img { display: block; width: 100%; height: auto; background: #fff; border: 1px solid var(--filet); border-radius: .3rem; }
.actu__image:hover img, .actu__image:focus-visible img { box-shadow: 0 2px 10px rgba(0, 0, 0, .3); }
@media (max-width: 40rem) { .actu--image { grid-template-columns: 1fr; } .actu__image { max-width: 20rem; } }

/* ---- Formulaire de demande de location ---- */
.demande { max-width: 44rem; margin: 0 auto; }
.demande__intro { margin-top: 0; }
.demande__form { display: grid; gap: 1rem; margin-top: 1.25rem; padding: 1.25rem; background: var(--carte); border: 1px solid var(--filet); border-radius: .5rem; }
.demande__form label { display: grid; gap: .25rem; font-weight: 600; }
.demande__form input[type="text"], .demande__form input[type="email"], .demande__form input[type="tel"],
.demande__form input[type="date"], .demande__form input[type="number"], .demande__form select, .demande__form textarea {
    width: 100%; font: inherit; font-weight: 400; padding: .55rem .7rem; color: inherit; background: #fff;
    border: 1px solid var(--discret); border-radius: .35rem;
}
.demande__form textarea { resize: vertical; }
.demande__form input:focus-visible, .demande__form select:focus-visible, .demande__form textarea:focus-visible,
.demande__envoyer:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
.demande__ligne { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.demande__aide { font-weight: 400; color: var(--discret); font-size: .9rem; }
.demande__requis { color: var(--accent-fonce); }
.demande__consentement { display: flex !important; align-items: flex-start; gap: .6rem; font-weight: 400 !important; }
.demande__consentement input { width: 1.2rem; height: 1.2rem; margin-top: .2rem; flex: none; accent-color: var(--accent); }
.demande__rgpd { margin: 0; font-size: .9rem; color: var(--discret); }
.demande__envoyer { padding: .7rem 1.6rem; font: inherit; font-weight: 700; cursor: pointer; color: #fff; background: var(--accent); border: 1px solid var(--accent); border-radius: .4rem; }
.demande__envoyer:hover { background: var(--accent-fonce); border-color: var(--accent-fonce); }
.demande__erreurs { margin: 1rem 0 0; padding: .75rem 1rem; border: 1px solid #b3261e; border-radius: .4rem; color: #b3261e; background: #fff; }
.demande__erreurs p { margin: 0 0 .25rem; }
.demande__erreurs ul { margin: 0; padding-left: 1.2rem; }
.demande--merci { padding: 1.25rem 1.5rem; background: var(--carte); border: 1px solid var(--filet); border-left: 4px solid var(--accent); border-radius: .4rem; }
/* champ piège anti-robots : invisible pour les visiteurs */
.demande__piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.bouton-demande { display: inline-block; margin-top: .25rem; padding: .6rem 1.2rem; font-weight: 700; text-decoration: none; color: #fff;
    background: var(--accent); border-radius: .4rem; }
.bouton-demande:hover { background: var(--accent-fonce); color: #fff; }

/* ---- Visite des lieux : photos de hauteur égale (rangées « justifiées »), cliquables ---- */
.visite { display: flex; flex-wrap: wrap; gap: .75rem; list-style: none; margin: 1rem 0; padding: 0; }
.visite::after { content: ""; flex: 10 1 0; }   /* la dernière rangée ne s'étire pas démesurément */
.visite__item { flex: var(--r) 1 calc(var(--r) * var(--h)); min-width: 7rem; margin: 0; }
.visite__photo { position: relative; display: block; overflow: hidden; border-radius: .25rem; background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .28); transition: transform .15s; }
.visite__photo:hover, .visite__photo:focus-visible { transform: scale(1.02); }
.visite__photo img { display: block; width: 100%; height: auto; }
.visite__nom { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem .6rem .4rem; color: #fff; font-family: var(--police-titre);
    font-size: 1.05rem; font-weight: 700; text-shadow: 0 1px 3px rgba(0, 0, 0, .8);
    background: linear-gradient(transparent, rgba(0, 0, 0, .6)); pointer-events: none; }
.visite__intro { text-align: center; color: var(--discret); margin: -.25rem 0 0; }
.visite__suite { text-align: center; margin-top: 1.5rem; }
.visite-accueil__titre { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem 1rem; }
.visite-accueil__titre a { font-weight: 600; }
@media (max-width: 40rem) {
    .visite { gap: .5rem; }
    .visite__item { flex-basis: calc(var(--r) * 6rem); }
    .visite__photo img { max-height: 13rem; object-fit: cover; object-position: center 55%; }   /* une photo portrait ne doit pas occuper tout l'écran */
}
.visite-accueil { margin-bottom: 1.75rem; }
.visite-accueil .titre-section { margin-bottom: 0; }

/* Accueil : invitation à s'inscrire à la liste de diffusion */
.inscription-accueil { margin-top: 2rem; padding: 1.25rem 1.5rem; text-align: center; background: var(--carte); border: 1px solid var(--filet); border-radius: .5rem; }
.inscription-accueil .titre-section { margin-top: 0; }
.inscription-accueil p { margin: .4rem 0; }

/* ---- Réservation de repas (bouton sur les événements, formulaire public) ---- */
.evt__repas { margin: .6rem 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .75rem; }
.bouton-repas { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .9rem; font-weight: 700; font-size: .92rem; text-decoration: none;
    color: var(--accent-fonce); background: var(--carte); border: 2px solid var(--accent); border-radius: 999px; }
.bouton-repas:hover, .bouton-repas:focus-visible { background: var(--accent); color: #fff; }
.bouton-repas svg { flex: none; }
.evt__repas-prix { font-size: .85rem; color: var(--discret); }
.fiche__repas { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .35rem .9rem; margin: 1rem 0 0; }
.fiche__repas .bouton-repas { font-size: 1.05rem; padding: .45rem 1.2rem; }
.repas-info { margin: 1rem 0 0; padding: .9rem 1.1rem; background: var(--carte); border: 1px solid var(--filet); border-left: 4px solid var(--accent); border-radius: .4rem; }
.repas-info p { margin: .2rem 0; }
.repas-info__evt { font-weight: 700; font-size: 1.1rem; }
