/* ========================================
   LOU SIMBEU - STRUCTURE PARTAGEE (nav + footer)
   Mobile first, breakpoints Tailwind : md 768, sm 640.
   Remplace les listes de classes utilitaires de includes/nav.php et footer.php
   pour alleger le HTML (ratio texte/code).
   ======================================== */

/* --- Icones (lucide copie la classe de <i> sur le <svg>) --- */
.i4 { width: 1rem; height: 1rem; }
.i5 { width: 1.25rem; height: 1.25rem; }
.i6 { width: 1.5rem; height: 1.5rem; }
.i8 { width: 2rem; height: 2rem; }

/* --- Pastille LS (nav, menu mobile, footer) --- */
.ls-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border: 2px solid #d4af37;
  border-radius: 9999px;
  background-color: #3d2314;
}
.ls-badge > span {
  font-family: var(--font-western);
  font-size: 1.125rem;
  line-height: 1.75rem;
  color: #d4af37;
}
.ls-badge--lg {
  display: inline-flex;
  width: 4rem;
  height: 4rem;
  border-width: 4px;
  background-color: transparent;
}
.ls-badge--lg > span {
  font-size: 1.5rem;
  line-height: 2rem;
}
@media (max-width: 375px) {
  .ls-badge--lg {
    width: 3rem !important;
    height: 3rem !important;
  }
}

/* --- Barre de navigation --- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 0.5s;
}
.site-nav--scrolled {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.site-nav__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-nav__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.site-nav__brand {
  display: none;
  color: #f4e4bc;
}
.site-nav--scrolled .site-nav__brand {
  color: #d2b48c;
}
.site-nav__title {
  font-family: var(--font-western);
  font-size: 1.125rem;
  line-height: 1;
}
.site-nav__tag {
  font-size: 0.55rem;
  line-height: 1rem;
  letter-spacing: 0.1em;
  opacity: 0.7;
}
.site-nav__links {
  display: none;
  align-items: center;
  gap: 1.1rem;
}
.site-nav__burger {
  padding: 0.5rem;
  border: 2px solid #d4af37;
  border-radius: 0.25rem;
  color: #f4e4bc;
}

/* --- Tiroir mobile --- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 3rem 1.5rem;
  background-color: #3d2314;
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu.is-open {
  transform: translateX(0);
}
.mobile-menu__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.5rem;
  color: #d4af37;
}
.mobile-menu__logo {
  flex-shrink: 0;
}
.mobile-menu__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  width: 100%;
}
.mobile-link {
  font-family: var(--font-western);
  text-align: center;
  color: #d2b48c;
  transition: color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-link:hover,
.mobile-link.active {
  color: #d4af37;
}
.mobile-menu__foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  padding: 0 1.5rem;
}
.mobile-menu__cta {
  flex-shrink: 0;
}

/* Le numéro tient sur une ligne, même à 320 px (responsive-patches.css force 0.8rem !important sous 375 px) */
#mobile-menu .mobile-menu__cta span {
  white-space: nowrap;
  font-size: clamp(18px, 6.5vw, 28px) !important;
}

/* --- Bouton retour en haut --- */
.btt {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border: 2px solid #d4af37;
  border-radius: 50%;
  background: #3d2314;
  color: #d4af37;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.3s,
    visibility 0.3s,
    background 0.3s;
}
.btt:hover,
.btt:focus-visible {
  background: #d4af37;
  color: #3d2314;
}

/* --- Pied de page --- */
.site-footer {
  position: relative;
  border-top: 4px solid #5c3a24;
  background-color: #2c1f16;
}
.site-footer__in {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 4.5rem 1.5rem 0;
}
.site-footer__grid {
  display: grid;
  gap: 2rem;
  text-align: center;
}
.site-footer__id {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.site-footer__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.site-footer__name {
  font-family: var(--font-western);
  font-size: 1.25rem;
  line-height: 1.75rem;
  color: #f4e4bc;
}
.site-footer__desc {
  margin-bottom: 1rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: #d2b48c;
}
.site-footer__contact {
  margin-bottom: 1.5rem;
}
.site-footer__contact > * + * {
  margin-top: 0.5rem;
}
.site-footer__contact .site-footer__link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.site-footer__link,
.site-footer__nav a {
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 700;
  color: #d2b48c;
  transition: color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}
.site-footer__link:hover,
.site-footer__nav a:hover {
  color: #d4af37;
}
.site-footer__link--xs {
  font-size: 0.75rem;
  line-height: 1rem;
}
.site-footer__nav--art a {
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 400;
}
.site-footer__nav--art a:first-child {
  margin-bottom: 0.25rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 700;
}
.site-footer__nav a.site-footer__link--gold,
.site-footer__nav a.site-footer__link--gold:hover {
  color: #d4af37;
}
.site-footer__ico {
  width: 1rem;
  height: 1rem;
  color: #d4af37;
}
.site-footer__ico--pin {
  flex-shrink: 0;
}
.site-footer__social {
  display: flex;
  gap: 0.75rem;
}
.site-footer__soc {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid #5c3a24;
  border-radius: 0.25rem;
  background-color: #3d2314;
  transition: color 0.15s cubic-bezier(0.4, 0, 0.2, 1),
    background-color 0.15s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}
.site-footer__soc:hover {
  background-color: #b7410e;
}
.site-footer__h {
  margin-bottom: 1.5rem;
  font-family: var(--font-western);
  font-size: 1.125rem;
  line-height: 1.75rem;
  letter-spacing: 0.1em;
  color: #d4af37;
}
.site-footer__h--tight {
  line-height: 1.25;
}
.site-footer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.site-footer__bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
}
.site-footer__credit {
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #5c3a24;
}
.site-footer__accent {
  color: #b7410e;
  transition: color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}
