/* ==========================================================================
   Benjamin Ikhmim — Freelance Digital & IA
   Design system + layout. Aucune dépendance externe.
   ========================================================================== */

@import url("fonts.css");

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Couleurs — base sombre */
  --ink: #08090a;
  --ink-2: #0d0f11;
  --surface: #141619;
  --surface-2: #191c20;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f0eee9;
  --muted: #9a9ba3;
  --muted-2: #83858d;

  /* Couleurs — base claire */
  --paper: #f2f0eb;
  --paper-2: #e8e5de;
  --paper-line: rgba(10, 11, 13, 0.1);
  --paper-text: #0b0c0e;
  --paper-muted: #55565c;

  /* Accent */
  --accent: #cbff4d;
  --accent-dim: #a8d63c;
  --accent-ink: #0b0c0e;

  /* Typo */
  --font-sans: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;

  /* Rythme */
  --container: 1240px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(5rem, 11vw, 9.5rem);
  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 24px;
  --radius-xl: 32px;

  /* Mouvement */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur: 0.55s;
}

/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   3. Primitives
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); position: relative; }

.section--paper {
  background: var(--paper);
  color: var(--paper-text);
}

.section--paper .eyebrow { color: var(--paper-muted); }
.section--paper .eyebrow::before { background: var(--paper-text); }
.section--paper .lead { color: var(--paper-muted); }

.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -120%);
  z-index: 200;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.7rem 1.2rem;
  border-radius: 0 0 var(--radius-s) var(--radius-s);
  font-weight: 600;
  transition: transform 0.25s var(--ease);
}
.skip-link:focus-visible { transform: translate(-50%, 0); }

/* Titres */
h1, h2, h3, h4 {
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.03;
  text-wrap: balance;
}

.display {
  font-size: clamp(2.4rem, 4.6vw, 4.25rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.h2 {
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.h3 { font-size: clamp(1.35rem, 2.1vw, 1.75rem); letter-spacing: -0.03em; }

em, .serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.lead {
  font-size: clamp(1.0625rem, 0.98rem + 0.4vw, 1.25rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 58ch;
  text-wrap: pretty;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--text);
  opacity: 0.5;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
.section-head > div { max-width: 46rem; }
.section-head .h2 { margin-top: 1.1rem; }
.section-head .lead { margin-top: 1.25rem; }

/* Boutons */
.btn {
  --btn-bg: var(--accent);
  --btn-fg: var(--accent-ink);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background-color 0.3s var(--ease), color 0.3s var(--ease);
  will-change: transform;
}
.btn svg { width: 16px; height: 16px; transition: transform 0.35s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -12px rgba(203, 255, 77, 0.55); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(0); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
  border-color: var(--text);
}

.section--paper .btn--ghost {
  --btn-fg: var(--paper-text);
  border-color: rgba(10, 11, 13, 0.22);
}
.section--paper .btn--ghost:hover { background: rgba(10, 11, 13, 0.05); border-color: var(--paper-text); }

.btn--dark { --btn-bg: var(--ink); --btn-fg: var(--text); }
.btn--dark:hover { box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.7); }

.btn--lg { padding: 1.1rem 1.9rem; font-size: 1rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  color: var(--text);
  padding-bottom: 2px;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.4s var(--ease), color 0.3s var(--ease);
}
.link-arrow:hover { background-size: 100% 1px; }
.link-arrow svg { width: 14px; height: 14px; transition: transform 0.35s var(--ease); }
.link-arrow:hover svg { transform: translate(3px, -3px); }

/* Puces / tags */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.8125rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
  white-space: nowrap;
}
.section--paper .chip { border-color: var(--paper-line); color: var(--paper-muted); background: rgba(10, 11, 13, 0.03); }

.pill-status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.9rem 0.45rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.8125rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(203, 255, 77, 0.55);
  animation: pulse 2.6s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(203, 255, 77, 0.5); }
  70% { box-shadow: 0 0 0 9px rgba(203, 255, 77, 0); }
  100% { box-shadow: 0 0 0 0 rgba(203, 255, 77, 0); }
}

/* --------------------------------------------------------------------------
   4. Header / navigation
   -------------------------------------------------------------------------- */
