/* ============================================================
   CLINIQUE OPTIQUE — "Precision Night Garage"
   A cinematic, automotive-grade dark theme where light is the hero.
   Single brand accent (lime #A1D143) glows like a headlight beam.
   Fully tokenized · dark-first with a polished light theme.
   ============================================================ */

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }

img,
video { max-width: 100%; display: block; }

a { text-decoration: none; color: inherit; }

button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

ul { list-style: none; }

:focus-visible {
  outline: 2px solid var(--brand-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* — Brand (from logo) — */
  --brand: #a1d143;
  --brand-bright: #c1f25a;
  --brand-deep: #7ca62e;
  --on-brand: #0b1303;            /* text on lime surfaces */

  /* — Type families (distinctive: no Inter/Roboto/Arial) — */
  --font-display: 'Saira', sans-serif;       /* technical, motorsport-gauge */
  --font-body: 'Sora', sans-serif;           /* geometric, readable */
  --font-arabic: 'Readex Pro', sans-serif;   /* modern Arabic */

  /* — Fluid type scale (1.2 ratio) — */
  --fs-xs: clamp(0.74rem, 0.71rem + 0.15vw, 0.82rem);
  --fs-sm: clamp(0.86rem, 0.83rem + 0.18vw, 0.94rem);
  --fs-base: clamp(1rem, 0.96rem + 0.22vw, 1.08rem);
  --fs-md: clamp(1.15rem, 1.08rem + 0.4vw, 1.35rem);
  --fs-lg: clamp(1.4rem, 1.25rem + 0.8vw, 1.85rem);
  --fs-xl: clamp(1.9rem, 1.55rem + 1.7vw, 3rem);
  --fs-2xl: clamp(2.4rem, 1.8rem + 3vw, 4.6rem);

  /* — Spacing scale (4px base) — */
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 2.5rem;
  --sp-8: 3rem;
  --sp-10: 4.5rem;
  --sp-12: 6rem;
  --section-pad: clamp(4rem, 3rem + 5vw, 7.5rem);

  /* — Radii — */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* — Transitions / easing — */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 0.2s var(--ease);
  --t: 0.35s var(--ease);
  --t-slow: 0.6s var(--ease);

  /* — Layout — */
  --maxw: 1200px;

  /* — Z-index ladder — */
  --z-bg: -2;
  --z-content: 1;
  --z-nav: 100;
  --z-float: 900;
  --z-menu: 1000;
  --z-progress: 1100;
  --z-splash: 9999;
}

/* ---------- Dark theme (default — the brand home) ---------- */
:root,
:root[data-theme="dark"] {
  --bg: #0a0e0c;
  --bg-deep: #060907;
  --surface: rgba(18, 25, 21, 0.6);
  --surface-solid: #121916;
  --surface-2: #18211c;
  --surface-alt: #0c120f;          /* .bg-light sections in dark */
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(161, 209, 67, 0.35);
  --text: #e9f0e6;
  --text-soft: #abb6a7;
  --text-dim: #818d7c;

  --card-glass: rgba(20, 27, 23, 0.66);
  --nav-scrolled: rgba(8, 12, 10, 0.82);
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 14px 40px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 30px 70px rgba(0, 0, 0, 0.6);
  --glow: 0 0 28px rgba(161, 209, 67, 0.35);
  --glow-strong: 0 0 40px rgba(161, 209, 67, 0.5);
  --grain-opacity: 0.05;
  --hero-scrim: radial-gradient(120% 80% at 50% 0%, rgba(0,0,0,0.35), rgba(0,0,0,0.78) 70%), linear-gradient(180deg, rgba(7,11,9,0.55), rgba(7,11,9,0.92));
  color-scheme: dark;
}

/* ---------- Light theme (daylight clarity) ---------- */
:root[data-theme="light"] {
  --bg: #f3f6ee;
  --bg-deep: #e9eee0;
  --surface: #ffffff;
  --surface-solid: #ffffff;
  --surface-2: #ffffff;
  --surface-alt: #eaf0df;
  --line: rgba(18, 28, 12, 0.12);
  --line-strong: rgba(124, 166, 46, 0.5);
  --brand-deep: #56791a;          /* darker green for AA contrast on light surfaces */
  --text: #16200f;
  --text-soft: #45503c;
  --text-dim: #6b7563;

  --card-glass: rgba(255, 255, 255, 0.9);
  --nav-scrolled: rgba(248, 250, 244, 0.85);
  --shadow-sm: 0 2px 14px rgba(40, 60, 20, 0.08);
  --shadow-md: 0 16px 40px rgba(40, 60, 20, 0.12);
  --shadow-lg: 0 30px 70px rgba(40, 60, 20, 0.16);
  --glow: 0 8px 30px rgba(124, 166, 46, 0.3);
  --glow-strong: 0 10px 40px rgba(124, 166, 46, 0.4);
  --grain-opacity: 0.025;
  --hero-scrim: radial-gradient(120% 80% at 50% 0%, rgba(0,0,0,0.25), rgba(0,0,0,0.7) 75%), linear-gradient(180deg, rgba(6,10,4,0.4), rgba(6,10,4,0.82));
  color-scheme: light;
}

/* ============================================================
   BASE
   ============================================================ */
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-soft);
  font-size: var(--fs-base);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color var(--t), color var(--t);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.01em;
}

::selection { background: var(--brand); color: var(--on-brand); }

.skip-link {
  position: fixed;
  top: -120px;
  left: 16px;
  z-index: var(--z-splash);
  background: var(--brand);
  color: var(--on-brand);
  padding: 12px 20px;
  border-radius: var(--r-sm);
  font-weight: 700;
  transition: top var(--t-fast);
}
.skip-link:focus { top: 16px; }

