/* =========================================================
   TEFLEX CREATIVE STUDIO — Landing page
   Jetons : docs/02-identite-visuelle.md (aucune couleur en dur hors jetons)
   ========================================================= */

/* ---------- 1. Jetons ---------- */
:root {
  --tfx-noir: #191D20;
  --tfx-ardoise: #4A5567;
  --tfx-orange: #FE5E3A;
  --tfx-orange-texte: #C93C1B;
  --tfx-blanc: #FFFFFF;
  --tfx-brume: #F8F9FB;

  /* dérivés (mélanges des jetons, pas de nouvelles teintes) */
  --line-dark: color-mix(in srgb, var(--tfx-noir) 12%, transparent);
  --line-light: color-mix(in srgb, var(--tfx-blanc) 14%, transparent);
  --muted-on-dark: color-mix(in srgb, var(--tfx-blanc) 74%, var(--tfx-noir));

  --font: "Montserrat", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --fs-display: clamp(2.5rem, 0.9rem + 3.7vw, 4.75rem);
  --fs-h2: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem);
  --fs-h3: clamp(1.3125rem, 1.15rem + 0.5vw, 1.625rem);
  --fs-body: clamp(1.0625rem, 1rem + 0.2vw, 1.125rem);
  --fs-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);

  --container: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
  --header-h: 88px;
  --header-h-compact: 64px;

  /* La coupe en biais : pente unique 1 pour 2 (≈ 26,5°), descendant vers la droite */
  --cut: 10px;

  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --t-fast: 180ms;
  --slide-ms: 6500ms;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h-compact); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--tfx-noir);
  background: var(--tfx-noir);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h2 { font-size: var(--fs-h2); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; }
h3 { font-size: var(--fs-h3); font-weight: 700; line-height: 1.25; }

:focus-visible { outline: 3px solid var(--tfx-orange); outline-offset: 3px; }
.tone-orange :focus-visible { outline-color: var(--tfx-noir); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 16px; top: -100px; z-index: 200;
  background: var(--tfx-orange); color: var(--tfx-noir); font-weight: 700;
  padding: 12px 18px; text-decoration: none;
}
.skip-link:focus { top: 16px; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }

/* Tons de section : le rythme des quatre fonds */
.tone-noir   { background: var(--tfx-noir);   color: var(--tfx-blanc); }
.tone-blanc  { background: var(--tfx-blanc);  color: var(--tfx-noir); }
.tone-brume  { background: var(--tfx-brume);  color: var(--tfx-noir); }
.tone-ardoise{ background: var(--tfx-ardoise);color: var(--tfx-blanc); }
.tone-orange { background: var(--tfx-orange); color: var(--tfx-noir); }

/* Monogramme : déclinaison « fond noir » */
.mono--noir .mono__bar { fill: var(--tfx-blanc); }
.mono--noir .mono__tl  { fill: var(--tfx-ardoise); }
.mono--noir .mono__tr  { fill: var(--tfx-orange); }

/* ---------- 3. Boutons & liens ---------- */
.btn {
  --c: 8px;
  display: inline-flex; align-items: center; gap: 0.6em;
  font-weight: 700; font-size: 1rem; line-height: 1.2;
  padding: 0.95em 1.5em;
  text-decoration: none;
  clip-path: polygon(0 0, 100% 0, 100% 100%, calc(var(--c) * 2) 100%, 0 calc(100% - var(--c)));
  transition: background-color var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out), translate var(--t-fast) var(--ease-out);
  white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: square; }
.btn--lg { font-size: 1.0625rem; padding: 1.15em 1.75em; --c: 11px; }
.btn--primary { background: var(--tfx-orange); color: var(--tfx-noir); }
.btn--primary:hover { background: var(--tfx-blanc); }
.tone-blanc .btn--primary:hover, .tone-brume .btn--primary:hover { background: var(--tfx-noir); color: var(--tfx-blanc); }
.btn--dark { background: var(--tfx-noir); color: var(--tfx-blanc); }
.btn--dark:hover { background: var(--tfx-blanc); color: var(--tfx-noir); }
.btn--ghost { background: var(--tfx-ardoise); color: var(--tfx-blanc); }
.btn--ghost:hover { background: var(--tfx-blanc); color: var(--tfx-noir); }
.btn:hover { translate: 0 -2px; }
.btn:active { translate: 0 1px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-weight: 700; text-decoration: none;
  padding-block: 0.6em;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; /* soulignement animé (trait plein, pas un dégradé) */
  transition: background-size 220ms var(--ease-out);
}
.link-arrow svg { width: 22px; height: 22px; fill: none; stroke: var(--tfx-orange); stroke-width: 1.75; stroke-linecap: square; transition: translate var(--t-fast) var(--ease-out); }
.link-arrow:hover { background-size: 100% 2px; }
.link-arrow:hover svg { translate: 4px 0; }

/* ---------- 4. Barre de progression (la « barre ») ---------- */
.scroll-progress { display: none; }

