/* ==========================================================================
   T3DCreation — Feuille de style du site public
   --------------------------------------------------------------------------
   1. Polices            6. En-tête & navigation     11. Formulaires
   2. Variables (thèmes) 7. Accueil (hero…)          12. Devis
   3. Base               8. Sections & cartes        13. Galerie & visionneuse
   4. Utilitaires        9. Pied de page             14. Contact, FAQ, légal
   5. Boutons           10. Pages intérieures        15. Animations & accessibilité
   ========================================================================== */

/* 1. Polices auto-hébergées (aucun appel à un service externe : RGPD + performance) */
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/montserrat-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/montserrat-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/montserrat-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/inter-latin-700-normal.woff2") format("woff2"); }

/* 2. Variables — la couleur principale vient de l'administration (--accent-light / --accent-dark) */
:root {
  --accent-light: #275fa3;
  --accent-dark: #5b9bec;
  --font-head: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* Thème clair (par défaut) */
  --accent: var(--accent-light);
  --accent-2: color-mix(in srgb, var(--accent) 70%, #22d3ee);
  --accent-soft: color-mix(in srgb, var(--accent) 10%, transparent);
  --accent-contrast: #ffffff;
  --bg: #f6f8fc;
  --bg-alt: #edf1f8;
  --surface: #ffffff;
  --surface-2: #f2f5fa;
  --text: #0e1a2b;
  --text-muted: #556275;
  --border: rgba(14, 26, 43, .10);
  --border-strong: rgba(14, 26, 43, .18);
  --shadow-sm: 0 1px 2px rgba(14, 26, 43, .06), 0 2px 8px rgba(14, 26, 43, .04);
  --shadow: 0 10px 30px -12px rgba(14, 26, 43, .18), 0 2px 6px rgba(14, 26, 43, .05);
  --shadow-lg: 0 30px 60px -20px rgba(14, 26, 43, .28);
  --grid-line: rgba(39, 95, 163, .07);
  --danger: #d03b3b;
  --success: #1f9d61;
  --warning: #d98a1c;
  --logo-ink: #111111;
  --logo-blue: #275fa3;
  --header-bg: rgba(246, 248, 252, .78);
  color-scheme: light;
}

[data-theme="dark"] {
  --accent: var(--accent-dark);
  --accent-2: color-mix(in srgb, var(--accent) 65%, #67e8f9);
  --accent-soft: color-mix(in srgb, var(--accent) 16%, transparent);
  --accent-contrast: #06101f;
  --bg: #0a1120;
  --bg-alt: #0e1728;
  --surface: #111b2e;
  --surface-2: #16223a;
  --text: #e7edf7;
  --text-muted: #9aa7bb;
  --border: rgba(255, 255, 255, .08);
  --border-strong: rgba(255, 255, 255, .16);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow: 0 12px 34px -14px rgba(0, 0, 0, .6);
  --shadow-lg: 0 30px 70px -20px rgba(0, 0, 0, .7);
  --grid-line: rgba(91, 155, 236, .07);
  --danger: #f06565;
  --success: #3ccf8e;
  --warning: #f1a640;
  --logo-ink: #ffffff;
  --logo-blue: #3d7fd6;
  --header-bg: rgba(10, 17, 32, .74);
  color-scheme: dark;
}

/* 3. Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color .3s, color .3s;
}
img, svg, video { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-2); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.02em; color: var(--text); }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em; background: var(--surface-2); padding: .1em .4em; border-radius: 6px; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }
::selection { background: color-mix(in srgb, var(--accent) 30%, transparent); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 70%, transparent); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

/* 4. Utilitaires */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 860px; }
.center { text-align: center; }
.sr-only, .hp-field { position: absolute !important; 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: -60px; z-index: 200; background: var(--accent); color: var(--accent-contrast); padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 600; transition: top .2s; }
.skip-link:focus { top: 12px; color: var(--accent-contrast); }
.icon { width: 1.15em; height: 1.15em; flex-shrink: 0; }
.icon-xl { width: 3rem; height: 3rem; }
.muted { color: var(--text-muted); }
.text-gradient {
  background: linear-gradient(110deg, var(--accent) 10%, var(--accent-2) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.kicker {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-head); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .9rem;
}
.kicker::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--text-muted); max-width: 720px; }
.hint { font-size: .86rem; color: var(--text-muted); display: flex; gap: .45em; align-items: flex-start; margin: .5rem 0 0; }
.hint .icon { margin-top: .2em; color: var(--accent); }
.hint.center { justify-content: center; }

