/*
Theme Name: chateauizaut
Author: Pierre Lacroux
Author URI: http://www.pierrelacroux.com
Version: 1.0
*/

/* Fonts */

@import url("https://use.typekit.net/bhj1qba.css");
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,600;0,700;0,800;1,300;1,400;1,600;1,700;1,800&display=swap');

body {
  font-family: brandon-grotesque, sans-serif;
  font-weight: 400;
  font-style: normal;
}

h1, .h1, .navbar-brand {
  font-family: brandon-grotesque, sans-serif;
  font-weight: 900;
  font-style: normal;
  margin-bottom: 0;
}

h2, h3, h4, h5, h6, .h2, .h3, .h4, .h5, .h6 {
  font-family: brandon-grotesque, sans-serif;
  font-weight: 700;
  font-style: normal;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  h2, h3, h4, h5, h6, .h2, .h3, .h4, .h5, .h6 {
    margin-top: 3rem;
  }
}

h2, .h2 {
  font-size: calc(2rem + 1.5vw);
  font-weight: 400;
  line-height: 1.2;
}

@media (min-width: 1200px) {
  h2, .h2 {
    font-size: 3.25rem;
  }
}

h3, .h3 {
  font-weight: 500;
}

h2:first-child, h3:first-child, h4:first-child, h5:first-child, h6:first-child {
  margin-top: 0;
}

.fw-bolder {
  font-weight: 700 !important;
}

b, strong {
  font-weight: 500;
}

blockquote {
  font-family: jakob, brandon-grotesque, sans-serif;
  font-size: 1.6rem !important;
  line-height: 1.35;
  color: var(--bs-dark);
  padding: 0 !important;
  margin-top: 2rem !important;
  margin-bottom: 2rem !important;
}

blockquote p {
  margin-bottom: 0rem !important;
}

/* Guillemets français autour de la citation */
blockquote p:first-child::before {
  content: "« ";
}

blockquote p:last-child::after {
  content: " »";
}

@media (min-width: 768px) {
  blockquote {
    font-size: 2rem !important;
    margin-top: 3rem !important;
    margin-bottom: 3rem !important;
  }
}

/* Introduction : texte plus grand, choisi dans le menu Formats de l'éditeur */
.edito p.intro,
p.intro {
  font-size: 1.2em;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  padding-left: 1.25rem;
  border-left: 2px solid var(--bs-secondary);
}

@media (min-width: 992px) {
  .edito p.intro,
  p.intro {
    font-size: 1.5rem;
  }
}

/* Surlignement : effet de surligneur sur quelques mots, choisi dans le menu Formats */
mark.surligne {
  background: linear-gradient(transparent 40%, rgba(var(--bs-secondary-rgb), .25) 40%, rgba(var(--bs-secondary-rgb), .25) 85%, transparent 85%);
  color: inherit;
  padding: 0 .1em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Focus : paragraphe mis en avant, choisi dans le menu Formats de l'éditeur */
.focus {
  position: relative;
  background: var(--bs-light);
  border-radius: 3px !important;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  font-weight: 400;
}

blockquote:first-child {
  margin-top: 0rem;
}

lead {
  font-weight: 400;
}

/* LINKS */

a {
  text-decoration: none;
}

/* BTN */

.btn {
  position: relative;
}

/* Variables du bouton principal aux couleurs du thème */

.btn-primary {
  --bs-btn-bg: var(--bs-primary);
  --bs-btn-border-color: var(--bs-primary);
  --bs-btn-hover-bg: var(--bs-primary);
  --bs-btn-hover-border-color: var(--bs-primary);
  --bs-btn-active-bg: var(--bs-primary);
  --bs-btn-active-border-color: var(--bs-primary);
  --bs-btn-disabled-bg: var(--bs-primary);
  --bs-btn-disabled-border-color: var(--bs-primary);
}

/* Cadre identique au survol, au clic et au focus */

.btn:hover,
.btn:focus,
.btn:active,
.btn.active {
  border-color: var(--bs-btn-border-color) !important;
}

.btn:focus:not(:focus-visible) {
  outline: none;
}

/* Voile qui balaie le bouton au survol, cadre compris */

.btn {
  background-image: linear-gradient(rgba(255, 255, 255, .2), rgba(255, 255, 255, .2));
  background-repeat: no-repeat;
  background-origin: border-box;
  background-size: 0% 100%;
  transition: color .3s ease, background-color .3s ease, background-size .4s cubic-bezier(.23, 1, .32, 1) !important;
}

.btn:hover {
  background-size: 100% 100%;
}

/* Boutons pleins : cadre transparent pour que le fond le recouvre */

.btn:not([class*="btn-outline"]):not(.btn-link) {
  border-color: transparent !important;
}

/* Icône qui glisse au survol */

.btn i {
  display: inline-block;
  transition: transform .3s ease;
}

.btn:hover i {
  transform: translateX(3px);
}

@media (prefers-reduced-motion: reduce) {
  .btn, .btn i {
    transition: none !important;
  }

  .btn:hover i {
    transform: none;
  }
}

/* NAVBAR */

.navbar {
  font-family: brandon-grotesque, sans-serif;
}

.nav-link {
  font-family: brandon-grotesque, sans-serif;
}

/* Navigation fixe */

#navigation {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1030;
  background-color: var(--bs-white);
  transition: background-color .3s ease, box-shadow .3s ease;
}

#navigation.scrolled {
  box-shadow: 0 2px 12px rgba(var(--bs-dark-rgb), .1);
}

#navigation .navbar-nav {
  flex-direction: row;
}

#navigation .nav-link {
  color: var(--bs-dark);
  font-size: 1rem;
  white-space: nowrap;
}

#navigation .nav-link:hover,
#navigation .nav-link.active {
  color: var(--bs-primary);
}

/* Icône accueil */

#navigation .nav-home {
  font-size: 1.125rem;
  line-height: 1;
}

/* Base de la maison alignée sur celle des textes */

#navigation .nav-home i::before {
  vertical-align: 0;
}

/* Survol : trait qui se déploie depuis le centre */

#navigation .navbar-nav .nav-link,
#navigation .nav-home {
  position: relative;
}

#navigation .navbar-nav .nav-link::before,
#navigation .nav-home::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background-color: var(--bs-secondary);
  transform: scaleX(0);
  transition: transform .3s cubic-bezier(.23, 1, .32, 1);
}

/* Textes : même écart sous les lettres que sous l'icône maison */

#navigation .navbar-nav .nav-link::before {
  bottom: -3px;
}

#navigation .nav-home::before {
  bottom: -4.5px;
}

#navigation .navbar-nav .nav-link:hover::before,
#navigation .navbar-nav .nav-link.active::before,
#navigation .navbar-nav .show > .nav-link::before,
#navigation .nav-home:hover::before,
#navigation .nav-home.active::before {
  transform: scaleX(1);
}

@media (prefers-reduced-motion: reduce) {
  #navigation .navbar-nav .nav-link::before,
  #navigation .nav-home::before {
    transition: none;
  }
}

/* Réseaux sociaux de la navigation */

#navigation .nav-social a {
  font-size: 1.05rem;
  line-height: 1;
  transition: opacity .2s ease;
}

#navigation .nav-social a:hover {
  opacity: .6;
}

.nav-social-separateur {
  width: 1px;
  height: 1.2rem;
  background-color: currentColor;
  opacity: .25;
}

#navigation.nav-transparent:not(.scrolled) .nav-social-separateur,
#navigation.scrolled .nav-social-separateur {
  background-color: #fff;
}

/* Au défilement : barre dorée, liens, logo et icônes en blanc */

#navigation.scrolled {
  background-color: var(--bs-primary) !important;
}

#navigation.scrolled .nav-link,
#navigation.scrolled .nav-link:hover,
#navigation.scrolled .nav-link.active,
#navigation.scrolled .link-dark {
  color: #fff !important;
}

#navigation.scrolled .logo-default {
  display: none;
}

#navigation.scrolled .logo-light {
  display: block;
}

/* Pages avec en-tête image : nav transparente jusqu'au scroll */

#navigation.nav-transparent:not(.scrolled) {
  background-color: transparent;
}

#navigation.nav-transparent:not(.scrolled) .nav-link,
#navigation.nav-transparent:not(.scrolled) .link-dark {
  color: var(--bs-white) !important;
}

/* Maison, loupe et réseaux sociaux en primary avant le scroll (fond clair) */

#navigation:not(.scrolled):not(.nav-transparent) .nav-home,
#navigation:not(.scrolled):not(.nav-transparent) .nav-recherche,
#navigation:not(.scrolled):not(.nav-transparent) .nav-social a {
  color: var(--bs-primary) !important;
}

/* Navigation : liens en primary (les états scrollé et transparent passent en blanc) */

#navigation .nav-link,
#navigation .link-dark {
  color: var(--bs-primary) !important;
}

/* Sous-menus : couleur du texte, secondary au survol */

#navigation .dropdown-item {
  color: var(--bs-dark) !important;
}

#navigation .dropdown-item:hover,
#navigation .dropdown-item:focus,
#navigation .dropdown-item.active {
  color: var(--bs-secondary) !important;
}

/* Logos selon l'état */

.logo-light {
  display: none;
}

#navigation.nav-transparent:not(.scrolled) .logo-default {
  display: none;
}

#navigation.nav-transparent:not(.scrolled) .logo-light {
  display: block;
}

/* Sous-menus */

.dropdown-menu {
  border: 0;
  box-shadow: 0 2px 12px rgba(var(--bs-dark-rgb), .1);
}

.dropdown-item {
  color: var(--bs-dark);
}

.dropdown-item.active, .dropdown-item:active {
  color: var(--bs-dark);
  background-color: rgba(var(--bs-dark-rgb), .05);
}

/* Sous-menus au survol sur desktop */

@media (min-width: 1200px) {
  #navigation .dropdown:hover > .dropdown-menu {
    display: block;
    margin-top: 0;
  }
}

/* Menu mobile */

#menu-mobile .nav-link {
  color: var(--bs-dark);
  font-size: calc(1.1rem + .6vw);
}

#menu-mobile .nav-link.active {
  color: var(--bs-primary);
}

#menu-mobile .dropdown-menu {
  position: static !important;
  transform: none !important;
  box-shadow: none;
  padding: 0 0 .5rem 1rem;
}



/* TITRE */

/* Titre */

.menu-tags {
  margin: 0;
  padding: 2px 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
  max-width: 300px;
}

/* En-tête */

#title {
  padding-top: calc(var(--hauteur-nav, 90px) + 30px);
  padding-bottom: 1rem;
  overflow: hidden;
}

#title .breadcrumb {
  padding-top: 1.5rem;
}

#title h1 {
  margin-bottom: .5rem;
}

@media (min-width: 992px) {
  #title {
    padding-top: calc(var(--hauteur-nav, 90px) + 10px);
    padding-bottom: 3rem;
  }

  #title .breadcrumb {
    padding-top: 3rem;
  }
}

/* En-têtes avec image : même hauteur partout, contenu calé en bas */
#title.has-image {
  display: flex;
  align-items: flex-end;
  height: 380px;
  padding-top: 0;
  padding-bottom: 2rem;
}

#title.has-image > .container {
  width: 100%;
}

@media (min-width: 992px) {
  #title.has-image {
    height: 470px;
    padding-bottom: 3rem;
  }
}

/* Image d'en-tête animée */

.title-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  animation: titleZoomIn 1.8s ease forwards;
}

.title-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(var(--bs-dark-rgb), .45);
}

/* Plan en fond d’en-tête (page Contact) : décor non interactif, voile clair pour le titre */
.title-carte {
  z-index: 0;
  isolation: isolate;
  animation: none;
  pointer-events: none;
}

.title-carte,
.title-carte > *,
.title-carte .leaflet-map {
  height: 100% !important;
}

/* Plan figé : pas de boutons de zoom */
.title-carte .leaflet-control-zoom {
  display: none;
}

.title-voile {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(var(--bs-white-rgb), .85), rgba(var(--bs-white-rgb), .15));
  pointer-events: none;
}

.copyright {
  position: absolute;
  bottom: 0;
  right: 0;
  z-index: 2;
  font-size: .7rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, .75);
  background-color: rgba(var(--bs-dark-rgb), .25);
  padding: 2px 6px;
  backdrop-filter: blur(2px);
  pointer-events: none;
}

/* Image de l'édito avec légende et copyright posés dessus */

.image-surimpression,
.edito .image-surimpression {
  position: relative;
  margin: 2.5rem 0 1.5rem;
}

.image-cadre {
  position: relative;
}

.image-cadre .copyright {
  position: absolute;
  right: 0;
  bottom: 0;
  white-space: nowrap;
}

.image-cadre a[data-fancybox] {
  cursor: zoom-in;
}

.image-surimpression .legende-dessous {
  padding: 0;
}

.image-surimpression img {
  display: block;
  margin: 0 !important;
}

/* Bandeau bas : légende centrée et copyright à droite, sans chevauchement */

.surimpression {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  pointer-events: none;
}

.surimpression .legende {
  grid-column: 2;
  position: static;
  transform: none;
  width: auto;
  max-width: none;
}

.surimpression .copyright {
  grid-column: 3;
  justify-self: end;
  position: static;
  white-space: nowrap;
}

/* Légende sur l'image */

.legende {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 2;
  width: max-content;
  max-width: max(60%, calc(100% - 20rem));
  font-size: 1.125rem;
  font-weight: 300;
  font-style: normal;
  line-height: 1.4;
  color: #fff;
  padding: .75rem 1rem;
  text-shadow: 0 0 6px rgba(var(--bs-dark-rgb), .8);
  pointer-events: none;
}


@keyframes titleZoomIn {
  from { transform: scale(1.06); }
  to   { transform: scale(1); }
}

/* Fil d'Ariane */

#breadcrumb a {
  color: var(--bs-dark) !important;
  opacity: .5;
  text-decoration: none;
  transition: opacity .2s ease, color .2s ease;
}

#breadcrumb a:hover {
  color: var(--bs-secondary) !important;
  opacity: 1;
}

#breadcrumb i.bi-chevron-compact-right {
  color: var(--bs-dark);
  opacity: .75;
}

/* Page courante masquée, ainsi que le dernier séparateur */

#breadcrumb .breadcrumb_last {
  display: none;
}

#breadcrumb .breadcrumb-item i.bi-chevron-compact-right:last-of-type {
  display: none;
}

/* Sur image d'en-tête */

#title.has-image #breadcrumb a {
  color: var(--bs-white) !important;
  opacity: .75;
}

#title.has-image #breadcrumb a:hover {
  opacity: 1;
}

#title.has-image #breadcrumb i,
#title.has-image #breadcrumb span {
  color: var(--bs-white);
}

/* DIAPORAMA */

/* Diaporama accueil */

#diaporama-accueil {
  height: 100vh;
  /* Mobile : hauteur mesurée par base.js (barres différentes selon le navigateur) */
  height: var(--ecran-hauteur, 100svh);
  position: relative;
  overflow: hidden;
}

#diaporama-accueil .carousel-inner {
  position: relative;
  height: 100%;
}

/* Fondu enchaîné : tous les items en absolu, opacité pilotée par .active */

#diaporama-accueil .carousel-item {
  display: block !important;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity .9s ease;
  pointer-events: none;
}

#diaporama-accueil .carousel-item.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

#diaporama-accueil .carousel-item-inner {
  height: 100%;
  /* Texte centré dans la partie visible, barres du navigateur déduites */
  height: calc(var(--ecran-hauteur, 100svh) - var(--ecran-barre, 0px));
  display: flex;
  align-items: center;
  position: relative;
}

#diaporama-accueil .carousel-item .container {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#diaporama-accueil .carousel-background {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

/* Vidéo en fond, recadrée pour couvrir la diapositive */

#diaporama-accueil .carousel-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  /* Image fixe en fond, tant que la vidéo ne joue pas */
  background-size: cover;
  background-position: center;
}

#diaporama-accueil .carousel-video video,
#diaporama-accueil .carousel-video .video-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Pleinement visible : iOS refuse la lecture auto d'une vidéo jugée cachée ; l'image de fond reste visible tant qu'aucune image n'est décodée */
}

/* Voile sur la vidéo pour la lisibilité du texte */
#diaporama-accueil .carousel-video::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(var(--bs-dark-rgb), .45);
}

@media (min-width: 768px) {
  #diaporama-accueil .carousel-video::after {
    background: rgba(var(--bs-dark-rgb), .3);
  }
}

/* Bouton blanc de la vidéo : texte foncé, flèche secondaire */
#diaporama-accueil .btn-video,
#diaporama-accueil .btn-video:hover,
#diaporama-accueil .btn-video:focus {
  color: var(--bs-dark) !important;
}

#diaporama-accueil .btn-video i {
  color: var(--bs-secondary);
}

#diaporama-accueil .diapo-lieu {
  font-size: 1.1rem;
  letter-spacing: .05em;
}


#diaporama-accueil .carousel-background::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(var(--bs-dark-rgb), .45);
}

/* Animation du contenu */

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

#diaporama-accueil .carousel-item .h1,
#diaporama-accueil .carousel-item .diapo-lieu,
#diaporama-accueil .carousel-item .btn {
  opacity: 0;
}

#diaporama-accueil .carousel-item.active .diapo-lieu {
  animation: slideUpFade .6s ease forwards;
  animation-delay: .45s;
}

#diaporama-accueil .carousel-item.active .h1 {
  animation: slideUpFade .6s ease forwards;
  animation-delay: .25s;
}

#diaporama-accueil .carousel-item.active .btn {
  animation: slideUpFade .6s ease forwards;
  animation-delay: .65s;
}

#diaporama-accueil .h1 {
  font-size: 2rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (min-width: 768px) {
  #diaporama-accueil .h1 {
    font-size: 4rem;
  }
}

/* Indicateur de défilement */

@keyframes scrollWheel {
  0%   { transform: translateX(-50%) translateY(0); opacity: 1; }
  100% { transform: translateX(-50%) translateY(6px); opacity: 0; }
}

