/* ==========================================================================
   EProjets Lab : style.css
   Système : Metropolis (display ExtraBold / corps Regular) · base 8px
   Couleurs charte : cyan #3FD8FF · navy #0F1255 · violet #710AB2
                     gris #575B5B · noir #262626
   Signature : « strates », fines lignes horizontales évoquant les couches
   d'impression 3D, réservées aux fonds sombres (hero, CTA).
   ========================================================================== */

/* ---------- Fontes ---------- */
@font-face {
  font-family: "Metropolis";
  src: url("../fonts/Metropolis-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Metropolis";
  src: url("../fonts/Metropolis-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Metropolis";
  src: url("../fonts/Metropolis-SemiBold.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Metropolis";
  src: url("../fonts/Metropolis-ExtraBold.otf") format("opentype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- Jetons ---------- */
:root {
  --ink: #1e2025;
  --body: #4c5054;
  --muted: #7a7f84;
  --navy: #0f1255;
  --navy-deep: #0a0c3e;
  --violet: #710ab2;
  --cyan: #3fd8ff;
  --surface: #ffffff;
  --surface-alt: #f4f6f9;
  --hairline: #e4e8ee;
  --hairline-dark: rgba(255, 255, 255, 0.14);
  --grad: linear-gradient(100deg, var(--navy) 0%, var(--violet) 100%);
  --font: "Metropolis", "Avenir Next", Avenir, "Segoe UI", sans-serif;
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 32px;
  --s5: 40px;
  --s6: 48px;
  --s8: 64px;
  --s12: 96px;
  --s16: 128px;
  --radius: 6px;
  --container: 1160px;
  --shadow-card: 0 1px 2px rgba(15, 18, 85, 0.06), 0 12px 32px -12px rgba(15, 18, 85, 0.14);
  /* Courbes d'animation (fortes, façon iOS) */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--violet);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
h1,
h2,
h3,
h4 {
  color: var(--ink);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 var(--s3);
  text-wrap: balance;
}
h1 {
  font-size: clamp(34px, 5vw, 54px);
}
h2 {
  font-size: clamp(27px, 3.6vw, 38px);
}
h3 {
  font-size: 21px;
  letter-spacing: -0.01em;
}
h4 {
  font-size: 17px;
  letter-spacing: 0;
}
p {
  margin: 0 0 var(--s2);
  max-width: 68ch;
}
strong {
  color: var(--ink);
  font-weight: 600;
}
::selection {
  background: var(--cyan);
  color: var(--navy);
}
:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 2px;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus {
  left: 0;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s3);
}

/* ---------- Éléments partagés ---------- */
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: var(--s2);
}
.on-dark .eyebrow {
  color: var(--cyan);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 14px 26px;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), box-shadow 200ms var(--ease-out), border-color 200ms ease, color 200ms ease;
  text-decoration: none;
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
  }
}
.btn:active {
  transform: scale(0.97);
}
/* Bouton primaire sur fond CLAIR : dégradé de marque */
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(113, 10, 178, 0.5);
}
.btn-primary:hover {
  box-shadow: 0 12px 26px -8px rgba(113, 10, 178, 0.6);
  color: #fff;
}
/* Bouton primaire sur fond SOMBRE (hero, bande CTA, 404) :
   remplissage blanc pour ressortir nettement.
   Le CTA du header n'est plus concerné : l'en-tête est désormais clair, il
   utilise donc le bouton dégradé standard. */
.on-dark .btn-primary {
  background: #fff;
  color: var(--navy);
  box-shadow: 0 10px 26px -10px rgba(0, 0, 0, 0.55);
}
.on-dark .btn-primary:hover {
  background: #fff;
  color: var(--navy);
  box-shadow: 0 14px 32px -10px rgba(0, 0, 0, 0.65);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--hairline);
}
.btn-ghost:hover {
  border-color: var(--ink);
}
.on-dark .btn-ghost {
  color: #fff;
  border-color: var(--hairline-dark);
}
.on-dark .btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.arrow-link {
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
}
.arrow-link::after {
  content: "→";
  display: inline-block;
  margin-left: 6px;
  transition: transform 200ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .arrow-link:hover::after {
    transform: translateX(4px);
  }
}

/* Section rhythm */
.section {
  padding: var(--s12) 0;
}
.section-alt {
  background: var(--surface-alt);
}
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--s4) var(--s8);
  align-items: end;
  margin-bottom: var(--s8);
}
.section-head p {
  margin: 0;
  color: var(--body);
}
@media (max-width: 800px) {
  .section-head {
    grid-template-columns: 1fr;
  }
}

