:root {
  --white-color: #f4f3ee;
  --black-color: #1e1e1e;
  --hoover-color: #e68e7f;
  --red-color: #b33630;
  --yellow-color: #f2c14e;
  --blue-color: #3d8eb9;
  --green-color: #2ba84a;
  --dark-green-color: #248232;
  --style-font: "Ewert";
  --classic-font: "Sanchez", serif;
  --exotic-font: "Ewert", serif;
}

body {
  background-color: var(--green-color);
  font-family: var(--classic-font);
  color: var(--white-color);
  font-size: 20px;
  margin: 0;
}

main {
  min-height: 70vh;
}

/*Header*/

header {
  position: sticky;
  top: 0;
  font-size: 20px;
  text-align: center;
  background-color: var(--white-color);
  color: var(--black-color);
  min-height: 9vh;
}

header a {
  text-decoration: none;
  transition: color 0.3s ease-in-out;
  font-size: 20px;
}

header nav ul {
  display: flex;
  align-items: center; /* Aligne les éléments verticalement */
  list-style: none; /* Supprime les puces des éléments de liste */
  margin: 0;
  padding: 0%;
}

header nav {
  display: flex;
  justify-content: space-between; /* Espace entre le logo et le menu */
  align-items: center; /* Aligne les éléments verticalement */
  padding: 16px 32px;
}

header nav ul li {
  margin: 0 8px; /* Ajoute un espacement horizontal entre les éléments */
}

header nav ul li a {
  text-decoration: none; /* Supprime le soulignement des liens */
  text-align: center;
  color: inherit;
}

header nav ul li a:hover {
  color: var(--hoover-color); /* Change la couleur au survol */
}

#member_icoon svg path {
  transition: fill 0.3s ease-in-out; /* Ajoute une transition douce */
}

#member_icoon:hover svg path {
  fill: var(--hoover-color); /* Change la couleur au survol */
}

.txt_logo {
  font-family: var(--exotic-font);
  font-size: 32px;
}

.logo {
  display: flex;
  align-items: center; /* Aligne le texte et l'icône verticalement */
  gap: 8px; /* Espace entre le texte et l'icône */
}

.right-header {
  display: flex;
  align-items: center;
  gap: 16px; /* Espace entre les éléments */
}

.left-header {
  display: flex;
  align-items: center;
  gap: 16px; /* Espace entre les éléments */
}

/* Styliser le switcher de langue */
.language-switcher {
  position: relative;
  display: inline-block;
  text-align: start;
}

.language-switcher .current-language {
  text-decoration: none;
  cursor: pointer;
  padding: 5px 10px;
}

.language-switcher .language-options {
  display: none; /* Masquer le menu par défaut */
  position: absolute;
  top: 100%;
  left: -8px;
  padding: 0 8px;
  margin: 0;
  z-index: 1000;
  background-color: var(--white-color);
}

/* Afficher le menu déroulant au survol */
.language-switcher:hover .language-options {
  display: block;
}

/*Burger*/
.burger {
  position: relative;
  padding: 1.5rem;
  display: none;
}

.menu-toggle {
  position: absolute;
  right: 1.5rem;
  top: 49%;
  transform: translate(0, -50%);
  height: 26px;
  width: 29px;
}

.menu-toggle-bar {
  display: block;
  position: absolute;
  top: 50%;
  margin-top: -1px;
  right: 0;
  width: 100%;
  height: 4px;
  border-radius: 4px;
  background-color: var(--hoover-color);
  transition: all 0.3s ease;

  &.menu-toggle-bar--top {
    transform: translate(0, -8px);
  }
  &.menu-toggle-bar--middle {
  }
  &.menu-toggle-bar--bottom {
    transform: translate(0, 8px);
  }

  .nav-open & {
    &.menu-toggle-bar--top {
      transform: translate(0, 0) rotate(45deg);
    }
    &.menu-toggle-bar--middle {
      opacity: 0;
    }
    &.menu-toggle-bar--bottom {
      transform: translate(0, 0) rotate(-45deg);
    }
  }
}
@media screen and (max-width: 1024px) {
  .txt_logo {
    display: none;
  }

  .burger {
    display: block;
  }

  .ul_link {
    flex-direction: column;
    align-items: start !important;
    gap: 16px;
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--white-color);
    z-index: 1000;
    padding: 16px !important;
  }

  header {
    color: var(--hoover-color);
  }
  
  header nav {
      padding: 16px;
  }

  /* Afficher le menu lorsque le burger est activé */
  .ul_link.active {
    display: flex; /* Affiche le menu */
  }

  .ul_link {
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform: translateY(-20px);
    opacity: 0;
    box-sizing:border-box;
  }

  .ul_link.active {
    transform: translateY(0);
    opacity: 1;
  }

  #member_icoon svg path {
    fill: var(--hoover-color) !important;
  }
}