.scroll-indicator {
  position: absolute;
  /* Au-dessus de la barre transparente de Safari */
  bottom: calc(2rem + var(--ecran-barre, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  opacity: .7;
  transition: opacity .2s ease;
}

@media (min-width: 992px) {
  .scroll-indicator {
    bottom: 3rem;
  }
}

.scroll-indicator:hover {
  opacity: 1;
}

.scroll-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid #fff;
  position: relative;
}

.scroll-wheel {
  width: 3px;
  height: 7px;
  background: #fff;
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 1.4s ease-in-out infinite;
}

/* Indicateurs numérotés */

#diaporama-accueil .carousel-indicators {
  z-index: 3;
  justify-content: center;
  left: 0;
  right: 0;
  margin: 0;
  padding-bottom: 3rem;
}

@media (min-width: 992px) {
  #diaporama-accueil .carousel-indicators {
    justify-content: flex-start;
    left: 3rem;
    right: auto;
  }
}

#diaporama-accueil .carousel-indicators button {
  width: 1.4rem;
  height: 1.4rem;
  border: none;
  margin: 0 6px;
  background-color: #fff;
  color: var(--bs-dark);
  font-size: .75rem;
  font-weight: bold;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  text-indent: 0;
  transition: background-color .3s ease;
}

#diaporama-accueil .carousel-indicators .active,
#diaporama-accueil .carousel-indicators button i {
  font-size: 1rem;
  margin-left: 1px;
}

#diaporama-accueil .carousel-indicators button:hover {
  background-color: var(--bs-secondary);
  color: #fff;
}

/* Flèches */

#diaporama-accueil .carousel-control-prev,
#diaporama-accueil .carousel-control-next {
  z-index: 3;
  width: 2.3rem;
  height: 2.3rem;
  top: auto;
  bottom: 3rem;
  transform: none;
  background: #fff;
  opacity: 1;
  transition: background-color .3s ease;
}

#diaporama-accueil .carousel-control-prev {
  left: auto;
  right: calc(3rem + 2.3rem + 6px);
}

#diaporama-accueil .carousel-control-next {
  right: 3rem;
}

#diaporama-accueil .carousel-control-prev-icon,
#diaporama-accueil .carousel-control-next-icon {
  width: .7rem;
  height: .7rem;
}

#diaporama-accueil .carousel-control-prev-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M10 3L4 8l6 5'/%3e%3c/svg%3e");
}

#diaporama-accueil .carousel-control-next-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M6 3l6 5-6 5'/%3e%3c/svg%3e");
}

#diaporama-accueil .carousel-control-prev:hover,
#diaporama-accueil .carousel-control-next:hover {
  background: var(--bs-secondary);
}

#diaporama-accueil .carousel-control-prev:hover span,
#diaporama-accueil .carousel-control-next:hover span {
  filter: invert(1);
}

/* Flèches des carrousels : même survol */

.carousel-actualite .flickity-prev-next-button:hover,
.diaporama .flickity-prev-next-button:hover,
.halte-diaporama .flickity-prev-next-button:hover {
  background: var(--bs-secondary);
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  #diaporama-accueil .carousel-item,
  #diaporama-accueil .carousel-item.active .h1,
  #diaporama-accueil .carousel-item.active .btn,
  .scroll-wheel {
    transition: none;
    animation: none;
    opacity: 1;
  }
}

/* Diaporama classique */

/* Cadre fixe 3:2 sur fond sombre */

.diaporama .carousel {
  aspect-ratio: 3 / 2;
  background-color: #111;
}

.diaporama .flickity-viewport {
  height: 100% !important;
}

.diaporama .carousel-cell {
  height: 100%;
  width: 100%;
  /* center images in cells with flexbox */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Conteneur à la taille de l'image, pour y poser le copyright */

.diaporama .carousel-cell {
  container-type: size;
}

.diaporama .carousel-cell-frame {
  position: relative;
  display: inline-block;
  line-height: 0;
}

.diaporama .diaporama-zoom {
  display: block;
  cursor: zoom-in;
}

.diaporama .carousel-cell-frame .carousel-cell-image {
  max-width: 100cqw;
  max-height: 100cqh;
}

.diaporama .carousel-cell-image {
  display: block;
  max-height: 100%;
  margin: 0 auto;
  max-width: 100%;
  opacity: 0;
  -webkit-transition: opacity 1s;
          transition: opacity 1s;
  border-radius: .25;
}

.diaporama .caption {
  position: absolute;
  bottom: 30px;
  width: 100%;
  opacity: .75;
}

.diaporama .carousel-cell-image.flickity-lazyloaded,
.diaporama .carousel-cell-image.flickity-lazyerror {
  opacity: 1;
}

.diaporama .carousel.is-fullscreen .carousel-cell {
  height: 100%;
}

.diaporama .flickity-prev-next-button {
  opacity: 0;
}

@media (min-width: 768px) {
  .diaporama .flickity-prev-next-button {
    opacity: 1;
  }
}

.diaporama .flickity-prev-next-button.previous,
.halte-diaporama .flickity-prev-next-button.previous {
  left: 30px !important;
}

.diaporama .flickity-prev-next-button.next,
.halte-diaporama .flickity-prev-next-button.next {
  right: 30px !important;
}

/* Numéros, comme le diaporama d'accueil */

.diaporama .flickity-page-dots,
.halte-diaporama .flickity-page-dots {
  bottom: 15px;
  counter-reset: diapo;
}

.diaporama .flickity-page-dots .dot,
.halte-diaporama .flickity-page-dots .dot {
  counter-increment: diapo;
  width: 1.4rem;
  height: 1.4rem;
  margin: 0 6px;
  opacity: 1;
  background: #fff;
  color: var(--bs-dark);
  font-size: .75rem;
  font-weight: bold;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}

.diaporama .flickity-page-dots .dot::before,
.halte-diaporama .flickity-page-dots .dot::before {
  content: counter(diapo);
}

.diaporama .flickity-page-dots .dot.is-selected,
.diaporama .flickity-page-dots .dot:hover,
.halte-diaporama .flickity-page-dots .dot.is-selected,
.halte-diaporama .flickity-page-dots .dot:hover {
  background: var(--bs-secondary);
  color: #fff;
}


/* Carrousel actualité */

/* Sections de vignettes : fond sombre */

.section-vignettes .section-vignettes-header {
  padding: 2rem 8px .5rem;
}

.section-vignettes h2 {
  margin-bottom: 0;
}

.carousel-actualite {
  padding: 1rem 0;
}

@media (min-width: 992px) {
  .section-vignettes .section-vignettes-header {
    padding: 3rem 8px .5rem;
  }

  .carousel-actualite {
    padding: 1rem 0 3rem;
  }
}

.carousel-actualite-cell {
  width: 85%;
  padding: 0 8px;
}

@media (min-width: 576px) {
  .carousel-actualite-cell {
    width: 50%;
  }
}

@media (min-width: 768px) {
  .carousel-actualite-cell {
    width: calc(100% / 3);
  }
}

@media (min-width: 1200px) {
  .carousel-actualite-cell {
    width: 20%;
  }
}

@media (min-width: 1400px) {
  .carousel-actualite-cell {
    width: calc(100% / 6);
  }
}

/* Carrousel immobile : pas de flèches ni de glisser */
.carousel-paysage.is-statique .flickity-prev-next-button {
  display: none;
}

.carousel-paysage.is-statique .flickity-viewport {
  pointer-events: none;
}

.carousel-paysage.is-statique .carousel-actualite-cell {
  pointer-events: auto;
}

/* Vignettes paysage : 4 par ligne au plus */
@media (min-width: 1200px) {
  .carousel-paysage .carousel-actualite-cell {
    width: 25%;
  }
}

.carousel-actualite .flickity-prev-next-button.previous {
  left: 30px;
}

.carousel-actualite .flickity-prev-next-button.next {
  right: 30px;
}

/* FOOTER */

/* Fond : illustration du château en monochrome sous un voile sombre */

footer.bg-dark {
  background-image:
    linear-gradient(rgba(var(--bs-dark-rgb), .98), rgba(var(--bs-dark-rgb), .98)),
    url("assets/img/footer-chateau.jpg");
  background-image:
    linear-gradient(rgba(var(--bs-dark-rgb), .98), rgba(var(--bs-dark-rgb), .98)),
    image-set(url("assets/img/footer-chateau.webp") type("image/webp"), url("assets/img/footer-chateau.jpg") type("image/jpeg"));
  background-size: cover;
  background-position: center;
}

/* Traits de séparation discrets */

footer hr {
  opacity: .1;
}

.footer-title {
  color: var(--bs-light);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-seule {
  margin-top: 1.5rem;
}

footer .footer-title a,
.footer-title a {
  color: var(--bs-light) !important;
  text-decoration: none;
}

footer .footer-title a:hover {
  color: var(--bs-secondary) !important;
}

/* Listes de liens */

.footer-links li {
  margin-bottom: .35rem;
}

.footer-links a {
  color: var(--bs-light) !important;
  transition: color .2s ease;
}

.footer-links a:hover {
  color: var(--bs-secondary) !important;
}

.footer-links .footer-all {
  color: var(--bs-light) !important;
  font-weight: 700;
}

.footer-social a {
  transition: color .2s ease;
}

.footer-social a:hover {
  color: var(--bs-secondary) !important;
}

/* Logos partenaires en monochrome, couleurs au survol */

.footer-partenaires img {
  filter: grayscale(1) sepia(.35) brightness(1.1);
  opacity: 1;
  transition: filter .3s ease, opacity .3s ease;
}

.footer-partenaires a:hover img {
  filter: none;
  opacity: 1;
}

/* LISTES (actualité, actions) */

/* Titre centré sous la nav fixe */

#title-text {
  padding-top: calc(var(--hauteur-nav, 90px) + 30px);
}

#title-text h1 {
  padding: 1.5rem 0 1rem;
  margin: 0;
}

@media (min-width: 992px) {
  #title-text {
    padding-top: calc(var(--hauteur-nav, 90px) + 10px);
  }

  #title-text h1 {
    padding: 3rem 0 1rem;
  }
}

/* Filtres */

#filters .filter-label {
  color: rgba(var(--bs-dark-rgb), .45);
  letter-spacing: .08em;
}

.filter-select {
  width: 170px;
  appearance: none;
  -webkit-appearance: none;
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath fill='%23212529' d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .9rem center;
  border: 1px solid rgba(var(--bs-dark-rgb), .25);
  color: var(--bs-dark);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .45rem 2.5rem .45rem 1.1rem;
  cursor: pointer;
  transition: border-color .2s ease;
}

.filter-select:hover,
.filter-select:focus {
  border-color: var(--bs-primary);
  outline: none;
}

.filter-select option {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

#filters .filter-reset {
  padding-top: .45rem;
  padding-bottom: .45rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--bs-dark) !important;
  border-color: rgba(var(--bs-dark-rgb), .25);
}

#filters .filter-reset:hover {
  color: #fff !important;
  background-color: var(--bs-dark);
}

/* Grille de résultats */

#result {
  padding-bottom: 2rem;
}

#result .row {
  --bs-gutter-x: 16px;
  --bs-gutter-y: 16px;
}

@media (min-width: 992px) {
  #result {
    padding-bottom: 3rem;
  }
}

/* Pagination */

#pagination {
  padding: 1.5rem 0 3rem;
}

#pagination .page-numbers {
  display: inline-block;
  min-width: 2.5rem;
  padding: .4rem .75rem;
  color: var(--bs-dark) !important;
  border-right: 1px solid rgba(var(--bs-dark-rgb), .15);
}

#pagination .page-numbers:last-child {
  border-right: 0;
}

#pagination .page-numbers.current {
  color: #fff !important;
  background-color: var(--bs-primary);
}

#pagination a.page-numbers:hover {
  color: var(--bs-primary) !important;
}

/* Listes Agenda et Nos actions : en-tête sur fond light, filtres et vignettes sur fond sombre */

.liste-sombre > .bg-light:not(#title-text):not(.chemin-projet) {
  background-color: var(--bs-dark) !important;
}

.liste-sombre #result,
.liste-sombre .lead {
  color: rgba(var(--bs-light-rgb), .75);
}

.liste-sombre #filters .filter-label {
  color: rgba(var(--bs-light-rgb), .5);
}

.liste-sombre .filter-select {
  color: var(--bs-light);
  border-color: rgba(var(--bs-light-rgb), .3);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath fill='%23fff9ef' d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
}

.liste-sombre .filter-select option {
  color: var(--bs-dark);
}

.liste-sombre #filters .filter-reset {
  color: var(--bs-light) !important;
  border-color: rgba(var(--bs-light-rgb), .3);
}

.liste-sombre #filters .filter-reset:hover {
  color: var(--bs-dark) !important;
  background-color: var(--bs-light);
}

.liste-sombre #pagination .page-numbers {
  color: rgba(255, 255, 255, .75) !important;
  border-right-color: rgba(255, 255, 255, .15);
}

/* COMPOSANTS DE CONTENU */

/* Comparaison avant / après */

.avant-apres {
  margin: 2rem 0;
}

.avant-apres-cadre {
  position: relative;
  overflow: hidden;
  line-height: 0;
  user-select: none;
}

.avant-apres-img {
  display: block;
  width: 100% !important;
  min-width: 0 !important;
  height: auto;
  margin: 0 !important;
}

.avant-apres-avant {
  position: absolute;
  inset: 0;
}

.avant-apres-avant .avant-apres-img {
  height: 100%;
  object-fit: cover;
}

.avant-apres-poignee {
  position: absolute;
  top: 50%;
  width: 2.5rem;
  height: 2.5rem;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--bs-dark);
  font-size: 1rem;
  line-height: 1;
  pointer-events: none;
  z-index: 2;
}

.avant-apres-poignee::before {
  content: '';
  position: absolute;
  top: -100vh;
  bottom: -100vh;
  left: 50%;
  width: 2px;
  background: #fff;
  transform: translateX(-50%);
  z-index: -1;
}

.avant-apres-curseur {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 3;
  margin: 0;
}

.avant-apres-libelle {
  position: absolute;
  top: .75rem;
  z-index: 2;
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(var(--bs-dark-rgb), .45);
  padding: 2px 8px;
  pointer-events: none;
}

.avant-apres-libelle-avant { left: .75rem; }
.avant-apres-libelle-apres { right: .75rem; }

.avant-apres figcaption {
  margin-top: .5rem;
}

/* Chiffres clés */

.chiffres {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin: 2rem 0;
  background: rgba(var(--bs-dark-rgb), .15);
  border: 1px solid rgba(var(--bs-dark-rgb), .15);
}

@media (min-width: 768px) {
  .chiffres {
    grid-template-columns: repeat(3, 1fr);
  }
}

.chiffre {
  background: #fff;
  padding: 1.25rem 1rem;
  text-align: center;
}

.chiffre-valeur {
  display: block;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--bs-primary);
}

.chiffre-libelle {
  display: block;
  font-size: .9rem;
  margin-top: .35rem;
  color: var(--bs-dark);
}

/* Frise chronologique */

.frise {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
  padding-left: 2px;
}

.frise-etape {
  position: relative;
  padding: 0 0 1.5rem 1.5rem;
}

.frise-etape::before {
  content: '';
  position: absolute;
  left: -7px;
  top: .45rem;
  width: 12px;
  height: 12px;
  background: var(--bs-secondary);
  border-radius: 50% !important;
  z-index: 1;
}

/* Ligne : du premier au dernier point */

.frise-etape::after {
  content: '';
  position: absolute;
  left: -2px;
  width: 2px;
  top: calc(.45rem + 6px);
  bottom: calc(-.45rem - 6px);
  background: var(--bs-secondary);
}

.frise-etape:last-child::after {
  display: none;
}

.frise-date {
  display: block;
  font-weight: 700;
  color: var(--bs-primary);
  font-size: .9rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.frise-texte strong {
  display: block;
}

.frise-texte p {
  margin: .25rem 0 0;
  font-size: 1rem;
}

/* Encadré */

.encadre {
  border: 1px solid var(--bs-dark);
  margin: 2rem 0;
}

.encadre-titre {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--bs-dark);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.encadre-titre i {
  color: var(--bs-primary);
  font-size: 1.1rem;
}

.encadre-contenu {
  padding: 1rem;
}

.encadre-contenu > :last-child {
  margin-bottom: 0;
}

/* Emplacement d'image à fournir */

.image-a-venir {
  margin: 2rem 0;
}

.image-a-venir div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  aspect-ratio: 3 / 2;
  background: #f0ede8;
  color: rgba(var(--bs-dark-rgb), .4);
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.image-a-venir figcaption {
  font-style: italic;
  font-size: 1rem;
  opacity: .6;
  margin-top: .75rem;
}

/* Chapitres d'une rubrique */

.chapitres {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 2rem 0;
}

@media (min-width: 768px) {
  .chapitres {
    grid-template-columns: repeat(2, 1fr);
  }
}

.chapitre {
  display: block;
  position: relative;
  color: #fff !important;
  text-decoration: none;
  overflow: hidden;
}

.chapitre-image {
  aspect-ratio: 3 / 2;
  background: #3a342e;
}

.chapitre-image img {
  width: 100% !important;
  min-width: 0 !important;
  height: 100% !important;
  object-fit: cover;
  margin: 0 !important;
  transition: transform .4s ease;
}

.chapitre:hover .chapitre-image img {
  transform: scale(1.06);
}

.chapitre-texte {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.5rem 1rem 1rem;
  background: linear-gradient(to top, rgba(var(--bs-dark-rgb), .7), transparent);
}

.chapitre-numero {
  display: block;
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--bs-primary);
}

.chapitre-titre {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
}

/* Navigation entre chapitres */

.chapitres-nav-section {
  padding: 2rem 0;
}

@media (min-width: 992px) {
  .chapitres-nav-section {
    padding: 3rem 0;
  }
}

.chapitres-nav-titre-section {
  margin: 0 0 2rem;
}

.chapitres-nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 1rem;
}

@media (min-width: 768px) {
  .chapitres-nav {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 992px) {
  .chapitres-nav {
    grid-template-columns: repeat(4, 1fr);
  }
}

.chapitres-nav-lien {
  display: block;
  color: var(--bs-dark) !important;
  text-decoration: none;
}

.chapitres-nav-vignette {
  position: relative;
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background-color: #e9e6e1;
  border-radius: 3px !important;
}

.chapitres-nav-vignette img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.chapitres-nav-lien:hover .chapitres-nav-vignette img {
  transform: scale(1.06);
}

/* Titre sur l'image, comme les vignettes */

.chapitres-nav-vignette::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(var(--bs-dark-rgb), .65) 0%, rgba(var(--bs-dark-rgb), .15) 50%, transparent 100%);
  pointer-events: none;
}

