/* =========================================================
   CGT Alkor — Refonte 2026 · Design system (mockup)
   Premium · Architectural · Editorial · Mobile-first
   ========================================================= */

/* ────────────────────────────────────────────────────
   Indique au navigateur que toute l'UI est en mode sombre :
   les contrôles natifs (select, input, scrollbar) utilisent
   le thème sombre du système → plus de fond blanc dans les
   <select> déroulants sur Chrome / Edge / Firefox.
   ──────────────────────────────────────────────────── */
html { color-scheme: dark; }

/* ---------- Tokens ---------- */
:root {
  /* Surfaces — profondeur en couches (esprit piscine / nuit) */
  --bg-deep: #030f1e;
  --bg-base: #052D5E;
  --bg-elev: #082c52;
  --bg-surface: #0e3a66;
  --bg-glass: rgba(8, 44, 82, 0.62);

  /* Accents */
  --accent: #61B1BC;
  --accent-soft: #9AD4DC;
  --accent-deep: #2A6F7A;
  --accent-muted: rgba(97, 177, 188, 0.22);
  /* Filet « précieux » très discret (luxe architectural) */
  --line-gold: rgba(232, 218, 196, 0.35);
  --warm: #E8DAC4;
  --warm-deep: #B89C77;

  /* Text */
  --text: #F4F7FA;
  --text-2: #B8CBE0;
  --text-3: #7E98B8;
  --text-on-accent: #04121f;

  /* Borders */
  --hairline: rgba(255, 255, 255, 0.07);
  --hairline-2: rgba(255, 255, 255, 0.14);
  --hairline-strong: rgba(255, 255, 255, 0.26);
  --border-glow: linear-gradient(
    135deg,
    rgba(97, 177, 188, 0.45) 0%,
    rgba(255, 255, 255, 0.12) 40%,
    rgba(97, 177, 188, 0.2) 100%
  );

  /* Radius — coins légèrement plus généreux (luxe éditorial) */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;

  /* Spacing scale */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;

  /* Type — Cormorant = présence architecturale ; Inter = rigueur UI */
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  /* Container */
  --max: 1344px;
  --max-narrow: 980px;

  /* Shadows — plus doux, plus longs (matière coûteuse) */
  --shadow-1:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 2px 0 rgba(0, 0, 0, 0.12) inset,
    0 20px 50px rgba(0, 0, 0, 0.45);
  --shadow-2: 0 32px 80px rgba(0, 0, 0, 0.55);
  --shadow-card-hover: 0 40px 100px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(97, 177, 188, 0.12);
  --glow: 0 0 0 1px rgba(97, 177, 188, 0.45), 0 24px 56px rgba(97, 177, 188, 0.14);

  /* Easings */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-luxe: cubic-bezier(0.33, 1, 0.68, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Reflets « vitrine » */
  --specular-top: linear-gradient(180deg, rgba(255, 255, 255, 0.11) 0%, transparent 42%);
  --glass-shine: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, transparent 42%, rgba(97, 177, 188, 0.05) 100%);

  /* Motion — reveals & surfaces « chères » */
  --ease-reveal: cubic-bezier(0.16, 1, 0.3, 1);
  --reveal-dur: 0.88s;
  --border-mega: rgba(97, 177, 188, 0.22);
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.011em;
  color: var(--text);
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(ellipse 100% 90% at 50% -15%, rgba(90, 160, 185, 0.12), transparent 50%),
    radial-gradient(ellipse 55% 45% at 110% 85%, rgba(97, 177, 188, 0.1), transparent 50%),
    radial-gradient(ellipse 50% 40% at -10% 60%, rgba(8, 74, 130, 0.45), transparent 55%),
    conic-gradient(from 210deg at 80% 20%, rgba(97, 177, 188, 0.04), transparent 25%, rgba(5, 45, 94, 0.15), transparent 55%),
    radial-gradient(ellipse 120% 85% at 50% 100%, rgba(97, 177, 188, 0.06), transparent 52%),
    linear-gradient(180deg, var(--bg-deep) 0%, #061a32 42%, #030d18 100%),
    radial-gradient(ellipse 150% 120% at 50% 50%, transparent 20%, rgba(0, 5, 14, 0.75) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-feature-settings: 'kern' 1, 'liga' 1;
}

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

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

button { font-family: inherit; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 3px;
}
:focus:not(:focus-visible) {
  outline: none;
}

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

/* Subtle film-grain — sous le header / overlays UI (évite de « manger » logo & nav) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  opacity: 0.042;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* Ambiant : reflet d'eau + maille (hyper moderne, très doux) */
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 85% 8%, rgba(97, 177, 188, 0.16), transparent 50%),
    radial-gradient(ellipse 50% 35% at 10% 90%, rgba(5, 45, 94, 0.55), transparent 55%),
    radial-gradient(ellipse 80% 70% at 50% 120%, rgba(97, 177, 188, 0.06), transparent 45%);
  background-size: 100% 100%, 100% 100%, 130% 130%;
  background-position: 0% 0%, 0% 0%, 50% 100%;
  filter: blur(0);
}
@media (prefers-reduced-motion: no-preference) {
  body::after {
    animation: ambientMesh 28s ease-in-out infinite alternate;
  }
}
@keyframes ambientMesh {
  0% {
    background-position: 0% 0%, 0% 0%, 50% 100%;
    opacity: 1;
  }
  100% {
    background-position: 8% 4%, -6% -4%, 45% 92%;
    opacity: 0.92;
  }
}

/* ---------- Couche luxe : séparateurs de page & respiration ---------- */
.container.section {
  position: relative;
}
.container.section::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: min(100% - 32px, var(--max));
  height: 1px;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(97, 177, 188, 0.12) 18%,
    rgba(232, 218, 196, 0.22) 50%,
    rgba(97, 177, 188, 0.12) 82%,
    transparent 100%
  );
  opacity: 0.9;
}
.display {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.02;
  font-feature-settings: 'kern' 1, 'liga' 1, 'onum' 1;
  text-wrap: balance;
}
.serif { font-family: var(--serif); }
.eyebrow {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  color: var(--accent-soft);
}
/* Filet architectural — en-têtes de section */
.section-head .eyebrow {
  position: relative;
  display: inline-block;
  padding-left: 48px;
}
.section-head .eyebrow::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 36px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent) 45%, var(--line-gold));
  transform: translateY(-50%);
  opacity: 0.9;
}
@media (prefers-reduced-motion: no-preference) {
  .section-head .eyebrow::before {
    animation: eyebrowGlimmer 5s ease-in-out infinite;
  }
}
@keyframes eyebrowGlimmer {
  0%, 100% { opacity: 0.75; filter: brightness(1); }
  50% { opacity: 1; filter: brightness(1.25); }
}
.mega-inner .eyebrow {
  padding-left: 0;
  letter-spacing: 0.22em;
  color: var(--text-3);
}
.mega-inner .eyebrow::before { display: none; }
.kicker { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.22em; color: var(--text-3); }
.lede {
  font-size: 18px;
  line-height: 1.68;
  color: var(--text-2);
  max-width: 58ch;
  letter-spacing: -0.01em;
}
.lede a {
  color: var(--accent-soft);
  text-decoration: underline;
  text-decoration-color: rgba(154, 212, 220, 0.4);
  text-underline-offset: 0.22em;
  transition: color 0.25s var(--ease-out), text-decoration-color 0.25s;
}
.lede a:hover {
  color: var(--accent);
  text-decoration-color: rgba(97, 177, 188, 0.85);
}
.muted { color: var(--text-3); }
.italic-serif { font-family: var(--serif); font-style: italic; font-weight: 400; }

h1.display { font-size: clamp(42px, 6.8vw, 92px); font-weight: 500; }
h2.display { font-size: clamp(34px, 4.6vw, 68px); font-weight: 500; }
h3.display { font-size: clamp(28px, 2.8vw, 44px); font-weight: 500; }
h4.display { font-size: clamp(22px, 2vw, 30px); font-weight: 500; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: clamp(20px, 4vw, 56px); }

.section { padding-block: clamp(72px, 12vw, 120px); }
.section-tight { padding-block: clamp(48px, 8vw, 72px); }
.section-xl { padding-block: clamp(96px, 14vw, 152px); }

.divider {
  height: 1px;
  margin-block: 52px;
  border: 0;
  background:
    radial-gradient(circle, rgba(154, 212, 220, 0.75) 0%, rgba(97, 177, 188, 0.35) 35%, transparent 70%) center / 7px 7px no-repeat,
    linear-gradient(
      90deg,
      transparent 0%,
      rgba(97, 177, 188, 0.12) 20%,
      var(--hairline-2) 48%,
      rgba(232, 218, 196, 0.32) 50%,
      var(--hairline-2) 52%,
      rgba(97, 177, 188, 0.12) 80%,
      transparent 100%
    );
  opacity: 0.95;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition:
    transform 0.5s var(--ease-luxe),
    box-shadow 0.4s var(--ease-out),
    background 0.35s,
    color 0.35s,
    border-color 0.35s;
  white-space: nowrap;
}
.btn-primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, var(--accent-soft) 0%, var(--accent) 42%, var(--accent-deep) 100%);
  color: var(--text-on-accent);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.35) inset,
    0 12px 32px rgba(97, 177, 188, 0.28),
    0 4px 12px rgba(0, 0, 0, 0.2);
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  left: -40%;
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgba(255, 255, 255, 0) 38%,
    rgba(255, 255, 255, 0.35) 50%,
    rgba(255, 255, 255, 0) 62%,
    transparent 100%
  );
  transform: translateX(-100%) skewX(-12deg);
  transition: transform 0s;
  pointer-events: none;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.45) inset,
    0 20px 48px rgba(97, 177, 188, 0.4),
    0 8px 20px rgba(0, 0, 0, 0.25),
    0 0 40px rgba(97, 177, 188, 0.2);
}
.btn-primary:hover::after {
  transition: transform 0.75s var(--ease-out);
  transform: translateX(280%) skewX(-12deg);
}
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.03) 100%);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px) saturate(1.15);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset;
}
.btn-ghost:hover {
  border-color: rgba(97, 177, 188, 0.6);
  color: var(--accent-soft);
  background: linear-gradient(180deg, rgba(97, 177, 188, 0.14) 0%, rgba(97, 177, 188, 0.05) 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 12px 36px rgba(0, 0, 0, 0.2);
}
.btn-link {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--accent); font-size: 13px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.16em;
  transition: gap 0.3s var(--ease-out);
}
.btn-link svg { transition: transform 0.3s var(--ease-out); }
.btn-link:hover { gap: 16px; }
.btn-link:hover svg { transform: translateX(4px); }