.progress {
  position: fixed;
  inset: 0 auto auto 0;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: var(--accent);
  z-index: 120;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 110;
  transition: transform 0.45s var(--ease), background-color 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.header.is-stuck {
  background: rgba(8, 9, 10, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}
.header.is-hidden { transform: translateY(-102%); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  font-size: 1rem;
}
.brand-mark {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 10px;
  object-fit: cover;
}
.brand span small {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.nav-links a {
  position: relative;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--muted);
  transition: color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav-links a.is-active { color: var(--text); }
.nav-links a.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateX(-50%);
}

.nav-actions { display: flex; align-items: center; gap: 0.75rem; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 50%;
  width: 17px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.4s var(--ease), opacity 0.2s linear;
}
.nav-toggle span:nth-child(1) { transform: translate(-50%, -4px); }
.nav-toggle span:nth-child(2) { transform: translate(-50%, 4px); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translate(-50%, 0) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translate(-50%, 0) rotate(-45deg); }

.mobile-panel {
  position: fixed;
  inset: 0;
  z-index: 105;
  background: rgba(8, 9, 10, 0.97);
  backdrop-filter: blur(20px);
  padding: 96px var(--gutter) 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.mobile-panel.is-open { opacity: 1; visibility: visible; }
.mobile-panel nav { display: flex; flex-direction: column; }
.mobile-panel nav a {
  font-size: clamp(1.9rem, 8vw, 2.6rem);
  letter-spacing: -0.04em;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.mobile-panel.is-open nav a { opacity: 1; transform: none; transition-delay: calc(0.05s * var(--i, 0) + 0.08s); }
.mobile-panel .mobile-foot { display: grid; gap: 0.85rem; }
.mobile-panel .mobile-foot .btn { width: 100%; }
.mobile-panel .mobile-meta { color: var(--muted); font-size: 0.875rem; }

/* --------------------------------------------------------------------------
   5. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: clamp(7.5rem, 15vw, 11rem);
  padding-bottom: clamp(3.5rem, 8vw, 6rem);
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 120%;
  z-index: -2;
  background:
    radial-gradient(52% 42% at 18% 8%, rgba(203, 255, 77, 0.12), transparent 62%),
    radial-gradient(48% 46% at 88% 22%, rgba(90, 140, 255, 0.12), transparent 66%),
    radial-gradient(60% 50% at 50% 100%, rgba(255, 255, 255, 0.05), transparent 70%);
  filter: blur(6px);
}
.grid-lines {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(90% 70% at 50% 20%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(90% 70% at 50% 20%, #000 20%, transparent 78%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}

.hero h1 { margin-top: 1.6rem; }
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span {
  display: block;
  transform: translateY(105%);
  animation: riseIn 1.05s var(--ease) forwards;
  animation-delay: calc(0.08s * var(--i));
}
@keyframes riseIn { to { transform: translateY(0); } }

.hero .lead { margin-top: 1.75rem; }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.25rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.6rem;
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
}
.hero-meta strong { color: var(--text); font-weight: 600; }
.hero-meta span { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero-meta svg { width: 15px; height: 15px; color: var(--accent); flex: none; }

/* --------------------------------------------------------------------------
   7. Réalisations
   -------------------------------------------------------------------------- */
.cases { display: grid; gap: clamp(4rem, 9vw, 8rem); }

.case {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 4.5vw, 4rem);
  align-items: center;
}
.case:nth-child(even) .case-visual { order: 2; }

.case-visual {
  position: relative;
  border-radius: var(--radius-l);
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(150deg, var(--surface), var(--ink-2));
  box-shadow: 0 50px 90px -50px rgba(0, 0, 0, 0.95);
}
.case-frame {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.case-frame i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}
.case-frame u {
  flex: 1;
  margin-left: 0.6rem;
  text-decoration: none;
  font-size: 0.75rem;
  color: var(--muted-2);
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.case-media {
  position: relative;
  aspect-ratio: 16 / 10.4;
  overflow: hidden;
}
.case-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 1.1s var(--ease);
}
.case-visual:hover .case-media img { transform: scale(1.035); }

.case-body { min-width: 0; }
.case-index {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--accent);
  display: block;
  margin-bottom: 0.9rem;
}
.case-tags { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 1.1rem; }
.case-tags .chip--type {
  color: var(--accent);
  border-color: rgba(203, 255, 77, 0.35);
  background: rgba(203, 255, 77, 0.07);
}
.case-body h3 { font-size: clamp(1.7rem, 3vw, 2.5rem); letter-spacing: -0.04em; }
.case-body .case-sub { margin-top: 0.7rem; color: var(--muted); }

.case-block { margin-top: 1.5rem; }
.case-block h4 {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.case-block p { color: var(--muted); }

.case-features {
  display: grid;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.case-features li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--muted);
  font-size: 0.9375rem;
}
.case-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0.85;
}

.case-stack { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1.6rem; }
.case-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1.9rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}
.case-note { font-size: 0.8125rem; color: var(--muted-2); max-width: 34ch; }

/* Galerie interne (collection e-CV) */
.case-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 0.75rem;
  padding: 0.75rem;
}
.case-gallery img {
  border-radius: 8px;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 11;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s var(--ease), border-color 0.4s;
}
.case-gallery img:hover { transform: translateY(-4px); border-color: var(--line-strong); }

/* Couverture schématique (projets sans capture publique) */
.case-cover {
  position: relative;
  padding: clamp(1.5rem, 3vw, 2.4rem);
  min-height: clamp(340px, 34vw, 440px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  background:
    radial-gradient(70% 60% at 15% 0%, rgba(203, 255, 77, 0.12), transparent 60%),
    radial-gradient(70% 70% at 100% 100%, rgba(90, 140, 255, 0.14), transparent 62%),
    var(--ink-2);
  overflow: hidden;
}
.case-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(80% 80% at 50% 50%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(80% 80% at 50% 50%, #000, transparent 75%);
}
.case-cover > * { position: relative; }
.cover-title {
  font-size: clamp(1.25rem, 2.4vw, 1.9rem);
  letter-spacing: -0.035em;
  line-height: 1.1;
}
.cover-map {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}
.cover-node {
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(6px);
}
.cover-node b {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.cover-node span { font-size: 0.7rem; color: var(--muted-2); }
.cover-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--muted-2);
  letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   8. Services
   -------------------------------------------------------------------------- */
.services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--paper-line);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-l);
  overflow: hidden;
}
.service {
  position: relative;
  background: var(--paper);
  padding: clamp(1.75rem, 3.4vw, 2.75rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: background-color 0.45s var(--ease);
  overflow: hidden;
}
.service::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--accent-dim);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.55s var(--ease);
}
.service:hover { background: #eeebe4; }
.service:hover::after { transform: scaleX(1); }
.service-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--paper-muted);
}
.service h3 { font-size: clamp(1.3rem, 2.2vw, 1.65rem); }
.service p { color: var(--paper-muted); font-size: 0.9375rem; }
.service ul { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: auto; padding-top: 0.75rem; }
.service li {
  font-size: 0.8125rem;
  color: var(--paper-muted);
  border: 1px solid var(--paper-line);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
}

