*,
*::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%);
  }
}

/* Reset de base */
#map {
    position: relative;
    height: 31.25rem;            /* 500px */
    border: 0.0625rem solid blue; /* 1px */
    border-radius: 0.3125rem;     /* 5px */
    margin: 0.3125rem 0.25rem;    /* 5px 4px */
    padding: 0;
}
/* 1. Empêche le masquage des images internes de Google Maps */
.gm-style img {
    max-width: none !important;
    max-height: none !important;
}

/* 2. Force le positionnement et l'affichage de l'icône Street View */
.gm-svpc div img {
    position: relative !important;
    display: block !important;
}

/* 3. Sécurité au cas où la div de l'icône s'est écrasée à 0px */
.gm-svpc {
    min-width: 32px !important;
    min-height: 32px !important;
}

/* Panneau des catégories */
#categoryPanel {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;               /* 6px */
    align-items: flex-start;
    border: 0.0625rem solid blue; /* 1px */
    border-radius: 0.3125rem;     /* 5px */
    margin: 0.3125rem 0.25rem;    /* 5px 4px */
    font-weight: bold;
    font-size: 0.875rem;          /* 14px */
    color: rgb(126, 160, 205);
    padding: 0.25rem;             /* 4px */
}

.category-icon {
    width: 1.25rem;              /* 20px */
    height: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-icon svg {
    width: 1.25rem;              /* 20px */
    height: 1.25rem;
}

.feature-item .label,
.parcours-item .label {
    color: rgb(90, 120, 165);
    margin-right: 0.25rem;       /* 4px */
}

/* Item de catégorie */
.category-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0.125rem 0.25rem;   /* 2px 4px */
    border-radius: 0.1875rem;    /* 3px */
}

/* Catégorie active */
.category-item.active {
    color: #ff1744;
    font-style: italic;
    font-weight: bolder;
    font-size: 0.9375rem;        /* 15px */
}

/* Survol */
.category-item:hover {
    background: rgba(0,0,0,0.05);
}

.feature-item,
.parcours-item {
    position: relative;
}

/* Tooltip custom */
.feature-item:hover::after,
.parcours-item:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 0;
    top: 100%;
    margin-top: 0.25rem;         /* 4px */
    background: #fff;
    color: #222;
    padding: 0.375rem 0.625rem;  /* 6px 10px */
    border-radius: 0.25rem;      /* 4px */
    font-size: 0.8125rem;        /* 13px */
    white-space: nowrap;
    box-shadow: 0 0.125rem 0.375rem rgba(0,0,0,0.25); /* 2px 6px */
    z-index: 9999;
}

.flag-icon {
    height: 0.9375rem;           /* 15px */
    vertical-align: middle;
    margin-right: 0.0625rem;     /* 1px */
}

/* Compensation du padding interne des drapeaux 4:3 */
.flag-icon[src*="fr.svg"],
.flag-icon[src*="es.svg"],
.flag-icon[src*="ad.svg"] {
    transform: scale(1.15);
}

.marker-parcours {
    width: 1.125rem;             /* 18px */
    height: 1.125rem;
    border-radius: 50%;
    background: #ff0000;
    border: 0.125rem solid #ffffff; /* 2px */
}

/* Liste des lieux */
#place-list {
    border: 0.0625rem solid blue; /* 1px */
    border-radius: 0.3125rem;     /* 5px */
    margin: 0.3125rem 0.25rem;    /* 5px 4px */
    min-height: 0.625rem;         /* 10px */
    max-height: 5rem;             /* 80px */
    overflow-y: auto;
    padding: 0.25rem;             /* 4px */
}

/* Liste des features */
#featureList {
    font-size: 0.875rem;          /* 14px */
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;                 /* 4px */
    list-style: none;
    padding: 0;
    margin: 0;
}

