/* =========================================================
   FRAIM POWER — styles.css
   Direction visuelle inspirée de etkapower.com :
   vert profond, bandeau noir, accent jaune (éclair du logo)
   ========================================================= */

:root{
  --green-900:#035470;   /* bleu pétrole foncé (st3) — remplace l'ex vert-900 */
  --green-800:#036D8C;   /* bleu pétrole (st0) */
  --green-700:#0a7fa0;   /* bleu pétrole clair, pour hovers */
  --green-600:#399345;   /* vert socle du logo, accents secondaires */
  --black:#231F20;       /* noir du logo */
  --yellow:#F26C21;      /* orange vif (st2) — remplace l'accent jaune */
  --yellow-dark:#E46025; /* orange profond (st1) */
  --cream:#f7f6f2;
  --gray-50:#f5f6f6;
  --gray-100:#eceeee;
  --gray-300:#cfd3d3;
  --gray-500:#788183;
  --gray-700:#454b4c;
  --text:#1c2022;
  --radius:10px;
  --shadow-sm:0 2px 8px rgba(3,84,112,.08);
  --shadow-md:0 8px 28px rgba(3,84,112,.16);
  --container:1180px;
  --serif:'Source Serif 4','Georgia',serif;
  --sans:'Inter','Segoe UI',Tahoma,sans-serif;
  --arabic:'Cairo','Tahoma',sans-serif;
}

*,*::before,*::after{box-sizing:border-box;}
html{scroll-behavior:smooth;overflow-x:clip;}
body{
  margin:0;
  font-family:var(--sans);
  color:var(--text);
  background:#fff;
  -webkit-font-smoothing:antialiased;
}
html[dir="rtl"] body{font-family:var(--arabic);}

img{max-width:100%;display:block;}
a{color:inherit;text-decoration:none;}
ul{list-style:none;margin:0;padding:0;}
button{font-family:inherit;cursor:pointer;}
h1,h2,h3,h4{margin:0;font-family:var(--serif);font-weight:700;line-height:1.15;}
html[dir="rtl"] h1,html[dir="rtl"] h2,html[dir="rtl"] h3,html[dir="rtl"] h4{font-family:var(--arabic);}
p{margin:0;line-height:1.65;}