/* --------------------------------------------------------------------------
   9. Méthode / rapidité
   -------------------------------------------------------------------------- */
.speed-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.speed-points { display: grid; gap: 1.5rem; margin-top: 2rem; }
.speed-point {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 1rem;
  align-items: start;
}
.speed-point .ico {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--paper-text);
  color: var(--accent);
}
.speed-point .ico svg { width: 18px; height: 18px; }
.speed-point h4 { font-size: 1.0625rem; letter-spacing: -0.02em; margin-bottom: 0.2rem; }
.speed-point p { font-size: 0.9375rem; color: var(--paper-muted); }

.steps { display: grid; gap: 0; counter-reset: step; }
.step {
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  gap: 1.25rem;
  padding: 1.6rem 0;
  border-top: 1px solid var(--paper-line);
  position: relative;
}
.step:last-child { border-bottom: 1px solid var(--paper-line); }
.step-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--paper-text);
}
.step h4 { font-size: 1.15rem; letter-spacing: -0.025em; }
.step p { font-size: 0.9375rem; color: var(--paper-muted); margin-top: 0.35rem; }
.step .step-time {
  display: inline-block;
  margin-top: 0.7rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--paper-text);
  border-bottom: 1px solid var(--accent-dim);
  padding-bottom: 2px;
}

.deliverables {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1px;
  margin-top: clamp(3rem, 6vw, 5rem);
  background: var(--paper-line);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-m);
  overflow: hidden;
}
.deliverable {
  background: var(--paper);
  padding: 1.5rem;
  display: grid;
  gap: 0.4rem;
}
.deliverable b { font-size: 0.9375rem; font-weight: 600; letter-spacing: -0.015em; }
.deliverable span { font-size: 0.8125rem; color: var(--paper-muted); }
.deliverable .check { width: 18px; height: 18px; color: var(--paper-text); }

/* --------------------------------------------------------------------------
   10. À propos / stack
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.about-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  background: linear-gradient(160deg, var(--surface), var(--ink-2));
}
.about-card p + p { margin-top: 1rem; }
.about-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.about-facts div b {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.about-facts div span { font-size: 0.8125rem; color: var(--muted-2); }

.stack-groups { display: grid; gap: 1.75rem; }
.stack-group h4 {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 0.75rem;
  font-weight: 600;
}
.stack-group ul { display: flex; flex-wrap: wrap; gap: 0.45rem; }

/* --------------------------------------------------------------------------
   11. FAQ
   -------------------------------------------------------------------------- */
.faq { display: grid; gap: 0; max-width: 62rem; margin-inline: auto; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  text-align: left;
  padding: 1.5rem 0;
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  letter-spacing: -0.025em;
  font-weight: 500;
  transition: color 0.3s var(--ease);
}
.faq-q:hover { color: var(--accent); }
.faq-icon {
  position: relative;
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9px;
  height: 1.5px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform 0.4s var(--ease), opacity 0.3s;
}
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-q[aria-expanded="true"] .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); opacity: 0; }
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s var(--ease);
}
.faq-a > div { overflow: hidden; }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a p { color: var(--muted); padding-bottom: 1.6rem; max-width: 68ch; }

/* --------------------------------------------------------------------------
   12. Contact
   -------------------------------------------------------------------------- */
.contact {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.contact::before {
  content: "";
  position: absolute;
  inset: auto -20% -60% -20%;
  height: 120%;
  z-index: -1;
  background: radial-gradient(50% 50% at 50% 70%, rgba(203, 255, 77, 0.13), transparent 68%);
}
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}
.contact-list { display: grid; gap: 0.75rem; margin-top: 2.25rem; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.35s var(--ease), background-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.contact-item:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, 0.045); transform: translateY(-2px); }
.contact-item .ico {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 12px;
  background: rgba(203, 255, 77, 0.1);
  color: var(--accent);
}
.contact-item .ico svg { width: 18px; height: 18px; }
.contact-item b { display: block; font-weight: 500; letter-spacing: -0.015em; }
.contact-item span { font-size: 0.8125rem; color: var(--muted-2); }
.contact-item .arrow { margin-left: auto; color: var(--muted-2); transition: transform 0.35s var(--ease); }
.contact-item:hover .arrow { transform: translate(3px, -3px); color: var(--text); }