#featureList li {
    cursor: pointer;
    padding: 0.125rem 0.375rem;   /* 2px 6px */
    color: #333;
    display: inline-block;
    white-space: nowrap;
    border-radius: 0.25rem;       /* 4px */
    transition: background-color 0.2s ease;
}

#featureList li:hover {
    background-color: #f0f0f0;
}

/* Boutons centraux sur carte */
#searchGroup {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;              /* wrap naturel */
    gap: 0.625rem;                /* 10px */
    margin: 0.5rem auto;
    width: 50rem;                 /* 🔥 largeur PC → input + reset tiennent */
    max-width: 100%;              /* 🔥 mobile → wrap */
}

#F {
    padding: 0.20rem;
    width: 13rem;               /* 🔥 largeur mini PC ≈ 128px */
    max-width: 100%;
    font-size: 0.875rem;
    font-weight: 600;
    color: blue;
    border-radius: 0.3125rem;
    border: 0.125rem solid blue;
    background-color: white;
}

/* Placeholder */
#F::placeholder {
    color: blue;
    font-size: 0.875rem;           /* 14px */
    font-style: italic;
    font-weight: 600;
}

#resetMap, .trafic, .radar {
    padding: 0.205rem;
    width: 13rem;               /* 🔥 EXACTEMENT la même largeur que #F */
    max-width: 100%;
    font-size: 0.875rem;
    font-weight: 600;
    font-style: italic;
    border-radius: 0.3125rem;
    border: 0.125rem solid blue;
    background-color: white;
    color: blue;
    cursor: pointer;
    white-space: nowrap;          /* 🔥 icône + texte sur une ligne */
}


/* ---- CONTENEUR GOOGLE MAPS ---- */
.custom-infowindow {
  background: #f8f8ff;
  padding: 0 !important;
  width: auto !important;
  max-width: 70vw !important;
  border-radius: 8px !important;
  border: 2px solid blue !important;
}

/* ---- BOÎTE GOOGLE MAPS ---- */
.custom-infowindow .gm-style-iw {
  overflow: visible !important;
  background: #f8f8ff;
  padding: 5px !important;
  width: auto !important;
  max-width: 90vw !important;
  border: 2px solid blue !important;
  border-radius: 8px !important;
}

/* ---- CORRECTION MOBILE CRITIQUE ---- */
.gm-style-iw-c,
.gm-style-iw-d {
  width: auto !important;
  max-width: 90vw !important;
  overflow: visible !important;
  min-width: 0 !important;
}

.gm-style-iw-chr {
  display: none !important;
}

.custom-infowindow .gm-style-iw-d {
  overflow: visible !important;
  padding-right: 0 !important;
  margin-right: 0 !important;
}
/* Force le conteneur natif de Google à ne plus gérer le scroll */
.gm-style .gm-style-iw-c div.gm-style-iw-d {
  overflow: unset !important; /* ou 'hidden' selon votre préférence */
}

.gm-style .gm-style-iw-c {
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
}

.custom-infowindow .gm-style-iw-d {
  padding: 0 !important;
  margin: 0 !important;
}


/* Optionnel : Supprime le padding par défaut si l'espace persiste */
.gm-style .gm-style-iw-c {
  padding-right: 0 !important;
    border: 2px solid #0000ff !important; /* Mettez le bleu de votre choix */
  box-shadow: none !important; 
}
/* Change la couleur de la flèche (le pointeur du bas) */
.gm-style .gm-style-iw-t::after, 
.gm-style .gm-style-iw-tc::after {
  background: #007bff !important;
}

/* ---- CONTENU GLOBAL ---- */
.infowindow-content {
  max-width: 250px;
  padding: 2px 4px;
}
.gm-style .gm-style-iw-t::after {
  background: #007bff !important;
}

/* ---- HEADER FIXE ---- */
.infowindow-header-actions {
  display: flex;
  gap: 5px;
  justify-content: space-around;
  align-items: center;
  background: #f8f8ff;
  padding: 6px 0;
  border-bottom: 1px solid #ddd;
}

