/* ============================================================
   RIULZ — Solutions techniques en impression 3D
   Palette : noir profond / bleu électrique / cyan flash
   ============================================================ */

:root {
  --void: #05070d;
  --panel: #0a0f1e;
  --panel-2: #0d1428;
  --line: rgba(120, 160, 255, 0.14);
  --blue: #2e7cff;
  --cyan: #00d4ff;
  --blue-soft: #8fb8ff;
  --text: #eaf2ff;
  --text-dim: #9aa8c7;
  --font-display: "Unbounded", sans-serif;
  --font-body: "Outfit", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* L'attribut hidden doit l'emporter sur les display des composants
   (boutons en inline-flex, liens en block…). */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  background: var(--void);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--blue); color: #fff; }

.mono { font-family: var(--font-mono); }
.accent {
  font-style: normal;
  background: linear-gradient(100deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.container { width: min(1180px, 92%); margin: 0 auto; }
.container-narrow { width: min(820px, 92%); }

/* ============ FOND GLOBAL ============ */
.bg-grid {
  position: fixed; inset: 0; z-index: -3; pointer-events: none;
  background-image:
    linear-gradient(rgba(70, 120, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(70, 120, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 100%);
}

.bg-glow {
  position: fixed; z-index: -2; pointer-events: none;
  width: 900px; height: 900px; top: -450px; left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(46, 124, 255, 0.16) 0%, transparent 65%);
  animation: glow-breathe 8s ease-in-out infinite;
}
@keyframes glow-breathe {
  0%, 100% { opacity: 0.8; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.12); }
}

.cursor-glow {
  position: fixed; z-index: -1; pointer-events: none;
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.055) 0%, transparent 60%);
  transform: translate(-50%, -50%);
  left: 50vw; top: 40vh;
  transition: opacity 0.4s;
}

/* ============ LOADER ============ */
.loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--void);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s var(--ease-out), visibility 0.6s;
}
.loader.done { opacity: 0; visibility: hidden; }
.loader-inner { text-align: center; }
.loader-bolt {
  width: 64px; margin-bottom: 24px;
  filter: drop-shadow(0 0 18px rgba(0, 212, 255, 0.8));
  animation: bolt-pulse 0.9s ease-in-out infinite alternate;
}
@keyframes bolt-pulse {
  from { opacity: 0.4; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}
.loader-bar {
  width: 180px; height: 2px; margin: 0 auto 14px;
  background: var(--line); border-radius: 2px; overflow: hidden;
}
.loader-bar span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  animation: loader-fill 1.1s var(--ease-out) forwards;
}
@keyframes loader-fill { to { width: 100%; } }
.loader-text { font-size: 0.72rem; color: var(--text-dim); }

/* ============ NAVIGATION ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 22px 0;
  transition: padding 0.4s var(--ease-out), background 0.4s, box-shadow 0.4s;
}
.nav.scrolled {
  padding: 12px 0;
  background: rgba(5, 7, 13, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--line);
}
.nav-inner {
  width: min(1180px, 92%); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo img {
  height: 30px; display: block;
  filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.35));
  transition: filter 0.3s;
}
.nav-logo:hover img { filter: drop-shadow(0 0 14px rgba(0, 212, 255, 0.7)); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  color: var(--text-dim); text-decoration: none;
  font-size: 0.92rem; font-weight: 400;
  position: relative; transition: color 0.25s;
}
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -5px;
  width: 100%; height: 1.5px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}
.nav-links a:not(.btn):hover { color: var(--text); }
.nav-links a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }

.nav-burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.nav-burger span {
  width: 24px; height: 2px; background: var(--text);
  border-radius: 2px; transition: transform 0.3s var(--ease-out), opacity 0.3s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ BOUTONS ============ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 10px;
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
  text-decoration: none; cursor: pointer; border: none;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s, background 0.25s, border-color 0.25s;
}
.btn-primary {
  background: linear-gradient(120deg, var(--blue), #1b5fe0);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(120, 170, 255, 0.35) inset, 0 8px 28px rgba(46, 124, 255, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(140, 190, 255, 0.55) inset, 0 12px 36px rgba(46, 124, 255, 0.55);
}
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: rgba(120, 170, 255, 0.5); background: rgba(46, 124, 255, 0.08); transform: translateY(-2px); }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; border-radius: 8px; }
.btn-lg { padding: 17px 36px; font-size: 1.05rem; }
.btn-block { width: 100%; justify-content: center; }
.btn-bolt { display: inline-block; transition: transform 0.3s var(--ease-out); }
.btn:hover .btn-bolt { transform: rotate(-12deg) scale(1.25); }

/* ============ TYPO SECTIONS ============ */
.eyebrow {
  font-size: 0.75rem; letter-spacing: 0.06em;
  color: var(--cyan); margin-bottom: 18px;
  text-transform: lowercase;
}
.section { padding: 110px 0; position: relative; }
.section-alt {
  background: linear-gradient(180deg, transparent, rgba(13, 20, 40, 0.55) 18%, rgba(13, 20, 40, 0.55) 82%, transparent);
}
.section-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  line-height: 1.18; letter-spacing: -0.01em;
  margin-bottom: 22px;
}
.section-sub {
  color: var(--text-dim); font-size: 1.08rem;
  max-width: 560px; margin-bottom: 54px;
}

/* ============ HERO ============ */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 150px 0 80px; position: relative;
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: 60px; align-items: center;
}
.hero-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.14; letter-spacing: -0.01em;
  margin-bottom: 26px;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line span {
  display: block; transform: translateY(110%);
  animation: line-up 0.9s var(--ease-out) forwards;
}
.hero-title .line:nth-child(1) span { animation-delay: 0.55s; }
.hero-title .line:nth-child(2) span { animation-delay: 0.68s; }
.hero-title .line:nth-child(3) span { animation-delay: 0.81s; }
@keyframes line-up { to { transform: translateY(0); } }

.hero-sub {
  color: var(--text-dim); font-size: 1.12rem;
  max-width: 520px; margin-bottom: 34px;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 52px; }

.hero-stats {
  display: flex; gap: 48px; flex-wrap: wrap;
  border-top: 1px solid var(--line); padding-top: 30px;
}
.stat-num {
  display: block; font-size: 1.9rem; font-weight: 600;
  color: var(--text);
  text-shadow: 0 0 24px rgba(0, 212, 255, 0.35);
}
.stat-label { font-size: 0.85rem; color: var(--text-dim); }

/* --- visuel : plateau d'impression --- */
.hero-visual { position: relative; }
.build-plate {
  position: relative;
  aspect-ratio: 1 / 0.95;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(13, 20, 40, 0.9), rgba(5, 7, 13, 0.9));
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(46, 124, 255, 0.08) inset;
}
.plate-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(70, 120, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(70, 120, 255, 0.09) 1px, transparent 1px);
  background-size: 28px 28px;
}
.plate-edge {
  position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--blue), var(--cyan), var(--blue), transparent);
  opacity: 0.85;
  animation: edge-shimmer 3s linear infinite;
  background-size: 200% 100%;
}
@keyframes edge-shimmer { to { background-position: -200% 0; } }

.print-object {
  position: absolute; inset: 10% 16% 8%;
  display: flex; align-items: flex-end; justify-content: center;
}
.print-bolt {
  height: 100%; width: auto; max-width: 100%; object-fit: contain;
  filter: drop-shadow(0 0 24px rgba(0, 212, 255, 0.55)) drop-shadow(0 0 6px rgba(46, 124, 255, 0.9));
  clip-path: inset(100% 0 0 0);
  animation: print-build 7s linear infinite;
}
.print-layers {
  position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(180deg, transparent 0 5px, rgba(5, 7, 13, 0.22) 5px 6px);
}
.print-head {
  position: absolute; left: -4%; right: -4%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan) 20%, #fff 50%, var(--cyan) 80%, transparent);
  bottom: 0;
  animation: head-rise 7s linear infinite;
  box-shadow: 0 0 16px rgba(0, 212, 255, 0.9);
}
.print-head-glow {
  position: absolute; left: 50%; top: 50%;
  width: 10px; height: 10px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 20px 6px rgba(0, 212, 255, 0.8);
  transform: translate(-50%, -50%);
  animation: head-travel 1.4s ease-in-out infinite alternate;
}
@keyframes print-build {
  0% { clip-path: inset(100% 0 0 0); }
  86% { clip-path: inset(0 0 0 0); }
  92% { clip-path: inset(0 0 0 0); }
  100% { clip-path: inset(0 0 0 0); opacity: 1; }
}
@keyframes head-rise {
  0% { bottom: 2%; opacity: 1; }
  86% { bottom: 94%; opacity: 1; }
  90% { opacity: 0; }
  100% { bottom: 94%; opacity: 0; }
}
@keyframes head-travel {
  from { left: 18%; }
  to { left: 82%; }
}

