/* lburdier.fr v3 : portfolio simplifié, minimaliste.
   Fond noir, coins carrés, contours fins. Un élément actif est entouré
   d'un second contour décalé (comme une miniature sélectionnée). */

:root {
  --bg: #0a0a0a;
  --bg-2: #141414;
  --ink: #f4f4f2;
  --ink-2: rgba(244, 244, 242, 0.6);
  --ink-3: rgba(244, 244, 242, 0.34);
  --line: rgba(244, 244, 242, 0.14);
  --edge: rgba(244, 244, 242, 0.3);
  --light: #f4f4f2;
  --on-light: #0a0a0a;
  --gut: 20px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Archivo", "Instrument Sans", system-ui, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: #2b2b2b var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/1.45 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border-radius: 0; }
::selection { background: var(--light); color: var(--on-light); }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }

.skip {
  position: fixed; left: 12px; top: 12px; z-index: 100;
  padding: 8px 14px; background: var(--light); color: var(--on-light);
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* ------------------------------------------------------------------ briques */
.ico { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: square; stroke-linejoin: miter; }

/* Bouton carré : contour fin, ou plein blanc pour l'action principale */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 44px; padding: 0 18px;
  border: 0;
  font: 500 14px/1 var(--sans); letter-spacing: 0.01em;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.btn .ico { transition: transform 0.3s var(--ease); }
.btn:hover .ico { transform: translateX(3px); }
.btn--light:hover .ico, .card-w:hover .card-hover .ico { transform: none; animation: arrowLoop 0.6s var(--ease); }
.card-w:hover .card-hover [data-roll] .roll-in { transform: translateY(-1.15em); }
.btn--light { background: var(--light); color: var(--on-light); }
.btn--light:hover { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.btn--ghost { background: rgba(10, 10, 10, 0.28); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: var(--ink); box-shadow: inset 0 0 0 1px var(--edge); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.btn--back:hover .ico { transform: translateX(-3px); }
.btn--sm { height: 36px; padding: 0 14px; font-size: 13px; }
.btn--lg { height: 52px; padding: 0 22px; font-size: 15px; }

.icon-btn {
  display: grid; place-items: center;
  width: 44px; height: 44px; padding: 0;
  border: 0; background: rgba(10, 10, 10, 0.28); color: #fff;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  transition: background 0.2s, color 0.2s;
}
.icon-btn:hover { background: var(--light); color: var(--on-light); }
.icon-btn--plain { width: 36px; height: 36px; box-shadow: none; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.icon-btn--plain:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }

/* Choix sélectionnable (filtres, devis) : texte simple, carré blanc plein quand il est choisi */
.opt {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 12px;
  border: 0; background: transparent; color: var(--ink-2);
  font: 500 14px/1 var(--sans);
  transition: color 0.2s, background 0.2s;
}
.opt:hover { color: var(--ink); }
.opt[aria-selected="true"], .opt[aria-pressed="true"] { background: var(--light); color: var(--on-light); }
.opt[aria-selected="true"] small, .opt[aria-pressed="true"] small { color: rgba(10, 10, 10, 0.5); }
.opt small { font-size: 11px; color: var(--ink-3); }

/* Étiquette en texte simple : [catégorie], type et année en petites capitales */
.meta {
  display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px;
  font-size: 13px; line-height: 1.2; letter-spacing: 0.04em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.66);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}
.meta b { color: #fff; font-weight: 500; }
.cat-tag { font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-2); }

.label { margin: 0 0 22px; font: 400 13px/1.3 var(--sans); color: var(--ink-2); letter-spacing: 0.02em; }
.link { display: inline-block; margin-right: 18px; color: var(--ink); transition: color 0.2s, transform 0.3s var(--ease); }
.link:hover { color: var(--ink-2); transform: translateX(3px); }

/* Bascule des lettres au survol (contact, e-mail, boutons de contact) */
.roll-ch { display: inline-block; overflow: hidden; vertical-align: bottom; line-height: 1.15; }
.roll-in { display: inline-block; text-shadow: 0 1.15em currentColor; transition: transform 0.55s var(--ease); transition-delay: calc(var(--d, 0) * 14ms); }
a[data-roll]:hover .roll-in, a:hover [data-roll] .roll-in, a[data-roll]:focus-visible .roll-in { transform: translateY(-1.15em); }
.contact-mail .roll-ch, .lg-mail .roll-ch { line-height: 1.02; }
.contact-mail .roll-in, .lg-mail .roll-in { text-shadow: 0 1.02em currentColor; transition-delay: calc(var(--d, 0) * 18ms); }
.contact-mail:hover .roll-in, .lg-mail:hover .roll-in { transform: translateY(-1.02em); }
.contact-mail:hover, .lg-mail:hover { color: var(--ink); }

/* ------------------------------------------------------------------ en-tête */
/* Texte simple aux quatre coins */
.hdr {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); row-gap: 14px;
  padding: 22px var(--gut);
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(15px, 1.05vw, 20px); line-height: 1.2;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}
.hdr > * { pointer-events: auto; justify-self: start; white-space: nowrap; }
.hdr a, .hdr button { transition: color 0.2s; }
.hdr a:hover, .hdr button:hover, .hdr .is-current { color: #fff; }
.hdr sup { font-size: 0.5em; margin-left: 3px; vertical-align: 0.9em; }
.hdr-name { grid-area: 1 / 1; }
.hdr-projects { grid-area: 1 / 2; }
.hdr-role { grid-area: 1 / 4 / 2 / 7; justify-self: end; }
.hdr-clock { grid-area: 1 / 7 / 2 / 9; justify-self: end; display: inline-flex; align-items: center; gap: 0.5em; font-variant-numeric: tabular-nums; }
.pulse { width: 6px; height: 6px; background: #fff; animation: pulse 2s ease-in-out infinite; }
.hdr::before {
  content: ""; position: absolute; z-index: -1; inset: 0 0 -24px;
  background: linear-gradient(to bottom, rgba(10, 10, 10, 0.92), rgba(10, 10, 10, 0.72) 55%, rgba(10, 10, 10, 0));
  opacity: 0; transition: opacity 0.4s;
}
.is-scrolled .hdr::before { opacity: 1; }
.hdr-about { grid-area: 2 / 1; }
.hdr-lang { grid-area: 2 / 7; justify-self: end; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-shadow: inherit; }
.hdr-lang span { opacity: 0.5; transition: opacity 0.2s; }
.hdr-lang span.is-on { opacity: 1; }
.hdr-contact { grid-area: 2 / 8; justify-self: end; }

/* ------------------------------------------------------------------ diaporama d'accueil */
.stage {
  --band: 56%;
  position: relative; overflow: hidden;
  height: 100vh; height: 100svh; min-height: 560px;
  background: #000;
  touch-action: pan-y;
}
.stage-media, .slide, .slide img, .slide video { position: absolute; inset: 0; width: 100%; height: 100%; }
.slide { opacity: 0; transition: opacity 1s var(--ease); }
.slide.is-on { opacity: 1; }
.slide img, .slide video { object-fit: cover; }
.slide img { transform: scale(1.07); transition: transform 8s linear; }
.slide.is-on img { transform: scale(1); }
.slide video { opacity: 0; transition: opacity 0.6s; }
.slide video.is-playing { opacity: 1; }
.stage-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to top, rgba(0,0,0,0.86), rgba(0,0,0,0.42) 34%, rgba(0,0,0,0) 62%),
    linear-gradient(to bottom, rgba(0,0,0,0.78), rgba(0,0,0,0.35) 14%, rgba(0,0,0,0) 30%),
    linear-gradient(to right, rgba(0,0,0,0.45), rgba(0,0,0,0) 55%);
}
.stage-ui {
  position: absolute; left: var(--gut); right: var(--gut); bottom: 40px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
}
.stage-left { display: grid; justify-items: start; gap: 16px; min-width: 0; }
.stage-title {
  margin: 0; max-width: 18ch;
  font: 600 clamp(42px, 6.4vw, 104px)/0.92 var(--display);
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.nw { white-space: nowrap; }
.stage-title.is-in { animation: titleIn 0.7s var(--ease) both; }
.stage-actions { display: flex; align-items: center; gap: 8px; }
.stage-steps { position: absolute; left: var(--gut); right: var(--gut); bottom: 18px; display: flex; gap: 6px; }
.step { flex: 1; height: 12px; padding: 5px 0; border: 0; background: none; }
.step i { position: relative; display: block; height: 2px; background: rgba(255, 255, 255, 0.22); overflow: hidden; }
.step i::after { content: ""; position: absolute; inset: 0; width: var(--k, 0%); background: #fff; }
.step:hover i { background: rgba(255, 255, 255, 0.4); }

/* Miniatures carrées : la miniature active est encadrée d'un contour décalé */
.stage-right { display: grid; justify-items: end; gap: 12px; }
.stage-count { font-size: 13px; letter-spacing: 0.04em; color: rgba(255, 255, 255, 0.7); font-variant-numeric: tabular-nums; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5); }
.stage-thumbs { display: flex; gap: 12px; }
.stage-thumb {
  position: relative; width: clamp(84px, 8.4vw, 150px); aspect-ratio: 16 / 9; padding: 0;
  border: 0; background: rgba(10, 10, 10, 0.3);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  outline: 1px solid transparent; outline-offset: 3px;
  transition: outline-color 0.3s;
}
.stage-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: 0.5; transition: opacity 0.3s; }
.stage-thumb:hover img { opacity: 0.85; }
.stage-thumb.is-on { outline-color: #fff; }
.stage-thumb.is-on img { opacity: 1; }

/* ------------------------------------------------------------------ grille de projets */
.work { padding: 150px var(--gut) 40px; }
.work-head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 36ch);
  grid-template-areas: "title lede" "tools tools" "sub sub";
  align-items: end; gap: 34px 48px; margin-bottom: 36px;
}
.work-label { grid-area: title; margin: 0; font: 600 clamp(44px, 6.2vw, 112px)/0.9 var(--display); letter-spacing: -0.045em; color: var(--ink); text-wrap: balance; }
.work-label::first-letter { text-transform: uppercase; }
.seg { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.fi { width: 14px; height: 14px; flex: none; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: square; }
.fi-all rect { transform-box: fill-box; transform-origin: center; }
.opt:hover .fi-all rect, .opt.is-anim .fi-all rect { animation: sqPop 0.55s var(--ease) both; animation-delay: calc(var(--i) * 70ms); }
.opt:hover .fi-3d, .opt.is-anim .fi-3d { animation: flipY 0.9s var(--ease); }
.fi-web .caret { stroke-width: 1.6; }
.opt:hover .fi-web .caret, .opt.is-anim .fi-web .caret { animation: blink 0.8s steps(1) infinite; }
.opt:hover .fi-tools, .opt.is-anim .fi-tools { animation: spin 1.6s linear infinite; }
.subseg { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; animation: riseIn 0.45s var(--ease) both; }
.subseg .opt { height: 32px; font-size: 13px; }
.opt:disabled { opacity: 0.35; cursor: default; }
.opt:not(:disabled):hover .fi-sub, .opt[aria-selected="true"] .fi-sub { animation: netHop 0.6s var(--ease); }
.work-tools { grid-area: tools; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 28px; padding-top: 18px; border-top: 1px solid var(--line); }
.work-head .seg, .work-head .subseg { justify-content: flex-start; }
.work-head .subseg { grid-area: sub; margin-top: -20px; }
.gsize { display: flex; gap: 4px; }
.gsize .opt { width: 36px; padding: 0; justify-content: center; }
.gsize svg { width: 14px; height: 14px; fill: currentColor; }
.seg-ind { display: none; }
.work-lede { grid-area: lede; justify-self: end; max-width: 36ch; margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.45; }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 72px 18px; }
.grid[data-cols="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 16px; }
.grid[data-cols="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px 14px; }
.grid[data-cols="3"] .card-info, .grid[data-cols="4"] .card-info { font-size: 12px; }
.card { display: grid; align-content: start; gap: 14px; animation: cardIn 0.6s var(--ease) both; animation-delay: calc(var(--i, 0) * 40ms); }
.card-media {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-2); isolation: isolate;
  outline: 1px solid transparent; outline-offset: 4px;
  transition: outline-color 0.3s;
}
.card-w:hover .card-media, .card:focus-visible .card-media { outline-color: #fff; }
.card:focus-visible { outline: 0; }
.card-media img, .card-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-media img { transition: transform 0.8s var(--ease); }
.card-media video { opacity: 0; transition: opacity 0.4s; }
.card-media video.is-playing { opacity: 1; }
.card-w:hover .card-media img { transform: scale(1.03); }
.card-hover {
  position: absolute; left: 14px; bottom: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  height: 32px; padding: 0 12px;
  background: var(--light); color: var(--on-light);
  font-size: 13px; white-space: nowrap;
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.25s, transform 0.35s var(--ease);
}
.card-hover .ico { width: 15px; height: 15px; }
.card-w:hover .card-hover, .card:focus-visible .card-hover { opacity: 1; transform: none; }
/* Infos au-dessus de l'image : titre + [numéro], puis type + catégorie */
.card-info {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px;
  font-size: 13px; line-height: 1.25; letter-spacing: 0.02em; text-transform: uppercase;
}
.ci-title { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ci-num, .ci-sub, .ci-cat { color: var(--ink-2); }
.ci-num { font-variant-numeric: tabular-nums; transition: color 0.3s; }
.ci-cat { justify-self: end; }
.card-w:hover .ci-num { color: var(--ink); }
.grid-empty { color: var(--ink-2); }

/* Logiciels utilisés : petites icônes (cartes, liste, fiche projet), animées au survol */
.tchip { display: inline-grid; place-items: center; width: 24px; height: 24px; flex: none; }
.tchip .si { width: 12px; height: 12px; }
.tchip .si--mono { width: 14px; height: 14px; font-size: 6.5px; box-shadow: inset 0 0 0 1px currentColor; }
.card-tools { position: absolute; top: 10px; left: 10px; right: 10px; z-index: 2; display: flex; flex-wrap: wrap; gap: 5px; pointer-events: none; }
.tchip .tn { display: none; }
/* Logiciels sur les cartes : logos blancs posés sur l'image, sans fond ; le nom se déplie au survol */
.card-tools .tchip { position: relative; display: inline-flex; align-items: center; width: auto; min-width: 0; height: 26px; padding: 0 4px; background: none; color: #fff; filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.55)); }
.card-tools .tchip .si { width: 18px; height: 18px; flex: none; background: #fff; transition: transform 0.5s var(--ease); }
.card-tools .tchip .si--mono { width: 20px; height: 20px; font-size: 9px; background: none; color: #fff; box-shadow: inset 0 0 0 1.5px #fff; }
.card-tools .tchip .tn { display: block; max-width: 0; margin-left: 0; overflow: hidden; white-space: nowrap; font: 500 11px/1 var(--sans); letter-spacing: 0.01em; opacity: 0; transition: max-width 0.5s var(--ease), margin 0.5s var(--ease), opacity 0.3s; transition-delay: calc(var(--i, 0) * 60ms); }
.card-w:hover .card-tools .tchip .tn { max-width: 120px; margin-left: 6px; opacity: 1; }
.card-media.is-pending .card-tools { visibility: hidden; }
.card-media.is-revealed .card-tools .tchip { animation: chipIn 0.45s var(--ease) both; animation-delay: calc(var(--i, 0) * 80ms); }
.card-w:hover .card-tools .tchip .si { animation: netHop 0.55s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); }
@media (hover: none) { .card-tools .tchip .tn { display: none; } }
.row-tools, .meta-tools { display: inline-flex; gap: 2px; vertical-align: middle; }
.row-tools .tchip, .meta-tools .tchip { width: 20px; height: 20px; }
a.row:hover .row-tools .tchip { animation: netHop 0.55s var(--ease) both; animation-delay: calc(var(--i, 0) * 50ms); }
.dd-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.meta-tools .tchip:hover { animation: netHop 0.55s var(--ease); }
.soft-list li:hover .si { animation: netHop 0.6s var(--ease); }

/* Bouton de partage sur les cartes + petit menu */
.card-w { position: relative; min-width: 0; }
.card-share {
  position: absolute; right: 12px; bottom: 12px; z-index: 3;
  display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0;
  background: rgba(10, 10, 10, 0.35); color: #fff;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
  opacity: 0; transform: translateY(4px);
  transition: opacity 0.25s, transform 0.3s var(--ease), background 0.2s, color 0.2s;
}
.card-share .net-ico { width: 15px; height: 15px; margin: 0; }
.card-w:hover .card-share, .card-share:focus-visible, .card-share[aria-expanded="true"] { opacity: 1; transform: none; }
.card-share:hover, .card-share[aria-expanded="true"] { background: var(--light); color: var(--on-light); }
@media (hover: none) { .card-share { opacity: 1; transform: none; } }
.share-pop {
  position: absolute; right: 12px; bottom: 54px; z-index: 6;
  display: grid; gap: 4px; min-width: 180px; padding: 8px;
  background: rgba(10, 10, 10, 0.82); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  animation: riseIn 0.3s var(--ease) both;
}
.share-pop .btn { width: 100%; justify-content: flex-start; }

/* Mode liste : une ligne par projet, aperçu qui suit la souris */
.grid[data-cols="list"] { display: block; }
.row {
  display: grid; grid-template-columns: 70px minmax(0, 2.2fr) minmax(0, 1.3fr) 150px 120px 60px; align-items: center; gap: 20px;
  padding: 14px 0; color: var(--ink-2);
  font-size: 13px; letter-spacing: 0.02em; text-transform: uppercase;
  transition: color 0.2s, padding 0.35s var(--ease);
  animation: cardIn 0.5s var(--ease) both; animation-delay: calc(var(--i, 0) * 25ms);
}
.row--head { padding-bottom: 18px; font-size: 11px; color: var(--ink-3); animation: none; }
.r-num { font-variant-numeric: tabular-nums; }
.r-title { color: var(--ink); font: 600 clamp(18px, 1.9vw, 28px)/1.1 var(--display); letter-spacing: -0.02em; text-transform: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.r-year { text-align: right; font-variant-numeric: tabular-nums; }
a.row:hover { color: var(--ink); padding-left: 12px; }
.row-peek {
  position: fixed; z-index: 40; left: 0; top: 0; width: 300px; aspect-ratio: 16 / 9; object-fit: cover;
  pointer-events: none; opacity: 0; transform: translate(24px, -50%) scale(0.96);
  transition: opacity 0.2s, transform 0.3s var(--ease);
}
.row-peek.is-on { opacity: 1; transform: translate(24px, -50%) scale(1); }

/* Logo de la licence ou du jeu, à droite de l'en-tête du projet */
.p-license { position: absolute; right: var(--gut); bottom: 34px; display: grid; justify-items: end; gap: 10px; animation: riseIn 0.8s 0.2s var(--ease) both; }
.p-license-label { font: 500 10px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); }
.p-license img { max-width: 200px; max-height: 72px; object-fit: contain; }
.p-license-name { font: 600 clamp(20px, 2.2vw, 30px)/1 var(--display); letter-spacing: -0.02em; text-align: right; max-width: 12ch; text-shadow: 0 1px 14px rgba(0, 0, 0, 0.5); }

/* ------------------------------------------------------------------ à propos */
.about { padding: 150px var(--gut) 40px; scroll-margin-top: 40px; }
.about-bio {
  max-width: 24em; margin: 0;
  font: 500 clamp(26px, 3.3vw, 50px)/1.08 var(--display);
  letter-spacing: -0.025em;
  color: var(--ink-3);
}
.about-bio strong { color: var(--ink); font-weight: inherit; }
.about-bio .w { color: rgba(244, 244, 242, 0.13); transition: color 0.4s ease; }
.about-bio .w.is-lit { color: rgba(244, 244, 242, 0.55); }
.about-bio strong .w.is-lit { color: var(--ink); }
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 100px; }
.service h3 { margin: 14px 0 10px; font: 600 24px/1.1 var(--display); letter-spacing: -0.02em; }
.service p { margin: 0 0 16px; max-width: 46ch; color: var(--ink-2); }
/* Grandes icônes animées des services : tracé à l'apparition, puis animation en boucle */
.svc-ico { display: block; width: 112px; height: 112px; margin: 0 0 26px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: square; stroke-linejoin: miter; transition: transform 0.7s cubic-bezier(0.3, 1.6, 0.4, 1); }
.svc-ico * { transform-box: fill-box; transform-origin: center; }
.service:hover .svc-ico { transform: translateY(-6px) rotate(-4deg) scale(1.06); }
.svc-ico:not(.is-in) [pathLength] { stroke-dasharray: 100; stroke-dashoffset: 100; }
.svc-ico.is-in [pathLength]:not(.pulse) { animation: qDraw 1.3s var(--ease) backwards; animation-delay: 0.15s; }
.si-3d .orb { stroke-dasharray: 2 5; opacity: 0.4; animation: siOrb 9s linear infinite; }
.si-3d .sat, .si-3d .vx { fill: currentColor; stroke: none; }
.si-3d .vx { animation: siVx 2.4s ease-in-out infinite; }
.si-3d .hl { opacity: 0.35; }
.si-3d .f1 { animation: siF1 4s ease-in-out infinite; } .si-3d .f2 { animation: siF2 4s ease-in-out infinite; } .si-3d .f3 { animation: siF3 4s ease-in-out infinite; }
.si-web .dt { stroke-width: 3; }
.si-web .b { opacity: 0; animation: siB 5s var(--ease) infinite; animation-delay: calc(var(--i) * 0.22s); }
.si-web .bt { animation: siB 5s var(--ease) infinite, siBt 5s steps(1) infinite; animation-delay: 0.44s, 0s; }
.si-web .cur { fill: var(--bg); stroke: currentColor; stroke-width: 1.2; transform-box: view-box; transform-origin: 0 0; animation: siCur 5s cubic-bezier(0.6, 0, 0.2, 1) infinite; }
.si-ai .gear { transform-box: view-box; transform-origin: 48px 50px; animation: siGear 10s linear infinite; }
.si-ai .sp { fill: currentColor; stroke: none; animation: siTw 2.4s ease-in-out infinite; animation-delay: calc(var(--i) * -0.8s); }
.si-ai .pulse { stroke-dasharray: 14 86; animation: siPls 2.2s linear infinite; }
@keyframes siOrb { to { stroke-dashoffset: -70; } }
@keyframes siVx { 50% { transform: scale(0.35); opacity: 0.4; } }
@keyframes siF1 { 50% { transform: translateY(-5px); } }
@keyframes siF2 { 50% { transform: translate(-4px, 2.5px); } }
@keyframes siF3 { 50% { transform: translate(4px, 2.5px); } }
@keyframes siB { 0%, 3% { opacity: 0; transform: translateY(6px); } 12%, 86% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; } }
@keyframes siBt { 0% { fill: transparent; } 50% { fill: currentColor; } 78% { fill: transparent; } }
@keyframes siCur { 0%, 18% { transform: translate(88px, 90px); } 44% { transform: translate(26px, 64px); } 50% { transform: translate(26px, 64px) scale(0.78); } 56%, 70% { transform: translate(26px, 64px); } 94%, 100% { transform: translate(88px, 90px); } }
@keyframes siGear { to { transform: rotate(360deg); } }
@keyframes siTw { 0%, 100% { transform: scale(0.35) rotate(0deg); opacity: 0.35; } 50% { transform: scale(1) rotate(90deg); opacity: 1; } }
@keyframes siPls { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .svc-ico, .svc-ico * { animation: none !important; transition: none; } .si-web .b { opacity: 1; } .si-web .cur { transform: translate(26px, 64px); } .svc-ico [pathLength] { stroke-dashoffset: 0 !important; } }
.about-cols { margin-top: 90px; }
.about-more { margin-top: 44px; }

/* ------------------------------------------------------------------ page formules */
html:has(body.fm-page) { scroll-behavior: smooth; }
.fm-main { padding: 0 var(--gut) 40px; }
.fm-main [id] { scroll-margin-top: 90px; }
.fm-hero { display: grid; justify-items: start; gap: 22px; padding: 150px 0 20px; }
.fm-hero .lg-kicker { animation: riseIn 0.8s var(--ease) both; }
.fm-title { margin: 0; max-width: 13ch; font: 600 clamp(52px, 8.6vw, 148px)/0.9 var(--display); letter-spacing: -0.05em; text-wrap: balance; animation: titleIn 0.9s 0.1s var(--ease) both; }
.fm-lede { margin: 0; max-width: 30em; font: 500 clamp(20px, 2vw, 28px)/1.22 var(--display); letter-spacing: -0.015em; animation: riseIn 0.8s 0.2s var(--ease) both; }
.fm-intro { margin: 0; max-width: 62ch; color: var(--ink-2); font-size: 17px; line-height: 1.55; animation: riseIn 0.8s 0.28s var(--ease) both; }
.fm-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.fm-hero .fm-actions { margin-top: 10px; animation: riseIn 0.8s 0.36s var(--ease) both; }
.fm-hero .btn:hover .ico { transform: none; animation: fmDown 0.6s var(--ease); }
.fm-meta { margin-top: 34px; animation: riseIn 0.8s 0.44s var(--ease) both; }
.fm-meta dd { font: 600 clamp(18px, 1.6vw, 24px)/1.1 var(--display); letter-spacing: -0.02em; }
.fm-sec { margin-top: 140px; }
.fm-h { margin: 0 0 14px; font: 600 clamp(28px, 3.4vw, 52px)/1 var(--display); letter-spacing: -0.035em; }
.fm-p { margin: 0 0 40px; max-width: 58ch; color: var(--ink-2); font-size: 17px; line-height: 1.55; }
/* Formules : trois cartes carrées, la recommandée en blanc avec le contour décalé */
.fm-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.fm-plan {
  --solid: #151515;
  display: flex; flex-direction: column; gap: 14px; padding: 18px 18px 20px;
  background: rgba(255, 255, 255, 0.05); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: background 0.3s, opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.fm-plan:hover { background: rgba(255, 255, 255, 0.09); }
.fm-plan--featured, .fm-plan--featured:hover { --solid: var(--light); background: var(--light); color: var(--on-light); outline: 1px solid var(--ink); outline-offset: 5px; }
.fm-plan-top { display: flex; align-items: center; justify-content: space-between; min-height: 22px; }
.fm-n { font-size: 12px; letter-spacing: 0.04em; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.fm-plan--featured .fm-n { color: rgba(10, 10, 10, 0.45); }
.fm-tag { padding: 5px 8px; background: var(--on-light); color: var(--light); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
.fm-plan .qi { width: 72px; height: 72px; margin: 12px 0 6px; }
.fm-name { margin: 0; font: 600 clamp(22px, 2vw, 30px)/1.05 var(--display); letter-spacing: -0.025em; }
.fm-price { display: flex; align-items: baseline; gap: 12px; margin: 0; font: 600 clamp(48px, 5vw, 80px)/0.95 var(--display); letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.fm-price s { font-size: 0.34em; letter-spacing: -0.01em; color: var(--ink-3); }
.fm-plan--featured .fm-price s { color: rgba(10, 10, 10, 0.45); }
.fm-promo { display: flex; align-items: center; gap: 10px; margin: -4px 0 0; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; }
.fm-promo b { padding: 3px 7px; background: var(--ink); color: var(--bg); font-weight: 600; }
.fm-plan--featured .fm-promo b { background: var(--on-light); color: var(--light); }
.fm-hook { margin: 0; min-height: 2.9em; color: var(--ink-2); font-size: 15px; line-height: 1.45; }
.fm-plan--featured .fm-hook { color: rgba(10, 10, 10, 0.62); }
.fm-feats { display: grid; gap: 9px; margin: 6px 0 auto; padding: 16px 0 0; list-style: none; border-top: 1px solid var(--line); font-size: 14.5px; line-height: 1.4; }
.fm-plan--featured .fm-feats { border-top-color: rgba(10, 10, 10, 0.14); }
.fm-feats li { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 10px; align-items: start; }
.fm-tick { width: 14px; height: 14px; margin-top: 2px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: square; }
.fm-plan.is-in .fm-feats .fm-tick path { animation: qDraw 0.6s var(--ease) backwards; animation-delay: calc(var(--j, 0) * 70ms + var(--i, 0) * 120ms + 450ms); }
.fm-cta { justify-content: space-between; width: 100%; margin-top: 20px; }
.btn--dark { background: var(--on-light); color: var(--light); }
.btn--dark:hover { background: transparent; color: var(--on-light); box-shadow: inset 0 0 0 1px var(--on-light); }
.btn--dark:hover .ico { transform: none; animation: arrowLoop 0.6s var(--ease); }
.fm-plan.is-in .qi [pathLength]:not(.ln) { animation: qDraw 1.1s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 120ms + 250ms); }
.qi-sig .spk { transform-box: fill-box; transform-origin: center; }
.fm-plan:hover .qi-one .t { animation: qPop 1.6s var(--ease) infinite; }
.fm-plan:hover .qi-one .ln { animation: abDraw 1.8s var(--ease) infinite; animation-delay: calc(var(--i) * 0.15s); }
.fm-plan:hover .qi-packs .s3 { animation: ctFanBack 1.8s var(--ease) infinite; }
.fm-plan:hover .qi-packs .s1 { animation: ctFanFront 1.8s var(--ease) infinite; }
.fm-plan:hover .qi-hard .f1 { animation: qExpT 1.8s var(--ease) infinite; }
.fm-plan:hover .qi-hard .f2 { animation: qExpL 1.8s var(--ease) infinite; }
.fm-plan:hover .qi-hard .f3 { animation: qExpR 1.8s var(--ease) infinite; }
.fm-plan:hover .qi-sig .spk { animation: fmSpark 1.2s var(--ease) infinite; }
.fm-plan:hover .qi-sig .spk2 { animation-delay: 0.3s; }
.fm-note { margin: 22px 0 0; max-width: 80ch; color: var(--ink-3); font-size: 13px; line-height: 1.5; }
.fm-note + .fm-note { margin-top: 8px; }
/* Tableau comparatif */
.fm-compare { margin-top: 90px; }
.ab-body { min-width: 0; }
.fm-table-wrap { overflow-x: auto; contain: paint; } /* le tableau défile dans son cadre sans élargir la page sur mobile */
.fm-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; }
.fm-table th, .fm-table td { padding: 14px 12px; border-top: 1px solid var(--line); text-align: center; font-weight: 400; transition: background 0.2s; }
.fm-table th[scope="row"] { padding-left: 0; text-align: left; color: var(--ink-2); }
.fm-table thead th, .fm-table thead td { border-top: 0; font: 600 18px/1.1 var(--display); letter-spacing: -0.02em; }
.fm-table .is-featured { background: rgba(255, 255, 255, 0.05); }
.fm-table thead .is-featured { background: var(--light); color: var(--on-light); }
.fm-table tbody tr:hover > * { background-color: rgba(255, 255, 255, 0.04); }
.fm-table tbody tr:hover > .is-featured { background-color: rgba(255, 255, 255, 0.09); }
.fm-yn { display: inline-grid; place-items: center; width: 18px; height: 18px; vertical-align: middle; }
.fm-yn--y { background: var(--light); color: var(--on-light); }
.fm-yn--y .fm-tick { width: 11px; height: 11px; margin: 0; }
.fm-yn--n::before { content: ""; width: 10px; height: 1px; background: var(--ink-3); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Réalisation : une grande capture et deux petites */
.fm-shots { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 14px; }
.fm-shot { display: grid; grid-template-rows: auto auto; align-content: start; gap: 10px; margin: 0; }
.fm-shot:first-child { grid-row: span 2; grid-template-rows: 1fr auto; }
.fm-shot-media { overflow: hidden; aspect-ratio: 16 / 9; background: var(--bg-2); }
.fm-shot:first-child .fm-shot-media { aspect-ratio: auto; min-height: 100%; }
.fm-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1.2s var(--ease); }
.fm-shot:hover img { transform: scale(1.03); }
.fm-shot figcaption { display: flex; gap: 10px; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-2); }
.fm-shot figcaption span { color: var(--ink-3); }
.fm-case-link { margin-top: 26px; }
.fm-case-link:hover .ico { transform: none; animation: planeGo 0.7s var(--ease); }
/* Déroulé : un trait se trace au-dessus de chaque étape */
.fm-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 26px 0 0; padding: 0; list-style: none; }
.fm-steps li { position: relative; padding-top: 22px; }
.fm-steps li::before, .fm-steps li::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--line); }
.fm-steps li::after { background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 200ms + 200ms); }
.fm-steps li.is-in::after { transform: none; }
.fm-step-n { display: block; margin-bottom: 14px; font: 600 clamp(40px, 4vw, 64px)/1 var(--display); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.fm-steps p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.55; }
/* Préparation */
.fm-needs { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px; align-items: start; margin-top: 26px; }
.fm-needs-list { display: grid; margin: 0; padding: 0; list-style: none; }
.fm-needs-list li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); font: 500 clamp(18px, 1.6vw, 22px)/1.25 var(--display); letter-spacing: -0.015em; }
.fm-needs-list .fm-tick { width: 16px; height: 16px; margin-top: 4px; }
.fm-needs-list li.is-in .fm-tick path { animation: qDraw 0.6s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 90ms + 300ms); }
.fm-aside { padding: 20px 22px; background: rgba(255, 255, 255, 0.03); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px var(--edge); }
.fm-aside .label { margin: 0 0 10px; }
.fm-aside p:last-child { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.55; }
/* Questions : accordéon, le + devient – */
.fm-faq { display: grid; margin-top: 20px; }
.fm-q { border-top: 1px solid var(--line); }
.fm-q:last-child { border-bottom: 1px solid var(--line); }
.fm-q summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; list-style: none; cursor: pointer; font: 500 clamp(18px, 1.7vw, 24px)/1.25 var(--display); letter-spacing: -0.015em; transition: color 0.2s; }
.fm-q summary::-webkit-details-marker { display: none; }
.fm-q summary:hover { color: var(--ink-2); }
.fm-plus { position: relative; flex: none; width: 16px; height: 16px; transition: transform 0.4s var(--ease); }
.fm-plus::before, .fm-plus::after { content: ""; position: absolute; top: 50%; left: 0; width: 100%; height: 1.5px; margin-top: -0.75px; background: currentColor; }
.fm-plus::after { transform: rotate(90deg); transition: transform 0.4s var(--ease); }
.fm-q[open] .fm-plus { transform: rotate(180deg); }
.fm-q[open] .fm-plus::after { transform: none; }
.fm-a { max-width: 70ch; padding: 0 0 24px; }
.fm-q[open] .fm-a { animation: fmOpen 0.45s var(--ease); }
.fm-a p { margin: 0; color: var(--ink-2); font-size: 16px; line-height: 1.6; }
/* Contact */
.fm-contact { display: grid; justify-items: start; gap: 22px; margin-top: 170px; }
.fm-contact .label, .fm-contact .fm-p { margin: 0; }
.fm-contact-title { margin: 0; max-width: 16ch; font: 600 clamp(40px, 6vw, 96px)/0.95 var(--display); letter-spacing: -0.045em; }
.fm-mail { margin-top: 30px; }
/* Bandeau de promotion (promo.js) : version carrée, en bas de l'écran */
#lb-promo-bar { position: fixed !important; left: 0; right: 0; bottom: 0; z-index: 60 !important; background: var(--light) !important; color: var(--on-light) !important; font-family: var(--sans) !important; }
#lb-promo-bar strong { border-radius: 0 !important; background: var(--on-light) !important; color: var(--light) !important; }
#lb-promo-bar a { color: var(--on-light) !important; }
#lb-promo-bar button { border-radius: 0 !important; background: rgba(10, 10, 10, 0.08) !important; color: var(--on-light) !important; }

