/* ============================================
   STCS — Portfolio site
   Palette: deep green + metallic silver + cream
   ============================================ */

/* ---------- Tokens ---------- */
:root{
  --bg: #f4f1ea;         
  --bg-2: #ebe6dc;
  --ink: #0f1512;        
  --ink-2: #1a2621;
  --mute: #6b6357;
  --line: #d9d2c3;
  --green: #14442f;      
  --green-2: #1c5a3e;
  --green-glow: #2a8a5a;
  --silver: #b8bcbe;
  --silver-2: #8e9497;
  --accent: #d9a441;     
  --white: #ffffff;

  --f-display: "Fraunces", ui-serif, Georgia, serif;
  --f-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  --pad-x: clamp(20px, 5vw, 80px);
  --radius: 18px;
  --ease: cubic-bezier(.2,.7,.15,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin:0; padding:0; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; scroll-behavior:auto; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cdefs%3E%3Cfilter id='glow'%3E%3CfeDropShadow dx='0' dy='0' stdDeviation='2.5' flood-color='%232a8a5a' flood-opacity='0.9'/%3E%3C/filter%3E%3C/defs%3E%3Cpath d='M6 6 v18 l5.5 -5.5 h6.5 z' fill='%23b8bcbe' stroke='%2314442f' stroke-width='1.5' filter='url(%23glow)'/%3E%3C/svg%3E"), auto;
}

a, button, select, input, .product-card, .gallery-item, .contact-tile, .nav-cta {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cdefs%3E%3Cfilter id='glow-hover'%3E%3CfeDropShadow dx='0' dy='0' stdDeviation='3' flood-color='%23d9a441' flood-opacity='1'/%3E%3C/filter%3E%3C/defs%3E%3Cpath d='M6 6 v18 l5.5 -5.5 h6.5 z' fill='%23ffffff' stroke='%2314442f' stroke-width='1.5' filter='url(%23glow-hover)'/%3E%3C/svg%3E"), pointer !important;
}

a { color: inherit; text-decoration: none; }
img { display:block; max-width:100%; height:auto; }
button { font-family: inherit; border: none; background: none; }
::selection { background: var(--green); color: var(--bg); }

/* Lenis */
html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

section { padding: clamp(80px,10vw,140px) var(--pad-x); position: relative; }
.eyebrow{
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mute);
  display:inline-flex; align-items:center; gap:.6em;
}
.section-head { max-width: 1400px; margin: 0 auto clamp(40px, 6vw, 80px); }
.section-title{
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(42px, 7vw, 108px);
  line-height: .95;
  letter-spacing: -0.02em;
  margin: 20px 0 0;
  color: var(--ink);
}
.section-title em { font-style: italic; color: var(--green); font-weight: 400; }
.section-title--xl { font-size: clamp(56px, 12vw, 200px); }


