/* =================================================================================
 * main.css - Fichier de styles combiné
 * ---------------------------------------------------------------------------------
 * Ce fichier regroupe les styles des modules suivants pour optimiser le chargement :
 * 1. Styles de base et de contenu)
 * 2. Vide (Styles pour les pages de menu, supprimés et reportés dans menu.css)
 * 3. popup-loader.css (Styles pour les popups)
 * 4. carte-interactive.css (Styles pour les cartes interactives)
 * 5. image-magnifier.css (Styles pour la loupe d'image)
 * ================================================================================= */

/* =================================================================================
 * Module 1: Styles de base pour les pages de contenu
 * ================================================================================= */
body {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  line-height: 1.6;
  color: #333;
  background-color: #fdfdfd;
  margin: 0;
  padding-left: 8%;  /* Espace pour la nav fixe à gauche */
  padding-right: 7%; /* Espace pour la colonne de droite (valeur indicative) */
}
.container {
  max-width: 85%;
  margin: 0 auto;
  padding: 0 1rem;
}
.bandeau {
  width: 100%;
  height: auto;
  margin-bottom: 0.5rem;
  border-radius: 5px;
}
h1, h2, h3, h4, h5 {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  margin-top: 0.75em;
  font-weight: bold;
}

p, li {
  font-family: 'Palatino Linotype', serif;
  font-size: 1.2rem;
  color: #605e5e;  
  text-align : justify;
  margin-bottom: 0.5em;
}

h1 {
  text-align: center;
  font-size: 2.5rem;
  color: #313380; /* Bleu marine profond */
  font-weight: bold;
 
}
h2 {
  text-align: center;
  padding-bottom: 0.5rem;
  margin-bottom: 0rem;
  /*color: #5c5d7f;*/
  color: #d5a456;
  font-size: 2.0rem;
}

h3 {
 color: #525188; /* Bleu ardoise */
 font-size: 1.75rem;
 margin-bottom: 0rem;
}

h4 {
  color: #d5a456; 
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 0rem;
}

h5 {
  color: #6c6c7c; /* Bleu-gris clair */
  font-size: 1.25rem;
  font-weight: normal; /* semi-bold is not a standard value */
  margin-bottom: 0rem;
  font-weight: bold;
}

hr {
  border: none;
  border-top: 2px solid #d5a456;
  margin: 2rem 0;
}

a {
  color: #ae6051;
  font-weight: bold;
  text-decoration: none;
}

a:hover {
  color: #7373ac;
  font-weight: bold;
}

figure {
  margin: 0.25rem 0; /* Contrôle l'espacement vertical et supprime les marges latérales par défaut */
}

blockquote {
  background-color: #fdffdb; /* Jaune clair doux */
  color: #883232;            /* Brun riche */
  padding: 1rem 1.5rem;
  border-left: 6px solid #883232; /* Optionnel, pour l’effet citation */
  font-family: "Georgia", serif;
  margin: 1.5rem 0;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
  text-align: justify;
}

blockquote p {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 1.2rem;
  line-height: 1.6;
  color: #883232; /* même brun que le blockquote */
  font-style: normal; /* pour ne pas hériter de l’italic du blockquote */
}

/* NOUVEAU: Style pour les indicateurs de texte omis dans les citations */
blockquote .ellipsis {
  color: #333333;
}

/* --- Nouveau composant : Note --- */
.note {
  background-color: #9f8c8c; /* Couleur de fond rose poudré/brique suggérée */
  color: #5c2c2c; /* Couleur de texte contrastée (brun-rouge foncé) */
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 5px; /* Coins arrondis pour un aspect plus doux */
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
  text-align: justify;
  border-left: none; /* Assure qu'il n'y a pas de bordure à gauche */
}

.note p {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 1.2rem; /* Taille de police cohérente avec le reste du site */
  line-height: 1.6;
  color: white; /* Assure que le texte à l'intérieur a la même couleur */
  font-style: normal;
}

/* Optionnel : pour que les liens à l'intérieur soient plus visibles sur ce fond */
.note a {
  color: #8c4c4c;
  font-weight: bold;
}

