.hidden {
  display: none !important;
}

/* ---------------------- RESET ---------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ---------------------- GLOBAL ---------------------- */
body {
  font-family: Arial, sans-serif;
  background: #f6f6f6;
  line-height: 1.4;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

header {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #222;
  color: #fff;
  padding: 0.5rem 1rem;
}

.logo {
  height: 40px;
}

footer {
  text-align: center;
  padding: 0.5rem;
  background: #f6f6f6;
  font-size: 0.9rem;
}

/* ---------------------- MAP ---------------------- */
#map {
  height: 400px;
  width: 100% !important;
  max-width: 100%;
  display: block;
  margin-bottom: 20px;
}

canvas {
  max-width: 100%;
  display: block;
  position: relative;
}

/* ---------------------- FORMULAIRE ---------------------- */
#search-form {
  display: flex;
  gap: 0.5rem;
  padding: 1rem;
}

#search-form input {
  flex: 1;
  padding: 0.4rem;
}

.address-container {
  display: flex;
  align-items: center;
  width: 100%;
  margin-bottom: 5px;
}

#address-input {
  flex-grow: 1;
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px 0 0 4px;
  background-color: rgba(0, 123, 255, 0.08);
}

.note {
  font-size: 0.8em;
  color: #666;
  margin-bottom: 20px;
}

input[type='text'],
input[list],
select {
  background-color: rgba(0, 123, 255, 0.08);
  border: 1px solid #ccc;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 14px;
  outline: none;
  transition: border 0.2s;
}

input[type='text']:focus,
input[list]:focus,
select:focus {
  border-color: #007bff;
}

select {
  padding: 6px 10px;
  font-size: 1rem;
  border-radius: 5px;
}

/* ---------------------- SLIDERS ---------------------- */
.slider-grid {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 10px;
}

.slider-grid .row-1,
.slider-grid .row-2 {
  display: flex;
  gap: 10px;
}

.slider-grid .row-1 .slider-container:first-child {
  flex: 2;
}

.slider-grid .slider-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 0;
}

.slider-container label {
  display: block;
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 2px;
}

.slider-container input[type='range'] {
  margin: 0;
  padding: 0;
  height: 20px;
  width: 100%;
}

.slider-value {
  display: inline-block;
  padding: 3px 8px;
  background-color: rgba(255, 165, 0, 0.4);
  border-radius: 6px;
  font-weight: bold;
  margin-left: 5px;
  font-size: 1rem;
}

.unit {
  font-weight: normal;
  font-size: 0.85rem;
}

/* ---------------------- Inputs Choix1 OBSTACLE ---------------------- */
.styled-input {
  background-color: rgba(0, 123, 255, 0.08);
  border: 1px solid #ccc;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 14px;
  outline: none;
  transition: border 0.2s;
  width: 80px;
}

/* ---------------------- BOUTONS ---------------------- */
button {
  background-color: #1976d2;
  color: white;
  border: none;
  padding: 10px 16px;
  font-size: 16px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #125aa2;
}

#fetch-pvgis-button {
  display: block;
  margin: 10px auto;
}

#fetch-pvgis-button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
  opacity: 0.6;
  border: 1px solid #aaa;
}

/* ---------------------- CHARTS ---------------------- */
.charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 1rem;
}

/* ---------------------- TOOLTIP INFO ---------------------- */
.tooltip {
  position: relative;
  display: inline-block;
  margin-left: 6px;
  cursor: pointer;
}

.tooltip::after {
  content: 'i';
  background-color: #007bff;
  color: white;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 12px;
  font-weight: bold;
  display: inline-block;
  text-align: center;
}

.tooltip .tooltip-text {
  visibility: hidden;
  width: 250px;
  background-color: black;
  color: white;
  text-align: left;
  border-radius: 6px;
  padding: 5px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 13px;
}

.tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

#shadow-mask-section {
  margin-top: 40px;
}
#shadow-mask-section fieldset {
  border: 1px solid #ccc;
  padding: 1rem;
  border-radius: 5px;
  margin-bottom: 1rem;
}
#shadow-mask-section label {
  display: block;
  margin: 5px 0;
}
#shadow-mask-section input[type='number'] {
  width: 100%;
  margin-bottom: 10px;
}
#obstacle-list ul {
  list-style: none;
  padding-left: 0;
}
.chart-wrapper {
  margin-top: 30px;
}
#obstacle-list {
  padding-left: 1rem; /* pour l'indentation standard des puces */
  list-style-type: disc; /* pour des puces classiques (ou 'none' si tu préfères sans) */
}
input[type='file'] {
  font-family: inherit;
  font-size: 1rem;
  padding: 4px;
  background-color: rgba(0, 123, 255, 0.08);
  border: 1px solid #ccc;
  border-radius: 6px;
  cursor: pointer;
}

