*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
}

body {
  font-family: "Georgia", serif;
  font-size: clamp(14px, 2vw, 17px);
  color: #666;
  padding: 0 20px;
  background-color: #fcfcfc;
}

/* --- BANNIÈRE 100% LARGEUR --- */
.banner {
  width: 100%;
  margin: 0;
  height: 345px;
  overflow: hidden;
  position: relative;
  /* PAS de z-index ici */
}

/* --- SLIDER D'IMAGES --- */
.slides {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  margin: 0;
  padding: 0;
  border: none;
  opacity: 0;
  animation: defilement 8s infinite;
}

/* Slide 1 visible au début */
.slide:nth-child(1) {
  animation-delay: 0s;
  opacity: 1;
  /* ← C’EST ÇA QUI MANQUAIT */
}

/* Slide 2 */
.slide:nth-child(2) {
  animation-delay: 4s;
}

@keyframes defilement {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

  5% {
    opacity: 1;
    transform: translateY(0);
  }

  45% {
    opacity: 1;
    transform: translateY(0);
  }

  50% {
    opacity: 0;
    transform: translateY(-20px);
  }

  100% {
    opacity: 0;
  }
}

/* --- LOGO + TITRE --- */
.bantitsite,
.banner-title {
  position: absolute;
  z-index: 10;
  /* Devant */
}

.bantitsite {
  top: 10px;
  left: 10px;
  display: flex;
  align-items: center;
  ;
  gap: 10px;
}

.bantitsite img {
  width: clamp(30px, 5vw, 50px);
  height: auto;
}

.bantitsite a {
  text-decoration: none;
  font-size: clamp(1rem, 3vw, 1.6rem);
  font-weight: 900;
  color: rgb(9, 9, 103);
}

.banner-title {
  margin: 100px auto 10px;
  text-align: center;
  width: 100%;
  text-decoration: none;
}

.banner-title h1 {
  font-size: clamp(1.4rem, 3vw, 1.875rem);
  font-style: italic;
  font-weight: 900;
  color: #fff;
  margin: 0;
  text-align: center;

  /* Effet chic : lisible + relief */
  text-shadow:
    0 0 4px rgba(0, 0, 0, 0.6),
    2px 2px 4px rgba(0, 0, 0, 0.5),
    -1px -1px 2px rgba(0, 0, 0, 0.4);
}

.banner-title h1 img {
  display: inline-block;
  height: 0.8em;
  /* taille calée sur le texte */
  width: auto;
  /* proportions respectées */
  max-width: 1.2em;
  /* empêche l’image d’être trop large sur mobile */
  vertical-align: -0.15em;
  margin-right: 0.25em;
  opacity: 0.9;
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.6));
}


.flag {
  display: inline-block;
  max-width: none;
}

/* ============================
   BANDEAU PRINCIPAL
   ============================ */

.cont {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  max-width: 100%;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  color: blue;
  font-size: 14px;
  font-weight: 700;
  font-style: italic;
}


/* ============================
   BOUTONS CLASSIQUES (sans input)
   ============================ */

.link_btn,
.news_btn {
  position: relative;
  display: flex;
  align-items: center;
  height: 27px;
  padding-left: 30px;
  /* espace icône */
  padding-right: 8px;
  border: 1px solid #00f;
  border-radius: 10px;
  background: white;
  color: blue;
  font-weight: 700;
  font-style: italic;
  cursor: pointer;
  box-sizing: border-box;
}

.link_btn a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}


/* ============================
   ICÔNE UNIFORME POUR LES BOUTONS
   ============================ */

.link_btn::before,
.news_btn::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  background-size: 17px;
  background-repeat: no-repeat;
  background-position: center;
  filter: invert(27%) sepia(96%) saturate(7496%) hue-rotate(225deg) brightness(92%) contrast(110%);
}


/* ============================
   ICÔNES PAR TYPE (BOUTONS)
   ============================ */

.facebook_btn::before {
  background-image: url('/icons/facebook.svg');
}

