@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@400;500;600;700&family=Cairo:wght@400;600;700;800&display=swap');

:root {
  --red: #e60000;
  --red-light: #ff4444;
  --gold: #d4af37;
  --gold-light: #ffd700;
  --green: #006233;
  --dark: #0d0d0d;
  --dark-2: #111111;
  --dark-3: #1a1a1a;
  --dark-4: #222222;
  --dark-5: #2a2a2a;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--dark);
  color: #fff;
  overflow-x: hidden;
  direction: ltr;
}

body.rtl { direction: rtl; font-family: 'Cairo', sans-serif; }

/* ══════════════════════════════════════════════════════
   RTL — Arabic optimisations
══════════════════════════════════════════════════════ */

/* Cairo replace Bebas Neue (Bebas = Latin only) */
body.rtl .section-title,
body.rtl .bebas,
body.rtl .hero-title,
body.rtl .hero-wc-title,
body.rtl .hero-stat-val,
body.rtl .tv-brand,
body.rtl .tv-wc-bg p,
body.rtl .tv-wc-year,
body.rtl .feature-name,
body.rtl .plan-name,
body.rtl .plan-price,
body.rtl .modal-title,
body.rtl .success-title,
body.rtl .blog-thumb-placeholder,
body.rtl .footer-col-title,
body.rtl .post-content h2,
body.rtl .admin-page-title,
body.rtl .admin-form h3 {
  font-family: 'Cairo', sans-serif;
  font-weight: 800;
  letter-spacing: 0;
}

/* Supprimer letter-spacing sur éléments arabes */
body.rtl .section-eyebrow,
body.rtl .hero-tagline,
body.rtl .hero-pill,
body.rtl .badge-live,
body.rtl .badge-gold,
body.rtl .plan-label,
body.rtl .plan-badge-inner,
body.rtl .devices-label,
body.rtl .contact-item-label,
body.rtl .footer-support-item label,
body.rtl .admin-table th { letter-spacing: 0; }

/* Navbar flip */
body.rtl .nav-inner { flex-direction: row-reverse; }
body.rtl .nav-links { flex-direction: row-reverse; }
body.rtl .nav-right { flex-direction: row-reverse; }

/* Hero flip */
body.rtl .hero-pills { flex-direction: row-reverse; }
body.rtl .hero-wc { flex-direction: row-reverse; }
body.rtl .hero-ctas { flex-direction: row-reverse; }

/* TV float badges flip LR */
body.rtl .tv-float-badge.ios  { left: auto; right: -1rem; }
body.rtl .tv-float-badge.globe { right: auto; left: -1rem; }
body.rtl .tv-float-badge.tablet { right: auto; left: -1.5rem; }

/* Glow positions flip */
body.rtl .features-glow { left: auto; right: -8rem; }
body.rtl .pricing-glow { right: auto; left: -8rem; }

/* Plan features checkmark côté droit */
body.rtl .plan-features li { flex-direction: row-reverse; }

/* Modal close gauche en RTL */
body.rtl .modal-close { right: auto; left: 1rem; }

/* Blog read-more flèche */
body.rtl .blog-read-more { flex-direction: row-reverse; }

/* Contact items */
body.rtl .contact-item { flex-direction: row-reverse; }
body.rtl .contact-form-head { flex-direction: row-reverse; }

/* Footer */
body.rtl .footer-bottom { flex-direction: row-reverse; }
body.rtl .footer-socials { flex-direction: row-reverse; }

/* Post article lists */
body.rtl .post-content ul,
body.rtl .post-content ol { margin-left: 0; margin-right: 1.5rem; }
body.rtl .post-back { flex-direction: row-reverse; }

/* Toast côté gauche en RTL */
body.rtl .toast { right: auto; left: 1.5rem; }

/* Admin table header align */
body.rtl .admin-table th { text-align: right; }
body.rtl .admin-topbar { flex-direction: row-reverse; }

.bebas { font-family: 'Bebas Neue', cursive; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 2px; }

/* ── UTILITIES ── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.text-red { color: var(--red); }
.text-gold { color: var(--gold); }
.text-green { color: #4ade80; }
.text-muted { color: rgba(255,255,255,.4); }
.section-py { padding: 6rem 0; }
.section-title { font-family: 'Bebas Neue', cursive; font-size: clamp(2.2rem, 5vw, 3.5rem); line-height: 1.05; letter-spacing: .03em; }
.grad-red { background: linear-gradient(135deg, #cc0000, #ff4444); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.grad-gold { background: linear-gradient(135deg, #d4af37, #ffd700); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; padding: .875rem 1.75rem; border-radius: .75rem;
  font-weight: 700; font-size: .9rem; cursor: pointer;
  transition: all .25s; border: none; text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, #cc0000, #e60000);
  color: #fff;
  box-shadow: 0 0 20px rgba(230,0,0,.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 30px rgba(230,0,0,.5); }
.btn-primary:active { transform: scale(.97); }
.btn-outline {
  background: transparent; color: #fff;
  border: 1.5px solid rgba(255,255,255,.2);
}
.btn-outline:hover { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.05); transform: translateY(-2px); }
.btn-gold {
  background: linear-gradient(135deg, #b8952e, #d4af37);
  color: #000; font-weight: 800;
  box-shadow: 0 0 20px rgba(212,175,55,.35);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 0 30px rgba(212,175,55,.5); }
.btn-sm { padding: .5rem 1rem; font-size: .8rem; border-radius: .5rem; }

/* ── BADGE ── */
.badge-live {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(230,0,0,.15); border: 1px solid rgba(230,0,0,.3);
  color: #fff; font-size: .7rem; font-weight: 700;
  letter-spacing: .15em; padding: .35rem .8rem; border-radius: 9999px;
  text-transform: uppercase;
}
.badge-live .dot {
  width: 6px; height: 6px; background: var(--red); border-radius: 50%;
  animation: pulse-dot 1.5s ease-in-out infinite;
}
.badge-gold {
  display: inline-flex; align-items: center; gap: .3rem;
  background: linear-gradient(135deg, rgba(212,175,55,.2), rgba(212,175,55,.1));
  border: 1px solid rgba(212,175,55,.4); color: var(--gold);
  font-size: .7rem; font-weight: 700; letter-spacing: .1em;
  padding: .35rem .8rem; border-radius: 9999px; text-transform: uppercase;
}

