:root {
  --font-main-1: "IBM Plex Sans", sans-serif;
  --police-alt: "Overpass", sans-serif;

  --colour-main-1: #D6D2D2;
  --colour-main-2: #F1E4F3;

  --colour-main-3: #0e79b2;
  --colour-main-4: #bf1363;
  --colour-main-5: #f39237;
  --colour-main-6: #CDEAC0;
  --colour-main-7: #0e79b2;
  --colour-main-8: #EEE5E9;

  --colour-indigo-01: #2B303A;
  --colour-indigo-02: #585481;
  --colour-greyBlue: #414361;
  --colour-softGreen: #0B6E4F;
  --colour-mint-01: #63A375;

  --colour-alpha-1: #FFEED0;  /* beige */
  --colour-alpha-2: #2D7152;  /* vert */
  --colour-alpha-3: #2571C1;         /* bleu */
  --colour-alpha-3: #26408B;         /* bleu foncé */
  --colour-alpha-4: #4b0082;         /* indigo */

  --colour-beta-1: #F2542D; /* rouge */
  --colour-beta-3: #D52941; /* rusty red */
  --colour-beta-2: #0E9594; /* cyan foncé */

  --theme-ui-colour-text-main: #333;


  /* from mirande */

  --theme-ui-colour-mirande-lightBeige: #f5f3ee;
  --theme-ui-colour-mirande-beige: #E2D8CC; /* utilisé pour les ombres, notam */

  --niceGreen: #66b26b;
  --paleGreen: #6b8483;
  --lightGreen: #d9e4e0;
  --semiLightGreen: #347362;
}




/* 
    CLASSES DE MODIFICATIONS MINEURES
*/

.caps {
  text-transform: uppercase;
}





/*
    C'EST PARTI
*/

html,
body {
  margin: 0;
  padding: 0;
  border: none;
  width: 100%;
}

#app {
  min-height: 200vh;
  /*background-color: var(--colour-alpha-1);*/
  background-color: var(--theme-ui-colour-mirande-lightBeige);
  font-family: var(--font-main-1);
  font-size: 18px;
  /*color: #191923;*/
  color: var(--theme-ui-colour-text-main);

  text-align: left;
}








h1.main {
  color: var(--colour-indigo-01);
}

.fiche h2 {
  font-family: var(--police-alt);
  font-size: 2rem;
}

.heading-sec-topPg {
 //del
}



.feedback-icon {
  height: 24px;
  margin-top: 1rem;
}

input.valid {
  border-color: green;
}
input.invalid {
  border-color: red;
}

button {
  display: block;
  margin-top: 1.5rem;
  background-color: var(--colour-mint-01);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
button:hover {
  background-color: #0c5c8a;
}
button.hidden {
  display: none;
}

/* Page PDS spécifique */

.fiche-header h1 {
  font-size: 2rem;
  color: #bf1363;
  margin-bottom: 1rem;
}



.map {
  width: 100%;
  height: 250px;
  background-color: #eee;
  border-radius: 12px;
  margin-bottom: 1rem;
}

#indicesList li {
  list-style: none;
  background-color: #f39237;
  color: white;
  padding: 0.5rem;
  margin-bottom: 0.5rem;
  border-radius: 6px;
  cursor: pointer;
}

#indicesList li.revealed {
  background-color: #0e79b2;
}


input.valid {
  border: 2px solid green;
  background-color: #eaffea;
}

input.error {
  border: 2px solid red;
  background-color: #ffeaea;
}

@keyframes fall {
  to {
    transform: translateY(100vh) rotateZ(360deg);
    opacity: 0;
  }
}




.site-photo {
  max-width: 200px;
}




/*
    SECTIONS GÉNÉRIQUES EN CARTE
*/

.sect {
  width: 100%;
}

.sect-struct-perim {
  margin-top: 5rem;
}

.sect-struct-contenu {
  box-sizing: border-box;
  width: 100%;
  padding: 0 0.5rem;
}

.sect-box-highlight {
  background-color: var(--colour-main-6);
}






/*
    SECTION "INTRODUCTION DE LA PAGE"

*/

.ttl-1-1 {
  font-family: frei, sans-serif;
  font-weight: 900;
  font-size: 1rem;
}

.ttl-1-1 .ln-1,
.ttl-1-1 .ln-2 {
  display: block;
}

.sect-name-intro {
  /*height: 100vh;*/
  width: 100%;
  background-image: url(../assets/img/bg-001.jpg);
  background-size: cover;       /* pour que l’image remplisse tout, quitte à être coupée */
  background-repeat: repeat;    /* l’image se répète */
  background-position: center;  /* pour centrer l’image */
  text-align: center;
}





/*
    SECTION "NIVEAU DE DÉTAILS DE LA FICHE"

*/

/* cacher le buton radio : */
.vue-niveau_affichage-perim input[type="radio"] {
  display: none;
}