/* --------------------------------------------------------------------------
   13. Footer
   -------------------------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--line);
  padding-block: 3rem 2.5rem;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-nav a { font-size: 0.9rem; color: var(--muted); transition: color 0.3s; }
.footer-nav a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--muted-2);
}

/* --------------------------------------------------------------------------
   14. Animations d'apparition
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   15. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .case,
  .speed-grid,
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .case:nth-child(even) .case-visual { order: 0; }
  .case-visual { max-width: 760px; }
}

@media (max-width: 860px) {
  html { scroll-padding-top: 76px; }
  .nav { height: 68px; }
  .nav-links,
  .nav-actions .btn { display: none; }
  .nav-toggle { display: block; }
  .services { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .hero-meta { gap: 0.5rem 1.1rem; }
  .case-gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .btn { width: 100%; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .case-foot { gap: 1rem; }
  .cover-map { grid-template-columns: 1fr 1fr; }
}

/* --------------------------------------------------------------------------
   16. Préférences utilisateur
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .hero h1 .line > span { transform: none; }
}

@media print {
  .header, .mobile-panel, .progress { display: none; }
  body { background: #fff; color: #000; }
}

/* ==========================================================================
   17. Site multi-pages — composants ajoutés
   ========================================================================== */

/* --- Navigation : menu déroulant Services --------------------------------- */
.nav-drop { position: relative; }
.nav-drop-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--muted);
  transition: color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.nav-drop-btn svg { width: 13px; height: 13px; transition: transform 0.35s var(--ease); }
.nav-drop-btn:hover,
.nav-drop-btn.is-active { color: var(--text); }
.nav-drop-btn[aria-expanded="true"] { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav-drop-btn[aria-expanded="true"] svg { transform: rotate(180deg); }

.nav-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translate(-50%, -8px);
  width: min(420px, 90vw);
  padding: 0.5rem;
  display: grid;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: rgba(15, 17, 20, 0.96);
  backdrop-filter: blur(18px);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.95);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0.28s;
  z-index: 20;
}
.nav-drop-btn[aria-expanded="true"] + .nav-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
.nav-menu a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  color: var(--text);
}
.nav-menu a:hover { background: rgba(255, 255, 255, 0.06); }
.nav-menu a[aria-current="page"] { background: rgba(203, 255, 77, 0.08); }
.nav-menu b { display: block; font-size: 0.875rem; font-weight: 500; letter-spacing: -0.015em; }
.nav-menu small { display: block; font-size: 0.75rem; color: var(--muted-2); line-height: 1.45; margin-top: 2px; }
.mi-ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: rgba(203, 255, 77, 0.1);
  color: var(--accent);
}
.mi-ico svg { width: 18px; height: 18px; }

.mobile-label {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  padding: 1.1rem 0 0.4rem;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.mobile-panel.is-open .mobile-label { opacity: 1; transform: none; transition-delay: calc(0.05s * var(--i, 0) + 0.08s); }
.mobile-panel nav a.mobile-sub {
  font-size: clamp(1.05rem, 4.5vw, 1.3rem);
  letter-spacing: -0.02em;
  padding: 0.6rem 0;
  color: var(--muted);
}
.mobile-panel nav a.mobile-sub:hover { color: var(--text); }

/* --- Accueil : hero compact + menu des services --------------------------- */
.hero--hub { padding-bottom: clamp(2rem, 4vw, 3rem); }
.hub-intro { max-width: 74rem; }
.hub-intro .display {
  font-size: clamp(2.1rem, 4.15vw, 3.85rem);
  text-wrap: nowrap;
}
@media (max-width: 900px) {
  .hub-intro .display { text-wrap: balance; }
}
.hub-intro .lead { margin-top: 1.6rem; }
.hub-intro h1 { margin-top: 1.5rem; }
.hub-intro .hero-meta { margin-top: 2.25rem; }

.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

.hub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
  background: var(--line);
  border-radius: var(--radius-l);
  overflow: hidden;
}
.hub-card {
  position: relative;
  display: block;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  background: var(--ink-2);
}
.hub-card--featured { grid-column: span 2; }
.hub-card--featured h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); }

.hub-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.9s var(--ease);
}
.hub-card:hover .hub-photo { transform: scale(1.04); }
.hub-photo--icon {
  display: grid;
  place-items: center;
  background:
    radial-gradient(70% 70% at 25% 10%, rgba(203, 255, 77, 0.13), transparent 62%),
    radial-gradient(70% 70% at 90% 100%, rgba(90, 140, 255, 0.14), transparent 64%),
    var(--ink-2);
}
.hub-glyph {
  position: relative;
  width: clamp(58px, 9.5vw, 112px);
  height: clamp(58px, 9.5vw, 112px);
  stroke-width: 1.5;
  color: var(--accent);
  opacity: 0.9;
}

.hub-overlay {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: clamp(1.1rem, 2.4vw, 1.6rem);
  padding-top: clamp(2.5rem, 8vw, 4.5rem);
  background: linear-gradient(180deg, transparent, rgba(4, 5, 7, 0.55) 55%, rgba(4, 5, 7, 0.92) 100%);
  color: #fff;
}
.hub-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--accent);
}
.hub-card h3 { font-size: clamp(1.15rem, 1.7vw, 1.35rem); letter-spacing: -0.03em; color: #fff; }
.hub-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding-top: 0.15rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
}
.hub-link svg { width: 14px; height: 14px; color: var(--accent); transition: transform 0.35s var(--ease); }
.hub-card:hover .hub-link svg { transform: translateX(4px); }