.site-footer__accent:hover {
  color: #d4af37;
}
.site-footer__accent--b {
  font-weight: 700;
}
.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: 0.75rem;
  line-height: 1rem;
}
.site-footer__legal a:not(.site-footer__accent) {
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #5c3a24;
  transition: color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}
.site-footer__ph {
  letter-spacing: 0.05em;
  color: #5c3a24;
}
.site-footer__link:focus-visible,
.site-footer__soc:focus-visible,
.site-footer__legal a:focus-visible,
.site-footer__accent:focus-visible,
.site-nav a:focus-visible,
.mobile-menu a:focus-visible {
  outline: 2px solid #d4af37;
  outline-offset: 2px;
}

/* --- Barre d'actions flottante (reserver) --- */
.cta {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 0.5s;
}
.cta__wrap {
  position: relative;
}
.cta__popup {
  position: absolute;
  bottom: 4.5rem;
  left: 0;
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.3s,
    transform 0.3s;
  pointer-events: auto;
}
.cta__list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.cta__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  background: rgba(44, 31, 22, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid #d4af37;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
}
.cta__item--wa {
  border-color: #25d366;
}
.cta__item svg {
  width: 1rem;
  height: 1rem;
  color: #d4af37;
}
.cta__item--wa svg {
  color: #25d366;
}
.cta__item span {
  font-family: var(--font-western);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: #f4e4bc;
}
.cta__btn {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 3.5rem;
  padding: 0 1.5rem;
  border: 2px solid #d4af37;
  border-radius: 999px;
  background: #b7410e;
  color: #f4e4bc;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s;
}
.cta__btn svg {
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 0.5rem;
  transition: transform 0.3s;
}
.cta__btn span {
  font-family: var(--font-western);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- Tablette et plus (md = 768) --- */
@media (min-width: 640px) {
  .site-nav__brand {
    display: block;
  }
}
@media (min-width: 768px) {
  .site-nav__links {
    display: flex;
  }
  .site-nav__burger,
  .mobile-menu {
    display: none;
  }
  .site-footer__grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .site-footer__bar {
    flex-direction: row;
  }
}

/* --- Ex-<style> inline de header.php (meme cascade : apres responsive-patches) --- */
/* Lien d'évitement clavier - visible au focus uniquement */
.skip-link {
    position: absolute;
    left: 1rem;
    top: -100px;
    z-index: 100000;
    background: #3D2314;
    color: #F4E4BC;
    padding: 0.75rem 1.25rem;
    border: 2px solid #D4AF37;
    font-family: var(--font-western), serif;
    text-decoration: none;
    transition: top 0.2s ease;
}
.skip-link:focus {
    top: 1rem;
    outline: 2px solid #D4AF37;
}

.wood-frame {
    padding: 0 !important;
}

.gallery-item-western {
    opacity: 1 !important;
    transform: none !important;
}

/* SEO: content always visible - GSAP animates only onEnter via ScrollTrigger.
   Googlebot doesn't scroll, so below-fold content stays at opacity:1. */
[data-gsap] {
    opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
    [data-gsap] { opacity: 1 !important; transform: none !important; }
}

/* Preloader: auto-hide fallback if JS stalls - Googlebot sees content, not overlay */
#preloader {
    animation: preloader-seo-fallback 0.5s 3.5s forwards;
}
@keyframes preloader-seo-fallback {
    to { opacity: 0; visibility: hidden; pointer-events: none; }
}

/* --- Bandeau de consentement (assets/js/consent.js) --- */
.site-footer__cookies {
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #5c3a24;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}
.site-footer__cookies:hover,
.site-footer__cookies:focus-visible {
  color: #d4af37;
}
.site-footer__cookies:focus-visible {
  outline: 2px solid #d4af37;
  outline-offset: 2px;
}
.consent {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 100;
  padding: 1.25rem;
  background: #2c1f16;
  color: #f4e4bc;
  border: 2px solid #d4af37;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  animation: consent-in 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.consent__title {
  margin: 0 0 0.5rem;
  font-family: var(--font-western);
  font-size: 1.05rem;
  color: #d4af37;
}
.consent__text {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
}
.consent__text a {
  color: #d4af37;
  text-decoration: underline;
}
.consent__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.consent__btn {
  min-height: 2.75rem;
  font: inherit;
  font-weight: 700;
  color: #f4e4bc;
  background: #3d2314;
  border: 2px solid #d4af37;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.consent__btn:hover,
.consent__btn:focus-visible {
  background: #d4af37;
  color: #2c1f16;
}
.consent__btn:focus-visible {
  outline: 2px solid #f4e4bc;
  outline-offset: 2px;
}
@keyframes consent-in {
  from { opacity: 0; transform: translateY(1rem); }
}
@media (min-width: 640px) {
  .consent {
    right: auto;
    max-width: 26rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .consent { animation: none; }
}