/* ---------- Grain & cursor ---------- */
.grain{
  position: fixed; inset: 0; pointer-events: none; z-index: 9998;
  opacity: .06; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
.scroll-progress{
  position: fixed; top:0; left:0; height:2px; width:0%;
  background: linear-gradient(90deg, var(--green), var(--accent));
  z-index: 9999; transition: width .1s linear;
}

/* ---------- Floating Social Buttons ---------- */
.social-float {
  position: fixed; bottom: 2rem; right: 2rem;
  display: flex; flex-direction: column; gap: 12px;
  z-index: 1000;
}
.social-btn {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.social-btn:hover { transform: translateY(-3px) scale(1.05); }
.social-btn--wa { background-color: #25D366; }
.social-btn--wa:hover { box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6); }
.social-btn--fb { background-color: #1877F2; }
.social-btn--fb:hover { box-shadow: 0 6px 20px rgba(24, 119, 242, 0.6); }
.social-btn--mail { background-color: var(--green); }
.social-btn--mail:hover { box-shadow: 0 6px 20px rgba(20, 68, 47, 0.6); }
@media (max-width: 640px){
  .social-btn { width: 50px; height: 50px; }
  .social-float { bottom: 1.5rem; right: 1.5rem; }
}

/* ---------- Preloader ---------- */
.preloader{
  position: fixed; inset: 0; background: var(--ink); z-index: 10000;
  display: grid; place-items: center; color: var(--bg);
  transition: transform .9s var(--ease-out), opacity .5s ease .7s;
}
.preloader.is-done { transform: translateY(-100%); opacity: 0; pointer-events: none; }
.preloader-inner{ text-align:center; }
.preloader-logo{
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(60px, 12vw, 140px); letter-spacing: -.03em; line-height:1;
  display:flex; justify-content:center; gap: .08em;
}
.pl-letter { display:inline-block; opacity:0; transform: translateY(60%); animation: plUp .7s var(--ease-out) forwards; }
.pl-letter:nth-child(1){ animation-delay:.05s; }
.pl-letter:nth-child(2){ animation-delay:.15s; }
.pl-letter:nth-child(3){ animation-delay:.25s; color: var(--green-glow); }
.pl-letter:nth-child(4){ animation-delay:.35s; }
@keyframes plUp { to { opacity:1; transform: translateY(0);} }
.preloader-bar{
  margin: 32px auto 0; width: 200px; height:1px; background: rgba(255,255,255,.15); overflow:hidden;
}
.preloader-bar span{
  display:block; height:100%; width:0; background: var(--bg);
  animation: plBar 1.2s var(--ease-out) forwards .3s;
}
@keyframes plBar { to { width: 100%; } }
.preloader-caption{
  margin-top: 20px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .3em;
  text-transform: uppercase; color: rgba(255,255,255,.5);
  opacity:0; animation: plFade .6s ease forwards .8s;
}
@keyframes plFade { to { opacity:1; } }

/* ---------- Nav ---------- */
.nav{
  position: fixed; top: 22px; left: 22px; right: 22px; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px 12px 18px;
  background: rgba(244,241,234,.72);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border: 1px solid rgba(15,21,18,.08);
  border-radius: 100px;
  transition: transform .5s var(--ease), background .3s, box-shadow .3s;
}
.nav-brand{
  display:flex; align-items:center; gap: 10px;
  font-family: var(--f-display); font-weight: 600; font-size: 20px; letter-spacing: -.01em;
}
.nav-brand img{ width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.nav-links{ display:flex; gap: 4px; }
.nav-links a{
  padding: 10px 16px; border-radius: 100px; font-size: 14px; font-weight: 500;
  display:inline-flex; align-items:center; gap:.5em; transition: background .25s, color .25s;
  color: var(--ink);
}
.nav-links a span{ font-family: var(--f-mono); font-size: 10px; color: var(--mute); opacity:.7; }
.nav-links a:hover{ background: rgba(15,21,18,.06); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.lang-switcher { display: flex; align-items: center; gap: 0.4rem; font-family: var(--f-mono); font-size: 12px; font-weight: 500; }
.lang-switcher a { color: var(--mute); transition: color 0.3s ease; }
.lang-switcher a:hover, .lang-switcher a.active { color: var(--ink); font-weight: 700; }
.lang-switcher .separator { color: var(--line); }

.nav-cta{
  display:inline-flex; align-items:center; gap:.5em;
  background: var(--ink); color: var(--bg);
  padding: 12px 20px; border-radius: 100px; font-size: 14px; font-weight: 500;
  transition: transform .3s var(--ease), background .3s;
}
.nav-cta:hover{ background: var(--green); }
.nav-cta svg{ transition: transform .3s var(--ease); }
.nav-cta:hover svg{ transform: translateX(3px); }
@media (max-width: 900px){
  .nav-links { display: none; }
  .nav{ padding: 10px 10px 10px 14px; }
}

/* ---------- Hero ---------- */
.hero{
  min-height: 100svh; padding-top: 120px; padding-bottom: 60px;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden; color: var(--white);
}
.hero-bg{ 
  position:absolute; inset:0; z-index:0; pointer-events:none; 
  background-image: url('assets/products/simple-torsion-2.webp');
  background-size: cover; background-position: center;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: 
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.15) 0%, transparent 60%),
    linear-gradient(to bottom, rgba(20, 68, 47, 0.35), rgba(15, 21, 18, 0.85));
  z-index: 1;
}
.hero-grid{
  position:absolute; inset:0; z-index: 2;
  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: 88px 88px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%);
}

.hero-meta{
  position: relative; z-index: 3;
  display:flex; justify-content: space-between; align-items:center;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em;
  text-transform: uppercase; color: rgba(255,255,255,0.9); margin-top: 20px;
}
.pill{
  display:inline-flex; align-items:center; gap:.6em;
  padding: 8px 14px; border: 1px solid rgba(255,255,255,0.3); border-radius: 100px;
  background: rgba(0,0,0,0.4); backdrop-filter: blur(10px);
}
.pill i{ width: 6px; height:6px; border-radius:50%; background: var(--green-glow); box-shadow: 0 0 10px var(--green-glow); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .4; } }

.hero-title{
  position: relative; z-index: 3;
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(64px, 14vw, 240px);
  line-height: .88; letter-spacing: -.035em;
  margin: 8vh 0 0; color: var(--white);
}
.hero-title .line { display:block; overflow:hidden; }
.hero-title .reveal{ display:inline-block; transform: translateY(105%); opacity:0; animation: reveal .9s var(--ease-out) forwards; }
.hero-title .line:nth-child(1) .reveal { animation-delay: .5s; }
.hero-title .line:nth-child(2) .reveal { animation-delay: .62s; }
.hero-title .line:nth-child(3) .reveal { animation-delay: .74s; }
.hero-title em { font-style: italic; color: var(--accent); font-weight: 400; }
@keyframes reveal { to { transform: translateY(0); opacity: 1; } }

.hero-foot{
  position: relative; z-index: 3;
  display:flex; justify-content: space-between; align-items: flex-end;
  gap: 40px; margin-top: 8vh; flex-wrap: wrap;
}
.hero-brand{ display:flex; align-items:flex-start; gap: 20px; max-width: 620px; }
.hero-logo{ width: 90px; height: 90px; border-radius: 50%; object-fit: cover; box-shadow: 0 10px 40px -10px rgba(0,0,0,.5); border: 4px solid rgba(255,255,255,0.3); }
.hero-kicker{ margin: 0 0 6px; font-family: var(--f-mono); font-size:11px; letter-spacing:.2em; text-transform:uppercase; color: rgba(255,255,255,0.75); }
.hero-sub{ margin: 0; font-size: 15.5px; line-height:1.55; color: rgba(255,255,255,0.95); max-width: 46ch; }

.scroll-hint{
  display:inline-flex; align-items:center; gap:12px; padding: 14px 22px 14px 26px;
  border: 1px solid rgba(255,255,255,0.4); border-radius: 100px; font-size: 13px;
  font-family: var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--white);
  transition: background .3s, color .3s, border-color .3s;
}
.scroll-hint:hover{ background: var(--white); color: var(--ink); border-color: var(--white); }
.scroll-hint-arrow{ width: 22px; height: 22px; border-radius:50%; background: var(--white); position:relative; transition: background .3s; }
.scroll-hint:hover .scroll-hint-arrow{ background: var(--ink); }
.scroll-hint-arrow::before{
  content:""; position:absolute; top:50%; left:50%; width:6px; height:6px;
  border-right:1.5px solid var(--ink); border-bottom:1.5px solid var(--ink);
  transform: translate(-60%,-70%) rotate(45deg);
}
.scroll-hint:hover .scroll-hint-arrow::before{ border-color: var(--white); }

