* {
  margin: 0px;
  padding: 0px;
  box-sizing: border-box;
  /*box-shadow: 0 0 0 3px red inset;*/
  font-family: Montserrat, sans-serif;
  /*scroll-behavior: smooth;*/
}
/*******  CRÉATION DES VARIABLES  POUR LES COULEURS ******/
:root {
  --backgroundCube1: #d3d3d3;
  --backgroundCube2: #063c76;
  --backgroundCube3: #8e8e8e;
  --backgroundCube4: #777777;
}
body {
  min-height: 100vh;
  background-color: #f2f2f2;
  overflow-x: hidden;
}
/************** CONTAINER MAP    **********/

#containerMap {
  position: relative;
  z-index: 2;
}
.btn-map-closed {
  width: 31px;
  height: 31px;
  position: absolute;
  top: 78px;
  left: 12px;
  background-color: white;
  z-index: 1000;
  border: 2px solid var(--backgroundCube1);
  border-radius: 3px;
  text-align: center;
  line-height: 30px;
  font-size: 19px;
  font-weight: 500;
  cursor: pointer;
}
/************** FOOTER FOOTER FOOTER ***************/
.container-footer {
  display: flex;
  flex-wrap: wrap; /* permet le retour à la ligne
  align-items: stretch; /* les enfants prennent la même hauteur */
  justify-content: center;
  width: 100%;
  /*max-width: 100vw; Evite le debordement*/
  /* max-width: 1480px; limite sur grand écran*/
  margin: 0 auto; /* centre sur desktop */
  /* padding: 1rem; */
  gap: 1.5rem; /* espace entre colonnes */
  border-top: 4px solid var(--backgroundCube2);
  border-bottom: 4px solid var(--backgroundCube2);
}
.container-com,
.container-admin,
.container-logo {
  flex: 1 1 200px; /* Colonnes flexibles mini 200px*/
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  /*gap: 0.5rem; /* Espace pour les liens*/
  padding: 15px;
}
.container-com,
.container-admin {
  background-color: var(--backgroundCube2);
  color: white;
  gap: 10px;
}
.container-admin {
  align-items: end;
}
.container-com p {
  color: white;
  font-size: 0.9rem;
  font-weight: 70;
}
.container-com > a {
  text-decoration: none;
  color: white;
  font-size: 0.9rem;
  font-weight: 70;
}

.container-admin p {
  color: white;
  font-size: 0.9rem;
  font-weight: 70;
}
.container-admin > a {
  text-decoration: none;
  color: white;
  font-size: 0.9rem;
  font-weight: 70;
}
.container-logo {
  height: 120px;
  background: url(Assets/svg/logo\ BtoYou_Entier-blue.svg) no-repeat center;
  background-size: contain;
}
/************    MODALE COOKIES     ******************/
.container-modale-cookies {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5); /* fond semi-transparent */
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
}
.cookie-modal {
  width: 500px;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  background: white;
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 999;
}
/* Fait apparaitre la modale Cookie au chargement de la page */
.container-modale-cookies.active {
  display: flex;
}
.title-cookie {
  width: 100%;
  height: 50px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
}
button.closed-cookie {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}
svg.cross-cookie {
  width: 30px;
  height: 30px;
  stroke-width: 2;
  stroke: black;
  fill: none;
}
.cookie-modal p {
  font-size: 1rem;
  font-weight: 300;
}
.closed-cookie {
  width: 30px;
  height: 30px;
}
.container-cookies-check-box {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  padding: 8px;
}

