/*
Theme Name: Les Festins du Sud
Theme URI: https://lesfestinsdusud.fr
Author: Les Festins du Sud
Description: Thème sur mesure pour Les Festins du Sud, traiteur paella et fidéua à Toulouse et en Occitanie.
Version: 1.9
Text Domain: les-festins-du-sud
*/

/* Les polices (Cinzel, Cormorant Garamond, Jost) sont chargées via Google Fonts
   dans functions.php (lfs_enqueue_assets). Ne pas réimporter ici. */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #F6F1E7;
  color: #14110C;
  font-family: 'Jost', sans-serif;
  overflow-x: hidden;
}
a { color: #A07E1C; text-decoration: none; }
a:hover { color: #C9A227; }
::selection { background: #C9A227; color: #14110C; }
img { max-width: 100%; display: block; }
button { font: inherit; }

/* Image qui remplit son conteneur (remplace les anciens placeholders) */
.lfs-fill { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Logo image (PNG détouré transparent — net sur les fonds sombres) */
.lfs-logo { display: flex; align-items: center; }
.lfs-logo-img { height: 66px; width: auto; display: block; }
.lfs-footer__logo-img { height: 64px; width: auto; display: block; margin-bottom: 16px; }

/* ==========================================================================
   Hover states (générées depuis la maquette)
   ========================================================================== */
.lfs-hvr-1:hover { background:#E0C158; }
.lfs-hvr-2:hover { border-color:#C9A227;color:#C9A227; }
.lfs-hvr-3:hover { color:#A07E1C; }
.lfs-hvr-4:hover { transform:translateY(-6px);box-shadow:0 18px 40px -22px rgba(20,17,12,0.4); }
.lfs-hvr-5:hover { transform:scale(1.08); }
.lfs-hvr-6:hover { background:#C9A227;border-color:#C9A227;color:#14110C; }
.lfs-hvr-7:hover { color:#C9A227; }
.lfs-hvr-8:hover { opacity:0.9; }
.lfs-hvr-9:hover { opacity:0.85; }
.lfs-hvr-10:hover { background:#C9A227;color:#14110C; }

/* ==========================================================================
   Header
   ========================================================================== */
.lfs-header {
  position: sticky;
  top: 0;
  z-index: 300;
  background: #14110C;
  border-bottom: 1px solid rgba(201,162,39,0.2);
}
.lfs-header__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.lfs-logo {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 26px;
  color: #F6F1E7;
  letter-spacing: 0.01em;
}
.lfs-logo span { color: #C9A227; }
.lfs-nav {
  display: flex;
  align-items: center;
  gap: 38px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.lfs-nav a {
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #D8D0BF;
}
.lfs-nav a:hover,
.lfs-nav .is-active a {
  color: #C9A227;
}
.lfs-header__cta {
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  color: #14110C;
  background: #C9A227;
  padding: 12px 24px;
  white-space: nowrap;
}
.lfs-header__cta:hover { background: #E0C158; color: #14110C; }
.lfs-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.lfs-burger span { width: 24px; height: 2px; background: #F6F1E7; }
.lfs-mobile-nav {
  display: none;
  flex-direction: column;
  background: #14110C;
  border-top: 1px solid rgba(201,162,39,0.2);
  padding: 10px 32px 26px;
}
.lfs-mobile-nav.is-open { display: flex; }
.lfs-mobile-nav a {
  color: #D8D0BF;
  font-family: 'Jost', sans-serif;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.lfs-mobile-nav a:hover { color: #C9A227; }

/* ==========================================================================
   Footer
   ========================================================================== */
.lfs-footer {
  background: #14110C;
  color: #B9B29F;
  padding: 80px 32px 30px;
}
.lfs-footer__inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
.lfs-footer h3 {
  font-family: 'Cinzel', serif;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #C9A227;
  margin: 0 0 20px;
}
.lfs-footer p { font-size: 14px; line-height: 1.7; margin: 0 0 10px; }
.lfs-footer ul { list-style: none; margin: 0; padding: 0; }
.lfs-footer li { margin-bottom: 12px; }
.lfs-footer a { color: #B9B29F; font-size: 14px; }
.lfs-footer a:hover { color: #C9A227; }
.lfs-footer__logo {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 26px;
  color: #F6F1E7;
  margin-bottom: 16px;
  display: inline-block;
}
.lfs-footer__logo span { color: #C9A227; }
.lfs-footer__bottom {
  max-width: 1240px;
  margin: 60px auto 0;
  padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: #7A7462;
}
.lfs-footer__bottom a { color: #7A7462; }
.lfs-footer__bottom a:hover { color: #C9A227; }

/* ==========================================================================
   FAQ accordion (comportement JS)
   ========================================================================== */
.lfs-faq-panel { display: none; }
.lfs-faq-item.is-open .lfs-faq-panel { display: block; }
.lfs-faq-item.is-open .lfs-faq-icon { transform: rotate(45deg); }
.lfs-faq-icon { transition: transform 0.25s; display: inline-block; }

/* ==========================================================================
   Galerie — filtres
   ========================================================================== */
.lfs-gal-item { transition: opacity 0.2s; }
.lfs-gal-item.is-hidden { display: none; }
.lfs-gal-filter.is-active {
  background: #14110C !important;
  border-color: #14110C !important;
  color: #F6F1E7 !important;
}
.lfs-gal-filter:not(.is-active) {
  background: transparent !important;
  color: #14110C !important;
}

/* ==========================================================================
   Contact — état envoyé
   ========================================================================== */
.lfs-form-success { display: none; }
.lfs-page-contact.is-sent .lfs-form-success { display: block; }
.lfs-page-contact.is-sent .lfs-contact-form { display: none; }

/* ==========================================================================
   WhatsApp flottant
   ========================================================================== */
.lfs-whatsapp-float {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 200;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px -8px rgba(0,0,0,0.5);
}

/* ==========================================================================
   Contenu éditorial (pages, articles, mentions légales)
   ========================================================================== */
.lfs-prose {
  font-family: 'Jost', sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: #2B271F;
}
.lfs-prose h2 { font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: 32px; margin: 40px 0 14px; color: #14110C; }
.lfs-prose h3 { font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: 25px; margin: 32px 0 12px; color: #14110C; }
.lfs-prose p { margin: 0 0 18px; }
.lfs-prose a { color: #A07E1C; text-decoration: underline; }
.lfs-prose a:hover { color: #C9A227; }
.lfs-prose ul, .lfs-prose ol { margin: 0 0 18px; padding-left: 22px; }
.lfs-prose li { margin-bottom: 8px; }
.lfs-prose blockquote {
  margin: 24px 0;
  padding: 8px 22px;
  border-left: 3px solid #C9A227;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 22px;
  color: #14110C;
}
.lfs-prose img { margin: 24px 0; }

/* ==========================================================================
   Bandeau "points forts" (accueil)
   ========================================================================== */
.lfs-trust {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
  overflow: hidden;
}
.lfs-trust__track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.lfs-trust__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 34px 18px;
  border-left: 1px solid rgba(201,162,39,0.14);
}
.lfs-trust__item[aria-hidden="true"] { display: none; }
.lfs-trust__track > .lfs-trust__item:first-child { border-left: none; }
.lfs-trust__ic { color: #C9A227; display: flex; }
.lfs-trust__txt { font-size: 14px; color: #E9E2D2; letter-spacing: 0.03em; line-height: 1.45; }

@keyframes lfs-ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 720px) {
  .lfs-trust { padding: 0; }
  .lfs-trust__track {
    display: flex;
    width: max-content;
    animation: lfs-ticker 28s linear infinite;
  }
  .lfs-trust__track:hover,
  .lfs-trust__track:active { animation-play-state: paused; }
  .lfs-trust__item,
  .lfs-trust__item[aria-hidden="true"] { display: flex; }
  .lfs-trust__item {
    flex: 0 0 auto;
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 10px;
    padding: 13px 0 13px 22px;
    border-left: none;
  }
  .lfs-trust__item::after {
    content: "";
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(201,162,39,0.55);
    margin-left: 22px;
  }
  .lfs-trust__ic svg { width: 17px; height: 17px; }
  .lfs-trust__txt { font-size: 13px; letter-spacing: 0.02em; white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  .lfs-trust__track { animation: none; }
}

/* ==========================================================================
   Hero (accueil) — version épurée sur mobile
   ========================================================================== */
.lfs-hero__text--mobile { display: none; }

/* Lisibilité du texte (surtout le doré) par-dessus la photo */
.lfs-hero__title { text-shadow: 0 2px 22px rgba(0,0,0,0.6), 0 1px 3px rgba(0,0,0,0.45); }
.lfs-hero__eyebrow { text-shadow: 0 1px 12px rgba(0,0,0,0.75); }
.lfs-hero__text,
.lfs-hero__text--mobile { text-shadow: 0 1px 14px rgba(0,0,0,0.65); }

@media (max-width: 600px) {
  .lfs-hero { min-height: 74vh !important; }
  .lfs-hero__grad {
    background: linear-gradient(180deg, rgba(15,13,9,0.72) 0%, rgba(15,13,9,0.5) 45%, rgba(15,13,9,0.92) 100%) !important;
  }
  .lfs-hero__eyebrow-line { display: none; }
  .lfs-hero__eyebrow-row { margin-bottom: 16px !important; }
  .lfs-hero__eyebrow { font-size: 11px !important; letter-spacing: 0.22em !important; }
  .lfs-hero__title { font-size: 38px !important; margin-bottom: 16px !important; }
  .lfs-hero__text { display: none !important; }
  .lfs-hero__text--mobile {
    display: block;
    font-size: 16px;
    line-height: 1.55;
    max-width: 340px;
  }
  .lfs-hero__actions { flex-direction: column; gap: 12px !important; }
  .lfs-hero__btn { width: 100%; text-align: center; padding: 16px 24px !important; }
}

/* ==========================================================================
   Slider / carrousel
   ========================================================================== */
.lfs-slider { position: relative; }
.lfs-slider__track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.lfs-slider__track::-webkit-scrollbar { display: none; }
.lfs-slider__track > * {
  flex: 0 0 auto;
  scroll-snap-align: start;
}
.lfs-slider--cards .lfs-slider__track > * { width: calc((100% - 48px) / 3); }
.lfs-slider--gallery .lfs-slider__track > * { width: calc((100% - 48px) / 3); }

.lfs-slider__nav { display: flex; gap: 10px; }
.lfs-slider__btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(201,162,39,0.5);
  background: transparent;
  color: #A07E1C;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, border-color 0.2s, opacity 0.2s;
}
.lfs-slider__btn:hover:not(:disabled) { background: #C9A227; border-color: #C9A227; color: #14110C; }
.lfs-slider__btn:disabled { opacity: 0.3; cursor: default; }
.lfs-slider__btn--light { border-color: rgba(246,241,231,0.4); color: #F6F1E7; }
.lfs-slider__btn--light:hover:not(:disabled) { background: #C9A227; border-color: #C9A227; color: #14110C; }

@media (max-width: 900px) {
  .lfs-slider--cards .lfs-slider__track > *,
  .lfs-slider--gallery .lfs-slider__track > * { width: calc((100% - 24px) / 2); }
}
@media (max-width: 600px) {
  .lfs-slider__track { gap: 16px; }
  .lfs-slider--cards .lfs-slider__track > *,
  .lfs-slider--gallery .lfs-slider__track > * { width: 84%; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .lfs-nav, .lfs-header__cta { display: none; }
  .lfs-burger { display: flex; }
  .lfs-footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  /* Blocs "image + texte" et formulaires : passage sur une seule colonne */
  main [style*="grid-template-columns:1.5fr 1fr"],
  main [style*="grid-template-columns:1.1fr 1fr"],
  main [style*="grid-template-columns:1fr 1.1fr"],
  main [style*="grid-template-columns:1fr 1fr"],
  main [style*="grid-template-columns:repeat(2"] {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }

  /* Grilles de cartes / photos : 2 colonnes sur tablette */
  main [style*="grid-template-columns:repeat(3"],
  main [style*="grid-template-columns:repeat(4"] {
    grid-template-columns: 1fr 1fr !important;
  }

  /* Reset des ordres inversés (image/texte alternés) */
  main [style*="order:1"], main [style*="order:2"] { order: initial !important; }

  /* Mosaïque galerie accueil : plus de cellules qui "débordent" */
  main [style*="grid-auto-rows:220px"] > div { grid-row: auto !important; }

  .lfs-footer__inner { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  /* Toutes les grilles de cartes / photos : une seule colonne */
  main [style*="grid-template-columns:repeat(3"],
  main [style*="grid-template-columns:repeat(4"] {
    grid-template-columns: 1fr !important;
  }

  /* Hauteurs d'images plus raisonnables sur petit écran */
  main [style*="height:520px"] { height: 300px !important; }
  main [style*="height:420px"] { height: 260px !important; }
  main [style*="height:400px"] { height: 260px !important; }
  main [style*="grid-auto-rows:220px"] { grid-auto-rows: 200px !important; }

  /* Paddings de section réduits */
  main [style*="padding:100px 32px"] { padding: 56px 20px !important; }
  main [style*="padding:110px 32px"] { padding: 56px 20px !important; }
  main [style*="padding:80px 32px"]  { padding: 48px 20px !important; }
}
