/* Installation des polices nécessaires */
@font-face {
  font-family: 'DejaVuSerif';
  src: url('font/DejaVuSerif.ttf') format('truetype');
  /* Ajoutez d'autres formats de police si nécessaire */

  font-weight: normal;
  font-style: normal;
}

body {
  height: 500px;
  width: 100%;
  display: grid;
  grid-template-areas:
    'header'
    'nav'
    'container'
    'footer';
  grid-template-rows: 500px 10% 1fr 10%;
  grid-template-columns: 100%;
  font-family: Calibri Light;
  margin: 0px;
}

.image-cachee {
  position: fixed;
  z-index: -1;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.texte_lien {
  cursor: pointer;
  text-decoration: underline;
}
.typo_gras {
  font-size: 18pt;
  color: rgb(0, 141, 124, 0.8);
}

.img_texte {
  height: 250px;
  width: 250px;
}

/* EN-TETE */
header {
  grid-area: header;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #ffff;
  font-size: 48pt;
  text-shadow: 4px 4px 4px rgba(0, 0, 0, 0.9);
  font-family: 'DejaVuSerif';
}

.logo_titre {
  height: 200px;
  width: 200px;
  margin-top: 50px;
}

/* ############################################################## */
/* MENU DE SELECTION */
/* ############################################################## */
nav {
  grid-area: nav;
  display: grid;
  grid-template-areas: 'section_1 section_2 section_3 section_4 section_5';
  grid-template-rows: 100%;
  grid-template-columns: auto auto auto auto auto;
}
.MyButton {
  background-color: rgb(0, 168, 149, 0.8);
  color: #ffff;
  font-size: 18pt;
  grid-area: section_1;
  width: 100%;
  height: 100%;
  cursor: pointer;
  margin: 0px;
  border: 0px;
  font-family: Calibri;
}

/* Couleur interactive */
.MyButton:hover,
.MyButton:active,
.MyButton:focus {
  background-color: rgba(
    0,
    129,
    114,
    0.8
  ); /* Nouvelle couleur de fond lors du clic et après */
}

/* BOUTONS DU MENU */
section_1,
section_2,
section_3,
section_4,
section_5 {
  grid-area: var(--grid-area);
}

/* ############################################################## */
/* ACCUEIL */
/* ############################################################## */
#container_1 {
  grid-area: container;
  background-color: rgb(255, 255, 255, 0.9);
  display: grid;
  grid-template-rows: auto auto auto;
  grid-template-columns: 1fr;
  margin: 0px;
  font-size: 14pt;
}

.part1 {
  display: grid;
  grid-template-areas: 'box_1-1 box_1-2';
  grid-template-rows: 1fr;
  grid-template-columns: 50% 50%;
  padding: 20px;
}
.box_1-1 {
  grid-area: box_1-1;
  padding: 80px;
  text-align: justify;
}

