* {
  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;
}
/************** NAV BAR  *******/

nav.navbar {
  width: 100%;
  max-width: 100vw; /* Evite le debordement*/
  height: 80px;
  position: fixed;
  /* top: 360px; */
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--backgroundCube3);
  transition: 0.8s ease-in-out;
  z-index: 150;
}
.content-nav-bar {
  width: 100%;
  height: 100%;
  display: flex;
  position: relative;
  align-items: center;
  justify-content: space-around;
  padding: 0 1rem;
}
/*************  CONTAINER BURGER    ********/
.container-burger {
  width: 50%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: left;
}
.content-burger {
  width: 80px;
  height: 50px;
  position: relative;
  top: 0;
  /* left: 10px; */
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0px 5px;
  cursor: pointer;
}
.burger-content {
  width: 75px;
  height: 50px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  margin-right: 5px;
}
.burger {
  width: 35px;
  height: 2px;
  position: relative;
  background-color: var(--backgroundCube1);
  border: none;
  transition: 0.4s ease-in-out;
}
.burger.top {
  width: 35px;
  height: 2px;
  display: block;
  border: none;
  transform: translateY(-10px);
}
.burger.middle {
  width: 35px;
  height: 2px;
  display: block;
  border: none;
}
.burger.bottom {
  width: 35px;
  height: 2px;
  display: block;
  border: none;
  transform: translateY(10px);
}
.burger.top.open {
  transform: translateY(4px) rotate(135deg);
  transition: 0.4s ease-out;
}
.burger.middle.open {
  opacity: 0;
  transition: 0.4s ease-out;
}
.burger.bottom.open {
  transform: translateY(1px) rotate(-135deg);
  transition: 0.4s ease-out;
}