/* ---------- Layout utils ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1.2rem, 5vw, 2.5rem); }
.section-pad { padding: var(--section-pad) 0; position: relative; z-index: var(--z-content); background: var(--bg); }
.bg-light { background: var(--surface-alt); }
.text-center { text-align: center; }

/* ---------- Icon system (CSS masks → inherit color, survive JS text updates) ---------- */
.i-phone, .i-whatsapp, .i-pin, .i-mail {
  display: inline-block;
  width: 1.05em;
  height: 1.05em;
  flex: none;
  background-color: currentColor;
  -webkit-mask: center / contain no-repeat var(--ic);
  mask: center / contain no-repeat var(--ic);
}
.i-phone  { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 15.5c-1.25 0-2.45-.2-3.57-.57a1 1 0 0 0-1.02.24l-2.2 2.2a15.05 15.05 0 0 1-6.59-6.59l2.2-2.21a1 1 0 0 0 .25-1.01A11.36 11.36 0 0 1 8.5 4a1 1 0 0 0-1-1H4a1 1 0 0 0-1 1 17 17 0 0 0 17 17 1 1 0 0 0 1-1v-3.5a1 1 0 0 0-1-1z'/%3E%3C/svg%3E"); }
.i-whatsapp { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12.04 2C6.58 2 2.13 6.45 2.13 11.91c0 1.75.46 3.45 1.32 4.95L2 22l5.25-1.38a9.9 9.9 0 0 0 4.79 1.22h.01c5.46 0 9.91-4.45 9.91-9.91C21.96 6.45 17.5 2 12.04 2zm5.8 14.16c-.24.68-1.42 1.31-1.96 1.39-.5.07-1.13.1-1.83-.11-.42-.13-.96-.31-1.65-.61-2.9-1.25-4.8-4.17-4.94-4.36-.15-.19-1.19-1.58-1.19-3.01s.75-2.14 1.02-2.43c.27-.29.58-.36.78-.36.19 0 .39 0 .56.01.18.01.42-.07.66.5.24.59.82 2.03.89 2.18.07.15.12.32.02.51-.1.19-.15.31-.29.48-.15.17-.31.39-.44.52-.15.15-.3.31-.13.6.17.29.76 1.25 1.63 2.03 1.12 1 2.06 1.31 2.35 1.46.29.15.46.12.63-.07.17-.19.73-.85.92-1.14.19-.29.39-.24.66-.15.27.1 1.7.8 1.99.95.29.15.49.22.56.34.07.12.07.68-.17 1.36z'/%3E%3C/svg%3E"); }
.i-pin    { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.25 7 13 7 13s7-7.75 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E"); }
.i-mail   { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z'/%3E%3C/svg%3E"); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-icon { display: inline-flex; align-items: center; justify-content: center; gap: 0.6em; }

.hero-cta,
.hero-cta-whatsapp {
  padding: 0.95rem 2rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-sm);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border-radius: var(--r-pill);
  transition: transform var(--t-fast), box-shadow var(--t), background var(--t);
  white-space: nowrap;
}

.hero-cta {
  background: var(--brand);
  color: var(--on-brand);
  box-shadow: 0 8px 30px rgba(161, 209, 67, 0.35);
}
.hero-cta:hover { background: var(--brand-bright); transform: translateY(-3px); box-shadow: var(--glow-strong); }
.hero-cta:active { transform: translateY(-1px); }

.hero-cta-whatsapp {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--line-strong);
  backdrop-filter: blur(6px);
}
.hero-cta-whatsapp:hover { border-color: var(--brand); color: var(--brand-bright); transform: translateY(-3px); }

/* ============================================================
   VIDEO BACKGROUND
   ============================================================ */
.video-bg {
  position: fixed;
  inset: 0;
  height: 100svh;
  z-index: var(--z-bg);
  background: var(--bg-deep);
  overflow: hidden;
}
.video-bg video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.video-bg video.active { opacity: 1; }

.video-scrim {
  position: absolute;
  inset: 0;
  background: var(--hero-scrim);
  opacity: 0.55; /* Reduced from default 1.0 to make background video more visible */
}
/* faint green beam wash + technical vignette */
.video-scrim::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 80% 15%, rgba(161, 209, 67, 0.12), transparent 60%),
    radial-gradient(50% 50% at 15% 90%, rgba(161, 209, 67, 0.08), transparent 60%);
  mix-blend-mode: screen;
}

/* film grain overlay */
.grain {
  position: absolute;
  inset: -50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: var(--grain-opacity);
  pointer-events: none;
  animation: grainShift 8s steps(6) infinite;
}
@keyframes grainShift {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-4%, 3%); }
  40% { transform: translate(3%, -3%); }
  60% { transform: translate(-2%, 2%); }
  80% { transform: translate(2%, 1%); }
}

/* ============================================================
   PROGRESS BAR
   ============================================================ */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--brand-deep), var(--brand-bright));
  box-shadow: 0 0 12px rgba(161, 209, 67, 0.7);
  z-index: var(--z-progress);
  will-change: transform;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: var(--z-nav);
  padding: 1.1rem 0;
  transition: background var(--t), padding var(--t), box-shadow var(--t), border-color var(--t);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent);
  border-bottom: 1px solid transparent;
}
/* Scrolled navbar is intentionally a dark "cockpit" glass in BOTH themes:
   keeps the white logo + light nav text legible and the brand consistent. */
.navbar.scrolled {
  background: rgba(8, 12, 10, 0.82);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  padding: 0.6rem 0;
}
.nav-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 56px; }

.nav-logo img {
  height: 76px;
  width: auto;
  transition: height var(--t);
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}
.navbar.scrolled .nav-logo img { height: 54px; }

.nav-links { display: none; align-items: center; gap: clamp(1rem, 2vw, 1.8rem); }
.nav-link {
  position: relative;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-sm);
  letter-spacing: 0.02em;
  color: #e9f0e6;
  padding: 0.3rem 0;
  transition: color var(--t-fast);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform var(--t);
}
.nav-link:hover { color: #fff; }
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: var(--brand-bright); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  background: var(--brand);
  color: var(--on-brand) !important;
  padding: 0.6rem 1.4rem;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-sm);
  transition: transform var(--t-fast), box-shadow var(--t), background var(--t);
}
.nav-cta:hover { background: var(--brand-bright); transform: translateY(-2px); box-shadow: var(--glow); }