/* ---------- Stats ---------- */
.stats{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-top: 60px; padding-bottom: 60px; }
.stat{ padding: 0 24px; border-right: 1px solid var(--line); position:relative; }
.stat:last-child { border-right: none; }
.stat-num{ font-family: var(--f-display); font-weight: 500; font-size: clamp(48px, 5vw, 92px); line-height: 1; letter-spacing: -.03em; color: var(--ink); display:inline-block; }
.plus{ font-family: var(--f-display); font-weight: 400; color: var(--green); font-size: clamp(24px, 2.4vw, 40px); vertical-align: super; margin-left: 4px; }
.stat p{ margin: 12px 0 0; font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
@media (max-width: 800px){
  .stats{ grid-template-columns: 1fr; gap: 40px 0; }
  .stat{ border-right:none; border-bottom: 1px solid var(--line); padding-bottom: 40px; }
  .stat:last-child{ border-bottom:none; padding-bottom:0; }
}

/* ---------- Products & Filters ---------- */
.products{ background: var(--bg-2); }
.catalog-filters {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 40px;
}
.filter-group {
  display: inline-flex;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 6px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}
.filter-btn {
  padding: 12px 28px;
  border-radius: 100px;
  font-family: var(--f-sans);
  font-weight: 600;
  font-size: 15px;
  color: var(--mute);
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}
.filter-btn:hover { color: var(--ink); }
.filter-btn.is-active {
  background: var(--ink);
  color: var(--bg);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.sub-filter-group {
  display: inline-flex;
  gap: 8px;
  overflow: hidden;
  max-height: 50px;
  opacity: 1;
  transition: max-height 0.4s var(--ease), opacity 0.4s;
}
.sub-filter-group.is-hidden {
  max-height: 0;
  opacity: 0;
  pointer-events: none;
  margin-top: -14px;
}
.sub-filter-btn {
  padding: 8px 22px;
  border-radius: 100px;
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: 13px;
  color: var(--ink-2);
  border: 1px solid var(--line);
  background: transparent;
  transition: all 0.3s;
}
.sub-filter-btn.is-active {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}

.product-grid{ display:flex; flex-wrap: wrap; justify-content: center; gap: 22px; max-width: 1500px; margin: 0 auto; }
.product-card{ flex: 0 1 calc(50% - 11px); background: var(--white); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line); transition: transform .5s var(--ease), box-shadow .5s var(--ease); animation: fadeIn 0.5s ease; }
@keyframes fadeIn { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }
.product-card:hover{ transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(0,0,0,.2); }
.pc-body{ padding: 22px 22px 24px; flex:1; display:flex; flex-direction:column; gap: 10px; justify-content: space-between; }
.pc-cat{ font-family: var(--f-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--mute); }
.product-card h3{ font-family: var(--f-display); font-weight: 500; font-size: clamp(22px, 1.8vw, 30px); letter-spacing: -.01em; margin: 0; color: var(--ink); }
.product-card p{ margin: 0; font-size: 14.5px; color: var(--ink-2); line-height:1.55; }

/* Style Élégant pour les Specs et Prix intégrés */
.product-specs-list {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--ink-2);
  border: 1px solid rgba(0,0,0,0.03);
  transition: background 0.2s;
}
.spec-row:hover { background: var(--bg-2); }
.spec-price {
  font-family: var(--f-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--green);
  white-space: nowrap;
}
[dir="rtl"] .spec-price {
  direction: ltr;
  unicode-bidi: embed;
}