input[type='file']::file-selector-button {
  all: unset;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  margin-right: 10px;
  background-color: #1976d2;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  font: inherit;
}

input[type='file']::file-selector-button:hover {
  background-color: #125aa2;
}

input[type='file']::file-selector-button::before {
  content: '📁 ';
  margin-right: 6px;
}

#maskChart {
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  margin-top: 20px;
  margin-bottom: 20px;
}

/* Important : forcer le canvas à remplir la largeur dispo */
#fabric-canvas,
#fabric-canvas-choix2,
#fabric-canvas-choix2p {
  display: block;
  width: 100% !important;
  height: auto !important;
  margin: 0 auto;
  border: 1px solid #888;
  margin-top: 10px; /* ✅ Laisse de l’espace entre le texte et le canvas */
}

#mask-params-overlay-2,
#mask-params-overlay-2p {
  position: absolute;
  top: 10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0 8px;
  z-index: 10;
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 4px;
}

#mask-params-overlay-2 input,
#mask-params-overlay-2p input {
  text-align: center;
}

#mask-params-overlay-2 label,
#mask-params-overlay-2p label {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 13px;
  margin: 0 4px;
  white-space: nowrap;
}
#mask-params-overlay-2 input[type='number'],
#mask-params-overlay-2p input[type='number'] {
  height: 24px; /* ↘️ Diminue la hauteur totale */
  line-height: 24px; /* ↘️ Aligne verticalement le texte */
  padding: 1px 2px; /* ↘️ Moins d'espace en haut/bas */
  font-size: 14px;
  box-sizing: border-box;
  text-align: center;
  vertical-align: middle;
}

#overlay-instruction-2,
#overlay-instruction-2p {
  font-size: 16px;
  font-weight: 500;
  margin: 16px auto 6px; /* plus d’espace autour */
  text-align: left;
  color: #333;
  z-index: 2;
  position: relative;
}

.param-center {
  align-items: center;
}

#annotation-container-2,
#annotation-container-2p {
  position: relative;
  padding-top: 0px; /* ✅ pas besoin de padding ici */
}

#mask-params-overlay-2 span[class^='arrow-'],
#mask-params-overlay-2p span[class^='arrow-'] {
  font-size: 14px;
  font-weight: bold;
  color: #000;
  margin: 0 4px;
  vertical-align: middle; /* ✅ aligne avec le texte */
  display: inline-block; /* ✅ évite que ▲ saute à la ligne */
  line-height: 1; /* ✅ évite l'espacement vertical excessif */
}

.input-wrapper {
  display: flex;
  align-items: center;
  gap: 4px;
}

.input-label {
  margin-top: 2px;
  text-align: center;
}

.arrow {
  font-size: 14px;
  font-weight: bold;
  color: #000;
  line-height: 1;
}

.param-center .input-wrapper {
  gap: 2px;
}
/* Rapprocher la flèche gauche du bord gauche */
.param-left {
  align-items: flex-start;
}
.param-left .input-wrapper {
  margin-left: -8px; /* ou -6px pour plus proche encore */
}

/* Rapprocher la flèche droite du bord droit */
.param-right {
  align-items: flex-end;
}
.param-right .input-wrapper {
  margin-right: -8px; /* ou -6px si nécessaire */
}

#mask-buttons-line1-2,
#mask-buttons-line2-2,
#mask-buttons-line1-2p,
#mask-buttons-line2-2p {
  position: relative;
  margin-top: 2px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  z-index: 5;
}

#validate-mask-btn-2,
#validate-mask-btn-2p {
  margin-top: 15px;
  padding: 8px 14px;
  font-size: 15px;
  background-color: #1976d2;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