.box_1-2 {
  grid-area: box_1-2;
  font-size: 14pt;
  justify-content: center;
  display: flex;
  align-items: center;
  background-image: url('../img/mail_Jean_Monnet.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.part2 {
  display: grid;
  grid-template-areas: 'box_1-3 box_1-4';
  grid-template-rows: 1fr;
  grid-template-columns: 60% 40%;
  padding: 20px;
}
.box_1-3 {
  grid-area: box_1-3;
  justify-content: center;
  display: flex;
  align-items: center;
  background-image: url('../img/arboressences.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.box_1-4 {
  background-color: rgba(204, 204, 204, 0.5);
  grid-area: box_1-4;
  padding: 80px;
  text-align: left;
  
}

.part3 {
  display: grid;
  grid-template-areas: 'box_1-5 box_1-6';
  grid-template-rows: 1fr;
  grid-template-columns: 70% 30%;
}
.box_1-5 {
  grid-area: box_1-5;
  padding: 80px;
  text-align: justify;
}

.box_1-6 {
  grid-area: box_1-6;
  justify-content: center;
  display: flex;
  align-items: center;
}

/* ############################################################## */
/* ETAT DES LIEUX */
/* ############################################################## */
#container_2 {
  grid-area: container;
  margin: 0px;
  background-color: rgb(255, 255, 255, 0.9);
  font-size: 14pt;

  display: grid;
  grid-template-areas:
    'part2-1'
    'part2-2';
  grid-template-rows: 1fr 635px;
  grid-template-columns: 1fr;
}

.part2-1 {
  grid-area: part2-1;
  padding: 20px;
  font-size: 14pt;

  display: grid;
  grid-template-areas: 'box_2-1 box_2-1-2';
  grid-template-columns: 50% 50%;
}

.box_2-1 {
  grid-area: box_2-1;
  padding: 50px;
  text-align: justify;
}

.box_2-1-2 {
  grid-area: box_2-1-2;
  padding: 15px;
  text-align: justify;
  background-image: url('../img/chaine_des_chenes.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.part2-2 {
  grid-area: part2-2;
  font-size: 14pt;

  display: grid;
  grid-template-areas:
    'box_2-2 box_2-2 box_2-2'
    'box_2-3 box_2-4 box_2-5';
  grid-template-rows: 35px 600px;
  grid-template-columns: 295px auto 295px;
}
.box_2-2 {
  grid-area: box_2-2;
  padding-left: 15px;
  padding-right: 15px;
}

.box_2-3 {
  grid-area: box_2-3;
  text-align: justify;
  padding-top: 5px;
  padding-left: 10px;
  overflow: auto;
}

.box_2-4 {
  grid-area: box_2-4;
  padding: 30px;
  text-align: justify;
  padding: 5px;
}

.box_2-5 {
  grid-area: box_2-5;
  padding-top: 5px;
  padding-right: 10px;
}

/* ############################################################## */
/* POURQUOI PLANTER */
/* ############################################################## */
#container_3 {
  background-color: rgb(255, 255, 255, 0.9);
  grid-area: container;
  margin: 0px;
  font-size: 14pt;
  grid-template-areas:
    'part_3-1'
    'part_3-2';
  display: grid;
  grid-template-rows: 1fr 635px;
  grid-template-columns: 1fr;
}

.part_3-1 {
  grid-area: part_3-1;
  padding: 20px;
  font-size: 14pt;

  display: grid;
  grid-template-areas: 'box_3-1 box_3-1-2';
  grid-template-rows: 1fr;
  grid-template-columns: 50% 50%;
}
.box_3-1 {
  grid-area: box_3-1;
  padding: 50px;
  text-align: justify;
}

.box_3-1-2 {
  grid-area: box_3-1-2;
  height: 300px;
  background-image: url('../img/gratte_terre.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.part_3-2 {
  grid-area: part_3-2;
  font-size: 14pt;

  display: grid;
  grid-template-areas:
    'box_3-2 box_3-2 box_3-2'
    'box_3-3 box_3-4 box_3-5';
  grid-template-rows: 35px 600px;
  grid-template-columns: 295px auto 295px;
}

.box_3-2 {
  grid-area: box_3-2;
  padding-left: 15px;
  padding-right: 15px;
}

.box_3-3 {
  grid-area: box_3-3;
  text-align: justify;
  padding-top: 5px;
  padding-left: 10px;
  overflow: auto;
}

#info_popup {
  margin-top: 5px;
}

.box_3-4 {
  grid-area: box_3-4;
  padding: 30px;
  text-align: justify;
  padding: 5px;
}

.box_3-5 {
  grid-area: box_3-5;
  padding-top: 5px;
  padding-right: 10px;
}

/* ############################################################## */
/* OU ET COMMENT PLANTER */
/* ############################################################## */
#container_4 {
  background-color: rgb(255, 255, 255, 0.9);
  grid-area: container;
  margin: 0px;
  font-size: 14pt;

  display: grid;
  grid-template-areas:
    'part_4-1'
    'part_4-2';
  grid-template-rows: 1fr 635px;
  grid-template-columns: 1fr;
}

.part_4-1 {
  grid-area: part_4-1;
  padding: 20px;
  font-size: 14pt;

  display: grid;
  grid-template-areas: 'box_4-1 box_4-1-2';
  grid-template-rows: 1fr;
  grid-template-columns: 60% 40%;
}

