@font-face {
  font-family: "IconCafe";

  src: url("fonts/Pompiere-Regular.ttf") format("trueType");

  font-weight: normal;

  font-style: normal;

  font-display: swap; /* Permet d'afficher un texte temporaire le temps du chargement */
}

* {
  margin: 0;

  padding: 0;

  box-sizing: border-box;
}

body {
  background-color: #f3fadc;
}

header {
  display: flex;

  height: clamp(60px, 100px, 120px);

  justify-content: center;

  align-items: center;

  padding: 10px;

  background-color: #65976a;

  position: relative;

  overflow: hidden;
}

.burger-btn {
  display: none;
}

.header-container {
  display: flex;

  height: 40%;

  flex: 1;

  justify-content: center;

  align-items: center;
}

#header_logo {
  max-height: 150%;

  width: auto;
}

.truc-deco {
  display: block;

  position: absolute;

  width: 50%;

  height: 15px;

  background-color: #007d0c;

  border-radius: 30px;

  align-self: flex-end;
}

nav {
  display: flex;

  width: 45%;
}

nav ul {
  display: flex;

  width: 100%;

  justify-content: space-between;
}

nav a {
  font-family: "IconCafe";

  font-weight: bold;

  color: white;

  font-size: 1.4rem;
}

ul li::marker {
  content: "🌿";

  font-size: 1.25rem;
}

.btn {
  width: clamp(90px, 10vw, 260px);

  color: white;

  text-align: center;

  font-family: "IconCafe";

  font-size: clamp(1.5em, 5vw, 24px);

  font-weight: bold;

  padding: 5px;

  border-radius: 7px;

  cursor: pointer;

  transition:
    transform 0.2s ease,
    background-color 0.2s ease;

  text-decoration: none;
}

h1 {
  font-family: "IconCafe";

  color: #f5f5f5;

  font-size: clamp(1.25rem, 5vw, 2.5rem);

  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

#accueil_section {
  width: 100%;

  display: flex;

  position: relative;
}

#image_bandeau {
  width: 100%;

  height: auto;

  object-fit: cover;
}

.banner-content {
  position: absolute;

  display: flex;

  flex-direction: column;

  justify-content: center;

  align-items: center;

  gap: 20px;

  width: 100%;

  top: 80%;

  left: 50%;

  transform: translate(-50%, -50%);
}

#voir_la_carte_btn {
  background-color: #c05e34;
}

#voir_la_carte_btn:hover {
  background-color: #883714;

  width: 165px;

  height: auto;
}

.a-propos-box {
  display: flex;

  overflow: hidden;

  padding: 40px 20px 0 20px;
}

.a-propos-text {
  display: flex;

  flex: 1;

  justify-content: center;

  align-items: center;

  width: clamp(200px, 30%, 300px);

  padding: 30px 20px 20px 20px;

  flex-direction: column;

  gap: 20px;

  background-color: whitesmoke;

  border-radius: 10px;

  border: 2px solid #313d00;

  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.a-propos-p {
  min-width: 200px;

  max-width: 500px;
}

.a-propos-img {
  display: flex;

  justify-content: center;

  align-items: center;

  flex: 1;

  max-width: 50%;
}

.img-a-propos {
  display: block;

  max-width: 100%;

  height: auto;

  border-radius: 3px;

  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.pastille-img {
  width: 200px;

  height: 200px;

  position: absolute;

  top: 150%;

  left: 60%;

  transform: translate(-50%, -50%);
}

h2 {
  font-size: clamp(1rem, 7vw, 2.5rem);

  font-family: "IconCafe";

  color: #313d00;

  font-weight: bold;

  text-align: center;
}

p {
  font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;

  font-size: clamp(1rem, 3vw, 1.25rem);
}

#venir-btn {
  display: block;

  background-color: #007d0c;

  width: clamp(90px, 20vw, 160px);

  color: white;

  text-align: center;

  font-family: "IconCafe";

  font-size: clamp(1.5em, 5vw, 24px);

  font-weight: bold;

  padding: 5px;

  border-radius: 7px;

  cursor: pointer;

  transition:
    transform 0.2s ease,
    background-color 0.2s ease;
}

#commander-btn {
  display: block;

  background-color: #65976a;
}

#venir-btn:hover {
  background-color: #313d00;
}

#commander-btn:hover {
  background-color: #313d00;
}