#clear-drawing-btn-2,
#clear-drawing-btn-2p {
  margin-top: 15px;
  padding: 8px 14px;
  font-size: 15px;
  background: #e53935;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  display: block !important;
}
#annotation-container-2.exporting,
#annotation-container-2p.exporting {
  width: 800px; /* ✅ même largeur que ton canvas */
  max-width: none;
  transform: scale(1); /* annule les effets responsives */
}

#horizon-adjustment-panel {
  position: absolute;
  display: none !important; /* caché au démarrage */
  background: white;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  width: auto; /* ✅ ne pas forcer toute la largeur */
  max-width: 300px; /* ✅ limite optionnelle */
}

.horizon-inner-container {
  display: flex;
  align-items: center;
}

.slider-column {
  width: 30px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0px;
  overflow: visible; /* évite que le slider soit coupé */
}

#horizonSlider {
  width: 150px;
  height: 30px;
  transform: rotate(90deg);
  transform-origin: center center; /* ✅ pivot centré */
  appearance: none;
  background: transparent;
  cursor: pointer;
}

/* slider visuel neutre et propre */
#horizonSlider::-webkit-slider-runnable-track {
  background: #ccc;
  height: 4px;
  border-radius: 2px;
}

#horizonSlider::-webkit-slider-thumb {
  appearance: none;
  height: 16px;
  width: 16px;
  background: #007bff;
  border-radius: 50%;
  border: 1px solid #444;
  margin-top: -6px;
}

#horizonSlider::-moz-range-track {
  background: #ccc;
  height: 4px;
  border-radius: 2px;
}

#horizonSlider::-moz-range-thumb {
  height: 16px;
  width: 16px;
  background: #007bff;
  border-radius: 50%;
  border: 1px solid #444;
}

.label-column {
  display: flex;
  flex-direction: column;
  justify-content: center; /* ✅ pas collé en haut/bas */
  align-items: flex-start;
  height: 150px;
  padding-left: 10px;
  gap: 40px; /* ✅ espacement entre titre et bouton */
}

.horizon-title {
  font-weight: bold;
  font-size: 16px;
}

.horizon-button button {
  padding: 6px 12px;
}

#mask-hint-banner,
#mask-hint-banner2 {
  position: absolute;
  display: none !important; /* caché au démarrage */
  background: white;
  color: #333;
  padding: 12px 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  font-weight: bold;
  font-size: 14px;
  line-height: 1;
  max-width: 250px;
  text-align: center;
  height: 210px;
}

.mask-hint-text {
  white-space: pre-line; /* permet les sauts de ligne si tu les préfères en \n */
}
.mask-hint-text span {
  font-weight: normal;
}

/*       SELECTION des MASQUES    */
/* Ligne colorée avec survol */
.radio-option {
  background-color: #fff8d1;
  padding: 8px 12px;
  border-radius: 6px;
  margin-bottom: 6px;
  transition: background-color 0.2s;
  cursor: pointer;
}
.radio-option:hover {
  background-color: #ffe998;
}

/* Label en ligne avec la case */
.radio-option label {
  display: flex;
  align-items: center;
  font-size: 14px;
  gap: 10px;
}

/* Apparence personnalisée de la case */
.radio-option input[type='radio'] {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  background-color: white;
  border: 2px solid #ccc;
  border-radius: 4px;
  position: relative;
  cursor: pointer;
  display: inline-block;
  transition: all 0.2s ease;
}

/* Contenu caché par défaut (pas de coche) */
.radio-option input[type='radio']::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 14px;
  color: orange;
  display: none;
}

/* Style quand sélectionné */
.radio-option input[type='radio']:checked {
  background-color: black;
  border-color: black;
}

/* Affichage de la coche orange */
.radio-option input[type='radio']:checked::after {
  content: '✔';
  display: block;
}
/* Cadre autour des Cases à cocher Choix de masque */
.mask-mode-container {
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 20px;
  background-color: white;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.05);
  margin: 20px auto;
}

/* HEADER */
.header-home {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 30px;
  background: #0c223f;
  color: white;
  border-bottom: 3px solid #007bff;
}

.logo-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-title img {
  height: 40px;
}

.site-title {
  font-size: 22px;
  font-weight: bold;
}

.menu-nav a {
  margin-left: 24px;
  text-decoration: none;
  color: white;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
}

.menu-nav a:hover {
  color: #ffc107;
}

/* INTRO */
.intro-text {
  text-align: center;
  margin: 50px auto 30px;
  font-size: 18px;
  line-height: 1.6;
  color: #333;
}

