*,
*::before,
*::after {box-sizing: border-box;}

html,
body {
  overflow-x: hidden;
}

body {
  font-family: "Georgia", serif;
  font-size: clamp(0.875rem, 2vw, 1rem); /* 14px → 0.875rem, 16px → 1rem */
  color: #666;
  padding: 0 0.625rem; /* 10px → 0.625rem */
  background-color: #fcfcfc;
}

/* --- BANNIÈRE 100% LARGEUR --- */
.banner {
  width: 100%;
  aspect-ratio: 3.75 / 1;
  min-height: clamp(9.375rem, 24vw, 18.75rem);
  overflow: hidden;
  position: relative;
}

.slides {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 200%;
  display: flex;
  flex-direction: column;
  animation: slideVertical 8s infinite ease-in-out;
}

.slide {
  width: 100%;
  height: 50%;
  object-fit: cover;
  object-position: center;
}

@keyframes slideVertical {
  0%,40%   { transform: translateY(0); }
  50%,90%  { transform: translateY(-50%); }
  100%     { transform: translateY(0); }
}


/* --- LOGO + TITRE --- */
.bantitsite {
  position: absolute;
  z-index: 10;
  /* Devant */
}

.bantitsite {
  top: 0.375rem;   /* 6px → 0.375rem, plus compact sur mobile */
  left: 0.625rem;  /* 10px → 0.625rem */
  display: flex;
  align-items: center;
  gap: 0.625rem;   /* 10px → 0.625rem */
  max-width: calc(100% - 1.25rem);
}

.bantitsite img {
  width: clamp(0px, 5vw, 50px);
  max-width: 100%;
  height: auto;
  display: block;
  flex-shrink: 1;
  object-fit: contain;
}

.bantitsite a {
  text-decoration: none;
  font-size: clamp(1rem, 3vw, 1.6rem);
  font-weight: 900;
  color: rgb(9, 9, 103);
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.banner-title {
  position: absolute;
  z-index: 9999;

  top: 50%;
  left: 50%;
  transform: translate(-50%, -35%); /* 🔥 remonte un peu moins */
  
  width: max-content;
  max-width: 90%;
  text-align: center;

  font-size: clamp(1rem, 2.5vw, 2rem);
 /* 🔥 plus petit partout */
  font-style: italic;
  font-weight: 900;
  color: #fff;

  text-shadow:
    0 0 3px rgba(0, 0, 0, 0.5),
    1px 1px 3px rgba(0, 0, 0, 0.4);
}

/* Icônes dans le H1 */
.banner-title img {
  height: 0.8em;        /* taille calée sur le texte */
  width: auto;          /* proportions respectées */
  max-width: 1.2em;     /* sécurité mobile */
  vertical-align: -0.15em;
  margin-right: 0.25em;
  opacity: 0.9;
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.6));
}

/* Sécurité : drapeaux ne doivent jamais s’étirer */
.flag {
  display: inline-block;
  max-width: none;
}

/* ============================
   BANDEAU PRINCIPAL
   ============================ */

/* ============================
   CONTENEUR
   ============================ */
.cont {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  width: min(100%, 1200px);
  margin: 0 auto;
  padding: 0.5rem;
  box-sizing: border-box;
  color: blue;
  font-size: 0.875rem;
  font-weight: 700;
  font-style: italic;
}

/* ============================
   ÉLÉMENTS (BOUTONS + INPUTS)
   ============================ */
.cont > * {
  height: 27px;
  min-width: 120px;     /* largeur minimale identique */
  flex: 0 1 auto;        /* ne s'étire pas à 100% */
  box-sizing: border-box;
}

/* ============================
   BOUTONS CLASSIQUES
   ============================ */
/* Boutons */
.link_btn {
  position: relative;              /* indispensable pour ::before */
  display: flex;
  align-items: center;
  justify-content: center;         /* centre le texte */
  height: 27px;
  min-width: 130px;                /* largeur minimale réaliste */
  max-width: 100%;                 /* ne dépasse jamais */
  flex: 0 1 auto;                  /* ne s'étire plus */
  padding-left: 32px;              /* zone icône */
  padding-right: 12px;             /* équilibrage */
  border: 1px solid blue;
  border-radius: 10px;
  background: #fff;
  color: blue;
  font-weight: 700;
  font-style: italic;
  white-space: nowrap;             /* empêche le retour à la ligne */
  box-sizing: border-box;
}