/* 5. Boutons — zones tactiles larges (48 px) */
.btn {
  --btn-bg: var(--surface); --btn-fg: var(--text); --btn-bd: var(--border-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .75em 1.35em;
  font-family: var(--font-head); font-weight: 700; font-size: .95rem; letter-spacing: -.005em; line-height: 1.2;
  color: var(--btn-fg); background: var(--btn-bg); border: 1.5px solid var(--btn-bd); border-radius: 999px;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s, background-color .2s, color .2s, border-color .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-2px); color: var(--btn-fg); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-primary {
  --btn-fg: var(--accent-contrast); --btn-bd: transparent;
  background: linear-gradient(135deg, var(--accent) 0%, color-mix(in srgb, var(--accent) 75%, var(--accent-2)) 100%);
  box-shadow: 0 8px 22px -10px color-mix(in srgb, var(--accent) 80%, transparent);
}
.btn-primary:hover { box-shadow: 0 14px 30px -10px color-mix(in srgb, var(--accent) 85%, transparent); }
.btn-ghost { --btn-bg: transparent; --btn-bd: var(--border-strong); }
.btn-ghost:hover { --btn-bd: var(--accent); --btn-fg: var(--accent); }
.btn-outline { --btn-bg: transparent; --btn-fg: var(--accent); --btn-bd: color-mix(in srgb, var(--accent) 45%, transparent); }
.btn-outline:hover { --btn-bg: var(--accent-soft); }
.btn-light { --btn-bg: #ffffff; --btn-fg: #0e1a2b; --btn-bd: transparent; }
.btn-light:hover { --btn-fg: #0e1a2b; }
.btn-danger { --btn-bg: var(--danger); --btn-fg: #fff; --btn-bd: transparent; }
.btn-danger:hover { --btn-fg: #fff; }
.btn-sm { min-height: 40px; padding: .5em 1em; font-size: .85rem; }
.btn-lg { min-height: 56px; padding: .9em 1.7em; font-size: 1.02rem; }
.btn-block { width: 100%; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text);
  cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.icon-btn:disabled { opacity: .4; cursor: not-allowed; }
.icon-btn .icon { width: 20px; height: 20px; }

/* 6. En-tête & navigation */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: var(--header-bg); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--border); box-shadow: 0 6px 24px -18px rgba(0, 0, 0, .35); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; flex-shrink: 0; }
.brand-mark { width: 40px; height: 44px; }
.brand-word { display: inline-flex; }
.brand-word-svg { width: 118px; height: 17px; }
.brand-logo { height: 48px; width: auto; }
.logo-full { aspect-ratio: 4314 / 3858; }
.logo-mark { aspect-ratio: 2520 / 2748; }
.logo-word { aspect-ratio: 4314 / 606; }
.logo-img.logo-dark { display: none; }
[data-theme="dark"] .logo-img.logo-dark { display: block; }
[data-theme="dark"] .logo-img.logo-light:has(+ .logo-dark) { display: none; }
.main-nav { margin-left: auto; display: flex; align-items: center; gap: 1rem; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; }
.main-nav a:not(.btn) {
  display: block; padding: .55rem .9rem; border-radius: 999px; text-decoration: none;
  font-family: var(--font-head); font-weight: 600; font-size: .93rem; color: var(--text); transition: background-color .2s, color .2s;
}
.main-nav a:not(.btn):hover { background: var(--accent-soft); color: var(--accent); }
.main-nav a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }
.nav-cta { display: none; }
.header-actions { display: flex; align-items: center; gap: .5rem; margin-left: .5rem; }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
.menu-toggle { display: none; }
.burger { display: grid; gap: 4px; width: 20px; }
.burger span { display: block; height: 2px; border-radius: 2px; background: currentColor; transition: transform .3s var(--ease), opacity .2s; }
.menu-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1100px) {
  .menu-toggle { display: inline-grid; }
  .header-cta { display: none; }
  .header-actions { margin-left: auto; }
  /* L'en-tête (flou d'arrière-plan) sert de référence au menu : on le place juste dessous, sur toute la hauteur. */
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; z-index: 99;
    height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h));
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 1.5rem;
    padding: 1.5rem var(--gutter) 2rem; margin: 0;
    background: var(--bg); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .25s var(--ease), visibility .25s;
  }
  .menu-open .main-nav { opacity: 1; visibility: visible; transform: none; }
  .main-nav ul { flex-direction: column; gap: .25rem; }
  .main-nav a:not(.btn) { font-size: 1.25rem; padding: .9rem 1rem; border-radius: var(--radius-sm); }
  .nav-cta { display: inline-flex; min-height: 56px; }
  body.menu-open { overflow: hidden; }
}
@media (max-width: 420px) {
  .brand-word-svg { width: 96px; height: 14px; }
  .brand-mark { width: 34px; height: 38px; }
}

/* Fil d'Ariane */
.breadcrumb { padding-top: 1.1rem; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; font-size: .85rem; color: var(--text-muted); }
.breadcrumb li + li::before { content: "/"; margin-right: .4rem; opacity: .5; }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }

/* 7. Accueil — Hero */
.hero { position: relative; padding: clamp(2.5rem, 7vw, 6rem) 0 clamp(3rem, 7vw, 6rem); overflow: hidden; isolation: isolate; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 500px at 85% 15%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 65%),
    radial-gradient(700px 420px at 5% 90%, color-mix(in srgb, var(--accent-2) 14%, transparent), transparent 70%),
    linear-gradient(var(--grid-line) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px) 0 0 / 44px 44px;
  mask-image: linear-gradient(180deg, #000 70%, transparent);
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem; padding: .45rem 1rem .45rem .7rem; margin-bottom: 1.4rem;
  font-size: .85rem; font-weight: 600; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 999px; box-shadow: var(--shadow-sm);
}
.pulse-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 0 color-mix(in srgb, var(--success) 60%, transparent); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.hero-title { margin-bottom: 1.2rem; }
.hero-text { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--text-muted); max-width: 600px; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 2rem; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; font-size: .92rem; color: var(--text-muted); }
.hero-points li { display: inline-flex; align-items: center; gap: .45rem; }
.hero-points .icon { color: var(--success); }

