/* ==========================================================================
   La Fresque des Idées — Studio Carlos × Start West 2026
   --------------------------------------------------------------------------
   Feuille de style autonome, prête pour l'agrégation Drupal :
   - toutes les classes sont préfixées « fdi- », toutes les variables « --fdi- » ;
   - aucun sélecteur ne cible body, html, * ou des balises nues :
     tout est scopé sous le conteneur racine .fdi-root ;
   - aucun !important ;
   - mobile d'abord — points de rupture à 768 px et 1200 px.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Polices auto-hébergées (woff2, sous-ensemble latin — couvre le français).
   Les noms de familles sont préfixés pour ne pas entrer en collision avec les
   polices du thème du site (qui utilise déjà une pixel type Bitcount).
   -------------------------------------------------------------------------- */

@font-face {
  font-family: "fdi-sora";
  src: url("fonts/sora-variable.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}
@font-face {
  font-family: "fdi-bitcount";
  src: url("fonts/bitcount-grid-single-variable.woff2") format("woff2");
  font-weight: 300 800;
  font-display: swap;
}
@font-face {
  font-family: "fdi-silkscreen";
  src: url("fonts/silkscreen-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "fdi-mono";
  src: url("fonts/space-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "fdi-mono";
  src: url("fonts/space-mono-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   2. Variables de parallaxe.
   Enregistrées via @property pour que le navigateur ré-évalue les transforms
   qui les consomment (sans registre, Chrome peut geler la valeur).
   NB : ne jamais poser de transition CSS sur ces transforms — le lissage est
   fait en JavaScript (interpolation à chaque frame).
   -------------------------------------------------------------------------- */

@property --fdi-mx { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --fdi-my { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --fdi-sy { syntax: "<number>"; inherits: true; initial-value: 0; }

/* --------------------------------------------------------------------------
   3. Racine : palette, typographies, fond général.
   -------------------------------------------------------------------------- */

.fdi-root {
  /* Charte Start West 2026 */
  --fdi-blue: #3437EC;        /* bleu électrique — actions, liens, trames */
  --fdi-blue-deep: #2226B8;   /* bleu encre — titres, textes forts */
  --fdi-coral: #F2556E;       /* corail — CTA, accents, erreurs */
  --fdi-coral-text: #D8344F;  /* corail assombri pour les petits textes (contraste AA) */
  --fdi-sky: #DFE9F7;         /* fond ciel */
  --fdi-rose: #F6E6EA;        /* fond nuage rose */
  --fdi-white: #FFFFFF;
  --fdi-night: #0B0E3A;       /* section sombre */
  --fdi-body: rgba(20, 24, 80, .82);          /* corps de texte sur fond clair */
  --fdi-body-inverse: rgba(255, 255, 255, .72); /* corps de texte sur fond sombre */

  /* Familles typographiques */
  --fdi-display: "fdi-sora", "Sora", system-ui, sans-serif;
  --fdi-pixel: "fdi-bitcount", "fdi-silkscreen", "Bitcount Grid Single", "Silkscreen", monospace;
  --fdi-mono: "fdi-mono", "Space Mono", ui-monospace, monospace;

  /* Rampe fluide entre les maquettes 390 et 1440 */
  --fdi-h1-size: clamp(48px, calc(24.2px + 6.1vw), 112px);
  --fdi-h2-size: clamp(34px, calc(18.4px + 4vw), 76px);
  --fdi-pad-x: clamp(22px, calc(-3.3px + 6.5vw), 90px);
  --fdi-pad-haut: clamp(70px, calc(40.3px + 7.6vw), 150px);
  --fdi-pad-bas: clamp(76px, calc(44.8px + 8vw), 160px);

  position: relative;
  background: linear-gradient(168deg, var(--fdi-sky), #EFE9F3 46%, var(--fdi-rose));
  color: var(--fdi-body);
  font: 400 17px/1.6 var(--fdi-display);
  -webkit-font-smoothing: antialiased;
}

/* Modèle de boîte prévisible, scopé sous la racine uniquement */
.fdi-root *,
.fdi-root *::before,
.fdi-root *::after { box-sizing: border-box; }

/* ==========================================================================
   4. SCÈNE DE FOND — collante derrière tout le contenu.
   Chaque couche compose son transform à partir de trois variables écrites en
   JS (--fdi-mx / --fdi-my : curseur normalisé −0,5…0,5 ; --fdi-sy : scroll
   en px) et de ses propres facteurs (--fdi-kx / --fdi-ky / --fdi-ks).
   Règle d'or : jamais une animation de transform ET un transform de parallaxe
   sur le même élément — on imbrique (couche = parallaxe, enfant = animation).
   ========================================================================== */

.fdi-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  z-index: 0;
}

.fdi-layer {
  position: absolute;
  transform: translate3d(
    calc(var(--fdi-mx) * var(--fdi-kx, 0px)),
    calc(var(--fdi-sy) * var(--fdi-ks, 0px) + var(--fdi-my) * var(--fdi-ky, 0px)),
    0
  );
}

/* Couche 0 — paysage net */
.fdi-layer-plate {
  inset: -50px;
  background: url("assets/plate.jpg") center 36% / cover no-repeat;
  opacity: .6;
  --fdi-kx: -14px; --fdi-ky: -10px; --fdi-ks: -0.05px;
}

/* Couche 1 — paysage pixelisé « diffusion », halo net au curseur.
   Le masque laisse transparaître le paysage net (couche 0) autour du curseur. */
.fdi-layer-pixel {
  inset: -50px;
  opacity: .7;
  --fdi-kx: -14px; --fdi-ky: -10px; --fdi-ks: -0.05px;
  -webkit-mask-image: radial-gradient(circle 170px at var(--fdi-cx, 55%) var(--fdi-cy, 38%), transparent 0%, rgba(0, 0, 0, .5) 55%, #000 85%);
  mask-image: radial-gradient(circle 170px at var(--fdi-cx, 55%) var(--fdi-cy, 38%), transparent 0%, rgba(0, 0, 0, .5) 55%, #000 85%);
}
.fdi-pixel-fallback {
  position: absolute;
  inset: 0;
  background: url("assets/plate-pixel.jpg") center 36% / cover no-repeat;
}
.fdi-pixel-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: none; /* affiché par le JS une fois le rendu prêt */
}

/* Couche 2 — trame de points, doublée d'une poussière corail très éparse.
   Son opacité globale est modulée en douceur par le JS (scroll + curseur) :
   une texture générative que l'on sent plus qu'on ne la voit. */
.fdi-layer-grid {
  inset: -40px;
  background-image:
    radial-gradient(circle, rgba(52, 55, 236, .15) 1.1px, transparent 1.2px),
    radial-gradient(circle, rgba(242, 85, 110, .07) 1px, transparent 1.1px);
  background-size: 11px 11px, 47px 47px;
  background-position: 0 0, 6px 9px;
  --fdi-kx: -26px; --fdi-ky: -18px; --fdi-ks: -0.12px;
}

/* Couches 3 & 4 — nuages (halos blancs) — masqués sur mobile */
.fdi-cloud { display: none; border-radius: 50%; }
.fdi-cloud-a {
  left: -140px; top: 30px; width: 640px; height: 260px;
  --fdi-kx: -80px; --fdi-ky: -46px; --fdi-ks: -0.3px;
}
.fdi-cloud-b {
  right: -120px; top: 60%; width: 720px; height: 290px;
  --fdi-kx: -64px; --fdi-ky: -38px; --fdi-ks: -0.22px;
}
.fdi-cloud-drift {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  animation: fdi-cloudx 18s ease-in-out infinite;
}
.fdi-cloud-a .fdi-cloud-drift { background: radial-gradient(ellipse, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0) 70%); }
.fdi-cloud-b .fdi-cloud-drift {
  background: radial-gradient(ellipse, rgba(255, 255, 255, .72), rgba(255, 255, 255, 0) 70%);
  animation-delay: -9s;
}

/* Couche 5 — pissenlit filaire (canvas interactif, image SVG en repli) */
.fdi-layer-mesh {
  right: -160px; top: 150px; width: 480px; height: 480px;
  --fdi-kx: -60px; --fdi-ky: -40px; --fdi-ks: -0.34px;
}
.fdi-mesh-float {
  position: absolute;
  inset: 0;
  animation: fdi-floatz 14s ease-in-out infinite;
}
.fdi-mesh-fallback,
.fdi-mesh-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .76;
  animation: fdi-spin3d 26s ease-in-out infinite;
}
.fdi-mesh-canvas { display: none; } /* affiché par le JS */
.fdi-mesh-puff .fdi-mesh-fallback,
.fdi-mesh-puff .fdi-mesh-canvas {
  animation: fdi-puff 2.2s ease-out, fdi-spin3d 26s ease-in-out infinite;
}

/* Couche 6 — samares, la couche la plus rapide */
.fdi-layer-seeds {
  left: 4%; top: 52%; width: 250px; height: 84px;
  --fdi-kx: -90px; --fdi-ky: -56px; --fdi-ks: -0.5px;
}
.fdi-seeds-drift {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .72;
  animation: fdi-driftb 13s ease-in-out infinite;
}

/* Rafale de vent au moment de l'envoi (activée par [data-fdi-gust="on"]) */
.fdi-gust-overlay { display: none; position: absolute; inset: 0; pointer-events: none; }
[data-fdi-gust="on"] .fdi-gust-overlay { display: block; }
.fdi-windline { position: absolute; left: 0; right: 0; display: block; }
.fdi-windline-1 { top: 42%; height: 1.5px; background: linear-gradient(90deg, transparent, rgba(52, 55, 236, .75), transparent); animation: fdi-windline 2.2s ease-out forwards; }
.fdi-windline-2 { top: 48%; height: 1px; background: linear-gradient(90deg, transparent, rgba(242, 85, 110, .8), transparent); animation: fdi-windline 2.4s ease-out .16s forwards; }
.fdi-windline-3 { top: 53%; height: 2px; background: linear-gradient(90deg, transparent, rgba(52, 55, 236, .55), transparent); animation: fdi-windline 2s ease-out .32s forwards; }
.fdi-windline-4 { top: 58%; height: 1px; background: linear-gradient(90deg, transparent, rgba(34, 38, 184, .6), transparent); animation: fdi-windline 2.6s ease-out .48s forwards; }
.fdi-gustseeds { position: absolute; opacity: 0; }
.fdi-gustseeds-1 { left: 14%; top: 44%; width: 320px; animation: fdi-gustseeds 3s ease-out .2s forwards; }
.fdi-gustseeds-2 { left: 30%; top: 52%; width: 220px; animation: fdi-gustseeds 3.4s ease-out .6s forwards; }

/* ==========================================================================
   5. CONTENU — défile par-dessus la scène.
   ========================================================================== */

.fdi-content {
  position: relative;
  z-index: 1;
  margin-top: -100vh;
  margin-top: -100svh;
}

/* ---------- 01 · Hero ---------- */

.fdi-hero {
  position: relative; /* ancre du curseur de diffusion (gouttière droite) */
  min-height: 100vh;
  min-height: 100svh;
  padding: 24px 22px 28px;
  display: flex;
  flex-direction: column;
}

/* Léger tilt 3D piloté par le curseur (JS) — max ±5° */
.fdi-hero-tilt {
  flex: 1;
  display: flex;
  flex-direction: column;
  transform: perspective(900px)
    rotateY(calc(var(--fdi-mx) * 4deg))
    rotateX(calc(var(--fdi-my) * -3deg));
}

.fdi-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.fdi-live {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font: 400 9.5px var(--fdi-pixel);
  letter-spacing: .16em;
  color: var(--fdi-blue-deep);
}
.fdi-live-dot {
  flex: none;
  width: 8px;
  height: 8px;
  background: var(--fdi-coral);
  animation: fdi-pulse 2s ease-in-out infinite;
}
.fdi-hero-brand {
  display: none;
  margin: 0;
  font: 800 12px var(--fdi-display);
  letter-spacing: .14em;
  color: rgba(34, 38, 184, .62);
}

.fdi-hero-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.fdi-h1 {
  margin: 0 0 18px;
  font: 800 var(--fdi-h1-size)/.9 var(--fdi-display);
  letter-spacing: -.045em;
  color: var(--fdi-blue-deep);
  max-width: 820px;
}
.fdi-hero-lead {
  margin: 0 0 30px;
  font: 400 clamp(15px, calc(12.4px + .67vw), 22px)/1.45 var(--fdi-display);
  color: rgba(34, 38, 184, .82);
  max-width: 560px;
  text-wrap: pretty;
}

/* ---------- Le champ (panneau verre dépoli) ---------- */

.fdi-field {
  width: min(780px, 100%);
  position: relative;
  margin: 0;
  padding: 22px 22px 20px;
  background: rgba(255, 255, 255, .82); /* repli sans backdrop-filter */
  border: 1px solid rgba(255, 255, 255, .75);
  box-shadow: 0 24px 60px -30px rgba(34, 38, 184, .6), inset 0 1px 0 rgba(255, 255, 255, .9);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .fdi-field {
    background: rgba(255, 255, 255, .5);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
  }
}

.fdi-field-label {
  display: block;
  margin: 0 0 16px;
  font: 400 9.5px/1.5 var(--fdi-pixel);
  letter-spacing: .14em;
  color: var(--fdi-coral-text);
}
.fdi-field[data-fdi-phase="vide"] .fdi-field-label { color: var(--fdi-coral-text); }

.fdi-field-line { position: relative; }

.fdi-input {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0 0 12px;
  background: transparent;
  border: 0;
  border-bottom: 2px solid rgba(52, 55, 236, .55);
  border-radius: 0;
  font: 500 clamp(22px, calc(17.5px + 1.15vw), 34px)/1.3 var(--fdi-display);
  color: var(--fdi-blue-deep);
  caret-color: var(--fdi-coral);
  resize: none;
  overflow: hidden;
  outline: none;
}
.fdi-input::placeholder { color: rgba(34, 38, 184, .34); opacity: 1; }
.fdi-input:focus {
  border-bottom-color: var(--fdi-blue);
  box-shadow: 0 14px 30px -22px rgba(52, 55, 236, .6);
}
.fdi-field[data-fdi-phase="vide"] .fdi-input { border-bottom-color: var(--fdi-coral); }

/* Placeholder tournant (fondu toutes les 4 s) — piloté en JS */
.fdi-placeholder {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  pointer-events: none;
  font: 500 clamp(22px, calc(17.5px + 1.15vw), 34px)/1.3 var(--fdi-display);
  color: rgba(34, 38, 184, .34);
  white-space: nowrap;
  overflow: hidden;
  transition: opacity .55s ease;
}
.fdi-js .fdi-placeholder { display: block; }
.fdi-placeholder-off { opacity: 0; }

/* L'envol des lettres à l'envoi : réplique du texte, lettre par lettre */
.fdi-fly {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  pointer-events: none;
  font: 500 clamp(22px, calc(17.5px + 1.15vw), 34px)/1.3 var(--fdi-display);
  color: var(--fdi-blue-deep);
  white-space: pre-wrap;
  word-break: break-word;
}
.fdi-fly-l {
  display: inline-block;
  animation: fdi-gust 1.9s cubic-bezier(.35, 0, .6, 1) both;
  animation-delay: var(--fdi-d, 0s);
  text-shadow: 0 0 14px rgba(52, 55, 236, .4); /* densité du moment d'envol */
}
.fdi-field[data-fdi-phase="envoi"] .fdi-input { color: transparent; caret-color: transparent; }

/* Piège à robots — invisible, hors du flux clavier */
.fdi-hp {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.fdi-field-foot {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.fdi-field-meta {
  margin: 0;
  order: 2;
  font: 400 9.5px/1.6 var(--fdi-pixel);
  letter-spacing: .08em;
  color: rgba(34, 38, 184, .68);
}

/* CTA principal */
.fdi-cta {
  order: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 56px;
  margin: 0;
  padding: 0 32px;
  border: 0;
  border-radius: 0;
  background: var(--fdi-coral);
  color: var(--fdi-white);
  font: 700 19px var(--fdi-display);
  box-shadow: 0 16px 32px rgba(242, 85, 110, .34);
  cursor: pointer;
}
.fdi-cta-chevron { display: inline-block; transform: scaleX(.7); font-weight: 800; font-size: .8em; }
.fdi-cta:hover { background: #E44560; }
.fdi-field[data-fdi-phase="vide"] .fdi-cta { background: rgba(242, 85, 110, .45); box-shadow: none; }
.fdi-field[data-fdi-phase="envoi"] .fdi-cta { background: rgba(242, 85, 110, .55); box-shadow: none; cursor: wait; }

/* Les blocs à états gardent la main sur l'attribut hidden,
   même quand leur classe impose un display */
.fdi-error[hidden],
.fdi-merci[hidden],
.fdi-field[hidden] { display: none; }

/* Bandeau d'échec d'envoi — la saisie reste dans le champ */
.fdi-error {
  margin-top: 18px;
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(242, 85, 110, .1);
  border-left: 3px solid var(--fdi-coral);
}
.fdi-error-x { font: 400 18px var(--fdi-pixel); color: var(--fdi-coral-text); line-height: 1.2; }
.fdi-error-body { flex: 1; }
.fdi-error-msg { margin: 0 0 6px; font: 600 16px/1.4 var(--fdi-display); color: var(--fdi-blue-deep); }
.fdi-error-sub { margin: 0; font: 400 11px/1.5 var(--fdi-mono); color: rgba(34, 38, 184, .68); }
.fdi-retry {
  flex: none;
  height: 44px;
  margin: 0;
  padding: 0 22px;
  background: transparent;
  border: 1.4px solid var(--fdi-coral);
  border-radius: 0;
  font: 700 14px var(--fdi-display);
  color: var(--fdi-coral-text);
  cursor: pointer;
}
.fdi-retry:hover { background: rgba(242, 85, 110, .08); }

/* Zone d'annonce pour les lecteurs d'écran (invisible à l'œil) */
.fdi-status {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- Confirmation ---------- */

.fdi-merci {
  width: min(780px, 100%);
  padding: 22px 22px 24px;
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(255, 255, 255, .75);
  box-shadow: 0 24px 60px -30px rgba(34, 38, 184, .6), inset 0 1px 0 rgba(255, 255, 255, .9);
  animation: fdi-fadeup .6s cubic-bezier(.2, .7, .2, 1) both;
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .fdi-merci {
    background: rgba(255, 255, 255, .5);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
  }
}
.fdi-merci-kicker {
  margin: 0 0 16px;
  font: 400 9.5px var(--fdi-pixel);
  letter-spacing: .14em;
  color: var(--fdi-coral-text);
}
.fdi-merci-title {
  margin: 0 0 14px;
  font: 800 clamp(36px, calc(30.1px + 1.5vw), 52px)/1 var(--fdi-display);
  letter-spacing: -.03em;
  color: var(--fdi-blue-deep);
}
.fdi-merci-text {
  margin: 0 0 18px;
  font: 400 clamp(15px, calc(13.9px + .3vw), 18px)/1.45 var(--fdi-display);
  color: rgba(34, 38, 184, .8);
  max-width: 520px;
  text-wrap: pretty;
}
.fdi-merci-next {
  margin: 0 0 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  font: 400 9.5px var(--fdi-pixel);
  letter-spacing: .1em;
  color: var(--fdi-blue);
}
.fdi-again {
  height: 52px;
  margin: 0;
  padding: 0 26px;
  background: rgba(255, 255, 255, .5);
  border: 1.6px solid var(--fdi-blue);
  border-radius: 0;
  font: 700 15px var(--fdi-display);
  color: var(--fdi-blue);
  cursor: pointer;
}
.fdi-again:hover { background: rgba(52, 55, 236, .08); }

/* ---------- Invitation à défiler ---------- */

.fdi-scrollcta {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 16px;
  width: fit-content;
  text-decoration: none;
}
.fdi-scrollcta-circle {
  flex: none;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--fdi-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fdi-blue);
  font: 400 16px var(--fdi-display);
}
.fdi-arrow { display: inline-block; animation: fdi-arrowdn 1.6s ease-in-out infinite; }
.fdi-scrollcta-label {
  font: 600 14px var(--fdi-display);
  color: var(--fdi-blue-deep);
  border-bottom: 1px solid rgba(52, 55, 236, .35);
  padding-bottom: 2px;
}
.fdi-scrollcta:hover .fdi-scrollcta-label { color: var(--fdi-blue); }

/* Invitation discrète vers la section suivante (bas de chaque section) */
.fdi-suivant {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: clamp(40px, 5vw, 56px);
  text-decoration: none;
  font: 400 9.5px var(--fdi-pixel);
  letter-spacing: .14em;
  color: rgba(34, 38, 184, .66);
}
.fdi-suivant .fdi-arrow { animation-duration: 2.4s; font-size: 12px; }
.fdi-suivant:hover { color: var(--fdi-blue); }
.fdi-suivant:focus-visible {
  outline: 2px solid var(--fdi-blue-deep);
  outline-offset: 3px;
}
.fdi-surplace .fdi-suivant { color: rgba(255, 255, 255, .62); }
.fdi-surplace .fdi-suivant:hover { color: var(--fdi-sky); }

/* ==========================================================================
   6. SECTIONS ÉDITORIALES
   ========================================================================== */

/* Utilitaires partagés */
.fdi-kicker {
  margin: 0 0 26px;
  font: 400 9.5px var(--fdi-pixel);
  letter-spacing: .14em;
  color: var(--fdi-coral-text);
}
.fdi-h2 {
  margin: 0 0 26px;
  font: 800 var(--fdi-h2-size)/1 var(--fdi-display);
  letter-spacing: -.04em;
  color: var(--fdi-blue-deep);
  max-width: 1000px;
  text-wrap: pretty;
}
.fdi-cols {
  display: flex;
  flex-direction: column;
  gap: 44px;
  align-items: stretch;
}
.fdi-panel {
  border: 1px solid rgba(52, 55, 236, .2);
  background: rgba(255, 255, 255, .72);
  padding: 26px 24px;
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .fdi-panel {
    background: rgba(255, 255, 255, .55);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }
}
.fdi-panel-kicker {
  margin: 0 0 14px;
  font: 400 10.5px var(--fdi-pixel);
  letter-spacing: .12em;
  color: var(--fdi-blue);
}
.fdi-lien {
  font: 500 15px var(--fdi-display);
  color: var(--fdi-blue);
  text-decoration: none;
  border-bottom: 1px solid rgba(52, 55, 236, .4);
  padding-bottom: 2px;
}
.fdi-lien:hover { color: var(--fdi-coral-text); border-bottom-color: rgba(242, 85, 110, .5); }

/* ---------- 02 · L'œuvre ---------- */

.fdi-oeuvre {
  padding: var(--fdi-pad-haut) var(--fdi-pad-x) var(--fdi-pad-bas);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .86) 22%, rgba(255, 255, 255, .94));
}
.fdi-oeuvre-texte {
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.fdi-oeuvre-texte > p {
  margin: 0;
  font: 400 clamp(16px, calc(14.9px + .29vw), 19px)/1.6 var(--fdi-display);
  color: var(--fdi-body);
  text-wrap: pretty;
}
.fdi-oeuvre-texte > .fdi-oeuvre-accent { font-weight: 500; color: var(--fdi-blue-deep); }

.fdi-mots-liste {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  font: 400 clamp(15px, calc(12.4px + .67vw), 22px)/1.4 var(--fdi-pixel);
}
.fdi-mot-bleu { color: var(--fdi-blue); }
.fdi-mot-encre { color: var(--fdi-blue-deep); }
.fdi-mot-corail { color: var(--fdi-coral-text); }
.fdi-mots-note {
  margin: 24px 0 0;
  padding-top: 20px;
  border-top: 1px solid rgba(52, 55, 236, .18);
  font: 400 12.5px/1.6 var(--fdi-mono);
  color: rgba(20, 24, 80, .64);
}

/* ---------- Fondus de raccord entre sections ----------
   Le fond de la section précédente se dissout dans le suivant sur ~170 px :
   la frontière devient une transition, le liseré reste l'accent graphique. */
.fdi-surplace-fondu,
.fdi-startwest-fondu,
.fdi-studio-fondu {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 170px;
  pointer-events: none;
}
.fdi-surplace-fondu { background: linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(255, 255, 255, 0)); }
.fdi-startwest-fondu { background: linear-gradient(180deg, rgba(11, 14, 58, .96), rgba(11, 14, 58, 0)); }
.fdi-studio-fondu { height: 150px; background: linear-gradient(180deg, rgba(246, 230, 234, .85), rgba(246, 230, 234, 0)); }

/* ---------- Apparitions au défilement ----------
   Les blocs entrent en scène en fondu montant, en cascade discrète.
   Classes posées par le JS uniquement (la page reste entière sans lui). */
@media (prefers-reduced-motion: no-preference) {
  .fdi-js .fdi-reveal {
    opacity: 0;
    transform: translateY(26px);
    transition:
      opacity 1s cubic-bezier(.2, .7, .2, 1) var(--fdi-rd, 0s),
      transform 1s cubic-bezier(.2, .7, .2, 1) var(--fdi-rd, 0s);
  }
  .fdi-js .fdi-reveal-visible {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 03 · Sur place (section sombre) ---------- */

.fdi-surplace {
  position: relative;
  padding: var(--fdi-pad-haut) var(--fdi-pad-x) var(--fdi-pad-bas);
  background: var(--fdi-night);
  overflow: hidden;
}
.fdi-surplace-fond {
  position: absolute;
  inset: 0;
  background: url("assets/plate.jpg") center 58% / cover no-repeat;
  opacity: .3;
}
.fdi-surplace-voile {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 14, 58, .9), rgba(34, 38, 184, .55) 50%, rgba(11, 14, 58, .94));
}
.fdi-surplace-trame {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, .16) 1.2px, transparent 1.3px);
  background-size: 15px 15px;
}
.fdi-surplace-contenu { position: relative; }
.fdi-surplace .fdi-kicker { color: var(--fdi-coral); }
.fdi-surplace .fdi-h2 { color: var(--fdi-white); max-width: 940px; }
.fdi-surplace-lead {
  margin: 0 0 44px;
  font: 400 clamp(16px, calc(14.5px + .38vw), 20px)/1.55 var(--fdi-display);
  color: var(--fdi-body-inverse);
  max-width: 700px;
  text-wrap: pretty;
}
.fdi-surplace-grille {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.fdi-temps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
}
.fdi-temps-item {
  padding: 28px 0;
  border-top: 1px solid rgba(255, 255, 255, .22);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fdi-temps-item:last-child { border-bottom: 1px solid rgba(255, 255, 255, .22); }
.fdi-temps-index {
  font: 400 clamp(22px, calc(19px + .76vw), 30px) var(--fdi-pixel);
  color: rgba(255, 255, 255, .4);
}
.fdi-temps-titre {
  margin: 0;
  font: 600 clamp(22px, calc(19px + .76vw), 30px)/1.15 var(--fdi-display);
  letter-spacing: -.02em;
  color: var(--fdi-white);
}
.fdi-temps-texte {
  margin: 0;
  max-width: 520px;
  font: 400 clamp(15px, calc(14.4px + .14vw), 16.5px)/1.6 var(--fdi-display);
  color: var(--fdi-body-inverse);
  text-wrap: pretty;
}

/* ---------- 04 · Start West ---------- */

.fdi-startwest {
  position: relative;
  padding: var(--fdi-pad-haut) var(--fdi-pad-x);
  background: linear-gradient(140deg, var(--fdi-sky), var(--fdi-rose));
  overflow: hidden;
}
.fdi-startwest-trame {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(52, 55, 236, .14) 1.2px, transparent 1.3px);
  background-size: 13px 13px;
}
.fdi-startwest-contenu { position: relative; }
.fdi-h2-sw { font-size: clamp(40px, calc(28.1px + 3.05vw), 72px); line-height: .98; }
.fdi-startwest-texte {
  margin: 0;
  max-width: 520px;
  font: 400 clamp(16px, calc(14.9px + .29vw), 19px)/1.6 var(--fdi-display);
  color: var(--fdi-body);
  text-wrap: pretty;
}
.fdi-rdv { padding: 30px 26px; }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .fdi-rdv {
    background: rgba(255, 255, 255, .62);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
  }
}
.fdi-rdv-liste {
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
}
.fdi-rdv-ligne { padding: 20px 0; border-bottom: 1px solid rgba(52, 55, 236, .18); }
.fdi-rdv-ligne:first-child { padding-top: 0; }
.fdi-rdv-ligne .fdi-panel-kicker { margin-bottom: 8px; }
.fdi-rdv-quand {
  margin: 0;
  font: 600 clamp(21px, calc(19.1px + .48vw), 26px)/1.2 var(--fdi-display);
  color: var(--fdi-blue-deep);
}
.fdi-rdv-texte {
  margin: 0;
  font: 500 17px/1.5 var(--fdi-display);
  color: var(--fdi-blue-deep);
}
.fdi-ghost {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  border: 1.6px solid var(--fdi-blue);
  color: var(--fdi-blue);
  font: 700 16px var(--fdi-display);
  text-decoration: none;
}
.fdi-ghost:hover { background: rgba(52, 55, 236, .07); }

/* ---------- 05 · Studio Carlos + pied de page ---------- */

.fdi-studio {
  padding: var(--fdi-pad-haut) var(--fdi-pad-x) 48px;
  background: var(--fdi-white);
}
.fdi-studio-texte { max-width: 620px; }
.fdi-studio-p {
  margin: 0 0 18px;
  font: 400 clamp(15.5px, calc(14.8px + .19vw), 17.5px)/1.65 var(--fdi-display);
  color: rgba(20, 24, 80, .8);
  text-wrap: pretty;
}
.fdi-h2-studio { font-size: clamp(30px, calc(23.3px + 1.72vw), 48px); line-height: 1.05; letter-spacing: -.03em; }
/* Les garanties de l'expérience — posées dans la section sombre « Sur place » */
.fdi-garanties {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.fdi-garantie {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 22px;
  border: 1px solid rgba(255, 255, 255, .24);
  background: rgba(255, 255, 255, .04);
}
.fdi-garantie-label {
  flex: none;
  font: 400 10.5px var(--fdi-pixel);
  letter-spacing: .1em;
  color: var(--fdi-sky);
}
.fdi-garantie-texte { font: 400 12.5px/1.5 var(--fdi-mono); color: rgba(255, 255, 255, .66); }

.fdi-footer {
  margin-top: 64px;
  padding-top: 30px;
  border-top: 1px solid rgba(34, 38, 184, .14);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.fdi-footer-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 14px;
}
.fdi-badge {
  height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(34, 38, 184, .3);
  display: inline-flex;
  align-items: center;
  font: 800 10.5px var(--fdi-display);
  letter-spacing: .14em;
  color: var(--fdi-blue-deep);
}
.fdi-footer-stereolux {
  font: 400 10.5px var(--fdi-pixel);
  color: rgba(34, 38, 184, .8);
}
.fdi-footer-retour { font-size: 13px; }

/* ==========================================================================
   6 bis. COMPOSANTS DE LA PASSE « ART GÉNÉRATIF »
   ========================================================================== */

/* ---------- Liserés de transition entre sections ----------
   Une ligne fine qui se dessine au premier passage dans le viewport.
   Chaque section décline le même vocabulaire avec une variation discrète :
   sens inversé, teinte pâle sur fond sombre, départ décalé, tracé écourté. */
.fdi-ligne {
  position: absolute;
  top: 0;
  left: var(--fdi-pad-x);
  right: var(--fdi-pad-x);
  height: 1px;
  background: linear-gradient(90deg, var(--fdi-blue), rgba(52, 55, 236, .15));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.3s cubic-bezier(.2, .7, .2, 1);
}
.fdi-oeuvre { position: relative; }
.fdi-ligne-visible { transform: scaleX(1); }
.fdi-ligne-inverse {
  transform-origin: right;
  background: linear-gradient(270deg, var(--fdi-blue), rgba(52, 55, 236, .15));
}
.fdi-ligne-pale {
  background: linear-gradient(270deg, rgba(223, 233, 247, .75), rgba(223, 233, 247, .08));
}
.fdi-ligne-courte { right: calc(var(--fdi-pad-x) + 26%); }
.fdi-ligne-decalee {
  left: calc(var(--fdi-pad-x) + 22%);
  transition-delay: .15s;
}

/* ---------- Curseur de diffusion : du latent au résolu ----------
   Interaction bonus posée entre le champ et l'invitation à défiler : elle
   pilote l'état du paysage de fond. Pleine largeur du champ, piste fine,
   poignée plate corail — un fader, pas un widget. */
.fdi-diffctl { display: none; }
.fdi-js .fdi-diffctl {
  display: block;
  width: min(780px, 100%);
  margin: 24px 0 0;
}
.fdi-diffctl-range {
  display: block;
  width: 100%;
  height: 30px;
  margin: 0;
  padding: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: ew-resize;
}
.fdi-diffctl-range::-webkit-slider-runnable-track {
  height: 2px;
  background: linear-gradient(90deg, var(--fdi-blue), rgba(52, 55, 236, .22));
}
.fdi-diffctl-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 30px;
  height: 11px;
  margin-top: -4.5px;
  background: var(--fdi-coral);
  border: 0;
  border-radius: 0;
}
.fdi-diffctl-range::-moz-range-track {
  height: 2px;
  background: linear-gradient(90deg, var(--fdi-blue), rgba(52, 55, 236, .22));
}
.fdi-diffctl-range::-moz-range-thumb {
  width: 30px;
  height: 11px;
  background: var(--fdi-coral);
  border: 0;
  border-radius: 0;
}
.fdi-diffctl-range:focus-visible {
  outline: 2px solid var(--fdi-blue-deep);
  outline-offset: 4px;
}
.fdi-diffctl-etat {
  margin: 4px 0 0;
  display: flex;
  justify-content: space-between;
  font: 400 9.5px var(--fdi-pixel);
  letter-spacing: .14em;
  color: var(--fdi-blue-deep);
}
.fdi-diffctl-valeur { color: var(--fdi-coral-text); }

/* ---------- Pousse générative (section Studio) ----------
   Un canvas où des tiges croissent, bifurquent et fleurissent en direct —
   la démonstration vivante du travail du studio. Sans JavaScript, la
   colonne disparaît et la section reste en colonne unique. */
.fdi-generatif { display: none; } /* masquée sur mobile et sans JavaScript */
.fdi-generatif-canvas {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  border: 1px solid rgba(52, 55, 236, .2);
  background:
    radial-gradient(circle, rgba(52, 55, 236, .09) 1px, transparent 1.1px) 0 0 / 13px 13px,
    linear-gradient(180deg, #FDFDFF, #F3F6FC);
  cursor: pointer; /* un clic ressème la composition */
}
.fdi-generatif-pied {
  margin-top: 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.fdi-generatif-legende {
  margin: 0;
  font: 400 9.5px/1.6 var(--fdi-pixel);
  letter-spacing: .12em;
  color: rgba(34, 38, 184, .78);
}
.fdi-generatif-bouton {
  flex: none;
  margin: 0;
  padding: 8px 12px;
  background: transparent;
  border: 1.4px solid rgba(52, 55, 236, .5);
  border-radius: 0;
  font: 400 9px var(--fdi-pixel);
  letter-spacing: .12em;
  color: var(--fdi-blue);
  cursor: pointer;
  transition: background .25s ease, border-color .25s ease;
}
.fdi-generatif-bouton:hover { background: rgba(52, 55, 236, .07); border-color: var(--fdi-blue); }
.fdi-generatif-bouton:focus-visible {
  outline: 2px solid var(--fdi-blue-deep);
  outline-offset: 3px;
}

/* ---------- Visuels de références (section Studio) ----------
   Unifiés par un duotone bleu (image en niveaux de gris fusionnée sur fond
   bleu encre) et une trame de points — l'esprit sérigraphie de la charte. */
.fdi-refs-visuels {
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.fdi-ref {
  flex: 1 1 240px;
  min-width: 0;
}
.fdi-ref-figure { margin: 0; }
.fdi-ref-lien { display: block; text-decoration: none; }
.fdi-ref-lien:focus-visible {
  outline: 2px solid var(--fdi-blue-deep);
  outline-offset: 3px;
}
.fdi-ref-cadre {
  display: block;
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid rgba(34, 38, 184, .22);
  background: var(--fdi-blue-deep);
}
.fdi-ref-cadre > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.06) brightness(1.04);
  mix-blend-mode: screen; /* les tons clairs restent, les ombres virent au bleu encre */
  opacity: .92;
  transition: filter .45s ease, opacity .45s ease;
}
/* Au survol, l'image reprend un souffle de ses couleurs réelles */
.fdi-ref-lien:hover .fdi-ref-cadre > img,
.fdi-ref-lien:focus-visible .fdi-ref-cadre > img {
  filter: grayscale(.3) contrast(1.03) brightness(1.02);
  opacity: 1;
}
.fdi-ref-cadre::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(11, 14, 58, .38) 1px, transparent 1.1px);
  background-size: 5px 5px;
  pointer-events: none;
}
.fdi-ref-legende {
  margin: 9px 0 0;
  font: 400 9.5px/1.6 var(--fdi-pixel);
  letter-spacing: .12em;
  color: rgba(34, 38, 184, .72);
}

/* ---------- Nuage de mots data art ----------
   Les spans sont générés par le JS depuis la constante MOTS (app.js) :
   taille et opacité suivent le poids, apparition en fondu décalé. */
.fdi-mot {
  display: inline-block;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .8s ease var(--fdi-md, 0s), transform .8s cubic-bezier(.2, .7, .2, 1) var(--fdi-md, 0s);
}
.fdi-mots-reveal .fdi-mot {
  opacity: var(--fdi-mo, 1);
  transform: translateY(var(--fdi-mt, 0px));
}

/* ---------- Section Studio renforcée ---------- */
.fdi-studio { position: relative; overflow: hidden; }
.fdi-studio-contenu { position: relative; }
.fdi-studio-texte { max-width: 680px; }
.fdi-studio-deco {
  position: absolute;
  right: -170px;
  bottom: -230px;
  width: 520px;
  opacity: .12;
  pointer-events: none;
}
.fdi-curation {
  margin: 6px 0 22px;
  padding: 16px 20px;
  border-left: 3px solid var(--fdi-blue);
  background: rgba(52, 55, 236, .05);
}
.fdi-curation .fdi-panel-kicker { margin-bottom: 8px; }
.fdi-curation-texte {
  margin: 0;
  font: 400 15px/1.6 var(--fdi-display);
  color: rgba(20, 24, 80, .8);
}
.fdi-refs-label { margin: 26px 0 8px; }
.fdi-studio-refs {
  margin: 0 0 26px;
  font: 400 10.5px/1.9 var(--fdi-pixel);
  letter-spacing: .14em;
  color: rgba(34, 38, 184, .72);
}
.fdi-studio-actions {
  display: flex;
  align-items: stretch;
  gap: 14px;
}
.fdi-studio-cta {
  display: inline-flex;
  gap: 12px;
  height: 54px;
  padding: 0 26px;
  font-size: 16px;
}
.fdi-linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  border: 1.6px solid rgba(34, 38, 184, .35);
  color: var(--fdi-blue);
  transition: background .25s ease, border-color .25s ease;
}
.fdi-linkedin:hover { background: rgba(52, 55, 236, .07); border-color: var(--fdi-blue); }
.fdi-linkedin > svg { display: block; }
.fdi-linkedin:focus-visible,
.fdi-studio-cta:focus-visible {
  outline: 2px solid var(--fdi-blue-deep);
  outline-offset: 3px;
}

/* ==========================================================================
   7. ANIMATIONS
   ========================================================================== */

@keyframes fdi-pulse { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }
@keyframes fdi-arrowdn { 0%, 100% { transform: translateY(0); opacity: .45; } 50% { transform: translateY(9px); opacity: 1; } }
@keyframes fdi-floatz { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -22px, 0); } }
@keyframes fdi-driftb { 0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); } 50% { transform: translate3d(22px, -30px, 0) rotate(-6deg); } }
@keyframes fdi-cloudx { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(60px, 14px, 0); } }
@keyframes fdi-spin3d { 0%, 100% { transform: rotate3d(1, .35, .1, -14deg) rotateZ(0deg); } 50% { transform: rotate3d(1, .35, .1, 16deg) rotateZ(9deg); } }
@keyframes fdi-puff { 0% { transform: scale(1) rotate(0deg); } 25% { transform: scale(1.09) rotate(5deg); } 100% { transform: scale(1) rotate(0deg); } }
/* L'envol d'une lettre : elle tourbillonne d'abord dans la zone du champ
   (point de passage propre à chaque lettre, via --fdi-gx/--fdi-gy/--fdi-gr
   posées par le JS), puis file vers le haut et se dissout. */
