/* ================================================================
   BAYTOUNA – BEIRUT STREET FOOD  |  style.css
   Palette : Noir #0A0A0A · Rouge #C8102E · Or #D4AF37 · Vert #1D6B1D
   ================================================================ */

/* ── 1. VARIABLES ───────────────────────────────────────────────── */
:root {
  --noir:      #0A0A0A;
  --sombre-1:  #111111;
  --sombre-2:  #1A1A1A;
  --rouge:     #C8102E;
  --rouge-f:   #a00c24;
  --or:        #D4AF37;
  --or-f:      #8a6b18;
  --vert:      #1D6B1D;
  --creme:     #F5F0E8;
  --creme-2:   #EDE5D8;
  --blanc:     #FFFFFF;
  --txt:       rgba(245,240,232,0.92);
  --txt-dim:   rgba(245,240,232,0.50);
}

/* ── 2. RESET ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; font-size: 16px; }
body  { font-family: 'Helvetica Neue', Arial, sans-serif;
        background: var(--noir); color: var(--txt);
        line-height: 1.6; -webkit-font-smoothing: antialiased; }
img   { display: block; max-width: 100%; }
a     { text-decoration: none; color: inherit; }
ul    { list-style: none; }

/* ── 3. UTILITAIRES ─────────────────────────────────────────────── */
.container   { max-width: 960px; margin: 0 auto; padding: 0 24px; }
.section     { padding: 88px 0; }

.section-header          { text-align: center; margin-bottom: 56px; }
.section-label           { display: inline-block; font-size: 11px;
                            font-weight: 700; letter-spacing: .22em;
                            text-transform: uppercase; color: var(--rouge);
                            margin-bottom: 10px; }
.section-header--light .section-label { color: var(--or); }

.section-title { font-family: Georgia,'Times New Roman',serif;
                 font-size: clamp(34px,6vw,50px); font-weight: 400;
                 color: var(--noir); line-height: 1.1; margin-top: 4px; }
.section-header--light .section-title { color: var(--blanc); }

.title-ornament { display:flex; align-items:center; gap:10px;
                  justify-content:center; margin-top:18px; }
.title-ornament span  { display:block; width:36px; height:1px; background:var(--or); }
.title-ornament em    { font-style:normal; color:var(--or); font-size:9px; }
.title-ornament--red span { background:var(--rouge); }
.title-ornament--red em   { color:var(--rouge); }

/* ── 4. NAVIGATION ──────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(10,10,10,.85);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(212,175,55,.12);
  transition: background .3s;
}
.nav.scrolled { background: var(--sombre-1); }

.nav-inner {
  max-width: 960px; margin: 0 auto; padding: 0 24px;
  height: 72px;           /* ← hauteur barre nav */
  display: flex; align-items: center; justify-content: space-between;
}

/* ╔════════════════════════════════════════════════════════╗
   ║  FIX CENTRAGE LOGO :                                  ║
   ║  L'élément <a> est passé en flex pour aligner         ║
   ║  l'image parfaitement au centre vertical              ║
   ╚════════════════════════════════════════════════════════╝ */
.nav-logo-link {
  display: flex;
  align-items: center;
  height: 100%;
}
.nav-logo-img {
  height: 90px;   /* ← modifiez pour ajuster la taille du logo nav */
  width: auto;
  mix-blend-mode: screen;

  transform: translateY(10px); /* augmente la valeur pour descendre le logo */
}

.nav-links { display:flex; align-items:center; gap:32px; }

.nav-link {
  font-size: 12px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--txt);
  transition: color .2s; position: relative; padding-bottom: 2px;
}
.nav-link::after {
  content:''; position:absolute; bottom:-2px; left:0;
  width:0; height:1px; background:var(--or); transition:width .2s;
}
.nav-link:hover { color: var(--or); }
.nav-link:hover::after { width: 100%; }