/* Fonds sombres à strates (signature) */
.on-dark {
  background-color: var(--navy);
  background-image: linear-gradient(115deg, rgba(10, 12, 62, 0.92) 15%, rgba(15, 18, 85, 0.6) 55%, rgba(113, 10, 178, 0.45) 100%),
    repeating-linear-gradient(180deg, transparent 0, transparent 11px, rgba(63, 216, 255, 0.05) 11px, rgba(63, 216, 255, 0.05) 12px);
  color: rgba(255, 255, 255, 0.82);
}
.on-dark h1,
.on-dark h2,
.on-dark h3 {
  color: #fff;
}
.on-dark p {
  color: rgba(255, 255, 255, 0.78);
}
.on-dark strong {
  color: #fff;
}
.on-dark a {
  color: var(--cyan);
}

/* Soulignement « couche » cyan sur mot-clé */
.layer-mark {
  position: relative;
  white-space: nowrap;
  isolation: isolate;
}
.layer-mark::after {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  bottom: 0.06em;
  height: 0.18em;
  background: var(--cyan);
  opacity: 0.85;
  z-index: -1;
}
/* Le trait cyan se « dépose » comme une couche d'impression, au chargement */
.js .layer-mark::after {
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 700ms var(--ease-out) 450ms;
}
.js body.loaded .layer-mark::after {
  transform: scaleX(1);
}

/* ---------- Header ---------- */
/* En-tête clair : le logo officiel couleur s'y affiche tel quel. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
  transition: box-shadow 200ms ease;
}
.site-header.scrolled {
  box-shadow: 0 8px 24px -14px rgba(15, 18, 85, 0.35);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  min-height: 84px;
}
/* Marque, header : logo officiel complet (avec la baseline).
   Sous ~50 px de haut la baseline devient illisible : en dessous de 560 px on
   bascule donc sur le lockup sans baseline (voir <picture> dans le HTML). */
.brand {
  display: inline-flex;
  align-items: center;
}
.brand:hover {
  text-decoration: none;
}
.brand img {
  width: auto;
  height: 52px;
  display: block;
}
@media (max-width: 560px) {
  .nav {
    min-height: 68px;
  }
  .brand img {
    height: 34px;
  }
}
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--s4);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  position: relative;
  color: var(--body);
  font-size: 15px;
  font-weight: 500;
  padding: 6px 0;
  transition: color 200ms ease;
}
.nav-links a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--violet);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 250ms var(--ease-out);
}
.nav-links a:hover {
  color: var(--ink);
  text-decoration: none;
}
@media (hover: hover) and (pointer: fine) {
  .nav-links a:not(.nav-cta):hover::after {
    transform: scaleX(1);
  }
}
.nav-links a[aria-current="page"]:not(.nav-cta) {
  color: var(--ink);
  font-weight: 600;
}
.nav-links a[aria-current="page"]:not(.nav-cta)::after {
  transform: scaleX(1);
}
/* Le CTA du header est un bouton, pas un lien de navigation. Or `.nav-links a`
   (0,1,1) bat `.nav-cta` et `.btn-primary` (0,1,0) : sans cette spécificité
   supérieure, il héritait de `padding: 6px 0` (donc aucun padding horizontal,
   texte collé aux bords) et de la couleur du texte courant. Tout ce qui doit
   surcharger `.nav-links a` est donc regroupé ici. */
.nav-links a.nav-cta,
.nav-links a.nav-cta:hover,
.nav-links a.nav-cta[aria-current="page"] {
  padding: 12px 24px;
  font-size: 14px;
  color: #fff;
}
.nav-links li:last-child {
  flex: none; /* le bouton ne se laisse pas comprimer par les autres items */
}
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: transform 0.2s ease;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle span::before {
  top: -7px;
}
.nav-toggle span::after {
  top: 7px;
}
/* Bascule en menu burger. Le seuil suit la largeur réellement nécessaire à la
   nav (logo 166 + liens 805 + gouttière + marges ≈ 1043 px). Il était à 900 px,
   ce qui écrasait la barre entre 900 et 1043 px. À réajuster si un lien est
   ajouté ou si le libellé du CTA s'allonge. */
@media (max-width: 1060px) {
  .nav-toggle {
    display: block;
  }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--hairline);
    box-shadow: 0 16px 32px -18px rgba(15, 18, 85, 0.4);
    padding: var(--s2) var(--s3) var(--s3);
    display: none;
  }
  .nav-links li + li {
    border-top: 1px solid var(--hairline);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links li {
    width: 100%;
  }
  .nav-links a {
    display: block;
    padding: 12px 0;
    font-size: 16px;
  }
  .nav-links .nav-cta {
    margin-top: var(--s2);
    display: inline-flex;
  }
}