/* --- panneau g-code --- */
.gcode-panel {
  position: absolute; right: -14px; bottom: -30px;
  width: min(300px, 88%);
  background: rgba(10, 15, 30, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  font-size: 0.72rem; line-height: 1.9;
  color: var(--text-dim);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
  animation: panel-float 5s ease-in-out infinite;
}
@keyframes panel-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.gc-line { white-space: nowrap; overflow: hidden; }
.gc-active { color: var(--cyan); }
.gc-progress {
  height: 4px; background: rgba(120, 160, 255, 0.15);
  border-radius: 4px; overflow: hidden; margin: 8px 0;
}
.gc-progress span {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  border-radius: 4px;
  transition: width 0.3s linear;
}
.gc-pct { color: var(--blue-soft); }

.hero-scroll {
  position: absolute; bottom: 26px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 0.68rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--text-dim);
}
.scroll-line {
  width: 1px; height: 44px;
  background: linear-gradient(180deg, var(--cyan), transparent);
  animation: scroll-pulse 1.8s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%, 100% { transform: scaleY(0.4); transform-origin: top; opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* ============ MARQUEE ============ */
.marquee {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 20px 0; overflow: hidden;
  background: rgba(10, 15, 30, 0.5);
}
.marquee-track {
  display: flex; align-items: center; gap: 34px;
  width: max-content;
  animation: marquee-scroll 30s linear infinite;
  font-size: 0.85rem; letter-spacing: 0.14em;
  color: var(--blue-soft);
}
.marquee-track i { font-style: normal; color: var(--cyan); opacity: 0.7; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee-scroll { to { transform: translateX(-50%); } }

/* ============ PRESTATIONS ============
   Une liste, pas six boîtes identiques : les lignes se lisent
   d'affilée, seul le filet les sépare.
   ====================================== */
.prestations { border-top: 1px solid var(--line); }

.presta {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  gap: 0 28px;
  align-items: start;
  padding: 26px 20px 26px 10px;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background 0.3s, padding-left 0.35s var(--ease-out);
}
.presta::before {
  content: ""; position: absolute; left: 0; top: -1px; bottom: -1px;
  width: 2px;
  background: linear-gradient(180deg, var(--blue), var(--cyan));
  transform: scaleY(0); transform-origin: top;
  transition: transform 0.4s var(--ease-out);
}
.presta:hover { background: rgba(46, 124, 255, 0.05); padding-left: 22px; }
.presta:hover::before { transform: scaleY(1); }

.presta-mark { display: flex; flex-direction: column; gap: 7px; padding-top: 2px; }
.presta-icon {
  font-size: 1.45rem; line-height: 1;
  color: var(--blue-soft);
  transition: color 0.3s, text-shadow 0.3s;
}
.presta:hover .presta-icon {
  color: var(--cyan);
  text-shadow: 0 0 18px rgba(0, 212, 255, 0.65);
}
.presta-num {
  font-family: var(--font-mono);
  font-size: 0.62rem; letter-spacing: 0.14em;
  color: var(--text-dim); opacity: 0.65;
}

.presta-body h3 {
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.12rem; margin-bottom: 9px;
  transition: color 0.3s;
}
.presta:hover .presta-body h3 { color: #fff; }
.presta-body p {
  color: var(--text-dim); font-size: 0.95rem;
  max-width: 64ch;
}

.presta-spec {
  font-family: var(--font-mono);
  font-size: 0.66rem; letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan); opacity: 0.7;
  text-align: right; white-space: nowrap;
  padding-top: 6px;
  transition: opacity 0.3s;
}
.presta:hover .presta-spec { opacity: 1; }

/* ============ PROCESS ============ */
.process-track {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 26px; position: relative; margin-top: 70px;
}
.process-line {
  position: absolute; top: 14px; left: 2%; right: 2%; height: 2px;
  background: var(--line); border-radius: 2px; overflow: hidden;
}
.process-line span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.8);
  transition: width 1.6s var(--ease-out);
}
.step { padding-top: 46px; position: relative; }
.step::before {
  content: ""; position: absolute; top: 8px; left: 0;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--void);
  border: 2px solid var(--blue);
  box-shadow: 0 0 12px rgba(46, 124, 255, 0.7);
}
.step-num {
  display: block; font-size: 0.72rem; letter-spacing: 0.12em;
  color: var(--cyan); margin-bottom: 12px; text-transform: uppercase;
}
.step h3 {
  font-family: var(--font-display); font-weight: 600;
  font-size: 1rem; margin-bottom: 10px;
}
.step p { color: var(--text-dim); font-size: 0.92rem; }

/* ============ MATÉRIAUX ============ */
.materials {
  border: 1px solid var(--line); border-radius: 20px;
  background: linear-gradient(160deg, rgba(13, 20, 40, 0.75), rgba(10, 15, 30, 0.55));
  overflow: hidden;
}
.mat-tabs {
  display: flex; flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
}
.mat-tab {
  flex: 1; min-width: 110px;
  padding: 16px 10px;
  background: transparent; border: none; cursor: pointer;
  color: var(--text-dim); font-size: 0.8rem;
  border-bottom: 2px solid transparent;
  transition: color 0.25s, background 0.25s, border-color 0.25s;
}
.mat-tab:hover { color: var(--text); background: rgba(46, 124, 255, 0.06); }
.mat-tab.active {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
  background: rgba(0, 212, 255, 0.05);
}
.mat-panel {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 44px; padding: 44px;
}
.mat-panel.switching .mat-info,
.mat-panel.switching .mat-bars { opacity: 0; transform: translateY(8px); }
.mat-info, .mat-bars { transition: opacity 0.25s, transform 0.25s var(--ease-out); }
.mat-info h3 {
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.5rem; margin-bottom: 14px;
}
.mat-info p { color: var(--text-dim); margin-bottom: 18px; }
.mat-usage { font-size: 0.8rem; color: var(--blue-soft); }
.mat-bar { margin-bottom: 18px; }
.mat-bar-label {
  display: block; font-size: 0.82rem;
  color: var(--text-dim); margin-bottom: 7px;
}
.mat-bar-track {
  height: 7px; background: rgba(120, 160, 255, 0.12);
  border-radius: 7px; overflow: hidden;
}
.mat-bar-fill {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  border-radius: 7px;
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
  transition: width 0.8s var(--ease-out);
}
.mat-temp { font-size: 0.8rem; color: var(--text-dim); margin-top: 24px; }
.mat-temp span { color: var(--cyan); }

/* --- couleurs disponibles par filament --- */
.mat-colors { margin-top: 26px; }
.mat-colors-label {
  font-size: 0.72rem; color: var(--cyan);
  margin-bottom: 12px; letter-spacing: 0.05em;
}
/* nuancier : échantillons de bobine, pas des pastilles alignées */
.mat-swatches {
  display: flex; flex-wrap: wrap; gap: 0;
  border-top: 1px solid var(--line);
}
.swatch {
  display: flex; flex-direction: column; gap: 9px;
  padding: 14px 18px 0 0;
  font-family: var(--font-mono);
  font-size: 0.64rem; letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.25s;
}
.swatch:hover { color: var(--text); }
.swatch i {
  width: 58px; height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  /* léger galbe : on lit un bout de filament, pas un rond de couleur */
  box-shadow:
    inset 0 -9px 14px rgba(0, 0, 0, 0.42),
    inset 0 5px 10px rgba(255, 255, 255, 0.14);
  transition: border-color 0.25s;
}
.swatch:hover i { border-color: rgba(0, 212, 255, 0.55); }
.swatch-empty {
  font-family: var(--font-mono); font-size: 0.72rem;
  color: var(--text-dim); padding-top: 14px;
}

/* ============ RÉALISATIONS ============ */
.works-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 22px; margin-top: 56px;
}
.work {
  border: 1px solid var(--line); border-radius: 16px;
  background: linear-gradient(160deg, rgba(13, 20, 40, 0.8), rgba(10, 15, 30, 0.55));
  overflow: hidden;
  transition: border-color 0.35s, transform 0.35s var(--ease-out), box-shadow 0.35s;
}
.work:hover {
  border-color: rgba(100, 160, 255, 0.4);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45), 0 0 30px rgba(46, 124, 255, 0.1);
}
.work-visual {
  padding: 30px 30px 10px;
  background:
    radial-gradient(circle at 70% 20%, rgba(46, 124, 255, 0.09), transparent 55%);
}
/* --- illustrations isométriques ---
   Hiérarchie de traits d'un dessin technique : faces vues de dessus
   éclairées, flancs dans l'ombre, arêtes de détail plus fines. */
.work-svg { width: 100%; height: auto; display: block; }
.work-svg * { vector-effect: non-scaling-stroke; }

.work-svg .f-top {
  fill: rgba(46, 124, 255, 0.15);
  stroke: #d5e4ff; stroke-width: 1.7; stroke-linejoin: round;
}
.work-svg .f-side {
  fill: rgba(5, 10, 22, 0.78);
  stroke: #d5e4ff; stroke-width: 1.7; stroke-linejoin: round;
}
.work-svg .f-boss {
  fill: rgba(46, 124, 255, 0.26);
  stroke: #d5e4ff; stroke-width: 1.35;
}
.work-svg .f-hub {
  fill: rgba(46, 124, 255, 0.09);
  stroke: #a9c6f2; stroke-width: 1.2;
}
.work-svg .f-bore {
  fill: var(--void);
  stroke: #d5e4ff; stroke-width: 1.25;
}
.work-svg .l-det {
  fill: none; stroke: #a9c6f2; stroke-width: 1.05; stroke-linecap: round;
}
.work-svg .l-thin {
  fill: none; stroke: rgba(169, 198, 242, 0.42); stroke-width: 0.9;
}
.work-svg .l-hid {
  fill: none; stroke: rgba(169, 198, 242, 0.5); stroke-width: 0.9;
  stroke-dasharray: 5 4;
}

