/* =========================
   Another PlastiK — Product
   ========================= */
/* Fonts */
@import url('https://api.fontshare.com/v2/css?f[]=cabinet-grotesk@400,500,700&display=swap');

/* ===== Variables ===== */
:root{
  /* Brand */
  --primary:#1F3D32; --primary-light:#2A4F42; --primary-dark:#16291F;
  --accent:#2C5F6F; --accent-light:#3A7A8C; --accent-soft:rgba(44,95,111,.12);
  --olive:#8B9556;

  /* Neutrals */
  --bg:#FFFFFF; --bg-sand:#F4EBE0; --bg-light:#F8FAFC; --white:#FFFFFF;
  --text:#2A2A2A; --text-muted:#6B7280; --black:#0A0A0A;

  /* UI */
  --gray-50:#FAFAFA; --gray-100:#F5F5F5; --gray-200:#E5E5E5;
  --gray-300:#D4D4D4; --gray-400:#A3A3A3; --gray-500:#737373;
  --gray-600:#525252; --gray-700:#404040; --gray-800:#262626; --gray-900:#171717;

  --shadow:0 8px 28px rgba(0,0,0,.08);
  --shadow-lg:0 20px 60px rgba(0,0,0,.12);

  /* Layout */
  --container:1380px; --container-narrow:1280px; --gutter:20px;
  --header-h:75px; --link-h:44px; --banner-h:40px;

  /* Hero */
  --hero-h-desktop:78vh; --hero-h-tablet:63vh; --hero-h-mobile:50vh;

  /* Media ratios */
  --media-ar-desktop:5/3.9; --media-ar-tablet:5/3.8; --media-ar-mobile:5/3.3;

  /* SDG grid */
  --sdg-gap:16px; 
  --sdg-shift: 6%; /* ajuste (0% à 12%) selon ton rendu */ 
}

/* =========================
        Base/ Reset
   ========================= */
*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%}
/* Fix global overflow + fond blanc parasite */
html, body {  width:100%;  max-width:100%;  overflow-x:hidden;     background:var(--bg);}
body{  min-height:100vh; display:flex; flex-direction:column; margin:0; font-family:"Cabinet Grotesk",system-ui,sans-serif;
  font-size:17px; line-height:1.75; font-weight:400; letter-spacing:-.01em;
  color:var(--text); background:transparent; overflow-x:hidden; -webkit-font-smoothing:antialiased;
}
body.menu-open{overflow:hidden}
main{flex:1 0 auto; padding-top:calc(var(--header-h) + var(--banner-h));}
footer{margin-top:auto;}
.container{max-width:var(--container); margin:0 auto; padding:0 var(--gutter);}
.container-narrow{max-width:var(--container-narrow); margin:0 auto; padding:0 var(--gutter);}
.section{padding:60px 0; overflow-x:hidden; padding-inline:var(--gutter);}
body.has-hero main{margin-top:0;}

/* =========================
   PHASE BANNER
   ========================= */