/* ---------- Hero ---------- */
.hero {
  padding: var(--s12) 0 var(--s12);
  overflow: hidden;
  position: relative;
}
/* Lueurs animées (aurora) derrière le hero : le « wow » discret */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}
.hero::before {
  width: 46vw;
  height: 46vw;
  max-width: 620px;
  max-height: 620px;
  top: -18%;
  right: -8%;
  background: radial-gradient(circle, rgba(63, 216, 255, 0.55), transparent 68%);
  animation: aurora-a 16s ease-in-out infinite;
}
.hero::after {
  width: 40vw;
  height: 40vw;
  max-width: 540px;
  max-height: 540px;
  bottom: -22%;
  left: -6%;
  background: radial-gradient(circle, rgba(113, 10, 178, 0.6), transparent 66%);
  animation: aurora-b 20s ease-in-out infinite;
}
@keyframes aurora-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-40px, 34px) scale(1.12); }
}
@keyframes aurora-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(46px, -30px) scale(1.1); }
}
.hero > .container {
  position: relative;
  z-index: 1;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 6.5fr) minmax(0, 5.5fr);
  gap: var(--s8);
  align-items: center;
}
.hero h1 {
  margin-bottom: var(--s3);
}
.hero .lede {
  font-size: 19px;
  line-height: 1.6;
  max-width: 52ch;
  margin-bottom: var(--s5);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  margin-bottom: var(--s6);
}
@media (max-width: 560px) {
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) var(--s4);
  padding-top: var(--s3);
  border-top: 1px solid var(--hairline-dark);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
}
.hero-meta strong {
  font-weight: 600;
}
.hero-figure {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.55);
}
.hero-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 5;
}
.hero-figure figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 18px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  background: linear-gradient(transparent, rgba(10, 12, 62, 0.85));
}
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-figure img {
    aspect-ratio: 16 / 10;
  }
}

/* Bandeau clients */
/* ---------- Bande de confiance : note Google + logos clients ---------- */
.trust {
  padding: var(--s5) 0;
  border-bottom: 1px solid var(--hairline);
}
.trust-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: var(--s5) var(--s8);
}
.trust-rating {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 20px 12px 16px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  color: var(--ink);
  background: var(--surface);
  white-space: nowrap;
  transition: border-color 180ms ease, box-shadow 200ms var(--ease-out), transform 180ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .trust-rating:hover {
    text-decoration: none;
    border-color: rgba(113, 10, 178, 0.35);
    box-shadow: 0 10px 24px -12px rgba(15, 18, 85, 0.35);
    transform: translateY(-1px);
  }
}
.trust-rating .stars {
  display: flex;
  color: #f5a623;
}
.trust-rating .rating-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.trust-rating .rating-text strong {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
}
.trust-rating .rating-text span {
  font-size: 12.5px;
  color: var(--muted);
}
.trust-label {
  margin: 0 0 var(--s2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.trust-logos {
  display: flex;
  align-items: center;
  gap: var(--s3) var(--s6);
  flex-wrap: wrap;
}
/* Équilibre optique : les logos vont du format très large (Solvalor, 5:1) au
   format vertical (Breen, 1:2). Une hauteur unique les déséquilibrerait, donc
   on borne à la fois la hauteur et la largeur, puis on ajuste au cas par cas. */
.trust-logos img {
  width: auto;
  height: auto;
  max-height: 32px;
  max-width: 116px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.62;
  transition: opacity 180ms ease, filter 180ms ease;
}
.trust-logos img[alt="Lamborghini Iron Lynx"] {
  max-height: 42px; /* écusson : lecture plus petite à hauteur égale */
}
.trust-logos img[alt="Breen"] {
  max-height: 44px; /* logo vertical (mark + nom empilés) */
}
@media (hover: hover) and (pointer: fine) {
  .trust-logos img:hover {
    filter: none;
    opacity: 1;
  }
}
@media (max-width: 860px) {
  .trust-inner {
    grid-template-columns: 1fr;
    gap: var(--s4);
  }
}
@media (max-width: 560px) {
  .trust-logos {
    gap: var(--s3) var(--s4);
  }
  .trust-logos img {
    height: 24px;
  }
  .trust-logos img[alt="Lamborghini Iron Lynx"] {
    height: 32px;
  }
}

/* ---------- Cartes service ---------- */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s3);
}
@media (max-width: 900px) {
  .cards-3 {
    grid-template-columns: 1fr;
  }
}
.cards-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s3);
}
@media (max-width: 720px) {
  .cards-4 {
    grid-template-columns: 1fr;
  }
}
.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: var(--s4);
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  transition: border-color 200ms ease, box-shadow 300ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .card:hover {
    border-color: #cdd4dd;
    box-shadow: var(--shadow-card);
  }
}
.card .icon {
  width: 56px;
  height: 56px;
  margin-bottom: var(--s1);
}
.card .icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.card h3 {
  margin: 0;
}
.card p {
  margin: 0;
  font-size: 15.5px;
}
.card .arrow-link {
  margin-top: auto;
  padding-top: var(--s2);
}