/* IMAGES */
.image-zone {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin: 30px auto;
}

.image-zone img {
  height: 200px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* BOUTON LANCER */
.start-button-container {
  text-align: center;
  margin-top: 40px;
}

.start-button-container button {
  padding: 14px 30px;
  font-size: 16px;
  background-color: #004080;
  color: white;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.start-button-container button:hover {
  background-color: #002a5c;
  color: white;
}

/* SECTION PRINCIPALE MASQUÉE PAR DÉFAUT */
#main-app {
  display: none;
  padding: 20px;
}

.top-banner {
  display: flex;
  align-items: center; /* Centrage vertical */
  justify-content: space-between;
  background-color: #00264d;
  padding: 10px 20px;
  color: white;
}

.top-banner .logo {
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  color: white;
  transition: color 0.3s;
  display: flex;
  align-items: center; /* 👈 Ajout important */
  height: 100%; /* 👈 Assure l'alignement */
}

.top-banner .logo:hover {
  color: #ffcc00;
}

.top-banner nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-banner nav span {
  font-weight: bold;
  font-size: 16px;
  color: white;
  cursor: pointer;
  transition: color 0.3s;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.top-banner nav span:hover {
  color: #ffcc00;
}

.logo-icon {
  height: 40px;
  vertical-align: middle;
  margin-right: 8px;
}

.site-footer {
  background-color: #00264d;
  color: #ffffffcc;
  padding: 1rem 2rem;
  font-size: 14px;
  margin-top: 3rem;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.footer-left {
  flex: 1 1 300px;
  text-align: left;
}

.footer-right {
  flex: 1 1 300px;
  text-align: right;
}

.footer-right a {
  color: #ffffffcc;
  margin-left: 15px;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-right a:hover {
  color: #ffcc00;
}

@media (max-width: 600px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .footer-right {
    margin-top: 0.5rem;
  }

  .footer-left,
  .footer-right {
    text-align: center;
  }
}

/* Bouton “Informations” pour SIMULATEUR (même bleu que les autres) */

/* Panneau : même style que info/adv */
#infoSimuPanel,
#infoSimplePanel {
  position: fixed;
  right: 16px;
  top: 80px;
  z-index: 20000;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
#infoSimuHeader,
#infoSimpleHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--accent, #0d6efd);
  color: #fff;
  padding: 8px 10px;
  margin: -10px -12px 10px;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}
#infoSimuHeader .title {
  font-weight: 600;
}
#infoSimpleHeader .title {
  font-weight: 600;
}

#infoSimuClose {
  background: transparent;
  border: 0;
  color: inherit;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
#infoSimuClose:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Corps du panneau */
#infoSimuPanel .info-body {
  font-size: 14px;
  line-height: 1.45;
  color: #222;
}
#infoSimuPanel ul {
  margin: 6px 0 8px 18px;
}

/* zones pliées dépliées INFORAMTIONS du SIMULATEUR mask.html */
/* Flèches personnalisées */
.modes-list details > summary {
  list-style: none;
  cursor: pointer;
}
.modes-list summary::-webkit-details-marker {
  display: none;
}
.modes-list details > summary::before {
  content: '▼';
  display: inline-block;
  margin-right: 8px;
  font-size: 0.9em;
}
.modes-list details[open] > summary::before {
  content: '▲';
}

/* Présentation */
.modes-list {
  margin-top: 8px;
}
.modes-list .mask-mode {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 8px 12px;
  margin-bottom: 10px;
  background: #fff;
}
.modes-list .mask-mode > summary {
  font-weight: 600;
  color: #0d6efd;
}
.modes-list .mode-body {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.45;
  color: #222;
}
.modes-list .mode-body ul,
.modes-list .mode-body ol {
  margin: 6px 0 8px 18px;
}
.modes-list .code {
  background: #f6f8fa;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12px;
  overflow: auto;
}

:root {
  --logo-size: 56px;
  --gap: 12px;
  --brand-size: 2.4rem; /* ajuste ici la taille du titre */
  --subtitle-size: 1.02rem; /* et ici le sous-titre */
}

.hero {
  margin: 0 0 12px;
  color: #004080;
}

.hero-top {
  display: flex;
  align-items: center;
  gap: var(--gap);
}

.logo-icon {
  width: var(--logo-size);
  height: auto;
}