/* --- Pages internes : hero, fil d'Ariane ---------------------------------- */
.page-hero {
  position: relative;
  padding-top: clamp(7rem, 13vw, 10rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  overflow: hidden;
  isolation: isolate;
}
.page-hero .container { max-width: 62rem; }
.page-hero h1 { margin: 1.2rem 0 1.6rem; }
.page-hero .lead { font-size: clamp(1.05rem, 0.98rem + 0.45vw, 1.3rem); }
.page-hero .hero-cta { margin-top: 2.25rem; }
.page-hero--contact .container { max-width: 68rem; }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.6rem;
  font-size: 0.8125rem;
  color: var(--muted-2);
}
.crumbs a { color: var(--muted); transition: color 0.3s; }
.crumbs a:hover { color: var(--accent); }

.chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; }

/* --- Deux colonnes problème / solution ------------------------------------ */
.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 4.5rem);
}
.big-text {
  margin-top: 1.1rem;
  font-size: clamp(1.05rem, 0.98rem + 0.4vw, 1.2rem);
  line-height: 1.6;
  color: var(--paper-muted);
  text-wrap: pretty;
}
.section--paper .big-text { color: var(--paper-muted); }

/* --- Ce qui est inclus ---------------------------------------------------- */
.inc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--paper-line);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-l);
  overflow: hidden;
}
.inc-card {
  background: var(--paper);
  padding: clamp(1.4rem, 2.6vw, 2rem);
  display: grid;
  gap: 0.5rem;
  align-content: start;
  transition: background-color 0.4s var(--ease);
}
.inc-card:hover { background: #eeebe4; }
.inc-card b { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.02em; }
.inc-card p { font-size: 0.9rem; color: var(--paper-muted); }

.honest-note {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding: 1.1rem 1.3rem;
  border: 1px dashed var(--paper-line);
  border-radius: var(--radius-m);
  font-size: 0.9rem;
  color: var(--paper-muted);
  max-width: 70ch;
}
.honest-note span {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--paper-text);
}

/* --- Bande d'appel à l'action --------------------------------------------- */
.cta-band { position: relative; overflow: hidden; isolation: isolate; }
.cta-band::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto -20%;
  height: 160%;
  z-index: -1;
  background: radial-gradient(45% 50% at 50% 50%, rgba(203, 255, 77, 0.12), transparent 70%);
}
.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(2rem, 4.5vw, 3.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(150deg, var(--surface), var(--ink-2));
}
.cta-inner > div { max-width: 40rem; }

/* --- Citation ------------------------------------------------------------- */
.quote-band {
  margin-top: clamp(3rem, 6vw, 5rem);
  padding: clamp(2rem, 5vw, 3.5rem) 0;
  border-top: 1px solid var(--paper-line);
  border-bottom: 1px solid var(--paper-line);
  text-align: center;
}
.quote-band p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.4rem, 3.4vw, 2.4rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--paper-text);
}

/* --- Autres services ------------------------------------------------------ */
.os-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}
.os-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.35s var(--ease), background-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.os-card:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, 0.045); transform: translateY(-2px); }
.os-ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: rgba(203, 255, 77, 0.1);
  color: var(--accent);
}
.os-ico svg { width: 20px; height: 20px; }
.os-card b { display: block; font-size: 0.9rem; font-weight: 500; letter-spacing: -0.015em; }
.os-card small { display: block; font-size: 0.75rem; color: var(--muted-2); line-height: 1.45; margin-top: 2px; }
.os-arrow { margin-left: auto; color: var(--muted-2); }
.os-arrow svg { width: 15px; height: 15px; transition: transform 0.35s var(--ease); }
.os-card:hover .os-arrow svg { transform: translateX(3px); color: var(--text); }

/* --- Contact -------------------------------------------------------------- */
.ico-logo {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 11px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.05);
  padding: 7px;
}
.contact-item--copy { cursor: default; }
.copy-btn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.8125rem;
  color: var(--text);
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.copy-btn svg { width: 14px; height: 14px; }
.copy-btn:hover { background: rgba(255, 255, 255, 0.07); border-color: var(--text); }
.copy-btn.is-done { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.contact-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.25rem;
  margin-top: 2.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.contact-facts b { display: block; font-size: 1rem; font-weight: 600; letter-spacing: -0.02em; }
.contact-facts span { font-size: 0.8125rem; color: var(--muted-2); }

/* --- Pied de page multi-colonnes ------------------------------------------ */
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, auto));
  gap: clamp(2rem, 5vw, 4rem);
}
.footer-col { display: grid; gap: 0.55rem; align-content: start; }
.footer-col h4 {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.footer-col a { font-size: 0.875rem; color: var(--muted); transition: color 0.3s; }
.footer-col a:hover { color: var(--text); }

.steps--wide .step { grid-template-columns: 4rem 1fr; }

/* --- Responsive des nouveaux blocs ---------------------------------------- */
@media (max-width: 1080px) {
  .hub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hub-card--featured { grid-column: span 2; }
  .inc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .os-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .nav-drop { display: none; }
}

@media (max-width: 640px) {
  .hub-grid { grid-template-columns: 1fr; }
  .hub-card--featured { grid-column: span 1; }
  .inc-grid, .os-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; gap: 1.75rem; }
  .cta-inner { flex-direction: column; align-items: stretch; }
  .cta-inner .btn { width: 100%; }
  .copy-btn span { display: none; }
}