/* ---------- Processus ---------- */
.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--s3);
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (max-width: 1000px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .steps {
    grid-template-columns: 1fr;
  }
}
.steps li {
  counter-increment: step;
  position: relative;
  padding-top: var(--s3);
  border-top: 2px solid var(--hairline);
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--violet);
  margin-bottom: var(--s1);
}
.steps h3 {
  font-size: 17px;
  margin-bottom: 6px;
}
.steps p {
  font-size: 14.5px;
  margin: 0;
  color: var(--body);
}

/* ---------- Réalisations ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--s3);
}
.project-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 340px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  background: var(--navy);
}
.project-card:hover {
  text-decoration: none;
}
.project-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .project-card:hover img {
    transform: scale(1.03);
  }
  .project-card .overlay .tag,
  .project-card .overlay h3 {
    transition: transform 400ms var(--ease-out);
  }
  .project-card:hover .overlay .tag,
  .project-card:hover .overlay h3 {
    transform: translateY(-2px);
  }
}
.project-card .overlay {
  position: relative;
  width: 100%;
  padding: var(--s6) var(--s4) var(--s4);
  background: linear-gradient(transparent, rgba(10, 12, 62, 0.55) 35%, rgba(10, 12, 62, 0.92));
}
.project-card .tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 8px;
}
.project-card h3 {
  color: #fff;
  margin: 0 0 4px;
  font-size: 22px;
}
.project-card p {
  margin: 0;
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.75);
  max-width: 46ch;
}
.span-7 {
  grid-column: span 7;
}
.span-5 {
  grid-column: span 5;
}
.span-6 {
  grid-column: span 6;
}
.span-4 {
  grid-column: span 4;
}
.span-8 {
  grid-column: span 8;
}
.span-12 {
  grid-column: span 12;
}
/* Même logique que .case : colonne unique plutôt qu'un span sur 12 pistes. */
@media (max-width: 900px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .projects-grid > * {
    grid-column: auto;
  }
}

/* Carte "featured" typographique (Lamborghini) */
.project-card.featured {
  background: var(--grad);
  min-height: 340px;
}
.project-card.featured::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(180deg, transparent 0, transparent 11px, rgba(63, 216, 255, 0.07) 11px, rgba(63, 216, 255, 0.07) 12px);
  pointer-events: none;
}
.project-card.featured .overlay {
  background: none;
  padding: var(--s4);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 340px;
  z-index: 1;
}
.project-card.featured .big {
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.1;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
  max-width: 15ch;
}

/* ---------- Split techno (FDM / résine) ---------- */
.split {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s3);
}
@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
  }
}
.tech-card {
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  display: flex;
  flex-direction: column;
}
.tech-card {
  transition: box-shadow 300ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .tech-card:hover {
    box-shadow: var(--shadow-card);
  }
  .tech-card:hover img {
    transform: scale(1.02);
  }
}
.tech-card .media {
  overflow: hidden;
}
.tech-card img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
  transition: transform 600ms var(--ease-out);
}
.tech-card .body {
  padding: var(--s4);
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  flex: 1;
}
.tech-card h3 {
  margin: 0;
}
.tech-card p {
  margin: 0;
  font-size: 15.5px;
}
.tech-card .arrow-link {
  margin-top: auto;
  padding-top: var(--s2);
}

/* ---------- Tableau matériaux ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}
table.materials {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 640px;
}
.materials th,
.materials td {
  text-align: left;
  padding: 14px 18px;
  border-top: 1px solid var(--hairline);
  vertical-align: top;
}
.materials thead th {
  border-top: 0;
  background: var(--surface-alt);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.materials td:first-child {
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* ---------- Équipe / à propos ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s3);
}
@media (max-width: 800px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}
/* ---------- Bande CTA ---------- */
.cta-band {
  padding: var(--s12) 0;
}
.cta-band .inner {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--s6);
  align-items: center;
}
@media (max-width: 800px) {
  .cta-band .inner {
    grid-template-columns: 1fr;
  }
}
.cta-band h2 {
  margin-bottom: var(--s2);
}
.cta-band .contact-quick {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  font-size: 16px;
}
.cta-band .contact-quick a {
  color: #fff;
  font-weight: 600;
}
.cta-band .contact-quick a:hover {
  color: var(--cyan);
}
.cta-band .contact-quick .label {
  display: block;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- Formulaire contact ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--s8);
  align-items: start;
}
@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}
.contact-info ul {
  list-style: none;
  margin: 0 0 var(--s4);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}