/* theme toggle */
.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-pill);
  color: #e9f0e6;
  border: 1px solid var(--line);
  transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast), transform var(--t-fast);
}
.theme-toggle:hover { color: var(--brand-bright); border-color: var(--line-strong); transform: rotate(-12deg); }
.theme-toggle svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: block; }

/* hamburger */
.hamburger { display: inline-flex; flex-direction: column; gap: 5px; padding: 8px; }
.hamburger span {
  width: 26px;
  height: 2.5px;
  background: #fff;
  border-radius: 2px;
  transition: transform var(--t), opacity var(--t-fast);
}
.hamburger.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Mobile menu ---------- */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
  z-index: calc(var(--z-menu) - 1);
  opacity: 0;
  transition: opacity var(--t);
}
.mobile-overlay.active { opacity: 1; }

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: min(82%, 340px);
  height: 100svh;
  background: var(--surface-solid);
  border-left: 1px solid var(--line-strong);
  z-index: var(--z-menu);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
  padding: 5.5rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  transform: translateX(105%);
  transition: transform 0.45s var(--ease);
}
.mobile-menu.active { transform: translateX(0); }
.mobile-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  transition: color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.mobile-close:hover { color: var(--brand-deep); border-color: var(--line-strong); transform: rotate(90deg); }
.mobile-nav { display: flex; flex-direction: column; }
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  transition: color var(--t-fast), padding-left var(--t-fast);
}
.mobile-nav a:hover { color: var(--brand-deep); padding-left: 0.5rem; }

.theme-toggle--inline {
  width: auto;
  height: auto;
  padding: 0.7rem 1rem;
  gap: 0.6rem;
  justify-content: flex-start;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
}
.theme-toggle--inline span { color: var(--text); }

.mobile-socials { display: flex; gap: 1rem; align-items: center; margin-top: auto; }
.mobile-socials a {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  color: var(--brand-deep);
  transition: color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.mobile-socials a:hover { color: var(--brand); border-color: var(--line-strong); transform: translateY(-3px); }

.mobile-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  background: var(--brand);
  color: var(--on-brand) !important;
  text-align: center;
  border-radius: var(--r-pill);
  padding: 0.9rem 1rem;
  font-family: var(--font-display);
  font-weight: 700;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 1.5rem 5rem;
  position: relative;
  z-index: var(--z-content);
}
.hero-content { position: relative; max-width: 880px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  padding: 0.5rem 1.1rem;
  border-radius: var(--r-pill);
  color: #eaf3df;
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.8rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.pulse {
  width: 8px; height: 8px;
  background: var(--brand);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(161, 209, 67, 0.7);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(161, 209, 67, 0.7); }
  70% { box-shadow: 0 0 0 12px rgba(161, 209, 67, 0); }
  100% { box-shadow: 0 0 0 0 rgba(161, 209, 67, 0); }
}

.hero h1 { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1.5rem; }
.hero-headline-ar {
  font-family: var(--font-arabic);
  font-size: clamp(2rem, 6vw, 3.6rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--brand);
  text-shadow: 0 0 30px rgba(161, 209, 67, 0.35);
}
.hero-headline-fr {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}
.hero-sub {
  font-size: var(--fs-md);
  max-width: 540px;
  margin: 0 auto 2.4rem;
  background: linear-gradient(110deg, var(--text-soft) 35%, var(--text) 50%, var(--text-soft) 65%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--text-soft);
  animation: shine 3.5s linear infinite;
  display: inline-block;
}

@keyframes shine {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -200% 0;
  }
}
.hero-buttons { display: flex; flex-direction: column; gap: 0.9rem; align-items: center; }
@media (min-width: 480px) { .hero-buttons { flex-direction: row; justify-content: center; } }

/* hero stats strip */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1.2rem, 5vw, 3rem);
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.hero-stats li { display: flex; flex-direction: column; align-items: center; }
.hero-stats strong {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--brand-bright);
  line-height: 1;
}
.hero-stats .sep { color: rgba(255, 255, 255, 0.4); margin: 0 0.1em; }
.hero-stats span {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.4rem;
}

/* scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 1.8rem;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--r-pill);
  display: grid;
  place-items: start center;
  padding-top: 7px;
}
.scroll-cue-dot {
  width: 4px; height: 8px;
  background: var(--brand);
  border-radius: 2px;
  animation: scrollCue 1.8s infinite;
}
@keyframes scrollCue {
  0% { opacity: 0; transform: translateY(0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(14px); }
}

/* ============================================================
   ABOUT / ATELIER VIDEO
   ============================================================ */
.about-section { background: var(--bg); position: relative; z-index: var(--z-content); padding: var(--sp-8) 0 0; }
.about-frame {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  background: #000;
}
.about-video { width: 100%; height: auto; display: block; }
.about-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  color: #fff;
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.45rem 0.9rem;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.rec-dot { width: 8px; height: 8px; border-radius: 50%; background: #ff4d4d; animation: pulse 2s infinite; }

/* ============================================================
   SECTION HEADINGS
   ============================================================ */
.section-head { max-width: 680px; margin: 0 auto clamp(2.5rem, 5vw, 4rem); text-align: center; }
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--brand-deep);
  margin-bottom: 1rem;
}
.section-label::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
}
.section-title {
  font-size: var(--fs-xl);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 1rem;
}
.section-title .accent {
  color: var(--brand-deep);
  position: relative;
}
.section-desc { color: var(--text-soft); font-size: var(--fs-md); }

/* Animated "shiny" gradient text — vanilla recreation of the AnimatedText (framer-motion)
   component: a bright band sweeps across the text on a loop. Theme-aware + reduced-motion safe. */