/* le dessin s'encre à l'entrée en vue, de l'arrière vers l'avant */
.work.reveal.visible .work-svg > * {
  animation: iso-ink 0.55s var(--ease-out) both;
}
.work.reveal.visible .work-svg > *:nth-child(n+4)  { animation-delay: 0.08s; }
.work.reveal.visible .work-svg > *:nth-child(n+10) { animation-delay: 0.16s; }
.work.reveal.visible .work-svg > *:nth-child(n+18) { animation-delay: 0.24s; }
/* opacité seule : un transform déplacerait la géométrie en unités SVG
   et désolidariserait les éléments d'une même pièce */
@keyframes iso-ink {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* au survol, la pièce se détache un peu plus */
.work .work-svg { transition: filter 0.35s; }
.work:hover .work-svg { filter: drop-shadow(0 6px 18px rgba(46, 124, 255, 0.28)); }
@keyframes svg-draw { to { stroke-dashoffset: 0; } }
.work-meta { padding: 18px 30px 26px; }
.work-meta h3 {
  font-family: var(--font-display); font-weight: 600;
  font-size: 0.95rem; margin-bottom: 8px;
}
.work-meta p { font-size: 0.72rem; color: var(--text-dim); letter-spacing: 0.04em; }


/* ============ CATALOGUE PRODUITS ============ */
.catalogue-head { padding-top: 150px; }
.catalogue-notes {
  list-style: none;
  display: flex; flex-wrap: wrap; gap: 10px 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.catalogue-notes li {
  display: flex; gap: 10px; align-items: baseline;
  color: var(--text-dim); font-size: 0.94rem;
}

/* grille : les filets séparent, pas des boîtes empilées */
.catalogue {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.produit {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: background 0.3s;
}
.produit:hover { background: rgba(46, 124, 255, 0.045); }

.produit-vue {
  position: relative;
  padding: 30px 30px 12px;
  background: radial-gradient(circle at 68% 22%, rgba(46, 124, 255, 0.08), transparent 58%);
}
.produit-vue .work-svg { max-height: 190px; margin-inline: auto; }
.produit-ref {
  position: absolute; top: 14px; left: 18px; z-index: 2;
  font-size: 0.62rem; letter-spacing: 0.14em;
  color: var(--text-dim);
}
.produit:hover .produit-ref { color: var(--cyan); }

/* --- fiche avec photo réelle --- */
.produit-photo .produit-vue {
  padding: 0; aspect-ratio: 4 / 3;
  overflow: hidden; background: var(--panel);
}
.produit-photo .produit-vue img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.6s var(--ease-out);
}
.produit-photo:hover .produit-vue img { transform: scale(1.05); }
.produit-photo .produit-ref {
  background: rgba(5, 7, 13, 0.72);
  padding: 3px 9px; border-radius: 4px;
  top: 12px; left: 12px;
  backdrop-filter: blur(4px);
}
.produit-photo .produit-corps { padding-top: 22px; }

.produit-corps {
  padding: 4px 30px 26px;
  display: flex; flex-direction: column; flex: 1;
}
.produit-corps h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.05rem; margin-bottom: 10px;
}
.produit-corps > p {
  color: var(--text-dim); font-size: 0.93rem;
  margin-bottom: 12px;
}
.produit-specs {
  font-size: 0.66rem; letter-spacing: 0.05em;
  color: var(--text-dim); opacity: 0.8;
  margin-bottom: 20px;
}
.produit-pied {
  margin-top: auto; padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px;
}
.produit-prix {
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.15rem; color: var(--text);
}
.produit:hover .produit-pied .btn-ghost {
  border-color: rgba(120, 170, 255, 0.5);
  background: rgba(46, 124, 255, 0.1);
}
.catalogue-empty {
  border: 1px dashed var(--line); border-radius: 14px;
  padding: 44px; text-align: center;
  font-size: 0.85rem; color: var(--text-dim);
}

/* onglet courant dans la navigation */
.nav-links a.is-current { color: var(--text); }
.nav-links a.is-current::after { transform: scaleX(1); transform-origin: left; }

/* ============ PAGE DE RETOUR APRÈS PAIEMENT ============ */
.retour { min-height: 78vh; display: flex; align-items: center; padding: 140px 0 90px; }
.retour-carte {
  border: 1px solid var(--line); border-radius: 20px;
  background: linear-gradient(160deg, rgba(13, 20, 40, 0.85), rgba(10, 15, 30, 0.6));
  padding: clamp(28px, 5vw, 48px);
  transition: border-color 0.4s;
}
.retour-carte.ok { border-color: rgba(53, 208, 127, 0.45); }
.retour-carte.ko { border-color: rgba(255, 107, 107, 0.45); }
.retour-carte h1 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.4rem, 3.4vw, 2rem);
  margin-bottom: 14px;
}
.retour-texte { color: var(--text-dim); font-size: 1.02rem; max-width: 54ch; }
.retour-detail {
  display: flex; flex-wrap: wrap; gap: 0;
  margin: 32px 0;
  border-top: 1px solid var(--line);
}
.retour-detail > div {
  flex: 1 1 150px; padding: 18px 22px 0 0;
  border-right: 1px solid var(--line);
}
.retour-detail > div:last-child { border-right: none; }
.retour-detail dt {
  font-family: var(--font-mono); font-size: 0.62rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 7px;
}
.retour-detail dd { font-size: 1.05rem; color: var(--text); }
.retour-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }

/* ============ FICHE PRODUIT EN GRAND ============ */

/* repère au survol d'une vignette */
.produit { cursor: pointer; }
.produit-loupe {
  position: absolute; right: 14px; bottom: 14px; z-index: 3;
  font-size: 0.58rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--cyan);
  background: rgba(5, 7, 13, 0.8);
  border: 1px solid rgba(0, 212, 255, 0.28);
  border-radius: 30px; padding: 5px 12px;
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
  pointer-events: none;
}
.produit:hover .produit-loupe,
.produit:focus-visible .produit-loupe { opacity: 1; transform: none; }

.fiche-overlay {
  position: fixed; inset: 0; z-index: 95;
  background: rgba(3, 5, 11, 0.9);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  padding: 3vh 20px;
  overflow-y: auto;
  animation: cmd-fade 0.28s var(--ease-out);
}
.fiche-plein {
  position: relative;
  width: min(1080px, 100%);
  background: linear-gradient(160deg, rgba(13, 20, 40, 0.97), rgba(10, 15, 30, 0.97));
  border: 1px solid rgba(100, 160, 255, 0.26);
  border-radius: 22px;
  padding: clamp(26px, 4vw, 48px);
  box-shadow: 0 50px 110px rgba(0, 0, 0, 0.65);
  animation: cmd-rise 0.4s var(--ease-out);
}
.fiche-close {
  position: absolute; top: 18px; right: 18px; z-index: 4;
  width: 38px; height: 38px;
  background: rgba(5, 7, 13, 0.6); border: 1px solid var(--line);
  border-radius: 10px; cursor: pointer;
  color: var(--text-dim); font-size: 0.9rem;
  transition: color 0.2s, border-color 0.2s;
}
.fiche-close:hover { color: var(--text); border-color: rgba(120, 170, 255, 0.5); }

/* navigation d'un produit à l'autre : les flèches encadrent le visuel,
   ce qui les garde à leur place quelle que soit la hauteur du texte */
.fiche-media { position: relative; }
.fiche-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
  width: 44px; height: 60px;
  background: rgba(5, 7, 13, 0.75);
  backdrop-filter: blur(4px);
  border: 1px solid var(--line); border-radius: 12px;
  color: var(--text-dim); font-size: 1.6rem; line-height: 1;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.fiche-nav:hover {
  color: var(--text); border-color: rgba(120, 170, 255, 0.5);
  background: rgba(46, 124, 255, 0.18);
}
.fiche-prec { left: -22px; }
.fiche-suiv { right: -22px; }

.fiche-grille {
  display: grid; grid-template-columns: 1.05fr 1fr;
  gap: clamp(26px, 4vw, 54px);
  align-items: center;
}

.fiche-vue {
  border: 1px solid var(--line); border-radius: 16px;
  background:
    radial-gradient(circle at 62% 26%, rgba(46, 124, 255, 0.12), transparent 62%),
    rgba(5, 7, 13, 0.5);
  padding: clamp(24px, 4vw, 46px);
  display: grid; place-items: center;
  min-height: 320px;
}
.fiche-vue .work-svg { width: 100%; max-height: 46vh; }
.fiche-vue.est-photo { padding: 0; overflow: hidden; }
.fiche-vue.est-photo img {
  width: 100%; height: 100%; max-height: 52vh;
  object-fit: cover; display: block; border-radius: 15px;
}