.contact-info .label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}
.contact-info a {
  font-weight: 600;
  color: var(--ink);
}
.contact-info a:hover {
  color: var(--violet);
}

.form {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: var(--s5);
  box-shadow: var(--shadow-card);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s3);
}
@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}
.field {
  margin-bottom: var(--s3);
}
.field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.field .optional {
  font-weight: 400;
  color: var(--muted);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font);
  font-size: 15.5px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  padding: 12px 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea {
  resize: vertical;
  min-height: 140px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(113, 10, 178, 0.12);
}
.field input[type="file"] {
  padding: 10px 12px;
  cursor: pointer;
}
.field input[type="file"]::file-selector-button {
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  background: var(--surface-alt);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  padding: 8px 14px;
  margin-right: 12px;
  cursor: pointer;
}
.field-hint {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.form-title {
  font-size: 22px;
  margin-bottom: var(--s3);
}

/* Carte de l'atelier (page contact) */
.map-embed {
  margin-top: var(--s4);
}
.map-embed iframe {
  display: block;
  width: 100%;
  height: 260px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.map-embed .map-note {
  margin: var(--s1) 0 0;
  font-size: 13.5px;
  color: var(--body);
}
.field-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13.5px;
  color: var(--body);
  margin-bottom: var(--s3);
}
.field-consent input {
  margin-top: 3px;
  accent-color: var(--violet);
}
.form-status {
  display: none;
  margin-top: var(--s3);
  padding: 14px 16px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 500;
}
.form-status.ok {
  display: block;
  background: #e8fbf1;
  color: #0c6b3d;
  border: 1px solid #b5ecd0;
}
.form-status.err {
  display: block;
  background: #fdeeee;
  color: #a12727;
  border: 1px solid #f3c6c6;
}
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Pages intérieures ---------- */
.page-hero {
  padding: var(--s12) 0 var(--s8);
}
.page-hero h1 {
  max-width: 24ch;
}
.page-hero .lede {
  font-size: 19px;
  max-width: 58ch;
}

/* Fiche projet (page réalisations) */
.case {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--s4) var(--s6);
  padding: var(--s8) 0;
  border-top: 1px solid var(--hairline);
}
.case:first-of-type {
  border-top: 0;
  padding-top: 0;
}
.case .case-media {
  grid-column: span 6;
}
.case .case-body {
  grid-column: span 6;
}
.case.flip .case-media {
  order: 2;
}
/* Sur mobile, on repasse en colonne unique. Garder `span 12` sur une grille de
   12 colonnes y était un piège : les 11 gouttières de 48 px totalisent 528 px,
   soit plus que la largeur disponible. Les pistes `1fr` tombaient donc à 0 et
   chaque bloc gardait 528 px de large, quel que soit l'écran. */
@media (max-width: 900px) {
  .case {
    grid-template-columns: 1fr;
  }
  .case .case-media,
  .case .case-body {
    grid-column: auto;
  }
  .case.flip .case-media {
    order: 0;
  }
}
.case .case-media img {
  border-radius: var(--radius);
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-card);
}
/* Bandeau photo pleine largeur (À propos : équipe, atelier) */
.photo-band {
  margin: 0 0 var(--s6);
}
.photo-band img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.photo-band figcaption {
  margin-top: var(--s1);
  font-size: 13px;
  color: var(--muted);
}

/* Pile de photos dans un cas client (ex. Lamborghini) + crédit photo */
.case .media-stack {
  margin: 0;
  display: grid;
  gap: var(--s2);
}
.case .media-stack .credit {
  font-size: 12.5px;
  color: var(--muted);
  text-align: right;
}
.case .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: var(--s3) 0 0;
  padding: 0;
  list-style: none;
}
.case .meta li {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--surface-alt);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 5px 12px;
}
.case .meta li.sector {
  color: #fff;
  background: var(--grad);
  border-color: transparent;
}