/* ==========================================================================
   18. Pages légales
   ========================================================================== */
.page-hero--legal { padding-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.page-hero--legal .container { max-width: 56rem; }
.legal-date {
  margin-top: 1.5rem;
  font-size: 0.8125rem;
  color: var(--muted-2);
}

.prose {
  max-width: 56rem;
  margin-inline: auto;
}
.prose h2 {
  margin-top: clamp(2.25rem, 4vw, 3rem);
  margin-bottom: 0.9rem;
  font-size: clamp(1.15rem, 1.9vw, 1.4rem);
  letter-spacing: -0.025em;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line);
}
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--muted); margin-top: 0.9rem; text-wrap: pretty; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a {
  color: var(--text);
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 100% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  padding-bottom: 1px;
  transition: color 0.3s var(--ease);
}
.prose a:hover { color: var(--accent); }
.prose ul { margin-top: 1rem; display: grid; gap: 0.45rem; }
.prose li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--muted);
}
.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0.85;
}

.legal-dl {
  margin-top: 1.1rem;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
}
.legal-dl > div {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: 1rem;
  padding: 0.85rem 1.15rem;
  background: var(--ink-2);
}
.legal-dl dt { font-size: 0.8125rem; color: var(--muted-2); letter-spacing: 0.01em; }
.legal-dl dd { margin: 0; font-size: 0.9375rem; }

.todo {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border: 1px dashed var(--accent);
  border-radius: 999px;
  background: rgba(203, 255, 77, 0.09);
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 500;
}

.footer-legal { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-legal a { transition: color 0.3s; }
.footer-legal a:hover { color: var(--text); }

@media (max-width: 640px) {
  .legal-dl > div { grid-template-columns: 1fr; gap: 0.2rem; }
}

/* ==========================================================================
   19. Passe de design — texture, profondeur et micro-interactions
   ========================================================================== */

/* --- Grain analogique sur toute la page ---------------------------------- */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --- Barre de défilement -------------------------------------------------- */
* { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.16) transparent; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  background-clip: content-box;
  border: 3px solid transparent;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(203, 255, 77, 0.45); background-clip: content-box; }

/* --- Transition entre les pages ------------------------------------------ */
body {
  opacity: 0;
  animation: pageIn 0.38s var(--ease) 0.02s forwards;
}
body.is-leaving { animation: none; opacity: 0; transition: opacity 0.18s ease; }
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }

/* --- Aurores animées du hero --------------------------------------------- */
.hero-bg::before,
.hero-bg::after {
  content: "";
  position: absolute;
  width: 46vw;
  height: 46vw;
  max-width: 720px;
  max-height: 720px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  will-change: transform;
}
.hero-bg::before {
  top: -12%;
  left: -6%;
  background: radial-gradient(circle, rgba(203, 255, 77, 0.22), transparent 65%);
  animation: drift1 22s ease-in-out infinite alternate;
}
.hero-bg::after {
  top: 6%;
  right: -10%;
  background: radial-gradient(circle, rgba(86, 132, 255, 0.24), transparent 65%);
  animation: drift2 28s ease-in-out infinite alternate;
}
@keyframes drift1 {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(6%, 8%, 0) scale(1.12); }
}
@keyframes drift2 {
  from { transform: translate3d(0, 0, 0) scale(1.08); }
  to { transform: translate3d(-8%, 6%, 0) scale(1); }
}

/* --- Halo qui suit le curseur sur les cartes ------------------------------ */
[data-spot] { position: relative; }
[data-spot]::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(203, 255, 77, 0.65), transparent 60%);
  -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;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
  z-index: 4;
}
[data-spot]:hover::after { opacity: 1; }

/* --- Boutons : reflet au survol ------------------------------------------ */
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 34%, rgba(255, 255, 255, 0.32) 50%, transparent 66%);
  transform: translateX(-130%);
  transition: transform 0.75s var(--ease);
  pointer-events: none;
}
.btn:hover::after { transform: translateX(130%); }
.btn--ghost::after { background: linear-gradient(105deg, transparent 34%, rgba(255, 255, 255, 0.12) 50%, transparent 66%); }
.btn:active { transform: translateY(1px) scale(0.99); }

/* --- Apparition au scroll : ajout d'un flou ------------------------------- */
[data-reveal] {
  filter: blur(5px);
  transition: opacity 0.62s var(--ease), transform 0.62s var(--ease), filter 0.62s var(--ease);
  transition-delay: calc(var(--d, 0) * 55ms);
}
[data-reveal].is-in { filter: blur(0); }

/* --- Trait animé des sur-titres ------------------------------------------ */
.eyebrow::before {
  width: 0;
  transition: width 0.8s var(--ease) 0.15s;
}
[data-reveal].is-in .eyebrow::before,
.is-in.eyebrow::before { width: 26px; }
.section-head .eyebrow::before { width: 26px; }

/* --- Cartes : profondeur et liseré supérieur ------------------------------ */
.hub-card,
.case-visual,
.os-card,
.about-card,
.cta-inner,
.channel {
  position: relative;
}
.hub-card::before,
.cta-inner::before,
.channel::before,
.about-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  pointer-events: none;
}