.chapitres-nav-titre {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: .75rem;
  font-weight: 500;
  font-size: .95rem;
  line-height: 1.25;
  text-transform: uppercase;
  color: #fff;
}

/* VIGNETTES */

.vign {
  width: 100%;
  aspect-ratio: 3 / 2;
  background-color: #f0f0f0;
}

/* Agenda : format A4 des affiches */
.vign-affiche {
  aspect-ratio: 1 / 1.414;
}

.vign img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

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

/* Dégradé pour la lisibilité du texte */

.vign::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(var(--bs-dark-rgb), .65) 0%, rgba(var(--bs-dark-rgb), .15) 50%, transparent 100%);
  pointer-events: none;
}

.card-overlay {
  z-index: 1;
  text-align: left;
}

.vign .card-title {
  font-weight: 500;
  text-transform: uppercase;
}

/* Évènements passés */

/* Image en noir et blanc teintée secondary */

.card-past .vign img {
  filter: grayscale(1);
  transition: transform .4s ease, filter .3s ease;
}

.card-past .vign::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 5;
  background-color: var(--bs-dark);
  mix-blend-mode: multiply;
  opacity: .5;
  transition: opacity .3s ease;
  pointer-events: none;
}

.card-past .vign .badge {
  filter: grayscale(1);
  transition: filter .3s ease;
}

.card-past .vign:hover img {
  filter: none;
}

.card-past .vign:hover .badge {
  filter: none;
}

.card-past .vign:hover::before {
  opacity: 0;
}

/* Bloc évènement sur l'article */

#evenement {
  padding-top: 1.5rem;
}

@media (min-width: 992px) {
  #evenement {
    padding-top: 3rem;
  }
}

.evenement {
  border: 1px solid var(--bs-dark);
}

.evenement-titre {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--bs-dark);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.evenement-passe {
  font-size: .7rem;
  color: #fff;
  background-color: var(--bs-secondary);
  padding: 2px 8px;
}

.evenement li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .75rem 1rem;
  border-bottom: 1px dotted var(--bs-dark);
}

.evenement li:last-child {
  border-bottom: 0;
}

.evenement li i {
  color: rgba(var(--bs-dark-rgb), .5);
  flex-shrink: 0;
}

.evenement-date {
  font-size: 1.25rem;
  font-weight: 700;
}

/* EDITEUR DE CONTENU */

/* Edito */

.edito img {
  min-width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  border-radius: .25rem;
  margin: .5rem 0;
}

.edito figure {
  min-width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  border-radius: .25rem;
  margin: .5rem 0;
}

/* Edito */

#edito {
  padding: 3rem 0;
}

@media (min-width: 992px) {
  #edito {
    padding: 5rem 0;
  }
}

#edito p,
#content-editor .edito-content p {
  color: var(--bs-dark);
}

/* Texte courant de l'édito un peu plus grand */
#edito .lead,
#content-editor .edito-content {
  font-size: 1.3rem;
}

@media (min-width: 992px) {
  #edito .lead,
  #content-editor .edito-content {
    font-size: 1.4rem;
  }
}

#edito img,
#content-editor .edito-content img,
#edito figure,
#content-editor .edito-content figure,
#edito figure img,
#content-editor .edito-content figure img {
  max-width: 100%;
  height: auto;
  border-radius: 0;
}

#edito iframe,
#content-editor .edito-content iframe {
  min-width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
}

#edito .wp-caption-text,
#content-editor .edito-content .wp-caption-text,
.diaporama-legende,
#edito figcaption,
#content-editor .edito-content figcaption {
  margin-top: .5rem;
  line-height: 1.4;
  font-style: italic;
  font-size: 1rem;
  font-weight: 400;
  color: var(--bs-body-color);
}

#edito .wp-caption-text::before,
#content-editor .edito-content .wp-caption-text::before,
.diaporama-legende::before,
#edito figcaption::before,
#content-editor .edito-content figcaption::before {
  /* Triangle des panneaux du chemin médiéval */
  content: "\25B2";
  font-style: normal;
  font-size: .75em;
  color: var(--bs-secondary);
  margin-right: .4rem;
  vertical-align: .1em;
}

#edito hr,
#content-editor .edito-content hr {
  margin: 3rem 0 0 0;
  height: 1px;
  width: 100px;
  background: rgba(var(--bs-dark-rgb), .75);
  border: none;
  opacity: 1;
  clear: both;
}

/* Editeur de contenu */

#content-editor {
  padding: 1.5rem 0;
}

#content-editor .block {
  padding-bottom: 1rem;
}

@media (min-width: 992px) {
  #content-editor {
    padding: 3rem 0;
  }

  #content-editor .block {
    padding-bottom: 2rem;
  }
}

#content-editor .image-parallax {
  height: 400px;
}

/* Galerie */

.galerie .grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

@media (min-width: 768px) {
  .galerie .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.galerie .grid-item a {
  display: block;
  overflow: hidden;
}

.galerie .grid-item img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform .4s ease;
}

.galerie .grid-item a:hover img {
  transform: scale(1.06);
}

/* Tableau : première ligne en en-tête */

#content-editor .table tbody tr:first-child td {
  font-weight: 700;
  border-bottom-color: var(--bs-dark);
}

/* Image bandeau */

.image-bandeau {
  background-position: center;
  background-size: cover;
  -webkit-background-size:cover;
  height: 200px;
  width: 100%;
}

@media (min-width: 576px) {
  .image-bandeau {
    height: 300px;
  }
}

@media (min-width: 768px) {
  .image-bandeau {
    height: 400px;
  }
}

@media (min-width: 992px) {
  .image-bandeau {
    height: 500px;
  }
}

@media (min-width: 1200px) {
  .image-bandeau {
    height: 600px;
  }
}

@media (min-width: 1400px) {
  .image-bandeau {
    height: 600px;
  }
}

/* Image parallax */

.image-parallax {
  background-position: center;
  background-size: cover;
  -webkit-background-size:cover;
  height: 200px;
  width: 100%;
}

@media (min-width: 576px) {
  .image-parallax {
    height: 300px;
  }
}

@media (min-width: 768px) {
  .image-parallax {
    height: 400px;
  }
}

@media (min-width: 992px) {
  .image-parallax {
    height: 500px;
  }
}

@media (min-width: 1200px) {
  .image-paralax {
    height: 600px;
  }
}

@media (min-width: 1400px) {
  .image-parallax {
    height: 600px;
  }
}

/* Carte */

.carte, .leaflet-map, .map {
  height: 200px !important;
  width: 100%;
}

@media (min-width: 576px) {
  .carte, .leaflet-map, .map {
    height: 300px !important;
  }
}

@media (min-width: 768px) {
  .carte, .leaflet-map, .map {
    height: 400px !important;
  }
}

@media (min-width: 992px) {
  .carte, .leaflet-map, .map {
    height: 500px !important;
  }
}

@media (min-width: 1200px) {
  .carte, .leaflet-map, .map {
    height: 600px !important;
  }
}

@media (min-width: 1400px) {
  .carte, .leaflet-map, .map{
    height: 605px !important;
  }
}

.carte .leaflet-map {
  border-radius: .25rem!important;
}

/* Embed */

.embed iframe {
}

/* iframe */

.iframe iframe {
}

.form-control:focus {
  color: var(--bs-primary) !important;
  background-color: rgba(var(--bs-dark-rgb), .07) !important;
  outline: none;
}

/* WPCF7 */

.wpcf7 label {
  display: block;
  width: 100%;
}

.wpcf7 input, .wpcf7 select, .wpcf7 textarea {
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  line-height: 1.25;
  color: #545454!important;
  background-color: rgba(var(--bs-dark-rgb), .04) !important;
  background-image: none;
  -webkit-background-clip: padding-box;
  background-clip: padding-box;
  border: 0 !important;
  border-radius: 3px !important;
  -webkit-transition: border-color ease-in-out 0.15s, 
  -webkit-box-shadow ease-in-out 0.15s;
  transition: border-color ease-in-out 0.15s, -webkit-box-shadow ease-in-out 0.15s;
  -o-transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
  transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
  transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s, -webkit-box-shadow ease-in-out 0.15s;
}

.wpcf7 textarea::-ms-expand, .wpcf7 input::-ms-expand {
  background-color: transparent;
  border: 0;
}

.wpcf7 select:focus, .wpcf7 textarea:focus, .wpcf7 input:focus {
  color: var(--bs-primary) !important;
  background-color: rgba(var(--bs-dark-rgb), .07) !important;
  outline: none;
}

.wpcf7 textarea::-webkit-input-placeholder, .wpcf7 input::-webkit-input-placeholder {
  color: #a6b5bf!important;
  opacity: 1;
}

.wpcf7 textarea::-moz-placeholder, .wpcf7 input::-moz-placeholder {
  color: #a6b5bf!important;
  opacity: 1;
}

.wpcf7 textarea:-ms-input-placeholder, .wpcf7 input:-ms-input-placeholder {
  color: #a6b5bf!important;
  opacity: 1;
}

.wpcf7 textarea::placeholder, .wpcf7 input::placeholder {
  color: #a6b5bf!important;
  opacity: 1;
}

.wpcf7 textarea:disabled, .wpcf7 textarea[readonly], .wpcf7 input:disabled, .wpcf7 input[readonly] {
  background-color: #eeeeee;
  opacity: 1;
}

.wpcf7 textarea:disabled, .wpcf7 input:disabled {
  cursor: not-allowed;
}

select.wpcf7 textarea:not([size]):not([multiple]), select.wpcf7 input:not([size]):not([multiple]) {
  height: calc(2.25rem + 2px);
}

select.wpcf7 textarea:focus::-ms-value, select.wpcf7 input:focus::-ms-value {
  color: #464a4c;background-color: white;
}

.wpcf7 input[type="submit"] {
  cursor: pointer !important;
  display: inline-block;
  font-weight: normal;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  display: block;
  width: 100%;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  border: 1px solid transparent;
  padding: .75rem 1rem;
  margin: 0.5rem 0 0 0;
  font-size: 1rem;
  border-radius: 999px !important;
  -webkit-transition: all 0.2s ease-in-out;
  -o-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
  color: #ffffff !important;
  background-color: var(--bs-secondary) !important;
  border-color: var(--bs-secondary) !important;
}

.wpcf7 input[type="submit"]:hover {
  filter: brightness(.9);
}

.wpcf7 input[type="submit"]:focus, .wpcf7 input[type="submit"]:hover {
  text-decoration: none;
}

.wpcf7 input[type="submit"]:focus, .wpcf7 input[type="submit"].focus {
  outline: 0;
}

.wpcf7 input[type="submit"].disabled, .wpcf7 input[type="submit"]:disabled {
  cursor: not-allowed;opacity: .65;
}

.wpcf7 input[type="submit"]:active, .wpcf7 input[type="submit"].active {
  background-image: none;
}

.wpcf7 input[type="file"]{
  border: 0 !important;
}

.wpcf7 input[type="checkbox"]{
  display:inline;
  width:auto;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  padding: 0;
}

.wpcf7-not-valid-tip {
  color: var(--bs-primary) !important;
}

.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.unaccepted .wpcf7-response-output {
  color: var(--bs-primary) !important;
  border-color: var(--bs-primary) !important;
}

.wpcf7-captchac {
  min-width: auto !important;
  max-width: auto !important;
  height: auto !important;
  width: auto !important;
}

/* CHARTE */

#charte .edito img {
  box-shadow: 0 0 0 rgba(255, 255, 255, 0) !important;
}
/* AUCUN ARRONDI */

:root {
  --bs-border-radius: 0;
  --bs-border-radius-sm: 0;
  --bs-border-radius-lg: 0;
  --bs-border-radius-xl: 0;
  --bs-border-radius-xxl: 0;
  --bs-border-radius-2xl: 0;
  --bs-border-radius-pill: 0;
}

*,
*::before,
*::after {
  border-radius: 0 !important;
}

/* AUCUNE OMBRE */

*,
*::before,
*::after {
  box-shadow: none !important;
}

/* Focus clavier visible sans ombre */

:focus-visible {
  outline: 2px solid var(--bs-primary);
  outline-offset: 2px;
}

/* Exception : souris, numéros et flèches des carrousels arrondis */

#diaporama-accueil .carousel-indicators button,
#diaporama-accueil .carousel-control-prev,
#diaporama-accueil .carousel-control-next,
.avant-apres-poignee,
.carousel-actualite .flickity-prev-next-button,
.diaporama .flickity-prev-next-button,
.diaporama .flickity-page-dots .dot,
.halte-diaporama .flickity-prev-next-button,
.halte-diaporama .flickity-page-dots .dot {
  border-radius: 50% !important;
}


.scroll-mouse {
  border-radius: 12px !important;
}

.scroll-wheel {
  border-radius: 2px !important;
}

/* Exception : léger arrondi des boutons, images et vignettes */

.btn,
.card:has(> .vign),
.vign,
.chapitre,
.image-cadre,
.avant-apres-cadre,
.image-a-venir > div,
.diaporama .carousel,
#content-editor .video,
#content-editor iframe,
.galerie .grid-item,
.gallery-item,
#edito img,
#content-editor img,
.footer-partenaires img {
  border-radius: 3px !important;
  overflow: hidden;
}

/* Images du diaporama : sans arrondi, seul le cadre est arrondi */

.diaporama img,
.diaporama .carousel-cell-frame {
  border-radius: 0 !important;
}

/* Puces des listes */

li::marker {
  color: var(--bs-secondary);
}

.diaporama-legende:empty {
  display: none;
}


/* Partage */

.partage {
  margin-top: 1.5rem;
}

.partage-titre {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: .5rem;
}

.partage .btn,
.partage .btn i {
  color: var(--bs-dark) !important;
}

.partage .btn:hover,
.partage .btn:hover i {
  color: #fff !important;
}

.partage .btn:hover i {
  transform: none;
}

.partage-separateur {
  width: 100px;
  margin: 0 0 1.5rem;
}

.evenement-affiche a {
  cursor: zoom-in;
}

@media print {
  .partage,
  .partage-separateur {
    display: none !important;
  }
}

/* Boutons secondary : texte blanc */

a.btn-secondary,
a.btn-secondary i,
.btn-secondary,
.btn-secondary i {
  color: #fff !important;
}

/* Bandeau des mentions */

.footer-mentions,
.footer-mentions a:not(.badge) {
  color: var(--bs-light) !important;
}

.footer-mentions a:not(.badge):hover {
  opacity: .75;
}

.partage-section {
  padding-bottom: 5rem;
}

/* Accueil : chiffres clés */

#chiffres-cles {
  position: relative;
  padding: 4rem 0;
}

/* Voile sur la photo de fond */

#chiffres-cles.jarallax::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(rgba(var(--bs-dark-rgb), .55), rgba(var(--bs-dark-rgb), .7));
}

#chiffres-cles .container {
  position: relative;
  z-index: 2;
}

#chiffres-cles .chiffre-cle-valeur {
  color: #fff;
}

#chiffres-cles .chiffre-cle-libelle {
  text-shadow: 0 1px 3px rgba(var(--bs-dark-rgb), .5);
}

@media (min-width: 992px) {
  #chiffres-cles {
    padding: 5rem 0;
  }
}

.chiffres-cles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem 1.5rem;
  margin: 0;
  text-align: center;
}

@media (min-width: 768px) {
  .chiffres-cles {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1200px) {
  .chiffres-cles {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
  }
}

.chiffre-cle-valeur {
  display: block;
  font-family: brandon-grotesque, sans-serif;
  font-size: calc(2rem + 1vw);
  font-weight: 700;
  line-height: 1;
  color: var(--bs-primary);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.chiffre-cle-unite {
  font-size: .55em;
  margin-left: .15em;
}

.chiffre-cle {
  display: flex;
  flex-direction: column;
}

/* Trait au même niveau quelle que soit la longueur du libellé */

.chiffre-cle-libelle {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  margin-top: .75rem;
  font-size: .95rem;
  line-height: 1.35;
}

.chiffre-cle-libelle::after {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  margin-top: auto;
  background: var(--bs-secondary);
}

/* Accueil : frise chronologique horizontale */

/* Page Histoire : frise en tête, collée au texte qui suit */
.frise-histoire .frise-h {
  margin-bottom: 0;
}

#frise-accueil {
  padding: 4rem 0;
}

@media (min-width: 992px) {
  #frise-accueil {
    padding: 5rem 0;
  }
}

.frise-h {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(115px, 1fr);
  gap: 1rem;
  margin: 2.5rem 0 3rem;
  padding: 0 12px .5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

/* Ligne qui se trace de gauche à droite */

.frise-h::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: calc(1.4rem + 9px);
  height: 1px;
  background: var(--bs-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s ease;
}

.frise-h.is-visible::before {
  transform: scaleX(1);
}

/* Flèche au bout de la ligne */

.frise-h::after {
  content: '';
  position: absolute;
  right: 0;
  top: calc(1.4rem + 4px);
  border-left: 10px solid var(--bs-primary);
  border-top: 5.5px solid transparent;
  border-bottom: 5.5px solid transparent;
  opacity: 0;
  transition: opacity .3s ease 1.1s;
}

.frise-h.is-visible::after {
  opacity: 1;
}

.frise-h-etape {
  position: relative;
  text-align: center;
  scroll-snap-align: start;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .5s ease, transform .5s ease;
  transition-delay: calc(.2s + var(--i) * .18s);
}

.frise-h.is-visible .frise-h-etape {
  opacity: 1;
  transform: none;
}

.frise-h-date {
  display: block;
  height: 1.4rem;
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .05em;
  color: var(--bs-secondary);
  white-space: nowrap;
}

.frise-h-point {
  position: relative;
  z-index: 1;
  display: block;
  width: 13px;
  height: 13px;
  margin: 0 auto 1rem;
  background: var(--bs-secondary);
  border: 3px solid #fff;
  box-sizing: content-box;
  border-radius: 50% !important;
  transform: scale(0);
  transition: transform .4s cubic-bezier(.3, 1.6, .5, 1);
  transition-delay: calc(.3s + var(--i) * .18s);
}

.frise-h.is-visible .frise-h-point {
  transform: scale(1);
}

.frise-h-texte {
  display: block;
  font-size: .95rem;
  line-height: 1.35;
}

@media (prefers-reduced-motion: reduce) {
  .frise-h::before,
  .frise-h-etape,
  .frise-h-point {
    transition: none;
  }
}

/* Image d'en-tête : légende à gauche, copyright à droite */

.title-credits {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  pointer-events: none;
}

.title-credits .copyright {
  position: static;
  margin-left: auto;
  white-space: nowrap;
}

.copyright-legende {
  margin-bottom: .5rem;
  margin-left: .75rem;
  padding: 2px 6px;
  font-size: .9rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, .85);
  text-shadow: 0 0 4px rgba(var(--bs-dark-rgb), .6);
}