/* Hamburger */
.nav-toggle { display:none; flex-direction:column; gap:5px;
              background:none; border:none; cursor:pointer; padding:4px; }
.nav-toggle span { display:block; width:24px; height:2px;
                   background:var(--txt); transition:all .25s; border-radius:2px; }
.nav-toggle.open span:nth-child(1) { transform:translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity:0; }
.nav-toggle.open span:nth-child(3) { transform:translateY(-7px) rotate(-45deg); }

/* ── 5. HERO ────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh; background: var(--noir);
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 100px 24px 60px;
  position: relative; overflow: hidden;
}
.hero::before {
  content:''; position:absolute; top:30%; left:50%;
  transform:translate(-50%,-50%); width:600px; height:400px;
  background:radial-gradient(ellipse,rgba(212,175,55,.07) 0%,transparent 70%);
  pointer-events:none;
}
.hero-content { position:relative; display:flex;
                flex-direction:column; align-items:center; gap:20px; }

.hero-logo {
  width: min(400px, 85vw); height: auto; margin-bottom: 8px;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 28px rgba(212,175,55,.25));
}
.hero-tagline {
  font-family: Georgia,serif; font-style:italic;
  font-size: clamp(16px,3.5vw,22px); color:var(--or);
  letter-spacing:.04em; opacity:.95;
}
.ornament { display:flex; align-items:center; gap:14px; }
.ornament span { display:block; width:44px; height:1px; background:var(--or); opacity:.35; }
.ornament em   { font-style:normal; color:var(--or); font-size:11px; opacity:.65; }

.hero-info { display:flex; flex-direction:column; align-items:center; gap:10px; }
.hero-phone { font-size:19px; font-weight:700; color:var(--txt);
              letter-spacing:.04em; transition:color .2s; }
.hero-phone:hover { color:var(--or); }
.hero-address { font-size:15px; color:var(--txt-dim); }

.hero-hours { display:flex; align-items:center; gap:12px; margin-top:4px; }
.hero-hours span {
  display:inline-block; font-size:12px; font-weight:700;
  letter-spacing:.08em; color:var(--or);
  background:rgba(212,175,55,.10); border:1px solid rgba(212,175,55,.25);
  padding:5px 14px; border-radius:20px;
}
.hero-hours .hours-dot { background:none; border:none; padding:0;
                          color:var(--txt-dim); font-size:16px; }
.hero-cta {
  display:inline-block; margin-top:8px; padding:13px 36px;
  background:var(--rouge); color:var(--blanc); font-size:13px;
  font-weight:700; letter-spacing:.10em; text-transform:uppercase;
  border-radius:3px; transition:background .2s, transform .2s;
}
.hero-cta:hover { background:var(--rouge-f); transform:translateY(-1px); }

/* ── 6. TICKER ──────────────────────────────────────────────────── */
.ticker { background:var(--rouge); padding:14px 0; overflow:hidden; white-space:nowrap; }
@keyframes ticker-scroll { from{transform:translateX(0)} to{transform:translateX(-50%)} }
.ticker-track { display:inline-flex; animation:ticker-scroll 30s linear infinite; }
.ticker-track span { display:inline-block; font-size:11px; font-weight:700;
                     letter-spacing:.18em; text-transform:uppercase;
                     color:var(--blanc); padding:0 20px; }
.ticker-track .sep { color:var(--or); margin-left:20px; opacity:.75; }

/* ── 7. SECTION MENU ────────────────────────────────────────────── */
.menu-section { background: var(--creme); }
.menu-section .section-title { color: var(--sombre-1); }

/* Onglets */
.tabs-bar { display:flex; flex-wrap:wrap; gap:8px;
            justify-content:center; margin-bottom:48px; }
.tab-btn {
  padding:10px 20px; background:transparent;
  border:2px solid rgba(0,0,0,.13); border-radius:4px;
  font-family:inherit; font-size:12px; font-weight:700;
  letter-spacing:.08em; text-transform:uppercase; color:#666;
  cursor:pointer; transition:all .15s;
}
.tab-btn:hover   { border-color:var(--rouge); color:var(--rouge); }
.tab-btn.active  { background:var(--rouge); border-color:var(--rouge); color:var(--blanc); }