.shiny-text,
.shiny-text .accent {
  --shine: var(--brand-bright);
  background-image: linear-gradient(110deg, var(--text) 0%, var(--text) 42%, var(--shine) 50%, var(--text) 58%, var(--text) 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: shinyText 4s linear infinite;
}
:root[data-theme="light"] .shiny-text { --shine: var(--brand-deep); }
@keyframes shinyText {
  0%   { background-position: 150% center; }
  100% { background-position: -50% center; }
}
@media (prefers-reduced-motion: reduce) {
  .shiny-text,
  .shiny-text .accent {
    animation: none;
    background: none;
    -webkit-text-fill-color: var(--text);
    color: var(--text);
  }
}

/* ============================================================
   SERVICE / SHOP CARDS
   ============================================================ */
.services-grid { display: grid; grid-template-columns: 1fr; gap: clamp(1.2rem, 2.5vw, 1.8rem); }
@media (min-width: 720px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

.shop-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.2rem, 2.5vw, 1.8rem);
  max-width: 1100px;
  margin: 0 auto;
}
@media (min-width: 600px) { .shop-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .shop-grid { grid-template-columns: repeat(3, 1fr); } }

.service-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface-solid);
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: var(--shadow-md);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  isolation: isolate;
}
/* image layer with slow ken-burns */
.service-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: -2;
  transform: scale(1.04);
  transition: transform var(--t-slow);
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(6, 9, 7, 0.95) 8%, rgba(6, 9, 7, 0.55) 45%, rgba(6, 9, 7, 0.12) 100%);
  transition: background var(--t);
}
.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-lg), var(--glow);
}
.service-card:hover .service-media { transform: scale(1.12); }
.service-card:hover::before {
  background: linear-gradient(to top, rgba(6, 9, 7, 0.92) 5%, rgba(6, 9, 7, 0.35) 55%, rgba(10, 20, 0, 0.05) 100%);
}

.service-num {
  position: absolute;
  top: 1.1rem;
  left: 1.3rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--brand-bright);
  z-index: 1;
}
.service-body { padding: 1.6rem 1.5rem 1.7rem; position: relative; }
.service-ar {
  font-family: var(--font-arabic);
  color: var(--brand);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}
.service-card h3 {
  font-size: var(--fs-md);
  color: #fff;
  margin-bottom: 0.6rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}
.service-card p {
  color: rgba(255, 255, 255, 0.82);
  font-size: var(--fs-sm);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
}
/* thin accent line that grows on hover */
.service-card::after {
  content: "";
  position: absolute;
  left: 1.5rem;
  bottom: 0;
  height: 3px;
  width: 0;
  background: var(--brand);
  border-radius: 3px 3px 0 0;
  box-shadow: var(--glow);
  transition: width var(--t-slow);
  z-index: 1;
}
.service-card:hover::after { width: 56px; }

/* ── Mobile: sticky "deck" scroll animation for the service cards ──
   On phones the 3 service cards stack like a deck: each card pins under the
   navbar while the next scrolls up over it, and the cards behind scale down
   for depth. Desktop (≥720px) keeps the regular 3-column grid untouched.
   The per-card scale is driven smoothly from main.js (rAF-throttled). */
@media (max-width: 719px) {
  .services-grid.stack-mode {
    display: block;
    max-width: 460px;
    margin-inline: auto;
  }
  .services-grid.stack-mode .service-card {
    position: sticky;
    top: calc(86px + var(--i, 0) * 14px);
    margin: 0 0 26px;
    transform-origin: center top;
    transition: box-shadow var(--t), border-color var(--t);
    box-shadow: var(--shadow-lg);
    will-change: transform;
  }
  .services-grid.stack-mode .service-card:last-child {
    margin-bottom: 0;
  }
}

/* ---------- Shop categories filters (glassmorphism & premium UI) ---------- */
.shop-filters {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  margin: -1rem auto 2.8rem;
  padding: 0.45rem;
  background: var(--surface-solid);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  width: fit-content;
  max-width: 100%;
  box-shadow: var(--shadow-sm);
}

.filter-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-soft);
  padding: 0.6rem 1.4rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-sm);
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
  user-select: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.filter-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}

.filter-btn.active {
  background: var(--brand);
  color: var(--on-brand);
  border-color: var(--brand);
  box-shadow: var(--glow-strong);
  transform: scale(1.03);
}

/* Theme light adjustments */
:root[data-theme="light"] .shop-filters {
  background: var(--surface-solid);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}

:root[data-theme="light"] .filter-btn {
  color: var(--text-soft);
}

:root[data-theme="light"] .filter-btn:hover {
  color: var(--brand-deep);
  background: rgba(161, 209, 67, 0.08);
}

:root[data-theme="light"] .filter-btn.active {
  background: var(--brand);
  color: var(--on-brand);
}

/* Card filter transitions and layout animation support */
.product-card {
  transition: transform 0.35s var(--ease), box-shadow var(--t), border-color var(--t), opacity 0.35s var(--ease);
}

.product-card.hidden-category {
  opacity: 0;
  transform: scale(0.85);
  pointer-events: none;
}

/* ---------- Boutique product cards ---------- */
.product-card {
  display: flex;
  flex-direction: column;
  background: var(--surface-solid);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md), var(--glow);
}
.product-media {
  position: relative;
  height: clamp(210px, 26vw, 260px);   /* definite height → uniform tiles, images always contained */
  display: grid;
  place-items: center;
  padding: 1.5rem;
  overflow: hidden;
  background: radial-gradient(circle at 50% 36%, #f7f9f1 0%, #e2e8d6 62%, #cdd6bd 100%);
  border-bottom: 1px solid var(--line);
}
.product-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(58% 42% at 50% 0%, rgba(255, 255, 255, 0.65), transparent 70%);
  pointer-events: none;
}
.product-media img {
  position: absolute;
  inset: 0;
  margin: auto;                  /* centers within the definite-height tile */
  width: auto;
  height: auto;
  max-width: calc(100% - 2.8rem);
  max-height: calc(100% - 2.8rem);
  object-fit: contain;
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.28));
  transition: transform var(--t-slow);
}
.product-card:hover .product-media img { transform: scale(1.06) rotate(-1.5deg); }

.product-badge {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  z-index: 2;
  background: var(--brand);
  color: var(--on-brand);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.32rem 0.75rem;
  border-radius: var(--r-pill);
  box-shadow: var(--glow);
}

.product-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.4rem 1.4rem 1.5rem;
}
.product-body .service-ar {
  color: var(--brand-deep);
  text-shadow: none;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}