/* Pill / tag */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  border: 1px solid var(--hairline-2);
  border-radius: var(--r-pill);
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.04);
}
.pill-accent {
  color: var(--accent-soft);
  border-color: rgba(97, 177, 188, 0.45);
  background: rgba(97, 177, 188, 0.08);
}

/* ---------- Header ---------- */
.announcement {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, var(--accent-deep) 0%, var(--accent) 48%, var(--accent-soft) 100%);
  color: var(--text-on-accent);
  padding: 13px 24px;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.55;
  border-bottom: 1px solid rgba(4, 18, 31, 0.12);
}
.announcement::after {
  content: "";
  position: absolute;
  inset: 0;
  left: -30%;
  width: 45%;
  background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0.22) 50%, transparent 100%);
  transform: skewX(-18deg);
  pointer-events: none;
  opacity: 0.65;
}
@media (prefers-reduced-motion: no-preference) {
  .announcement::after {
    animation: announcementSweep 11s ease-in-out infinite;
  }
}
@keyframes announcementSweep {
  0%, 10% { transform: translateX(-20%) skewX(-18deg); }
  45%, 55% { transform: translateX(380%) skewX(-18deg); }
  100% { transform: translateX(380%) skewX(-18deg); }
}
.announcement a {
  margin-inline: 4px;
  position: relative;
  z-index: 1;
}
.announcement strong { font-weight: 700; }

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, rgba(3, 15, 30, 0.78) 0%, rgba(3, 15, 30, 0.58) 100%);
  backdrop-filter: blur(24px) saturate(1.22);
  -webkit-backdrop-filter: blur(24px) saturate(1.22);
  border-bottom: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent, var(--hairline-2) 15%, var(--hairline-2) 85%, transparent) 1;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06),
    0 20px 48px rgba(0, 0, 0, 0.12);
  transition: background 0.45s var(--ease-luxe), border-color 0.35s, box-shadow 0.35s;
}
.header::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(97, 177, 188, 0.35) 22%,
    rgba(232, 218, 196, 0.25) 50%,
    rgba(97, 177, 188, 0.35) 78%,
    transparent 100%
  );
  opacity: 0.85;
  pointer-events: none;
}
.header.is-scrolled {
  background: rgba(3, 15, 30, 0.88);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

/* .nav layout défini plus bas en display:grid 3 colonnes */
.nav { padding-block: 14px; }
.nav-logo .ring { display: none; }

.nav-links { display: none; gap: 6px; align-items: center; }
@media (min-width: 1100px) { .nav-links { display: flex; } }

.nav-link {
  position: relative;
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.03em;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  color: var(--text-2);
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-link.has-sub::after {
  content: ""; display: inline-block; width: 6px; height: 6px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px); margin-left: 6px; opacity: 0.7;
}

.nav-tools { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-pill);
  color: var(--text-2);
  background: transparent; border: 1px solid transparent;
  transition: all 0.2s;
}
.icon-btn:hover { background: rgba(255,255,255,0.05); color: var(--text); }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 40px; padding: 0 12px;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.06em;
  border-radius: var(--r-pill);
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--hairline-2);
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.lang-btn:hover {
  color: var(--accent-soft);
  background: rgba(97, 177, 188, 0.1);
  border-color: rgba(97, 177, 188, 0.4);
}
.lang-btn svg {
  flex-shrink: 0;
  opacity: 0.85;
}

.menu-toggle { display: inline-flex; }
@media (min-width: 1100px) { .menu-toggle { display: none; } }

/* Drawer → styles délégués à shell.css (nouveau design refonte) */

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex; align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.hero-media {
  position: absolute; inset: 0; z-index: -2;
}
.hero-media img,
.hero-media video {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.06);
  animation: heroFloat 18s ease-in-out infinite alternate;
}
.hero-media video { background: var(--bg-deep); }
@keyframes heroFloat {
  0% { transform: scale(1.06) translateY(0); }
  100% { transform: scale(1.12) translateY(-16px); }
}

/* Manifeste home Strapi (HTML avec classes type Tailwind) */
.strapi-manifest {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(24px, 2.85vw, 40px);
  line-height: 1.26;
  letter-spacing: -0.02em;
  color: var(--text);
  /* Strapi renvoie beaucoup de \n dans le HTML : pre-line = une ligne par saut → colonne géante */
  white-space: normal;
  max-width: 68ch;
  margin-inline: auto;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.35), 0 0 80px rgba(97, 177, 188, 0.08);
  text-wrap: balance;
}
.strapi-manifest strong { font-weight: 600; color: rgba(244, 247, 250, 0.95); }
.strapi-manifest .font-lora { font-family: var(--serif); }
.strapi-manifest .italic { font-style: italic; }
.strapi-manifest .font-medium { font-weight: 500; }
.strapi-manifest .text-white { color: var(--text); }
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 130% 70% at 50% 115%, rgba(97, 177, 188, 0.14), transparent 42%),
    radial-gradient(ellipse 38% 32% at 82% 18%, rgba(154, 212, 220, 0.2), transparent 55%),
    radial-gradient(ellipse 32% 28% at 12% 38%, rgba(42, 111, 122, 0.35), transparent 58%),
    radial-gradient(ellipse 55% 45% at 55% 8%, rgba(97, 177, 188, 0.08), transparent 45%),
    linear-gradient(180deg, rgba(3, 15, 30, 0.78) 0%, rgba(3, 15, 30, 0.14) 34%, rgba(3, 15, 30, 0.48) 62%, rgba(3, 15, 30, 0.97) 100%),
    radial-gradient(ellipse 90% 60% at 70% 15%, rgba(97, 177, 188, 0.26), transparent 52%);
}
.hero-overlay::after {
  content: "";
  position: absolute;
  inset: -10%;
  transform-origin: 70% 0%;
  background: repeating-conic-gradient(
    from 0deg at 70% 0%,
    transparent 0deg,
    transparent 9deg,
    rgba(255, 255, 255, 0.02) 9deg,
    rgba(255, 255, 255, 0.055) 10deg,
    transparent 11deg,
    transparent 22deg
  );
  mix-blend-mode: soft-light;
  opacity: 0.55;
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-overlay::after {
    animation: heroLightShafts 45s linear infinite;
  }
}
@keyframes heroLightShafts {
  to { transform: rotate(360deg); }
}

.hero > .container.hero-content {
  max-width: min(1460px, 100%);
}