.hero-visual { position: relative; min-height: 420px; display: grid; place-items: center; }
.hero-image { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.print-stage { position: relative; width: min(100%, 420px); aspect-ratio: 1; display: grid; place-items: center; }
.print-stage::before {
  content: ""; position: absolute; inset: 8%; border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 68%);
  filter: blur(10px);
}
.print-plate {
  position: absolute; bottom: 9%; left: 50%; width: 78%; height: 14%; transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%);
}
.print-object { position: relative; width: 70%; animation: float 6s ease-in-out infinite 3.4s; }
.print-cube { width: 100%; height: auto; aspect-ratio: 2520 / 2748; filter: drop-shadow(0 26px 30px rgba(10, 30, 60, .25)); }
.anim .print-cube { animation: print-reveal 3.2s cubic-bezier(.6, .1, .4, 1) both; }
.print-layers {
  position: absolute; inset: 0; pointer-events: none; opacity: .18;
  background: repeating-linear-gradient(180deg, transparent 0 5px, var(--bg) 5px 6px);
  -webkit-mask: url("../img/logo-mark.svg") center / contain no-repeat; mask: url("../img/logo-mark.svg") center / contain no-repeat;
}
.print-nozzle { position: absolute; left: -6%; right: -6%; height: 3px; top: 100%; opacity: 0; }
.print-nozzle span {
  position: absolute; inset: 0; border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--accent-2), #fff, var(--accent-2), transparent);
  box-shadow: 0 0 18px 4px color-mix(in srgb, var(--accent-2) 60%, transparent);
}
.anim .print-nozzle { animation: nozzle 3.2s cubic-bezier(.6, .1, .4, 1) both; }
@keyframes print-reveal { from { clip-path: inset(100% -10% 0 -10%); } to { clip-path: inset(0 -10% 0 -10%); } }
@keyframes nozzle { 0% { top: 100%; opacity: 1; } 92% { opacity: 1; } 100% { top: 0; opacity: 0; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.float-card {
  position: absolute; display: flex; align-items: center; gap: .75rem; padding: .8rem 1rem;
  background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
  font-size: .82rem; line-height: 1.3;
}
.float-card .icon { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.float-card strong { display: block; font-family: var(--font-head); font-size: .92rem; }
.float-card span { color: var(--text-muted); }
.float-card-1 { bottom: 16%; left: -4%; animation: float 7s ease-in-out infinite; }
.float-card-2 { top: 14%; right: -4%; animation: float 8s ease-in-out infinite 1s; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 0; order: -1; max-width: 420px; margin-inline: auto; width: 100%; }
  .print-stage { width: min(78vw, 340px); }
  .float-card-1 { left: -2%; bottom: 6%; }
  .float-card-2 { right: -2%; top: 8%; }
  .hero-content { text-align: center; }
  .hero-text { margin-inline: auto; }
  .hero-actions, .hero-points { justify-content: center; }
}
@media (max-width: 520px) {
  .hero-actions .btn { width: 100%; }
  .float-card { padding: .6rem .75rem; font-size: .75rem; }
  .float-card .icon { width: 30px; height: 30px; padding: 6px; }
}

/* Chiffres clés */
.counters { padding: 0 0 clamp(2rem, 5vw, 3.5rem); }
.counters-grid {
  display: flex; flex-wrap: wrap; gap: 1px;
  background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm);
}
.counter { flex: 1 1 200px; background: var(--surface); padding: 1.5rem 1.25rem; text-align: center; }
.counter strong { display: block; font-family: var(--font-head); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: var(--accent); line-height: 1.1; }
.counter span { font-size: .88rem; color: var(--text-muted); }

/* 8. Sections & cartes */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; position: relative; }
.section-tight { padding-top: clamp(1.5rem, 4vw, 2.5rem); }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 760px; margin: 0 auto clamp(2rem, 5vw, 3.2rem); text-align: center; }
.section-head p:last-child { color: var(--text-muted); font-size: 1.08rem; margin: 0; }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; max-width: none; text-align: left; }
.section-head-row > div { max-width: 680px; }
@media (max-width: 700px) { .section-head-row { flex-direction: column; align-items: flex-start; } }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}

/* Étapes */
.steps { list-style: none; padding: 0; margin: 0 0 2.5rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; counter-reset: step; position: relative; }
.step {
  position: relative; padding: 2rem 1.75rem 1.75rem; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden;
}
.step::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transform: scaleX(.25); transform-origin: left; transition: transform .5s var(--ease); }
.step:hover::after { transform: scaleX(1); }
.step-number { position: absolute; top: 1rem; right: 1.3rem; font-family: var(--font-head); font-weight: 800; font-size: 3rem; line-height: 1; color: var(--accent); opacity: .12; }
.step-icon { display: inline-grid; place-items: center; width: 56px; height: 56px; margin-bottom: 1.2rem; border-radius: 16px; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 10px 20px -10px var(--accent); }
.step-icon .icon { width: 26px; height: 26px; }
.step p { color: var(--text-muted); margin: 0; }

/* Atouts */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.feature { padding: 1.75rem; }
.feature:hover, .material:hover, .machine:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); }
.feature-icon { display: inline-grid; place-items: center; width: 50px; height: 50px; margin-bottom: 1.1rem; border-radius: 14px; background: var(--accent-soft); color: var(--accent); }
.feature-icon .icon { width: 24px; height: 24px; }
.feature p { color: var(--text-muted); margin: 0; font-size: .96rem; }