.product-body h3 { font-size: var(--fs-md); color: var(--text); margin-bottom: 0.5rem; }
.product-body p { color: var(--text-soft); font-size: var(--fs-sm); margin-bottom: 1.2rem; }

.product-cta {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  min-height: 44px;
  padding: 0.65rem 1.3rem;
  border-radius: var(--r-pill);
  background: var(--brand);
  color: var(--on-brand);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-sm);
  transition: transform var(--t-fast), box-shadow var(--t), background var(--t-fast), color var(--t-fast);
}
.product-cta:hover { background: var(--brand-bright); transform: translateY(-2px); box-shadow: var(--glow); }
.product-cta--ghost {
  background: transparent;
  color: var(--brand-deep);
  border: 1.5px solid var(--line-strong);
}
.product-cta--ghost:hover { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }

/* Placeholder / coming-soon card */
.product-card.is-placeholder {
  background: transparent;
  border-style: dashed;
  border-color: var(--line-strong);
  box-shadow: none;
}
.product-card.is-placeholder:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.product-media--empty {
  background: radial-gradient(circle at 50% 45%, rgba(161, 209, 67, 0.1), transparent 70%), var(--surface-alt);
  border-bottom: 1px dashed var(--line-strong);
}
.product-media--empty::after { display: none; }
.ph-icon {
  width: 54px;
  height: 54px;
  fill: none;
  stroke: var(--brand-deep);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.85;
  animation: phPulse 3s var(--ease) infinite;
}
@keyframes phPulse { 0%, 100% { opacity: 0.5; transform: translateY(0); } 50% { opacity: 0.95; transform: translateY(-4px); } }
.product-soon {
  margin-top: auto;
  color: var(--text-dim);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-sm);
}

/* ============================================================
   BEFORE / AFTER SLIDER (signature)
   ============================================================ */
.ba-slider {
  position: relative;
  max-width: 720px;
  margin: 0 auto clamp(2rem, 4vw, 3.5rem);
  aspect-ratio: 4 / 3;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-lg);
  user-select: none;
  touch-action: pan-y;
  --pos: 50%;
}
.ba-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba-before-wrap {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}
.ba-before-wrap .ba-before { width: 100%; height: 100%; object-fit: cover; }
.ba-tag {
  position: absolute;
  top: 1rem;
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.35rem 0.8rem;
  border-radius: var(--r-pill);
  backdrop-filter: blur(6px);
  z-index: 3;
}
.ba-tag-before { left: 1rem; background: rgba(0, 0, 0, 0.55); color: #fff; border: 1px solid rgba(255,255,255,0.2); }
.ba-tag-after { right: 1rem; background: var(--brand); color: var(--on-brand); }
.ba-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  z-index: 4;
}
.ba-handle {
  position: absolute;
  top: 0;
  left: var(--pos);
  transform: translateX(-50%);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  z-index: 3;
}
.ba-handle-line { flex: 1; width: 2px; background: var(--brand); box-shadow: var(--glow); }
.ba-handle-grip {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--on-brand);
  display: grid;
  place-items: center;
  box-shadow: var(--glow-strong);
  flex: none;
}
.ba-handle-grip svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ba-slider:focus-within .ba-handle-grip { outline: 3px solid var(--brand-bright); outline-offset: 3px; }

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-grid { display: grid; grid-template-columns: 1fr; gap: clamp(1rem, 2vw, 1.4rem); }
@media (min-width: 560px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 920px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }

.gallery-item {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow); }
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 9, 7, 0.85), transparent 55%);
  opacity: 0.8;
  transition: opacity var(--t);
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item:hover::after { opacity: 1; }
.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.4rem 1.1rem 1rem;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-sm);
  z-index: 1;
  transform: translateY(4px);
  transition: transform var(--t);
}
.gallery-item:hover .gallery-caption { transform: translateY(0); }

/* ============================================================
   SOCIAL MEDIA CTA BANNER (Réalisations section)
   ============================================================ */
.social-cta-banner {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding: clamp(1.8rem, 4vw, 2.8rem) clamp(1.5rem, 4vw, 3rem);
  border-radius: var(--r-xl);
  position: relative;
  overflow: hidden;
  background: var(--surface-solid);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-md), var(--glow);
  isolation: isolate;
}

/* Animated gradient glow in background */
.social-cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 80% at 15% 50%, rgba(24, 119, 242, 0.12), transparent 60%),
    radial-gradient(60% 80% at 85% 50%, rgba(193, 53, 132, 0.12), transparent 60%),
    radial-gradient(40% 60% at 50% 0%, rgba(161, 209, 67, 0.08), transparent 70%);
  z-index: -1;
  animation: socialGlow 6s ease-in-out infinite alternate;
}

@keyframes socialGlow {
  0%   { opacity: 0.7; }
  50%  { opacity: 1; }
  100% { opacity: 0.7; }
}

/* Decorative scan-line / grain texture */
.social-cta-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255,255,255,0.015) 2px,
    rgba(255,255,255,0.015) 4px
  );
  pointer-events: none;
  z-index: -1;
}

.social-cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.8rem;
  text-align: center;
}

@media (min-width: 768px) {
  .social-cta-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    gap: 2.5rem;
  }
}

.social-cta-text {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.social-cta-ar {
  font-family: var(--font-arabic);
  font-size: clamp(1.15rem, 3vw, 1.45rem);
  font-weight: 700;
  color: var(--brand);
  text-shadow: 0 0 20px rgba(161, 209, 67, 0.4);
  letter-spacing: 0.01em;
  line-height: 1.5;
}

.social-cta-fr {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: var(--text-soft);
  font-weight: 400;
  line-height: 1.6;
}

.social-cta-links {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  justify-content: center;
  flex-shrink: 0;
}

.social-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.85rem 1.7rem;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-sm);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  transition: transform var(--t-fast), box-shadow var(--t), filter var(--t-fast);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

/* Shine sweep on hover */
.social-cta-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.18), transparent);
  transition: left 0.45s ease;
  pointer-events: none;
}
.social-cta-btn:hover::before { left: 160%; }