.hero-content {
  padding-block: 48px 96px;
  width: 100%;
}
.hero-catalog-note {
  margin-top: 32px;
  margin-bottom: 0;
  padding-top: 4px;
  font-size: 13px;
  max-width: min(68ch, 100%);
  line-height: 1.65;
}
.hero-catalog-note a {
  text-underline-offset: 2px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--r-pill);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.04) 100%);
  backdrop-filter: blur(18px) saturate(1.25);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 14px 44px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(97, 177, 188, 0.08);
}
.hero-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--accent-soft), var(--accent));
  box-shadow:
    0 0 0 4px rgba(97, 177, 188, 0.2),
    0 0 20px rgba(97, 177, 188, 0.55);
}
.hero h1 {
  margin: 22px 0 16px;
  max-width: min(44ch, 100%);
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.1),
    0 2px 3px rgba(0, 0, 0, 0.35),
    0 28px 90px rgba(0, 0, 0, 0.42),
    0 0 100px rgba(97, 177, 188, 0.2),
    0 0 160px rgba(97, 177, 188, 0.08);
}
.hero h1 em {
  font-style: italic;
  background: linear-gradient(180deg, var(--accent-soft), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub { max-width: min(72ch, 100%); color: var(--text-2); font-size: 17px; line-height: 1.55; }
.hero-sub strong {
  color: rgba(244, 247, 250, 0.95);
  font-weight: 600;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-meta {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent, var(--hairline-2) 12%, var(--hairline-2) 88%, transparent) 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 14px;
}
@media (min-width: 800px) { .hero-meta { grid-template-columns: repeat(4, 1fr); gap: 18px 16px; } }
.hero-meta-item {
  padding: 20px 18px;
  border-radius: var(--r-md);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 45%, rgba(4, 23, 48, 0.15) 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 18px 40px rgba(0, 0, 0, 0.18);
  transition:
    border-color 0.45s var(--ease-out),
    box-shadow 0.45s var(--ease-out),
    transform 0.55s var(--ease-luxe);
}
.hero-meta-item:hover {
  border-color: rgba(97, 177, 188, 0.32);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 24px 56px rgba(0, 0, 0, 0.28),
    0 0 48px rgba(97, 177, 188, 0.06);
  transform: translateY(-2px);
}
.hero-meta-item .num {
  font-family: var(--serif);
  font-size: clamp(30px, 3.5vw, 40px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35), 0 0 48px rgba(97, 177, 188, 0.12);
}
.hero-meta-item .lab { display: block; font-size: 12px; color: var(--text-3); margin-top: 8px; text-transform: uppercase; letter-spacing: 0.12em; }

/* Scroll cue — point + ligne + libellé (ordre visuel lisible au-dessus de la demo-bar) */
.scroll-cue {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: max(5.75rem, calc(4.75rem + env(safe-area-inset-bottom, 0px)));
  z-index: 25;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 8px 20px 4px;
  margin: 0;
  cursor: pointer;
  text-decoration: none;
  color: rgba(244, 247, 250, 0.92);
  transition: color 0.25s var(--ease-out), text-shadow 0.25s;
}
.scroll-cue-track {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.scroll-cue-dot {
  width: 5px;
  height: 5px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent-soft);
  box-shadow: 0 0 14px rgba(154, 212, 220, 0.7);
  animation: cuePulse 2s var(--ease-in-out) infinite;
}
.scroll-cue-line {
  width: 1px;
  height: 36px;
  flex-shrink: 0;
  background: linear-gradient(180deg, rgba(97, 177, 188, 0.55), rgba(97, 177, 188, 0.1), transparent);
  animation: cuePulse 2s var(--ease-in-out) infinite;
}
.scroll-cue-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-indent: 0.28em; /* compensation optique du letter-spacing sur le dernier caractère */
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.85),
    0 0 20px rgba(0, 0, 0, 0.45),
    0 0 28px rgba(97, 177, 188, 0.35);
}
.scroll-cue:hover {
  color: var(--accent-soft);
}
.scroll-cue:hover .scroll-cue-label {
  text-shadow:
    0 1px 3px rgba(0, 0, 0, 0.9),
    0 0 32px rgba(97, 177, 188, 0.55);
}
.scroll-cue:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 6px;
  border-radius: var(--r-sm);
}
@keyframes cuePulse { 0%,100% { opacity: 0.4; } 50% { opacity: 1; } }

/* ---------- Trust strip / Stats ---------- */
.stats {
  display: grid; gap: 0;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
@media (min-width: 800px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat {
  padding: 32px 24px;
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
@media (min-width: 800px) {
  .stat { border-bottom: 0; }
  .stat:last-child { border-right: 0; }
}
.stat:nth-child(2n) { border-right: 0; }
@media (min-width: 800px) { .stat:nth-child(2n) { border-right: 1px solid var(--hairline); } .stat:last-child { border-right: 0; } }
.stat .num { font-family: var(--serif); font-size: 40px; line-height: 1; letter-spacing: -0.02em; }
.stat .lab { color: var(--text-3); font-size: 12px; text-transform: uppercase; letter-spacing: 0.16em; margin-top: 12px; display: block; }

/* ---------- Section header ---------- */
.section-head {
  display: grid;
  gap: 20px;
  margin-bottom: clamp(40px, 6vw, 64px);
}
@media (min-width: 1024px) {
  .section-head {
    grid-template-columns: 1fr 1.4fr; align-items: end; gap: 64px;
  }
}
.section-head h2 { margin: 0; max-width: 18ch; position: relative; }
.section-head h2.display {
  background: linear-gradient(
    188deg,
    #fdfeff 0%,
    rgba(244, 247, 250, 0.97) 32%,
    rgba(154, 212, 220, 0.78) 78%,
    rgba(97, 177, 188, 0.55) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-head h2.display::after {
  content: "";
  display: block;
  width: min(120px, 28%);
  height: 2px;
  margin-top: 14px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), rgba(232, 218, 196, 0.65), transparent);
  opacity: 0.85;
}
.section-head .lede { margin: 0; }

/* ---------- Product cards (grid) ---------- */
.products-grid {
  display: grid; gap: 16px;
  /* 2 colonnes dès 360px (mobile-first) */
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 720px) { .products-grid { gap: 20px; } }
@media (min-width: 1100px) { .products-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

.product-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-md);
  background:
    var(--glass-shine),
    linear-gradient(165deg, rgba(14, 58, 102, 0.38) 0%, rgba(8, 44, 82, 0.92) 100%);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-1);
  transition:
    transform 0.65s var(--ease-luxe),
    border-color 0.4s var(--ease-out),
    box-shadow 0.5s var(--ease-out);
  display: flex;
  flex-direction: column;
}
.product-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 4;
  pointer-events: none;
  border-radius: var(--r-md) var(--r-md) 0 0;
  background: linear-gradient(90deg, transparent 2%, rgba(42, 111, 122, 0.4) 22%, var(--accent) 50%, rgba(154, 212, 220, 0.95) 72%, transparent 98%);
  opacity: 0.75;
  transition: opacity 0.45s var(--ease-out);
}
.product-card:hover::before { opacity: 1; }
.product-card:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: rgba(97, 177, 188, 0.42);
  box-shadow:
    var(--shadow-card-hover),
    0 0 0 1px rgba(232, 218, 196, 0.1),
    0 0 80px rgba(97, 177, 188, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -32px 64px rgba(3, 15, 30, 0.45);
}
.product-card:focus-within {
  outline: 2px solid rgba(97, 177, 188, 0.55);
  outline-offset: 4px;
  border-radius: var(--r-md);
}
.product-card:focus-within .product-card-link:focus {
  outline: none;
}
.product-card-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
}
/* Ratio carré sur mobile (2 colonnes) pour limiter la hauteur de carte */
@media (max-width: 719px) {
  .product-card-media { aspect-ratio: 1 / 1; }
}
.product-card-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: var(--specular-top);
  opacity: 0.55;
  transition: opacity 0.45s var(--ease-out);
}
.product-card:hover .product-card-media::before { opacity: 0.78; }
.product-card-media img {
  position: relative;
  z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}
.product-card:hover .product-card-media img { transform: scale(1.07); }
.product-card-media::after {
  content: "";
  position: absolute; inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 60%, rgba(4,23,48,0.6) 100%);
}
.product-card-tag {
  position: absolute; top: 16px; left: 16px;
  z-index: 3;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-size: 10px; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase;
  background: rgba(4,23,48,0.55);
  backdrop-filter: blur(8px);
  border: 1px solid var(--hairline-2);
  color: var(--text);
}
.product-card-tag.new {
  background: linear-gradient(145deg, var(--accent-soft) 0%, var(--accent) 48%, var(--accent-deep) 100%);
  color: var(--text-on-accent);
  border-color: transparent;
  box-shadow: 0 0 22px rgba(97, 177, 188, 0.35), 0 1px 0 rgba(255, 255, 255, 0.25) inset;
}
@media (prefers-reduced-motion: no-preference) {
  .product-card-tag.new {
    animation: tagPulse 3s ease-in-out infinite;
  }
}
@keyframes tagPulse {
  0%, 100% { box-shadow: 0 0 18px rgba(97, 177, 188, 0.32), 0 1px 0 rgba(255, 255, 255, 0.22) inset; }
  50% { box-shadow: 0 0 36px rgba(154, 212, 220, 0.5), 0 1px 0 rgba(255, 255, 255, 0.3) inset; }
}
.product-card-body {
  padding: 22px 22px 24px;
  display: flex; flex-direction: column; gap: 8px;
}
.product-card-body .ref { font-size: 11px; color: var(--text-3); letter-spacing: 0.18em; text-transform: uppercase; }
.product-card-body .name {
  font-family: var(--serif);
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 500;
  letter-spacing: -0.02em;
}
.product-card-body .desc { font-size: 13px; color: var(--text-3); }
.product-card-foot {
  margin-top: auto;
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 22px 20px;
  border-top: 1px solid var(--hairline);
}
a.product-card-media.product-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.product-card-body a.name-link {
  color: inherit;
  text-decoration: none;
}
.product-card-body a.name-link:hover .name {
  color: var(--accent-soft);
}

/* ---------- Editorial split (image + text) ---------- */
.split {
  display: grid; gap: 32px; align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) {
  .split { grid-template-columns: 1.05fr 1fr; gap: 64px; }
  .split.reverse { grid-template-columns: 1fr 1.05fr; }
  .split.reverse .split-media { order: 2; }
}
.split-media {
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 4/3;
  border: 1px solid rgba(97, 177, 188, 0.12);
  box-shadow:
    var(--shadow-1),
    0 0 80px rgba(97, 177, 188, 0.05);
  position: relative;
  transition: border-color 0.45s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.split-media:hover {
  border-color: rgba(97, 177, 188, 0.35);
  box-shadow:
    var(--shadow-card-hover),
    0 0 100px rgba(97, 177, 188, 0.06);
}
.split-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset;
}
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-text h2 { margin: 12px 0 16px; }
.split-text .lede { margin-bottom: 24px; }
.split-text a:not(.btn-link) {
  color: var(--accent-soft);
  text-decoration: underline;
  text-decoration-color: rgba(154, 212, 220, 0.35);
  text-underline-offset: 0.2em;
  transition: color 0.25s, text-decoration-color 0.25s;
}
.split-text a:not(.btn-link):hover {
  color: var(--accent);
  text-decoration-color: rgba(97, 177, 188, 0.85);
}