/* Icône */
.link_btn::before {
  content: "";
  position: absolute;
  left: 10px;
  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 */
.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'); }

/* ============================
   BLOC RECHERCHE
   ============================ */
.search-bloc {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  height: 27px;
  min-width: 120px;
  flex: 0 1 auto;
}

/* Icône */
.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%);
}

/* Input */
.search-input {
  height: 27px;
  flex: 1 1 auto;
  min-width: 80px;
  padding-left: 0.5rem; /* ← padding propre */
  border: 1px solid blue;
  border-radius: 10px;
  color: blue;
  font-weight: 700;
  font-style: italic;
}

/* Bouton loupe */
.search-bouton {
  height: 27px;
  width: 27px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}


.menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: stretch;
  gap: 0.25rem 0.5rem;
  width: min(100%, 80rem);
  max-width: 100%;
  margin: 0 auto 0.625rem auto;
  padding: 0;
  font-size: clamp(0.8125rem, 1vw + 0.45rem, 0.9375rem);
}

.menu li {
  list-style: none;
  border: 1px solid rgb(42, 42, 171);
  border-radius: 0.3125rem;
  margin: 0;
  padding: 0.125rem 0.25rem;
  background: white;
  position: relative;
  z-index: 1000;

  display: flex;
  align-items: center;

  flex: 0 1 auto;          /* NE S'ÉTIRE PLUS */
  min-width: 7rem;         /* largeur minimale réaliste */
  max-width: 12rem;        /* limite pour éviter les boutons énormes */
}

.menu li a {
  font-weight: 700;
  color: rgb(33, 33, 179);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  white-space: nowrap;     /* empêche le retour à la ligne */
}

/* Sécurité anti-texte parasite */
.menu li::before,
.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;

  min-width: 100%;
  max-width: 14rem;        /* limite stricte */
}

.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: 0.625rem;
  margin: 0.125rem 0;

  flex: 0 1 auto;          /* NE S'ÉTIRE PLUS */
  min-width: 7rem;         /* zone tactile */
  max-width: 12rem;        /* limite stricte */

  padding: 0.25rem 0.5rem;
  text-align: center;
}

.sous-menu li a {
  color: rgb(14, 14, 159);
  font-weight: 600;
  text-decoration: none;
  white-space: normal;
}

.breadcrumb {
  font-size: 0.875rem; /* 14px → 0.875rem */
  margin: 0.625rem 0;   /* 10px → 0.625rem */
}

.breadcrumb a {
  color: #0066cc;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span {
  font-weight: bold;
}

.recherche-nom {
  position: relative;
  width: 13.75rem; /* 220px → 13.75rem */
}

#recherche-nom-input {
  width: 100%;
  padding: 0.375rem 0.5rem; /* 6px → 0.375rem, 8px → 0.5rem */
  border: 1px solid #aaa;
  border-radius: 0.25rem; /* 4px → 0.25rem */
}

#recherche-nom-resultats {
  position: absolute;
  top: 2rem; /* 32px → 2rem */
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #ccc;
  border-radius: 0.25rem; /* 4px → 0.25rem */
  display: none;
  z-index: 9999;
}

#recherche-nom-resultats div {
  padding: 0.375rem 0.5rem; /* 6px → 0.375rem, 8px → 0.5rem */
  cursor: pointer;
}

#recherche-nom-resultats div:hover {
  background: #eef;
}

/* ============================
   BANDEAU INFO (COORDS + MÉTÉO + QR CODE)
   ============================ */
.bandeau-info {
  width: 100%;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.625rem; /* 10px → 0.625rem */
  align-items: stretch;
}

/* Réduction des blocs coords et lien-carte */
.coords {
  flex: 1;
  max-width: 11.25rem; /* 180px → 11.25rem */
  display: flex;
  flex-direction: column;
  font-size: 0.75rem; /* 12px → 0.75rem */
  text-align: left;
  border: 1px solid #ccc;
  padding: 0.625rem; /* 10px → 0.625rem */
  border-radius: 0.375rem; /* 6px → 0.375rem */
  background-color: #b9d3fb;
  height: 180px; /* tactile → px conservé */
  justify-content: center;
  align-items: center;
}

.coords p.centerB {
  margin: 0 0 0.9375rem 0; /* 15px → 0.9375rem */
  text-align: center;
  width: 100%;
}

.coords-title {
  font-weight: bold;
  color: blue;
  text-align: center;
  font-size: 0.875rem; /* 14px → 0.875rem */
  margin-bottom: 0.625rem; /* 10px → 0.625rem */
}

