/* ============================================================
   COUTURE GUIDE — Styles partagés
   Aesthetic: Editorial luxe • Or / Noir • Playfair + Inter
   ============================================================ */

:root {
  --gold: #C9A84C;
  --gold-light: #E8C96A;
  --gold-dim: #8B6E2E;
  --gold-soft: #C9A84C20;
  --cream: #F5F0E8;
  --cream-dim: #9A8E7A;
  --cream-faint: #6B5E4A;
  --dark: #0F0C08;
  --dark2: #1A1510;
  --dark3: #241E16;
  --dark4: #2E2820;
  --thread: #C9A84C33;

  --accent-blue: #4A7A8B;
  --accent-rose: #C4736A;
  --accent-teal: #4A8B8B;
  --accent-purple: #8B4A8B;
  --accent-orange: #C4744A;
  --accent-green: #6A8B4A;
  --accent-burgundy: #8B4A5A;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--dark);
  color: var(--cream);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 40px, rgba(201,168,76,0.03) 40px, rgba(201,168,76,0.03) 41px),
    repeating-linear-gradient(90deg, transparent, transparent 40px, rgba(201,168,76,0.03) 40px, rgba(201,168,76,0.03) 41px);
  pointer-events: none;
  z-index: 0;
}

/* ============= NAVIGATION ============= */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(15, 12, 8, 0.95);
  border-bottom: 1px solid var(--dark4);
  z-index: 1000;
  padding: 16px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(10px);
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--gold);
  letter-spacing: 2px;
  text-decoration: none;
}

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

.nav-links a {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover, .nav-links a.active { color: var(--gold); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--gold-dim);
  color: var(--gold);
  padding: 6px 12px;
  cursor: pointer;
  font-size: 0.8rem;
}

/* ============= HERO ============= */
.hero {
  position: relative;
  text-align: center;
  padding: 140px 40px 80px;
  overflow: hidden;
  z-index: 1;
}

.hero-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 4px;
  color: var(--gold);
  border: 1px solid var(--gold-dim);
  padding: 8px 24px;
  margin-bottom: 30px;
  text-transform: uppercase;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--cream);
  margin-bottom: 20px;
}

.hero h1 span { color: var(--gold); display: block; }

.hero-sub {
  font-size: 1.1rem;
  color: var(--cream-dim);
  max-width: 700px;
  margin: 0 auto;
  font-weight: 300;
}

.hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 40px auto;
  max-width: 400px;
}

.hero-divider::before,
.hero-divider::after {
  content: '';
  flex: 1;
  height: 1px;
}

.hero-divider::before { background: linear-gradient(90deg, transparent, var(--gold-dim)); }
.hero-divider::after { background: linear-gradient(270deg, transparent, var(--gold-dim)); }
.hero-divider span { color: var(--gold); font-size: 20px; }

/* ============= CONTAINER ============= */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 1;
}

.container-narrow {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 1;
}

/* ============= SECTION TITLE ============= */
.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 16px;
}

.section-title p {
  color: var(--gold);
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ============= LEVEL BADGES ============= */
.level-badges {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 30px 0;
}

.level-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.level-badge.beginner {
  background: rgba(106, 139, 74, 0.15);
  border: 1px solid var(--accent-green);
  color: var(--accent-green);
}

.level-badge.intermediate {
  background: rgba(74, 122, 139, 0.15);
  border: 1px solid var(--accent-blue);
  color: var(--accent-blue);
}

.level-badge.advanced {
  background: rgba(196, 116, 74, 0.15);
  border: 1px solid var(--accent-orange);
  color: var(--accent-orange);
}

.level-badge.pro {
  background: rgba(139, 74, 90, 0.15);
  border: 1px solid var(--accent-burgundy);
  color: var(--accent-rose);
}

.level-badge.expert {
  background: var(--gold-soft);
  border: 1px solid var(--gold-dim);
  color: var(--gold);
}

/* ============= INFO BOX ============= */
.info-box {
  background: var(--dark2);
  border-left: 3px solid var(--gold);
  padding: 24px 28px;
  margin: 30px 0;
  border-radius: 0 4px 4px 0;
}

.info-box h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: 12px;
  font-weight: 700;
}

.info-box p {
  color: var(--cream-dim);
  font-size: 0.9rem;
  line-height: 1.7;
}