.note a:hover {
  color: #3c0c0c;
}

.document {
  background-color: #f6e3e3; /* Couleur de fond rose poudré/brique suggérée */
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 5px; /* Coins arrondis pour un aspect plus doux */
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
  text-align: justify;
  border-left: none; /* Assure qu'il n'y a pas de bordure à gauche */
}

.document p, .document li {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 1.0rem; /* Taille de police cohérente avec le reste du site */
  line-height: 1.2; 
  color: #605e5e;  
  font-style: normal;
  text-align: justify;
}

.ecriture-ancienne{
    font-size:2em;
    font-family:'French Script MT', cursive;
    line-height: 1.2;
    color: #883232; /* même brun que le blockquote */
    font-style: normal; 
}

/* --- Nouveau composant : Table de données chiffrées --- */
.data-table-wrapper {
  max-width: 600px; /* Largeur réduite pour le centrage */
  margin: 2rem auto; /* Centre le conteneur horizontalement */
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #d5a456; /* Bordure extérieure dorée */
}

.data-table th,
.data-table td {
  border: 1px solid #d5a456; /* Bordures internes dorées */
  padding: 0.75rem 1rem; /* Padding interne pour l'aération */
  text-align: left; /* Alignement par défaut */
}

.data-table thead th {
  background-color: #f5f2ed; /* Fond légèrement coloré pour l'en-tête */
  font-family: 'Trebuchet MS', sans-serif;
  color: #5f2f00;
  text-align: center;
}

.data-table td.text-right {
  text-align: right;
  padding-left: 1rem; /* Conserve un padding à gauche */
  padding-right: 2rem; /* Augmente le padding à droite pour l'aération */
}

table.layout-table {
  width: 100%;
  margin: 1.5rem 0;
  border-collapse: collapse;
  border-color: #96D4D4;
}

table.layout-table td {
  padding: 0 1rem;
  vertical-align: middle;
}
table.layout-table td:first-child { padding-left: 0; }
table.layout-table td:last-child { padding-right: 0; }

img {
  width: 95%;
  height: auto;
  border-radius: 5px;
}
.legende, figcaption {
  font-size: 0.9em;
  color: #686aa2;
  text-align: center;
  margin-top: 0.5em;
}

.text-right {
  text-align: right;
}
.text-center {
  text-align: center;
}

/* --- Colonne de navigation fixe --- */
/* Le conteneur global devient un positionneur flexible sans style propre */
.navigation-colonne-fixe {
    position: fixed;
    left: 1rem;
    top: 2rem;
    z-index: 998;
    width: 12%;
    min-width: 160px;
    max-width: 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem; /* Espace entre les deux boîtes */
}

/* NOUVEAU : Style pour chaque boîte "encadrée" */
.nav-box {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 20px;
    padding: 0.75rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-text-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}
.navigation-colonne-fixe a.nav-bouton,
.navigation-colonne-fixe button.nav-bouton {
    font-family: 'Trebuchet MS', sans-serif;
    font-size: 1rem;
    font-weight: bold;
    color: #5f2f00 !important;
    background-color: #d5a456;
    border: 1px solid #5f2f00;
    border-radius: 20px;
    padding: 0.75rem 1rem;
    cursor: pointer;
    text-decoration: none !important;
    text-align: center;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    display: block;
    line-height: 1.2;
}
.navigation-colonne-fixe a.nav-bouton:hover,
.navigation-colonne-fixe button.nav-bouton:hover {
    background-color: #5f2f00;
    color: #d5a456 !important;
    transform: translateY(-2px);
}

/*  Centrage image avec overflow */
.container-overflow {
  position: relative;

  overflow: auto; /* Permet le scroll si l'image déborde */
  max-height: 600px; 
  width: 100%;
}

.container-overflow img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}


/* --- Diaporama (manuel/statique) --- */
.slideshow-container {
    position: relative;
    margin: 1.5rem auto;
    background-color: #f8f8f8;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.slideshow-slide {
    display: none;
    text-align: center;
}

.slideshow-slide img {
    max-height: 75vh; /* Limite la hauteur des images portrait */
    object-fit: contain; /* Conserve les proportions de l'image */
}