.coords span {
  color: blue;
  font-weight: bold;
  font-size: 0.75rem; /* 12px → 0.75rem */
}

/* Style pour les lignes de coordonnées */
.coords > div:not(.coords-title) {
  margin-bottom: 0.3125rem; /* 5px → 0.3125rem */
}

.meteo-container {
  flex: 3;
  overflow: hidden;
  height: 180px; /* tactile → px conservé */
}

.qrcode {
  flex: 1;
  max-width: 11.25rem; /* 180px → 11.25rem */
  background: #b9d3fb;
  display: flex;
  flex-direction: column;
  font-size: 0.8125rem; /* 13px → 0.8125rem */
  text-align: center;
  border: 1px solid #ccc;
  padding: 0.3125rem; /* 5px → 0.3125rem */
  border-radius: 0.375rem; /* 6px → 0.375rem */
  background-color: #b9d3fb;
  height: 180px; /* tactile → px conservé */
}

.qrcode p {
  color: blue;
}

/* ============================
   CONTENEUR DU CARROUSSEL
   ============================ */
.meteo {
  display: flex;
  align-items: center;
  gap: 0.5rem; /* 8px → 0.5rem */
  background: #b9d3fb;
  border: 1px solid #ccc;
  padding: 0.375rem; /* 6px → 0.375rem */
  border-radius: 0.375rem; /* 6px → 0.375rem */
  overflow: hidden;
  height: 180px; /* tactile → px conservé */
}

/* Fenêtre visible du carrousel */
.meteo-window {
  flex: 1;
  overflow: hidden;
  position: relative;
}

/* ============================
   BOUTONS GAUCHE / DROITE
   ============================ */
.meteo-btn {
  border: none;
  background: #e6e6e6;
  border-radius: 0.25rem; /* 4px → 0.25rem */
  padding: 0.375rem 0.5rem; /* 6px → 0.375rem, 8px → 0.5rem */
  cursor: pointer;
  font-size: 1rem; /* 16px → 1rem */
  align-self: center;
}

.meteo-btn:hover {
  background: #d4d4d4;
}

/* ============================
   PISTE QUI DÉFILE
   ============================ */
.meteo-track {
  display: flex;
  gap: 0.625rem; /* 10px → 0.625rem */
  transition: transform 0.3s ease;
}

/* ============================
   BLOC JOUR MÉTÉO
   ============================ */
.meteo-jour {
  flex: 0 0 230px; /* tactile → px conservé */
  width: 230px;    /* tactile → px conservé */
  background: #fff;
  border-radius: 0.375rem; /* 6px → 0.375rem */
  padding: 0.375rem; /* 6px → 0.375rem */
  border: 1px solid #ccc;
  font-size: 0.75rem; /* 12px → 0.75rem */
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.25rem; /* 4px → 0.375rem */
}

/* HEADER : 2 colonnes */
.meteo-jour-entete {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.meteo-icon {width: 40px}
/* Colonne gauche : date + desc */
.meteo-jour-texte {
  display: flex;
  flex-direction: column;
  gap: 0.125rem; /* 2px → 0.125rem */
  flex: 1;
}

.meteo-jour-titre {
  color: blue;
  font-weight: bold;
  margin-right: 0.25rem; /* 4px → 0.25rem */
}

.meteo-jour-date {
  font-size: 0.75rem; /* 12px → 0.75rem */
  color: #333;
}

.meteo-desc {
  font-size: 0.75rem; /* 12px → 0.75rem */
  font-weight: bold;
}

.meteo-ligne span {
  color: blue;
  font-weight: bold;
  font-size: 0.75rem; /* 12px → 0.75rem */
}

/* ============================================================
   ZONE NEWS — STYLE MODERNE & ÉPURÉ
   ============================================================ */

.zoneNews3 {
  padding: 0.1875rem; /* 3px → 0.1875rem */
  background: #ffffff;
  border-radius: 0.375rem; /* 6px → 0.375rem */
  border: 1px solid #e8e8e8;
  position: relative;
}

.zoneNews3 h2 {
  margin: 0 0 0.125rem 1.5rem; /* 2px → 0.125rem, 24px → 1.5rem */
  color: red;
  font-size: 1.05em; /* OK, déjà relatif */
  font-weight: 600;
}

/* --- CONTENEUR DU CARROUSEL --- */
.news-carousel-wrapper {
  position: relative;
  overflow: hidden;
  padding: 0 1.25rem; /* 20px → 1.25rem */
}

/* --- LISTE DES NEWS --- */
.zoneNews3 .news-list {
  display: flex;
  flex-direction: row;
  gap: 0.625rem; /* 10px → 0.625rem */
  overflow-x: auto;
  padding: 0.375rem 0 0.625rem 0; /* 6px → 0.375rem, 10px → 0.625rem */
  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; /* largeur fixe → px conservé */
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 0.3125rem; /* 5px → 0.3125rem */
  padding: 0.3125rem 0.75rem; /* 5px → 0.3125rem, 12px → 0.75rem */
  box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.06); /* 1px → 0.0625rem, 3px → 0.1875rem */
  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(-0.0625rem); /* 1px → 0.0625rem */
  box-shadow: 0 0.1875rem 0.5rem rgba(0, 0, 0, 0.08); /* 3px → 0.1875rem, 8px → 0.5rem */
}