/* Matières */
.materials { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1.25rem; }
.material { padding: 1.5rem; }
.material h3 { display: flex; align-items: center; gap: .55rem; font-size: 1.2rem; }
.material h3 .icon { color: var(--accent); }
.material p { color: var(--text-muted); font-size: .93rem; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.chips li { font-size: .75rem; font-weight: 600; padding: .3rem .65rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }

/* Bandeau d'appel à l'action */
.cta-band { padding: 0 0 clamp(3.5rem, 8vw, 6rem); }
.section-alt + .cta-band { padding-top: clamp(3.5rem, 8vw, 6rem); background: var(--bg-alt); }
.cta-card {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  padding: clamp(2rem, 5vw, 3.5rem); border-radius: var(--radius-lg); color: #fff;
  background:
    radial-gradient(600px 300px at 90% 0%, rgba(255, 255, 255, .18), transparent 60%),
    linear-gradient(135deg, var(--accent-light) 0%, color-mix(in srgb, var(--accent-light) 60%, #0b1f3d) 100%);
  box-shadow: var(--shadow-lg);
}
.cta-card::before {
  content: ""; position: absolute; inset: 0; opacity: .25; pointer-events: none;
  background: linear-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px) 0 0 / 30px 30px, linear-gradient(90deg, rgba(255, 255, 255, .12) 1px, transparent 1px) 0 0 / 30px 30px;
  mask-image: linear-gradient(90deg, transparent, #000); -webkit-mask-image: linear-gradient(90deg, transparent, #000);
}
.cta-card h2 { color: #fff; margin-bottom: .4rem; }
.cta-card p { margin: 0; opacity: .9; max-width: 560px; }
.cta-text, .cta-card .btn { position: relative; }
@media (max-width: 760px) { .cta-card { flex-direction: column; align-items: flex-start; } .cta-card .btn { width: 100%; } }

/* 9. Pied de page */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding-top: clamp(3rem, 6vw, 4.5rem); font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer-logo { display: inline-block; margin-bottom: 1rem; }
.footer-logo-img { width: 120px; height: auto; }
.footer-brand p { color: var(--text-muted); max-width: 340px; }
.footer-title { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text-muted); margin-bottom: 1rem; font-weight: 700; }
.footer-col ul { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .55rem; }
.footer-col a { color: var(--text); text-decoration: none; }
.footer-col a:hover { color: var(--accent); }
.contact-list li { display: flex; align-items: flex-start; gap: .6rem; color: var(--text-muted); }
.contact-list .icon { color: var(--accent); margin-top: .25em; }
.contact-list a { word-break: break-word; }
.socials { list-style: none; padding: 0; margin: 1.2rem 0 0; display: flex; gap: .5rem; }
.socials a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--border); color: var(--text); transition: all .2s; }
.socials a:hover { color: #fff; background: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.footer-bottom { border-top: 1px solid var(--border); padding: 1.25rem 0; font-size: .84rem; color: var(--text-muted); }
.footer-bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; }
.footer-bottom p { margin: 0; }
.footer-note { display: inline-flex; align-items: center; gap: .4rem; }
.footer-note .icon { color: var(--success); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* 10. Pages intérieures */
.page-header { padding: clamp(1.5rem, 4vw, 2.5rem) 0 clamp(1rem, 3vw, 1.5rem); position: relative; }
.page-header h1 { font-size: clamp(1.9rem, 4.4vw, 3.1rem); max-width: 900px; }
.page-header-sm h1 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
.prose { font-size: 1.02rem; }
.prose h2 { font-size: 1.35rem; margin-top: 2rem; }
.prose h3 { margin-top: 1.5rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .4rem; }
.prose > :last-child { margin-bottom: 0; }
mark.todo { background: color-mix(in srgb, var(--warning) 22%, transparent); color: inherit; padding: 0 .3em; border-radius: 4px; font-size: .92em; }

.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about-media img, .about-placeholder { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.about-placeholder {
  aspect-ratio: 4 / 4.2; display: grid; place-items: center; padding: 15%;
  background: radial-gradient(circle at 30% 20%, var(--accent-soft), transparent 60%), var(--surface);
  border: 1px solid var(--border);
}
.about-logo { width: 100%; height: auto; }
.about-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } .about-media { max-width: 480px; } }
.equipment { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.25rem; }
.machine { display: flex; gap: 1.1rem; padding: 1.6rem; }
.machine-icon { flex-shrink: 0; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); }
.machine-icon .icon { width: 26px; height: 26px; }
.machine-type { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin: 0 0 .25rem; }
.spec-list { list-style: none; padding: 0; margin: .5rem 0 0; display: grid; gap: .35rem; font-size: .92rem; color: var(--text-muted); }
.spec-list li { display: flex; gap: .45rem; align-items: flex-start; }
.spec-list .icon { color: var(--success); margin-top: .25em; }
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; }
.value-index { font-family: var(--font-head); font-weight: 800; font-size: 2.4rem; color: var(--accent); opacity: .3; line-height: 1; display: block; margin-bottom: .6rem; }
.value p { color: var(--text-muted); }

.thanks-card { padding: clamp(2rem, 6vw, 3.5rem); text-align: center; }
.thanks-icon { display: inline-grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; margin-bottom: 1.2rem; color: var(--success); background: color-mix(in srgb, var(--success) 14%, transparent); }
.thanks-icon .icon { width: 44px; height: 44px; }
.anim .thanks-icon { animation: pop .6s var(--ease) both; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.thanks-card h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
.thanks-ref { font-size: 1.05rem; }
.thanks-ref strong { font-family: var(--font-head); color: var(--accent); letter-spacing: .03em; }
.thanks-card .prose { max-width: 560px; margin: 1rem auto; color: var(--text-muted); }
.thanks-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin-top: 1.8rem; }
.error-code { font-family: var(--font-head); font-weight: 800; font-size: clamp(5rem, 18vw, 9rem); line-height: 1; margin: 0; background: linear-gradient(135deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.empty-state { padding: 3rem 1.5rem; text-align: center; display: grid; justify-items: center; gap: .6rem; }
.empty-state .icon { color: var(--accent); }

.maintenance { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: .5rem; text-align: center; padding: 2rem; }
.maintenance-logo { width: 160px; height: auto; margin-bottom: 1.5rem; }

/* 11. Formulaires */
.field { display: grid; gap: .4rem; margin-bottom: 1.1rem; min-width: 0; }
.field > label, .label { font-weight: 600; font-size: .92rem; color: var(--text); }
.req { color: var(--danger); }
.optional { font-weight: 400; color: var(--text-muted); font-size: .85em; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="date"], input[type="url"], input[type="password"], input[type="search"], select, textarea {
  width: 100%; min-height: 50px; padding: .75rem 1rem;
  font: inherit; font-size: 1rem; color: var(--text);
  background: var(--surface); border: 1.5px solid var(--border-strong); border-radius: 12px;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
  -webkit-appearance: none; appearance: none;
}
textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23778' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.6rem;
}
input:hover, select:hover, textarea:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--border-strong)); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
input::placeholder, textarea::placeholder { color: color-mix(in srgb, var(--text-muted) 75%, transparent); }
[aria-invalid="true"] { border-color: var(--danger) !important; box-shadow: 0 0 0 4px color-mix(in srgb, var(--danger) 12%, transparent) !important; }
.field-error { color: var(--danger); font-size: .86rem; font-weight: 500; margin: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.grid-3 { display: grid; grid-template-columns: 1fr 1.6fr 1fr; gap: 0 1rem; }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.checkbox { display: flex; gap: .75rem; align-items: flex-start; font-size: .92rem; cursor: pointer; margin-bottom: .8rem; }
.checkbox input { flex-shrink: 0; width: 22px; height: 22px; margin: .1rem 0 0; accent-color: var(--accent); }
.form-alert {
  display: flex; gap: .75rem; align-items: flex-start; padding: 1rem 1.2rem; margin-bottom: 1.25rem;
  border-radius: var(--radius); border: 1px solid color-mix(in srgb, var(--danger) 35%, transparent);
  background: color-mix(in srgb, var(--danger) 8%, var(--surface)); color: var(--text);
}
.form-alert > .icon { color: var(--danger); margin-top: .2em; }
.form-alert ul { margin: .4rem 0 0; font-size: .9rem; }
.form-success { display: flex; gap: .75rem; align-items: center; padding: 1rem 1.2rem; margin-bottom: 1.25rem; border-radius: var(--radius); background: color-mix(in srgb, var(--success) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--success) 35%, transparent); }
.form-success .icon { color: var(--success); width: 24px; height: 24px; }
.form-success p { margin: 0; font-weight: 500; }