/* Panneaux — masqués par CSS, affichés/cachés via JS inline styles */
.tab-panel { display: none; }

/* Grille cartes */
.menu-grid { display:grid;
             grid-template-columns:repeat(auto-fill,minmax(280px,1fr));
             gap:20px; }

/* ── Carte menu ──────────────────────── */
.menu-card {
  background: var(--blanc); border-radius:6px; overflow:hidden;
  box-shadow:0 2px 8px rgba(0,0,0,.08); border-left:3px solid var(--or);
  transition:transform .2s, box-shadow .2s;
}
.menu-card:hover { transform:translateY(-3px);
                   box-shadow:0 8px 28px rgba(0,0,0,.14); }

/* ── Zone photo ──────────────────────────────────────────────────
   Position relative + height fixe = stacking context pour l'image
   et le placeholder, tous deux en position absolue.
   ─────────────────────────────────────────────────────────────── */
.card-photo {
  width: 100%;
  height: 195px;
  overflow: hidden;
  position: relative;       /* ← stacking context pour img + placeholder */
  background: #1a1a1a;
}

/* Image réelle : superposée sur le placeholder
   • Cachée par défaut via inline style="display:none"
   • Affichée par onload quand le fichier images/xxx.png existe        */
.card-img {
  position: absolute;       /* ← overlay sur le placeholder */
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;           /* remplacé par inline style au chargement */
  transition: transform .35s;
}
.menu-card:hover .card-img { transform: scale(1.04); }

/* Placeholder "Photo à venir" : visible par défaut
   • Caché par onload quand l'image est trouvée                        */
.photo-placeholder {
  position: absolute;       /* ← overlay sous l'image */
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #1a1a1a 0%, #222 100%);
}
.ph-icon { font-size:28px; opacity:.35; }
.ph-text { font-size:11px; font-weight:600; letter-spacing:.08em;
           text-transform:uppercase; color:rgba(245,240,232,.30); }

/* Corps carte */
.card-body  { padding: 18px 20px 20px; }
.card-top   { display:flex; justify-content:space-between;
              align-items:flex-start; gap:12px; margin-bottom:7px; }
.card-name  { font-family:Georgia,serif; font-size:16px; font-weight:700;
              color:var(--sombre-1); line-height:1.3; flex:1; }
.card-price { font-family:Georgia,serif; font-size:14px; font-weight:700;
              color:var(--rouge); white-space:nowrap; }
