/* =============================================================
   LUCIEN LECLERC — Feuille de style unique du site
   Sombre par defaut, bascule claire. Aucune dependance externe.
   Ordre : tokens, reset, utilitaires, composants, blocs, responsive.
   ============================================================= */

/* ---------- 1. TOKENS ---------- */
:root {
  /* Fonds : du plus profond au plus clair */
  --bg:        #08090C;
  --bg-2:      #0E1015;
  --bg-3:      #141822;
  --bg-4:      #1B2030;

  /* Texte */
  --ink:       #F5F6F8;
  --ink-2:     #A2A8B6;
  --ink-3:     #71798A;

  /* Accent principal : orange conquerant */
  --accent:    #2FE3C2;
  --accent-2:  #5AF0D6;
  --accent-in: #0A0B0D;          /* texte pose SUR l'accent */
  --accent-soft: rgba(47,227,194,.12);
  --accent-line: rgba(47,227,194,.35);

  /* Accent secondaire : turquoise, pour les signaux positifs */
  --cyan:      #3DDCB4;
  --cyan-soft: rgba(61,220,180,.12);

  /* Traits et voiles */
  --line:      rgba(255,255,255,.09);
  --line-2:    rgba(255,255,255,.16);
  --veil:      rgba(8,9,12,.82);
  --shadow:    0 24px 60px -24px rgba(0,0,0,.85);

  /* Typographie */
  --display: "Segoe UI Variable Display", "Segoe UI", -apple-system, BlinkMacSystemFont,
             "Helvetica Neue", Inter, Arial, sans-serif;
  --body:    "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont,
             "Helvetica Neue", Inter, Arial, sans-serif;
  --mono:    "Cascadia Mono", Consolas, "SF Mono", ui-monospace, "Roboto Mono", monospace;

  /* Rythme */
  --pad:  clamp(1.15rem, 4.2vw, 3rem);
  --max:  75rem;
  --max-narrow: 46rem;
  --r:    14px;      /* rayon standard */
  --r-lg: 22px;
  --sect: clamp(4rem, 9vw, 7.5rem);   /* respiration verticale des sections */

  color-scheme: dark;
}

/* ---------- MODE CLAIR ---------- */
[data-theme="clair"] {
  --bg:        #FBFAF8;
  --bg-2:      #FFFFFF;
  --bg-3:      #F2F1ED;
  --bg-4:      #E9E7E1;
  --ink:       #0F1116;
  --ink-2:     #4C525E;
  --ink-3:     #6C7380;
  --accent:    #0A7A64;
  --accent-2:  #0E8F76;
  --accent-in: #FFFFFF;
  --accent-soft: rgba(10,122,100,.09);
  --accent-line: rgba(10,122,100,.30);
  --cyan:      #0E9E7C;
  --cyan-soft: rgba(14,158,124,.10);
  --line:      rgba(15,17,22,.11);
  --line-2:    rgba(15,17,22,.20);
  --veil:      rgba(251,250,248,.85);
  --shadow:    0 22px 50px -26px rgba(15,17,22,.35);
  color-scheme: light;
}

/* ---------- 2. RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(1rem, .96rem + .18vw, 1.075rem);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;                 /* filet de securite contre tout debordement */
}
/* min-width/min-height 0 : dans une grille ou un flex, la taille minimale
   automatique d'une image vaut sa hauteur intrinseque et ecrase max-height,
   ce qui la fait deborder de toute tuile a ratio fixe. */
img, svg, video { display: block; max-width: 100%; min-width: 0; min-height: 0; }
/* Un SVG sans width/height s'etale a toute la largeur disponible. On lui donne
   donc une taille de texte par defaut ; les blocs qui en veulent un plus grand
   (boutons, pastilles, logo) la redefinissent explicitement plus bas. */
svg { width: 1.1em; height: 1.1em; flex: none; }
h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--accent-in); }
hr { border: none; border-top: 1px solid var(--line); margin: 0; }

/* La transition de theme ne doit pas jouer au premier rendu :
   la classe est posee par le script une fois la page peinte. */