.vue-niveau_affichage-perim {
  list-style: none;
  margin: 0;
  padding: 5px;
  border: 1px solid #e7ded2;
  border-radius: 10px;
  background-color: #f9f1e7;
  text-align: left;
}

.vue-niveau_affichage-item {
  display: block;
  margin-top: 5px;
  
  background-color: transparent;
}

.vue-niveau_affichage-item:first-of-type {
  position: relative;
  margin-top: 0;
}

/*.vue-niveau_affichage-item:first-of-type::after {
  content: "▼";
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  background-color: black;
  color: white;
}*/

.vue-niveau_affichage-item label {
  display: block;
  padding: 10px 15px;
  border-radius: 10px;
  background-color: transparent;
  cursor: pointer;
  font-weight: 600;
}

.vue-niveau_affichage-item input:checked + label {
  background-color: #fff;
}










.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  cursor: pointer;
}

.btn-more {
  background-color: var(--colour-beta-1);
  color: #fff;
}








/*
    SECTION "ENTRER LE MOT CODE"
*/

.input-motCode {
  outline: none;
  display: block;
  box-sizing: border-box;
  margin: 0 2rem;
  padding: 0 2rem;
  width: calc(100% - 2*2rem);
  background-color: transparent;
  border: 1px solid #fff;
  border-radius: 15px;
  font-family: var(--font-main-1);
  font-weight: 700;
  /*font-size: 4rem;*/
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
}

.input-motCode::placeholder {
  text-transform: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  font-family: inherit;
  font-weight: inherit;
  text-align: inherit;
}




/*
    SECTION "SITE DE LA CACHE"
*/

.sect-site-ttl-pt1 {
  display: inline-block;
  background-color: #000;
  color: #fff;
  text-transform: uppercase;
  font-size: 1rem;
  padding: 0.4rem 0.7rem;
  line-height: 1;
  text-align: left;
}

.sect-site .figure-photo {
  width: 100%;
  margin: 0;
  padding: 0;
}

.sect-site .photo-itm {
  display: block;
  max-width: 100%;
}

.sect-site .photo-caption {
  text-align: right;
  width: 100%;
  margin: 0;
  padding: 0;
  font-size: 0.8rem;
  font-style: italic;
}

/* Pour l'animation de l'image pendant le scroll, en combinaison avec JS */

.fade-in {
  opacity: 0;
  transform: translateX(-70px);
  transition: opacity 1.5s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateX(0);
}





/*
    MEGA MENU
*/

#app {
  position: relative;
}

.megaMenu-displayToggle {
  display: none;
}

.menu-btn-open {
 /* position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1001;*/
  background: red;
  color: yellow;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  cursor: pointer;
}

.menu-btn-close {
  margin-top: 3rem;
  background: #333;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  cursor: pointer;
}

.megaMenu {
  position: fixed;
  inset: 0;
  background: pink;
  color: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 1000;
}

#menu-toggle:checked ~ .megaMenu-wrapper .megaMenu {
  opacity: 1;
  pointer-events: auto;
  height: 100vh;
  overflow: hidden;
}









.gauge-track {
  position: relative;
  width: 200px;
  height: 8px;
  background: linear-gradient(to right, #4caf50, #ffeb3b, #f44336); /* vert → jaune → rouge */
  border-radius: 4px;
  margin: 1rem 0;
  --value: 50; /* Valeur entre 0 et 100 */
}

.gauge-track::after {
  content: '';
  position: absolute;
  top: 50%;
  left: calc(var(--value) * 1%);
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  background-color: #333;
  border: 2px solid white;
  border-radius: 50%;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
}




.gauge-container {
  width: 100%;
  max-width: 100%;
  margin: 2rem 0;
  font-family: sans-serif;
}

.gauge-track {
  position: relative;
  width: 100%;
  height: 0.6em;
  background: linear-gradient(to right, #4caf50, #ffeb3b, #f44336);
  border-radius: 999px;
  --value: 50;
}

.gauge-track::after {
  content: '';
  position: absolute;
  top: 50%;
  left: calc(var(--value) * 1%);
  transform: translate(-50%, -50%);
  width: clamp(0.8em, 3vw, 1.2em);
  height: clamp(0.8em, 3vw, 1.2em);
  background-color: #333;
  border: 2px solid white;
  border-radius: 50%;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
}

.gauge-marks {
  position: relative;
  margin-top: 0.5em;
  height: auto;
  font-size: 0.8em;
}

.tick {
  position: absolute;
  left: var(--pos);
  transform: translateX(-50%);
  white-space: normal;
  text-align: center;
  max-width: 4em;
  font-size: clamp(0.6rem, 2vw, 0.8rem);
  color: #444;
}

/* Libellé tout à gauche */
.tick:first-child {
  transform: translateX(0); /* aligné à gauche sans déborder */
  text-align: left;
}

/* Libellé tout à droite */
.tick:last-child {
  transform: translateX(-100%); /* aligné à droite sans déborder */
  text-align: right;
}



