.box_4-1 {
  grid-area: box_4-1;
  padding: 50px;
  text-align: justify;
}

.box_4-1-2 {
  grid-area: box_4-1-2;
  height: 350px;
  background-image: url('../img/bacs_rue_Eugene_Fourniere.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.part_4-2 {
  grid-area: part_4-2;
  font-size: 14pt;

  display: grid;
  grid-template-areas:
    'box_4-2 box_4-2 box_4-2'
    'box_4-3 box_4-4 box_4-5';
  grid-template-rows: 35px 600px;
  grid-template-columns: 295px auto 295px;
}

.box_4-2 {
  grid-area: box_4-2;
  padding-left: 15px;
  padding-right: 15px;
}

.box_4-3 {
  grid-area: box_4-3;
  text-align: justify;
  padding-top: 5px;
  padding-left: 10px;
  overflow: auto;
}

#info_popup2,
#crea_projet {
  margin-top: 5px;
}

.box_4-4 {
  grid-area: box_4-4;
  padding: 30px;
  text-align: justify;
  padding: 5px;
}

.box_4-5 {
  grid-area: box_4-5;
  padding-top: 5px;
  padding-right: 10px;
}

/* ############################################################## */
/* A PROPOS */
/* ############################################################## */
.images-container {
  display: flex;
  justify-content: center; /* Centrer horizontalement */
  align-items: center; /* Centrer verticalement */
}

.image-logo {
  width: auto;
  height: 100px;
  margin-right: 25px;
  margin-left: 25px;
  justify-content: center;
  align-items: center;
}

#container_5 {
  grid-area: container;
  margin: 0px;
  font-size: 14pt;

  display: grid;
  grid-template-areas:
    'box_5-1'
    'box_5-2';
  grid-template-rows: 1fr 120px;
  grid-template-columns: 1fr;
}

.box_5-1 {
  background-color: rgb(255, 255, 255, 0.9);
  padding: 40px;
  grid-area: box_5-1;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #333;
}

.box_5-2 {
  background-color: rgb(255, 255, 255, 1);
  padding-top: 10px;
  grid-area: box_5-2;
  text-align: center;
}

/* ############################################################## */
/* BAS DE PAGE */
/* ############################################################## */
footer {
  grid-area: footer;
  color: #ffff;
  background-color: rgba(0, 0, 0, 0.5);
  text-align: center;
  padding-top: 15px;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.9);
  font-size: 11pt;
}
/* Style pour les liens  */
.lienvilleurbanne {
  color: white;
}

/* ############################################################## */
/* CONTENU ANNEXE */
/* ############################################################## */

/* Bouton ajout marqueur, infos, calcul du score... */
.small_button {
  background-color: rgb(0, 168, 149, 0.8);
  color: #fff;
  font-size: 12pt;
  cursor: pointer;
  margin-top: 5px;
  border: 1px solid rgba(0, 129, 114, 0.8);
  border-radius: 2px;
  display: inline-block;
  width: 100%;
  height: 25px;
  box-sizing: border-box;
}

.button_info_help{
  border-radius : 15px;
  height : 12px;
  width : auto;
}

.popup_projet{
  border-top : 15px;
  text-align: center;
}

/* Popup légende */
#canope,
#parc,
#jardin,
#arbre,
#tx_canop,
#tx_veget,
#ilot,
#info_popup,
#trame,
#plantabilite,
#plantabilite_perso,
#info_popup2,
#crea_projet {
  border: 1px solid #9b9699;
  border-radius: 5px;
  background-color: rgb(255, 255, 255);
  padding: 7px;
  margin-bottom: 5px;
  text-align: left;
}

.arbre-remarq {
  height: 50px;
  width: 50px;
  position: relative;
  top: 20px;
}

.titre_legende {
  font-size: 18pt;
  color: rgb(0, 141, 124, 0.8);
  font-weight: bold;
}