.copyright-legende::before {
  content: "\25B2";
  font-size: .8em;
  color: var(--bs-secondary);
  margin-right: .35em;
  vertical-align: .05em;
}

/* Footer : survol des liens en secondary */

footer a:not(.btn):not(.badge):hover,
footer a:not(.btn):not(.badge):hover i {
  color: var(--bs-secondary) !important;
}

/* Navigation : survol de la loupe et des réseaux en secondary, dans tous les états */

#navigation#navigation .nav-social a:hover,
#navigation#navigation .nav-recherche:hover {
  color: var(--bs-secondary) !important;
  opacity: 1;
}

/* En-tête sur l'image par défaut : fil d'Ariane en primary */

#title.image-claire #breadcrumb a,
#title.image-claire #breadcrumb i,
#title.image-claire #breadcrumb span {
  color: var(--bs-primary) !important;
}

#title.image-claire #breadcrumb a:hover {
  color: var(--bs-secondary) !important;
}

/* Vidéo : image fixe et bouton lecture */

#video-accueil {
  padding: 0 0 4rem;
}

@media (min-width: 992px) {
  #video-accueil {
    padding-bottom: 5rem;
  }
}

#video-accueil h2 {
  margin-bottom: 2rem;
}

.video,
.edito .video {
  margin: 2.5rem 0 1.5rem;
}

#video-accueil .video {
  margin: 0;
}

.video-lien {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 3px !important;
  cursor: pointer;
}

.video-lien img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0 !important;
  transition: transform .6s ease;
}

.video-lien::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(var(--bs-dark-rgb), .55), rgba(var(--bs-dark-rgb), .1) 60%);
  transition: background-color .3s ease;
  pointer-events: none;
}

.video-lien:hover img {
  transform: scale(1.04);
}

.video-lecture {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
  font-size: 2.75rem;
  color: #fff;
  background-color: var(--bs-secondary);
  border-radius: 50% !important;
  transform: translate(-50%, -50%);
  transition: transform .3s ease;
}

.video-lecture i {
  margin-left: .2rem;
}

.video-lien:hover .video-lecture {
  transform: translate(-50%, -50%) scale(1.1);
}


@media (max-width: 575.98px) {
  .video-lecture {
    width: 3.75rem;
    height: 3.75rem;
    font-size: 2rem;
  }
}

/* En-tête : légende intégrée avant le copyright */

.copyright-entete-legende::before {
  content: "\25B2";
  font-size: .8em;
  color: var(--bs-secondary);
  margin-right: .35em;
}

.copyright-separateur {
  margin: 0 .4em;
  opacity: .6;
}

#diaporama-accueil .carousel-item-inner {
  z-index: 2;
}

/* Vidéos : vignettes YouTube */

.vignette-video {
  display: block;
  color: #fff;
  text-decoration: none;
}

.vignette-video-image {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 3px !important;
  background: var(--bs-dark);
}

.vignette-video-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease, opacity .3s ease;
}

.vignette-video-lecture {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: 3.2rem;
  height: 3.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #fff;
  background: var(--bs-secondary);
  border-radius: 50% !important;
  transform: translate(-50%, -50%);
  transition: transform .3s ease;
}

.vignette-video:hover .vignette-video-image img {
  transform: scale(1.05);
  opacity: .85;
}

.vignette-video:hover .vignette-video-lecture {
  transform: translate(-50%, -50%) scale(1.1);
}

.vignette-video-titre {
  display: block;
  color: #fff !important;
  margin-top: .6rem;
  font-size: .95rem;
  line-height: 1.3;
}

/* Vidéos : grille des séries */

.series-videos {
  padding: 2rem 0 3rem;
}

@media (min-width: 992px) {
  .series-videos {
    padding: 3.5rem 0 5rem;
  }
}

.serie-video {
  display: block;
  text-decoration: none;
}

.serie-video-image {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 3px !important;
  background: var(--bs-dark);
}

.serie-video-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease, opacity .3s ease;
}

.serie-video-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(var(--bs-dark-rgb), .65) 0%, rgba(var(--bs-dark-rgb), .15) 50%, transparent 100%);
  pointer-events: none;
}

.serie-video-nombre {
  position: absolute;
  z-index: 1;
  right: .5rem;
  top: .5rem;
  padding: .2rem .5rem;
  font-size: .8rem;
  color: #fff;
  background: rgba(var(--bs-dark-rgb), .7);
  border-radius: 3px !important;
}

.serie-video:hover .serie-video-image img {
  transform: scale(1.05);
  opacity: .85;
}

.serie-video:hover .vignette-video-lecture {
  transform: translate(-50%, -50%) scale(1.1);
}

/* Titre sur l'image, comme les cartes d'actions */
.serie-video-titre {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.25;
  text-transform: uppercase;
  color: #fff !important;
}

/* ---------- MUSÉE VIRTUEL ---------- */

/* Ambiance de salle d'exposition : fond très sombre, objets mis en lumière */

.musee {
  color: rgba(255, 255, 255, .8);
}

.musee h1,
.musee h2 {
  color: #fff;
}

.musee-surtitre {
  display: block;
  margin-bottom: .75rem;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--bs-primary);
}

.musee-titre {
  font-size: 2.2rem;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

@media (min-width: 992px) {
  .musee-titre {
    font-size: 3.2rem;
  }
}

.musee-intro {
  font-size: 1.2rem;
  font-weight: 300;
  line-height: 1.6;
}

.musee-section-titre {
  margin-bottom: 2rem;
}

.musee-retour {
  display: inline-flex;
  align-items: center;
  margin-bottom: 2rem;
  font-size: .9rem;
  color: rgba(255, 255, 255, .6) !important;
  text-decoration: none;
}

.musee-retour:hover {
  color: #fff !important;
}

/* Hall */

.musee-hall {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 5rem;
}

.musee-hall-objet {
  position: relative;
  display: block;
  max-width: 420px;
  margin: 0 auto;
}

/* Halo de lumière derrière la pièce maîtresse */
.musee-hall-objet::before {
  content: '';
  position: absolute;
  inset: -15%;
  background: radial-gradient(circle, rgba(var(--bs-primary-rgb), .35) 0%, transparent 65%);
  z-index: 0;
}

.musee-hall-objet img {
  position: relative;
  z-index: 1;
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 70vh;
  margin: 0 auto;
  border-radius: 3px !important;
  animation: objet-apparition 2s ease both;
}

@keyframes objet-apparition {
  from { opacity: 0; transform: scale(.96); filter: brightness(.3); }
  to   { opacity: 1; transform: scale(1); filter: brightness(1); }
}

.musee-phare {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  margin: 2rem 0 0;
  padding-left: 1rem;
  border-left: 2px solid var(--bs-secondary);
}

.musee-phare span {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255, 255, 255, .5);
}

.musee-phare a {
  color: #fff !important;
  font-size: 1.15rem;
  text-decoration: none;
}

/* Portes des salles */

.musee-salles {
  padding: 4rem 0 6rem;
}

.musee-pieces {
  padding: 4rem 0;
}

.porte-salle {
  position: relative;
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 3px !important;
  text-decoration: none;
  background: var(--bs-dark);
}

.porte-salle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .6;
  transition: transform .6s ease, opacity .4s ease;
}

.porte-salle::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(var(--bs-dark-rgb), .85) 0%, transparent 60%);
}

.porte-salle:hover img {
  transform: scale(1.05);
  opacity: .9;
}

.porte-salle-texte {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem;
}

.porte-salle-nom {
  display: block;
  font-size: 1.4rem;
  line-height: 1.2;
  font-weight: 500;
  color: #fff;
}

.porte-salle-nombre {
  font-size: .85rem;
  color: rgba(255, 255, 255, .6);
}

/* Vitrines */

.vitrine {
  display: block;
  text-decoration: none;
}

.vitrine-image {
  position: relative;
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 3px !important;
  background: var(--bs-dark);
}

.vitrine-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}

/* Vignettage : effet de projecteur sur l'objet */
.vitrine-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, transparent 45%, rgba(var(--bs-dark-rgb), .75) 100%);
  transition: opacity .4s ease;
}

.vitrine:hover .vitrine-image img {
  transform: scale(1.06);
}

.vitrine:hover .vitrine-image::after {
  opacity: .4;
}

.vitrine-texte {
  display: block;
  padding-top: .75rem;
}

.vitrine-salle {
  display: block;
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--bs-primary);
}

.vitrine-titre {
  display: block;
  font-weight: 500;
  line-height: 1.3;
  color: #fff;
}

.vitrine-datation {
  font-size: .85rem;
  color: rgba(255, 255, 255, .5);
}

/* En-tête de salle */

.musee-entete {
  padding: 8rem 0 3rem;
}

.musee-autres-salles {
  padding: 2.5rem 0 4rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.musee-autres-salles .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1.5rem;
}

.musee-autres-salles span {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255, 255, 255, .5);
}

.musee-autres-salles a {
  color: #fff !important;
  text-decoration: none;
  border-bottom: 1px solid var(--bs-secondary);
}

/* Fiche objet */

.fiche-objet {
  padding: 8rem 0 4rem;
}

.fiche-objet-visuel {
  position: relative;
  display: block;
  border-radius: 3px !important;
  overflow: hidden;
  cursor: zoom-in;
}

/* Photo entière, quelle que soit son orientation */
.fiche-objet-visuel img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
}

.fiche-objet-zoom {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  width: 2.6rem;
  height: 2.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bs-dark);
  background: rgba(255, 255, 255, .9);
  border-radius: 50% !important;
}

.fiche-objet-vues {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: .75rem;
}

.fiche-objet-vues img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 3px !important;
  opacity: .75;
  transition: opacity .3s ease;
}

.fiche-objet-vues a:hover img {
  opacity: 1;
}

@media (min-width: 992px) {
  .cartel {
    position: sticky;
    top: 7rem;
  }
}

.cartel-titre {
  font-size: 2rem;
  line-height: 1.15;
  margin-bottom: .75rem;
}

.cartel-accroche {
  font-size: 1.15rem;
  font-weight: 300;
  color: rgba(255, 255, 255, .7);
}

.cartel-lignes {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .5rem 1.5rem;
  margin: 1.5rem 0;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, .15);
  border-bottom: 1px solid rgba(255, 255, 255, .15);
}

.cartel-lignes dt {
  font-weight: 400;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: rgba(255, 255, 255, .5);
}

.cartel-lignes dd {
  margin: 0;
  color: #fff;
}

.cartel-attente {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  font-size: .95rem;
  color: rgba(255, 255, 255, .6);
  border: 1px dashed rgba(255, 255, 255, .2);
  border-radius: 3px !important;
}

.cartel-recit {
  font-size: 1.05rem;
  line-height: 1.7;
}

.fiche-objet-nav {
  padding: 2rem 0 4rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.fiche-objet-nav-lien {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #fff !important;
  text-decoration: none;
}

.fiche-objet-nav-lien small {
  display: block;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255, 255, 255, .5);
}

.fiche-objet-nav-lien i {
  font-size: 1.4rem;
  color: var(--bs-secondary);
}

/* Dossier de presse */

.presse-section {
  padding: 3rem 0 5rem;
}

.presse-type {
  position: absolute;
  z-index: 1;
  top: .5rem;
  left: .5rem;
  padding: .2rem .5rem;
  font-size: .75rem;
  color: #fff;
  background: rgba(var(--bs-dark-rgb), .65);
  border-radius: 3px !important;
}

.presse-vignette-vide {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 3rem;
  color: rgba(255, 255, 255, .4);
  background: #1c1916;
}

.presse-vignette .card-title {
  font-weight: 500;
  text-transform: uppercase;
}

/* ---------- CHEMIN MÉDIÉVAL ---------- */

.chemin-presentation {
  padding: 4rem 0;
  color: var(--bs-dark);
}

.chemin-presentation .btn-video {
  color: #fff !important;
  background: var(--bs-secondary);
  border-color: var(--bs-secondary);
}

.chemin-presentation .btn-video i {
  color: #fff;
}

.chemin-texte {
  font-size: 1.1rem;
  line-height: 1.7;
}

.chemin-infos {
  margin: 2rem 0 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, .15);
}

.chemin-infos li {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.chemin-infos i {
  font-size: 1.3rem;
  color: var(--bs-primary);
}

.chemin-infos strong {
  display: block;
  font-weight: 500;
  color: #fff;
}

.chemin-plan {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 3px !important;
  background: #fff;
  cursor: zoom-in;
}

.chemin-plan img {
  display: block;
  width: 100%;
  height: auto;
}

.chemin-haltes {
  padding: 3rem 0 5rem;
}

.halte {
  display: block;
  text-decoration: none;
}

.halte-vide {
  display: block;
  width: 100%;
  height: 100%;
  background: #1c1916;
}

/* Numéro de la halte, repris sur les bornes du chemin */
.halte-numero {
  position: absolute;
  z-index: 1;
  top: .75rem;
  left: .75rem;
  width: 2.4rem;
  height: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  background: var(--bs-secondary);
  border-radius: 50% !important;
}

.halte-numero-inline {
  position: static;
  display: inline-flex;
  margin-right: .5rem;
}

.halte-resume {
  display: block;
  margin-top: .75rem;
  font-size: .95rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, .7);
}

.halte-contenu {
  padding: 3rem 0 4rem;
}

.halte-repere {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255, 255, 255, .6);
}

.halte-texte {
  color: rgba(255, 255, 255, .8);
}

.chemin-statut {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin: 0 0 .75rem;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--bs-secondary);
}

/* Point qui pulse : chantier en cours */
.chemin-statut-point {
  width: .55rem;
  height: .55rem;
  background: var(--bs-secondary);
  border-radius: 50% !important;
  animation: statut-pulse 1.8s ease-out infinite;
}

@keyframes statut-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(var(--bs-secondary-rgb), .5); }
  100% { box-shadow: 0 0 0 .6rem rgba(var(--bs-secondary-rgb), 0); }
}

.chemin-projet {
  padding: 3rem 0;
}

/* Plan collé à gauche, présentation à droite, séparés par un filet */
.chemin-projet {
  padding: 0;
}

.chemin-split-texte {
  padding: 2.5rem 1.5rem;
}

.chemin-split-plan .plan-legende {
  padding: 1rem 1.5rem;
  font-size: .8rem;
  gap: .35rem 1rem;
}

@media (min-width: 1200px) {
  .chemin-split {
    display: flex;
    height: calc(100vh - var(--hauteur-nav, 90px));
    margin-top: var(--hauteur-nav, 90px);
  }

  .chemin-split-plan {
    flex-shrink: 0;
    height: 100%;
    border-right: 1px solid rgba(var(--bs-dark-rgb), .15);
  }

  .chemin-split-plan {
    display: flex;
    flex-direction: column;
  }

  /* Plan réduit de la hauteur de la légende placée dessous */
  .chemin-split-plan .plan-chemin {
    width: auto;
    height: calc(100% - var(--hauteur-legende, 6rem));
    aspect-ratio: var(--ratio, .778);
    margin: 0;
    border-radius: 0 !important;
  }

  .chemin-split-plan .plan-chemin > img {
    height: 100%;
    width: auto;
  }

  .chemin-split-texte {
    flex: 1;
    overflow-y: auto;
    padding: 3rem 3.5rem;
  }

  .chemin-split-plan .plan-legende {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    width: 0;
    min-width: 100%;
  }
}

@media (max-width: 1199.98px) {
  .chemin-split {
    margin-top: var(--hauteur-nav, 90px);
  }
}


.chemin-projet .chemin-texte {
  color: rgba(255, 255, 255, .8);
}

/* Visuels des supports : affichés en entier (formats portrait et panoramique) */
.realisation img {
  object-fit: cover;
}

/* Plan interactif du chemin */

.plan-chemin {
  position: relative;
  /* Plan entier dans la hauteur de l'écran (sous la navigation), proportions conservées */
  width: min(100%, calc((100vh - 140px) * var(--ratio, .778)));
  margin: 0 auto;
  border-radius: 3px !important;
  overflow: hidden;
}

.plan-chemin > img {
  display: block;
  width: 100%;
  height: auto;
}

.repere {
  position: absolute;
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 700;
  color: var(--repere);
  background: #fff;
  border: 2px dashed var(--repere);
  border-radius: 50% !important;
  cursor: pointer;
  transition: transform .2s ease;
}

/* Réalisé : pastille pleine ; en projet : contour en pointillés */
.repere.is-realise {
  color: #fff;
  background: var(--repere);
  border-style: solid;
  border-color: #fff;
}

.repere:hover,
.repere:focus-visible {
  transform: scale(1.2);
  z-index: 2;
}