.carte_btn::before {
  background-image: url('/icons/map.svg');
}

.webcams_btn::before {
  background-image: url('/icons/webcam.svg');
}

.plan_btn::before {
  background-image: url('/icons/sitemap.svg');
}

.globe_btn::before {
  background-image: url('/icons/globe.svg');
}

.contact_btn::before {
  background-image: url('/icons/contact.svg');
}

.news_btn::before {
  background-image: url('/icons/news.svg');
}


/* ============================
   BLOCS AVEC INPUT (MÉTÉO / RECHERCHE / LANGUE)
   ============================ */

.meteo-bloc,
.search-bloc,
.lang-bloc {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 27px;
}


/* ICONES DES BLOCS INPUT */

.icon {
  width: 17px;
  height: 17px;
  background-size: 17px;
  background-repeat: no-repeat;
  background-position: center;
  filter: invert(27%) sepia(96%) saturate(7496%) hue-rotate(225deg) brightness(92%) contrast(110%);
}

.meteo-icon {
  background-image: url('/icons/weather.svg');
}

.search-icon {
  background-image: url('/icons/search.svg');
}

.lang-icon {
  background-image: url('/icons/globe.svg');
}


/* INPUTS + SELECT */

.meteo-input,
.search-input,
.lang-bloc select {
  height: 27px;
  padding: 5px 8px;
  border: 1px solid blue;
  border-radius: 10px;
  font-weight: 700;
  font-style: italic;
  color: blue;
  box-sizing: border-box;
}

.meteo-input::placeholder,
.search-input::placeholder {
  color: blue;
}


/* ============================
   BOUTONS CHERCHER (MÉTÉO + RECHERCHE)
   ============================ */

.meteo-bouton,
#searchBtn {
  height: 27px;
  width: 27px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
}

.meteo-bouton img,
#searchBtn img {
  width: 17px;
  height: 17px;
  object-fit: contain;
}

#popupNewsContainer {
  position: fixed;
  inset: 0;
  z-index: 99999;
}
.popupNewsOverlay {
  position: fixed;
  inset: 0;
  background: rgba(67, 65, 65, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
}

.popupNewsBox {
  background: #fff;
  max-width: 800px;
  max-height: 90vh;
  width: 90%;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  /* le scroll est dans .popupNewsContent */
}

/* HEADER FIXE */
.popupNewsHeader {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 10;
  padding: 6px 20px;
  border-bottom: 1px solid #ccc;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.popupNewsHeader h2 {
  margin: 0;
  font-size: 18px;
}

.popupNewsHeader .closePopup {
  color: red;
  font-size: 25px;
  font-weight: 700;
  border: none;
  background: none;
  cursor: pointer;
}

/* CONTENU SCROLLABLE */
.popupNewsContent {
  flex: 1;
  overflow-y: auto;
  padding: 10px 20px;
}

.popupNewsContent{
  margin-bottom: 15px;
  font-size: 15px;
}

 .popup-news-item {
  margin-bottom: 8px;
  padding-bottom: 0;
 }
.popup-news-item h3 {
  margin: 0 0 4px 0;
  font-size: 15px;
}

/* FOOTER FIXE */
.popupNewsFooter {
  position: sticky;
  bottom: 0;
  background: #fff;
  z-index: 10;
  padding: 10px 20px;
  border-top: 1px solid #ccc;
  display: flex;
  justify-content: space-between;
}

.popupNewsFooter button {
  font-size: 20px;
  cursor: pointer;
  background: blue;
  color: white;
  border: none;
  border-radius: 5px;
}
.popupNewsFooter button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  width: 100%;
  margin: 0 0 10px 0;
  padding: 0;
  font-size: 15px;
}

.menu li {
  list-style: none;
  border: 1px solid rgb(42, 42, 171);
  border-radius: 5px;
  margin: 2px 0 10px 0;
  padding: 2px 2px;
  background: white;
  position: relative;
  z-index: 1000;
  display: flex;
  align-items: center;
}