/* --- Parallaxe douce sur les captures d'études de cas --------------------- */
.case-media img {
  transform: translate3d(0, var(--py, 0px), 0) scale(1.06);
  transition: transform 0.9s var(--ease);
  will-change: transform;
}
.case-visual:hover .case-media img { transform: translate3d(0, var(--py, 0px), 0) scale(1.1); }

.footer { position: relative; overflow: hidden; }

/* --- Page contact : canaux ------------------------------------------------ */
.channels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.9rem, 1.6vw, 1.25rem);
}
.channel {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: clamp(1.5rem, 2.8vw, 2.1rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: linear-gradient(160deg, var(--surface), var(--ink-2));
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.channel:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
  box-shadow: 0 40px 70px -45px rgba(0, 0, 0, 0.95);
}
.channel-logo[src$="tiktok.png"] { background: rgba(255, 255, 255, 0.92); }
.channel-logo {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.05);
  padding: 8px;
}
.channel-body { flex: 1; }
.channel h2 { font-size: clamp(1.2rem, 2vw, 1.5rem); letter-spacing: -0.03em; }
.channel p { margin-top: 0.4rem; color: var(--muted); font-size: 0.9375rem; }
.channel-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.channel-actions .btn { padding: 0.75rem 1.2rem; font-size: 0.875rem; }

.contact-brief {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4rem);
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
}
.brief-list { display: grid; gap: 0.75rem; counter-reset: brief; }
.brief-list li {
  position: relative;
  display: grid;
  gap: 0.2rem;
  padding: 1.1rem 1.3rem 1.1rem 3.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: rgba(255, 255, 255, 0.02);
  counter-increment: brief;
  transition: border-color 0.35s var(--ease), background-color 0.35s var(--ease);
}
.brief-list li:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, 0.04); }
.brief-list li::before {
  content: counter(brief);
  position: absolute;
  left: 1.3rem;
  top: 1.05rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--accent);
}
.brief-list b { font-weight: 500; letter-spacing: -0.015em; }
.brief-list span { font-size: 0.875rem; color: var(--muted-2); }

@media (max-width: 860px) {
  .channels { grid-template-columns: 1fr; }
  .contact-brief { grid-template-columns: 1fr; }
}

/* --- Préférences de mouvement -------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  body { opacity: 1; animation: none; }
  body.is-leaving { opacity: 1; }
  .hero-bg::before, .hero-bg::after { animation: none; }
  [data-reveal] { filter: none; }
  .case-media img { transform: scale(1.02); }
  .eyebrow::before { width: 26px; transition: none; }
}

/* Chapeau introductif des pages légales */
.prose-intro {
  padding: 1.25rem 1.4rem;
  margin-bottom: 2rem;
  border-left: 2px solid var(--accent);
  border-radius: 0 var(--radius-m) var(--radius-m) 0;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text) !important;
}

/* ==========================================================================
   20. Finitions mobile
   ========================================================================== */
@media (max-width: 860px) {
  /* Zones tactiles : 44 px minimum partout où l'on peut appuyer */
  .link-arrow {
    min-height: 44px;
    align-items: center;
  }
  .copy-btn {
    min-height: 44px;
    min-width: 44px;
    justify-content: center;
    padding: 0.7rem 1rem;
  }
  .chip { padding: 0.5rem 0.85rem; }

  /* Respiration : les cartes et les blocs se resserrent un peu moins */
  .case-foot { flex-direction: column; align-items: flex-start; gap: 0.9rem; }
  .case-foot .link-arrow + .link-arrow { margin-top: -0.4rem; }
  .contact-facts { gap: 1rem; }
  .channel-actions { width: 100%; }
  .channel-actions .btn { flex: 1; }
}

@media (max-width: 560px) {
  /* Titres : on évite les lignes trop courtes et les mots coupés */
  .display, .h2 { hyphens: none; }
  .page-hero { padding-top: clamp(6rem, 22vw, 8rem); }
  .section-head { margin-bottom: 2rem; }
  .quote-band p { font-size: clamp(1.25rem, 6vw, 1.6rem); }
  .steps--wide .step { grid-template-columns: 2.5rem 1fr; gap: 0.9rem; }
  .step { grid-template-columns: 2.5rem 1fr; gap: 0.9rem; }
  .brief-list li { padding-left: 3rem; }
  .inc-card { padding: 1.3rem; }
  .channel { padding: 1.4rem; }
  .cta-inner { padding: 1.6rem; }
}

/* Sous-titre de groupe dans « ce qui est inclus » */
.inc-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: clamp(2.25rem, 4vw, 3rem) 0 1.1rem;
  font-size: clamp(1.05rem, 1.9vw, 1.3rem);
  letter-spacing: -0.025em;
}
.inc-label:first-of-type { margin-top: 0; }
.inc-label span {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--accent-dim);
}

/* ==========================================================================
   21. Vitrine interactive des services
   ========================================================================== */
