/* =====================================================================
   Musée de la Bataille des Ardennes – feuille de styles unique
   ===================================================================== */

/* ---------- Polices ---------- */
@font-face { font-family: 'Serif'; src: url("../polices/serifmedium-webfont.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Serif'; src: url("../polices/serifblack-webfont.woff") format("woff"); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Capture it'; src: url("../polices/capture_it-webfont.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Permanent Marker'; src: url("../polices/permanentmarker-webfont.woff") format("woff"); font-weight: 400; font-display: swap; }

/* ---------- Couleurs et réglages ---------- */
:root {
    --fond: #191919;
    --texte: #fff;
    --vert: #73956c;          /* boutons, pastilles */
    --vert-nav: #374d31;      /* barre de navigation */
    --vert-sombre: #1f2b1d;   /* page active */
    --vert-reseaux: #223225;  /* boutons réseaux de l'en-tête */
    --orange: #f78d08;
    --orange-fonce: #cd7606;
    --or: #c6c190;            /* titres dorés */
    --gris-pied: #718181;
    --bleu: #4cb2d5;
    --police: "Helvetica Neue", Helvetica, Arial, sans-serif;
    --police-titre: 'Serif', Helvetica, Arial, sans-serif;
    --police-pochoir: 'Capture it', Helvetica, Arial, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0; background: var(--fond); color: var(--texte);
    font: 16px/1.5 var(--police);
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img, video, iframe { max-width: 100%; }
img { height: auto; border: 0; }
a { color: var(--vert); text-decoration: none; }
a:hover { text-decoration: underline; }
p { margin: 0 0 1rem; }
h1, h2, h3 { margin: 0; font-weight: 500; }
sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; top: -.5em; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.centre { text-align: center; }
.visuellement-cache { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.icone { display: inline-block; width: auto; height: 1em; fill: currentColor; vertical-align: -.125em; }

/* ---------- Boutons ---------- */
.bouton {
    display: inline-block; font: inherit; font-size: 16px; line-height: 1.5; text-align: center; cursor: pointer;
    color: #fff; background: var(--vert); border: 1px solid var(--vert); border-radius: 4px;
    padding: 6px 16px; text-decoration: none; transition: background-color .15s, border-color .15s;
}
.bouton:hover { background: #5f7d59; border-color: #5f7d59; color: #fff; text-decoration: none; }
.bouton.petit { font-size: 14px; padding: 4px 12px; }
.bouton.grand { font-size: 20px; line-height: 1.333; padding: 12px 20px; }
.bouton.contour { background: transparent; color: var(--bleu); border-color: var(--bleu); }
.bouton.contour:hover { background: var(--bleu); color: #fff; }

/* =====================================================================
   EN-TÊTE (diaporama + titre)
   ===================================================================== */
.entete { position: relative; overflow: hidden; min-height: 340px; padding: 75px 0 70px; }
@media (min-width: 48em) { .entete { height: 400px; padding-bottom: 0; } }
@media (min-width: 62em) { .entete { height: 444px; } }

.entete-titre {
    position: relative; z-index: 2; margin: 0 15px;
    font: 400 clamp(24px, 3.45vw, 44px)/1.56 var(--police-titre); letter-spacing: 8px; text-align: center;
    background: linear-gradient(45deg, rgba(0,0,0,.82), rgba(0,0,0,0));
    border-top: 1px solid #fff; border-bottom: 1px solid #fff;
}
.entete-logos { position: relative; z-index: 2; display: flex; gap: 30px; padding: 30px 15px 0; justify-content: center; }
.entete-logos a { flex: 0 1 240px; }
.entete-logos .logo-80 { display: none; }
@media (min-width: 48em) {
    .entete-logos { justify-content: flex-start; max-width: 427px; gap: 30px; }
    .entete-logos a { flex: 1 1 0; display: flex; align-items: center; }
    .entete-logos .logo-80 { display: flex; }
}

/* Boutons réseaux en bas à droite de l'en-tête */
.reseaux { list-style: none; margin: 0; padding: 0; display: flex; }
.reseaux a { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 4px; color: #fff; background: var(--vert); transition: transform .2s; }
.reseaux a:hover { transform: scale(1.08); text-decoration: none; }
.reseaux-entete {
    position: absolute; z-index: 3; right: 0; bottom: 19px; gap: 10px; padding-left: 63px; padding-right: 35px;
    background: linear-gradient(45deg, rgba(255,255,255,0), #fff); border-radius: 2px 0 0 2px;
}
.reseaux-entete a { background: var(--vert-reseaux); font-size: 24px; }

/* Menu des langues (drapeau) */
.langues-menu { position: absolute; z-index: 5; top: 20px; right: 20px; }
.langues-menu > button {
    width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; color: #fff; font-size: 20px;
    background: var(--vert); box-shadow: 0 0 5px rgba(0,0,0,.5); display: flex; align-items: center; justify-content: center;
    transition: background-color .2s;
}
.langues-menu > button .icone-ouvert { display: none; }
.langues-menu.ouvert > button { background: #213125; }
.langues-menu.ouvert > button .icone-ouvert { display: inline-block; }
.langues-menu.ouvert > button .icone-ferme { display: none; }
.langues-menu ul { list-style: none; margin: 9px 6px 0 0; padding: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.langues-menu li { opacity: 0; transform: translateY(-8px); transition: opacity .2s, transform .2s; visibility: hidden; }
.langues-menu.ouvert li { opacity: 1; transform: none; visibility: visible; }
.langues-menu.ouvert li:nth-child(2) { transition-delay: .05s; }
.langues-menu.ouvert li:nth-child(3) { transition-delay: .1s; }
.langues-menu a { display: flex; align-items: center; gap: 6px; color: rgba(255,255,255,.75); text-decoration: none; }
.langues-menu a span { background: rgba(0,0,0,.6); border-radius: 16px; padding: 0 12px; font-size: 14px; font-weight: 700; line-height: 24px; }
.langues-menu a .icone { width: 32px; height: 32px; padding: 7px; border-radius: 16px; background: var(--vert); }
.langues-menu a:hover { color: #fff; }

/* =====================================================================
   DIAPORAMA (en-tête et caves)
   ===================================================================== */
.diaporama { position: absolute; inset: 0; overflow: hidden; background: var(--fond); }
.diaporama-image {
    position: absolute; inset: 0; background-size: cover; background-position: center;
    opacity: 0; transition-property: opacity; transition-timing-function: linear;
}
.diaporama-image.visible { opacity: 1; }
.diaporama-minuteur { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 2px; }
.diaporama-minuteur span { display: block; height: 100%; width: 0; background: var(--orange); }

@keyframes kenburns            { from { transform: scale(1.5); } to { transform: scale(1); } }
@keyframes kenburns-haut       { from { transform: scale(1.5) translate(0, 10%); } to { transform: scale(1) translate(0, 0); } }
@keyframes kenburns-bas        { from { transform: scale(1.5) translate(0, -10%); } to { transform: scale(1) translate(0, 0); } }
@keyframes kenburns-gauche     { from { transform: scale(1.5) translate(10%, 0); } to { transform: scale(1) translate(0, 0); } }
@keyframes kenburns-droite     { from { transform: scale(1.5) translate(-10%, 0); } to { transform: scale(1) translate(0, 0); } }
@keyframes kenburns-haut-gauche{ from { transform: scale(1.5) translate(10%, 10%); } to { transform: scale(1) translate(0, 0); } }
@keyframes kenburns-haut-droite{ from { transform: scale(1.5) translate(-10%, 10%); } to { transform: scale(1) translate(0, 0); } }
@keyframes kenburns-bas-gauche { from { transform: scale(1.5) translate(10%, -10%); } to { transform: scale(1) translate(0, 0); } }
@keyframes kenburns-bas-droite { from { transform: scale(1.5) translate(-10%, -10%); } to { transform: scale(1) translate(0, 0); } }

/* =====================================================================
   BARRE DE NAVIGATION (reste collée en haut)
   ===================================================================== */
.barre-nav {
    position: sticky; top: 0; z-index: 50; display: flex; flex-wrap: wrap;
    background: var(--vert-nav); box-shadow: 0 0 8px rgba(0,0,0,.33);
}
.nav-principale { flex: 1 1 auto; min-height: 44px; }
.nav-principale > ul { list-style: none; margin: 0; padding: 0; }
.nav-principale a { color: #fff; text-decoration: none; }
.nav-bouton { display: block; margin-left: auto; height: 44px; padding: 0 12px; border: 0; background: none; color: #fff; font-size: 22px; cursor: pointer; }
.nav-principale > ul { display: none; }
.nav-principale.ouvert > ul { display: block; background: var(--vert-nav); }
.nav-principale > ul > li > a { display: block; padding: 0 8px; font-size: 11px; font-weight: 600; text-transform: uppercase; line-height: 22px; }
.nav-principale > ul > li:first-child > a { background: var(--vert-sombre); font-size: 22px; line-height: 40px; }
.nav-principale li ul { list-style: none; margin: 0; padding: 0 0 0 16px; display: none; }
.nav-principale li.deplie > ul { display: block; }
.nav-principale li ul a { display: block; font-size: 13px; font-weight: 600; line-height: 26px; padding: 0 8px; }
.nav-principale .fleche { margin-left: 3px; transition: transform .2s; }
.nav-principale li.deplie .fleche { transform: rotate(90deg); }
.nav-principale a.actif { background: var(--vert-sombre); }

.barre-contact {
    flex: 1 1 100%; display: flex; align-items: center; justify-content: center; padding: 4px 0;
    background: linear-gradient(45deg, var(--orange), var(--orange-fonce));
}

@media (min-width: 48em) {
    .barre-nav { flex-wrap: nowrap; }
    .nav-principale { flex: 0 0 83.333%; }
    .barre-contact { flex: 0 0 16.667%; padding: 0; }
    .nav-bouton { display: none; }
    .nav-principale > ul, .nav-principale.ouvert > ul {
        display: flex; justify-content: center; align-items: center; gap: 9px; height: 44px; background: none;
    }
    .nav-principale > ul > li { position: relative; }
    .nav-principale > ul > li > a, .nav-principale > ul > li:first-child > a {
        display: flex; align-items: center; font-size: 16px; line-height: 44px; padding: 0 6px; border-radius: 2px; background: none;
    }
    .nav-principale > ul > li > a.actif, .nav-principale > ul > li:first-child > a.actif {
        background: var(--vert-sombre); margin: -6px 0; padding-top: 6px; padding-bottom: 6px;
    }
    .nav-principale > ul > li > a:hover { background: rgba(0,0,0,.2); }
    .icone-maison { font-size: 32px; }
    /* sous-menu Histoire */
    .nav-principale li ul {
        position: absolute; top: 100%; left: 0; min-width: 320px; padding: 0; margin-top: 6px;
        background: #2b3d26; box-shadow: 0 8px 16px rgba(0,0,0,.5); border-radius: 0 0 4px 4px; border-top: 3px solid var(--orange);
    }
    .nav-principale li.deplie > ul { display: block; }
    .nav-principale li ul li + li { border-top: 1px solid rgba(255,255,255,.12); }
    .nav-principale li ul a { font-size: 16px; font-weight: 600; line-height: 1.35; padding: 12px 18px; color: #fff; letter-spacing: .01em; }
    .nav-principale li ul a:hover, .nav-principale li ul a:focus-visible { background: var(--vert); text-decoration: none; }
    .nav-principale li ul a.actif { background: var(--vert-sombre); box-shadow: inset 4px 0 0 var(--orange); }
}

/* Bandeau « Le musée est ouvert / fermé » */
.statut {
    position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
    gap: .25em .55em; padding: .55em 1em; font-size: .95rem; line-height: 1.4; text-align: center;
    border-bottom: 1px solid rgba(0,0,0,.06);
}
.statut-ouvert { background: #eaf5ec; color: #1e6b35; }
.statut-ferme { background: #f8ecec; color: #8a1219; }
.statut-pastille { width: .6em; height: .6em; border-radius: 50%; background: currentColor; flex: none; }
.statut-ouvert .statut-pastille { animation: statut-pulse 2.2s infinite; }
@keyframes statut-pulse { 0% { box-shadow: 0 0 0 0 rgba(30,107,53,.5); } 70%, 100% { box-shadow: 0 0 0 .45em rgba(30,107,53,0); } }
.statut-sep { opacity: .5; }
.statut-lien { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: .2em; margin-left: .4em; white-space: nowrap; }
@media (max-width: 600px) {
    .statut { font-size: .88rem; }
    .statut-sep { display: none; }
    .statut > span:not(.statut-pastille) { flex-basis: 100%; }
    .statut-lien { margin-left: 0; }
}

/* =====================================================================
   CONTENU
   ===================================================================== */
main { padding: 0 8px; overflow-x: clip; }

/* 2000 m² — 4 niveaux */
.chiffres { display: grid; grid-template-columns: 1fr; justify-items: center; padding: 26px 15px 20px; }
.chiffres .nouveau { width: 100px; }
.texte-relief {
    margin: 16px 0 0; text-align: center; font: 700 7vw/1.25 Impact, Charcoal, sans-serif;
    -webkit-text-stroke: 2px #fff; -webkit-text-fill-color: #213125; color: #213125;
    text-shadow: 4px 4px 8px #141313;
}
.accroche { font-size: 24px; font-weight: 500; line-height: 1.2; text-align: center; margin: 14px 0 0; }
.accroche strong { color: var(--vert); font-weight: 800; }
@media (min-width: 62em) {
    .chiffres { grid-template-columns: 2fr 10fr; align-items: center; padding-top: 52px; }
    .chiffres .nouveau { justify-self: end; align-self: start; margin-top: -16px; }
    .texte-relief { margin: 0; }
    .accroche { grid-column: 1 / -1; width: 100%; }
}
@media (min-width: 80em) { .texte-relief { font-size: 77px; } }

/* Les caves */
.caves { display: grid; grid-template-columns: 1fr; margin-top: 52px; }
.caves-texte {
    margin: 0; padding: 0 15px 40px; display: flex; align-items: center; justify-content: center; text-align: center;
    font: 400 clamp(32px, 4.7vw, 60px)/1.5 var(--police-pochoir); color: #feffff;
}
.caves-diaporama { position: relative; height: 50vh; margin: 0 15px; }
.caves-diaporama .diaporama-minuteur { height: 8px; }
.caves-diaporama .diaporama-minuteur span { background: #618659; }
@media (min-width: 48em) {
    .caves { grid-template-columns: 1fr 1fr; }
    .caves-texte { padding-bottom: 0; }
}

/* Ce qui nous distingue */
.distingue { display: grid; grid-template-columns: 1fr; gap: 0 30px; margin-top: 50px; padding: 0 15px; }
.langues-pastilles { list-style: none; margin: 0; padding: 6px; display: flex; gap: 4px; }
.langues-pastilles li {
    width: 32px; height: 32px; border-radius: 50%; background: var(--vert); opacity: .7;
    display: flex; align-items: center; justify-content: center; transition: transform .2s ease-in-out, opacity .2s;
}
.langues-pastilles li:hover { transform: rotate(360deg) scale(1.25); opacity: 1; font-weight: bold; }
.langues-pastilles a { color: #fff; text-decoration: none; }
.titre-or { margin: 18px 0 14px; font: 800 clamp(28px, 3.2vw + 15px, 40px)/1.2 var(--police-titre); color: var(--or); }
.texte-justifie { font-size: 14px; line-height: 1.5; text-align: justify; }
.texte-justifie p { margin: 0; }
@media (max-width: 47.99em) { .texte-justifie { line-height: 24px; } .bouton.grand { font-size: 18px; padding: 12px 14px; } }
.texte-justifie p + p { margin-top: 21px; }
.texte-justifie sup { font-size: 12px; }
.distingue-texte .centre { margin-top: 24px; }
.distingue-cote { text-align: center; padding-top: 40px; }
.reseaux-grands { justify-content: center; gap: 44px; }
.reseaux-grands a { font-size: 30px; }
@media (max-width: 440px) { .externe.facebook { display: none !important; } }
@media (max-width: 440px) { .accroche { display: none; } }
@media (min-width: 62em) {
    .distingue { grid-template-columns: 7fr 5fr; }
    .distingue-cote { padding-top: 74px; }
}

/* Photos et vidéo */
.medias { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 30px; align-items: center; margin: 50px 0 0; padding: 0 15px 8px; }
.medias img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; cursor: zoom-in; }
.medias video { width: 100%; height: auto; display: block; background: #000; }
.medias > :last-child { grid-column: 2; }
@media (min-width: 48em) {
    .medias { grid-template-columns: repeat(3, 1fr); }
    .medias > :last-child { grid-column: auto; }
}

/* =====================================================================
   EN-TÊTE À EFFET DE PROFONDEUR (pages intérieures)
   ===================================================================== */
.entete-parallaxe { background-size: cover; background-position: center 50%; padding-top: 0; }
@media (min-width: 62em) { .entete-parallaxe { height: 439px; } }
.entete-titre.bandeau { margin: 0; border: 0; }
.entete-parallaxe .langues-menu { top: 100px; }
.entete-logos.grands { max-width: none; justify-content: space-between; padding: 30px 44px 40px; gap: 20px; }
.entete-logos.grands a { flex: 0 1 300px; display: block; }
.entete-logos.grands a:last-child { margin-top: 44px; }
@media (max-width: 47.99em) {
    .entete-logos.grands { flex-direction: column; align-items: center; padding: 10px 15px 60px; }
    .entete-logos.grands a:last-child { margin-top: 0; }
}

/* =====================================================================
   PAGE « INFOS PRATIQUES »
   ===================================================================== */
.encadre-clair { background: #eee; color: #363a3b; margin: 24px 7px 0; padding: 20px; }
.infos-horaires { display: grid; grid-template-columns: 1fr; gap: 0 30px; }
@media (min-width: 62em) { .infos-horaires { grid-template-columns: 2fr 1fr; padding-bottom: 60px; } }
.infos-principal { padding: 16px 15px 0; text-align: center; }
.avertissement { color: #fb0106; font-weight: 700; }
.heures { font-weight: 700; margin-top: 2rem; }
.infos-tarifs { padding: 46px 15px 0; }
.infos-tarifs p { margin-bottom: 1rem; }
.infos-tarifs .remarque { font: 14px/1.7 Arial, Verdana, Helvetica, sans-serif; color: #000; }

.infos-acces { display: grid; grid-template-columns: 1fr; gap: 30px; margin-top: 10px; padding: 0 7px; }
@media (min-width: 48em) { .infos-acces { grid-template-columns: 1fr 2fr; } }
.fiche { background: #e0e0e0; border-radius: 4px; padding-bottom: 36px; text-align: center; color: #363a3b; }
.fiche-image { display: block; width: 100%; border-radius: 4px 4px 0 0; }
.fiche-rond { width: 158px; border: 5px solid #fff; border-radius: 50%; margin: -79px auto 0; display: block; position: relative; }
.fiche-titre {
    margin: 20px 20px 60px; background: rgba(255,255,255,.44); line-height: 30px;
    font: 700 20px/30px var(--police-pochoir); color: var(--vert);
}
.fiche-coordonnees { background: rgba(255,255,255,.44); border-radius: 9px; margin: 0 20px 0 40px; text-align: left; }
.fiche .coordonnees li, .fiche .coordonnees li + li { padding: 0 0 20px; }
.fiche .coordonnees li:first-child .pastille { top: 50%; }
.fiche .coordonnees .adresse, .fiche .coordonnees .tel { font-size: 20px; font-weight: 300; line-height: 30px; color: #363a3b; margin: 0; }
.fiche .coordonnees .lien { font-size: 20px; font-weight: 300; font-style: italic; color: var(--vert); }
.infos-plan iframe { display: block; border: 0; background: #2a2a2a; }
.infos-services { display: grid; grid-template-columns: 1fr; gap: 20px; padding: 30px 0; }
@media (min-width: 48em) { .infos-services { grid-template-columns: 1fr 1fr; } }
.infos-services p { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 20px; font-weight: 300; }
.pastille.grande {
    width: 44px; height: 44px; border-radius: 50%; background: var(--vert); color: #fff; font-size: 22px;
    display: inline-flex; align-items: center; justify-content: center; flex: none; align-self: flex-start;
}

/* =====================================================================
   CALENDRIER MENSUEL
   ===================================================================== */
.calendrier { background: #fff; color: #000; margin-top: 24px; padding: 0 15px 1px; }
.calendrier-titre { font: 500 40px/1.2 var(--police); color: var(--or); margin-bottom: 8px; }
.cal-barre { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; margin-bottom: 16px; }
.cal-barre h3 { font-size: 22px; font-weight: 500; margin: 0; }
.cal-barre .cal-gauche { justify-self: start; }
.cal-barre .cal-droite { justify-self: end; display: flex; gap: 12px; }
.cal-bouton {
    height: 34px; padding: 0 .6em; font: inherit; font-size: 16px; color: #333; cursor: pointer; border-radius: 4px;
    border: 1px solid rgba(0,0,0,.1); border-bottom-color: rgba(0,0,0,.25);
    background: #f5f5f5 linear-gradient(#fff, #e6e6e6); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05);
    text-shadow: 0 1px 1px rgba(255,255,255,.75);
}
.cal-bouton.fleche { min-width: 47px; font-size: 22px; line-height: 1; font-weight: 700; }
.cal-bouton:hover { background: #e6e6e6; }
.cal-bouton:disabled { opacity: .65; cursor: default; background: #e6e6e6; box-shadow: none; }
.cal-entetes { display: grid; grid-template-columns: repeat(7, 1fr); border: 1px solid #ddd; border-bottom: 0; }
.cal-entetes span { text-align: center; font-weight: 700; border-left: 1px solid #ddd; }
.cal-entetes span:first-child { border-left: 0; }
.cal-semaine { position: relative; display: grid; grid-template-columns: repeat(7, 1fr); align-content: start; border: 1px solid #ddd; border-top: 0; min-height: 86px; }
.cal-fond { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-fond span { border-left: 1px solid #ddd; }
.cal-fond span:first-child { border-left: 0; }
.cal-fond span.aujourdhui { background: #fcf8e3; }
.cal-num { grid-row: 1; text-align: right; padding: 2px 4px; position: relative; z-index: 1; }
.cal-num.autre-mois { color: #999; }
.cal-evenement {
    position: relative; z-index: 1; margin: 2px 1px 0; min-height: 48px; color: #fff; text-decoration: none;
    display: flex; flex-direction: column; justify-content: space-between; align-items: center; text-align: center; overflow: hidden;
    padding: 4px 2px 3px;
}
.cal-evenement.ouvert { background: #008000; }
.cal-evenement.ferme { background: #f00; }
.cal-evenement.debut { border-top-left-radius: 3px; border-bottom-left-radius: 3px; margin-left: 2px; }
.cal-evenement.fin { border-top-right-radius: 3px; border-bottom-right-radius: 3px; margin-right: 2px; }
.cal-evenement .cal-titre { font-size: 10px; font-weight: 700; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; min-height: 1.3em; }
.cal-evenement .cal-etat { font-size: 12px; font-weight: 700; white-space: nowrap; }
@media (max-width: 47.99em) {
    .calendrier-titre { font-size: 32px; }
    .cal-barre { grid-template-columns: auto auto; grid-template-areas: "g d" "t t"; gap: 8px; }
    .cal-barre .cal-gauche { grid-area: g; } .cal-barre .cal-droite { grid-area: d; }
    .cal-barre h3 { grid-area: t; font-size: 20px; text-align: center; }
    .cal-barre .cal-droite { gap: 6px; }
    .cal-bouton { font-size: 14px; }
    .cal-bouton.fleche { min-width: 36px; }
    .cal-entetes span { font-size: 12px; }
    .cal-evenement .cal-etat { font-size: 10px; }
}

/* =====================================================================
   PAGES INTÉRIEURES : éléments communs
   ===================================================================== */
.page { padding: 26px 15px 40px; }
.page > * + * { margin-top: 24px; }
.page .titre-or { margin: 0 0 8px; }
.sous-titre-or { font-size: 28px; font-weight: 500; line-height: 1.2; color: var(--or); margin: 0 0 8px; }
.texte-pochoir { font: 400 20px/1.5 var(--police-pochoir); }
.texte-pochoir strong { font-weight: 700; }
.texte-pochoir sup { font-size: 15px; }
.texte-pochoir .alerte { color: #fb001d; font-size: 22px; }
.legende { font: italic 400 15px/1.5 var(--police-pochoir); text-align: center; margin: 8px 0 0; }
.legende.simple { font: 12px/1.5 var(--police); font-style: normal; text-align: right; }
.texte-normal { text-align: justify; }
.texte-normal a, .texte-pochoir a { font-weight: 700; }
.colonnes-2, .colonnes-3 { display: grid; grid-template-columns: 1fr; gap: 30px; align-items: start; }
@media (min-width: 48em) { .colonnes-2 { grid-template-columns: 1fr 1fr; } .colonnes-3 { grid-template-columns: repeat(3, 1fr); } }
.photo { display: block; width: 100%; height: auto; }
.photo-arrondie { border-radius: 4px; box-shadow: 0 0 6px rgba(0,0,0,.33); }
figure { margin: 0; }
video { display: block; width: 100%; height: auto; background: #000; }

/* Diaporama à points */
.carrousel { position: relative; max-width: 770px; margin-left: auto; margin-right: auto; }
.carrousel-cadre { overflow: hidden; }
.carrousel-piste { display: flex; transition: transform .6s ease; }
.carrousel-piste img { flex: 0 0 100%; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.carrousel-fondu .carrousel-piste { display: grid; transition: none; }
.carrousel-fondu .carrousel-piste img { grid-area: 1 / 1; opacity: 0; transition: opacity .6s ease; aspect-ratio: 587 / 325; }
.carrousel-fondu .carrousel-piste img.actif { opacity: 1; }
.carrousel-points { display: flex; justify-content: center; gap: 6px; margin: 14px 0 0; padding: 0; list-style: none; }
.carrousel-points button { width: 11px; height: 11px; padding: 0; border: 0; border-radius: 20px; cursor: pointer; background: rgba(255,255,255,.3); transition: width .3s, background-color .3s; }
.carrousel-points button[aria-current="true"] { width: 22px; background: var(--vert); }
.carrousel-fleche {
    position: absolute; top: 50%; width: 40px; height: 40px; margin-top: -27px; border: 0; border-radius: 4px; cursor: pointer;
    background: rgba(255,255,255,.78); color: rgba(33,49,37,.6); font-size: 26px; line-height: 40px; opacity: 0; transition: opacity .3s;
}
.carrousel:hover .carrousel-fleche, .carrousel-fleche:focus-visible { opacity: 1; }
.carrousel-fleche.prec { left: 10px; } .carrousel-fleche.suiv { right: 10px; }

/* Agrandissement d'une image (liens et galeries) */
.boite { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.9); padding: 50px 60px; }
.boite[hidden] { display: none; }
.boite figure { max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.boite img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; box-shadow: 0 0 20px rgba(0,0,0,.6); }
.boite figcaption { color: #ddd; margin-top: 10px; text-align: center; }
.boite button { position: absolute; border: 0; background: none; color: #fff; cursor: pointer; opacity: .8; }
.boite button:hover { opacity: 1; }
.boite .fermer { top: 10px; right: 18px; font-size: 40px; line-height: 1; }
.boite .prec, .boite .suiv { top: 50%; margin-top: -30px; font-size: 54px; line-height: 60px; padding: 0 10px; }
.boite .prec { left: 6px; } .boite .suiv { right: 6px; }
@media (max-width: 600px) { .boite { padding: 50px 10px; } .boite .prec, .boite .suiv { top: auto; bottom: 10px; margin: 0; } }
a[data-agrandir] { cursor: zoom-in; }

/* Onglets */
.onglets-liste { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 3px; margin: 0 0 0; padding: 0; list-style: none; }
.onglets-liste button { font: inherit; padding: 8px 16px; border: 0; border-radius: 4px; background: none; color: var(--vert); cursor: pointer; }
.onglets-liste button:hover { text-decoration: underline; }
.onglets-liste button[aria-selected="true"] { background: #0275d8; color: #fff; text-decoration: none; }
.onglet-panneau { padding-top: 0; }
.onglet-panneau[hidden] { display: none; }
.onglet-panneau > * + * { margin-top: 16px; }
.onglets-gris .onglets-liste button { color: #656d73; }
.onglets-gris .onglets-liste button[aria-selected="true"] { background: #404040; color: #fff; }
.onglets-gris .onglet-panneau { background: #eee; color: #000; padding: 14px; }
.onglets-gris .onglet-panneau img { margin-left: auto; margin-right: auto; }

/* Accordéon */
.accordeon { margin: 0; }
.accordeon + .accordeon { margin-top: 5px; }
.accordeon > summary {
    list-style: none; cursor: pointer; padding: 10px 20px 10px 15px; background: var(--gris-pied); font-size: 20px; font-weight: 500; line-height: 1.2;
    display: flex; justify-content: space-between; align-items: center;
}
.accordeon > summary::-webkit-details-marker { display: none; }
.accordeon > summary::after { content: "+"; font-size: 24px; line-height: 1; transition: transform .2s; margin-left: 10px; }
.accordeon[open] > summary::after { transform: rotate(45deg); }
.accordeon > summary:hover { background: #637171; }
.accordeon-contenu { padding: 20px 15px; background: rgba(255,255,255,.06); }
@media (max-width: 47.99em) { .accordeon > summary { font-size: 17px; } }
.accordeon-contenu > * + * { margin-top: 16px; }

/* Citation */
.citation { position: relative; max-width: 771px; margin: 24px auto 0; padding: 50px 10px; font-size: 20px; line-height: 1.5; font-style: italic; }
.citation::before, .citation::after { position: absolute; font: italic 900 80px/1 Georgia, serif; color: #555; }
.citation::before { content: "\201C"; left: 0; top: 0; }
.citation::after { content: "\201D"; right: 0; bottom: -20px; }

/* Mosaïque de photos (rangées justifiées) */
.mosaique { display: flex; flex-direction: column; gap: 4px; padding: 0 9px; }
.mosaique-rangee { display: flex; gap: 4px; }
.mosaique a { position: relative; flex: var(--r) 1 0; aspect-ratio: var(--r); overflow: hidden; display: block; }
.mosaique img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.mosaique a:hover img { transform: scale(1.06); }
@media (max-width: 40em) { .mosaique-rangee { flex-wrap: wrap; } .mosaique a { flex-basis: calc(var(--r) * 120px); } }

/* Carte interactive */
.carte-interactive { position: relative; overflow: hidden; aspect-ratio: 587 / 720; background: #c9d6a3 center / cover; touch-action: none; cursor: grab; user-select: none; }
.carte-interactive.glisse { cursor: grabbing; }
.carte-plan { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.carte-plan > img { display: block; width: 100%; height: 100%; pointer-events: none; }
.carte-repere { position: absolute; width: 39px; height: 39px; margin: -19px 0 0 -19px; padding: 0; border: 0; background: none; cursor: pointer; transform-origin: center; }
.carte-repere img { width: 100%; height: 100%; display: block; }
.carte-repere.montre, .carte-repere:hover, .carte-repere:focus-visible { z-index: 2; }
.carte-repere::after {
    content: attr(data-titre); position: absolute; left: 50%; top: 100%; transform: translate(-50%, 6px); white-space: nowrap;
    background: rgba(0,0,0,.85); color: #fff; font-size: 13px; padding: 4px 8px; border-radius: 4px; pointer-events: none; opacity: 0; transition: opacity .2s;
}
.carte-repere:hover::after, .carte-repere:focus-visible::after, .carte-repere.montre::after { opacity: 1; }
.carte-repere.montre { animation: repere 1s ease 2; }
@keyframes repere { 50% { filter: drop-shadow(0 0 10px #ffd400) brightness(1.4); } }
.carte-commandes { position: absolute; right: 10px; bottom: 10px; display: grid; grid-template-columns: repeat(3, 34px); gap: 3px; padding: 6px; background: rgba(255,255,255,.5); border-radius: 5px; }
.carte-commandes button { width: 34px; height: 34px; border: 0; border-radius: 2px; background: #64794e; color: #fff; font-size: 18px; cursor: pointer; line-height: 1; }
.carte-commandes button:hover { background: #4e6040; }
.carte-legende { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 6px 20px; }
@media (min-width: 30em) { .carte-legende { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(5, auto); grid-auto-flow: column; } }
.carte-legende button { display: flex; align-items: center; gap: 8px; border: 0; background: none; padding: 0; color: var(--vert); font: 12.8px/1.5 var(--police); text-align: left; cursor: pointer; }
.carte-legende img { width: 26px; height: 26px; flex: none; }
.carte-legende button:hover { text-decoration: underline; }

/* La Roche */
.laroche-textes > * + * { margin-top: 24px; }
.laroche-intro { display: grid; grid-template-columns: 1fr; gap: 20px 30px; align-items: start; }
.laroche-intro img { width: 200px; height: auto; margin: 0 auto; }
@media (min-width: 30em) { .laroche-intro { grid-template-columns: 1fr 200px; } }
.carte-legende { margin-top: 18px; }
.laroche-textes .carrousel { max-width: none; }

/* Témoignages */
.temoin { max-width: 720px; margin-left: auto; margin-right: auto; }
.temoin + .temoin { margin-top: 30px; }
.temoin figcaption { margin-top: 10px; }
.temoin-texte { max-width: 900px; margin: 16px auto 0; }
.grille-temoins { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; margin-top: 16px; }
.grille-temoins img { aspect-ratio: 4 / 3; object-fit: cover; }
.grille-temoins figcaption { font-size: 14px; margin-top: 8px; }
.onglets .onglets-liste { margin-bottom: 16px; }

/* Histoire */
.avis-traduction { font-weight: 700; }
.avis-traduction a { font-weight: 400; }
.accordeon-contenu p { margin: 0 0 1rem; }
.vignette { display: block; width: 300px; max-width: 100%; margin: 0 auto 1rem; cursor: zoom-in; }
.vignette img { display: block; width: 100%; height: auto; transition: transform 250ms, box-shadow 250ms; }
.vignette:hover img, .vignette:focus-visible img { transform: scale(1.02); box-shadow: 0 0 10px rgba(0,0,0,.8); }
.illustration { margin: 0 0 1rem; text-align: center; }
.illustration .vignette { margin-bottom: 6px; }
.illustration figcaption { font-style: italic; text-align: center; }
.onglets-gris .onglet-panneau p { margin: 0 0 1rem; }
.onglets-gris .onglet-panneau > * + * { margin-top: 0; }

/* 80e anniversaire */
.page-80 section + section { margin-top: 80px; }
.annonce-titre { font: 700 clamp(22px, 2.6vw, 33px)/1.15 Arial, Verdana, Helvetica, sans-serif; color: #feffff; }
.annonce-sous-titre { font: 400 clamp(22px, 2.8vw, 36px)/1.15 Arial, Verdana, Helvetica, sans-serif; color: #feffff; margin: 2px 0 6px; }
.annonce-lieux { font: 400 clamp(18px, 1.9vw, 24px)/1.2 Arial, Verdana, Helvetica, sans-serif; margin: 0 0 20px; }
.annonce-details { font: 14px/1.7 Arial, Verdana, Helvetica, sans-serif; color: #feffff; }
.annonce-details.programme { padding-left: 40px; font-size: 12px; }
.annonce-affiche { display: block; width: 600px; max-width: 100%; margin: 20px auto 0; cursor: zoom-in; }
.annonce-affiche.petite { width: 350px; margin-top: 0; }
@media (max-width: 47.99em) { .annonce-details.programme { padding-left: 0; } }

/* =====================================================================
   PIED DE PAGE
   ===================================================================== */
.pied { margin-top: 8px; }
.pied-fond {
    position: relative; border-top: 4px solid var(--gris-pied); box-shadow: 0 0 10px rgba(0,0,0,.33);
    background-position: center; background-size: cover;
}
.pied-fond::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.68); }
.pied-colonnes {
    position: relative; max-width: 1252px; margin: 0 auto; padding: 50px 15px 40px;
    display: grid; grid-template-columns: 1fr; gap: 30px;
}
@media (min-width: 48em) { .pied-colonnes { grid-template-columns: repeat(3, 1fr); gap: 0; } }
.pied-col { text-align: center; }
.pied-nom { font: 400 22px/1.88 var(--police-titre); color: var(--or); margin: 0 0 50px; }
.pied-encadre { position: relative; background: rgba(0,0,0,.44); margin: 10px 20px 0; padding: 0 0 4px; }
.pied-contact { text-align: left; padding: 120px 63px 0 42px; }
.pied-contact p { font-size: 12px; line-height: 1.5; color: #feffff; }
.pied-langues { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
@media (max-width: 47.99em) { .pied-contact { padding: 0 20px; } .pied-nom { margin-bottom: 20px; } }

/* Coordonnées avec pastilles rondes */
.coordonnees { list-style: none; margin: 0; padding: 0 20px; }
.coordonnees li { position: relative; padding: 10px 0; }
.coordonnees li + li { padding: 0 0 20px; }
.coordonnees .pastille {
    position: absolute; left: -36px; top: 50%; transform: translateY(-50%);
    width: 32px; height: 32px; border-radius: 50%; background: var(--vert); color: #fff;
    display: flex; align-items: center; justify-content: center;
}
.coordonnees li:first-child .pastille { top: 45px; }
.coordonnees .adresse { margin: 0 0 6px; font-size: 20px; line-height: 30px; font-weight: 700; color: #feffff; }
.coordonnees .tel { font-weight: 700; color: #feffff; }
.coordonnees .lien { font-weight: 700; font-style: italic; color: #fff; }
.pied-encadre .centre { margin: 0; padding-bottom: 16px; }

/* Bandeau copyright */
.copyright { margin: 0; background: var(--gris-pied); text-align: center; font-size: 16px; line-height: 24px; }

/* =====================================================================
   FENÊTRES (Contact, Carte)
   ===================================================================== */
.fenetre {
    width: min(600px, calc(100vw - 20px)); max-height: calc(100vh - 40px); margin: 30px auto auto; padding: 22px;
    background: #384735; color: #fff; border: 1px solid #feda3a; border-radius: 4px;
}
.fenetre::backdrop { background: rgba(0,0,0,.8); }
.fenetre[open] { animation: fenetre-entree .3s ease-out; }
@keyframes fenetre-entree { from { opacity: 0; transform: translateY(-25%); } to { opacity: 1; transform: none; } }
.fenetre-fermer { position: absolute; top: -2px; right: 5px; border: 0; background: none; color: #000; font-size: 24px; font-weight: 700; line-height: 1; cursor: pointer; opacity: .5; }
.fenetre-fermer:hover { opacity: .8; }
.fenetre-titre { background: #422313; padding: 4px; text-align: center; font: 500 clamp(20px, 5vw, 32px)/1.2 var(--police-titre); color: #f0ad4e; }
.fenetre-corps { background: #bfbfbf; margin: 0 20px; padding: 0 0 4px; text-align: center; }
.fenetre-corps .coordonnees .adresse, .fenetre-corps .coordonnees .tel { color: #363a3b; }
.fenetre-corps .coordonnees .lien { color: var(--vert); font-weight: 400; font-style: normal; font-size: 14px; }
.fenetre-corps .centre { margin: 0; padding: 4px 0 16px; }
.fenetre iframe { display: block; border: 0; background: #ddd; }

/* =====================================================================
   PETITS ÉLÉMENTS
   ===================================================================== */
/* Bouton « haut de page » */
.haut-de-page {
    position: fixed; z-index: 60; right: 40px; bottom: 60px; width: 40px; height: 40px;
    border: 1px solid var(--vert); border-radius: 4px; background: var(--vert); color: #fff; font-size: 16px; cursor: pointer;
    display: none;
}
.haut-de-page.visible { display: block; animation: bounceInUp 1s both; }
.haut-de-page.cache { display: block; animation: bounceOutDown 1s both; pointer-events: none; }

/* Consentement (cookies) */
.consentement { position: fixed; z-index: 150; left: 0; right: 0; bottom: 0; padding: 0 12px 12px; pointer-events: none; }
.consentement[hidden], .consentement [hidden] { display: none !important; }
.consentement-cadre {
    pointer-events: auto; max-width: 900px; margin: 0 auto; padding: 18px 20px; border-radius: 8px;
    background: #111; color: #eee; box-shadow: 0 -4px 24px rgba(0,0,0,.6); border-top: 3px solid var(--orange);
}
.consentement h2 { font-size: 18px; font-weight: 700; margin: 0 0 6px; }
.consentement p { font-size: 15px; margin: 0; }
.consentement a { color: #9cc893; text-decoration: underline; }
.consentement-choix { display: grid; gap: 8px; margin-top: 12px; font-size: 14px; }
.consentement-choix label { display: flex; gap: 8px; align-items: baseline; cursor: pointer; }
.consentement-choix input { width: 18px; height: 18px; accent-color: var(--vert); flex: none; transform: translateY(3px); }
.consentement-boutons { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-top: 14px; }
.consentement-boutons button {
    font: 600 15px var(--police); padding: 9px 18px; border-radius: 4px; cursor: pointer;
    border: 1px solid #aaa; background: transparent; color: #fff;
}
.consentement-boutons [data-choix="refuser"], .consentement-boutons [data-choix="accepter"] { background: var(--vert); border-color: var(--vert); }
.consentement-boutons button:hover { filter: brightness(1.15); }
@media (max-width: 600px) { .consentement-boutons button { flex: 1 1 100%; } }

/* Contenus externes en attente de consentement */
.externe { min-height: var(--hauteur, 300px); display: flex; align-items: center; justify-content: center; background: #2a2a2a; color: #ddd; text-align: center; }
.externe.charge { display: block; background: none; }
.externe iframe { display: block; width: 100%; height: var(--hauteur, 450px); border: 0; }
.externe-message { max-width: 340px; padding: 20px; font-size: 14px; }
.externe-message p { margin: 0 0 10px; }
.externe-message a { color: #9cc893; font-size: 13px; }
.externe-toujours { border: 0; background: none; color: #ccc; font: 13px var(--police); text-decoration: underline; cursor: pointer; padding: 0; }
.externe.facebook { width: 380px; max-width: 100%; margin: 41px auto 0; display: none; }
@media (min-width: 441px) { .externe.facebook { display: flex; } .externe.facebook.charge { display: block; } }
.fenetre .externe { background: #ddd; color: #333; }
.fenetre .externe-toujours { color: #333; }
.fenetre .externe-message a { color: #3d5a37; }

/* Liens « Vie privée » sous le copyright */
.copyright-liens { white-space: nowrap; margin-left: 12px; font-size: 13px; }
.copyright-liens a, .copyright-liens button { color: #fff; text-decoration: underline; background: none; border: 0; font: inherit; cursor: pointer; padding: 0; }
.page-texte .texte-normal { max-width: 900px; text-align: left; }
.page-texte h3 { color: var(--or); font-size: 22px; margin: 28px 0 8px; }

/* Zoom des photos */
.zoom-fond { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,0); transition: background-color .3s; cursor: zoom-out; }
.zoom-fond.actif { background: rgba(0,0,0,.9); }
.zoom-image { position: fixed; z-index: 201; transition: transform .3s ease; cursor: zoom-out; transform-origin: 0 0; }

/* =====================================================================
   ANIMATIONS D'APPARITION (au défilement)
   ===================================================================== */
[data-apparition] { visibility: hidden; }
[data-apparition].apparu { visibility: visible; animation-fill-mode: both; }
.apparu.swing { transform-origin: top center; animation-name: swing; }
.apparu.bounceInLeft { animation-name: bounceInLeft; }
.apparu.bounceInRight { animation-name: bounceInRight; }
.apparu.fadeIn { animation-name: fadeIn; }

@keyframes swing {
    20% { transform: rotate3d(0,0,1,15deg); } 40% { transform: rotate3d(0,0,1,-10deg); }
    60% { transform: rotate3d(0,0,1,5deg); } 80% { transform: rotate3d(0,0,1,-5deg); } to { transform: rotate3d(0,0,1,0deg); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes bounceInLeft {
    from, 60%, 75%, 90%, to { animation-timing-function: cubic-bezier(.215,.61,.355,1); }
    0% { opacity: 0; transform: translate3d(-3000px,0,0); } 60% { opacity: 1; transform: translate3d(25px,0,0); }
    75% { transform: translate3d(-10px,0,0); } 90% { transform: translate3d(5px,0,0); } to { transform: none; }
}
@keyframes bounceInRight {
    from, 60%, 75%, 90%, to { animation-timing-function: cubic-bezier(.215,.61,.355,1); }
    from { opacity: 0; transform: translate3d(3000px,0,0); } 60% { opacity: 1; transform: translate3d(-25px,0,0); }
    75% { transform: translate3d(10px,0,0); } 90% { transform: translate3d(-5px,0,0); } to { transform: none; }
}
@keyframes bounceInUp {
    from, 60%, 75%, 90%, to { animation-timing-function: cubic-bezier(.215,.61,.355,1); }
    from { opacity: 0; transform: translate3d(0,3000px,0); } 60% { opacity: 1; transform: translate3d(0,-20px,0); }
    75% { transform: translate3d(0,10px,0); } 90% { transform: translate3d(0,-5px,0); } to { transform: none; }
}
@keyframes bounceOutDown {
    20% { transform: translate3d(0,10px,0); } 40%, 45% { opacity: 1; transform: translate3d(0,-20px,0); }
    to { opacity: 0; transform: translate3d(0,2000px,0); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}
