/* =====================================================================
   PAGE D'ACCUEIL — éléments propres à cette page.
   Les composants communs (sections, boutons, formulaires, pied de page) sont dans les fichiers 00 à 60.
   Ordre de la page : hero · bande défilante · présentation · vision · pôles · écosystème · approche · valeurs · contact.
===================================================================== */

/* ---- Progression de lecture et curseur personnalisé ---- */
.scroll-progress-bar { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 150; background: var(--color-ink); transform: scaleX(0); transform-origin: 0 50%; }
.custom-cursor { position: fixed; left: 0; top: 0; z-index: 160; width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 1px solid var(--color-ink); border-radius: 50%; pointer-events: none; opacity: 0; }

/* ---- Hero : fond (image ou vidéo) qui change avec le pilier, texte, boutons, composition d'images ---- */
.hero { position: relative; height: 100vh; display: flex; align-items: center; padding: 130px 0 90px; overflow: hidden; color: var(--color-white); background: #14181d; }
.hero__media { position: absolute; inset: 0; }
.hero__media-layer { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; }
.hero__media-layer.is-active { opacity: 1; }
.hero__poster, .hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__video { opacity: 0; transition: opacity .9s ease; }
.hero__video.is-playing { opacity: 1; }
.hero__scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.5), rgba(0,0,0,0) 62%); }   /* assombrit légèrement la zone de texte */
.hero__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; width: 100%; }
@media (max-width: 900px) { .hero__inner { grid-template-columns: 1fr; gap: 44px; } }
.hero__content { min-width: 0; }
.hero__eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.88); }
.hero__eyebrow-dots { display: flex; gap: 5px; }
.hero__eyebrow-dots i { width: 9px; height: 9px; border-radius: 50%; display: block; }
/* Titre + texte : s'estompent pendant le changement de pilier (classe is-switching posée par le script) */
.hero__copy { transition: opacity .25s ease, transform .25s ease; }
.hero__copy.is-switching { opacity: 0; transform: translateY(10px); }
.hero__title { font-size: clamp(34px, 5vw, 66px); line-height: 1.05; max-width: 17ch; }
.hero__text { margin-top: 24px; min-height: 5.2em; max-width: 52ch; font-size: 17px; line-height: 1.7; color: rgba(255,255,255,.86); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero__scroll-hint { position: absolute; left: var(--container-padding); bottom: 30px; z-index: 3; font-size: 13px; color: rgba(255,255,255,.7); }
@media (max-width: 700px) { .hero__scroll-hint { display: none; } }

/* Sélecteur de pilier : trois boutons colorés (couleur du pôle associé) */
.pillar-switch { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.pillar-switch__button {
  --pillar-color: var(--color-academy); --pillar-text: var(--color-white);
  padding: 12px 24px; border-radius: var(--radius-pill); cursor: pointer;
  font: 600 13px var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--pillar-text);
  border: 1px solid color-mix(in srgb, var(--pillar-color) 70%, #000);
  background: linear-gradient(180deg, color-mix(in srgb, var(--pillar-color) 70%, #fff) 0%, var(--pillar-color) 52%, color-mix(in srgb, var(--pillar-color) 80%, #000) 100%);
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,.45), inset 0 -2px 4px rgba(0,0,0,.25), 0 8px 18px rgba(0,0,0,.3);
  opacity: .6; transition: opacity .3s, transform .3s;
}
.pillar-switch__button:hover { opacity: .9; }
.pillar-switch__button[aria-pressed="true"] { opacity: 1; transform: translateY(-2px); }
.pillar-switch__button--savoir { --pillar-color: var(--color-academy); }
.pillar-switch__button--innovation { 
  --pillar-color: var(--color-tech); 
  /* --pillar-text: var(--color-ink);  */
}
.pillar-switch__button--impact { --pillar-color: var(--color-impact); }

/* Composition d'images à droite du hero */
.hero-visual { position: relative; width: 100%; max-width: 540px; margin-left: auto; aspect-ratio: 1 / 1.08; }
.hero-visual__main { position: absolute; inset: 0 0 12% 14%; margin: 0; border-radius: var(--radius-media); overflow: hidden; box-shadow: 0 30px 70px rgba(0,0,0,.4); }
.hero-visual__thumb { position: absolute; left: 0; bottom: 0; width: 40%; aspect-ratio: 1; margin: 0; border-radius: var(--radius-card); overflow: hidden; border: 6px solid rgba(255,255,255,.92); box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.hero-visual__main img, .hero-visual__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.glass-panel { background: linear-gradient(180deg, rgba(255,255,255,.28), rgba(255,255,255,.08)); -webkit-backdrop-filter: blur(14px) saturate(150%); backdrop-filter: blur(14px) saturate(150%); border: 1px solid rgba(255,255,255,.45); border-radius: 22px; color: var(--color-white); box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 12px 30px rgba(0,0,0,.2); }
.hero-visual__stat { position: absolute; display: flex; flex-direction: column; gap: 2px; padding: 16px 22px; }
.hero-visual__stat strong { font: 500 36px/1 var(--font-heading); }
.hero-visual__stat span { font-size: 12.5px; letter-spacing: .04em; opacity: .9; }
.hero-visual__stat--poles { left: 2%; top: 10%; }
.hero-visual__stat--year { right: -3%; bottom: 4%; }
.hero-visual__legend { position: absolute; right: -2%; top: 4%; margin: 0; padding: 14px 18px; list-style: none; display: grid; gap: 8px; font-size: 12.5px; }
.hero-visual__legend li { display: flex; align-items: center; gap: 9px; white-space: nowrap; }
.hero-visual__legend i { width: 9px; height: 9px; border-radius: 50%; display: block; }
@media (max-width: 900px) { .hero-visual { max-width: 460px; margin: 0 auto; } }
@media (max-width: 560px) { .hero-visual__thumb, .hero-visual__legend { display: none; } .hero-visual__main { inset: 0; } .hero-visual__stat--year { right: 4%; } }

/* ---- Bande défilante : orange foncé ---- */
.ticker-band { background: var(--color-orange-dark); color: var(--color-white); overflow: hidden; white-space: nowrap; padding: 16px 0; font: 22px var(--font-heading); }
.ticker-band__track { display: inline-block; will-change: transform; }
.ticker-band__word { margin: 0 26px; }

/* ---- Présentation : deux images à parallaxe ---- */
.parallax-media { position: relative; }
.parallax-frame { position: relative; overflow: hidden; }
.parallax-frame--main { width: 100%; aspect-ratio: 4 / 5; border-radius: var(--radius-media); }
.parallax-frame--thumb { position: absolute; right: -9%; bottom: -10%; width: 46%; aspect-ratio: 1; border-radius: var(--radius-card); border: 6px solid var(--color-ivory); box-shadow: 0 24px 54px rgba(28,20,15,.22); }
.parallax-frame__image { position: absolute; left: -6%; right: -6%; top: -18%; height: 136%; will-change: transform; }   /* se déplace au scroll (data-parallax-speed) */
.parallax-frame__image img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 640px) { .parallax-frame--thumb { right: -3%; bottom: -7%; width: 50%; } }

/* ---- Vision : phrase révélée mot à mot au scroll ---- */
.vision__statement-word { opacity: .16; }
.vision__details { display: grid; grid-template-columns: 1.2fr 1fr; gap: 70px; margin-top: 80px; }
@media (max-width: 860px) { .vision__details { grid-template-columns: 1fr; gap: 36px; margin-top: 50px; } }

/* ---- Pôles : panneaux empilés ; le filigrane (logo du pôle) se place derrière le texte ---- */
.pole_title{border-radius: 20px; background-color: #ffffff7c; width: max-content; padding: 0 10px; overflow: hidden; line-height: 1; margin: 8px 0;}
.pole_title img{width: 200px;}
.pole-panel { position: sticky; top: 0; min-height: 100vh; display: flex; align-items: center; overflow: hidden; box-shadow: 0 -24px 50px rgba(0,0,0,.16); }
.pole-panel > .container { width: 100%; }
.pole-panel__body { position: relative; isolation: isolate; }
.pole-panel__watermark { position: absolute; right: -4%; top: 50%; width: min(70%, 420px); transform: translateY(-50%); opacity: var(--watermark-opacity, .12); filter: var(--watermark-filter, none); z-index: -1; pointer-events: none; }
.split--media-right .pole-panel__watermark { right: auto; left: -4%; }
.section--academy .pole-panel__body, .section--impact .pole-panel__body { --watermark-opacity: .16; --watermark-filter: brightness(0) invert(1); }
.pole-panel__index { display: inline-block; padding: 6px 14px; border: 1px solid var(--section-line); border-radius: var(--radius-pill); font-size: 12.5px; letter-spacing: .2em; }
.pole-panel__tagline { font-size: 13.5px; color: var(--section-muted); }
.pole-panel__ambition { font: italic 19px/1.45 var(--font-heading); max-width: 40ch; padding-left: 16px; border-left: 2px solid var(--section-text); }
.pole-panel__note { font-size: 13px; color: var(--section-muted); }
.pole-panel__link { font-size: 13.5px; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
@media (max-width: 860px) { .pole-panel { position: relative; min-height: 0; padding: 80px 0; } }

/* ---- Écosystème : le cercle se dessine et le logo se remplit en même temps ---- */
.ecosystem__figure { position: relative; max-width: 640px; margin: 0 auto; }
.ecosystem__diagram { display: block; width: 100%; height: auto; overflow: visible; }
.ecosystem__logo { position: absolute; left: 50%; top: 50%; width: 33%; aspect-ratio: 1; transform: translate(-50%, -50%); }
.ecosystem__logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.ecosystem__logo-base { filter: grayscale(1); opacity: .18; }                 /* logo gris pâle : le « contenant » */
.ecosystem__logo-fill { clip-path: inset(100% 0 0 0); transition: filter .6s; } /* logo couleur, révélé de bas en haut */
.ecosystem__logo.is-complete .ecosystem__logo-fill { filter: drop-shadow(0 0 16px rgba(249,115,22,.55)); }
.ecosystem__flow { margin-top: 40px; margin-bottom: 26px; font: clamp(20px, 2.4vw, 30px) var(--font-heading); color: var(--section-accent); text-align: center; }
.ecosystem__roles { margin-top: 48px; }
@media (prefers-reduced-motion: reduce) { .ecosystem__logo-fill { clip-path: none; } }

/* ---- Contact (accueil) : le texte reste sur fond orange, le formulaire est une carte claire ---- */
.contact-split__form .form-card { padding: 40px; }
