/*
Made by__           ___                         ___           ___          
     /__/\         /  /\                       /  /\         /  /\         
     \  \:\       /  /::\                     /  /::\       /  /:/_        
      \__\:\     /  /:/\:\                   /  /:/\:\     /  /:/ /\       
  ___ /  /::\   /  /:/  \:\   ___     ___   /  /:/  \:\   /  /:/ /::\      
 /__/\  /:/\:\ /__/:/ \__\:\ /__/\   /  /\ /__/:/ \__\:\ /__/:/ /:/\:\     
 \  \:\/:/__\/ \  \:\ /  /:/ \  \:\ /  /:/ \  \:\ /  /:/ \  \:\/:/~/:/     
  \  \::/       \  \:\  /:/   \  \:\  /:/   \  \:\  /:/   \  \::/ /:/      
   \  \:\        \  \:\/:/     \  \:\/:/     \  \:\/:/     \__\/ /:/       
    \  \:\        \  \::/       \  \/:/       \  \::/        /_Gouriou Axel
     \__\/         \__\/         \__\/         \__\/         \__\/         
                                                                           
                         - Built for reality -
*/

/* ============================================================
   HOLOS · STYLES
   ----
   Sommaire :
     01 · Tokens (variables)
     02 · Reset & base
     03 · Utilitaires (labels, container)
     04 · Layout : nav, footer
     05 · Hero
     06 · Section header commun
     07 · Manifeste
     08 · Réalisations (cartes clients + screenshot)
     09 · Laboratoire (cartes outils)
     10 · Contact
     11 · Accessibilité (focus, reduced motion)
     12 · Responsive
   ============================================================ */


/* ============================================================
   01 · TOKENS
   ============================================================ */
:root {
  --bg: #0a0a0a;
  --bg-card: #111111;
  --bg-elevated: #161616;
  --border: #1f1f1f;
  --border-bright: #2a2a2a;
  --text: #f5f5f5;
  --text-dim: #888888;
  --text-faint: #555555;
  --accent: #ff5b14;
  --accent-glow: rgba(255, 91, 20, 0.15);
  --green: #4ade80;
  --red: #ef4444;
  --grid-dot: rgba(255, 255, 255, 0.06);

  --font-display: 'Oxanium', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}


/* ============================================================
   02 · RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
  background-image: radial-gradient(circle, var(--grid-dot) 1px, transparent 1px);
  background-size: 24px 24px;
}

body::before {
  content: '';
  position: fixed;
  top: -20vh;
  left: 50%;
  transform: translateX(-50%);
  width: 80vw;
  height: 60vh;
  background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

a { color: inherit; }

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


/* ============================================================
   03 · UTILITAIRES
   ============================================================ */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}

.label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.label::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
}

.label--stack { margin-bottom: 12px; }

.label-plain {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* ============================================================
   04 · LAYOUT : NAV, FOOTER
   ============================================================ */

/* --- Nav flottante (apparait au scroll) --- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(10, 10, 10, 0.8);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 32px;
  max-width: 1280px;
  margin: 0 auto;
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 28px;
  letter-spacing: 0.06em;
  color: var(--text);
  text-decoration: none;
}

.nav-logo .logo-lab,
.footer-logo .logo-lab {
  font-weight: 300;
  font-size: 0.55em;
  color: var(--accent);
  letter-spacing: 0.02em;
  margin-left: 0.1em;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: color 0.2s var(--ease);
}

.nav-links a:hover,
.nav-links a:focus-visible { color: var(--accent); }

.nav-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2s infinite;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.status-dot[data-closed="true"] {
  background: var(--red);
  box-shadow: 0 0 8px var(--red);
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}

/* --- Footer --- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 6px 0;
  margin-top: 8px;
}

.footer-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 16px;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.footer-row .col-left   { text-align: left;   }
.footer-row .col-center { text-align: center; }
.footer-row .col-right  { text-align: right;  }

.footer-logo {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  line-height: 1;
  text-decoration: none;
}

.footer-divider {
  margin: 4px 0;
  border: none;
  border-top: 1px dashed var(--border);
}


/* ============================================================
   05 · HERO
   ============================================================ */
.section--first {
  padding-top: 40px;
}

.hero-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-coords {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  line-height: 1.7;
  white-space: nowrap;
  text-align: right;
}

/* Layout Réalisations : liste clients à gauche, panneau specs à droite */
.realisations-body {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 48px;
  align-items: start;
}

.realisations-left { min-width: 0; }

/* Panneau specs : sticky pour rester visible pendant le scroll des cartes */
.realisations-right {
  position: sticky;
  top: 80px;
}

/* CTA dans le panneau specs : pas de ::before orange */
.hero-spec--cta {
  padding-top: 8px;
}

.hero-spec--cta::before {
  display: none;
}

.hero-spec--cta .hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #000;
  padding: 12px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.hero-spec--cta .hero-cta::after {
  content: '→';
  font-size: 14px;
}

.hero-spec--cta .hero-cta:hover,
.hero-spec--cta .hero-cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px var(--accent-glow);
}