.news-item h3::before {
  content: "";
  display: inline-block;
  width: 0.5625rem; /* 9px → 0.5625rem */
  height: 0.5625rem; /* 9px → 0.5625rem */
  background: #007bff;
  border-radius: 50%;
  margin-right: 0.375rem; /* 6px → 0.375rem */
  position: relative;
  top: -0.0625rem; /* 1px → 0.0625rem */
}

.news-item h3 {
  margin: 0 0 0.25rem 0; /* 4px → 0.25rem */
  font-size: 0.78em; /* OK */
  color: #2f3b47ad;
  font-weight: 600;
  font-style: italic;
}

.news-meta {
  font-size: 0.72em; /* OK */
  color: #7a8693;
  margin: 0.125rem 0; /* 2px → 0.125rem */
}

.news-item a {
  display: inline-block;
  color: #1a73e8;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.75em; /* OK */
}

.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: 2rem; /* 32px → 2rem */
  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: 0.9375rem; /* 15px → 0.9375rem */
  display: flex;
  align-items: center;
  padding: 0.625rem; /* 10px → 0.625rem */
  border: 1px solid #ccc;
  border-radius: 0.625rem; /* 10px → 0.625rem */
  min-height: 12.5rem; /* 200px → 12.5rem */
  flex-wrap: wrap;
  background: #f5f2ee;
}

/* Image */
.presT figure {
  flex-shrink: 1;
  max-width: 100%;
}

.presT figure img {
  width: 100%;
  max-width: 18.75rem; /* 300px → 18.75rem */
  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 {
  font-size: clamp(0.85rem, 2.5vw, 1rem);
  line-height: 1.5;
  max-width: 100%;
  font-weight: 600;
}

/* Bloc texte */
.presT-text {
  max-width: 100%;
  flex: 1;
  font-size: 1rem;
  font-weight: 600;
}

/* Titre dans le bloc texte */
.presT-text h2 {
  color: red;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 700;
  margin: 0 0 0.25rem 0;
}

/* Paragraphe dans le bloc texte */
.presT-text p {
  font-size: clamp(0.85rem, 2.5vw, 1rem);
  line-height: 1.5;
  font-weight: 600;
}

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: 0.625rem; /* 10px → 0.625rem */
  width: 100%;
  align-items: center;
  background-color: #fff;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  width: 100%;
  margin: 0.3125rem 0; /* 5px → 0.3125rem */
}

/* ============================================================ */
/* BLOC RELATED PAGES — VERSION CARROUSEL 1 LIGNE + FLÈCHES     */
/* ============================================================ */

.related-pages {
  width: 100%;
  margin: 0 auto;
  padding: 0.625rem; /* 10px → 0.625rem */
  background: #f5f2ee;
  border: 1px solid #d8d3cc;
  border-radius: 0.625rem; /* 10px → 0.625rem */
  position: relative;
}

.related-pages p {
  color: red;
  text-align: center;
  font-size: 1.125rem; /* 18px → 1.125rem */
  font-weight: bold;
  margin: 0.625rem; /* 10px → 0.625rem */
}

/* Conteneur horizontal */
.related-scroll {
  display: flex;
  gap: 1.25rem; /* 20px → 1.25rem */
  padding: 0.625rem 3.75rem; /* 10px → 0.625rem, 60px → 3.75rem */
  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; /* tactile → px conservé */
  background: white;
  border: 1px solid #ddd;
  border-radius: 0.5rem; /* 8px → 0.5rem */
  padding: 0.625rem 0.625rem 0.625rem 1.5625rem; /* 10px → 0.625rem, 25px → 1.5625rem */
  position: relative;
}