.repere-borne { --repere: #2e6fb3; }
.repere-panneau { --repere: #7db04a; }
.repere-totem { --repere: var(--bs-secondary); }
.repere-table { --repere: #55b9e6; }

/* Silhouette : triangle */
.repere-silhouette {
  --repere: #e6a23c;
  width: 0;
  height: 0;
  margin: -14px 0 0 -12px;
  background: none !important;
  border: 12px solid transparent !important;
  border-bottom: 22px solid var(--repere) !important;
  border-top-width: 0 !important;
  border-radius: 0 !important;
}

.repere.is-masque {
  display: none;
}

.repere-bulle {
  position: absolute;
  z-index: 3;
  width: 220px;
  padding: .75rem;
  font-size: .85rem;
  line-height: 1.35;
  color: var(--bs-dark);
  background: #fff;
  border-radius: 3px !important;
  pointer-events: auto;
}

.repere-bulle img {
  display: block;
  width: 100%;
  height: 110px;
  margin-bottom: .5rem;
  object-fit: contain;
  background: var(--bs-light);
  cursor: zoom-in;
}

.repere-bulle strong {
  display: block;
}

.repere-bulle small {
  color: rgba(var(--bs-dark-rgb), .6);
}

/* Plan et légende côte à côte, légende empilée sur mobile */
.plan-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.plan-zone .plan-chemin {
  margin: 0;
}

.plan-legende {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1.25rem;
  font-size: .9rem;
}

@media (min-width: 992px) {
  .plan-zone {
    flex-direction: row;
    justify-content: center;
    align-items: flex-end;
  }

  .plan-zone .plan-legende {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: flex-start;
    flex-shrink: 0;
  }
}

.plan-legende-realises {
  margin-top: .5rem;
}

.plan-legende .repere {
  position: static;
  margin: 0 .4rem 0 0;
  width: 16px;
  height: 16px;
  cursor: default;
  vertical-align: middle;
}

.plan-legende .repere-silhouette {
  width: 0;
  height: 0;
  border-width: 8px !important;
  border-bottom-width: 14px !important;
  border-top-width: 0 !important;
}

.plan-legende-item {
  display: inline-flex;
  align-items: center;
  padding: 0;
  color: #fff;
  background: none;
  border: 0;
  opacity: .4;
}

.plan-legende-item.is-actif {
  opacity: 1;
}

.plan-legende-realises,
.plan-legende-etat {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: rgba(255, 255, 255, .6);
}

.repere-bulle-lien {
  display: inline-flex;
  align-items: center;
  margin-top: .4rem;
  font-weight: 500;
  color: var(--bs-secondary) !important;
  text-decoration: none;
}

/* Page d'une halte : le support tel qu'imprimé */
.halte-support {
  position: relative;
  display: block;
  max-width: 520px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 3px !important;
  background: var(--bs-light);
  cursor: zoom-in;
}

.halte-support img {
  display: block;
  width: 100%;
  height: auto;
}

.halte-support-legende {
  margin: 1rem 0 0;
  text-align: center;
  font-size: .9rem;
  color: rgba(255, 255, 255, .6);
}

/* Tracé du parcours sur le plan */
.plan-traces {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.plan-trace {
  fill: none;
  stroke-width: 5;
  stroke-dasharray: 14 9;
  stroke-linejoin: round;
}

.plan-trace-principal { stroke: var(--bs-secondary); }
.plan-trace-variante { stroke: #e6a23c; }

.plan-legende-trace {
  display: inline-block;
  width: 22px;
  margin-right: .4rem;
  border-top: 3px dashed var(--bs-secondary);
}

/* Page d'une halte : contenu sur fond blanc */
.halte-contenu {
  color: var(--bs-dark);
}

.halte-contenu .halte-repere,
.halte-contenu .halte-support-legende {
  color: rgba(var(--bs-dark-rgb), .6);
}

.halte-contenu .halte-texte {
  color: var(--bs-dark);
}

.halte-contenu h2,
.halte-contenu .text-white {
  color: var(--bs-dark) !important;
}

.halte-contenu .cartel-attente {
  color: rgba(var(--bs-dark-rgb), .6);
  border-color: rgba(var(--bs-dark-rgb), .2);
}

.halte-contenu .halte-support {
  border: 1px solid rgba(var(--bs-dark-rgb), .1);
}

.chemin-projet .chemin-texte {
  color: var(--bs-dark);
}

.chemin-projet .breadcrumb,
.chemin-projet .breadcrumb a {
  color: rgba(var(--bs-dark-rgb), .5) !important;
}

.chemin-projet .plan-legende-item {
  color: var(--bs-dark);
}

.chemin-projet .plan-legende-realises,
.chemin-projet .plan-legende-etat {
  color: rgba(var(--bs-dark-rgb), .6);
}

.chemin-projet .repere-bulle {
  box-shadow: 0 0 0 1px rgba(var(--bs-dark-rgb), .15);
}

/* Page d'une halte : visuel du support à gauche, sur toute la hauteur */
.halte-split-visuel {
  display: flex;
  align-items: center;
  justify-content: center;
}

.halte-split-visuel a {
  display: block;
  height: 100%;
  cursor: zoom-in;
}

.halte-split-visuel img {
  display: block;
  max-width: 100%;
  height: auto;
}

@media (min-width: 1200px) {
  .halte-split-visuel {
    width: 50%;
    padding: 2rem;
  }

  .halte-split-visuel a {
    display: flex;
    align-items: center;
  }

  .halte-split-visuel img {
    max-height: 100%;
    width: auto;
    margin: 0 auto;
  }
}

.halte-contenu .vitrine-titre {
  color: var(--bs-dark);
}

.halte-contenu .vitrine-datation {
  color: rgba(var(--bs-dark-rgb), .6);
}

/* Repère menant à une page de halte */
.repere[data-page]:not([data-page=""]) {
  cursor: pointer;
}

.repere[data-page=""] {
  cursor: help;
}

/* Page d'une halte : colonne de contenu sur fond blanc */
.halte-contenu .chemin-split-texte {
  background: #fff;
}

.halte-contenu .lead {
  color: rgba(var(--bs-dark-rgb), .75);
}

.halte-contenu .chemin-split-plan {
  border-right: 0;
}

/* Page du chemin : présentation sur fond blanc, sans filet central */
.chemin-split-texte {
  background: #fff;
}

.chemin-split-plan {
  border-right: 0 !important;
}

/* Page d'une halte : titre du contenu additionnel à la taille du texte */

/* Page du chemin : écran partagé en deux moitiés, plan centré dans la sienne */
@media (min-width: 1200px) {
  .chemin-projet:not(.halte-contenu) .chemin-split-plan {
    width: 50%;
    align-items: center;
  }

  .chemin-projet:not(.halte-contenu) .chemin-split-plan .plan-legende {
    width: 100%;
    min-width: 0;
    justify-content: center;
  }
}

/* Vignettes des supports réalisés : numéro de la halte et type */
.realisation-entete {
  position: absolute;
  z-index: 1;
  top: .6rem;
  left: .6rem;
  display: flex;
  align-items: center;
  gap: .4rem;
}

.realisation-numero {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  font-weight: 700;
  color: #fff;
  background: var(--bs-secondary);
  border-radius: 50% !important;
}

.realisation-type {
  padding: .2rem .5rem;
  font-size: .75rem;
  color: #fff;
  background: rgba(var(--bs-dark-rgb), .65);
  border-radius: 3px !important;
}

/* Numéro à gauche, type de support à droite */
.realisation-entete {
  right: .6rem;
  justify-content: space-between;
}

/* Texte du support : citation du personnage, texte et repères numérotés */
.halte-texte-support {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(var(--bs-dark-rgb), .12);
}

.halte-texte-support blockquote {
  font-size: 1.4rem !important;
  margin-top: 0 !important;
  margin-bottom: 1.5rem !important;
}

.halte-texte-support blockquote cite {
  display: block;
  margin-top: .5rem;
  font-family: brandon-grotesque, sans-serif;
  font-size: .85rem;
  font-style: normal;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: rgba(var(--bs-dark-rgb), .5);
}

.halte-texte-support blockquote cite::before,
.halte-texte-support blockquote cite::after {
  content: none !important;
}

.num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.3em;
  height: 1.3em;
  margin: 0 .1em;
  font-size: .75em;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  background: var(--bs-secondary);
  border-radius: 50% !important;
  vertical-align: .1em;
}

.halte-texte-support ul {
  padding-left: 0;
  list-style: none;
}

.halte-texte-support li {
  margin-bottom: .35rem;
}

.halte-texte-support .legende {
  position: static;
  transform: none;
  width: auto;
  max-width: none;
  padding: 0;
  text-align: left;
  text-shadow: none;
  pointer-events: auto;
  font-size: .9rem;
  font-style: italic;
  color: rgba(var(--bs-dark-rgb), .6);
}

/* Citation du support : guillemet fermant sur la phrase, pas sur l'auteur */
.halte-texte-support blockquote p:first-child::after {
  content: " »";
}

.halte-texte-support blockquote p:not(:first-child)::after,
.halte-texte-support blockquote p:not(:first-child)::before {
  content: none;
}

.halte-texte-support blockquote p:not(:first-child) {
  margin: 0;
}

/* Numéro et titre de la halte rapprochés */
.halte-contenu .halte-repere {
  margin-bottom: .75rem;
}

/* Titre d'une halte précédé de son numéro */
.halte-titre {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.halte-titre .halte-numero {
  flex-shrink: 0;
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

/* Vignettes des supports : même marge en haut, en bas et sur les côtés */
.chemin-haltes {
  padding: 1rem 0;
}

@media (min-width: 768px) {
  .chemin-haltes {
    padding: 1.5rem 0;
  }
}

@media (min-width: 992px) {
  .chemin-haltes {
    padding: 3rem 0;
  }
}

/* Aperçu du plan : visuel du support dans ses proportions */
.repere-bulle img {
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: contain;
  background: none;
}

/* Pages des haltes : titres de contenu et texte dans la couleur du texte du site */
.halte-contenu .chemin-split-texte,
.halte-contenu .chemin-split-texte p,
.halte-contenu .chemin-split-texte h2,
.halte-contenu .chemin-split-texte h3,
.halte-contenu .chemin-split-texte h4 {
  color: var(--bs-dark) !important;
}

/* Aperçu du plan : numéro dans sa pastille rouge, comme sur les pages */
.repere-bulle-titre {
  display: flex !important;
  align-items: center;
  gap: .5rem;
}

.repere-bulle-titre .halte-numero {
  flex-shrink: 0;
  width: 1.8rem;
  height: 1.8rem;
  margin: 0;
  font-size: .8rem;
}

/* Légende du support, sous le visuel sur fond sombre */
.halte-split-visuel {
  flex-direction: column;
}

.halte-split-visuel .halte-support-legende {
  margin: 1rem 0 0;
  max-width: 40rem;
  font-size: .85rem;
  font-style: italic;
  line-height: 1.5;
  text-align: center;
  color: rgba(255, 255, 255, .6);
}

.halte-split-visuel .halte-support-legende span {
  margin-top: .25rem;
  font-style: normal;
  font-size: .75rem;
  color: rgba(255, 255, 255, .4);
}

@media (min-width: 1200px) {
  .halte-split-visuel a {
    height: auto;
    max-height: calc(100% - 5rem);
    min-height: 0;
  }

  .halte-split-visuel img {
    max-height: calc(100vh - var(--hauteur-nav, 90px) - 9rem);
  }
}

.repere-bulle-carte {
  display: block;
  color: inherit !important;
  text-decoration: none;
}

.repere-bulle-carte img {
  cursor: pointer;
}

/* Page d'une halte : navigation entre haltes en haut, toujours visible ;
   seul le texte de droite défile */
.halte-nav-haut {
  padding: .75rem 0;
  background: var(--bs-dark);
  border-top: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.halte-nav-haut .fiche-objet-nav-lien small {
  font-size: .65rem;
}

@media (min-width: 1200px) {
  .halte-contenu {
    margin-top: var(--hauteur-nav, 90px);
  }

  .halte-contenu .chemin-split {
    height: calc(100vh - var(--hauteur-nav, 90px) - var(--hauteur-nav-halte, 4rem));
    margin-top: 0;
  }

  .halte-contenu .halte-split-visuel img {
    max-height: calc(100vh - var(--hauteur-nav, 90px) - var(--hauteur-nav-halte, 4rem) - 9rem);
  }

  .halte-contenu .chemin-split-texte {
    overscroll-behavior: contain;
  }
}

@media (max-width: 1199.98px) {
  .halte-contenu {
    margin-top: var(--hauteur-nav, 90px);
  }

  .halte-contenu .chemin-split {
    margin-top: 0;
  }
}

/* Page d'une halte : légende et crédit présentés comme sur les en-têtes */
.halte-split-visuel {
  position: relative;
}

@media (min-width: 1200px) {
  .halte-split-visuel a {
    max-height: calc(100% - 3rem);
  }
}

/* Page d'une halte : support détaché par une ombre portée */
.halte-split-visuel img {
  box-shadow: 0 1.25rem 2.5rem rgba(var(--bs-dark-rgb), .45) !important;
}

/* Filtre « supports réalisés » posé sur le plan, en haut à gauche */
.plan-filtre {
  position: absolute;
  z-index: 3;
  top: 1rem;
  left: 1rem;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .4rem .75rem;
  font-size: .8rem;
  color: var(--bs-dark);
  background: rgba(255, 255, 255, .9);
  border-radius: 3px !important;
  cursor: pointer;
  user-select: none;
}

.plan-filtre input {
  accent-color: var(--bs-secondary);
  margin: 0;
}

/* Légende du plan alignée à gauche */
.chemin-split-plan .plan-legende {
  justify-content: flex-start !important;
  text-align: left;
}

.repere-bulle-etat {
  display: block;
  margin-top: .4rem;
  font-size: .75rem;
  font-style: italic;
  color: var(--bs-secondary);
}

/* Aperçu : visuel sur fond sombre avec ombre, comme sur les pages des haltes */
.repere-bulle-visuel {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -.75rem -.75rem .6rem;
  padding: 1rem;
  background: rgba(var(--bs-dark-rgb), .8);
}

.repere-bulle-visuel img {
  width: auto !important;
  max-width: 100%;
  max-height: 200px !important;
  margin: 0 !important;
  box-shadow: 0 .6rem 1.2rem rgba(var(--bs-dark-rgb), .45) !important;
}

/* Aperçu d'un support non réalisé : affiche blanche en attente */
.repere-bulle-attente {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 170px;
  padding: 1rem;
  font-size: .8rem;
  font-style: italic;
  line-height: 1.3;
  text-align: center;
  color: rgba(var(--bs-dark-rgb), .55);
  background: #fff;
  box-shadow: 0 .6rem 1.2rem rgba(var(--bs-dark-rgb), .45) !important;
}

.halte-contenu .halte-titre {
  color: var(--bs-dark) !important;
}

.repere-bulle-type {
  display: block;
  margin-top: .15rem;
  font-size: .7rem;
  font-weight: 400;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: rgba(var(--bs-dark-rgb), .5);
}

/* Page d'une halte : accès au support imprimé sous l'illustration */
.halte-voir-support {
  display: inline-flex !important;
  align-items: center;
  height: auto !important;
  margin-top: 1rem;
  padding: .35rem .8rem;
  font-size: .85rem;
  color: #fff !important;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 3px !important;
}

.halte-voir-support:hover {
  background: rgba(255, 255, 255, .1);
}

/* Page d'une halte : autres images sous le visuel principal */
.halte-galerie {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
  margin-top: 1rem;
}

.halte-galerie a {
  display: block !important;
  height: auto !important;
}

.halte-galerie img {
  width: 64px !important;
  height: 64px !important;
  max-height: none !important;
  object-fit: cover;
  opacity: .75;
  box-shadow: none !important;
  transition: opacity .3s ease;
}

.halte-galerie a:hover img {
  opacity: 1;
}

/* Page d'une halte : diaporama des images à gauche */
.halte-split-visuel {
  padding: 0 !important;
}

.halte-diaporama {
  width: 100%;
  height: 100%;
}

.halte-diaporama .flickity-viewport {
  height: 100% !important;
}

.halte-diapo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 2rem 3.5rem 3rem;
}

.halte-diapo a {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100% !important;
  max-height: none !important;
}

.halte-diapo img {
  width: auto !important;
  max-width: 100%;
  max-height: 100% !important;
  object-fit: contain;
}

.halte-diaporama .flickity-page-dots {
  bottom: 2.5rem;
}

@media (max-width: 1199.98px) {
  .halte-diaporama,
  .halte-diapo {
    height: 70vh;
  }
}

/* Page d'une halte : encart de citation avec la mascotte */
.halte-citation {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 0 0 2rem;
  padding: 1.5rem 1.75rem;
  background: var(--bs-light);
  border-radius: 3px !important;
}

.halte-citation-mascotte {
  flex-shrink: 0;
  width: 110px;
  height: auto;
}

.halte-citation blockquote {
  flex: 1;
  margin: 0 !important;
  font-size: 1.4rem !important;
  line-height: 1.35;
}

@media (max-width: 575.98px) {
  .halte-citation {
    flex-direction: column;
    text-align: center;
  }
}

/* Encart de citation : fond blanc, sans marge intérieure */
.halte-citation {
  padding: 0;
  background: #fff;
}

/* Diaporama des haltes : fond papier des supports derrière les images (PNG transparents) */
.halte-diapo img {
  background: var(--bs-light);
}


/* Page d'une halte : image à la une en fin de contenu */
.halte-une {
  margin: 3rem 0 0;
}

.halte-une img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 3px !important;
}

.halte-une figcaption {
  margin-top: .5rem;
  font-size: .85rem;
  color: rgba(var(--bs-dark-rgb), .6);
}

/* Visionneuse : fond papier derrière les images transparentes */
.fancybox-image {
  background: var(--bs-light);
}

/* Musée : en-tête sans image */
.musee-titre-simple {
  padding-bottom: 1rem !important;
}

/* Plan : tous les repères en secondary, le type distingué par une icône */
.repere-borne,
.repere-panneau,
.repere-totem,
.repere-table,
.repere-silhouette {
  --repere: var(--bs-secondary);
}

.repere-icone {
  position: absolute;
  top: -7px;
  right: -9px;
  width: 17px;
  height: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  color: var(--repere);
  background: #fff;
  border: 1px solid var(--repere);
  border-radius: 50% !important;
}

/* Silhouette : pastille avec un personnage, plus de triangle */
/* Silhouette en projet : contour en pointillés, comme les autres supports */
#plan-chemin .repere-silhouette {
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px;
  font-size: 14px;
  color: var(--repere);
  background: #fff !important;
  border: 2px dashed var(--repere) !important;
  border-radius: 50% !important;
}

/* Silhouette réalisée : pastille pleine */
#plan-chemin .repere-silhouette.is-realise {
  color: #fff;
  background: var(--repere) !important;
  border: 2px solid transparent !important;
}

.plan-legende-icone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-right: .4rem;
  font-size: 11px;
  color: var(--bs-secondary);
  background: #fff;
  border: 1px solid var(--bs-secondary);
  border-radius: 50% !important;
}

.plan-legende .plan-legende-etat .repere {
  --repere: var(--bs-secondary);
}

/* Repère : icône du type à la place du numéro (le numéro figure dans l'aperçu) */
#plan-chemin .repere {
  font-size: .75rem;
}

/* Badge d'icône discret, en bas à droite du numéro */
#plan-chemin .repere-icone {
  top: auto;
  bottom: -5px;
  right: -6px;
  width: 14px;
  height: 14px;
  font-size: 8px;
  border-width: 1px;
}

