/* EquiNox Custom Styles */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Color Variables */
:root {
  --bg-beige: #f3f3ea;
  --bg-light-brown: #cac197;
  --primary-blue: #5a3a26;
  --hover-blue: #42291a;
  --text-gray: #1a1a1a;
  --text-dark: #000000;
  --white: #ffffff;
}

/* Body - Flexbox for sticky footer */
html {
  height: 100%;
  background-color: var(--bg-beige)
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #f4f4eb !important;
  color: var(--text-gray);
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  color: #1a1a1a;
}

/* Logo */
/* Logo posé sur une pastille ronde blanche pour le détacher du fond marron */
.navbar-logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 82px;
  height: 82px;
  margin-right: 1rem;
  padding: 6px;
  background-color: #f4f4eb;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.navbar-brand:hover .navbar-logo-badge {
  transform: scale(1.06);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.22);
}

.navbar-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.navbar-title {
  font-size: 1.4rem;
  letter-spacing: 0.02em;
}

/* Header/Navbar */
header .navbar {
  background-color: var(--bg-light-brown);
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

header .navbar-brand {
  color: var(--text-gray);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
}

header .nav-link {
  color: var(--text-gray);
  font-weight: 500;
  font-size: 1.2rem;
  transition: color 0.3s ease;
  white-space: nowrap;
}

header .nav-link:hover,
header .nav-link.active {
  color: var(--text-gray);
}

/* Language dropdown : séparateur uniquement en mode desktop (menu déployé) */
@media (min-width: 992px) {
  header .navbar-nav:last-child {
    margin-left: 2rem !important;
    padding-left: 2rem;
    border-left: 1px solid rgba(0, 0, 0, 0.15);
  }
}

/* Menu replié (mobile/tablette) : aligner le sélecteur de langue à gauche */
@media (max-width: 991.98px) {
  header .navbar-nav:last-child {
    margin-left: 0 !important;
    padding-left: 0;
    border-left: 0;
  }
  header .dropdown-menu-end {
    --bs-position: start;
    right: auto;
    left: 0;
  }
}

header .dropdown-menu {
  background-color: #D6D6CB;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

header .dropdown-item {
  color: var(--text-gray);;
  transition: all 0.3s ease;
}

header .dropdown-item:hover {
  background-color: rgba(90, 58, 38, 0.1);
  color: var(--primary-blue);
}

header .dropdown-item.active {
  background-color: var(--primary-blue);
  color: var(--white);
}

/* Main Content - Flex grow to push footer down */
main {
  padding: 2rem 0;
  flex: 1 0 auto;
}

/* Buttons */
.btn-primary {
  background-color: var(--primary-blue);
  border-color: var(--primary-blue);
  color: var(--white);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--hover-blue);
  border-color: var(--hover-blue);
}

/* Links */
a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--hover-blue);
}

/* Footer - Sticky at bottom */
footer {
  background-color: var(--bg-light-brown);
  color: var(--text-gray);
  flex-shrink: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

footer h5 {
  color: var(--text-gray);
  font-family: 'Poppins', sans-serif;
}

footer p {
  color: var(--text-gray);
}

/* Hero Carousel */
#heroCarousel {
  margin-bottom: 3rem !important;
}

#heroCarousel .carousel-item {
  height: 500px;
}

#heroCarousel .carousel-item img {
  object-fit: cover;
  height: 100%;
  width: 100%;
}

#heroCarousel .carousel-caption {
  background-color: rgba(202, 193, 151, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 1.5rem 2rem;
  border-radius: 8px;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  max-width: 600px;
}

#heroCarousel .carousel-caption h2 {
  color: var(--text-gray);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

#heroCarousel .carousel-caption p {
  color: var(--text-gray);
  margin-bottom: 0;
  font-size: 1.1rem;
}

#heroCarousel .carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.6);
}

#heroCarousel .carousel-indicators button.active {
  background-color: var(--white);
}

/* Intro Section */
.intro-section {
  padding: 2rem 0;
  margin: 3rem 0;
  color: var(--text-gray);
}

.intro-section .lead {
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--text-dark);
  max-width: 900px;
  margin: 0 auto;
}

/* Feature Boxes */
.feature-boxes {
  margin-top: 3rem;
  margin-bottom: 3rem;
}

.feature-card {
  border: none;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: var(--bg-beige);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.feature-card .card-img-top {
  height: 240px;
  object-fit: cover;
}

.feature-card .card-body {
  padding: 1.5rem;
}

.feature-card .card-title {
  color: var(--text-dark);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.feature-card .card-text {
  color: var(--text-gray);
  line-height: 1.6;
  font-size: 1rem;
}

.feature-card .btn-primary {
  width: 100%;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  border-radius: 6px;
  border: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  #heroCarousel .carousel-item {
    height: 350px;
  }

  #heroCarousel .carousel-caption {
    padding: 1rem;
    bottom: 1rem;
    max-width: 90%;
  }

  #heroCarousel .carousel-caption h2 {
    font-size: 1.5rem;
  }

  #heroCarousel .carousel-caption p {
    font-size: 0.95rem;
  }

  .intro-section .lead {
    font-size: 1.1rem;
  }

  .feature-card .card-img-top {
    height: 200px;
  }
}