.slideshow-slide.active {
    display: block;
    animation: fadeIn 0.4s ease-in-out;
}
/* Le diaporama dynamique n'utilise pas de slide, mais directement l'image */
.slideshow-container > img {
    display: block;
    animation: fadeIn 0.4s ease-in-out;
}


@keyframes fadeIn {
    from { opacity: 0.3; }
    to { opacity: 1; }
}

.slideshow-prev, .slideshow-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -30px; /* ajusté pour un meilleur centrage vertical */
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: background-color: 0.3s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.4);
    border: none;
    z-index: 10;
}

.slideshow-container:hover .slideshow-prev,
.slideshow-container:hover .slideshow-next {
    background-color: rgba(0, 0, 0, 0.7);
}

.slideshow-prev {
    left: 10px;
    border-radius: 3px 0 0 3px;
}

.slideshow-next {
    right: 10px;
    border-radius: 0 3px 3px 0;
}

.slideshow-caption {
    font-style: normal;
    font-size: 0.9em;
    color: #333;
    text-align: center;
    margin-top: 1em;
    padding: 0.5rem;
}
.slideshow-caption .caption-info {
    display: block;
    font-weight: bold;
    margin-bottom: 0.5em;
}
.slideshow-caption .legende {
    display: block;
    font-style: italic;
    color: #666;
}

/* --- STYLES AMÉLIORÉS : Diaporama Automatique --- */

/* Le conteneur principal : la cellule du tableau (td).
   - Il définit la "boîte" avec un ratio fixe (aspect-ratio).
   - Il utilise Flexbox pour aligner son contenu en bas.
*/
.diaporama-container {
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    padding: 0px;
    border-radius: 5px;
    margin: 0;
    width: 100%;
    aspect-ratio: var(--diaporama-aspect-ratio, 4 / 3);

    /* Flexbox pour empiler l'image/figure et la légende */
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Aligne le contenu en bas */
    overflow: hidden; /* Sécurité supplémentaire pour cacher tout débordement */
}

/* S'il y a une balise <figure> à l'intérieur.
   - On la fait s'étirer pour prendre la place disponible.
   - On la force à respecter les limites de son parent (la clé du correctif).
*/
.diaporama-container figure {
    margin: 0;
    padding: 0;
    width: 100%; /* S'assure que la figure prend toute la largeur disponible */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end; /* Aligne l'image en bas de la figure */

    /* ----- CORRECTIF CLÉ ----- */
    /* Permet à la figure de grandir et de remplir l'espace... */
    flex-grow: 1;
    /* ...MAIS l'empêche de déborder si son contenu est trop grand. */
    min-height: 0;
    cursor: pointer;
}


/* L'image elle-même, qu'elle soit dans une <figure> ou non.
   - On s'assure qu'elle ne dépasse JAMAIS de son conteneur,
     ni en largeur, ni en hauteur.
*/
.diaporama-container img {
    animation: fadeIn 0.4s ease-in-out;
    display: block;

    /* ----- CORRECTIF CLÉ ----- */
    /* L'image s'adapte sans être déformée. */
    object-fit: contain;
    /* Ne jamais dépasser 100% de la largeur/hauteur du parent. */
    max-width: 100%;
    max-height: 100%;
    /* Empêche l'image de déborder dans certains cas de figure Flexbox. */
    min-height: 0;
}

/* La légende reste sous l'image */
.diaporama-legende {
  font-style: normal;
  font-size: 1em;
  color: #333;
  text-align: center;
  margin-top: 0.5em;
  font-weight: bold;
}