/* ---------- Sélecteur matières / procédés (page Procédés & matériaux) ---------- */
.picker {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: var(--s5) var(--s8);
  align-items: start;
}
.picker-panel {
  position: sticky;
  top: 108px;
}
.picker-filters {
  border: 0;
  margin: 0;
  padding: 0;
}
.picker-legend {
  padding: 0;
  margin-bottom: var(--s2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.picker-chips {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
/* Case à cocher native (accessible au clavier), habillée en pastille */
.chip-check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--body);
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}
.chip-check input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--violet);
  flex: none;
}
@media (hover: hover) and (pointer: fine) {
  .chip-check:hover {
    border-color: rgba(113, 10, 178, 0.4);
  }
}
.chip-check:has(input:checked) {
  border-color: var(--violet);
  background: rgba(113, 10, 178, 0.05);
  color: var(--ink);
  font-weight: 600;
}
.chip-check:focus-within {
  outline: 2px solid var(--violet);
  outline-offset: 2px;
}
.picker-reset {
  margin-top: var(--s3);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--violet);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.picker-count {
  margin: 0 0 var(--s3);
  font-size: 14.5px;
  color: var(--muted);
  max-width: none;
}
.picker-count strong {
  color: var(--ink);
}
.picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--s3);
  margin: 0;
  padding: 0;
  list-style: none;
}
.mat-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: var(--s3);
  transition: border-color 180ms ease, box-shadow 220ms var(--ease-out), transform 180ms var(--ease-out);
}
.mat-card[hidden] {
  display: none;
}
.mat-card.is-match {
  border-color: rgba(113, 10, 178, 0.45);
  box-shadow: 0 12px 28px -16px rgba(15, 18, 85, 0.4);
}
.mat-card.is-best {
  border-color: var(--violet);
  box-shadow: 0 14px 30px -14px rgba(113, 10, 178, 0.45);
}
.mat-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s2);
  margin-bottom: 10px;
}
.mat-head h3 {
  margin: 0;
  font-size: 19px;
}
.mat-proc {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--surface-alt);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 3px 10px;
  flex: none;
}
.mat-card > p {
  margin: 0 0 var(--s2);
  font-size: 14.5px;
  line-height: 1.6;
  max-width: none;
}
.mat-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.mat-tags li {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface-alt);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 3px 9px;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}
/* Contrainte cochée : on montre exactement pourquoi la matière ressort */
.mat-tags li.is-hit {
  color: #fff;
  background: var(--grad);
  border-color: transparent;
}
.mat-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 8px;
}
/* `display` ci-dessus l'emporterait sur le `[hidden] { display:none }` du
   navigateur : sans cette règle, le badge masqué resterait affiché. */
.mat-badge[hidden] {
  display: none;
}
.picker-empty {
  margin: 0;
  padding: var(--s3);
  border: 1px dashed var(--hairline);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 15px;
  max-width: none;
}
@media (max-width: 860px) {
  .picker {
    grid-template-columns: 1fr;
    gap: var(--s4);
  }
  .picker-panel {
    position: static;
  }
  .picker-chips {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .chip-check {
    font-size: 14px;
    padding: 9px 12px;
  }
}

/* ---------- Utilitaires remplaçant les anciens attributs style="" ----------
   Aucun style en ligne dans le HTML : c'est ce qui permet à la CSP d'interdire
   `unsafe-inline` sur style-src (voir .htaccess). */
.is-flush {
  border-top: 0;
  padding-top: 0;
}
.hero-actions.is-spaced {
  margin: var(--s4) 0 0;
}
.section-head.is-pushed {
  margin-top: var(--s8);
}
.section-outro {
  margin-top: var(--s5);
}
.footer-blurb {
  font-size: 14px;
  max-width: 36ch;
}
.contact-info h2 {
  font-size: 26px;
}
.page-hero.is-tall {
  min-height: 60vh;
}

/* ---------- Imprimante animée (page Espace client) ----------
   Animation en CSS et non en JS : aucun script en ligne, donc compatible avec
   la CSP stricte du .htaccess.
   Règle importante : chaque état « au repos » est celui de l'impression
   TERMINÉE. La règle globale prefers-reduced-motion coupe les animations, et
   l'illustration montre alors la page imprimée, portique en haut, plutôt qu'un
   plateau vide. */
/* .hero-figure est taillée pour une photo : fond, ombre, rognage et légende en
   surimpression. L'illustration n'a besoin de rien de tout cela. On remet aussi
   `margin: 0`, car un <figure> porte par défaut 40 px de marge latérale. */
.printer-figure {
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  animation: none; /* pas de flottement : le mouvement d'impression suffit */
}
.printer-figure figcaption {
  position: static;
  padding: var(--s2) 0 0;
  background: none;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
}
.printer {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.printer__frame rect {
  fill: rgba(255, 255, 255, 0.22);
}
.printer__bed {
  fill: rgba(255, 255, 255, 0.5);
}
.printer__bed-shadow {
  fill: rgba(0, 0, 0, 0.25);
}
.printer__rail {
  fill: var(--cyan);
}
.printer__head-body {
  fill: #fff;
}
.printer__nozzle {
  fill: var(--cyan);
}
.printer__filament {
  fill: var(--cyan);
  opacity: 0.85;
}
.printer__page-bar {
  fill: var(--navy);
}
.printer__dot {
  fill: rgba(255, 255, 255, 0.55);
}
.printer__accent {
  fill: var(--violet);
}
.printer__line {
  fill: #c7d0e4;
}

/* Repos = objet entièrement révélé (la fenêtre de découpe est remontée). */
.printer__mask {
  transform: translateY(-156px);
}
/* Repos = portique en haut, impression finie. */
.printer__gantry {
  transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
  .printer__mask {
    animation: printer-build 9s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  }
  .printer__gantry {
    animation: printer-gantry 9s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  }
  .printer__object {
    animation: printer-reset 9s linear infinite;
  }
  .printer__head {
    animation: printer-head 1.6s ease-in-out infinite alternate;
  }
  .printer__filament {
    animation: printer-extrude 0.45s linear infinite;
  }
}

/* La couche imprimée monte du plateau vers le haut. */
@keyframes printer-build {
  0% {
    transform: translateY(0);
  }
  74%,
  100% {
    transform: translateY(-156px);
  }
}
/* Le portique suit la hauteur imprimée, puis redescend pendant que l'objet
   a disparu, ce qui masque le retour au début de la boucle. */
@keyframes printer-gantry {
  0% {
    transform: translateY(140px);
  }
  74%,
  88% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(140px);
  }
}
@keyframes printer-reset {
  0%,
  88% {
    opacity: 1;
  }
  95%,
  100% {
    opacity: 0;
  }
}
@keyframes printer-head {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(142px);
  }
}
@keyframes printer-extrude {
  from {
    transform: translateY(-4px);
    opacity: 0.2;
  }
  to {
    transform: translateY(6px);
    opacity: 0.9;
  }
}