#venir-popup {
  position: fixed;

  top: 50%;

  left: 50%;

  transform: translate(-50%, -50%);

  padding: 20px;

  width: clamp(500px, 60vw, 1200px);

  height: auto;

  gap: 20px;

  background-color: #f3fadc;

  border: 3px solid white;

  border-radius: 10px;

  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

#venir-popup[open] {
  display: flex;

  flex-direction: column;

  justify-content: center;

  align-items: center;
}

#venir-popup::backdrop {
  background-color: rgba (0, 0, 0, 0.5); /*Assombrit le reste de la page */
  backdrop-filter: blur(4px); /*Effet de flou*/
}

#venir-map {
  width: 100%;

  min-height: 50%;
}

.close-btn {
  display: block;

  width: 20px;

  background-color: transparent;

  color: #313d00;

  font-size: bold;

  align-self: flex-end;
}

#concept {
  display: flex;

  flex-direction: column;
}

.concept-text {
  width: 100%;

  display: flex;

  justify-content: center;

  align-items: center;

  height: 200px;

  padding: 20px;
}

.concept-cards {
  display: flex;

  width: 100%;

  gap: 20px;

  padding: 0px 20px 40px 20px;
}

.card {
  display: flex;

  flex-direction: column;

  align-items: center;

  gap: 20px;

  flex: 1;

  background-color: whitesmoke;

  padding: 20px;

  border-radius: 10px;

  border: 2px solid #313d00;

  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);

  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.h3-card {
  color: #313d00;

  font-family: "Iconcafe";

  font-size: clamp(1rem, 6vw, 2rem);
}

.card-img {
  width: 200px;

  height: 200px;

  background-color: transparent;

  border-radius: 10px;
}

.p-card {
  color: #313d00;

  text-align: center;

  font-size: 1rem;
}

footer {
  display: flex;

  flex-direction: row;

  justify-content: center;

  max-width: 100%;

  overflow: hidden;

  gap: 20px;

  padding: 50px;

  background-color: #313d00;

  border: 2px solid white;
}

.infos-pratiques {
  flex: 1;

  display: flex;

  flex-direction: column;

  gap: 5px;
}

.horaires {
  flex: 1;

  display: flex;

  flex-direction: column;

  gap: 20px;
}

h4 {
  font-family: "IconCafe";

  color: white;

  font-size: clamp(14px, 5vw, 20px);
}

.footer-img {
  width: 150px;

  height: 150px;
}

footer li {
  font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;

  font-size: clamp(0.95rem, 2vw, 1rem);

  color: whitesmoke;
}

footer p {
  font-size: 10px;

  color: white;

  font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;

  justify-self: flex-end;
}

#feuille-curseur {
  position: fixed;

  top: 0;

  left: 0;

  width: 24px; /* Ajuste la taille de la feuille */

  height: auto;

  pointer-events: none; /* Permet de cliquer À TRAVERS l'image */

  z-index: 9999; /* Reste au-dessus de tout le contenu */

  display: none; /* Caché au chargement */

  transform: translate(
    -50%,

    -50%
  ); /* Centre la feuille exactement sur la pointe de la souris */

  transition: transform 0.1s ease-out; /* Ajoute une légère fluidité */
}

.organizer {
  display: flex;

  flex-direction: column;

  max-width: 100%;

  overflow: hidden;
}

.therapie-div {
  display: flex;

  justify-content: space-around;

  padding: 40px 20px 40px 20px;
}

.therapie-card {
  display: flex;

  flex: 1;

  justify-content: center;

  align-items: center;

  width: clamp(200px, 30%, 300px);

  flex-direction: column;

  background-color: whitesmoke;

  border-radius: 10px;

  border: 2px solid #313d00;

  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.therapie-card ul {
  display: flex;

  flex-direction: column;

  align-items: center;

  width: 60%;
}

.therapie-card li {
  font-family: "IconCafe";

  font-size: clamp(24px, 5vw, 34px);

  color: #03680d;

  font-weight: bold;
}

.a-gauche {
  align-self: flex-start;
}

.a-droite {
  align-self: flex-end;
}

.therapie-img {
  display: flex;

  flex: 1;

  max-width: 50%;

  justify-content: center;
}

.services-card {
  width: 100%;

  height: 100%;
}

h3 {
  font-family: "IconCafe";

  font-size: clamp(30px, 3.5vw, 34px);

  color: #313d00;
}

.rencontrer-section {
  background-color: whitesmoke;

  height: clamp(200px, 20vh, 400px);

  display: flex;

  flex-direction: column;

  justify-content: center;

  align-items: center;

  padding: 20px;

  gap: 40px;
}

.rencontrer-links {
  display: flex;

  gap: 20px;
}

#decouvrir-services-btn {
  background-color: #c05e34;

  min-width: 280px;
}