.phase-banner{  position:fixed; top:var(--header-h); left:0; right:0; z-index:10000;  height:var(--banner-h); display:flex; align-items:center; justify-content:center;
  background:linear-gradient(135deg,#2C5F6F 0%,#3A7A8C 100%); color:#fff;  line-height:1; font-size:.95rem; padding:0; transition:transform .3s,opacity .3s;}
body.scrolled-nav .phase-banner{transform:translateY(-100%);opacity:0;pointer-events:none;}
.phase-banner a{color:#fff;text-decoration:underline;font-weight:600;text-underline-offset:3px;transition:opacity .2s;}
.phase-banner a:hover{opacity:.85;}

/* =========================
   HEADER
   ========================= */
header.nav{  position:fixed; top:0; left:0; right:0; z-index:10001; height:var(--header-h);  width:100%; max-width:100vw; overflow-x:clip; background:var(--bg);
  transition:box-shadow .30s ease; box-shadow:0 2px 8px rgba(0,0,0,.1);}
body.scrolled-nav header.nav{box-shadow:0 6px 18px rgba(0,0,0,.12);}
header.nav .inner{  width:100%; max-width:var(--container); margin:0 auto; height:100%;  padding:0 var(--gutter); display:flex; align-items:center; justify-content:space-between;}
header.nav .logo{display:flex; align-items:center; height:100%; margin-right:clamp(32px,6vw,128px);transform:translateX(-8px)}
header.nav .logo img{display:block; height:calc(var(--header-h) - 28px); width:auto;}
header.nav .links{  display:flex; align-items:center; gap:20px; height:100%; position:relative; top:3px;  margin-left:auto; margin-right:0;}
header.nav .links a{  position:relative; display:inline-flex; align-items:center; justify-content:center;  height:var(--link-h); padding:0 14px; line-height:1; font-weight:600; color:var(--primary); text-decoration:none;
  transition:background .2s ease, color .2s ease, transform .2s ease;}
header.nav .links a::after{  content:""; position:absolute; left:0; bottom:-3px; width:0%; height:2px; background:var(--primary); transition:width .25s ease;}
header.nav .links a:hover::after, header.nav .links a:focus::after{width:100%;}
body.has-hero header.nav{background:var(--bg); box-shadow:0 2px 8px rgba(0,0,0,.1);}
body.has-hero.scrolled-nav header.nav{background:var(--bg)!important; box-shadow:0 6px 18px rgba(0,0,0,.12)!important;}
body.has-hero header.nav .links a{color:var(--primary);}
body.has-hero.scrolled-nav header.nav .links a{color:var(--primary)!important;}

/* =========================
            BURGER
   ========================= */
header.nav .nav-toggle{  display:none; width:44px; height:44px; background:transparent; border:none; cursor:pointer; z-index:10000;  align-items:center; justify-content:center;}
header.nav .nav-toggle span{display:block; width:24px; height:2px; background:var(--primary); transition:transform .25s,opacity .2s,background .25s}
header.nav .nav-toggle span+span{margin-left:-24px; transform:translateY(6px)}
body.menu-open .nav-toggle span:first-child{transform:translateY(0) rotate(45deg)}
body.menu-open .nav-toggle span:last-child{transform:translateY(0) rotate(-45deg)}

/* =========================
         Mobile menu
   ========================= */
.mobile-menu{  position:fixed;  inset:0;  z-index:9998;  display:flex;  flex-direction:column;  align-items:center;  justify-content:center;  gap:22px;
  padding:20px;  background:rgba(31,92,66,.98);  transform:translateY(-100%);  transition:transform .28s ease;
}

body.menu-open .mobile-menu{  transform:none;}
.mobile-menu a{  color:#fff;  font-size:1.3rem;  font-weight:600;  text-decoration:none;}

/* =========================
       Language selector
   ========================= */

/* Vertical separator */
.language-separator{  display:inline-block;  width:1px;  height:26px;  background:var(--primary);  margin:0 8px;}

/* Wrapper */
.language-selector{  position:relative;  display:flex;  align-items:center;  height:var(--link-h);}

/* Toggle button */
.lang-toggle{  display:inline-flex;  align-items:center;  justify-content:center;  gap:6px;
  height:var(--link-h);  padding:0 14px;  background:transparent;  border:none;  color:var(--primary);
  font-weight:600;  font-size:1rem;  font-family:"Cabinet Grotesk",sans-serif;
  cursor:pointer;  transform:translateY(1px);  transition:opacity .25s;}
.lang-toggle:hover{  opacity:.9;}

/* Arrow */
.lang-arrow{  width:10px;  height:10px;  stroke:currentColor;  stroke-width:1.6;  transition:transform .25s;}
.lang-toggle[aria-expanded="true"] .lang-arrow{  transform:rotate(180deg);}

/* Dropdown */
.lang-dropdown{  position:absolute;  top:calc(100% + 8px);  right:0;  min-width:120px;  z-index:1000;  background:var(--bg);box-shadow:0 8px 24px rgba(0,0,0,.15);
  opacity:0;  visibility:hidden;  transform:translateY(-8px);  transition:opacity .25s ease, transform .25s ease;
}
.lang-dropdown[aria-hidden="false"]{  opacity:1;  visibility:visible;  transform:translateY(0);}

/* Language links */
.lang-option{  display:block;  width:100%;  padding:12px 20px;  background:transparent;  border:none;  text-align:left;
  text-decoration:none;  color:var(--primary);  font-weight:600;  font-size:.95rem;  font-family:"Cabinet Grotesk",sans-serif;  cursor:pointer;  transition:background .2s ease;}
.lang-option:hover,
.lang-option:focus{  background:var(--accent-soft);  text-decoration:none;}
.lang-option:focus-visible{  outline:2px solid var(--accent);  outline-offset:2px;}
.lang-option.active,
.lang-option[aria-current="page"]{  background:var(--accent-soft);  color:var(--primary);}

/* =========================
    Mobile language
   ========================= */
.mobile-lang-selector{  display:flex;  flex-direction:column;  gap:12px;  padding-top:24px;
  margin-top:24px;  border-top:1px solid rgba(0,0,0,.12);}
.lang-option-mobile{  background:rgba(255,255,255,.1);  border:1.5px solid rgba(255,255,255,.3);  border-radius:5px;
  color:#fff; padding:14px 20px;  font-weight:600;  font-size:1.1rem;  text-align:center;
  font-family:"Cabinet Grotesk",sans-serif;  cursor:pointer;  transition:background .25s, border-color .25s;}
.lang-option-mobile:hover{  background:rgba(255,255,255,.2);  border-color:rgba(255,255,255,.5);}
.lang-option-mobile.active{  background:#fff;  color:var(--primary);  border-color:#fff;}
/* =========================
       PAGE HERO
   =========================  */
.page-hero{padding:80px 0 60px; position:relative; color:#fff;}
.page-hero .container{  position:relative;   z-index:1;  max-width:var(--container);  margin:0 auto;  padding:0 var(--gutter);}
.page-hero h1{font-size:clamp(2.4rem,5.4vw,4.6rem);   font-weight:600;   line-height:1.08;   color:#fff;   margin-bottom:16px;   text-transform:uppercase;}
.page-hero .overlay{position:absolute; inset:0; background:rgba(0,0,0,.35); z-index:0;  display:flex; flex-direction:column; align-items:flex-start; justify-content:center;       text-align:left; background:rgba(0,0,0,.25);}
.page-hero p{  font-size:1.2rem;   color:#fff;   text-align:justify;}

/* =========================
      PROTOTYPE BANNER
   =========================  */
.prototype-banner {  background: #FEF3C7;  padding: 6px 12px;           margin: 24px auto;
  width: clamp(300px, 60vw, 700px);  border-radius: 5px;  display: flex;  justify-content: center;   align-items: center;}
.prototype-banner p {  margin: 0;  color: #92400E;  font-weight: 500;
  font-size: 0.92rem;   line-height: 1.3;   text-align: center;}
.prototype-banner strong {  font-weight: 700;  color: #78350F;}

/* =========================
   MATERIAL PHILOSOPHY
   ========================= */
.material-section{  padding:30px 0;  background:#fff;  position:relative;  z-index:1;}
.section-header{  text-align:left;  margin-bottom:48px;}
.section-header h2{  font-size:clamp(2rem,3.5vw,2.8rem);  color:var(--primary);  margin-bottom:8px;}

/* Cartes — desktop : 5 carrés sur une ligne */
.specs-grid{  display:grid;  grid-template-columns:repeat(5,1fr);  gap:24px;  margin-top:48px;  overflow:visible;}
/* Supprime complètement la scrollbar native si overflow-x est activé en responsive */
.specs-grid{  scrollbar-width:none; }
.specs-grid::-webkit-scrollbar{  display:none; }
.spec-card{  background:var(--bg-light);  border-radius:5px;  padding:32px 20px;  aspect-ratio:1 / 1;
  display:flex;  flex-direction:column;  align-items:flex-start; justify-content:flex-start;  overflow:hidden;}
.spec-icon {  font-size: 3rem; margin-bottom: 30px; display:flex; align-items:center; justify-content:center;    }  
.spec-icon img{  width:60px;  height:60px;  object-fit:contain;  display:block;}
.spec-card h3{  font-size:1.1rem;  color:var(--primary);  margin-bottom:8px;  font-weight:700;}
.spec-card p{  font-size:.95rem;  color:var(--text-muted);  line-height:1.6;  margin:0;  text-align:justify;}

/* Barre de carrousel custom (même style que metrics) */
.specs-scrollbar{  position:relative;  width:100%;  max-width:1280px;  margin:10px auto 0;  height:8px;  box-sizing:border-box;
  display:none;  }
.specs-scrollbar::before{  content:"";  position:absolute;  inset:0;  border-radius:0;  background:#E5E7EB;}
.specs-scrollbar-thumb{  position:absolute;  inset-block:0;  left:0;  height:8px;  border-radius:0;
  background:#9CA3AF;  width:40%;  transform:none;  transition:left .18s linear, width .18s ease-out;}

/* =========================
   TECHNICAL SPECS 
   =========================  */
.technical-section {  padding: 30px 0;  background: #fff;  position: relative;  z-index: 1;}
.technical-section .container {  max-width: 1380px;  margin: 0 auto;  padding-inline: var(--gutter);  box-sizing: border-box;
  display: flex;  flex-direction: column;  align-items: center;}
.technical-header {  text-align: center;  margin-bottom: 48px;  width: 100%;}
.technical-header h2 {  font-size: clamp(2rem, 3.5vw, 2.8rem);  color: var(--primary);  margin-bottom: 8px;}

/* ===== Grille ===== */
.why-grid {  display: grid;  grid-template-columns: repeat(3, minmax(0, 1fr));  gap: 24px;
  max-width: 1380px;  width: 100%;  margin: 0 auto;  scrollbar-width: none;}
.why-grid::-webkit-scrollbar { display: none; }

/* ===== Cartes ===== */
.why-card {  background:#fff;  border-radius: 5px;  padding: 28px 24px;  display: flex;  flex-direction: column;  text-align: left;}

/* === Icône + titre en badge === */
.why-card-header {  display: inline-flex;  align-items: center;  justify-content: center;
  gap: 10px;  padding: 8px 18px;  border-radius: 50px;  font-weight: 600;  margin-bottom: 16px;
  align-self: center;  width: 230px;  max-width: 230px;  min-width: 230px;}

/* Taille icône dans badge */
.why-card-header .why-icon img {  width: 22px;  height: 22px;}

/* Texte titre */
.why-card h3 {  font-size: 1.05rem;  color: var(--primary);  font-weight: 700;  margin: 0;  white-space: nowrap;}

/* Texte descriptif */
.why-card p {  font-size: .95rem;  color: var(--text-muted);  line-height: 1.7;  margin: 0;  text-align: justify;}

/* === Badges colorés === */
.color-green   .why-card-header { background: #D9F5E3; color:#1F3D32; }
.color-blue    .why-card-header { background: #D5ECF8; color:#1F3D32; }
.color-purple  .why-card-header { background: #ECDCF8; color:#1F3D32; }
.color-yellow  .why-card-header { background: #FFF2CC; color:#1F3D32; }
.color-orange  .why-card-header { background: #FFE8D5; color:#1F3D32; }
.color-pink    .why-card-header { background: #F9DCEA; color:#1F3D32; }

/* ====== SCROLLBAR CUSTOM TECHNICAL (MOBILE) ====== */
.technical-scrollbar {  display: none;     position: relative;  width: 100%;  margin: 10px auto 0;  height: 8px;  box-sizing: border-box;}
.technical-scrollbar::before {  content: "";  position: absolute;  inset: 0; border-radius: 0;  background: #E5E7EB;}
.technical-scrollbar-thumb {  position: absolute;  inset-block: 0;  left: 0;  height: 8px;  border-radius: 0;
  background: #9CA3AF;  width: 40%;  transform: none;  transition: left .18s linear, width .18s ease-out;}

/* =========================
   APPLICATIONS 
   ========================= */
.applications-section { padding: 30px 0;     background: #fff;  position:relative;  z-index:1;   }   
.application-header h2 {  font-size: clamp(2rem, 3.5vw, 2.8rem);  color: var(--primary);  margin-bottom: 8px;}

.applications-grid{  display:grid;  grid-template-columns:repeat(4, minmax(0, 1fr));  gap:32px;  width:100%;}
.application-card{  background:#fff;  border:2px solid var(--primary);  border-radius:5px;  overflow:hidden;
  display:flex;  flex-direction:column;  position:relative;  transition:border-color .3s ease, box-shadow .3s ease, transform .25s ease;
  box-shadow:0 2px 12px rgba(0,0,0,.04);  padding:0;    text-align:left; }
.application-card h3{  margin:0;  padding:32px 28px;  text-align:center;
  background:var(--accent-soft);  border-bottom:2px solid var(--border);  font-size:1.35rem; 
  font-weight:700; color:var(--primary);line-height:1.2;}
.application-card ul{list-style:none;  padding:32px 28px;  margin:0;  display:flex;  flex-direction:column;  flex:1;}
.application-card li{  position:relative;  padding-left:28px;   margin-bottom:6px;  font-size:.95rem;  line-height:1.6;  color:var(--text);  font-weight:500;}
.application-card li::before{  content:"";  position:absolute;  left:0;  top:.55em;   width:5px;  height:5px;  background:var(--primary);}

/* ====== SCROLLBAR CUSTOM (MOBILE)======= */

.applications-scrollbar {  display: none;  position: relative;  width: 100%;  margin: 10px auto 0;  height: 8px;  box-sizing: border-box;}
.applications-scrollbar::before {  content: "";  position: absolute;  inset: 0;  border-radius: 0;  background: #E5E7EB;}
.applications-scrollbar-thumb {  position: absolute;  inset-block: 0;  left: 0;  height: 8px;  border-radius: 0;  background: #9CA3AF;  width: 40%;  transform: none;  transition: left .18s linear, width .18s ease-out;}

/* =========================
   JOIN SECTION 
   ========================= */
.join-section{  background: transparent;  padding:48px var(--gutter);   max-width: var(--container);  margin:0 auto;}
.join-card{  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);  color:#fff;  text-align:center;  
  position:relative;  z-index:1;  max-width:980px;  margin:0 auto;  padding:32px 28px;   border-radius:5px;
  box-shadow:0 16px 36px rgba(0,0,0,.12);overflow:hidden;}
.join-card::before{  content:"";  position:absolute;  top:-40%;  right:-8%;  width:520px;  height:520px;
  background: radial-gradient(circle, rgba(255,255,255,.10) 0%, transparent 70%);  pointer-events:none; z-index:-1;}
.join-content{ max-width:640px; margin:0 auto;}
.join-content h2{  font-size:clamp(2rem,4vw,2.8rem);  margin:0 0 12px;  font-weight:700;  font-family:"Cabinet Grotesk",sans-serif;}
.join-content p{  font-size:1.05rem;  opacity:.95;  margin-bottom:24px;   line-height:1.75;}
.join-actions{  display:flex;  gap:12px;   justify-content:center;  flex-wrap:wrap;}
.join-actions .btn{  background:var(--accent-light);  color:#fff;
  border:none;  border-radius:5px;  font-weight:600;  font-size:14px;  text-decoration:none;
  cursor:pointer;  padding:10px 20px;  transition:transform .25s ease, background .25s ease;
  box-shadow:0 3px 8px rgba(44,95,111,.30);}
.join-actions .btn:hover,.join-actions .btn:focus{background:#fff;color:var(--accent-light);transform:translateY(-1px);}
.join-actions .btn:active{transform:translateY(0);background:#356f83 ;color:#fff;}
.join-actions .btn.outline{background:transparent;color:var(--accent-light);border:2.5px solid var(--accent-light);}
.join-actions .btn.outline:hover{background:#356f83;color:#fff;}


/* =========================
           FOOTER
   ========================= */
 footer{background:var(--primary); color:rgba(255,255,255,.95); padding:48px 0 24px}
.footer-grid{display:grid; grid-template-columns:1fr 1fr 1fr; gap:48px; max-width:var(--container); 
             margin:0 auto; padding:0 var(--gutter); margin-bottom:32px;}
.footer-brand{margin-bottom:20px}
.footer-brand h3{color:#fff; font-size:1.3rem; font-weight:600}
.footer-info{display:flex; flex-direction:column; gap:14px; margin-bottom:20px}
.info-item{display:flex; align-items:center; gap:12px}
.info-item svg{width:20px; height:20px; stroke:rgba(255,255,255,.9); fill:none; stroke-width:2; flex-shrink:0}
.info-item span,.info-item a{color:rgba(255,255,255,.95); font-size:.95rem; text-decoration:none; transition:color .2s}
.info-item a:hover{color:#fff}
.footer-social{display:flex; gap:12px}
.footer-social a{  width:44px; height:44px; background:var(--primary); border-radius:5px; display:flex; align-items:center; justify-content:center;
  transition:all .3s; text-decoration:none; position:relative;}
.footer-social a:hover{transform:translateY(-2px); box-shadow:0 4px 12px rgba(0,0,0,.2)}
.footer-social a svg{width:26px; height:26px; position:absolute; top:50%; left:50%; transform:translate(-50%,-50%)}
.footer-col h4{color:#fff; font-weight:600; margin-bottom:16px; font-size:1.1rem}
.footer-col a{color:rgba(255,255,255,.85); font-size:.95rem; line-height:1.8; text-decoration:none; display:block; margin-bottom:8px; transition:color .2s}
.footer-col a:hover{color:#fff}
.footer-bottom{  border-top:1px solid rgba(255,255,255,.15); padding-top:24px; text-align:center; font-size:.85rem; color:rgba(255,255,255,.7);
  max-width:var(--container); margin:0 auto; padding-inline:var(--gutter);}

/* ===============================
    Desktop (1280px)
   =============================== */
@media (max-width:1280px){
  .specs-grid{ display:flex; overflow-x:auto; scroll-snap-type:x mandatory;    gap:24px;    padding-bottom:8px;
    -webkit-overflow-scrolling: touch; }
  .spec-card{ flex:0 0 calc(33.333% - 16px);    max-width:calc(33.333% - 16px);    aspect-ratio:auto;
    height:auto;   scroll-snap-align:start; }
  .specs-scrollbar{display:block;  }
}
/* ===============================
      STRUCTURE — RESPONSIVE
   =============================== */
/* Desktop (≥1025px) */
@media (min-width:1025px){
  header.nav .links{display:flex; flex-wrap:nowrap; gap:clamp(14px,1.2vw,28px)}
  header.nav .links a{white-space:nowrap; line-height:1.2}
}

/* =========================
   ≤1024px — TABLETTES/IPADS
   ========================= */
@media (max-width:1024px){
 :root{
    --gutter:12px; --stats-inset:var(--gutter);
    --btnR-w:clamp(120px,25vw,180px); --btnR-h:40px; --btnR-fs:.9rem; --btnR-padX:12px;
    --sdg-shift:8%;
  }
  
  /* ===== HEADER NAV ===== */
header.nav .inner{display:flex; align-items:center; justify-content:space-between}
header.nav .logo{flex:0 0 auto; margin-right:clamp(12px,2.4vw,28px)}
header.nav .nav-toggle{display:flex !important; margin-left:auto}
header.nav .links{display:none !important}

.technical-header {    text-align: left;  }   
.applications-grid {    grid-template-columns: repeat(2, minmax(0, 1fr));  }
     
/* --- Phase Banner — plein viewport, bien centrée --- */
  .phase-banner,
  .banner,
  header .banner,
  header.nav .banner{  display:flex !important;  align-items:center !important;
  justify-content:center !important;  text-align:center !important; position:fixed;  
  top:var(--header-h);    left:0; right:0; width:100% !important; max-width:100% !important;
  margin:0 !important; padding-left:clamp(8px,2vw,16px) !important; padding-right:clamp(8px,2vw,16px) !important;
  box-sizing:border-box !important;  }

  /* le container interne ne doit plus réduire la largeur */
  .phase-banner > .container,
  .banner > .container{
    width:100% !important;    max-width:100% !important;    padding:0 !important;    margin:0 !important;
    display:flex !important;    align-items:center !important;    justify-content:center !important;  }
  .phase-banner * ,
  .banner *{   text-align:center !important;   margin:0 !important; }
   
   /* Verrouillage anti-scroll horizontal global (mobile + tablette) */
   html, body{  width:100%;  max-width:100%;  overflow-x:hidden;}
   }

/* =========================================================
   LARGEUR COMMUNE 98% — de 1024px à 641px (PAGE PRODUCT)
   ========================================================= */
@media (max-width:1024px) and (min-width:641px){

  .container,
  .container-narrow,
  .page-hero .container,
  .technical-section .container,
  .applications-section .container,
  .join-section,  
  .footer-grid{
    max-width:98% !important;
    margin-inline:auto !important;
  }
}

 /* ==================
      MOBILE — 900px
      ================== */
@media (max-width:900px){
  .spec-card{    flex:0 0 calc(50% - 14px);    max-width:calc(50% - 14px);  }
  .why-grid {    grid-template-columns: repeat(2, minmax(0, 1fr));  }
}

 /* ==================
      MOBILE — ≤640px
      ================== */
@media (max-width:640px){

 :root{
    --btnM-w:clamp(110px,40vw,170px);
    --btnM-h:40px;
    --btnM-fs:.88rem;
    --btnM-padX:10px;
  }  
  /* Header mobile */
  header.nav .links{ display:none !important; }
  header.nav .nav-toggle{ display:flex !important; margin-left:auto; }
  header.nav .inner{ display:flex; align-items:center; }
  header.nav .logo{ margin-right:auto; }

/* Renfort bannière mobile (plein viewport) */
.banner,header .banner,header.nav .banner{
    width:100vw !important; max-width:none !important;
    margin-left:calc(50% - 50vw) !important; margin-right:calc(50% - 50vw) !important; }

.page-hero h1 {  font-size: clamp(1.8rem, 6vw, 2.4rem) !important; line-height: 1.1;  text-align: left; }
.page-hero p {font-size: 0.95rem !important; line-height: 1.5; max-width: 90%; text-align: left; }   

.section-header h2, 
.technical-header h2,     
.application-header h2 { font-size:clamp(1.4rem,4vw,1.8rem)!important;}

.spec-card{    flex:0 0 100%;    max-width:100%;  } 
.why-grid {    display: grid;    grid-template-columns: none;         grid-auto-flow: column;  
    grid-auto-columns: 100%;    overflow-x: auto;   padding-bottom: 12px;   gap: 20px;
    scroll-snap-type: x mandatory;    -webkit-overflow-scrolling: touch;    scrollbar-width: none;  }
.why-grid::-webkit-scrollbar {    display: none;  }
.why-card {    scroll-snap-align: start;    min-width: 100%;  }

/* === Applications : carrousel, 1 carte à la fois === */
.applications-grid {    display: grid;    grid-template-columns: none; grid-auto-flow: column;   
    grid-auto-columns: 100%;     overflow-x: auto;    padding-bottom: 12px;    gap: 20px;
    scroll-snap-type: x mandatory;    -webkit-overflow-scrolling: touch;    scrollbar-width: none;  }
.applications-grid::-webkit-scrollbar {  display: none;}
.application-card {    scroll-snap-align: start;    min-width: 100%;  }
 .applications-scrollbar {    display: block;  }
.technical-scrollbar    { display: block; }

.join-section{   padding:32px var(--gutter) 24px; }
.join-card{   padding:24px 18px;  }
.join-content h2{    font-size:clamp(1.6rem,5vw,2.1rem);   margin-bottom:10px; }
.join-content p{   font-size:0.95rem;   margin-bottom:18px;   line-height:1.6;  }
.join-actions{    gap:10px;   }
.join-actions .btn{   padding:8px 16px;    font-size:13px;  }   

/* Footer */   
.footer-grid{grid-template-columns:1fr}    
}
  
/* ===== Utilities ===== */
.animate-on-scroll{will-change:transform,opacity;}
.highlight{color:#1aa37a;}

/* =========================================================
   RTL (AR) — FIX GLOBAL + HEADER + SECTIONS
   À COLLER TOUT À LA FIN (écrase le reste proprement)
   ========================================================= */

/* ---------------------------------------------------------
   0) RTL global (simple + sûr)
   - On ne met pas [dir="rtl"] tout seul (trop large, ça casse d’autres blocs)
---------------------------------------------------------- */
html[lang="ar"][dir="rtl"],
body[lang="ar"][dir="rtl"]{
  direction: rtl;
}

/* =========================================================
   1) HEADER AR — BASE (desktop + tablet + mobile)
   Objectif :
   - garder la structure du header stable
   - logo à droite
   - liens en RTL quand ils existent
   - dropdown ancré à droite
========================================================= */

/* On force le container du header à rester en LTR pour éviter les inversions flex
   puis on place les items par order + margins */
html[lang="ar"][dir="rtl"] header.nav .inner{
  direction:ltr !important;
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
}

/* Logo à droite */
html[lang="ar"][dir="rtl"] header.nav .logo{
  order:99 !important;
  margin-left:auto !important;
  margin-right:0 !important;
  transform:none !important;
}

/* Liens desktop (quand visibles) */
html[lang="ar"][dir="rtl"] header.nav .links{
  order:2 !important;
  margin:0 !important;
  direction:rtl !important;
}

/* Séparateur */
html[lang="ar"][dir="rtl"] header.nav .language-separator{
  order:1 !important;
  margin:0 8px !important;
}

/* Sélecteur langue */
html[lang="ar"][dir="rtl"] header.nav .language-selector{
  order:0 !important;
  margin:0 !important;
  direction:rtl !important;
}

/* Dropdown langue : ancrage à droite */
html[lang="ar"][dir="rtl"] header.nav .lang-dropdown,
body[lang="ar"][dir="rtl"] header.nav .lang-dropdown{
  left: 0 !important;     
  right: auto !important;  
  text-align: right !important;
}

html[lang="ar"][dir="rtl"] header.nav .lang-option{
  text-align:right !important;
}

/* =========================================================
   2) HERO AR
========================================================= */
html[lang="ar"][dir="rtl"] .page-hero .container > h1,
html[lang="ar"][dir="rtl"] .page-hero .container > p{
  direction:rtl !important;
  text-align:right !important;
}

html[lang="ar"][dir="rtl"] .page-hero .container{
  text-align:right !important;
}
html[lang="ar"][dir="rtl"] .page-hero .overlay{
  align-items:flex-end !important;
  text-align:right !important;
}
html[lang="ar"][dir="rtl"] .page-hero p{
  text-align:right !important;
}

/* =========================================================
   3) TITRES / TEXTES — AR
========================================================= */
html[lang="ar"][dir="rtl"] .section-header{
  text-align:right !important;
}

/* (si tu veux garder le titre technical centré même en AR) */
html[lang="ar"][dir="rtl"] .technical-header{
  text-align:center !important;
}

/* Why-cards */
html[lang="ar"][dir="rtl"] .why-card{
  text-align:right !important;
}
html[lang="ar"][dir="rtl"] .why-card p{
  text-align:right !important;
}

/* Applications : bullets à droite */
html[lang="ar"][dir="rtl"] .application-card{
  text-align:right !important;
}
html[lang="ar"][dir="rtl"] .application-card li{
  padding-left:0 !important;
  padding-right:28px !important;
}
html[lang="ar"][dir="rtl"] .application-card li::before{
  left:auto !important;
  right:0 !important;
}

/* =========================================================
   4) TABLET / MOBILE — header (burger) AR
   IMPORTANT : tes règles ≤1024 cachent déjà .links, donc on stabilise seulement.
========================================================= */
@media (max-width:1024px){
  html[lang="ar"][dir="rtl"] header.nav .inner{
    direction:ltr !important;
    justify-content:flex-start !important;
  }

  html[lang="ar"][dir="rtl"] header.nav .links{
    display:none !important;
  }

  /* Lang toggle en premier */
  html[lang="ar"][dir="rtl"] header.nav .language-selector{
    order:0 !important;
    margin:0 !important;
    direction:ltr !important; /* garde l’icône/flèche cohérente */
  }

  html[lang="ar"][dir="rtl"] header.nav .language-separator{
    order:1 !important;
    margin:0 8px !important;
  }

  html[lang="ar"][dir="rtl"] header.nav .nav-toggle{
    display:flex !important;
    order:2 !important;
    margin-left:0 !important;
    margin-right:0 !important;
  }

  html[lang="ar"][dir="rtl"] header.nav .logo{
    order:99 !important;
    margin-left:auto !important;
    margin-right:0 !important;
    transform:none !important;
  }
}

@media (max-width:640px){
  html[lang="ar"][dir="rtl"] header.nav .language-separator{
    height:22px !important;
    margin:0 6px !important;
  }
}

/* =========================================================
   5) AR — MATERIAL PHILOSOPHY (specs)
   Objectif :
   - icônes à droite (vraiment)
   - titres à droite
   - paragraphes justifiés
   IMPORTANT : on ne dépend PAS de "align-items" seul.
               On pousse l’icône avec margin-left:auto (en LTR)
========================================================= */

/* Cartes en RTL */
html[lang="ar"][dir="rtl"] .material-section .spec-card{
  direction:rtl !important;
  text-align:right !important;
  align-items:stretch !important; /* évite les surprises de flex-end */
}

/* Icône : on force un layout robuste */
html[lang="ar"][dir="rtl"] .material-section .spec-icon{
  width:100% !important;
  display:flex !important;

  /* ✅ la solution la plus fiable :
     on met le conteneur en LTR puis on pousse l’image à droite avec margin-left:auto */
  direction:ltr !important;
  justify-content:flex-start !important;
  align-items:center !important;

  margin-bottom:30px !important;
}

/* Pousse l'image à droite, quelles que soient les règles autour */
html[lang="ar"][dir="rtl"] .material-section .spec-icon img{
  margin-left:auto !important;  /* ✅ pousse à droite (car spec-icon est en LTR) */
  margin-right:0 !important;
}

/* Titres à droite */
html[lang="ar"][dir="rtl"] .material-section .spec-card h3{
  width:100% !important;
  text-align:right !important;
}

/* Paragraphes : justifiés (AR) */
html[lang="ar"][dir="rtl"] .material-section .spec-card p{
  width:100% !important;
  text-align:justify !important;
  text-align-last:auto !important;
}
