:root {
  --bg: #0f172a;   /* bleu foncé */
  --text:  #f1f5f9; /* gris clair #f1f5f9; */
  --accent: #22c55e; /* vert */
}
a {
    text-decoration: none;
	color:rgb(222,195,129);
	cursor: pointer;
}
div.dynamic-load {
    height: auto;
    vertical-align: top;
}
.section-tag {
  font-size: 0.8em;
  color: var(--accent);
  padding: 2px 5px;         /* réduit le padding vertical */
  margin-top: -15px;          /*  remonte l’indicateur vers le titre */
  background: #1e3a8a; /* même couleur que le header  */

  border-bottom: 1px solid rgba(255,255,255,0.05);
}

section h3::before {
  content: "";
  display: block;
  width: 100%;
  height: 3px;
  background: rgba(30, 197, 94, 0.4); /* ligne discrète sur fond sombre */
  margin-bottom: 10px; /* espace entre la ligne et le titre */
}
body {
  margin: 0;
  font-family: sans-serif;
  background: var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
}

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #1e3a8a;
  color: white;
  backdrop-filter: blur(6px);
}


.macouleur {
  border-radius: 3px;
  box-sizing: border-box;
  background-color: #fff;
  margin: 0 10px;
  border: 1px solid white;
  height: 35px;
}
/* couleurs utilitaires */
.vert       { color: #006600; }
.rouge      { color: #FF0000; }
.marron     { color: #CE8413; }
.bleu       { color: #0000FF; }
.blanc      { color: #FFFFFF; }
.orange     { color: #FF8000;  }
.neige      { color: #7793e6; }
.fond_jaune { color: #FFFFCC; }
.violet     { color: #A82BA8; font-weight: bold; }
.marron_jaune { color: #B37604; font-weight: bold; }
.vert_gras    { color: #336600; font-weight: bold; }
.rouge_gras   { color: #FF0000;  font-weight: bold; }
.neige_gras   { color: #7793e6;  font-weight: bold; }

.nav-container1 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  
  padding: 10px 16px;           /* vert horiz */
}
/* Barre du haut : titre + hamburger */
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: #1e3a8a;
  white-space: nowrap;
  overflow: hidden;
}
.retrait {
    padding-left: 40px;
	/* padding-left: -10px; */
	 margin-top: -12px;
	  
}
/* Titre du site */
.brand {
  white-space: nowrap;           /* Empêche le retour à la ligne */
  overflow: hidden;              /* Cache le débordement */
  text-overflow: ellipsis;       /* Ajoute "..." si trop long */
  flex: 1;                        /* Prend tout l’espace disponible */
  font-size: 1.3rem;
  max-width: 100%;
  font-weight: bold;
}

.smaller {
  font-size: 0.7em;
  line-height: .8em;
  color : #999999;
}

.small {
  font-size: 0.8em;
  line-height: 0.9em;
  color : #999999;
}

.texte {
  text-align: justify;
    font-size: 0.9em;
    line-height: 1em;
    color : #999999;
    margin: 0 0 0 0;
}

.img-left{
    float: left;
    /*width: 20%;            proportionnelle (changeable) */
    max-width: 400px;      /* limite sur grands écrans */
    height: auto;
    margin: 0 12px 12px 0; /* espacement entre image et texte */
    display: block;
  }
  
  .img-left1{
    float: left;
    /*width: 20%;            proportionnelle (changeable) */
    max-width: 400px;      /* limite sur grands écrans */
    height: auto;
    margin: 0 12px 12px 0; /* espacement entre image et texte */
    display: block;
	background-color: white;
  }
  .cadre_blanc{
    
	background-color: white;
  }
  
.bloc-flottant {
  margin-bottom: 30px;
}

.bloc-flottant::after {
  content: "";
  display: table;
  clear: both;
}
  
p{
    text-align: justify;
    font-size: 0.9em;
    line-height: 1em;
    color : #999999;
    margin: 0 0 0 0;
  }
  
.bloc-image-texte {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.bloc-image-texte img {
  display: block;
}

.texte-justifie {
  flex: 1;
  text-align: justify;
  min-width: 250px;
}
  /* texte justifié */
  

  /* clear pour éléments suivants si nécessaire */
  .clearfix::after{
    content: "";
    display: table;
    clear: both;
  }
.titre {
  font-size: 1em;
  line-height: 1em;
  font-weight: bold;
  color : #FFD700;
  text-align:center;
   margin-top: 40px;
}
.soustitre {
  font-size: 0.8em;
  line-height: 0.8em;
  font-weight: bold;
  color : #FFD700;
  text-align:center;
}
.hamburger {
  font-size: 1.5rem;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
}

.image-texte1 {
  display: flex;          /* met image + texte côte à côte  centre verticalement  espace entre image et texte */
  align-items: center;    
  gap: 10px;              
  text-decoration: none;
  color: rgb(219, 210, 26);
}
.image-texte {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.image-texte img {
  display: block;
}

.image-texte .texte {
  flex: 0 1 auto;
  max-width: 500px;
  text-align: justify;
}

nav {
  display: none;
  flex-direction: column;
  color: var(--accent);
  background: rgba(30, 58, 138, 0.95);  /*rrgba(30, 58, 138, 0.95)*/
}

nav a {
  padding: 5px 16px;
  color: *var(--text);
}

nav a:hover {
  background: rgba(255,255,255,0.8);
  color: var(--accent);
}

/* Menu déroulant */
nav#menu {
  display: none;
  flex-direction: column;
  background: rgba(237, 237, 230, 0.85);
  border: 3px solid #22c55e; /* bleu comme fond titre */
  border-radius: 8px;         /* optionnel : coins arrondis */
  padding: 7px;              /* espace intérieur */
}

nav#menu a {
  padding: 10px 20px;
  color: #000; /*var(--text);*/
  text-decoration: none;
  font-size: 0.9em;
  
}
.menu-icon {
  width: 20px;
  height: 20px;
  margin-right: 8px;
  vertical-align: middle;
}

nav#menu a:hover {
  background: rgba(255,255,255,0.5);
  color: #109140;
  font-weight: bold;
}
section {
  padding: 70px 5px;         /* separation des sections */
  border-bottom: 1px solid rgba(255,255,255,0.1);
  min-height: 500px;
}
/* Supprime le padding pour la première section */
section:first-of-type {
  padding-top: 0;
}
section h3 {
  margin-top: 0;
  color: var(--accent);
}



.table-alt {
  display: grid;
  gap: 2px;
  margin-top: 5px;
}

.row {
  background: rgba(255,255,255,0.04);
  padding: 12px;
  border-radius: 10px;
  font-size: 0.95rem;
}

.row.full {
  grid-column: 1 / -1;
}

/* ------------------------------ */
/* GRILLE RESPONSIVE ET ALIGNEMENT */
/* ------------------------------ */

/* 1. Définition responsive de .row.split */
.row.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: left;
}

/* Deux colonnes au-dessus de 600px */
@media (min-width: 300px) {
  .row.split {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 300px) {
  .image-texte {
    flex-wrap: wrap;
  }

  .image-texte img {
    max-width: 100%;
    height: auto;
  }

  .image-texte .texte {
    width: 100%;
    margin-top: 10px;
  }
}
/* 2. Images et iframes responsives */
.row.split img,
.row.split iframe,
.row.full img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 3. Liens image+texte centrés verticalement */
.row.split a,
.row.full a {
  display: inline-flex;
  align-items: left;
  gap: 2px;
  text-decoration: none;
}

/* 4. Fallback pour anciens navigateurs */
.row.split a img,
.row.full a img {
  vertical-align: middle;
  margin-right: 2px;
}

/* Style des cellules internes (garde ta mise en forme existante) */
.row.split > div {
  background: rgba(255,255,255,0.06);
  padding: 10px;
  border-radius: 8px;
  text-align: left;
}
/* 1. On neutralise le max-width générique sur les .icon */
.row.split img.icon,
.row.full img.icon {
  max-width: none;
}

/* 2. On fixe une taille qui te convient */
img.icon {
  width: 1.6rem;      /* ou 24px, ou clamp(20px,4vw,40px) selon ton goût     height: auto;*/
  
  vertical-align: middle;
  margin-right: 0.2em; /* espace si placée dans un lien inline-flex */
}
img.mf {
  width: 6rem;      /* ou 24px, ou clamp(20px,4vw,40px) selon ton goût     height: auto;*/
  
  vertical-align: middle;
  margin-right: 0.2em; /* espace si placée dans un lien inline-flex */
}
/* 1. On annule le max-width générique sur les images dans les liens */
.row.split a img,
.row.full a img {
  max-width: none;
}

/* 2. On fixe une taille uniforme pour les icônes/images 
.row.full a img {
  width: 1.5rem;          /* à ajuster (ex. 1.5rem, 2.5rem) 
  height: 1.5rem;         /* même valeur que width pour carré parfait 
  object-fit: contain;  /* respecte le ratio de l’image 
}*/

/* 3. Si tu veux cibler uniquement la section Observation */
#observation .row.split a img,
#observation .row.full a img {
  width: 2rem;
  
}
.carte-blanche {
  background: #e5e7eb;
  padding: 8px;
  border-radius: 20px;
  display: inline-block;
  box-shadow: 0 0 4px rgba(0,0,0,0.2);
}

.carte-blanche img {
  max-width: 100%;
  height: auto;
  display: block;
}
img.carte {
  background: #e5e7eb;
  padding: 4px;
  border-radius: 10px;
  box-shadow: 0 0 3px rgba(0,0,0,0.2);
}
.popup-explication {
  display: none;
  background: #FFFFCC;
  color: black;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-top: 8px;
  max-width: 500px;
  box-shadow: 0 0 8px rgba(0,0,0,0.2);
}

.terme {
  color: var(--accent);
  cursor: pointer;
  text-decoration: underline dotted;
}
html {
  scroll-behavior: smooth;
}
.slideshow-container {
  position: relative;
  max-width: 800px;
  margin: auto;
  overflow: hidden;
}

.diapo {
  display: none;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 24px;
  background-color: rgba(0,0,0,0.5);
  border-radius: 50%;
  user-select: none;
  transform: translateY(-50%);
  z-index: 10;
}

.prev { left: 10px; }
.next { right: 10px; }

.menu-divider {
  width: 90%;
  border-top: 2px solid #999;
  margin: 5px auto;
  content: "";
  display: block;
}

#menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;

  max-height: 600px;       /* Limite la hauteur visible */
  overflow-y: auto;        /* Active l’ascenseur si nécessaire */
  padding-right: 10px;     /* Évite que le scroll cache le texte */
}
.sous-menu {
  margin-left: 25px;
  font-size: 0.80em;
  display: flex;
  flex-direction: column;
  gap: 0px;
}

.sous-menu a {
  color: #666;
  text-decoration: none;
}

.sous-menu a:hover {
  text-decoration: underline;
  color: #333;
}
.sous-motscles {
  font-size: 0.85em;
  color: #666;
  margin-left: 5px;
  margin-top: 0px;
  line-height: 1;
  white-space: nowrap;
}
.sous-motscles a {
  text-decoration: none;
  color: #666;
           /* supprime tout espacement */
  padding: 0!important;        /* supprime tout remplissage */
  display: inline;   /* assure que les liens restent sur la même ligne */
  border: none;
  /*font-size: inherit;*/
   margin-right: 12px;
}


.sous-motscles a:hover {
  text-decoration: underline;
  color: #333;
}
.anchor-offset {
  display: block;
  height: 1px;
  margin-top: -60px;
  scroll-margin-top: 70px;
  

[id^="canicule"],[id^="gelee"],[id^="classement"],[id^="sec"],[id^="humide"], [id^="classt"],
[id^="RRmax"],[id^="TnTx"],[id^="fiche"],[id^="mens"]
{
  margin-top: 20px;
  padding-top: 10px;
  min-height: 10px;
}  
select {
  padding: 0px;
  font-size: .8em;
  border-radius: 5px;
  background-color: #f0f8ff;
}
select#choix_image {
  width: 50%;               /* pleine largeur sur mobile */
  max-width: 300px;          /* limite sur grands écrans */
  background-color: #f0f8ff; /* couleur de fond douce (bleu clair) */
  color: #333;               /* couleur du texte */
  padding: 0px;             /* espace intérieur */
  font-size: 0.7em;            /* taille du texte */
  border: 1px solid #ccc;    /* bordure légère */
  border-radius: 10px;        /* coins arrondis */
  box-shadow: 1px 1px 4px rgba(0,0,0,0.1); /* ombre légère */
}
form {
  display: flex;
  flex-direction: column;
  align-items: left;
}