/* Prose (pages légales) */
.prose {
  max-width: 72ch;
}
.prose h2 {
  font-size: 22px;
  margin-top: var(--s6);
}
.prose ul {
  padding-left: 20px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--s8) 0 var(--s4);
  font-size: 14.5px;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2.5fr));
  gap: var(--s6);
  padding-bottom: var(--s6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
/* Footer (fond sombre) : le mark seul, adapté, « EP » blanc et « L » cyan.
   Le nom de la marque est porté par la baseline et la ligne de copyright. */
.site-footer .brand {
  margin-bottom: var(--s3);
}
.site-footer .brand img {
  height: 50px;
}
.site-footer .baseline {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.site-footer h2 {
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--s2);
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.site-footer a {
  color: rgba(255, 255, 255, 0.7);
}
.site-footer a:hover {
  color: var(--cyan);
  text-decoration: none;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) var(--s4);
  justify-content: space-between;
  padding-top: var(--s3);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}

/* ---------- Animations ---------- */

/* Révélation au défilement (une fois, décalée en cascade via data-stagger) */
.js .reveal,
.js .reveal-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
  will-change: opacity, transform;
}
.js .reveal.in,
.js .reveal-item.in {
  opacity: 1;
  transform: none;
  will-change: auto;
}

/* Révélation d'image par balayage (couche par couche, comme une impression) */
.js .img-reveal {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 900ms var(--ease-in-out);
}
.js .img-reveal.in,
.js .reveal.in .img-reveal {
  clip-path: inset(0 0 0 0);
}