/* ------------------------------------------------------------------ page démos web (/web) */
/* Studio de démos (web-studio.js) : ses propres styles utilisent ces jetons, réglés ici sur la direction v3 */
.wd-studio {
  --accent: #f4f4f2; --on-accent: #0a0a0a; --surface: rgba(255, 255, 255, 0.04); --surface-2: rgba(255, 255, 255, 0.07);
  --hover: rgba(255, 255, 255, 0.12); --ink-12: rgba(244, 244, 242, 0.14); --ink-6: rgba(244, 244, 242, 0.6); --ink-78: rgba(244, 244, 242, 0.7);
  margin-top: 36px;
}
.wd-studio *, .wd-studio *::before, .wd-studio *::after { border-radius: 0 !important; }
/* Studio épuré : filets fins au lieu de fonds pleins, pas de flou, couleur réservée à l'état actif */
.wd-studio .ws-tab, .wd-studio .ws-trades button { background: transparent; box-shadow: inset 0 0 0 1px var(--line); transition: background 0.25s, color 0.25s, box-shadow 0.25s; }
.wd-studio .ws-tab:not([aria-selected="true"]):hover, .wd-studio .ws-trades button:not([aria-pressed="true"]):hover { transform: none; background: transparent; box-shadow: inset 0 0 0 1px var(--edge); }
.wd-studio .ws-tab:hover, .wd-studio .ws-trades button:hover, .wd-studio .ws-codebtn:hover { transform: none; }
.wd-studio .ws-tab[aria-selected="true"], .wd-studio .ws-trades button[aria-pressed="true"] { background: var(--light); color: var(--on-light); box-shadow: none; }
.wd-studio .ws-tab .wa { width: 52px; height: 36px; opacity: 0.55; transition: opacity 0.3s; }
.wd-studio .ws-tab:hover .wa, .wd-studio .ws-tab[aria-selected="true"] .wa { opacity: 1; }
.wd-studio .ws-tab:not([aria-selected="true"]):not(:hover) .wa * { animation-play-state: paused; }
.wd-studio .ws-trades button i { width: 6px; height: 6px; background: currentColor !important; opacity: 0.35; }
.wd-studio .ws-trades button[aria-pressed="true"] i { opacity: 1; }
.wd-studio .ws-side, .wd-studio .ws-win { box-shadow: inset 0 0 0 1px var(--line); }
.wd-studio .ws-trades span, .wd-studio .ws-side h3 { letter-spacing: 0.04em; font-size: 12px; }
.wd-studio .ws-trades button { font-weight: 500; }
.wd-studio .ws-url b { color: var(--ink); }
.wd-studio .ws-state i { background: var(--ink); animation: pulse 2s ease-in-out infinite; }
.wd-studio .ws-state.busy i { background: var(--ink-3); }
.wd-studio .ws-sw button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--ink); }
.wd-studio .ws-codebtn { font-weight: 500; }
/* Réalisations */
.wd-works { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 14px; }
.wd-work { display: grid; align-content: start; gap: 8px; }
.wd-shot { position: relative; overflow: hidden; aspect-ratio: 16 / 10; margin-bottom: 8px; background: var(--bg-2); }
.wd-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1.2s var(--ease); }
.wd-work:hover .wd-shot img { transform: scale(1.04); }
.wd-live { position: absolute; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 7px; padding: 5px 8px; background: rgba(10, 10, 10, 0.55);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: #fff; }
.wd-live i { width: 6px; height: 6px; background: #fff; animation: pulse 2s ease-in-out infinite; }
.wd-cat { margin: 0; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-2); }
.wd-work h4 { margin: 0; font: 600 clamp(20px, 1.8vw, 26px)/1.1 var(--display); letter-spacing: -0.02em; }
.wd-work > p:not([class]) { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.wd-tags { margin: 2px 0 0; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); }
.wd-visit { display: inline-flex; align-items: center; gap: 8px; justify-self: start; margin-top: 6px; font-size: 14px; color: var(--ink); }
.wd-visit .ico { width: 15px; height: 15px; }
.wd-visit:hover .ico { animation: planeGo 0.7s var(--ease); }
.wd-visit.is-off { color: var(--ink-3); }
/* Services : cartes qui passent en blanc, icône animée au survol */
.wd-svcs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.wd-svc {
  display: grid; grid-template-rows: auto auto auto 1fr auto; gap: 12px; min-height: 250px; padding: 16px 16px 18px;
  background: rgba(255, 255, 255, 0.05); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: var(--ink);
  transition: background 0.3s, color 0.3s, opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.wd-svc:hover, .wd-svc:focus-visible { background: var(--light); color: var(--on-light); }
.wd-svc-top { display: flex; align-items: center; justify-content: space-between; }
.wd-svc:hover .fm-n { color: rgba(10, 10, 10, 0.45); }
.wd-svc:hover .wd-go { animation: arrowLoop 0.6s var(--ease); }
.wd-svc b { font: 600 clamp(20px, 1.8vw, 26px)/1.1 var(--display); letter-spacing: -0.02em; }
.wd-svc-body { color: var(--ink-2); font-size: 14.5px; line-height: 1.5; transition: color 0.3s; }
.wd-svc:hover .wd-svc-body { color: rgba(10, 10, 10, 0.62); }
.wd-price { justify-self: start; padding: 4px 8px; box-shadow: inset 0 0 0 1px currentColor; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }
.wd-svc.is-fixed .wd-price { background: var(--light); color: var(--on-light); box-shadow: none; }
.wd-svc.is-fixed:hover .wd-price { background: var(--on-light); color: var(--light); }
.wd-svc-actions { margin-top: 26px; }
.wd-si { width: 34px; height: 34px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: square; stroke-linejoin: miter; }
.wd-si .t, .wd-si .bar, .wd-si .cta { transform-box: fill-box; transform-origin: center bottom; }
.wd-si .t { transform-origin: center; }
.wd-si .rot { transform-box: view-box; transform-origin: 12px 12px; }
.wd-si .beat { stroke-dasharray: 40; }
.wd-svc:hover .wd-si-shop .aw { animation: wdAwn 0.9s var(--ease) infinite; }
.wd-svc:hover .wd-si-folio .t { animation: qPop 1.6s var(--ease) infinite; }
.wd-svc:hover .wd-si-folio .t2 { animation-delay: 0.15s; }
.wd-svc:hover .wd-si-land .cta { animation: wdCta 1.2s steps(1) infinite; }
.wd-svc:hover .wd-si-redo .rot { animation: spin 1.2s var(--ease) infinite; }
.wd-svc:hover .wd-si-app .bar { animation: qBar 0.9s var(--ease) infinite alternate; }
.wd-svc:hover .wd-si-app .b2 { animation-delay: 0.15s; } .wd-svc:hover .wd-si-app .b3 { animation-delay: 0.3s; }
.wd-svc:hover .wd-si-care .beat { animation: wdBeat 1.4s linear infinite; }
/* Qualité et outils */
.wd-quality { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin: 10px 0 0; padding: 0; list-style: none; }
.wd-quality li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; padding: 14px 0; border-top: 1px solid var(--line); font: 500 clamp(17px, 1.5vw, 20px)/1.3 var(--display); letter-spacing: -0.01em; }
.wd-quality .fm-tick { width: 15px; height: 15px; margin-top: 4px; }
.wd-quality li.is-in .fm-tick path { animation: qDraw 0.6s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 90ms + 300ms); }
.wd-stack-label { margin: 46px 0 18px; }
.wd-step-t { display: block; margin-bottom: 8px; font: 600 18px/1.2 var(--display); letter-spacing: -0.01em; }
.wd-demos-head { margin-top: 120px; }

