/* ===========================================================
   MOBILE OVERRIDES — ≤ 768px
   =========================================================== */

@media (max-width: 768px) {

  /* =========================================================
     TICKER
     ========================================================= */
  .ticker {
    height: 38px !important;
  }
  .ticker__item {
    font-size: 10px !important;
    letter-spacing: 0.14em !important;
    padding: 0 14px !important;
  }
  .ticker::before,
  .ticker::after { width: 30px !important; }

  /* =========================================================
     NAVBAR — 2 lignes
     Ligne 1 : logo · réseaux · badge · CTA
     Ligne 2 : nav pills (scroll horizontal)
     ========================================================= */

  .navbar {
    padding: 8px 0 !important;
    top: 38px !important;
    overflow: visible !important;
  }

  .navbar__inner {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 6px 0 !important;
    overflow: visible !important;
    /* Permet au conteneur pills de s'étirer au-delà du padding */
    padding-left: 4% !important;
    padding-right: 4% !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* — Ligne 1 gauche : logo + réseaux — */
  .navbar__left {
    display: flex !important;
    flex: 1 1 auto !important;
    align-items: center !important;
    gap: 6px !important;
    order: 1 !important;
    min-width: 0 !important;
  }

  .navbar__logo-img {
    height: 42px !important;
    width: auto !important;
  }

  .navbar__socials {
    display: flex !important;
    gap: 4px !important;
  }
  .navbar__socials a {
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    backdrop-filter: blur(12px) saturate(140%) !important;
    -webkit-backdrop-filter: blur(12px) saturate(140%) !important;
  }
  .navbar__socials svg {
    width: 12px !important;
    height: 12px !important;
  }

  /* — Ligne 1 droite : badge + bouton — */
  .navbar__right {
    display: flex !important;
    flex-shrink: 0 !important;
    align-items: center !important;
    gap: 6px !important;
    order: 2 !important;
  }

  /* Sélecteur de langue — même hauteur que badge + bouton */
  .lang-flag-btn {
    width: 30px !important;
    height: 30px !important;
    flex-shrink: 0 !important;
  }
  .lang-flag-btn img {
    width: 18px !important;
    height: 13px !important;
  }

  .navbar__status {
    display: inline-flex !important;
    padding: 5px 9px !important;
    height: 30px !important;
    font-size: 9px !important;
    letter-spacing: 0.10em !important;
    gap: 5px !important;
    flex-shrink: 0 !important;
    backdrop-filter: blur(12px) saturate(140%) !important;
    -webkit-backdrop-filter: blur(12px) saturate(140%) !important;
  }
  .navbar__status__dot {
    width: 6px !important;
    height: 6px !important;
  }

  .navbar__cta {
    display: flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
  }
  .navbar__cta .btn {
    padding: 0 11px !important;
    height: 30px !important;
    font-size: 10px !important;
    letter-spacing: 0.07em !important;
    white-space: nowrap !important;
  }

  /* Masquer le burger — pills visibles directement */
  .navbar__burger {
    display: none !important;
  }

  /* — Ligne 2 : nav pills — */
  /* Les 5 pills remplissent toute la largeur via flex:1 — plus besoin de scroll */
  .navbar__nav {
    display: flex !important;
    order: 3 !important;
    width: 100% !important;
    max-width: 100% !important;
    /* Plus de scroll : les pills s'étirent pour remplir */
    overflow: hidden !important;
    flex-wrap: nowrap !important;
    /* Styles conteneur pills */
    gap: 2px !important;
    padding: 4px !important;
    border-radius: 999px !important;
    background: linear-gradient(135deg, rgba(122,60,42,0.36), rgba(122,60,42,0.16)) !important;
    border: 1px solid rgba(251,246,238,0.28) !important;
    backdrop-filter: blur(14px) saturate(130%) !important;
    -webkit-backdrop-filter: blur(14px) saturate(130%) !important;
    isolation: auto !important;
    box-sizing: border-box !important;
  }
  .navbar__nav::after {
    content: none !important;
  }
  .navbar__nav::before {
    content: none !important;
  }
  /* flex: 1 1 auto → chaque pill grandit proportionnellement à son contenu.
     Le flex-grow égal ajoute la même quantité à chaque pill :
     chaque texte a exactement le même espace interne gauche/droite → homogène. */
  .navbar__nav a {
    flex: 1 1 auto !important;
    text-align: center !important;
    padding: 6px 3px !important;
    font-size: 9px !important;
    letter-spacing: 0.04em !important;
    white-space: nowrap !important;
    position: static !important;
  }

  /* =========================================================
     HERO — padding-top ajusté pour navbar 2 lignes
     Ticker 38px + navbar ~110px + margin 10px ≈ 160px
     ========================================================= */
  .hero,
  .pa-hero,
  .histoire-hero,
  .galerie-hero,
  .menu-hero,
  .devis-hero {
    padding-top: 175px !important;
  }

  /* =========================================================
     BACKGROUNDS MOBILES — boost gradients + effets
     ========================================================= */

  /* Page terracotta (accueil) — renforcer les dégradés */
  body:not(.has-solid-nav) {
    background:
      radial-gradient(ellipse 80% 45% at 20% 25%, rgba(255,200,140,0.22), transparent 55%),
      radial-gradient(ellipse 60% 50% at 80% 15%, rgba(245,166,35,0.18), transparent 50%),
      radial-gradient(ellipse 65% 40% at 55% 65%, rgba(80, 18, 6, 0.28),  transparent 55%),
      radial-gradient(ellipse 55% 55% at 5%  60%, rgba(60, 12, 4, 0.22),  transparent 50%),
      radial-gradient(ellipse 58% 38% at 85% 80%, rgba(100,22, 8, 0.28),  transparent 50%),
      #C0614A !important;
  }

  /* Aurora blobs — plus visibles sur mobile */
  .aurora__blob {
    width: 70vw !important;
    filter: blur(50px) !important;
    opacity: 0.65 !important;
  }
  .aurora__blob--1 { opacity: 0.70 !important; }
  .aurora__blob--2 { opacity: 0.75 !important; }
  .aurora__blob--3 { opacity: 0.40 !important; }

  /* Topo-pattern — légèrement plus visible */
  .topo-pattern { opacity: 0.14 !important; }

  /* =========================================================
     GLASS CARDS — corriger l'effet noir du backdrop-filter
     =========================================================
     .glass-card / .frosted : blur(36px) saturate(200%) contrast(1.08) brightness(1.05)
     .feature               : blur(24px) saturate(200%) contrast(1.05)
     .placeholder__badge    : blur(24px) saturate(200%) contrast(1.05)
     → saturate(200%) + contrast sur fond terracotta foncé = carte noire
     → On allège à blur(14px) saturate(130%) sans contrast/brightness
     ========================================================= */

  /* =========================================================
     CORRECTIF DÉFINITIF EFFET NOIR — iOS Safari
     =========================================================
     Sur iOS Safari, backdrop-filter + fond semi-transparent
     sur terracotta foncé = rendu très sombre quelle que soit
     la valeur de blur/saturation.
     Solution : backdrop-filter: none + fond opaque suffisant
     pour que les cartes soient claires et lisibles.
     ========================================================= */

  /* Supprimer l'aurora intense de la section avis */
  .etoiles .aurora__blob--2 { opacity: 0.15 !important; }
  .etoiles .aurora__blob--1 { opacity: 0.25 !important; }
  .etoiles .aurora__blob--3 { opacity: 0.20 !important; }

  /* ① Glass-card + frosted — terracotta profond semi-transparent */
  .glass-card,
  .frosted {
    background: rgba(100, 48, 32, 0.62) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid rgba(251,246,238,0.22) !important;
    box-shadow: 0 8px 24px rgba(44,24,16,0.22) !important;
  }

  /* ② Feature cards */
  .feature {
    grid-template-columns: 40px 1fr !important;
    padding: 16px 14px !important;
    gap: 12px !important;
    background: rgba(100, 48, 32, 0.62) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid rgba(251,246,238,0.22) !important;
    box-shadow: 0 6px 18px rgba(44,24,16,0.22) !important;
  }
  .feature h3 {
    font-size: 16px !important;
    color: var(--beige) !important;
  }
  /* Icone réduite */
  .feature__icon {
    width: 40px !important;
    height: 40px !important;
    border-radius: 12px !important;
  }
  .feature__icon svg {
    width: 20px !important;
    height: 20px !important;
  }

  /* ③ Review card — même terracotta profond que les feature cards */
  .review-card {
    background: rgba(100, 48, 32, 0.62) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid rgba(255,255,255,0.38) !important;
  }

  /* ④ Placeholder badges sur images */
  .placeholder__badge {
    background: rgba(232, 210, 190, 0.72) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /* ⑤ Navbar socials */
  .navbar__socials a {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(251,246,238,0.25) !important;
  }

  /* ⑥ Navbar burger */
  .navbar__burger {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /* =========================================================
     HOME — reviews (1 colonne)
     ========================================================= */
  .reviews-marquee {
    grid-template-columns: 1fr !important;
    height: 520px !important;
  }
  .reviews-col--reverse {
    display: none !important;
  }

  /* =========================================================
     HOME — hero
     ========================================================= */
  .hero__grid {
    grid-template-columns: 1fr !important;
  }
  .hero__img-wrap {
    aspect-ratio: 16/9 !important;
  }
  .hero__title {
    font-size: clamp(28px, 7.5vw, 40px) !important;
  }

  /* =========================================================
     HOME — saveurs (1 colonne)
     ========================================================= */
  .saveurs__grid {
    grid-template-columns: 1fr !important;
  }
  .saveurs__img-wrap {
    aspect-ratio: 16/9 !important;
  }

  /* =========================================================
     PLEIN AIR — hero
     ========================================================= */
  .pa-hero__grid {
    grid-template-columns: 1fr !important;
  }
  .pa-hero__title {
    font-size: clamp(26px, 7vw, 36px) !important;
  }
  .pa-hero__subtitle {
    font-size: 15px !important;
  }

  /* Stats : 3 sur la même ligne */
  .pa-stats {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0 !important;
    margin-top: 24px !important;
  }
  .pa-stat {
    text-align: center !important;
    padding: 0 4px !important;
  }
  .pa-stat__num {
    font-size: clamp(32px, 8.5vw, 46px) !important;
    display: block !important;
  }
  .pa-stat__label {
    font-size: 10px !important;
    line-height: 1.3 !important;
  }

  /* Badges Activités / Guinguette — centrer en bas des cartes sur mobile */
  .pa-hero__img-card .placeholder__badge--corner {
    top: auto !important;
    bottom: 16px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    padding: 9px 18px !important;
    font-size: 10px !important;
    letter-spacing: 0.14em !important;
    white-space: nowrap !important;
    /* Backdrop allégé pour éviter l'effet noir */
    backdrop-filter: blur(12px) saturate(130%) !important;
    -webkit-backdrop-filter: blur(12px) saturate(130%) !important;
  }
  .pa-hero__img-card .placeholder__badge--corner:hover {
    transform: translateX(-50%) translateY(-3px) scale(1.04) !important;
  }

  /* Images hero plein air : rester dans le flux sans z-index problème */
  .pa-hero__media {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    position: relative !important;
    z-index: 1 !important;
  }
  .pa-hero__img-card {
    position: relative !important;
    z-index: 1 !important;
  }
  /* Le hero lui-même ne coupe plus les images lors du scroll */
  .pa-hero {
    overflow: visible !important;
  }

  /* Bouton Photos — centré sur mobile */
  .pa-hero__cta {
    text-align: center !important;
  }

  /* =========================================================
     NOTRE HISTOIRE — hero grid
     ========================================================= */
  .histoire-hero__grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  .histoire-hero__seal {
    display: none !important;
  }

  /* =========================================================
     MENU — sticky tabs sur 2 rangées, textes complets
     ========================================================= */
  .menu-tabs {
    top: 158px !important;
    flex-wrap: wrap !important;
    overflow: visible !important;
    justify-content: center !important;
    padding: 8px 10px !important;
    gap: 5px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 16px !important;
  }
  .menu-tab {
    flex: 1 1 calc(20% - 5px) !important;
    min-width: 0 !important;
    text-align: center !important;
    padding: 6px 4px !important;
    font-size: 9px !important;
    letter-spacing: 0.08em !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  /* =========================================================
     DEVIS — champs en colonne
     ========================================================= */
  .field-row {
    flex-direction: column !important;
    gap: 16px !important;
  }
  .options-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  /* =========================================================
     FOOTER — 1 colonne centré
     ========================================================= */
  .footer-grid {
    grid-template-columns: 1fr !important;
    text-align: center !important;
    gap: 32px !important;
  }
  .footer-col--left,
  .footer-col--center,
  .footer-col--right {
    align-items: center !important;
    text-align: center !important;
  }
  .footer-col--right { align-items: center !important; }
  .footer-bottom {
    flex-direction: column !important;
    text-align: center !important;
    gap: 10px !important;
    margin-top: 32px !important;
  }
  .footer-links { justify-content: center !important; }

  /* =========================================================
     GALERIE — filtres + grid
     ========================================================= */
  .galerie-filters {
    gap: 6px !important;
    justify-content: center !important;
  }
  /* Pills : iOS Safari backdrop-filter → noir → on désactive */
  .galerie-filter {
    padding: 6px 13px !important;
    font-size: 11px !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(251,246,238,0.18) !important;
  }
  .galerie-filter.is-active {
    background: linear-gradient(180deg, var(--beige), var(--beige-warm)) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /* Grid items : désactiver le reveal stagger sur mobile.
     Sur 1 colonne le grid fait >8000px, le threshold 15%
     n'est jamais atteint → tous les items restent opacity:0. */
  .galerie__grid > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  /* =========================================================
     MODALS — plein écran sur mobile
     ========================================================= */
  .resa-modal__card {
    padding: 28px 20px 24px !important;
    max-width: 92vw !important;
  }
  .thomas-modal__card {
    padding: 22px 18px 20px !important;
    max-width: 100% !important;
  }

  /* =========================================================
     TYPOGRAPHIE globale
     ========================================================= */
  h2 { font-size: clamp(22px, 6vw, 36px) !important; }

}

/* =========================================================
   Très petits écrans : ≤ 390px
   ========================================================= */
@media (max-width: 390px) {

  .navbar__logo-img { height: 36px !important; }

  .navbar__socials a {
    width: 24px !important;
    height: 24px !important;
  }
  .navbar__socials svg {
    width: 11px !important;
    height: 11px !important;
  }

  .navbar__status {
    height: 26px !important;
    padding: 4px 7px !important;
    font-size: 8px !important;
  }

  .navbar__cta .btn {
    height: 26px !important;
    padding: 0 9px !important;
    font-size: 9px !important;
  }

  .navbar__nav a {
    padding: 4px 5px !important;
    font-size: 8.5px !important;
    letter-spacing: 0.01em !important;
  }

}