.brand {
  margin: 0;
  font-size: var(--brand-size);
  line-height: 1.1;
  color: #004080;
}

/* Sous-titre sur sa propre ligne (sous le bloc au-dessus) */
.subtitle {
  margin: 0.35rem 0 0;
  font-size: var(--subtitle-size);
  font-weight: 600;
  color: #1f3b70;
  line-height: 1.3;
}

/* Option mobile */
@media (max-width: 480px) {
  :root {
    --logo-size: 48px;
    --brand-size: 1.55rem;
    --subtitle-size: 0.98rem;
  }
}

/* Images page Accueil */
.promo-images {
  display: flex;
  gap: 16px;
  flex-wrap: wrap; /* passe sur 2 lignes si l’écran est étroit */
  justify-content: center; /* centré */
  margin-top: 16px;
}
.promo-images figure {
  margin: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.promo-images img {
  display: block;
  width: 282px; /* largeur fixe demandée */
  height: auto; /* conserve le ratio */
  border-radius: 8px;
}
.promo-images figcaption {
  text-align: center;
  font-size: 0.9rem;
  color: #444;
  margin-top: 6px;
}
/* Tooltips des 6 points d'arrêt */
.sun-emoji {
  font-size: 20px;
  line-height: 24px;
  text-align: center;
}
.sun-label span {
  background: rgba(255, 255, 255, 0.85);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Base commune */
.leaflet-tooltip.sun-tip {
  border: none !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 12px;
}

/* Été (noir) */
.leaflet-tooltip.sun-tip-summer {
  background: #111 !important;
  color: #fff !important;
}

/* Hiver (bleu) */
.leaflet-tooltip.sun-tip-winter {
  background: #2563eb !important;
  color: #fff !important; /* ou #fff si tu veux plus de contraste */
}

/* Aujourd’hui (orange) */
.leaflet-tooltip.sun-tip-today {
  background: #f59e0b !important; /* fond doux */
  color: #111 !important;
}

/* Charts Production mois et jour sur une rangée */
.charts-row {
  display: flex;
  gap: 20px; /* espace entre les charts */
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap; /* passe en pile si < ~900px */
  width: 1030px; /* ta largeur dispo */
  margin: 0 auto;
}
/* La “carte” qui encadre TOUT (titre + 2 charts) */
.results-section {
  max-width: 1100px;
  margin: 0 auto;
  background: #fff; /* ajuste si thème sombre */
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 16px 16px 20px;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.05);
}

.chart-col {
  flex: 1 1 472px; /* ~demi-largeur, rétrécit si besoin */
  min-width: 360px; /* évite d’être trop étroit */
}

.chart-col canvas {
  width: 100% !important; /* Chart.js s’adapte au conteneur */
  max-height: 320px; /* ajuste si tu veux plus/moins haut */
}

#moisSelect {
  padding: 2px 6px; /* réduit l’espace interne */
  height: 28px; /* force une hauteur compacte */
  font-size: 14px; /* texte un peu plus petit */
  line-height: 1.2; /* aligne mieux le texte */
  border: 1px solid #ccc; /* optionnel : bord plus fin */
  border-radius: 4px; /* optionnel : coins arrondis */
}

