/* ==========================================================
   EXUKO — feuille de style
   ========================================================== */

@property --angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

/* Police Geist (licence SIL OFL), hébergée sur le site */
@font-face {
  font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("assets/polices/geist-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("assets/polices/geist-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --noir: #000;
  --profond: #050B18;
  --nuit: #0A1F44;
  --electrique: #007BFF;
  --cyan: #00D1FF;
  --gris: #F5F5F7;
  --blanc: #FFF;
  --encre: #1D1D1F;
  --doux-clair: #6E6E73;
  --doux-sombre: #A1A1A6;
  --ligne-clair: rgba(0, 0, 0, 0.08);
  --ligne-sombre: rgba(255, 255, 255, 0.1);
  --tuile-sombre: #101114;
  --accent: var(--electrique);
  --accent-2: var(--cyan);
  --rayon: 28px;
  --max: 1200px;
  --entete: 60px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --police: "Geist", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.page-ia      { --accent: #4F6BFF; --accent-2: #3DD9FF; }
.page-logi    { --accent: #10C99B; --accent-2: #2FA8FF; }
.page-mat     { --accent: #2E9BFF; --accent-2: #B8D4F0; }
.page-conseil { --accent: #0066E0; --accent-2: #00A8E8; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  margin: 0;
  font-family: var(--police);
  font-size: 17px;
  line-height: 1.5;
  background: var(--noir);
  color: #F5F5F7;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
.clair-page { background: var(--blanc); color: var(--encre); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; }
.conteneur { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.etroit { max-width: 900px; }
.centre { text-align: center; }
.centre .chapeau, .centre .actions, .actions.centre, .appel .chapeau { margin-left: auto; margin-right: auto; justify-content: center; }
.visuellement-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }

/* ---------- Typographie ---------- */
.surtitre {
  font-size: clamp(17px, 1.5vw, 21px); font-weight: 600; letter-spacing: -0.01em;
  color: var(--accent-2); margin: 0 0 14px;
}
.clair .surtitre, .gris .surtitre, .clair-page .surtitre { color: var(--accent); }
.titre-xxl { font-size: clamp(50px, 9.6vw, 132px); line-height: 1.02; font-weight: 700; letter-spacing: -0.045em; }
.titre-xl  { font-size: clamp(42px, 6.6vw, 92px);  line-height: 1.04; font-weight: 700; letter-spacing: -0.038em; margin-bottom: 22px; }
.titre-l   { font-size: clamp(34px, 4.6vw, 62px);  line-height: 1.07; font-weight: 700; letter-spacing: -0.03em;  margin-bottom: 20px; }
.titre-m   { font-size: clamp(24px, 2.3vw, 32px);  line-height: 1.16; font-weight: 650; letter-spacing: -0.02em;  margin-bottom: 10px; }
.chapeau {
  font-size: clamp(19px, 1.9vw, 25px); line-height: 1.4; font-weight: 500; letter-spacing: -0.012em;
  color: var(--doux-sombre); max-width: 760px; margin: 0;
}
.clair .chapeau, .gris .chapeau, .clair-page .chapeau { color: var(--doux-clair); }
.chapeau strong { color: #F5F5F7; font-weight: 600; }
.clair .chapeau strong, .gris .chapeau strong { color: var(--encre); }
.degrade {
  background: linear-gradient(100deg, var(--accent) 5%, var(--accent-2) 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.page-mat .degrade { background-image: linear-gradient(100deg, #FFFFFF 0%, #B8D4F0 45%, #2E9BFF 100%); }

/* ---------- Boutons et liens ---------- */
.actions { display: flex; gap: 14px 22px; flex-wrap: wrap; align-items: center; margin-top: 36px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: 980px;
  background: var(--accent); color: #fff;
  font-size: 17px; font-weight: 500; letter-spacing: -0.01em;
  transition: filter 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
  box-shadow: 0 8px 30px -10px var(--accent);
}
.btn:hover { filter: brightness(1.12); transform: translateY(-1px); box-shadow: 0 14px 40px -12px var(--accent); }
.btn-petit { padding: 5px 14px; font-size: 12.5px; box-shadow: none; }
.btn-petit:hover { box-shadow: none; transform: none; }
.lien-fleche { color: var(--accent-2); font-size: clamp(17px, 1.5vw, 20px); font-weight: 500; display: inline-flex; align-items: center; gap: 4px; }
.lien-fleche::after { content: "›"; font-size: 1.25em; line-height: 1; transition: transform 0.3s var(--ease); }
.lien-fleche:hover::after, a:hover .lien-fleche::after { transform: translateX(4px); }
.clair .lien-fleche, .gris .lien-fleche, .clair-page .lien-fleche { color: var(--accent); }

/* ---------- En-tête ---------- */
.entete { position: sticky; top: 0; z-index: 100; height: var(--entete); }
.entete::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(0, 0, 0, 0.97);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent; transition: border-color 0.3s;
}
.entete.defile::before { border-bottom-color: var(--ligne-sombre); }
.entete .conteneur { display: flex; align-items: center; justify-content: space-between; height: 100%; }
/* Logo animé : le E pivote, le mot se dévoile, un reflet le traverse */
.logo { --h: 30px; position: relative; display: inline-flex; align-items: center; gap: 0; height: var(--h); perspective: 400px; transform-origin: left center; transition: transform 0.5s var(--ease); }
.logo img { display: block; height: var(--h); width: auto; }
.entete.defile .logo { transform: scale(0.88); }
.logo-e { position: relative; transform-style: preserve-3d; animation: logo-e-entree 1.1s var(--ease) both; }
.logo-e::before { content: ""; position: absolute; inset: -30%; z-index: -1; border-radius: 50%; background: radial-gradient(circle, rgba(0, 140, 255, 0.55), transparent 65%); opacity: 0; animation: logo-halo 2.4s 0.6s var(--ease) both; }
.logo-mot { position: relative; animation: logo-mot-entree 0.9s 0.35s var(--ease) both; }
.logo-mot::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  -webkit-mask: url("assets/logo-xuko.png") center / 100% 100% no-repeat; mask: url("assets/logo-xuko.png") center / 100% 100% no-repeat;
  background: linear-gradient(100deg, transparent 35%, rgba(0, 209, 255, 0.9) 47%, #fff 50%, rgba(0, 123, 255, 0.9) 53%, transparent 65%) no-repeat;
  background-size: 300% 100%; background-position: 120% 0;
  animation: logo-reflet 1.4s 1.05s var(--ease) both;
}
.logo:hover .logo-e, .logo:focus-visible .logo-e { animation: logo-e-tour 0.9s var(--ease); }
.logo:hover .logo-e::before, .logo:focus-visible .logo-e::before { animation: logo-halo 1.2s var(--ease); }
.logo:hover .logo-mot::after, .logo:focus-visible .logo-mot::after { animation: logo-reflet-survol 1s var(--ease); }
@keyframes logo-e-entree { from { opacity: 0; transform: rotateY(-100deg) translateX(-30%) scale(0.6); filter: blur(6px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes logo-mot-entree { from { opacity: 0; clip-path: inset(0 100% 0 0); transform: translateX(-12px); filter: blur(4px); } to { opacity: 1; clip-path: inset(0 0 0 0); transform: none; filter: blur(0); } }
@keyframes logo-reflet { from { background-position: 120% 0; } to { background-position: -20% 0; } }
@keyframes logo-reflet-survol { from { background-position: 120% 0; } to { background-position: -20% 0; } }
.logo-pret .logo-e, .logo-pret .logo-e::before, .logo-pret .logo-mot, .logo-pret .logo-mot::after { animation: none; }
@keyframes logo-e-tour { from { transform: rotateY(0); } to { transform: rotateY(360deg); } }
@keyframes logo-halo { 0% { opacity: 0; transform: scale(0.6); } 40% { opacity: 1; } 100% { opacity: 0; transform: scale(1.5); } }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { font-size: 13.5px; color: rgba(255, 255, 255, 0.78); transition: color 0.2s; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }
.nav a[aria-current="page"] { font-weight: 600; }
.nav .btn { color: #fff; background: var(--electrique); }
.menu-bouton {
  display: none; width: 44px; height: 44px; margin-right: -10px; place-items: center;
  background: none; border: 0; color: #fff; cursor: pointer;
}
.menu-bouton span { display: block; width: 18px; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform 0.35s var(--ease); }
.menu-bouton span + span { margin-top: 6px; }
.menu-ouvert .menu-bouton span:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu-ouvert .menu-bouton span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

/* Sous-navigation de page (style « page produit ») */
.sous-nav { position: sticky; top: var(--entete); z-index: 90; height: 52px; }
.sous-nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(10, 10, 12, 0.97);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--ligne-sombre);
}
.sous-nav strong { color: #F5F5F7; }
.sous-nav .conteneur { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.sous-nav strong { font-size: 20px; font-weight: 650; letter-spacing: -0.02em; }
.sous-nav .liens { display: flex; align-items: center; gap: 24px; font-size: 12.5px; }
.sous-nav .liens a:not(.btn) { color: rgba(255, 255, 255, 0.72); transition: color 0.2s; }
.sous-nav .liens a:not(.btn):hover { color: #fff; }

/* ---------- Sections ---------- */
.bloc { position: relative; padding: clamp(100px, 15vh, 170px) 0; }
.sombre { background: var(--noir); color: #F5F5F7; }
.clair  { background: var(--blanc); color: var(--encre); }
.gris   { background: var(--gris); color: var(--encre); }
.entete-bloc { margin-bottom: clamp(48px, 7vw, 80px); }
.entete-bloc.centre { max-width: 980px; margin-left: auto; margin-right: auto; }
.deux-colonnes { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }

/* Apparitions */
.js .revele { opacity: 0; transform: translateY(46px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.js .revele.vu { opacity: 1; transform: none; }

/* Scènes épinglées */
.scene { position: relative; height: var(--h, 300vh); }
.colle { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.ouverture-texte {
  position: absolute; inset: 0; z-index: 2; display: grid; place-content: center;
  text-align: center; padding: 60px 24px 0;
}
.ouverture-texte.t1 {
  --s: clamp(0, calc(var(--p, 0) * 2.4), 1);
  opacity: calc(1 - var(--s)); transform: scale(calc(1 - var(--s) * 0.14)); filter: blur(calc(var(--s) * 14px));
}
.ouverture-texte.t2 {
  --s: clamp(0, calc((var(--p, 0) - 0.42) * 2.8), 1);
  opacity: var(--s); transform: translateY(calc((1 - var(--s)) * 70px)); visibility: hidden;
}
.ouverture-texte.t2.actif { visibility: visible; }
.indice {
  position: absolute; left: 50%; bottom: 34px; z-index: 3; translate: -50% 0;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5);
  opacity: calc(1 - var(--p, 0) * 6);
}
.indice::after { content: ""; width: 1px; height: 42px; background: linear-gradient(rgba(255, 255, 255, 0.6), transparent); animation: indice 2s var(--ease) infinite; transform-origin: top; }
@keyframes indice { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* Légendes qui se succèdent dans une scène */
.legendes { position: relative; min-height: 240px; }
.legende { position: absolute; inset: 0 0 auto 0; opacity: 0; transform: translateY(24px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.legende.actif { opacity: 1; transform: none; }
.legende .num { display: block; font-size: 14px; font-weight: 600; letter-spacing: 0.14em; color: var(--accent-2); margin-bottom: 14px; }
.clair-page .legende .num, .gris .legende .num { color: var(--accent); }
.legende p { color: var(--doux-sombre); font-size: clamp(17px, 1.5vw, 21px); line-height: 1.45; max-width: 460px; }
.gris .legende p, .clair-page .legende p { color: var(--doux-clair); }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.t-6 { grid-column: span 6; } .t-4 { grid-column: span 4; } .t-3 { grid-column: span 3; } .t-2 { grid-column: span 2; }
.tuile {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: var(--rayon); padding: clamp(28px, 3vw, 40px);
  background: var(--blanc); color: var(--encre);
  display: flex; flex-direction: column; min-height: 300px;
  transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.js .tuile.revele { transition: opacity 1.1s var(--ease), transform 1.1s var(--ease), box-shadow 0.6s var(--ease); }
a.tuile:hover { box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.35); }
.tuile::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent-2) 14%, transparent), transparent 60%);
}
.tuile:hover::after { opacity: 1; }
.sombre .tuile, .tuile.sombre { background: var(--tuile-sombre); color: #F5F5F7; }
.tuile.sombre p { color: var(--doux-sombre); }
.tuile.sombre .surtitre-tuile { color: var(--accent-2); }
.tuile h3 { font-size: clamp(24px, 2.2vw, 32px); line-height: 1.14; font-weight: 650; letter-spacing: -0.022em; margin: 0 0 10px; }
.tuile p { color: var(--doux-clair); font-size: 17px; margin: 0; }
.sombre .tuile p { color: var(--doux-sombre); }
.tuile .lien-fleche { margin-top: 18px; }
.tuile ul { list-style: none; margin: 18px 0 0; padding: 0; }
.tuile li { padding: 10px 0; border-top: 1px solid var(--ligne-clair); font-size: 15.5px; }
.sombre .tuile li { border-top-color: var(--ligne-sombre); }
.pictogramme {
  width: 54px; height: 54px; border-radius: 16px; margin-bottom: 26px; flex: none;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 30px -12px var(--accent);
}
.pictogramme svg { width: 26px; height: 26px; }

/* ==========================================================
   ACCUEIL
   ========================================================== */
.ouverture .colle { background: #000; }
.halo { position: absolute; inset: 0; filter: blur(80px); opacity: calc(0.85 - var(--p, 0) * 0.4); }
.halo span { position: absolute; border-radius: 50%; mix-blend-mode: screen; animation: flotte 18s ease-in-out infinite alternate; }
.halo span:nth-child(1) { width: 46vmax; height: 46vmax; left: 8%; top: 18%; background: radial-gradient(circle, rgba(0, 123, 255, 0.55), transparent 65%); }
.halo span:nth-child(2) { width: 38vmax; height: 38vmax; right: 4%; top: 6%; background: radial-gradient(circle, rgba(0, 209, 255, 0.4), transparent 65%); animation-duration: 22s; animation-delay: -6s; }
.halo span:nth-child(3) { width: 34vmax; height: 34vmax; left: 34%; bottom: -12%; background: radial-gradient(circle, rgba(80, 60, 255, 0.35), transparent 65%); animation-duration: 26s; animation-delay: -12s; }
@keyframes flotte { to { transform: translate3d(6vw, -4vh, 0) scale(1.15); } }
.anneau {
  position: absolute; left: 50%; top: 50%; z-index: 1;
  width: min(78vmin, 680px); aspect-ratio: 1; margin: calc(min(78vmin, 680px) / -2) 0 0 calc(min(78vmin, 680px) / -2);
  border-radius: 50%;
  background: conic-gradient(from var(--angle), transparent 0deg, #007BFF 60deg, #00D1FF 120deg, transparent 180deg, #3D5BFF 260deg, transparent 330deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
  animation: tourne 9s linear infinite;
  transform: scale(calc(0.86 + var(--p, 0) * 1.9));
  opacity: calc(1 - var(--p, 0) * 0.9);
  filter: drop-shadow(0 0 22px rgba(0, 160, 255, 0.7));
}
.anneau.a2 { width: min(60vmin, 520px); margin: calc(min(60vmin, 520px) / -2) 0 0 calc(min(60vmin, 520px) / -2); animation-duration: 13s; animation-direction: reverse; opacity: calc(0.55 - var(--p, 0) * 0.5); transform: scale(calc(0.9 + var(--p, 0) * 2.6)); }
@keyframes tourne { to { --angle: 360deg; } }
.ouverture .surtitre { letter-spacing: 0.02em; font-size: clamp(14px, 1.3vw, 18px); color: rgba(255, 255, 255, 0.7); margin-bottom: 22px; }
.ouverture .t2 .titre-l { max-width: 940px; margin-inline: auto; }

/* Manifeste mot à mot */
.manifeste-scene .colle { display: grid; place-items: center; background: #000; }
.manifeste {
  max-width: 1080px; margin: 0 auto; padding: 0 24px;
  font-size: clamp(30px, 4.4vw, 62px); line-height: 1.14; font-weight: 700; letter-spacing: -0.032em;
}
.mot { opacity: 0.14; transition: opacity 0.35s ease, color 0.35s; }
.mot.on { opacity: 1; }

/* Visuels des tuiles d'expertise */
.tuile-expertise { min-height: 480px; justify-content: flex-start; }
.tuile-expertise .tuile-visuel { position: absolute; inset: auto 0 0 0; height: 58%; z-index: -1; pointer-events: none; }
.tuile-expertise .tuile-visuel > * { transition: transform 0.9s var(--ease); }
.tuile-expertise:hover .tuile-visuel > * { transform: scale(1.04) translateY(-6px); }
.surtitre-tuile { font-size: 14px; font-weight: 600; color: var(--accent); margin-bottom: 8px; }
.sombre .surtitre-tuile { color: var(--accent-2); }

.v-dev { position: absolute; left: 8%; right: -6%; bottom: -14%; height: 92%; border-radius: 16px; background: #0B1220; box-shadow: 0 40px 80px -30px rgba(0, 60, 160, 0.55); overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.08); }
.v-dev::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 30px; background: #151C2C; }
.v-dev i { position: absolute; display: block; border-radius: 6px; }
.v-dev i:nth-child(1) { top: 11px; left: 14px; width: 8px; height: 8px; border-radius: 50%; background: #FF5F57; box-shadow: 14px 0 #FEBC2E, 28px 0 #28C840; }
.v-dev i:nth-child(2) { top: 58px; left: 6%; width: 42%; height: 22px; background: linear-gradient(90deg, #007BFF, #00D1FF); }
.v-dev i:nth-child(3) { top: 92px; left: 6%; width: 56%; height: 10px; background: rgba(255, 255, 255, 0.18); }
.v-dev i:nth-child(4) { top: 110px; left: 6%; width: 48%; height: 10px; background: rgba(255, 255, 255, 0.12); }
.v-dev i:nth-child(5) { top: 140px; left: 6%; width: 120px; height: 30px; border-radius: 15px; background: #007BFF; }
.v-dev i:nth-child(6) { top: 52px; right: 8%; width: 30%; height: 120px; border-radius: 14px; background: radial-gradient(circle at 30% 30%, #00D1FF, #0A3FB0 70%); }

.v-ia { position: absolute; left: 50%; bottom: 8%; width: 220px; height: 220px; margin-left: -110px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0%, #A9C2FF 12%, #4F6BFF 38%, #0F1F6B 70%, transparent 72%);
  box-shadow: 0 0 80px 10px rgba(79, 107, 255, 0.45), 0 0 160px 40px rgba(61, 217, 255, 0.15); animation: respire 6s ease-in-out infinite; }
.v-ia::after { content: ""; position: absolute; inset: -26px; border-radius: 50%; border: 1px solid rgba(169, 194, 255, 0.35); animation: respire 6s ease-in-out infinite reverse; }
@keyframes respire { 50% { transform: scale(1.06); } }

.v-conseil { position: absolute; left: 50%; bottom: -60px; width: 300px; height: 300px; margin-left: -150px; border-radius: 50%;
  background: conic-gradient(from 225deg, #0066E0 0deg, #00A8E8 200deg, rgba(0, 0, 0, 0.06) 200deg 270deg, transparent 270deg);
  -webkit-mask: radial-gradient(farthest-side, transparent 72%, #000 73%); mask: radial-gradient(farthest-side, transparent 72%, #000 73%); }
.v-conseil-score { position: absolute; left: 0; right: 0; bottom: 64px; text-align: center; font-size: 56px; font-weight: 700; letter-spacing: -0.04em; color: var(--encre); }
.v-conseil-score small { font-size: 22px; color: var(--doux-clair); }

.v-logi { position: absolute; inset: 0; }
.v-logi svg { position: absolute; left: 0; bottom: 0; width: 100%; height: 100%; }
.v-logi .chemin { stroke-dasharray: 6 10; animation: marche 1.2s linear infinite; }
@keyframes marche { to { stroke-dashoffset: -32; } }

.v-mat { position: absolute; left: 50%; bottom: 14%; width: 250px; margin-left: -125px; }
.v-mat .ecran-portable { height: 150px; border-radius: 12px 12px 0 0; border: 6px solid #2A2D33; border-bottom: 0; background: linear-gradient(135deg, #0A3FB0, #007BFF 45%, #00D1FF); }
.v-mat .base-portable { height: 12px; margin: 0 -22px; border-radius: 0 0 14px 14px; background: linear-gradient(#D9DEE5, #9AA3AF); box-shadow: 0 24px 40px -14px rgba(0, 0, 0, 0.35); }

/* Méthode : défilement horizontal */
.horizontal .colle { display: flex; flex-direction: column; justify-content: center; gap: clamp(28px, 5vh, 56px); padding-top: var(--entete); }
.piste {
  display: flex; gap: 24px; width: max-content;
  padding: 0 max(24px, calc((100vw - var(--max)) / 2 + 24px));
  transform: translate3d(calc(var(--p, 0) * var(--course, 0) * -1px), 0, 0);
  will-change: transform;
}
.etape-carte {
  position: relative; overflow: hidden; flex: none;
  width: min(78vw, 460px); min-height: min(56vh, 460px);
  border-radius: var(--rayon); padding: 40px;
  background: var(--tuile-sombre); border: 1px solid var(--ligne-sombre);
  display: flex; flex-direction: column; justify-content: flex-end;
}
.etape-carte .grand-num {
  position: absolute; top: 18px; right: 28px; font-size: 150px; font-weight: 800; line-height: 1; letter-spacing: -0.06em;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.etape-carte .pictogramme { margin-bottom: auto; }
.etape-carte h3 { font-size: 34px; letter-spacing: -0.025em; margin: 30px 0 10px; }
.etape-carte p { color: var(--doux-sombre); margin: 0; font-size: 18px; }
.rail { position: relative; height: 2px; margin: 0 auto; width: min(100% - 48px, var(--max) - 48px); background: var(--ligne-sombre); border-radius: 2px; }
.rail::before { content: ""; position: absolute; inset: 0; transform-origin: left; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 2px; }

/* Engagements */
.engagements { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.engagement h3 { font-size: 22px; letter-spacing: -0.02em; margin: 0 0 8px; }
.engagement p { color: var(--doux-sombre); margin: 0; }
.engagement .pictogramme { margin-bottom: 22px; }

/* Réalisations */
.projets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.projet { border-radius: var(--rayon); overflow: hidden; background: var(--blanc); }
.projet .visuel { aspect-ratio: 16 / 10; background: radial-gradient(ellipse at 70% 20%, #0D2A5C, #050B18 70%); overflow: hidden; }
.projet .visuel svg { width: 100%; height: 100%; transition: transform 0.9s var(--ease); }
.projet:hover .visuel svg { transform: scale(1.05); }
.projet .contenu { padding: 28px 30px 34px; }
.projet .etiquette { font-size: 13px; font-weight: 600; color: var(--accent); }
.projet h3 { font-size: 24px; letter-spacing: -0.02em; margin: 6px 0 8px; }
.projet p { color: var(--doux-clair); margin: 0; font-size: 16px; }

/* Appel à l'action */
.appel { overflow: hidden; text-align: center; }
.appel::before {
  content: ""; position: absolute; left: 50%; bottom: -40%; width: 120vmax; height: 70vmax; translate: -50% 0;
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--accent) 45%, transparent), transparent 60%);
  filter: blur(40px); opacity: 0.55; pointer-events: none;
}
.appel .conteneur { position: relative; }
.appel .titre-xl { margin-bottom: 26px; }

/* ---------- Pied de page ---------- */
.pied { background: #0A0A0B; color: rgba(255, 255, 255, 0.55); font-size: 13px; padding: 64px 0 36px; border-top: 1px solid var(--ligne-sombre); }
.pied-grille { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--ligne-sombre); }
.pied-marque img { height: 30px; width: auto; margin-bottom: 18px; }
.pied-marque p { max-width: 300px; line-height: 1.6; }
.pied h4 { color: #E8E8ED; font-size: 13px; font-weight: 600; margin: 0 0 14px; }
.pied ul { list-style: none; margin: 0; padding: 0; }
.pied li { margin: 0 0 10px; }
.pied a:hover { color: #fff; }
.pied-bas { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 24px; }

/* ==========================================================
   PAGES D'EXPERTISE — commun
   ========================================================== */
.heros-page { padding: clamp(110px, 18vh, 200px) 0 clamp(70px, 10vh, 120px); overflow: hidden; }
.heros-page .titre-xxl { margin-bottom: 28px; }

/* ==========================================================
   DÉVELOPPEMENT
   ========================================================== */
.construction .colle { display: grid; align-items: center; padding-top: 104px; background: #000; }
.construction-grille { display: grid; grid-template-columns: 0.8fr 1.4fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.navigateur {
  --a: clamp(0, calc(var(--p, 0) * 2.6), 1);
  border-radius: 18px; overflow: hidden; background: #0B1220;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 60px 120px -40px rgba(0, 123, 255, calc(0.25 + var(--a) * 0.35)), 0 0 0 1px rgba(255, 255, 255, 0.02);
  transform: perspective(1600px) rotateX(calc((1 - var(--a)) * 34deg)) rotateY(calc((1 - var(--a)) * -14deg)) scale(calc(0.82 + var(--a) * 0.18));
  transform-origin: center 70%;
}
.navigateur .barre { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; background: #141B2B; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.navigateur .barre i { width: 11px; height: 11px; border-radius: 50%; background: #FF5F57; }
.navigateur .barre i:nth-child(2) { background: #FEBC2E; } .navigateur .barre i:nth-child(3) { background: #28C840; }
.navigateur .url { flex: 1; max-width: 300px; margin: 0 auto; height: 24px; border-radius: 7px; background: rgba(255, 255, 255, 0.06); font-size: 12px; color: rgba(255, 255, 255, 0.55); display: grid; place-items: center; }
.ecran { position: relative; aspect-ratio: 16 / 10; padding: 4% 5%; overflow: hidden; }
.ecran::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 80% 0%, rgba(0, 123, 255, 0.35), transparent 60%); opacity: 0; transition: opacity 1s; }
.ecran:has(.e-hero.actif)::before { opacity: 1; }
.ecran > * { position: relative; opacity: 0; transform: translateY(26px) scale(0.97); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.ecran > .actif, .e-cartes.actif .e-carte { opacity: 1; transform: none; }
.e-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9%; }
.e-nav b { width: 18%; height: 12px; border-radius: 6px; background: linear-gradient(90deg, #007BFF, #00D1FF); }
.e-nav span { display: flex; gap: 10px; }
.e-nav span i { width: 38px; height: 7px; border-radius: 4px; background: rgba(255, 255, 255, 0.25); }
.e-hero { max-width: 62%; }
.e-titre { height: 26px; width: 92%; border-radius: 8px; background: rgba(255, 255, 255, 0.92); margin-bottom: 10px; }
.e-titre + .e-titre { width: 64%; background: linear-gradient(90deg, #007BFF, #00D1FF); }
.e-texte { height: 8px; width: 80%; border-radius: 4px; background: rgba(255, 255, 255, 0.22); margin: 16px 0 8px; }
.e-texte + .e-texte { width: 66%; margin-top: 0; }
.e-bouton { width: 112px; height: 30px; border-radius: 15px; background: #007BFF; margin-top: 18px; box-shadow: 0 8px 24px -6px #007BFF; }
.e-cartes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3%; margin-top: 7%; opacity: 1 !important; transform: none !important; }
.e-carte { height: 90px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08); opacity: 0; transform: translateY(30px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.e-carte:nth-child(2) { transition-delay: 0.12s; } .e-carte:nth-child(3) { transition-delay: 0.24s; }
.e-carte::before { content: ""; display: block; width: 26px; height: 26px; margin: 14px; border-radius: 8px; background: linear-gradient(135deg, #007BFF, #00D1FF); }
.e-visuel { position: absolute !important; right: 5%; top: 24%; width: 28%; aspect-ratio: 1; border-radius: 22px; background: radial-gradient(circle at 30% 30%, #00D1FF, #0A3FB0 75%); box-shadow: 0 30px 60px -20px rgba(0, 209, 255, 0.5); }

/* Éditeur de code */
.editeur { border-radius: 18px; background: #0D1117; border: 1px solid rgba(255, 255, 255, 0.08); box-shadow: 0 50px 100px -40px rgba(0, 123, 255, 0.45); overflow: hidden; font-family: "SF Mono", "Cascadia Code", Consolas, "Courier New", monospace; }
.editeur-barre { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; background: #161B22; font-size: 12px; color: rgba(255, 255, 255, 0.5); }
.editeur-barre i { width: 11px; height: 11px; border-radius: 50%; background: #3A3F47; }
.editeur-barre span { margin-left: 12px; }
.editeur pre { margin: 0; padding: 24px 26px 30px; font-size: clamp(12.5px, 1.1vw, 14.5px); line-height: 1.85; overflow-x: auto; color: #C9D1D9; }
.editeur .ligne { display: block; white-space: pre; }
.js .editeur .ligne { clip-path: inset(0 100% 0 0); transition: clip-path 0.7s steps(28); transition-delay: calc(var(--i) * 0.16s + 0.3s); }
.js .editeur.vu .ligne { clip-path: inset(0 0 0 0); }
.c-mot { color: #FF7B72; } .c-nom { color: #D2A8FF; } .c-chaine { color: #A5D6FF; } .c-vrai { color: #79C0FF; } .c-com { color: #8B949E; }
.points { list-style: none; padding: 0; margin: 32px 0 0; }
.points li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--ligne-sombre); color: #E8E8ED; }
.points li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 9px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 12px var(--accent-2); }
.gris .points li, .clair .points li { color: var(--encre); border-top-color: var(--ligne-clair); }

/* Jauges */
.jauges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.jauge { background: var(--blanc); border-radius: var(--rayon); padding: 36px 24px 30px; text-align: center; }
.jauge-cercle { position: relative; width: 140px; height: 140px; margin: 0 auto 18px; }
.jauge-cercle svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.jauge-cercle .fond { stroke: #E8EEF6; }
.jauge-cercle .valeur { stroke: url(#degrade-jauge); stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.8s var(--ease) 0.2s; }
.jauge.vu .valeur { stroke-dashoffset: calc(100 - var(--v)); }
.jauge-cercle strong { position: absolute; inset: 0; display: grid; place-items: center; font-size: 40px; font-weight: 700; letter-spacing: -0.04em; color: var(--encre); }
.jauge span { font-size: 17px; font-weight: 600; }
.note { font-size: 13px; color: var(--doux-clair); margin-top: 28px; }

/* Bandeau défilant */
.defilant { overflow: hidden; padding: 56px 0; border-top: 1px solid var(--ligne-sombre); border-bottom: 1px solid var(--ligne-sombre); -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.defilant-piste { display: flex; width: max-content; animation: defile 40s linear infinite; }
.defilant span { font-size: clamp(30px, 4vw, 54px); font-weight: 700; letter-spacing: -0.03em; color: rgba(255, 255, 255, 0.2); padding: 0 34px; white-space: nowrap; transition: color 0.3s; }
.defilant span:nth-child(3n + 1) { color: rgba(255, 255, 255, 0.85); }
@keyframes defile { to { transform: translateX(-50%); } }

/* ==========================================================
   INTELLIGENCE ARTIFICIELLE
   ========================================================== */
.ia-ouverture .colle { background: radial-gradient(ellipse at 50% 60%, #0A1433 0%, #000 70%); }
#reseau { position: absolute; inset: 0; width: 100%; height: 100%; }
.ia-ouverture .t2 .titre-xl { margin: 0; }
.conversation .colle { display: grid; align-items: center; padding-top: 104px; background: #000; }
.fenetre-chat {
  width: 100%; max-width: 480px; margin-left: auto; border-radius: 30px; overflow: hidden;
  background: linear-gradient(180deg, #0F121A, #0A0B10); border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 60px 120px -40px rgba(79, 107, 255, 0.55);
}
.chat-entete { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.chat-entete .avatar { width: 38px; height: 38px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #4F6BFF 45%, #0F1F6B); box-shadow: 0 0 20px rgba(79, 107, 255, 0.7); }
.chat-entete strong { display: block; font-size: 15px; }
.chat-entete small { color: #3DDC97; font-size: 12px; }
.chat-fil {
  display: flex; flex-direction: column; gap: 12px; padding: 22px; height: min(440px, 52vh); overflow: hidden; justify-content: flex-end;
  -webkit-mask: linear-gradient(transparent, #000 60px); mask: linear-gradient(transparent, #000 60px);
}
.bulle { max-width: 84%; padding: 12px 16px; border-radius: 20px; font-size: 15px; line-height: 1.45; opacity: 0; transform: translateY(16px) scale(0.96); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); display: none; }
.bulle.actif { display: block; opacity: 1; transform: none; animation: bulle 0.5s var(--ease); }
@keyframes bulle { from { opacity: 0; transform: translateY(16px) scale(0.96); } }
.bulle.client { align-self: flex-end; background: #262B38; border-bottom-right-radius: 6px; }
.bulle.ia { align-self: flex-start; background: linear-gradient(135deg, #3A55F0, #4F6BFF 60%, #2FA8FF); border-bottom-left-radius: 6px; }
.bulle.ia small { display: block; margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, 0.25); font-size: 12.5px; opacity: 0.85; }
.saisie { margin: 0 18px 18px; height: 44px; border-radius: 22px; background: rgba(255, 255, 255, 0.06); display: flex; align-items: center; padding: 0 18px; color: rgba(255, 255, 255, 0.35); font-size: 14px; }
.piliers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pilier { border-radius: var(--rayon); padding: 40px; background: var(--tuile-sombre); border: 1px solid var(--ligne-sombre); }
.pilier h3 { font-size: 26px; letter-spacing: -0.02em; margin: 0 0 10px; }
.pilier p { color: var(--doux-sombre); margin: 0; }

/* ==========================================================
   CONSEIL INFORMATIQUE
   ========================================================== */
.heros-conseil { background: linear-gradient(180deg, #fff 0%, #F2F7FF 100%); }
.pile-cartes { position: relative; height: 520px; }
.carte-flottante {
  position: absolute; border-radius: 24px; background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 40, 120, 0.08); box-shadow: 0 40px 80px -30px rgba(0, 60, 160, 0.3); padding: 24px;
}
.cf-1 { left: 0; top: 40px; width: 62%; transform: translateY(calc((0.5 - var(--t, 0.5)) * 120px)); }
.cf-2 { right: 0; top: 0; width: 46%; transform: translateY(calc((0.5 - var(--t, 0.5)) * 220px)); }
.cf-3 { right: 8%; bottom: 10px; width: 58%; transform: translateY(calc((0.5 - var(--t, 0.5)) * 60px)); }
.carte-flottante small { display: block; font-size: 12.5px; font-weight: 600; color: var(--doux-clair); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.08em; }
.carte-flottante .gros { font-size: 46px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.carte-flottante .gros span { color: #1DB954; font-size: 18px; margin-left: 6px; letter-spacing: 0; }
.barres { display: flex; align-items: flex-end; gap: 8px; height: 90px; margin-top: 18px; }
.barres i { flex: 1; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, var(--accent-2), var(--accent)); }
.liste-etat { list-style: none; margin: 0; padding: 0; font-size: 14.5px; }
.liste-etat li { display: flex; justify-content: space-between; padding: 9px 0; border-top: 1px solid var(--ligne-clair); }
.liste-etat li:first-child { border-top: 0; }
.liste-etat b { font-weight: 600; } .ok { color: #1DB954; } .attention { color: #F5A623; }

.feuille-route .colle { display: flex; flex-direction: column; justify-content: center; padding-top: 104px; background: var(--gris); color: var(--encre); }
.route { width: 100%; height: auto; overflow: visible; margin: 10px 0 34px; }
.route-fond { stroke: #DCE3EE; }
.route-trace { stroke: url(#degrade-route); stroke-dasharray: 1; stroke-dashoffset: calc(1 - clamp(0, calc(var(--p, 0) * 1.15), 1)); }
.jalon circle { fill: #fff; stroke: #DCE3EE; stroke-width: 3; transition: stroke 0.4s, fill 0.4s; }
.jalon text { font-size: 15px; font-weight: 600; fill: var(--doux-clair); text-anchor: middle; transition: fill 0.4s; font-family: var(--police); }
.jalon.actif circle { fill: var(--accent); stroke: #CFE3FF; stroke-width: 7; }
.jalon.actif text { fill: var(--encre); }
.feuille-route .legendes { min-height: 170px; max-width: 640px; }

.radar { width: 100%; max-width: 480px; margin: 0 auto; overflow: visible; }
.radar .grille-radar { fill: none; stroke: #DCE3EE; }
.radar .axe { stroke: #DCE3EE; }
.radar .zone { fill: color-mix(in srgb, var(--accent) 22%, transparent); stroke: var(--accent); stroke-width: 2.5; transform-origin: 200px 200px; transform: scale(0.1); transition: transform 1.6s var(--ease) 0.2s; }
.radar.vu .zone { transform: scale(1); }
.radar .zone-cible { fill: none; stroke: #00A8E8; stroke-dasharray: 5 6; stroke-width: 1.5; }
.radar text { font-size: 14px; font-weight: 600; fill: var(--doux-clair); font-family: var(--police); }
.legende-radar { display: flex; gap: 24px; justify-content: center; font-size: 14px; color: var(--doux-clair); margin-top: 18px; }
.legende-radar i { display: inline-block; width: 22px; height: 3px; margin-right: 8px; vertical-align: middle; background: var(--accent); }
.legende-radar i.cible { background: repeating-linear-gradient(90deg, #00A8E8 0 5px, transparent 5px 9px); }

/* ==========================================================
   LOGISTIQUE & ORGANISATION
   ========================================================== */
.logi-ouverture .colle { background: radial-gradient(ellipse at 50% 100%, #03261F 0%, #000 65%); }
.sol {
  position: absolute; left: -50%; right: -50%; bottom: -8%; height: 62%;
  background-image: linear-gradient(rgba(16, 201, 155, 0.4) 1px, transparent 1px), linear-gradient(90deg, rgba(16, 201, 155, 0.4) 1px, transparent 1px);
  background-size: 70px 70px;
  transform: perspective(500px) rotateX(64deg); transform-origin: 50% 0;
  -webkit-mask: linear-gradient(to bottom, transparent, #000 45%); mask: linear-gradient(to bottom, transparent, #000 45%);
  animation: sol 3s linear infinite;
  opacity: calc(1 - var(--p, 0) * 0.6);
}
@keyframes sol { to { background-position: 0 70px; } }
.flux { position: absolute; inset: 0; pointer-events: none; }
.flux i { position: absolute; bottom: 0; width: 2px; height: 140px; border-radius: 2px; background: linear-gradient(to top, transparent, #10C99B); animation: monte 4s linear infinite; opacity: 0; }
.flux i:nth-child(1) { left: 18%; } .flux i:nth-child(2) { left: 34%; animation-delay: -1.3s; } .flux i:nth-child(3) { left: 52%; animation-delay: -2.4s; background: linear-gradient(to top, transparent, #2FA8FF); }
.flux i:nth-child(4) { left: 68%; animation-delay: -0.6s; } .flux i:nth-child(5) { left: 84%; animation-delay: -3.1s; background: linear-gradient(to top, transparent, #2FA8FF); }
@keyframes monte { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(-70vh); opacity: 0; } }

.station {
  flex: none; width: min(80vw, 400px); min-height: min(52vh, 420px); border-radius: var(--rayon); padding: 36px;
  background: linear-gradient(160deg, #0E1A17, #0A0C0E); border: 1px solid rgba(16, 201, 155, 0.16);
  display: flex; flex-direction: column;
}
.station .num { font-size: 14px; font-weight: 600; letter-spacing: 0.14em; color: var(--accent); margin-bottom: auto; }
.tuile .num { display: block; font-size: 14px; font-weight: 600; letter-spacing: 0.14em; color: var(--accent-2); margin-bottom: 18px; }
.station .pictogramme { margin: 26px 0 22px; }
.station h3 { font-size: 30px; letter-spacing: -0.025em; margin: 0 0 10px; }
.station p { color: var(--doux-sombre); margin: 0; }
.rail-colis { position: absolute; top: 50%; left: calc(var(--p, 0) * 100%); width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 6px; background: var(--accent); box-shadow: 0 0 18px var(--accent); }

.organigramme { width: 100%; max-width: 540px; margin: 0 auto; overflow: visible; }
.organigramme path { fill: none; stroke: #B9C6D6; stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1s var(--ease); }
.organigramme.vu path { stroke-dashoffset: 0; }
.organigramme .noeud { opacity: 0; transform: scale(0.6); transform-box: fill-box; transform-origin: center; transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.organigramme.vu .noeud { opacity: 1; transform: none; }
.organigramme .n1 { transition-delay: 0s; } .organigramme .n2 { transition-delay: 0.5s; } .organigramme .n3 { transition-delay: 1s; }
.organigramme .l1 { transition-delay: 0.2s; } .organigramme .l2 { transition-delay: 0.7s; }
.organigramme rect { fill: #fff; stroke: #E1E7EF; }
.organigramme .n1 rect { fill: var(--encre); stroke: none; }
.organigramme text { font-family: var(--police); font-size: 15px; font-weight: 600; text-anchor: middle; fill: var(--encre); }
.organigramme .n1 text { fill: #fff; }
.organigramme .pastille { fill: var(--accent); }

.declaration { overflow: hidden; text-align: center; }
.declaration .titre-xxl { transform: scale(calc(0.72 + var(--t, 0.5) * 0.5)); opacity: calc(var(--t, 0.5) * 2.4); }

/* ==========================================================
   MATÉRIEL INFORMATIQUE
   ========================================================== */
.heros-mat { background: radial-gradient(ellipse at 50% 0%, #1A2433 0%, #000 60%); }
.eclate-scene .colle { display: grid; align-items: center; padding-top: 104px; background: radial-gradient(ellipse at 30% 55%, #121A26 0%, #000 60%); }
.eclate { --e: clamp(0, calc((var(--p, 0) - 0.06) * 1.7), 1); display: grid; place-items: center; height: min(66vh, 600px); }
.plateau {
  position: relative; width: min(70vw, 400px); aspect-ratio: 1.45; transform-style: preserve-3d;
  transform: translateY(calc(var(--e) * 70px)) rotateX(58deg) rotateZ(-36deg) scale(calc(1 - var(--e) * 0.1));
}
.couche {
  position: absolute; inset: 0; border-radius: 16px;
  transform: translateZ(calc(var(--z) * (6px + var(--e) * var(--ecart, 62px))));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), -20px 30px 50px -10px rgba(0, 0, 0, 0.6);
}
.coque { --z: 0; background: linear-gradient(135deg, #C9D1DB, #7D8794); }
.batterie { --z: 1; inset: 12% 10% 32%; border-radius: 10px; background: repeating-linear-gradient(90deg, #1C2128 0 31%, #0B0E12 31% 34.5%); }
.batterie::after { content: ""; position: absolute; inset: 40% 42%; border-radius: 4px; background: #3DDC97; box-shadow: 0 0 14px #3DDC97; }
.carte-mere {
  --z: 2; inset: 6% 8% 58%; border-radius: 10px;
  background:
    linear-gradient(#0B1220, #0B1220) 12% 30% / 22% 46% no-repeat,
    linear-gradient(135deg, #2E9BFF, #00D1FF) 46% 40% / 16% 36% no-repeat,
    linear-gradient(#1F2A3C, #1F2A3C) 74% 30% / 14% 46% no-repeat,
    repeating-linear-gradient(90deg, rgba(0, 209, 255, 0.25) 0 1px, transparent 1px 12px),
    #0D3B2E;
}
.clavier {
  --z: 3; background: linear-gradient(#B6BEC9, #8C96A3);
}
.clavier::before {
  content: ""; position: absolute; inset: 8% 6% 38%; border-radius: 8px;
  background: repeating-linear-gradient(90deg, #1A1D22 0 7.1%, #2B3038 7.1% 7.7%), #1A1D22;
  -webkit-mask: repeating-linear-gradient(0deg, #000 0 18%, transparent 18% 20%); mask: repeating-linear-gradient(0deg, #000 0 18%, transparent 18% 20%);
}
.clavier::after { content: ""; position: absolute; left: 32%; right: 32%; bottom: 8%; height: 24%; border-radius: 8px; background: linear-gradient(#A3ACB8, #96A0AD); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08); }
.dalle {
  --z: 4; border: 8px solid #15181D;
  background: radial-gradient(ellipse at 30% 20%, #00D1FF 0%, transparent 50%), radial-gradient(ellipse at 80% 90%, #6A3BFF 0%, transparent 55%), linear-gradient(135deg, #0A3FB0, #007BFF);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 0 calc(var(--e) * 60px) rgba(0, 160, 255, 0.5), -20px 30px 50px -10px rgba(0, 0, 0, 0.6);
}
.composants { list-style: none; margin: 30px 0 0; padding: 0; }
.composants li { display: flex; gap: 16px; align-items: baseline; padding: 15px 0; border-top: 1px solid var(--ligne-sombre); opacity: 0.25; transform: translateX(-10px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.composants li.actif { opacity: 1; transform: none; }
.composants b { font-size: 19px; font-weight: 600; min-width: 170px; }
.composants span { color: var(--doux-sombre); font-size: 15.5px; }

.cycle { width: 100%; max-width: 460px; margin: 0 auto; overflow: visible; }
.cycle .roue { transform-origin: 200px 200px; transform: rotate(calc(var(--t, 0.5) * 240deg - 60deg)); }
.cycle text { font-family: var(--police); font-size: 16px; font-weight: 600; fill: #F5F5F7; text-anchor: middle; }
.cycle .centre-texte { font-size: 34px; font-weight: 700; letter-spacing: -0.03em; }
.cycle .sous { font-size: 14px; font-weight: 500; fill: var(--doux-sombre); }

.categories { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.categorie { display: flex; align-items: center; gap: 20px; padding: 28px; border-radius: 22px; background: var(--gris); transition: transform 0.4s var(--ease), background 0.4s; }
.categorie:hover { transform: translateY(-3px); background: #EDEDF0; }
.categorie svg { width: 44px; height: 44px; flex: none; color: var(--accent); }
.categorie h3 { font-size: 19px; letter-spacing: -0.015em; margin: 0 0 2px; }
.categorie p { margin: 0; font-size: 14.5px; color: var(--doux-clair); }

/* ==========================================================
   TEXTE ILLUMINÉ (adapté du composant « Illuminated Hero » de 21st.dev)
   ========================================================== */
.filtres-svg { position: absolute; width: 0; height: 0; overflow: hidden; }
.illumine { position: relative; display: inline-block; filter: url(#lueur); }
.illumine::before {
  content: attr(data-texte); position: absolute; inset: 0; opacity: 0;
  background: linear-gradient(0deg, #DCEBFF 0%, #FFFFFF 55%); -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: illumine 1.4s ease-out 0.4s forwards;
}
@keyframes illumine { to { opacity: 0.55; } }
.lumiere-haute {
  position: absolute; left: 50%; top: 0; width: min(90vw, 1100px); aspect-ratio: 2.2; translate: -50% -62%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(0, 140, 255, 0.55), rgba(0, 209, 255, 0.18) 45%, transparent 70%);
  filter: blur(30px); opacity: 0; animation: lumiere 1.6s var(--ease) 0.2s forwards;
}
@keyframes lumiere { from { opacity: 0; transform: scale(0.7); } to { opacity: 0.9; transform: none; } }
.page-ia .lumiere-haute { background: radial-gradient(ellipse at center, rgba(79, 107, 255, 0.55), rgba(61, 217, 255, 0.18) 45%, transparent 70%); }
.page-logi .lumiere-haute { background: radial-gradient(ellipse at center, rgba(16, 201, 155, 0.45), rgba(47, 168, 255, 0.15) 45%, transparent 70%); }

/* ==========================================================
   FORMULAIRE DE CONTACT (adapté du composant « Contact Form » de 21st.dev)
   ========================================================== */
.contact-grille { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 88px); align-items: start; text-align: left; }
.contact-grille .titre-xl { margin-bottom: 22px; }
.contact-grille .chapeau { margin: 0; }
.contact-details { list-style: none; margin: 36px 0 0; padding: 0; }
.contact-details li { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--ligne-sombre); color: #E8E8ED; }
.contact-details svg { width: 20px; height: 20px; flex: none; color: var(--accent-2); }
.contact-details a { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(255, 255, 255, 0.3); }
.contact-details a:hover { text-decoration-color: currentColor; }
.carte-formulaire {
  border-radius: var(--rayon); padding: clamp(24px, 3.4vw, 40px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--ligne-sombre);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
}
.formulaire, .champs { display: grid; gap: 20px; }
.formulaire .deux { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.champ { display: grid; gap: 8px; }
.champ label { font-size: 15px; font-weight: 600; color: #E8E8ED; }
.champ label small { font-weight: 400; color: var(--doux-sombre); }
.champ input, .champ select, .champ textarea {
  width: 100%; min-height: 48px; padding: 12px 16px; border-radius: 14px;
  font: inherit; font-size: 16px; color: #F5F5F7;
  background: rgba(0, 0, 0, 0.45); border: 1px solid rgba(255, 255, 255, 0.16);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.champ select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #A1A1A6 50%), linear-gradient(135deg, #A1A1A6 50%, transparent 50%); background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.champ select option { color: #000; }
.champ textarea { min-height: 150px; resize: vertical; }
.champ input:focus-visible, .champ select:focus-visible, .champ textarea:focus-visible {
  outline: none; border-color: var(--accent-2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-2) 30%, transparent);
}
.champ input:user-invalid, .champ textarea:user-invalid { border-color: #FF6B6B; }
.pot-de-miel { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consentement { font-size: 13.5px; line-height: 1.5; color: var(--doux-sombre); margin: 0; }
.consentement a { text-decoration: underline; }
.formulaire .btn { justify-self: start; border: 0; cursor: pointer; font-family: inherit; min-height: 48px; }
.formulaire .btn[disabled] { opacity: 0.65; cursor: progress; }
.formulaire .btn .rond { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.4); border-top-color: #fff; animation: tourne-rond 0.8s linear infinite; display: none; }
.formulaire[data-statut="envoi"] .btn .rond { display: block; }
@keyframes tourne-rond { to { transform: rotate(360deg); } }
.statut { margin: 0; font-size: 15px; }
.statut:empty { display: none; }
.statut.succes { color: #3DDC97; }
.statut.erreur { color: #FF8A8A; }
.formulaire[data-statut="succes"] .champs { display: none; }

/* ==========================================================
   EFFETS PREMIUM
   ========================================================== */

/* Défilement fluide (Lenis) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* Grain cinéma sur tout le site */
body::after {
  content: ""; position: fixed; inset: -50%; z-index: 300; pointer-events: none; opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
.clair-page body::after, body.clair-page::after { opacity: 0.035; }
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); } }

/* Aurore animée (WebGL) */
.aurore { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.ouverture .aurore { opacity: calc(1 - var(--p, 0) * 0.7); }
.webgl .ouverture .halo { display: none; }
.heros-page .aurore { opacity: 0.8; -webkit-mask: linear-gradient(#000 55%, transparent); mask: linear-gradient(#000 55%, transparent); }
.appel .aurore { opacity: 0.42; -webkit-mask: linear-gradient(transparent, #000 40%); mask: linear-gradient(transparent, #000 40%); }
.heros-page > .conteneur, .appel > .conteneur { position: relative; z-index: 1; }

/* Titres qui se dévoilent mot à mot */
.decoupe .masque { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.12em 0.04em 0.14em; margin: -0.12em -0.04em -0.14em; }
.decoupe .unite { display: inline-block; transform: translate3d(0, 110%, 0) rotate(6deg); transform-origin: 0 100%; opacity: 0; transition: transform 1.2s var(--ease), opacity 1.2s var(--ease); transition-delay: calc(var(--k) * 0.07s + 0.05s); }
.decoupe.vu .unite { transform: none; opacity: 1; }
.decoupe .degrade { background: none; }
.decoupe .degrade .unite {
  background-image: linear-gradient(100deg, var(--accent) 5%, var(--accent-2) 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.page-mat .decoupe .degrade .unite { background-image: linear-gradient(100deg, #FFFFFF 0%, #B8D4F0 45%, #2E9BFF 100%); }
.illumine::before { animation-delay: 1.3s; }

/* Reflet qui balaie les mots illuminés */
.decoupe .illumine .unite, .illumine:not(.decoupe .illumine) {
  background-image: linear-gradient(100deg, var(--accent) 0%, var(--accent-2) 38%, #FFFFFF 50%, var(--accent-2) 62%, var(--accent) 100%);
  background-size: 260% 100%; background-position: 100% 0;
  animation: reflet 6.5s ease-in-out 2s infinite;
}
@keyframes reflet { 0% { background-position: 100% 0; } 45%, 100% { background-position: 0% 0; } }

/* Cartes en verre avec bordure lumineuse qui suit le pointeur */
.carte-lumineuse { position: relative; isolation: isolate; }
.carte-lumineuse::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit; padding: 1px;
  background:
    radial-gradient(420px circle at var(--mx, 50%) var(--my, -20%), color-mix(in srgb, var(--accent-2) 85%, transparent), transparent 45%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.03) 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.gris .carte-lumineuse:not(.sombre)::before, .clair .carte-lumineuse:not(.sombre)::before {
  background:
    radial-gradient(420px circle at var(--mx, 50%) var(--my, -20%), color-mix(in srgb, var(--accent) 70%, transparent), transparent 45%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.03));
}
.carte-lumineuse.halo-souris::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent-2) 12%, transparent), transparent 55%);
}
.carte-lumineuse.halo-souris:hover::after { opacity: 1; }
.sombre .tuile, .tuile.sombre, .etape-carte, .pilier { background: linear-gradient(160deg, #16181D 0%, #0B0C0F 70%); border: 0; }
.tuile { box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 30px 60px -40px rgba(0, 0, 0, 0.5); }
.gris .tuile:not(.sombre) { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 20px 50px -30px rgba(10, 31, 68, 0.25); }

/* Boutons aimantés et brillants */
.btn { position: relative; overflow: hidden; transform: translate(var(--bx, 0), var(--by, 0)); }
.btn::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform 0.8s var(--ease);
}
.btn:hover::after { transform: translateX(120%); }
.btn:hover { transform: translate(var(--bx, 0), calc(var(--by, 0px) - 1px)); }

/* Bandeau épinglé : chaque ligne défile sur toute sa longueur pendant que la scène est fixée */
.bandeau-mots { background: #000; }
.bandeau-mots .colle { display: flex; flex-direction: column; justify-content: center; gap: clamp(6px, 2vh, 22px); }
.bandeau-mots .ligne-mots {
  --q: clamp(0, calc((var(--p, 0) - 0.08) / 0.84), 1);
  display: flex; gap: 0.35em; width: max-content; padding: 0 24px; white-space: nowrap;
  font-size: clamp(56px, 10vw, 170px); font-weight: 800; letter-spacing: -0.05em; line-height: 1.02;
  transform: translate3d(calc(var(--q) * -1 * var(--course, 0px)), 0, 0); will-change: transform;
}
.bandeau-mots .ligne-mots.inverse { transform: translate3d(calc((var(--q) - 1) * var(--course, 0px)), 0, 0); }
.reduit .bandeau-mots .ligne-mots { transform: none; width: auto; flex-wrap: wrap; justify-content: center; white-space: normal; }
.bandeau-mots span { color: transparent; -webkit-text-stroke: 2px rgba(255, 255, 255, 0.5); }
.bandeau-mots span.plein { color: #F5F5F7; -webkit-text-stroke: 0; }
.bandeau-mots span.plein-degrade { -webkit-text-stroke: 0; background: linear-gradient(100deg, #007BFF, #00D1FF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bandeau-mots i { font-style: normal; color: #007BFF; -webkit-text-stroke: 0; }

/* Lien d'évitement pour la navigation au clavier */
.lien-evitement {
  position: absolute; left: 16px; top: -100px; z-index: 200; padding: 12px 20px; border-radius: 12px;
  background: #fff; color: #000; font-weight: 600; transition: top 0.2s;
}
.lien-evitement:focus { top: 12px; }

/* ==========================================================
   MENTIONS LÉGALES
   ========================================================== */
.page-simple { padding: 90px 0 120px; }
.page-simple .conteneur { max-width: 820px; }
.page-simple h1 { margin-bottom: 40px; }
.page-simple h2 { font-size: 24px; letter-spacing: -0.02em; margin: 44px 0 12px; }
.page-simple p { color: var(--doux-clair); }
.page-simple a:not(.btn) { color: var(--accent); }
.a-completer { background: #FFF4D6; padding: 0 4px; border-radius: 4px; color: #7A5A00; }

/* ==========================================================
   ADAPTATION
   ========================================================== */
@media (max-width: 1060px) {
  .nav { gap: 22px; }
  .engagements { grid-template-columns: repeat(2, 1fr); }
  .jauges { grid-template-columns: repeat(2, 1fr); }
  .categories { grid-template-columns: repeat(2, 1fr); }
  .pied-grille { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .menu-bouton { display: flex; flex-direction: column; justify-content: center; align-items: center; }
  .nav {
    position: fixed; inset: var(--entete) 0 auto 0; height: calc(100vh - var(--entete)); height: calc(100dvh - var(--entete));
    flex-direction: column; align-items: flex-start; gap: 4px; padding: 28px 32px;
    background: rgba(0, 0, 0, 0.97);
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
  }
  .menu-ouvert .nav { opacity: 1; visibility: visible; transform: none; }
  .menu-ouvert body { overflow: hidden; }
  .nav a { font-size: 28px; font-weight: 650; letter-spacing: -0.02em; color: #E8E8ED; padding: 6px 0; }
  .nav .btn { margin-top: 18px; font-size: 17px; padding: 12px 24px; }
  .sous-nav .liens a:not(.btn) { display: none; }
  .sous-nav .btn-petit { padding: 9px 16px; font-size: 14px; }
  .contact-grille { grid-template-columns: 1fr; }
  .pied li a { display: inline-block; padding: 6px 0; }
  .bento { grid-template-columns: 1fr; }
  .t-6, .t-4, .t-3, .t-2 { grid-column: auto; }
  .tuile-expertise { min-height: 440px; }
  .deux-colonnes, .construction-grille { grid-template-columns: 1fr; }
  .projets, .piliers { grid-template-columns: 1fr; }
  .construction .colle, .conversation .colle, .eclate-scene .colle { align-content: center; }
  .construction .legendes { min-height: 150px; order: 2; }
  .construction-grille { gap: 28px; }
  .conversation .conv-textes { display: none; }
  .fenetre-chat { margin: 0 auto; }
  .chat-fil { height: min(400px, 50vh); }
  .pile-cartes { height: 440px; }
  .eclate { height: 46vh; --ecart: 36px; }
  .plateau { width: min(62vw, 300px); }
  .composants { margin-top: 0; }
  .composants li { padding: 10px 0; }
  .composants b { min-width: 130px; font-size: 16px; }
  .composants span { font-size: 14px; }
  .eclate-scene .titre-l { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .conteneur { padding: 0 16px; }
  .logo { --h: 26px; }
  .piste { padding: 0 16px; gap: 14px; }
  .rail { width: calc(100% - 32px); }
  .etape-carte, .station { padding: 28px; }
  .etape-carte .grand-num { font-size: 110px; }
  .engagements, .jauges, .categories { grid-template-columns: 1fr; }
  .pied-grille { grid-template-columns: 1fr; gap: 28px; }
  .composants span { display: none; }
  .formulaire .deux { grid-template-columns: 1fr; }
  .formulaire .btn { justify-self: stretch; justify-content: center; }
  .route { margin-top: 30px; }
  .route text { font-size: 36px; }
  .cf-1 { width: 80%; } .cf-2 { width: 62%; } .cf-3 { width: 76%; right: 0; }
}

/* Mouvement réduit : tout est affiché sans animation */
.reduit *, .reduit *::before, .reduit *::after { animation: none !important; transition: none !important; }
.reduit .revele { opacity: 1 !important; transform: none !important; }
.reduit .scene { height: auto !important; }
.reduit .colle { position: relative; height: auto; min-height: 100svh; padding-top: 120px; padding-bottom: 80px; }
.reduit .piste { transform: none; width: auto; overflow-x: auto; }
.reduit .ouverture-texte.t1 { display: none; }
.reduit .ouverture-texte.t2 { position: relative; visibility: visible; min-height: 100svh; }
.reduit .legende { position: relative; opacity: 1; transform: none; margin-bottom: 28px; }
.reduit .legendes { min-height: 0; }
.reduit .bulle { display: block; opacity: 1; transform: none; }
.reduit .mot { opacity: 1; }
.reduit .lumiere-haute { opacity: 0.9; }
.reduit .illumine::before { opacity: 0.55; }

/* Aurore dans les ouvertures IA et Conseil */
.ia-ouverture .aurore, .logi-ouverture .aurore { opacity: calc(0.85 - var(--p, 0) * 0.55); }
.ia-ouverture #reseau, .logi-ouverture .sol, .logi-ouverture .flux { z-index: 1; }
.heros-conseil .aurore { opacity: 1; }
.heros-conseil .carte-flottante { background: rgba(255, 255, 255, 0.72); }
.ouverture-texte::before {
  content: ""; position: absolute; left: 50%; top: 55%; z-index: -1; width: min(1100px, 120vw); height: 70%; translate: -50% -50%; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.25) 45%, transparent 70%);
}
.logi-ouverture .aurore { opacity: calc(0.62 - var(--p, 0) * 0.4); }

/* ---------- Grand logo animé de l'accueil ---------- */
.logo-heros {
  --h: clamp(56px, min(10vw, 15vh), 136px);
  position: relative; height: var(--h); aspect-ratio: 1316 / 240; margin: 0 auto clamp(26px, 4vh, 44px);
  perspective: 900px; transform-style: preserve-3d;
  transform: perspective(900px) rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg)); transition: transform 0.8s var(--ease);
}
.lh-lettre { position: absolute; top: 0; left: var(--x); width: var(--l); height: 100%; }
.lh-lettre svg { display: block; width: 100%; height: 100%; overflow: hidden; }
/* Le E arrive du fond en tournoyant, puis respire */
.lh-e { z-index: 2; animation: lh-e-entree 1.5s cubic-bezier(.2, .9, .25, 1) both; }
.lh-e svg { animation: lh-e-respire 3.2s 2.2s ease-in-out infinite alternate both; }
/* Onde de choc à l'impact du E */
.lh-onde {
  position: absolute; z-index: 1; left: 9.9%; top: 50%; width: calc(var(--h) * 1.1); aspect-ratio: 1;
  translate: -50% -50%; border-radius: 50%; pointer-events: none;
  border: 2px solid rgba(0, 209, 255, 0.9); box-shadow: 0 0 40px rgba(0, 123, 255, 0.8), inset 0 0 30px rgba(0, 209, 255, 0.5);
  opacity: 0; animation: lh-onde 1.4s 1.05s cubic-bezier(.15, .7, .3, 1) both;
}
.lh-onde.o2 { animation-delay: 1.25s; border-color: rgba(0, 123, 255, 0.8); }
/* X, U, K, O se lèvent un par un */
.lh-m { transform-origin: 50% 100%; animation: lh-lettre 1.1s calc(1.05s + var(--i) * 0.11s) cubic-bezier(.2, .9, .25, 1) both; }
/* Reflet qui balaie toute la marque, puis revient régulièrement */
.logo-heros::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  -webkit-mask: url("assets/marque/marque-masque.svg") center / 100% 100% no-repeat; mask: url("assets/marque/marque-masque.svg") center / 100% 100% no-repeat;
  background: linear-gradient(100deg, transparent 38%, rgba(0, 209, 255, 0.85) 46%, #fff 50%, rgba(0, 123, 255, 0.85) 54%, transparent 62%) no-repeat;
  background-size: 300% 100%; background-position: 130% 0;
  animation: lh-reflet 7s 1.9s var(--ease) infinite both;
}
/* Lueur au sol sous la marque */
.logo-heros::before {
  content: ""; position: absolute; left: 8%; right: 8%; bottom: -38%; height: 50%; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(0, 140, 255, 0.55), transparent 70%); filter: blur(18px);
  opacity: 0; animation: lh-sol 1.6s 1.3s var(--ease) both;
}
/* Le surtitre et le titre attendent que la marque soit posée */
.ouverture .t1 .surtitre { animation: lh-apparait 1s 1.7s var(--ease) both; }
.ouverture .t1 .decoupe .unite { transition-delay: calc(var(--k) * 0.07s + 1.8s); }

@keyframes lh-e-entree {
  0% { opacity: 0; transform: translateZ(-900px) rotateY(-720deg) scale(1.6); filter: blur(22px) brightness(3); }
  55% { opacity: 1; filter: blur(0) brightness(2.4); }
  72% { transform: translateZ(40px) rotateY(12deg) scale(1.06); filter: brightness(2); }
  100% { opacity: 1; transform: none; filter: brightness(1); }
}
@keyframes lh-e-respire {
  from { filter: drop-shadow(0 0 0 rgba(0, 140, 255, 0)); }
  to { filter: drop-shadow(0 0 calc(var(--h) * 0.22) rgba(0, 140, 255, 0.85)); }
}
@keyframes lh-onde { 0% { opacity: 0; transform: scale(0.2); } 15% { opacity: 1; } 100% { opacity: 0; transform: scale(5.5); } }
@keyframes lh-lettre {
  0% { opacity: 0; transform: translateY(70%) rotateX(-85deg) scale(0.8); filter: blur(12px); }
  100% { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes lh-reflet { 0% { background-position: 130% 0; } 22%, 100% { background-position: -30% 0; } }
@keyframes lh-sol { from { opacity: 0; transform: scaleX(0.2); } to { opacity: 1; transform: none; } }
@keyframes lh-apparait { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } to { opacity: 1; transform: none; filter: blur(0); } }
.reduit .logo-heros { transform: none; }
.reduit .logo-heros::before { opacity: 1; }

/* ---------- Pile de couches 3D (accueil) ---------- */
.couches { overflow: hidden; }
.pile-3d {
  position: relative; height: clamp(440px, 64vh, 620px); display: grid; place-items: center;
  perspective: 900px; touch-action: pan-y; cursor: crosshair;
}
.pile-scene {
  position: relative; width: 0; height: 0; transform-style: preserve-3d;
  transform: translate(-80px, -30px) scale(var(--echelle, 1)) rotateX(var(--rx, 18deg)) rotateY(var(--ry, -42deg));
}
.panneau {
  position: absolute; border-radius: 14px; overflow: hidden; transform-origin: 50% 100%;
  box-shadow: 0 30px 60px -30px rgba(0, 20, 80, 0.9); will-change: transform;
}
.panneau::before { content: ""; position: absolute; inset: 0; opacity: 0.55; }
.panneau.m-code::before { background: repeating-linear-gradient(to bottom, transparent 0 18px, rgba(255, 255, 255, 0.16) 18px 21px); -webkit-mask: linear-gradient(90deg, #000 55%, transparent 80%); mask: linear-gradient(90deg, #000 55%, transparent 80%); inset: 22% 14% 20% 12%; }
.panneau.m-grille::before { background: linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px) 0 0 / 22px 22px, linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px) 0 0 / 22px 22px; }
.panneau.m-barres::before { background: linear-gradient(to top, rgba(0, 209, 255, 0.55) 0 30%, transparent 30%) 14% 100% / 12% 100% no-repeat, linear-gradient(to top, rgba(0, 209, 255, 0.55) 0 52%, transparent 52%) 38% 100% / 12% 100% no-repeat, linear-gradient(to top, rgba(0, 209, 255, 0.55) 0 41%, transparent 41%) 62% 100% / 12% 100% no-repeat, linear-gradient(to top, rgba(0, 209, 255, 0.55) 0 70%, transparent 70%) 86% 100% / 12% 100% no-repeat; inset: 30% 12% 12%; }
.panneau::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, var(--bord, 0.2));
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.12), transparent 30%, rgba(0, 0, 0, 0.35));
}
.panneau img { position: absolute; left: 50%; top: 50%; width: 46%; translate: -50% -50%; filter: drop-shadow(0 10px 30px rgba(0, 160, 255, 0.7)); }
.pile-indice { position: absolute; bottom: 4px; left: 0; right: 0; margin: 0; text-align: center; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255, 255, 255, 0.45); }
@media (max-width: 900px) { .pile-3d { --echelle: 0.75; height: 460px; } .pile-scene { transform: translate(-40px, -20px) scale(var(--echelle)) rotateX(var(--rx, 18deg)) rotateY(var(--ry, -42deg)); } }
@media (max-width: 640px) { .pile-3d { --echelle: 0.58; height: 380px; } }
.si-tactile { display: none; }
@media (hover: none) { .si-souris { display: none; } .si-tactile { display: inline; } }

/* ---------- Liens interactifs (accueil) ---------- */
.liens-survol { max-width: 1024px; }
.lien-survol {
  --ressort: cubic-bezier(.34, 1.56, .64, 1);
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: clamp(18px, 3vw, 34px) 0; border-bottom: 2px solid rgba(255, 255, 255, 0.12);
  color: inherit; text-decoration: none; transition: border-color 0.5s;
}
.lien-survol:hover, .lien-survol:focus-visible { border-bottom-color: #007BFF; }
.ls-texte { position: relative; z-index: 2; }
.ls-titre {
  display: block; font-size: clamp(34px, 5.6vw, 64px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.08;
  color: rgba(255, 255, 255, 0.42); transition: color 0.5s, transform 0.5s var(--ressort);
}
.ls-mot { display: inline-block; white-space: nowrap; }
.ls-lettre { display: inline-block; transition: transform 0.5s var(--ressort); }
.lien-survol:hover .ls-titre, .lien-survol:focus-visible .ls-titre { color: #fff; transform: translateX(-16px); }
.lien-survol:hover .ls-lettre, .lien-survol:focus-visible .ls-lettre { transform: translateX(16px); transition-delay: calc(0.25s + var(--i) * 0.035s); }
.ls-sous { display: block; margin-top: 8px; font-size: 16px; color: rgba(255, 255, 255, 0.45); transition: color 0.5s; }
.lien-survol:hover .ls-sous, .lien-survol:focus-visible .ls-sous { color: rgba(255, 255, 255, 0.85); }
/* Carte qui surgit et suit le curseur */
.ls-carte {
  position: absolute; z-index: 1; top: var(--cy, 50%); left: var(--cx, 50%);
  width: clamp(128px, 22vw, 256px); aspect-ratio: 4 / 3; border-radius: 14px; pointer-events: none;
  display: grid; place-items: center; color: rgba(255, 255, 255, 0.92);
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.35), transparent 45%), linear-gradient(135deg, var(--c1), var(--c2));
  box-shadow: 0 30px 60px -20px rgba(0, 90, 255, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  translate: -10% -50%; transform: scale(0) rotate(-12.5deg);
  transition: transform 0.55s var(--ressort), top 0.35s ease-out, left 0.35s ease-out;
}
.ls-carte svg { width: 34%; height: auto; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.3)); }
.lien-survol:hover .ls-carte { transform: scale(1) rotate(12.5deg); }
.ls-fleche { position: relative; z-index: 2; overflow: hidden; flex: none; padding: 12px; }
.ls-fleche svg { display: block; width: clamp(32px, 4vw, 48px); height: auto; color: #fff; transform: translateX(100%); opacity: 0; transition: transform 0.5s var(--ressort), opacity 0.4s; }
.lien-survol:hover .ls-fleche svg, .lien-survol:focus-visible .ls-fleche svg { transform: none; opacity: 1; }
@media (hover: none) {
  .ls-titre { color: #fff; }
  .ls-fleche svg { transform: none; opacity: 0.7; }
  .ls-carte { display: none; }
}

/* Bouton de prise de rendez-vous (Calendly) à côté de Contact */
.nav .btn-rdv { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4); }
.nav .btn-rdv:hover { box-shadow: inset 0 0 0 1px #fff; filter: none; }
@media (max-width: 900px) { .nav .btn + .btn-rdv { margin-top: 10px; } }

/* Slogans passés de h1 à p (le h1 porte désormais les mots-clés) : mêmes marges qu'un titre */
p:where(.titre-h) { margin: 0; }

/* Prestations : le lien d'action de chaque tuile s'aligne en bas */
#offres .tuile { display: flex; flex-direction: column; align-items: flex-start; }
#offres .tuile ul { align-self: stretch; }
#offres .tuile .lien-fleche { margin-top: auto; padding-top: 18px; }

/* Icônes du menu principal */
.nav a { display: inline-flex; align-items: center; gap: 7px; }
.nav-ico { width: 15px; height: 15px; flex: none; opacity: 0.8; transition: opacity 0.2s; }
.nav a:hover .nav-ico, .nav a[aria-current="page"] .nav-ico, .nav .btn .nav-ico { opacity: 1; }
@media (max-width: 900px) { .nav-ico { width: 24px; height: 24px; } .nav .btn .nav-ico { width: 18px; height: 18px; } }