/* Affichage légende */
.legende1,
.legende2,
.legende3 {
  border: 1px solid #9b9699;
  border-radius: 5px;
  background-color: rgb(255, 255, 255);
  padding: 7px;
  overflow: auto;
  max-height: 570px;
}

/* Style pour les maps */
#map_1,
#map_2,
#map_3 {
  width: auto;
  height: 585px;
  border: 1px solid #9b9699;
  border-radius: 5px;
}

/* Style pour les titres des cartes */
.titre_carte {
  text-align: center;
  justify-content: left;
  font-size: 20pt;
  font-weight: bold;
  display: flex;
  align-items: center;
  color: rgb(0, 141, 124, 0.8);
  border-bottom: 2px solid #9b9699;
}

/* Items légende */
.square {
  width: 20pt;
  height: 10pt;
  margin-right: 7px;
  display: inline-block;
  border: 1pt solid rgb(176, 176, 176);
}

.square_pixel {
  width: 10pt;
  height: 10pt;
  margin-right: 7px;
  margin-left: 3px;
  display: inline-block;
  border: 1pt solid rgb(176, 176, 176);
}

/* --------------------------------------- */
/* CURSEURS */
/* --------------------------------------- */

/* Styles pour les éléments input de type range */
input[type='range'] {
  width: 50%;
  height: 10px;
  border-radius: 5px;
  background: #d3d3d3; /* Couleur de fond par défaut */
  outline: none;
  opacity: 0.7;
  transition: opacity 0.2s;
  position: relative; /* Ajout de cette ligne pour positionner les éléments enfants */
}

.selectedValue {
  border-radius: 5px;
  padding: 5px;
  font-weight: bold;
}

/* ############################################################## */
/* FORMULAIRE */
/* ############################################################## */
.overlay,
.overlay_help {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2000;
}

.overlay_help_content {
  position: fixed;
  z-index: 2001;
  top: 50%;
  left: 50%;
  width: 50%;
  max-height: 90%;
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.overlay-content {
  position: absolute;
  z-index: 2001;
  top: 50%;
  left: 50%;
  width: 50%;
  max-height: 90%; /* Utilisation de max-height au lieu de height */
  overflow: auto;
  transform: translate(-50%, -50%);
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  display: grid;
  grid-template-areas:
    'col1 col1'
    'col2 col3'
    'col4 col4';
  grid-template-rows: 1fr 1fr;
  grid-template-columns: 1fr 1fr;
}

#col1 {
  grid-area: col1;
  padding: 30px;
  text-align: justify;
}

#col2 {
  grid-area: col2;
  padding-left: 30px;
  padding-right: 30px;
}

#col3 {
  grid-area: col3;
  padding-left: 30px;
  padding-right: 30px;
}

#col4 {
  grid-area: col4;
  padding: 20px;
}

.typo_rouge {
  color: red;
  display: inline-block;
}

.formulaire-bonus {
  width: 250px; /* Ajustez la largeur en pourcentage selon vos besoins */
  padding: 10px;
  margin-left: 10px;
}

.bouton_formulaire {
  grid-area: col4;
  border: 0;
  padding: 10px;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
}

.bouton_formulaire2 {
  background-color: rgb(0, 168, 149, 0.8);
  color: #fff;
  font-size: 18pt;
  cursor: pointer;
  margin: 5px;
  border: 0;
  border-radius: 2px;
  display: inline-block;
  width: 48%;
  height: 50px;
  box-sizing: border-box;
}

.bouton_formulaire3 {
  background-color: rgb(0, 168, 149, 0.8);
  color: #fff;
  font-size: 16pt;
  cursor: pointer;
  border: 0;
  border-radius: 2px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-left: auto;
  margin-right: auto;
  width: 30%;
  height: 40px;
}

/* Couleur interactive */
.bouton_formulaire2:hover,
.bouton_formulaire3:hover,
.bouton_formulaire2:active,
.bouton_formulaire3:active,
.small_button:hover,
.small_button:active {
  background-color: rgba(
    0,
    129,
    114,
    0.8
  ); /* Nouvelle couleur de fond lors du clic et après */
}
