/* ========================================
   LOU SIMBEU - PAGES (galerie, reservation, contact, FAQ)
   Mobile first, breakpoints Tailwind : sm 640, md 768, lg 1024, xl 1280.
   Remplace les listes de classes utilitaires de sections/gallery.php,
   booking-form.php, contact.php et des FAQ (ratio texte/code).
   ======================================== */

/* --- En-tete de section centre (galerie, FAQ) --- */
.sh {
  text-align: center;
  margin-bottom: 4rem;
}
.sh > .text-western-caption {
  margin-bottom: 1rem;
}
.sh > h2 {
  margin-bottom: 1.5rem;
}
.sh h2 span {
  color: #d4af37;
}
.sh .sub {
  color: #d2b48c;
}
.sh .western-divider {
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

/* --- Galerie --- */
#galerie {
  overflow: hidden;
  background-color: var(--western-cream);
}
#galerie h2 span {
  color: var(--western-rust);
}
.gal-lead {
  max-width: 42rem;
  margin: 1.5rem auto 0;
  color: var(--western-leather);
}
.gal-credit {
  margin-top: 1rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  opacity: 0.6;
  color: var(--western-leather);
}
.gal-credit a {
  color: var(--western-rust);
  font-weight: bold;
}
.gallery-masonry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 8px;
  gap: 1rem;
}
.gi {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  border: 4px solid #e5e7eb;
  border-radius: 0;
  opacity: 0;
  transform: translateY(30px) scale(0.95);
}
.gi.is-visible {
  opacity: 1;
  transform: none;
}
.gi img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.go {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(61, 35, 20, 0);
  transition: background-color 0.3s ease;
}
.go > div {
  text-align: center;
}
.go svg {
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.5rem;
  color: #d4af37;
}
.go p {
  color: #f4e4bc;
  font-family: var(--font-western);
}
.gal-more {
  margin-top: 4rem;
  text-align: center;
}
.gal-more h2 {
  margin-bottom: 2rem;
}
.gal-rides {
  display: grid;
  gap: 2rem;
  text-align: left;
}
.gal-rides h3 {
  margin-bottom: 0.5rem;
  font-family: var(--font-western);
  font-size: 1.25rem;
  line-height: 1.75rem;
}
.gal-rides a {
  color: var(--western-rust);
}
.gi:hover .go {
  background-color: rgba(61, 35, 20, 0.4);
}

