/* =====================================================================
   figma.css — Hero + Section chapitres, d'après le design Figma "HDR Hero"
   Layout absolu fidèle (canvas 1440) sur desktop, reflow en dessous de 820px.
   ===================================================================== */

/* ============ Marque commune (logo + menu + compteur) ============ */
.fx-logo {
  position: absolute; top: 26px; left: 50%; transform: translateX(-50%);
  z-index: 40; display: flex; align-items: center;
  gap: clamp(16px, 2.2vw, 32px);
  max-width: calc(100% - 2 * var(--gutter));
}
.fx-logo img {
  height: clamp(24px, 2.6vw, 34px); width: auto; object-fit: contain;
  opacity: 0.9;
}

.fx-menu {
  position: absolute; top: 30px; right: var(--gutter); z-index: 40;
  display: flex; align-items: center; gap: 10px;
  background: none; border: 0; cursor: pointer;
  font-family: var(--font-body); font-size: var(--t-micro);
  letter-spacing: var(--track-label); text-transform: uppercase; color: var(--white);
}
.fx-menu .bars { display: inline-flex; width: 20px; height: 20px; }
.fx-menu .bars svg { width: 100%; height: 100%; }
.fx-menu:hover { color: var(--neon); }

/* ============ HERO ============ */
.fx-hero {
  position: relative; min-height: 100svh; background: var(--black);
  overflow: hidden; isolation: isolate; color: var(--white);
  display: grid; grid-template-columns: minmax(0, 1fr) 478px;
  align-content: space-between; align-items: start; gap: 3rem 2rem;
  padding: clamp(78px, 10vh, 118px) var(--gutter) 100px;
}
.fx-hero__bg {
  position: absolute; inset: 0; z-index: -3; overflow: hidden; background: #000;
}
.fx-hero__fx {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
}
.fx-hero__bg::before {   /* image de fond (mouvement ambiant + parallaxe) */
  content: ""; position: absolute; inset: -12%;
  background: var(--hero-bg) center/cover no-repeat;
  transform-origin: 62% 45%;
  translate: 0 var(--par, 0px);
}
.fx-hero__bg::after {   /* vignette + saturation du néon */
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 60% 45%, transparent 40%, rgba(0,0,0,0.55) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.75) 0%, transparent 22% 70%, rgba(0,0,0,0.6) 100%);
}
@media (prefers-reduced-motion: no-preference) {
  .fx-hero__bg::before { animation: heroDrift 26s var(--ease-in-out) infinite alternate; }
}
@keyframes heroDrift {
  from { transform: scale(1.05); }
  to   { transform: scale(1.13) translate(-1.6%, -2.4%); }
}
.fx-hero__scrim {   /* dégradé haut (Figma : 301px, opacity .6) */
  position: absolute; top: 0; left: 0; right: 0; height: 301px; z-index: -1;
  background: linear-gradient(180deg, rgba(0,0,0,0.85), rgba(0,0,0,0));
}

/* Colonne d'accroche (identité + titre + descripteur) */
.fx-hero__lead {
  position: relative; grid-column: 1 / -1; z-index: 20;
  display: flex; flex-direction: column; gap: clamp(16px, 2.4vh, 28px);
  max-width: min(660px, 58%);
}
.fx-hero__kicker {
  position: absolute; left: var(--gutter); top: 33px; z-index: 40;
  font-family: var(--font-body); font-size: var(--t-micro); line-height: 1.5;
  letter-spacing: 0.26em; text-transform: uppercase; color: var(--neon);
}

/* Carte identité (façon LinkedIn) */
.fx-identity { display: flex; align-items: center; gap: 14px; }
.fx-identity__ph {
  width: clamp(54px, 5vw, 68px); height: clamp(54px, 5vw, 68px);
  border-radius: 50%; object-fit: cover; flex-shrink: 0;
  border: 1.5px solid rgba(255,255,255,0.4);
  box-shadow: 0 0 0 4px rgba(255,255,255,0.05), 0 8px 20px rgba(0,0,0,0.55);
}
.fx-identity__txt { display: grid; gap: 3px; min-width: 0; }
.fx-identity__name {
  font-family: var(--font-body); font-weight: 600;
  font-size: 1.5rem; color: #fff;
  display: flex; align-items: center; gap: 7px; line-height: 1.1;
}
.fx-identity__badge {
  display: inline-flex; width: 17px; height: 17px; color: var(--neon);
}
.fx-identity__badge svg { width: 100%; height: 100%; }
.fx-identity__role {
  font-family: var(--font-body); font-size: var(--t-small);
  color: var(--muted); line-height: 1.4; max-width: 26ch;
}