.social-cta-btn:hover {
  transform: translateY(-4px) scale(1.03);
  filter: brightness(1.12);
}

.social-cta-btn:active { transform: translateY(-1px) scale(1.01); }

.social-cta-facebook {
  background: linear-gradient(135deg, #1877f2, #0a5ec0);
  box-shadow: 0 8px 24px rgba(24, 119, 242, 0.38);
}
.social-cta-facebook:hover {
  box-shadow: 0 12px 32px rgba(24, 119, 242, 0.55);
}

.social-cta-instagram {
  background: linear-gradient(135deg, #f09433 0%, #e6683c 20%, #dc2743 45%, #cc2366 70%, #bc1888 100%);
  box-shadow: 0 8px 24px rgba(220, 39, 67, 0.38);
}
.social-cta-instagram:hover {
  box-shadow: 0 12px 32px rgba(220, 39, 67, 0.55);
}

/* Light theme adjustments */
:root[data-theme="light"] .social-cta-banner {
  background: var(--surface);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}
:root[data-theme="light"] .social-cta-ar {
  text-shadow: none;
  color: var(--brand-deep);
}

/* ============================================================
   WHY US
   ============================================================ */
.why-grid { display: grid; grid-template-columns: 1fr; gap: clamp(1.2rem, 2.5vw, 1.8rem); }
@media (min-width: 720px) { .why-grid { grid-template-columns: repeat(3, 1fr); } }

.why-card {
  position: relative;
  background: var(--surface-solid);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 2.2rem 1.8rem;
  overflow: hidden;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.why-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), transparent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform var(--t-slow);
}
.why-card:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.why-card:hover::before { transform: scaleX(1); }
.why-icon {
  display: inline-grid;
  place-items: center;
  width: 60px;
  height: 60px;
  font-size: 1.8rem;
  border-radius: var(--r-md);
  background: rgba(161, 209, 67, 0.12);
  border: 1px solid var(--line-strong);
  margin-bottom: 1.3rem;
}
.why-card h3 { font-size: var(--fs-md); color: var(--text); margin-bottom: 0.6rem; }
.why-card p { color: var(--text-soft); font-size: var(--fs-sm); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-layout { display: grid; grid-template-columns: 1fr; gap: clamp(1.5rem, 3vw, 2.5rem); }
@media (min-width: 900px) { .contact-layout { grid-template-columns: 1fr 1.4fr; align-items: stretch; } }

.contact-info {
  background: var(--surface-solid);
  border: 1px solid var(--line);
  padding: clamp(1.8rem, 3vw, 2.8rem);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}
.contact-box { margin-bottom: 1.6rem; }
.contact-box h4 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--brand-deep);
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}
.contact-link {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--text);
  transition: color var(--t-fast);
}
.contact-link:hover { color: var(--brand-deep); }
.whatsapp-text { color: #25d366; }
.contact-box p { color: var(--text-soft); }

.contact-socials { display: flex; gap: 0.8rem; margin-top: 1.8rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.social-btn {
  flex: 1;
  text-align: center;
  padding: 0.8rem;
  border-radius: var(--r-sm);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  transition: transform var(--t-fast), filter var(--t-fast);
}
.social-btn:hover { transform: translateY(-2px); filter: brightness(1.1); }
.social-btn.facebook { background: #1877f2; }
.social-btn.instagram { background: linear-gradient(45deg, #f09433, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888); }

.contact-map {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  min-height: 320px;
  position: relative;
}
.contact-map iframe { display: block; width: 100%; height: 100%; min-height: 320px; filter: grayscale(0.2) contrast(1.05); }
:root[data-theme="dark"] .contact-map iframe { filter: invert(0.9) hue-rotate(180deg) grayscale(0.3) contrast(0.9); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--bg-deep); color: var(--text-dim); text-align: center; padding: var(--sp-10) 1.5rem 1.8rem; position: relative; z-index: var(--z-content); border-top: 1px solid var(--line); }
.footer-content { max-width: 440px; margin: 0 auto 2rem; }
.footer-logo { height: 64px; width: auto; margin: 0 auto 1.2rem; }
.footer-content p { color: var(--text-soft); }
.footer-socials { display: flex; justify-content: center; gap: 0.8rem; margin-top: 1.4rem; }
.footer-socials a {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  color: var(--text-soft);
  transition: color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.footer-socials a:hover { color: var(--brand); border-color: var(--line-strong); transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 1.5rem; font-size: var(--fs-xs); }

/* ============================================================
   WHATSAPP FLOAT
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 1.4rem;
  right: 1.4rem;
  width: 58px;
  height: 58px;
  background: #25d366;
  border-radius: 50%;
  display: grid;
  place-items: center;
  z-index: var(--z-float);
  box-shadow: 0 8px 26px rgba(37, 211, 102, 0.45);
  transition: transform var(--t), box-shadow var(--t);
}
.whatsapp-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #25d366;
  animation: ring 2.4s ease-out infinite;
}
@keyframes ring {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.7); opacity: 0; }
}
.whatsapp-float svg { fill: #fff; width: 30px; height: 30px; position: relative; }
.whatsapp-float:hover { transform: scale(1.08) translateY(-2px); box-shadow: 0 12px 34px rgba(37, 211, 102, 0.6); }

/* ============================================================
   VIDEO MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1150; /* Above nav and floating elements, below progress bar and splash */
  background: rgba(6, 9, 7, 0.85);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  display: grid;
  place-items: center;
  padding: clamp(1rem, 3vw, 2.5rem);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t), visibility var(--t);
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.modal-window {
  background: var(--surface-solid);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 960px;
  position: relative;
  transform: scale(0.95) translateY(24px);
  transition: transform var(--t) var(--ease), border-color var(--t);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.modal-overlay.active .modal-window {
  transform: scale(1) translateY(0);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-lg), var(--glow);
}
.modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 38px;
  height: 38px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--surface-2);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  color: var(--text);
  transition: color var(--t-fast), border-color var(--t-fast), transform var(--t-fast), background var(--t-fast);
  z-index: 10;
}
.modal-close:hover {
  color: var(--brand-bright);
  border-color: var(--line-strong);
  background: var(--surface-solid);
  transform: rotate(90deg);
}
.modal-content {
  padding: clamp(1.8rem, 4vw, 2.8rem) clamp(1.5rem, 3vw, 2.5rem);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--brand-deep) var(--surface-solid);
}
.modal-title {
  font-size: var(--fs-lg);
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.4rem;
  padding-right: 3rem; /* Leave room for close button */
}
.modal-desc {
  color: var(--text-soft);
  font-size: var(--fs-sm);
  margin-bottom: 2rem;
}
.modal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.6rem;
}
@media (min-width: 680px) {
  .modal-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.modal-video-card {
  background: var(--surface-2);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--t), box-shadow var(--t);
}
.modal-video-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm), var(--glow);
}
.video-wrapper {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}
.modal-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.video-info {
  padding: 1.2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.video-info h4 {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.4rem;
}
.video-info p {
  font-size: var(--fs-xs);
  color: var(--text-soft);
  line-height: 1.5;
}

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
/* Premium "focus-rise" reveal — fade + slide + scale + de-blur.
   Universal path driven by the IntersectionObserver in main.js. */
.reveal {
  opacity: 0;
  translate: 0 46px;
  scale: 0.972;
  filter: blur(8px);
  transition:
    opacity 0.8s var(--ease-out),
    translate 0.9s var(--ease-out),
    scale 0.9s var(--ease-out),
    filter 0.7s var(--ease-out);
  will-change: opacity, transform, filter;
}
.reveal.active { opacity: 1; translate: 0 0; scale: 1; filter: blur(0); }

/* ── Direction variants ── */
.reveal.from-left  { translate: -60px 0; }
.reveal.from-right { translate: 60px 0;  }
.reveal.from-below { translate: 0 60px;  }
.reveal.scale-in   { translate: 0 0; scale: 0.85; }

.reveal.from-left.active,
.reveal.from-right.active,
.reveal.from-below.active,
.reveal.scale-in.active {
  translate: 0 0;
  scale: 1;
  opacity: 1;
  filter: blur(0);
}

/* staggered cascade within a group */
.hero-content .reveal:nth-child(1) { transition-delay: 0.05s; }
.hero-content .reveal:nth-child(2) { transition-delay: 0.13s; }
.hero-content .reveal:nth-child(3) { transition-delay: 0.21s; }
.hero-content .reveal:nth-child(4) { transition-delay: 0.29s; }
.hero-content .reveal:nth-child(5) { transition-delay: 0.37s; }
.services-grid .reveal:nth-child(1) { transition-delay: 0s; }
.services-grid .reveal:nth-child(2),
.shop-grid .reveal:nth-child(2),
.why-grid .reveal:nth-child(2),
.gallery-grid .reveal:nth-child(2) { transition-delay: 0.12s; }
.services-grid .reveal:nth-child(3),
.shop-grid .reveal:nth-child(3),
.why-grid .reveal:nth-child(3),
.gallery-grid .reveal:nth-child(3) { transition-delay: 0.24s; }
.shop-grid .reveal:nth-child(4),
.gallery-grid .reveal:nth-child(4) { transition-delay: 0.36s; }
.shop-grid .reveal:nth-child(5) { transition-delay: 0.48s; }

/* ── Section separator line (animated) ── */
.section-divider {
  display: block;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  height: 1px;
  position: relative;
  overflow: hidden;
}
.section-divider::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--line-strong) 20%,
    var(--brand) 50%,
    var(--line-strong) 80%,
    transparent 100%
  );
  transform: scaleX(0);
  transition: transform 1.2s var(--ease-out);
}
.section-divider.active::after {
  transform: scaleX(1);
}