.hero-spec--cta .hero-cta[data-closed="true"] {
  background: #333;
  color: #fff;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--accent);
  color: #000;
  padding: 16px 28px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.3s var(--ease);
  margin-top: 32px;
}

.hero-cta::after {
  content: '→';
  font-size: 16px;
}

.hero-cta:hover,
.hero-cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px var(--accent-glow);
}

.hero-cta[data-closed="true"] {
  background: #333;
  color: #fff;
}

/* --- Panneau specs (droite du hero) --- */
.hero-specs {
  border-left: 1px solid var(--border-bright);
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  list-style: none;
}

.hero-spec {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

.hero-spec::before {
  content: '';
  position: absolute;
  left: -21px;
  top: 8px;
  width: 6px;
  height: 1px;
  background: var(--accent);
}

.hero-spec-label {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.hero-spec-value {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 26px;
  line-height: 1;
  color: var(--text);
  letter-spacing: 0.02em;
}

.hero-spec-value .unit {
  font-size: 12px;
  color: var(--text-dim);
  margin-left: 4px;
  letter-spacing: 0.05em;
}

.hero-spec-value[data-status="open"]   { color: var(--green); }
.hero-spec-value[data-status="closed"] { color: var(--red);   }

.hero-spec-sub {
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-spec-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.hero-spec-dot[data-closed="true"] {
  background: var(--red);
  box-shadow: 0 0 6px var(--red);
}


/* ============================================================
   06 · SECTION HEADER COMMUN
   ============================================================ */
.section {
  padding: 80px 0;
  position: relative;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px dashed var(--border-bright);
  flex-wrap: wrap;
  gap: 16px;
}

/* Variante compacte : label et index sur une seule ligne,
   plus de titre H2 */
.section-header--compact {
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 16px;
}

.section-header--compact .label {
  font-size: 12px;
  letter-spacing: 0.22em;
}

.section-header--compact .section-index {
  font-size: 11px;
  letter-spacing: 0.18em;
}

.section-header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 56px;
  line-height: 1;
  letter-spacing: 0.02em;
}

.section-index {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--text-faint);
}


/* ============================================================
   07 · MANIFESTE
   ============================================================ */
.manifesto {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  align-items: start;
}

.manifesto-text {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text);
}

.manifesto-text p + p { margin-top: 20px; }
.manifesto-text .highlight { color: var(--accent); }


/* ============================================================
   08 · RÉALISATIONS (cartes clients + screenshot)
   ============================================================
   Architecture :
     .client-card           ← lien englobant, transparent
       .client-top          ← zone haute (relative, contient l'image)
         .client-screen     ← <img> en absolute, opacity 0 par défaut
         .client-content    ← contenu texte (logo, nom, type)
       .client-meta         ← bande basse opaque, toujours visible
   ============================================================ */
/* ============================================================
   08 · RÉALISATIONS (carousel horizontal)
   ============================================================ */