.menu li a {
  font-weight: 700;
  color: rgb(33, 33, 179);
  text-decoration: none;
  display: flex;
  align-items: center;
}
.menu li::before {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
}
.sous-menu li::before {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
}
.sous-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  flex-direction: column;
  padding: 0;
  margin: 0;
  z-index: 2000;
}

.menu li:hover>.sous-menu {
  display: flex;
}

.menu li:last-child:hover>.sous-menu,
.menu li:nth-last-child(2):hover>.sous-menu {
  left: auto;
  right: 0;
}

.sous-menu li {
  list-style: none;
  background: white;
  border: 1px solid rgb(42, 42, 171);
  border-radius: 10px;
  margin: 2px 0;
  min-width: 140px;
  padding: 4px 8px;
  text-align: center;
}

.sous-menu li a {
  color: rgb(14, 14, 159);
  font-weight: 600;
  text-decoration: none;
}

.breadcrumb {
  font-size: 14px;
  margin: 10px 0;
}

.breadcrumb a {
  color: #0066cc;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span {
  font-weight: bold;
}

.bandeau-header {
  padding: 0.8rem 1rem;
  background: #f5f2ee;
  border: 1px solid #d8d3cc;
  margin-bottom: 1rem;
}

.meteo-wrapper {
  display: inline-block;
}

.recherche-nom {
  position: relative;
  width: 220px;
}

#recherche-nom-input {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid #aaa;
  border-radius: 4px;
}

#recherche-nom-resultats {
  position: absolute;
  top: 32px;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #ccc;
  border-radius: 4px;
  display: none;
  z-index: 9999;
}

#recherche-nom-resultats div {
  padding: 6px 8px;
  cursor: pointer;
}

#recherche-nom-resultats div:hover {
  background: #eef;
}

.bandeau-info {
  width: 100%;
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  align-items: stretch;
}

/* Réduction des blocs coords et lien-carte */
.coords {
  flex: 1;
  max-width: 180px;
  display: flex;
  flex-direction: column;
  font-size: 12px;
  text-align: left;
  border: 1px solid #ccc;
  padding: 10px;
  /* Augmenté pour plus d'espace intérieur */
  border-radius: 6px;
  background-color: #b9d3fb;
  height: 180px;
  justify-content: center;
  /* Centre verticalement le contenu */
  align-items: center;
  /* Centre horizontalement (optionnel) */
}

.coords p.centerB {
  margin: 0 0 15px 0;
  /* Ajoute un espace de 15px en bas du lien */
  text-align: center;
  /* Centre le lien horizontalement */
  width: 100%;
  /* Prend toute la largeur disponible */
}

.coords-title {
  font-weight: bold;
  color: blue;
  text-align: center;
  font-size: 14px;
  margin-bottom: 10px;
  /* Espace en bas du titre */
}

.coords span {
  color: blue;
  font-weight: bold;
  font-size: 12px;
}

/* Style pour les lignes de coordonnées */
.coords>div:not(.coords-title) {
  margin-bottom: 5px;
  /* Espace entre chaque ligne */
}


.meteo-container {
  flex: 3;
  overflow: hidden;
  height: 180px;
}
.qrcode {
  flex: 1;
  max-width: 180px;
  background: #b9d3fb;
  display: flex;
  flex-direction: column;
  font-size: 13px;
  text-align: center;
  border: 1px solid #ccc;
  padding: 5px;
  border-radius: 6px;
  background-color: #b9d3fb;
  height: 180px;
}
.qrcode p {
  color: blue;
}
/* ============================
   CONTENEUR DU CARROUSSEL
   ============================ */
.meteo {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #b9d3fb;
  border: 1px solid #ccc;
  padding: 6px;
  border-radius: 6px;
  overflow: hidden;
  height: 180px;
}

/* Fenêtre visible du carrousel */
.meteo-window {
  flex: 1;
  overflow: hidden;
  position: relative;
}

/* ============================
   BOUTONS GAUCHE / DROITE
   ============================ */