/* ── Section heading reveal with accent underline ── */
.section-head .section-title .accent {
  position: relative;
}
.section-head .section-title .accent::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
  transition: width 0.8s 0.4s var(--ease-out);
}
.section-head.reveal.active .section-title .accent::after {
  width: 100%;
}

/* ============================================================
   SPLASH
   ============================================================ */
#splash-screen {
  position: fixed;
  inset: 0;
  z-index: var(--z-splash);
  background: radial-gradient(circle at 50% 45%, #0e1410, var(--bg-deep) 70%);
  display: grid;
  place-items: center;
  transition: opacity 0.7s var(--ease), visibility 0.7s var(--ease);
}
#splash-screen.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.splash-stage { position: relative; display: grid; place-items: center; }
.splash-logo {
  max-width: 230px;
  width: 70vw;
  position: relative;
  z-index: 1;
  animation: splashPulse 1.6s infinite alternate var(--ease);
  filter: drop-shadow(0 0 30px rgba(161, 209, 67, 0.3));
}
.splash-beam {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(161, 209, 67, 0.35), transparent 60%);
  animation: beamSweep 2s infinite var(--ease);
}
@keyframes splashPulse {
  0% { transform: scale(0.96); opacity: 0.85; }
  100% { transform: scale(1.04); opacity: 1; }
}
@keyframes beamSweep {
  0%, 100% { transform: scale(0.8); opacity: 0.4; }
  50% { transform: scale(1.15); opacity: 0.9; }
}

/* ============================================================
   RESPONSIVE — desktop nav
   ============================================================ */
@media (min-width: 900px) {
  .hamburger { display: none; }
  .nav-links { display: flex; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; translate: none !important; scale: none !important; transform: none !important; filter: none !important; animation: none !important; }
  .reveal.from-left, .reveal.from-right, .reveal.from-below, .reveal.scale-in { opacity: 1 !important; translate: none !important; scale: none !important; filter: none !important; }
  .section-divider::after { transform: scaleX(1) !important; }
  .service-media { transform: none !important; }
  .morphing-text-container { filter: none !important; height: auto !important; }
  .morphing-text-container span { position: relative !important; opacity: 1 !important; filter: none !important; }
  .morphing-text-container .morph-text-2 { display: none !important; }
  .typewriter-cursor { display: none !important; }
}