/* ---------- 5. En-tête ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  color: var(--tfx-blanc);
  transition: height 240ms var(--ease-out), background-color 240ms var(--ease-out);
}
.site-header.is-compact {
  height: var(--header-h-compact);
  background: rgba(25, 29, 32, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line-light);
}
.site-header__inner { height: 100%; display: flex; align-items: center; gap: 32px; }

.logo { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--tfx-blanc); }
.logo .mono { width: 40px; height: auto; transition: width 240ms var(--ease-out); }
.is-compact .logo .mono { width: 34px; }
.logo__type { display: flex; flex-direction: column; line-height: 1; }
.logo__name { font-weight: 800; font-size: 1.125rem; letter-spacing: 0.35em; margin-right: -0.35em; }
.logo__sub { font-weight: 700; font-size: 0.5625rem; letter-spacing: 0.3em; color: var(--tfx-ardoise); margin-top: 6px; filter: brightness(1.45); }
.logo--lg .mono { width: 56px; }
.logo--lg .logo__name { font-size: 1.375rem; }
.logo--lg .logo__sub { font-size: 0.6875rem; }

.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 6px; }
.site-nav a {
  position: relative; display: block;
  padding: 10px 14px;
  font-weight: 600; font-size: 0.9375rem; text-decoration: none;
  color: var(--muted-on-dark);
  transition: color var(--t-fast) var(--ease-out);
}
.site-nav a::before {
  content: ""; position: absolute; left: 14px; right: 14px; top: -2px; height: 6px;
  background: var(--tfx-orange);
  scale: 0 1; transform-origin: left;
  transition: scale 260ms var(--ease-expo);
}
.site-nav a:hover, .site-nav a.is-active { color: var(--tfx-blanc); }
.site-nav a.is-active::before { scale: 1 1; }
.site-header__cta { padding: 0.8em 1.25em; font-size: 0.9375rem; }

.menu-toggle { display: none; width: 48px; height: 48px; margin-left: auto; align-items: center; justify-content: center; }
.menu-toggle__lines { display: grid; gap: 7px; width: 26px; }
.menu-toggle__lines span { display: block; height: 3px; background: var(--tfx-blanc); }
.menu-toggle__lines span:last-child { width: 70%; justify-self: end; background: var(--tfx-orange); }

/* Menu mobile */
.menu {
  width: 100%; height: 100%; max-width: none; max-height: none; margin: 0;
  border: 0; padding: 20px var(--gutter) 32px;
  background: var(--tfx-noir); color: var(--tfx-blanc);
  flex-direction: column;
  overflow-y: auto;
  opacity: 0; translate: 0 -12px;
  transition: opacity 200ms var(--ease-out), translate 200ms var(--ease-out), display 200ms allow-discrete, overlay 200ms allow-discrete;
}
.menu[open] { display: flex; opacity: 1; translate: 0 0; }
@starting-style { .menu[open] { opacity: 0; translate: 0 -12px; } }
.menu::backdrop { background: var(--tfx-noir); }
.menu__top { display: flex; align-items: center; justify-content: space-between; height: 48px; }
.menu__top .mono { width: 36px; }
.menu__close { width: 48px; height: 48px; display: grid; place-items: center; }
.menu__close svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square; }
.menu__links { margin-top: 8vh; display: grid; gap: 4px; }
.menu__links a {
  display: block; padding: 8px 0;
  font-size: var(--fs-h2); font-weight: 800; line-height: 1.15; text-decoration: none;
}
.menu__links a:hover { color: var(--tfx-orange); }
.menu__actions { margin-top: auto; display: grid; gap: 12px; }
.menu__actions .btn { justify-content: center; }

/* ---------- 6. Ouverture (hero) ---------- */
.hero { position: relative; overflow: clip; }
.hero__stage {
  position: relative;
  max-width: 1600px; margin-inline: auto;
  height: clamp(760px, 100svh, 1000px);
  --px: 0; --py: 0;
}
.hero__collage { position: absolute; inset: var(--header-h) 0 0 0; }
.hero__collage > * { position: absolute; }

/* Profondeur au survol (parallaxe pointeur, pilotée par --px / --py) */
.depth { translate: calc(var(--px) * var(--d, 0) * 1px) calc(var(--py) * var(--d, 0) * 1px); }

/* Trames de points */
.dots {
  background-image: radial-gradient(circle, var(--tfx-ardoise) 1.5px, transparent 1.6px);
  background-size: 16px 16px;
  opacity: 0.9;
}
.dots--tl { left: 2.5%; top: 24%; width: 9%; height: 24%; }
.dots--br { right: 2.5%; bottom: 7%; width: 9%; height: 22%; }

/* Formes pleines du collage */
.block, .ph { --shape: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0 100%); clip-path: var(--shape); }
.block--orange-a { left: 18%; top: 5%; width: 28%; height: 11%; background: var(--tfx-orange); }
.block--orange-c { left: 63%; top: 5%; width: 23%; height: 59%; background: var(--tfx-orange); }
.block--ardoise {
  left: 37%; top: 1%; width: 27%; height: 74%;
  background: var(--tfx-ardoise);
  /* bas coupé selon la pente du logo */
  --shape: polygon(0 0, 100% 0, 100% 100%, 100% 100%, 0 70%);
}

/* Photos en bichromie orange/noir */
.ph { background: var(--tfx-orange); overflow: hidden; }
.ph__layer { position: absolute; inset: 0; background: var(--tfx-orange); isolation: isolate; }
.ph__layer img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.18) brightness(1.04);
  mix-blend-mode: multiply;
}
.ph--b  { left: 8%;  top: 16%; width: 31%; height: 33%;
  --shape: polygon(0 0, 100% 0, 100% 100%, 64px 100%, 0 calc(100% - 32px)); }
.ph--c1 { left: 66%; top: 5%;  width: 20%; height: 29%; }
.ph--c2 { left: 70.5%; top: 39%; width: 15.5%; height: 20%;
  --shape: polygon(0 0, 100% 0, 100% 100%, 40px 100%, 0 calc(100% - 20px)); }

/* Transition entre deux métiers : volet en biais */
.ph__layer.is-entering { animation: ph-in 1000ms var(--ease-expo) both; }
.ph__layer.is-entering img { animation: ph-zoom 1400ms var(--ease-expo) both; }
@keyframes ph-in {
  from { clip-path: polygon(0 100%, 100% calc(100% + 50%), 100% calc(100% + 50%), 0 100%); }
  to   { clip-path: polygon(0 -50%, 100% 0, 100% 100%, 0 100%); }
}
@keyframes ph-zoom { from { scale: 1.18; } }