/* Footer */
footer {
  background-color: var(--dark-green-color);
  padding: 16px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 10vh;
}

footer a,
footer p {
  font-size: 20px;
}

footer ul {
  list-style-type: none;
  padding: 0;
}

.footer__bottom {
  display: flex;
}

.footer__links {
  flex: 1;
}

.footer__social {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: end;
  flex: 1;
}

.footer__social p {
  margin-right: 128px;
}

footer li {
  margin-bottom: 8px;
}

@media screen and (max-width: 1024px) {
  .footer__social p {
    margin-right: 0;
  }

  footer {
    padding: 16px 16px;
  }
}

/*balise normal*/

h1 {
  margin: 32px;
  padding: 0;
  font-weight: normal;
  font-size: 32px;
  text-decoration: underline;
  text-underline-offset: 16px;
  text-decoration-thickness: 2px;
}

h2 {
  margin: 0;
  padding: 0;
  font-weight: normal;
  text-decoration: underline;
  text-underline-offset: 16px;
  text-decoration-thickness: 2px;
}

button {
  margin-left: auto;
  width: fit-content;
  border: 1px solid var(--white-color);
  border-radius: 16px;
  padding: 8px 16px;
  background-color: transparent;
  cursor: pointer;
  color: var(--white-color);
  font-family: var(--classic-font);
  font-size: 20px;
}

p {
  margin: 0;
  padding: 0;
  line-height: 32px;
}

a {
  text-decoration: none;
  color: inherit;
}

input {
  all: unset;
  background-color: transparent;
}

input::placeholder {
  color: var(--white-color);
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--white-color);
  -webkit-box-shadow: 0 0 0px 40rem var(--green-color) inset;
}

textarea {
  all: unset;
  width: 100%;
  white-space: pre-wrap; /* Permet le retour à la ligne */
  word-wrap: break-word; /* Assure que les mots longs ne cassent pas la mise en page */
  overflow-x: hidden; /* Empêche le scroll horizontal */
  resize: vertical; /* Permet uniquement le redimensionnement vertical */
}

textarea::placeholder {
  color: var(--white-color);
}

img {
  width: 100%;
  height: auto;
}

p {
  font-size: 16px;
}

a {
  font-size: 16px;
}

/* homepage */

#first_container_hp {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
}

#first_container_hp .container_img_hp,
#first_container_hp .container_text_hp {
  flex: 1;
  height: 480px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background-color: var(--white-color);
  color: var(--black-color);
}

.container_text_hp h1 {
  text-decoration: none;
}

#first_container_hp .container_img_hp img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

#second_container_hp {
  margin: 16px 32px;
  gap: 16px;
  display: flex;
  flex-direction: column;
}

#container_NFQHA {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  flex-direction: column;
  background-color: white;
  color: var(--black-color);
  border-radius: 8px;
  padding: 8px 16px;
  max-width: 386px;
}

#third_container_hp {
  display: flex;
  flex-direction: column;
  margin: 16px 32px;
  gap: 16px;

  margin-bottom: 16px;
}

#map_container {
  box-sizing: border-box;
  padding: 0 16px;
  height: 280px;
  max-width: 1048px;
  width: 100%;
  margin: 0 auto;
  margin-bottom: 32px;
}

#map {
  border-radius: 16px;
  width: 100%;
  height: 100%;
}

@media screen and (max-width: 1024px) {
  #first_container_hp {
    flex-direction: column;
  }

  #second_container_hp, #third_container_hp {
    margin: 8px 16px;
  }

  .container_text_hp {
    background-color: transparent !important;
    color: var(--white-color) !important;
    align-items: start !important;
    padding: 16px;
  }

  h2 {
    text-align: center;
  }
}