@keyframes fdi-gust {
  0% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); opacity: 1; filter: blur(0); }
  38% { transform: translate3d(var(--fdi-gx, 24px), var(--fdi-gy, -18px), 0) rotate(var(--fdi-gr, 9deg)) scale(1.16); opacity: 1; filter: blur(.4px); }
  100% { transform: translate3d(380px, -240px, 0) rotate(30deg) scale(.9); opacity: 0; filter: blur(5px); }
}
@keyframes fdi-windline {
  0% { transform: translateX(-40%) scaleX(.3); opacity: 0; }
  25% { opacity: .85; }
  100% { transform: translateX(140%) scaleX(1.4); opacity: 0; }
}
@keyframes fdi-gustseeds {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 0; }
  20% { opacity: .9; }
  100% { transform: translate3d(520px, -300px, 0) rotate(40deg); opacity: 0; }
}
@keyframes fdi-fadeup {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   8. POINTS DE RUPTURE — 768 px puis 1200 px
   ========================================================================== */

@media (min-width: 768px) {
  .fdi-hero { padding: 36px clamp(22px, calc(-3.3px + 6.5vw), 90px) 36px; }
  .fdi-hero-brand { display: block; }
  .fdi-live { font-size: 11.5px; }
  .fdi-hero-main { justify-content: center; }
  .fdi-h1 { margin-bottom: 22px; line-height: .88; }
  .fdi-hero-lead { margin-bottom: 46px; }

  .fdi-field { padding: 30px 34px 28px; min-height: 196px; }
  .fdi-field-label { font-size: 11px; margin-bottom: 20px; }
  .fdi-input { padding-bottom: 16px; }
  .fdi-field-foot {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 20px;
  }
  .fdi-field-meta { order: 0; font-size: 11px; }
  .fdi-cta { order: 0; height: 60px; }
  .fdi-merci { padding: 30px 34px 30px; }
  .fdi-merci-kicker { font-size: 11px; margin-bottom: 18px; }
  .fdi-merci-next { font-size: 11px; }

  .fdi-kicker { font-size: 11.5px; letter-spacing: .16em; margin-bottom: 34px; }
  .fdi-h2 { margin-bottom: 40px; }
  .fdi-panel-kicker { margin-bottom: 22px; }
  .fdi-cols { flex-direction: row; gap: clamp(44px, 6vw, 80px); align-items: flex-start; }
  .fdi-cols > * { min-width: 0; }
  .fdi-oeuvre-texte { flex: 1; gap: 26px; }
  .fdi-mots { flex: none; width: min(520px, 46%); padding: 34px 36px; }
  .fdi-mots-note { margin-top: 30px; padding-top: 24px; }

  .fdi-surplace .fdi-h2 { margin-bottom: 26px; }
  .fdi-surplace-lead { margin-bottom: 56px; }
  .fdi-surplace-grille {
    flex-direction: row;
    align-items: center; /* les garanties se centrent sur la hauteur des trois temps */
    gap: clamp(40px, 5vw, 70px);
  }
  .fdi-temps { flex: 1; min-width: 0; }
  .fdi-temps-item {
    display: grid;
    grid-template-columns: 64px 1fr;
    column-gap: clamp(18px, 2.5vw, 34px);
    row-gap: 10px;
    padding: 38px 0;
  }
  .fdi-temps-index { grid-row: 1 / 3; }

  .fdi-startwest-contenu { align-items: flex-start; }
  .fdi-rdv { flex: none; width: min(520px, 46%); padding: 40px; }
  .fdi-ghost { height: 60px; font-size: 17px; }

  .fdi-studio-p { margin-bottom: 20px; }
  .fdi-studio-contenu {
    display: flex;
    align-items: center;
    gap: clamp(44px, 6vw, 90px);
  }
  .fdi-studio-texte { flex: 1; min-width: 0; }
  .fdi-js .fdi-generatif { display: block; flex: none; width: min(420px, 38%); }
  .fdi-garanties { flex: none; width: min(320px, 34%); }
  .fdi-garantie { padding: 20px 24px; }
  .fdi-footer { margin-top: 90px; padding-top: 34px; }
  .fdi-badge { height: 38px; padding: 0 16px; font-size: 12px; }

  /* Couches de fond — valeurs desktop */
  .fdi-layer-plate,
  .fdi-layer-pixel {
    inset: -90px;
    transform: translate3d(
      calc(var(--fdi-mx) * var(--fdi-kx, 0px)),
      calc(var(--fdi-sy) * var(--fdi-ks, 0px) + var(--fdi-my) * var(--fdi-ky, 0px)),
      0
    ) scale(1.03);
  }
  .fdi-layer-plate { opacity: .62; --fdi-kx: -24px; --fdi-ky: -16px; --fdi-ks: -0.06px; }
  .fdi-layer-pixel {
    --fdi-kx: -24px; --fdi-ky: -16px; --fdi-ks: -0.06px;
    -webkit-mask-image: radial-gradient(circle 320px at var(--fdi-cx, 62%) var(--fdi-cy, 42%), transparent 0%, rgba(0, 0, 0, .55) 55%, #000 85%);
    mask-image: radial-gradient(circle 320px at var(--fdi-cx, 62%) var(--fdi-cy, 42%), transparent 0%, rgba(0, 0, 0, .55) 55%, #000 85%);
  }
  .fdi-layer-grid {
    inset: -60px;
    background-image:
      radial-gradient(circle, rgba(52, 55, 236, .15) 1.2px, transparent 1.3px),
      radial-gradient(circle, rgba(242, 85, 110, .07) 1.1px, transparent 1.2px);
    background-size: 13px 13px, 55px 55px;
    background-position: 0 0, 7px 11px;
    --fdi-kx: -46px; --fdi-ky: -30px; --fdi-ks: -0.14px;
  }
  .fdi-cloud { display: block; }
  .fdi-layer-mesh {
    right: -110px; top: 70px; width: 840px; height: 840px;
    --fdi-kx: -150px; --fdi-ky: -96px; --fdi-ks: -0.45px;
  }
  .fdi-layer-seeds {
    left: 48%; top: 66%; width: 380px; height: 126px;
    --fdi-kx: -200px; --fdi-ky: -120px; --fdi-ks: -0.7px;
  }
  .fdi-seeds-drift { opacity: .85; animation-duration: 15s; }

  .fdi-hero-tilt {
    transform: perspective(1400px)
      rotateY(calc(var(--fdi-mx) * 5deg))
      rotateX(calc(var(--fdi-my) * -3deg));
  }
}

@media (min-width: 1200px) {
  .fdi-hero { padding: 44px 90px 40px; }
  .fdi-oeuvre,
  .fdi-surplace { padding: 150px 90px 160px; }
  .fdi-startwest { padding: 150px 90px; }
  .fdi-studio { padding: 140px 90px 60px; }
}

/* ==========================================================================
   9. ANIMATIONS RÉDUITES — on garde le sens, on retire le mouvement.
   Le JavaScript lit aussi cette préférence (pas de parallaxe, pas d'envol
   de lettres, pas de défilement automatique).
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .fdi-live-dot,
  .fdi-arrow,
  .fdi-cloud-drift,
  .fdi-mesh-float,
  .fdi-mesh-fallback,
  .fdi-mesh-canvas,
  .fdi-seeds-drift,
  .fdi-windline,
  .fdi-gustseeds,
  .fdi-fly-l { animation: none; }
  .fdi-merci { animation-duration: .01s; }
  .fdi-gust-overlay { display: none; }
  .fdi-mesh-canvas,
  .fdi-pixel-canvas { display: none; }
  .fdi-placeholder { transition: none; }
  .fdi-ligne { transition-duration: .01s; }
  .fdi-mot { transition: none; }
  .fdi-js .fdi-diffctl { display: none; } /* le fond est statique : le curseur n'aurait pas d'effet */
}