#decouvrir-services-btn:hover {
  background-color: #883714;
}

#prendre-rdv-btn {
  background-color: #007d0c;

  min-width: 280px;
}

#prendre-rdv-btn:hover {
  background-color: #03680d;
}

#carte-section {
  width: 100%;

  overflow: hidden;

  background-image: url("assets/background-image-carte.png");

  background-repeat: no-repeat;

  background-size: cover;

  background-position: center;

  padding-bottom: 40px;
}

.carte-h2 {
  font-size: clamp(1rem, 5vw, 2.5rem);

  font-family: "IconCafe";

  color: white;

  font-weight: bold;

  text-align: left;
}

.carte-table {
  width: 80%;

  justify-self: center;

  background-color: #d8c8b9;

  border-radius: 10px;

  border: 5px solid white;

  padding: 20px;
}

.titre-carte-container {
  display: flex;

  justify-content: center;

  padding: 30px;
}

table thead tr {
  height: 50px;

  padding: 5px 0px 5px 0px;
}

table thead th {
  font-family: "Iconcafe";

  font-size: clamp(1rem, 6vw, 1.8rem);

  color: #313d00;

  text-align: center;
}

table tr {
  height: 40px;

  padding-top: 5px;

  padding-bottom: 5px;
}

table td {
  font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;

  font-size: clamp(0.85rem, 2vw, 1.25rem);

  color: #313d00;
}

#tableau-cats {
  font-weight: bold;

  color: #007d0c;
}

#specialites-section {
  display: flex;

  flex-direction: column;

  justify-content: center;

  padding: 0px 20px 40px 20px;
}

.card-2 {
  display: flex;

  flex-direction: column;

  align-items: center;

  gap: 20px;

  flex: 1;

  background-color: white;

  padding: 20px;

  border-radius: 10px;

  border: 2px solid #313d00;

  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);

  transition: transform 0.3s ease;
}

.card-2:hover {
  transform: translateY(-5px);
}

#card-spe-1 {
  anchor-name: --popup-prix-ancre-1;
}

#popup-prix-1 {
  margin: 0;

  position: absolute;

  position-anchor: --popup-prix-ancre-1;

  top: anchor(top);

  left: anchor(left);

  width: 400px;

  background-color: #007d0c;

  color: white;

  font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;

  border-radius: 10px;

  padding: 10px;
}

#card-spe-2 {
  anchor-name: --popup-prix-ancre-2;
}

#popup-prix-2 {
  position-anchor: --popup-prix-ancre-2;

  top: anchor(top);

  left: anchor(left);

  width: 400px;

  background-color: #007d0c;

  color: white;

  font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;

  border-radius: 10px;

  padding: 10px;
}

#card-spe-3 {
  anchor-name: --popup-prix-ancre-3;
}

#popup-prix-3 {
  position-anchor: --popup-prix-ancre-3;

  top: anchor(top);

  left: anchor(left);

  width: 400px;

  background-color: #007d0c;

  color: white;

  font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;

  border-radius: 10px;

  padding: 10px;
}

.popup-prix-p {
  text-align: left;
}

.popup-content {
  display: flex;

  flex-direction: column;

  gap: 15px;

  margin: 15px;
}

#close-btn {
  color: white;

  border: none;
}

.galerie-photos {
  display: flex;

  flex-direction: column;

  padding: 0px 20px 20px 40px;
}

.photo-gallery {
  display: flex;

  max-width: 100%;

  gap: 20px;

  margin: 0 auto;
}

.gallery-img {
  display: block;

  object-fit: cover;

  flex: 1;

  max-width: 33%;

  height: auto;

  border-radius: 5px;
}

.rdv-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-container {
  display: flex;
  justify-content: center;
  padding: 20px;
}

.rdv-form label {
  font-family: "IconCafe";
  color: #007d0c;
  font-size: clamp(24px, 5vw, 30px);
}

.rdv-form input {
  background-color: whitesmoke;
  height: 50px;
  border-radius: 5px;
  padding: 5px;
}