.card-desc  { font-size:12.5px; color:#888; line-height:1.55; font-style:italic; }

/* ── 8. SECTION FORMULES ────────────────────────────────────────── */
.formules-section { background: var(--sombre-1); }
.formules-grid { display:grid;
                 grid-template-columns:repeat(auto-fill,minmax(250px,1fr));
                 gap:28px; margin-top:8px; }
.formule-card {
  background:rgba(255,255,255,.04); border:1px solid rgba(212,175,55,.18);
  border-radius:10px; padding:44px 24px 30px; text-align:center;
  position:relative; transition:border-color .2s, transform .2s;
}
.formule-card:hover { border-color:rgba(212,175,55,.4); transform:translateY(-3px); }
.formule-badge {
  position:absolute; top:-20px; left:50%; transform:translateX(-50%);
  background:var(--rouge); color:var(--blanc);
  font-family:Georgia,serif; font-size:17px; font-weight:700;
  padding:6px 20px; border-radius:24px; white-space:nowrap;
  box-shadow:0 4px 14px rgba(200,16,46,.4);
}
.formule-emoji { font-size:30px; margin-bottom:14px; line-height:1; }
.formule-name  { font-family:Georgia,serif; font-size:19px; font-weight:400;
                 color:var(--or); margin-bottom:10px; line-height:1.3; }
.formule-desc  { font-size:13px; color:rgba(245,240,232,.58);
                 line-height:1.7; font-style:italic; }

/* ── 9. SECTION CONTACT ─────────────────────────────────────────── */
.contact-section { background: var(--noir); }
.contact-grid { display:grid; grid-template-columns:1fr 1.7fr;
                gap:52px; align-items:center; }
.contact-info { display:flex; flex-direction:column; gap:28px; }
.info-label { font-size:10px; font-weight:700; letter-spacing:.22em;
              text-transform:uppercase; color:var(--rouge);
              margin-bottom:10px; font-family:inherit; }
.info-text  { font-size:17px; color:var(--txt); line-height:1.7; }
.info-phone { font-size:21px; font-weight:700; color:var(--txt);
              letter-spacing:.04em; transition:color .2s; }
.info-phone:hover { color:var(--or); }

.hours-table { width:100%; border-collapse:collapse; }
.hours-table td { padding:8px 0; border-bottom:1px solid rgba(245,240,232,.07);
                  font-size:14px; vertical-align:middle; }
.h-day  { color:#888; padding-right:20px; white-space:nowrap; }
.h-time { color:var(--txt); font-weight:700; font-family:Georgia,serif; font-size:15px; }

.contact-map { height:400px; border-radius:8px; overflow:hidden;
               box-shadow:0 8px 32px rgba(0,0,0,.4);
               border:1px solid rgba(212,175,55,.10); }
.contact-map iframe { width:100%; height:100%; }

/* ── 10. FOOTER ─────────────────────────────────────────────────── */
.footer { background:#060606; padding:48px 24px;
          border-top:1px solid rgba(212,175,55,.08); }
.footer-inner { max-width:700px; margin:0 auto; display:flex;
                flex-direction:column; align-items:center;
                gap:10px; text-align:center; }
.footer-logo  { height:64px; width:auto; mix-blend-mode:screen; margin-bottom:6px; }
.footer-info  { font-size:13px; color:#666; }
.footer-dots  { display:flex; gap:10px; margin:6px 0; }
.footer-dots span { display:block; width:4px; height:4px; border-radius:50%;
                    background:var(--or); opacity:.4; }
.footer-dots span:nth-child(2) { background:var(--rouge); }
.footer-copy  { font-size:11px; color:#3a3a3a; letter-spacing:.04em; }

/* ── 11. RESPONSIVE Tablette ≤ 840px ───────────────────────────── */
@media (max-width: 840px) {
  .contact-grid { grid-template-columns:1fr; }
  .contact-map  { height:300px; }
  .formules-grid { grid-template-columns:1fr 1fr; }
}

/* ── 12. RESPONSIVE Mobile ≤ 768px ─────────────────────────────── */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--sombre-1);
    border-bottom: 1px solid rgba(212,175,55,.15);
    z-index: 998;
    flex-direction: column; align-items: stretch; gap: 0;
    max-height: 0; overflow: hidden; padding: 0;
    transition: max-height .35s ease, padding .25s ease;
  }
  .nav-links.open  { max-height: 300px; padding: 8px 0 16px; }
  .nav-links li    { width: 100%; }
  .nav-link { display:block; padding:14px 32px; font-size:13px;
              border-bottom:1px solid rgba(255,255,255,.04); text-align:center; }
  .nav-link:hover  { background:rgba(212,175,55,.07); }
  .nav-link::after { display:none; }

  .menu-grid     { grid-template-columns: 1fr; }
  .formules-grid { grid-template-columns: 1fr; }
  .hero-hours    { flex-wrap:wrap; justify-content:center; }
  .section       { padding: 60px 0; }
}

/* ── 13. ACCESSIBILITÉ ──────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation-play-state: paused; }
  * { transition: none !important; }
}
*:focus-visible { outline: 2px solid var(--or); outline-offset: 3px; }