/* Bouton + infos Météo */
.weather-control.leaflet-control {
  margin: 0 0 8px 8px;
}
.weather-ui {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Bouton carré (même gabarit que Layers), FOND BLANC */
.weather-btn-square {
  width: 42px !important;
  height: 42px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff !important;
  border: 1px solid #c8c8c8 !important;
  border-radius: 4px !important;
  cursor: pointer;
  user-select: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  font-size: 20px;
  line-height: 1;
  text-decoration: none;
  color: #111 !important;
}
.weather-btn-square:hover {
  background: #f5f5f5 !important;
}

/* Carte météo : FOND BLANC + position relative pour la croix */
.weather-card {
  margin-top: 6px;
  background: #fff !important;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 10px 12px;
  min-width: 220px;
  max-width: 280px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  font: 13px/1.35 system-ui, -apple-system, Segoe UI, Roboto, Arial;
  position: relative !important;
  opacity: 1 !important;
  backdrop-filter: none !important;
}

/* Croix unique en haut-droite — neutralise tous styles globaux de <button> */
.weather-close {
  position: absolute !important;
  top: 6px !important;
  right: 8px !important;
  border: none !important;
  background: transparent !important;
  color: #666 !important;
  width: 24px;
  height: 24px;
  padding: 0 !important;
  margin: 0 !important;
  font-size: 18px !important;
  line-height: 24px !important;
  text-align: center;
  cursor: pointer;
  appearance: none !important;
  -webkit-appearance: none !important;
}
.weather-close:hover {
  color: #000 !important;
}

/* Titre ville : bien visible */
.weather-title {
  font-weight: 800 !important;
  font-size: 15px !important;
  color: #111 !important;
  margin: 0 24px 2px 0;
}
.weather-subtitle {
  font-size: 12px;
  color: #555;
  margin-bottom: 6px;
}
.weather-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0;
}
.weather-icon {
  font-size: 22px;
}
.weather-temp {
  font-size: 18px;
  font-weight: 700;
}
.weather-row {
  display: flex;
  justify-content: space-between;
  padding: 2px 0;
}
.weather-foot {
  margin-top: 6px;
  font-size: 11px;
  color: #777;
}
.weather-small {
  color: #666;
  font-size: 24px;
}
/* Ajouts pour la flèche & mise en forme */
.weather-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 0;
}
.weather-wind {
  display: flex;
  align-items: center;
  gap: 8px;
}
.weather-wind strong {
  white-space: nowrap;
} /* évite la césure entre 43 et km/h */

/* Bloc entre parenthèses */
.wind-extra {
  display: flex;
  align-items: center;
  gap: 0px;
  font-weight: 600; /* lisible sans voler la vedette au km/h */
  color: #333;
}
.wind-extra::before {
  content: '(';
  margin-left: 2px;
}
.wind-extra::after {
  content: ')';
}

/* Flèche */
.wind-arrow {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: inline-block;
}

/* Effet hover/focus (Boutons des bandeaux Informations X FERMER) */
.info-panel .info-close:hover,
.info-panel .info-close:focus-visible {
  background: rgba(255, 255, 255, 0.15) !important; /* fond au survol */
  color: #ffffff !important; /* couleur au survol */
  outline: none !important;
}

/* Ajoute "FERMER" au survol/focus */
.info-panel .info-close::after {
  content: ''; /* par défaut rien */
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.info-panel .info-close:hover::after,
.info-panel .info-close:focus-visible::after {
  content: 'FERMER'; /* affiché au survol/focus */
}

/* Ajout pour détails bandeaux Informations le 17 septembre */
/* ✅ Rétablit des puces normales et une vraie marge à gauche */
.mode-simple-help ul {
  list-style: disc outside !important;
  padding-left: 1.25rem !important; /* indentation */
  margin: 0.4rem 0 0.7rem 0 !important;
}
.mode-simple-help ol {
  list-style: decimal outside !important;
  padding-left: 1.25rem !important;
  margin: 0.4rem 0 0.7rem 0 !important;
}
.mode-simple-help li {
  margin: 0 0 0.25rem 0 !important;
}
.mode-simple-help .lead {
  color: #333;
  margin: 0 0 0.6rem 0;
}
.mode-simple-help img,
.mode-simple-help svg {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0.25rem 0;
}
.mode-simple-help figure {
  margin: 0.5rem 0;
}
.mode-simple-help figcaption {
  font-size: 0.9rem;
  color: #555;
  margin: 0.2rem 0 0.4rem;
}
/* (optionnel) si tu veux un léger espace à droite pour le scroll */
.mode-simple-help {
  padding-right: 18px !important;
}

/* Toujours respecter l'attribut HTML hidden */
.info-panel[hidden],
#infoSimuPanel[hidden] {
  display: none !important;
}

/* Fonction Agrandissement pour détailler les images */
.zoom-pop {
  display: inline-block;
  position: relative;
}
.zoom-pop img {
  display: block;
  height: 200px; /* ta taille de base */
  transform-origin: center center;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  position: relative; /* permet le z-index */
  z-index: 1;
}
@media (hover: hover) {
  .zoom-pop:hover img {
    transform: scale(3); /* ⟵ zoom ×3 */
    z-index: 999;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
  }
}
/* (optionnel) sur mobile, pas de hover : on zoome au tap */
@media (hover: none) {
  .zoom-pop:active img {
    transform: scale(2);
    z-index: 999;
  }
}