/* Wrapper : permet le scroll horizontal avec masques dégradés */
.clients-carousel {
  position: relative;
  margin: 0 -8px;
  /* Fade sur les bords pour suggérer le scroll */
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 24px,
    #000 calc(100% - 24px),
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 24px,
    #000 calc(100% - 24px),
    transparent 100%
  );
}

/* Track : la piste scrollable */
.clients-track {
  display: flex;
  gap: 16px;
  padding: 4px 8px 16px;
  margin: 0;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--border-bright) transparent;
}

.clients-track::-webkit-scrollbar {
  height: 4px;
}
.clients-track::-webkit-scrollbar-track {
  background: transparent;
}
.clients-track::-webkit-scrollbar-thumb {
  background: var(--border-bright);
  border-radius: 2px;
}
.clients-track::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* Chaque item : largeur fixe pour préserver le contenu */
.clients-item {
  flex: 0 0 320px;
  scroll-snap-align: start;
  min-width: 0;
}

.clients-item > .client-card {
  height: 100%;
}

.client-card {
  position: relative;
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: border-color 0.3s var(--ease),
              transform 0.3s var(--ease),
              box-shadow 0.3s var(--ease);
}

.client-card:hover,
.client-card:focus-visible {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--accent);
  outline: none;
}

.client-top {
  position: relative;
  padding: 24px;
  min-height: 180px;
  overflow: hidden;
  isolation: isolate;
}

/* Le screenshot : <img> en absolute, caché par défaut, révélé au hover.
   On utilise !important sur position/inset pour blinder contre tout
   reset éventuel, et on cache visuellement avec opacity ET visibility. */
.client-card .client-screen {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
  object-fit: cover;
  object-position: top center;
  opacity: 0;
  transform: scale(1.1);
  filter: blur(6px) saturate(1.3) brightness(0.85);
  transition: opacity 0.5s var(--ease), transform 0.8s var(--ease);
  pointer-events: none;
  z-index: 0;
}

.client-card:hover .client-screen,
.client-card:focus-visible .client-screen {
  opacity: 1;
  transform: scale(1);
}

/* Voile sombre par-dessus le screenshot, en pseudo-élément du client-top */
.client-top::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 10, 0.25) 0%,
    rgba(10, 10, 10, 0.55) 100%
  );
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
  z-index: 1;
}

.client-card:hover .client-top::after,
.client-card:focus-visible .client-top::after {
  opacity: 1;
}

/* Contenu texte au-dessus de tout */
.client-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.client-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.client-logo {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-bright);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--text);
  background: var(--bg-elevated);
  transition: border-color 0.3s var(--ease),
              color 0.3s var(--ease),
              background 0.3s var(--ease);
}

.client-arrow {
  font-size: 14px;
  color: var(--text-faint);
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}

.client-card:hover .client-logo,
.client-card:focus-visible .client-logo {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(255, 91, 20, 0.08);
}

.client-card:hover .client-arrow,
.client-card:focus-visible .client-arrow {
  color: var(--accent);
  transform: translate(2px, -2px);
}

.client-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 24px;
  letter-spacing: 0.02em;
}

.client-type {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: -8px;
}

.client-meta {
  position: relative;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: flex;
  justify-content: space-between;
  padding: 12px 24px;
  background: var(--bg-card);
  border-top: 1px dashed var(--border-bright);
  z-index: 3;
}/* Carte vide "Slot disponible" : pas d'effet hover */
.client-card--empty {
  border-style: dashed;
  opacity: 0.5;
  cursor: default;
}

.client-card--empty:hover {
  border-color: var(--border-bright);
  transform: none;
  box-shadow: none;
}


/* ============================================================
   09 · LABORATOIRE (cartes outils)
   ============================================================
   Même architecture que client-card pour pouvoir ajouter
   des screenshots aux outils plus tard.
   ============================================================ */
/* ============================================================
   09 · LABORATOIRE (carousel horizontal)
   ============================================================
   Architecture identique à .clients-carousel pour cohérence.
   ============================================================ */