/* ------------------------------------------------------------------ page contact */
.ct { padding: 120px var(--gut) 120px; }
.ct-head { display: grid; justify-items: start; gap: 20px; }
.ct-title { margin: 14px 0 0; font: 600 clamp(56px, 10vw, 168px)/0.88 var(--display); letter-spacing: -0.05em; animation: titleIn 0.9s 0.1s var(--ease) both; }
.ct-lede { margin: 0; max-width: 28em; font: 500 clamp(20px, 2vw, 28px)/1.22 var(--display); letter-spacing: -0.015em; color: var(--ink-2); animation: riseIn 0.8s 0.25s var(--ease) both; }
.ct-status { display: inline-flex; align-items: center; gap: 0.5em; margin: 0; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-2); font-variant-numeric: tabular-nums; animation: riseIn 0.8s 0.35s var(--ease) both; }
.ct-mail { display: grid; justify-items: start; gap: 18px; margin-top: 110px; }
.ct-mail .label { margin: 0; }
.ct-mail-link { font-size: clamp(30px, 7.6vw, 132px); }
.ct-copy .ico { overflow: visible; }
.ct-copy .f, .ct-copy .b { transition: transform 0.3s var(--ease), opacity 0.2s; }
.ct-copy:hover .f { transform: translate(-2px, -2px); }
.ct-copy:hover .b { transform: translate(1.5px, 1.5px); }
.ct-copy .ok { opacity: 0; stroke-dasharray: 100; stroke-dashoffset: 100; }
.ct-copy.is-done { background: var(--light); color: var(--on-light); box-shadow: none; }
.ct-copy.is-done .f, .ct-copy.is-done .b { opacity: 0; }
.ct-copy.is-done .ok { opacity: 1; animation: crossDraw 0.45s var(--ease) forwards; }
/* Moyens de contact : grandes tuiles, l'icône s'anime au survol et la tuile passe en blanc */
.ct-ways { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 70px; }
.ct-tile {
  --solid: #151515;
  display: grid; grid-template-rows: auto 1fr auto; justify-items: start; gap: 18px;
  min-height: 300px; padding: 16px 16px 20px;
  background: rgba(255, 255, 255, 0.05); color: var(--ink);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: background 0.3s, color 0.3s, opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.ct-tile:hover, .ct-tile:focus-visible { --solid: var(--light); background: var(--light); color: var(--on-light); }
.ct-tile:active { transform: scale(0.985); }
.ct-tile-top { display: flex; align-items: center; justify-content: space-between; justify-self: stretch; }
.ct-n { font-size: 12px; letter-spacing: 0.04em; color: var(--ink-3); font-variant-numeric: tabular-nums; transition: color 0.3s; }
.ct-tile:hover .ct-n { color: rgba(10, 10, 10, 0.45); }
.ct-tile:hover .ct-go { animation: arrowLoop 0.6s var(--ease); }
.ct-tile:hover .ct-go--out { animation: planeGo 0.7s var(--ease); }
.ct-tile .qi { align-self: center; width: 84px; height: 84px; }
.ct-tile-txt { display: grid; gap: 8px; }
.ct-tile-txt b { font: 600 clamp(22px, 2vw, 30px)/1.05 var(--display); letter-spacing: -0.025em; }
.ct-tile-txt span { max-width: 26ch; color: var(--ink-2); font-size: 15px; transition: color 0.3s; }
.ct-tile:hover .ct-tile-txt span { color: rgba(10, 10, 10, 0.62); }
.qi .sol { fill: var(--solid); transition: fill 0.3s; }
.ct-tile.is-in .qi [pathLength]:not(.ln):not(.ok) { animation: qDraw 1.1s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 90ms + 250ms); }
.qi .lt, .qi .pp, .qi .s { transform-box: view-box; }
.qi-call .wv { opacity: 0.3; }
.qi-call .rec { fill: currentColor; stroke: none; }
.ct-tile:is(:hover, :focus-visible) .qi-mail .lt { animation: ctLetter 1.6s var(--ease) infinite; }
.ct-tile:is(:hover, :focus-visible) .qi-call .pp { animation: qBob 0.5s ease-in-out infinite; }
.ct-tile:is(:hover, :focus-visible) .qi-call .wv { animation: ctWave 1s ease-in-out infinite; animation-delay: calc(var(--i) * 0.2s); }
.ct-tile:is(:hover, :focus-visible) .qi-call .rec { animation: abRec 1s steps(1) infinite; }
.ct-tile:is(:hover, :focus-visible) .qi-doc .ln { animation: abDraw 1.8s var(--ease) infinite; animation-delay: calc(var(--i) * 0.15s); }
.ct-tile:is(:hover, :focus-visible) .qi-doc .ok { animation: abDraw 1.8s var(--ease) 0.45s infinite; }
.ct-tile:is(:hover, :focus-visible) .qi-packs .s3 { animation: ctFanBack 1.8s var(--ease) infinite; }
.ct-tile:is(:hover, :focus-visible) .qi-packs .s1 { animation: ctFanFront 1.8s var(--ease) infinite; }
/* Infos pratiques */
.ct-info { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; margin: 0; }
.ct-info div { padding: 18px 0 8px; border-top: 1px solid var(--line); }
.ct-info dt { font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-2); }
.ct-info dd { margin: 10px 0 0; font: 600 clamp(22px, 2.4vw, 36px)/1.05 var(--display); letter-spacing: -0.03em; }