/* Point rouge */
.related-dot {
  width: 0.375rem; /* 6px → 0.375rem */
  height: 0.375rem; /* 6px → 0.375rem */
  background: red;
  border-radius: 50%;
  position: absolute;
  left: 0.5rem; /* 8px → 0.5rem */
  top: 0.875rem; /* 14px → 0.875rem */
}

/* Titre */
.related-title {
  text-decoration: none;
  color: #227dd7;
  font-size: 0.9375rem; /* 15px → 0.9375rem */
  font-weight: 700;
  display: block;
  margin-bottom: 0.375rem; /* 6px → 0.375rem */
}

/* Description */
.related-desc {
  font-size: 0.8125rem; /* 13px → 0.8125rem */
  color: #444;
  line-height: 1.3;
}

/* Flèches */
.related-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.8125rem; /* 45px → 2.8125rem */
  height: 2.8125rem; /* 45px → 2.8125rem */
  background: #cfcac3;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.625rem; /* 26px → 1.625rem */
  font-weight: bold;
  user-select: none;
  z-index: 20;
}

.related-arrow.left {
  left: 0.3125rem; /* 5px → 0.3125rem */
}

.related-arrow.right {
  right: 0.3125rem; /* 5px → 0.3125rem */
}

.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: 1.375rem; /* 22px → 1.375rem */
  margin-bottom: 0.5rem; /* 8px → 0.5rem */
}

.related-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem; /* 8px → 0.5rem */
  width: 0.375rem; /* 6px → 0.375rem */
  height: 0.375rem; /* 6px → 0.375rem */
  background-color: red;
  border-radius: 50%;
}

.tooltip-box {
  position: fixed;
  z-index: 99999;
  background: #fff;
  border: 1px solid #ccc;
  padding: 0.5rem 0.625rem; /* 8px → 0.5rem, 10px → 0.625rem */
  border-radius: 0.25rem; /* 4px → 0.25rem */
  box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.2); /* 2px → 0.125rem, 8px → 0.5rem */
  max-width: 17.5rem; /* 280px → 17.5rem */
  font-size: 0.875rem; /* 14px → 0.875rem */
  line-height: 1.3em;
  display: none;
}

.tooltip-img {
  margin-bottom: 0.375rem; /* 6px → 0.375rem */
}

.tooltip-img img {
  max-width: 100%;
  height: auto;
  border-radius: 0.1875rem; /* 3px → 0.1875rem */
}

.tooltip-text {
  font-size: 0.875rem; /* 14px → 0.875rem */
  line-height: 1.3em;
}

/* ================================
   TOOLTIP GLOBAL (ACRONYMES + LIENS)
   ================================ */
/* =========================================================================
   CONTENEUR GLOBAL DU TOOLTIP (Unique et nettoyé)
   ========================================================================= */
#tooltip-global {
  position: fixed !important;
  z-index: 999999 !important;
  display: none;
  pointer-events: none !important;

  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #cccccc;
  border-radius: 0.25rem; /* 4px → 0.25rem */
  padding: 0.5rem 0.75rem; /* 8px → 0.5rem, 12px → 0.75rem */
  max-width: 18.75rem; /* 300px → 18.75rem */
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.15); /* 4px → 0.25rem, 12px → 0.75rem */
  line-height: 1.4;
  font-size: 0.75rem; /* 12px → 0.75rem */
  white-space: normal;
}

/* =========================================================================
   CONTENU DU TOOLTIP ENRICHI (Liens et Images)
   ========================================================================= */
.tooltip-content {
  display: flex;
  flex-direction: column;
  gap: 0.375rem; /* 6px → 0.375rem */
  background-color: #ffffff;
}

.tooltip-img {
  width: 100%;
  height: auto;
  border-radius: 0.1875rem; /* 3px → 0.1875rem */
}

.tooltip-text {
  font-size: 0.6875rem; /* 11px → 0.6875rem */
  color: #333333;
}

/* =========================================================================
   ÉLÉMENTS DÉCLENCHEURS DANS LE TEXTE (Main et Footer)
   ========================================================================= */
.tooltip-link {
  position: relative;
  cursor: pointer;
}

.acronym {
  font-weight: 900;
  cursor: help;
}

.acronym .tooltip {
  display: none;
}


.left {
  text-align: left;
}

.center {
  margin: 0.3125rem; /* 5px → 0.3125rem */
  text-align: center;
}

.centerB {
  font-weight: 700;
  margin: 0.3125rem; /* 5px → 0.3125rem */
  text-align: center;
}