/* La sculpture */
.hero__bust {
  left: 30%; top: -7%; width: 40%; height: 97%;
  object-fit: cover; object-position: 50% 0;
  mix-blend-mode: lighten;
  -webkit-mask-image: linear-gradient(172deg, #000 58%, transparent 84%);
          mask-image: linear-gradient(172deg, #000 58%, transparent 84%);
  pointer-events: none;
}

/* Tracé filaire du monogramme */
.hero__lines {
  left: 38%; top: 3%; width: 29%; height: 62%;
  overflow: visible; pointer-events: none;
}
.hero__lines .draw {
  fill: none; stroke: var(--tfx-orange); stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1; stroke-dashoffset: 0;
}

/* Signature */
.hero__tagline {
  position: absolute; z-index: 3;
  right: 13%; top: calc(var(--header-h) + 0.5%);
  translate: 0 -100%;
  font-style: italic; font-weight: 600;
  font-size: clamp(1.125rem, 0.9rem + 0.8vw, 1.625rem);
  letter-spacing: -0.01em;
}
.hero__tagline em { color: var(--tfx-orange); font-weight: 800; }

/* Texte d'ouverture */
.hero__copy { position: absolute; z-index: 4; left: 8%; bottom: 5%; max-width: min(46%, 640px); }
.hero__title {
  font-size: var(--fs-display); font-weight: 800;
  line-height: 1.02; letter-spacing: -0.02em;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero__title .line > span { display: inline-block; }
.hero__title .accent { color: var(--tfx-orange); }
.hero__name { margin-top: 18px; font-size: 1.25rem; font-weight: 500; }
.hero__name strong { color: var(--tfx-orange); font-weight: 700; }
.hero__lead { margin-top: 10px; color: var(--muted-on-dark); max-width: 52ch; font-size: 1rem; }
.hero__actions { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }

/* Carrousel des métiers */
.hero__slider {
  position: absolute; z-index: 4;
  left: 63%; right: 4%; bottom: 5%;
  padding: 22px 24px 18px;
  background: var(--tfx-noir);
  border-top: 6px solid var(--tfx-orange);
}
.hero__slide { display: grid; gap: 6px; min-height: 6.4em; }
.hero__slide-name { font-weight: 700; font-size: 1.0625rem; }
.hero__slide-text { color: var(--muted-on-dark); font-size: var(--fs-small); line-height: 1.5; }
.hero__controls { margin-top: 14px; display: flex; align-items: center; gap: 12px; }
.hero__bars { display: flex; gap: 6px; flex: 1; }
.hero__bars button { position: relative; flex: 1; height: 24px; }
.hero__bars button::before, .hero__bars button::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 3px; translate: 0 -50%;
}
.hero__bars button::before { background: var(--line-light); }
.hero__bars button::after { background: var(--tfx-orange); scale: 0 1; transform-origin: left; }
.hero__bars button:hover::before { background: var(--muted-on-dark); }
.hero__bars button[aria-current="true"]::after { scale: 1 1; }
.js .hero__bars button[aria-current="true"]::after { animation: bar-fill var(--slide-ms, 6500ms) linear both; }
.hero.is-paused .hero__bars button::after,
.hero.is-offscreen .hero__bars button::after,
.hero__slider:hover .hero__bars button::after,
.hero__slider:focus-within .hero__bars button::after { animation-play-state: paused; }
@keyframes bar-fill { from { scale: 0 1; } to { scale: 1 1; } }

.hero__pause, .band__pause {
  width: 40px; height: 40px; display: grid; place-items: center; flex: none;
  border: 1px solid var(--line-light);
  transition: background-color var(--t-fast), color var(--t-fast);
}
.hero__pause:hover { background: var(--tfx-blanc); color: var(--tfx-noir); }
.hero__pause svg, .band__pause svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square; stroke-linejoin: miter; }
.i-play { display: none; }
[aria-pressed="true"] .i-play { display: block; }
[aria-pressed="true"] .i-pause { display: none; }

.hero__slide.is-swapping { animation: slide-text 600ms var(--ease-expo); }
@keyframes slide-text { from { opacity: 0; translate: 0 10px; } }

/* Flèches latérales (comme sur la référence) */
.hero__arrow {
  position: absolute; z-index: 5; top: 50%;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 6px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.02em;
  color: var(--muted-on-dark);
  transition: color var(--t-fast);
}
.hero__arrow svg { width: 48px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.5; transition: translate 260ms var(--ease-expo); }
.hero__arrow--prev { left: 1.5%; }
.hero__arrow--next { right: 1.5%; }
.hero__arrow:hover { color: var(--tfx-orange); }
.hero__arrow--prev:hover svg { translate: -6px 0; }
.hero__arrow--next:hover svg { translate: 6px 0; }

/* ---------- 7. Animation d'arrivée (un seul moment orchestré) ---------- */
.js .intro { animation-play-state: paused; }
.js.is-loaded .intro { animation-play-state: running; }
.js .intro--wipe {
  animation: intro-wipe 1200ms var(--ease-expo) both;
  animation-delay: calc(250ms + var(--i, 0) * 110ms);
}
.js .intro--rise {
  animation: intro-rise 1300ms var(--ease-expo) both;
  animation-delay: calc(150ms + var(--i, 0) * 110ms);
}
.js .intro--bust { animation: intro-bust 1800ms var(--ease-expo) 350ms both; }
.js .intro--line { animation: intro-line 1100ms var(--ease-expo) both; animation-delay: calc(300ms + var(--i, 0) * 90ms); }
.js .intro--fade { animation: intro-fade 900ms var(--ease-out) both; animation-delay: calc(300ms + var(--i, 0) * 100ms); }
.js .hero__lines .draw { stroke-dashoffset: 1; }
.js.is-loaded .hero__lines .draw { animation: draw 2400ms var(--ease-out) forwards; }
.js.is-loaded .hero__lines .draw:nth-child(1) { animation-delay: 700ms; }
.js.is-loaded .hero__lines .draw:nth-child(2) { animation-delay: 900ms; }
.js.is-loaded .hero__lines .draw:nth-child(3) { animation-delay: 1100ms; }

@keyframes intro-wipe { from { clip-path: polygon(0 0, 0 0, 0 100%, 0 100%, 0 100%); } }
@keyframes intro-rise { from { transform: translateY(14%); opacity: 0; } }
@keyframes intro-bust { from { transform: translateY(5%) scale(1.06); opacity: 0; } }
@keyframes intro-line { from { transform: translateY(108%); } }
@keyframes intro-fade { from { opacity: 0; transform: translateY(16px); } }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Le monogramme se construit : la barre glisse, puis les deux T descendent (≤ 900 ms) */
.mono rect, .mono polygon { transform-box: fill-box; }
.js.is-loaded .site-header .mono__bar { animation: mono-bar 380ms var(--ease-expo) both; transform-origin: left center; }
.js.is-loaded .site-header .mono__tl { animation: mono-t 360ms var(--ease-expo) 260ms both; }
.js.is-loaded .site-header .mono__tr { animation: mono-t 360ms var(--ease-expo) 480ms both; }
.js:not(.is-loaded) .site-header .mono > * { opacity: 0; }
@keyframes mono-bar { from { transform: scaleX(0); } }
@keyframes mono-t { from { transform: translateY(-55%); opacity: 0; } }

/* ---------- 8. Bandeau des métiers ---------- */
.band { position: relative; overflow: hidden; padding-block: clamp(18px, 2.4vw, 30px); }
.band__track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.band:hover .band__track, .band.is-paused .band__track { animation-play-state: paused; }
.band__list { display: flex; flex: none; }
.band__list li {
  display: inline-flex; align-items: center; gap: 0.5em;
  padding-right: 0.5em;
  font-weight: 800; font-size: clamp(1.75rem, 1rem + 3vw, 3.5rem);
  line-height: 1.1; letter-spacing: -0.02em; white-space: nowrap;
}
.band__list li::after {
  content: ""; width: 0.6em; height: 0.6em; flex: none;
  background: var(--tfx-noir);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 50%);
}
.band__list li.is-outline { color: transparent; -webkit-text-stroke: 1.5px var(--tfx-noir); }
.band__pause {
  position: absolute; right: 12px; bottom: 12px;
  background: var(--tfx-noir); color: var(--tfx-blanc); border: 0;
}
.band__pause:hover { background: var(--tfx-blanc); color: var(--tfx-noir); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 9. En-têtes de section ---------- */
.section-head { display: grid; gap: 22px; margin-bottom: clamp(36px, 5vw, 64px); max-width: 22ch; }
.barre { display: block; width: 72px; height: 6px; background: var(--tfx-orange); }

/* ---------- 10. Services ---------- */
.services { padding-block: clamp(80px, 10vw, 140px); }
.services__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-dark); border-left: 1px solid var(--line-dark);
}
.card {
  position: relative; isolation: isolate; overflow: hidden;
  container-type: inline-size;
  display: grid; grid-template-rows: auto auto 1fr auto; grid-template-areas: "icon" "title" "text" "link";
  min-height: 360px;
  padding: clamp(28px, 3vw, 44px);
  border-right: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark);
  transition: color 300ms var(--ease-out);
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 6px; z-index: 1;
  background: var(--tfx-orange); scale: 0 1; transform-origin: left;
  transition: scale 500ms var(--ease-expo);
}
.card__photo {
  position: absolute; inset: 0; z-index: -1;
  background: var(--tfx-noir);
  clip-path: polygon(0 100%, 100% calc(100% + 50cqw), 100% calc(100% + 50cqw), 0 100%);
  transition: clip-path 700ms var(--ease-expo);
}
.card__photo img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.1); opacity: 0.3;
  scale: 1.12; transition: scale 1200ms var(--ease-expo);
}
.card__icon {
  grid-area: icon; width: 40px; height: 40px; margin-bottom: 40px;
  fill: none; stroke: var(--tfx-noir); stroke-width: 1.75; stroke-linecap: square; stroke-linejoin: miter;
  transition: stroke 300ms var(--ease-out), translate 500ms var(--ease-expo);
}
.card__title { grid-area: title; margin-bottom: 14px; }
.card__text, .card__hook { grid-area: text; transition: opacity 300ms var(--ease-out), translate 500ms var(--ease-expo); }
.card__text { color: var(--tfx-ardoise); }
.card__hook { opacity: 0; translate: 0 12px; font-weight: 600; font-size: 1.125rem; line-height: 1.45; }
.card__link {
  grid-area: link; justify-self: start; margin-top: 28px;
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px;
  color: var(--tfx-orange-texte);
  transition: color 300ms var(--ease-out);
}
.card__link::after { content: ""; position: absolute; inset: 0; } /* carte entière cliquable */
.card__link svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: square; transition: translate var(--t-fast); }