/* Titre étagé (Unbounded Light, MAJ) */
.fx-hero__title {
  margin: 0; font-family: var(--font-display); font-weight: 300;
  text-transform: uppercase; line-height: 0.98; letter-spacing: -0.02em;
  font-size: var(--t-hero); color: #fff;
}
.fx-hero__title .l { display: block; }
.fx-hero__title .l2 { padding-left: 1.1em; }
.fx-hero__title .l3 { padding-left: 0.4em; color: var(--white); }
.fx-hero__title em {
  font-style: normal;
  background: linear-gradient(100deg, #fff 30%, var(--neon-2) 120%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Bloc descripteur — statement éditorial, aligné au titre */
.fx-hero__desc {
  position: relative; max-width: 44ch; text-align: left;
  padding-top: clamp(14px, 1.8vh, 20px);
}
.fx-hero__desc::before {
  content: ""; position: absolute; left: 0; top: 0;
  width: 52px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--neon), color-mix(in srgb, var(--neon) 15%, transparent));
}
.fx-hero__desc .t {
  font-family: var(--font-body); font-weight: 600;
  font-size: clamp(1.4rem, 1rem + 1.5vw, 2.05rem);
  line-height: 1.12; letter-spacing: -0.015em; color: #fff;
}
.fx-hero__desc .t em {
  font-style: normal;
  background: linear-gradient(100deg, #fff 25%, var(--neon-2) 125%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.fx-hero__desc .b {
  font-size: var(--t-body); color: rgba(255, 255, 255, 0.82);
  margin-top: 0.7rem; line-height: 1.6; max-width: 40ch;
}

/* Cartes verre (bas-gauche) — accès documents */
.fx-cards { position: relative; grid-column: 2; grid-row: 2; z-index: 20; display: flex; gap: 14px; }
.fx-card {
  position: relative; width: 150px; height: 190px; overflow: hidden;
  background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line); color: #fff; display: block; isolation: isolate;
  transition: transform var(--dur) var(--ease-out), border-color var(--dur), background var(--dur);
}
.fx-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(120% 75% at 50% 22%, rgba(255,255,255,0.07), transparent 62%),
              linear-gradient(180deg, transparent 45%, rgba(0,0,0,0.5));
}
.fx-card__ico {
  position: absolute; left: 0; right: 0; top: 44%; transform: translateY(-50%);
  display: grid; place-items: center; color: rgba(255,255,255,0.92);
  transition: color var(--dur), transform var(--dur) var(--ease-out);
}
.fx-card__ico svg { width: 46px; height: 46px; }
.fx-card .lbl {
  position: absolute; left: 14px; right: 14px; bottom: 13px;
  font-family: var(--font-body); font-weight: 600; font-size: 0.86rem;
  letter-spacing: 0.03em; text-transform: uppercase; line-height: 1.15; color: #fff;
}
.fx-card .lbl em {
  display: block; margin-top: 2px; font-style: normal; font-weight: 500;
  font-size: 0.7rem; letter-spacing: 0.02em; text-transform: none; color: rgba(255,255,255,0.6);
}
.fx-card .arw {
  position: absolute; top: 10px; right: 10px; width: 18px; height: 18px;
  display: grid; place-items: center; color: rgba(255,255,255,0.75);
  transition: color var(--dur), transform var(--dur) var(--ease-out);
}
.fx-card .arw svg { width: 15px; height: 15px; }
.fx-card:hover { transform: translateY(-4px); border-color: var(--neon); background: rgba(255,51,35,0.06); }
.fx-card:hover .arw { color: var(--neon); transform: translate(2px, -2px); }
.fx-card:hover .fx-card__ico { color: var(--neon); transform: translateY(-50%) scale(1.06); }