/* Accordeon cookies check-boxs */
.container-check-box {
  width: 100%;
  height: 50px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 5px 0px 5px 0px;
  border: 2px solid var(--backgroundCube2);
}
.content-check-box {
  width: 100%;
  height: 50px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px;
}
.container-chevron {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  transition-duration: 0.6s;
}
.container-chevron.rotate90deg {
  transform: rotate(90deg);
}
.cookie-label {
  width: 170px;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  margin-right: 10px;
  font-size: 1rem;
  font-weight: 300;
}
svg.chevron {
  width: 100%;
  height: 100%;
  stroke-width: 2;
  stroke: black;
  fill: none;
}
.details-cookie {
  width: 100%;
  height: auto;
  min-height: 95px;
  position: relative;
  /* background-color: var(--backgroundCube1); */
  padding: 5px;
}
.content-details-cookie {
  width: 100%;
  max-height: 0;
  border-bottom: 2px solid var(--backgroundCube2);
  padding-bottom: 5px;
  overflow: hidden;
  transition: max-height 0.9s ease, transform 0.5s ease, opacity 0.5s ease;
  transform: translateY(-10px);
  opacity: 0;
}
.content-details-cookie.open {
  max-height: 100px; /* Ajuste selon le contenu*/
  transform: translateY(0);
  opacity: 1;
}
.container-btn-save {
  width: 100%;
  height: 40px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cookie-modal button {
  padding: 10px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}
.accept {
  background-color: var(--backgroundCube3);
  color: white;
}
.decline {
  background-color: red;
  color: white;
}

/**********  FOOTER & MODALE PARTIE RESPONSIVE    *******/
/* === MOBILE PORTRAIT (0 → 600px) === */
@media screen and (max-width: 600px) {
  .container-footer {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
  }
  .container-com,
  .container-admin,
  .container-logo {
    align-items: center;
    width: 100%;
    padding: 10px;
  }
  .container-admin {
    align-items: center;
  }
  .container-com a {
    margin-bottom: 5px;
    font-size: 0.9rem;
  }

  /****** MODALE COOKIES ******/
  .container-modale-cookies {
    min-width: 300px;
    height: auto;
  }
  .cookie-modal {
    width: 100%;
    height: auto;
    margin: 15px 8px;
  }
  .content-details-cookie {
    border-bottom: none;
    min-height: 95px;
    height: auto;
  }
}
/* === Tablette (601 → 750px) === */
@media screen and (min-width: 601px) and (max-width: 750px) {
  .container-footer {
    flex-wrap: nowrap;
    flex-direction: row;
    justify-content: space-between;
  }
  .container-com,
  .container-admin,
  .container-logo {
    flex: 1 1 150px; /*Avant 250px*/
    align-items: center;
    padding: 10px;
  }
  .container-com {
    align-items: start;
  }
  .container-admin {
    align-items: end;
  }
  .container-com a {
    margin-bottom: 5px;
    font-size: 0.9rem;
  }
}

/* === Tablette (751 → 1024px) === */
@media screen and (min-width: 751px) and (max-width: 1024px) {
  .container-footer {
    flex-wrap: nowrap;
    flex-direction: row;
    justify-content: space-between;
  }
  .container-com,
  .container-admin,
  .container-logo {
    flex: 1 1 250px;
    align-items: center;
    padding: 10px;
  }
  .container-com {
    align-items: start;
  }
  .container-admin {
    align-items: end;
  }
  .container-com a {
    margin-bottom: 5px;
    font-size: 0.9rem;
  }

  /****** MODALE COOKIES ******/
  .cookie-modal {
    width: 400px;
    height: auto;
  }
  .content-details-cookie {
    border-bottom: none;
    min-height: 95px;
    height: auto;
  }
}
/* === MOBILE PAYSAGE  (> 1025 px) === */
@media screen and (min-width: 1025px) {
  .container-footer {
    flex-direction: row;
    justify-content: space-between;
  }
  .container-com,
  .container-admin,
  .container-logo {
    flex: 1 1 auto;
    align-items: flex-start;
    padding: 15px;
  }
  .container-com {
    align-items: start;
  }
  .container-admin {
    align-items: end;
  }
  /****** MODALE COOKIES ******/
  .cookie-modal {
    width: 400px;
    height: auto;
  }
  .content-details-cookie {
    border-bottom: none;
    min-height: 95px;
    height: auto;
  }
}