/* 12. Devis */
.quote-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 2rem; align-items: start; }
@media (max-width: 1000px) { .quote-layout { grid-template-columns: 1fr; } .quote-aside { order: -1; } .aside-card.sticky { position: static; } .aside-process { display: none; } }
.form-step { border: 1px solid var(--border); padding: clamp(1.25rem, 3.5vw, 2rem); margin: 0 0 1.25rem; min-width: 0; }
.form-step legend {
  float: left; width: 100%; display: flex; align-items: center; gap: .75rem; padding: 0; margin-bottom: 1.4rem;
  font-family: var(--font-head); font-size: 1.25rem; font-weight: 800; letter-spacing: -.01em;
}
.form-step legend + * { clear: both; }
.step-badge { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; font-size: .95rem; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }

.dropzone {
  position: relative; border: 2px dashed color-mix(in srgb, var(--accent) 40%, var(--border-strong)); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--accent-soft), transparent 140%); transition: border-color .2s, background-color .2s, transform .2s;
}
.dropzone:hover, .dropzone.is-dragover { border-color: var(--accent); background-color: var(--accent-soft); }
.dropzone.is-dragover { transform: scale(1.01); }
.dropzone-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; z-index: 2; }
.js .dropzone-input { z-index: -1; }
.dropzone-label { display: grid; justify-items: center; gap: .3rem; padding: clamp(1.75rem, 5vw, 2.75rem) 1rem; text-align: center; cursor: pointer; }
.dropzone-label strong { font-family: var(--font-head); font-size: 1.1rem; }
.dropzone-label span { color: var(--text-muted); }
.dropzone-label u { color: var(--accent); text-decoration-thickness: 2px; }
.dropzone-label small { margin-top: .5rem; font-size: .8rem; color: var(--text-muted); }
.dropzone-input:focus-visible + .dropzone-label { outline: 3px solid color-mix(in srgb, var(--accent) 70%, transparent); outline-offset: 4px; border-radius: var(--radius); }
.dropzone-label .dropzone-icon { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: .5rem; border-radius: 18px; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 12px 24px -12px var(--accent); }
.dropzone-icon .icon { width: 30px; height: 30px; }
.dropzone-sm .dropzone-label { padding: 1.5rem 1rem; }

.file-list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .6rem; }
.file-item { display: grid; grid-template-columns: auto 1fr auto; gap: .9rem; align-items: center; padding: .8rem .9rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); }
.file-item.is-error { border-color: color-mix(in srgb, var(--danger) 45%, transparent); background: color-mix(in srgb, var(--danger) 6%, var(--surface)); }
.file-item.is-done { border-color: color-mix(in srgb, var(--success) 40%, transparent); }
.file-ext { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 10px; font-family: var(--font-head); font-weight: 800; font-size: .72rem; color: var(--accent); background: var(--accent-soft); letter-spacing: .03em; }
.file-info { min-width: 0; }
.file-name { display: block; font-weight: 600; font-size: .93rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-meta { display: block; font-size: .8rem; color: var(--text-muted); }
.file-item.is-error .file-meta { color: var(--danger); }
.file-progress { height: 5px; margin-top: .45rem; border-radius: 5px; background: var(--border); overflow: hidden; }
.file-progress span { display: block; height: 100%; width: 0; border-radius: 5px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .25s; }
.file-item.is-done .file-progress span { background: var(--success); }
.file-actions { display: flex; gap: .35rem; }
.file-actions .icon-btn { width: 40px; height: 40px; }

.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .65rem; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice-body { display: grid; gap: .2rem; height: 100%; padding: .9rem 1rem; border: 1.5px solid var(--border-strong); border-radius: 12px; background: var(--surface); transition: all .2s; }
.choice-body strong { display: flex; align-items: center; gap: .4rem; font-family: var(--font-head); font-size: .95rem; }
.choice-body small { color: var(--text-muted); font-size: .78rem; line-height: 1.4; }
.choice:hover .choice-body { border-color: color-mix(in srgb, var(--accent) 50%, var(--border-strong)); }
.choice input:checked + .choice-body { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 3px var(--accent-soft); }
.choice input:focus-visible + .choice-body { outline: 3px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 2px; }
.choice-advice strong .icon { color: var(--warning); }

.swatches { display: flex; flex-wrap: wrap; gap: .5rem; }
.swatch { position: relative; cursor: pointer; }
.swatch input { position: absolute; opacity: 0; pointer-events: none; }
.swatch { display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .85rem .4rem .45rem; border: 1.5px solid var(--border-strong); border-radius: 999px; background: var(--surface); font-size: .87rem; font-weight: 500; transition: all .2s; min-height: 44px; }
.swatch:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--border-strong)); }
.swatch:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 3px var(--accent-soft); }
.swatch:has(input:focus-visible) { outline: 3px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 2px; }
.swatch-dot { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--swatch, #ccc); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.swatch-dot .icon { width: 15px; height: 15px; }
.swatch-advice, .swatch-other { background: var(--surface-2); color: var(--text-muted); }
.field-inline { margin-top: .9rem; }

.segmented { display: inline-flex; flex-wrap: wrap; gap: .35rem; padding: .3rem; margin-bottom: 1.2rem; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); }
.segmented label { cursor: pointer; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: .55rem 1.1rem; border-radius: 10px; font-weight: 600; font-size: .92rem; color: var(--text-muted); transition: all .2s; }
.segmented input:checked + span { background: var(--surface); color: var(--accent); box-shadow: var(--shadow-sm); }
.segmented input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--accent) 60%, transparent); }

