/* =========================
   Another PlastiK — Produits (clean)
   ========================= */

/* Fonts (keep ONLY if you really use Cabinet Grotesk on this page) */
@import url('https://api.fontshare.com/v2/css?f[]=cabinet-grotesk@400,500,700&display=swap');

/* ===== Variables (trimmed to what this file actually uses) ===== */
:root{
  /* Brand */
  --primary:#1F3D32;
  --primary-light:#2A4F42;
  --accent:#2C5F6F;
  --accent-light:#3A7A8C;
  --accent-soft:rgba(44,95,111,.12);

  /* Neutrals */
  --bg:#FFFFFF;
  --bg-light:#E5E7EB;
  --text:#2A2A2A;
  --text-muted:#6B7280;

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

/* =========================
   Base / Reset
   ========================= */
*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%}
html,body{width:100%;max-width:100%;overflow-x:hidden;background:var(--bg)}

body{
  min-height:100vh;
  display:flex;
  flex-direction:column;
  font-family:"Cabinet Grotesk",system-ui,sans-serif;
  font-size:17px;
  line-height:1.75;
  font-weight:400;
  letter-spacing:-.01em;
  color:var(--text);
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

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)}

/* =========================
   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;
  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 / Nav
   ========================= */
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);
  box-shadow:0 2px 8px rgba(0,0,0,.1);
  transition:box-shadow .3s ease;
}
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;
}
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:color .2s, transform .2s;
}
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%}

/* =========================
   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;
}
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);}

/* =========================
   Page Hero
   ========================= */
.page-hero{
  padding:80px 0 60px;
  position:relative;
  color:#fff;
}
.page-hero .container{
  position:relative;
  z-index:1;
}
.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,.25);
  z-index:0;
}
.page-hero p{
  font-size:1.2rem;
  color:#fff;
  text-align:left; /* better readability than justify on hero */
}

/* =========================
   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;
}

/* Desktop: 5 cards in a row */
.specs-grid{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:24px;
  margin-top:48px;
  overflow:visible;
  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{
  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(--text);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}

/* Custom scrollbar (shown only when carousel mode enabled in responsive) */
.specs-scrollbar{
  position:relative;
  width:100%;
  max-width:1280px;
  margin:10px auto 0;
  height:8px;
  display:none;
}
.specs-scrollbar::before{content:"";position:absolute;inset:0;background:#E5E7EB}
.specs-scrollbar-thumb{
  position:absolute;
  inset-block:0;
  left:0;
  height:8px;
  background:#9CA3AF;
  width:40%;
  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:var(--container);
  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;
}

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

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

.why-card-header{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:8px 18px;
  border-radius:999px;
  font-weight:600;
  margin-bottom:16px;
  align-self:center;
  width:230px;
  max-width:230px;
  min-width:230px;
}
.why-card-header .why-icon img{width:22px;height:22px}
.why-card h3{
  font-size:1.05rem;
  color:var(--primary);
  font-weight:700;
  margin:0;
  white-space:nowrap;
}
.why-card p{
  font-size:.95rem;
  color:var(--text-muted);
  line-height:1.7;
  margin:0;
  text-align:justify;
}

.color-green  .why-card-header{background:#D9F5E3}
.color-blue   .why-card-header{background:#D5ECF8}
.color-purple .why-card-header{background:#ECDCF8}
.color-yellow .why-card-header{background:#FFF2CC}
.color-orange .why-card-header{background:#FFE8D5}
.color-pink   .why-card-header{background:#F9DCEA}

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

/* =========================
   Applications
   ========================= */
.applications-section{padding:30px 0;background:#fff;position:relative;z-index:1}

.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;
  transition:border-color .3s ease, box-shadow .3s ease, transform .25s ease;
  box-shadow:0 2px 12px rgba(0,0,0,.04);
  text-align:left;
}

.application-card h3{
  margin:0;
  padding:32px 28px;
  text-align:center;
  background:var(--accent-soft);
  border-bottom:2px solid rgba(0,0,0,.06); /* replaced undefined --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);
}

.applications-scrollbar{
  display:none;
  position:relative;
  width:100%;
  margin:10px auto 0;
  height:8px;
}
.applications-scrollbar::before{content:"";position:absolute;inset:0;background:#E5E7EB}
.applications-scrollbar-thumb{
  position:absolute;
  inset-block:0;
  left:0;
  height:8px;
  background:#9CA3AF;
  width:40%;
  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;
}
.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, color .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}

/* =========================
   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:transform .3s, box-shadow .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);
}

/* ===============================
   Responsive
   =============================== */

/* Desktop (≥1025px): keep nav in one line */
@media (min-width:1025px){
  header.nav .links{flex-wrap:nowrap;gap:clamp(14px,1.2vw,28px)}
  header.nav .links a{white-space:nowrap;line-height:1.2}
}

/* ≤1280px: specs becomes carousel + show custom scrollbar */
@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;
  }
  .specs-scrollbar{display:block}
}

/* ≤1024px */
@media (max-width:1024px){
  :root{--gutter:12px}

  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))}

  /* Make the banner truly full width on tablet */
  .phase-banner{left:0;right:0;width:100%}
  .phase-banner > .container{max-width:100%;padding-inline:var(--gutter)}
}

/* ≤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))}
}

/* ≤640px */
@media (max-width:640px){
  .page-hero h1{font-size:clamp(1.8rem,6vw,2.4rem);text-align:left}
  .page-hero p{font-size:.95rem;line-height:1.5;max-width:90%;text-align:left}

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

  .spec-card{flex:0 0 100%;max-width:100%}

  /* Why: horizontal cards */
  .why-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-card{scroll-snap-align:start;min-width:100%}
  .technical-scrollbar{display:block}

  /* Applications: horizontal cards */
  .applications-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;
  }
  .application-card{scroll-snap-align:start;min-width:100%}
  .applications-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:.95rem;margin-bottom:18px;line-height:1.6}
  .join-actions{gap:10px}
  .join-actions .btn{padding:8px 16px;font-size:13px}

  .footer-grid{grid-template-columns:1fr;gap:28px}
}

/* Utilities */
.animate-on-scroll{will-change:transform,opacity}
.highlight{color:#1aa37a}