/* ------------------------------------------------------------------ page à propos (parcours) */
.ab { padding: 120px var(--gut) 120px; }
.ab-head { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 60px; align-items: end; }
.ab-intro { display: grid; justify-items: start; gap: 20px; }
.ab-title { margin: 14px 0 0; font: 600 clamp(56px, 10vw, 168px)/0.88 var(--display); letter-spacing: -0.05em; animation: titleIn 0.9s 0.1s var(--ease) both; }
.ab-role { margin: 0; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-2); animation: riseIn 0.8s 0.2s var(--ease) both; }
.ab-bio { margin: 8px 0 0; max-width: 30em; font: 500 clamp(20px, 2vw, 28px)/1.22 var(--display); letter-spacing: -0.015em; color: var(--ink-2); animation: riseIn 0.8s 0.3s var(--ease) both; }
.ab-bio strong { color: var(--ink); font-weight: inherit; }
.ab-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; width: 100%; margin: 30px 0 0; }
.ab-facts div { display: grid; gap: 6px; }
.ab-facts dt { font: 600 clamp(38px, 4.2vw, 64px)/1 var(--display); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.ab-facts dd { margin: 0; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-2); }
.ab-photo { display: grid; gap: 12px; margin: 0; animation: riseIn 0.9s 0.25s var(--ease) both; }
.ab-photo-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-2); }
.ab-photo-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; filter: grayscale(1) contrast(1.04); transition: filter 0.7s ease, transform 1.2s var(--ease); }
.ab-photo:hover .ab-photo-media img { filter: none; transform: scale(1.02); }
.ab-photo figcaption { font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); }
.ab-sec { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 40px; margin-top: 150px; }
.ab-label { position: sticky; top: 96px; align-self: start; margin: 0; }
.ab-label span { margin-right: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.ab-lede { margin: 0 0 60px; max-width: 30em; font: 500 clamp(22px, 2.3vw, 34px)/1.15 var(--display); letter-spacing: -0.02em; }
/* Frise : trait qui se remplit au défilement, une case par étape */
.tl { position: relative; margin: 0; padding: 0; list-style: none; }
.tl-line { position: absolute; left: 21.5px; top: 22px; width: 1px; height: 0; background: var(--line); }
.tl-fill { position: absolute; inset: 0; background: var(--ink); transform-origin: top; transform: scaleY(var(--p, 0)); }
.tl-item { position: relative; display: grid; grid-template-columns: 44px minmax(120px, 0.7fr) minmax(0, 2fr); gap: 0 28px; padding-bottom: 70px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-ico, .ab-ico {
  position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px;
  background: rgba(10, 10, 10, 0.6); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px var(--edge); transition: background 0.45s, color 0.45s, box-shadow 0.45s;
}
.tl-item.is-past .tl-ico { background: var(--light); color: var(--on-light); box-shadow: inset 0 0 0 1px var(--light); }
.tl-when { margin: 12px 0 0; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; }
.tl-when span { display: block; margin-top: 4px; color: var(--ink-3); }
.tl-what h3, .ab-dip h3 { margin: 6px 0 6px; font: 600 clamp(22px, 2.2vw, 32px)/1.05 var(--display); letter-spacing: -0.025em; }
.tl-org, .ab-org { margin: 0 0 14px; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-2); }
.tl-what p:last-child { margin: 0; max-width: 52ch; color: var(--ink-2); }
.ab-dips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 40px; }
.ab-dip { display: grid; justify-items: start; align-content: start; }
.ab-when { margin: 22px 0 4px; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); }
.ab-dip > p:not([class]) { margin: 0 0 14px; max-width: 48ch; color: var(--ink-2); }
.ab-tags { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; }
.ab-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ab-list li {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 4px 20px;
  padding: 10px 16px 10px 10px; background: rgba(255, 255, 255, 0.04);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transition: background 0.25s;
}
.ab-list li:hover { background: rgba(255, 255, 255, 0.08); }
.ab-list .ab-ico { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.ab-list li:hover .ab-ico { background: var(--light); color: var(--on-light); box-shadow: inset 0 0 0 1px var(--light); }
.ab-list b { font: 600 clamp(18px, 1.6vw, 22px)/1.15 var(--display); letter-spacing: -0.015em; }
.ab-meta { font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-2); text-align: right; }
.ab-list--body li { align-items: start; padding-top: 14px; padding-bottom: 16px; }
.ab-list--body .ab-ico { grid-row: span 2; margin-top: -4px; }
.ab-list--body b { margin-top: 6px; }
.ab-list--body .ab-meta { margin-top: 9px; }
.ab-list p { grid-column: 2 / -1; margin: 0; max-width: 62ch; color: var(--ink-2); }
.ab-cta { display: grid; justify-items: start; gap: 34px; margin-top: 170px; }
.ab-cta-title { margin: 0; max-width: 13em; font: 600 clamp(40px, 6vw, 96px)/0.95 var(--display); letter-spacing: -0.045em; }
.ab-cta .contact-actions { margin-top: 0; }
/* Apparition au défilement */
.rv { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.rv.is-in { opacity: 1; transform: none; }
/* Icônes du parcours : jouées une fois à l'apparition, en boucle au survol */
.abi { width: 22px; height: 22px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: square; stroke-linejoin: miter; }
.abi .k, .abi .tassel, .abi .flap, .abi .pg, .abi .l, .abi .r { transform-box: view-box; }
.abi .k { transform-box: fill-box; transform-origin: center; }
.abi .rec { fill: currentColor; stroke: none; }
.abi-clap .flap { transform-origin: 3px 9.5px; }
.abi-grad .tassel { transform-origin: 22.5px 9.5px; }
.abi-book .pg { transform-origin: 12px 12px; }
.ab-item.is-in .abi * { animation-duration: 1.3s; animation-timing-function: var(--ease); animation-delay: 0.5s; animation-iteration-count: 1; }
.ab-item.is-in:hover .abi * { animation-delay: 0s; animation-iteration-count: infinite; }
.ab-item.is-in .abi .dr, .ab-item.is-in .abi .chk { animation-name: abDraw; }
.ab-item.is-in .abi .k { animation-name: abPop; }
.ab-item.is-in .abi .l { animation-name: abL; }
.ab-item.is-in .abi .r { animation-name: abR; }
.ab-item.is-in .abi .s { animation-name: abFade; }
.ab-item.is-in .abi .rec { animation-name: abRec; animation-timing-function: steps(1); }
.ab-item.is-in .abi .flap { animation-name: abClap; }
.ab-item.is-in .abi .tassel { animation-name: abSwing; }
.ab-item.is-in .abi .pg { animation-name: abPage; }
.soft-list { display: flex; flex-wrap: wrap; gap: 16px 30px; max-width: 980px; margin: 0; padding: 0; list-style: none; font-size: 17px; }
.soft-list li { display: inline-flex; align-items: center; gap: 10px; }
.si { width: 20px; height: 20px; flex: none; background: var(--ink); -webkit-mask: center / contain no-repeat; mask: center / contain no-repeat; }
.si[style] { -webkit-mask-size: contain; mask-size: contain; -webkit-mask-position: center; mask-position: center; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.si--mono { display: grid; place-items: center; background: none; -webkit-mask: none; mask: none; box-shadow: inset 0 0 0 1.5px var(--ink); font: 700 8.5px/1 var(--sans); letter-spacing: 0.02em; color: var(--ink); }

/* ------------------------------------------------------------------ réseaux et partage */
.social { padding: 150px var(--gut) 40px; scroll-margin-top: 40px; }
.social-list { margin: 0; padding: 0; list-style: none; }
.social-list a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 0 28px; padding: 10px 0; }
.social-list .net-ico { margin-right: 0; }
.sl-name { font: 600 clamp(32px, 4.8vw, 76px)/1.05 var(--display); letter-spacing: -0.035em; }
.sl-handle { font: 500 12px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 0.06em; color: var(--ink-2); transition: color 0.2s; }
.sl-go { display: grid; place-items: center; width: 44px; height: 44px; box-shadow: inset 0 0 0 1px var(--edge); transition: background 0.25s, color 0.25s, transform 0.45s var(--ease); }
.social-list a:hover .sl-go { background: var(--light); color: var(--on-light); transform: rotate(45deg); }
.social-list a:hover .sl-handle { color: var(--ink); }
.share { margin-top: 70px; }
.share-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.share-btns .ico { width: 14px; height: 14px; }
.p-side { display: grid; align-content: start; gap: 28px; }
.p-share .label { margin-bottom: 12px; }

/* Icônes des réseaux : petite animation propre à chaque réseau au survol */
.net-ico { width: 14px; height: 14px; flex: none; margin-right: 9px; vertical-align: -2px; overflow: visible; transition: transform 0.4s var(--ease); }
.ftr-cols a[data-net] { display: inline-flex; align-items: center; }
.social-list .net-ico { width: 0.62em; height: 0.62em; margin-right: 0.28em; vertical-align: -0.04em; }
.social-list a[data-net] { font-size: clamp(32px, 4.8vw, 76px); }
.social-list .sl-name { font-size: 1em; }
.social-list a[data-net] > .net-ico { align-self: center; }
[data-net]:hover .net-ico { animation: netHop 0.6s var(--ease); }
[data-net]:hover .net-ico--instagram .ni-dot { animation: blink 0.5s steps(1) 2; }
[data-net]:hover .net-ico--youtube .ni-play { transform-box: fill-box; transform-origin: center; animation: sqPop 0.5s var(--ease); }
[data-net]:hover .net-ico--sketchfab { animation: spin 1.4s var(--ease); }
[data-net]:hover .net-ico--github { animation: netWiggle 0.6s var(--ease); }
.net-ico--devis .ni-lines { stroke-dasharray: 6; stroke-dashoffset: 0; }
[data-net]:hover .net-ico--devis .ni-lines { animation: drawLines 0.7s var(--ease); }
.net-ico--formules rect { transform-box: fill-box; transform-origin: center; }
[data-net]:hover .net-ico--formules .ni-l3 { animation: stackUp 0.6s var(--ease); }
[data-net]:hover .net-ico--formules .ni-l2 { animation: stackUp 0.6s 0.07s var(--ease); }
[data-net]:hover .net-ico--demos .ni-caret { animation: blink 0.8s steps(1) infinite; }
.btn .net-ico { margin-right: 0; }
[data-net]:hover .net-ico--link, [data-net].is-done .net-ico--link { animation: netWiggle 0.6s var(--ease); }
[data-net]:hover .net-ico--share .ni-arrow { animation: arrowUp 0.7s var(--ease); }
[data-net]:hover .net-ico--whatsapp .ni-phone { transform-box: fill-box; transform-origin: center; animation: netWiggle 0.5s var(--ease) 2; }
.net-ico--mail .ni-flap { transform-box: fill-box; transform-origin: top; }
[data-net]:hover .net-ico--mail .ni-flap { animation: flapOpen 0.6s var(--ease); }

/* ------------------------------------------------------------------ contact */
.contact { padding: 150px var(--gut) 110px; scroll-margin-top: 40px; }
.contact-lede { margin: 0 0 14px; color: var(--ink-2); font-size: 17px; }
.contact-mail {
  display: inline-block;
  font: 600 clamp(30px, 7.2vw, 124px)/0.95 var(--display);
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
  transition: color 0.3s;
}
.contact-mail:hover { color: var(--ink-2); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }

/* Pied de page en colonnes, petites capitales */
.ftr { padding: 40px var(--gut) 26px; font-size: 13px; letter-spacing: 0.02em; text-transform: uppercase; }
.ftr-cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px 20px; }
.ftr-cols > div { display: grid; align-content: start; justify-items: start; gap: 8px; }
.ftr h2 { margin: 0 0 10px; font: inherit; color: var(--ink-2); }
.ftr-cols a, .ftr-cols p { margin: 0; color: var(--ink); transition: color 0.2s; }
.ftr-cols a:hover { color: var(--ink-2); }
.ftr-bottom { display: flex; flex-wrap: wrap; gap: 8px 32px; margin-top: 70px; color: var(--ink-2); }
.ftr-bottom span:first-child { margin-right: auto; }
.ftr-bottom a:hover, .ftr-bottom a.is-current { color: var(--ink); }