/* Titre secondaire (bas-droite) */
.fx-hero__secondary {
  position: relative; grid-column: 1; grid-row: 2; z-index: 20; text-align: right;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.375rem;
  font-family: var(--font-display); font-weight: 300; text-transform: uppercase;
  font-size: 1.125rem; line-height: 1.5; letter-spacing: 0; color: #fff;
}
.fx-hero__secondary::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0;
  height: 1px; background: rgba(255, 255, 255, 0.4);
}
.fx-hero__secondary span { display: block; }
.fx-hero__secondary .accent { color: var(--neon); }
.fx-jury__member {
  display: grid; grid-template-columns: 13rem minmax(0, 1fr) 6rem;
  align-items: center; gap: 0.75rem;
}
.fx-jury__name { font-size: 0.9375rem; text-align: left; justify-self: start; }
.fx-jury__role, .fx-jury__affiliation {
  font-family: var(--font-body); font-size: 0.875rem;
  font-weight: 400; text-transform: none; line-height: 1.4;
}
.fx-jury__role { color: var(--white); margin: 3px 0; }
.fx-jury__affiliation { color: rgba(255, 255, 255, 0.85); text-align: left; }

@media (min-width: 1101px) {
  .fx-hero__secondary {
    height: 190px; grid-template-rows: repeat(6, minmax(0, 1fr)); row-gap: 2px;
  }
  .fx-jury__member {
    grid-template-columns: 12rem minmax(0, 1fr) 5.5rem; gap: 0.5rem;
  }
  .fx-jury__name { font-size: 0.875rem; line-height: 1.15; }
  .fx-jury__role, .fx-jury__affiliation { font-size: 0.75rem; line-height: 1.2; }
  .fx-jury__role { margin: 0; }
}

/* Indice de défilement */
.fx-cue {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 20;
  display: grid; justify-items: center; gap: 6px;
  font-family: var(--font-body); font-size: var(--t-micro);
  letter-spacing: var(--track-label); text-transform: uppercase; color: var(--faint);
}
.fx-cue .rail { width: 1px; height: 44px; background: linear-gradient(var(--neon), transparent); position: relative; overflow: hidden; }
.fx-cue .rail::after { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 40%; background: var(--neon); animation: cue 2.1s var(--ease-in-out) infinite; }

/* ============ SECTION CHAPITRES (menu ardoise) ============ */
.fx-chapters { position: relative; background: var(--black); padding: 96px 0 0; overflow: hidden; }
.fx-chapters__panel {
  position: relative; background: var(--slate); color: #fff; overflow: hidden;
  padding: clamp(3rem, 6vw, 7rem) var(--gutter) clamp(3rem, 6vw, 6rem);
}
.fx-chapters__panel::before {   /* rappel discret du fond 3D */
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: 0.14;
  background: var(--hero-bg) center/cover; mix-blend-mode: luminosity;
}
.fx-chapters__inner { position: relative; z-index: 2; max-width: var(--maxw); margin-inline: auto; }

.fx-chapters__title {
  margin: 0 0 clamp(2.5rem, 6vw, 5rem); font-family: var(--font-display); font-weight: 300;
  text-transform: uppercase; line-height: 0.98; letter-spacing: -0.03em;
  font-size: var(--t-h1); color: #fff;
}
.fx-chapters__title .l { display: block; }
.fx-chapters__title .l2 { padding-left: 1.6em; }
.fx-chapters__title .l3 { padding-left: 0.7em; }