@media (max-width: 900px){
  .product-card{ flex-basis: 100%; }
}

/* ---------- Contact ---------- */
.contact-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 1400px; margin: 0 auto; }
.contact-tile{ background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 30px 30px; min-height: 180px; display:flex; flex-direction:column; justify-content: space-between; position: relative; overflow: hidden; transition: background .5s, color .5s, transform .5s var(--ease); }
.contact-tile:hover{ background: var(--ink); color: var(--bg); transform: translateY(-4px); }
.contact-tile:hover .ct-label { color: rgba(255,255,255,.5); }
.ct-label{ font-family: var(--f-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--mute); transition: color .4s; }
.contact-tile strong{ font-family: var(--f-display); font-weight: 500; font-size: clamp(28px, 3vw, 44px); letter-spacing: -.01em; line-height: 1.1; }
.ct-arrow{ position: absolute; top: 24px; right: 24px; font-size: 22px; opacity: .5; transition: transform .4s var(--ease), opacity .4s; }
.contact-tile:hover .ct-arrow{ transform: translate(4px,-4px); opacity: 1; }
@media (max-width: 900px){ .contact-grid{ grid-template-columns: 1fr; } }
.contact-note{ max-width: 1400px; margin: 20px auto 0; font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
[dir="rtl"] .contact-note{ font-family: var(--f-sans); letter-spacing: 0; font-size: 14px; }

/* ---------- Footer ---------- */
.footer{ background: var(--ink); color: var(--bg); padding: 60px var(--pad-x) 30px; position: relative; overflow: hidden; }
.footer-top{ padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-mark{ font-family: var(--f-display); font-weight: 600; font-size: clamp(80px, 18vw, 260px); line-height: .9; letter-spacing: -.04em; margin: 0; background: linear-gradient(180deg, var(--bg) 0%, rgba(244,241,234,.15) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer-bottom{ padding-top: 24px; display:flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.4); }

/* ---------- Animations helpers ---------- */
.reveal-line { display:block; overflow: hidden; line-height: 1.05; padding-bottom: .05em; }

/* ---------- Fenêtres Modales ---------- */
.modale {
  display: none; position: fixed; z-index: 100000; inset: 0;
  background-color: rgba(15, 21, 18, 0.85); backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px); opacity: 0; transition: opacity 0.3s ease;
}
.modale.is-open { display: flex; align-items: center; justify-content: center; opacity: 1; }
.modale-contenu {
  background-color: var(--bg); padding: 32px 40px; border-radius: var(--radius);
  width: 90%; max-width: 650px; position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5); transform: translateY(20px);
  transition: transform 0.3s var(--ease-out); border: 1px solid var(--line);
  max-height: 90vh; overflow-y: auto;
}
.modale.is-open .modale-contenu { transform: translateY(0); }
.modale-fermer {
  position: absolute; top: 20px; right: 24px; font-size: 32px;
  color: var(--mute); transition: color 0.3s; line-height: 1;
}
.modale-fermer:hover { color: var(--ink); }
.modale-header { margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--line); padding-right: 30px;}
.modale-header h3 { font-family: var(--f-display); margin: 0; font-size: 24px; color: var(--ink); }

