/* Inventiv Technology — site.css (v4)
   Principe : une carte noire mate avec vernis sélectif.
   - Fond : noir mat, grainé.
   - Vernis (.uv) : titres et grands mots dans une teinte proche du fond ; un reflet les traverse
     (au défilement via --sh posé par site.js, ou en boucle pour l'élément sélectionné).
   - Verre (.glass) : navigation, panneaux, cartes, fenêtre de contact.
   - Circuit (.rail) : une piste part de la puce et relie toutes les sections.
   - Quatre couleurs : une par domaine / section.
   Les propriétés logiques (inline-start / inline-end) gèrent l'arabe (droite à gauche). */

@font-face { font-family: "Archivo"; src: url("fonts/archivo-var.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap; }
@font-face { font-family: "Noto Kufi Arabic"; src: url("fonts/kufi-arabic-var.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }

@property --c { syntax: "<color>"; inherits: true; initial-value: #4f8cff; }
@property --sh { syntax: "<number>"; inherits: true; initial-value: 0.4; }
@property --uv-a { syntax: "<color>"; inherits: true; initial-value: #5e5e67; }
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

:root {
  --bg: #050506; --ink: #dcdde1; --muted: #8b8e96; --line: #1a1a1e; --rim: rgba(255, 255, 255, 0.13);
  --blue: #4f8cff; --green: #35d49a; --yellow: #ffc93c; --red: #ff4d5e; --violet: #9d6bff; --cyan: #35d0ea; --white: #eef1f6;
  --c: var(--blue);
  --wrap: 1240px; --gutter: clamp(30px, 5vw, 56px); --band: clamp(96px, 13vw, 180px);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background-color: var(--bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--ink); font-family: "Archivo", "Noto Kufi Arabic", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem; line-height: 1.6; font-weight: 400; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ul, ol, fieldset { margin: 0; }
ul, ol, fieldset { padding: 0; list-style: none; border: 0; }
a { color: inherit; }
svg { display: block; }
img, video, iframe { display: block; max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--c); outline-offset: 4px; border-radius: 4px; }
::selection { background: var(--c); color: #000; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.page { position: relative; overflow-x: clip; }
main, .foot { position: relative; z-index: 1; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: fixed; inset-inline-start: 16px; top: -80px; z-index: 60; background: var(--ink); color: #000; padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 16px; }
.prog { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 50; background: var(--c); transform: scaleX(var(--prog, 0)); transform-origin: 0 50%; transition: background-color 0.6s; }
[dir="rtl"] .prog { transform-origin: 100% 50%; }

/* ---------- Vernis sélectif ---------- */
.uv {
  --uv-a: #5e5e67; --uv-m: #a3a5ad; --uv-hi: #f6f6f9;
  color: transparent; -webkit-text-fill-color: transparent;
  background-color: var(--uv-a);
  background-image: linear-gradient(108deg, var(--uv-a) 0%, var(--uv-a) 37%, var(--uv-m) 45%, var(--uv-hi) 50%, var(--uv-m) 55%, var(--uv-a) 63%, var(--uv-a) 100%);
  background-size: 300% 100%; background-repeat: no-repeat;
  background-position: calc((0.8 - var(--sh) * 0.6) * 100%) 0;
  -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 -1px 0 rgba(255, 255, 255, 0.16));
}
.uv-deep { --uv-a: #131316; --uv-m: #5d5f66; --uv-hi: #ffffff; filter: drop-shadow(0 -1px 0 rgba(255, 255, 255, 0.26)) drop-shadow(0 1px 0 rgba(255, 255, 255, 0.07)); }

/* ---------- Verre ---------- */
.glass {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.03));
  -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 30px 70px -30px #000;
}

/* ---------- Bouton : laque noire, liseré quatre couleurs qui tourne ---------- */
.btn {
  position: relative; isolation: isolate; display: inline-flex; align-items: center; gap: 14px;
  padding: 9px 10px 9px 26px; border-radius: 999px; text-decoration: none; color: #fff;
  font-weight: 500; font-size: 0.9375rem; font-stretch: 110%;
  background: linear-gradient(180deg, #202024 0%, #09090b 55%, #000 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 20px 44px -20px #000;
  transition: transform 0.5s var(--ease);
}
.btn::before, .btn::after {
  content: ""; position: absolute; inset: -1.5px; border-radius: inherit; z-index: -1;
  background: conic-gradient(from var(--a), var(--blue), var(--green), var(--yellow), var(--red), var(--blue));
  animation: spin 7s linear infinite;
}
.btn::before { padding: 1.5px; -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); }
.btn::after { filter: blur(16px); opacity: 0.28; z-index: -2; transition: opacity 0.5s; }
.btn:hover { transform: translateY(-2px); }
.btn:hover::after { opacity: 0.6; }
.btn-ic { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.09); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18); transition: background-color 0.4s; }
.btn:hover .btn-ic { background: rgba(255, 255, 255, 0.18); }
.btn-ic svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.btn-sm { padding: 8px 18px; font-size: 0.875rem; border: 1px solid rgba(255, 255, 255, 0.92); background: linear-gradient(155deg, #26262b 0%, #08080a 44%, #000 100%); box-shadow: 0 0 14px rgba(255, 255, 255, 0.34), inset 0 0 9px rgba(255, 255, 255, 0.14); transition: box-shadow 0.4s, transform 0.5s var(--ease); }
.btn-sm::before, .btn-sm::after { display: none; }
.btn-sm:hover { box-shadow: 0 0 22px rgba(255, 255, 255, 0.6), inset 0 0 12px rgba(255, 255, 255, 0.24); transform: none; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
[dir="rtl"] .flip { transform: scaleX(-1); }

/* ---------- Lumières de section ---------- */
.light {
  position: absolute; z-index: -1; pointer-events: none; border-radius: 50%; width: min(980px, 130vw); aspect-ratio: 1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 30%, transparent), color-mix(in srgb, var(--c) 9%, transparent) 55%, transparent);
  opacity: 0; transform: scale(0.8); transition: opacity 1.6s ease, transform 2.2s var(--ease), --c 0.8s;
}
.lit > .light, .lit .hz-stage > .light { opacity: 1; transform: none; }

/* ---------- Circuit qui relie le site ---------- */
.rail { position: absolute; left: 0; top: 0; z-index: 0; pointer-events: none; overflow: visible; }
.rail path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.rail-base, .br { stroke: #1d1d22; stroke-width: 1.25; }
.rail-live { stroke: url(#rg); stroke-width: 1.75; }
.br-live { stroke: var(--c); stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.5s var(--ease); }
.on > .br-live { stroke-dashoffset: 0; }
.rn { fill: var(--bg); stroke: #3f3f47; stroke-width: 1.25; transition: fill 0.5s, stroke 0.5s, filter 0.6s; }
.on > .rn { fill: var(--bg); stroke: #4a4a54; }
/* fin de piste : le point s'allume en blanc quand le trait est rempli */
.on > .rn-end { fill: #fff; stroke: #fff; filter: drop-shadow(0 0 5px #fff) drop-shadow(0 0 14px var(--c)); transition-delay: 1.25s; }
.rail-head { fill: #fff; } .rail-halo { fill: url(#rh); }

/* ---------- Navigation : capsule de verre ---------- */
.top { position: fixed; inset: 14px 0 auto 0; z-index: 40; pointer-events: none; }
.bar { pointer-events: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 7px 8px; padding-inline-start: 18px; border-radius: 999px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand svg { width: 28px; height: 29px; flex: none; fill: #e9eaee; transition: transform 0.7s var(--ease); }
.brand:hover svg { transform: rotate(-90deg); }
.brand-name { font-stretch: 120%; font-weight: 500; font-size: 0.9688rem; letter-spacing: 0.01em; white-space: nowrap; }
.brand-name span { font-weight: 300; color: var(--muted); }

.nav { position: relative; display: flex; align-items: center; }
.nav a { position: relative; z-index: 1; padding: 8px 15px; font-size: 0.9063rem; color: var(--muted); text-decoration: none; border-radius: 999px; transition: color 0.25s; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="true"] { color: #fff; }
.nav-ind {
  position: absolute; top: 50%; left: 0; height: 34px; width: 0; margin-top: -17px; border-radius: 999px; opacity: 0;
  background: color-mix(in srgb, var(--c) 22%, rgba(255, 255, 255, 0.07)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 0 24px -6px var(--c);
  transition: transform 0.45s var(--ease), width 0.45s var(--ease), opacity 0.3s, background-color 0.6s, box-shadow 0.6s;
}
.bar-end { display: flex; align-items: center; gap: 8px; }

/* Sélecteur de langue */
.lang { position: relative; font-size: 0.8125rem; font-weight: 500; }
.lang summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 7px; height: 36px; padding-inline: 13px 11px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 999px; transition: border-color 0.3s, background-color 0.3s; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { border-color: rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.06); }
.lang summary svg { width: 9px; height: 9px; fill: none; stroke: currentColor; stroke-width: 1.75; transition: transform 0.4s var(--ease); }
.lang[open] summary svg { transform: rotate(180deg); }
.lang-list { position: absolute; inset-inline-end: 0; top: calc(100% + 12px); min-width: 170px; padding: 6px; border-radius: 18px; background: linear-gradient(180deg, rgba(34, 34, 38, 0.94), rgba(10, 10, 12, 0.97)); animation: pop 0.35s var(--ease); }
.lang-list a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 12px; text-decoration: none; color: var(--muted); font-size: 0.875rem; transition: color 0.2s, background-color 0.2s; }
.lang-list a span { margin-inline-start: auto; font-size: 0.75rem; opacity: 0.6; }
.lang-list a:hover { color: #fff; background: rgba(255, 255, 255, 0.07); }
.lang-list a[aria-current="true"] { color: #fff; }
.lang-list a::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #26262b; box-shadow: inset 0 1px 1px #000; align-self: center; order: 3; transition: background-color 0.3s, box-shadow 0.3s; }
.lang-list a[aria-current="true"]::after { background: #fff; box-shadow: 0 0 12px #fff; }

.burger { display: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.14); position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--ink); transition: transform 0.4s var(--ease), top 0.4s var(--ease); }
.burger span:first-child { top: 16px; } .burger span:last-child { top: 23px; }
.menu-open .burger span:first-child { top: 19.5px; transform: rotate(45deg); }
.menu-open .burger span:last-child { top: 19.5px; transform: rotate(-45deg); }
.menu {
  position: fixed; inset: 0; z-index: 30; background: rgba(0, 0, 0, 0.82); -webkit-backdrop-filter: blur(26px) saturate(160%); backdrop-filter: blur(26px) saturate(160%);
  display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 96px var(--gutter) 40px;
  visibility: hidden; opacity: 0; transition: opacity 0.35s, visibility 0s 0.35s;
}
.menu-open .menu { visibility: visible; opacity: 1; transition: opacity 0.35s; }
.menu > a { display: flex; align-items: center; gap: 16px; font-stretch: 125%; font-weight: 300; font-size: clamp(1.9rem, 9vw, 3.2rem); line-height: 1.3; letter-spacing: -0.02em; text-decoration: none; opacity: 0; transform: translateY(24px); transition: opacity 0.5s, transform 0.6s var(--ease); }
.menu > a::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 16px var(--c); }
.menu-open .menu > a { opacity: 1; transform: none; transition-delay: calc(60ms * var(--n) + 80ms); }

/* ---------- Accueil ---------- */
.hero { position: relative; }
.hero > .light { inset-inline-end: -18%; top: 4%; }
.hero-in { min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); align-items: center; gap: clamp(16px, 3vw, 48px); padding-top: 110px; padding-bottom: 104px; }
.hero h1 { font-stretch: 125%; font-weight: 300; font-size: clamp(2.7rem, 6.2vw, 4.5rem); line-height: 1.04; letter-spacing: -0.03em; }
.hero h1 .uv { --uv-a: #6c6c76; }
.ln { display: block; overflow: hidden; padding-block: 0.1em 0.14em; margin-block: -0.1em -0.14em; }
.ln > span { display: block; width: max-content; max-width: 100%; }
.lead { margin-top: 30px; max-width: 34em; font-size: clamp(1.0625rem, 1.4vw, 1.2188rem); line-height: 1.55; color: var(--muted); }
.actions { margin-top: 40px; }

.hero-meta { position: absolute; inset: auto 0 30px 0; font-size: 0.8125rem; color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.hero-meta .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 30px; }
.meta-i { display: inline-flex; align-items: center; gap: 7px; }
.mi { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.live { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: beat 2s infinite; }
.live small { font-size: inherit; color: var(--muted); }
.scroll-cue { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 12px; }
.scroll-cue i { position: relative; width: 1px; height: 34px; background: #2a2a30; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; inset: 0; background: #fff; transform: translateY(-100%); animation: cue 2.2s var(--ease) infinite; }

.fig { position: relative; aspect-ratio: 1; width: 100%; max-width: 640px; justify-self: end; }
.circuit { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.circuit .tr { fill: none; stroke: #24242a; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.circuit .nd { fill: var(--bg); stroke: #3f3f47; stroke-width: 1.25; }
.circuit .pl { fill: none; stroke: var(--pc, #fff); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 0.14 3; stroke-dashoffset: 0.14; }
.circuit .pl.sig { stroke-width: 2; }
.chip {
  position: absolute; left: 37.5%; top: 37.5%; width: 25%; height: 25%; border-radius: 22%; overflow: hidden;
  background: linear-gradient(155deg, #26262b 0%, #08080a 44%, #000 100%); border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32), inset 0 -18px 28px rgba(0, 0, 0, 0.7), 0 34px 60px -8px #000, 0 0 100px -18px var(--c);
  display: grid; place-items: center; animation: hue 12s linear infinite;
}
.chip::after { content: ""; position: absolute; inset: -40%; background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, 0.34) 50%, transparent 58%); transform: translateX(-70%); animation: gleam 5.5s var(--ease) 2.4s infinite; }
.chip svg { position: relative; z-index: 1; width: 56%; height: 56%; fill: url(#lg); }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes show { to { opacity: 1; } }
@keyframes rise { from { transform: translateY(112%); } to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes pulse { from { stroke-dashoffset: 0.14; } to { stroke-dashoffset: -1; } }
@keyframes beat { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--green) 70%, transparent); } 70%, 100% { box-shadow: 0 0 0 9px transparent; } }
@keyframes chip-in { from { opacity: 0; transform: scale(0.84); } to { opacity: 1; transform: none; } }
@keyframes gleam { 0% { transform: translateX(-70%); } 35%, 100% { transform: translateX(70%); } }
@keyframes hue { 0%, 100% { --c: #4f8cff; } 25% { --c: #35d49a; } 50% { --c: #ffc93c; } 75% { --c: #ff4d5e; } }
@keyframes bar { 50% { transform: scaleY(0.3); } }
@keyframes blink { 50% { opacity: 0.15; } }
@keyframes scan { from { background-position: 0 0; } to { background-position: 0 -200%; } }
@keyframes nd-hit { 0%, 85% { fill: var(--bg); stroke: #3f3f47; filter: none; } 90% { fill: #fff; stroke: #fff; filter: drop-shadow(0 0 4px #fff) drop-shadow(0 0 12px var(--pc)); } 100% { fill: var(--bg); stroke: #3f3f47; filter: drop-shadow(0 0 0 transparent); } }
@keyframes dot-on { 0% { transform: scale(0.6); } 50% { transform: scale(1.5); } 100% { transform: none; } }
@keyframes spin { to { --a: 360deg; } }
@keyframes cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }
@keyframes shine { 0% { --sh: -0.35; } 55%, 100% { --sh: 1.35; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes flow { to { stroke-dashoffset: -16; } }
@keyframes head { 0% { transform: translateX(0); } 100% { transform: translateX(132px); } }
@keyframes invite { 0%, 100% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 0 0 0 color-mix(in srgb, var(--c) 60%, transparent); } 60% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 0 0 14px transparent, 0 0 34px -2px var(--c); } }

@media (prefers-reduced-motion: no-preference) {
  .ln > span { animation: rise 1.1s var(--ease) both; animation-delay: calc(120ms * var(--n) + 150ms); }
  .lead, .actions, .hero-meta { animation: fade-up 0.9s var(--ease) both; }
  .lead { animation-delay: 0.45s; } .actions { animation-delay: 0.6s; } .hero-meta { animation-delay: 1.1s; }
  .circuit .tr { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.3s cubic-bezier(0.6, 0, 0.2, 1) forwards; animation-delay: calc(var(--i) * 45ms + 200ms); }
  .circuit .nd { opacity: 0; animation: show 0.5s ease forwards; animation-delay: calc(var(--i) * 45ms + 200ms); }
  .chip { animation: chip-in 0.9s var(--ease) 1.2s both, hue 12s linear infinite; }
  .circuit .pl { animation: pulse var(--d, 4s) linear infinite reverse; animation-delay: calc(var(--dl, 0s) + 2.2s); }
  .circuit .nd { animation: show 0.5s ease forwards, nd-hit var(--d, 4s) linear infinite; animation-delay: calc(var(--i) * 45ms + 200ms), calc(var(--dl, 0s) + 2.2s); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .circuit .pl, .chip::after { display: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

/* ---------- Titres de section : une seule ligne (taille ajustée par site.js si besoin) ---------- */
.h2 { font-stretch: 125%; font-weight: 300; font-size: clamp(1.9rem, 4.5vw, 3.7rem); line-height: 1.12; letter-spacing: -0.025em; width: fit-content; white-space: nowrap; padding-bottom: 0.08em; }
.intro { margin-top: 16px; color: var(--muted); font-size: 1.0938rem; }
@media (min-width: 900px) { .intro:not(.wraps) { white-space: nowrap; } }
.band { position: relative; padding-block: var(--band); }
.js [data-rv] { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js [data-rv].in { opacity: 1; transform: none; }

/* ---------- Expertise : un domaine à la fois, flèches sous la carte ---------- */
.xp > .light { inset-inline-end: -12%; top: 8%; }
.xp-grid { margin-top: clamp(28px, 4vw, 52px); }
.xp-panels { display: grid; gap: 18px; }
.xp-panel { border-radius: 24px; padding: clamp(16px, 2vw, 22px); --c: var(--pc); }
@media (min-width: 761px) {
  .xp-panel { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); grid-template-rows: 1fr auto 1fr; column-gap: clamp(24px, 4vw, 60px); padding: clamp(18px, 2vw, 26px); padding-inline-end: clamp(24px, 4vw, 60px); }
  .xp-panel .xp-art { grid-row: 1 / -1; margin-bottom: 0; align-self: center; }
  .xp-panel h3 { align-self: end; font-size: clamp(1.4rem, 2.2vw, 1.75rem); }
  .xp-panel p { font-size: 1.0625rem; margin-top: 14px; }
  .xp-panel .xp-spec { align-self: start; font-size: 0.875rem; }
}
.xp-art { border-radius: 16px; background: rgba(0, 0, 0, 0.38); border: 1px solid rgba(255, 255, 255, 0.07); padding: 12px 14px; margin-bottom: 18px; }
.xp-panel h3 { display: flex; align-items: center; gap: 12px; font-stretch: 120%; font-weight: 500; font-size: 1.25rem; }
.xp-panel h3::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--pc); box-shadow: 0 0 18px var(--pc); }
.xp-panel p { margin-top: 10px; font-size: 0.9688rem; line-height: 1.6; color: var(--ink); }
.xp-spec { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 0.8125rem; color: var(--muted); }
.xp-spec li + li::before { content: "/"; margin-inline-end: 16px; color: #3a3a40; }
.xp-ctl { display: none; }

.js .xp-panels { gap: 0; }
.js .xp-panel { grid-area: 1 / 1; opacity: 0; transform: translateY(26px) scale(0.975); transition: opacity 0.5s, transform 0.8s var(--ease); pointer-events: none; }
.js .xp-panel.is-on { opacity: 1; transform: none; pointer-events: auto; }
.js .xp-ctl { display: flex; align-items: center; gap: 16px; margin-top: 22px; }
.xp-ticks { flex: 1; display: flex; gap: 8px; }
.xp-tick { flex: 1; min-width: 0; display: grid; gap: 11px; padding-block: 12px 4px; cursor: pointer; text-align: center; }
.xp-tick i { height: 2px; border-radius: 2px; background: #222227; transition: background-color 0.5s, box-shadow 0.5s; }
.xp-tick.is-lit i { background: var(--pc); box-shadow: 0 0 14px var(--pc); }
.xp-tick span { font-size: 0.8125rem; font-weight: 400; color: #5b5d66; white-space: nowrap; transition: color 0.4s; }
.xp-tick:hover span { color: var(--muted); }
.xp-tick.is-on span { color: #fff; }
.xp-tick:focus-visible { outline: 2px solid var(--pc); outline-offset: 4px; border-radius: 6px; }
.arr { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; flex: none; transition: transform 0.4s var(--ease), border-color 0.4s; }
.arr svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.arr:hover { transform: scale(1.08); border-color: color-mix(in srgb, var(--c) 70%, #fff); }
.arr.hint { border-color: color-mix(in srgb, var(--c) 70%, #fff); animation: invite 1.8s ease-in-out infinite; }

/* Illustrations des cartes */
.art { width: 100%; height: auto; color: var(--pc); overflow: visible; }
.art * { fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.art .f { fill: currentColor; stroke: none; }
.art .bg { fill: #0a0a0c; }
.art .dim { opacity: 0.32; }
.art .w { stroke: #e9eaee; } .art .wf { fill: #e9eaee; stroke: none; }
.art .bar, .art .grow { transform-box: fill-box; transform-origin: 50% 100%; }
.art .mid { transform-origin: 50% 50%; }
.art text { fill: currentColor; stroke: none; font-family: "Archivo", sans-serif; font-stretch: 125%; font-weight: 800; }
.art .sw-b { fill: var(--blue); stroke: none; } .art .sw-g { fill: var(--green); stroke: none; } .art .sw-y { fill: var(--yellow); stroke: none; } .art .sw-r { fill: var(--red); stroke: none; }
.art .spark { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s var(--ease) 0.3s; }
.is-on .art .spark, html:not(.js) .art .spark { stroke-dashoffset: 0; }
.art .flow { stroke-dasharray: 4 4; }
@media (prefers-reduced-motion: no-preference) {
  .is-on .art .bar { animation: bar 1.1s ease-in-out infinite; animation-delay: calc(var(--n) * 0.13s); }
  .is-on .art .bl { animation: blink 1.2s steps(1) infinite; animation-delay: calc(var(--n) * 0.27s); }
  .is-on .art .flow { animation: flow 0.9s linear infinite; }
  .is-on .art .ph { animation: head 4s linear infinite; }
}

/* ---------- Film de présentation ---------- */
.film > .light { left: 50%; top: 18%; margin-left: calc(min(980px, 130vw) / -2); }
.film-frame {
  position: relative; margin-top: clamp(36px, 5vw, 64px); aspect-ratio: 16 / 9; border-radius: clamp(18px, 2.6vw, 34px); overflow: hidden;
  background: #000; border: 1px solid var(--rim); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 60px 120px -40px #000;
  transform: scale(var(--s, 1)); transform-origin: 50% 0; will-change: transform;
}
.film-frame > img, .film-frame > video, .film-frame > iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.film-ph { position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 5px), radial-gradient(120% 90% at 50% 110%, color-mix(in srgb, var(--c) 22%, transparent), transparent 60%), #030304; background-size: 100% 200%, auto, auto; animation: scan 14s linear infinite; }
.film-ui { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 18px; text-align: center; padding: 20px; }
.play { width: clamp(72px, 9vw, 108px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; transition: transform 0.5s var(--ease), box-shadow 0.5s; }
.play svg { width: 30%; height: 30%; fill: #fff; margin-left: 6%; }
.play:not([disabled]):hover { transform: scale(1.08); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 0 60px -6px var(--c); }
.play[disabled] { cursor: default; opacity: 0.55; }
.film-cap { font-size: 0.875rem; color: var(--muted); }
.film-frame > .film-poster { transition: opacity 0.6s; }
.film-frame.has-poster .film-ph { display: none; }
.film-frame.has-poster .film-cap { display: none; }
.is-playing .film-ui, .is-playing .film-ph { display: none; }

/* ---------- Démarche : défilement horizontal ---------- */
.hz { position: relative; }
.hz-stage { position: relative; padding-block: var(--band); }
.hz-stage > .light { inset-inline-start: -22%; top: 50%; margin-top: calc(min(980px, 130vw) / -2); }
.hz-track { position: relative; margin-top: clamp(40px, 6vh, 72px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px clamp(20px, 3vw, 44px); padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); counter-reset: step; }
.hz-line { display: none; }
.step { position: relative; padding-top: 30px; counter-increment: step; }
.step::before { content: ""; position: absolute; top: 0; inset-inline-start: 0; width: 13px; height: 13px; margin-top: -6px; border-radius: 50%; border: 1.25px solid #4a4a52; background: var(--bg); transition: background-color 0.5s, border-color 0.5s, box-shadow 0.5s; }
.step.is-on::before, html:not(.pin) .step::before { background: #fff; border-color: #fff; box-shadow: 0 0 0 5px color-mix(in srgb, var(--green) 28%, transparent), 0 0 18px 4px var(--green), 0 0 60px 14px color-mix(in srgb, var(--green) 45%, transparent); }
@media (prefers-reduced-motion: no-preference) { .pin .step.is-on::before { animation: dot-on 0.7s var(--ease); } }
.step-n { display: block; width: max-content; font-stretch: 125%; font-weight: 800; font-size: clamp(3.4rem, 9vw, 7rem); line-height: 0.95; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; font-family: "Archivo", sans-serif; }
.step-n::before { content: counter(step, decimal-leading-zero); }
.step h3 { margin-top: 14px; font-stretch: 120%; font-weight: 500; font-size: 1.375rem; }
.step-sub { margin-top: 4px; color: var(--green); font-size: 0.9375rem; font-weight: 500; }
.step-txt { margin-top: 14px; color: var(--muted); font-size: 1rem; line-height: 1.6; max-width: 26em; }
.pin .hz-stage { position: sticky; top: 0; height: 100vh; overflow: hidden; padding-block: 96px 40px; display: flex; flex-direction: column; justify-content: center; }
.pin .hz-stage > .wrap { width: 100%; }
.pin .hz-track { display: flex; width: max-content; gap: clamp(28px, 5vw, 90px); will-change: transform; border-top: 1px solid #2a2a30; }
.pin .hz-line { display: block; position: absolute; top: -1px; left: 0; right: 0; height: 1px; background: var(--green); transform: scaleX(var(--p, 0)); transform-origin: 0 50%; box-shadow: 0 0 14px var(--green); }
[dir="rtl"] .pin .hz-line { transform-origin: 100% 50%; }
.pin .step { width: min(460px, 74vw); flex: none; }

/* ---------- Produits : cartes de verre qui s'empilent ---------- */
.products > .light { inset-inline-end: -20%; top: 12%; }
.stack { margin-top: clamp(40px, 6vw, 72px); display: grid; gap: 26px; }
.card { border-radius: clamp(20px, 2.6vw, 32px); padding: clamp(22px, 3vw, 40px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(20px, 4vw, 56px); align-items: center; background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035)); -webkit-backdrop-filter: blur(34px) saturate(180%); backdrop-filter: blur(34px) saturate(180%); }
.card h3 { font-stretch: 125%; font-weight: 300; font-size: clamp(1.7rem, 3.2vw, 2.6rem); line-height: 1.1; letter-spacing: -0.02em; }
.card-desc { margin-top: 12px; font-size: 1.125rem; line-height: 1.5; color: var(--ink); }
.card-meta { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.card-meta li { border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 999px; padding: 3px 12px; font-size: 0.8125rem; color: var(--muted); white-space: nowrap; }
.card-meta li.is-link { padding: 0; border-color: rgba(255, 255, 255, 0.34); transition: border-color 0.25s, background-color 0.25s; }
.card-meta li.is-link a { display: inline-flex; align-items: center; gap: 7px; padding: 3px 12px; color: #fff; text-decoration: none; }
.card-meta li.is-link a::after { content: ""; width: 7px; height: 7px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; opacity: 0.7; }
[dir="rtl"] .card-meta li.is-link a::after { transform: scaleX(-1); }
.card-meta li.is-link:hover { border-color: var(--pc); background: color-mix(in srgb, var(--pc) 16%, transparent); }
.card-meta li.is-link a::after { content: ""; width: 7px; height: 7px; border-top: 1.5px solid var(--sc); border-right: 1.5px solid var(--sc); }
.card-meta li.is-link:hover { border-color: var(--sc); background: color-mix(in srgb, var(--sc) 18%, transparent); }
.card-link { display: inline-block; margin-top: 26px; font-weight: 500; font-size: 0.9375rem; text-underline-offset: 6px; text-decoration-thickness: 1px; text-decoration-color: #45454c; transition: color 0.25s, text-decoration-color 0.25s; }
.card-link:hover { color: #fff; text-decoration-color: var(--yellow); }
.shot { position: relative; aspect-ratio: 16 / 10; border-radius: clamp(12px, 1.6vw, 20px); overflow: hidden; background: #000; border: 1px solid rgba(255, 255, 255, 0.1); }
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.7s ease; }
.shot.has-img img { opacity: 1; }
.shot.has-img .shot-ph { opacity: 0; transition: opacity 0.7s ease; }
.shot-ph { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(90% 120% at 100% 0%, color-mix(in srgb, var(--pc) 26%, transparent), transparent 62%), repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 14px), #060607; }
.shot-ph span { max-width: 88%; text-align: center; text-wrap: balance; line-height: 1.05; font-stretch: 125%; font-weight: 800; font-size: clamp(1.6rem, 3.6vw, 3rem); letter-spacing: -0.04em; }
@media (min-width: 861px) and (min-height: 640px) { .pin .card { position: sticky; top: calc(96px + var(--i) * 22px); } }

/* ---------- Références : une carte mère, chaque référence est un composant ---------- */
.refs > .light { inset-inline-start: -20%; top: 6%; }
.refs-filter { margin-top: clamp(30px, 4vw, 48px); display: flex; flex-wrap: wrap; gap: 10px; }
.flt { display: inline-flex; align-items: center; gap: 9px; padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.13); color: var(--muted); font-size: 0.875rem; transition: color 0.3s, border-color 0.3s, background-color 0.3s, box-shadow 0.3s; }
.flt i { width: 7px; height: 7px; border-radius: 50%; background: var(--pc, #fff); opacity: 0.5; transition: opacity 0.3s, box-shadow 0.3s; }
.flt:hover { color: #fff; }
.flt[aria-pressed="true"] { color: #fff; border-color: color-mix(in srgb, var(--pc, #fff) 60%, transparent); background: color-mix(in srgb, var(--pc, #fff) 12%, transparent); }
.flt[aria-pressed="true"] i { opacity: 1; box-shadow: 0 0 12px var(--pc, #fff); }
.board { margin-top: clamp(34px, 5vw, 60px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 48px; }
.ic {
  position: relative; min-height: 168px; border-radius: 14px; padding: 22px 24px; display: flex; flex-direction: column;
  background: linear-gradient(160deg, #1d1d21 0%, #09090b 46%, #000 100%); border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 30px 60px -30px #000;
  transition: opacity 0.5s, transform 0.6s var(--ease), border-color 0.5s, box-shadow 0.5s;
}
/* broches : elles se rejoignent d'un composant à l'autre */
.ic::before, .ic::after { content: ""; position: absolute; top: 20px; bottom: 20px; width: 24px; background: repeating-linear-gradient(180deg, var(--pin, #2b2b31) 0 2px, transparent 2px 13px); transition: --pin 0.5s; }
.ic::before { inset-inline-start: -25px; } .ic::after { inset-inline-end: -25px; }
.ic-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: auto; }
.ic-notch { width: 11px; height: 11px; border-radius: 50%; background: #050506; box-shadow: inset 0 1.5px 2px #000, inset 0 -1px 0 rgba(255, 255, 255, 0.07), 0 1px 0 rgba(255, 255, 255, 0.09); }
.ic-leds { display: flex; gap: 6px; }
.ic-leds i { width: 7px; height: 7px; border-radius: 50%; background: var(--pc); opacity: 0.45; transition: opacity 0.4s, box-shadow 0.4s; }
.ic-name { margin-top: 26px; width: max-content; max-width: 100%; font-stretch: 125%; font-weight: 800; font-size: clamp(1.25rem, 2vw, 1.6rem); letter-spacing: -0.025em; line-height: 1.15; --uv-a: #2a2a30; }
/* logo d'une référence (réglé dans medias.js) : il prend la place du nom en vernis, le nom passe en légende */
.ic-logo { display: none; margin-top: 22px; height: 46px; max-width: 72%; object-fit: contain; object-position: left center; }
[dir="rtl"] .ic-logo { object-position: right center; }
.ic-logo.is-white { filter: brightness(0) invert(1); }
.ic.has-logo .ic-logo { display: block; }
.ic.has-logo .ic-name { margin-top: 12px; font-stretch: 110%; font-weight: 500; font-size: 0.9375rem; letter-spacing: 0; color: var(--ink); -webkit-text-fill-color: var(--ink); background: none; filter: none; }
.ic-link { position: absolute; inset: 0; border-radius: inherit; }
.ic-link:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.ic-kind { margin-top: 6px; font-size: 0.8438rem; color: var(--muted); }
.ic:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, 0.28); }
.ic:hover .ic-leds i, .ic.hit .ic-leds i.hot { opacity: 1; box-shadow: 0 0 12px var(--pc); }
.ic.hit { border-color: color-mix(in srgb, var(--fc) 55%, transparent); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 0 50px -14px var(--fc); --pin: var(--fc); }
.ic.off { opacity: 0.28; }

/* ---------- Dernière section : appel au contact ---------- */
/* ---------- Audit : un faisceau à faire glisser révèle l'analyse ---------- */
.audit > .light { inset-inline-end: -18%; top: 4%; }
.scan { position: relative; margin-top: clamp(30px, 4vw, 52px); border-radius: 24px; overflow: hidden; aspect-ratio: 800 / 360; --p: 100; cursor: ew-resize; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.js .scan { --p: 0; }
.scan > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.scan > svg { shape-rendering: geometricPrecision; }
.scan-lit { clip-path: inset(0 calc(100% - var(--p) * 1%) 0 0); }
/* côté « avant » : simples traits gris, visibles seulement là où le faisceau n'est pas encore passé */
.scan-base { clip-path: inset(0 0 0 calc(var(--p) * 1%)); }
.scan-base * { fill: none; stroke: #4b4c55; stroke-width: 1.3; stroke-linecap: square; vector-effect: non-scaling-stroke; }
[dir="rtl"] .scan > svg { transform: scaleX(-1); }
.scan-beam { position: absolute; top: 0; bottom: 0; inset-inline-start: calc(var(--p) * 1%); width: 2px; margin-inline-start: -1px; background: #fff; box-shadow: 0 0 12px #fff, 0 0 44px 4px var(--c); }
.scan-knob { position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; display: grid; place-items: center; cursor: ew-resize; background: rgba(12, 12, 14, 0.72); transition: transform 0.4s var(--ease), border-color 0.4s; }
.scan-knob svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.scan:hover .scan-knob, .scan-knob:focus-visible { transform: scale(1.1); border-color: color-mix(in srgb, var(--c) 70%, #fff); }
.scan-knob:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.scan-hint { position: absolute; inset-inline-end: 22px; bottom: 16px; padding: 5px 12px; border-radius: 999px; background: rgba(8, 8, 11, 0.78); font-size: 0.8125rem; color: #fff; transition: opacity 0.6s; pointer-events: none; }
.scan.used .scan-hint { opacity: 0; }
.scan-pin { position: absolute; inset-inline-start: calc(var(--x) * 1%); top: calc(var(--y) * 1%); width: 28px; height: 28px; margin: -14px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 0.75rem; font-weight: 500; color: #d5d7de; background: #1b1b1f; border: 1px solid #55565e; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35); transition: color 0.4s, background-color 0.4s, border-color 0.4s, box-shadow 0.4s, transform 0.5s var(--ease); }
.scan-pin.on { color: #050506; background: #fff; border-color: #fff; box-shadow: 0 0 10px #fff, 0 0 30px var(--c); transform: scale(1.12); }
.scan-steps { margin-top: 22px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.scan-step { width: 100%; display: flex; align-items: center; gap: 10px; padding: 6px 0; text-align: start; color: #5b5d66; font-size: 0.875rem; cursor: pointer; transition: color 0.4s; }
.scan-step i { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 0.6875rem; border: 1px solid #34343c; transition: color 0.4s, background-color 0.4s, border-color 0.4s, box-shadow 0.4s; }
.scan-step:hover { color: var(--muted); }
.scan-step.on { color: #fff; }
.scan-step.on i { color: #050506; background: #fff; border-color: #fff; box-shadow: 0 0 16px var(--c); }
.scan-step:focus-visible { outline: 2px solid var(--c); outline-offset: 4px; border-radius: 6px; }
@media (max-width: 960px) { .scan-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; } }
@media (max-width: 560px) {
  .scan { aspect-ratio: 350 / 250; border-radius: 20px; }
  .scan-pin { width: 24px; height: 24px; margin: -12px; font-size: 0.6875rem; }
  .scan-hint { inset-inline-end: 14px; bottom: 10px; font-size: 0.75rem; }
  .scan-steps { grid-template-columns: minmax(0, 1fr); }
}

.outro > .light { inset-inline-start: -24%; top: -20%; }
.outro.lit > .light { opacity: 0.5; }
.outro .actions { margin-top: 36px; }

/* ---------- Fenêtre de contact ---------- */
.modal { border: 0; padding: 0; background: transparent; color: inherit; width: min(640px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow: visible; }
.modal::backdrop { background: rgba(0, 0, 0, 0.66); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.modal[open] { animation: pop 0.5s var(--ease); }
.modal-in { border-radius: 28px; padding: clamp(22px, 4vw, 40px); background: linear-gradient(180deg, rgba(36, 36, 41, 0.94), rgba(9, 9, 11, 0.97)); max-height: calc(100dvh - 24px); overflow: auto; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.modal h2 { font-stretch: 125%; font-weight: 300; font-size: clamp(1.5rem, 4vw, 2.1rem); letter-spacing: -0.02em; line-height: 1.15; }
.x { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.14); display: grid; place-items: center; flex: none; transition: background-color 0.3s; }
.x:hover { background: rgba(255, 255, 255, 0.1); }
.x svg { width: 12px; height: 12px; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fld { display: grid; gap: 7px; }
.fld-full { grid-column: 1 / -1; }
.fld > label, .fld > legend { font-size: 0.8125rem; color: var(--muted); padding: 0; }
.fld input, .fld textarea { width: 100%; padding: 13px 15px; border-radius: 13px; border: 1px solid rgba(255, 255, 255, 0.13); background: rgba(255, 255, 255, 0.04); transition: border-color 0.3s, background-color 0.3s, box-shadow 0.3s; }
.fld textarea { min-height: 132px; resize: vertical; }
.fld input:focus, .fld textarea:focus { outline: 0; border-color: var(--c); background: rgba(255, 255, 255, 0.07); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 18%, transparent); }
.topics { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 7px; }
.topics label { cursor: pointer; }
.topics .brk { flex-basis: 100%; height: 0; }
.topics input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.topics span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.13); font-size: 0.875rem; color: var(--muted); transition: color 0.3s, border-color 0.3s, background-color 0.3s; }
.topics span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--pc, #fff); opacity: 0.5; }
.topics input:checked + span { color: #fff; border-color: color-mix(in srgb, var(--pc, #fff) 60%, transparent); background: color-mix(in srgb, var(--pc, #fff) 13%, transparent); }
.topics input:checked + span::before { opacity: 1; box-shadow: 0 0 12px var(--pc, #fff); }
.topics input:focus-visible + span { outline: 2px solid var(--c); outline-offset: 3px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; margin-top: 6px; }
.check { display: flex; align-items: flex-start; gap: 11px; flex: 1 1 240px; font-size: 0.8438rem; line-height: 1.45; color: var(--muted); cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check i { flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.04); display: grid; place-items: center; transition: border-color 0.3s, background-color 0.3s; }
.check i::after { content: ""; width: 10px; height: 6px; border: solid #000; border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg) scale(0); transition: transform 0.3s var(--ease); }
.check input:checked + i { background: var(--ink); border-color: var(--ink); }
.check input:checked + i::after { transform: translateY(-1px) rotate(-45deg) scale(1); }
.check input:focus-visible + i { outline: 2px solid var(--c); outline-offset: 3px; }
.captcha { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; flex: 1 1 240px; font-size: 0.875rem; color: var(--muted); }
.captcha b { color: var(--ink); font-weight: 500; white-space: nowrap; }
.captcha input { width: 76px; padding: 11px 12px; border-radius: 13px; border: 1px solid rgba(255, 255, 255, 0.13); background: rgba(255, 255, 255, 0.04); text-align: center; transition: border-color 0.3s, background-color 0.3s, box-shadow 0.3s; }
.captcha input:focus { outline: 0; border-color: var(--c); background: rgba(255, 255, 255, 0.07); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 18%, transparent); }
.form-msg { grid-column: 1 / -1; font-size: 0.9375rem; min-height: 1.5em; }
.form-msg.ok { color: var(--green); } .form-msg.ko { color: var(--red); }
button.btn { padding: 9px 10px 9px 26px; }

/* ---------- Pied de page ---------- */
.foot { overflow: hidden; container-type: inline-size; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; padding-block: 30px; font-size: 0.875rem; color: var(--muted); }
.foot-tag { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-style: italic; }
.foot-tag svg { width: 18px; height: 19px; flex: none; fill: #e9eaee; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.foot-links a, .foot-links button { color: var(--muted); text-decoration: none; font-size: inherit; transition: color 0.25s; }
.foot-links a:hover, .foot-links button:hover { color: #fff; }
.foot-copy { text-align: center; padding: 6px var(--gutter) 34px; font-size: 0.8125rem; color: var(--muted); }
.sig { width: max-content; margin: clamp(84px, 9cqw, 130px) auto 0; padding-bottom: 2.4cqw; direction: ltr; user-select: none; font-family: "Archivo", sans-serif; font-size: 13.6cqw; }
.mega, .tech { display: block; width: max-content; white-space: nowrap; font-stretch: 125%; --sh: 0.5; }
.mega { font-weight: 800; font-size: 1em; line-height: 0.86; letter-spacing: -0.04em; padding-inline-end: 0.04em; }
.tech { margin-top: 0.12em; font-weight: 300; font-size: 0.316em; line-height: 1; padding-bottom: 0.1em; letter-spacing: var(--ls, 0.5em); }
/* Les points des deux « I » : placés en « em » à partir du bord du mot (--i0 / --i1, mesurés une fois par site.js),
   ils suivent donc les lettres à toutes les tailles d'écran. */
.sig { position: relative; }
.i-dot { display: none; position: absolute; left: calc(var(--i0) * 1em); top: -0.167em; width: 0.16em; height: 0.16em; margin-left: -0.08em; border-radius: 50%; box-sizing: border-box; background: var(--bg); border: 1.25px solid #3f3f47; transition: background-color 0.5s, border-color 0.5s, box-shadow 0.7s; }
.i-dot + .i-dot { left: calc(var(--i1) * 1em); }
.sig.has-dots .i-dot { display: block; }
.powered .i-dot { background: #fff; border-color: #fff; box-shadow: 0 0 6px #fff, 0 0 20px #fff, 0 0 48px rgba(255, 255, 255, 0.75); }
.powered .i-dot + .i-dot { transition-delay: 0.5s; }
/* Au repos : noir verni avec un reflet qui passe. Quand le courant arrive : un seul passage de lumière, puis retour au noir. */
@media (prefers-reduced-motion: no-preference) {
  .mega, .tech { animation: shine 4.6s var(--ease) infinite; }
  .tech { animation-delay: 0.5s; }
  .powered .mega { animation: lightup 2.6s cubic-bezier(0.3, 0, 0.2, 1) 0.15s 1 both, shine 4.6s var(--ease) 3.2s infinite; }
  .powered .tech { animation: lightup 2.6s cubic-bezier(0.3, 0, 0.2, 1) 0.45s 1 both, shine 4.6s var(--ease) 3.6s infinite; }
}
@keyframes lightup {
  0% { --sh: -0.35; --uv-a: #131316; --uv-m: #5d5f66; }
  30% { --uv-a: #7e818a; --uv-m: #d6d8dd; }
  62% { --uv-a: #3a3b41; --uv-m: #8a8c94; }
  100% { --sh: 1.35; --uv-a: #131316; --uv-m: #5d5f66; }
}

/* ---------- Cookies : bandeau et réglages ---------- */
.ck { position: fixed; z-index: 45; inset-inline-end: 16px; bottom: 16px; width: min(440px, calc(100vw - 32px)); padding: 20px 22px; border-radius: 22px; background: linear-gradient(180deg, rgba(36, 36, 41, 0.94), rgba(9, 9, 11, 0.97)); font-size: 0.875rem; line-height: 1.5; color: var(--muted); animation: pop 0.6s var(--ease); }
.ck[hidden] { display: none; }
.ck a { color: var(--ink); text-underline-offset: 4px; }
.ck-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.ck-b { flex: 1 1 auto; padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.2); font-size: 0.8438rem; font-weight: 500; color: var(--ink); white-space: nowrap; transition: border-color 0.3s, background-color 0.3s; }
.ck-b:hover { border-color: rgba(255, 255, 255, 0.5); background: rgba(255, 255, 255, 0.06); }
.ck-yes { background: var(--ink); border-color: var(--ink); color: #000; }
.ck-yes:hover { background: #fff; border-color: #fff; }
.ck-intro { font-size: 0.9375rem; color: var(--muted); margin-bottom: 8px; }
.sw { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 16px; border-top: 1px solid rgba(255, 255, 255, 0.09); cursor: pointer; }
.sw strong { display: block; font-weight: 500; color: var(--ink); }
.sw small { display: block; margin-top: 3px; font-size: 0.8438rem; color: var(--muted); }
.sw input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sw i { flex: none; position: relative; width: 44px; height: 26px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.16); transition: background-color 0.3s, border-color 0.3s; }
.sw i::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 18px; height: 18px; border-radius: 50%; background: #8b8e96; transition: transform 0.35s var(--ease), background-color 0.3s; }
.sw input:checked + i { background: color-mix(in srgb, var(--green) 30%, transparent); border-color: var(--green); }
.sw input:checked + i::after { transform: translateX(18px); background: #fff; }
[dir="rtl"] .sw input:checked + i::after { transform: translateX(-18px); }
.sw input:disabled + i { opacity: 0.55; }
.sw input:focus-visible + i { outline: 2px solid var(--c); outline-offset: 3px; }
.ck-form .ck-btns { margin-top: 22px; }

/* ---------- Pages légales ---------- */
.doc .bar { padding-inline-end: 8px; }
.doc .btn-sm { display: inline-flex; }
.doc-main { padding-top: 150px; padding-bottom: 90px; max-width: 880px; }
.doc-main h1 { margin-bottom: 48px; }
.doc-main section { padding-block: 26px; border-top: 1px solid var(--line); }
.doc-main section h2 { font-stretch: 120%; font-weight: 500; font-size: 1.125rem; margin-bottom: 10px; }
.doc-main p, .doc-main dd { color: var(--muted); max-width: 44em; margin: 0; }
.doc-main a { color: var(--ink); text-underline-offset: 4px; }
.doc-main dl { margin: 0; display: grid; gap: 8px; }
.doc-main dl div { display: grid; grid-template-columns: minmax(120px, 220px) 1fr; gap: 16px; }
.doc-main dt { color: var(--ink); font-size: 0.9375rem; }
@media (max-width: 560px) { .doc-main dl div { grid-template-columns: 1fr; gap: 0; } .foot-in { justify-content: center; text-align: center; } }

/* ---------- Arabe : pas d'interlettrage négatif (les lettres sont liées), interlignes plus généreux ---------- */
[lang="ar"] * { letter-spacing: 0 !important; }
[lang="ar"] .mega, [lang="ar"] .step-n { letter-spacing: -0.04em !important; }
[lang="ar"] .tech { letter-spacing: var(--ls, 0) !important; }
[lang="ar"] .foot-tag { font-style: normal; }
[lang="ar"] .hero h1 { line-height: 1.4; font-weight: 400; }
[lang="ar"] .h2, [lang="ar"] .card h3, [lang="ar"] .modal h2 { line-height: 1.5; font-weight: 400; }
[lang="ar"] .ln { padding-block: 0.2em 0.3em; margin-block: -0.2em -0.3em; }
[lang="ar"] .ic-name { line-height: 1.6; }

/* ---------- Adaptation ---------- */
@media (max-width: 1080px) { .nav a { padding-inline: 11px; } .bar .btn-sm { display: none; } }
@media (max-width: 960px) {
  .hero-in { grid-template-columns: minmax(0, 1fr); align-content: center; padding-top: 120px; padding-bottom: 120px; }
  .fig { max-width: 440px; justify-self: center; grid-row: 1; margin-block: -20px -10px; }
  .board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .card { grid-template-columns: minmax(0, 1fr); }
  .shot { grid-row: 1; }
  .nav { display: none; } .burger { display: block; }
}
@media (min-width: 861px) { .menu { display: none; } }
@media (max-width: 560px) {
  .brand-name span { display: none; }
  .fig { max-width: 320px; }
  html:not(.pin) .hz-track { grid-template-columns: minmax(0, 1fr); }
  .board { grid-template-columns: minmax(0, 1fr); gap: 22px; padding-inline: 19px; }
  .ic::before, .ic::after { width: 18px; }
  .ic::before { inset-inline-start: -19px; } .ic::after { inset-inline-end: -19px; }
  .ic.off { display: none; }
  .xp-ctl { flex-wrap: wrap; justify-content: space-between; gap: 14px; }
  .xp-ticks { order: -1; flex: 0 0 100%; gap: 6px; }
  .xp-tick span { font-size: 0.75rem; }
  .form { grid-template-columns: 1fr; }
  .scroll-cue { display: none; }
}