.fx-chaptergrid {
  display: grid; gap: clamp(1.5rem, 3vw, 2.5rem);
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.fx-chapter-item {
  position: relative; display: grid; gap: 0.9rem; align-content: start;
  padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,0.28);
  color: #fff; transition: border-color var(--dur);
}
.fx-chapter-item .num {
  font-family: var(--font-display); font-weight: 300; font-size: var(--t-h3);
  letter-spacing: -0.02em; color: rgba(255,255,255,0.42); transition: color var(--dur);
}
.fx-chapter-item h3 {
  font-family: var(--font-display); font-weight: 300; font-size: var(--t-h3);
  text-transform: uppercase; line-height: 1.05; letter-spacing: -0.02em; color: #fff; margin: 0;
}
.fx-chapter-item p { font-size: var(--t-small); color: rgba(255,255,255,0.7); line-height: 1.5; }
.fx-chapter-item .go {
  margin-top: 0.2rem; font-family: var(--font-body); font-size: var(--t-micro);
  letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.55);
  display: inline-flex; align-items: center; gap: 0.5em;
}
.fx-chapter-item .go svg { width: 1.15em; height: 1.15em; transition: transform var(--dur) var(--ease-out); }
.fx-chapter-item:hover .go svg { transform: translateX(3px); }
.fx-chapter-item:hover { border-color: var(--neon); }
.fx-chapter-item:hover .num { color: var(--neon); }
.fx-chapter-item:hover .go { color: var(--neon); }

/* ============ Responsive ============ */
@media (max-width: 1100px) {
  .fx-hero__desc { left: auto; right: var(--gutter); top: 40%; }
  .fx-jury__member { grid-template-columns: minmax(0, 1fr); gap: 0.125rem; }
}
@media (max-width: 820px) {
  .fx-hero { display: block; min-height: auto; padding: 120px 0 60px; }
  .fx-hero__bg, .fx-hero__bg::after { position: absolute; }
  .fx-hero__kicker { position: static; margin: 0 var(--gutter) 1rem; }
  .fx-hero__lead { position: static; margin: 0 var(--gutter); max-width: none; }
  .fx-hero__title { font-size: clamp(2.4rem, 12vw, 4rem); }
  .fx-hero__title .l2, .fx-hero__title .l3 { padding-left: 0; }
  .fx-hero__secondary { position: relative; text-align: left; margin: 2.5rem var(--gutter) 0; }
  .fx-cards { position: static; margin: 2.5rem var(--gutter) 0; }
  .fx-cue { display: none; }
  .fx-hero__secondary { font-size: var(--t-card); }
}

/* ===== Entrée échelonnée du hero (respecte prefers-reduced-motion) ===== */
@media (prefers-reduced-motion: no-preference) {
  .fx-hero .fx-logo,
  .fx-hero .fx-menu,
  .fx-hero__kicker,
  .fx-hero .fx-identity,
  .fx-hero__title .l,
  .fx-hero__desc,
  .fx-jury__member,
  .fx-cards .fx-card,
  .fx-hero .fx-cue {
    opacity: 0;
    animation: heroIn 1s var(--ease-out) both;
  }
  .fx-hero .fx-logo,
  .fx-hero .fx-cue { animation-name: heroInCenter; }

  .fx-hero .fx-logo            { animation-delay: 0.08s; }
  .fx-hero .fx-menu            { animation-delay: 0.16s; }
  .fx-hero__kicker            { animation-delay: 0.24s; }
  .fx-hero .fx-identity       { animation-delay: 0.34s; }
  .fx-hero__title .l1         { animation-delay: 0.46s; }
  .fx-hero__title .l2         { animation-delay: 0.58s; }
  .fx-hero__desc              { animation-delay: 0.68s; }
  .fx-hero__desc             { animation-delay: 0.64s; }
  .fx-jury__member:nth-child(1) { animation-delay: 0.66s; }
  .fx-jury__member:nth-child(2) { animation-delay: 0.74s; }
  .fx-jury__member:nth-child(3) { animation-delay: 0.82s; }
  .fx-jury__member:nth-child(4) { animation-delay: 0.90s; }
  .fx-jury__member:nth-child(5) { animation-delay: 0.98s; }
  .fx-jury__member:nth-child(6) { animation-delay: 1.06s; }
  .fx-cards .fx-card:nth-child(1) { animation-delay: 0.72s; }
  .fx-cards .fx-card:nth-child(2) { animation-delay: 0.80s; }
  .fx-cards .fx-card:nth-child(3) { animation-delay: 0.88s; }
  .fx-hero .fx-cue           { animation-delay: 1.20s; }
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroInCenter {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}
