/*----------------------------------------------------------------*/
/*                          FONTS                                 */
/*----------------------------------------------------------------*/
/* @font-face {
  font-family: "Poppins";
  src:
    url("/fonts/poppins/Poppins-Bold.woff2") format("woff2"),
    url("/fonts/poppins/Poppins-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
} */

@font-face {
  font-family: "Poppins";
  src:
    url("/fonts/poppins/Poppins-ExtraBold.woff2") format("woff2"),
    url("/fonts/poppins/Poppins-ExtraBold.woff") format("woff");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Quicksand";
  src:
    url("/fonts/quicksand/Quicksand-Bold.woff2") format("woff2"),
    url("/fonts/quicksand/Quicksand-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Quicksand";
  src:
    url("/fonts/quicksand/Quicksand-Regular.woff2") format("woff2"),
    url("/fonts/quicksand/Quicksand-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/*----------------------------------------------------------------*/
/*                        RESET BASIQUE                           */
/*----------------------------------------------------------------*/
*,
::before,
::after {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

:root {
  --primaire: #ffffff;
  --secondaire: #095256;
  --focale: #c68866;
  --gris-clair: rgba(204, 204, 204, 0.16);
  --gris-fonce: rgba(204, 204, 204, 1);
  --text-base: clamp(1rem, 2vw, 1.25rem); /* Pour texte */
  --text-lg: clamp(1rem, 4vw, 2.5rem); /* Pour h1 */
  --text-xl: clamp(1.2rem, 5vw, 3rem); /* Pour h2 */
}

body {
  font-family: "Quicksand", Arial, Helvetica, sans-serif;
  font-weight: 400;
  font-size: 1rem;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

li {
  list-style: none;
}

/*----------------------------------------------------------------*/
/*                      CONTAINER CENTRÉ                          */
/*----------------------------------------------------------------*/

.container {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding-inline: 1rem;
  /* border: 1px solid red; */
}

/*----------------------------------------------------------------*/
/*                          BANNIERE                              */
/*----------------------------------------------------------------*/
.banniere {
  display: grid;
  background-color: var(--secondaire);
  color: var(--primaire);
  padding: 0.5rem 1rem;
}

.banniere p {
  font-weight: 700;
  letter-spacing: 1px;
}

.icones-reseaux {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.5rem;
  /* transition: all 0.3s ease; */
}

.icones-reseaux img {
  height: auto;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.icones-reseaux img {
  width: clamp(2rem, 5vw, 3rem);
}

.ligne-decorative {
  height: 1px;
  background-color: white;
  width: 100%;
  margin-block: 0.2rem;
}

/* Desktop */
@media (min-width: 730px) {
  .banniere {
    grid-template-areas: "paragraphe icones-reseaux";
    grid-template-columns: 1fr auto;
  }
  .banniere p {
    grid-area: paragraphe;
    display: flex;
    align-items: center;
  }

  .icones-reseaux {
    grid-area: icones-reseaux;
  }

  .icones-reseaux img:hover {
    transform: scale(1.05);
  }

  .ligne-decorative {
    display: none;
  }
}

/*----------------------------------------------------------------*/
/*                     NAVBAR FULL WIDTH                          */
/*----------------------------------------------------------------*/
header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
  background-color: var(--primaire);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.logo img {
  width: 3rem;
  height: auto;
}

.navbar__burger-btn {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 1.9rem;
  height: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 100;
}

.navbar__burger-btn span {
  display: block;
  height: 0.2rem;
  width: 100%;
  background-color: var(--secondaire);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Animation burger → croix */
.navbar__burger-btn.active span:nth-child(1) {
  transform: rotate(43deg) translate(6px, 6px);
}

.navbar__burger-btn.active span:nth-child(2) {
  opacity: 0;
}

.navbar__burger-btn.active span:nth-child(3) {
  transform: rotate(-46deg) translate(5px, -5px);
}

.navbar__wrapper {
  position: fixed;
  inset: 0;
  height: 100vh;
  overflow-y: auto;
  background-color: var(--primaire);
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;

  transform: translateX(-100%);
  visibility: hidden;
  opacity: 0;
  /* pointer-events: none;  */
  transition: all 0.3s ease-in-out;
}

.navbar__wrapper.show {
  transform: translateX(0);
  visibility: visible;
  opacity: 1;
}

.navbar__links {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.navbar__links a,
.action-btn {
  font-weight: 700;
}

.navbar__links a {
  position: relative;
  text-shadow: 1px 0 #000000;
  letter-spacing: 1px;
}

.navbar__links a:hover {
  color: var(--secondaire);
}

.navbar__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--secondaire);
  transition: width 0.3s ease;
}

.navbar__links a.active-link {
  color: var(--secondaire);
}

.navbar__links a.active-link::after {
  width: 100%;
}

.actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding-top: 1rem;
}

.action-btn {
  width: 40%;
  max-width: 20rem;
  min-width: 10rem;
  text-align: center;

  padding: 0.5rem 1rem;
  border-radius: 0.4rem;

  border: none;
  cursor: pointer;

  color: var(--primaire);
  transition: all 0.3s ease;

  /* On supprime le rectangle qui s'affiche quand on clique sur le lien en mobile */
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22);
}

.action-btn:hover {
  filter: brightness(85%);
  scale: 1.03;
}

.action-btn.focal {
  background-color: var(--focale);
}

.action-btn.secondaire {
  background-color: var(--secondaire);
}

a.active-btn-agir {
  color: var(--secondaire);
  background-color: var(--primaire);
  border: 1px solid var(--secondaire);
}

@media (min-width: 730px) {
  .logo img {
    width: 4rem;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .logo img {
    width: 4.5rem;
  }

  .navbar__wrapper,
  .navbar__links,
  .navbar__actions {
    flex-direction: row;
  }

  .navbar__wrapper {
    height: auto;
    overflow: hidden;
    transform: translateX(0);
    visibility: visible;
    opacity: 1;
    flex-direction: row;
    justify-content: space-between;
    background-color: transparent;
    position: static;
    gap: 1rem;
  }

  .navbar__burger-btn {
    display: none;
  }

  /* AJOUT */
  .navbar__links {
    /* gap: 0.5rem; */
    gap: 1rem;
  }

  .navbar__links li {
    cursor: pointer;
  }
  .navbar__links a:hover::after {
    width: 100%;
  }

  .navbar__actions {
    align-items: center;
    padding-top: 0;
  }

  /* AJOUT */
  .action-btn {
    width: auto;
  }
}

@media (min-width: 1080px) {
  .navbar__links {
    gap: 1.5rem;
  }
}

/*----------------------------------------------------------------*/
/*                        MAIN                                    */
/*----------------------------------------------------------------*/
#main {
  opacity: 0;
  transition: opacity 0.5s ease;
}

#main.show {
  opacity: 1;
}

/*----------------------------------------------------------------*/
/*                        BANNIERE RGPD                           */
/*----------------------------------------------------------------*/
.cookie-banniere-overlay {
  width: 100vw;
  min-height: 100vh;
  inset: 0;
  position: fixed;
  overflow-y: auto;
  z-index: 1000;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 2s ease;
}

.cookie-banniere-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.cookie-banniere {
  width: 90%;
  max-width: 600px;
  height: fit-content;
  /* overflow-y: auto; */
  border-radius: 0.4rem;
  background-color: var(--primaire);
  padding-top: 2rem;
  padding-bottom: 3rem;
  padding-inline: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  /* justify-content: space-between; */
  align-items: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: height 1s ease;
}

.cookie-banniere__actions-btn {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.cookie-banniere button {
  background-color: var(--secondaire);
  color: var(--primaire);
  font: inherit;
  font-weight: 700;
  padding: 8px 12px;
  border: none;
  border-radius: 0.4rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

#fermer-banniere {
  margin-bottom: 1.5rem;
}

.cookie-banniere p {
  padding-block: 0.5rem;
}
.cookie-banniere__confirmation-choix p {
  text-align: center;
}
.cookie-banniere__confirmation-choix,
.fermer-banniere__btn {
  display: none;
}

.cookie-banniere__titre {
  border-bottom: 1px solid var(--gris-fonce);
  text-align: center;
  font-weight: 700;
  padding-top: 0;
}

.cacher {
  display: none;
}
.afficher {
  display: block;
}


@media (min-width: 1024px) {
  .cookie-banniere button:hover {
    filter: brightness(85%);
    scale: 1.03;
  }
}

/*----------------------------------------------------------------*/
/*                        GESTION PAGE 404                        */
/*----------------------------------------------------------------*/
.page404__section {
  border-top: 1px solid var(--gris-fonce);
  height: 70vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page404__section h1 {
  text-align: center;
}

/*----------------------------------------------------------------*/
/*                     SECTION - 1 :  HERO                        */
/*----------------------------------------------------------------*/
/* .hero {
  border: 1px solid red;
} */

.hero__wrapper {
  position: relative;
}

.hero__image {
  width: 100%;
  height: 25.63rem;
  overflow: hidden;
  position: relative;
}

.hero__image img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.hero__overlay {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 90%;

  bottom: 35%;
  left: 50%;
  transform: translate(-50%, 58%);

  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 1rem;
  border-radius: 0.4rem;

  background: rgba(255, 255, 255, 0.5);
  /* background: rgba(204, 204, 204, 0.1); */

  /* background: rgba(204, 204, 204, 0.1); */
  /* background: rgba(204, 204, 204, 0.1); */
  /* backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px); */

  /* backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px); */

  -webkit-box-shadow:
    0px 10px 13px -12px #000000,
    0px 0px 10px 4px rgba(204, 204, 204, 0);
  box-shadow:
    0px 10px 13px -12px #000000,
    0px 0px 10px 4px rgba(204, 204, 204, 0);
}

.hero__overlay h1 {
  font-family: "Poppins", Arial, Helvetica, sans-serif;
  /* font-weight: 700; */
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 1px;
}

.hero__overlay p {
  padding-block: 0.5rem;
  font-weight: 700;
}

.hero__actions .action-btn {
  width: 100%;
}

@media (min-width: 360px) {
  .hero__overlay {
    bottom: 30%;
  }
}

@media (min-width: 400px) {
  .hero__actions {
    align-items: flex-start;
  }

  .hero__actions .action-btn {
    width: 50%;
    max-width: 16.25rem;
  }
}

@media (min-width: 450px) {
  .hero__image img {
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
  }
  .hero__overlay {
    bottom: 18%;
  }
}

@media (min-width: 630px) {
  .hero__overlay h1 {
    font-size: 1.3rem;
  }
}

@media (min-width: 1024px) {
  .hero__overlay {
    bottom: 66%;
    width: 50%;
    max-width: 43.75rem;
    left: 27%;
    justify-content: flex-start;
    min-height: 0;
    transform: translate(-50%, 89%);
  }

  .hero__overlay h1 {
    font-size: 1.8rem;
  }

  .hero__actions {
    flex-direction: row;
  }
}
