* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", sans-serif;
  background: #f5f1e8;
  color: #2e2e2e;
  line-height: 1.6;
}

/* NAVBAR */

.navbar {
  position: sticky;
  top: 0;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 20px 40px;

  background: #5a3e2b;
  z-index: 1000;
}

.logo {
  color: white;
  font-size: 1.8rem;
  font-family: "Playfair Display", serif;
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  color: white;
  text-decoration: none;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;

  width: 0%;
  height: 2px;

  background: #cfa66a;
  transition: 0.3s;
}

.nav-links a:hover::after {
  width: 100%;
}

/* BURGER */

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.burger span {
  width: 28px;
  height: 3px;
  background: white;
}

/* HERO */

.hero {
  position: relative;

  height: 90vh;

  background: url("img/hero3.png") center/cover no-repeat;


  display: flex;
  justify-content: center;
  align-items: center;

  text-align: center;
  color: white;
}

@media(max-width: 768px) {

  .hero {
    background-position: right center;
  }

}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h2 {
  font-size: 3rem;
  margin-bottom: 20px;
  font-family: "Playfair Display", serif;
}

.hero p {
  margin-bottom: 30px;
  font-size: 1.2rem;
}

/* BTN */

.btn {
  display: inline-block;

  padding: 14px 28px;

  background: #cfa66a;
  color: white;

  border-radius: 40px;
  text-decoration: none;

  transition: 0.3s;
}

.btn:hover {
  background: #b88f54;
}

/* SECTION */
.section-text {
  max-width: 800px;
  margin: 0 auto 50px auto;
}
.section {
  padding: 90px 20px;
  text-align: center;
}

.section h2 {
  margin-bottom: 40px;
  font-size: 2.5rem;
  color: #5a3e2b;
  font-family: "Playfair Display", serif;
}

/* CARDS */

.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.card {
  width: 260px;

  background: white;
  padding: 30px;

  border-radius: 20px;

  box-shadow: 0 10px 25px rgba(0,0,0,0.08);

  transition: 0.3s;
}

.card:hover {
  transform: translateY(-8px);
}

.card h3 {
  margin-bottom: 15px;
  color: #5a3e2b;
}

/* GALLERY */

.gallery {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
}

.horse {
  cursor: pointer;
}

.horse img {
  width: 320px;
  height: 320px;

  object-fit: cover;

  border-radius: 20px;

  transition: 0.3s;

  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.horse img:hover {
  transform: scale(1.04);
}

.horse p {
  margin-top: 10px;
  font-weight: 600;
  color: #5a3e2b;
}

/* CONTACT */

.contact-box {
  background: white;

  max-width: 500px;

  margin: auto;
  padding: 40px;

  border-radius: 20px;

  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.contact-box p {
  margin-bottom: 15px;
}

/* MODAL */

.modal {
  display: none;

  position: fixed;
  inset: 0;

  background: rgba(0,0,0,0.8);

  z-index: 2000;

  justify-content: center;
  align-items: center;
}

.modal-content {
  position: relative;

  background: white;

  width: 100%;
  max-width: 900px;

  margin: 40px auto;

  border-radius: 20px;
  overflow: hidden;

  display: flex;

  animation: fadeUp 0.3s ease;
}

.modal-content img {
  width: 50%;
  height: auto;

  object-fit: cover;

  background: #f5f5f5;

  display: block;
}

.modal-content img:not([src]),
.modal-content img[src=""] {
  display: none;
}

.modal-text {
  padding: 40px;
  text-align: left;
}

.close-btn {
  position: absolute;

  top: 15px;
  right: 15px;

  width: 42px;
  height: 42px;

  border: none;
  border-radius: 50%;

  background: #5a3e2b;
  color: white;

  font-size: 1.3rem;

  cursor: pointer;

  z-index: 10;
}

@media(max-width: 768px) {

  .modal {
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .modal-content {
    flex-direction: column;

    width: 100%;
    max-height: 90vh;

    overflow: hidden;

    border-radius: 20px;
  }

  .modal-content img {
    width: 100%;
    height: 220px;

    object-fit: cover;
    flex-shrink: 0;
  }

  .modal-text {
    padding: 25px;

    overflow-y: auto;

    max-height: calc(90vh - 220px);
  }

  .close-btn {
    position: absolute;

    top: 10px;
    right: 10px;

    z-index: 50;
  }

}


/* FOOTER */

footer {
  background: #5a3e2b;
  color: white;

  text-align: center;
  padding: 25px;
}

/* ANIMATION */

.hidden {
  opacity: 0;
  transform: translateY(40px);
  transition: 0.8s;
}

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

/* RESPONSIVE */

@media(max-width: 768px) {

  .burger {
    display: flex;
  }

  .nav-links {
    display: none;

    position: absolute;
    top: 80px;
    right: 0;

    flex-direction: column;

    width: 220px;

    background: #5a3e2b;

    padding: 30px;
  }

  .nav-links.active {
    display: flex;
  }

  .hero h2 {
    font-size: 2rem;
  }

}

/* RÉSEAUX SOCIAUX */

.socials {
  margin-top: 25px;

  display: flex;
  justify-content: center;
  gap: 20px;

  flex-wrap: wrap;
}

.socials a {
  text-decoration: none;

  background: #5a3e2b;
  color: white;

  padding: 12px 20px;

  border-radius: 30px;

  transition: 0.3s;
}

.socials a:hover {
  background: #cfa66a;
  transform: translateY(-3px);
}

/* =========================
   SECTION PRESENTATION
========================= */

.presentation {
  max-width: 950px;

  margin: 60px auto 0 auto;
  padding: 0 25px;

  text-align: left;
}

.presentation p {
  margin-bottom: 28px;

  font-size: 1.08rem;
  line-height: 2;

  color: #3b3b3b;

  font-weight: 300;
  letter-spacing: 0.3px;
}

/* TITRE */

.presentation-title,
.section h2 {
  font-size: 2.8rem;

  margin-bottom: 50px;

  text-align: center;

  color: #5a3e2b;

  font-family: "Playfair Display", serif;

  font-weight: 700;
}

/* EFFET VISUEL DOUX */

.presentation p strong {
  color: #5a3e2b;
}

/* RESPONSIVE */

@media(max-width: 768px) {

  .presentation {
    padding: 0 20px;
  }

  .presentation p {
    font-size: 1rem;
    line-height: 1.9;
  }

  .section h2 {
    font-size: 2.2rem;
  }

}