.theme-anim body, .theme-anim .surface, .theme-anim .card, .theme-anim .nav {
  transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}

/* ---------- 3. UTILITAIRES ---------- */
.shell { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.narrow { max-width: var(--max-narrow); }
.sect { padding-block: var(--sect); position: relative; }
.sect-sm { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.center { text-align: center; }
.mono { font-family: var(--mono); }
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--accent); color: var(--accent-in);
  padding: .8rem 1.2rem; border-radius: 0 0 var(--r) 0; font-weight: 600;
}
.skip:focus { left: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Etiquette de section : petit filet + libelle mono */
.eyebrow {
  display: inline-flex; align-items: center; gap: .65rem;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 1.15rem;
}
.eyebrow::before {
  content: ""; width: 1.9rem; height: 1px; background: var(--accent); opacity: .8;
}

/* Titres */
.h1 {
  font-family: var(--display);
  font-size: clamp(2.35rem, 1.5rem + 3.4vw, 4rem);
  line-height: 1.04; letter-spacing: -.035em; font-weight: 800;
  text-wrap: balance;
}
/* Les pages interieures n'ont pas de colonne visuelle a cote du titre :
   il peut donc y respirer davantage. */
.page-head .h1 { font-size: clamp(2.4rem, 1.4rem + 4.4vw, 4.6rem); }
.h2 {
  font-family: var(--display);
  font-size: clamp(1.85rem, 1.2rem + 2.6vw, 3.15rem);
  line-height: 1.08; letter-spacing: -.028em; font-weight: 800;
  text-wrap: balance;
}
.h3 {
  font-family: var(--display);
  font-size: clamp(1.2rem, 1.05rem + .7vw, 1.5rem);
  line-height: 1.22; letter-spacing: -.018em; font-weight: 700;
}
.h4 {
  font-family: var(--display);
  font-size: 1.03rem; line-height: 1.3; letter-spacing: -.01em; font-weight: 700;
}
.lead {
  font-size: clamp(1.06rem, 1rem + .45vw, 1.28rem);
  line-height: 1.55; color: var(--ink-2); text-wrap: pretty;
}
.muted { color: var(--ink-2); }
.tiny { font-size: .87rem; line-height: 1.5; color: var(--ink-3); }
.accent-txt { color: var(--accent); }
.stack > * + * { margin-top: 1rem; }
.stack-sm > * + * { margin-top: .55rem; }

/* Le mot mis en avant : couleur accent + trait plein trace a l'apparition.
   Un surlignage translucide derriere le texte vire au brun sale sur fond
   sombre, et un z-index negatif le fait disparaitre selon le contexte
   d'empilement du parent : le soulignement est plus sur et plus net. */
.mark { position: relative; display: inline-block; color: var(--accent); }
.mark::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -.02em;
  height: .1em; border-radius: 1em; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform .8s cubic-bezier(.22,1,.36,1) .3s;
}
.is-in .mark::after { transform: scaleX(1); }

/* ---------- 4. BOUTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .92rem 1.5rem; border-radius: 999px;
  font-weight: 650; font-size: .97rem; letter-spacing: -.005em;
  border: 1px solid transparent; cursor: pointer; text-align: center;
  transition: transform .22s cubic-bezier(.22,1,.36,1), box-shadow .22s ease,
              background-color .22s ease, border-color .22s ease, color .22s ease;
}
.btn svg { width: 1.05em; height: 1.05em; flex: none; }
.btn-1 { background: var(--accent); color: var(--accent-in); box-shadow: 0 12px 30px -14px rgba(47,227,194,.75); }
.btn-1:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -14px rgba(47,227,194,.9); }
.btn-2 { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn-2:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-3 { padding: .55rem 0; color: var(--accent); font-weight: 650; }
.btn-3 svg { transition: transform .25s ease; }
.btn-3:hover svg { transform: translateX(4px); }
.btn-lg { padding: 1.05rem 1.9rem; font-size: 1.03rem; }

/* ---------- 5. SURFACES ---------- */
.surface {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.4rem, 2.6vw, 2rem);
  position: relative;
  overflow: hidden;
  transition: transform .3s cubic-bezier(.22,1,.36,1), border-color .3s ease, background-color .3s ease;
}
/* Halo qui suit le curseur : les coordonnees sont posees par le script. */
.card-hover::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(18rem 18rem at var(--mx, 50%) var(--my, 0%), var(--accent-soft), transparent 70%);
  opacity: 0; transition: opacity .35s ease;
}
.card-hover:hover { transform: translateY(-4px); border-color: var(--line-2); }
.card-hover:hover::before { opacity: 1; }