.btn-fermer {
  font-size: 12px;
  color: red;
  background-color: white;
  border: 2px solid #007bff !important;
  padding: 2px;
  border-radius: 4px;
  cursor: pointer;
}

.btn-deplacer, .btn-meteo {
  font-size: 12px;
  font-weight: 700;
  color: #007bff;
  background: none;
  border: 2px solid #007bff !important;
  border-radius: 4px;
  padding: 2px;
  cursor: pointer;
}

.infowindow-meteo {
    display: none;
    width: 100%;      /* 250px → 25rem si base 10px */
    padding: 0.25rem;
    font-size: 0.75rem;
    font-weight:700;
    line-height: 1rem;
  color: #007bff;
  background: none;
}

/* ---- ZONE SCROLLABLE ---- */
.infowindow-scroll {
  overflow-y: auto;
  overflow-x: hidden;
  max-height: 180px;
  margin-right: 0;
  padding-right: 0;
}

/* ---- TITRES ---- */
.infowindow-content > h2 {
  margin: 5px;
  font-size: 16px;
  color: red;
}

.infowindow-content h3 {
  margin: 5px;
  font-size: 12px;
  color: blue;
}

/* ---- COORDS ---- */
.infowindow-coords {
  font-size: 12px;
  font-weight: bold;
  color: red;
  margin: 4px 0;
  text-align: center;
}

.infowindow-pic {
  width: 228px !important;
  max-width: 228px !important;
  overflow: hidden;
}

/* ---- IMAGE ---- */
.infowindow-img,
.infowindow-image img {
  max-width: 228px !important;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 5px;
}

/* ---- PARAGRAPHES ---- */
.infowindow-content p {
  background-color: #f0f4ff;
  color: #333;
  padding: 4px;
  border-radius: 5px;
  font-size: 13px;
  margin: 5px 0;
}

/* ---- DRAPEAU ---- */
.flag-icon {
  width: 15px !important;
  border-radius: 0 !important;
}

#info-flag svg {
  width: 20px;
  height: 14px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 4px;
}

/* ---- INPUT ---- */
input[type="text"].inputdir {
  margin-top: 8px;
  color: blue !important;
  font-size: 13px !important;
  width: 200px !important;
  height: 20px !important;
}


/* ---- BOUTON ITINÉRAIRE ---- */
.itineraire-btn {
  font-size: 13px !important;
  color: blue;
  margin-top: 4px;
  border: none;
  background-color: white;
}

.infowindow-parcours-title {
  display: flex;
  justify-content: center;
  align-items: center;   /* aligne parfaitement icône + texte */
  gap: 8px;
  border-top: 1px solid #ccc;
  padding-top: 8px;
}

.parcours-title-icon {
  display: flex;
  align-items: center;   /* centre le SVG dans son wrapper */
}

.parcours-title-icon svg {
  height: 24px;          /* taille visible, pas minuscule */
  width: auto;
  display: block;        /* évite la descente sur la ligne de base */
  margin-top: -2px;      /* remonte légèrement pour un alignement parfait */
}

.infowindow-parcours {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 6px;
}

.btn-parcours {
  display:flex;
  align-items:center;
  font-size: 12px;
  border: 2px solid #007bff;
  border-radius: 4px;
  color: #007bff;
  cursor: pointer;  word-break: break-word; /* évite les débordements */
}


.access-selector {margin: 10px 0;}
.access-selector select {width: 100%;padding: 4px;}
/* Style pour les marqueurs personnalisés */
.rando-depart, .rando-passage {margin-top: 10px;}
.rando-depart ul, .rando-passage ul {padding-left: 20px;margin: 0;}
.rando-depart li, .rando-passage li {font-size: 0.9em;line-height: 1.4;}

.segments-visualisation {margin-top: 8px;text-align: center;font-size: 13px;font-weight: bold;}