@media (hover: hover) {
  .card:hover, .card:focus-within { color: var(--tfx-blanc); }
  .card:hover::before, .card:focus-within::before { scale: 1 1; }
  .card:hover .card__photo, .card:focus-within .card__photo { clip-path: polygon(0 -50cqw, 100% 0, 100% 100%, 0 100%); }
  .card:hover .card__photo img, .card:focus-within .card__photo img { scale: 1; }
  .card:hover .card__icon, .card:focus-within .card__icon { stroke: var(--tfx-orange); translate: 0 -4px; }
  .card:hover .card__text, .card:focus-within .card__text { opacity: 0; translate: 0 -12px; }
  .card:hover .card__hook, .card:focus-within .card__hook { opacity: 1; translate: 0 0; }
  .card:hover .card__link, .card:focus-within .card__link { color: var(--tfx-orange); }
  .card:hover .card__link svg { translate: 4px 0; }
}

/* ---------- 11. Duo : De l'écran à l'imprimé ---------- */
.duo {
  position: relative; isolation: isolate; overflow: clip;
  padding-block: clamp(90px, 11vw, 160px) clamp(120px, 13vw, 190px);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 240px 100%, 0 calc(100% - 120px));
}
.duo::before, .duo::after { content: ""; position: absolute; top: 0; bottom: 0; width: 50%; z-index: -2; }
.duo::before { left: 0; background: var(--tfx-ardoise); }
.duo::after { right: 0; background: var(--tfx-orange); }