/* ── Morphing Text (Liquid Effect) ── */
.morphing-text-container {
  position: relative;
  display: block;
  width: 100%;
  height: clamp(6.2rem, 15vw, 12.5rem);
  filter: url(#threshold) blur(0.6px);
  overflow: visible;
}

.morphing-text-container span {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  margin: auto;
  display: inline-block;
  width: 100%;
  line-height: 1.1;
  user-select: none;
  pointer-events: none;
  will-change: filter, opacity;
}

.morph-text-1 {
  opacity: 1;
}

.morph-text-2 {
  opacity: 0;
}

/* ── Typewriter Text Effect ── */
.typewriter-cursor {
  display: inline-block;
  margin-right: 0.12em;
  color: var(--brand);
  font-weight: 300;
  animation: cursorBlink 0.9s infinite steps(2, start);
  will-change: opacity;
}

@keyframes cursorBlink {
  to { opacity: 0; }
}

/* ============================================================
   POURQUOI NOUS — Image + Bilingual Block
   ============================================================ */

/* ── Scroll-to-scale atelier image (image-based "video scroll hero") ──
   The atelier photo starts small and grows to full size as it is pinned and
   the page scrolls through its runway. Scale is driven from main.js (rAF).
   Disabled under reduced-motion (image renders at full size, static). */
.whyus-scroll-hero {
  position: relative;
  height: 180vh;                 /* scroll runway that drives the scale */
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.whyus-scroll-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.whyus-scroll-media {
  position: relative;
  width: min(92%, 1040px);
  height: min(60vh, 600px);
  margin: 0;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--glow);
  border: 1px solid var(--line-strong);
  transform: scale(var(--scroll-scale, 1));
  transform-origin: center center;
  will-change: transform;
}
.whyus-scroll-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.whyus-scroll-overlay {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: clamp(1.1rem, 3vw, 2rem);
  background: linear-gradient(to top, rgba(6, 9, 7, 0.78), rgba(6, 9, 7, 0.15) 70%, transparent);
}
.whyus-scroll-kicker {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.3rem, 3.6vw, 2.2rem);
  color: #fff;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.7);
}
.whyus-scroll-caption {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: var(--fs-sm);
  color: var(--brand-bright);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}
@media (prefers-reduced-motion: reduce) {
  .whyus-scroll-hero { height: auto; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
  .whyus-scroll-sticky { position: static; height: auto; padding: 0; }
  .whyus-scroll-media { transform: none !important; height: clamp(280px, 45vh, 460px); }
}
/* Mobile: start the photo larger, anchor it to the bottom of the stage and use
   a short runway so that once it reaches full size it sits directly above the
   text — no black band between the image and the "À Propos" card. */
@media (max-width: 719px) {
  .whyus-scroll-hero {
    height: 130vh;
    margin-bottom: clamp(1rem, 4vw, 2rem);
  }
  .whyus-scroll-sticky {
    height: 100vh;
    align-items: flex-end;
    padding-bottom: clamp(0.6rem, 2.5vw, 1.2rem);
  }
  .whyus-scroll-media {
    width: min(94%, 560px);
    height: min(84vh, 720px);
    transform-origin: center bottom;   /* grow upward from the bottom anchor */
  }
}

/* Outer card: image left | text right */
.whyus-apropos {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  background: var(--card-glass);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
}
@media (min-width: 800px) {
  .whyus-apropos { grid-template-columns: 420px 1fr; }
}

/* Text-only variant (the atelier photo now lives in the scroll hero above).
   Single column on mobile; FR | AR side-by-side on desktop for balance.
   Higher specificity than the base rule, so it overrides the 420px image column. */
.whyus-apropos--text-only { grid-template-columns: 1fr; }
@media (min-width: 800px) {
  .whyus-apropos--text-only .whyus-apropos-text {
    flex-direction: row;
    align-items: stretch;
    gap: clamp(1.6rem, 4vw, 3.2rem);
  }
  .whyus-apropos--text-only .whyus-lang-block { flex: 1 1 0; min-width: 0; }
  .whyus-apropos--text-only .whyus-divider {
    width: 1px;
    height: auto;
    margin: 0;
    align-self: stretch;
  }
}

/* ── Image column ── */
.whyus-apropos-img-wrap {
  position: relative;
  min-height: 300px;
  overflow: hidden;
}
.whyus-apropos-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s var(--ease);
}
.whyus-apropos-img-wrap:hover .whyus-apropos-img { transform: scale(1.04); }

/* ── Text column ── */
.whyus-apropos-text {
  display: flex;
  flex-direction: column;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  gap: 0;
}

/* Divider between FR and AR blocks */
.whyus-divider {
  height: 1px;
  background: var(--line-strong);
  margin: 1.6rem 0;
  border-radius: 1px;
}

/* ── Each language block ── */
.whyus-lang-block {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.whyus-lang-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-deep);
  margin-bottom: 0.2rem;
}

.whyus-lang-block h3 {
  font-size: clamp(1.1rem, 2.5vw, 1.45rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 0.4rem;
}
.whyus-lang-block h3 .accent { color: var(--brand-deep); }

.whyus-lang-block p {
  color: var(--text-soft);
  font-size: var(--fs-sm);
  line-height: 1.72;
  margin-bottom: 0.8rem;
}
.whyus-lang-block strong { color: var(--text); font-weight: 600; }

/* Feature checklist */
.whyus-feat-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
}
.whyus-feat-list li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: var(--fs-sm);
  color: var(--text-soft);
  font-weight: 500;
  line-height: 1.5;
}
.feat-icon { font-size: 0.9rem; flex-shrink: 0; line-height: 1; }

/* ── Arabic RTL ── */
.whyus-lang-ar {
  font-family: var(--font-arabic);
}
.whyus-lang-ar h3,
.whyus-lang-ar p {
  text-align: right;
  direction: rtl;
}
.whyus-lang-ar .whyus-lang-tag {
  flex-direction: row-reverse;
  align-self: flex-end;
}
.whyus-lang-ar .whyus-feat-list li {
  flex-direction: row-reverse;
  text-align: right;
}