[dir="rtl"] .modale-fermer { right: auto; left: 24px; }
[dir="rtl"] .modale-header { padding-right: 0; padding-left: 30px; }

/* ---------- Responsive base ---------- */
@media (max-width: 900px){
  .hero-title { font-size: clamp(56px, 16vw, 120px); }
  .hero-foot { flex-direction: column; align-items: flex-start; }
  .hero-brand { flex-direction: column; }
  .footer-bottom { flex-direction: column; }
  .hero-meta { flex-direction: column; align-items: flex-start; gap: 10px; }
  .hero-meta .clock { align-self: flex-start; }
  .nav-brand span { display: none; }
  section { padding-left: 22px; padding-right: 22px; }
  .nav { top: 12px; left: 12px; right: 12px; }
  .modale-contenu { padding: 24px 20px; }
}

/* ---------- Carrousel d'images dans les cartes produits ---------- */
.pc-media {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #eeece5;
}
.carousel-container {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.carousel-container::-webkit-scrollbar { display: none; }
.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  scroll-snap-align: start;
}
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15, 21, 18, 0.6);
  color: #fff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  z-index: 10;
  transition: background 0.3s;
}
.carousel-btn:hover { background: var(--green); }
.carousel-prev { left: 10px; }
.carousel-next { right: 10px; }

.carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  padding: 0;
  transition: background 0.3s, transform 0.3s;
}
.carousel-dot.active { background: #fff; transform: scale(1.2); }

/* ---------- Galerie d'images en Slider ---------- */
.gallery-slider-wrapper {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: flex;
  align-items: center;
}
.gallery-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 10px 0;
  width: 100%;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-item {
  flex: 0 0 300px;
  scroll-snap-align: start;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--white);
  border: 4px solid var(--white);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  position: relative;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--radius) - 4px);
  transition: transform 0.5s var(--ease-out);
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--ink);
  color: var(--white);
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  z-index: 10;
  transition: background 0.3s, transform 0.3s;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.gallery-arrow:hover { 
  background: var(--green); 
  transform: translateY(-50%) scale(1.1); 
}
.gallery-prev { inset-inline-start: 10px; }
.gallery-next { inset-inline-end: 10px; }

@media (max-width: 768px) {
  .gallery-item { flex: 0 0 240px; }
  .gallery-prev { inset-inline-start: 0px; }
  .gallery-next { inset-inline-end: 0px; }
  .gallery-arrow { width: 40px; height: 40px; font-size: 14px; }
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1000000;
  inset: 0;
  background-color: rgba(15, 21, 18, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.lightbox.is-active { display: flex; opacity: 1; }
.lightbox img {
  max-width: 85vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 50px rgba(0,0,0,0.6);
  user-select: none;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 44px;
  color: #fff;
  transition: color 0.3s;
  z-index: 10;
  line-height: 1;
}
.lightbox-close:hover { color: var(--accent); }
.lightbox-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255,255,255,0.2);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  font-size: 20px;
  display: grid;
  place-items: center;
  transition: all 0.3s ease;
  z-index: 10;
}
.lightbox-btn:hover { background: var(--green); border-color: var(--green); }
.lightbox-prev { inset-inline-start: 30px; }
.lightbox-next { inset-inline-end: 30px; }

[dir="rtl"] .lightbox-close { right: auto; left: 30px; }

@media (max-width: 768px) {
  .lightbox-btn { width: 44px; height: 44px; font-size: 16px; }
  .lightbox-prev { inset-inline-start: 10px; }
  .lightbox-next { inset-inline-end: 10px; }
  .lightbox-close { top: 10px; right: 15px; }
  [dir="rtl"] .lightbox-close { left: 15px; }
}

/* ============================================
   Ajouts : accessibilité, RTL, devis, préférences
   ============================================ */

/* Polices et tailles pour la version arabe */
[dir="rtl"] { --f-display: 'Cairo', sans-serif; --f-sans: 'Cairo', sans-serif; }
[dir="rtl"] .hero-title { font-size: clamp(32px, 6vw, 85px); font-weight: 700; line-height: 1.2; }
[dir="rtl"] .section-title { font-size: clamp(28px, 4vw, 60px); font-weight: 700; line-height: 1.3; }

/* Lien d'évitement (visible uniquement au clavier) */
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 100001;
  background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 100px;
  font-size: 14px; font-weight: 600; transform: translateY(-200%); transition: transform .2s;
}
.skip-link:focus { transform: translateY(0); }
[dir="rtl"] .skip-link { left: auto; right: 12px; }

/* Focus visible pour la navigation au clavier */
:focus-visible { outline: 2px solid var(--green-glow); outline-offset: 3px; }
.gallery-item:focus-visible { outline-offset: -4px; }

/* Les boutons du site n'ont pas de style navigateur */
button { cursor: pointer; color: inherit; padding: 0; }
.nav-cta { font-family: inherit; }

/* Section head centré (remplace les styles en ligne) */
.section-head--center { text-align: center; }
.section-head--center .section-title { margin-bottom: 20px; }