.duo__t { position: absolute; z-index: -1; height: 115%; width: auto; top: -4%; }
.duo__t--left { right: 52%; fill: var(--tfx-noir); opacity: 0.16; }
.duo__t--right { left: 52%; fill: var(--tfx-noir); opacity: 0.1; }

.duo__inner {
  display: grid; grid-template-columns: 1fr 1fr; column-gap: calc(var(--gutter) * 2);
  grid-template-areas: "ta tb" "ca cb" "cc cc";
}
.duo__title { display: contents; }
.duo__half { display: block; font-size: clamp(2.25rem, 1rem + 4.4vw, 5.25rem); font-weight: 800; line-height: 1.02; letter-spacing: -0.02em; }
.duo__half--a { grid-area: ta; color: var(--tfx-blanc); }
.duo__half--b { grid-area: tb; color: var(--tfx-noir); }
.duo__col { margin-top: clamp(28px, 4vw, 56px); max-width: 44ch; }
.duo__col h3 { margin-bottom: 10px; }
.duo__col--a { grid-area: ca; color: var(--tfx-blanc); }
.duo__col--b { grid-area: cb; color: var(--tfx-noir); }
.duo__conclusion {
  grid-area: cc; justify-self: center;
  margin-top: clamp(56px, 7vw, 96px);
  max-width: 760px;
  padding: clamp(24px, 3vw, 40px);
  background: var(--tfx-blanc); color: var(--tfx-noir);
  border-top: 6px solid var(--tfx-noir);
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); font-weight: 600; line-height: 1.5;
}

/* ---------- 12. Réalisations ---------- */
.work { padding-block: clamp(80px, 10vw, 140px); }
.work__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.5vw, 36px); }
.project { --rx: 0deg; --ry: 0deg; perspective: 900px; min-width: 0; }
.project__cover {
  position: relative; aspect-ratio: 4 / 5;
  display: grid; place-items: center;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform 500ms var(--ease-expo);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 112px 100%, 0 calc(100% - 56px));
  overflow: hidden;
}
.project__cover--noir { background: var(--tfx-noir); color: var(--tfx-blanc); }
.project__cover--orange { background: var(--tfx-orange); color: var(--tfx-noir); }
.project__cover--ardoise { background: var(--tfx-ardoise); color: var(--tfx-blanc); }
.project__cover--blanc { background: var(--tfx-blanc); color: var(--tfx-noir); border: 1px solid var(--line-dark); }
.project__cover img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  transition: scale 700ms var(--ease-expo);
}
.project:hover .project__cover img { scale: 1.06; }
.project__mark {
  position: relative; z-index: 1;
  font-weight: 800; font-size: clamp(2rem, 1rem + 2.6vw, 3.25rem); letter-spacing: -0.02em; line-height: 0.95;
  transition: scale 700ms var(--ease-expo), transform 500ms var(--ease-expo);
  transform: translateZ(0);
}
.project__mark--big { font-size: clamp(4.5rem, 2rem + 7vw, 8.5rem); }
.project__mark--url { justify-self: start; align-self: end; padding: 0 0 30% 12%; font-size: clamp(2.25rem, 1rem + 3vw, 3.75rem); }
.project__mark--url span { color: var(--tfx-noir); }
.project__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--tfx-ardoise) 1px, transparent 1px);
  background-size: 100% 28px;
  opacity: 0.45;
  transition: background-position 1200ms var(--ease-expo);
}
.project__cover::after { /* barre orange qui glisse au survol */
  content: ""; position: absolute; left: 0; top: 0; height: 6px; width: 100%;
  background: var(--tfx-orange); scale: 0 1; transform-origin: left; transition: scale 600ms var(--ease-expo);
}
.project__cover--orange::after { background: var(--tfx-noir); }
.project:hover .project__cover::after { scale: 1 1; }
.project:hover .project__mark { scale: 1.06; transform: translateZ(28px); }
.project__link { display: block; text-decoration: none; color: inherit; }
.project__title {
  font-size: clamp(1.125rem, 0.95rem + 0.4vw, 1.35rem);
  font-weight: 700;
  line-height: 1.25;
  margin-top: 22px;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
}
.project__title a {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  color: inherit;
  text-decoration: none;
  overflow-wrap: anywhere;
  word-break: break-word;
  transition: color var(--t-fast);
}
.project__title a:hover { color: var(--tfx-orange); }
.project__title .icon-ext {
  flex-shrink: 0;
  width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.2;
  stroke-linecap: round; stroke-linejoin: round;
  transition: transform var(--t-fast);
}
.project__title a:hover .icon-ext { transform: translate(2px, -2px); }
.project__desc { margin-top: 6px; color: var(--tfx-ardoise); }
.project__tags { margin-top: 10px; font-size: var(--fs-small); font-weight: 500; color: var(--tfx-noir); }
.work__action { margin-top: clamp(36px, 5vw, 64px); text-align: center; }