/* Pastille : icône du type ; badge : numéro */
#plan-chemin .repere {
  font-size: 13px;
}

#plan-chemin .repere-icone {
  width: 16px;
  height: 16px;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
}

/* ---------- Numéros des supports masqués pour le moment ---------- */
.halte-numero, .plan-chemin .repere-icone, .realisation-numero { display: none !important; }

/* ---------- Bouton Plan du chemin : picto fixe ---------- */
.halte-nav-haut .btn:hover i {
  transform: none;
}

/* ---------- Navigation des haltes : bouton Plan toujours centré ---------- */
@media (min-width: 768px) {
  .halte-nav-haut > div {
    display: grid !important;
    grid-template-columns: 1fr auto 1fr;
  }

  .halte-nav-haut > div > :last-child {
    justify-self: end;
  }
}

/* ---------- Contenu additionnel : étiquette posée sur le bord de l'encart ---------- */
.halte-contenu .chemin-split-texte p.halte-suite-intro {
  position: absolute;
  top: 0;
  left: 2rem;
  transform: translateY(-50%);
  margin: 0;
  padding: .4rem .9rem;
  background: var(--bs-secondary);
  border-radius: 3px;
  font-family: brandon-grotesque, sans-serif;
  font-weight: 700;
  font-size: .85rem;
  line-height: 1.2;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff !important;
}

.halte-suite-intro + h2,
.halte-suite-intro + h3 {
  margin-top: 0;
}

/* Le filet de l'intertitre remplace celui sous le texte du support */
.halte-texte-support:has(+ .halte-suite-texte) {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.halte-texte-support > :last-child {
  margin-bottom: 0;
}

.halte-texte-support + .halte-suite-texte {
  margin-top: 2rem;
}

/* Contenu additionnel regroupé dans un encart */
.halte-suite-texte {
  position: relative;
  margin-top: 2.5rem;
  padding: 2rem;
  background: var(--bs-light);
  border-radius: 3px;
}

.halte-suite-texte > :last-child {
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .halte-suite-texte {
    padding: 3rem;
  }

  .halte-contenu .chemin-split-texte p.halte-suite-intro {
    left: 3rem;
  }
}

/* Plan du chemin : sans l'interrupteur, ni mascottes, ni parcours, ni supports en projet, ni légende */
.chemin-split-plan:not(.is-chemin) .repere-silhouette,
.chemin-split-plan:not(.is-chemin) .plan-traces,
.chemin-split-plan:not(.is-chemin) .repere:not(.is-realise) {
  display: none;
}

/* Picto « i » par défaut, picto du type avec l'interrupteur */
.repere .repere-picto-type,
.chemin-split-plan.is-chemin .repere .repere-picto-info {
  display: none;
}

.chemin-split-plan.is-chemin .repere .repere-picto-type {
  display: inline-block;
}

/* Interrupteur posé en haut à gauche du plan */
.chemin-split-plan {
  position: relative;
}

.plan-bascule {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 5;
  margin: 0;
  padding: .4rem .75rem .4rem 2.9rem;
  background: rgba(255, 249, 239, .9);
  border-radius: 3px;
  font-size: .9rem;
}

.plan-bascule .form-check-input {
  cursor: pointer;
}

.plan-bascule .form-check-input:checked {
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
}

.plan-bascule .form-check-label {
  color: var(--bs-dark);
  cursor: pointer;
}

/* Page du chemin : présentation centrée verticalement */
@media (min-width: 1200px) {
  .chemin-projet:not(.halte-contenu) .chemin-split-texte {
    display: flex;
    flex-direction: column;
    justify-content: safe center;
  }
}

/* Aperçu : fond blanc sous les visuels transparents (png) */
.repere-bulle-visuel img {
  background: #fff;
}

/* Aperçu : visuel sur toute la largeur de la vignette */
.repere-bulle-visuel {
  padding: 0;
  overflow: hidden;
}

.repere-bulle-visuel img {
  display: block;
  width: 100% !important;
  height: 180px !important;
  max-height: none !important;
  object-fit: cover;
  box-shadow: none !important;
}

/* Aperçu : petit arrondi */
.repere-bulle {
  border-radius: 3px;
  overflow: hidden;
}

/* Interrupteur du plan : glissière aux extrémités arrondies */
.plan-bascule .form-check-input {
  border-radius: 2em !important;
}

/* ---------- Modale de recherche : plein écran sur photo floutée ---------- */

.modal-recherche-content {
  position: relative;
  overflow: hidden;
}

.modal-recherche-bg {
  position: absolute;
  inset: 0;
  background: url("assets/img/footer-chateau.webp") center / cover;
  filter: grayscale(100%) blur(12px);
  transform: scale(1.05);
  z-index: 0;
}

.modal-recherche-content::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--bs-light) 0%, var(--bs-dark) 100%);
  mix-blend-mode: multiply;
}

.modal-recherche-content .modal-body {
  z-index: 1;
}

.modal-recherche-title {
  font-size: clamp(2rem, 6vw, 4rem);
  letter-spacing: .08em;
  line-height: 1;
}

#modal-recherche #s {
  width: 100%;
  border: 0;
  border-radius: 3px !important;
  padding: 1rem 4rem 1rem 1.75rem;
  font-size: 1.1rem;
  color: var(--bs-dark);
  background: rgba(255, 255, 255, .95);
  box-shadow: none;
}

#modal-recherche #s:focus {
  color: var(--bs-dark) !important;
  background: #fff !important;
  box-shadow: none;
  outline: none;
}

#modal-recherche .search-icon {
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: var(--bs-primary);
  pointer-events: none;
}

/* Interrupteur du plan : glissière primary, rond secondary */
.plan-bascule .form-check-input,
.plan-bascule .form-check-input:focus,
.plan-bascule .form-check-input:checked {
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23c1451a'/%3e%3c/svg%3e");
  box-shadow: none;
}

/* Légende du plan : pictos des types sans cercle */
.plan-legende-icone {
  width: auto;
  height: auto;
  font-size: 1rem;
  background: none;
  border: 0;
}

/* Plan du chemin : picto blanc sur pastille secondary si réalisé, grise si en projet */
#plan-chemin .repere,
#plan-chemin .repere-silhouette,
.plan-legende .plan-legende-etat .repere {
  color: #fff;
  background: #9a948c !important;
  border: 2px solid transparent !important;
}

#plan-chemin .repere.is-realise,
.plan-legende .plan-legende-etat .repere.is-realise {
  background: var(--bs-secondary) !important;
}

/* Interrupteur du plan : glissière primary plus légère */
.plan-bascule .form-check-input,
.plan-bascule .form-check-input:focus,
.plan-bascule .form-check-input:checked {
  background-color: rgba(var(--bs-primary-rgb), .4);
  border-color: transparent;
}

/* Aperçu : visuel entier, à ses proportions, sur toute la largeur et sans bande, fond light */
.repere-bulle,
.repere-bulle-carte,
.repere-bulle-visuel,
.repere-bulle-visuel img {
  background-color: var(--bs-light) !important;
}

.repere-bulle-visuel {
  margin: -.75rem -.75rem .6rem !important;
  padding: 0 !important;
}

.repere-bulle-visuel img {
  width: 100% !important;
  height: auto !important;
  max-width: none !important;
}

/* Interrupteur du plan : éteint, glissière claire et rond blanc ; activé, glissière secondary */
.plan-bascule .form-check-input,
.plan-bascule .form-check-input:focus {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
}

.plan-bascule .form-check-input:checked {
  background-color: var(--bs-secondary);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
}

/* Interrupteur posé en haut à droite du plan */
.plan-bascule {
  left: auto;
  right: 1rem;
}

/* Légende du plan : pictos des types seuls (couleur : classe text-secondary) */
.plan-legende-icone {
  width: auto;
  height: auto;
  font-size: 1rem;
  background: none;
  border: 0;
}

/* Page du chemin : filet entre le plan et la légende */
.chemin-projet:not(.halte-contenu) .chemin-split-plan .plan-legende {
  border-top: 1px solid rgba(var(--bs-dark-rgb), .15);
}

/* Légende : sans le chemin, seulement le picto « i » ; avec, les types et les états */
.chemin-split-plan:not(.is-chemin) .plan-legende > :not(.plan-legende-defaut),
.chemin-split-plan.is-chemin .plan-legende-defaut {
  display: none !important;
}

.plan-legende-defaut .repere {
  position: static;
  margin: 0 .4rem 0 0;
  font-size: 13px;
}

/* Légende de même hauteur dans les deux modes : le plan ne bouge pas */
.chemin-projet:not(.halte-contenu) .chemin-split-plan .plan-legende {
  min-height: 60px;
}

/* Aperçu : vignette plus petite */
.repere-bulle {
  width: 160px !important;
  max-width: 160px !important;
}

/* Légende : filtres Réalisé / En projet séparés par un filet, en boutons cliquables */
.chemin-projet:not(.halte-contenu) .chemin-split-plan .plan-legende {
  column-gap: 12px;
}

.chemin-projet .plan-legende-item[data-etat="realise"] {
  position: relative;
  margin-left: 13px;
}

.chemin-projet .plan-legende-item[data-etat="realise"]::before {
  content: '';
  position: absolute;
  left: -13px;
  top: 0;
  bottom: 0;
  border-left: 1px solid rgba(var(--bs-dark-rgb), .2);
}

.chemin-projet .plan-legende-item.plan-legende-etat {
  padding: .15rem .5rem;
  color: var(--bs-dark);
  background: transparent;
  border: 1px solid rgba(var(--bs-dark-rgb), .2);
  border-radius: 3px !important;
  cursor: pointer;
  transition: border-color .2s ease, opacity .2s ease;
}

.chemin-projet .plan-legende-item.plan-legende-etat,
.chemin-projet .plan-legende-item.plan-legende-etat.is-actif {
  opacity: 1;
}

.chemin-projet .plan-legende-item.plan-legende-etat:hover {
  border-color: var(--bs-secondary);
  opacity: 1;
}

/* Filtre désactivé : bouton estompé */
.chemin-projet .plan-legende-item.plan-legende-etat:not(.is-actif) {
  opacity: .35;
}

/* Aperçu : titre sur l'image, comme les vignettes du bas de page */
.repere-bulle {
  padding: 0 !important;
}

.repere-bulle-carte {
  position: relative;
  display: block;
}

.repere-bulle .repere-bulle-visuel {
  position: relative;
  margin: 0 !important;
}

.repere-bulle .repere-bulle-visuel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(var(--bs-dark-rgb), .65) 0%, rgba(var(--bs-dark-rgb), .15) 50%, transparent 100%);
  pointer-events: none;
}

.repere-bulle .repere-bulle-visuel + .repere-bulle-titre {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  margin: 0;
  padding: .6rem .75rem;
  font-size: .8rem;
  font-weight: 500;
  line-height: 1.2;
  text-transform: uppercase;
  color: #fff;
}

/* Aperçu sans visuel : titre seul, avec un peu d'air */
.repere-bulle-titre:only-child {
  display: block;
  padding: .6rem .75rem;
}

/* Légende : filtres Réalisé / En projet poussés à droite */
.chemin-projet .plan-legende-item[data-etat="realise"] {
  margin-left: auto;
}

.chemin-projet .plan-legende-item[data-etat="realise"]::before {
  display: none;
}

/* ---------- Écrans partagés (musée, médias) : présentation à gauche, vignettes à droite ---------- */

.ecran-split {
  margin-top: var(--hauteur-nav, 90px);
}

.ecran-split-texte {
  padding: 3rem 1.5rem;
}

.ecran-split-intro {
  font-size: 1.2rem;
  font-weight: 300;
  line-height: 1.6;
}

.ecran-split-vignettes {
  padding: 2rem 1rem !important;
}

@media (min-width: 1200px) {
  .ecran-split {
    display: flex;
    height: calc(100vh - var(--hauteur-nav, 90px));
  }

  .ecran-split-texte {
    display: flex;
    flex-direction: column;
    justify-content: safe center;
    width: 50%;
    overflow-y: auto;
    padding: 3rem 3.5rem;
  }

  .ecran-split-vignettes {
    width: 50%;
    overflow-y: auto;
    padding: 2rem 1.5rem !important;
  }
}

/* Page du chemin : filet de séparation entre le plan et l'édito */
@media (min-width: 1200px) {
  .chemin-projet:not(.halte-contenu) .chemin-split-plan {
    border-right: 1px solid rgba(var(--bs-dark-rgb), .15) !important;
  }
}

/* Agenda et Nos actions : filtres détachés de l'en-tête light */
.liste-sombre #title-text {
  padding-bottom: 1.5rem;
}

.liste-sombre #filters {
  padding-top: 2.5rem;
  padding-bottom: 1rem;
}

/* Date en bloc : mois abrégé et jour en grand ; sur une période, début et fin séparés d'un trait */
.date-bloc {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  line-height: 1;
}

.date-bloc-jalon {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

.date-bloc-mois {
  font-size: 2.2rem;
  font-weight: 600;
  letter-spacing: .04em;
}

.date-bloc-jour {
  font-size: 5rem;
  font-weight: 700;
}

.date-bloc-separateur {
  width: 1.25rem;
  height: 3px;
  background: currentColor;
}

/* Vignettes de l'agenda : date en bloc au centre de l'image */
.card-date {
  z-index: 1;
  pointer-events: none;
  text-shadow: 0 .1rem .6rem rgba(var(--bs-dark-rgb), .5);
}

.card-date .date-bloc-separateur {
  box-shadow: 0 .1rem .6rem rgba(var(--bs-dark-rgb), .5);
}

.card-date .date-bloc-periode .date-bloc-mois {
  font-size: 1.6rem;
}

.card-date .date-bloc-periode .date-bloc-jour {
  font-size: 3.6rem;
}

/* Agenda : titre et filtres sur la même ligne, sous la navigation */
#filters.filters-avec-titre {
  padding-top: calc(var(--hauteur-nav, 90px) + 2rem) !important;
}

/* Date en bloc : année sous la date */
.date-bloc-groupe {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}

.date-bloc-annee {
  margin-top: .4rem;
  font-size: 1.4rem;
  font-weight: 600;
}

/* Date en bloc : trait de période centré sur les jours */
.date-bloc-periode {
  align-items: flex-end;
}

.date-bloc-periode .date-bloc-separateur {
  margin-bottom: calc(5rem * .72 / 2 - 1.5px);
}

.card-date .date-bloc-periode .date-bloc-separateur {
  margin-bottom: calc(3.6rem * .72 / 2 - 1.5px);
}

/* Évènement : pas d'en-tête, le titre est dans le bloc de détail */
#single #evenement {
  padding-top: calc(var(--hauteur-nav, 90px) + 3rem);
}

/* Mobile : détail en premier, marge réduite sous la navigation */
@media (max-width: 767.98px) {
  #single #evenement {
    padding-top: calc(var(--hauteur-nav, 90px) + 1.5rem);
  }
}


.evenement-titre {
  display: block;
  padding-top: 0 !important;
  padding-bottom: 1.25rem;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: normal;
  text-transform: none;
}

/* Évènement sans affiche : vignette temporaire au format A4 portrait */
.evenement-affiche-vide {
  width: 100%;
  aspect-ratio: 210 / 297;
  object-fit: cover;
}

/* Bloc de détail de l'évènement : sans cadre ni marge horizontale */
.evenement {
  border: 0 !important;
}

.evenement-titre,
.evenement li {
  padding-left: 0;
  padding-right: 0;
}

/* Bloc de détail de l'évènement : date en bloc comme sur les vignettes de l'agenda */
.evenement-date {
  align-items: flex-start !important;
  padding-top: 1.25rem !important;
  padding-bottom: 1.25rem !important;
}

.evenement-date .date-bloc-groupe {
  align-items: flex-start;
}

.evenement-titre #breadcrumb {
  padding-top: 0;
  margin-top: 0;
}

/* Date en bloc : année étirée sur toute la largeur de la date */
.date-bloc-annee {
  align-self: stretch;
  letter-spacing: 0;
  white-space: nowrap;
  text-align: center;
}

/* Date en bloc : hauteur de ligne à la hauteur des capitales, pour des espaces égaux entre mois, jour et année */
.date-bloc-mois,
.date-bloc-jour,
.date-bloc-annee {
  line-height: .72;
}

.date-bloc-jalon {
  gap: 1rem;
}

.date-bloc-groupe .date-bloc-annee {
  margin-top: 0;
}

.date-bloc-groupe {
  gap: 1rem;
}

/* Année en graisse light */
.date-bloc-groupe .date-bloc-annee {
  font-weight: 300;
}

/* Évènement : tous les filets en pointillés */
.evenement-titre {
  border-bottom-style: dotted !important;
}

/* Évènement : l'édito suit directement le bloc d'infos */
#evenement + #edito {
  padding-top: 3rem !important;
}

/* Évènement : affiche toujours au format A4 portrait */
.evenement-affiche img {
  width: 100%;
  height: auto !important;
  aspect-ratio: 210 / 297;
  object-fit: cover;
}

/* Badge d'année des actions au-dessus du dégradé */
.vign .serie-video-nombre {
  z-index: 2;
}

/* Pages Médias : même espace sous le titre que sous l'intro */
#filters.filters-avec-titre + section {
  padding-top: 0 !important;
}

#filters.filters-avec-titre:has(.lead) {
  padding-bottom: 1.75rem !important;
}


/* Navigation : lien Agenda à gauche de la recherche, comme les entrées du menu */
#navigation .nav-agenda {
  position: relative;
  font-size: .85rem;
  font-weight: 500;
  text-transform: uppercase;
}