@keyframes pulse-dot {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: .4; transform: scale(.8); }
}

/* ── NAVBAR ── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1rem 0;
  transition: background .3s, backdrop-filter .3s, border-color .3s;
}
#navbar.scrolled {
  background: rgba(0,0,0,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav-logo img { height: 42px; width: auto; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a { color: rgba(255,255,255,.6); text-decoration: none; font-size: .9rem; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: #fff; }
.nav-right { display: flex; align-items: center; gap: .75rem; }
.lang-btn {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.7); padding: .35rem .7rem; border-radius: .4rem;
  font-size: .8rem; font-weight: 600; cursor: pointer;
  transition: all .2s;
}
.lang-btn:hover { background: rgba(255,255,255,.14); color: #fff; }
.nav-burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: .25rem; }
.nav-burger span { display: block; width: 22px; height: 2px; background: rgba(255,255,255,.7); border-radius: 2px; transition: all .3s; }
.nav-burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }
.nav-mobile { display: none; position: fixed; inset: 0; z-index: 99; background: rgba(0,0,0,.97); flex-direction: column; align-items: center; justify-content: center; gap: 1.5rem; }
.nav-mobile.open { display: flex; }
.nav-mobile a { color: rgba(255,255,255,.7); font-size: 1.3rem; font-weight: 600; text-decoration: none; transition: color .2s; }
.nav-mobile a:hover { color: #fff; }

/* ── HERO ── */
#hero {
  min-height: 100vh; display: flex; flex-direction: column; justify-content: center;
  background: #000; position: relative; overflow: hidden; padding-top: 5rem;
}
.hero-grid {
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 80px 80px;
  position: absolute; inset: 0; pointer-events: none;
}
.hero-glow-red { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 600px; height: 400px; background: radial-gradient(ellipse, rgba(230,0,0,.08), transparent 70%); pointer-events: none; }
.hero-inner { display: grid; gap: 3rem; align-items: center; padding: 4rem 0; position: relative; }
@media(min-width:1024px) { .hero-inner { grid-template-columns: 1fr 1fr; } }
.hero-badge-wrap { margin-bottom: .5rem; }
.hero-title { font-family: 'Bebas Neue', cursive; line-height: .95; margin: 1rem 0 .5rem; }
.hero-title .iptv { display: block; font-size: clamp(3.5rem,8vw,6rem); color: #fff; }
.hero-title .premium {
  display: block; font-size: clamp(4.5rem,10vw,8rem);
  background: linear-gradient(135deg, #cc0000, #e60000, #ff4444);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  filter: drop-shadow(0 0 30px rgba(230,0,0,.4));
}
.hero-tagline { color: rgba(255,255,255,.45); font-weight: 600; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 1.25rem; }
.hero-pills { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.25rem; }
.hero-pill {
  display: flex; align-items: center; gap: .4rem;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.65); font-size: .7rem; font-weight: 700;
  letter-spacing: .18em; padding: .45rem 1rem; border-radius: 9999px; text-transform: uppercase;
}
.hero-wc {
  display: flex; align-items: center; gap: 1rem;
  background: linear-gradient(135deg, rgba(212,175,55,.08), rgba(0,98,51,.08));
  border: 1px solid rgba(212,175,55,.3); border-radius: 1rem; padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
}
.hero-wc-title { font-family: 'Bebas Neue', cursive; font-size: 1.4rem; letter-spacing: .05em; }
.hero-wc-sub { color: rgba(255,255,255,.5); font-size: .82rem; margin-top: .1rem; }
.hero-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; margin-bottom: 1.75rem; }
.hero-stat-val { font-family: 'Bebas Neue', cursive; font-size: clamp(1.75rem,4vw,2.5rem); }
.hero-stat-label { color: rgba(255,255,255,.45); font-size: .75rem; margin-top: .2rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; }
/* TV Mockup */
.hero-tv-wrap { position: relative; display: flex; align-items: center; justify-content: center; }
.hero-tv-glow { position: absolute; width: 75%; height: 50%; background: rgba(230,0,0,.12); filter: blur(60px); border-radius: 50%; pointer-events: none; }
.hero-tv {
  width: 100%; max-width: 480px; position: relative;
  animation: float 4s ease-in-out infinite;
}
.tv-frame {
  border-radius: 1.25rem; overflow: hidden; border: 2px solid #222;
  box-shadow: 0 30px 80px rgba(0,0,0,.8); background: #0a0a0a;
}
.tv-screen { aspect-ratio: 16/9; background: #111; position: relative; overflow: hidden; }
.tv-topbar {
  position: absolute; top: 0; left: 0; right: 0; height: 2rem;
  background: rgba(26,26,26,.92); display: flex; align-items: center; padding: 0 .75rem; gap: .75rem; z-index: 2;
}
.tv-brand { display: flex; align-items: center; gap: .4rem; font-family: 'Bebas Neue',cursive; font-size: .85rem; letter-spacing: .12em; }
.tv-dot { width: 6px; height: 6px; background: var(--red); border-radius: 50%; }
.tv-content { display: flex; height: calc(100% - 2rem); margin-top: 2rem; }
.tv-sidebar { width: 6rem; background: rgba(30,30,30,.85); display: flex; flex-direction: column; padding-top: .25rem; flex-shrink: 0; }
.tv-sidebar-item { padding: .4rem .5rem; font-size: .65rem; font-weight: 600; text-align: center; color: rgba(255,255,255,.35); cursor: default; }
.tv-sidebar-item.active { background: var(--red); color: #fff; }
.tv-main { flex: 1; position: relative; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: .4rem; }
.tv-main::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, #1a4a1a 0%, #0d0d0d 80%); }
.tv-wc-bg { position: relative; z-index: 1; text-align: center; }
.tv-wc-bg p { font-family: 'Bebas Neue',cursive; color: rgba(255,255,255,.15); font-size: 2rem; letter-spacing: .2em; }
.tv-wc-year { font-family: 'Bebas Neue',cursive; font-size: 4.5rem; background: linear-gradient(135deg,#d4af37,#ffd700); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1; }
.tv-channels-bar { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(30,30,30,.97); border-top: 1px solid rgba(255,255,255,.04); padding: .4rem .75rem; }
.tv-channels { display: flex; gap: .5rem; overflow: hidden; }
.tv-ch { flex-shrink: 0; color: rgba(255,255,255,.45); font-size: .65rem; font-weight: 600; background: rgba(40,40,40,.85); padding: .15rem .5rem; border-radius: .25rem; }
.tv-stand-base { width: 7rem; height: 1px; background: #222; border-radius: 9999px; margin: 0 auto; }
.tv-stand-neck { width: 4rem; height: .5rem; background: #1a1a1a; margin: 0 auto; }
.tv-float-badge {
  position: absolute; background: rgba(20,20,20,.9); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.1); border-radius: .75rem; padding: .6rem .9rem;
  display: flex; align-items: center; gap: .4rem; font-size: .72rem; font-weight: 600;
  color: rgba(255,255,255,.8); white-space: nowrap; box-shadow: 0 8px 32px rgba(0,0,0,.4);
}
.tv-float-badge.ios { bottom: -1rem; left: -1rem; animation: float 3s ease-in-out .5s infinite; }
.tv-float-badge.globe { top: -.5rem; right: -1rem; animation: float 3.5s ease-in-out 1s infinite; }
.tv-float-badge.tablet { top: 50%; right: -1.5rem; transform: translateY(-50%); animation: float 4s ease-in-out 1.5s infinite; }

.scroll-hint { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: .4rem; opacity: .3; }
.scroll-line { width: 1px; height: 3rem; background: linear-gradient(to bottom, rgba(255,255,255,.6), transparent); }
.scroll-text { font-size: .65rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.6); }

@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ── FEATURES ── */
#features { background: #0d0d0d; position: relative; overflow: hidden; }
.features-glow { position: absolute; left: -8rem; top: 50%; transform: translateY(-50%); width: 24rem; height: 24rem; background: rgba(230,0,0,.05); filter: blur(80px); border-radius: 50%; pointer-events: none; }
.features-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media(min-width:640px) { .features-grid { grid-template-columns: repeat(2,1fr); } }
@media(min-width:1024px) { .features-grid { grid-template-columns: repeat(3,1fr); } }
.feature-card {
  position: relative; padding: 1.75rem; border-radius: 1.25rem;
  background: #111; border: 1px solid rgba(255,255,255,.06);
  transition: all .35s; cursor: default;
}
.feature-card:hover { transform: translateY(-4px); }
.feature-card.red:hover { border-color: rgba(230,0,0,.4); box-shadow: 0 0 24px rgba(230,0,0,.2); }
.feature-card.gold:hover { border-color: rgba(212,175,55,.4); box-shadow: 0 0 24px rgba(212,175,55,.2); }
.feature-card.green:hover { border-color: rgba(0,98,51,.4); box-shadow: 0 0 24px rgba(0,98,51,.2); }
.feature-icon {
  width: 3.5rem; height: 3.5rem; border-radius: .75rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 1.25rem;
  transition: transform .3s;
}
.feature-card:hover .feature-icon { transform: scale(1.1); }
.feature-icon.red { background: rgba(230,0,0,.12); }
.feature-icon.gold { background: rgba(212,175,55,.12); }
.feature-icon.green { background: rgba(0,98,51,.12); }
.feature-name { font-family: 'Bebas Neue',cursive; font-size: 1.4rem; letter-spacing: .05em; margin-bottom: .5rem; }
.feature-desc { color: rgba(255,255,255,.45); font-size: .85rem; line-height: 1.6; }
.devices-strip {
  margin-top: 4rem; background: #111; border: 1px solid rgba(255,255,255,.05);
  border-radius: 1.25rem; padding: 1.5rem; text-align: center;
}
.devices-label { color: rgba(255,255,255,.3); font-size: .75rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 1rem; }
.devices-list { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.device-tag {
  background: #1a1a1a; border: 1px solid rgba(255,255,255,.07);
  color: rgba(255,255,255,.55); font-size: .82rem; padding: .4rem 1rem;
  border-radius: 9999px; transition: all .2s;
}
.device-tag:hover { border-color: rgba(230,0,0,.35); color: rgba(255,255,255,.8); }

/* ── PRICING ── */
#pricing { background: #000; position: relative; overflow: hidden; }
.pricing-glow { position: absolute; right: -8rem; top: 50%; transform: translateY(-50%); width: 24rem; height: 24rem; background: rgba(212,175,55,.05); filter: blur(80px); border-radius: 50%; pointer-events: none; }
.pricing-grid { display: grid; gap: 1.5rem; }
@media(min-width:768px) { .pricing-grid { grid-template-columns: repeat(3,1fr); align-items: start; } }
.plan-card {
  position: relative; border-radius: 1.25rem; overflow: hidden; cursor: pointer;
  border: 1px solid rgba(255,255,255,.07); background: #111;
  transition: all .35s;
}
.plan-card:hover { transform: translateY(-8px); }
.plan-card.gold-card { border: 2px solid rgba(212,175,55,.45); background: linear-gradient(180deg,#1a1500,#111000); box-shadow: 0 0 40px rgba(212,175,55,.12); }
.plan-badge-wrap { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: center; }
.plan-badge-inner { background: linear-gradient(135deg,#b8952e,#d4af37); color: #000; font-size: .65rem; font-weight: 800; letter-spacing: .12em; padding: .4rem 1.25rem; border-radius: 0 0 .75rem .75rem; text-transform: uppercase; display: flex; align-items: center; gap: .3rem; }
.plan-body { padding: 1.75rem; }
.plan-body.has-badge { padding-top: 2.5rem; }
.plan-header { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.5rem; }
.plan-icon { width: 2.5rem; height: 2.5rem; border-radius: .75rem; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.plan-icon.red { background: rgba(230,0,0,.15); }
.plan-icon.gold { background: rgba(212,175,55,.15); }
.plan-label { color: rgba(255,255,255,.35); font-size: .65rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.plan-name { font-family: 'Bebas Neue',cursive; font-size: 1.25rem; letter-spacing: .06em; }
.plan-price-row { margin-bottom: 1.75rem; }
.plan-price { font-family: 'Bebas Neue',cursive; font-size: 4.5rem; line-height: 1; }
.plan-price-currency { color: rgba(255,255,255,.35); font-size: 1.25rem; font-weight: 700; }
.plan-per-month { color: rgba(255,255,255,.25); font-size: .8rem; margin-top: .2rem; }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: .75rem; margin-bottom: 2rem; }
.plan-features li { display: flex; align-items: flex-start; gap: .75rem; font-size: .85rem; color: rgba(255,255,255,.65); }
.plan-features li::before { content: '✓'; flex-shrink: 0; font-weight: 700; margin-top: .05rem; }
.plan-card:not(.gold-card) .plan-features li::before { color: var(--red); }
.plan-card.gold-card .plan-features li::before { color: var(--gold); }
.trust-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; margin-top: 3rem; }
.trust-badge { display: flex; align-items: center; gap: .5rem; color: rgba(255,255,255,.35); font-size: .85rem; }
.pricing-rating { margin-top: 2rem; text-align: center; }
.stars { display: flex; justify-content: center; gap: .15rem; margin-bottom: .4rem; }
.star { color: var(--gold); font-size: 1rem; }

/* ── MODAL ── */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.87);
  display: none; align-items: center; justify-content: center; padding: 1rem;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: #111; border: 1px solid rgba(255,255,255,.1); border-radius: 1.25rem;
  width: 100%; max-width: 500px; box-shadow: 0 30px 80px rgba(0,0,0,.7); overflow: hidden;
  animation: modal-in .3s ease;
}
@keyframes modal-in { from { opacity:0; transform: scale(.9) translateY(1rem); } to { opacity:1; transform: none; } }
.modal-head {
  position: relative; padding: 1.5rem; border-bottom: 1px solid rgba(255,255,255,.06);
  background: linear-gradient(135deg, rgba(230,0,0,.1), transparent);
}
.modal-head.gold { background: linear-gradient(135deg, rgba(212,175,55,.1), transparent); }
.modal-close {
  position: absolute; top: 1rem; right: 1rem;
  background: none; border: none; color: rgba(255,255,255,.35); cursor: pointer;
  padding: .25rem; border-radius: .5rem; transition: all .2s; font-size: 1.2rem; line-height: 1;
}
.modal-close:hover { color: #fff; background: rgba(255,255,255,.1); }
.modal-eyebrow { color: rgba(255,255,255,.4); font-size: .7rem; font-weight: 600; letter-spacing: .25em; text-transform: uppercase; margin-bottom: .25rem; }
.modal-title { font-family: 'Bebas Neue',cursive; font-size: 1.9rem; }
.modal-subtitle { color: rgba(255,255,255,.35); font-size: .82rem; margin-top: .25rem; }
.modal-body { padding: 1.5rem; }
.form-group { margin-bottom: 1.1rem; }
.form-label { display: block; color: rgba(255,255,255,.55); font-size: .82rem; font-weight: 500; margin-bottom: .4rem; }
.form-input {
  width: 100%; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  color: #fff; padding: .75rem 1rem; border-radius: .6rem; font-size: .9rem;
  transition: border-color .2s; outline: none; font-family: 'Inter',sans-serif;
}
.form-input:focus { border-color: rgba(230,0,0,.5); }
.form-input.gold-focus:focus { border-color: rgba(212,175,55,.5); }
.form-input::placeholder { color: rgba(255,255,255,.25); }
.form-error { color: #ff6b6b; font-size: .75rem; margin-top: .3rem; }
.modal-disclaimer { text-align: center; color: rgba(255,255,255,.25); font-size: .72rem; margin-top: .75rem; }
.modal-success { text-align: center; padding: 3rem 1rem; }
.success-icon { width: 4rem; height: 4rem; background: rgba(0,98,51,.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; font-size: 1.5rem; }
.success-title { font-family: 'Bebas Neue',cursive; font-size: 1.75rem; margin-bottom: .5rem; }
.success-sub { color: rgba(255,255,255,.45); font-size: .85rem; }

/* ── CONTACT ── */
#contact { background: #0d0d0d; position: relative; overflow: hidden; }
.contact-grid { display: grid; gap: 3rem; }
@media(min-width:1024px) { .contact-grid { grid-template-columns: 1fr 1fr; align-items: center; } }
.contact-info { display: flex; flex-direction: column; gap: 1rem; margin-top: 2rem; }
.contact-item {
  display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem;
  border-radius: .75rem; border: 1px solid;
}
.contact-item.green { background: rgba(0,98,51,.1); border-color: rgba(0,98,51,.2); }
.contact-item.red { background: rgba(230,0,0,.1); border-color: rgba(230,0,0,.2); }
.contact-item.gold { background: rgba(212,175,55,.1); border-color: rgba(212,175,55,.2); }
.contact-item-icon { font-size: 1.1rem; flex-shrink: 0; }
.contact-item-label { color: rgba(255,255,255,.35); font-size: .65rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.contact-item-val { color: #fff; font-weight: 600; font-size: .9rem; }
.contact-item-val a { color: inherit; text-decoration: none; transition: color .2s; }
.contact-item-val a:hover { color: var(--gold); }
.contact-form-card { background: #111; border: 1px solid rgba(255,255,255,.07); border-radius: 1.25rem; padding: 2rem; }
.contact-form-head { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.5rem; }
.contact-form-icon { width: 2.5rem; height: 2.5rem; background: rgba(230,0,0,.15); border-radius: .75rem; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }

/* ── BLOG ── */
#blog { background: #000; position: relative; }
.blog-header { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 3rem; }
.blog-grid { display: grid; gap: 1.5rem; }
@media(min-width:768px) { .blog-grid { grid-template-columns: repeat(2,1fr); } }
@media(min-width:1024px) { .blog-grid { grid-template-columns: repeat(3,1fr); } }
.blog-card {
  display: block; text-decoration: none;
  background: #111; border: 1px solid rgba(255,255,255,.07); border-radius: 1.25rem;
  overflow: hidden; transition: all .3s;
}
.blog-card:hover { transform: translateY(-4px); border-color: rgba(230,0,0,.35); box-shadow: 0 0 30px rgba(230,0,0,.12); }
.blog-thumb { aspect-ratio: 16/9; background: linear-gradient(135deg, rgba(230,0,0,.2), #1a1a1a); display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; }
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.blog-card:hover .blog-thumb img { transform: scale(1.05); }
.blog-thumb-placeholder { font-family: 'Bebas Neue',cursive; font-size: 2.5rem; color: rgba(255,255,255,.12); letter-spacing: .15em; }
.blog-body { padding: 1.5rem; }
.blog-date { display: flex; align-items: center; gap: .35rem; color: rgba(255,255,255,.25); font-size: .72rem; margin-bottom: .75rem; }
.blog-title { font-weight: 700; font-size: 1.05rem; line-height: 1.4; margin-bottom: .6rem; color: #fff; transition: color .2s; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card:hover .blog-title { color: rgba(255,100,100,1); }
.blog-excerpt { color: rgba(255,255,255,.45); font-size: .82rem; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.blog-read-more { display: flex; align-items: center; gap: .35rem; color: var(--red); font-size: .82rem; font-weight: 700; margin-top: 1.25rem; transition: gap .2s; }
.blog-card:hover .blog-read-more { gap: .6rem; }

/* ── FOOTER ── */
footer { background: #0d0d0d; border-top: 1px solid rgba(255,255,255,.05); }
.footer-grid { display: grid; gap: 2rem; margin-bottom: 2.5rem; }
@media(min-width:640px) { .footer-grid { grid-template-columns: repeat(2,1fr); } }
@media(min-width:1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-logo { height: 44px; width: auto; object-fit: contain; margin-bottom: 1rem; }
.footer-desc { color: rgba(255,255,255,.35); font-size: .83rem; line-height: 1.65; max-width: 18rem; }
.footer-socials { display: flex; gap: .6rem; margin-top: 1.25rem; }
.footer-social {
  width: 2.25rem; height: 2.25rem; border-radius: .5rem; border: 1px solid;
  display: flex; align-items: center; justify-content: center; font-size: .9rem;
  transition: all .2s;
}
.footer-social.wa { background: rgba(0,98,51,.2); border-color: rgba(0,98,51,.3); color: #4ade80; }
.footer-social.wa:hover { background: rgba(0,98,51,.4); }
.footer-social.ph { background: rgba(230,0,0,.1); border-color: rgba(230,0,0,.2); color: var(--red); }
.footer-social.ph:hover { background: rgba(230,0,0,.2); }
.footer-col-title { font-family: 'Bebas Neue',cursive; font-size: 1.1rem; letter-spacing: .05em; margin-bottom: 1rem; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.footer-links a { color: rgba(255,255,255,.35); text-decoration: none; font-size: .85rem; transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-support { display: flex; flex-direction: column; gap: .75rem; }
.footer-support-item label { color: rgba(255,255,255,.3); font-size: .65rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; display: block; margin-bottom: .15rem; }
.footer-support-item span, .footer-support-item a { color: rgba(255,255,255,.75); font-size: .85rem; font-weight: 600; text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.05); padding: 1.5rem 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; }
.footer-copyright { color: rgba(255,255,255,.2); font-size: .75rem; }
.footer-admin a { color: rgba(255,255,255,.15); font-size: .75rem; text-decoration: none; transition: color .2s; }
.footer-admin a:hover { color: rgba(255,255,255,.45); }

/* ── SECTION HEADER ── */
.section-header { text-align: center; margin-bottom: 4rem; }
.section-eyebrow { font-size: .72rem; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; margin-bottom: 1rem; }
.section-sub { color: rgba(255,255,255,.45); font-size: 1rem; max-width: 36rem; margin: 1rem auto 0; line-height: 1.7; }

/* ── TESTIMONIALS ── */
.testi-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media(min-width:640px)  { .testi-grid { grid-template-columns: repeat(2,1fr); } }
@media(min-width:1024px) { .testi-grid { grid-template-columns: repeat(3,1fr); } }
.testi-card {
  background: #111; border: 1px solid rgba(255,255,255,.07);
  border-radius: 1.25rem; padding: 1.5rem;
  display: flex; flex-direction: column; gap: 1rem;
  transition: all .3s;
}
.testi-card:hover {
  border-color: rgba(212,175,55,.3);
  box-shadow: 0 0 24px rgba(212,175,55,.08);
  transform: translateY(-4px);
}
.testi-stars { display: flex; gap: .1rem; }
.testi-text {
  color: rgba(255,255,255,.65); font-size: .88rem;
  line-height: 1.7; flex: 1;
  font-style: italic;
}
.testi-author { display: flex; align-items: center; gap: .75rem; margin-top: auto; }
.testi-avatar {
  width: 2.5rem; height: 2.5rem; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, rgba(212,175,55,.3), rgba(212,175,55,.1));
  border: 1px solid rgba(212,175,55,.3);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem; color: var(--gold);
}
.testi-name { font-weight: 700; font-size: .88rem; color: #fff; }
.testi-meta { color: rgba(255,255,255,.3); font-size: .75rem; margin-top: .1rem; }

/* RTL testimonials */
body.rtl .testi-author { flex-direction: row-reverse; }
body.rtl .testi-stars  { flex-direction: row-reverse; }

/* ── BLOG PAGE ── */
.page-hero { background: #000; padding: 8rem 0 4rem; text-align: center; border-bottom: 1px solid rgba(255,255,255,.05); }
.blog-page-grid { padding: 4rem 0; }
.blog-list { display: grid; gap: 1.5rem; }
@media(min-width:768px) { .blog-list { grid-template-columns: repeat(2,1fr); } }
@media(min-width:1024px) { .blog-list { grid-template-columns: repeat(3,1fr); } }
.pagination { display: flex; justify-content: center; gap: .5rem; margin-top: 3rem; }
.page-link {
  padding: .45rem .9rem; border-radius: .5rem; text-decoration: none;
  font-size: .85rem; font-weight: 600; border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.55); transition: all .2s;
}
.page-link:hover, .page-link.active { background: var(--red); border-color: var(--red); color: #fff; }

/* ── BLOG POST PAGE ── */
.post-hero { background: #000; padding: 8rem 0 3rem; border-bottom: 1px solid rgba(255,255,255,.05); }
.post-back { display: inline-flex; align-items: center; gap: .5rem; color: rgba(255,255,255,.4); text-decoration: none; font-size: .85rem; font-weight: 500; margin-bottom: 1.5rem; transition: color .2s; }
.post-back:hover { color: #fff; }
.post-date { color: rgba(255,255,255,.35); font-size: .8rem; margin-bottom: 1rem; }
.post-title { font-size: clamp(1.75rem,4vw,3rem); font-weight: 800; line-height: 1.2; }
.post-excerpt { color: rgba(255,255,255,.5); font-size: 1.05rem; line-height: 1.7; margin-top: 1rem; }
.post-image { width: 100%; max-height: 480px; object-fit: cover; border-radius: 1rem; margin: 2rem 0; }
.post-content { max-width: 800px; margin: 0 auto; padding: 3rem 1.5rem; color: rgba(255,255,255,.75); font-size: 1rem; line-height: 1.85; }
.post-content h2 { font-family: 'Bebas Neue',cursive; font-size: 1.75rem; color: #fff; margin: 2rem 0 .75rem; }
.post-content h3 { font-size: 1.2rem; color: #fff; margin: 1.5rem 0 .5rem; font-weight: 700; }
.post-content p { margin-bottom: 1.25rem; }
.post-content ul, .post-content ol { margin: 1rem 0 1.25rem 1.5rem; }
.post-content li { margin-bottom: .4rem; }
.post-content a { color: var(--red); }
.post-content strong { color: #fff; }

/* ── ADMIN ── */
.admin-body { background: #0a0a0a; min-height: 100vh; }
.admin-login { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: #0a0a0a; }
.admin-login-card { background: #111; border: 1px solid rgba(255,255,255,.1); border-radius: 1.25rem; padding: 2.5rem; width: 100%; max-width: 380px; }
.admin-login-logo { text-align: center; margin-bottom: 2rem; }
.admin-login-logo img { height: 40px; }
.admin-error { background: rgba(230,0,0,.15); border: 1px solid rgba(230,0,0,.3); color: #ff6b6b; padding: .75rem 1rem; border-radius: .6rem; font-size: .85rem; margin-bottom: 1rem; }
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar { width: 240px; background: #0d0d0d; border-right: 1px solid rgba(255,255,255,.07); flex-shrink: 0; display: flex; flex-direction: column; padding: 1.5rem 0; }
.admin-sidebar-logo { padding: 0 1.25rem 1.5rem; border-bottom: 1px solid rgba(255,255,255,.06); margin-bottom: 1rem; }
.admin-sidebar-logo img { height: 36px; }
.admin-nav { list-style: none; display: flex; flex-direction: column; gap: .25rem; padding: 0 .75rem; }
.admin-nav a {
  display: flex; align-items: center; gap: .65rem; padding: .65rem .75rem;
  border-radius: .6rem; color: rgba(255,255,255,.45); text-decoration: none;
  font-size: .87rem; font-weight: 500; transition: all .2s;
}
.admin-nav a:hover { color: #fff; background: rgba(255,255,255,.06); }
.admin-nav a.active { color: #fff; background: rgba(230,0,0,.15); }
.admin-logout { margin-top: auto; padding: .75rem; }
.admin-main { flex: 1; padding: 2rem; overflow: auto; }
.admin-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; }
.admin-page-title { font-family: 'Bebas Neue',cursive; font-size: 1.75rem; }
.admin-card { background: #111; border: 1px solid rgba(255,255,255,.07); border-radius: 1rem; overflow: hidden; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { background: #1a1a1a; color: rgba(255,255,255,.4); font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; padding: .75rem 1rem; text-align: left; border-bottom: 1px solid rgba(255,255,255,.07); }
.admin-table td { padding: .9rem 1rem; border-bottom: 1px solid rgba(255,255,255,.04); color: rgba(255,255,255,.75); font-size: .87rem; vertical-align: top; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: rgba(255,255,255,.02); }
.status-badge { display: inline-block; padding: .25rem .65rem; border-radius: 9999px; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.status-NOUVEAU { background: rgba(59,130,246,.2); color: #60a5fa; }
.status-EN_COURS { background: rgba(245,158,11,.2); color: #fbbf24; }
.status-TRAITE { background: rgba(34,197,94,.2); color: #4ade80; }
.status-select { background: #1a1a1a; border: 1px solid rgba(255,255,255,.12); color: #fff; padding: .3rem .6rem; border-radius: .4rem; font-size: .8rem; cursor: pointer; }
.admin-form { background: #111; border: 1px solid rgba(255,255,255,.07); border-radius: 1rem; padding: 1.5rem; margin-bottom: 1.5rem; }
.admin-form h3 { font-family: 'Bebas Neue',cursive; font-size: 1.25rem; margin-bottom: 1rem; }
.admin-grid2 { display: grid; gap: 1rem; }
@media(min-width:768px) { .admin-grid2 { grid-template-columns: 1fr 1fr; } }
.admin-textarea { min-height: 200px; resize: vertical; }
.admin-checkbox-row { display: flex; align-items: center; gap: .5rem; }
.admin-checkbox-row input[type=checkbox] { width: 1rem; height: 1rem; }
.admin-actions { display: flex; gap: .5rem; }
.btn-danger { background: rgba(230,0,0,.2); border: 1px solid rgba(230,0,0,.3); color: var(--red); }
.btn-danger:hover { background: rgba(230,0,0,.35); }
.empty-state { text-align: center; padding: 4rem 1rem; color: rgba(255,255,255,.3); }
.toast {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 999;
  background: #1a1a1a; border: 1px solid rgba(255,255,255,.1); border-radius: .75rem;
  padding: .85rem 1.25rem; font-size: .87rem; color: #fff;
  box-shadow: 0 8px 32px rgba(0,0,0,.5); display: flex; align-items: center; gap: .6rem;
  animation: toast-in .3s ease; max-width: 320px;
}
.toast.success { border-color: rgba(34,197,94,.3); }
.toast.error { border-color: rgba(230,0,0,.3); }
@keyframes toast-in { from { opacity:0; transform: translateY(1rem); } to { opacity:1; transform: none; } }

/* ── FAQ ACCORDION ── */
.faq-list { display: flex; flex-direction: column; gap: .75rem; }
.faq-item { background: #111; border: 1px solid rgba(255,255,255,.07); border-radius: .875rem; overflow: hidden; transition: border-color .2s; }
.faq-item:hover { border-color: rgba(212,175,55,.3); }
.faq-item.open { border-color: rgba(212,175,55,.5); }
.faq-question {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; padding: 1.25rem 1.5rem; background: none; border: none; cursor: pointer;
  color: #fff; font-size: 1rem; font-weight: 600; text-align: left; line-height: 1.4;
}
body.rtl .faq-question { text-align: right; flex-direction: row-reverse; }
.faq-icon { flex-shrink: 0; color: var(--gold); transition: transform .3s ease; }
.faq-item.open .faq-icon { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .35s ease, padding .35s ease; }
.faq-answer p { padding: 0 1.5rem 1.25rem; color: rgba(255,255,255,.65); font-size: .93rem; line-height: 1.75; margin: 0; }
.faq-item.open .faq-answer { max-height: 400px; }

/* ── ANIMATE ON SCROLL ── */
.aos { opacity: 0; transform: translateY(2rem); transition: opacity .6s ease, transform .6s ease; }
.aos.visible { opacity: 1; transform: none; }
.aos-delay-1 { transition-delay: .12s; }
.aos-delay-2 { transition-delay: .24s; }
.aos-delay-3 { transition-delay: .36s; }
.aos-delay-4 { transition-delay: .48s; }
.aos-delay-5 { transition-delay: .6s; }

/* ── RESPONSIVE ── */
@media(max-width:1024px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
}
@media(max-width:640px) {
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; }
  .hero-stats { gap: .5rem; }
  .admin-sidebar { display: none; }
  .admin-main { padding: 1rem; }
}

/* ── ADMIN MOBILE ── */
.admin-mobile-topbar {
  display: none;
  position: fixed; top: 0; left: 0; right: 0; z-index: 300;
  height: 56px; background: #0d0d0d;
  border-bottom: 1px solid rgba(255,255,255,.07);
  align-items: center; justify-content: space-between;
  padding: 0 1rem;
}
.admin-mobile-logo img { height: 32px; }
.admin-burger {
  background: none; border: none; cursor: pointer;
  display: flex; flex-direction: column; gap: 5px; padding: .35rem;
}
.admin-burger span {
  display: block; width: 22px; height: 2px;
  background: rgba(255,255,255,.7); border-radius: 2px; transition: all .3s;
}
.admin-burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.admin-burger.open span:nth-child(2) { opacity: 0; }
.admin-burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

.admin-sidebar-overlay {
  display: none; position: fixed; inset: 0; z-index: 290;
  background: rgba(0,0,0,.6); backdrop-filter: blur(2px);
}
.admin-sidebar-overlay.open { display: block; }

@media(max-width:640px) {
  .admin-mobile-topbar { display: flex; }
  .admin-layout { display: block; }
  .admin-sidebar {
    display: flex !important;
    position: fixed; top: 0; left: -260px; bottom: 0; z-index: 295;
    width: 240px; transition: left .3s ease;
    padding-top: 1.5rem;
  }
  .admin-sidebar.open { left: 0; }
  .admin-main { padding: .9rem; padding-top: calc(56px + .9rem); }
  .admin-topbar { flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }
  .admin-page-title { font-size: 1.4rem; }

  /* Tables: horizontal scroll */
  .admin-card { overflow-x: auto; border-radius: 1rem; }
  .admin-table { min-width: 560px; }
  .admin-table th, .admin-table td { padding: .65rem .75rem; font-size: .8rem; }

  /* Dashboard KPI on mobile: already 2col via kpi-grid */
  .kpi-value { font-size: 1.75rem; }

  /* Status badges wrap */
  .admin-topbar > div { flex-wrap: wrap; }

  /* Blog form */
  .admin-form { padding: 1rem; }
  .admin-actions { flex-wrap: wrap; }
  .btn-sm { font-size: .78rem; padding: .4rem .8rem; }

  /* Password grid: 1 col on mobile */
  .pw-grid { grid-template-columns: 1fr !important; }

  /* Dash grid: 1 col on mobile */
  .dash-grid { grid-template-columns: 1fr !important; }
  .recent-table { min-width: 480px; }
  .dash-card { overflow-x: auto; }
}