/* Apparition douce des titres au scroll (seulement si JS actif) */
.js .reveal-line { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.js .reveal-line.is-in { opacity: 1; transform: none; }

/* Préchargeur / intro sautés lors des visites suivantes */
.no-intro .preloader { display: none; }
.no-intro .hero-title .reveal { animation-delay: 0s !important; animation-duration: .5s; }

/* Cartes masquées par les filtres */
.product-card[hidden] { display: none; }

.noscript-msg { text-align: center; max-width: 60ch; margin: 0 auto; color: var(--ink-2); }
.noscript-msg a { text-decoration: underline; }

/* Carrousels, galerie et lightbox : toujours de gauche à droite
   (comportement identique en FR et en AR) */
.carousel-container, .carousel-dots, .gallery-slider-wrapper, .lightbox { direction: ltr; }

/* Les vignettes de la galerie sont des <button> (accessibles au clavier) */
.gallery-item { display: block; padding: 0; cursor: zoom-in; }

.lightbox-close, .modale-fermer { background: none; border: none; cursor: pointer; }

/* ---------- Calculateur de devis ---------- */
.modale-contenu { max-width: 550px; }
.devis-form {
  display: flex; flex-direction: column; gap: 16px;
  padding-bottom: 20px; border-bottom: 2px solid var(--line);
}
.devis-label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 500; color: var(--ink); }
[dir="rtl"] .devis-label { font-size: 15px; font-weight: 600; }
.devis-input {
  width: 100%; padding: 12px; border-radius: 8px; border: 1px solid var(--line);
  font-family: var(--f-sans); font-size: 16px; background: var(--white); color: var(--ink);
}
.btn {
  display: flex; justify-content: center; align-items: center; gap: 8px;
  border-radius: 100px; font-weight: 600; font-family: var(--f-sans); cursor: pointer;
  transition: background .3s, color .3s;
}
[dir="rtl"] .btn { font-weight: 700; }
.btn--secondary { background: var(--bg-2); color: var(--ink); border: 1px solid var(--line); padding: 12px; font-size: 14px; }
.btn--secondary:hover { background: var(--line); }
.btn--primary { width: 100%; background: var(--green); color: var(--white); border: none; padding: 16px; font-size: 16px; }
.btn--primary:hover { background: var(--green-2); }

.zone-panier { padding-top: 20px; }
.zone-panier[hidden] { display: none; }
.panier-titre { margin: 0 0 16px; font-family: var(--f-display); color: var(--ink); font-size: 20px; }
.panier-liste { list-style: none; padding: 0; margin: 0 0 20px; max-height: 250px; overflow-y: auto; }
.panier-item {
  padding: 12px 0; border-bottom: 1px dashed var(--line);
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
}
.panier-item-nom { display: block; color: var(--ink); font-size: 15px; margin-bottom: 4px; }
.panier-item-detail { font-size: 13px; color: var(--mute); }
.panier-item-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.panier-item-prix { color: var(--green); font-family: var(--f-display); font-size: 16px; white-space: nowrap; }
.panier-supprimer {
  background: rgba(200,0,0,0.08); color: #b00020; border: none;
  width: 28px; height: 28px; border-radius: 50%; font-size: 16px;
  display: flex; align-items: center; justify-content: center; transition: background .3s;
}
.panier-supprimer:hover { background: rgba(200,0,0,0.18); }
.panier-total {
  background: var(--bg-2); padding: 16px 20px; border-radius: 12px;
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px;
}
.panier-total span { font-weight: 600; color: var(--ink-2); }
.panier-total strong { font-size: 22px; color: var(--ink); }
.panier-note { margin: 0 0 16px; font-size: 12.5px; color: var(--mute); }

/* ---------- Moins d'animations si l'utilisateur le demande ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .preloader { display: none; }
  .js .reveal-line { opacity: 1; transform: none; }
}

/* Arabe : pas de police monospace ni d'espacement entre les lettres
   (cela casse les liaisons de l'écriture arabe) */
[dir="rtl"] .eyebrow, [dir="rtl"] .ct-label, [dir="rtl"] .pc-cat, [dir="rtl"] .stat p,
[dir="rtl"] .hero-kicker, [dir="rtl"] .hero-meta .pill, [dir="rtl"] .scroll-hint,
[dir="rtl"] .footer-bottom, [dir="rtl"] .preloader-caption {
  font-family: var(--f-sans); letter-spacing: 0; text-transform: none;
}
[dir="rtl"] .eyebrow, [dir="rtl"] .ct-label, [dir="rtl"] .pc-cat, [dir="rtl"] .stat p { font-size: 13px; }
[dir="rtl"] .ct-arrow { right: auto; left: 24px; }
[dir="rtl"] .social-float { right: auto; left: 2rem; }
@media (max-width: 640px){ [dir="rtl"] .social-float { left: 1.5rem; } }