.title-burger {
  width: 50px;
  height: 50px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.container-nav-logo {
  width: 50%;
  height: 100%;
}
.content-logo {
  width: 150px;
  height: 75px;
  display: flex;
  position: relative;
  align-items: center;
  justify-content: center;
  background: url(Assets/svg/logo\ BtoYou_Entier-blue.svg);
  background-repeat: no-repeat;
  background-size: contain;
}
.container-home-svg {
  width: 100px;
  height: 40px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: left;
  cursor: pointer;
  color: black;
  transition: color 1.5s ease-in-out;
}

.icon-home {
  width: 30px;
  height: 30px;
}
/************** NAV SIDE BAR    ***********/
.container-nav-side {
  width: 300px;
  position: absolute;
  top: 95px;
  left: 0px;
  transform: translateX(-300px);
  transition: 0.5s ease-in-out;
}
.container-nav-side.open-side {
  transform: translateX(10px);
  z-index: 200;
}
.container-nav-side > ul {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--backgroundCube2);
}
.container-nav-side > ul > li {
  width: 100%;
  height: 60px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 200;
}
.container-nav-side > ul > li > a {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  text-align: left;
  color: var(--backgroundCube1);
  padding-left: 5px;
  transition: 1s;
}
.container-nav-side > ul > li > a:hover {
  background-color: var(--backgroundCube3);
  /*transition: 0.4s;*/
}
/***********   MAIN-WRAPPER    ********/
.main-wrapper {
  /*max-width: 1480px; Largeur max sur grands écrans
  margin: 0 auto; /* Centre horizontalement */
  width: 100%; /* Pour être fluide en dessous de 1200px*/
  /*padding: 0 1rem; /*Espace sur les côtés (utile pour petits écrans) */
  min-height: 100vh;
  /* padding: 62px 0px 0px; */
}
/****************** SECTION FORMULAIRE ***********/
.inner-section {
  width: 100%;
  min-height: 100vh;
  display: flex;
  position: relative;
  align-items: center;
  justify-content: center;
  /* flex-direction: column; */
  /* top: 60px; */
  background-image: url("../Assets/laptop-3196481_1280.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.main-forms {
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto; /* largeur automatique selon le contenu */
  max-width: 600px;
  height: auto; /* ← prend la hauteur de son contenu */
  background-color: var(--backgroundCube2);
  border: 2px solid var(--backgroundCube2);
  padding-top: 70px; /* espace pour que le header ne chevauche pas le formulaire */
  margin: 100px auto; /* centre le bloc dans la page */
  position: relative; /* pour que le header en absolute reste relatif à ce bloc */
}
/***********  CONTAINER FORMS *********/
/* Correction ChatGPT */
.container-forms {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start; /*Pas besoin de centrer verticalement*/
  justify-content: center; /* centre verticalement si parent est assez haut */
  width: auto; /* Prend la largeur de son contenu*/
  padding: 20px;
  position: relative; /* permet aux boutons absolus de rester dedans */
  border-radius: 5px;
}
/* Les classes list pour faire apparaitre et disparaitre les Forms */
/* Correction ChatGPT */
.contact-form,
.compagny-form {
  min-width: 400px; /*Largeur fixe pour la transition*/
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 1rem 0.5rem;
  padding: 1.5rem 0.5rem;
  border-radius: 5px;
  border: 2px solid white;
  transform: translateX(0); /* point neutre */
  opacity: 0;
  visibility: hidden;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease,
    visibility 0.3s ease;
}

/***** Class pour btoYou.js (javascript) *****/

.hidden {
  opacity: 0;
  visibility: hidden;
}
.visible {
  opacity: 1;
  visibility: visible;
}
/************ HEADER FORM *********/
.header-form {
  width: 100%;
  max-width: 400px;
  position: relative;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  background-color: var(--backgroundCube2);
  border-bottom: 2px solid var(--backgroundCube1);
}
.button-header {
  width: 224px;
  height: 40px;
  display: block;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3px;
  border: none;
  border-radius: 3px;
  background-color: var(--backgroundCube1);
  margin-bottom: 1rem;
}
.button-close-form {
  width: 20px;
  height: 20px;
  position: absolute;
  top: -60px;
  left: 100%;
  border: 1px solid var(--backgroundCube2);
  border-radius: 50%;
  background-color: var(--backgroundCube1);
  text-align: center;
  color: var(--backgroundCube2);
  cursor: pointer;
}

/**************   STYLE DES INPUTS FORMULAIRE */
.input-form {
  width: 224px;
  height: 30px;
  padding: 10px 5px;
  margin-bottom: 5px;
  border: none;
  border-bottom: 2px solid var(--backgroundCube1);
  outline: none;
  background: var(--backgroundCube2);
  color: var(--backgroundCube1);
}
.input-form::placeholder {
  color: var(--backgroundCube1);
  opacity: 1;
}
.reason-message-select {
  width: 224px;
  height: 30px;
  padding: 4px 4px;
  margin-bottom: 0.5rem;
  background-color: var(--backgroundCube2);
  color: white;
  cursor: pointer;
}
/* .reason-message-select option:first-child {
  color: var(--backgroundCube1);
} */
.input-form-area {
  width: 224px;
  height: 100px;
  padding: 10px 5px;
  margin-bottom: 8px;
  border-radius: 5px;
}
input[type="file"] {
  width: 20px; /*On diminue la taille pour cacher l'input*/
}
.custom-file-upload {
  min-width: 224px;
  max-width: 100%;
  height: 30px;
  position: relative;
  display: inline-block;
  position: relative;
  top: 25px;
  padding: 5px 5px 15px 5px;
  /* background-color: buttonface; */
  background-color: var(--backgroundCube2);
  color: var(--backgroundCube1);
  /* border: 2px solid var(--backgroundCube3); */
  text-align: center;
  cursor: pointer;
}
.custom-file-upload:hover {
  background-color: var(--backgroundCube3);
}
.filelist-contact-container,
.filelist-compagny-container {
  /* width: 254px; */
  min-width: 224px;
  height: auto;
  min-height: 50px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 20px 0px;
  background-color: buttonface;
  border-radius: 5px;
  padding: 5px 5px;
}
/* STYLE BOUTON SUPPRESSION FICHIER LOADED */
.btn-sup-file {
  width: 28px;
  height: 28px;
  background-color: var(--backgroundCube4);
  margin-left: 15px;
  border: none;
  border-radius: 8px;
  color: var(--backgroundCube1);
  font-size: 0.8rem;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
}

.container-info {
  width: 224px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: start;
  font-size: 0.8rem;
  font-weight: 500;
  color: white;
  margin-bottom: 10px;
}
.btn-submit {
  width: 110px;
  height: 30px;
  /* position: absolute;
  top: 451px; */
  border-radius: 50px;
  padding: 5px 5px;
  border: none;
  background-color: var(--backgroundCube2);
  color: var(--backgroundCube1);
  text-align: center;
  cursor: pointer;
}
.btn-submit:hover {
  background-color: var(--backgroundCube3);
  color: var(--backgroundCube2);
  border: 2px solid var(--backgroundCube2);
}
.btn-submit.contact {
  position: absolute;
  bottom: -24px; /* ancrage au bas du parent */
  left: 50%;
  transform: translateX(-50%);
  border: 2px solid white;
}
.btn-submit.compagny {
  position: absolute;
  bottom: -35px; /* ancrage au bas du parent */
  left: 50%;
  transform: translateX(-50%);
  border: 2px solid white;
  margin: 0.8rem 0.5rem;
}

/************   FOOTER INJECTE PAR FETCH(Fichier cookieManager.js)*********/

/* === MOBILE PORTRAIT (0 → 480px) === */
@media screen and (max-width: 480px) {
  .main-forms {
    height: auto;
    min-width: 440px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .contact-form {
    width: 100%;
  }
}

/******** PARTIE RESPONSIVE MOBILE PORTRAIT (0 --> 600px  *******/
@media screen and (max-width: 600px) {
  .main-wrapper {
    display: flex;
    height: auto;
  }
  .inner-section {
    width: 100%;
    /* margin: 20px 0; */
  }
  .main-forms {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 440px;
    margin: 110px 10px;
  }
  .container-forms {
    width: 400px;
  }
}
/******** PARTIE RESPONSIVE TABLETTE > 1025px  *******/
@media screen and (min-width: 1025px) {
}
