/* =============================================
   LA MAISON — Restaurant Algérien
   Style: Dark Luxury / Or & Noir Profond
   Fonts: Amiri (Arabic) + Playfair Display (FR)
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Amiri:ital,wght@0,400;0,700;1,400;1,700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Jost:wght@300;400;500;600&family=DM+Mono:wght@400&display=swap');

:root {
  --bg:       #080600;
  --surface:  #100e04;
  --surface2: #1c1908;
  --border:   #2e2810;
  --border2:  #3e3818;
  --text:     #f2e8ce;
  --muted:    #7a6e50;
  --muted2:   #b09870;
  --gold:     #c8962a;
  --gold2:    #e8b84a;
  --cream:    #f8eedc;
  --green:    #2a6640;
  --red:      #8c1c1c;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Jost', sans-serif;
  overflow-x: hidden;
}

/* ---- RTL SUPPORT ---- */
[lang="ar"], .ar { 
  font-family: 'Amiri', serif; 
  direction: rtl; 
  text-align: right;
}
[lang="fr"], .fr { 
  font-family: 'Playfair Display', serif; 
}

/* ---- BILINGUAL LABELS ---- */
.bilingual { display: flex; flex-direction: column; gap: 0.1rem; }
.bilingual .fr-text { font-family: 'Playfair Display', serif; font-style: italic; }
.bilingual .ar-text { font-family: 'Amiri', serif; font-size: 0.85em; color: var(--muted2); direction: rtl; }

/* ---- ANIMATIONS ---- */
@keyframes fadeUp  { from { opacity:0; transform:translateY(30px); } to { opacity:1; transform:none; } }
@keyframes fadeIn  { from { opacity:0; } to { opacity:1; } }
@keyframes shimmer { 0%,100%{opacity:0.5;} 50%{opacity:1;} }
@keyframes marquee { from{transform:translateX(0);} to{transform:translateX(-50%);} }
@keyframes marqueeRTL { from{transform:translateX(0);} to{transform:translateX(50%);} }

/* ---- REVEAL ---- */
.reveal { opacity:0; transform:translateY(28px); transition: opacity 0.8s, transform 0.8s; }
.revealed { opacity:1; transform:none; }
.reveal-delay-1 { transition-delay:0.1s; }
.reveal-delay-2 { transition-delay:0.2s; }
.reveal-delay-3 { transition-delay:0.3s; }
.reveal-delay-4 { transition-delay:0.4s; }

/* =============================================
   LANGUAGE SWITCHER
   ============================================= */
.lang-switcher {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.72rem; font-weight: 600;
}
.lang-btn {
  background: transparent; border: 1px solid var(--border2);
  color: var(--muted2); padding: 0.25rem 0.6rem;
  cursor: pointer; font-family: 'Jost', sans-serif;
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  transition: all 0.2s;
}
.lang-btn.active, .lang-btn:hover { background: var(--gold); border-color: var(--gold); color: var(--bg); }

/* =============================================
   NAVIGATION
   ============================================= */