/* ---------- Bouton « + Devis » sur chaque ligne de prix ---------- */
.spec-row { flex-wrap: wrap; gap: 6px 12px; }
.spec-actions { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }
.spec-add {
  background: var(--ink); color: var(--bg); border-radius: 100px;
  padding: 5px 12px; font-size: 12px; font-weight: 600; white-space: nowrap;
  transition: background .25s;
}
.spec-add:hover { background: var(--green); }
.product-card h3 a { color: inherit; }
.product-card h3 a:hover { color: var(--green); }
.pc-link { display: inline-block; margin-top: 4px; font-size: 13.5px; font-weight: 600; color: var(--green); }
.pc-link:hover { text-decoration: underline; }
@keyframes highlight { 0%, 100% { box-shadow: 0 0 0 0 rgba(42,138,90,0); } 30% { box-shadow: 0 0 0 4px rgba(42,138,90,.35); } }
.devis-input.is-highlight { animation: highlight 1.2s ease; border-color: var(--green-glow); }

/* ---------- Coordonnées dans le devis ---------- */
.devis-client { border: none; padding: 0; margin: 0 0 16px; }
.devis-client legend { padding: 0; }
.devis-optionnel { font-weight: 400; color: var(--mute); font-size: 12.5px; }
.devis-client-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 520px) { .devis-client-grid { grid-template-columns: 1fr; } }

/* ---------- Fiches produits ---------- */
.product-page { padding-top: clamp(120px, 14vw, 170px); background: var(--bg-2); }
.breadcrumb {
  max-width: 1300px; margin: 0 auto 28px; display: flex; flex-wrap: wrap; gap: 8px;
  font-size: 13px; color: var(--mute);
}
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 600; }
.product-page-grid {
  max-width: 1300px; margin: 0 auto; display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start;
}
.product-page-title {
  font-family: var(--f-display); font-weight: 500; font-size: clamp(40px, 5.5vw, 80px);
  line-height: 1; letter-spacing: -.02em; margin: 16px 0 20px; color: var(--ink);
}
[dir="rtl"] .product-page-title { font-weight: 700; line-height: 1.2; letter-spacing: 0; }
.product-page-lead { font-size: clamp(16px, 1.3vw, 19px); line-height: 1.6; color: var(--ink-2); margin: 0 0 20px; max-width: 58ch; }
.product-page-points { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; }
.product-page-points li { position: relative; padding-inline-start: 26px; font-size: 15px; color: var(--ink-2); }
.product-page-points li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .45em; width: 12px; height: 7px;
  border-inline-start: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg);
}
[dir="rtl"] .product-page-points li::before { transform: rotate(45deg); }
.product-page-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.product-page-actions .btn { width: auto; padding: 15px 26px; font-size: 15px; }
.btn--whatsapp { background: #25D366; color: #fff; border: none; }
.btn--whatsapp:hover { background: #1ebe5b; }
.product-detail .product-card { flex: none; width: 100%; animation: none; }
.product-detail .product-card:hover { transform: none; }
@media (max-width: 900px) { .product-page-grid { grid-template-columns: 1fr; } }

.related { padding-top: 60px; padding-bottom: 60px; }
.related-title { max-width: 1300px; margin: 0 auto 20px; font-family: var(--f-display); font-weight: 500; font-size: clamp(26px, 3vw, 40px); }
[dir="rtl"] .related-title { font-weight: 700; }
.related-list {
  max-width: 1300px; margin: 0 auto; padding: 0; list-style: none;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px;
}
.related-list a {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 18px 20px; background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  font-weight: 600; transition: background .3s, color .3s;
}
.related-list a:hover { background: var(--ink); color: var(--bg); }