.fiche-ref {
  font-size: 0.68rem; letter-spacing: 0.16em;
  color: var(--cyan); margin-bottom: 14px;
}
.fiche-texte h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.15; margin-bottom: 16px;
}
.fiche-desc {
  color: var(--text-dim); font-size: 1.02rem;
  margin-bottom: 26px; max-width: 46ch;
}

.fiche-specs {
  display: flex; flex-wrap: wrap; gap: 0;
  border-top: 1px solid var(--line);
  margin-bottom: 26px;
}
.fiche-specs > div {
  padding: 12px 20px 12px 0;
  border-right: 1px solid var(--line);
  margin-right: 20px;
}
.fiche-specs > div:last-child { border-right: none; margin-right: 0; }
.fiche-specs dt {
  font-family: var(--font-mono); font-size: 0.72rem;
  color: var(--text-dim); letter-spacing: 0.04em;
}

.fiche-achat {
  display: flex; align-items: baseline; gap: 16px;
  flex-wrap: wrap; margin-bottom: 22px;
}
.fiche-prix {
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.9rem; color: var(--text);
}
.fiche-dispo { font-size: 0.68rem; color: var(--cyan); opacity: 0.85; }

.fiche-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.fiche-mention {
  font-size: 0.66rem; color: var(--text-dim);
  margin-top: 20px; opacity: 0.8;
}

@media (max-width: 900px) {
  .fiche-grille { grid-template-columns: 1fr; gap: 26px; }
  .fiche-vue { min-height: 0; }
  .fiche-vue .work-svg { max-height: 32vh; }
  /* les flèches passent à l'intérieur du visuel */
  .fiche-prec { left: 10px; }
  .fiche-suiv { right: 10px; }
  .fiche-nav { width: 38px; height: 50px; font-size: 1.3rem; }
}
@media (max-width: 560px) {
  .fiche-overlay { padding: 0; align-items: stretch; }
  .fiche-plein { border-radius: 0; border: none; min-height: 100%; }
  .fiche-actions .btn { flex: 1 1 100%; justify-content: center; }
}

/* ============ PAGES LÉGALES ============ */
.legal { padding: 150px 0 90px; }
.legal h1 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  line-height: 1.15; margin-bottom: 12px;
}
.legal-maj { font-size: 0.68rem; color: var(--text-dim); margin-bottom: 40px; }
.legal-chapo {
  font-size: 1.08rem; color: var(--text);
  border-left: 2px solid var(--blue);
  padding-left: 20px; margin-bottom: 40px;
}
.legal section { margin-bottom: 42px; }
.legal h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.12rem; color: var(--text);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.legal p { color: var(--text-dim); font-size: 0.98rem; margin-bottom: 14px; }
.legal p:last-child { margin-bottom: 0; }
.legal ul { color: var(--text-dim); font-size: 0.98rem; padding-left: 20px; margin-bottom: 14px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--blue-soft); }
.legal a:hover { color: var(--cyan); }
.legal strong { color: var(--text); font-weight: 600; }

/* identité de l'éditeur */
.legal-fiche { display: grid; gap: 0; }
.legal-fiche > div {
  display: grid; grid-template-columns: 210px 1fr; gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.legal-fiche dt {
  font-family: var(--font-mono); font-size: 0.66rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-dim); padding-top: 3px;
}
.legal-fiche dd { color: var(--text); font-size: 0.96rem; }

/* champ non renseigné : doit se voir */
.a-completer {
  color: var(--amber, #ffb020) !important;
  font-family: var(--font-mono); font-size: 0.82rem;
}

/* section mise en avant */
.legal-alerte {
  border: 1px solid rgba(100, 160, 255, 0.3);
  border-radius: 16px;
  padding: 28px clamp(20px, 3vw, 32px);
  background: rgba(46, 124, 255, 0.04);
}
.legal-alerte h2 { border-bottom-color: rgba(100, 160, 255, 0.3); }
.legal-important {
  border-left: 2px solid var(--cyan);
  padding: 12px 0 12px 18px;
  margin-top: 18px;
}

/* encadré réglementaire des garanties */
.legal-encadre {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px clamp(18px, 2.6vw, 26px);
  background: rgba(5, 7, 13, 0.45);
  margin-bottom: 16px;
}
.legal-encadre p { font-size: 0.92rem; }

/* formulaire type de rétractation */
.legal-formulaire { margin-top: 20px; }
.legal-formulaire summary {
  cursor: pointer; list-style: none;
  font-family: var(--font-mono); font-size: 0.72rem;
  letter-spacing: 0.08em; color: var(--cyan);
  padding: 12px 0;
}
.legal-formulaire summary::-webkit-details-marker { display: none; }
.legal-formulaire summary::before { content: "+ "; }
.legal-formulaire[open] summary::before { content: "− "; }
.legal-form-texte {
  font-family: var(--font-mono); font-size: 0.8rem; line-height: 1.9;
  border: 1px dashed var(--line); border-radius: 12px;
  padding: 20px;
}

/* tableau des traitements */
.legal-table {
  width: 100%; border-collapse: collapse;
  font-size: 0.88rem; margin-bottom: 14px;
}
.legal-table th, .legal-table td {
  text-align: left; vertical-align: top;
  padding: 11px 14px 11px 0;
  border-bottom: 1px solid var(--line);
}
.legal-table th {
  font-family: var(--font-mono); font-size: 0.62rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--cyan); font-weight: 400;
}
.legal-table td { color: var(--text-dim); }
.legal-table td:first-child { color: var(--text); }

.legal-liens {
  display: flex; gap: 24px; flex-wrap: wrap;
  padding-top: 26px; border-top: 1px solid var(--line);
}
.legal-liens a { font-size: 0.92rem; }

.footer-bottom a { color: inherit; text-decoration: none; }
.footer-bottom a:hover { color: var(--cyan); }

@media (max-width: 640px) {
  .legal { padding-top: 110px; }
  .legal-fiche > div { grid-template-columns: 1fr; gap: 4px; }
  .legal-table { font-size: 0.8rem; }
  .legal-table th:nth-child(3), .legal-table td:nth-child(3) { display: none; }
}

/* ============ PANIER ============ */