.meteo-btn {
  border: none;
  background: #e6e6e6;
  border-radius: 4px;
  padding: 6px 8px;
  cursor: pointer;
  font-size: 16px;
  align-self: center;
  /* force le centrage vertical */
}

.meteo-btn:hover {
  background: #d4d4d4;
}


/* ============================
   PISTE QUI DÉFILE
   ============================ */
.meteo-track {
  display: flex;
  gap: 10px;
  transition: transform 0.3s ease;
}

/* ============================
   CARTE D’UN JOUR
   ============================ */
 
/* ============================
   BLOC JOUR MÉTÉO
   ============================ */
/* Le bloc jour ne doit PAS centrer tout */
.meteo-jour {
  flex: 0 0 220px;
  width: 220px;
  background: #fff;
  border-radius: 6px;
  padding: 6px;
  border: 1px solid #ccc;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  /* IMPORTANT */
  gap: 6px;
}

/* HEADER : 2 colonnes */
.meteo-jour-entete {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Colonne gauche : date + desc */
.meteo-jour-texte {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  /* prend toute la place à gauche */
}

.meteo-jour-titre {
  color: blue;
  font-weight: bold;
  margin-right: 4px;
}

.meteo-jour-date {
  font-size: 12px;
  color: #333;
}

.meteo-desc {
  font-size: 12px;
  font-weight: bold;
}

.meteo-ligne span{
  color: blue;
  font-weight: bold;
  font-size: 12px;
}


/* ============================
   POPUP METEO
   ============================ */

.popup-meteo {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #b9d3fb;
  padding: 10px;
  border: 1px solid blue;
  border-radius: 10px;
  width: 500px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  /* IMPORTANT */
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  z-index: 9999;
}

/* HEADER FIXE */
.popup-header {
  flex: 0 0 auto;
  margin-bottom: 10px;
}

.popup-close {
  float: right;
  cursor: pointer;
  color: red;
  font-size: 20px;
}

/* CONTENU SCROLLABLE */
.popup-content {
  flex: 1 1 auto;
  overflow-y: auto;
  /* SCROLL ICI */
  padding-right: 5px;
  /* pour éviter que le scroll-bar mange le texte */
  max-height: 60vh;
  /* limite interne */
}

/* Le reste de ton style */
.popup-meteo .meteo-date {
  white-space: nowrap;
  background-color: white;
}

.meteo-date {
  color: blue;
}

.popup-titre {
  text-align: center;
  color: #c00000;
  margin-bottom: 8px;
}

.popup-lieu {
  text-align: center;
  color: #0044cc;
  font-weight: bold;
  margin-bottom: 4px;
}

.popup-coords-ligne {
  text-align: center;
  font-size: 14px;
  margin-bottom: 8px;
}

/* Chaque ligne = table-row */
.meteo-ligne {
  display: table-row;
}

/* Colonnes */
.meteo-aside,
.meteo-info {background-color: white;
  display: table-cell;
  vertical-align: top;
  padding: 12px 5px;
  border-bottom: 1px solid #ccc;
}

/* Colonne gauche */
.meteo-aside {
  text-align: center;
  padding-right: 5px;
  white-space: nowrap;
}

/* Colonne droite */
.meteo-info {
  width: 100%;
  font-size: 13px;
  line-height: 1.3;
}

/* Icône */
.meteo-icon {
  width: 40px;
  height: 40px;
}
/* ============================================================
   ZONE NEWS — STYLE MODERNE & ÉPURÉ
   ============================================================ */

.zoneNews3 {
  padding: 3px;
  background: #ffffff;
  border-radius: 6px;
  border: 1px solid #e8e8e8;
  position: relative;
}

.zoneNews3 h2 {
  margin: 0 0 2px 24px;
  color: red;
  font-size: 1.05em;
  font-weight: 600;
}

/* --- CONTENEUR DU CARROUSEL --- */
.news-carousel-wrapper {
  position: relative;
  overflow: hidden;
  padding: 0 20px;
}

/* --- LISTE DES NEWS --- */
.zoneNews3 .news-list {
  display: flex;
  flex-direction: row;
  gap: 10px;
  overflow-x: auto;
  padding: 6px 0 10px 0;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.zoneNews3 .news-list::-webkit-scrollbar {
  display: none;
}

/* --- CARTE NEWS --- */
.news-item {
  flex: 0 0 240px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 5px;
  padding: 5px 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  scroll-snap-align: start;
  text-align: left;
  transition: transform 0.15s, box-shadow 0.15s;
}

.news-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

.news-item h3::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  background: #007bff;
  /* bleu vif, moderne */
  border-radius: 50%;
  margin-right: 6px;
  position: relative;
  top: -1px;
}

.news-item h3 {
  margin: 0 0 4px 0;
  font-size: 0.78em;
  color: #2f3b47ad;
  font-weight: 600;
  font-style: italic;
}

.news-meta {
  font-size: 0.72em;
  color: #7a8693;
  margin: 2px 0;
}

.news-item a {
  display: inline-block;
  color: #1a73e8;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.75em;
}

.news-item a:hover {
  text-decoration: underline;
}

/* ============================================================
   FLÈCHES DE NAVIGATION — STYLE FIN & MODERNE
   ============================================================ */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 32px;
  font-weight: 700;
  color: #007bff;
  padding: 0;
  line-height: 1;
  transition: transform 0.15s, color 0.15s;
  z-index: 10;
}