.rdv-form select {
  background-color: whitesmoke;
  height: 50px;
  border-radius: 5px;
  padding: 5px;
}

#form-btn {
  background-color: #c05e34;
}

#form-btn:hover {
  background-color: #883714;
}

#form-confirmation {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  gap: 20px;
}

#form-confirmation[open] {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px;

  /* une animation fluide à l'ouverture */

  animation: fadeIn 0.3s ease-out forwards;

  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translate (-50%, -48%);
    }
    to {
      opacity: 1;
      transform: translate(-50%, -50%);
    }
  }
}

#form-confirmation::backdrop {
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

#retour-accueil-btn {
  background-color: #007d0c;
}

@media screen and (max-width: 768px) {
  /* Le menu est caché hors de l'écran par dégfaut sur mobile */

  nav {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #65976a;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(100%); /* Pousse hors de l'écran à droite */
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
  }

  /* Quand la classe .active est ajoutée, le menu glisse et s'affiche */

  nav.active {
    transform: translateX(0);
  }

  /* Mise en page des liens du menu mobile */

  nav ul {
    flex-direction: column;
    align-items: center;
    gap: 30px;
    list-style: none;
  }

  nav a {
    font-size: 2rem !important;
  }

  .truc-deco {
    display: none;
  }

  header {
    align-items: center;
  }

  .header-container {
    width: 100%;

    height: 50%;

    justify-content: space-around;
  }

  .burger-btn {
    display: flex;

    flex-direction: column;

    justify-content: space-between;

    width: 40px;

    height: 22px;

    background: transparent;

    border: none;

    cursor: pointer;

    padding: 0;

    z-index: 1001;
  }

  .burger-btn.active {
    position: fixed;
    top: 20px;
    right: 20px;
  }

  .burger-btn span {
    width: 100%;

    height: 4px;

    background-color: white;

    border-radius: 3px;

    transition: all 0.3s ease-in-out;
  }

  .burger-btn.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .burger-btn.active span:nth-child(2) {
    opacity: 0;
  }

  .burger-btn.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  .btn {
    width: 160px;
  }

  #venir-btn {
    width: 160px;
  }

  .a-propos-box {
    flex-direction: column;

    align-items: center;

    gap: 30px;
  }

  .a-propos-text {
    width: 100%;
  }

  .a-propos-p {
    text-align: center;
  }

  .pastille-img {
    width: 150px;

    height: 150px;

    left: 80%;
  }

  .concept-cards {
    flex-direction: column;
  }

  #accueil_section {
    height: 400px;
  }

  .therapie-div {
    flex-direction: column;

    gap: 20px;
  }

  .therapie-card {
    width: 100%;

    height: auto;

    padding: 40px;
  }

  .a-gauche {
    align-self: flex-start;
  }

  .a-droite {
    align-self: flex-start;
  }

  .therapie-img {
    max-width: 100%;
  }

  .rencontrer-section {
    height: 300px;
  }

  .rencontrer-links {
    flex-direction: column;
  }

  #decouvrir-services-btn {
    width: 160px;
  }

  #prendre-rdv-btn {
    width: 160px;
  }

  footer {
    flex-direction: column;

    align-items: center;
  }

  .infos-pratiques {
    width: 100%;
  }

  .horaires {
    width: 100%;
  }

  .carte-table {
    width: 90%;
  }

  table td {
    font-size: 12px;
  }

  .photo-gallery {
    display: flex;

    overflow-x: auto; /* Active le défilement horizontal */

    scroll-snap-type: x mandatory; /* Active l'aimantage horizontal */

    scroll-behavior: smooth;

    /* Active le défilement fluide sur IOS */

    -webkit-overflow-scrolling: touch;

    /* Masque la barre de défilement */

    scrollbar-width: none;
  }

  .photo-gallery-webkit-scrollbar {
    display: none;
  }

  .gallery-img {
    flex: 0 0 100%;

    max-width: 100%;

    /* Aligne chaque image au bord gauche lors du scroll */

    scroll-snap-align: start;
  }

  #feuille-curseur {
    display: none;
  }

  table {
    display: flex;
    flex-direction: column;
  }

  table tbody {
    display: flex;
    height: auto;
    min-height: fit-content;
    padding: 30px;
  }

  table tbody tr {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
}

@media (min-width: 1068px) {
  p {
    text-align: center;
  }
}