/* bouton du panier dans la navigation */
.nav-panier {
  display: inline-flex; align-items: center; gap: 9px;
  background: transparent;
  border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 14px; cursor: pointer;
  font-family: var(--font-body); font-size: 0.85rem; font-weight: 500;
  color: var(--text-dim);
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}
.nav-panier:hover { color: var(--text); border-color: rgba(120, 170, 255, 0.5); }
.nav-panier.plein { color: var(--text); border-color: rgba(0, 212, 255, 0.35); }
.panier-compte {
  min-width: 20px; height: 20px; padding: 0 6px;
  display: inline-grid; place-items: center;
  border-radius: 20px;
  font-family: var(--font-mono); font-size: 0.68rem;
  background: rgba(120, 160, 255, 0.14); color: var(--text-dim);
  transition: background 0.25s, color 0.25s;
}
.nav-panier.plein .panier-compte {
  background: linear-gradient(120deg, var(--blue), #1b5fe0);
  color: #fff;
}
.nav-panier.secoue { animation: panier-secoue 0.5s var(--ease-out); }
@keyframes panier-secoue {
  0%, 100% { transform: none; }
  25% { transform: translateY(-3px) scale(1.04); }
  60% { transform: translateY(1px) scale(0.99); }
}

/* confirmation d'ajout sur la vignette */
.btn-ajoute {
  background: rgba(53, 208, 127, 0.18) !important;
  box-shadow: 0 0 0 1px rgba(53, 208, 127, 0.5) inset !important;
}

/* lignes du panier */
.panier-etape > h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.35rem; margin-bottom: 24px;
}
.panier-ligne {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 16px; align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.panier-ligne:first-child { border-top: 1px solid var(--line); }
.panier-info h3 {
  font-family: var(--font-display); font-weight: 600;
  font-size: 0.95rem; margin-bottom: 5px;
}
.panier-info p { font-size: 0.66rem; color: var(--text-dim); letter-spacing: 0.04em; }

.panier-pas, .fiche-qte {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line); border-radius: 9px;
  overflow: hidden;
}
.panier-pas button, .fiche-qte button {
  width: 32px; height: 34px;
  background: transparent; border: none; cursor: pointer;
  color: var(--text-dim); font-size: 1rem; line-height: 1;
  transition: color 0.2s, background 0.2s;
}
.panier-pas button:hover, .fiche-qte button:hover {
  color: var(--text); background: rgba(46, 124, 255, 0.12);
}
.panier-qte {
  min-width: 30px; text-align: center;
  font-size: 0.85rem; color: var(--text);
}
.fiche-qte input {
  width: 46px; height: 34px; text-align: center;
  background: transparent; border: none;
  color: var(--text); font-family: var(--font-mono); font-size: 0.85rem;
  -moz-appearance: textfield;
}
.fiche-qte input::-webkit-outer-spin-button,
.fiche-qte input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.panier-ligne-total {
  font-family: var(--font-display); font-weight: 600;
  font-size: 0.98rem; min-width: 74px; text-align: right;
}
.panier-retirer {
  width: 28px; height: 28px;
  background: transparent; border: 1px solid transparent;
  border-radius: 7px; cursor: pointer;
  color: var(--text-dim); font-size: 0.72rem;
  transition: color 0.2s, border-color 0.2s;
}
.panier-retirer:hover { color: #ff6b6b; border-color: rgba(255, 107, 107, 0.4); }

.panier-vide {
  color: var(--text-dim); font-size: 0.95rem;
  padding: 34px 0; text-align: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}
.panier-retour {
  background: none; border: none; cursor: pointer;
  color: var(--text-dim); font-size: 0.7rem;
  padding: 0 0 14px; letter-spacing: 0.06em;
  transition: color 0.2s;
}
.panier-retour:hover { color: var(--cyan); }

/* récapitulatif à l'étape paiement */
.cmd-recap {
  border-top: 1px solid var(--line);
  padding-top: 14px; margin-top: 6px;
}
.cmd-recap-ligne {
  display: flex; justify-content: space-between; gap: 14px;
  font-size: 0.88rem; color: var(--text-dim);
  padding: 5px 0;
}

@media (max-width: 560px) {
  .panier-ligne {
    grid-template-columns: 1fr auto;
    grid-template-areas: "info retirer" "pas total";
    row-gap: 12px;
  }
  .panier-info { grid-area: info; }
  .panier-pas { grid-area: pas; justify-self: start; }
  .panier-ligne-total { grid-area: total; }
  .panier-retirer { grid-area: retirer; justify-self: end; }
  .fiche-actions .fiche-qte { flex: 0 0 auto; }
}

/* ============ BON DE COMMANDE ============ */
.cmd-overlay {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(3, 5, 11, 0.82);
  backdrop-filter: blur(6px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 5vh 20px;
  overflow-y: auto;
  animation: cmd-fade 0.25s var(--ease-out);
}
@keyframes cmd-fade { from { opacity: 0; } to { opacity: 1; } }

.cmd-panel {
  position: relative;
  width: min(520px, 100%);
  background: linear-gradient(160deg, rgba(13, 20, 40, 0.98), rgba(10, 15, 30, 0.98));
  border: 1px solid rgba(100, 160, 255, 0.28);
  border-radius: 18px;
  padding: 34px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6);
  animation: cmd-rise 0.35s var(--ease-out);
}
@keyframes cmd-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
.cmd-close {
  position: absolute; top: 16px; right: 16px;
  width: 34px; height: 34px;
  background: transparent; border: 1px solid var(--line);
  border-radius: 9px; cursor: pointer;
  color: var(--text-dim); font-size: 0.85rem;
  transition: color 0.2s, border-color 0.2s;
}
.cmd-close:hover { color: var(--text); border-color: rgba(120, 170, 255, 0.5); }

.cmd-panel h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.3rem; margin-bottom: 6px;
  padding-right: 40px;
}
.cmd-specs {
  font-size: 0.68rem; letter-spacing: 0.05em;
  color: var(--text-dim); margin-bottom: 26px;
}
.cmd-panel .form-row { display: grid; grid-template-columns: 100px 1fr; gap: 16px; }
.cmd-panel .form-field { margin-bottom: 18px; display: flex; flex-direction: column; }
.cmd-panel label {
  font-size: 0.74rem; font-weight: 500;
  color: var(--blue-soft); margin-bottom: 7px;
  letter-spacing: 0.04em;
}
.cmd-panel input, .cmd-panel textarea {
  background: rgba(5, 7, 13, 0.7);
  border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; color: var(--text);
  font-family: var(--font-body); font-size: 0.94rem;
  resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.cmd-panel input:focus, .cmd-panel textarea:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(46, 124, 255, 0.16);
}

.cmd-total {
  border-top: 1px solid var(--line);
  padding-top: 16px; margin: 6px 0 22px;
}
.cmd-total > div {
  display: flex; justify-content: space-between;
  font-size: 0.92rem; color: var(--text-dim);
  padding: 5px 0;
}
.cmd-total-final {
  border-top: 1px solid var(--line);
  margin-top: 8px; padding-top: 12px !important;
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.12rem; color: var(--text) !important;
}
/* acceptation des conditions de vente */
.cmd-cgv {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 16px; margin-bottom: 18px;
  border: 1px solid var(--line); border-radius: 12px;
  background: rgba(5, 7, 13, 0.4);
  cursor: pointer;
  transition: border-color 0.25s;
}
.cmd-cgv:hover { border-color: rgba(120, 170, 255, 0.4); }
.cmd-cgv input {
  width: 18px; height: 18px; flex-shrink: 0;
  margin-top: 2px; accent-color: var(--blue);
  cursor: pointer;
}
.cmd-cgv span { font-size: 0.84rem; color: var(--text-dim); line-height: 1.55; }
.cmd-cgv a { color: var(--blue-soft); }
.cmd-cgv a:hover { color: var(--cyan); }

.cmd-note {
  margin-top: 14px; text-align: center;
  font-size: 0.68rem; color: var(--text-dim);
}
.cmd-note.err { color: #ff6b6b; }

@media (max-width: 560px) {
  .cmd-panel { padding: 26px 20px; }
  .cmd-panel .form-row { grid-template-columns: 1fr; }
}

/* ============ BANDEAU CTA ============ */
.cta-band { padding: 130px 0; position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 60% 90% at 50% 50%, rgba(46, 124, 255, 0.16), transparent 70%);
}
.cta-band-inner { text-align: center; }
.cta-bolt {
  width: 54px; margin-bottom: 28px;
  filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.8));
  animation: bolt-float 3.5s ease-in-out infinite;
}
@keyframes bolt-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(4deg); }
}
.cta-band h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.6rem, 3.6vw, 2.5rem);
  line-height: 1.2; margin-bottom: 36px;
}