.carousel-btn:hover {
  color: #0056cc;
  transform: translateY(-50%) scale(1.15);
}

.carousel-btn-left {
  left: 0;
}

.carousel-btn-right {
  right: 0;
}

.presT {overflow-x: hidden; gap: 15px;
  display: flex;
  align-items: center;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 10px;
  min-height: 200px;
  flex-wrap: wrap;
  background: #f5f2ee;
}

/* Image */
.presT figure {
  flex-shrink: 1;
  /* au lieu de 0 */
  max-width: 100%;
}

.presT figure img {
  width: 100%;
  max-width: 300px;
  /* limite raisonnable mais flexible */
  height: auto;
  display: block;
}

.presT figcaption {
  font-style: italic;
  margin-top: 0.5rem;
}

/* Quand il n'y a PAS d'image → centrer le texte */
.presT:not(:has(figure)) {
  justify-content: center;
}

/* Texte principal */
.presT p {
  margin: 0 0 0.75rem;
  line-height: 1.5;
  font-size: 1rem;
  max-width: 100%;
  font-weight: 600;
}

/* Bloc texte */
.presT-text {
  max-width: 100%;
  /* fluide */
  flex: 1;
  font-size: 1rem;
  font-weight: 600;
}

/* Titre dans le bloc texte */
.presT-text h2 {
  color: #5679db;
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

/* Paragraphe dans le bloc texte */
.presT-text p {
  margin: 0 0 0.75rem;
  line-height: 1.5;
}

main {
  color: #666;
  position: relative;
}

.footer {
  display: flex;
  flex-direction: column;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  font-weight: bolder;
  margin-top: 10px;
  width: 100%;
  align-items: center;
  background-color: #fff;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  width: 100%;
  margin: 5px 0;
}

/* ============================================================ */
/* BLOC RELATED PAGES — VERSION CARROUSEL 1 LIGNE + FLÈCHES     */
/* ============================================================ */

.related-pages {
  width: 100%;
  margin: 0 auto;
  padding: 10px;
  background: #f5f2ee;
  border: 1px solid #d8d3cc;
  border-radius: 10px;
  position: relative;
}

.related-pages p {
  color: red;
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  margin: 10px;
}

/* Conteneur horizontal */
.related-scroll {
  display: flex;
  gap: 20px;
  padding: 10px 60px;
  overflow-x: scroll;
  scroll-behavior: smooth;
}

/* Masquer la barre de scroll */
.related-scroll::-webkit-scrollbar {
  display: none;
}

.related-scroll {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Carte */
.related-card {
  flex: 0 0 280px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px 10px 10px 25px;
  position: relative;
}

/* Point rouge */
.related-dot {
  width: 6px;
  height: 6px;
  background: red;
  border-radius: 50%;
  position: absolute;
  left: 8px;
  top: 14px;
}

/* Titre */
.related-title {
  text-decoration: none;
  color: #227dd7;
  font-size: 15px;
  font-weight: 700;
  display: block;
  margin-bottom: 6px;
}

/* Description */
.related-desc {
  font-size: 13px;
  color: #444;
  line-height: 1.3;
}

/* Flèches */
.related-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 45px;
  height: 45px;
  background: #cfcac3;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 26px;
  font-weight: bold;
  user-select: none;
  z-index: 20;
}

.related-arrow.left {
  left: 5px;
}

.related-arrow.right {
  right: 5px;
}

.related-arrow:hover {
  background: #bdb7ae;
}

/* ============================================================ */
/* ANCIEN BLOC (conservé car utilisé ailleurs dans ton site)    */
/* ============================================================ */

.related-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.related-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
}