/* Filtres de la page Réalisations */
.work-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: clamp(36px, 4vw, 56px);
}
.filter-btn {
  appearance: none;
  border: 1px solid var(--line-dark);
  background: var(--tfx-brume);
  color: var(--tfx-noir);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  padding: 10px 22px;
  cursor: pointer;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 12px 100%, 0 calc(100% - 6px));
  transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.filter-btn:hover {
  background: var(--tfx-ardoise);
  color: var(--tfx-blanc);
}
.filter-btn.is-active {
  background: var(--tfx-noir);
  color: var(--tfx-orange);
  border-color: var(--tfx-noir);
}
.project[hidden] {
  display: none !important;
}

/* ---------- 13. Méthode ---------- */
.method { padding-block: clamp(80px, 10vw, 140px); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(24px, 3vw, 40px); counter-reset: step; }
.step { transition: transform var(--t-fast) var(--ease-out); }
.step:hover .step__num { color: var(--tfx-orange); transition: color var(--t-fast); }
.step__bar { position: relative; display: block; height: 6px; background: var(--line-dark); margin-bottom: 28px; }
.step__bar::after { content: ""; position: absolute; inset: 0; background: var(--tfx-orange); transform-origin: left; }
.step__num { display: block; font-weight: 800; font-size: clamp(3rem, 2rem + 3vw, 4.5rem); line-height: 1; letter-spacing: -0.03em; margin-bottom: 18px; color: var(--tfx-noir); transition: color var(--t-fast); }
.step h3 { margin-bottom: 10px; }
.step p { color: var(--tfx-ardoise); }

/* ---------- 14. Appel à l'action ---------- */
.cta { position: relative; overflow: clip; isolation: isolate; padding-block: clamp(90px, 11vw, 160px); }
.cta__mono { position: absolute; z-index: -1; right: -4%; top: 50%; translate: 0 -50%; height: 88%; width: auto; }
.cta__bar { fill: var(--tfx-noir); }
.cta__tl { fill: var(--tfx-ardoise); }
.cta__tr { fill: var(--tfx-blanc); }
.cta__mono rect, .cta__mono polygon { transform-box: fill-box; }
.cta__inner { max-width: min(100% - 2 * var(--gutter), var(--container)); }
.cta__title { font-size: clamp(2.5rem, 1rem + 5vw, 6rem); font-weight: 800; line-height: 1; letter-spacing: -0.025em; max-width: 9ch; }
.cta__text { margin-top: 24px; max-width: 46ch; font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); font-weight: 500; }
.cta__actions { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.cta__wa { font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.cta__wa:hover { text-decoration-thickness: 4px; }
.cta__info { margin-top: clamp(48px, 6vw, 80px); display: flex; flex-wrap: wrap; gap: 20px 56px; max-width: 58%; }
.cta__info dt { font-size: var(--fs-small); font-weight: 500; }
.cta__info dd { font-weight: 700; }
.cta__info a { text-decoration: none; }
.cta__info a:hover { text-decoration: underline; }

/* ---------- 15. Pied de page ---------- */
.site-footer { padding-block: clamp(64px, 8vw, 100px) 32px; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1.2fr 0.8fr 1fr; gap: 40px; }
.site-footer__brand p { margin-top: 22px; color: var(--muted-on-dark); max-width: 30ch; }
.site-footer__col h2 { font-size: 1rem; font-weight: 700; margin-bottom: 16px; }
.site-footer__col ul { display: grid; gap: 10px; color: var(--muted-on-dark); font-size: var(--fs-small); }
.site-footer__col a { text-decoration: none; }
.site-footer__col a:hover { color: var(--tfx-orange); }
.site-footer__legal {
  margin-top: clamp(48px, 6vw, 80px); padding-top: 24px;
  border-top: 1px solid var(--line-light);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  font-size: 0.8125rem; color: var(--muted-on-dark);
}
.site-footer__legal a:hover { color: var(--tfx-orange); }

.site-footer__social { display: flex; gap: 16px; margin-top: 24px; }
.site-footer__social a { display: block; color: var(--muted-on-dark); transition: color var(--t-fast) var(--ease-out); }
.site-footer__social a:hover { color: var(--tfx-orange); }
.site-footer__social svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: square; stroke-linejoin: miter; }

/* ---------- 16. WhatsApp flottant ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  width: 56px; height: 56px; display: grid; place-items: center;
  background: var(--tfx-orange); color: var(--tfx-noir);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 16px 100%, 0 calc(100% - 8px));
  transition: background-color var(--t-fast), translate var(--t-fast) var(--ease-out);
}
.wa-float svg { width: 28px; height: 28px; fill: currentColor; }
.wa-float__label {
  position: absolute; right: calc(100% + 10px); top: 50%; translate: 8px -50%;
  padding: 8px 12px; white-space: nowrap;
  background: var(--tfx-noir); color: var(--tfx-blanc); font-size: 0.875rem; font-weight: 600;
  opacity: 0; pointer-events: none;
  transition: opacity var(--t-fast), translate var(--t-fast) var(--ease-out);
}
.wa-float:hover, .wa-float:focus-visible { background: var(--tfx-blanc); translate: 0 -2px; }
.wa-float:hover .wa-float__label, .wa-float:focus-visible .wa-float__label { opacity: 1; translate: 0 -50%; }

/* ---------- 17. Défilement : effets progressifs (navigateurs compatibles) ---------- */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    .scroll-progress {
      display: block; position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60;
      background: var(--tfx-orange); transform-origin: left;
      animation: grow-x linear both;
      animation-timeline: scroll(root);
    }
    @keyframes grow-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }

    .reveal {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 5% cover 28%;
    }
    @keyframes reveal { from { opacity: 0; transform: translateY(48px); } }

    /* Méthode : la barre se remplit, étape après étape */
    .steps { view-timeline: --steps; }
    .step__bar::after { animation: grow-x linear both; animation-timeline: --steps; }
    .step:nth-child(1) .step__bar::after { animation-range: entry 60% cover 38%; }
    .step:nth-child(2) .step__bar::after { animation-range: cover 38% cover 46%; }
    .step:nth-child(3) .step__bar::after { animation-range: cover 46% cover 54%; }
    .step:nth-child(4) .step__bar::after { animation-range: cover 54% cover 62%; }

    /* Duo : les deux T montent à des vitesses différentes, les demi-titres se rejoignent */
    .duo { view-timeline: --duo; }
    .duo__t { animation: t-rise linear both; animation-timeline: --duo; animation-range: cover; }
    .duo__t--right { animation-name: t-rise-2; }
    @keyframes t-rise { from { transform: translateY(14%); } to { transform: translateY(-10%); } }
    @keyframes t-rise-2 { from { transform: translateY(26%); } to { transform: translateY(-18%); } }
    .duo__half--a { animation: from-left linear both; animation-timeline: --duo; animation-range: entry 0% cover 35%; }
    .duo__half--b { animation: from-right linear both; animation-timeline: --duo; animation-range: entry 0% cover 35%; }
    @keyframes from-left { from { transform: translateX(-12%); opacity: 0; } }
    @keyframes from-right { from { transform: translateX(12%); opacity: 0; } }

    /* Appel à l'action : le monogramme se construit au défilement */
    .cta { view-timeline: --cta; }
    .cta__bar { animation: mono-bar linear both; transform-origin: left center; animation-timeline: --cta; animation-range: entry 10% cover 40%; }
    .cta__tl { animation: cta-t linear both; animation-timeline: --cta; animation-range: entry 30% cover 45%; }
    .cta__tr { animation: cta-t linear both; animation-timeline: --cta; animation-range: entry 45% cover 52%; }
    @keyframes cta-t { from { transform: translateY(-30%); opacity: 0; } }

    /* Réalisations : décalage vertical des couvertures (accueil) */
    .work__grid { view-timeline: --work; }
    .project:nth-child(2) { animation: lift linear both; animation-timeline: --work; animation-range: entry 0% cover 60%; }
    .page-service .project:nth-child(2) { animation: none; transform: none; }
    @keyframes lift { from { transform: translateY(80px); } }
  }
}