nav {
  position: fixed; top:0; left:0; right:0; z-index:100;
  display: flex; align-items:center; justify-content:space-between;
  padding: 1rem 3rem;
  background: rgba(8,6,0,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex; flex-direction: column; align-items:flex-start;
  text-decoration: none; gap: 0.1rem;
}
.nav-logo .logo-fr {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem; font-weight: 600; font-style: italic;
  color: var(--gold); line-height: 1;
}
.nav-logo .logo-ar {
  font-family: 'Amiri', serif;
  font-size: 0.85rem; color: var(--muted2);
  direction: rtl; line-height: 1;
}

nav ul { display:flex; gap:2rem; list-style:none; align-items:center; }
nav ul a {
  color: var(--muted2); text-decoration:none;
  font-size: 0.78rem; font-weight:500;
  letter-spacing: 0.1em; text-transform:uppercase;
  transition: color 0.2s; position:relative;
}
nav ul a::after {
  content:''; position:absolute; bottom:-2px; left:0; right:0;
  height:1px; background:var(--gold); transform:scaleX(0);
  transition: transform 0.2s;
}
nav ul a:hover::after, nav ul a.active::after { transform:scaleX(1); }
nav ul a:hover, nav ul a.active { color: var(--gold); }

.nav-right { display:flex; align-items:center; gap:1.5rem; }

.nav-reserve {
  background: transparent; color: var(--gold);
  border: 1px solid var(--gold); padding: 0.55rem 1.3rem;
  font-family: 'Jost', sans-serif; font-size:0.72rem;
  font-weight:600; letter-spacing:0.1em; text-transform:uppercase;
  text-decoration:none; transition: all 0.3s;
}
.nav-reserve:hover { background:var(--gold); color:var(--bg); }

/* =============================================
   PAGE HERO (shared inner pages)
   ============================================= */
.page-hero {
  height: 45vh; min-height:320px;
  display:flex; align-items:center; justify-content:center;
  flex-direction:column; text-align:center;
  position:relative; overflow:hidden; padding-top:5rem;
}
.page-hero-bg {
  position:absolute; inset:0;
  background-size:cover; background-position:center;
  filter:brightness(0.2);
}
.page-hero::after {
  content:''; position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(8,6,0,0.4) 0%, rgba(8,6,0,0.75) 100%);
}
.page-hero-content { position:relative; z-index:1; }
.page-hero-eyebrow {
  font-family:'DM Mono',monospace;
  font-size:0.65rem; color:var(--gold); letter-spacing:0.25em;
  text-transform:uppercase; display:block; margin-bottom:0.8rem;
}
.page-hero h1 {
  font-family:'Playfair Display',serif;
  font-size:clamp(2.5rem,6vw,5rem);
  font-weight:400; font-style:italic;
  color:var(--cream); line-height:1; margin-bottom:0.5rem;
}
.page-hero .h1-ar {
  font-family:'Amiri',serif;
  font-size:clamp(1.5rem,3vw,2.5rem);
  color:var(--muted2); direction:rtl;
  display:block; margin-top:0.3rem;
}
.gold-line { width:50px; height:1px; background:var(--gold); margin:1rem auto 0; }

/* =============================================
   BUTTONS
   ============================================= */
.btn-gold {
  display:inline-flex; align-items:center; gap:0.6rem;
  background:var(--gold); color:var(--bg);
  padding:0.85rem 2rem; font-family:'Jost',sans-serif;
  font-size:0.78rem; font-weight:600;
  letter-spacing:0.12em; text-transform:uppercase;
  text-decoration:none; cursor:pointer; border:none;
  transition:all 0.3s;
}
.btn-gold:hover { background:var(--gold2); transform:translateY(-2px); box-shadow:0 10px 28px rgba(200,150,42,0.3); }

.btn-outline-gold {
  display:inline-flex; align-items:center; gap:0.6rem;
  background:transparent; color:var(--gold);
  border:1px solid var(--gold);
  padding:0.85rem 2rem; font-family:'Jost',sans-serif;
  font-size:0.78rem; font-weight:600;
  letter-spacing:0.12em; text-transform:uppercase;
  text-decoration:none; cursor:pointer;
  transition:all 0.3s;
}
.btn-outline-gold:hover { background:var(--gold); color:var(--bg); }

/* =============================================
   TYPOGRAPHY HELPERS
   ============================================= */
.section-eyebrow {
  font-family:'DM Mono',monospace;
  font-size:0.65rem; color:var(--gold);
  letter-spacing:0.22em; text-transform:uppercase;
  display:flex; align-items:center; gap:0.7rem; margin-bottom:0.8rem;
}
.section-eyebrow::before { content:''; width:28px; height:1px; background:var(--gold); flex-shrink:0; }