.container{max-width:var(--container);margin:0 auto;padding:0 24px;}
.section{padding:88px 0;}
.section-tight{padding:56px 0;}
.eyebrow{
  display:inline-flex;align-items:center;gap:8px;
  font-size:.78rem;letter-spacing:.14em;text-transform:uppercase;
  color:var(--green-700);font-weight:700;margin-bottom:14px;
}
.eyebrow::before{
  content:"";width:26px;height:2px;background:var(--yellow);display:inline-block;
}
html[dir="rtl"] .eyebrow::before{order:2;}
.section-head{max-width:680px;margin-bottom:48px;}
.section-head h2{font-size:clamp(1.7rem,3vw,2.4rem);color:var(--green-900);}
.section-head p{margin-top:14px;color:var(--gray-700);font-size:1.05rem;}
.section-head.center{margin-left:auto;margin-right:auto;text-align:center;}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  padding:14px 28px;border-radius:6px;font-weight:700;font-size:.95rem;
  border:2px solid transparent;transition:.2s ease;white-space:nowrap;
}
html[dir="rtl"] .btn{
  font-family:var(--arabic);
  letter-spacing:0;
}
html[dir="rtl"] .btn svg{
  transform:scaleX(-1);
}
.btn-primary{background:var(--yellow);color:var(--green-900);border-color:var(--yellow);}
.btn-primary:hover{background:var(--yellow-dark);border-color:var(--yellow-dark);transform:translateY(-1px);}
.btn-outline{background:transparent;color:var(--green-900);border-color:var(--green-900);}
.btn-outline:hover{background:var(--green-900);color:#fff;}
.btn-ghost-white{background:transparent;color:#fff;border-color:rgba(255,255,255,.6);}
.btn-ghost-white:hover{background:#fff;color:var(--green-900);}
.btn-sm{padding:10px 18px;font-size:.85rem;}

/* ---------- Top bar ---------- */
.topbar{
  background:var(--black);color:#cfd2cd;font-size:.82rem;
  position:sticky;top:0;z-index:100;
  height:40px;
  transition:transform .3s ease,opacity .3s ease;
}
.topbar .container{display:flex;align-items:center;justify-content:space-between;height:100%;gap:16px;flex-wrap:wrap;padding:0 24px;}
.topbar-info{display:flex;gap:22px;flex-wrap:wrap;}
.topbar-info a{display:inline-flex;align-items:center;gap:7px;color:#cfd2cd;}
.topbar-info a:hover{color:var(--yellow);}
.topbar-info svg{width:14px;height:14px;flex:none;}
html[dir="rtl"] .topbar-info{
  direction:rtl;
}
html[dir="rtl"] .topbar-info a,
html[dir="rtl"] .topbar-info span{
  font-family:var(--arabic);
  flex-direction:row-reverse;
}
.lang-switch{display:flex;gap:2px;background:rgba(255,255,255,.07);padding:3px;border-radius:6px;}
.lang-switch button{
  background:transparent;border:none;color:#b9bcb6;padding:5px 11px;border-radius:4px;
  font-size:.78rem;font-weight:700;letter-spacing:.03em;
}
.lang-switch button.active{background:var(--yellow);color:var(--green-900);}
.lang-switch button:not(.active):hover{color:#fff;}

/* ---------- Header ---------- */
.site-header{
  position:sticky;top:40px;z-index:90;background:#fff;
  box-shadow:0 1px 0 rgba(0,0,0,.06);
}
.header-inner{display:flex;align-items:center;justify-content:space-between;padding:14px 0;gap:24px;}
.logo-link{flex:none;display:flex;align-items:center;}
.logo-link img{height:54px;width:auto;}
/* Desktop navigation - only show above mobile breakpoint */
@media(min-width:761px){
  .main-nav{display:flex;align-items:center;gap:8px;position:relative;}
  .main-nav a{
    padding:10px 16px;font-weight:600;font-size:.95rem;color:var(--text);
    border-radius:6px;transition:.15s;
  }
  .main-nav a:hover{color:var(--green-700);background:var(--gray-50);}
  
  /* Desktop RTL navigation */
  html[dir="rtl"] .main-nav a{
    font-family:var(--arabic);
    letter-spacing:0;
    padding:10px 18px;
  }
}
.header-cta{display:flex;align-items:center;gap:14px;}
html[dir="rtl"] .header-cta .btn{
  font-family:var(--arabic);
  letter-spacing:0;
}
.burger{display:none;background:none;border:none;padding:8px;}
.burger span{display:block;width:24px;height:2px;background:var(--text);margin:5px 0;}

/* ---------- Mega menu (STUNNING PRO - Full width) ---------- */
.nav-item{position:relative;}
.mega-menu{
  position:fixed;top:122px;left:0;right:0;
  transform:translateY(-10px);
  width:100%;
  background:rgba(255,255,255,.72);
  border-bottom:1px solid rgba(3,84,112,.1);
  box-shadow:
    0 50px 100px rgba(3,30,40,.28),
    0 16px 40px rgba(3,30,40,.12),
    inset 0 1px 0 rgba(255,255,255,.9);
  -webkit-backdrop-filter:blur(40px) saturate(1.8);
          backdrop-filter:blur(40px) saturate(1.8);
  opacity:0;visibility:hidden;pointer-events:none;
  transition:opacity .32s ease,transform .4s cubic-bezier(.4,0,.2,1),visibility .32s;
  z-index:89;
  overflow:hidden;
  border-radius:0;
  border-left:0;
  border-right:0;
  border-top:0;
}
.nav-item:hover .mega-menu,
.mega-menu.open{
  opacity:1;visibility:visible;pointer-events:auto;
  transform:translateY(0);
}
.mega-menu-bg{
  position:absolute;inset:0;overflow:hidden;
  display:grid;grid-template-columns:repeat(4,1fr);grid-template-rows:1fr;gap:0;
  z-index:0;
}
.bg-blur{
  background-size:cover;background-position:center;
  filter:blur(50px) saturate(1.4) brightness(.75);
  opacity:.25;
  transform:scale(1.3);
  transition:opacity .4s ease,transform .8s ease,filter .4s ease;
}
.nav-item:hover .bg-blur{opacity:.32;filter:blur(45px) saturate(1.5) brightness(.8);}
.bg-overlay{
  position:absolute;inset:0;
  background:
    linear-gradient(180deg,rgba(255,255,255,.25) 0%,rgba(255,255,255,.05) 40%,rgba(255,255,255,.15) 100%),
    radial-gradient(circle at 20% 0%,rgba(242,108,33,.08),transparent 50%),
    radial-gradient(circle at 80% 100%,rgba(3,109,140,.1),transparent 50%);
  pointer-events:none;
}
.mega-menu-inner{
  position:relative;z-index:2;
  padding:26px 24px 30px;
  max-width:var(--container);
  margin:0 auto;
}
.mega-header{
  display:flex;align-items:flex-end;justify-content:space-between;gap:20px;
  padding:0 4px 18px;
  border-bottom:1px solid rgba(3,84,112,.1);
  margin-bottom:20px;
}
.mega-header-title{display:flex;flex-direction:column;gap:4px;}
.mega-kicker{
  display:inline-flex;align-items:center;gap:8px;
  font-size:.68rem;font-weight:700;letter-spacing:.18em;text-transform:uppercase;
  color:var(--yellow-dark);
}
.mega-kicker::before{
  content:"";width:18px;height:1.5px;background:var(--yellow);
}
.mega-header h3{
  color:var(--green-900);font-family:var(--serif);
  font-size:1.5rem;font-weight:700;margin:0;
  letter-spacing:-.01em;line-height:1.1;
}
.mega-header .mega-all{
  color:var(--green-700);font-size:.8rem;font-weight:700;
  text-decoration:none;display:inline-flex;align-items:center;gap:6px;
  padding:9px 16px;border-radius:30px;
  background:rgba(255,255,255,.6);
  border:1px solid rgba(3,84,112,.12);
  transition:all .25s ease;
  flex:none;
}
.mega-header .mega-all:hover{
  background:var(--green-900);color:#fff;border-color:var(--green-900);
  transform:translateX(2px);
}
.mega-header .mega-all svg{width:13px;height:13px;transition:transform .2s;}
.mega-header .mega-all:hover svg{transform:translateX(3px);}
html[dir="rtl"] .mega-header .mega-all svg{transform:scaleX(-1);}
html[dir="rtl"] .mega-header .mega-all:hover svg{transform:scaleX(-1) translateX(3px);}
.mega-grid{
  display:grid;grid-template-columns:repeat(4,1fr);gap:14px;
}
.mega-item{
  position:relative;display:flex;flex-direction:column;
  padding:0;border-radius:18px;overflow:hidden;text-decoration:none;
  background:rgba(255,255,255,.6);
  border:1px solid rgba(255,255,255,.7);
  box-shadow:0 6px 18px rgba(3,30,40,.08),inset 0 1px 0 rgba(255,255,255,.6);
  -webkit-backdrop-filter:blur(10px);
          backdrop-filter:blur(10px);
  transition:transform .35s cubic-bezier(.4,0,.2,1),box-shadow .35s ease,background .25s ease,border-color .25s ease;
  cursor:pointer;
}
.mega-item::before{
  content:"";position:absolute;inset:0;border-radius:18px;
  background:linear-gradient(135deg,rgba(255,255,255,.4) 0%,rgba(255,255,255,0) 50%);
  pointer-events:none;z-index:1;opacity:.8;
}
.mega-item-bg{
  position:absolute;inset:0;border-radius:18px;
  background-image:var(--bg-img);
  background-size:cover;background-position:center;
  filter:blur(30px) saturate(1.4) brightness(.85);
  opacity:0;pointer-events:none;
  transition:opacity .35s ease;
  z-index:0;
}
.mega-item:hover .mega-item-bg{opacity:.35;}
.mega-item:hover{
  transform:translateY(-8px);
  background:rgba(255,255,255,.92);
  box-shadow:0 24px 48px rgba(3,30,40,.2),0 8px 16px rgba(3,30,40,.08);
}
.mega-item[data-color="orange"]:hover{border-color:rgba(242,108,33,.4);box-shadow:0 24px 48px rgba(242,108,33,.2),0 8px 16px rgba(242,108,33,.08);}
.mega-item[data-color="blue"]:hover{border-color:rgba(5,160,205,.4);box-shadow:0 24px 48px rgba(5,160,205,.2),0 8px 16px rgba(5,160,205,.08);}
.mega-item[data-color="green"]:hover{border-color:rgba(34,197,94,.4);box-shadow:0 24px 48px rgba(34,197,94,.2),0 8px 16px rgba(34,197,94,.08);}
.mega-item[data-color="red"]:hover{border-color:rgba(239,68,68,.4);box-shadow:0 24px 48px rgba(239,68,68,.2),0 8px 16px rgba(239,68,68,.08);}

.mega-photo{
  position:relative;width:100%;aspect-ratio:4/3;overflow:hidden;
  background:linear-gradient(145deg,var(--green-900),var(--green-800));
  display:flex;align-items:center;justify-content:center;
  z-index:2;
}
.mega-photo::before{
  content:"";position:absolute;inset:0;
  background:
    radial-gradient(circle at 30% 30%,rgba(255,255,255,.15) 0%,transparent 50%),
    linear-gradient(180deg,rgba(0,0,0,0) 50%,rgba(0,0,35,.25) 100%);
  pointer-events:none;z-index:2;
}
.mega-photo-glow{
  position:absolute;width:140%;height:140%;top:-20%;left:-20%;
  filter:blur(40px);opacity:0;transition:opacity .4s ease;pointer-events:none;
}
.mega-item[data-color="orange"] .mega-photo-glow{background:radial-gradient(circle,rgba(242,108,33,.5),transparent 60%);}
.mega-item[data-color="blue"] .mega-photo-glow{background:radial-gradient(circle,rgba(5,160,205,.5),transparent 60%);}
.mega-item[data-color="green"] .mega-photo-glow{background:radial-gradient(circle,rgba(34,197,94,.5),transparent 60%);}
.mega-item[data-color="red"] .mega-photo-glow{background:radial-gradient(circle,rgba(239,68,68,.5),transparent 60%);}
.mega-item:hover .mega-photo-glow{opacity:.7;}

.mega-photo img{
  width:76%;height:76%;object-fit:contain;
  filter:drop-shadow(0 8px 20px rgba(0,0,0,.4));
  transition:transform .45s cubic-bezier(.4,0,.2,1),filter .35s ease;
  position:relative;z-index:1;
}
.mega-item:hover .mega-photo img{
  transform:scale(1.1) translateY(-3px);
  filter:drop-shadow(0 14px 28px rgba(0,0,0,.5));
}

.mega-badge{
  position:absolute;top:10px;inset-inline-start:10px;z-index:3;
  font-size:.62rem;font-weight:800;text-transform:uppercase;letter-spacing:.08em;
  padding:4px 10px;border-radius:5px;
  color:#fff;
  background:rgba(3,84,112,.9);
  backdrop-filter:blur(8px);
  box-shadow:0 4px 10px rgba(0,0,0,.2);
}
.mega-item[data-color="orange"] .mega-badge{background:rgba(242,108,33,.95);}
.mega-item[data-color="blue"] .mega-badge{background:rgba(5,160,205,.95);}
.mega-item[data-color="green"] .mega-badge{background:rgba(34,197,94,.95);}
.mega-item[data-color="red"] .mega-badge{background:rgba(239,68,68,.95);}

.mega-info{
  display:flex;align-items:center;justify-content:space-between;gap:8px;
  padding:14px 16px 15px;
  position:relative;z-index:2;
  background:linear-gradient(180deg,rgba(255,255,255,.4) 0%,rgba(255,255,255,.7) 100%);
}
.mega-item .mega-title{
  font-size:.95rem;font-weight:700;color:var(--green-900);
  font-family:var(--serif);
  line-height:1.2;
  transition:color .25s;
}
.mega-item[data-color="orange"]:hover .mega-title{color:#d96a1f;}
.mega-item[data-color="blue"]:hover .mega-title{color:#0590c2;}
.mega-item[data-color="green"]:hover .mega-title{color:#16a34a;}
.mega-item[data-color="red"]:hover .mega-title{color:#dc2626;}

.mega-item .mega-arrow{
  display:inline-flex;align-items:center;justify-content:center;
  width:28px;height:28px;border-radius:50%;
  background:rgba(3,84,112,.08);
  color:var(--green-700);
  opacity:.6;transform:translateX(0);
  transition:opacity .25s ease,transform .3s ease,background .25s ease,color .2s;
  flex:none;
}
.mega-item .mega-arrow svg{width:13px;height:13px;transition:transform .2s;}
.mega-item:hover .mega-arrow{opacity:1;transform:translateX(3px);}
html[dir="rtl"] .mega-item:hover .mega-arrow{transform:translateX(-3px);}
html[dir="rtl"] .mega-item .mega-arrow svg{transform:scaleX(-1);}
.mega-item[data-color="orange"]:hover .mega-arrow{background:#d96a1f;color:#fff;}
.mega-item[data-color="blue"]:hover .mega-arrow{background:#0590c2;color:#fff;}
.mega-item[data-color="green"]:hover .mega-arrow{background:#16a34a;color:#fff;}
.mega-item[data-color="red"]:hover .mega-arrow{background:#dc2626;color:#fff;}

.nav-item:hover .mega-grid > *:nth-child(1){transition-delay:.04s;}
.nav-item:hover .mega-grid > *:nth-child(2){transition-delay:.08s;}
.nav-item:hover .mega-grid > *:nth-child(3){transition-delay:.12s;}
.nav-item:hover .mega-grid > *:nth-child(4){transition-delay:.16s;}

@media(max-width:1024px){
  .mega-menu-inner{padding:22px 20px 24px;}
  .mega-grid{grid-template-columns:repeat(2,1fr);gap:12px;}
}
@media(max-width:760px){
  .mega-menu{display:none !important;}
  .nav-item{width:100%;}
}
@media(max-width:480px){
  .mega-menu-inner{padding:18px 16px;}
  .mega-grid{grid-template-columns:repeat(2,1fr);gap:8px;}
  .mega-item .mega-title{font-size:.82rem;}
  .mega-info{padding:10px 12px;}
  .mega-header h3{font-size:1.2rem;}
}

/* ---------- Hero ---------- */
.hero{
  position:relative;overflow:hidden;
  background:linear-gradient(135deg,var(--green-900) 0%,var(--green-800) 55%,var(--green-700) 100%);
  color:#fff;
}
.hero::before{
  content:"";position:absolute;inset:0;z-index:0;
  background-image:
    repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 2px, transparent 2px 26px);
  pointer-events:none;
}
.hero-grid-bg{
  position:absolute;inset:0;z-index:0;opacity:.5;pointer-events:none;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size:44px 44px;
  -webkit-mask-image:radial-gradient(760px 460px at 30% 50%, #000, transparent 78%);
          mask-image:radial-gradient(760px 460px at 30% 50%, #000, transparent 78%);
}
.hero-glow{position:absolute;border-radius:50%;filter:blur(80px);z-index:0;pointer-events:none;}
.hero-glow-1{width:460px;height:460px;top:-140px;inset-inline-start:-100px;background:rgba(242,108,33,.30);}
.hero-glow-2{width:400px;height:400px;bottom:-180px;inset-inline-end:5%;background:rgba(5,160,205,.5);}
.hero-bolt{
  position:absolute;top:-40px;right:-60px;width:420px;height:420px;opacity:.7;
  transform:rotate(8deg);pointer-events:none;z-index:0;color:rgba(255,255,255,.06);
  animation:hero-bolt-flicker 5s ease-in-out infinite;
}
.hero-bolt svg{width:100%;height:100%;}
@keyframes hero-bolt-flicker{0%,100%{opacity:.05;}50%{opacity:.11;}}
html[dir="rtl"] .hero-bolt{right:auto;left:-60px;transform:rotate(-8deg) scaleX(-1);}
.hero-inner{position:relative;padding:110px 0 120px;display:grid;grid-template-columns:1.1fr .9fr;gap:48px;align-items:center;}
.hero-eyebrow{
  display:inline-flex;align-items:center;gap:10px;background:rgba(255,255,255,.1);
  border:1px solid rgba(255,255,255,.18);padding:7px 16px;border-radius:30px;
  font-size:.78rem;letter-spacing:.1em;text-transform:uppercase;font-weight:700;color:var(--yellow);
  margin-bottom:22px;
}
.hero h1{font-size:clamp(2.1rem,4.2vw,3.4rem);color:#fff;margin-bottom:20px;text-shadow:0 2px 22px rgba(0,0,0,.3);}
.hero h1 em{font-style:normal;color:var(--yellow);}
.hero p.lead{font-size:1.12rem;color:rgba(255,255,255,.85);max-width:560px;margin-bottom:34px;}
.hero-actions{display:flex;gap:14px;flex-wrap:wrap;margin-bottom:46px;}
.hero-stats{display:flex;gap:38px;flex-wrap:wrap;}
.hero-stats div{border-inline-start:2px solid var(--yellow);padding-inline-start:14px;}
.hero-stats strong{display:block;font-family:var(--serif);font-size:1.9rem;color:#fff;}
html[dir="rtl"] .hero-stats strong{font-family:var(--arabic);}
.hero-stats span{font-size:.82rem;color:rgba(255,255,255,.65);}

/* floating showcase */
.hero-visual{position:relative;z-index:1;}
.hero-showcase{position:relative;display:flex;align-items:center;justify-content:center;height:420px;}

.hero-slides{position:absolute;inset:0;}
.hero-slide{
  position:absolute;inset:0;display:flex;align-items:center;justify-content:center;
  opacity:0;visibility:hidden;transform:translateY(24px) scale(.96);
  transition:opacity .65s ease,transform .65s ease,visibility .65s;
  text-decoration:none;color:inherit;
}
.hero-slide.is-active{opacity:1;visibility:visible;transform:none;}
.hero-slide.is-leaving{transition:opacity .45s ease,transform .45s ease;}
.hero-slide.is-leaving{opacity:0;transform:translateY(-18px) scale(.97);}

.hero-frame{
  position:relative;z-index:2;display:flex;align-items:center;justify-content:center;
}
.hero-frame img{max-width:100%;height:auto;}
.hero-chip{
  position:absolute;z-index:3;background:rgba(3,84,112,.94);color:#fff;
  font-size:.74rem;font-weight:800;letter-spacing:.05em;padding:8px 15px;border-radius:7px;
  box-shadow:0 10px 22px rgba(0,0,0,.32);backdrop-filter:blur(4px);
}
.chip-top{top:-18px;inset-inline-start:-16px;background:var(--yellow);color:var(--green-900);}
.chip-right{bottom:40px;inset-inline-end:-26px;}
.chip-left{bottom:-18px;inset-inline-start:-20px;}
.hero-float-card{
  position:absolute;z-index:3;bottom:14px;inset-inline-start:-6px;
  display:flex;align-items:center;gap:10px;background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.22);border-radius:12px;padding:12px 18px;
  backdrop-filter:blur(8px);box-shadow:0 14px 30px rgba(0,0,0,.28);
}
.hero-float-card svg{width:26px;height:26px;color:var(--yellow);}
.hero-float-card span{font-size:.85rem;font-weight:700;color:#fff;}
.hero-float-pill{
  position:absolute;z-index:3;top:6px;inset-inline-end:0;
  background:rgba(242,108,33,.95);color:#fff;font-size:.74rem;font-weight:800;
  letter-spacing:.04em;text-transform:uppercase;padding:8px 15px;border-radius:30px;
  box-shadow:0 12px 26px rgba(0,0,0,.35);transform:rotate(3deg);
}

/* home hero: scoped showcase sizing (parity with product-page hero) */
.hero .hero-visual{height:auto;display:flex;align-items:center;justify-content:center;}
.hero .hero-showcase{height:380px;max-width:460px;width:100%;margin-inline:auto;}

@media(max-width:1024px){
  .hero .hero-showcase{height:340px;}
}
@media(max-width:480px){
  .hero .hero-showcase{height:300px;}
}

/* ---------- Engine / brand strip ---------- */

/* ---------- Products ---------- */
.products-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:24px;}
.product-card{
  border:1px solid var(--gray-100);border-radius:var(--radius);overflow:hidden;
  background:#fff;transition:.25s;display:flex;flex-direction:column;
}
.product-card:hover{box-shadow:var(--shadow-md);transform:translateY(-4px);border-color:transparent;}
.product-media{
  aspect-ratio:4/3;background:linear-gradient(160deg,var(--green-900),var(--green-700));
  display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden;
}
.product-media svg{width:62%;height:62%;color:#fff;}
.product-media::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(0deg,rgba(0,0,0,.18),transparent 50%);
}
.product-tag{
  position:absolute;top:12px;inset-inline-start:12px;background:var(--yellow);color:var(--green-900);
  font-size:.7rem;font-weight:800;text-transform:uppercase;letter-spacing:.05em;
  padding:5px 10px;border-radius:4px;z-index:1;
}
.product-body{padding:22px 20px 24px;display:flex;flex-direction:column;gap:10px;flex:1;}
.product-body h3{font-size:1.18rem;color:var(--green-900);}
.product-body p{color:var(--gray-700);font-size:.92rem;flex:1;}
.product-link{
  display:inline-flex;align-items:center;gap:6px;font-weight:700;font-size:.88rem;
  color:var(--green-700);margin-top:6px;
}
.product-link svg{width:15px;height:15px;transition:.2s;}
html[dir="rtl"] .product-link{
  font-family:var(--arabic);
  flex-direction:row-reverse;
}
html[dir="rtl"] .product-link svg{transform:scaleX(-1);}
.product-card:hover .product-link svg{transform:translateX(4px);}
html[dir="rtl"] .product-card:hover .product-link svg{transform:scaleX(-1) translateX(-4px);}

/* ---------- Services / why us ---------- */
.services-band{background:var(--gray-50);}
.services-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;}
.service-card{
  background:#fff;border-radius:var(--radius);padding:30px 26px;border:1px solid var(--gray-100);
  display:flex;flex-direction:column;gap:14px;
}
.service-icon{
  width:52px;height:52px;border-radius:10px;background:var(--green-900);
  display:flex;align-items:center;justify-content:center;flex:none;
}
.service-icon svg{width:26px;height:26px;color:var(--yellow);}
.service-card h3{font-size:1.1rem;color:var(--green-900);}
.service-card p{color:var(--gray-700);font-size:.92rem;}

/* ---------- About split ---------- */
.about-grid{display:grid;grid-template-columns:.95fr 1.05fr;gap:64px;align-items:center;}
.about-figure{
  position:relative;background:linear-gradient(160deg,var(--green-900),var(--black));
  border-radius:18px;padding:42px;color:#fff;min-height:380px;
  display:flex;flex-direction:column;justify-content:center;gap:26px;overflow:hidden;
}
.about-figure svg.bolt-deco{position:absolute;top:-30px;inset-inline-end:-30px;width:220px;height:220px;color:var(--yellow);opacity:.12;}
.about-figure .stat-row{display:flex;gap:30px;position:relative;flex-wrap:wrap;}
.about-figure .stat strong{display:block;font-family:var(--serif);font-size:2.1rem;color:var(--yellow);}
html[dir="rtl"] .about-figure .stat strong{font-family:var(--arabic);}
.about-figure .stat span{font-size:.82rem;color:rgba(255,255,255,.7);}
.about-text p{color:var(--gray-700);margin-bottom:16px;font-size:1.02rem;}
.about-list{display:grid;gap:14px;margin-top:24px;}
.about-list li{display:flex;align-items:flex-start;gap:12px;font-size:.96rem;color:var(--text);}
.about-list svg{width:20px;height:20px;color:var(--green-700);flex:none;margin-top:2px;}

/* ---------- Process steps ---------- */
.process-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:0;position:relative;}
.process-step{padding:0 22px;position:relative;}
.process-step:not(:first-child)::before{
  content:"";position:absolute;top:26px;inset-inline-start:0;width:100%;height:2px;
  background:var(--gray-300);
}
html[dir="ltr"] .process-step:not(:first-child)::before{inset-inline-start:-50%;width:100%;}
.process-num{
  width:52px;height:52px;border-radius:50%;background:var(--green-900);color:var(--yellow);
  display:flex;align-items:center;justify-content:center;font-family:var(--serif);font-weight:700;
  font-size:1.2rem;position:relative;z-index:1;margin-bottom:18px;
}
.process-step h4{font-size:1.05rem;color:var(--green-900);margin-bottom:8px;}
.process-step p{font-size:.9rem;color:var(--gray-700);}

/* ---------- CTA band ---------- */
.cta-band{
  background:linear-gradient(120deg,var(--green-900),var(--green-700));color:#fff;
  border-radius:18px;padding:54px 56px;display:flex;align-items:center;justify-content:space-between;gap:32px;flex-wrap:wrap;
  position:relative;overflow:hidden;
}
.cta-band::before{
  content:"";position:absolute;inset:0;
  background:radial-gradient(circle at 85% 20%, rgba(247,198,36,.18), transparent 55%);
}
.cta-band h2{color:#fff;font-size:clamp(1.5rem,2.6vw,2rem);position:relative;}
.cta-band p{color:rgba(255,255,255,.78);margin-top:10px;max-width:480px;position:relative;}
.cta-band .actions{display:flex;gap:14px;flex-wrap:wrap;position:relative;}

/* ---------- Contact ---------- */
.contact-grid{display:grid;grid-template-columns:.85fr 1.15fr;gap:56px;}
.contact-info-card{
  background:var(--gray-50);border-radius:var(--radius);padding:32px;display:flex;flex-direction:column;gap:24px;
}
.contact-row{display:flex;gap:16px;align-items:flex-start;}
.contact-row .ic{
  width:42px;height:42px;border-radius:8px;background:var(--green-900);display:flex;align-items:center;justify-content:center;flex:none;
}
.contact-row .ic svg{width:20px;height:20px;color:var(--yellow);}
.contact-row h4{font-size:.95rem;color:var(--green-900);margin-bottom:4px;}
.contact-row p, .contact-row a{font-size:.92rem;color:var(--gray-700);display:block;}
.contact-row a:hover{color:var(--green-700);}
.map-embed{border-radius:var(--radius);overflow:hidden;border:1px solid var(--gray-100);margin-top:6px;}
.map-embed iframe{width:100%;height:200px;border:0;display:block;}

.form-card{background:#fff;border:1px solid var(--gray-100);border-radius:var(--radius);padding:34px;box-shadow:var(--shadow-sm);}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-bottom:18px;}
.field{display:flex;flex-direction:column;gap:7px;}
.field.full{grid-column:1/-1;}
.field label{font-size:.85rem;font-weight:700;color:var(--text);}
.field input,.field select,.field textarea{
  border:1.5px solid var(--gray-300);border-radius:7px;padding:12px 14px;font-family:inherit;
  font-size:.92rem;color:var(--text);background:#fff;
}
.field input:focus,.field select:focus,.field textarea:focus{
  outline:none;border-color:var(--green-700);
}
.field textarea{resize:vertical;min-height:110px;}
.form-note{font-size:.78rem;color:var(--gray-500);margin-top:6px;}

/* ---------- Footer ---------- */
.site-footer{background:var(--green-900);color:rgba(255,255,255,.78);}
.footer-top{padding:64px 0 44px;display:grid;grid-template-columns:1.3fr 1fr 1fr 1.1fr;gap:40px;}
.footer-logo img{height:46px;margin-bottom:18px;}
.footer-top p{font-size:.9rem;color:rgba(255,255,255,.6);max-width:280px;}
.footer-col h5{color:#fff;font-size:.92rem;letter-spacing:.05em;text-transform:uppercase;margin-bottom:18px;}
.footer-col ul{display:flex;flex-direction:column;gap:11px;}
.footer-col a{font-size:.9rem;color:rgba(255,255,255,.68);}
.footer-col a:hover{color:var(--yellow);}
.footer-social{display:flex;gap:10px;margin-top:18px;}
.footer-social a{
  width:38px;height:38px;border-radius:8px;background:rgba(255,255,255,.08);
  display:flex;align-items:center;justify-content:center;
}
.footer-social a:hover{background:var(--yellow);color:var(--green-900);}
.footer-social svg{width:17px;height:17px;}
.footer-bottom{
  border-top:1px solid rgba(255,255,255,.12);padding:20px 0;
  display:flex;justify-content:space-between;align-items:center;font-size:.82rem;color:rgba(255,255,255,.55);flex-wrap:wrap;gap:10px;
}

/* ---------- Page hero (sous-pages) ---------- */
.page-hero{
  background:radial-gradient(1100px 600px at 85% -20%, var(--green-600), transparent 60%),
             linear-gradient(135deg,#02394d 0%, var(--green-900) 45%, var(--green-800) 100%);
  color:#fff;padding:72px 0 80px;position:relative;overflow:hidden;
}
.page-hero h1{
  color:#fff;font-size:clamp(2rem,4vw,3.1rem);line-height:1.08;max-width:640px;
  margin-top:16px;text-shadow:0 2px 18px rgba(0,0,0,.28);
}
.hero-wrap{position:relative;display:grid;grid-template-columns:1.2fr .8fr;gap:40px;align-items:center;}
.hero-text{position:relative;z-index:2;}

/* background layers */
.hero-grid-bg{
  position:absolute;inset:0;opacity:.5;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size:44px 44px;
  -webkit-mask-image:radial-gradient(700px 420px at 30% 40%, #000, transparent 75%);
          mask-image:radial-gradient(700px 420px at 30% 40%, #000, transparent 75%);
}
.hero-glow{position:absolute;border-radius:50%;filter:blur(70px);z-index:0;}
.hero-glow-1{width:420px;height:420px;top:-120px;inset-inline-start:-80px;background:rgba(242,108,33,.32);}
.hero-glow-2{width:360px;height:360px;bottom:-160px;inset-inline-end:8%;background:rgba(3,109,140,.7);}
.hero-bolt{
  position:absolute;bottom:-30px;inset-inline-end:-20px;width:340px;height:340px;opacity:.08;
  color:#fff;z-index:0;animation:hero-bolt-flicker 4s ease-in-out infinite;
}
.hero-bolt svg{width:100%;height:100%;}
@keyframes hero-bolt-flicker{
  0%,100%{opacity:.07;} 50%{opacity:.14;}
}

/* badge + sub */
.hero-badge{
  display:inline-flex;align-items:center;gap:8px;margin-top:18px;
  font-size:.8rem;letter-spacing:.14em;text-transform:uppercase;font-weight:700;
  color:var(--yellow);
}
.hero-badge::before{content:"";width:26px;height:2px;background:var(--yellow);}
.hero-sub{color:rgba(255,255,255,.82);font-size:1.08rem;max-width:520px;margin-top:18px;}

/* stats */
.hero-meta{display:flex;gap:34px;margin-top:34px;flex-wrap:wrap;}
.hero-stat{display:flex;flex-direction:column;gap:2px;}
.hero-stat strong{font-family:var(--serif);font-size:1.7rem;line-height:1;color:#fff;}
html[dir="rtl"] .hero-stat strong{font-family:var(--arabic);}
.hero-stat span{font-size:.8rem;color:rgba(255,255,255,.6);text-transform:uppercase;letter-spacing:.05em;}

/* visual composition */
.hero-visual{position:relative;z-index:1;height:340px;display:flex;align-items:center;justify-content:center;}
.hero-orbit{position:absolute;border:1px solid rgba(255,255,255,.14);border-radius:50%;}
.orbit-1{width:300px;height:300px;animation:orbit-spin 26s linear infinite;}
.orbit-2{width:210px;height:210px;border-style:dashed;animation:orbit-spin 18s linear infinite reverse;}
@keyframes orbit-spin{to{transform:rotate(360deg);}}
.hero-visual-card{
  position:relative;width:250px;height:250px;border-radius:20px;overflow:hidden;
  background:linear-gradient(145deg,#fff,#e8eef1);box-shadow:0 30px 60px rgba(0,0,0,.4);
  transform:rotate(-4deg);display:flex;align-items:center;justify-content:center;z-index:2;
}
.hero-visual-card img{width:100%;height:100%;object-fit:contain;padding:18px;}
.hero-chip{
  position:absolute;z-index:3;background:rgba(3,84,112,.92);color:#fff;
  font-size:.72rem;font-weight:800;letter-spacing:.05em;padding:7px 13px;border-radius:6px;
  box-shadow:0 8px 18px rgba(0,0,0,.28);backdrop-filter:blur(4px);
}
.chip-top{top:-16px;inset-inline-start:-14px;background:var(--yellow);color:var(--green-900);}
.chip-left{bottom:34px;inset-inline-start:-52px;}
.chip-right{bottom:-14px;inset-inline-end:-8px;}

.breadcrumb{display:flex;gap:8px;align-items:center;font-size:.85rem;color:rgba(255,255,255,.65);margin-bottom:16px;}
.breadcrumb a:hover{color:var(--yellow);}
html[dir="rtl"] .breadcrumb{
  font-family:var(--arabic);
  flex-direction:row-reverse;
}
html[dir="rtl"] .breadcrumb span:not(a){
  transform:scaleX(-1);
}

/* product page hero: rotating showcase of all 4 families */
.page-hero .hero-visual{height:auto;display:flex;align-items:center;justify-content:center;}
.page-hero .hero-showcase{height:380px;max-width:460px;width:100%;margin-inline:auto;}
.page-hero .hero-orbit{position:absolute;border:1px solid rgba(255,255,255,.14);border-radius:50%;pointer-events:none;}
.page-hero .orbit-a{width:360px;height:360px;animation:orbit-spin 30s linear infinite;}
.page-hero .orbit-b{width:270px;height:270px;border-style:dashed;animation:orbit-spin 20s linear infinite reverse;}

@media(max-width:900px){
  .hero-wrap{grid-template-columns:1fr;}
  .page-hero{padding:60px 0 64px;}
  .page-hero .hero-showcase{height:340px;}
  .page-hero .orbit-a{width:320px;height:320px;}
  .page-hero .orbit-b{width:235px;height:235px;}
}
@media(max-width:480px){
  .page-hero .hero-showcase{height:300px;}
  .page-hero .orbit-a{width:280px;height:280px;}
  .page-hero .orbit-b{width:205px;height:205px;}
}

/* ---------- Back to top ---------- */
.to-top{
  position:fixed;bottom:26px;inset-inline-end:26px;width:46px;height:46px;border-radius:50%;
  background:var(--green-900);color:var(--yellow);display:flex;align-items:center;justify-content:center;
  box-shadow:var(--shadow-md);border:none;opacity:0;pointer-events:none;transition:.25s;z-index:40;
}
.to-top.show{opacity:1;pointer-events:auto;}
.to-top svg{width:20px;height:20px;}

/* ---------- WhatsApp float ---------- */
.wa-float{
  position:fixed;bottom:26px;inset-inline-start:26px;width:54px;height:54px;border-radius:50%;
  background:#25D366;display:flex;align-items:center;justify-content:center;box-shadow:var(--shadow-md);
  z-index:40;
}
.wa-float svg{width:27px;height:27px;color:#fff;}

/* ---------- Utility reveal ---------- */
[data-reveal]{opacity:0;transform:translateY(18px);animation:fp-fallback-reveal .6s ease .9s forwards;}
[data-reveal].in{opacity:1;transform:none;animation:none;}
@keyframes fp-fallback-reveal{to{opacity:1;transform:none;}}
@media (prefers-reduced-motion: reduce){
  [data-reveal]{opacity:1;transform:none;animation:none;}
}

/* =========================================================
   RESPONSIVE - COMPREHENSIVE MOBILE OPTIMIZATION
   ========================================================= */

/* ===== RTL (Arabic) GLOBAL OPTIMIZATIONS ===== */
html[dir="rtl"]{
  direction:rtl;
}
html[dir="rtl"] body,
html[dir="rtl"] .hero-text,
html[dir="rtl"] .section-head,
html[dir="rtl"] .about-text,
html[dir="rtl"] .service-card,
html[dir="rtl"] .product-body,
html[dir="rtl"] .fam-body,
html[dir="rtl"] .detail-text,
html[dir="rtl"] .process-step,
html[dir="rtl"] .cta-band,
html[dir="rtl"] .contact-row,
html[dir="rtl"] .footer-col,
html[dir="rtl"] .form-card{
  text-align:right;
}
html[dir="rtl"] .section-head.center{
  text-align:center;
}
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] p,
html[dir="rtl"] li,
html[dir="rtl"] span,
html[dir="rtl"] label{
  font-family:var(--arabic);
  letter-spacing:0;
  line-height:1.7;
}
html[dir="rtl"] .eyebrow{
  flex-direction:row-reverse;
}
html[dir="rtl"] .hero-eyebrow{
  flex-direction:row-reverse;
}
html[dir="rtl"] .hero-badge{
  flex-direction:row-reverse;
}
html[dir="rtl"] .fam-points li,
html[dir="rtl"] .about-list li{
  flex-direction:row-reverse;
  text-align:right;
}
html[dir="rtl"] .hero-actions,
html[dir="rtl"] .cta-band .actions{
  flex-direction:row;
}
html[dir="rtl"] .contact-row{
  flex-direction:row-reverse;
}

/* ===== Desktop & Large Tablets (1200px+) ===== */
@media(max-width:1200px){
  .hero-inner{padding:80px 0 90px;}
  .footer-top{grid-template-columns:1.1fr 1fr 1fr 1fr;gap:24px;}
}

/* ===== Tablets (1024px) ===== */
@media(max-width:1024px){
  .hero-inner{grid-template-columns:1fr;padding:64px 0 72px;}
  .hero-showcase{height:360px;max-width:520px;margin-inline:auto;}
  .hero-stats{gap:28px;}
  .about-grid{grid-template-columns:1fr;}
  .products-grid{grid-template-columns:repeat(2,1fr);gap:20px;}
  .services-grid{grid-template-columns:repeat(2,1fr);gap:20px;}
  .process-grid{grid-template-columns:repeat(2,1fr);row-gap:40px;column-gap:24px;}
  .process-step:nth-child(3)::before,.process-step:nth-child(1)::before{display:none;}
  .footer-top{grid-template-columns:1fr 1fr;gap:36px;}
  .contact-grid{grid-template-columns:1fr;gap:36px;}
  .cta-band{padding:44px 40px;}
  .section{padding:72px 0;}
  .section-tight{padding:44px 0;}
  .mega-menu-inner{padding:22px 20px 24px;}
  .mega-grid{grid-template-columns:repeat(2,1fr);gap:12px;}
}

/* ===== Tablets / small laptops (761px - 1024px) =====
   Desktop nav is shown here but the row does not fit: the logo + 5 links +
   CTA exceeded the viewport and pushed the CTA off-screen. Tighten the row
   and drop the secondary CTA (it is repeated in the hero and footer). */
@media(min-width:761px) and (max-width:1024px){
  .header-inner{gap:10px;padding:10px 0;}
  .logo-link img{height:44px;}
  .header-cta{gap:0;}
  .header-cta .btn-sm{display:none;}
  .main-nav{gap:2px;flex-wrap:nowrap;}
  .main-nav a{padding:9px 11px;font-size:.88rem;}
  html[dir="rtl"] .main-nav a{padding:9px 12px;}
}

/* ===== Mobile & Small Tablets (760px) ===== */
@media(max-width:760px){
  /* Container & Spacing - ENHANCED SIDE PADDING WITH LEFT EMPHASIS */
  .container{
    padding:0 22px 0 24px;max-width:100%;
  }
  html[dir="rtl"] .container{
    padding:0 24px 0 22px;
  }
  .section{padding:56px 0;}
  .section-tight{padding:36px 0;}
  
  /* Ensure all content has breathing room */
  body{padding-left:0;padding-right:0;}
  
  /* Add extra left padding to all major content blocks */
  .hero-inner > *:first-child,
  .products-grid,
  .services-grid,
  .about-text,
  .process-grid,
  .contact-grid,
  .footer-top,
  .section-head,
  .about-grid,
  .cta-band > div:first-child{
    padding-left:6px;
  }
  html[dir="rtl"] .hero-inner > *:first-child,
  html[dir="rtl"] .products-grid,
  html[dir="rtl"] .services-grid,
  html[dir="rtl"] .about-text,
  html[dir="rtl"] .process-grid,
  html[dir="rtl"] .contact-grid,
  html[dir="rtl"] .footer-top,
  html[dir="rtl"] .section-head,
  html[dir="rtl"] .about-grid,
  html[dir="rtl"] .cta-band > div:first-child{
    padding-right:6px;
    padding-left:0;
  }
  
  /* Typography */
  .section-head h2{font-size:1.65rem;line-height:1.2;}
  .section-head p{font-size:.98rem;}
  .eyebrow{font-size:.74rem;gap:6px;}
  .eyebrow::before{width:22px;}
  .topbar{
    position:relative;height:auto;min-height:40px;padding:6px 0;
  }
  .topbar .container{
    justify-content:center;text-align:center;padding:8px 16px;
    flex-direction:column;gap:8px;
  }
  .topbar-info{
    flex-direction:row;flex-wrap:wrap;justify-content:center;gap:12px;font-size:.76rem;
  }
  .topbar-info a,
  .topbar-info span{font-size:.76rem;}
  .topbar-info svg{width:12px;height:12px;}
  .topbar-info > *:not(:last-child)::after{
    content:"|";margin-inline-start:12px;opacity:.3;
  }
  .lang-switch{margin-top:4px;scale:.95;}
  .lang-switch button{padding:4px 10px;font-size:.72rem;}
  
  
  
  /* Scroll lock while the drawer is open. Applied to <html> so the scroll
     offset is preserved (no position:fixed reflow of the sticky header). */
  /* Scroll lock is done in JS by cancelling wheel/touchmove, NOT by
     `overflow:hidden`. Hiding overflow on <html> turns it into a scroll
     container, which silently breaks the sticky header: the burger (and the
     close button it becomes) would scroll out of reach while the menu is open. */

  /* Mobile menu backdrop overlay */
  body::after{
    content:"";position:fixed;inset:0;
    background:rgba(3,30,40,.75);
    opacity:0;visibility:hidden;pointer-events:none;
    transition:opacity .35s ease,visibility .35s ease;
    z-index:100;
  }
  body.menu-open::after{
    opacity:1;visibility:visible;pointer-events:auto;
  }
  
  /* Header + topbar on mobile: one sticky stack, so no fixed-header offset
     is needed on body (which used to leave a gap and misalign the drawer). */
  .topbar{position:static;}
  .site-header{
    position:sticky;top:0;z-index:101;
    background:#fff;box-shadow:0 2px 10px rgba(0,0,0,.08);
  }
  body{padding-top:0;}
  body.menu-open{padding-top:0;}
  .header-inner{padding:12px 0;gap:16px;}
  .logo-link img{height:42px;transition:height .2s;}
  .header-cta .btn-sm{display:none;}
  
  /* Mobile Navigation - ENHANCED - GUARANTEED CLICKABLE */
  .burger{
    display:flex;flex-direction:column;justify-content:center;align-items:center;
    gap:0;padding:10px;background:var(--gray-50);border-radius:8px;
    transition:.3s;position:relative;z-index:103;width:44px;height:44px;
    cursor:pointer;
  }
  .burger span{
    display:block;width:22px;height:2.5px;background:var(--green-900);
    transition:all .3s ease;border-radius:2px;margin:2.5px 0;
  }
  .burger.open{background:var(--green-900);opacity:0;visibility:hidden;pointer-events:none;}
  .burger.open span{background:#fff;}
  /* Keep burger as 3 lines - no X transformation */
  
  /* Mobile Navigation Panel - CLEAN STRUCTURE */
  .main-nav{
    position:fixed;
    top:0;
    inset-inline-end:0;
    bottom:0;
    height:100vh;
    width:min(85vw, 340px);
    background:#fff;
    display:flex;
    flex-direction:column;
    align-items:stretch;
    justify-content:flex-start;
    padding:70px 0 0 0;
    margin:0;
    visibility:hidden;
    pointer-events:none;
    transition:transform .35s cubic-bezier(.4,0,.2,1),visibility .35s;
    overflow-y:auto;
    overflow-x:hidden;
    z-index:102;
    -webkit-overflow-scrolling:touch;
    /* Off-canvas drawer. It lives on the same side as the burger (inline-end:
       right in LTR, left in RTL) and is parked fully outside the viewport.
       RTL must slide the opposite way, otherwise a strip stays on screen. */
    transform:translate3d(100%,0,0);
    -webkit-transform:translate3d(100%,0,0);
    box-shadow:-8px 0 32px rgba(0,0,0,.3);
  }
  
  html[dir="rtl"] .main-nav{
    transform:translate3d(-100%,0,0);
    -webkit-transform:translate3d(-100%,0,0);
    box-shadow:8px 0 32px rgba(0,0,0,.3);
  }
  
  .main-nav.open,
  html[dir="rtl"] .main-nav.open{
    transform:translate3d(0,0,0);
    -webkit-transform:translate3d(0,0,0);
    visibility:visible;
    pointer-events:auto;
  }
  
  /* Mobile Nav Header Bar */
  .main-nav::before{
    content:"Menu";
    display:flex;
    align-items:center;
    justify-content:center;
    height:70px;
    width:100%;
    background:var(--green-900);
    color:#fff;
    font-size:1rem;
    font-weight:700;
    letter-spacing:.05em;
    position:absolute;
    top:0;
    left:0;
    right:0;
    z-index:1;
  }
  
  html[dir="rtl"] .main-nav::before{
    content:"القائمة";
    font-family:var(--arabic);
  }
  
  /* Remove any pseudo elements that might block clicks */
  .main-nav::after{
    display:none !important;
  }
  
  /* Direct children of nav - ensure they're clickable */
  .main-nav > a,
  .main-nav > .nav-item{
    position:relative;
    z-index:10;
    margin:0;
    padding:0;
    background:#fff;
  }
  
  /* All navigation links - SIMPLE AND CLICKABLE */
  .main-nav a{
    display:block !important;
    width:100%;
    padding:20px 24px;
    margin:0;
    border:none;
    border-bottom:1px solid var(--gray-100);
    font-size:1.05rem;
    font-weight:600;
    color:var(--text) !important;
    line-height:1.4;
    background:#fff !important;
    text-decoration:none !important;
    cursor:pointer !important;
    position:relative;
    z-index:20;
    -webkit-tap-highlight-color:rgba(242,108,33,.1);
    touch-action:manipulation;
    user-select:none;
    transition:background .15s,color .15s;
    text-align:left;
  }
  
  /* RTL-specific navigation link styling - MOBILE ONLY */
  html[dir="rtl"] .main-nav a{
    text-align:right !important;
    font-family:var(--arabic) !important;
    padding:20px 28px !important;
    letter-spacing:0 !important;
  }
  
  /* Visual indicator removed - no arrow icon in mobile nav */
  
  .main-nav a:active{
    background:var(--gray-200) !important;
    color:var(--green-900) !important;
  }
  
  /* Nav item wrapper - just a container */
  .nav-item{
    width:100%;
    display:block;
    position:relative;
    margin:0;
    padding:0;
    background:#fff;
  }
  
  /* Ensure the link inside nav-item is fully clickable on mobile */
  .nav-item > a{
    pointer-events:auto !important;
    cursor:pointer !important;
    position:relative;
    z-index:999;
  }
  
  /* Remove all nested mega menu elements completely */
  .nav-item > *:not(a){
    display:none !important;
  }
  
  .mega-menu,
  .nav-item .mega-menu,
  .nav-item > div{
    display:none !important;
    visibility:hidden !important;
    opacity:0 !important;
    pointer-events:none !important;
    position:absolute !important;
    z-index:-9999 !important;
  }
  
  /* Hero - MOBILE OPTIMIZED WITH LEFT PADDING */
  .hero{padding-bottom:48px;padding-left:0;padding-right:0;}
  .hero-inner{padding:48px 0 56px;gap:32px;}
  .hero-inner > div:first-child{
    padding-left:6px;
    padding-right:2px;
  }
  html[dir="rtl"] .hero-inner > div:first-child{
    padding-right:6px;
    padding-left:2px;
  }
  .hero h1{font-size:clamp(1.75rem,7vw,2.4rem);line-height:1.15;padding-left:2px;}
  .hero p.lead{font-size:1rem;line-height:1.6;padding-left:2px;}
  .hero-eyebrow{font-size:.72rem;padding:6px 14px;margin-left:2px;}
  .hero-actions{gap:12px;margin-bottom:32px;padding-left:2px;}
  .hero-actions .btn{width:100%;padding:14px 24px;font-size:.95rem;}
  .hero-stats{
    flex-direction:row;gap:20px;width:100%;justify-content:space-between;
    flex-wrap:wrap;padding:0 0 0 2px;
  }
  .hero-stats div{
    border-inline-start:2px solid var(--yellow);padding-inline-start:10px;
    flex:1;min-width:100px;
  }
  .hero-stats strong{font-size:1.7rem;}
  .hero-stats span{font-size:.78rem;}
  
  /* Hero Showcase - MOBILE FRIENDLY */
  .hero-showcase{height:320px;max-width:100%;}
  .hero-slide{padding:0 10px;}
  .hero-frame img{max-width:90%;height:auto;}
  .hero-chip{font-size:.68rem;padding:6px 11px;}
  .chip-top{top:-14px;inset-inline-start:-10px;}
  .chip-right{bottom:30px;inset-inline-end:-18px;}
  .chip-left{bottom:-14px;inset-inline-start:-14px;}
  .hero-float-card{
    bottom:8px;inset-inline-start:50%;transform:translateX(-50%);
    padding:10px 16px;border-radius:10px;
  }
  .hero-float-card svg{width:22px;height:22px;}
  .hero-float-card span{font-size:.8rem;}
  .hero-float-pill{
    top:auto;bottom:4px;inset-inline-end:50%;transform:translateX(50%) rotate(0deg);
    font-size:.68rem;padding:6px 12px;
  }
  
  /* Products Grid - SINGLE COLUMN */
  .products-grid{grid-template-columns:1fr;gap:20px;padding:0;}
  .product-card{border-radius:12px;margin:0;}
  .product-media{aspect-ratio:16/10;}
  .product-body{padding:20px 18px 22px;}
  .product-body h3{font-size:1.15rem;}
  .product-body p{font-size:.9rem;}
  .product-tag{font-size:.68rem;padding:4px 9px;}
  
  /* Services - SINGLE COLUMN */
  .services-grid{grid-template-columns:1fr;gap:18px;padding:0;}
  .service-card{padding:26px 22px;border-radius:12px;margin:0;}
  .service-icon{width:48px;height:48px;}
  .service-icon svg{width:24px;height:24px;}
  .service-card h3{font-size:1.08rem;}
  .service-card p{font-size:.9rem;}
  
  /* About Section */
  .about-grid{gap:32px;}
  .about-figure{
    min-height:280px;padding:28px;border-radius:14px;
  }
  .about-figure h3{font-size:1.2rem;}
  .about-figure .stat-row{gap:18px;flex-wrap:wrap;}
  .about-figure .stat strong{font-size:1.8rem;}
  .about-figure .stat span{font-size:.78rem;}
  .about-text p{font-size:.95rem;}
  .about-list li{font-size:.9rem;}
  .about-list svg{width:18px;height:18px;}
  
  /* Process Steps - VERTICAL STACK */
  .process-grid{grid-template-columns:1fr;row-gap:28px;}
  .process-step{padding:0;}
  .process-step::before{display:none !important;}
  .process-num{width:48px;height:48px;font-size:1.1rem;margin-bottom:14px;}
  .process-step h4{font-size:1.02rem;}
  .process-step p{font-size:.88rem;}
  
  /* CTA Band */
  .cta-band{
    flex-direction:column;text-align:center;padding:34px 24px;
    gap:24px;border-radius:14px;margin:0 0;
  }
  .cta-band h2{font-size:1.5rem;}
  .cta-band p{font-size:.95rem;max-width:100%;padding:0 4px;}
  .cta-band .actions{flex-direction:column;width:100%;gap:12px;}
  .cta-band .actions .btn{width:100%;padding:14px 24px;}
  
  /* Contact Section */
  .contact-grid{grid-template-columns:1fr;gap:32px;padding:0;}
  .contact-info-card{padding:26px 22px;border-radius:12px;}
  .contact-row{gap:14px;}
  .contact-row .ic{width:40px;height:40px;}
  .contact-row .ic svg{width:18px;height:18px;}
  .contact-row h4{font-size:.92rem;}
  .contact-row p,.contact-row a{font-size:.88rem;}
  .map-embed{border-radius:10px;margin-top:8px;}
  .map-embed iframe{height:200px;}
  
  /* Form - MOBILE OPTIMIZED WITH PADDING */
  .form-card{padding:26px 22px;border-radius:12px;}
  .form-card h3{font-size:1.2rem !important;margin-bottom:20px !important;}
  .form-row{grid-template-columns:1fr;gap:16px;margin-bottom:16px;}
  .field label{font-size:.84rem;margin-bottom:2px;}
  .field input,.field select,.field textarea{
    padding:13px 15px;font-size:.92rem;border-radius:8px;
    /* Ensure proper touch targets */
    min-height:48px;width:100%;
  }
  .field textarea{min-height:120px;}
  .btn[type="submit"]{
    width:100%;padding:14px 24px;font-size:.95rem;
    min-height:48px;border-radius:8px;margin-top:4px;
  }
  .form-note{font-size:.76rem;line-height:1.5;padding:0 2px;}
  
  /* Footer */
  .footer-top{grid-template-columns:1fr;gap:32px;padding:48px 0 32px;}
  .footer-top > div{
    padding-left:6px;
  }
  html[dir="rtl"] .footer-top > div{
    padding-right:6px;
    padding-left:0;
  }
  .footer-logo img{height:42px;margin-left:0;}
  .footer-top p{font-size:.88rem;max-width:100%;padding-left:0;}
  .footer-col h5{font-size:.88rem;margin-bottom:16px;padding-left:0;}
  .footer-col ul{gap:10px;padding-left:0;}
  .footer-col a,.footer-col li{font-size:.88rem;padding-left:0;}
  .footer-social{margin-top:16px;gap:10px;padding-left:0;}
  .footer-social a{width:36px;height:36px;}
  .footer-social svg{width:16px;height:16px;}
  .footer-bottom{
    justify-content:center;text-align:center;padding:18px 0;
    font-size:.8rem;flex-wrap:wrap;gap:8px;
  }
  
  /* Floating Elements */
  .wa-float{
    width:52px;height:52px;bottom:20px;inset-inline-start:20px;
    box-shadow:0 4px 16px rgba(0,0,0,.15);
  }
  .wa-float svg{width:28px;height:28px;}
  .to-top{
    width:46px;height:46px;bottom:20px;inset-inline-end:20px;
    box-shadow:0 4px 16px rgba(0,0,0,.15);
  }
  .to-top svg{width:20px;height:20px;}
  
  /* Typography */
  .section-head h2{font-size:1.65rem;line-height:1.2;}
  .section-head p{font-size:.98rem;}
  .eyebrow{font-size:.74rem;gap:6px;}
  .eyebrow::before{width:22px;}
  
  /* Brands Strip */
  .brands-strip{padding:44px 0 40px;}
  .brands-strip .strip-label{margin-bottom:28px;font-size:.74rem;letter-spacing:.16em;}
  .brands-strip .strip-label::before,
  .brands-strip .strip-label::after{width:48px;}
  .brand-item{padding:14px 32px;height:85px;}
  .brand-item::after{height:36px;}
  .brand-item img{height:40px;}
  .brand-item.brand-lg img{height:44px;max-width:140px;}
  
  /* Page Hero (produits.html) */
  .page-hero{padding:56px 0 60px;}
  .page-hero h1{font-size:clamp(1.7rem,7vw,2.2rem);}
  .hero-text{
    padding-left:6px;
    padding-right:2px;
  }
  html[dir="rtl"] .hero-text{
    padding-right:6px;
    padding-left:2px;
  }
  .hero-badge{font-size:.74rem;margin-top:14px;margin-left:2px;}
  .hero-sub{font-size:.98rem;margin-top:16px;padding-left:2px;}
  .hero-meta{gap:24px;margin-top:28px;padding-left:2px;}
  .hero-stat strong{font-size:1.6rem;}
  .hero-stat span{font-size:.76rem;}
  .hero-visual{height:300px;}
  .hero-visual-card{width:220px;height:220px;border-radius:16px;}
  .hero-visual-card img{padding:14px;}
  .breadcrumb{font-size:.8rem;margin-bottom:12px;padding-left:2px;}
  
  /* Family Cards (produits.html) */
  #family-overview{padding:64px 0 48px;}
  .fam-head{margin-bottom:48px;}
  .fam-head h2{font-size:1.7rem;}
  .fam-head p{font-size:1rem;}
  .fam-list{gap:32px;}
  .fam-card{grid-template-columns:1fr;border-radius:14px;}
  .fam-card.fam-reverse .fam-media{order:1;}
  .fam-card.fam-reverse .fam-body{order:2;}
  .fam-media{min-height:240px;border-radius:14px 14px 0 0;}
  .fam-tag{font-size:.68rem;padding:5px 12px;}
  .fam-body{padding:32px 24px;gap:14px;}
  .fam-num{font-size:2rem;top:20px;inset-inline-end:24px;}
  .fam-body h3{font-size:1.35rem;}
  .fam-desc{font-size:.94rem;}
  .fam-points{gap:10px;}
  .fam-points li{font-size:.88rem;}
  .fam-points li svg{width:17px;height:17px;}
  .fam-cta{padding:11px 22px;font-size:.9rem;}
  
  /* Detail Sections (produits.html) */
  .detail-section{padding:48px 0;}
  .detail-grid{grid-template-columns:1fr;gap:28px;}
  .detail-grid.reverse .detail-media{order:1;}
  .detail-grid.reverse .detail-text{order:2;}
  .detail-media{aspect-ratio:16/11;border-radius:12px;}
  .detail-tag{font-size:.68rem;padding:5px 11px;}
  .detail-text h2{font-size:1.5rem;}
  .detail-text p{font-size:.94rem;}
  .spec-grid{grid-template-columns:1fr;gap:10px;}
  .spec-item{padding:12px 14px;}
  .spec-item span.k{font-size:.7rem;}
  .spec-item span.v{font-size:.9rem;}
  
  /* Catalog Section */
  .catalog-section{padding:44px 0 72px;}
  .catalog-head{flex-direction:column;align-items:flex-start;gap:14px;}
  .catalog-head h2{font-size:1.4rem;}
  .catalog-head p{font-size:.92rem;max-width:100%;}
  .catalog-count{font-size:.82rem;}
  .filter-bar{gap:10px;padding:14px;border-radius:10px;margin-left:0;margin-right:0;}
  .filter-select{flex:1 1 100%;min-width:0;}
  .filter-select select{
    width:100%;padding:12px 32px 12px 14px;font-size:.84rem;
    border-radius:8px;min-height:44px;
  }
  .filter-reset{
    margin-left:0;width:100%;text-align:center;padding:12px;
    font-size:.84rem;border-radius:8px;background:var(--gray-100);
  }
  /* Table wrapper - allow horizontal scroll but keep padding.
     Negative margin must match the container's inline padding, otherwise the
     wrapper sticks out past the viewport and widens the document. */
  .table-wrap{
    margin-inline:-16px;border-radius:0;border-left:none;border-right:none;
    padding-inline:16px;overflow-x:auto;
  }
  table.gen-table{min-width:760px;}
  table.gen-table thead th{font-size:.68rem;padding:10px 6px;}
  table.gen-table thead tr.sub th{font-size:.64rem;padding:7px 4px;}
  table.gen-table td{padding:10px 6px;font-size:.82rem;}
  .model-cell{gap:8px;}
  .model-cell img{width:48px;height:36px;}
  .model-cell span{font-size:.84rem;}
  .row-actions button{width:30px;height:30px;}
  .row-actions svg{width:14px;height:14px;}
  .compare-bar{padding:12px 0;}
  .compare-bar .container{flex-direction:column;gap:12px;text-align:center;}
  .compare-bar-actions{width:100%;gap:8px;}
  .compare-bar-actions button{flex:1;padding:10px 16px;font-size:.84rem;}
  .compare-modal-inner{padding:20px;max-height:90vh;}
  .compare-modal h3{font-size:1.2rem;}
  .compare-modal table{font-size:.84rem;}
  .compare-modal th,.compare-modal td{padding:8px 6px;font-size:.82rem;}
}

/* ===== Extra Small Mobile (480px and below) ===== */
@media(max-width:480px){
  /* Container - COMFORTABLE SIDE PADDING */
  .container{padding:0 16px;}
  
  /* Topbar - EXTRA COMPACT */
  .topbar-info{
    flex-direction:column;gap:6px;align-items:center;font-size:.72rem;
  }
  .topbar-info > *:not(:last-child)::after{display:none;}
  .topbar-info a,
  .topbar-info span{display:flex;gap:6px;align-items:center;}
  .lang-switch{margin-top:4px;scale:.92;}
  .lang-switch button{padding:3px 8px;font-size:.7rem;}
  
  /* Header */
  .logo-link img{height:36px;}
  .burger{padding:8px;scale:.95;width:42px;height:42px;}
  .burger span{width:20px;height:2px;}
  
  /* Mobile Navigation - EXTRA SMALL SCREENS */
  .main-nav{
    width:min(90vw, 300px);
    padding-top:66px;
  }
  .main-nav::before{
    height:66px;
    font-size:.95rem;
  }
  .main-nav a{
    padding:18px 20px !important;
    font-size:1rem !important;
  }
  
  /* Hero - EXTRA SMALL SCREENS */
  .hero-inner{padding:40px 0 48px;gap:28px;}
  .hero-inner > div:first-child{
    padding-left:4px;
    padding-right:0;
  }
  html[dir="rtl"] .hero-inner > div:first-child{
    padding-right:4px;
    padding-left:0;
  }
  .hero h1{font-size:clamp(1.5rem,8vw,2rem);line-height:1.12;padding-left:0;}
  .hero p.lead{font-size:.94rem;line-height:1.55;padding-left:0;}
  .hero-eyebrow{font-size:.7rem;padding:5px 12px;margin-left:0;}
  .hero-actions{gap:10px;margin-bottom:28px;padding-left:0;}
  .hero-actions .btn{padding:13px 20px;font-size:.9rem;min-height:46px;}
  .hero-stats{gap:16px;padding-left:0;}
  .hero-stats div{padding-inline-start:8px;}
  .hero-stats strong{font-size:1.55rem;}
  .hero-stats span{font-size:.74rem;}
  
  /* Hero Showcase */
  .hero-showcase{height:280px;}
  .hero-frame img{max-width:85%;}
  .hero-chip{font-size:.64rem;padding:5px 9px;border-radius:5px;}
  .chip-top{top:-12px;inset-inline-start:-8px;}
  .chip-right{bottom:25px;inset-inline-end:-14px;}
  .chip-left{bottom:-12px;inset-inline-start:-10px;}
  .hero-float-card{padding:8px 14px;border-radius:8px;}
  .hero-float-card svg{width:20px;height:20px;}
  .hero-float-card span{font-size:.76rem;}
  .hero-float-pill{font-size:.64rem;padding:5px 10px;}
  
  /* Products */
  .products-grid{gap:16px;}
  .product-card{border-radius:10px;}
  .product-body{padding:16px 14px 18px;}
  .product-body h3{font-size:1.08rem;}
  .product-body p{font-size:.86rem;line-height:1.5;}
  .product-tag{font-size:.64rem;padding:3px 8px;top:10px;inset-inline-start:10px;}
  .product-link{font-size:.84rem;}
  
  /* Services */
  .services-grid{gap:14px;}
  .service-card{padding:20px 16px;}
  .service-icon{width:44px;height:44px;}
  .service-icon svg{width:22px;height:22px;}
  .service-card h3{font-size:1.04rem;}
  .service-card p{font-size:.86rem;line-height:1.55;}
  
  /* About */
  .about-figure{min-height:260px;padding:24px;border-radius:12px;}
  .about-figure h3{font-size:1.1rem;}
  .about-figure .stat-row{gap:16px;}
  .about-figure .stat strong{font-size:1.65rem;}
  .about-figure .stat span{font-size:.74rem;}
  .about-text p{font-size:.9rem;line-height:1.6;}
  .about-list{gap:12px;margin-top:20px;}
  .about-list li{font-size:.86rem;}
  .about-list svg{width:17px;height:17px;}
  
  /* Process */
  .process-grid{gap:24px;}
  .process-num{width:44px;height:44px;font-size:1.05rem;margin-bottom:12px;}
  .process-step h4{font-size:.98rem;}
  .process-step p{font-size:.84rem;line-height:1.5;}
  
  /* CTA Band */
  .cta-band{padding:28px 18px;gap:20px;border-radius:12px;}
  .cta-band h2{font-size:1.35rem;line-height:1.2;}
  .cta-band p{font-size:.9rem;line-height:1.5;}
  .cta-band .actions{gap:10px;}
  .cta-band .actions .btn{padding:13px 20px;font-size:.9rem;}
  
  /* Contact */
  .contact-grid{gap:28px;}
  .contact-info-card{padding:20px;border-radius:10px;}
  .contact-row{gap:12px;}
  .contact-row .ic{width:38px;height:38px;border-radius:7px;}
  .contact-row .ic svg{width:17px;height:17px;}
  .contact-row h4{font-size:.88rem;}
  .contact-row p,.contact-row a{font-size:.84rem;}
  .map-embed{border-radius:8px;}
  
  /* Form */
  .form-card{padding:20px;border-radius:10px;}
  .form-card h3{font-size:1.15rem !important;margin-bottom:18px !important;}
  .form-row{gap:14px;margin-bottom:14px;}
  .field label{font-size:.82rem;font-weight:700;}
  .field input,.field select,.field textarea{
    padding:12px 13px;font-size:.88rem;border-radius:7px;min-height:46px;
  }
  .field textarea{min-height:110px;}
  .btn[type="submit"]{padding:13px 20px;font-size:.9rem;min-height:46px;}
  .form-note{font-size:.74rem;line-height:1.45;}
  
  /* Footer */
  .footer-top{gap:28px;padding:44px 0 28px;}
  .footer-top > div{
    padding-left:4px;
  }
  html[dir="rtl"] .footer-top > div{
    padding-right:4px;
    padding-left:0;
  }
  .footer-logo img{height:38px;}
  .footer-top p{font-size:.85rem;line-height:1.6;}
  .footer-col h5{font-size:.86rem;margin-bottom:14px;}
  .footer-col ul{gap:9px;}
  .footer-col a,.footer-col li{font-size:.85rem;}
  .footer-social{gap:9px;margin-top:14px;}
  .footer-social a{width:34px;height:34px;border-radius:7px;}
  .footer-social svg{width:15px;height:15px;}
  .footer-bottom{padding:16px 0;font-size:.78rem;}
  
  /* Floating Buttons */
  .wa-float{width:50px;height:50px;bottom:18px;inset-inline-start:18px;}
  .wa-float svg{width:26px;height:26px;}
  .to-top{width:44px;height:44px;bottom:18px;inset-inline-end:18px;}
  .to-top svg{width:19px;height:19px;}
  
  /* Typography */
  .section-head h2{font-size:1.5rem;line-height:1.18;}
  .section-head p{font-size:.92rem;line-height:1.6;}
  .eyebrow{font-size:.72rem;gap:5px;}
  .eyebrow::before{width:20px;height:1.5px;}
  
  /* Spacing */
  .section{padding:48px 0;}
  .section-tight{padding:32px 0;}
  
  /* Brands Strip */
  .brands-strip{padding:40px 0 36px;}
  .brands-strip .strip-label{margin-bottom:24px;font-size:.7rem;gap:10px;}
  .brands-strip .strip-label::before,
  .brands-strip .strip-label::after{width:40px;}
  .brand-item{padding:12px 24px;height:75px;}
  .brand-item img{height:36px;}
  .brand-item.brand-lg img{height:38px;max-width:120px;}
  
  /* Page Hero (produits.html) */
  .page-hero{padding:48px 0 52px;}
  .page-hero h1{font-size:clamp(1.5rem,8vw,1.9rem);}
  .hero-badge{font-size:.7rem;padding:5px 11px;}
  .hero-sub{font-size:.92rem;}
  .hero-meta{gap:20px;margin-top:24px;flex-wrap:wrap;}
  .hero-stat{min-width:0;flex:1 1 auto;}
  .hero-stat strong{font-size:1.5rem;}
  .hero-stat span{font-size:.72rem;}
  .hero-visual{height:270px;}
  .hero-visual-card{width:200px;height:200px;}
  .hero-orbit{display:none;}
  .breadcrumb{font-size:.78rem;margin-bottom:10px;gap:6px;}
  
  /* Family Cards */
  #family-overview{padding:56px 0 44px;}
  .fam-head{margin-bottom:40px;}
  .fam-head h2{font-size:1.55rem;}
  .fam-head p{font-size:.94rem;line-height:1.6;}
  .fam-list{gap:28px;}
  .fam-card{border-radius:12px;}
  .fam-media{min-height:220px;border-radius:12px 12px 0 0;}
  .fam-tag{font-size:.64rem;padding:4px 10px;}
  .fam-body{padding:28px 20px;}
  .fam-num{font-size:1.85rem;top:18px;inset-inline-end:20px;}
  .fam-body h3{font-size:1.25rem;}
  .fam-desc{font-size:.9rem;line-height:1.55;}
  .fam-points{gap:9px;margin:6px 0 4px;}
  .fam-points li{font-size:.84rem;}
  .fam-points li svg{width:16px;height:16px;}
  .fam-cta{padding:10px 20px;font-size:.86rem;}
  
  /* Detail Sections */
  .detail-section{padding:44px 0;}
  .detail-grid{gap:24px;}
  .detail-media{aspect-ratio:16/12;border-radius:10px;}
  .detail-tag{font-size:.64rem;padding:4px 10px;}
  .detail-text h2{font-size:1.35rem;}
  .detail-text p{font-size:.9rem;line-height:1.6;margin-bottom:16px;}
  .spec-grid{gap:9px;margin-bottom:22px;}
  .spec-item{padding:11px 13px;border-radius:7px;}
  .spec-item span.k{font-size:.68rem;}
  .spec-item span.v{font-size:.86rem;}
  
  /* Catalog */
  .catalog-section{padding:40px 0 64px;}
  .catalog-head h2{font-size:1.3rem;}
  .catalog-head p{font-size:.88rem;line-height:1.55;}
  .catalog-count{font-size:.8rem;}
  .filter-bar{padding:12px;border-radius:8px;}
  .filter-select select{padding:11px 30px 11px 13px;font-size:.82rem;min-height:42px;}
  .filter-reset{padding:11px;font-size:.82rem;}
  .table-wrap{margin-inline:-16px;padding-inline:16px;}
  table.gen-table thead th{font-size:.64rem;padding:9px 5px;}
  table.gen-table td{padding:9px 5px;font-size:.8rem;}
  .model-cell{gap:7px;}
  .model-cell img{width:44px;height:34px;}
  .model-cell span{font-size:.8rem;}
  .compare-check{width:15px;height:15px;}
  .row-actions button{width:28px;height:28px;border-radius:6px;}
  .row-actions svg{width:13px;height:13px;}
  .compare-bar{padding:10px 0;}
  .compare-bar .container{font-size:.85rem;}
  .compare-bar-actions button{padding:9px 14px;font-size:.82rem;}
  .compare-modal-inner{padding:18px;border-radius:12px;}
  .compare-modal-close{width:32px;height:32px;font-size:1rem;}
  .compare-modal h3{font-size:1.15rem;margin-bottom:16px;}
  .compare-modal th,.compare-modal td{padding:7px 5px;font-size:.8rem;}
  .compare-modal th:first-child{font-size:.66rem;width:120px;}
  
  /* Page Hero Carousel */
  .page-hero .hero-showcase{height:270px;}
  .page-hero .hero-slide{padding:0 8px;}
  .page-hero .orbit-a,.page-hero .orbit-b{display:none;}
}

/* ========== BRANDS CAROUSEL ========== */
.brands-strip{
  position:relative;
  padding:64px 0 60px;
  overflow:hidden;
  border-block:1px solid rgba(255,255,255,.08);
  background:
    radial-gradient(900px 420px at 12% -50%, rgba(242,108,33,.20), transparent 60%),
    radial-gradient(900px 420px at 90% 150%, rgba(5,160,205,.24), transparent 60%),
    linear-gradient(135deg, var(--green-900) 0%, var(--green-800) 55%, #02394d 100%);
}
.brands-strip::before{
  content:"";position:absolute;inset:0;opacity:.4;pointer-events:none;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size:42px 42px;
  -webkit-mask-image:radial-gradient(720px 320px at 50% 50%, #000, transparent 80%);
          mask-image:radial-gradient(720px 320px at 50% 50%, #000, transparent 80%);
}
.brands-strip .strip-label{
  position:relative;display:flex;align-items:center;justify-content:center;gap:14px;
  font-size:.8rem;text-transform:uppercase;letter-spacing:.2em;
  color:rgba(255,255,255,.78);font-weight:700;margin-bottom:40px;
}
.brands-strip .strip-label::before,
.brands-strip .strip-label::after{
  content:"";height:1px;width:64px;
  background:linear-gradient(90deg,transparent,var(--yellow));
}
.brands-strip .strip-label::after{background:linear-gradient(90deg,var(--yellow),transparent);}
.brands-carousel-wrap{
  position:relative;overflow:hidden;
  mask-image:linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
  -webkit-mask-image:linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
}
.brands-carousel{
  display:flex;align-items:center;gap:0;
  width:max-content;
  animation:brands-scroll 40s linear infinite;
  will-change:transform;
}
.brands-carousel:hover{animation-play-state:paused;}
@keyframes brands-scroll{
  0%{transform:translateX(0);}
  100%{transform:translateX(-50%);}
}
html[dir="rtl"] .brands-carousel{animation-name:brands-scroll-rtl;}
@keyframes brands-scroll-rtl{
  0%{transform:translateX(0);}
  100%{transform:translateX(50%);}
}
.brand-item{
  flex:none;padding:20px 56px;display:flex;align-items:center;justify-content:center;
  height:110px;position:relative;
}
.brand-item::after{
  content:"";position:absolute;right:0;top:50%;transform:translateY(-50%);
  width:1px;height:48px;
  background:linear-gradient(180deg,transparent,rgba(255,255,255,.12),transparent);
}
.brand-item:last-child::after{display:none;}
.brand-item img{
  height:56px;width:auto;object-fit:contain;
  image-rendering:-webkit-optimize-contrast;
  -webkit-backface-visibility:hidden;
  backface-visibility:hidden;
  opacity:.9;transition:opacity .35s ease,transform .35s ease,filter .35s ease;
  filter:drop-shadow(0 2px 6px rgba(0,0,0,.3));
}
.brand-item:hover img{
  opacity:1;transform:scale(1.14);
  filter:drop-shadow(0 4px 12px rgba(0,0,0,.28));
}
.brand-item.brand-lg img{height:52px;max-width:210px;}
@media(max-width:760px){.brand-item.brand-lg img{height:30px;max-width:110px;}}
@media(max-width:760px){
  .brands-strip{padding:40px 0 38px;}
  .brands-strip .strip-label{margin-bottom:26px;font-size:.72rem;letter-spacing:.16em;}
  .brand-item{padding:12px 28px;height:78px;}
  .brand-item::after{height:32px;}
  .brand-item img{height:36px;width:auto;}
}

/* =========================================================
   FAMILLES DE PRODUITS (produits.html)
   ========================================================= */
#family-overview{padding:96px 0 72px;position:relative;background:
  radial-gradient(1200px 500px at 80% -10%, rgba(3,132,175,.06), transparent 60%),
  linear-gradient(180deg,#fff 0%, #f7fafb 100%);
}
.fam-head{max-width:760px;margin:0 auto 64px;text-align:center;}
.fam-head .eyebrow{justify-content:center;color:var(--green-800);}
.fam-head h2{color:var(--green-900);font-size:clamp(1.8rem,3.2vw,2.6rem);}
.fam-head p{margin-top:16px;color:var(--gray-700);font-size:1.08rem;}

.fam-list{display:flex;flex-direction:column;gap:40px;}

.fam-card{
  display:grid;grid-template-columns:1.05fr 1fr;
  background:#fff;border:1px solid var(--gray-100);
  border-radius:18px;overflow:hidden;box-shadow:var(--shadow-sm);
  transition:transform .3s ease,box-shadow .3s ease;
}
.fam-card:hover{transform:translateY(-6px);box-shadow:var(--shadow-md);}

.fam-media{
  position:relative;min-height:340px;overflow:hidden;background:#eef4f6;
}
.fam-media img{
  position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
  transition:transform .6s ease;
}
.fam-card:hover .fam-media img{transform:scale(1.06);}
.fam-media::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(0deg,rgba(3,84,112,.28),transparent 55%);
}
.fam-tag{
  position:absolute;top:16px;inset-inline-start:16px;z-index:2;
  background:var(--yellow);color:var(--green-900);
  font-size:.72rem;font-weight:800;text-transform:uppercase;letter-spacing:.07em;
  padding:6px 14px;border-radius:5px;box-shadow:0 4px 12px rgba(0,0,0,.18);
}

.fam-body{
  position:relative;padding:48px 44px;display:flex;flex-direction:column;
  justify-content:center;align-items:flex-start;gap:16px;
}
.fam-num{
  position:absolute;top:24px;inset-inline-end:28px;font-family:var(--serif);
  font-size:2.4rem;font-weight:800;line-height:1;
  color:transparent;-webkit-text-stroke:1.5px var(--gray-300);
}
html[dir="rtl"] .fam-num{font-family:var(--arabic);}
.fam-body h3{font-size:clamp(1.4rem,2.2vw,1.8rem);color:var(--green-900);}
.fam-desc{color:var(--gray-700);font-size:1rem;}

.fam-points{display:flex;flex-direction:column;gap:11px;margin:8px 0 6px;}
.fam-points li{display:flex;align-items:center;gap:11px;color:var(--gray-700);font-size:.93rem;font-weight:500;}
.fam-points li svg{width:18px;height:18px;color:var(--yellow);flex:none;}

.fam-cta{margin-top:10px;padding:12px 26px;}
.fam-cta svg{width:16px;height:16px;transition:transform .2s;}
html[dir="rtl"] .fam-cta svg{transform:scaleX(-1);}
.fam-card:hover .fam-cta svg{transform:translateX(4px);}
html[dir="rtl"] .fam-card:hover .fam-cta svg{transform:scaleX(-1) translateX(4px);}

/* alternance image / texte */
.fam-card.fam-reverse .fam-media{order:2;}
.fam-card.fam-reverse .fam-body{order:1;}

@media(max-width:900px){
  .fam-card{grid-template-columns:1fr;}
  .fam-media{min-height:280px;}
  .fam-card.fam-reverse .fam-media{order:1;}
  .fam-card.fam-reverse .fam-body{order:2;}
  .fam-body{padding:36px 30px;}
}
@media(max-width:480px){
  #family-overview{padding:72px 0 56px;}
  .fam-head{margin-bottom:44px;}
  .fam-media{min-height:220px;}
  .fam-body{padding:28px 22px;}
  .fam-num{font-size:2rem;}
}

/* =========================================================
   PHONE NUMBERS — always rendered LTR, even on RTL (Arabic) pages
   Usage: <bdi class="phone" dir="ltr">+213 550 56 85 81</bdi>
   ========================================================= */
.phone{
  direction:ltr;
  unicode-bidi:isolate;       /* keeps the "+" at the start of the number */
  display:inline-block;
  white-space:nowrap;         /* never wrap the number over two lines */
  text-align:left;
  font-family:var(--sans);    /* Inter renders the digits consistently */
}
/* Beats `html[dir="rtl"] span { font-family: var(--arabic) }` if a <span class="phone"> is used */
html[dir="rtl"] .phone{
  font-family:var(--sans);
  letter-spacing:0;
  line-height:inherit;
}