.sc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(0, 0.72fr);
  gap: clamp(1.25rem, 2.4vw, 2rem);
  align-items: start;
}
.sc-left { min-width: 0; display: grid; gap: 0.9rem; }
.sc-stage {
  position: relative;
  aspect-ratio: 1440 / 1000;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  overflow: hidden;
  background: var(--ink-2);
  box-shadow: 0 50px 90px -55px rgba(0, 0, 0, 0.95);
}
.sc-shot {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.015);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease), visibility 0.55s;
}
.sc-shot.is-active { opacity: 1; visibility: visible; transform: none; }
.sc-shot img { width: 100%; height: 100%; object-fit: cover; }

.sc-sheet {
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: clamp(1.25rem, 2.3vw, 1.85rem);
  background: linear-gradient(160deg, var(--surface), var(--ink-2));
  display: grid;
  gap: 1rem;
  align-content: start;
}
.sc-sheet h2 { letter-spacing: -0.03em; }
.sc-sheet > p { color: var(--muted); font-size: 0.9375rem; }
.sc-list { display: grid; gap: 0.7rem; }
.sc-list li { position: relative; display: grid; gap: 1px; padding-left: 1.15rem; }
.sc-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0.9;
}
.sc-list b { font-size: 0.9rem; font-weight: 500; letter-spacing: -0.01em; }
.sc-list span { font-size: 0.8125rem; color: var(--muted-2); line-height: 1.45; }
.sc-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.sc-sheet .btn { width: 100%; }

.sc-switch {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}
.sc-tab {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.6rem;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.35s var(--ease), background-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.sc-tab:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.sc-tab[aria-pressed="true"] { border-color: var(--accent); background: rgba(203, 255, 77, 0.07); }
.sc-thumb {
  flex: none;
  width: 92px;
  aspect-ratio: 16 / 10;
  border-radius: 9px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.sc-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: 26% 42%; }
.sc-lab b { display: block; font-size: 0.875rem; font-weight: 500; letter-spacing: -0.015em; }
.sc-lab small { font-size: 0.75rem; color: var(--muted-2); }
.sc-note { font-size: 0.75rem; color: var(--muted-2); }

@media (max-width: 1080px) {
  .sc-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .sc-switch { grid-template-columns: 1fr; }
  .sc-thumb { width: 108px; }
}

/* Vitrine sur mobile : on zoome sur la version téléphone de la maquette */
@media (max-width: 760px) {
  .sc-stage { aspect-ratio: 4 / 4.6; }
  .sc-shot img { object-position: 84% 38%; }
  .sc-note { text-align: center; }
}

/* Réalisations compactes sur les pages à vitrine */
.cases--mini {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}
.case-mini {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  overflow: hidden;
  background: linear-gradient(160deg, var(--surface), var(--ink-2));
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.case-mini:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: 0 40px 70px -45px rgba(0, 0, 0, 0.95); }
.case-mini .case-media { aspect-ratio: 16 / 10; border-bottom: 1px solid var(--line); }
.case-mini .case-media img { transform: none; }
.case-mini-body { padding: clamp(1.1rem, 2vw, 1.5rem); display: grid; gap: 0.6rem; align-content: start; }
.case-mini-body h3 { font-size: 1.05rem; letter-spacing: -0.025em; }
.case-mini-body p { font-size: 0.875rem; color: var(--muted); }
.case-mini .case-tags { margin: 0; }
.case-mini .case-foot { margin-top: 0.4rem; padding-top: 0.9rem; gap: 0.8rem; }
.case-mini .case-note { font-size: 0.75rem; }
.case-mini .cover-title { font-size: clamp(1rem, 1.6vw, 1.2rem); }
.case-mini .case-cover { min-height: 0; aspect-ratio: 16 / 10; padding: 1.1rem; }
.case-mini .cover-map { gap: 0.4rem; }
.case-mini .cover-node { padding: 0.45rem 0.55rem; }
.case-mini .cover-node b { font-size: 0.7rem; }
.case-mini .cover-node span { font-size: 0.62rem; }
.case-mini .cover-foot { font-size: 0.65rem; }
.case-mini .case-gallery { display: none; }

/* 22. Présentation plus calme : deux services mis en avant, grille régulière. */
@media (min-width:1081px) {
  .hub-grid { grid-template-columns:repeat(6,minmax(0,1fr)); }
  .hub-card { grid-column:span 2; }
  .hub-card--featured { grid-column:span 3; }
  .hub-card:nth-last-child(-n+2) { grid-column:span 3; }
}
.hero-bg::before, .hero-bg::after { animation:none; will-change:auto; }
.dot { animation:none; }
.inc-label span { color:var(--paper-text); }
.service-details .inc-label span { color:var(--accent); }
.case-media { background:var(--ink-2); }
/* Sept services : quatre liens à gauche, trois à droite. */
.footer-service-links {
  display:grid;
  grid-template-rows:repeat(4,auto);
  grid-auto-flow:column;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:0.55rem 1.5rem;
  align-items:start;
}
.footer-cols { min-width:0; gap:clamp(1.5rem,3vw,3rem); }
.footer-services { min-width:0; }
.footer-service-links a { overflow-wrap:anywhere; }
@media (max-width:1080px) {
  .footer-cols { width:100%; }
  .footer-services { grid-column:1 / -1; }
}
@media (max-width:360px) {
  .cases--mini { grid-template-columns:minmax(0,1fr); }
  .btn { white-space:normal; text-align:center; line-height:1.3; }
}