.info-box.tip { border-left-color: var(--accent-green); }
.info-box.tip h4 { color: var(--accent-green); }

.info-box.warning { border-left-color: var(--accent-orange); }
.info-box.warning h4 { color: var(--accent-orange); }

.info-box.pro-tip { border-left-color: var(--accent-purple); }
.info-box.pro-tip h4 { color: var(--accent-purple); }

/* ============= FOOTER ============= */
.footer {
  text-align: center;
  padding: 60px 40px 40px;
  border-top: 1px solid var(--dark3);
  margin-top: 80px;
  position: relative;
  z-index: 1;
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--gold);
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.footer-desc {
  font-size: 0.85rem;
  color: var(--cream-faint);
  max-width: 500px;
  margin: 0 auto 24px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin: 32px 0;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--gold-dim);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s ease;
}

.footer-links a:hover { color: var(--gold); }

.footer-copyright {
  font-size: 0.72rem;
  color: var(--cream-faint);
  margin-top: 24px;
  letter-spacing: 1px;
}

/* ============= UTILITIES ============= */
.text-gold { color: var(--gold); }
.text-cream { color: var(--cream); }
.text-dim { color: var(--cream-dim); }

.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
.mb-60 { margin-bottom: 60px; }
.mb-80 { margin-bottom: 80px; }

/* ============= LANGUAGE SWITCHER ============= */
.language-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 16px;
  background: var(--dark3);
  border: 1px solid var(--dark4);
  border-radius: 4px;
  margin-left: 20px;
  order: 1;
}

.lang-btn {
  background: none;
  border: none;
  color: var(--cream-dim);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.3s ease;
  border-radius: 3px;
  font-family: 'Inter', sans-serif;
}

.lang-btn:hover {
  color: var(--gold);
  background: var(--dark4);
}

.lang-btn.active {
  color: var(--gold);
  background: var(--dark4);
}

.lang-flag {
  font-size: 0.9rem;
  line-height: 1;
}

.lang-label {
  line-height: 1;
}

.lang-divider {
  color: var(--dark4);
  font-size: 0.7rem;
  margin: 0 2px;
}

/* ============= RTL SUPPORT FOR ARABIC ============= */
[dir="rtl"] {
  text-align: right;
  direction: rtl;
}

[dir="rtl"] body {
  font-family: 'Cairo', 'Tajawal', sans-serif;
}

/* Navigation RTL */
[dir="rtl"] .nav-links {
  flex-direction: row-reverse;
}

[dir="rtl"] .nav-links a {
  margin-right: 0;
  margin-left: 24px;
}

[dir="rtl"] .nav-logo {
  font-family: 'Tajawal', sans-serif;
}

/* Language switcher RTL */
[dir="rtl"] .language-switcher {
  margin-left: 0;
  margin-right: 20px;
}

/* Hero section RTL */
[dir="rtl"] .hero-divider::before {
  background: linear-gradient(270deg, transparent, var(--gold-dim));
}

[dir="rtl"] .hero-divider::after {
  background: linear-gradient(90deg, transparent, var(--gold-dim));
}

/* Typography RTL */
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4 {
  font-family: 'Tajawal', sans-serif;
  line-height: 1.5;
}

/* Info boxes RTL */
[dir="rtl"] .info-box {
  border-left: none;
  border-right: 3px solid var(--gold);
  border-radius: 0 4px 4px 0;
}

/* Footer RTL */
[dir="rtl"] .footer-links {
  flex-direction: row-reverse;
}

/* Contact grid RTL */
[dir="rtl"] .contact-grid {
  direction: rtl;
}

/* Info items RTL */
[dir="rtl"] .info-item {
  flex-direction: row-reverse;
}

/* Buttons RTL */
[dir="rtl"] .nav-toggle {
  margin-right: auto;
  margin-left: 0;
}

/* Responsive RTL */
@media (max-width: 900px) {
  [dir="rtl"] .nav-links {
    left: auto;
    right: 0;
  }
}

/* ============= RESPONSIVE ============= */
@media (max-width: 900px) {
  nav { padding: 12px 20px; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--dark2); padding: 20px; border-bottom: 1px solid var(--dark4); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .hero { padding: 120px 20px 60px; }
  .container, .container-narrow { padding: 0 20px; }
}