/*facilities*/
.content-facilities {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 64px;
  padding: 32px 0;
}

.content-facilities img {
  width: auto;
  height: 100%;
  border-radius: 8px;
  max-height: 512px;
  max-width: 640px;
}

.facilities-show-right,
.facilities-show-left {
  display: flex;
  background-color: #248232;
  padding: 32px;
  width: 80%;
  border-radius: 16px;
}

.facilities-show-right {
  justify-content: end;
}

.facilities-info {
  padding: 32px;
}

@media screen and (max-width: 1024px) {
  .content-facilities img {
    max-height: 256px;
    max-width: 310px;
  }

  .facilities-show-left,
  .facilities-show-right {
    flex-direction: column;
    align-items: center;
  }

  .facilities-show-right {
    flex-direction: column-reverse;
  }
}

/* horses*/

.horses-list {
  display: flex;
  padding: 32px 64px;
  justify-content: center;
  align-items: center;
  align-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.horse-card img {
  width: 256px;
  height: 256px;
  object-fit: cover;
  border-radius: 8px;
}

.horse-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: min-content;
  gap: 8px;
  background-color: var(--dark-green-color);
  color: var(--white-color);
  border-radius: 8px;
  padding: 16px;
}

.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
}

.modal-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  text-align: left;
  box-sizing: border-box;
}

.modal-columns {
  display: flex;
  gap: 32px;
  align-items: center;
  width: 100%;
}

.modal-prev,
.modal-next {
  border: none;
  font-size: 2.5rem;
  cursor: pointer;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}
.modal-prev {
  left: -48px;
}
.modal-next {
  right: -48px;
}

.modal-nav {
  font-size: 20px;
}

.modal-link {
  color: var(--hoover-color);
}

.modal-text {
  max-width: 512px;
}

#modal-photo {
  max-width: 100%;
  max-height: 60vh;
  border-radius: 16px;
}

@media screen and (max-width: 1024px) {
  .horse-card img {
    width: 128px;
    height: 128px;
    object-fit: cover;
  }

  .horse-card {
    padding: 8px;
  }

  .horses-list {
    padding: 32px 8px;
  }

  .modal-text {
    max-width: 256px;
  }

  .modal-content {
    position: relative;
  }

  .modal-columns{
      flex-direction: column;
  }

  .modal-prev,
  .modal-next {
    position: absolute;
    top: 100%;
    transform: translateY(100%);
  }

  .modal-prev {
    left: 0;
  }

  .modal-next {
    right: 0;
  }
}

/* horse */

.content-horse-show {
  display: flex;
  gap: 32px;
}

.horse-show {
  flex: 1;
  background-color: var(--dark-green-color);
  border-radius: 0 16px 16px 0;
  padding: 16px;
}

.content-horse img {
  width: 256px;
  height: 256px;
  border-radius: 8px;
  object-fit: cover;
}

.content-horse {
  display: flex;
  gap: 32px;
}

#gallery img {
  width: 150px;
  height: 150px;
  border-radius: 8px;
  object-fit: cover;
}

#gallery {
  flex: 1;
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  height: fit-content;
}

@media screen and (max-width: 1024px) {
  .horse-show {
    border-radius: 0;
  }

  .content-horse-show {
    flex-direction: column;
  }

  .content-horse img {
    width: 150px;
    height: 150px;
  }

  #gallery img {
    width: 128px;
    height: 128px;
  }
}

/* contact */

.contact-form {
  display: flex;
  margin: auto 0;
  padding: 16px;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  width: fit-content;
}

.contact-form label {
  border: 1px solid var(--white-color);
  border-radius: 16px;
  padding: 8px 16px;
}

.contact-input {
  display: flex;
  gap: 32px;
}

@media screen and (max-width: 1024px) {
  .contact-input {
    flex-direction: column;
    gap: 16px;
  }
}

/* login */

#form-login {
  margin: 32px;
}

#form-login input {
  padding: 8px 16px;
  border: 1px solid var(--white-color);
  border-radius: 16px;
}

@media screen and (max-width: 1024px) {
  #form-login {
    margin: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  #gallery {
    justify-content: space-between;
    align-items: center;
    margin: 32px;
  }
}

/* Legal */
#Privacy-Policy {
  scroll-margin-top: 100px;
}