#navigation .nav-agenda i {
  font-size: 1rem;
}

#navigation .nav-agenda::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 2px;
  background-color: var(--bs-secondary);
  transform: scaleX(0);
  transition: transform .3s ease;
}

#navigation .nav-agenda:hover::before,
#navigation .nav-agenda.active::before {
  transform: scaleX(1);
}


/* Accueil : boutons du diaporama en contour blanc */
#diaporama-accueil .btn-contour {
  color: #fff !important;
  border-color: #fff;
  background: transparent;
}

#diaporama-accueil .btn-contour:hover {
  color: var(--bs-dark) !important;
  background: #fff;
}

/* Accueil : section Nos actions alignée sur les vignettes, avec de l'air en bas */
#a-la-une {
  padding-bottom: 4rem;
}

#a-la-une .section-vignettes-header {
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 1.5rem;
}


/* ---------- Visionneuse : flèches rondes comme les diaporamas ---------- */

.fancybox-navigation .fancybox-button {
  top: calc(50% - 22px) !important;
  width: 44px !important;
  height: 44px !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  color: var(--bs-dark) !important;
  background: rgba(255, 255, 255, .75) !important;
  border-radius: 50% !important;
  transition: background .2s ease, color .2s ease;
}

.fancybox-navigation .fancybox-button div {
  padding: 0 !important;
  width: 22px;
  height: 22px;
}

.fancybox-navigation .fancybox-button:hover {
  color: #fff !important;
  background: var(--bs-secondary) !important;
}

.fancybox-navigation .fancybox-button--arrow_left {
  left: 30px !important;
}

.fancybox-navigation .fancybox-button--arrow_right {
  right: 30px !important;
}

.fancybox-navigation .fancybox-button i {
  font-size: 1.3rem;
  line-height: 1;
  -webkit-text-stroke: 1px currentColor;
}

/* Visionneuse vidéo : légende centrée sous la vidéo */
.fancybox-slide--video .fancybox-content,
.fancybox-slide--iframe .fancybox-content {
  overflow: visible !important;
}

.fancybox-slide--video .title-credits,
.fancybox-slide--iframe .title-credits {
  top: 100%;
  bottom: auto;
  justify-content: center;
  padding-top: .75rem;
  color: rgba(255, 255, 255, .8);
}

/* ---------- Flèches des diaporamas et de la visionneuse : cercles pleins (arrow-*-circle-fill) ---------- */

.flickity-prev-next-button,
.fancybox-navigation .fancybox-button {
  width: 48px !important;
  height: 48px !important;
  padding: 0 !important;
  color: #fff !important;
  background: none !important;
  border-radius: 50% !important;
  box-shadow: none !important;
  transition: color .2s ease;
}

.flickity-prev-next-button .flickity-button-icon {
  display: none;
}

.flickity-prev-next-button::before {
  font-family: bootstrap-icons;
  font-size: 48px;
  line-height: 48px;
  display: block;
}

.flickity-prev-next-button.previous::before {
  content: "\f129";
}

.flickity-prev-next-button.next::before {
  content: "\f133";
}

.fancybox-navigation .fancybox-button i {
  font-size: 48px !important;
  line-height: 1;
  -webkit-text-stroke: 0 !important;
}

.flickity-prev-next-button:hover,
.fancybox-navigation .fancybox-button:hover {
  color: var(--bs-secondary) !important;
  background: none !important;
}

.fancybox-navigation .fancybox-button {
  top: calc(50% - 24px) !important;
}

/* Visionneuse : légende (et ©) centrée sous l'image, comme pour les vidéos */
.fancybox-slide--image .fancybox-content {
  overflow: visible !important;
}

.fancybox-slide--image .title-credits {
  top: 100%;
  bottom: auto;
  justify-content: center;
  padding-top: .75rem;
}

/* Visionneuse : titre de l'album en haut à gauche, avant le compteur */
.fancybox-infobar {
  display: flex;
  align-items: center;
  gap: 0;
  height: auto;
  padding: 1rem 1.25rem;
  line-height: 1.4;
  font-size: .9rem;
  mix-blend-mode: normal;
  color: rgba(255, 255, 255, .75);
}

.fancybox-album {
  margin-right: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
}

/* Éditeur de contenu juste après l'édito : pas de double marge entre les deux */
#edito:has(+ #content-editor) {
  padding-bottom: 0 !important;
}

#edito + #content-editor {
  padding-top: 1.5rem;
}

/* ---------- Logo : plus grand sur les en-têtes avec image, réduit au défilement ---------- */

#navigation .navbar-brand img {
  width: 120px;
  transition: width .3s ease;
}

#navigation.nav-transparent:not(.scrolled) .navbar-brand img {
  width: 180px;
}

@media (max-width: 1199.98px) {
  #navigation.nav-transparent:not(.scrolled) .navbar-brand img {
    width: 150px;
  }
}

/* En-tête des listes : texte à droite du titre, aligné à droite et limité en largeur */
.titre-texte-info {
  max-width: 40rem;
}



/* Pages Médias : filet vertical entre le titre et l'édito */
.column-gap-5 > .titre-texte-info {
  padding-left: 1.5rem;
  border-left: 1px solid rgba(255, 255, 255, .25);
}

/* Pages Médias : édito centré verticalement sur la hauteur du titre */
.column-gap-5 {
  align-items: stretch !important;
}

.column-gap-5 > h1 {
  display: flex;
  align-items: center;
}

.column-gap-5 > .titre-texte-info {
  display: flex;
  align-items: center;
}

/* Pages Médias : titre et édito centrés sur la page */
.column-gap-5 {
  justify-content: center;
}

/* Pages Médias : même espace au-dessus et au-dessous du bloc titre / édito */
#filters.filters-avec-titre:has(.column-gap-5) {
  padding-bottom: 0 !important;
}

#filters.filters-avec-titre:has(.column-gap-5) > .container-fluid {
  padding-bottom: 2.5rem !important;
}

/* ---------- Page contact ---------- */

#contact {
  padding: 3rem 0;
}

/* Carte dans sa colonne : hauteur fixe, coins discrets */
.contact-carte .leaflet-map {
  height: 400px !important;
  border-radius: 3px !important;
}

@media (min-width: 992px) {
  #contact {
    padding: 5rem 0;
  }

  .contact-carte .leaflet-map {
    height: 500px !important;
  }
}

/* ---------- Boutons en pilule ---------- */

.btn,
.wpcf7 input[type="submit"] {
  border-radius: 999px !important;
}

/* Plus d’air de part et d’autre du texte */
.btn {
  --bs-btn-padding-x: 1.25rem;
}

.btn-sm {
  --bs-btn-padding-x: 1rem;
}

.btn-lg {
  --bs-btn-padding-x: 1.75rem;
}

/* ---------- Adhésion ---------- */

#adhesion {
  padding: 3rem 0;
}

.adhesion-intro p:last-child {
  margin-bottom: 0;
}

.adhesion-carte,
.adhesion-iban,
.adhesion-appel,
#adhesion .badge {
  border-radius: 3px !important;
}

.adhesion-carte-principale {
  border: 2px solid var(--bs-secondary);
}

.adhesion-iban code {
  word-break: break-word;
}

@media (min-width: 992px) {
  #adhesion {
    padding: 5rem 0;
  }
}

/* Appel à l'adhésion : bandeau (accueil) et encart (fin de page) */
.adhesion-bandeau {
  padding: 4rem 0;
}

@media (min-width: 992px) {
  .adhesion-bandeau {
    padding: 6rem 0;
  }
}

/* Bouton Adhérer dans la barre : réseaux sociaux seulement sur très grand écran */
@media (max-width: 1599.98px) {
  #header .nav-social {
    display: none !important;
  }
}

/* ---------- Adhésion : bandeau sur photo voilée ---------- */

.adhesion-bandeau {
  position: relative;
  isolation: isolate;
  background-size: cover;
  background-position: center;
}

.adhesion-bandeau::before {
  content: "";
  position: absolute;
  /* Débord d'1px : évite un liseré d'image non voilée en bas (arrondi des pixels sur mobile) */
  inset: -1px 0;
  z-index: -1;
  background: rgba(var(--bs-dark-rgb), .7);
}

/* Parallaxe du bandeau : fond fixe sur grand écran avec souris (iOS ne le gère pas) */
@media (min-width: 992px) and (hover: hover) {
  .adhesion-bandeau {
    background-attachment: fixed;
  }
}

/* Page Adhésion : titre seul, sans image d'en-tête */
.adhesion-titre {
  padding-top: calc(var(--hauteur-nav, 90px) + 3rem);
}

/* Écran partagé sur fond clair : filet entre présentation et vignettes */
.ecran-split-separe {
  border-bottom: 1px solid var(--bs-border-color);
}

@media (min-width: 1200px) {
  .ecran-split-separe {
    border-bottom: 0;
    border-right: 1px solid var(--bs-border-color);
  }
}

/* Écran en quatre : un quart pour la présentation, trois pour les vignettes */
@media (min-width: 1200px) {
  .ecran-split-quart .ecran-split-texte {
    width: 25%;
    padding: 2rem 2.5rem !important;
  }

  /* La page défile normalement ; l'édito reste en place à côté des vignettes */
  .ecran-split-quart {
    flex-direction: row-reverse;
    align-items: flex-start;
    height: auto;
    min-height: calc(100vh - var(--hauteur-nav, 90px));
  }

  .ecran-split-quart .ecran-split-texte {
    position: sticky;
    top: var(--hauteur-nav, 90px);
    height: calc(100vh - var(--hauteur-nav, 90px));
  }

  .ecran-split-quart .ecran-split-vignettes {
    overflow: visible;
  }

  .ecran-split-quart .ecran-split-vignettes {
    width: 75%;
  }
}

/* Écran partagé sombre : présentation alignée en haut, filet léger côté vignettes */
.ecran-split-quart .ecran-split-texte {
  border-bottom: 1px solid rgba(var(--bs-light-rgb), .25);
}

.ecran-split-vignettes > .container-fluid {
  padding: 0 !important;
}

@media (min-width: 1200px) {
  .ecran-split-quart .ecran-split-texte {
    justify-content: flex-start;
    border-bottom: 0;
    border-left: 1px solid rgba(var(--bs-light-rgb), .25);
  }
}

/* Petite barre sous le nombre d'éléments de l'édito */
.ecran-split-barre {
  width: 3rem;
  height: 1px;
  opacity: .5;
}

/* Vignettes des écrans partagés : apparition en cascade au chargement */
.vignette-cascade {
  opacity: 0;
  animation: vignette-cascade .6s ease forwards;
}

@keyframes vignette-cascade {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .vignette-cascade {
    opacity: 1;
    animation: none;
  }
}

/* Agenda, recherche et réseaux : même trait au survol que le menu */
#navigation .nav-agenda,
#navigation .nav-recherche,
#navigation .nav-social a {
  position: relative;
}

#navigation .nav-agenda::before,
#navigation .nav-recherche::before,
#navigation .nav-social a::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background-color: var(--bs-secondary);
  transform: scaleX(0);
  transition: transform .3s cubic-bezier(.23, 1, .32, 1);
}

#navigation .nav-agenda:hover::before,
#navigation .nav-agenda.active::before,
#navigation .nav-recherche:hover::before,
#navigation .nav-social a:hover::before {
  transform: scaleX(1);
}

#navigation .nav-recherche:hover,
#navigation .nav-social a:hover {
  color: var(--bs-primary) !important;
}

@media (prefers-reduced-motion: reduce) {
  #navigation .nav-agenda::before,
  #navigation .nav-recherche::before,
  #navigation .nav-social a::before {
    transition: none;
  }
}


/* Pied de page : filet entre l'association et le plan du site */
.footer-filet {
  opacity: .3;
}

/* Frise de l'accueil sur fond crème : contour des ronds assorti */
#frise-accueil.bg-light .frise-h-point {
  border-color: var(--bs-light);
}

/* Pied de page : filet vertical entre le plan du site et l'association */
@media (min-width: 992px) {
  /* Le filet vertical va du haut du pied de page jusqu'au filet horizontal */
  .footer-association {
    margin-top: -3rem;
    margin-bottom: -3rem;
    padding: 3rem 0 3rem 3rem;
    border-left: 1px solid rgba(var(--bs-light-rgb), .25);
  }
}

/* Explorer le site : le plan apparaît, puis les repères surgissent un à un */
.plan-chemin > img {
  animation: plan-apparition .8s ease both;
}

.plan-chemin .repere {
  animation: repere-apparition .45s cubic-bezier(.3, 1.6, .5, 1) both;
  animation-delay: calc(.5s + var(--rang, 0) * .06s);
}

.plan-traces {
  animation: plan-apparition 1s ease both;
  animation-delay: .4s;
}

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

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

@media (prefers-reduced-motion: reduce) {
  .plan-chemin > img,
  .plan-chemin .repere,
  .plan-traces {
    animation: none;
  }
}

/* Filet horizontal du pied de page : même crème que le filet vertical */
footer .footer-hr {
  border-top: 1px solid rgba(var(--bs-light-rgb), .25);
  opacity: 1;
}

/* Halte : le visuel apparaît en fondu, la mascotte surgit avec un rebond */
.halte-split-visuel .halte-diaporama {
  animation: plan-apparition .9s ease both;
}

.halte-citation-mascotte {
  animation: repere-apparition .6s cubic-bezier(.3, 1.6, .5, 1) both;
  animation-delay: .5s;
}

@media (prefers-reduced-motion: reduce) {
  .halte-split-visuel .halte-diaporama,
  .halte-citation-mascotte {
    animation: none;
  }
}

/* Titres de toutes les vignettes en majuscules, comme les médias */
.porte-salle-nom,
.card-title,
.chapitres-nav-titre,
.serie-video-titre {
  text-transform: uppercase;
}

.porte-salle-nom {
  font-size: 1rem;
  line-height: 1.25;
}

/* Fiche objet : photo centrée verticalement dans la hauteur de l'écran */
@media (min-width: 1200px) {
  .ecran-split-quart .fiche-objet {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: calc(100vh - var(--hauteur-nav, 90px));
  }
}

/* ---------- Fiche objet : photo sur toute la partie gauche ---------- */

@media (min-width: 992px) {
  .ecran-split-vignettes.fiche-objet {
    padding: 0 !important;
  }

  .fiche-objet .fiche-objet-visuel {
    height: calc(100vh - var(--hauteur-nav));
    border-radius: 0 !important;
  }

  .fiche-objet .fiche-objet-visuel img {
    height: 100%;
    max-height: none;
    object-fit: contain;
  }

  .fiche-objet .fiche-objet-vues {
    padding: 0 1.5rem 1.5rem;
  }
}

/* ---------- Fiche objet : navigation dans la salle ---------- */

.fiche-objet {
  position: relative;
}

.fiche-objet-fleche {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  font-size: 2.5rem;
  line-height: 1;
  color: rgba(255, 255, 255, .85);
  transition: color .3s ease;
}

.fiche-objet-fleche:hover {
  color: #fff;
}

.fiche-objet-fleche-prec {
  left: 1rem;
}

.fiche-objet-fleche-suiv {
  right: 1rem;
}

.objet-ariane a {
  text-decoration: none;
}

.objet-salle .btn {
  border-radius: 999px !important;
}

.objet-salle-vignettes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
  gap: .5rem;
}

.objet-salle-vignettes img {
  display: block;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 3px !important;
  opacity: .5;
  transition: opacity .3s ease;
}

.objet-salle-vignettes a:hover img,
.objet-salle-vignettes a.actif img {
  opacity: 1;
}

.objet-salle-vignettes a.actif img {
  outline: 2px solid var(--bs-light);
  outline-offset: 2px;
}

/* Fiche objet : pas de ligne entre la photo et le cartel */
.ecran-split-quart .ecran-split-texte:has(+ .fiche-objet) {
  border-left: 0;
}

/* Fil d'Ariane sur fond sombre (musée, médias) */

.ecran-split-texte #breadcrumb a,
.ecran-split-texte #breadcrumb i {
  color: var(--bs-light) !important;
  opacity: .75;
}

.ecran-split-texte #breadcrumb a:hover {
  opacity: 1;
}

.ecran-split-texte #breadcrumb .breadcrumb {
  padding-top: 0;
  margin-top: -.3em;
}

/* Fiche objet : une ligne par caractéristique, séparées par un filet */

.cartel .cartel-lignes {
  display: block;
  margin-bottom: 0;
  padding: 0;
  border-top: 1px solid rgba(var(--bs-light-rgb), .25);
  border-bottom: 0;
}

.cartel-ligne {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 1rem;
  padding: .75rem 0;
  border-bottom: 1px solid rgba(var(--bs-light-rgb), .25);
}

.cartel-ligne dt {
  align-self: center;
}

/* Fiche objet : textes en crème */
.cartel .cartel-lignes dt,
.cartel .cartel-lignes dd,
.cartel .cartel-recit,
.objet-salle {
  color: var(--bs-light);
}

.objet-salle {
  padding-top: 1rem;
  border-top: 1px solid rgba(var(--bs-light-rgb), .25);
}

/* Dernière caractéristique : le filet de la galerie suffit */
.cartel-ligne:last-child {
  border-bottom: 0;
}

/* Fond noir des vignettes jusqu'en bas de l'écran */
@media (min-width: 1200px) {
  .ecran-split-quart .ecran-split-vignettes {
    min-height: calc(100vh - var(--hauteur-nav, 90px));
  }
}

/* Écran partagé : pas de filet entre l'édito et les vignettes */
.ecran-split-quart .ecran-split-texte {
  border-left: 0 !important;
  border-bottom: 0 !important;
}