/* Entrée du hero au chargement */
.js .hero-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}
.js .hero-in:nth-child(2) {
  transition-delay: 70ms;
}
.js .hero-in:nth-child(3) {
  transition-delay: 140ms;
}
.js .hero-in:nth-child(4) {
  transition-delay: 210ms;
}
.js .hero-in:nth-child(5) {
  transition-delay: 280ms;
}
.js .hero-figure.hero-in {
  transition-delay: 200ms;
}
.js body.loaded .hero-in,
.js .loaded .hero-in {
  opacity: 1;
  transform: none;
}
/* Titre : révélation « nette » (léger flou qui se résorbe) */
.js h1.hero-in {
  filter: blur(12px);
  transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out), filter 800ms var(--ease-out);
}
.js body.loaded h1.hero-in,
.js .loaded h1.hero-in {
  filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal,
  .js .reveal-item,
  .js .hero-in,
  .js h1.hero-in {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
  .js .img-reveal {
    clip-path: none;
    transition: none;
  }
  .js body.loaded .layer-mark::after {
    transition: none;
  }
}

/* ---------- Hero : flottement + badge verre ---------- */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .hero-figure {
    animation: float 7s ease-in-out infinite;
  }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.hero-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: rgba(10, 12, 62, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(63, 216, 255, 0.6);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(63, 216, 255, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(63, 216, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(63, 216, 255, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-badge .dot { animation: none; }
}

/* ---------- Bandeau matériaux défilant ---------- */
/* ---------- Procédés & matières (bande d'information) ---------- */
.capabilities {
  padding: var(--s6) 0;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--hairline);
}
.cap-inner {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: var(--s5) var(--s8);
}
.cap-label {
  margin: 0 0 var(--s2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.cap-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cap-list li {
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cap-list li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  flex: none;
}
.cap-pills {
  margin: 0 0 var(--s3);
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cap-pills li {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 7px 15px;
}
.cap-link {
  font-size: 14px;
}
@media (max-width: 760px) {
  .cap-inner {
    grid-template-columns: 1fr;
    gap: var(--s4);
  }
  /* Grille 2 colonnes plutôt qu'un flex-wrap, qui produisait des lignes bancales */
  .cap-list {
    display: grid;
    grid-template-columns: repeat(2, auto);
    justify-content: start;
    gap: 12px var(--s4);
  }
}
@media (max-width: 480px) {
  .cap-list {
    grid-template-columns: 1fr;
  }
}

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s2) var(--s4);
}
@media (max-width: 800px) {
  .faq {
    grid-template-columns: 1fr;
  }
}
.faq details {
  border-bottom: 1px solid var(--hairline);
  padding: 4px 0;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
  padding: var(--s2) 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  flex: none;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  color: var(--violet);
  transition: transform 250ms var(--ease-out);
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  margin: 0 0 var(--s2);
  font-size: 15.5px;
  color: var(--body);
  max-width: 60ch;
}

/* ---------- Avis clients ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s3);
}
@media (max-width: 900px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}
.testimonial {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: var(--s5) var(--s4) var(--s4);
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  transition: border-color 200ms ease, box-shadow 300ms var(--ease-out), transform 300ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .testimonial:hover {
    border-color: #cdd4dd;
    box-shadow: var(--shadow-card);
    transform: translateY(-3px);
  }
}
.testimonial::before {
  content: "\201C";
  position: absolute;
  top: -0.18em;
  left: 18px;
  font-size: 88px;
  line-height: 1;
  font-weight: 800;
  color: var(--cyan);
  opacity: 0.35;
}
.testimonial blockquote {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink);
  position: relative;
  z-index: 1;
}
.testimonial figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: var(--s2);
  border-top: 1px solid var(--hairline);
}
.testimonial .avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 16px;
  color: #fff;
  background: var(--grad);
}
.testimonial .who {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}
.testimonial .who strong {
  font-size: 15px;
  color: var(--ink);
}
.testimonial .who span {
  font-size: 13px;
  color: var(--muted);
}

/* ================================================================== */
/*  Finitions « premium » (recréées en vanilla)                       */
/* ================================================================== */

/* 1. Spotlight au curseur sur les cartes : lueur cyan discrète qui
      suit le pointeur. Inspiré d'Aceternity / Cult UI, sans dépendance. */
@media (hover: hover) and (pointer: fine) {
  .card,
  .tech-card,
  .testimonial,
  .project-card {
    position: relative;
  }
  .card::after,
  .tech-card::after,
  .testimonial::after,
  .project-card:not(.featured)::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    transition: opacity 300ms ease;
    background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%),
      rgba(63, 216, 255, 0.14), transparent 60%);
  }
  .card:hover::after,
  .tech-card:hover::after,
  .testimonial:hover::after,
  .project-card:not(.featured):hover::after {
    opacity: 1;
  }
  /* La carte vedette garde ses strates (::after) et reçoit la bordure
     animée sur son ::before (voir plus bas). */
}

/* 2. Bordure dégradée animée sur la carte vedette (façon « moving border »). */
@property --epl-ang {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
.project-card.featured::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(from var(--epl-ang),
    var(--cyan), var(--violet), var(--navy), var(--cyan));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: epl-border-spin 6s linear infinite;
  z-index: 2;
  pointer-events: none;
}
@keyframes epl-border-spin {
  to { --epl-ang: 360deg; }
}
@media (prefers-reduced-motion: reduce) {
  .project-card.featured::before {
    animation: none;
  }
  .card::after,
  .tech-card::after,
  .testimonial::after,
  .project-card:not(.featured)::after {
    display: none;
  }
}