/* ---------- 18. Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  .intro, .hero__lines .draw, .site-header .mono > *, .ph__layer.is-entering, .ph__layer.is-entering img, .hero__slide.is-swapping { animation: none !important; }
  .js .hero__lines .draw { stroke-dashoffset: 0; }
  .js:not(.is-loaded) .site-header .mono > * { opacity: 1; }
  .js .hero__bars button[aria-current="true"]::after { animation: none; scale: 1 1; }
  .band__track { animation: none; }
  .band__list[aria-hidden="true"], .band__pause, .hero__pause { display: none; }
  .depth { translate: none; }
  .project__cover { transform: none; }
}

/* ---------- 19. Pages internes (Services) ---------- */
.page-service .site-header {
  background: rgba(25, 29, 32, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line-light);
}
.service-hero { position: relative; padding: clamp(140px, 15vw, 200px) 0 clamp(80px, 10vw, 120px); overflow: hidden; }
.service-hero__cover { position: absolute; inset: 0; z-index: 0; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 6vw)); }
.service-hero__cover img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1); mix-blend-mode: multiply; }
.service-hero__overlay { position: absolute; inset: 0; background: linear-gradient(var(--tfx-noir) 0%, transparent 60%); }
.service-hero__content { position: relative; z-index: 1; }
.btn-back { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.875rem; color: var(--muted-on-dark); text-decoration: none; margin-bottom: 24px; transition: color var(--t-fast); }
.btn-back:hover { color: var(--tfx-orange); }
.btn-back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.service-hero__title { font-size: clamp(2.5rem, 2rem + 3vw, 5rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; }
.service-hero__lead { margin-top: 16px; font-size: clamp(1.125rem, 1rem + 1vw, 1.5rem); font-weight: 500; color: var(--tfx-orange); max-width: 40ch; line-height: 1.4; }

.service-body { padding-block: clamp(64px, 8vw, 120px); }
.service-body__grid { display: grid; grid-template-columns: 1fr 340px; gap: clamp(40px, 6vw, 80px); align-items: start; }
.service-body__main h2 { margin-bottom: 24px; }
.service-body__main h3 { margin-top: 48px; margin-bottom: 16px; font-size: 1.25rem; }
.service-body__main p { margin-bottom: 16px; color: var(--tfx-ardoise); font-size: 1.125rem; }

.service-body__side { padding: 32px; border-top: 4px solid var(--tfx-orange); }
.service-body__side h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 24px; color: var(--tfx-ardoise); }
.deliverables { display: grid; gap: 16px; margin-bottom: 40px; }
.deliverables li { display: flex; align-items: flex-start; gap: 12px; font-weight: 600; font-size: 0.9375rem; line-height: 1.4; }
.deliverables svg { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--tfx-orange); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }
.service-cta p { font-weight: 700; margin-bottom: 12px; }
.service-cta .btn { width: 100%; justify-content: center; }

/* FAQ & Profils pour les pages de services */
.service-audiences {
  margin-top: 48px; padding: 24px 28px;
  background: var(--tfx-brume); border-left: 4px solid var(--tfx-orange);
}
.service-audiences h3 { margin-top: 0; margin-bottom: 12px; font-size: 1.125rem; }
.audiences-tags { display: flex; flex-wrap: wrap; gap: 8px 12px; margin-top: 12px; }
.audience-tag {
  display: inline-block; padding: 6px 14px;
  background: var(--tfx-blanc); border: 1px solid var(--line-dark);
  font-size: 0.875rem; font-weight: 600; color: var(--tfx-noir);
}