/* ---------- 6. NAVIGATION ---------- */
.nav {
  position: sticky; top: 0; z-index: 90;
  background: var(--veil);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background-color .3s ease;
}
.nav.is-stuck { border-bottom-color: var(--line); background: var(--bg); }
.nav-inner {
  display: flex; align-items: center; gap: 1.2rem;
  height: 4.6rem;
  transition: height .3s cubic-bezier(.22,1,.36,1);
}
.nav.is-stuck .nav-inner { height: 3.9rem; }

.logo { display: inline-flex; align-items: center; gap: .68rem; flex: none; }
.logo-mark {
  width: 2.3rem; height: 2.05rem; flex: none;
  display: grid; place-items: center;
  /* La couleur est repose ici explicitement : le SVG peint en currentColor,
     et une variable heritee ne suit pas toujours dans un scope inverse. */
  color: var(--accent);
}
.logo-mark svg { width: 100%; height: auto; display: block; fill: currentColor; }

/* Signature typographique, reprise du wordmark : le petit L sert de separateur. */
.wordmark {
  font-family: var(--display); font-weight: 900; line-height: 1;
  font-size: clamp(1.5rem, 4.6vw, 2.5rem);
  letter-spacing: -.035em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 .3rem;
}
.wordmark .wm-tick {
  font-size: .4em; vertical-align: baseline;
  position: relative; top: .08em; margin: 0 .05em;
}
.logo-txt { display: flex; flex-direction: column; line-height: 1.05; }
.logo-name { font-family: var(--display); font-weight: 750; font-size: 1.01rem; letter-spacing: -.02em; }
.logo-sub { font-family: var(--mono); font-size: .61rem; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3); }

.nav-links { display: flex; align-items: center; gap: .2rem; margin-left: auto; }
.nav-links a {
  padding: .5rem .78rem; border-radius: 999px; font-size: .92rem; font-weight: 550;
  color: var(--ink-2); transition: color .2s ease, background-color .2s ease;
}
.nav-links a:hover { color: var(--ink); background: var(--bg-3); }
.nav-links a[aria-current="page"] { color: var(--ink); background: var(--bg-3); }
.nav-actions { display: flex; align-items: center; gap: .55rem; flex: none; }
.nav-cta { display: inline-flex; }

.icon-btn {
  width: 2.35rem; height: 2.35rem; border-radius: 999px; flex: none;
  border: 1px solid var(--line); display: grid; place-items: center;
  color: var(--ink-2);
  transition: color .2s ease, border-color .2s ease, transform .2s ease;
}
.icon-btn:hover { color: var(--accent); border-color: var(--accent-line); transform: translateY(-1px); }
.icon-btn svg { width: 1.05rem; height: 1.05rem; }
.theme-btn .moon { display: none; }
[data-theme="clair"] .theme-btn .moon { display: block; }
[data-theme="clair"] .theme-btn .sun { display: none; }

.burger { display: none; }

/* Panneau mobile */
.drawer {
  position: fixed; inset: 0; z-index: 95;
  background: var(--bg);
  padding: 1.2rem var(--pad) 2.4rem;
  display: flex; flex-direction: column;
  transform: translateY(-100%);
  transition: transform .42s cubic-bezier(.22,1,.36,1);
  overflow-y: auto;
  visibility: hidden;
}
.drawer.is-open { transform: translateY(0); visibility: visible; }
.drawer-top { display: flex; align-items: center; justify-content: space-between; height: 3.4rem; }
.drawer-links { display: flex; flex-direction: column; gap: .2rem; margin-top: 1.6rem; }
.drawer-links a {
  font-family: var(--display); font-size: 1.75rem; font-weight: 750; letter-spacing: -.03em;
  padding: .5rem 0; border-bottom: 1px solid var(--line);
}
.drawer-links a:hover, .drawer-links a[aria-current="page"] { color: var(--accent); }
.drawer-foot { margin-top: auto; padding-top: 2rem; display: grid; gap: .8rem; }