.audio-player-container {
    max-width: 500px;
    margin: 2rem auto;
    padding: 1rem;
    background-color: #f5f2ed;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}


/* --- Styles pour le swap d'image par superposition --- */
.image-swap-container {
  display: grid;
  position: relative;
  cursor: pointer;
  /* Assure que la légende ne soit pas affectée par la grille */
  grid-template-columns: 1fr;
  grid-template-rows: auto auto;
}

/* La légende est placée dans la deuxième ligne de la grille */
.image-swap-container figcaption {
    grid-row: 2;
    grid-column: 1;
}

/* Les deux images sont placées dans la même cellule de la grille (la première) */
.image-swap-container > img {
  grid-area: 1 / 1 / 2 / 2;
  width: 100%;
  height: auto;
  transition: opacity 0.4s ease-in-out;
}

/* Par défaut, l'image du dessous est invisible */
.image-swap-container .img-bottom {
  opacity: 0;
}

/* Quand le conteneur a la classe .is-swapped... */
.image-swap-container.is-swapped .img-top {
  opacity: 0; /* ...l'image du dessus devient invisible */
}

.image-swap-container.is-swapped .img-bottom {
  opacity: 1; /* ...et celle du dessous devient visible */
}

.poem-container {
    background-color: #fdffdb;
    padding: 1.5em;
    margin: 1.5em auto;
    width: 90%; /* Prend 90% de la largeur de son parent */
    max-width: 550px; /* Mais ne dépasse jamais 550px sur les grands écrans */
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    font-family: 'Courier New', Courier, monospace;
    line-height: 1.8;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}
.poem-container p {
    margin-bottom: 1.5em;
    font-weight: bold;
}

.poem-titre {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 1.25rem;
  color: #d5a456; 
  text-align : center;
  margin-bottom: 1em;
}
.layout-flex {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin: 1.5rem 0;
}
.layout-flex .flex-content {
    flex: 1;
}
.layout-flex .flex-media {
    flex-shrink: 0;
}

/* Styles pour les boutons d'images dans la colonne de navigation */
.menu-bouton {
  background-color: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: transform 0.3s ease;
  width: 100%; /* Prendra la largeur de la colonne de navigation */
  margin-top: 0.5rem; /* Ajoute un petit espace au-dessus */
}

.menu-bouton img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease, filter 0.3s ease;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.menu-bouton:hover img {
  transform: scale(1.08);
  filter: brightness(0.9) contrast(1.1);
}

/* NOUVEAU : Colonne fixe pour les informations (à droite) */
.informations-colonne-fixe {
    position: fixed;
    right: 1rem; /* <<< LA DIFFÉRENCE CLÉ : positionnée à droite */
    top: 2rem;
    z-index: 998;
    width: 12%; /* Même largeur que la colonne de gauche pour la symétrie */
    min-width: 120px;
    max-width: 160px;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 25px;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.bouton-suite {
  display: flex; /* Active Flexbox */
  align-items: center; /* Centre les éléments verticalement */
  justify-content: space-between; /* Pousse le texte à gauche et l'image à droite */
  text-decoration: none; /* Assure qu'il n'y a pas de soulignement */
  position: relative;
  background-color: rgba(213, 164, 86, 0.85);
  border: 2px solid transparent;
  border-radius: 50px;
  padding: 1rem 1.5rem;
  cursor: pointer;
  text-align: center;
  font-weight: bold;
  color: #5f2f00;
  transition: all 0.3s ease;
  line-height: 1.3;
  width: 40%;
  box-sizing: border-box;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  float: right;
}

.bouton-suite:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
  border-color: #5f2f00;
}

/* Style pour le texte à l'intérieur du bouton */
.bouton-suite span {
  flex-grow: 1; /* Permet au texte de prendre l'espace disponible */
  text-align: center; /* Aligne le texte à gauche */
}

/* Style pour l'image de la flèche */
.bouton-suite img {
  width: 28px;  /* Taille fixe pour la flèche */
  height: auto;
  margin-right: 1rem; /* */
}



/* =================================================================================
 * Module 3: popup-loader.css
 * ================================================================================= */
/* --- Generic Popup Loader --- */
#popup-loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    display: none; /* Caché par défaut */
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

#popup-loader-overlay.is-visible {
    display: flex;
    opacity: 1;
}

.popup-loader-content {
    width: 95vw;
    height: 95vh;
    background-color: #000;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    overflow: hidden;
    display: flex;
    /* --- AJOUTS / MODIFICATIONS --- */
    border: 8px solid #c9b79c;  /* Le cadre beige demandé */
    box-sizing: border-box;    /* S'assure que le cadre est à l'intérieur des dimensions */
    position: relative;        /* Force la création d'un contexte d'empilement... */
    z-index: 1001;             /* ...et le place juste en dessous du bouton (qui est à 1002) */
}