.tools-carousel {
  position: relative;
  margin: 0 -8px;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 24px,
    #000 calc(100% - 24px),
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 24px,
    #000 calc(100% - 24px),
    transparent 100%
  );
}

.tools-track {
  display: flex;
  gap: 16px;
  padding: 4px 8px 16px;
  margin: 0;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--border-bright) transparent;
}

.tools-track::-webkit-scrollbar {
  height: 4px;
}
.tools-track::-webkit-scrollbar-track {
  background: transparent;
}
.tools-track::-webkit-scrollbar-thumb {
  background: var(--border-bright);
  border-radius: 2px;
}
.tools-track::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* Chaque item : largeur fixe identique aux réalisations */
.tools-item {
  flex: 0 0 320px;
  scroll-snap-align: start;
  min-width: 0;
}

.tools-item > .tool-card {
  height: 100%;
}

.tool-card {
  position: relative;
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.3s var(--ease);
}

.tool-card--soon { border-style: dashed; }

.tool-top {
  position: relative;
  padding: 32px 32px 28px;
  flex: 1;
  min-height: 180px;
}

.tool-content {
  position: relative;
  z-index: 2;
}

.tool-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 24px;
}

.tool-header > div {
  min-width: 0;
  flex: 1 1 auto;
}

.tool-version {
  flex-shrink: 0;
  font-size: 9px;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  border: 1px solid var(--border-bright);
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.tool-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 32px;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
  overflow-wrap: break-word;
  word-break: break-word;
}

.tool-subtitle {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.tool-desc {
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.6;
}

.tool-desc .inline-link {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
}

.tool-meta {
  position: relative;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: flex;
  justify-content: space-between;
  padding: 12px 32px;
  background: var(--bg-card);
  border-top: 1px dashed var(--border-bright);
  z-index: 3;
}

.lab-notice {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  border: 1px dashed var(--accent);
  background: rgba(255, 91, 20, 0.04);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 24px;
}

.lab-notice-icon {
  font-size: 24px;
  color: var(--accent);
  line-height: 1;
  flex-shrink: 0;
}

.lab-notice-text {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-dim);
}

.lab-notice-text strong {
  color: var(--accent);
  font-size: 10px;
  letter-spacing: 0.18em;
  display: inline-block;
  margin-bottom: 6px;
}


/* ============================================================
   10 · CONTACT
   ============================================================ */
.contact {
  padding: 100px 0;
  text-align: center;
}