/* Équipe — tuiles à largeur FIXE qui passent à la ligne (jamais redimensionnées) */
.equipe-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.equipe-card-link {
  width: 240px;            /* largeur fixe : la tuile ne change pas de taille */
  flex: 0 0 auto;          /* pas d'étirement ni de compression */
  text-decoration: none;
  display: block;
}

/* Sur très petit écran, la tuile occupe la largeur dispo (centrée) */
@media (max-width: 280px) {
  .equipe-card-link {
    width: 100%;
  }
}

.equipe-card .card-img-top {
  height: 200px;
  object-fit: cover;
}

.equipe-card .card-body {
  padding: 1.25rem;
}

.member-role {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--primary-blue);
  margin-bottom: 0.5rem;
}

.member-body {
  color: var(--text-gray);
  line-height: 1.7;
}

/* Profil membre — image à droite, texte à gauche (responsive : image en haut sur mobile) */
.member-profile .cheval-photo {
  max-height: 600px;
}

/* Fiche cheval */
.cheval-photo {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.cheval-meta {
  margin: 1.5rem 0 1rem;
  line-height: 2;
}

.cheval-meta .meta-label {
  display: inline-block;
  min-width: 160px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--primary-blue);
}

.cheval-badge {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  padding: 0.5em 0.9em;
  border-radius: 6px;
}

.cheval-badge-yes {
  background-color: var(--primary-blue);
  color: var(--white);
}

.cheval-badge-no {
  background-color: var(--bg-light-brown);
  color: var(--text-gray);
}

/* Photo Gallery */
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

.photo-gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

/* Accompagnements — page unique + nav sticky scrollspy */
html {
  scroll-behavior: smooth;
}

.accomp-nav {
  top: 0;
  z-index: 1020;
  background-color: var(--bg-beige);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.accomp-nav .nav-link {
  color: var(--text-gray);
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  border-radius: 6px;
  padding: 0.4rem 1rem;
}

.accomp-nav .nav-link:hover {
  background-color: rgba(90, 58, 38, 0.08);
}

.accomp-nav .nav-link.active {
  background-color: var(--primary-blue);
  color: var(--white);
}

/* Carte de section */
.accomp-section {
  /* compense la hauteur de la nav sticky lors du saut vers l'ancre */
  scroll-margin-top: 90px;
  background-color: var(--white);
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.07);
  padding: 2.25rem 2.5rem;
  margin-top: 2.25rem;
}

/* En-tête de section : pastille numéro + titre */
.accomp-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--bg-light-brown);
  margin-bottom: 1.25rem;
}

.accomp-num {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background-color: var(--primary-blue);
  color: var(--white);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
}

.accomp-title {
  font-size: 1.6rem;
  color: var(--primary-blue);
}

/* Méta : badges avec icônes */
.accomp-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.accomp-meta li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background-color: var(--bg-beige);
  color: var(--text-gray);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.9rem;
}

.accomp-meta svg {
  width: 1rem;
  height: 1rem;
  color: var(--primary-blue);
}

/* Corps */
.accomp-body {
  line-height: 1.75;
  max-width: 880px;
}

.accomp-body > p {
  margin-bottom: 1rem;
}

/* Sous-titres : paragraphes en gras transformés en titres accentués */
.accomp-body > p:has(> strong:first-child) {
  font-weight: normal;
  font-family: 'Poppins', sans-serif;
  font-size: 1.15rem;
  color: var(--primary-blue);
  margin-top: 1.75rem;
  margin-bottom: 0.85rem;
  padding-left: 0.85rem;
  border-left: 4px solid var(--bg-light-brown);
}

.accomp-body > p:has(> strong:first-child) strong {
  font-weight: 600;
}

.accomp-body > p:has(> strong:first-child) em {
  font-size: 0.9rem;
  color: var(--text-gray);
}

/* Listes à puces « check » */
.accomp-body ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1rem;
}

.accomp-body ul li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: 0.6rem;
}

.accomp-body ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background-color: rgba(90, 58, 38, 0.1);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a3a26' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 0.8rem;
  background-repeat: no-repeat;
  background-position: center;
}

/* Listes numérotées (objectifs des visites) */
.accomp-body ol {
  list-style: none;
  counter-reset: accomp-counter;
  padding-left: 0;
  margin-bottom: 1rem;
}

.accomp-body ol li {
  counter-increment: accomp-counter;
  position: relative;
  padding-left: 2.4rem;
  margin-bottom: 0.7rem;
}