.stepper { display: flex; align-items: stretch; max-width: 220px; border: 1.5px solid var(--border-strong); border-radius: 12px; overflow: hidden; background: var(--surface); }
.stepper:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.stepper input { border: 0 !important; box-shadow: none !important; text-align: center; border-radius: 0; font-weight: 700; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper-btn { flex: 0 0 50px; border: 0; background: var(--surface-2); color: var(--text); font-size: 1.3rem; cursor: pointer; }
.stepper-btn:hover { background: var(--accent-soft); color: var(--accent); }

.form-submit { padding: clamp(1.25rem, 3.5vw, 2rem); }
.form-submit .btn { margin-top: .5rem; }
.btn.is-loading { pointer-events: none; }
.btn.is-loading::after { content: ""; width: 18px; height: 18px; border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.aside-card { padding: 1.6rem; }
.aside-card.sticky { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.aside-card h2 { display: flex; align-items: center; gap: .5rem; font-size: 1.15rem; }
.aside-card h2 .icon { color: var(--warning); }
.tips { list-style: none; padding: 0; margin: 0 0 1.2rem; display: grid; gap: .7rem; font-size: .92rem; color: var(--text-muted); }
.tips li { display: flex; gap: .55rem; }
.tips .icon { color: var(--success); margin-top: .25em; }
.formats { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: 1.2rem; }
.format-tag { font-family: ui-monospace, monospace; font-size: .78rem; font-weight: 600; padding: .25rem .55rem; border-radius: 7px; background: var(--surface-2); border: 1px solid var(--border); }
.aside-process { padding-top: 1.2rem; border-top: 1px solid var(--border); }
.aside-process h3 { font-size: 1rem; }
.aside-process ol { margin: 0; padding-left: 1.2rem; color: var(--text-muted); font-size: .92rem; display: grid; gap: .3rem; }
.aside-contact { margin: 1rem 0 0; font-size: .9rem; color: var(--text-muted); }

/* Visionneuse 3D */
.viewer-dialog {
  width: min(960px, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 0; border: 1px solid var(--border);
  border-radius: var(--radius-lg); background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); overflow: hidden;
}
.viewer-dialog::backdrop { background: rgba(5, 10, 20, .7); backdrop-filter: blur(4px); }
.viewer-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem .8rem .8rem 1.4rem; border-bottom: 1px solid var(--border); }
.viewer-head h2 { margin: 0; font-size: 1.05rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.viewer-canvas { position: relative; height: min(64vh, 560px); background: radial-gradient(circle at 50% 40%, var(--surface-2), var(--bg)); touch-action: none; }
.viewer-canvas canvas { width: 100% !important; height: 100% !important; display: block; }
.viewer-loading { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: var(--text-muted); }
.viewer-info { margin: 0; padding: .9rem 1.4rem; font-size: .88rem; color: var(--text-muted); border-top: 1px solid var(--border); }

/* 13. Galerie */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.filter { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: .5rem 1.1rem; border-radius: 999px; border: 1.5px solid var(--border-strong); background: var(--surface); color: var(--text); font: 600 .9rem var(--font-body); cursor: pointer; transition: all .2s; }
.filter span { font-size: .75rem; padding: .05rem .45rem; border-radius: 999px; background: var(--surface-2); color: var(--text-muted); }
.filter:hover { border-color: var(--accent); color: var(--accent); }
.filter.is-active { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); }
.filter.is-active span { background: rgba(255, 255, 255, .22); color: inherit; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 1.25rem; }
.gallery-masonry { display: block; columns: 3 300px; column-gap: 1.25rem; }
.gallery-masonry .gallery-item { break-inside: avoid; margin-bottom: 1.25rem; }
.gallery-item { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s; }
.gallery-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.gallery-item.is-filtered { display: none; }
.gallery-item > a { position: relative; display: block; overflow: hidden; background: var(--surface-2); }
.gallery-preview .gallery-item > a { aspect-ratio: 4 / 3; }
.gallery-preview .gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-item img { width: 100%; transition: transform .6s var(--ease); }
.gallery-item:hover img { transform: scale(1.05); }
.zoom-hint { position: absolute; right: .75rem; top: .75rem; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(10, 17, 32, .55); color: #fff; backdrop-filter: blur(6px); opacity: 0; transform: scale(.85); transition: all .25s; }
.gallery-item:hover .zoom-hint, .gallery-item a:focus-visible .zoom-hint { opacity: 1; transform: none; }
@media (hover: none) { .zoom-hint { opacity: 1; transform: none; } }
.gallery-item figcaption { padding: .85rem 1rem 1rem; display: grid; gap: .1rem; }
.gallery-item figcaption strong { font-family: var(--font-head); font-size: .98rem; }
.gallery-item figcaption span { font-size: .82rem; color: var(--text-muted); }
.gallery-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem; margin: 2.5rem 0 0; color: var(--text-muted); }
.gallery-cta .icon { color: var(--warning); }

.lightbox { position: fixed; inset: 0; z-index: 300; display: grid; grid-template-rows: auto 1fr auto; background: rgba(4, 8, 16, .94); color: #fff; opacity: 0; transition: opacity .25s; }
.lightbox.is-open { opacity: 1; }
.lightbox-top { display: flex; justify-content: space-between; align-items: center; padding: .75rem 1rem; gap: 1rem; }
.lightbox-count { font-size: .9rem; opacity: .75; }
.lightbox-stage { position: relative; display: grid; place-items: center; padding: 0 clamp(.5rem, 6vw, 5rem); min-height: 0; touch-action: pan-y; }
.lightbox-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); user-select: none; -webkit-user-drag: none; transition: opacity .2s, transform .25s var(--ease); }
.lightbox-stage img.is-loading { opacity: .3; transform: scale(.98); }
.lightbox-caption { padding: 1rem 1.5rem 1.5rem; text-align: center; font-size: .95rem; max-width: 900px; margin: 0 auto; opacity: .9; }
.lightbox .icon-btn { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .15); color: #fff; width: 48px; height: 48px; }
.lightbox .icon-btn:hover { background: rgba(255, 255, 255, .2); color: #fff; }
.lightbox-prev, .lightbox-next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; }
.lightbox-prev { left: clamp(.25rem, 2vw, 1.5rem); }
.lightbox-next { right: clamp(.25rem, 2vw, 1.5rem); }
@media (max-width: 640px) { .lightbox-prev, .lightbox-next { top: auto; bottom: -.5rem; transform: none; } .lightbox-stage { padding-bottom: 3.5rem; } }

/* 14. Contact & FAQ */
.contact-layout { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 2rem; align-items: start; }
@media (max-width: 960px) { .contact-layout { grid-template-columns: 1fr; } }
.info-card, .contact-form { padding: clamp(1.4rem, 4vw, 2.2rem); }
.info-card h2, .contact-form h2 { font-size: 1.35rem; }
.contact-list-lg { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 1.1rem; }
.contact-list-lg li { gap: .9rem; }
.contact-list-lg small { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); }
.contact-list-lg a, .contact-list-lg span { color: var(--text); font-weight: 600; }
.ci-icon { flex-shrink: 0; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.ci-icon .icon { margin: 0; }
.info-cta { padding-top: 1.25rem; border-top: 1px solid var(--border); }
.info-cta p { font-weight: 600; margin-bottom: .7rem; }
.faq-list { display: grid; gap: .75rem; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); transition: border-color .2s, box-shadow .2s; }
.faq-item[open] { border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); box-shadow: var(--shadow-sm); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.3rem; cursor: pointer; list-style: none; min-height: 56px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { margin: 0; font-size: 1.02rem; }
.faq-toggle { flex-shrink: 0; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--surface-2); color: var(--accent); transition: transform .3s var(--ease); }
.faq-item[open] .faq-toggle { transform: rotate(180deg); }
.faq-answer { padding: 0 1.3rem 1.2rem; color: var(--text-muted); }
.legal { padding: clamp(1.5rem, 5vw, 3rem); }
.legal h2:first-child { margin-top: 0; }