.contact-prompt {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.contact-prompt .cursor {
  display: inline-block;
  width: 10px;
  height: 20px;
  background: var(--accent);
  vertical-align: middle;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 50%   { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.contact-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(48px, 8vw, 96px);
  line-height: 1;
  margin-bottom: 32px;
}

.contact-email {
  display: inline-block;
  color: var(--accent);
  font-size: 18px;
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 4px;
  transition: opacity 0.2s var(--ease);
}

.contact-email:hover,
.contact-email:focus-visible { opacity: 0.7; }


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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* ============================================================
   12 · RESPONSIVE
   ============================================================ */
/* ============================================================
   12 · RESPONSIVE
   ============================================================ */

/* --- Tablette & mobile large (< 900px) --- */
@media (max-width: 900px) {
  .container { padding: 0 20px; }

  /* Nav : zone tactile plus généreuse */
  .nav-inner { padding: 8px 20px; }
  .nav-links { display: none; }

  /* Logo nav un cran plus compact */
  .nav-logo { font-size: 24px; letter-spacing: 0.05em; }
  .nav-status { font-size: 9px; letter-spacing: 0.12em; }

  /* Réalisations : panneau specs sous les cartes */
  .realisations-body {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .realisations-right {
    position: static;
    order: 2;
  }
  .realisations-left { order: 1; }

  /* Section-header compact : reste sur une seule ligne */
  .section-header--compact {
    flex-wrap: nowrap;
    gap: 12px;
  }
  .section-header--compact .label {
    font-size: 11px;
    letter-spacing: 0.18em;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .section-header--compact .section-index {
    flex-shrink: 0;
    font-size: 10px;
  }

  /* Carousels : cartes plus étroites en mobile pour voir
     un glimpse de la carte suivante, sans jamais déformer le contenu */
  .clients-item,
  .tools-item { flex: 0 0 280px; }

  /* Panneau specs : tout sur 1 ligne horizontale */
  .hero-specs {
    border-left: none;
    border-top: 1px solid var(--border-bright);
    padding-left: 0;
    padding-top: 20px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0;
  }
  .hero-spec {
    flex: 1 1 0;
    min-width: 0;
    padding: 0 12px;
    border-left: 1px solid var(--border);
  }
  .hero-spec:first-child {
    padding-left: 0;
    border-left: none;
  }
  .hero-spec::before { display: none; }
  .hero-spec-label {
    font-size: 10px;
    letter-spacing: 0.12em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .hero-spec-value {
    font-size: 26px;
    white-space: nowrap;
  }
  .hero-spec-value .unit { display: none; }
  .hero-spec-sub { display: none; }

  /* CTA en pleine largeur sous les specs */
  .hero-spec--cta {
    flex-basis: 100%;
    padding: 20px 0 0 0;
    border-left: none;
    order: 10;
  }
  .hero-spec--cta .hero-cta {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: 11px;
  }

  /* Manifeste 1 colonne */
  .manifesto { grid-template-columns: 1fr; gap: 24px; }
  .manifesto-text { font-size: 16px; }

  /* Tool-top : hauteur min réduite en mobile */
  .tool-top { min-height: 140px; padding: 24px 24px 20px; }
  .tool-title { font-size: 28px; }
  .tool-meta { padding: 10px 20px; }

  /* Client-meta : passe sur 2 lignes si nécessaire */
  .client-meta { flex-wrap: wrap; gap: 4px 8px; }

  /* Section padding réduit */
  .section { padding: 48px 0; }
  .section--first { padding-top: 32px; }

  /* Footer : empilé verticalement */
  .footer-row {
    grid-template-columns: 1fr;
    gap: 4px;
    text-align: center;
  }
  .footer-row .col-left,
  .footer-row .col-center,
  .footer-row .col-right { text-align: center; }
  .footer-row .col-center:empty { display: none; }
  .site-footer { padding: 16px 0; }
}

/* --- Mobile étroit (< 500px) --- */
@media (max-width: 500px) {
  .container { padding: 0 16px; }

  /* Nav encore plus compacte */
  .nav-inner { padding: 8px 16px; }
  .nav-logo { font-size: 20px; }
  .nav-status { font-size: 8px; letter-spacing: 0.1em; }

  /* Panneau specs : tout petit mais lisible */
  .hero-spec { padding: 0 8px; }
  .hero-spec-label { font-size: 9px; letter-spacing: 0.1em; }
  .hero-spec-value { font-size: 22px; }

  /* Carousels : cartes encore plus étroites pour petits écrans
     afin de toujours montrer un début de carte suivante */
  .clients-item,
  .tools-item { flex: 0 0 240px; }

  /* Client / tool : padding interne réduit */
  .client-top { padding: 20px 20px 16px; }
  .client-meta { padding: 10px 20px; font-size: 9px; }
  .client-name { font-size: 22px; }

  .tool-top { padding: 20px 20px 16px; min-height: 120px; }
  .tool-meta { padding: 10px 20px; font-size: 9px; }
  .tool-title { font-size: 24px; }
  .tool-subtitle { font-size: 10px; margin-bottom: 0; }

  /* Section-header encore plus compact */
  .section-header--compact .label { font-size: 10px; letter-spacing: 0.14em; }
  .section-header--compact .section-index { font-size: 9px; }

  /* Lab notice plus compacte */
  .lab-notice { padding: 16px; gap: 12px; }
  .lab-notice-icon { font-size: 18px; }
  .lab-notice-text { font-size: 12px; }

  /* Manifeste lisible */
  .manifesto-text { font-size: 15px; line-height: 1.6; }
}