/* Le conteneur pour le lecteur Dailymotion ou l'iframe */
.popup-loader-content > div,
.popup-loader-content iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.popup-loader-content > img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 5px;
  margin: auto; /* Centre l'image dans le conteneur flex */
}

/* -- CORRECTIF BOUTON DE FERMETURE -- */
.popup-loader-close {
    position: fixed;
    top: 1rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
    background: white;
    border: 2px solid #333;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1002;
    padding: 0;
    /* NOUVEAU: Utiliser flexbox pour centrer l'icône SVG */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.popup-loader-close svg {
    width: 28px;
    height: 28px;
    fill: #333;
    transition: fill 0.3s ease;
}

.popup-loader-close:hover { 
    transform: scale(1.1) rotate(90deg);
    background-color: #d5a456;
    border-color: #5f2f00;
}

.popup-loader-close:hover svg {
    fill: #5f2f00;
}
/* --- Fin du correctif --- */


/* --- Playlist Popup --- */
.playlist-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 400px;
    background-color: #fdfbf5;
    border: 2px solid #5f2f00;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    z-index: 999; /* Below video popup, above everything else */
    display: none; /* Hidden by default */
    flex-direction: column;
}

.playlist-popup.is-visible {
    display: flex;
}

.playlist-popup-header {
    padding: 0.75rem 1rem;
    background-color: #d5a456;
    border-bottom: 2px solid #5f2f00;
    cursor: move;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.playlist-popup-title {
    font-family: 'Trebuchet MS', sans-serif;
    font-weight: bold;
    color: #5f2f00;
    font-size: 1.1rem;
    margin: 0;
    padding-right: 1rem;
}

.playlist-popup-close {
    width: 28px;
    height: 28px;
    font-size: 1.5rem;
    line-height: 26px; /* Adjusted for centering */
    text-align: center;
    border-radius: 50%;
    border: 1px solid #5f2f00;
    background-color: #fdfbf5;
    color: #5f2f00;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    padding: 0;
}

.playlist-popup-close:hover {
    background-color: #5f2f00;
    color: #d5a456;
    transform: rotate(90deg);
}

.playlist-popup-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.playlist-popup-part-button {
    font-family: 'Trebuchet MS', sans-serif;
    font-size: 1rem;
    font-weight: bold;
    color: #5f2f00;
    background-color: #f0e0c6;
    border: 1px solid #d5a456;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.playlist-popup-part-button:hover {
    background-color: #d5a456;
    border-color: #5f2f00;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* =================================================================================
 * Module 4: carte-interactive.css
 * ================================================================================= */
.carte-wrapper {
  position: relative;
  width: 100%;
  max-width: 670px;
  margin: 1.5rem auto;
}

.carte-wrapper img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

#carte-clic {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.point-wrapper {
  position: absolute;
  pointer-events: none;
}

.point {
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: crimson;
  border: 2px solid white;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  cursor: pointer;
  pointer-events: all;
  transition: transform 0.2s ease, background-color 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.point:hover {
    transform: translate(-50%, -50%) scale(1.3);
    background-color: darkred;
}

.label {
  position: absolute;
  background: rgba(255,255,255,0.9);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: bold;
  color: black;
  transform: translate(-50%, -180%);
  white-space: nowrap;
  pointer-events: none;
  z-index: 3;
  box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.etiquette-texte {
  position: absolute;
  background: rgba(255,255,255,0.9);
  padding: 3px 8px;
  transform: translate(-10%, -50%);
  color: orange;
  font-weight: bold;
  font-size: 1.2rem;
  text-align: center;
  pointer-events: none;
  z-index: 1;
}


/* =================================================================================
 * Module 5: image-magnifier.css
 * ================================================================================= */
.magnifier-container {
    position: relative;
    cursor: none;
}

.magnifier-lens {
    position: absolute;
    border: 3px solid #d5a456;
    border-radius: 50%;
    cursor: none;
    width: 200px;
    height: 200px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    background-repeat: no-repeat;
    display: none;
    z-index: 10;
}

/* Style for the video button in the navigation column */
.nav-video-button {
    margin-top: 1rem;
    padding: 0;
    border: 2px solid #5f2f00;
    background-color: #d5a456;
    color: #5f2f00;
    cursor: pointer;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    font-size: 1.8rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.nav-video-button:hover {
    background-color: #5f2f00;
    color: #d5a456;
    transform: scale(1.05);
}

.container img:not(table.layout-table img) {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.legende, figcaption {
  text-align: center;
  margin-top: 0.5em;
}

table.layout-table td img {
  width: 100%;
  max-width: none;
  height: auto;
  display: block;
  margin: 0 auto;
}

table.layout-table img {
  transition: transform 0.4s ease, box-shadow 0.3s ease;
  cursor: pointer;
  max-width: 300px;
  height: auto;
  border-radius: 5px;
  display: block;
  margin: 0 auto;
  position: relative;
}


/* === Agrandissement des images sur PC === */
@media (hover: hover) and (pointer: fine) {
 table.layout-table td img:hover {
    transform: scale(2.0);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    z-index: 9999; 
    position: relative;
  }
}
  

/* === Styles pour les pages de contenu sur smartphones === */
@media only screen and (hover: none) and (pointer: coarse){
  body {
    padding-left: 8%;
    padding-right: 7%; 
    padding-bottom: 100px !important; /* si navigation en bas */
    box-sizing: border-box !important;
  }

.navigation-colonne-fixe {
  width: 8% !important;
  box-sizing: border-box !important;
  overflow-y: auto !important;
    left: 0 !important;
    top: 0 !important;
    height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    padding: 1rem !important;
    background-color: rgba(255, 255, 255, 0.95) !important;
    z-index: 1000 !important;
  }

.navigation-colonne-fixe img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    gap: 0.5rem !important;
    align-items: stretch !important;
  }

.informations-colonne-fixe {
  width: 8% !important;
  min-width: 125px !important;
  max-width: 125px !important;
  box-sizing: border-box !important;
  overflow-y: auto !important;
    right: 0 !important; 
    top: 2rem;
    z-index: 998;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 25px;
    padding: 0.5rem; 
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.informations-colonne-fixe img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    gap: 0.5rem !important;
    align-items: stretch !important;
  }

.navigation-colonne-fixe,
.informations-colonne-fixe {
  overflow-y: auto !important;
  max-height: 100vh !important;
}

.container {
  max-width: 70% !important;
  margin: 0 auto;
  padding: 0 0rem;
}
  
 body, p, li, blockquote p, .note p, .document p {
  font-size: 1rem !important;
  line-height: 1.2 !important;
}

table.layout-table td img.agrandie {
  transform: scale(2.0);
  z-index: 9999;
  position: relative;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  transition: transform 0.4s ease;
}

  table.layout-table td img {
    transition: transform 0.4s ease;
  }
  
h1 { font-size: 1.6rem !important; margin: 0.5rem 0 !important; }
h2 { font-size: 1.4rem !important; margin: 0.5rem 0 !important; }
h3 { font-size: 1.3rem !important; margin: 0.5rem 0 !important; }
h4 { font-size: 1.2rem !important; }
h5 { font-size: 1rem !important; }
 
hr {
  border: none !important;
  border-top: 1px solid #d5a456 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  margin: 0.5rem 0 !important;
  padding: 0 !important;
  height: 0 !important;
  background-color: red;
}

.container hr {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

table.layout-table {
  display: block;
  overflow-x: auto;
}

table.layout-table td {
  padding: 0.5rem !important;
}
  
}

/* === MODIFICATIONS POUR LE PLEIN ÉCRAN SUR SMARTPHONE === */
#popup-loader-overlay.smartphone-mode .popup-loader-content {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
    border: none;
    box-shadow: none;
}
#popup-loader-overlay.smartphone-mode .popup-loader-close {
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
}
#popup-loader-overlay.smartphone-mode .popup-loader-close svg {
    width: 24px;
    height: 24px;
}