/* ---------- Two-up category cards (Résidentiel / Commercial) ---------- */
.duo {
  display: grid; gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) { .duo { grid-template-columns: 1fr 1fr; } }

.duo-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-md);
  aspect-ratio: 4/5;
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-1);
  transition:
    box-shadow 0.55s var(--ease-out),
    transform 0.65s var(--ease-luxe),
    border-color 0.45s var(--ease-out);
  isolation: isolate;
}
.duo-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: inherit;
  opacity: 0;
  box-shadow:
    0 0 0 1px rgba(97, 177, 188, 0.35),
    0 0 48px rgba(97, 177, 188, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: opacity 0.45s var(--ease-out);
}
.duo-card:hover::before { opacity: 1; }
.duo-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-6px) scale(1.008);
  border-color: rgba(97, 177, 188, 0.35);
}
@media (min-width: 900px) { .duo-card { aspect-ratio: 3/4; } }
.duo-card img {
  position: relative;
  z-index: 0;
  width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out);
}
.duo-card:hover img { transform: scale(1.05); }
.duo-card::after {
  content: ""; position: absolute; inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(185deg, rgba(4, 23, 48, 0.05) 12%, rgba(4, 23, 48, 0.08) 35%, rgba(4, 23, 48, 0.9) 100%);
}
.duo-card-content {
  position: absolute; inset: auto 0 0 0; z-index: 3;
  padding: 32px;
  display: flex; flex-direction: column; gap: 12px;
}
.duo-card .tag { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); }
.duo-card h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(28px, 3.2vw, 48px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

/* Projets — titres courts + accroche issu CMS en petit corps (évite les paragraphes en pseudo-titre géant tronqués) */
.duo-card h3.home-proj-heading {
  font-size: clamp(21px, 2.35vw, 30px);
  line-height: 1.08;
  max-width: 20ch;
}
.duo-card-teaser {
  margin: 0;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-2);
  font-weight: 400;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.duo-card-teaser:empty {
  display: none;
}

/* ---------- Manifesto ---------- */
.manifesto {
  text-align: center;
  max-width: 920px;
  margin-inline: auto;
  padding-block: clamp(80px, 12vw, 128px);
  position: relative;
}
/* Bloc manifeste injecté depuis Strapi : plus large, moins de hauteur perdue aux sauts forcés */
.manifesto:has(.strapi-manifest) {
  max-width: min(1120px, 96vw);
  padding-block: clamp(56px, 9vw, 104px);
}
.manifesto::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  width: min(720px, 95vw);
  height: min(280px, 50vw);
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(97, 177, 188, 0.09), transparent 68%);
  z-index: -1;
  filter: blur(2px);
}
.manifesto::before {
  content: "";
  display: block;
  width: 1px;
  height: 48px;
  margin: 0 auto 32px;
  background: linear-gradient(180deg, transparent, var(--accent), var(--line-gold), transparent);
  opacity: 0.65;
}
@media (prefers-reduced-motion: no-preference) {
  .manifesto::before {
    animation: manifestoStem 6s ease-in-out infinite;
  }
}
@keyframes manifestoStem {
  0%, 100% { opacity: 0.55; filter: brightness(1); transform: scaleY(1); }
  50% { opacity: 0.95; filter: brightness(1.2); transform: scaleY(1.06); }
}
.manifesto p {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(26px, 3.2vw, 42px);
  line-height: 1.32;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0;
}
.manifesto p::before,
.manifesto p::after {
  font-style: normal;
  color: var(--accent);
  opacity: 0.7;
}
.manifesto p::before { content: "«\00a0"; margin-right: 4px; }
.manifesto p::after { content: "\00a0»"; margin-left: 4px; }

/* ---------- Projects gallery ---------- */
.projects-grid {
  display: grid; gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .projects-grid {
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: 320px 320px;
    gap: 20px;
  }
}
.project {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-md);
  height: 280px;
  border: 1px solid var(--hairline);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
  transition:
    transform 0.6s var(--ease-luxe),
    border-color 0.35s var(--ease-out),
    box-shadow 0.5s var(--ease-out);
}
.project::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  background: var(--specular-top);
  opacity: 0.35;
  transition: opacity 0.35s;
}
.project:hover {
  transform: translateY(-6px);
  border-color: rgba(97, 177, 188, 0.38);
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(97, 177, 188, 0.12),
    0 0 64px rgba(97, 177, 188, 0.08);
}
.project:hover::before { opacity: 0.5; }
@media (min-width: 720px) {
  .project { height: 100%; }
  .project.large { grid-column: span 4; grid-row: span 2; }
  .project.tall { grid-column: span 2; grid-row: span 1; }
  .project.wide { grid-column: span 2; grid-row: span 1; }
}
.project img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.project:hover img { transform: scale(1.05); }
.project-content {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: 24px;
  background: linear-gradient(180deg, transparent, rgba(4,23,48,0.88));
  color: var(--text);
}
.project-content .ti { font-family: var(--serif); font-size: 22px; font-weight: 500; }
.project-content .me { font-size: 12px; color: var(--text-3); letter-spacing: 0.12em; text-transform: uppercase; margin-top: 4px; }

/* ---------- Hub cards (FAQ, Blog, Pro) ---------- */
.hub {
  display: grid; gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) { .hub { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); } }
.hub-card {
  position: relative;
  padding: 32px 28px;
  border-radius: var(--r-md);
  background:
    var(--glass-shine),
    linear-gradient(160deg, rgba(255, 255, 255, 0.065) 0%, rgba(255, 255, 255, 0.014) 52%, rgba(8, 44, 82, 0.4) 100%);
  border: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 300px;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.14),
    0 1px 0 rgba(255, 255, 255, 0.05) inset;
  backdrop-filter: blur(8px);
  transition:
    border-color 0.45s var(--ease-out),
    transform 0.55s var(--ease-luxe),
    box-shadow 0.45s var(--ease-out);
}
.hub-card:hover {
  border-color: rgba(97, 177, 188, 0.38);
  transform: translateY(-6px);
  box-shadow:
    0 28px 64px rgba(0, 0, 0, 0.38),
    0 0 48px rgba(97, 177, 188, 0.06),
    0 1px 0 rgba(255, 255, 255, 0.07) inset;
}
.hub-card .ic {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-pill);
  background: linear-gradient(145deg, rgba(97, 177, 188, 0.18), rgba(97, 177, 188, 0.06));
  color: var(--accent-soft);
  border: 1px solid rgba(97, 177, 188, 0.35);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset;
  transition:
    transform 0.65s var(--ease-spring),
    border-color 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out),
    background 0.35s;
}
.hub-card:hover .ic {
  transform: rotate(-10deg) scale(1.08);
  border-color: rgba(154, 212, 220, 0.55);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 0 28px rgba(97, 177, 188, 0.22);
  background: linear-gradient(145deg, rgba(97, 177, 188, 0.28), rgba(97, 177, 188, 0.09));
}
.hub-card h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.hub-card p { color: var(--text-3); margin: 0; font-size: 14px; }
.hub-card .btn-link { margin-top: auto; }

/* ---------- Configurator promo ---------- */
.configurator {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  border: 1px solid rgba(97, 177, 188, 0.22);
  background:
    radial-gradient(ellipse 90% 70% at 12% -10%, rgba(97, 177, 188, 0.16), transparent 52%),
    radial-gradient(ellipse 50% 50% at 95% 100%, rgba(5, 45, 94, 0.45), transparent 55%),
    linear-gradient(145deg, var(--bg-elev) 0%, var(--bg-base) 100%);
  padding: clamp(52px, 8vw, 92px) clamp(28px, 5vw, 64px);
  display: grid;
  gap: 44px;
  align-items: center;
  box-shadow:
    var(--shadow-1),
    0 0 80px rgba(97, 177, 188, 0.06);
}
.configurator::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.06) 48%, transparent 62%);
  opacity: 0.65;
  animation: configuratorSheen 14s ease-in-out infinite;
}
@keyframes configuratorSheen {
  0%, 100% { transform: translateX(-8%) skewX(-6deg); opacity: 0.45; }
  50% { transform: translateX(8%) skewX(-6deg); opacity: 0.75; }
}
@media (min-width: 1024px) { .configurator { grid-template-columns: 1fr 1fr; } }
.configurator h2 { margin: 12px 0 16px; }
.configurator-visual {
  position: relative; aspect-ratio: 1/1; max-width: 480px; margin-inline: auto; width: 100%;
  background:
    radial-gradient(circle at 50% 50%, rgba(97,177,188,0.35), transparent 60%),
    conic-gradient(from 0deg, var(--accent-deep), var(--accent), var(--bg-elev), var(--accent-deep));
  border-radius: 50%;
  filter: drop-shadow(0 30px 60px rgba(97,177,188,0.25));
  animation: spinSlow 50s linear infinite;
}
.configurator-visual::after {
  content: ""; position: absolute; inset: 16%; border-radius: 50%;
  background: var(--bg-deep);
  border: 1px solid var(--hairline-2);
  box-shadow: inset 0 0 60px rgba(97,177,188,0.2);
}
.configurator-visual::before {
  content: ""; position: absolute; inset: 28%; border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(143, 207, 216, 0.7), transparent 50%),
    linear-gradient(135deg, #0d3a6b, #052D5E);
  z-index: 1;
  animation: spinSlow 80s linear infinite reverse;
}
@keyframes spinSlow { to { transform: rotate(360deg); } }