/* A Voir*/
.segment-badge {
  display: inline-block;
  padding: 4px 8px;
  margin: 2px;
  border-radius: 6px;
  color: white;
}
.segment-walking {
  background-color: #4CAF50;
}
.segment-driving {
  background-color: #2196F3;
}
.segment-other {
  background-color: #9E9E9E; /* gris */
}
.segment-popup {
  max-width: 320px;
}
.seg-info {
  margin: 6px 0;
  color: #555;
  font-style: italic;
}
.segment-image {
  margin: 8px 0;
}

.seg-image {max-width: 100%;height: auto;border-radius: 4px;box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.seg-actions {
  text-align: right;
  margin-top: 8px;
}
.btn-fermer-seg {
  padding: 4px 8px;
  font-size: 12px;
}
#panel,
.infowindow-content {
  z-index: 1000 !important;
  position: relative;
}
.gm-style .gm-style-iw {
  z-index: 999 !important;
}

.popup-parcours {z-index: 2147483647 !important;max-width: 260px;max-height: 430px;pointer-events: auto !important;background: white;padding: 0;border: blue 2px solid;border-radius: 10px;box-shadow: 0 4px 20px rgba(0,0,0,0.25);width: calc(100% - 40px);color: #222;}

.pp-header {
  touch-action: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 6px;
  user-select: none;
  cursor: grab;
}
.pp-header button {
  cursor: pointer;
}

.btn-deplacer-parcours, .pp-close {
    background: #007bff;
    color: #fff;
    border: none;
    padding: 5px;
    border-radius: 6px;
    font-size: 12px;
}
.popup-parcours .pp-title-content .flag svg,
.popup-parcours .pp-title-content svg {
    width: 18px;
    height: 18px;
    vertical-align: middle;
}

.popup-parcours .pp-title-content .flag,
.popup-parcours .pp-title-content img {
    display: inline-flex;
    align-items: center;
    margin-right: 6px;
}

.pp-segment-list li {
    padding: 4px 6px;
    border-bottom: 1px solid #ddd;
    cursor: pointer;
}

/* -------------------------------------------------------------
   Contenu interne
------------------------------------------------------------- */
.popup-parcours-inner {
    padding: 8px;
    max-height: 380px;
    overflow-y: auto;
}

/* -------------------------------------------------------------
   TITRE PARCOURS
------------------------------------------------------------- */
.pp-title {
    margin: 0;
    color:red;
    font-size: 16px;
    font-weight: bold;
      display: flex;
  align-items: center;
  gap: 6px;
}

.pp-meta p {
    margin: 4px 0;
    font-size: 13px;
}

.pp-recap-materiel {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-align: center;
    margin: 4px 0;
    font-size: 14px;
    font-style: italic;
    font-weight: 800;
    color: blue;
    cursor: pointer;
}
/* -------------------------------------------------------------
   LISTE DES SEGMENTS
------------------------------------------------------------- */
.pp-segments-complet {margin-top: 2px;}
.pp-segments {margin-top: 2px;color: red;padding: 6px 4px;background-color: #f0f4ff;overflow-y: auto;}

.pp-segment-details {
    margin-top: 6px;
}
.pp-segment-item {
  display: flex;font-size: 13px;
  justify-content: space-between;
  align-items: center;
  padding: 0;
}

/* Style de base du bouton */
.pp-seg-toggle-btn {
  font-size: 11px;
  padding: 2px 6px;
  color: white;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  background: #1976d2; /* valeur par défaut */
  transition: background 0.2s ease;
}

/* Bouton bleu = AFFICHER */
.pp-seg-toggle-btn[data-visible="0"] {
  background: #1976d2;
}
.pp-seg-toggle-btn[data-visible="0"]:hover {
  background: #0d47a1;
}

/* Bouton rouge = MASQUER */
.pp-seg-toggle-btn[data-visible="1"] {
  background: #d9534f;
}
.pp-seg-toggle-btn[data-visible="1"]:hover {
  background: #c9302c;
}

/* Transition du nom */
.pp-seg-name {
  transition: color 0.2s ease;
}

.pp-segments strong {display: block;margin-bottom: 6px;color:blue;font-size: 14px;}
.pp-segment-list {list-style: none;padding: 0;margin: 0; font-size: 13px;}

.pp-segment-item:hover {
    background: #e9e9e9;
}

/* -------------------------------------------------------------
   DÉTAILS DU SEGMENT
------------------------------------------------------------- */
/* Titre du segment dans les détails */
.ps-detail h4 {margin: 0;font-size: 14px;}

/* Métadonnées (distance, durée, D+, D-) */
.ps-detail p {
    margin: 3px 0;
    font-size: 13px;
}
/* Conteneur des détails */
.ps-detail {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Chaque ligne (2 éléments côte à côte) */
.ps-detail-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

/* Style des paragraphes */
.ps-detail-row p {
    margin: 0;
    font-size: 13px;
}
/* -------------------------------------------------------------
   Mode déplacement (optionnel)
------------------------------------------------------------- */
.popup-parcours.dragging {
    opacity: 0.85;
    cursor: grabbing;
}

.pp-seg-mat-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-align: center;
    margin: 4px 0;
    font-size: 14px;
    font-style: italic;
    font-weight: 800;
    color: blue;
    cursor: pointer;
}

.souspopup {
    position: absolute;
    left: 50%;
    top: 140px;
    background: #fff;
    border-radius: 10px;
    max-width: 260px;
    max-height: 430px;
    overflow: hidden;
    z-index: 999999;
    display: flex;
    flex-direction: column;pointer-events: auto !important;padding: 0;
    border:blue 2px solid;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    width: calc(100% - 40px);
    color: #222;
}
.souspopup-header {
  touch-action: none;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 4px 6px;
  user-select: none;
  cursor: grab;
}
.souspopup-header button {
  cursor: pointer;
}
.btn-deplacer-souspopup, .souspopup-close {
    background: #007bff;
    color: #fff;
    border: none;
    padding: 5px;
    border-radius: 6px;
    font-size: 12px;
}

.souspopup-title {
    margin: 5px auto;
    color: #c00;
    font-size: 18px;
    font-weight: 600;
}

.souspopup-content {
    padding: 16px;
    overflow-y: auto;
}
.pack-block {
    margin-bottom: 18px;
}

.pack-block h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
}

.pack-block p {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    color: #555;
    white-space: pre-line; /* pour respecter les retours ligne */
}

.hidden {
    display: none;
}
.custom-zoom-button { background-color: white; border: 2px solid #000; width: 30px; height: 30px; cursor: pointer; font-size: 18px; margin: 2px; text-align: center; line-height: 26px; } 
.custom-zoom-button:hover { background-color: #f1f1f1; }

.bubble {background: #fff;border: 1px solid #333;border-radius: 6px;padding: 2px 6px;font-size: 12px;white-space: nowrap;box-shadow: 0 2px 6px rgba(0,0,0,0.3);}
.bubble-start { color: green; font-weight: bold; }
.bubble-end   { color: red; font-weight: bold; }

.bubble-alert {
  background: #fff3cd;
  border: 1px solid #856404;
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 11px;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* PANNEAU GLOBAL */
.itineraire-panel {
  position: absolute;
  width: 260px;
  background: white;
  border: 2px solid blue;
  padding: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  border-radius: 5px;

  pointer-events: auto !important;

  /* 🔥 IMPORTANT : panneau caché au départ */
  display: none;

  max-height: 430px;
  overflow: hidden;

  /* Layout interne : header fixe + contenu scrollable */
  flex-direction: column;
}

/* Quand on veut l’afficher */
.itineraire-panel.visible {
  display: flex !important; /* au lieu de block */
}

.itineraire-panel.open {
  z-index: 1000;
}


/* HEADER DRAGGABLE */
.drag-header {
  cursor: move;
  display: flex;
  gap: 4px;
  justify-content: center;
}

.drag-header button {
  padding: 4px;
  background: #007bff;
  color: #fff;
  border: none;
  font-size: 12px;
  cursor: pointer;
  border-radius: 4px;
}

/* PARTIE FIXE (boutons, modes, QR) */
.itineraire-share {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  margin-top: 0;
}

.itineraire-share button {
  font-size: 12px;
  padding: 2px 6px;
  color: blue;
  background: white;
  border: none;
}

.itineraire-share div {
  margin: 0;
}

.qr-code-container {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.qr-code-canvas {
  width: 100px;
  height: 100px;
  border: 1px solid #ccc;
}

/* TRANSPORT SELECTOR */
.transport-selector {
  margin: 10px 0;
  text-align: center;
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.transport-selector button {
  font-size: 12px;
  height: 20px !important;
}

.transport-selector button.active {
  background-color: #007bff;
  color: white;
  border-radius: 4px;
}

/* HEADER FIXE DU PANNEAU */
.itineraire-panel-header {
  margin: 5px 0;
  text-align: center;
  background: #f8f8ff;
  font-size: 15px;
  font-weight: bold;
  user-select: none;
}

.itineraire-panel-header span {
  font-size: 12px;
  color: #0074d9;
}

/* 🟦 ZONE SCROLLABLE UNIQUEMENT */
.itineraire-panel-scroll {
  overflow-y: auto;
  flex: 1;
  padding-right: 6px; /* évite que le scroll masque le texte */
}

/* ÉTAPES */
.itineraire-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: 100%;
  overflow-x: hidden;
}

.itineraire-steps li {
  padding: 6px;
  font-size: 13px;
  margin-bottom: 5px;
  color: #333;
  background: #f0f4ff;
  border-left: 3px solid #007bff;
  border-radius: 4px;
}

.step-header {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.alert-peage {color: red;font-weight: bold;}
.alert-travaux {color: orange;font-weight: bold;}
.alert-fermeture {color: gray;font-weight: bold;}
.step-line {display: flex;align-items: flex-start;gap: 8px;flex-wrap: nowrap;}

.step-label {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.step-number {
  font-weight: bold;
  color: #333;
}
.icon-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.direction-icon {
  font-size: 16px;
  font-weight: bold;
  color: #007BFF;
  display: inline-block;
  width: 20px;
  text-align: center;
}
.mot-danger {
  color: #c00;
  font-weight: bold;
}
.danger-icon {
  margin-left: 6px;
  font-size: 1.2em;
  color: #c00;
}

.instruction-text {
  font-weight: 500;
  color: #222;
  flex: 1;
  word-break: break-word;
}

.step-meta {
  font-size: 12px;
  color: #666;
}

.gm-style {
    z-index: 1 !important;
}

.gm-style > div {
  box-shadow: none !important;
  margin: 0 !important;
}

.gm-style-mtc {
  transform: scale(0.8) !important;
  margin-top: 1px !important;
}

.gm-style-mtc button,
.gm-style-mtc select {
  font-size: 18px !important;
  font-family: Times, serif !important;
  padding: 5px 7px !important;
  border-radius: 5px !important;
  color: blue !important;
  border: 1px solid #ccc !important;
  background: white !important;
  width: 100px !important;
  
}

.ouvrir-icon {
    width: 16px;
    height: 16px;
    opacity: 0.7;
    color: blue;
}

#map-tooltip {position:absolute;width:250px;
        display:none;
        background:rgba(21,101,192,0.9);
        color:#fff;
        padding:6px;
        border-radius:6px;
        font-size:12px;
        font-family:sans-serif;
        line-height:14px;
        pointer-events:none;
        z-index:9999;}

#profil-altimetrie {width: 100%; margin: 12px auto; height: auto;
            display: none; position: relative; box-sizing: border-box; overflow-x: auto;
          margin: 5px 0}