/* ---------- 7. HERO ---------- */
.hero { position: relative; padding-block: clamp(3.2rem, 7vw, 6rem) clamp(3.5rem, 8vw, 6.5rem); overflow: hidden; }
/* Nappe lumineuse : suit le curseur sur grand ecran, statique sinon. */
.hero-glow {
  position: absolute; inset: -30% -10% auto -10%; height: 130%;
  background:
    radial-gradient(38rem 30rem at var(--gx, 22%) var(--gy, 18%), rgba(47,227,194,.20), transparent 62%),
    radial-gradient(32rem 26rem at 82% 8%, rgba(61,220,180,.10), transparent 65%);
  pointer-events: none; z-index: 0;
}
[data-theme="clair"] .hero-glow {
  background:
    radial-gradient(38rem 30rem at var(--gx, 22%) var(--gy, 18%), rgba(10,122,100,.13), transparent 62%),
    radial-gradient(32rem 26rem at 82% 8%, rgba(14,158,124,.09), transparent 65%);
}
.hero-grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 4.5rem 4.5rem;
  -webkit-mask-image: radial-gradient(60rem 40rem at 50% 0%, #000 10%, transparent 75%);
  mask-image: radial-gradient(60rem 40rem at 50% 0%, #000 10%, transparent 75%);
  opacity: .6;
}
.hero .shell { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .42rem .95rem .42rem .5rem; border-radius: 999px;
  background: var(--bg-3); border: 1px solid var(--line);
  font-size: .84rem; color: var(--ink-2); margin-bottom: 1.6rem;
}
.hero-badge b { color: var(--ink); font-weight: 650; }
.pin {
  display: inline-grid; place-items: center; width: 1.35rem; height: 1.35rem; border-radius: 999px;
  background: var(--cyan-soft); color: var(--cyan); flex: none;
}
.pin svg { width: .8rem; height: .8rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }
.hero-note { margin-top: 1.6rem; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.hero-split { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }

/* ---------- MAQUETTE DE NAVIGATEUR (visuel du hero) ----------
   Entierement en CSS : aucune image a charger, net a toutes les resolutions,
   et le contenu simule reste sobre pour ne pas concurrencer le titre. */
.mockup { position: relative; }
.mockup-win {
  border-radius: 14px; overflow: hidden; background: var(--bg-2);
  border: 1px solid var(--line-2); box-shadow: var(--shadow);
  transform: perspective(1400px) rotateY(-9deg) rotateX(3deg);
  transition: transform .6s cubic-bezier(.22,1,.36,1);
}
.mockup:hover .mockup-win { transform: perspective(1400px) rotateY(-4deg) rotateX(1deg); }
.mockup-bar {
  display: flex; align-items: center; gap: .5rem; padding: .6rem .8rem;
  background: var(--bg-3); border-bottom: 1px solid var(--line);
}
.mockup-dot { width: .55rem; height: .55rem; border-radius: 999px; background: var(--line-2); flex: none; }
.mockup-url {
  flex: 1; margin-left: .4rem; padding: .28rem .7rem; border-radius: 999px;
  background: var(--bg); border: 1px solid var(--line);
  font-family: var(--mono); font-size: .62rem; color: var(--ink-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mockup-body { padding: 1.1rem; display: grid; gap: .7rem; }
.mockup-hero { height: 4.6rem; border-radius: 9px; background: linear-gradient(120deg, var(--accent), var(--accent-2)); opacity: .9; }
.mockup-line { height: .5rem; border-radius: 999px; background: var(--line-2); }
.mockup-line.w70 { width: 70%; }
.mockup-line.w45 { width: 45%; }
.mockup-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: .55rem; margin-top: .2rem; }
.mockup-tile { aspect-ratio: 1 / 1; min-height: 0; min-width: 0; border-radius: 8px; background: var(--bg-3); border: 1px solid var(--line); }
.mockup-tile:first-child { background: var(--accent-soft); border-color: var(--accent-line); }

/* Petit ecran de telephone pose sur le coin, pour dire « pense mobile » sans le prouver par un texte. */
.mockup-phone {
  position: absolute; right: -.6rem; bottom: -1.6rem; width: 27%;
  border-radius: 12px; overflow: hidden; background: var(--bg-2);
  border: 1px solid var(--line-2); box-shadow: var(--shadow);
  padding: .5rem; display: grid; gap: .38rem;
}
.mockup-phone .mockup-hero { height: 2.1rem; border-radius: 6px; }
.mockup-phone .mockup-line { height: .34rem; }
@media (max-width: 880px) {
  .hero-split { grid-template-columns: minmax(0, 1fr); }
  .mockup { max-width: 30rem; margin-top: .5rem; }
  .mockup-win { transform: none; }
}

/* Bandeau defilant de competences */
.ticker {
  border-block: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden; padding-block: .95rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-row { display: flex; width: max-content; animation: slide 40s linear infinite; }
.ticker:hover .ticker-row { animation-play-state: paused; }
.ticker-row span {
  display: inline-flex; align-items: center; gap: .8rem; padding-inline: 1.4rem;
  font-family: var(--mono); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-3); white-space: nowrap;
}
.ticker-row span::after { content: ""; width: 5px; height: 5px; border-radius: 999px; background: var(--accent); opacity: .6; flex: none; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- 8. GRILLES ---------- */
.grid { display: grid; gap: clamp(.9rem, 1.8vw, 1.35rem); }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.split-wide { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.split-top { align-items: start; }
.head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }

/* ---------- 9. CHIFFRES ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.stat { background: var(--bg-2); padding: clamp(1.3rem, 2.6vw, 1.9rem); }
.stat-n {
  font-family: var(--display); font-weight: 800; letter-spacing: -.04em;
  font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3rem); line-height: 1;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-l { margin-top: .6rem; font-size: .89rem; color: var(--ink-2); line-height: 1.4; }

/* ---------- 10. SERVICES ---------- */
.svc { display: flex; flex-direction: column; gap: .85rem; }
.svc-ico {
  width: 2.9rem; height: 2.9rem; border-radius: 12px; flex: none;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
  border: 1px solid var(--accent-line);
}
.svc-ico svg { width: 1.35rem; height: 1.35rem; }
.svc ul { display: grid; gap: .42rem; margin-top: .3rem; }
.svc li, .ticks li {
  position: relative; padding-left: 1.5rem; font-size: .93rem; color: var(--ink-2); line-height: 1.5;
}
.svc li::before, .ticks li::before {
  content: ""; position: absolute; left: 0; top: .42em;
  width: .7rem; height: .4rem; border-left: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan);
  transform: rotate(-45deg);
}
.ticks { display: grid; gap: .6rem; }

/* ---------- 11. ETAPES ---------- */
.steps { counter-reset: s; display: grid; gap: clamp(1.4rem, 2.6vw, 2rem); }
.step { position: relative; padding-left: 4.2rem; }
.step::before {
  counter-increment: s; content: "0" counter(s);
  position: absolute; left: 0; top: -.2rem;
  font-family: var(--mono); font-size: 1.5rem; font-weight: 600;
  color: var(--accent); opacity: .55;
}
.step::after {
  content: ""; position: absolute; left: 1.4rem; top: 2.2rem; bottom: -2rem;
  width: 1px; background: linear-gradient(var(--line-2), transparent);
}
.step:last-child::after { display: none; }

/* ---------- 12. REALISATIONS ---------- */
.work { display: grid; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.work-row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(1.2rem, 3vw, 3rem); align-items: center;
  padding: clamp(1.5rem, 3.2vw, 2.6rem);
  background: var(--bg-2); border-bottom: 1px solid var(--line);
  transition: background-color .3s ease;
}
.work-row:last-child { border-bottom: none; }
.work-row:hover { background: var(--bg-3); }
.work-visual {
  aspect-ratio: 16 / 10; border-radius: var(--r); overflow: hidden;
  min-height: 0; min-width: 0;             /* cf. note en tete de fichier */
  border: 1px solid var(--line);
  display: grid; place-items: center; position: relative;
  background: var(--bg-3);
}
.work-visual img { width: 100%; height: 100%; min-height: 0; object-fit: cover; display: block; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .9rem; }
.tag {
  font-family: var(--mono); font-size: .71rem; letter-spacing: .07em; text-transform: uppercase;
  padding: .3rem .62rem; border-radius: 999px;
  border: 1px solid var(--line); color: var(--ink-3);
}
.tag-live { border-color: var(--cyan); color: var(--cyan); }
.tag-live::before { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 999px; background: var(--cyan); margin-right: .4rem; vertical-align: middle; animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }

/* ---------- 13. BLOC AIDE (le differenciateur) ---------- */
.aide {
  position: relative; overflow: hidden;
  border-radius: var(--r-lg); border: 1px solid var(--accent-line);
  background:
    radial-gradient(40rem 24rem at 12% 0%, var(--accent-soft), transparent 65%),
    var(--bg-2);
  padding: clamp(1.8rem, 4vw, 3.4rem);
}
.aide-big {
  font-family: var(--display); font-weight: 800; letter-spacing: -.045em; line-height: .88;
  font-size: clamp(4rem, 2rem + 10vw, 8.5rem);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.aide-mini { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-top: 1.4rem; }
.aide-mini > div { background: var(--bg-3); padding: .8rem 1.05rem; display: flex; justify-content: space-between; gap: 1rem; font-size: .89rem; }
.aide-mini dt { color: var(--ink-2); }
.aide-mini dd { font-weight: 650; text-align: right; }

/* ---------- 14. FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem;
  padding: 1.35rem 0; cursor: pointer; list-style: none;
  font-family: var(--display); font-weight: 650; font-size: clamp(1rem, .97rem + .3vw, 1.16rem);
  letter-spacing: -.015em; transition: color .2s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq summary::after {
  content: ""; flex: none; width: 1.15rem; height: 1.15rem; margin-top: .2rem;
  background: currentColor; opacity: .55;
  -webkit-mask: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
  mask: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
  transition: transform .3s cubic-bezier(.22,1,.36,1);
}
.faq details[open] summary { color: var(--accent); }
.faq details[open] summary::after { transform: rotate(135deg); }
.faq-body { padding-bottom: 1.5rem; max-width: 52rem; color: var(--ink-2); }
.faq-body p + p { margin-top: .8rem; }

/* ---------- 15. FORMULAIRE ---------- */
.field { display: grid; gap: .45rem; }
.field label { font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.field input, .field textarea, .field select {
  width: 100%; padding: .82rem 1rem; border-radius: 11px;
  background: var(--bg-3); border: 1px solid var(--line); color: var(--ink);
  transition: border-color .2s ease, background-color .2s ease;
}
.field textarea { min-height: 8.5rem; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent); background: var(--bg-2);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.form-grid { display: grid; gap: 1rem; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-note { font-size: .84rem; color: var(--ink-3); line-height: 1.5; }
.form-msg { padding: .95rem 1.1rem; border-radius: 11px; font-size: .92rem; display: none; }
.form-msg.ok { display: block; background: var(--cyan-soft); border: 1px solid var(--cyan); color: var(--cyan); }
.form-msg.ko { display: block; background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent); }

/* ---------- 16. APPEL FINAL ---------- */
.cta {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--accent-in);
  padding: clamp(2.2rem, 5vw, 4rem);
  text-align: center;
}
.cta .h2 { color: var(--accent-in); }
.cta p { color: rgba(10,11,13,.75); }
[data-theme="clair"] .cta p { color: rgba(255,255,255,.9); }
.cta .btn-1 { background: var(--accent-in); color: var(--accent); box-shadow: 0 14px 34px -16px rgba(0,0,0,.6); }
.cta .btn-2 { border-color: rgba(10,11,13,.3); color: var(--accent-in); }
[data-theme="clair"] .cta .btn-2 { border-color: rgba(255,255,255,.5); }
.cta .btn-2:hover { border-color: var(--accent-in); background: rgba(10,11,13,.08); color: var(--accent-in); }
.cta-actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: 2rem; }

/* ---------- 17. PIED DE PAGE ---------- */
.foot { border-top: 1px solid var(--line); background: var(--bg-2); }
.foot-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 2.5rem; padding-block: clamp(2.6rem, 5vw, 4rem); }
.foot h4 { font-family: var(--mono); font-size: .73rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; margin-bottom: 1rem; }
.foot-links { display: grid; gap: .55rem; }
.foot-links a { font-size: .93rem; color: var(--ink-2); transition: color .2s ease; }
.foot-links a:hover { color: var(--accent); }
.foot-bottom {
  border-top: 1px solid var(--line); padding-block: 1.5rem;
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center;
  font-size: .85rem; color: var(--ink-3);
}

/* ---------- 18. FIL D'ARIANE + EN-TETE DE PAGE ---------- */
.crumb { display: flex; gap: .5rem; align-items: center; font-size: .84rem; color: var(--ink-3); padding-top: 2rem; flex-wrap: wrap; }
.crumb a:hover { color: var(--accent); }
.crumb span { opacity: .5; }
/* overflow:hidden obligatoire : la nappe .hero-glow deborde volontairement de 10%
   de chaque cote, il faut donc que son parent la recadre, sinon elle elargit
   le document entier (scrollWidth > clientWidth sur toutes les pages interieures). */
.page-head { padding-block: clamp(2.2rem, 5vw, 3.8rem) clamp(1.8rem, 4vw, 3rem); position: relative; overflow: hidden; }

/* ---------- 19. APPARITION AU SCROLL ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .75s cubic-bezier(.22,1,.36,1), transform .75s cubic-bezier(.22,1,.36,1); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }
.reveal-d4 { transition-delay: .32s; }

/* ---------- 20. RESPONSIVE ---------- */
@media (max-width: 1080px) {
  .nav-cta { display: none; }
}
@media (max-width: 1000px) {
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
}
@media (max-width: 880px) {
  .nav-links { display: none; }
  .burger { display: grid; }
  .nav-cta { display: none; }
  .g-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .split-wide { grid-template-columns: minmax(0, 1fr); gap: 2.2rem; }
  .split-rev > *:first-child { order: 2; }     /* la colonne visuelle repasse dessous */
  .work-row { grid-template-columns: minmax(0, 1fr); }
  .work-row .work-visual { order: -1; }
}
@media (max-width: 640px) {
  .g-2, .g-3, .g-4 { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-top { grid-template-columns: minmax(0, 1fr); }
  .hero-actions .btn, .cta-actions .btn { width: 100%; }
  .drawer-links a { font-size: 1.5rem; }
  .step { padding-left: 3.4rem; }
}
@media (max-width: 400px) {
  .stats { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 21. PREFERENCES ET IMPRESSION ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .mark::after { transform: scaleX(1); }
}
@media print {
  .nav, .drawer, .ticker, .cta, .hero-glow, .hero-grid { display: none !important; }
  body { background: #fff; color: #000; }
  .card, .surface { border: 1px solid #ccc; }
}

/* ---------- BLOC VIDEO ---------- */
/* Video verticale (640x1138) : on borne la largeur, sinon elle mange la colonne.
   width/height poses sur la balise elle-meme, pas via un conteneur en
   aspect-ratio, qui laisse deborder le media. */
.video-block { margin: 1.4rem 0 0; max-width: 300px; }
.video-block video {
  width: 100%; height: auto; display: block;
  border-radius: 14px; background: #000;
  border: 1px solid var(--line);
}
.video-block figcaption { margin-top: .6rem; color: var(--ink-3); }