/* ---------- Footer ---------- */
.footer {
  position: relative;
  margin-top: clamp(80px, 14vw, 140px);
  border-top: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent, var(--hairline-2) 8%, var(--hairline-2) 92%, transparent) 1;
  background: linear-gradient(180deg, var(--bg-deep) 0%, #020a14 100%);
}
.footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 120px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(97, 177, 188, 0.1) 0%, rgba(97, 177, 188, 0.02) 40%, transparent 100%);
  opacity: 0.5;
}
.footer-cta {
  padding: 56px 0 64px;
  border-bottom: 1px solid var(--hairline);
  display: grid;
  gap: 28px;
  align-items: start;
}
@media (min-width: 900px) { .footer-cta { grid-template-columns: 1fr auto; align-items: center; gap: 32px; } }
.footer-cta h2 { margin: 0 0 4px; max-width: 18ch; }
.footer-cta > .lede { margin: 0; }
.footer-cta .hero-cta {
  margin-top: 0;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-grid {
  padding: 64px 0 40px;
  display: grid; gap: 48px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px)  { .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); } }
/* Variante 3 colonnes (refonte) : plus aéré */
.footer-grid-3 {
  padding: 72px 0 48px;
  gap: 56px;
}
@media (min-width: 720px)  { .footer-grid-3 { grid-template-columns: 1.6fr 1fr 1fr; gap: 64px; } }
.footer-col h4 { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); margin: 0 0 18px; font-weight: 600; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--text-2); font-size: 14px; transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }
.footer-brand img { height: 36px; width: auto; }
.footer-brand p { color: var(--text-3); font-size: 14px; margin: 16px 0 0; }
.footer-social { display: flex; align-items: center; gap: 16px; }
.footer-social a { color: var(--text-3); transition: color 0.2s; }
.footer-social a:hover { color: var(--accent-soft); }
.footer-bottom {
  padding: 24px 0;
  border-top: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px; color: var(--text-3);
  text-align: center;
}

/* ---------- Marquee (logos) ---------- */
.marquee {
  overflow: hidden;
  border-block: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent, var(--hairline-2) 12%, var(--hairline-2) 88%, transparent) 1;
  padding-block: 32px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, transparent 50%, rgba(255, 255, 255, 0.02) 100%);
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.marquee:hover .marquee-track {
  animation-play-state: paused;
}
.marquee-track {
  display: flex; gap: 80px;
  animation: marquee 40s linear infinite;
  width: max-content;
}
.marquee-track img {
  height: 32px;
  width: auto;
  opacity: 0.52;
  transition: opacity 0.35s var(--ease-out), filter 0.35s, transform 0.35s var(--ease-out);
  filter: brightness(0) invert(1) drop-shadow(0 0 14px rgba(97, 177, 188, 0));
}
.marquee-track img:hover {
  opacity: 1;
  filter: brightness(0) invert(1) drop-shadow(0 0 12px rgba(97, 177, 188, 0.35));
  transform: scale(1.04);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); }
.field input, .field select, .field textarea {
  background: var(--bg-surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  color: var(--text);
  color-scheme: dark;
  font-family: inherit; font-size: 15px;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.06);
  box-shadow:
    0 0 0 3px rgba(97, 177, 188, 0.18),
    0 12px 32px rgba(0, 0, 0, 0.15);
}
.radio-group { display: flex; gap: 8px; }
.radio-group label {
  flex: 1; cursor: pointer; padding: 14px 16px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  text-align: center;
  font-size: 14px; color: var(--text-2);
  transition: all 0.2s;
}
.radio-group input { display: none; }
.radio-group input:checked + span { color: var(--accent); }
.radio-group label:hover { border-color: var(--hairline-2); color: var(--text); }
.radio-group label:has(input:checked) {
  border-color: var(--accent); background: rgba(97,177,188,0.08);
  color: var(--accent);
}

/* ---------- Breadcrumb ---------- */
.crumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--text-3);
  letter-spacing: 0.08em;
  margin-bottom: 24px;
}
.crumb a { color: var(--text-3); transition: color 0.2s; }
.crumb a:hover { color: var(--text); }
.crumb .sep { opacity: 0.4; }

/* ---------- Filter bar (category) ---------- */
.filter-bar {
  display: flex; gap: 8px; align-items: center;
  padding: 14px 0;
  border-block: 1px solid var(--hairline);
  overflow-x: auto;
  scrollbar-width: none;
}
.filter-bar::-webkit-scrollbar { display: none; }
.filter-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  font-size: 12px; font-weight: 500;
  border: 1px solid var(--hairline-2);
  border-radius: var(--r-pill);
  color: var(--text-2);
  background: transparent;
  white-space: nowrap;
  transition: all 0.2s;
  cursor: pointer;
}
.filter-chip:hover { color: var(--text); border-color: var(--hairline-strong); }
.filter-chip.active {
  background: linear-gradient(165deg, var(--accent-soft) 0%, var(--accent) 55%, var(--accent-deep) 100%);
  color: var(--text-on-accent);
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(97, 177, 188, 0.28);
}
.filter-chip .count { color: var(--text-3); font-weight: 400; }
.filter-chip.active .count { color: var(--text-on-accent); opacity: 0.7; }
@media (max-width: 720px) {
  .filter-chip {
    min-height: 44px;
    padding: 10px 16px;
    font-size: 13px;
    align-items: center;
  }
}

/* ---------- Category listing (UX catalogue) ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 1000;
  padding: 12px 18px;
  background: var(--text);
  color: var(--text-on-accent, #041730);
  font-weight: 600;
  font-size: 14px;
  border-radius: var(--r-sm);
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.22s var(--ease-out);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

#catalogue {
  scroll-margin-top: 96px;
}
body.has-membrane-subtabs #catalogue {
  scroll-margin-top: 160px;
}

.crumb-muted {
  color: var(--text-3);
}
a.crumb-link {
  color: var(--text-3);
  text-decoration: none;
  transition: color 0.2s;
}
a.crumb-link:hover {
  color: var(--accent-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.category-crumb .sep {
  opacity: 0.45;
}

.category-family-nav {
  margin-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}
.category-family-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}
.category-family-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}
.category-family-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--hairline-2);
  background: rgba(255, 255, 255, 0.03);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.category-family-links a:hover {
  color: var(--text);
  border-color: rgba(97, 177, 188, 0.35);
  background: rgba(255, 255, 255, 0.06);
}
.category-family-links a.is-current,
.category-family-links a[aria-current="page"] {
  color: var(--text);
  border-color: rgba(97, 177, 188, 0.45);
  background: rgba(97, 177, 188, 0.12);
}

.search-hit {
  background: linear-gradient(180deg, rgba(97, 177, 188, 0.4), rgba(97, 177, 188, 0.22));
  color: inherit;
  padding: 0 3px;
  border-radius: 3px;
  font-weight: 600;
}

.products-grid.is-dense {
  gap: 14px;
}
@media (min-width: 720px) {
  .products-grid.is-dense { gap: 16px; }
}
.products-grid.is-dense .product-card-media {
  aspect-ratio: 1 / 1;
}
.products-grid.is-dense .product-card-body {
  padding: 14px 16px 16px;
}
.products-grid.is-dense .product-card-body .name {
  font-size: clamp(18px, 2vw, 22px);
}
.products-grid.is-dense .product-card:hover {
  transform: translateY(-4px) scale(1.008);
}

/* ---------- Switch de vue (confort / inline) ---------- */
.category-view-switch {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: var(--r-pill);
  border: 1px solid var(--hairline-2);
  background: var(--bg-surface);
}
.category-view-switch .view-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--text-3);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.category-view-switch .view-btn:hover { color: var(--text); }
.category-view-switch .view-btn.is-active {
  background: rgba(97, 177, 188, 0.16);
  color: var(--accent-soft);
}
.category-view-switch .view-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
@media (max-width: 720px) {
  .category-view-switch { display: none; }
}