.related-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background-color: red;
  border-radius: 50%;
}
.tooltip-box {
  position: fixed;
  z-index: 99999;
  background: #fff;
  border: 1px solid #ccc;
  padding: 8px 10px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  max-width: 280px;
  font-size: 14px;
  line-height: 1.3em;
  display: none;
}

.tooltip-img {
  margin-bottom: 6px;
}

.tooltip-img img {
  max-width: 100%;
  height: auto;
  border-radius: 3px;
}

.tooltip-text {
  font-size: 14px;
  line-height: 1.3em;
}
/* ================================
   TOOLTIP GLOBAL (ACRONYMES + LIENS)
   ================================ */
/* =========================================================================
   CONTENEUR GLOBAL DU TOOLTIP (Unique et nettoyé)
   ========================================================================= */
#tooltip-global {
  position: fixed !important;
  /* Positionné par rapport à la fenêtre de l'écran */
  z-index: 999999 !important;
  /* Reste toujours au-dessus du main et du footer */
  display: none;
  /* Caché par défaut, géré par le JavaScript */
  pointer-events: none !important;
  /* Évite que le tooltip bloque le survol de la souris */

  /* Style visuel type Wikipédia (clair et lisible) */
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #cccccc;
  border-radius: 4px;
  padding: 8px 12px;
  max-width: 300px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  line-height: 1.4;
  font-size: 12px;
  white-space: normal;
}

/* =========================================================================
   CONTENU DU TOOLTIP ENRICHI (Liens et Images)
   ========================================================================= */
.tooltip-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background-color: #ffffff;
}

.tooltip-img {
  width: 100%;
  height: auto;
  border-radius: 3px;
}

.tooltip-text {
  font-size: 11px;
  color: #333333;
}

/* =========================================================================
   ÉLÉMENTS DECLENCHEURS DANS LE TEXTE (Main et Footer)
   ========================================================================= */
.tooltip-link {
  position: relative;
  cursor: pointer;
}

.acronym {
  font-weight: 900;
  cursor: help;
  /* Change le curseur en point d'interrogation au survol */
}

.acronym .tooltip {
  display: none;
  /* Cache le texte brut de l'acronyme généré par PHP */
}


.left {
  text-align: left;
}

.center {
  margin: 5px;
  text-align: center;
}

.centerB {
  font-weight: 700;
  margin: 5px;
  text-align: center;
}

.centerB20 {
  font-weight: 700;
  margin: 5px 20px;
  text-align: center;
}

.centerBR {
  color: red;
  font-weight: 700;
  margin: 5px;
  text-align: center;
}

.centerBR a {
  color: red;
  font-weight: 700;
  text-decoration: none;
}

iframe {
  border: none
}

h2 {
  color: #e53935;
  font-size: 22px;
  font-weight: 700;
  margin: 0.5em;
}

h3 {
  color: blue;
  font-size: 20px;
  font-weight: 700;
  margin: 0.5em 0 0.5em 1.5em;
}