@media (min-width: 768px) {
  .gal-rides {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1023px) {
  .gallery-masonry {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 639px) {
  .gallery-masonry {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 0.75rem;
  }
  .gi {
    grid-row-end: auto !important;
  }
  .gi img {
    height: auto;
    object-fit: contain;
  }

  /* Lightbox mobile */
  .lightbox .lightbox-content {
    width: 100% !important;
    height: 100% !important;
  }
  .lightbox .lightbox-image-wrapper {
    max-width: 95% !important;
  }
  .lightbox .lightbox-image-wrapper img {
    outline-width: 3px !important;
    border-width: 2px !important;
    max-height: 65vh !important;
  }
  .lightbox .lightbox-prev,
  .lightbox .lightbox-next {
    width: 40px !important;
    height: 40px !important;
    left: 8px;
  }
  .lightbox .lightbox-next {
    left: auto;
    right: 8px !important;
  }
  .lightbox .lightbox-prev i,
  .lightbox .lightbox-next i {
    width: 22px !important;
    height: 22px !important;
  }
  .lightbox .lightbox-close {
    top: 10px !important;
    right: 10px !important;
    padding: 8px 12px !important;
    font-size: 0.8rem;
  }
}

/* --- FAQ (sections/faq.php, page-faq.php, gallery-faq.php) --- */
.fq > * + * {
  margin-top: 1rem;
}
.fq .faq-western {
  overflow: hidden;
}
.fq .faq-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.5rem;
  text-align: left;
}
.fq .faq-trigger > span {
  padding-right: 2rem;
  font-family: var(--font-western);
  font-size: 1.25rem;
  line-height: 1.75rem;
}
.fq .faq-icon-wrapper {
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.fq .faq-icon-wrapper > div {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 2px solid #b7410e;
}
.fq .faq-icon-wrapper span {
  color: #b7410e;
  font-size: 1.5rem;
  line-height: 1;
}
.fq .faq-content {
  max-height: 0;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.fq .faq-content p {
  padding: 0 1.5rem 1.5rem;
  color: #5c3a24;
}

/* --- Reservation (sections/booking-form.php) --- */
#reservation {
  position: relative;
  overflow: hidden;
  color: #f4e4bc;
}
#reservation .container-western {
  position: relative;
  z-index: 10;
}
#reservation h2 span {
  font-style: italic;
}
#reservation .sh > p {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  color: #d2b48c;
  font-style: italic;
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
}
#reservation .western-divider {
  margin-top: 2rem;
}
.bk {
  padding: 1.25rem;
}
.bf {
  padding: 0.5rem;
}
.bf > * + * {
  margin-top: 1.5rem;
}
.bf-r {
  display: grid;
  gap: 2rem;
}
.bf-f > * + * {
  margin-top: 1rem;
}
.bf label,
.bf h3 {
  color: #d4af37;
  font-family: var(--font-western);
}
.bf label {
  font-size: 1.25rem;
  line-height: 1.75rem;
}
.bf h3 {
  font-size: 1.5rem;
  line-height: 2rem;
}
.bf label span {
  color: #d2b48c;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1rem;
}
.bf-i,
.bf-n button,
:where(.bf) select,
:where(.bf) input {
  padding: 1rem;
  border: 2px solid #5c3a24;
  background-color: #2c1f16;
  color: #f4e4bc;
}
:where(.bf) select,
:where(.bf) input {
  font-family: var(--font-western);
}
.bf-f > select,
.bf-f > input,
.bf-n input {
  width: 100%;
}
.bf select {
  line-height: normal;
}
.bf input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(80%) sepia(20%) saturate(1000%) hue-rotate(350deg) brightness(95%) contrast(90%);
  cursor: pointer;
}
.bf-n {
  display: flex;
}
.bf-n button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.5rem;
  color: #d4af37;
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 700;
}
.bf-n input {
  padding: 1rem;
  border-width: 0;
  text-align: center;
  font-size: 1.25rem;
  line-height: 1.75rem;
  -moz-appearance: textfield;
}
.bf-n input::-webkit-inner-spin-button,
.bf-n input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.bf-i {
  color: #d2b48c;
  font-size: 0.9rem;
  line-height: 1.6;
}
.bf-i svg {
  margin-right: 0.3rem;
  vertical-align: middle;
  color: #d4af37;
}
.bf-f > .text-western-caption {
  line-height: 1rem;
}
.bf-s {
  padding-top: 2rem;
  text-align: center;
}
.bf-s > .btn-western-primary {
  width: 100%;
}
.bf-tb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2rem;
}
.bf-tb > div {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #d4af37;
}
.bf-tb > div > div {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid #e5e7eb;
  border-radius: 9999px;
}
.bf-tb span {
  font-family: var(--font-western);
  font-size: 0.75rem;
  line-height: 1rem;
}
.bf-ssl {
  font-style: italic;
  font-size: 0.75rem;
  line-height: 1rem;
}