/* ---------- Vue inline (en ligne) ---------- */
.products-grid.is-inline {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.products-grid.is-inline .product-card {
  flex-direction: row;
  align-items: center;
  gap: 16px;
  padding: 10px 16px 10px 10px;
}
.products-grid.is-inline .product-card-media {
  flex: 0 0 auto;
  width: 84px;
  height: 64px;
  aspect-ratio: auto;
  border-radius: var(--r-sm);
  overflow: hidden;
}
.products-grid.is-inline .product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.products-grid.is-inline .product-card-body {
  flex: 1 1 auto;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 14px;
  row-gap: 2px;
  padding: 0;
}
.products-grid.is-inline .product-card-body .name {
  font-size: clamp(17px, 1.6vw, 20px);
  order: 1;
}
.products-grid.is-inline .product-card-body .ref { order: 0; flex: 0 0 100%; }
.products-grid.is-inline .product-card-body .desc { order: 2; }
.products-grid.is-inline .product-card-foot {
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  border-top: 0;
}
.products-grid.is-inline .product-card:hover {
  transform: translateY(-2px);
}
@media (max-width: 720px) {
  /* En mobile, le switch est masqué : on force toujours la vue cards */
  .products-grid.is-inline {
    display: grid;
    flex-direction: initial;
    gap: 14px;
  }
  .products-grid.is-inline .product-card { flex-direction: column; padding: 0; }
  .products-grid.is-inline .product-card-media {
    width: auto;
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 0;
  }
  .products-grid.is-inline .product-card-body {
    flex-direction: column;
    padding: 22px 22px 24px;
  }
  .products-grid.is-inline .product-card-foot {
    padding: 16px 22px 20px;
  }
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: max(24px, env(safe-area-inset-bottom, 0px));
  z-index: 70;
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: linear-gradient(165deg, rgba(14, 58, 102, 0.55), rgba(4, 23, 48, 0.92));
  color: var(--text);
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-1);
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}
.back-to-top:hover {
  border-color: rgba(97, 177, 188, 0.4);
  transform: translateY(-2px);
}
.back-to-top:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.category-hero {
  position: relative;
  min-height: min(52vh, 520px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.category-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.category-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.category-hero-fade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(4, 23, 48, 0.38), rgba(4, 23, 48, 0.94));
}
.category-subbar {
  position: sticky;
  top: 72px;
  z-index: 46;
  padding-block: 14px 12px;
  margin-bottom: 4px;
  /* Aucune couleur propre : on voit le fond de la page. Blur seulement au scroll. */
  background: transparent;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.category-layout {
  display: grid;
  gap: 28px;
  padding-bottom: 48px;
}
@media (min-width: 1100px) {
  .category-layout {
    grid-template-columns: minmax(240px, 280px) 1fr;
    gap: 40px 48px;
    align-items: start;
  }
  body.has-membrane-subtabs .category-sidebar-card {
    top: 152px;
    max-height: calc(100vh - 168px);
  }
}
.category-sidebar-card {
  position: sticky;
  top: 80px;
  max-height: calc(100vh - 96px);
  overflow-y: auto;
  padding: 22px 18px;
  border-radius: var(--r-md);
  border: 1px solid var(--hairline);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.04) 0%, transparent 42%),
    linear-gradient(165deg, rgba(14, 58, 102, 0.28) 0%, rgba(8, 44, 82, 0.58) 100%);
  box-shadow: var(--shadow-1);
}
.category-sidebar-title {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin: 6px 0 14px;
}
.category-nav { display: flex; flex-direction: column; gap: 4px; }
.cat-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.cat-nav-item:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}
.cat-nav-item.active {
  color: var(--text);
  background: rgba(97, 177, 188, 0.12);
  border-color: rgba(97, 177, 188, 0.32);
  box-shadow: inset 3px 0 0 var(--accent);
}
.cat-nav-count {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-3);
  flex-shrink: 0;
}
.cat-nav-item.active .cat-nav-count { color: var(--accent-soft); }
.cat-nav-item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.filter-chip:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 2px;
}
.category-main { min-width: 0; }
body.has-membrane-subtabs {
  --category-subbar-sticky-extra: 72px;
}
.category-toolbar {
  position: sticky;
  top: calc(72px + var(--category-subbar-sticky-extra, 0px));
  z-index: 45;
  padding: 14px 0 16px;
  margin-bottom: 8px;
  /* Transparent : on voit le fond de page. Blur léger uniquement quand du contenu défile dessous. */
  background: transparent;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.category-toolbar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
@media (max-width: 720px) {
  .category-toolbar-row .category-search-input {
    flex: 1 1 100%;
    min-width: 100%;
  }
  .category-toolbar-row .category-jump-select.show-only-mobile,
  .category-toolbar-row .category-sort-select {
    flex: 1 1 calc(50% - 5px);
    min-width: 0;
  }
}
.category-search-input {
  flex: 1 1 240px;
  min-width: min(100%, 200px);
  padding: 12px 18px;
  font-size: 15px;
  border-radius: var(--r-pill);
  background: var(--bg-surface);
  border: 1px solid var(--hairline-2);
  color: var(--text);
  font-family: inherit;
  color-scheme: dark;
}
.category-search-input::placeholder { color: var(--text-3); }
.category-search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(97, 177, 188, 0.2);
}
.category-sort-select,
.category-jump-select {
  flex: 0 0 auto;
  padding: 10px 34px 10px 14px;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  color: var(--text);
  /* Fond solide (pas transparent) pour éviter le blanc système sur desktop */
  background-color: var(--bg-surface);
  border: 1px solid var(--hairline-2);
  border-radius: var(--r-pill);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  color-scheme: dark;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m3 4 3 3 3-3' stroke='%2361B1BC' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 12px 12px;
  background-position: right 12px center;
  padding-right: 36px; /* espace suffisant pour la flèche 12px + 12px gap */
  transition: border-color 0.2s, background-color 0.2s;
}
.category-sort-select:focus,
.category-jump-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(97, 177, 188, 0.18);
}
.category-sort-select:hover,
.category-jump-select:hover {
  border-color: var(--hairline-strong);
  background-color: var(--bg-elev);
}
/* Styles natifs des <option> */
.category-sort-select option,
.category-jump-select option {
  background-color: var(--bg-surface);
  color: var(--text);
}
.category-toolbar-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
  font-size: 13px;
}
.btn-text {
  background: none;
  border: 0;
  padding: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-family: inherit;
}
.btn-text:hover { color: var(--accent-soft); }
.btn-text:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}
@media (min-width: 1100px) {
  .category-filter-chips.hide-desktop-chips { display: none !important; }
}
.category-collection-desc {
  max-width: 80ch;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.72;
  margin-bottom: 20px;
}
.category-empty {
  display: none;
  text-align: center;
  padding: 56px 24px;
  color: var(--text-3);
  border: 1px dashed var(--hairline-2);
  border-radius: var(--r-md);
  margin-top: 12px;
  line-height: 1.6;
}
.category-empty.is-visible { display: block; }
.category-empty strong { color: var(--text); }
.category-empty-cta {
  min-width: min(100%, 280px);
  justify-content: center;
}

/* ---------- Sub-tabs (residential / commercial) ---------- */
.subtabs {
  display: inline-flex; gap: 4px;
  padding: 5px;
  border-radius: var(--r-pill);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--hairline);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset;
  backdrop-filter: blur(12px);
}
.subtabs a {
  padding: 8px 16px;
  border-radius: var(--r-pill);
  font-size: 13px; font-weight: 500;
  color: var(--text-2); transition: all 0.2s;
}
.subtabs a.active { background: var(--text); color: var(--text-on-accent); }
.subtabs a:not(.active):hover { color: var(--text); background: rgba(255,255,255,0.04); }
.subtabs a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- Product detail ---------- */
.pd-hero {
  padding-block: 32px 80px;
  display: grid; gap: 40px;
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) { .pd-hero { grid-template-columns: 1.2fr 1fr; gap: 64px; } }

.pd-gallery {
  display: grid; gap: 12px;
  grid-template-columns: 1fr;
}
.pd-main {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid rgba(97, 177, 188, 0.18);
  box-shadow:
    0 28px 64px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 0 100px rgba(97, 177, 188, 0.07);
}
.pd-main::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, transparent 35%, transparent 65%, rgba(4, 23, 48, 0.25) 100%);
  z-index: 1;
}
.pd-main img { position: relative; z-index: 0; }
.pd-main-actions { z-index: 2; }
.pd-main img { width: 100%; height: 100%; object-fit: cover; }
.pd-main-actions {
  position: absolute; top: 16px; right: 16px;
  display: flex; gap: 8px;
}
.pd-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.pd-thumb {
  aspect-ratio: 1/1; overflow: hidden;
  border-radius: var(--r-sm);
  border: 1.5px solid transparent;
  transition: border-color 0.2s;
  cursor: pointer; padding: 0; background: none;
}
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumb.active { border-color: var(--accent); }
.pd-thumb.video { position: relative; }
.pd-thumb.video::after {
  content: "▶"; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(4,23,48,0.5); color: var(--text);
  font-size: 14px;
}

.pd-info { display: flex; flex-direction: column; gap: 16px; }
.pd-info .ref { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); }
.pd-info .ti { margin: 4px 0 0; font-family: var(--serif); font-size: clamp(36px, 4vw, 56px); line-height: 1.05; letter-spacing: -0.02em; }
.pd-info .desc { color: var(--text-2); margin: 0; font-size: 16px; line-height: 1.6; }
.pd-tags { display: flex; flex-wrap: wrap; gap: 8px; }

.pd-feats {
  display: grid; gap: 0;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  margin: 8px 0;
}
.pd-feat {
  padding: 16px 8px; border-right: 1px solid var(--hairline);
  display: flex; flex-direction: column; gap: 4px;
}
.pd-feat:last-child { border-right: 0; }
.pd-feat .lab { font-size: 11px; color: var(--text-3); letter-spacing: 0.12em; text-transform: uppercase; }
.pd-feat .val { font-family: var(--serif); font-size: 22px; }

.pd-cta { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }

/* Sticky tabs */
.pd-tabs {
  position: sticky; top: 64px; z-index: 50;
  background: rgba(4, 23, 48, 0.85);
  backdrop-filter: blur(18px);
  border-block: 1px solid var(--hairline);
  display: flex; gap: 4px; padding: 12px 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.pd-tabs::-webkit-scrollbar { display: none; }
.pd-tabs a {
  padding: 8px 16px; font-size: 13px; font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-2);
  border-radius: var(--r-pill);
  white-space: nowrap;
  transition: all 0.2s;
}
.pd-tabs a:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.pd-tabs a.active { background: var(--text); color: var(--text-on-accent); }

/* Specs table */
.specs {
  display: grid; gap: 0;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .specs { grid-template-columns: 1fr 1fr; } }
.spec {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--hairline);
}
.spec .k { color: var(--text-3); font-size: 13px; }
.spec .v { font-family: var(--serif); font-size: 17px; }