h4 {
  color: #215794;
  font-size: 18px;
  font-weight: 700;
  font-style: italic;
  margin: 6px 0 6px 30px;
}

h5 {
  color: #7387a1;
  font-size: 14px;
  font-weight: 400;
  font-style: italic;
  margin: 4px 0 4px 40px;
}

.c, .c2, .c3, .c4 {
  margin: 0.5em 1em;
  padding: 0.5em 0 0.5em 2em;
  border-radius: 8px;
  background: #f5f2ee;
  border-left: 5px solid #b8a99a;
  column-gap: 30px;
  break-inside: avoid;
  column-fill: balance;
  align-items: center;
}

.break-column {
  break-after: column;
}
.c2 {
  columns: 2 700px;
}
.c3 {columns: 3 500px}

.c4 {
  columns: 4 340px;
}


/* UTILITAIRES DE MARGE POUR DOCUMENTS SPÉCIAUX */
.p2 {
  margin-left: 20px;
}

.p4 {
  margin-left: 40px;
}

.p6 {
  margin-left: 60px;
}

li {
  margin-left: 20px;
}

a {
  color: blue;
  font-style: italic;
  text-decoration: none;
}

a:visited {
  color: blue;
  text-decoration: none;
}

a:hover {
  color: #972fff;
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}
.def {
    position: relative;
    cursor: help;
    color: #004a8f; /* discret mais visible */
    font-weight: 500;
}

.def::after {
    content: " ⓘ";
    font-size: 12px;
    color: #535252;
}

.def:hover::after {
    content: attr(data-def);
    position: absolute;
    left: 0;
    top: 120%;
    background: #333;
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    white-space: nowrap;
    font-size: 13px;
    z-index: 9999;
}

figure {
  font-size: small;
  margin: auto;
  text-align: center;
}

img {
  border-radius: 5px; max-height: 100%;
  overflow: hidden;
}

.img { max-width: 100%;
  text-align: center;
  object-fit: cover;
}

.responsive {
  height: auto;
  width: 100%;
}

.imgl {
  float: left;
  margin: 5px;
}

.red {
  color: red;
}

/* grille */
.tg ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  padding: 0;
}

.tg ul li {
  list-style: none;
  font-size: small;
  font-weight: bolder;
  color: red;
  min-height: 175px;
}

/* vignette */
.tg ul li a figure img {
  border: 1px solid #999;
  padding: 2px;
  height: auto;
}

.tg ul li a:hover figure img {
  border-color: #000;
}

/* GRAND VISUEL : CENTRÉ DANS LE BODY */
.tg ul li a b {
  display: none;
  position: fixed;
  /* CENTRAGE BODY */
  top: 70%;
  /* centre vertical */
  left: 50%;
  /* centre horizontal */
  transform: translate(-50%, -70%);
  z-index: 5000;
  background: silver;
  border: 1px solid #666;
  border-radius: 5px;
  padding: 4px;
}

/* image grande */
.tg ul li a b img {
  max-width: calc(100vw - 40px);
  /* jamais plus large que l’écran */
  max-height: calc(100vh - 40px);
  /* jamais plus haute que l’écran */
  height: auto;
  display: block;
}

/* affichage au hover */
.tg ul li a:hover b {
  display: block;
}

/* Styles pour le texte défilant du footer*/
.scroll-container {
  width: 100%;
  overflow: hidden;
  background: #f8f8f8;
  padding: 10px 0;
}

.scroll-content {
  display: flex;
  gap: 20px;
  animation: scrollText 20s linear infinite;
}

.scroll-content a {
  white-space: nowrap;
  text-decoration: none;
  font-weight: bold;
  color: #4205bd;
  transition: all 0.3s ease-in-out;
}

.scroll-content a:hover {
  background-color: #007bff;
  color: white;
  box-shadow: 0px 0px 10px rgba(0, 123, 255, 0.5);
}

@keyframes scrollText {
  from {
    transform: translateX(100%);
  }

  to {
    transform: translateX(-100%);
  }
}