.centerB20 {
  font-weight: 700;
  margin: 0.3125rem 1.25rem; /* 5px → 0.3125rem, 20px → 1.25rem */
  text-align: center;
}

.centerBR {
  color: red;
  font-weight: 700;
  margin: 0.3125rem; /* 5px → 0.3125rem */
  text-align: center;
}

.centerBR a {
  color: red;
  font-weight: 700;
  text-decoration: none;
}

iframe {
  border: none;
}

/* TITRES */
h2 {
  color: #e53935;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 700;
  margin: 0.25em;
}

h3 {
  color: blue;
  font-size: clamp(0.86rem, 2.5vw, 1.0625rem);
  font-weight: 700;
  margin: 0.5em 0 0.25em 0.5em;
}

h4 {
  color: #215794;
  font-size: clamp(0.77rem, 2.5vw, 1rem);
  font-weight: 700;
  font-style: italic;
  margin: 0.375rem 0 0.375rem 1.875rem;
}

h5 {
  color: #7387a1;
  font-size: clamp(0.70rem, 2.5vw, 0.875rem);
  font-weight: 400;
  font-style: italic;
  margin: 0.25rem 0 0.25rem 2.5rem;
}

/* BLOCS MULTI-COLONNES */
.c, .c2, .c3, .c4 {
  margin: 0.5em 2em;
  padding: 0.5em 0 0.5em 0.5em;
  border-radius: 0.5rem; /* 8px → 0.5rem */
  background: #f5f2ee;
  border-left: 0.3125rem solid #b8a99a; /* 5px → 0.3125rem */
  column-gap: 1.875rem; /* 30px → 1.875rem */
  break-inside: avoid;
  column-fill: balance;
  align-items: center;
}

.break-column {
  break-after: column;
}

/* Largeurs structurelles → px conservés */
.c2 {
  columns: 2 700px;
}

.c3 {
  columns: 3 500px;
}

.c4 {
  columns: 4 340px;
}

/* UTILITAIRES DE MARGE */
.p2 {
  margin-left: 1.25rem; /* 20px → 1.25rem */
}

.p4 {
  margin-left: 2.5rem; /* 40px → 2.5rem */
}

.p6 {
  margin-left: 3.75rem; /* 60px → 3.75rem */
}

li {
  margin-left: 1.25rem; /* 20px → 1.25rem */
}

/* LIENS */
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;
}

/* DÉFINITIONS */
.def {
  position: relative;
  cursor: help;
  color: #004a8f;
  font-weight: 500;
}

.def::after {
  content: " ⓘ";
  font-size: 0.75rem; /* 12px → 0.75rem */
  color: #535252;
}

.def:hover::after {
  content: attr(data-def);
  position: absolute;
  left: 0;
  top: 120%;
  background: #333;
  color: #fff;
  padding: 0.375rem 0.625rem; /* 6px → 0.375rem, 10px → 0.625rem */
  border-radius: 0.25rem; /* 4px → 0.25rem */
  white-space: nowrap;
  font-size: 0.8125rem; /* 13px → 0.8125rem */
  z-index: 9999;
}

figure {
  font-size: small;
  margin: auto;
  text-align: center;
}

img {
  border-radius: 0.3125rem; /* 5px → 0.3125rem */
  max-height: 100%;
  overflow: hidden;
}

.img {
  max-width: 100%;
  text-align: center;
  object-fit: cover;
}

.responsive {
  height: auto;
  width: 100%;
}

.imgl {
  float: left;
  margin: 0.3125rem; /* 5px → 0.3125rem */
}

.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: 10.9375rem; /* 175px → 10.9375rem */
}

/* vignette */
.tg ul li a figure img {
  border: 1px solid #999;
  padding: 0.125rem; /* 2px → 0.125rem */
  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;
  top: 70%;
  left: 50%;
  transform: translate(-50%, -70%);
  z-index: 5000;
  background: silver;
  border: 1px solid #666;
  border-radius: 0.3125rem; /* 5px → 0.3125rem */
  padding: 0.25rem; /* 4px → 0.25rem */
}

/* image grande */
.tg ul li a b img {
  max-width: calc(100vw - 2.5rem); /* 40px → 2.5rem */
  max-height: calc(100vh - 2.5rem); /* 40px → 2.5rem */
  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: 0.625rem 0; /* 10px → 0.625rem */
}

.scroll-content {
  display: flex;
  gap: 1.25rem; /* 20px → 1.25rem */
  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%);
  }
}