@media (min-width: 768px) {
  .bk {
    padding: 3rem;
  }
  .bf {
    padding: 2.5rem;
  }
  .bf-r {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.bf .phone-group__cc {
  padding-top: 0;
  padding-bottom: 0;
}

/* --- Contact (contact.php) --- */
.i10 {
  width: 2.5rem;
  height: 2.5rem;
}
.ct {
  position: relative;
  overflow: hidden;
  background-color: #f4e4bc;
}
.ct-g {
  display: grid;
  gap: 3rem;
}
.ct h2,
.ct-sh h2 {
  font-size: clamp(2rem, 4vw, 4rem);
}
.ct h2 {
  margin-bottom: 1.5rem;
}
.ct h2 span {
  color: #b7410e;
}
.ct-g > div > .text-western-caption {
  margin-bottom: 1rem;
}
.ct .text-western-body {
  margin-bottom: 2.5rem;
}
.ct-l {
  margin-bottom: 2.5rem;
}
.ct-l > * + * {
  margin-top: 1.5rem;
}
.ct-i {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.ct-b,
.ct-soc a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  background-color: #3d2314;
  border: 2px solid #d4af37;
}
.ct-b svg,
.ct-soc svg {
  color: #d4af37;
}
.ct-b {
  flex-shrink: 0;
}
.ct-t {
  display: flex;
  flex-direction: column;
}
.ct-t > .text-western-caption {
  margin-bottom: 0;
  line-height: 1;
}
.ct-t a {
  margin-top: 0.25rem;
  color: #3d2314;
  font-family: var(--font-western);
  font-size: 1.25rem;
  line-height: 1;
}
.ct-t .ct-ad {
  line-height: 1.75rem;
}
.ct-h {
  margin-top: 0.25rem;
  color: #3d2314;
  font-family: var(--font-western);
  font-size: 1.125rem;
  line-height: 1.75rem;
}
.ct-s {
  margin-top: 0.25rem;
  color: #5c3a24;
  font-size: 0.875rem;
  line-height: 1.25rem;
}
.ct-soc {
  display: flex;
  gap: 1rem;
}
.ct-m {
  position: relative;
  margin-top: 2rem;
}
.ct-m .wood-frame {
  overflow: hidden;
  aspect-ratio: 1 / 1;
}
#map-consent {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  width: 100%;
  height: 100%;
  padding: 1.5rem;
  background: #2c1f16;
  text-align: center;
}
#map-consent > svg {
  color: #d4af37;
}
#map-consent p {
  margin: 0;
  color: #d2b48c;
  font-size: 0.78rem;
  line-height: 1.5;
  max-width: 19rem;
}
#map-consent p:first-of-type {
  color: #f4e4bc;
  font-family: var(--font-western), serif;
  font-size: 1.2rem;
  line-height: 1.6;
  max-width: none;
}
.ct-m iframe {
  border: 0;
  filter: sepia(0.5) contrast(1.1);
}
.ct-bd {
  position: absolute;
  bottom: -1rem;
  right: -1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 6rem;
  height: 6rem;
  background: #b7410e;
  border: 4px solid #d4af37;
  border-radius: 50%;
  transform: rotate(12deg);
}
.ct-bd span {
  color: #f4e4bc;
  font-family: var(--font-western);
  font-size: 10px;
  line-height: 1.25;
  text-align: center;
}
.ct-sh {
  margin-bottom: 3rem;
}
.ct-w {
  display: grid;
  gap: 2rem;
}
.ct-c {
  padding: 2rem;
  background: #2c1f16;
  border: 2px solid #5c3a24;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
}
.ct-c svg {
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 auto 1rem;
  color: #d4af37;
}
.ct-c h3 {
  margin-bottom: 1rem;
  color: #d4af37;
  font-family: var(--font-western);
  font-size: 1.25rem;
  line-height: 1.75rem;
}
.ct-c p {
  color: #f4e4bc;
  font-size: 0.875rem;
  line-height: 1.25rem;
}
.ct-pk {
  margin-top: 2rem;
  text-align: center;
}
.ct-pk p:first-child {
  max-width: 42rem;
  margin: 0 auto 0.75rem;
}
.ct-pk p {
  color: #d2b48c;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

@media (min-width: 768px) {
  .ct-w {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .ct-g {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5rem;
  }
}