/* Documents */
.docs { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .docs { grid-template-columns: 1fr 1fr; } }
.doc {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 20px;
  border-radius: var(--r-md);
  border: 1px solid var(--hairline);
  background: rgba(255,255,255,0.02);
  transition: all 0.2s;
}
.doc:hover { border-color: var(--accent); background: rgba(97,177,188,0.04); }
.doc-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-sm);
  background: rgba(255,255,255,0.04);
  font-family: var(--serif); font-size: 11px; letter-spacing: 0.06em;
  color: var(--accent);
}
.doc-meta { flex: 1; }
.doc .ti { font-size: 15px; font-weight: 500; }
.doc .me { font-size: 12px; color: var(--text-3); margin-top: 4px; }

/* ---------- Reveal animations ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(36px) scale(0.99);
  transition:
    opacity var(--reveal-dur) var(--ease-reveal),
    transform var(--reveal-dur) var(--ease-reveal);
  will-change: opacity, transform;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
  will-change: auto;
}

/* Entrées échelonnées (grilles & hubs) */
.products-grid .product-card[data-reveal]:nth-child(1) { transition-delay: 0.04s; }
.products-grid .product-card[data-reveal]:nth-child(2) { transition-delay: 0.1s; }
.products-grid .product-card[data-reveal]:nth-child(3) { transition-delay: 0.16s; }
.products-grid .product-card[data-reveal]:nth-child(4) { transition-delay: 0.22s; }
.products-grid .product-card[data-reveal]:nth-child(5) { transition-delay: 0.28s; }
.products-grid .product-card[data-reveal]:nth-child(6) { transition-delay: 0.34s; }
.products-grid .product-card[data-reveal]:nth-child(7) { transition-delay: 0.4s; }
.products-grid .product-card[data-reveal]:nth-child(8) { transition-delay: 0.46s; }
.products-grid .product-card[data-reveal]:nth-child(9) { transition-delay: 0.52s; }
.products-grid .product-card[data-reveal]:nth-child(10) { transition-delay: 0.58s; }
.products-grid .product-card[data-reveal]:nth-child(11) { transition-delay: 0.64s; }
.products-grid .product-card[data-reveal]:nth-child(12) { transition-delay: 0.7s; }

.hub .hub-card[data-reveal]:nth-child(1) { transition-delay: 0.03s; }
.hub .hub-card[data-reveal]:nth-child(2) { transition-delay: 0.1s; }
.hub .hub-card[data-reveal]:nth-child(3) { transition-delay: 0.17s; }
.hub .hub-card[data-reveal]:nth-child(4) { transition-delay: 0.24s; }
.hub .hub-card[data-reveal]:nth-child(5) { transition-delay: 0.31s; }
.hub .hub-card[data-reveal]:nth-child(6) { transition-delay: 0.38s; }

.duo .duo-card[data-reveal]:nth-child(1) { transition-delay: 0.04s; }
.duo .duo-card[data-reveal]:nth-child(2) { transition-delay: 0.11s; }
.duo .duo-card[data-reveal]:nth-child(3) { transition-delay: 0.18s; }
.duo .duo-card[data-reveal]:nth-child(4) { transition-delay: 0.25s; }
.duo .duo-card[data-reveal]:nth-child(5) { transition-delay: 0.32s; }
.duo .duo-card[data-reveal]:nth-child(6) { transition-delay: 0.39s; }

/* ---------- Utilities ---------- */
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }
.text-accent { color: var(--accent); }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mt-12 { margin-top: 48px; }

@media (max-width: 720px) {
  .hide-on-mobile { display: none !important; }
}
@media (min-width: 720px) {
  .show-only-mobile { display: none !important; }
}

/* =========================================================
   Header v2 — 3 colonnes (gauche · logo · droite)
   inspiré de la nav réelle CGT Alkor (Membranes / Liner /
   Decking / Projets / Configurateur / Autres Produits) avec
   mega-menus pour Membranes, Projets et Autres Produits.
   ========================================================= */
.nav {
  display: grid;
  /* Logo à gauche · nav produits · utilitaires à droite */
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}
.nav-left, .nav-right {
  display: none;
  align-items: center;
}
.nav-left  { justify-content: flex-start; gap: 2px; }
.nav-right { justify-content: flex-end; gap: 4px; }
.nav-logo  { justify-self: start; }
@media (min-width: 1100px) {
  .nav-left,
  .nav-right {
    display: flex;
  }
  /* Logo collé au bord du contenu (aligné avec le contenu de page) + un peu d'air après */
  .nav-logo { margin-left: -6px; margin-right: 24px; min-width: 0; }
}
/* Largeurs intermédiaires : on resserre encore le tracking */
@media (min-width: 1100px) and (max-width: 1320px) {
  .nav { gap: 18px; }
  .nav-logo { margin-left: -6px; margin-right: 14px; }
  .nav-link { padding: 10px 9px; letter-spacing: 0.02em; }
}
@media (max-width: 1099px) {
  /* Logo à gauche, outils (langue · recherche · menu) à droite */
  .nav {
    grid-template-columns: 1fr auto;
    justify-items: stretch;
    gap: 10px 14px;
  }
  .nav-left {
    display: none !important;
  }
  .nav-right {
    display: flex !important;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 2px;
  }
  .nav-right > .nav-link {
    display: none !important;
  }
  .nav-logo {
    justify-self: start;
  }
}

.nav-link {
  position: relative;
  display: inline-flex; align-items: center;
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.04em; text-transform: uppercase;
  padding: 10px 12px;
  background: transparent; border: 0;
  color: var(--text-2);
  border-radius: var(--r-pill);
  transition:
    color 0.28s var(--ease-out),
    background 0.4s var(--ease-out),
    box-shadow 0.35s var(--ease-out);
  white-space: nowrap;
}
/* Soulignement animé premium (au lieu du fond pilule) */
.nav-link::before {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 4px;
  height: 1.5px;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.36s var(--ease-luxe);
  border-radius: 2px;
}
.nav-link:hover, .nav-link.is-active, .nav-link.open {
  color: var(--accent);
  background: transparent;
}
.nav-link:hover::before,
.nav-link.is-active::before,
.nav-link.open::before { transform: scaleX(1); }

/* Liens secondaires (à propos, espace pro, contact) : plus discrets */
.nav-link-muted {
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.06em;
}
.nav-link-muted:hover { color: var(--text); }

/* Plateforme : petit CTA encadré */
.nav-link-cta {
  color: var(--accent) !important;
  border: 1px solid var(--hairline-2);
  border-radius: var(--r-pill);
  padding-block: 8px;
  font-size: 11px;
  font-weight: 600;
}
.nav-link-cta::before { display: none; }
.nav-link-cta:hover {
  background: linear-gradient(180deg, rgba(97, 177, 188, 0.18), rgba(97, 177, 188, 0.06)) !important;
  border-color: rgba(97, 177, 188, 0.45);
}

.nav-link.has-sub::after {
  content: ""; display: inline-block;
  width: 5px; height: 5px;
  margin-left: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-1px, -1px);
  opacity: 0.7; transition: transform 0.2s;
}
.nav-link.has-sub.open::after { transform: rotate(-135deg) translate(-1px, -1px); }

.nav-link-pro {
  font-weight: 600;
  color: var(--accent) !important;
}

.nav-logo {
  display: flex !important;
  align-items: center;
  flex-shrink: 0;
  min-width: 100px; /* garantit que la colonne auto du grid ne s'effondre pas */
  transition: transform 0.55s var(--ease-luxe), filter 0.4s var(--ease-out);
}
.nav-logo img {
  height: 40px;
  width: auto;
  max-width: 140px;
  display: block !important;
  /* assure la lisibilité si l'image a un fond transparent */
  filter: brightness(1.1) drop-shadow(0 1px 2px rgba(0,0,0,0.5));
}
@media (max-width: 1099px) {
  .nav-logo img { height: 34px; }
}
.nav-logo:hover {
  transform: scale(1.045);
  filter: drop-shadow(0 0 20px rgba(97, 177, 188, 0.38));
}

/* Mega panels */
.mega-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: linear-gradient(180deg, rgba(3, 15, 30, 0.97) 0%, rgba(5, 29, 52, 0.98) 100%);
  backdrop-filter: blur(28px) saturate(1.12);
  -webkit-backdrop-filter: blur(28px) saturate(1.12);
  border-bottom: 1px solid var(--border-mega);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.35s var(--ease-luxe), transform 0.35s var(--ease-luxe);
  z-index: 99;
}
.mega-panel.open { opacity: 1; pointer-events: auto; transform: none; }
.mega-inner { padding: 36px 0 44px; }
.mega-inner .eyebrow { color: var(--text-3); margin-bottom: 16px; display: block; }
.mega-grid { display: grid; gap: 20px; }
.mega-grid-2 { grid-template-columns: 1fr 1fr; }
.mega-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 900px) {
  .mega-grid-2, .mega-grid-3 { grid-template-columns: 1fr; }
}
.mega-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 220px;
  border-radius: var(--r-md);
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--hairline);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  transition: border-color 0.4s var(--ease-out), box-shadow 0.45s var(--ease-out), transform 0.45s var(--ease-luxe);
}
.mega-card:hover {
  border-color: rgba(97, 177, 188, 0.38);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.45);
  transform: translateY(-2px);
}
.mega-card-img {
  position: absolute; inset: 0; z-index: -2;
  background-size: cover; background-position: center;
  transform: scale(1.04); transition: transform 0.5s var(--ease-out);
}
.mega-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(4,23,48,0.0) 30%, rgba(4,23,48,0.85) 100%);
}
.mega-card:hover .mega-card-img { transform: scale(1.08); }
.mega-card-label {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 500;
  color: var(--text);
  padding: 20px 22px;
  letter-spacing: -0.02em;
  text-transform: none;
}