/* 15. Animations d'apparition & accessibilité */
.js.anim .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.js.anim .reveal.is-visible { opacity: 1; transform: none; }
.no-anim *, .no-anim *::before, .no-anim *::after { animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js.anim .reveal { opacity: 1; transform: none; }
}
@media print {
  .reveal { opacity: 1 !important; transform: none !important; }
  .site-header, .site-footer, .cta-band, .hero-visual, .breadcrumb { display: none !important; }
  body { background: #fff; color: #000; }
  .card { box-shadow: none; border-color: #ccc; }
}

/* ==========================================================================
   16. Boutique (v2) : cartes produits, fiche produit, panier, commande
   ========================================================================== */
.is-filtered { display: none !important; }
.cart-btn { position: relative; text-decoration: none; }
.cart-count {
  position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
  display: grid; place-items: center; font: 700 .7rem/1 var(--font-body); color: var(--accent-contrast); background: var(--accent);
  box-shadow: 0 0 0 2px var(--bg);
}

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 1.25rem; }
.product-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); }
.product-media { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--surface-2); }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.product-card:hover .product-media img { transform: scale(1.05); }
.product-noimg { display: grid; place-items: center; width: 100%; height: 100%; color: var(--text-muted); }
.product-badges { position: absolute; left: .7rem; top: .7rem; right: .7rem; display: flex; flex-wrap: wrap; gap: .35rem; }
.product-badges-inline { position: static; margin-bottom: .9rem; }
.pbadge {
  display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .6rem; border-radius: 999px;
  font-size: .72rem; font-weight: 700; background: color-mix(in srgb, var(--surface) 92%, transparent); color: var(--text);
  border: 1px solid var(--border); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.pbadge .icon { width: 14px; height: 14px; }
.pbadge-ok .icon { color: var(--success); }
.pbadge-promo { background: var(--danger); color: #fff; border-color: transparent; }
.pbadge-out { background: var(--text); color: var(--bg); border-color: transparent; }
.product-body { display: flex; flex-direction: column; gap: .25rem; padding: 1rem 1.1rem 1.15rem; flex: 1; }
.product-cat { margin: 0; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.product-name { margin: 0; font-size: 1.05rem; }
.product-name a { color: var(--text); text-decoration: none; }
.product-name a::after { content: ""; position: absolute; inset: 0; } /* toute la carte est cliquable */
.product-name a:focus-visible { outline: none; }
.product-card:has(.product-name a:focus-visible) { outline: 3px solid color-mix(in srgb, var(--accent) 70%, transparent); outline-offset: 3px; }
.product-summary { margin: 0; font-size: .88rem; color: var(--text-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-price { margin: auto 0 0; padding-top: .5rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .5rem; }
.product-price strong { font-family: var(--font-head); font-size: 1.2rem; color: var(--text); }
.product-price s { color: var(--text-muted); font-size: .9rem; }
.product-price .from { font-size: .78rem; color: var(--text-muted); width: 100%; }

/* Fiche produit */
.product-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 900px) { .product-layout { grid-template-columns: 1fr; } }
.product-gallery { position: sticky; top: calc(var(--header-h) + 1rem); }
@media (max-width: 900px) { .product-gallery { position: static; } }
.product-main-img { position: relative; display: block; aspect-ratio: 1; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-2); border: 1px solid var(--border); box-shadow: var(--shadow); }
.product-main-img img { width: 100%; height: 100%; object-fit: cover; }
.product-main-img:hover .zoom-hint { opacity: 1; transform: none; }
.product-thumbs { list-style: none; padding: 0; margin: .8rem 0 0; display: flex; gap: .6rem; overflow-x: auto; }
.thumb { width: 76px; height: 76px; padding: 0; border-radius: 12px; overflow: hidden; border: 2px solid transparent; background: var(--surface-2); cursor: pointer; flex-shrink: 0; opacity: .75; transition: opacity .2s, border-color .2s; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover, .thumb.is-active { opacity: 1; border-color: var(--accent); }
.product-title { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: .6rem; }
.product-info .lead { font-size: 1.05rem; }
.product-price-lg { margin: 1rem 0 1.5rem; padding: 0; }
.product-price-lg strong { font-size: clamp(1.7rem, 3vw, 2.1rem); color: var(--accent); }
.tax-note { width: 100%; font-size: .78rem; color: var(--text-muted); }
.choice-grid-sm { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.choice-grid-sm .choice-body { padding: .7rem .9rem; }
.swatch-name small { color: var(--text-muted); font-weight: 600; }
.add-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem; margin-top: .4rem; }
.add-row .field { margin: 0; }
.add-row .stepper { width: 170px; }
.add-btn { flex: 1 1 220px; }
.add-btn:disabled { background: var(--surface-2); color: var(--text-muted); box-shadow: none; }
.add-feedback { margin-top: 1rem; }
.add-feedback p { margin: 0; }
.add-feedback a { font-weight: 700; }
.product-specs { margin: 1.5rem 0 0; font-size: .95rem; }
.product-specs .icon { color: var(--accent); }
.reassurance { list-style: none; padding: 1.1rem 1.2rem; margin: 1.5rem 0 0; display: grid; gap: .7rem; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--border); font-size: .92rem; }
.reassurance li { display: flex; gap: .65rem; align-items: center; }
.reassurance .icon { color: var(--accent); width: 20px; height: 20px; }
.product-description { margin-top: clamp(2.5rem, 6vw, 4rem); }
.product-description h2 { font-size: 1.5rem; }

/* Panier */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 1.5rem; align-items: start; }
@media (max-width: 960px) { .cart-layout { grid-template-columns: 1fr; } }
.cart-lines { padding: .5rem clamp(.9rem, 3vw, 1.5rem) 1.25rem; }
.cart-list { list-style: none; margin: 0; padding: 0; }
.cart-line { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto auto auto; gap: 1rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--border); }
.cart-thumb { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 12px; overflow: hidden; background: var(--surface-2); color: var(--text-muted); }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-info { display: grid; gap: .1rem; min-width: 0; }
.cart-name { font-family: var(--font-head); font-weight: 700; color: var(--text); text-decoration: none; }
.cart-name:hover { color: var(--accent); }
.cart-opts, .cart-unit { font-size: .85rem; color: var(--text-muted); }
.cart-total { font-family: var(--font-head); white-space: nowrap; min-width: 84px; text-align: right; }
.stepper-sm { width: 130px; }
.stepper-sm input, .stepper-sm .stepper-btn { min-height: 42px; }
.stepper-sm .stepper-btn { flex-basis: 40px; }
.cart-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem; margin-top: 1.1rem; }
@media (max-width: 640px) {
  .cart-line { grid-template-columns: 72px minmax(0, 1fr) auto; grid-template-areas: "img info remove" "img qty total"; gap: .6rem .8rem; }
  .cart-thumb { grid-area: img; width: 72px; height: 72px; }
  .cart-info { grid-area: info; }
  .cart-qty { grid-area: qty; }
  .cart-total { grid-area: total; min-width: 0; }
  .cart-remove { grid-area: remove; }
}
.cart-summary { padding: 1.5rem; position: sticky; top: calc(var(--header-h) + 1.5rem); }
@media (max-width: 960px) { .cart-summary { position: static; } }
.cart-summary h2, .order-summary h2 { font-size: 1.2rem; display: flex; align-items: center; gap: .5rem; }
.totals { display: grid; grid-template-columns: 1fr auto; gap: .55rem 1rem; margin: 0 0 1.2rem; font-size: .95rem; }
.totals dt { color: var(--text-muted); }
.totals dd { margin: 0; text-align: right; font-weight: 600; }
.totals .grand { padding-top: .75rem; border-top: 1px solid var(--border); font-family: var(--font-head); font-size: 1.15rem; color: var(--text); font-weight: 800; }
.totals dd.grand { color: var(--accent); }
.free-ship { margin-bottom: 1.2rem; font-size: .88rem; }
.free-ship p { margin: 0 0 .4rem; }
.summary-lines { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .55rem; font-size: .9rem; }
.summary-lines li { display: flex; justify-content: space-between; gap: 1rem; }
.summary-lines li span:last-child { white-space: nowrap; font-weight: 600; }
.summary-lines-center { max-width: 460px; margin: 1.2rem auto; text-align: left; }
.summary-total { padding-top: .6rem; border-top: 1px solid var(--border); font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; }
.segmented small { font-weight: 500; opacity: .8; }
[data-theme="dark"] .swatch-dot { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .28); }