/* ------------------------------------------------------------------ page projet */
.p-hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: #000; }
.p-hero-media, .p-hero-media > * { position: absolute; inset: 0; width: 100%; height: 100%; }
.p-hero-media img, .p-hero-media video { object-fit: cover; }
.p-hero--contain .p-backdrop { object-fit: cover; filter: blur(40px) brightness(0.45); transform: scale(1.15); }
.p-hero--contain .p-front { top: 84px; left: var(--gut); width: calc(100% - 2 * var(--gut)); height: calc(100% - 84px - 250px); object-fit: contain; }
.p-ui { position: absolute; left: var(--gut); right: var(--gut); bottom: 34px; display: grid; justify-items: start; gap: 14px; }
.p-title {
  margin: 0; max-width: 16ch;
  font: 600 clamp(42px, 6.4vw, 104px)/0.92 var(--display);
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.p-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; width: 100%; }
/* Lecteur : une ligne fine, sans fond */
.player {
  display: flex; align-items: center; gap: 6px;
  flex: 1; max-width: 560px; min-width: 260px; height: 44px; padding: 0 4px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  background: rgba(10, 10, 10, 0.28); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  color: #fff;
}
.p-bar { position: relative; flex: 1; height: 22px; cursor: pointer; }
.p-bar::before { content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 2px; background: rgba(255,255,255,0.25); }
.p-bar i { position: absolute; left: 0; top: 10px; height: 2px; width: 0; background: #fff; }
.p-time { padding: 0 6px; color: rgba(255, 255, 255, 0.75); font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }

.p-info { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 60px; padding: 110px var(--gut) 90px; }
.p-lede { margin: 0; max-width: 28em; font: 500 clamp(24px, 2.7vw, 40px)/1.12 var(--display); letter-spacing: -0.02em; }
.p-body { margin-top: 30px; max-width: 62ch; color: var(--ink-2); font-size: 17px; line-height: 1.6; }
.p-body p { margin: 0 0 14px; }
.p-meta { margin: 0; align-self: start; }
.p-meta div { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; padding: 0 0 18px; }
.p-meta dt { color: var(--ink-2); font-size: 13px; letter-spacing: 0.02em; text-transform: uppercase; padding-top: 2px; }
.p-meta dd { margin: 0; font-size: 15px; }
.p-meta a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.p-meta a:hover { color: var(--ink-2); }

.p-gallery { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px 14px; padding: 0 var(--gut); }

/* Cadre de sélection de la galerie : suit l'image survolée, avec repères, poignées et micro-textes */
.sel {
  --sx: 0px; --sy: 0px; --sw: 0px; --sh: 0px;
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  opacity: 0; transition: opacity 0.4s;
  color: rgba(255, 255, 255, 0.7);
  font: 500 10px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.sel.is-on { opacity: 1; }
.sel > * { position: absolute; transition: left 0.55s var(--ease), top 0.55s var(--ease), width 0.55s var(--ease), height 0.55s var(--ease); }
.sel-l { background: rgba(255, 255, 255, 0.16); }
.sel-l--t, .sel-l--b { left: 0; width: 100%; height: 1px; }
.sel-l--t { top: var(--sy); }
.sel-l--b { top: calc(var(--sy) + var(--sh) - 1px); }
.sel-l--l, .sel-l--r { top: 0; width: 1px; height: 100%; }
.sel-l--l { left: var(--sx); }
.sel-l--r { left: calc(var(--sx) + var(--sw) - 1px); }
.sel-box { left: var(--sx); top: var(--sy); width: var(--sw); height: var(--sh); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45); }
.sel-h { width: 5px; height: 5px; margin: -2px 0 0 -2px; background: #fff; }
.h-tl { left: var(--sx); top: var(--sy); }
.h-tm { left: calc(var(--sx) + var(--sw) / 2); top: var(--sy); }
.h-tr { left: calc(var(--sx) + var(--sw)); top: var(--sy); }
.h-ml { left: var(--sx); top: calc(var(--sy) + var(--sh) / 2); }
.h-mr { left: calc(var(--sx) + var(--sw)); top: calc(var(--sy) + var(--sh) / 2); }
.h-bl { left: var(--sx); top: calc(var(--sy) + var(--sh)); }
.h-bm { left: calc(var(--sx) + var(--sw) / 2); top: calc(var(--sy) + var(--sh)); }
.h-br { left: calc(var(--sx) + var(--sw)); top: calc(var(--sy) + var(--sh)); }
.sel-t { white-space: nowrap; }
.sel-t--tl { left: var(--sx); top: calc(var(--sy) - 19px); }
.sel-t--tr { left: calc(var(--sx) + var(--sw)); top: calc(var(--sy) - 19px); transform: translateX(-100%); }
.sel-t--side { left: calc(var(--sx) - 17px); top: calc(var(--sy) + 12px); writing-mode: vertical-rl; transform: rotate(180deg); }
.p-gallery figure { position: relative; margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-2); }
.p-gallery figure[data-zoom] { cursor: zoom-in; }

/* Vidéos de galerie : format réel (9:16 en vertical, sur deux rangées), fond flouté, barre de lecture sous l'image */
.p-gallery .g-vid { --ar: 16 / 9; aspect-ratio: auto; overflow: visible; background: none; display: flex; flex-direction: column; container-type: inline-size; }
.p-gallery .g-vid.is-portrait { --ar: 9 / 16; grid-row: span 2; align-self: start; }
.g-media { position: relative; aspect-ratio: var(--ar); overflow: hidden; background: #050505; isolation: isolate; }
.p-gallery .g-media video { position: relative; z-index: 1; display: block; object-fit: contain; cursor: pointer; }
.p-gallery .g-bd { position: absolute; inset: -12%; width: 124%; height: 124%; object-fit: cover; filter: blur(28px) saturate(1.3) brightness(0.45); z-index: 0; pointer-events: none; }
.g-media::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: rgba(0, 0, 0, 0.28); transition: opacity 0.4s var(--ease); }
.g-vid.is-playing .g-media::after { opacity: 0; }
.g-big { position: absolute; z-index: 3; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; display: grid; place-items: center; border: 0; padding: 0; background: #f4f4f2; color: #0a0a0a; cursor: pointer; outline: 1px solid rgba(244, 244, 242, 0.7); outline-offset: 6px; transition: transform 0.35s var(--ease), opacity 0.3s, outline-offset 0.35s var(--ease); }
.g-big svg { width: 24px; height: 24px; margin-left: 3px; }
.g-big:hover { transform: scale(1.06); outline-offset: 9px; }
.g-vid.is-playing .g-big { opacity: 0; transform: scale(0.8); pointer-events: none; }
.g-ctl { display: flex; align-items: center; gap: 2px; height: 40px; padding: 0 4px; color: var(--ink); background: var(--bg-2); box-shadow: inset 0 1px 0 var(--line); font: 500 11px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 0.04em; }
.g-btn { flex: none; width: 30px; height: 30px; display: grid; place-items: center; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; opacity: 0.8; transition: opacity 0.2s, background 0.2s; }
.g-btn:hover { opacity: 1; background: color-mix(in srgb, var(--ink) 10%, transparent); }
.g-btn svg { width: 16px; height: 16px; }
.g-bar { position: relative; flex: 1; min-width: 24px; height: 18px; margin: 0 6px; cursor: pointer; touch-action: none; }
.g-bar::before, .g-bar i { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: color-mix(in srgb, var(--ink) 22%, transparent); transition: height 0.2s, margin 0.2s; }
.g-bar i { background: var(--ink); transform: scaleX(0); transform-origin: left; }
.g-bar:hover::before, .g-bar:hover i { height: 4px; margin-top: -2px; }
.g-time { flex: none; padding: 0 4px; font-variant-numeric: tabular-nums; color: var(--ink-2); white-space: nowrap; }
@container (max-width: 250px) { .g-time { display: none; } .g-btn { width: 26px; } .g-big { width: 52px; height: 52px; margin: -26px 0 0 -26px; } }
.p-gallery img, .p-gallery video { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.p-gallery figure[data-zoom]:hover img { transform: scale(1.03); }

/* Visionneuse plein écran de la galerie */
.lb {
  position: fixed; inset: 0; z-index: 80;
  display: grid; place-items: center;
  background: rgba(5, 5, 5, 0.9);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  animation: viewIn 0.3s ease both;
}
.lb-img { max-width: calc(100vw - 2 * var(--gut)); max-height: calc(100vh - 150px); max-height: calc(100svh - 150px); object-fit: contain; animation: viewIn 0.35s ease both; }
.lb-ui { position: absolute; left: var(--gut); right: var(--gut); bottom: 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.lb-count { font: 500 11px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 0.08em; color: var(--ink-2); }
.lb-nav { display: flex; gap: 8px; }
.lb-close { position: absolute; top: 20px; right: var(--gut); }
/* Croix : se dessine à l'ouverture, pivote d'un quart de tour au survol */
.lb-close .ico { transition: transform 0.45s var(--ease); }
.lb-close .ico path { stroke-dasharray: 34; stroke-dashoffset: 34; animation: crossDraw 0.55s 0.12s var(--ease) forwards; }
.lb-close:hover .ico, .lb-close:focus-visible .ico { transform: rotate(90deg) scale(1.1); }
.lb-close:active .ico { transform: rotate(90deg) scale(0.85); }
.lb.is-out { animation: lbOut 0.24s ease forwards; }
.lb.is-out .lb-img { transform: scale(0.97); transition: transform 0.24s ease; }

.p-next {
  position: relative; display: block;
  height: 70vh; height: 70svh; min-height: 380px;
  margin: 140px var(--gut) 0; overflow: hidden;
  background: #000;
  outline: 1px solid transparent; outline-offset: 5px;
  transition: outline-color 0.3s;
}
.p-next:hover { outline-color: #fff; }
.p-next img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.55; transition: transform 1.2s var(--ease), opacity 0.6s; }
.p-next:hover img { transform: scale(1.03); opacity: 0.75; }
.p-next-ui { position: absolute; left: 26px; right: 26px; bottom: 26px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.p-next-ui > div { display: grid; justify-items: start; gap: 12px; }
.p-next-title { font: 600 clamp(34px, 5vw, 80px)/0.95 var(--display); letter-spacing: -0.04em; }
.p-next-go { display: grid; place-items: center; flex: none; width: 56px; height: 56px; color: #fff; background: rgba(10, 10, 10, 0.28); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6); transition: background 0.25s, color 0.25s; }
.p-next-go .ico { width: 22px; height: 22px; }
.p-next:hover .p-next-go { background: var(--light); color: var(--on-light); }

/* Entrée en scène des éléments de la page projet après la transition */
.p-ui > *, .p-info > * { animation: riseIn 0.8s var(--ease) both; }
.p-ui > :nth-child(2) { animation-delay: 0.06s; }
.p-ui > :nth-child(3) { animation-delay: 0.12s; }
.p-ui > :nth-child(4) { animation-delay: 0.18s; }
.p-info > :nth-child(2) { animation-delay: 0.1s; }

/* ------------------------------------------------------------------ devis */
.q { max-width: 1040px; padding: 140px var(--gut) 110px; }
.q-head { display: grid; justify-items: start; gap: 18px; margin-bottom: 56px; }
.q-title { margin: 0; font: 600 clamp(44px, 7vw, 112px)/0.92 var(--display); letter-spacing: -0.045em; }
.q-lede { margin: 0; max-width: 52ch; color: var(--ink-2); font-size: 17px; }
.q-form { display: grid; gap: 34px; }
.q fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.q legend, .q-field > span { display: block; margin-bottom: 12px; padding: 0; color: var(--ink-2); font-size: 13px; letter-spacing: 0.02em; text-transform: uppercase; }
.q legend small { margin-left: 8px; font-size: 12px; text-transform: none; letter-spacing: 0; color: var(--ink-3); }
.q-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.q-chip { background: rgba(255, 255, 255, 0.06); color: var(--ink); }
.q-chip:hover { background: rgba(255, 255, 255, 0.11); }
.q-chip.opt[aria-pressed="true"] { background: var(--light); color: var(--on-light); } /* reste lisible au survol */
.q-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.q-field { display: grid; }
.q-field input, .q-field textarea {
  width: 100%; padding: 14px 15px; border: 0; border-radius: 0;
  background: transparent; color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
  font: 400 16px/1.4 var(--sans);
  transition: box-shadow 0.2s;
}
.q-field textarea { min-height: 150px; resize: vertical; }
.q-field input:hover, .q-field textarea:hover { box-shadow: inset 0 0 0 1px var(--edge); }
.q-field input:focus, .q-field textarea:focus { outline: 0; box-shadow: inset 0 0 0 1px var(--ink); }
.q-field ::placeholder { color: var(--ink-3); }
.q-checks { display: grid; gap: 12px; }
.q-check { display: flex; align-items: flex-start; gap: 12px; color: var(--ink-2); font-size: 15px; cursor: pointer; }
.q-check input {
  flex: none; width: 16px; height: 16px; margin: 3px 0 0;
  appearance: none; -webkit-appearance: none; border-radius: 0;
  box-shadow: inset 0 0 0 1px var(--edge); background: transparent; cursor: pointer;
  transition: box-shadow 0.2s, background 0.2s;
}
.q-check input:checked { background: var(--light); box-shadow: inset 0 0 0 1px var(--light), inset 0 0 0 4px var(--bg); }
.q-check a, .q-notice a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.q-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.q-notice { margin: 0; max-width: 72ch; color: var(--ink-3); font-size: 12.5px; line-height: 1.5; }
.q-error { margin: 0; color: #ff8f7a; font-size: 15px; }
.q-error:empty { display: none; }
.q-submit { justify-self: start; }
.q-n { margin-right: 10px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.q-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.q-tile {
  --solid: #171717;
  position: relative; display: grid; grid-template-rows: auto 1fr auto; justify-items: start; gap: 12px;
  min-height: 214px; padding: 14px 14px 16px; border: 0; text-align: left;
  background: rgba(255, 255, 255, 0.05); color: var(--ink);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: background 0.25s, color 0.25s, transform 0.35s var(--ease);
  animation: cardIn 0.6s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms + 120ms);
}
.q-tile:hover { background: rgba(255, 255, 255, 0.1); }
.q-tile:active { transform: scale(0.98); }
.q-tile[aria-pressed="true"] { --solid: var(--light); background: var(--light); color: var(--on-light); }
.q-tile-top { display: flex; align-items: center; justify-content: space-between; justify-self: stretch; }
.q-tile-n { font-size: 12px; letter-spacing: 0.04em; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.q-tile[aria-pressed="true"] .q-tile-n { color: rgba(10, 10, 10, 0.45); }
.q-tick { display: grid; place-items: center; width: 18px; height: 18px; box-shadow: inset 0 0 0 1px currentColor; opacity: 0.4; transition: background 0.25s, opacity 0.25s; }
.q-tick svg { width: 12px; height: 12px; fill: none; stroke: var(--light); stroke-width: 1.6; }
.q-tick path { stroke-dasharray: 12; stroke-dashoffset: 12; transition: stroke-dashoffset 0.35s var(--ease) 0.05s; }
.q-tile[aria-pressed="true"] .q-tick { background: var(--on-light); opacity: 1; }
.q-tile[aria-pressed="true"] .q-tick path { stroke-dashoffset: 0; }
.q-tile-label { font: 500 15px/1.2 var(--sans); }
.qi { align-self: center; width: 76px; height: 76px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.35; stroke-linecap: square; stroke-linejoin: miter; }
.q-tile .qi [pathLength]:not(.run) { animation: qDraw 1.1s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 60ms + 260ms); }
.q-tile.is-pop .qi { animation: qSel 0.5s var(--ease); }
.qi .t, .qi .wh, .qi .dp { transform-box: fill-box; transform-origin: center; }
.qi .f, .qi .m, .qi .cur, .qi .bd { transform-box: view-box; }
.qi-car .road { stroke-dasharray: 5 4; }
.qi-car .bd, .qi-car .wh { stroke-linejoin: round; }
.qi-car .sp { opacity: 0; transform-box: view-box; }
.q-tile:is(:hover, :focus-visible) .qi-car .sp { animation: qSpeed 0.6s linear infinite; }
@keyframes qSpeed { 0% { transform: translateX(5px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateX(-7px); opacity: 0; } }
.qi-skin .gl { transform-box: view-box; transform-origin: 24px 24px; transform: rotate(-16deg); transition: transform 0.8s var(--ease); }
.qi-skin .m { transform-origin: 24px 24px; transform: scaleX(var(--s, 1)); }
.qi-skin .lat { opacity: 0.55; }
.qi-skin .orb { stroke-width: 1; stroke-dasharray: 1.5 3; opacity: 0; transition: opacity 0.4s; }
.qi-skin .sat { fill: currentColor; stroke: none; opacity: 0; offset-path: path("M2.5 30.5C2 26 14 20 26 18s21.5-1 21 3.5c.5 4.5-9 10-21 12.5S3 35 2.5 30.5"); offset-rotate: 0deg; transition: opacity 0.4s; }
.q-tile:is(:hover, :focus-visible) .qi-skin .gl { transform: rotate(-22deg); }
.q-tile:is(:hover, :focus-visible) .qi-skin .orb { opacity: 0.6; }
.q-tile:is(:hover, :focus-visible) .qi-skin .sat { opacity: 1; animation: qSat 2.6s linear infinite; }
@keyframes qSat { 0% { offset-distance: 0%; opacity: 0.25; } 44% { opacity: 0.25; } 52% { opacity: 1; } 96% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0.25; } }
.qi-skin .ob { opacity: 0; } .q-tile:is(:hover, :focus-visible) .qi-skin .ob { opacity: 0.3; }
.qi-loop .track { opacity: 0.3; }
.qi-loop .run { stroke-width: 2.2; stroke-dasharray: 16 84; }
.qi-site .bt { fill: transparent; }
.qi-site .cur { fill: var(--solid); transform-origin: 35px 33px; }
.qi-rt .b { fill: transparent; }
.q-tile:is(:hover, :focus-visible) .qi-folio .t { animation: qPop 1.6s var(--ease) infinite; animation-delay: calc(var(--i) * 0.12s); }
.q-tile:is(:hover, :focus-visible) .qi-car .wh { animation: spin 0.7s linear infinite; }
.q-tile:is(:hover, :focus-visible) .qi-car .road { animation: qRoad 0.4s linear infinite; }
.q-tile:is(:hover, :focus-visible) .qi-car .bd { animation: qBob 0.35s ease-in-out infinite; }
.q-tile:is(:hover, :focus-visible) .qi-hard .f1 { animation: qExpT 1.8s var(--ease) infinite; }
.q-tile:is(:hover, :focus-visible) .qi-hard .f2 { animation: qExpL 1.8s var(--ease) infinite; }
.q-tile:is(:hover, :focus-visible) .qi-hard .f3 { animation: qExpR 1.8s var(--ease) infinite; }
.q-tile:is(:hover, :focus-visible) .qi-skin .m { animation: qGlobe 3.2s linear infinite; animation-delay: calc(var(--i) * -0.8s); }
.q-tile:is(:hover, :focus-visible) .qi-loop .run { animation: qRun 1.5s linear infinite; }
.q-tile:is(:hover, :focus-visible) .qi-site .cur { animation: qCur 2.2s var(--ease) infinite; }
.q-tile:is(:hover, :focus-visible) .qi-site .bt { animation: qBtn 2.2s linear infinite; }
.q-tile:is(:hover, :focus-visible) .qi-rt .b { animation: qLit 1.2s steps(1) infinite; animation-delay: calc(var(--i) * 0.3s); }
.q-tile:is(:hover, :focus-visible) .qi-rt .dp { animation: qTilt 1.2s var(--ease) infinite; }
/* Budget : jauge ; échéance : chrono, calendrier, vague */
.q-chip { gap: 10px; }
.qm { width: 22px; height: 14px; flex: none; }
.qm rect { fill: none; stroke: currentColor; stroke-width: 1; opacity: 0.4; transform-box: fill-box; transform-origin: bottom; }
.qm rect.on { fill: currentColor; stroke: none; opacity: 1; }
.q-chip:hover .qm .on, .q-chip.is-pop .qm .on { animation: qBar 0.5s var(--ease) both; animation-delay: calc(var(--i) * 60ms); }
.qt { width: 16px; height: 16px; flex: none; overflow: hidden; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: square; }
.qt-fast .hand { transform-box: view-box; transform-origin: 8px 9.2px; }
.qt-cal .day { fill: currentColor; stroke: none; }
.q-chip:is(:hover, .is-pop) .qt-fast .hand { animation: spin 0.7s linear infinite; }
.q-chip:is(:hover, .is-pop) .qt-cal .day { animation: qDay 1.6s steps(1) infinite; }
.q-chip:is(:hover, .is-pop) .qt-flex .wave { animation: qWave 0.8s linear infinite; }
/* Champs : l'icône réagit quand on écrit dedans */
.q-field > span { display: flex; align-items: center; gap: 8px; }
.qf-mail .flap { transform-box: view-box; transform-origin: 7px 3px; }
.qf-msg .pen { transform-box: fill-box; transform-origin: 0 100%; }
.qf-msg .ink { stroke-dasharray: 6; stroke-dashoffset: 6; transition: stroke-dashoffset 0.5s var(--ease); }
.q-field:focus-within .qf-name { animation: netHop 0.6s var(--ease); }
.q-field:focus-within .qf-mail .flap { animation: flapOpen 0.7s var(--ease); }
.q-field:focus-within .qf-msg .pen { animation: netWiggle 0.6s var(--ease); }
.q-field:focus-within .qf-msg .ink { stroke-dashoffset: 0; }
.q-field:focus-within > span { color: var(--ink); }
/* Envoi : l'avion part et revient ; confirmation : case cochée qui se dessine */
.q-submit:hover .qp { transform: none; animation: planeGo 0.7s var(--ease); }
.q-submit[aria-busy="true"] .qp { animation: planeGo 0.9s var(--ease) infinite; }
.q-ok { width: 64px; height: 64px; margin-bottom: 6px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: square; }
.q-ok [pathLength] { stroke-dasharray: 100; stroke-dashoffset: 100; animation: crossDraw 0.9s var(--ease) forwards; }
.q-ok path { animation-delay: 0.35s; }
.q-submit[aria-busy="true"] { opacity: 0.6; pointer-events: none; }
.q-done { display: grid; justify-items: start; gap: 18px; }
.q-done h2 { margin: 0; font: 600 clamp(28px, 3.4vw, 44px)/1 var(--display); letter-spacing: -0.03em; }
.q-done p { margin: 0; max-width: 56ch; color: var(--ink-2); }
.q-recap { display: grid; gap: 6px; margin: 0; color: var(--ink-2); font-size: 14px; }
.q-recap b { color: var(--ink); font-weight: 500; }
.q-head > *, .q-form > * { animation: riseIn 0.8s var(--ease) both; }
.q-head > :nth-child(2) { animation-delay: 0.06s; }
.q-head > :nth-child(3) { animation-delay: 0.12s; }

/* ------------------------------------------------------------------ apparition « rendu Blender » */
.px-canvas { position: absolute; z-index: 1; pointer-events: none; }
.px-canvas.is-done { opacity: 0; }
.px-wait { opacity: 0 !important; }

/* ------------------------------------------------------------------ transitions de page */
/* Transition « rendu en tuiles » : tuiles noires + grain qui se résorbe, titre et avancement au centre */
.fx { position: fixed; inset: 0; z-index: 90; pointer-events: none; visibility: hidden; }
.fx.is-active { visibility: visible; pointer-events: auto; }
.fx canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.fx-label {
  position: absolute; inset: 0;
  display: grid; place-items: center; align-content: center; gap: 14px;
  padding: 0 var(--gut); text-align: center;
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.25s, transform 0.45s var(--ease);
}
.fx-label.is-in { opacity: 1; transform: none; }
.fx-flag { display: block; width: 48px; height: 32px; object-fit: cover; }
.fx-title { max-width: 18ch; font: 600 clamp(36px, 6vw, 96px)/0.92 var(--display); letter-spacing: -0.045em; text-wrap: balance; color: var(--ink); }
.fx-status { font: 500 10px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 0.08em; color: rgba(244, 244, 242, 0.6); font-variant-numeric: tabular-nums; }
.fx-enter body::after { content: ""; position: fixed; inset: 0; z-index: 89; background: var(--bg); }

/* Image de la carte cliquée qui s'agrandit jusqu'au plein écran */
.zoom-clone { position: fixed; z-index: 91; object-fit: cover; pointer-events: none; will-change: top, left, width, height; }

/* Intro au premier chargement : lettres révélées une à une, compteur, puis double rideau */
.intro { position: fixed; inset: 0; z-index: 95; pointer-events: none; display: grid; place-items: center; background: var(--light); }
.intro-veil { position: absolute; inset: 0; background: var(--bg); }

.intro-top, .intro-foot { position: absolute; left: var(--gut); right: var(--gut); display: flex; justify-content: space-between; align-items: center; gap: 24px; font: 500 11px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.intro-top { top: 30px; animation: viewIn 0.8s 0.2s both; }
.intro-foot { bottom: 28px; animation: viewIn 0.8s 0.35s both; }
.intro-name { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 0 0.24em; font: 600 clamp(48px, 10vw, 168px)/0.9 var(--display); letter-spacing: -0.05em; color: var(--ink); }
.intro-word { display: flex; overflow: hidden; padding: 0.04em 0.02em 0.1em; margin-bottom: -0.06em; }
.intro-ch { display: inline-block; transform-origin: 0 100%; animation: introCh 1s cubic-bezier(0.16, 1, 0.3, 1) both; animation-delay: calc(0.12s + var(--i) * 0.045s); will-change: transform; }
.intro-sub { position: absolute; top: calc(50% + clamp(48px, 10vw, 168px) * 0.62); left: 0; right: 0; text-align: center; color: var(--ink-2); font-size: 13px; letter-spacing: 0.02em; animation: introSub 0.9s 0.7s var(--ease) both; }
.intro-bar { flex: 1; max-width: 340px; height: 1px; background: var(--line); overflow: hidden; }
.intro-bar i { display: block; height: 100%; background: var(--ink); transform: scaleX(0); transform-origin: 0 50%; }
.intro-count { color: var(--ink); font-variant-numeric: tabular-nums; min-width: 3ch; text-align: right; }
.intro.is-out { animation: introOut 0.95s 0.5s cubic-bezier(0.76, 0, 0.24, 1) forwards; }
.intro.is-out .intro-veil { animation: introOut 0.85s 0.36s cubic-bezier(0.76, 0, 0.24, 1) forwards; }
.intro.is-out .intro-ch { animation: introChOut 0.55s cubic-bezier(0.7, 0, 0.84, 0) both; animation-delay: calc(var(--i) * 0.022s); }
.intro.is-out .intro-sub, .intro.is-out .intro-top, .intro.is-out .intro-foot { animation: introFade 0.4s both; }
@keyframes introCh { from { transform: translateY(110%) rotate(7deg); } to { transform: none; } }
@keyframes introChOut { to { transform: translateY(-110%) rotate(-4deg); } }
@keyframes introSub { from { opacity: 0; transform: translateY(10px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes introFade { to { opacity: 0; } }

/* ------------------------------------------------------------------ pages légales */
.lg-hero { display: grid; justify-items: start; gap: 22px; padding: 150px var(--gut) 60px; }
.lg-kicker { margin: 0; font: 500 11px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.lg-title { margin: 0; max-width: 16ch; font: 600 clamp(44px, 7vw, 112px)/0.92 var(--display); letter-spacing: -0.045em; text-wrap: balance; }
.lg-lede { margin: 0; max-width: 60ch; color: var(--ink-2); font-size: 18px; line-height: 1.55; }
.lg-meta { display: flex; flex-wrap: wrap; gap: 18px 48px; margin: 16px 0 0; }
.lg-meta dt { font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-2); }
.lg-meta dd { margin: 5px 0 0; font-size: 15px; }
.lg-body { display: grid; grid-template-columns: minmax(200px, 1fr) minmax(0, 3fr); gap: 60px; padding: 40px var(--gut) 80px; }
.lg-toc { position: sticky; top: 120px; align-self: start; display: grid; gap: 2px; }
.lg-toc-label { margin: 0 0 12px; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); }
.lg-toc a { display: flex; gap: 12px; padding: 6px 0; color: var(--ink-2); font-size: 14px; line-height: 1.3; transition: color 0.2s; }
.lg-toc a span { flex: none; font: 500 11px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--ink-3); }
.lg-toc a:hover, .lg-toc a.is-current { color: var(--ink); }
.lg-content { display: grid; gap: 64px; max-width: 820px; }
.lg-sec { scroll-margin-top: 110px; }
.lg-sec header { display: flex; align-items: baseline; gap: 16px; margin-bottom: 18px; }
.lg-n { font: 500 11px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--ink-3); }
.lg-sec h2 { margin: 0; font: 600 clamp(24px, 2.4vw, 32px)/1.1 var(--display); letter-spacing: -0.02em; }
.lg-block { scroll-margin-top: 110px; }
.lg-block h3 { margin: 0 0 14px; font: 500 12px/1.2 var(--sans); letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-2); }
.lg-text { color: rgba(244, 244, 242, 0.78); font-size: 16px; line-height: 1.7; }
.lg-text p { margin: 0 0 14px; }
.lg-text ul, .lg-text ol { margin: 0 0 14px; padding-left: 20px; }
.lg-text li { margin-bottom: 6px; }
.lg-text a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.lg-text a:hover { color: var(--ink-2); }
.lg-text strong, .lg-text b { color: var(--ink); font-weight: 600; }
.lg-text dl { display: grid; grid-template-columns: minmax(150px, 230px) 1fr; gap: 10px 24px; margin: 0 0 16px; }
.lg-text dt { padding-top: 3px; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-2); }
.lg-text dd { margin: 0; color: var(--ink); }
.lg-text table { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: 14px; }
.lg-text th, .lg-text td { padding: 8px 12px 8px 0; text-align: left; vertical-align: top; }
.lg-text th { font-weight: 500; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-2); }
.lg-cta { display: grid; justify-items: start; gap: 18px; padding-top: 10px; }
.lg-cta p { margin: 0; color: var(--ink-2); }
.lg-mail { font: 600 clamp(26px, 4vw, 56px)/1 var(--display); letter-spacing: -0.035em; overflow-wrap: anywhere; transition: color 0.3s; }
.lg-mail:hover { color: var(--ink-2); }
@media (max-width: 820px) {
  .lg-body { grid-template-columns: 1fr; gap: 36px; }
  .lg-toc { position: static; }
  .lg-text dl { grid-template-columns: 1fr; gap: 2px 0; }
  .lg-text dd { margin-bottom: 12px; }
}
@media print {
  .hdr, .ftr, .lg-toc, .lg-cta, .fx { display: none !important; }
  body { background: #fff; color: #000; }
  .lg-text, .lg-lede, .lg-meta dt, .lg-text dt, .lg-kicker { color: #000; }
  .lg-hero { padding-top: 0; }
}

/* ------------------------------------------------------------------ animations */
@keyframes viewIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes cardIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes riseIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes titleIn { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes lineX { from { transform: scaleX(0); } to { transform: none; } }
@keyframes lineY { from { transform: scaleY(0); } to { transform: none; } }
@keyframes sqPop { 0% { transform: scale(1); } 45% { transform: scale(0.35); } 100% { transform: scale(1); } }
@keyframes flipY { from { transform: perspective(40px) rotateY(0); } to { transform: perspective(40px) rotateY(360deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes drawLines { from { stroke-dashoffset: 6; } to { stroke-dashoffset: 0; } }
@keyframes stackUp { 0% { transform: none; } 40% { transform: translateY(-2.5px); } 100% { transform: none; } }
@keyframes arrowUp { 0% { transform: none; } 40% { transform: translateY(-3px); opacity: 0; } 41% { transform: translateY(3px); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes flapOpen { 0%, 100% { transform: none; } 45% { transform: scaleY(-1); } }
@keyframes arrowLoop { 0% { transform: none; opacity: 1; } 45% { transform: translateX(10px); opacity: 0; } 46% { transform: translateX(-10px); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes chipIn { from { opacity: 0; transform: translateY(-6px) scale(0.85); } to { opacity: 1; transform: none; } }
@keyframes crossDraw { to { stroke-dashoffset: 0; } }
@keyframes lbOut { to { opacity: 0; } }
@keyframes qDraw { from { stroke-dasharray: 100; stroke-dashoffset: 100; } to { stroke-dasharray: 100; stroke-dashoffset: 0; } }
@keyframes qSel { 0% { transform: none; } 35% { transform: scale(0.82); } 70% { transform: scale(1.08); } 100% { transform: none; } }
@keyframes qPop { 0%, 45%, 100% { transform: none; } 15% { transform: scale(0); } 32% { transform: scale(1.12); } }
@keyframes qRoad { to { stroke-dashoffset: 9; } }
@keyframes qBob { 50% { transform: translateY(-0.8px); } }
@keyframes qExpT { 0%, 100% { transform: none; } 40%, 62% { transform: translateY(-4.5px); } }
@keyframes qExpL { 0%, 100% { transform: none; } 40%, 62% { transform: translate(-4px, 2.4px); } }
@keyframes qExpR { 0%, 100% { transform: none; } 40%, 62% { transform: translate(4px, 2.4px); } }
@keyframes qGlobe { 0% { transform: scaleX(1); } 12.5% { transform: scaleX(0.924); } 25% { transform: scaleX(0.707); } 37.5% { transform: scaleX(0.383); } 50% { transform: scaleX(0.001); } 62.5% { transform: scaleX(-0.383); } 75% { transform: scaleX(-0.707); } 87.5% { transform: scaleX(-0.924); } 100% { transform: scaleX(-1); } }
@keyframes qRun { to { stroke-dashoffset: -100; } }
@keyframes qCur { 0% { transform: translate(-14px, -12px); opacity: 0; } 15% { opacity: 1; } 50% { transform: none; } 58% { transform: scale(0.84); } 66%, 100% { transform: none; opacity: 1; } }
@keyframes qBtn { 0%, 57% { fill: transparent; } 58%, 82% { fill: currentColor; } 83%, 100% { fill: transparent; } }
@keyframes qLit { 0% { fill: currentColor; } 25%, 100% { fill: transparent; } }
@keyframes qTilt { 0%, 100% { transform: none; } 25% { transform: rotate(-12deg); } 75% { transform: rotate(12deg); } }
@keyframes qBar { from { transform: scaleY(0); } to { transform: none; } }
@keyframes qDay { 0% { transform: none; } 25% { transform: translateX(3.5px); } 50% { transform: translateX(7px); } 75% { transform: translateY(3px); } }
@keyframes qWave { from { transform: none; } to { transform: translateX(7px); } }
@keyframes planeGo { 0% { transform: none; opacity: 1; } 45% { transform: translate(9px, -9px); opacity: 0; } 46% { transform: translate(-9px, 9px); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes abDraw { 0% { stroke-dasharray: 100; stroke-dashoffset: 100; } 60%, 100% { stroke-dasharray: 100; stroke-dashoffset: 0; } }
@keyframes abPop { 0%, 100% { transform: none; } 30% { transform: scale(0.4); } 60% { transform: scale(1.15); } }
@keyframes abL { 0%, 100% { transform: none; } 40%, 60% { transform: translateX(-2.5px); } }
@keyframes abR { 0%, 100% { transform: none; } 40%, 60% { transform: translateX(2.5px); } }
@keyframes abFade { 0%, 100% { opacity: 1; } 40%, 60% { opacity: 0.15; } }
@keyframes abRec { 0% { opacity: 1; } 25% { opacity: 0; } 50% { opacity: 1; } 75% { opacity: 0; } }
@keyframes abClap { 0%, 100% { transform: none; } 25% { transform: rotate(-16deg); } 42% { transform: none; } }
@keyframes abSwing { 0%, 100% { transform: none; } 25% { transform: rotate(18deg); } 70% { transform: rotate(-12deg); } }
@keyframes abPage { 0%, 100% { transform: none; } 40%, 60% { transform: scaleX(-1); } }
@keyframes ctLetter { 0%, 100% { transform: none; } 40%, 65% { transform: translateY(-7px); } }
@keyframes ctWave { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }
@keyframes ctFanBack { 0%, 100% { transform: none; } 40%, 65% { transform: translate(4px, -4px); } }
@keyframes ctFanFront { 0%, 100% { transform: none; } 40%, 65% { transform: translate(-4px, 4px); } }
@keyframes fmDown { 0% { transform: none; opacity: 1; } 45% { transform: translateY(8px); opacity: 0; } 46% { transform: translateY(-8px); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes fmSpark { 0%, 100% { transform: none; opacity: 1; } 50% { transform: scale(0.4) rotate(90deg); opacity: 0.3; } }
@keyframes fmOpen { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes wdAwn { 0%, 100% { transform: none; } 50% { transform: translateY(-1.5px); } }
@keyframes wdCta { 0%, 49% { fill: currentColor; } 50%, 100% { fill: none; } }
@keyframes wdBeat { from { stroke-dashoffset: 40; } to { stroke-dashoffset: -40; } }
@keyframes netHop { 0% { transform: none; } 35% { transform: translateY(-4px) rotate(-8deg); } 65% { transform: translateY(1px) rotate(4deg); } 100% { transform: none; } }
@keyframes netWiggle { 0%, 100% { transform: none; } 25% { transform: rotate(-12deg); } 50% { transform: rotate(10deg); } 75% { transform: rotate(-6deg); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
@keyframes introOut { to { clip-path: inset(0 0 100% 0); } }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1100px) {
  .grid[data-cols="4"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .p-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hdr-role { display: none; }
  .services { grid-template-columns: 1fr 1fr; }
  .ab-sec { grid-template-columns: 1fr; gap: 26px; margin-top: 110px; }
  .ab-label { position: static; }
  .ftr-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .hdr { grid-template-columns: repeat(3, minmax(0, 1fr)); padding-top: 18px; }
  .hdr-name { grid-area: 1 / 1 / 2 / 3; }
  .hdr-contact { grid-area: 1 / 3; }
  .hdr-projects { grid-area: 2 / 1; }
  .hdr-about { grid-area: 2 / 2; }
  .hdr-lang { grid-area: 2 / 3; }
  .hdr-role, .hdr-clock { display: none; }
  .stage-right { display: none; }
  .sel-t--side { display: none; }
  .p-info { grid-template-columns: 1fr; gap: 40px; padding-top: 80px; }
  .p-hero--contain .p-front { top: 110px; height: calc(100% - 110px - 270px); }
  .grid, .grid[data-cols] { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 12px; }
  .gsize { display: none; }
  .row { grid-template-columns: 50px minmax(0, 1fr) 90px 46px; gap: 12px; }
  .row .r-type, .row .r-soft { display: none; }
  .p-license { position: static; justify-items: start; padding: 0 var(--gut); margin-top: 18px; }
  .social-list a { grid-template-columns: auto minmax(0, 1fr) auto; gap: 0 14px; }
  .sl-handle { display: none; }
  .p-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 10px; }
  .ab-head { grid-template-columns: 1fr; gap: 44px; }
  .ab-photo { max-width: 460px; }
  .ab-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tl-item { grid-template-columns: 44px minmax(0, 1fr); gap: 0 20px; padding-bottom: 54px; }
  .tl-when, .tl-what { grid-column: 2; }
  .ab-dips { grid-template-columns: 1fr; }
  .q-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ct-ways { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wd-works, .wd-svcs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wd-quality { grid-template-columns: 1fr; }
  .fm-plans { grid-template-columns: 1fr; gap: 22px; }
  .fm-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fm-needs { grid-template-columns: 1fr; }
  .fm-shots { grid-template-columns: 1fr; }
  .fm-shot:first-child { grid-row: auto; }
  .fm-shot:first-child .fm-shot-media { aspect-ratio: 16 / 9; }
  .ct-info { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  :root { --gut: 14px; }
  .grid, .grid[data-cols] { grid-template-columns: 1fr; gap: 40px; }
  .services { grid-template-columns: 1fr; gap: 32px; margin-top: 60px; }
  .work { padding-top: 90px; }
  .work-head { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "lede" "tools" "sub"; gap: 18px; margin-bottom: 40px; }
  .work-lede { justify-self: start; }
  .work-tools { justify-content: flex-start; }
  .seg { gap: 8px; }
  .opt { padding: 0 11px; font-size: 13px; }
  .q-row { grid-template-columns: 1fr; }
  .q-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .q-tile { min-height: 168px; }
  .qi { width: 56px; height: 56px; }
  .ab, .ct { padding-top: 100px; }
  .ct-ways { grid-template-columns: 1fr; }
  .wd-works, .wd-svcs { grid-template-columns: 1fr; }
  .wd-svc { min-height: 200px; }
  .fm-steps { grid-template-columns: 1fr; }
  .fm-hero { padding-top: 110px; }
  .ct-tile { min-height: 230px; }
  .ct-mail { margin-top: 70px; }
  .ab-list li { grid-template-columns: 44px minmax(0, 1fr); }
  .ab-meta { grid-column: 2; text-align: left; }
  .ab-list--body .ab-meta { margin-top: 0; }
  .p-gallery { gap: 10px; }
  .player { min-width: 0; flex-basis: 100%; }
  .p-next-go { width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0ms !important; transition-duration: 0.01ms !important; }
}

/* ------------------------------------------------------------------ thème clair */
/* Activé par html[data-theme="light"] (theme.js). Mêmes formes, papier chaud et encre noire.
   Ce qui est posé sur une image (diaporama, cartes, lecteur) reste blanc. */
html[data-theme="light"] {
  --bg: #f1f0ec;
  --bg-2: #e6e5e0;
  --ink: #0d0d0d;
  --ink-2: rgba(13, 13, 13, 0.62);
  --ink-3: rgba(13, 13, 13, 0.4);
  --line: rgba(13, 13, 13, 0.13);
  --edge: rgba(13, 13, 13, 0.3);
  --light: #0d0d0d;
  --on-light: #f1f0ec;
  --tile: rgba(13, 13, 13, 0.045);
  --tile-h: rgba(13, 13, 13, 0.085);
  --dim: rgba(241, 240, 236, 0.55);
  color-scheme: light;
  scrollbar-color: #c9c8c2 var(--bg);
}
/* Tuiles : voile noir léger au lieu du voile blanc */
html[data-theme="light"] :is(.fm-plan, .wd-svc, .ct-tile, .q-tile, .q-chip, .ab-list li, .fm-aside, .fm-table .is-featured) { background: var(--tile); }
html[data-theme="light"] :is(.fm-plan:hover, .q-tile:hover, .q-chip:hover, .ab-list li:hover) { background: var(--tile-h); }
html[data-theme="light"] .fm-table tbody tr:hover > * { background-color: var(--tile-h); }
html[data-theme="light"] :is(.fm-plan, .ct-tile, .q-tile) { --solid: #e4e3de; }
html[data-theme="light"] :is(.fm-plan--featured, .fm-plan--featured:hover, .ct-tile:hover, .ct-tile:focus-visible, .q-tile[aria-pressed="true"]) { --solid: var(--light); background: var(--light); }
html[data-theme="light"] :is(.wd-svc:hover, .wd-svc:focus-visible) { background: var(--light); }
/* Textes secondaires sur une tuile inversée */
html[data-theme="light"] :is(.opt[aria-selected="true"] small, .opt[aria-pressed="true"] small, .fm-plan--featured .fm-n, .fm-plan--featured .fm-price s, .wd-svc:hover .fm-n, .ct-tile:hover .ct-n, .q-tile[aria-pressed="true"] .q-tile-n) { color: var(--dim); }
html[data-theme="light"] :is(.fm-plan--featured .fm-hook, .wd-svc:hover .wd-svc-body, .ct-tile:hover .ct-tile-txt span) { color: rgba(241, 240, 236, 0.72); }
html[data-theme="light"] .fm-plan--featured .fm-feats { border-top-color: rgba(241, 240, 236, 0.18); }
html[data-theme="light"] .btn--ghost { background: rgba(255, 255, 255, 0.45); }
html[data-theme="light"] .about-bio .w { color: rgba(13, 13, 13, 0.14); }
html[data-theme="light"] .about-bio .w.is-lit { color: rgba(13, 13, 13, 0.7); }
html[data-theme="light"] .fx-status { color: var(--ink-2); }
html[data-theme="light"] .lg-text { color: rgba(13, 13, 13, 0.78); }
html[data-theme="light"] .wd-studio {
  --accent: #0d0d0d; --on-accent: #f1f0ec; --surface: rgba(13, 13, 13, 0.04); --surface-2: rgba(13, 13, 13, 0.07);
  --hover: rgba(13, 13, 13, 0.1); --ink-12: rgba(13, 13, 13, 0.13); --ink-6: rgba(13, 13, 13, 0.6); --ink-78: rgba(13, 13, 13, 0.75);
}
/* En-tête : encre noire et voile clair au défilement ; reste blanc tant qu'il est posé sur l'image d'ouverture */
html[data-theme="light"] .hdr { color: rgba(13, 13, 13, 0.82); text-shadow: none; }
html[data-theme="light"] .hdr :is(a:hover, button:hover, .is-current) { color: var(--ink); }
html[data-theme="light"] .hdr .pulse { background: currentColor; }
html[data-theme="light"] .hdr::before { background: linear-gradient(to bottom, rgba(241, 240, 236, 0.94), rgba(241, 240, 236, 0.76) 55%, rgba(241, 240, 236, 0)); }
html[data-theme="light"] body:not(.is-scrolled):has([data-view="home"]:not([hidden]), [data-view="project"]:not([hidden])) .hdr { color: rgba(255, 255, 255, 0.86); text-shadow: 0 1px 14px rgba(0, 0, 0, 0.35); }
html[data-theme="light"] body:not(.is-scrolled):has([data-view="home"]:not([hidden]), [data-view="project"]:not([hidden])) .hdr :is(a, button):hover { color: #fff; }

html[data-theme="light"] :is(.stage, .p-hero, .card-media, .p-next, .player, .lb, .wd-live) {
  --ink: #f4f4f2; --ink-2: rgba(244, 244, 242, 0.6); --ink-3: rgba(244, 244, 242, 0.34); --line: rgba(244, 244, 242, 0.14); --edge: rgba(244, 244, 242, 0.3); --light: #f4f4f2; --on-light: #0a0a0a; color: var(--ink);
}
/* Icône de bascule : lune (sombre) <-> soleil (clair). Le croissant glisse hors du disque,
   les rayons jaillissent un par un, et un cadre carré se trace au survol. */
.hdr-theme { grid-area: 2 / 6; justify-self: end; position: relative; display: grid; place-items: center; width: 1.25em; height: 1.25em; margin-top: -0.05em; padding: 0; border: 0; background: none; color: inherit; }
.hdr-theme svg { width: 100%; height: 100%; overflow: visible; fill: none; stroke: currentColor; transform: rotate(-35deg); transition: transform 0.8s cubic-bezier(0.5, -0.5, 0.25, 1.5); }
.hdr-theme.is-sun svg { transform: rotate(90deg); }
.hdr-theme .thm-core { fill: currentColor; stroke: none; r: 8px; transition: r 0.7s cubic-bezier(0.5, -0.5, 0.25, 1.5); }
.hdr-theme.is-sun .thm-core { r: 4.6px; }
.hdr-theme .thm-mc { transition: cx 0.65s cubic-bezier(0.75, 0, 0.15, 1), cy 0.65s cubic-bezier(0.75, 0, 0.15, 1); }
.hdr-theme.is-sun .thm-mc { cx: 31px; cy: -8px; }
.hdr-theme .thm-rays { transform-box: view-box; transform-origin: 12px 12px; }
.hdr-theme .thm-rays line { stroke-width: 2; stroke-linecap: square; transform-box: view-box; transform-origin: 12px 12px; scale: 0.3; opacity: 0; transition: scale 0.55s cubic-bezier(0.5, -0.6, 0.3, 1.7), opacity 0.25s; transition-delay: calc((7 - var(--i)) * 25ms); }
.hdr-theme.is-sun .thm-rays line { scale: 1; opacity: 1; transition-delay: calc(var(--i) * 45ms + 180ms); }
.hdr-theme::before { content: ""; position: absolute; inset: -6px; box-shadow: inset 0 0 0 1px currentColor; opacity: 0; transform: scale(0.5) rotate(-45deg); transition: transform 0.5s cubic-bezier(0.5, -0.5, 0.25, 1.5), opacity 0.3s; pointer-events: none; }
.hdr-theme:hover::before, .hdr-theme:focus-visible::before { opacity: 0.45; transform: none; }
.hdr-theme.is-sun:hover .thm-rays { animation: thmSpin 5s linear infinite; }
.hdr-theme:not(.is-sun):hover svg { transform: rotate(-55deg); }
.hdr-theme.is-pop { animation: thmPop 0.7s cubic-bezier(0.5, -0.6, 0.3, 1.6); }
@keyframes thmSpin { to { transform: rotate(360deg); } }
@keyframes thmPop { 35% { transform: scale(0.62); } 70% { transform: scale(1.18); } }
/* Bascule de la page : l'ancien thème reste dessous, le nouveau s'ouvre en cercle depuis l'icône */
html.thm-vt::view-transition-old(root), html.thm-vt::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
@media (max-width: 820px) {
  .hdr-theme { grid-area: 2 / 3; justify-self: end; width: 20px; height: 20px; margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hdr-theme, .hdr-theme * { transition: none !important; animation: none !important; }
}

/* ------------------------------------------------------------------ bandeau viewport (orb.js) */
/* Cadre de viewport 3D : coins en équerre, infos en monospace, sphère de pixels en canvas */
.orb { position: relative; height: clamp(420px, 64vh, 680px); margin-top: 110px; overflow: hidden; color: var(--ink); background: radial-gradient(ellipse 60% 70% at 66% 50%, color-mix(in srgb, var(--ink) 5%, transparent), transparent 70%); cursor: grab; touch-action: pan-y; user-select: none; }
.orb.is-drag { cursor: grabbing; }
.orb canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.orb-hud { position: absolute; top: 24px; display: grid; gap: 6px; font: 500 10.5px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); pointer-events: none; }
.orb-hud b { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.orb-hud--tl { left: 32px; } .orb-hud--tr { right: 32px; justify-items: end; }
.orb-title { position: absolute; left: 32px; bottom: 28px; margin: 0; max-width: 9ch; font: 600 clamp(44px, 6.4vw, 108px)/0.9 var(--display); letter-spacing: -0.045em; pointer-events: none; }
.orb-hint { position: absolute; right: 32px; bottom: 30px; font: 500 10.5px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); pointer-events: none; }
@media (max-width: 820px) {
  .orb { height: 520px; margin-top: 80px; }
  .orb-hud--tl { left: 22px; } .orb-hud--tr { right: 22px; }
  .orb-title { left: 22px; bottom: 22px; font-size: 46px; }
  .orb-hint { display: none; }
}

/* ------------------------------------------------------------------ paiements acceptés (pay.js) */
/* Icônes au trait dans un cadre carré fin ; au survol de la bande, la puce clignote et les colonnes se lèvent */
.ftr-cols { grid-template-columns: 2fr repeat(4, minmax(0, 1fr)); }
.ftr-pay { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 64px; padding-top: 22px; border-top: 1px solid var(--line); }
.ftr-pay:empty { display: none; }
.pay-label { color: var(--ink-2); }
.pay-icons { display: flex; gap: 8px; }
.pay-m { position: relative; display: grid; place-items: center; width: 52px; height: 36px; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow 0.3s, background 0.3s; }
.pay-m:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.pay-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pay-ico { width: 34px; height: 24px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: square; stroke-linejoin: miter; }
.pay-ico .pb { stroke-width: 3; opacity: 0.85; }
.pay-ico .pn { opacity: 0.5; }
.pay-ico .pw { opacity: 0.6; transform-box: fill-box; transform-origin: left center; }
.pay-ico .col { transform-box: fill-box; transform-origin: bottom; }
.pay-ico .coin { fill: currentColor; stroke: none; transform-box: fill-box; transform-origin: center; }
.pay-m:hover .pay-ico--card { animation: payTilt 0.7s var(--ease); }
.pay-m:hover .pay-ico .pw { animation: payWave 1.1s ease-out infinite; }
.pay-m:hover .pay-ico .pc { animation: payChip 1.1s steps(1) infinite; }
.pay-m:hover .pay-ico .col { animation: payCol 0.9s var(--ease) both; animation-delay: calc(var(--i) * 70ms); }
.pay-m:hover .pay-ico .coin { animation: payCoin 0.9s var(--ease); }
.pay-note { color: var(--ink-2); text-transform: none; letter-spacing: 0; font-size: 13px; }
@keyframes payTilt { 40% { transform: rotate(-6deg) translateY(-2px); } }
@keyframes payWave { 0% { opacity: 0; transform: scale(0.6); } 40% { opacity: 0.9; } 100% { opacity: 0; transform: scale(1.25); } }
@keyframes payChip { 50% { opacity: 0.35; } }
@keyframes payCol { 0% { transform: scaleY(1); } 40% { transform: scaleY(0.2); } 100% { transform: scaleY(1); } }
@keyframes payCoin { 0% { transform: translateY(-10px); opacity: 0; } 60% { transform: translateY(1px); opacity: 1; } }
.ftr-bottom { margin-top: 26px; }
@media (max-width: 820px) { .ftr-cols { grid-template-columns: 1fr 1fr; } .pay-note { flex-basis: 100%; } }