.service-faq { margin-top: 48px; }
.service-faq h3 { margin-bottom: 20px; font-size: 1.25rem; }
.faq-list { display: grid; gap: 12px; }
.faq-item {
  border: 1px solid var(--line-dark); padding: 18px 22px;
  background: var(--tfx-brume); transition: border-color var(--t-fast), background-color var(--t-fast);
}
.faq-item[open] { border-color: var(--tfx-orange); background: var(--tfx-blanc); }
.faq-item summary {
  font-weight: 700; font-size: 1.0625rem; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 1.5rem; line-height: 1; color: var(--tfx-orange);
  transition: transform var(--t-fast);
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin-top: 12px; color: var(--tfx-ardoise); font-size: 1rem; line-height: 1.55; }

.service-nav { padding-block: 64px; text-align: center; }
.service-nav h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted-on-dark); margin-bottom: 24px; }
.service-link { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; transition: scale var(--t-fast) var(--ease-out); }
.service-link span { font-weight: 600; font-size: 0.875rem; color: var(--tfx-orange); }
.service-link strong { font-size: clamp(1.5rem, 1.5rem + 1vw, 2.5rem); font-weight: 800; letter-spacing: -0.02em; }
.service-link svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: square; margin-top: 8px; transition: translate var(--t-fast); }
.service-link:hover { scale: 1.02; color: var(--tfx-blanc); }
.service-link:hover svg { translate: 0 4px; }

/* Bloc Formation Phare (Dropshipping Shopify & cas banmaro.store) */
.formation-flagship {
  margin-top: 40px;
  padding: clamp(24px, 4vw, 36px);
  background: var(--tfx-brume);
  border: 1px solid var(--line-dark);
  border-top: 4px solid var(--tfx-orange);
  position: relative;
}
.formation-flagship__badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--tfx-noir);
  color: var(--tfx-orange);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.formation-flagship h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: clamp(1.25rem, 1rem + 1vw, 1.625rem);
  font-weight: 800;
  color: var(--tfx-noir);
}
.formation-flagship__lead {
  font-size: 1.0625rem;
  color: var(--tfx-ardoise);
  margin-bottom: 24px;
}
.formation-flagship__steps {
  display: grid;
  gap: 16px;
  margin-bottom: 24px;
}
.flagship-step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: start;
  background: var(--tfx-blanc);
  padding: 16px 20px;
  border-left: 3px solid var(--tfx-ardoise);
}
.flagship-step__num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--tfx-orange);
  line-height: 1;
}
.flagship-step strong {
  display: block;
  font-size: 1rem;
  color: var(--tfx-noir);
  margin-bottom: 4px;
}
.flagship-step p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--tfx-ardoise);
  line-height: 1.45;
}
.formation-flagship__case {
  background: var(--tfx-noir);
  color: var(--tfx-blanc);
  padding: 20px 24px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 20px 100%, 0 calc(100% - 10px));
}
.case-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.case-header svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--tfx-orange);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.case-header span {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--tfx-orange);
}
.formation-flagship__case p {
  margin: 0;
  color: var(--muted-on-dark);
  font-size: 0.9375rem;
  line-height: 1.55;
}
.formation-flagship__case a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--tfx-blanc);
  text-decoration: underline;
  text-decoration-color: var(--tfx-orange);
  font-weight: 700;
}
.formation-flagship__case a:hover {
  color: var(--tfx-orange);
}
.formation-flagship__case .icon-ext {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
}

/* ---------- 20. Responsive ---------- */
@media (max-width: 1180px) {
  .site-nav a { padding-inline: 10px; }
  .site-nav a::before { left: 10px; right: 10px; }
  .hero__copy { max-width: 52%; }
  .hero__slider { left: 60%; }
}

@media (max-width: 1023px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .work__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 56px; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .service-body__grid { grid-template-columns: 1fr; gap: 56px; }
}

@media (max-width: 899px) {
  :root { --header-h: 72px; --header-h-compact: 56px; }
  .site-nav, .site-header__cta { display: none; }
  .menu-toggle { display: flex; }
  .logo__type { display: none; }

  .hero__stage { height: auto; padding-top: var(--header-h); display: flex; flex-direction: column; }
  .hero__collage { position: relative; inset: auto; aspect-ratio: 1 / 1.08; margin-top: 16px; }
  .hero__tagline { display: none; }
  .hero__copy { position: relative; left: auto; bottom: auto; max-width: none; margin-top: -10%; padding: 0 var(--gutter); }
  .hero__slider { position: relative; left: auto; right: auto; bottom: auto; margin: 36px var(--gutter) 56px; }
  .hero__arrow { top: calc(var(--header-h) + 50vw); }
  .hero__arrow span:not(.sr-only) { display: none; }
  .hero__arrow svg { width: 36px; }
  .dots--tl, .dots--br { width: 16%; }

  .duo { clip-path: polygon(0 0, 100% 0, 100% 100%, 120px 100%, 0 calc(100% - 60px)); }
  .duo::before, .duo::after { width: 100%; height: 50%; }
  .duo::before { top: 0; bottom: auto; }
  .duo::after { top: auto; bottom: 0; }
  .duo__inner { grid-template-columns: 1fr; grid-template-areas: "ta" "ca" "tb" "cb" "cc"; }
  .duo__half--b { margin-top: clamp(80px, 18vw, 140px); }
  .duo__t { height: 52%; }
  .duo__t--left { right: 4%; top: 2%; }
  .duo__t--right { left: auto; right: 4%; top: 50%; }
  .duo__conclusion { margin-top: 48px; }

  .cta__mono { height: 120px; top: 64px; right: var(--gutter); translate: none; }
  .cta__info { max-width: none; }
}

@media (max-width: 639px) {
  .services__grid, .steps { grid-template-columns: 1fr; }
  .work__grid { grid-template-columns: minmax(0, 1fr); }
  .card { min-height: 0; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .cta__actions .btn { width: 100%; justify-content: center; }
  .band__pause { width: 32px; height: 32px; right: 8px; bottom: 8px; }
}