/* Écran partagé : la zone des vignettes dans un sombre plus profond que l'édito */
.ecran-split-vignettes.bg-dark {
  background-color: color-mix(in srgb, var(--bs-dark) 55%, #000) !important;
}

/* Formulaire d'accès aux pages protégées */

.acces-protege {
  border-radius: 3px !important;
}

.acces-protege-form {
  max-width: 24rem;
}

.acces-protege-form .form-control,
.acces-protege-form .form-control:focus {
  border-radius: 3px !important;
  background-color: #fff !important;
  color: #000;
}

/* ---------- RESPONSIVE : pas de défilement horizontal ---------- */

/* Les animations d'entrée (fade-left) partent hors écran : on les coupe sans gêner les éléments sticky */
main,
footer {
  overflow-x: clip;
}

/* La barre de navigation est fixe : la section part du haut de l'écran */
.acces-protege-page {
  min-height: 100vh;
  padding: calc(var(--hauteur-nav, 90px) + 1rem) 0 1rem;
}

/* ---------- MUSÉE : objets visibles en entier ---------- */

.porte-salle.vitrine {
  aspect-ratio: auto;
  background: none;
  overflow: visible;
}

.porte-salle.vitrine img {
  display: block;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  background: #f4ede5;
  border-radius: 3px !important;
  opacity: 1;
}

.porte-salle.vitrine:hover img {
  transform: none;
  opacity: 1;
}

.porte-salle.vitrine::after {
  content: none;
}

.porte-salle.vitrine .porte-salle-texte {
  position: static;
  display: block;
  padding: .75rem 0 0;
}

.objet-salle-vignettes img {
  object-fit: contain;
  background: #fff;
}

/* Visionneuse de la fiche objet : photo zoomée, légende posée en bas de l'écran */
.fancybox-slide > .title-credits {
  position: absolute;
  z-index: 99996;
  top: auto;
  right: 0;
  bottom: 1rem;
  left: 0;
  justify-content: center;
}

/* Photos sur fond clair : légende lisible sur un fond sombre */
.fancybox-slide > .title-credits .copyright-legende {
  margin: 0;
  background: rgba(var(--bs-dark-rgb), .75);
  border-radius: 3px !important;
}

/* Vignettes : invisibles jusqu'à la préparation de leur animation d'entrée */
.aos-attente .row[class*="row-cols"] > .col:not([data-aos]):not(:has([data-aos])) {
  opacity: 0;
}

/* ---------- ADHÉSION : édito à gauche, façons d'adhérer à droite ---------- */

.adhesion-ecran {
  margin-top: var(--hauteur-nav, 90px);
}

.adhesion-edito {
  padding: 2.5rem 1.5rem;
}

.adhesion-intro p {
  margin-bottom: .75rem;
}

.adhesion-edito .partage-section {
  margin-top: 3rem;
  padding: 0;
}

.adhesion-edito .partage-section .container {
  padding: 0;
}

.adhesion-edito .partage-section .row {
  margin: 0;
}

.adhesion-edito .partage-section .col-lg-8 {
  width: 100%;
  padding: 0;
}

#adhesion.adhesion-modes {
  padding: 0;
  border-top: 1px solid rgba(var(--bs-dark-rgb), .15);
}

.adhesion-mode {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.5rem;
  padding: 2rem 1.5rem;
}

.adhesion-mode > .btn {
  grid-column: 2;
  justify-self: start;
}

.adhesion-mode + .adhesion-mode {
  border-top: 1px solid rgba(var(--bs-dark-rgb), .15);
}

@media (min-width: 1200px) {
  .adhesion-ecran {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: calc(100vh - var(--hauteur-nav, 90px));
  }

  .adhesion-edito {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 3.5rem;
  }

  #adhesion.adhesion-modes {
    display: flex;
    flex-direction: column;
    border-top: 0;
    border-left: 1px solid rgba(var(--bs-dark-rgb), .15);
  }

  /* Les trois façons se partagent toute la hauteur */
  .adhesion-mode {
    flex: 1 1 0;
    align-content: center;
    gap: .75rem 1.5rem;
    padding: .75rem 3.5rem;
  }
}

/* ---------- Accueil : prochains rendez-vous, section compacte ---------- */

#prochains-rendez-vous {
  padding: 2rem 0;
}


#prochains-rendez-vous .card-title {
  font-size: .875rem;
}

/* Vignette « Tout l'agenda » : sans image, donc sans le dégradé qui assombrit le bas */
.vign-agenda::after {
  display: none;
}

.vign-agenda {
  border-color: rgba(var(--bs-light-rgb), .25) !important;
  transition: border-color .3s ease, background-color .3s ease;
}

.vign-agenda:hover,
.vign-agenda:focus-visible {
  border-color: rgba(var(--bs-light-rgb), .8) !important;
  background-color: rgba(var(--bs-light-rgb), .08) !important;
}

/* ---------- Retour en haut : le picto monte au survol ---------- */

.retour-haut i {
  display: inline-block;
  transition: transform .3s ease;
}

.retour-haut:hover i,
.retour-haut:focus-visible i {
  transform: translateY(-6px);
}

/* ---------- Comparaison avant / après : même hauteur pour tous, sur fond gris ---------- */

/* Image centrée sur un fond qui va jusqu'au bord de la colonne ; taille calculée en JS */
.avant-apres-fond {
  border-radius: 3px !important;
}

.avant-apres-fond .avant-apres-cadre {
  margin: 0 auto;
}

.avant-apres-fond .avant-apres-img {
  height: 100% !important;
  object-fit: cover;
}

/* ---------- Aperçu du plan : support en attente sur toute la surface ---------- */

.repere-bulle .repere-bulle-attente {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  flex-direction: column;
  gap: .4rem;
  padding-bottom: 2.5rem;
  font-size: .8rem;
  box-shadow: none !important;
}

.repere-bulle-attente .bi {
  font-size: 1.6rem;
  font-style: normal;
}

/* Aperçu plus petit */
.repere-bulle {
  width: 180px !important;
  max-width: 180px !important;
}

.repere-bulle .repere-bulle-visuel + .repere-bulle-titre {
  padding: .6rem .75rem;
  font-size: .8rem;
}

/* ---------- Rendez-vous : même espace sous l'en-tête qu'au-dessus ---------- */

#prochains-rendez-vous .section-vignettes-header {
  margin-bottom: 2rem !important;
}

/* ---------- Titres des listes de vignettes : un seul style ---------- */

.titre-liste {
  margin: 0 0 2rem !important;
  font-size: 1.75rem !important;
}

@media (min-width: 992px) {
  .titre-liste {
    font-size: 2.25rem !important;
  }
}

.section-vignettes-header .titre-liste {
  margin-bottom: 0 !important;
}

.section-vignettes .section-vignettes-header,
#a-la-une .section-vignettes-header {
  padding-bottom: 0;
  margin-bottom: 2rem !important;
}

/* ---------- Sections de vignettes : même espace en haut et en bas ---------- */

#prochains-rendez-vous,
#a-la-une,
.chapitres-nav-section {
  padding: 3rem 0 !important;
}

#prochains-rendez-vous .section-vignettes-header,
#a-la-une .section-vignettes-header {
  padding-top: 0 !important;
}

@media (min-width: 992px) {
  #prochains-rendez-vous,
  #a-la-une,
  .chapitres-nav-section {
    padding: 4rem 0 !important;
  }
}

/* ---------- Boutons : flèche centrée sur le texte ---------- */

.btn .bi-arrow-right-short::before,
.btn .bi-arrow-down-short::before {
  vertical-align: -.25em;
}

/* ---------- Menu : liste et image de la rubrique sur toute la droite (grand écran) ---------- */

.dropdown-apercu {
  display: none;
}

@media (min-width: 1200px) {
  #navigation .dropdown:hover > .dropdown-menu {
    display: flex;
    align-items: stretch;
    padding: 0;
    overflow: hidden;
    border-radius: 3px !important;
  }

  #navigation .dropdown-liens {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 13rem;
    padding: .75rem 0;
  }

  #navigation .dropdown-apercu {
    display: block;
    flex: 0 0 220px;
    min-height: 180px;
    position: relative;
  }

  #navigation .dropdown-apercu img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

/* ---------- En-têtes d'archive : même espace sous le titre qu'au-dessus ---------- */

#filters.filters-avec-titre:not(:has(.column-gap-5)) {
  padding-bottom: 0 !important;
}

#filters.filters-avec-titre:not(:has(.column-gap-5)) > .container-fluid {
  padding-bottom: 2rem !important;
}

/* ---------- Modales : léger arrondi (hors plein écran) ---------- */

.modal-dialog:not(.modal-fullscreen) .modal-content {
  border-radius: 3px !important;
  overflow: hidden;
}

/* ---------- Contact : plan en bandeau pleine largeur, en fin de page ---------- */

.contact-carte {
  height: 450px;
}

.contact-carte > *,
.contact-carte iframe {
  width: 100% !important;
  height: 100% !important;
  border: 0;
}

/* ---------- Menu : ouverture en fondu, liens soulignés au survol ---------- */

@media (min-width: 1200px) {
  #navigation .dropdown > .dropdown-menu {
    display: flex;
    align-items: stretch;
    padding: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
  }

  #navigation .dropdown:hover > .dropdown-menu,
  #navigation .dropdown > .dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .25s ease, transform .25s ease, visibility 0s;
  }

  /* Liens : décalage et filet secondary au survol */
  #navigation .dropdown-liens .dropdown-item {
    position: relative;
    padding-left: 1.5rem;
    padding-right: 2.25rem;
    background: none !important;
    transition: color .2s ease, padding .2s ease;
  }

  #navigation .dropdown-liens .dropdown-item::before {
    content: "";
    position: absolute;
    left: 1rem;
    top: 50%;
    width: 0;
    height: 2px;
    background: var(--bs-secondary);
    transition: width .2s ease;
  }

  #navigation .dropdown-liens .dropdown-item:hover,
  #navigation .dropdown-liens .dropdown-item.active {
    /* La largeur totale ne change pas : la vignette ne bouge pas */
    padding-left: 2.25rem;
    padding-right: 1.5rem;
  }

  #navigation .dropdown-liens .dropdown-item:hover::before,
  #navigation .dropdown-liens .dropdown-item.active::before {
    width: .9rem;
  }
}

/* ---------- Pied de page : survol des réseaux et des mentions ---------- */

.footer-social a {
  display: inline-block;
  transition: transform .25s ease, color .25s ease;
}

.footer-social a:hover {
  color: var(--bs-secondary) !important;
  transform: translateY(-4px);
}

.footer-mentions a:not(.badge) {
  position: relative;
  text-decoration: none;
  transition: color .25s ease;
}

.footer-mentions a:not(.badge)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}

.footer-mentions a:not(.badge):hover {
  color: var(--bs-secondary) !important;
}

.footer-mentions a:not(.badge):hover::after {
  transform: scaleX(1);
}

.footer-mentions .badge {
  transition: background-color .25s ease, color .25s ease;
}

.footer-mentions .badge:hover {
  background-color: var(--bs-secondary) !important;
  color: var(--bs-white) !important;
}

/* ---------- Visionneuse : légende sous l'image, copyright sur l'image en bas à droite ---------- */

.fancybox-slide--image .title-credits .copyright {
  position: absolute !important;
  right: 0;
  bottom: 100%;
  margin: 0;
}

/* ---------- Menu : ombre portée sous les sous-menus ---------- */

#navigation .dropdown-menu {
  box-shadow: 0 .75rem 2rem rgba(0, 0, 0, .18) !important;
}

/* ---------- Vignettes de l'agenda : date proportionnelle à la largeur de la vignette ---------- */

.vign-affiche {
  container-type: inline-size;
}

.vign-affiche .card-date {
  --jour: min(5rem, 34cqi);
}

.vign-affiche .card-date .date-bloc-periode {
  --jour: min(3.6rem, 24cqi);
  gap: min(1rem, 4cqi);
}

.vign-affiche .card-date .date-bloc-jour,
.vign-affiche .card-date .date-bloc-periode .date-bloc-jour {
  font-size: var(--jour);
}

.vign-affiche .card-date .date-bloc-mois,
.vign-affiche .card-date .date-bloc-periode .date-bloc-mois {
  font-size: calc(var(--jour) * .44);
}

.vign-affiche .card-date .date-bloc-jalon,
.vign-affiche .card-date .date-bloc-groupe {
  gap: calc(var(--jour) * .2);
}

.vign-affiche .card-date .date-bloc-separateur {
  width: calc(var(--jour) * .3);
}

.vign-affiche .card-date .date-bloc-periode .date-bloc-separateur {
  margin-bottom: calc(var(--jour) * .72 / 2 - 1.5px);
}

/* ---------- Accueil : vidéo de fond sans bouton de lecture (iOS) ---------- */

#video-fond::-webkit-media-controls,
#video-fond::-webkit-media-controls-start-playback-button,
#video-fond::-webkit-media-controls-overlay-play-button {
  display: none !important;
  -webkit-appearance: none;
}

/* ---------- Pied de page : recouvre le bas du bandeau d'adhésion (liseré clair sur mobile) ---------- */

.adhesion-bandeau + footer {
  position: relative;
  margin-top: -2px;
}

/* ---------- Frise chronologique : verticale sur mobile ---------- */

@media (max-width: 767.98px) {
  .frise-h {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    gap: 1.75rem;
    padding: 0 0 1.5rem;
    overflow: visible;
    scroll-snap-type: none;
  }

  /* Ligne verticale qui se trace de haut en bas, au centre des points */
  .frise-h::before {
    left: 8px;
    right: auto;
    top: 0;
    bottom: 0;
    width: 1px;
    height: auto;
    transform: scaleY(0);
    transform-origin: top;
  }

  .frise-h.is-visible::before {
    transform: scaleY(1);
  }

  /* Flèche vers le bas */
  .frise-h::after {
    right: auto;
    left: 3px;
    top: auto;
    bottom: -4px;
    border-left: 5.5px solid transparent;
    border-right: 5.5px solid transparent;
    border-top: 10px solid var(--bs-primary);
    border-bottom: 0;
  }

  /* Point à gauche, date puis texte à droite */
  .frise-h-etape {
    display: grid;
    grid-template-columns: 19px 1fr;
    column-gap: 1rem;
    text-align: left;
  }

  .frise-h-point {
    grid-column: 1;
    grid-row: 1;
    margin: .1rem 0 0;
  }

  .frise-h-date {
    grid-column: 2;
    grid-row: 1;
    height: auto;
    margin-bottom: .25rem;
    font-size: 1.2rem;
  }

  .frise-h-texte {
    grid-column: 2;
    grid-row: 2;
    font-size: 1.3rem;
    line-height: 1.4;
  }
}

/* ---------- Menu mobile : sous-menus lisibles, alignés à gauche, apparition en cascade ---------- */
#menu-mobile .dropdown-menu {
  padding: 0 0 .75rem;
}

#menu-mobile .dropdown-item {
  padding: .45rem 0;
  font-size: 1.35rem;
  white-space: normal;
  background: none;
}

#menu-mobile .dropdown-liens > .dropdown-item {
  opacity: 0;
  transform: translateX(-1rem);
}

#menu-mobile .dropdown-menu.show .dropdown-liens > .dropdown-item {
  opacity: 1;
  transform: none;
  transition: opacity .35s ease, transform .35s ease;
}

#menu-mobile .dropdown-menu.show .dropdown-liens > .dropdown-item:nth-child(2) { transition-delay: .05s; }
#menu-mobile .dropdown-menu.show .dropdown-liens > .dropdown-item:nth-child(3) { transition-delay: .1s; }
#menu-mobile .dropdown-menu.show .dropdown-liens > .dropdown-item:nth-child(4) { transition-delay: .15s; }
#menu-mobile .dropdown-menu.show .dropdown-liens > .dropdown-item:nth-child(5) { transition-delay: .2s; }
#menu-mobile .dropdown-menu.show .dropdown-liens > .dropdown-item:nth-child(6) { transition-delay: .25s; }
#menu-mobile .dropdown-menu.show .dropdown-liens > .dropdown-item:nth-child(n+7) { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  #menu-mobile .dropdown-liens > .dropdown-item {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Frise : apparition du titre ---------- */
.frise-titre {
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity .8s ease, transform .8s ease;
}

.frise-titre.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .frise-titre {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Menu mobile : ouverture animée ---------- */
@media (max-width: 1199.98px) {
  /* Sous-menu : dépliage en hauteur */
  #menu-mobile .dropdown-menu {
    display: grid;
    grid-template-rows: 0fr;
    padding-bottom: 0;
    transition: grid-template-rows .35s ease, padding .35s ease;
  }

  #menu-mobile .dropdown-menu.show {
    grid-template-rows: 1fr;
    padding-bottom: .75rem;
  }

  #menu-mobile .dropdown-liens {
    min-height: 0;
    overflow: hidden;
  }

  /* Flèche qui pivote */
  #menu-mobile .dropdown-toggle::after {
    transition: transform .3s ease;
  }

  #menu-mobile .dropdown-toggle.show::after {
    transform: rotate(180deg);
  }

  /* Entrées principales : apparition en cascade à l'ouverture du menu */
  #menu-mobile .mobile-main-nav > ul > li,
  #menu-mobile .offcanvas-body > .border-top:last-child {
    opacity: 0;
    transform: translateX(2rem);
    transition: opacity .4s ease, transform .4s ease;
  }

  #menu-mobile.show .mobile-main-nav > ul > li,
  #menu-mobile.showing .mobile-main-nav > ul > li,
  #menu-mobile.show .offcanvas-body > .border-top:last-child,
  #menu-mobile.showing .offcanvas-body > .border-top:last-child {
    opacity: 1;
    transform: none;
  }

  #menu-mobile .mobile-main-nav > ul > li:nth-child(1) { transition-delay: .15s; }
  #menu-mobile .mobile-main-nav > ul > li:nth-child(2) { transition-delay: .2s; }
  #menu-mobile .mobile-main-nav > ul > li:nth-child(3) { transition-delay: .25s; }
  #menu-mobile .mobile-main-nav > ul > li:nth-child(4) { transition-delay: .3s; }
  #menu-mobile .mobile-main-nav > ul > li:nth-child(5) { transition-delay: .35s; }
  #menu-mobile .mobile-main-nav > ul > li:nth-child(n+6) { transition-delay: .4s; }
  #menu-mobile .offcanvas-body > .border-top:last-child { transition-delay: .45s; }
}

@media (prefers-reduced-motion: reduce) {
  #menu-mobile .mobile-main-nav > ul > li,
  #menu-mobile .offcanvas-body > .border-top:last-child {
    opacity: 1;
    transform: none;
  }
}

/* Vidéo d'accueil affichée en image (iOS) : pleine surface, sans arrondi */
#diaporama-accueil .carousel-video .video-image {
  max-width: none;
  border-radius: 0 !important;
}