body.has-mega-open .header {
  background: rgba(3, 15, 30, 0.94);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

/* Drawer → styles délégués à shell.css */

/* Sticky tabs anchored just under the v2 header */
.pd-tabs { top: 72px; }

/* ---------- Bandeau de consentement cookies (RGPD) ---------- */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translate(-50%, 140%);
  width: min(960px, calc(100% - 32px));
  z-index: 80;
  background: var(--bg-glass);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--hairline-2);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-2);
  opacity: 0;
  transition: transform 0.5s var(--ease-out), opacity 0.4s var(--ease-out);
}
.cookie-banner.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}
.cookie-banner-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 22px;
  flex-wrap: wrap;
}
.cookie-banner-text { flex: 1 1 380px; min-width: 0; }
.cookie-banner-text strong {
  display: block;
  font-family: var(--serif);
  font-size: 19px;
  margin-bottom: 4px;
}
.cookie-banner-text p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-2);
}
.cookie-banner-text a { color: var(--accent-soft); text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
}
.cookie-banner-actions .btn { padding: 11px 22px; }
@media (max-width: 560px) {
  .cookie-banner { bottom: 0; width: 100%; border-radius: var(--r-md) var(--r-md) 0 0; }
  .cookie-banner-actions { width: 100%; }
  .cookie-banner-actions .btn { flex: 1; justify-content: center; }
}

/* ---------- Accessibilité : mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cookie-banner { transition: opacity 0.2s linear; transform: translate(-50%, 0); }
  body::after {
    animation: none !important;
  }
  .hero-media img,
  .hero-media video {
    animation: none;
    transform: scale(1.06);
  }
  .marquee-track {
    animation: none;
  }
  .configurator-visual,
  .configurator-visual::before {
    animation: none;
  }
  .configurator::before {
    animation: none;
    opacity: 0.48;
  }
  .scroll-cue-dot,
  .scroll-cue-line {
    animation: none;
  }
  .scroll-cue-line {
    opacity: 0.55;
  }
  .hero-meta-item:hover {
    transform: none;
  }
  .products-grid .product-card[data-reveal],
  .hub .hub-card[data-reveal],
  .duo .duo-card[data-reveal] {
    transition-delay: 0s !important;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn-primary::after {
    display: none;
  }
  .hero-overlay::after {
    animation: none;
    opacity: 0.32;
  }
  .announcement::after {
    animation: none;
    opacity: 0.35;
  }
  .section-head .eyebrow::before {
    animation: none;
  }
  .product-card-tag.new {
    animation: none;
  }
  .manifesto::before {
    animation: none;
  }
  .hub-card:hover .ic {
    transform: none;
  }
  .nav-logo:hover {
    transform: none;
    filter: none;
  }
}

/* =========================================================
   RESPONSIVE MOBILE — corrections prioritaires
   Mobile-first (< 560px = petits téléphones, < 720px = mobile standard)
   ========================================================= */

/* Taille des titres display — clamp empêche les débordements */
.display {
  font-size: clamp(28px, 7.5vw, 72px);
}

/* Hero : hauteur naturelle en mobile, plus généreuse en desktop */
@media (max-width: 719px) {
  .hero {
    min-height: min(100svh, 640px);
    align-items: flex-end;
  }
  /* Moins de padding : on économise la hauteur */
  .hero-content {
    padding-block: 28px 56px;
  }
  /* Titre hero plus compact */
  .hero h1 {
    font-size: clamp(30px, 9vw, 48px);
    margin: 14px 0 12px;
  }
  .hero-sub {
    font-size: 15px;
    line-height: 1.5;
  }
  /* Badge : plus petit en mobile */
  .hero-badge {
    font-size: 9px;
    padding: 8px 14px;
    gap: 8px;
  }
  /* Stats hero : 2 colonnes compactes */
  .hero-meta {
    margin-top: 28px;
    padding-top: 20px;
    gap: 10px;
  }
  .hero-meta-item {
    padding: 14px 14px;
  }
  .hero-meta-item .num {
    font-size: clamp(24px, 6vw, 32px);
  }
  /* Note catalogue : cachée sur mobile (trop verbeux) */
  .hero-catalog-note {
    display: none;
  }
  /* CTA hero : pleine largeur */
  .hero-cta {
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
  }
  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Sections : padding réduit drastiquement en mobile */
@media (max-width: 719px) {
  .section {
    padding-block: clamp(40px, 8vw, 64px);
  }
  .section-tight {
    padding-block: clamp(28px, 6vw, 48px);
  }
  .section-xl {
    padding-block: clamp(48px, 10vw, 80px);
  }
  /* Section-head : empile sur 1 colonne */
  .section-head {
    flex-direction: column;
    gap: 12px;
  }
  .section-head h2 {
    font-size: clamp(26px, 7vw, 42px);
  }
}

/* Duo-cards (gammes, projets) : ratio plus court en mobile */
@media (max-width: 719px) {
  .duo-card {
    aspect-ratio: 3 / 2;  /* Paysage : moins de hauteur empilée */
  }
  .duo-card h3 {
    font-size: clamp(22px, 5.5vw, 32px);
  }
  .duo-card-content {
    padding: 20px;
    gap: 8px;
  }
  .duo-card-teaser {
    display: none; /* Trop verbeux sur mobile */
  }
}

/* Split (section éditoriale) : image avant texte sur mobile */
@media (max-width: 719px) {
  .split-media {
    aspect-ratio: 16 / 9;
  }
}

/* Manifeste : plus compact */
@media (max-width: 719px) {
  .manifesto {
    padding-block: clamp(36px, 8vw, 56px);
  }
  .strapi-manifest {
    font-size: clamp(18px, 5vw, 26px);
  }
}

/* Hub cards : padding réduit */
@media (max-width: 719px) {
  .hub-card {
    min-height: unset;
    padding: 22px 20px;
    gap: 12px;
  }
}

/* Configurateur : plus compact + visuel caché en mobile */
@media (max-width: 1023px) {
  /* Visuel rotatif masqué en mobile/tablette → plus de chevauchement sur les boutons */
  .configurator-visual {
    display: none;
  }
  .configurator {
    padding: clamp(28px, 6vw, 48px) clamp(20px, 4vw, 40px);
    gap: 16px;
  }
  .configurator h2 {
    font-size: clamp(22px, 6vw, 34px);
    margin: 8px 0 12px;
  }
  /* Boutons en colonne sur mobile */
  .configurator .hero-cta {
    flex-direction: column;
    gap: 10px;
  }
  .configurator .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Footer : espacement réduit */
@media (max-width: 719px) {
  .footer-cta {
    padding-block: 40px;
  }
  .footer-cta h2 {
    font-size: clamp(24px, 7vw, 40px);
  }
  .footer-grid {
    gap: 28px;
    padding-block: 32px;
  }
}

/* Product cards : compact en mobile (2 colonnes) */
@media (max-width: 719px) {
  .product-card-body {
    padding: 12px 12px 14px;
    gap: 4px;
  }
  .product-card-body .ref {
    font-size: 9px;
    letter-spacing: 0.12em;
  }
  .product-card-body .name {
    font-size: clamp(13px, 3.5vw, 16px);
    line-height: 1.2;
  }
  .product-card-body .desc { display: none; }
  .product-card-foot {
    padding: 10px 12px 12px;
    padding-top: 8px;
    flex-wrap: wrap;
    gap: 6px;
  }
  .product-card-foot .btn-link { font-size: 11px; }
  .product-card-foot .pill { display: none; }
}

/* Scroll-cue : masquée en mobile (hero content plus court) */
@media (max-width: 719px) {
  .scroll-cue { display: none; }
}

/* Cards — pied de card */
.product-card-foot {
  min-width: 0;
}
.product-card-foot .pill {
  min-width: 0;
  max-width: 48%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.product-card-foot .btn-link {
  white-space: nowrap;
  flex-shrink: 0;
}
/* Pied de card CTA seul (sans pill) — lien pleine largeur à droite */
.product-card-foot--cta {
  justify-content: flex-end;
}
.product-card-foot--cta .btn-link {
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-soft);
}

/* Toolbar catalogue — plein écran sans démarcation */
@media (max-width: 1099px) {
  .category-toolbar {
    margin-inline: calc(-1 * clamp(20px, 4vw, 56px));
    padding-inline: clamp(20px, 4vw, 56px);
    /* Pas de box-shadow : le fond --bg-deep suffit, pas de ligne visible */
  }
}

/* Très petits écrans (≤ 390px) */
@media (max-width: 390px) {
  .container {
    padding-inline: 16px;
  }
  .hero h1 {
    font-size: clamp(26px, 8vw, 36px);
  }
  .hero-meta {
    grid-template-columns: 1fr 1fr;
  }
  .hero-meta-item {
    padding: 12px 10px;
  }
  .btn {
    padding: 12px 18px;
    font-size: 12px;
  }
}

/* =========================================================
   PERFORMANCE — rendu différé des sections hors-écran
   content-visibility:auto = le navigateur ne calcule pas
   le layout/paint des sections non visibles → réduit
   fortement le travail du thread principal sur les pages
   longues. Aucun impact visuel.
   La section hero (LCP) en est exclue volontairement.
   ========================================================= */
.section,
.marquee,
.footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 520px;
}
.marquee { contain-intrinsic-size: auto 120px; }

/* Les médias animés (marquee) ne tournent pas hors-écran grâce
   à content-visibility, mais on coupe aussi l'anim si l'OS le demande. */
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none !important; }
}