.section-title {
  font-family:'Playfair Display',serif;
  font-size:clamp(2rem,4vw,3.2rem);
  font-weight:400; font-style:italic;
  color:var(--cream); line-height:1.15; margin-bottom:0.4rem;
}
.section-title-ar {
  font-family:'Amiri',serif;
  font-size:clamp(1.4rem,3vw,2rem);
  color:var(--muted2); direction:rtl;
  display:block; margin-bottom:1.2rem; line-height:1.4;
}
.section-sub {
  font-size:0.9rem; color:var(--muted2); line-height:1.85;
}
.section-sub-ar {
  font-family:'Amiri',serif;
  font-size:1rem; color:var(--muted); line-height:2;
  direction:rtl; margin-top:0.5rem;
}

/* =============================================
   ALGERIAN PATTERN DIVIDER
   ============================================= */
.pattern-divider {
  height:4px;
  background: repeating-linear-gradient(
    90deg,
    var(--gold) 0px, var(--gold) 8px,
    transparent 8px, transparent 12px,
    var(--red) 12px, var(--red) 20px,
    transparent 20px, transparent 24px,
    var(--green) 24px, var(--green) 32px,
    transparent 32px, transparent 36px
  );
  opacity: 0.5;
}

/* =============================================
   FORM STYLES
   ============================================= */
.form-group { display:flex; flex-direction:column; gap:0.4rem; }
.form-label-bilingual { display:flex; justify-content:space-between; align-items:center; }
.form-label-bilingual .lbl-fr { font-size:0.72rem; font-weight:500; color:var(--muted2); text-transform:uppercase; letter-spacing:0.1em; }
.form-label-bilingual .lbl-ar { font-family:'Amiri',serif; font-size:0.9rem; color:var(--muted); }
.form-group input,
.form-group textarea,
.form-group select {
  background:var(--surface2); border:1px solid var(--border2);
  padding:0.85rem 1rem; color:var(--text);
  font-family:'Jost',sans-serif; font-size:0.9rem;
  outline:none; transition:border-color 0.2s; resize:none;
  width:100%;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color:var(--gold); }

/* =============================================
   FOOTER
   ============================================= */
footer {
  background:var(--surface);
  border-top:1px solid var(--border);
  padding:4rem 3rem 2rem;
}
.footer-grid {
  display:grid; grid-template-columns:2fr 1fr 1fr 1fr;
  gap:3rem; max-width:1200px; margin:0 auto 3rem;
}
.footer-brand-logo { font-family:'Playfair Display',serif; font-size:1.6rem; font-weight:600; font-style:italic; color:var(--gold); display:block; margin-bottom:0.3rem; }
.footer-brand-logo-ar { font-family:'Amiri',serif; font-size:1rem; color:var(--muted2); display:block; direction:rtl; margin-bottom:1rem; }
.footer-brand p { font-size:0.82rem; color:var(--muted); line-height:1.7; }
.footer-col h4 { font-family:'Playfair Display',serif; font-size:0.95rem; font-weight:600; color:var(--gold); margin-bottom:0.3rem; }
.footer-col h4-ar { font-family:'Amiri',serif; font-size:0.9rem; color:var(--muted2); direction:rtl; display:block; margin-bottom:1rem; }
.footer-col ul { list-style:none; display:flex; flex-direction:column; gap:0.5rem; }
.footer-col ul a { color:var(--muted); font-size:0.82rem; text-decoration:none; transition:color 0.2s; }
.footer-col ul a:hover { color:var(--gold); }
.footer-col p { color:var(--muted); font-size:0.82rem; line-height:1.8; }
.footer-bottom { border-top:1px solid var(--border); padding-top:1.5rem; text-align:center; max-width:1200px; margin:0 auto; }
.footer-bottom p { font-size:0.75rem; color:var(--muted); }
.footer-bottom a { color:var(--gold2); text-decoration:none; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media(max-width:900px){
  nav { padding:0.9rem 1.5rem; }
  nav ul, .nav-reserve { display:none; }
  .footer-grid { grid-template-columns:1fr 1fr; gap:2rem; }
}
@media(max-width:600px){
  .footer-grid { grid-template-columns:1fr; }
}