.accomp-body ol li::before {
  content: counter(accomp-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background-color: var(--primary-blue);
  color: var(--white);
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .accomp-section {
    padding: 1.5rem 1.25rem;
  }
  .accomp-title {
    font-size: 1.3rem;
  }
}

/* Galerie cliquable (limitée à 3 photos par section) */
.accomp-section .photo-gallery {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {
  .accomp-section .photo-gallery {
    grid-template-columns: 1fr;
  }
}

.photo-gallery-item {
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 6px;
  overflow: hidden;
  display: block;
  min-width: 0;        /* évite le débordement des colonnes de grille (blowout) */
  width: 100%;
}

.photo-gallery-item img {
  width: 100%;
  height: 220px;
  max-width: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.photo-gallery-item:hover img {
  transform: scale(1.05);
}

.photo-gallery-item:focus-visible {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}

/* Lightbox */
.lightbox-modal .modal-content {
  background: transparent;
  border: none;
}

.lightbox-modal .lightbox-img {
  width: 100%;
  height: auto;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-modal .lightbox-close {
  position: absolute;
  top: -0.75rem;
  right: -0.75rem;
  z-index: 2;
  background-color: var(--white);
  border-radius: 50%;
  padding: 0.5rem;
  opacity: 1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* =========================================================
   Page Tarifs
   ========================================================= */

/* Cartes des 3 formes */
.tarif-card {
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  background: #fff;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.tarif-card:hover {
  box-shadow: 0 6px 18px rgba(90,58,38,0.08);
  transform: translateY(-2px);
}
.tarif-card--featured {
  border: 2px solid var(--primary-blue);
}
.tarif-card .card-body { padding: 1.25rem; }
.tarif-card__icon {
  display: inline-flex;
  margin-bottom: 0.4rem;
  color: #8a8475;
}
.tarif-card--featured .tarif-card__icon { color: var(--primary-blue); }
.tarif-card__title { font-weight: 600; color: var(--text-dark); }
.tarif-amount {
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1;
}
.tarif-badge {
  background: #e6f4ec;
  color: #1d7a4d;
  font-weight: 500;
}

/* Blocs infos pratiques */
.tarifs-info {
  border-left: 3px solid var(--primary-blue);
  padding: 0.1rem 0 0.1rem 0.9rem;
}
.tarifs-info__icon {
  display: inline-flex;
  color: var(--primary-blue);
}

/* ===== Page Contact ===== */
.contact-card {
  background: #fff;
  border-radius: 14px;
  padding: 1.5rem;
  border: 1px solid #e7e4d8;
}
.contact-coord .contact-ico { flex: 0 0 26px; }
.contact-coord a { color: var(--primary-blue); text-decoration: none; }
.contact-coord a:hover { text-decoration: underline; }
.contact-reseau {
  display: inline-flex;
  color: var(--primary-blue);
  transition: transform .15s ease;
}
.contact-reseau:hover { transform: translateY(-2px); }

.contact-map-wrap { display: flex; flex-direction: column; }
.contact-map {
  width: 100%;
  flex: 1 1 auto;
  min-height: 340px;
  border: 0;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(90,58,38,0.08);
}
.contact-map-link { color: var(--primary-blue); text-decoration: none; font-weight: 500; }
.contact-map-link:hover { text-decoration: underline; }

.contact-transport {
  background: #fff;
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--primary-blue);
}
.contact-transport-list { padding-left: 1.1rem; }
.contact-transport-list li { margin-bottom: 0.4rem; }

/* ============================================================
   Page Approche
   ============================================================ */

/* Colonne de lecture */
.page-prose {
  padding-bottom: 2rem;
}

.page-prose p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-gray);
}

/* Titres de section */
.page-prose h2 {
  position: relative;
  margin-top: 3.25rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.6rem;
  font-weight: 600;
  font-size: 1.6rem;
  color: var(--primary-blue);
}

.page-prose h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 3px;
  border-radius: 3px;
  background-color: var(--bg-light-brown);
}

/* Listes -> cartes principes */
.page-prose ul {
  list-style: none;
  padding-left: 0;
  margin: 1.5rem 0;
}

.page-prose ul li {
  position: relative;
  background-color: var(--white);
  border-left: 4px solid var(--bg-light-brown);
  border-radius: 8px;
  padding: 1rem 1.25rem 1rem 1.5rem;
  margin-bottom: 0.85rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  line-height: 1.65;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-prose ul li:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.page-prose ul li strong {
  color: var(--primary-blue);
}

/* Encadré AMAT (blockquote) */
.page-prose blockquote {
  margin: 3rem 0 0;
  padding: 1.4rem 1.6rem;
  background-color: rgba(202, 193, 151, 0.18);
  border-radius: 10px;
  font-style: italic;
  font-size: 0.98rem;
  color: var(--text-gray);
}

.page-prose blockquote p:last-child {
  margin-bottom: 0;
}

.page-prose blockquote a {
  color: var(--primary-blue);
  font-weight: 500;
}

/* Image de fin */
.page-prose img {
  margin-top: 3rem;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}