/* ============ FAQ ============ */
.faq-list { display: flex; flex-direction: column; gap: 14px; margin-top: 50px; }
.faq-item {
  border: 1px solid var(--line); border-radius: 14px;
  background: linear-gradient(160deg, rgba(13, 20, 40, 0.7), rgba(10, 15, 30, 0.5));
  overflow: hidden;
  transition: border-color 0.3s;
}
.faq-item[open] { border-color: rgba(100, 160, 255, 0.4); }
.faq-item summary {
  list-style: none; cursor: pointer;
  padding: 22px 56px 22px 26px;
  font-weight: 500; font-size: 1.02rem;
  position: relative;
  transition: color 0.25s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 24px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono); font-size: 1.3rem;
  color: var(--cyan);
  transition: transform 0.35s var(--ease-out);
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item summary:hover { color: var(--cyan); }
.faq-item p {
  padding: 0 26px 24px; color: var(--text-dim); font-size: 0.97rem;
  animation: faq-open 0.4s var(--ease-out);
}
@keyframes faq-open {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============ DEVIS ============ */
.devis-grid {
  display: grid; grid-template-columns: 1fr 1.1fr;
  gap: 70px; align-items: start;
}
.devis-points { list-style: none; margin: 6px 0 40px; }
.devis-points li {
  display: flex; gap: 12px; align-items: baseline;
  color: var(--text-dim); margin-bottom: 12px; font-size: 0.98rem;
}
.devis-direct p { font-size: 0.75rem; color: var(--text-dim); margin-bottom: 8px; }
.devis-mail {
  font-family: var(--font-mono); font-size: 1.15rem;
  color: var(--cyan); text-decoration: none;
  border-bottom: 1px dashed rgba(0, 212, 255, 0.4);
  transition: border-color 0.25s, text-shadow 0.25s;
}
.devis-mail:hover {
  border-bottom-style: solid;
  text-shadow: 0 0 18px rgba(0, 212, 255, 0.6);
}

.devis-form {
  background: linear-gradient(160deg, rgba(13, 20, 40, 0.85), rgba(10, 15, 30, 0.65));
  border: 1px solid var(--line); border-radius: 20px;
  padding: 38px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { margin-bottom: 20px; display: flex; flex-direction: column; }
.form-field label {
  font-size: 0.8rem; font-weight: 500;
  color: var(--blue-soft); margin-bottom: 8px;
  letter-spacing: 0.04em;
}
.form-field input,
.form-field select,
.form-field textarea {
  background: rgba(5, 7, 13, 0.7);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 16px;
  color: var(--text);
  font-family: var(--font-body); font-size: 0.95rem;
  transition: border-color 0.25s, box-shadow 0.25s;
  resize: vertical;
}
.form-field select { cursor: pointer; }
.form-field select option { background: var(--panel-2); }
.form-field input::placeholder,
.form-field textarea::placeholder { color: rgba(154, 168, 199, 0.5); }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(46, 124, 255, 0.18);
}
.form-note { margin-top: 16px; font-size: 0.72rem; color: var(--text-dim); text-align: center; }
.form-note.ok { color: var(--cyan); }

/* ============ FOOTER ============ */
.footer {
  border-top: 1px solid var(--line);
  padding: 70px 0 30px;
  background: linear-gradient(180deg, transparent, rgba(10, 15, 30, 0.8));
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr;
  gap: 50px; margin-bottom: 60px;
}
.footer-logo {
  height: 84px; margin-bottom: 4px; margin-left: -14px;
  filter: drop-shadow(0 0 12px rgba(0, 212, 255, 0.35));
}
.footer-brand p { color: var(--text-dim); font-size: 0.92rem; }
.footer-col h4 {
  font-size: 0.75rem; font-weight: 500;
  color: var(--cyan); margin-bottom: 18px;
}
.footer-col a {
  display: block; color: var(--text-dim);
  text-decoration: none; font-size: 0.95rem;
  margin-bottom: 10px;
  transition: color 0.25s, transform 0.25s var(--ease-out);
}
.footer-col a:hover { color: var(--text); transform: translateX(4px); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  border-top: 1px solid var(--line); padding-top: 26px;
  font-size: 0.72rem; color: var(--text-dim);
}
.footer-admin { color: inherit; transition: color 0.25s; }
.footer-admin:hover { color: var(--cyan); }

/* porte dérobée vers riulz tech — quasi invisible, rougeoie au survol */
.tech-door {
  color: rgba(255, 36, 64, 0.12);
  text-decoration: none;
  margin-left: 6px;
  transition: color 0.4s, text-shadow 0.4s;
}
.tech-door:hover {
  color: #ff2440;
  text-shadow: 0 0 12px rgba(255, 36, 64, 0.8);
}
.devis-phone {
  display: block; margin-top: 10px;
  font-family: var(--font-mono); font-size: 1.05rem;
  color: var(--blue-soft); text-decoration: none;
}
.devis-phone:hover { color: var(--cyan); }

/* ============ REVEAL AU SCROLL ============ */
.reveal {
  opacity: 0; transform: translateY(34px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: var(--rd, 0s);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 70px; }
  .hero { padding-top: 130px; }
  .hero-visual { max-width: 520px; margin: 0 auto; width: 100%; }
  .works-grid, .catalogue { grid-template-columns: repeat(2, 1fr); }
  .process-track { grid-template-columns: repeat(2, 1fr); row-gap: 50px; }
  .process-line { display: none; }
  .devis-grid { grid-template-columns: 1fr; gap: 50px; }
}

@media (max-width: 680px) {
  .section { padding: 80px 0; }
  .works-grid, .catalogue { grid-template-columns: 1fr; }
  .catalogue-head { padding-top: 120px; }

  /* prestations : la spec passe sous le texte */
  .presta {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 0 16px;
    padding: 22px 0 22px 10px;
  }
  .presta-icon { font-size: 1.2rem; }
  .presta-spec {
    grid-column: 2; text-align: left;
    padding-top: 12px;
  }
  .process-track { grid-template-columns: 1fr; }
  .mat-panel { grid-template-columns: 1fr; gap: 30px; padding: 30px 24px; }
  .form-row { grid-template-columns: 1fr; }
  .devis-form { padding: 28px 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-stats { gap: 28px; }
  .gcode-panel { right: 0; bottom: -46px; }

  .nav-burger { display: flex; position: relative; z-index: 70; }
  .nav-logo { position: relative; z-index: 70; }

  .nav-links {
    position: fixed; inset: 0; z-index: 60;
    flex-direction: column; justify-content: center;
    gap: 26px;
    padding: 90px 28px 40px;
    background: rgba(5, 7, 13, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s var(--ease-out);
  }
  .nav-links.open { opacity: 1; pointer-events: auto; }
  .nav-links a {
    font-size: 1.22rem;
    padding: 6px 4px;
  }
  .nav-links .btn { margin-top: 8px; }
  .nav-links .nav-panier { font-size: 1.05rem; padding: 10px 18px; min-height: 44px; }

  /* Menu ouvert : la barre s'efface. Un fond flouté ferait d'elle le
     repère des positions fixes, et le menu se replierait dedans. */
  .nav.menu-ouvert,
  .nav.menu-ouvert.scrolled {
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
  }
  body.menu-mobile-ouvert { overflow: hidden; }
}

/* ============ ACCESSIBILITÉ ============ */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .hero-title .line span { transform: none; }
  .reveal { opacity: 1; transform: none; }
  .print-bolt { clip-path: none; }
}

/* rappel de livraison sous les totaux du panier */
.franco-note {
  margin-top: 10px;
  font-size: 0.72rem;
  color: var(--cyan, #00d4ff);
  letter-spacing: 0.02em;
  line-height: 1.5;
}
.franco-note[hidden] { display: none; }

/* ============================================================
   ESPACE CLIENT
   ============================================================ */
.espace { padding: 140px 0 120px; }
.espace .section-title { margin-bottom: 14px; }
.espace-chargement {
  text-align: center; color: var(--text-dim);
  font-size: 0.8rem; padding: 80px 0;
}
.espace-chargement[hidden] { display: none; }

.espace-grille {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
  margin-top: 40px;
}
.espace-carte {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
}
.espace-carte h2 {
  font-family: var(--font-display);
  font-size: 1.15rem; font-weight: 600;
  margin: 6px 0 10px;
}
.espace-aide {
  color: var(--text-dim);
  font-size: 0.86rem;
  line-height: 1.65;
  margin-bottom: 18px;
}

.espace-onglets {
  display: flex; gap: 6px; margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.espace-onglet {
  background: none; border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-dim);
  font-family: inherit; font-size: 0.88rem;
  padding: 10px 14px; cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.espace-onglet:hover { color: var(--text); }
.espace-onglet.active { color: var(--blue-soft); border-bottom-color: var(--blue); }

.espace-entete {
  display: flex; flex-wrap: wrap; gap: 18px;
  align-items: flex-end; justify-content: space-between;
  margin-bottom: 34px;
}
.espace-entete h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  font-weight: 600; margin: 6px 0 4px;
}
.espace-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.espace-chiffres {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px; margin-bottom: 44px;
}
.espace-chiffre {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
}
.espace-chiffre .valeur {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 600;
}
.espace-chiffre .libelle {
  display: block; margin-top: 2px;
  font-size: 0.66rem; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-dim);
}

.espace-titre {
  font-family: var(--font-display);
  font-size: 1.2rem; font-weight: 600;
  margin: 44px 0 18px;
}
.espace-vide {
  color: var(--text-dim); font-size: 0.82rem;
  padding: 22px; border: 1px dashed var(--line); border-radius: 12px;
}
.espace-vide a { color: var(--blue-soft); }
.espace-securite { margin-top: 54px; }

/* ---- carte de suivi ---- */
.suivi-carte {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 28px;
  margin-bottom: 16px;
}
.suivi-entete {
  display: flex; flex-wrap: wrap; gap: 10px 14px;
  align-items: center; margin-bottom: 22px;
}
.suivi-ref { font-size: 0.78rem; color: var(--text-dim); }
.suivi-montant {
  margin-left: auto;
  font-family: var(--font-display);
  font-size: 1.15rem; font-weight: 600;
}
.suivi-etat {
  font-family: var(--font-mono); font-size: 0.64rem;
  padding: 3px 10px; border-radius: 20px;
  border: 1px solid var(--line); color: var(--text-dim);
}
.suivi-etat.payee, .suivi-etat.impr-devisee {
  color: #35d07f; border-color: rgba(53, 208, 127, 0.4);
}
.suivi-etat.en_preparation { color: #ffb545; border-color: rgba(255, 181, 69, 0.4); }
.suivi-etat.expediee, .suivi-etat.impr-payee {
  color: var(--cyan); border-color: rgba(0, 212, 255, 0.4);
}
.suivi-etat.annulee, .suivi-etat.impr-refusee, .suivi-etat.impr-annulee {
  color: var(--danger); border-color: rgba(255, 77, 94, 0.4);
}

/* ---- fresque d'avancement ---- */
.suivi-fresque {
  list-style: none; padding: 0; margin: 0 0 22px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
}
.suivi-fresque li {
  position: relative;
  padding-top: 26px;
  padding-right: 10px;
  color: var(--text-dim);
}
.suivi-fresque li::before {
  content: ""; position: absolute;
  top: 7px; left: 0; right: 0; height: 2px;
  background: var(--line);
}
.suivi-fresque li:last-child::before { right: calc(100% - 16px); }
.suivi-fresque li.faite::before,
.suivi-fresque li.en-cours::before { background: rgba(46, 124, 255, 0.55); }
.suivi-point {
  position: absolute; top: 0; left: 0;
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid var(--line);
  background: var(--void);
}
.suivi-fresque li.faite .suivi-point {
  border-color: var(--blue); background: var(--blue);
}
.suivi-fresque li.en-cours .suivi-point {
  border-color: var(--cyan); background: var(--void);
  box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.14);
}
.suivi-texte { display: block; font-size: 0.82rem; }
.suivi-texte b { display: block; color: var(--text-dim); font-weight: 600; }
.suivi-fresque li.faite b, .suivi-fresque li.en-cours b { color: var(--text); }
.suivi-detail {
  display: block; margin-top: 2px;
  font-family: var(--font-mono); font-size: 0.68rem;
}

.suivi-annulee {
  color: var(--danger); font-size: 0.84rem;
  margin-bottom: 18px;
}
.suivi-aide { color: var(--text-dim); font-size: 0.86rem; margin-bottom: 14px; }
.suivi-reglages { font-size: 0.72rem; color: var(--text-dim); margin-bottom: 14px; }
.suivi-colis {
  font-size: 0.84rem; margin-bottom: 16px;
  padding: 10px 14px; border-radius: 8px;
  background: rgba(0, 212, 255, 0.07);
  border: 1px solid rgba(0, 212, 255, 0.25);
}
.suivi-lignes { width: 100%; border-collapse: collapse; font-size: 0.84rem; }
.suivi-lignes td { padding: 8px 0; border-bottom: 1px solid var(--line); }
.suivi-lignes td:not(:first-child) { text-align: right; width: 90px; }
.suivi-lignes tr:last-child td { border-bottom: none; }
.suivi-lignes .port td { opacity: 0.75; font-size: 0.78rem; }
.suivi-adresse { font-size: 0.7rem; color: var(--text-dim); margin-top: 14px; }
.suivi-fichiers {
  list-style: none; padding: 0; margin: 0 0 16px;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.suivi-fichiers a {
  display: inline-block;
  font-family: var(--font-mono); font-size: 0.72rem;
  padding: 5px 12px; border-radius: 20px;
  border: 1px solid var(--line); color: var(--blue-soft);
}
.suivi-fichiers a:hover { border-color: var(--blue); }

.devis-bloc {
  margin: 18px 0 6px; padding: 18px 20px;
  border-radius: 12px;
  border: 1px solid rgba(53, 208, 127, 0.3);
  background: rgba(53, 208, 127, 0.05);
}
.devis-montant {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 600; margin-bottom: 6px;
}
.devis-mot { font-size: 0.86rem; color: var(--text-dim); margin-bottom: 14px; }
.devis-regle { font-family: var(--font-mono); font-size: 0.75rem; color: var(--cyan); }

/* ============================================================
   IMPRESSION À LA DEMANDE
   ============================================================ */
.impr-etapes {
  list-style: none; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px; margin-top: 40px;
}
.impr-etapes li {
  border: 1px solid var(--line); border-radius: 12px;
  padding: 18px 20px; background: var(--panel);
}
.impr-etapes span:first-child {
  display: block; font-size: 0.7rem; color: var(--blue-soft); margin-bottom: 8px;
}
.impr-etapes b { display: block; font-size: 0.95rem; margin-bottom: 3px; }
.impr-etapes span:last-child { font-size: 0.8rem; color: var(--text-dim); }

.impr-bloc {
  border: 1px solid var(--line); border-radius: 16px;
  padding: 26px 28px; margin-bottom: 20px;
  background: var(--panel);
}
.impr-bloc legend { padding: 0 10px; }

.impr-depot {
  position: relative;
  border: 1px dashed rgba(120, 160, 255, 0.35);
  border-radius: 14px;
  padding: 40px 24px; text-align: center;
  transition: border-color 0.2s, background 0.2s;
}
.impr-depot.survol {
  border-color: var(--blue);
  background: rgba(46, 124, 255, 0.06);
}
.impr-depot input[type="file"] {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0; cursor: pointer;
}
.impr-depot-titre { font-size: 1rem; margin-bottom: 6px; }
.impr-depot-aide { font-size: 0.7rem; color: var(--text-dim); }

.impr-liste { list-style: none; padding: 0; margin: 16px 0 0; }
.impr-liste li {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 6px;
}
.impr-nom { flex: 1; font-size: 0.85rem; word-break: break-all; }
.impr-poids { font-size: 0.7rem; color: var(--text-dim); }
.impr-retirer {
  background: none; border: none; cursor: pointer;
  color: var(--text-dim); font-size: 0.9rem; padding: 2px 6px;
}
.impr-retirer:hover { color: var(--danger); }

.impr-form select,
.impr-form input[type="range"] { width: 100%; }
.impr-mention {
  font-size: 0.68rem; color: var(--text-dim);
  text-align: center; margin-top: 16px;
}

.impr-recu {
  background: var(--panel);
  border: 1px solid rgba(53, 208, 127, 0.3);
  border-radius: 16px; padding: 40px;
  text-align: center;
}
.impr-recu h2 {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 600; margin: 8px 0 14px;
}
.impr-recu p { color: var(--text-dim); line-height: 1.7; }
.impr-ref { margin: 22px 0 6px; font-size: 1rem; color: var(--text) !important; }
.impr-ref .mono { color: var(--cyan); font-size: 1.05rem; }
.impr-recu-aide { font-size: 0.82rem; margin-bottom: 24px; }

@media (max-width: 780px) {
  .espace { padding: 110px 0 90px; }
  .espace-chiffres { grid-template-columns: repeat(2, 1fr); }
  .suivi-fresque { grid-template-columns: 1fr; gap: 14px; }
  .suivi-fresque li { padding-top: 0; padding-left: 28px; }
  .suivi-fresque li::before {
    top: 16px; bottom: -14px; left: 7px; right: auto;
    width: 2px; height: auto;
  }
  .suivi-fresque li:last-child::before { display: none; }
  .suivi-point { top: 0; }
  .espace-carte, .suivi-carte, .impr-bloc { padding: 22px 18px; }
  .impr-recu { padding: 28px 20px; }
}

.retour-suivi {
  margin: 22px 0 6px;
  font-size: 0.86rem;
  color: var(--text-dim);
  line-height: 1.7;
}
.retour-suivi a { color: var(--blue-soft); }
.retour-suivi[hidden] { display: none; }

/* ---- disponibilité des produits standards ---- */
.dispo {
  font-size: 0.68rem;
  margin-top: 10px;
  letter-spacing: 0.02em;
}
.dispo-stock { color: #35d07f; }
.dispo-fab { color: #ffb545; }
.fiche-dispo.fab { color: #ffb545; }

.fab-note {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 181, 69, 0.08);
  border: 1px solid rgba(255, 181, 69, 0.3);
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--text);
}
.fab-note b {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffb545;
  margin-bottom: 4px;
}
.fab-note[hidden] { display: none; }

.ligne-fab {
  display: inline-block;
  margin-left: 8px;
  font-size: 0.62rem;
  padding: 2px 8px;
  border-radius: 20px;
  color: #ffb545;
  border: 1px solid rgba(255, 181, 69, 0.35);
  white-space: nowrap;
}

/* ============================================================
   AFFINAGE MOBILE
   ------------------------------------------------------------
   Trois défauts mesurés sur un écran de 375 px, et leur remède :

   1. les champs de saisie étaient à 15,2 px — sous 16 px, Safari
      sur iPhone agrandit la page dès qu'on touche un champ, et le
      visiteur se retrouve décalé au milieu du formulaire ;
   2. les liens de pied de page ne faisaient que 24 px de haut,
      loin des 44 px qu'il faut pour viser sans se tromper ;
   3. les sections gardaient leurs 80 à 120 px de respiration du
      grand écran, ce qui allongeait la page sans rien apporter.
   ============================================================ */

@media (max-width: 680px) {

  /* ---- saisie : jamais sous 16 px ---- */
  input, select, textarea {
    font-size: 16px;
  }
  .devis-form input,
  .devis-form textarea,
  .devis-form select,
  .cmd-panel input,
  .cmd-panel textarea,
  .impr-form input,
  .impr-form select,
  .impr-form textarea,
  .espace-carte input,
  .espace-carte textarea,
  .espace-carte select,
  .msg-client-fil textarea,
  .fil-repondre textarea {
    font-size: 16px;
    padding: 14px 16px;
  }

  /* ---- cibles tactiles ---- */
  .footer-col a,
  .footer-bottom a {
    display: inline-block;
    padding: 9px 0;
    min-height: 44px;
    line-height: 26px;
  }
  .footer-bottom p { line-height: 2; }

  .nav-burger {
    padding: 12px 8px;
    margin-right: -8px;
  }
  .btn-sm { padding: 12px 20px; }

  /* la case à cocher des CGV se vise mal : on l'agrandit et on rend
     tout le libellé cliquable */
  .cmd-cgv { align-items: flex-start; gap: 12px; padding: 6px 0; }
  .cmd-cgv input[type="checkbox"] {
    width: 22px; height: 22px; flex: none; margin-top: 1px;
  }
  .cmd-cgv label, .cmd-cgv span { line-height: 1.55; }

  .panier-pas button,
  .panier-retirer {
    min-width: 40px;
    min-height: 40px;
  }

  .nav-logo { padding: 8px 0; }
  .devis-mail, .devis-phone {
    display: inline-block;
    padding: 10px 0;
    min-height: 44px;
    line-height: 24px;
  }

  /* ---- lisibilité ----
     0,78 rem = 12,5 px : le plancher sous lequel un texte gris sur
     fond sombre devient pénible à lire sur un téléphone. */
  .eyebrow { font-size: 0.78rem; letter-spacing: 0.13em; }
  .mat-colors-label,
  .form-note,
  .suivi-detail,
  .produit-specs { font-size: 0.76rem; }
  .footer-bottom, .footer-bottom p { font-size: 0.76rem; }

  /* ---- rythme vertical ---- */
  .section { padding: 64px 0; }
  .catalogue-head { padding-top: 104px; }
  .section-title { margin-bottom: 12px; }
  .section-sub { margin-bottom: 28px; }

  /* ---- hero : deux écrans, c'était un de trop ---- */
  .hero { padding-top: 100px; padding-bottom: 40px; }
  .hero-grid { gap: 34px; }
  .hero-visual { transform: scale(0.82); transform-origin: top center; margin-bottom: -60px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; }
  .hero-stats { justify-content: space-between; gap: 16px; }

  /* ---- catalogue ---- */
  .produit-corps { padding: 20px; }
  .catalogue-notes li { line-height: 1.7; }

  /* ---- fiche produit en grand ---- */
  .fiche-plein { padding: 18px 16px; }
  .fiche-actions { flex-direction: column; align-items: stretch; }
  .fiche-actions .btn { justify-content: center; }
  .fiche-nav { gap: 8px; }

  /* le ✕ qui retire un fichier se visait mal au pouce */
  .impr-retirer {
    min-width: 40px; min-height: 40px;
    display: flex; align-items: center; justify-content: center;
  }
  .impr-liste li { padding: 8px 10px 8px 14px; }

  .espace-vide a, .suivi-fichiers a, .devis-mot a {
    display: inline-block; padding: 8px 0; min-height: 40px; line-height: 24px;
  }

  /* ---- panier ---- */
  .cmd-panel { padding: 22px 18px 30px; }
  .cmd-total { font-size: 0.9rem; }
}

/* Très petits écrans : on resserre encore d'un cran. */
@media (max-width: 380px) {
  .hero-title { font-size: 1.85rem; }
  .section-title { font-size: 1.5rem; }
  .btn { padding: 13px 20px; font-size: 0.86rem; }
  .espace-chiffres { grid-template-columns: 1fr 1fr; gap: 8px; }
  .espace-chiffre { padding: 12px 14px; }
  .suivi-entete { gap: 8px; }
  .suivi-montant { margin-left: 0; }
}

/* ============================================================
   BANDEAU D'ANNONCE
   ============================================================ */
.banniere {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  font-size: 0.86rem;
  color: var(--void);
  background: var(--blue-soft);
}
.banniere[hidden] { display: none; }
.banniere.ton-bleu  { background: linear-gradient(90deg, var(--blue), var(--cyan)); color: #04121f; }
.banniere.ton-vert  { background: linear-gradient(90deg, #2fbf71, #7be0a8); color: #052014; }
.banniere.ton-ambre { background: linear-gradient(90deg, #ffb545, #ffd89b); color: #241603; }
.banniere.ton-rouge { background: linear-gradient(90deg, #ff4d5e, #ff9aa3); color: #260408; }

.banniere-inner {
  width: min(1180px, 92%); margin: 0 auto;
  min-height: 44px;
  display: flex; align-items: center; justify-content: center;
  gap: 12px; flex-wrap: wrap;
  padding: 9px 44px 9px 0;
  position: relative;
  text-align: center;
  font-weight: 500;
}
.banniere-inner a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
  white-space: nowrap;
}
.banniere-fermer {
  position: absolute; right: 0; top: 50%;
  transform: translateY(-50%);
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer;
  color: inherit; opacity: 0.6; font-size: 0.9rem;
}
.banniere-fermer:hover { opacity: 1; }

/* La barre de navigation descend d'autant. */
body.avec-banniere .nav { top: var(--banniere-h, 44px); }

@media (max-width: 680px) {
  .banniere-inner {
    font-size: 0.8rem;
    padding: 10px 40px 10px 0;
    gap: 6px;
  }
  body.avec-banniere .nav { top: var(--banniere-h, 58px); }
  .banniere-fermer { width: 40px; height: 40px; }
}

/* ---- code de réduction et fidélité au panier ---- */
.promo { margin: 20px 0 6px; }
.promo[hidden] { display: none; }
.promo > label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.promo-ligne { display: flex; gap: 8px; }
.promo-ligne input {
  flex: 1; min-width: 0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.promo-note { font-size: 0.76rem; margin-top: 8px; color: var(--text-dim); }
.promo-note.ok { color: #35d07f; }
.promo-note.err { color: var(--danger); }

#panierRemiseLigne span:last-child,
#cmdRemiseLigne span:last-child,
#panierPointsLigne span:last-child,
#cmdPointsLigne span:last-child { color: #35d07f; }

.fidelite-bloc {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(53, 208, 127, 0.28);
  background: rgba(53, 208, 127, 0.06);
}
.fidelite-bloc[hidden] { display: none; }
.fidelite-choix {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.85rem; cursor: pointer;
}
.fidelite-choix input { width: 20px; height: 20px; flex: none; }
.fidelite-gain { font-size: 0.72rem; color: #35d07f; margin-top: 10px; }
.fidelite-gain[hidden] { display: none; }

/* ============================================================
   ESPACE CLIENT — points, messagerie, affiliation
   ============================================================ */
.espace-onglets-principaux { margin: 0 0 26px; overflow-x: auto; }
.espace-onglets-principaux .espace-onglet { white-space: nowrap; }
.onglet-pastille {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px; margin-left: 6px;
  border-radius: 18px; background: var(--blue); color: var(--void);
  font-family: var(--font-mono); font-size: 0.62rem; font-weight: 600;
}
.onglet-pastille[hidden] { display: none; }

/* ---- points ---- */
.pt-carte { text-align: center; }
.pt-solde {
  font-family: var(--font-display);
  font-size: 3rem; font-weight: 600; line-height: 1;
  color: var(--cyan);
}
.pt-solde span { font-size: 1rem; color: var(--text-dim); margin-left: 8px; }
.pt-valeur { font-size: 0.95rem; margin: 8px 0 18px; }
.pt-histo { max-height: 320px; overflow-y: auto; }
.pt-ligne {
  display: grid;
  grid-template-columns: 1fr auto 60px;
  gap: 12px; align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.84rem;
}
.pt-ligne:last-child { border-bottom: none; }
.pt-ligne .mono { font-size: 0.68rem; color: var(--text-dim); }
.pt-delta { text-align: right; font-family: var(--font-mono); font-weight: 600; }
.pt-delta.plus { color: #35d07f; }
.pt-delta.moins { color: #ffb545; }

/* ---- messagerie ---- */
.msg-client {
  display: grid;
  grid-template-columns: minmax(200px, 280px) 1fr;
  gap: 16px; align-items: start;
  margin-bottom: 24px;
}
.msg-client-liste {
  border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden;
}
.fil-entree {
  position: relative;
  display: block; width: 100%; text-align: left;
  padding: 14px 16px;
  background: none; border: none;
  border-bottom: 1px solid var(--line);
  cursor: pointer; font-family: inherit;
  transition: background 0.18s;
}
.fil-entree:last-child { border-bottom: none; }
.fil-entree:hover { background: rgba(255, 255, 255, 0.03); }
.fil-entree.active { background: rgba(46, 124, 255, 0.1); }
.fil-entree b { display: block; font-size: 0.88rem; color: var(--text); margin-bottom: 3px; }
.fil-entree .mono { font-size: 0.66rem; color: var(--text-dim); }
.fil-entree.non-lu b { color: var(--cyan); }
.fil-pastille {
  position: absolute; top: 14px; right: 14px;
  min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 20px; background: var(--blue); color: var(--void);
  font-family: var(--font-mono); font-size: 0.66rem; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}

.msg-client-fil {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 22px;
  background: var(--panel);
}
.msg-client-fil[hidden] { display: none; }
.fil-tete {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 12px; flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px; margin-bottom: 16px;
}
.fil-tete h3 { font-family: var(--font-display); font-size: 1rem; }
.fil-tete .mono { font-size: 0.66rem; color: var(--text-dim); }
.fil-corps { max-height: 360px; overflow-y: auto; padding-right: 4px; }
.fil-bulle {
  max-width: 84%;
  padding: 11px 15px; border-radius: 14px; margin-bottom: 10px;
}
.fil-bulle.de-moi {
  margin-left: auto;
  background: rgba(46, 124, 255, 0.14);
  border: 1px solid rgba(46, 124, 255, 0.3);
  border-bottom-right-radius: 4px;
}
.fil-bulle.de-eux {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
}
.fil-bulle p { font-size: 0.88rem; line-height: 1.6; }
.fil-bulle .mono { display: block; margin-top: 5px; font-size: 0.62rem; color: var(--text-dim); }
.fil-repondre { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 16px; }
.fil-repondre textarea { width: 100%; margin-bottom: 10px; }

/* ---- affiliation ---- */
.aff-carte { text-align: center; }
.aff-code {
  font-family: var(--font-display);
  font-size: 2.2rem; font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--cyan);
  margin: 10px 0 14px;
}
.aff-lien { display: flex; gap: 8px; margin-top: 16px; }
.aff-lien input {
  flex: 1; min-width: 0;
  font-family: var(--font-mono); font-size: 0.76rem;
}

@media (max-width: 780px) {
  .msg-client { grid-template-columns: 1fr; }
  .msg-client-liste { max-height: 260px; overflow-y: auto; }
  .fil-bulle { max-width: 92%; }
  .pt-solde { font-size: 2.4rem; }
  .aff-code { font-size: 1.7rem; }
  .aff-lien { flex-direction: column; }
}
