/* ==========================================================================
   WAKANDA X — Système visuel
   Direction : obsidienne & or — futurisme africain, sobre et éditorial.
   Les couleurs de marque (--brand, --tech) sont injectées depuis l'admin.
   ========================================================================== */

@font-face { font-family: 'Syne'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url('../fonts/syne-latin-wght-normal.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: 'Syne'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url('../fonts/syne-latin-ext-wght-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url('../fonts/manrope-latin-wght-normal.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: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url('../fonts/manrope-latin-ext-wght-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/jetbrains-mono-latin-500-normal.woff2') format('woff2'); }

:root {
  --brand: #7B55DC;
  --tech: #A98BFF;
  --on-brand: #FFFFFF;

  --ink: #08090C;
  --ink-2: #0D0F14;
  --ink-3: #14171F;
  --ink-4: #1C2029;
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .16);
  --text: #EDEBE6;
  --muted: #A3A3AC;
  --dim: #6F717B;

  --sand: #F3F1F7;
  --sand-2: #E7E3F0;
  --sand-line: rgba(20, 16, 34, .12);
  --sand-ink: #14111D;
  --sand-muted: #5B566B;

  --brand-soft: color-mix(in oklab, var(--brand) 16%, transparent);
  --brand-deep: color-mix(in oklab, var(--brand) 78%, #1a0b40);
  --brand-light: color-mix(in oklab, var(--brand) 62%, #ffffff);
  --tech-soft: color-mix(in oklab, var(--tech) 20%, transparent);

  --display: 'Syne', 'Arial Black', system-ui, sans-serif;
  --body: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --max: 1320px;
  --radius: 18px;
  --radius-sm: 10px;
  --notch: 22px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --header-h: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0; background: var(--ink); color: var(--text);
  font-family: var(--body); font-size: 1.0625rem; line-height: 1.65; font-weight: 450;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--brand); color: var(--on-brand); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; left: 1rem; top: -100px; z-index: 1000; background: var(--brand); color: var(--on-brand); padding: .7rem 1rem; border-radius: 8px; font-weight: 700; }
.skip-link:focus { top: 1rem; }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.04; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
h1 em, h2 em, h3 em { font-style: normal; color: var(--brand-light); }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: clamp(4.5rem, 10vw, 8.5rem); }
.section--tight { padding-block: clamp(3.5rem, 7vw, 6rem); }

/* Thèmes de section */
.theme-sand { background: var(--sand); color: var(--sand-ink); --line: var(--sand-line); --muted: var(--sand-muted); }
.theme-sand h1 em, .theme-sand h2 em { color: var(--brand-deep); }
.theme-ink2 { background: var(--ink-2); }

/* ---------- Typographie utilitaire ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .65rem;
  font-family: var(--mono); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before { content: ''; width: 26px; height: 1px; background: currentColor; opacity: .6; }
.eyebrow--brand { color: var(--brand-light); }
.theme-sand .eyebrow--brand { color: var(--brand-deep); }
.h-display { font-size: clamp(2.6rem, 6.4vw, 5.6rem); line-height: .98; letter-spacing: -.035em; }
.h-section { font-size: clamp(2rem, 4.4vw, 3.6rem); letter-spacing: -.03em; }
.h-card { font-size: clamp(1.2rem, 1.6vw, 1.42rem); letter-spacing: -.01em; line-height: 1.15; }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.26rem); line-height: 1.6; color: var(--muted); max-width: 46ch; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: .8rem; letter-spacing: .06em; }

.section-head { display: grid; gap: 1.4rem 4rem; grid-template-columns: 1fr; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.section-head .eyebrow { margin-bottom: 1.1rem; }
@media (min-width: 900px) {
  .section-head--split { grid-template-columns: 1.15fr .85fr; align-items: end; }
}
.section-head__aside { display: grid; gap: 1.5rem; justify-items: start; }

/* ---------- Boutons ---------- */
.btn {
  --btn-bg: var(--brand); --btn-fg: var(--on-brand);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 52px; padding: .85rem 1.45rem; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 700; font-size: .98rem; letter-spacing: -.005em; line-height: 1.1;
  transition: transform .35s var(--ease), background-color .3s, box-shadow .35s var(--ease), color .3s;
  isolation: isolate; overflow: hidden; white-space: nowrap;
}
.btn .icon { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -12px color-mix(in oklab, var(--btn-bg) 70%, transparent); }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: translateY(0); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--text); border: 1px solid var(--line-strong); }
.btn--ghost:hover { border-color: var(--text); box-shadow: none; }
.theme-sand .btn--ghost { --btn-fg: var(--sand-ink); border-color: rgba(23, 20, 15, .25); }
.theme-sand .btn--ghost:hover { border-color: var(--sand-ink); }
.btn--dark { --btn-bg: var(--sand-ink); --btn-fg: var(--sand); }
.btn--light { --btn-bg: var(--text); --btn-fg: var(--ink); }
.btn--wa { --btn-bg: #1FAF5A; --btn-fg: #fff; }
.btn--sm { min-height: 42px; padding: .6rem 1.1rem; font-size: .9rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; font-size: .95rem;
  border-bottom: 1px solid transparent; padding-bottom: 2px; transition: gap .3s var(--ease), border-color .3s, color .3s;
}
.link-arrow .icon { width: 18px; height: 18px; }
.link-arrow:hover { gap: .8rem; border-color: currentColor; }

/* ---------- Icônes ---------- */
.icon { width: 24px; height: 24px; flex: none; }
.icon-chip {
  display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px;
  background: var(--ink-3); border: 1px solid var(--line-strong); color: var(--brand);
}
.theme-sand .icon-chip { background: #fff; border-color: var(--sand-line); color: var(--brand-deep); }

/* ---------- Cadre « encoche » (signature visuelle) ---------- */
.frame {
  position: relative; overflow: hidden; border-radius: var(--radius); background: var(--ink-3);
  clip-path: polygon(0 0, calc(100% - var(--notch) * 2) 0, 100% calc(var(--notch) * 2), 100% 100%, var(--notch) 100%, 0 calc(100% - var(--notch)));
}
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame--plain { clip-path: none; }

/* Grille technologique en fond */
.grid-bg {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px; background-position: center top;
  mask-image: radial-gradient(ellipse 70% 60% at 60% 30%, #000 0%, transparent 75%);
  opacity: .55;
}
/* Bande à motifs — clin d'œil aux tissages ouest-africains */
.weave {
  height: 14px; width: 100%;
  background:
    linear-gradient(135deg, var(--brand) 25%, transparent 25%) -7px 0 / 14px 14px,
    linear-gradient(225deg, var(--brand) 25%, transparent 25%) -7px 0 / 14px 14px,
    linear-gradient(315deg, var(--brand) 25%, transparent 25%) 0 0 / 14px 14px,
    linear-gradient(45deg, var(--brand) 25%, transparent 25%) 0 0 / 14px 14px;
  opacity: .9;
}

/* ==========================================================================
   EN-TÊTE
   ========================================================================== */
.preview-bar {
  position: relative; z-index: 60; background: var(--tech); color: #fff; text-align: center;
  font-size: .85rem; font-weight: 600; padding: .55rem var(--gutter);
}
.preview-bar a { text-decoration: underline; margin-left: .5rem; }
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  transition: background-color .4s, border-color .4s, backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled, .site-header.is-solid {
  background: color-mix(in oklab, var(--ink) 82%, transparent);
  backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--line);
}
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; flex: none; }
.brand img { height: 44px; width: auto; max-width: 190px; object-fit: contain; }
.wordmark { font-family: var(--display); font-weight: 800; font-size: 1.28rem; letter-spacing: .02em; line-height: 1; display: inline-flex; align-items: center; gap: .35rem; }
.wordmark b { display: inline-grid; place-items: center; width: 1.45em; height: 1.45em; border-radius: 6px; background: var(--brand); color: var(--on-brand); font-size: .82em; }

.nav { display: none; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .3rem; }
.nav a {
  position: relative; display: block; padding: .55rem .9rem; border-radius: 999px; font-weight: 600; font-size: .95rem; color: var(--muted);
  transition: color .25s, background-color .25s;
}
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, .06); }
.header-cta { display: none; }
.menu-toggle {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line-strong); color: var(--text);
}
@media (min-width: 1040px) {
  .nav { display: block; }
  .header-cta { display: inline-flex; }
  .menu-toggle { display: none; }
}

/* Menu mobile */
.mobile-menu {
  position: fixed; inset: 0; z-index: 80; background: var(--ink); display: flex; flex-direction: column;
  padding: 0 var(--gutter) 2rem; opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity .35s var(--ease), transform .45s var(--ease), visibility 0s .45s; overflow-y: auto;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mobile-menu__top { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; flex: none; }
.mobile-menu nav ul { list-style: none; padding: 1.5rem 0; margin: 0; border-top: 1px solid var(--line); }
.mobile-menu nav li { border-bottom: 1px solid var(--line); }
.mobile-menu nav a { display: flex; justify-content: space-between; align-items: center; padding: 1.05rem 0; font-family: var(--display); font-size: clamp(1.7rem, 7vw, 2.4rem); font-weight: 700; letter-spacing: -.02em; }
.mobile-menu nav a .icon { color: var(--brand); }
.mobile-menu__foot { margin-top: auto; display: grid; gap: 1rem; padding-top: 2rem; }
.mobile-menu__foot .mono { color: var(--muted); }
body.menu-open { overflow: hidden; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { position: relative; padding-top: clamp(2.5rem, 6vw, 5rem); padding-bottom: clamp(3rem, 7vw, 6rem); overflow: hidden; margin-top: calc(var(--header-h) * -1); padding-top: calc(var(--header-h) + clamp(2.5rem, 6vw, 5rem)); }
.hero__glow {
  position: absolute; z-index: 0; pointer-events: none; border-radius: 50%; filter: blur(80px);
  width: 46vw; height: 46vw; max-width: 720px; max-height: 720px; right: -8vw; top: -6vw;
  background: radial-gradient(circle, var(--tech-soft), transparent 65%);
}
.hero__glow--2 { left: -14vw; right: auto; top: 40%; width: 36vw; height: 36vw; background: radial-gradient(circle, var(--brand-soft), transparent 65%); }
.hero__x {
  position: absolute; z-index: 0; right: -4%; top: 6%; width: min(62vw, 860px); aspect-ratio: 1; pointer-events: none; opacity: .5;
}
.hero__x line { stroke: var(--line-strong); stroke-width: .35; }
.hero .container { position: relative; z-index: 1; display: grid; gap: clamp(3rem, 6vw, 4rem); align-items: center; }
@media (min-width: 1000px) { .hero .container { grid-template-columns: 1.08fr .92fr; } }

.hero__eyebrow { display: inline-flex; max-width: 100%; line-height: 1.4; align-items: center; gap: .7rem; padding: .45rem .95rem .45rem .7rem; border: 1px solid var(--line-strong); border-radius: 999px; font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.8rem; background: rgba(255, 255, 255, .02); }
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); flex: none; }
.pulse::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--brand); animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(2.1); opacity: 0; } }
.hero__brandline { font-family: var(--display); font-weight: 800; letter-spacing: .32em; font-size: clamp(.8rem, 1.1vw, .95rem); color: var(--text); margin-bottom: 1.1rem; display: flex; align-items: center; gap: .9rem; }
.hero__brandline::after { content: ''; height: 1px; width: 64px; background: linear-gradient(90deg, var(--brand), transparent); }
.hero h1 { margin-bottom: 1.6rem; }
.hero h1 em { position: relative; }
.hero h1.h-display { font-size: clamp(2.6rem, 5.2vw, 5.2rem); }
.hero .container > * { min-width: 0; }
.hero h1 em::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: .02em; height: .09em; border-radius: 4px;
  background: linear-gradient(90deg, var(--brand), var(--tech)); transform-origin: left; transform: scaleX(0);
  animation: underline 1.1s .7s var(--ease) forwards;
}
@keyframes underline { to { transform: scaleX(1); } }
.hero .lead { margin-bottom: 2.2rem; max-width: 52ch; }
.hero__meta { margin-top: 2.6rem; display: flex; flex-wrap: wrap; gap: .8rem 2rem; padding-top: 1.6rem; border-top: 1px solid var(--line); max-width: 560px; }
.hero__meta a, .hero__meta span { display: inline-flex; align-items: center; gap: .55rem; font-size: .92rem; color: var(--muted); transition: color .25s; }
.hero__meta a:hover { color: var(--text); }
.hero__meta .icon { width: 18px; height: 18px; color: var(--brand); }

/* Composition visuelle */
.hero__visual { position: relative; min-height: 420px; }
.hero__visual .frame--main { position: relative; aspect-ratio: 4 / 5; width: 82%; margin-left: auto; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8); }
.hero__visual .frame--main::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(8, 9, 12, .55)); }
.hero__visual .frame--secondary { position: absolute; left: 0; bottom: 8%; width: 44%; aspect-ratio: 1; border: 6px solid var(--ink); border-radius: calc(var(--radius) + 6px); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7); }
.hero-card {
  position: absolute; z-index: 3; right: -2%; bottom: -3%; width: min(300px, 70%);
  padding: 1.05rem 1.15rem; border-radius: 16px; border: 1px solid var(--line-strong);
  background: color-mix(in oklab, var(--ink-2) 78%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.hero-card__label { display: flex; align-items: center; justify-content: space-between; font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin-bottom: .55rem; }
.hero-card__label i { width: 34px; height: 3px; border-radius: 3px; background: var(--line-strong); position: relative; overflow: hidden; }
.hero-card__label i::after { content: ''; position: absolute; inset: 0; background: var(--brand); transform-origin: left; animation: progress 3.2s linear infinite; }
@keyframes progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero-card__value { font-family: var(--display); font-weight: 700; font-size: 1.15rem; display: flex; align-items: center; gap: .6rem; min-height: 1.6em; }
.hero-card__value .icon { color: var(--brand); width: 22px; height: 22px; }
.hero-card__value span { transition: opacity .35s, transform .35s var(--ease); }
.hero-card__value span.is-out { opacity: 0; transform: translateY(6px); }
.badge-ring { position: absolute; z-index: 3; top: -3%; left: 8%; width: 128px; height: 128px; }
.badge-ring svg { width: 100%; height: 100%; animation: spin 26s linear infinite; }
.badge-ring text { font-family: var(--mono); font-size: 9.6px; letter-spacing: 2.6px; fill: var(--text); text-transform: uppercase; }
.badge-ring__core { position: absolute; inset: 30%; border-radius: 50%; background: #000; border: 1px solid color-mix(in oklab, var(--brand) 60%, transparent); color: var(--on-brand); overflow: hidden; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 1.35rem; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 999px) {
  .hero__visual { max-width: 560px; margin-inline: auto; width: 100%; min-height: 0; }
  .hero-card { right: 0; bottom: -6%; }
  .badge-ring { width: 104px; height: 104px; left: 0; }
}

/* Bandeau défilant */
.ticker { position: relative; border-block: 1px solid var(--line); background: var(--ink); overflow: hidden; }
.ticker__track { display: flex; width: max-content; animation: ticker 48s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__item { display: inline-flex; align-items: center; gap: 2.2rem; padding: 1.35rem 1.1rem; font-family: var(--display); font-size: clamp(1.15rem, 2.2vw, 1.7rem); font-weight: 600; letter-spacing: -.01em; white-space: nowrap; color: var(--muted); }
.ticker__item::after { content: '✕'; font-size: .7em; color: var(--brand); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ==========================================================================
   À PROPOS
   ========================================================================== */
.about { display: grid; gap: clamp(3rem, 6vw, 6rem); align-items: center; }
@media (min-width: 960px) { .about { grid-template-columns: .95fr 1.05fr; align-items: start; } .about__media { position: sticky; top: calc(var(--header-h) + 2rem); } }
.about__media { position: relative; padding-bottom: 14%; }
.about__media .frame--a { aspect-ratio: 5 / 4; width: 88%; }
.about__media .frame--b { position: absolute; right: 0; bottom: 0; width: 48%; aspect-ratio: 4 / 5; border: 6px solid var(--sand); border-radius: calc(var(--radius) + 6px); }
.about__media .tag {
  position: absolute; left: 6%; bottom: 4%; z-index: 2; padding: .9rem 1.1rem; border-radius: 14px; background: var(--sand-ink); color: var(--sand);
  font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; display: grid; gap: .25rem;
}
.about__media .tag strong { font-family: var(--display); font-size: 1rem; letter-spacing: 0; text-transform: none; color: var(--brand); }
.about__body h2 { margin: 1.1rem 0 1.5rem; }
.about__body .lead { color: var(--sand-ink); font-weight: 600; max-width: 52ch; margin-bottom: 1.3rem; }
.about__body .prose { color: var(--sand-muted); max-width: 60ch; }
.values { display: grid; gap: 0; grid-template-columns: 1fr; margin: 2.4rem 0; border-top: 1px solid var(--sand-line); }
@media (min-width: 600px) { .values { grid-template-columns: 1fr 1fr; } .values li:nth-child(odd) { padding-right: 1.6rem; border-right: 1px solid var(--sand-line); } .values li:nth-child(even) { padding-left: 1.6rem; } }
.values { list-style: none; padding: 0; }
.values li { padding: 1.3rem 0; border-bottom: 1px solid var(--sand-line); }
.values h3 { font-size: 1.15rem; display: flex; align-items: baseline; gap: .7rem; margin-bottom: .4rem; }
.values h3 span { font-family: var(--mono); font-size: .72rem; font-weight: 500; color: var(--brand-deep); letter-spacing: .06em; }
.values p { color: var(--sand-muted); font-size: .96rem; line-height: 1.55; }

/* ==========================================================================
   SERVICES
   ========================================================================== */
.services-grid { display: grid; gap: 1px; grid-template-columns: 1fr; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .services-grid { grid-template-columns: repeat(4, 1fr); } }
.service-card { position: relative; display: flex; flex-direction: column; background: var(--ink); min-height: 100%; transition: background-color .4s; }
.service-card__media { position: relative; aspect-ratio: 16 / 11; overflow: hidden; background: var(--ink-3); }
.service-card__media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) brightness(.85); transform: scale(1.02); transition: transform .9s var(--ease), filter .6s; }
.service-card__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 9, 12, .05) 30%, var(--ink) 100%); transition: opacity .4s; }
.service-card__body { position: relative; z-index: 1; display: flex; flex-direction: column; gap: .9rem; padding: 0 1.5rem 1.6rem; margin-top: -2.2rem; flex: 1; }
.service-card__top { display: flex; align-items: flex-end; justify-content: space-between; }
.service-card__num { font-family: var(--mono); font-size: .74rem; color: var(--dim); letter-spacing: .08em; }
.service-card p { color: var(--muted); font-size: .96rem; line-height: 1.58; }
.service-card .link-arrow { margin-top: auto; color: var(--text); }
.service-card::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, var(--brand), var(--tech)); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); z-index: 2; }
.service-card:hover { background: var(--ink-2); }
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover .service-card__media img { transform: scale(1.08); filter: saturate(1) brightness(.95); }
.service-card:hover .link-arrow { color: var(--brand); }
.service-card__link::after { content: ''; position: absolute; inset: 0; z-index: 3; }

/* ==========================================================================
   POURQUOI
   ========================================================================== */
.why { display: grid; gap: clamp(3rem, 6vw, 5rem); }
@media (min-width: 1180px) { .why { grid-template-columns: .85fr 1.15fr; align-items: start; } .why__head { position: sticky; top: calc(var(--header-h) + 2rem); } }
@media (min-width: 700px) and (max-width: 1179px) { .why__head { display: grid; grid-template-columns: 1fr 1fr; gap: 0 3rem; align-items: start; } .why__head .frame { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; } }
.why__head h2 { margin: 1.1rem 0 1.3rem; }
.why__head .frame { margin-top: 2.4rem; aspect-ratio: 16 / 11; }
.why__head .frame::after { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, color-mix(in oklab, var(--tech) 25%, transparent), transparent 60%); mix-blend-mode: screen; }
.why-list { display: grid; gap: 1px; grid-template-columns: 1fr; list-style: none; padding: 0; margin: 0; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 640px) { .why-list { grid-template-columns: 1fr 1fr; } }
.why-item { background: var(--ink-2); padding: clamp(1.6rem, 3vw, 2.3rem); display: grid; gap: 1rem; align-content: start; transition: background-color .4s; position: relative; }
.why-item:hover { background: var(--ink-3); }
.why-item__head { display: flex; align-items: center; justify-content: space-between; }
.why-item__num { font-family: var(--display); font-size: 2.6rem; font-weight: 800; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--line-strong); transition: -webkit-text-stroke-color .4s; }
.why-item:hover .why-item__num { -webkit-text-stroke-color: var(--brand); }
.why-item h3 { font-size: 1.3rem; }
.why-item p { color: var(--muted); font-size: .97rem; line-height: 1.58; }

/* ==========================================================================
   PROCESSUS
   ========================================================================== */
.process { position: relative; --p: 0; }
.process__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; position: relative; counter-reset: step; }
.process__line { position: absolute; background: var(--sand-line); }
.process__line i { position: absolute; inset: 0; background: linear-gradient(var(--brand-deep), var(--brand)); transform-origin: top; transform: scaleY(var(--p)); }
.process__step { position: relative; padding: 0 0 2.6rem 3.6rem; }
.process__step:last-child { padding-bottom: 0; }
.process__dot {
  position: absolute; left: 0; top: 0; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: var(--sand); border: 1px solid var(--sand-line); font-family: var(--mono); font-size: .78rem; font-weight: 500; color: var(--sand-muted);
  transition: background-color .5s, color .5s, border-color .5s, transform .5s var(--ease);
}
.process__step.is-active .process__dot { background: var(--sand-ink); color: var(--brand); border-color: var(--sand-ink); transform: scale(1.06); }
.process__step h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); margin: .35rem 0 .6rem; }
.process__step p { color: var(--sand-muted); font-size: .98rem; max-width: 34ch; }
.process__line { left: 20px; top: 21px; bottom: 21px; width: 1px; }
@media (min-width: 1100px) {
  .process__steps { grid-template-columns: repeat(5, 1fr); gap: 1.6rem; }
  .process__line { left: 21px; right: 21px; top: 20px; bottom: auto; width: auto; height: 1px; }
  .process__line i { transform-origin: left; transform: scaleX(var(--p)); background: linear-gradient(90deg, var(--brand-deep), var(--brand)); }
  .process__step { padding: 4.2rem 0 0; }
}

/* ==========================================================================
   RÉALISATIONS
   ========================================================================== */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.6rem; }
.filter {
  padding: .6rem 1.1rem; min-height: 44px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted); font-weight: 600; font-size: .92rem;
  transition: color .25s, background-color .25s, border-color .25s; display: inline-flex; align-items: center;
}
.filter:hover { color: var(--text); border-color: var(--text); }
.filter.is-active { background: var(--text); border-color: var(--text); color: var(--ink); }
.projects-grid { display: grid; gap: clamp(1.2rem, 2.4vw, 2rem); grid-template-columns: 1fr; }
@media (min-width: 700px) { .projects-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .projects-grid { grid-template-columns: repeat(3, 1fr); } }
.project-card { position: relative; display: grid; gap: 1.1rem; }
.project-card[hidden] { display: none; }
.project-card .frame { aspect-ratio: 4 / 3; }
.project-card .frame img { transition: transform .9s var(--ease); }
.project-card:hover .frame img { transform: scale(1.05); }
.project-card__cat { position: absolute; left: 1rem; top: 1rem; z-index: 2; padding: .35rem .75rem; border-radius: 999px; background: rgba(8, 9, 12, .7); backdrop-filter: blur(8px); font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }
.project-card h3 { font-size: 1.35rem; }
.project-card p { color: var(--muted); font-size: .95rem; }
.project-card a::after { content: ''; position: absolute; inset: 0; z-index: 3; }
.empty-state {
  position: relative; overflow: hidden; border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: clamp(2.2rem, 5vw, 4rem);
  display: grid; gap: 1.6rem; justify-items: start; background: radial-gradient(ellipse at 100% 0%, var(--tech-soft), transparent 55%);
}
.empty-state h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); max-width: 22ch; }
.empty-state p { color: var(--muted); max-width: 60ch; }
.empty-state__cats { display: flex; flex-wrap: wrap; gap: .5rem; }
.empty-state__cats span { padding: .4rem .8rem; border-radius: 999px; border: 1px solid var(--line); font-size: .85rem; color: var(--muted); }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { display: grid; gap: clamp(2.5rem, 5vw, 5rem); }
@media (min-width: 960px) { .faq { grid-template-columns: .8fr 1.2fr; align-items: start; } .faq__head { position: sticky; top: calc(var(--header-h) + 2rem); } }
.faq__head h2 { margin: 1.1rem 0 1.3rem; }
.faq__head .btn-row { margin-top: 2rem; }
.accordion { border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding: 1.45rem 0; font-family: var(--display); font-weight: 600; font-size: clamp(1.05rem, 1.6vw, 1.28rem); letter-spacing: -.01em; line-height: 1.3;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary .toggle { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: transform .4s var(--ease), background-color .3s, color .3s; }
.accordion summary .toggle .icon { width: 18px; height: 18px; }
.accordion details[open] summary .toggle { transform: rotate(45deg); background: var(--sand-ink); color: var(--sand); border-color: var(--sand-ink); }
.theme-ink2 .accordion details[open] summary .toggle, :not(.theme-sand) > .container .accordion details[open] summary .toggle { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.theme-sand .accordion details[open] summary .toggle { background: var(--sand-ink); color: var(--sand); border-color: var(--sand-ink); }
.accordion .answer { padding: 0 3.5rem 1.6rem 0; color: var(--muted); max-width: 68ch; }
.accordion details[open] .answer { animation: reveal .45s var(--ease); }
@keyframes reveal { from { opacity: 0; transform: translateY(-6px); } }

/* ==========================================================================
   APPEL À L'ACTION
   ========================================================================== */
.cta-panel {
  position: relative; overflow: hidden; border-radius: calc(var(--radius) + 6px); background: var(--ink-3); border: 1px solid var(--line);
  display: grid; isolation: isolate;
}
@media (min-width: 960px) { .cta-panel { grid-template-columns: 1.15fr .85fr; } }
.cta-panel__body { position: relative; z-index: 2; padding: clamp(2.2rem, 5vw, 4.5rem); display: grid; gap: 1.5rem; align-content: center; }
.cta-panel__body h2 { font-size: clamp(2.1rem, 4.6vw, 3.9rem); }
.cta-panel__body p { color: var(--muted); max-width: 48ch; font-size: 1.1rem; }
.cta-panel__media { position: relative; min-height: 280px; }
.cta-panel__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-panel__media::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, var(--ink-3) 0%, transparent 45%); }
@media (max-width: 959px) { .cta-panel__media::before { background: linear-gradient(180deg, var(--ink-3) 0%, transparent 50%); } .cta-panel__media { order: -1; min-height: 240px; } }
.cta-panel .grid-bg { mask-image: radial-gradient(ellipse 60% 80% at 10% 50%, #000, transparent 70%); }

/* ==========================================================================
   PAGES INTÉRIEURES
   ========================================================================== */
.page-hero { position: relative; overflow: hidden; margin-top: calc(var(--header-h) * -1); padding: calc(var(--header-h) + clamp(3rem, 8vw, 6rem)) 0 clamp(3rem, 7vw, 5.5rem); border-bottom: 1px solid var(--line); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2.5rem, 6vw, 5rem); max-width: 18ch; margin: 1.3rem 0 1.5rem; }
.page-hero .lead { max-width: 58ch; }
.page-hero--split .container { display: grid; gap: 2.5rem; align-items: end; }
@media (min-width: 1000px) { .page-hero--split .container { grid-template-columns: 1.2fr .8fr; } }
.page-hero__media { aspect-ratio: 4 / 3; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0; padding: 0; font-family: var(--mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.breadcrumb li + li::before { content: '/'; margin-right: .5rem; opacity: .5; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb [aria-current] { color: var(--muted); }

/* Index des services (page Services) */
.service-index { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2.4rem; }
.service-index a { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem .95rem; border-radius: 999px; border: 1px solid var(--line-strong); font-size: .9rem; font-weight: 600; color: var(--muted); transition: all .25s; }
.service-index a:hover { color: var(--on-brand); background: var(--brand); border-color: var(--brand); }
.service-index .icon { width: 16px; height: 16px; }

/* Bloc service détaillé */
.service-block { display: grid; gap: clamp(2.2rem, 5vw, 5rem); align-items: start; }
@media (min-width: 980px) {
  .service-block { grid-template-columns: 1fr 1fr; }
  .service-block--reverse .service-block__media { order: 2; }
  .service-block__media { position: sticky; top: calc(var(--header-h) + 2rem); }
}
.service-block__media .frame { aspect-ratio: 5 / 4; }
.service-block__media .icon-chip { position: absolute; left: 1.2rem; bottom: 1.2rem; z-index: 2; }
.service-block__body h2 { font-size: clamp(2rem, 3.6vw, 3rem); margin: 1rem 0 1.3rem; }
.service-block__body .prose { color: var(--muted); }
.service-block__body .prose p { max-width: 62ch; }
.service-block + .service-block { margin-top: clamp(4rem, 9vw, 8rem); padding-top: clamp(4rem, 9vw, 8rem); border-top: 1px solid var(--line); }
.sub-title { font-family: var(--mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin: 2.2rem 0 1rem; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.check-list li { display: flex; gap: .85rem; padding: .7rem 0; border-bottom: 1px solid var(--line); font-weight: 550; }
.check-list .icon { width: 20px; height: 20px; color: var(--brand); margin-top: .18em; }
.theme-sand .check-list .icon { color: var(--brand-deep); }
@media (min-width: 640px) { .check-list--cols { grid-template-columns: 1fr 1fr; column-gap: 2rem; } }
.benefits { display: grid; gap: .8rem; grid-template-columns: 1fr; margin: 0; padding: 0; list-style: none; }
@media (min-width: 560px) { .benefits { grid-template-columns: 1fr 1fr; } }
.benefits li { padding: 1rem 1.1rem; border-radius: 14px; background: var(--ink-2); border: 1px solid var(--line); font-size: .95rem; line-height: 1.45; display: flex; gap: .7rem; }
.benefits li .icon { color: var(--tech); width: 20px; height: 20px; }
.theme-sand .benefits li { background: #fff; }
.service-block__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }

/* Autres services */
.other-services { display: grid; gap: 1px; grid-template-columns: 1fr; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 700px) { .other-services { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .other-services { grid-template-columns: repeat(3, 1fr); } }
.other-services a { display: flex; align-items: center; gap: 1rem; padding: 1.3rem 1.4rem; background: var(--ink); transition: background-color .3s; }
.other-services a:hover { background: var(--ink-2); }
.other-services a:hover .icon:last-child { transform: translateX(4px); color: var(--brand); }
.other-services strong { font-family: var(--display); font-size: 1.05rem; flex: 1; }
.other-services .icon:first-child { color: var(--brand); }
.other-services .icon:last-child { transition: transform .3s var(--ease); color: var(--dim); }

/* Projet */
.project-hero .frame { aspect-ratio: 16 / 9; margin-top: 3rem; }
.project-meta { display: grid; gap: 1rem 2rem; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); padding: 1.6rem 0; border-block: 1px solid var(--line); margin-bottom: 2.5rem; }
.project-meta dt { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin-bottom: .3rem; }
.project-meta dd { margin: 0; font-weight: 600; }
.gallery { display: grid; gap: 1.2rem; grid-template-columns: 1fr; margin-top: 3rem; }
@media (min-width: 700px) { .gallery { grid-template-columns: 1fr 1fr; } .gallery .frame:first-child:nth-last-child(odd) { grid-column: 1 / -1; } }
.gallery .frame { aspect-ratio: 4 / 3; }
.prose-lg { font-size: 1.12rem; color: var(--muted); max-width: 70ch; }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: start; }
@media (min-width: 1000px) { .contact { grid-template-columns: .85fr 1.15fr; } }
.contact-info { display: grid; gap: 1.2rem; }
.contact-info .frame { aspect-ratio: 16 / 10; margin-bottom: .6rem; }
.contact-line { display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: 14px; background: var(--ink-2); transition: border-color .3s, background-color .3s; }
a.contact-line:hover { border-color: var(--brand); background: var(--ink-3); }
.contact-line .icon { color: var(--brand); margin-top: .1rem; }
.contact-line small { display: block; font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin-bottom: .2rem; }
.contact-line strong { font-weight: 650; font-size: 1.02rem; }
.form-card { position: relative; padding: clamp(1.5rem, 4vw, 2.8rem); border-radius: calc(var(--radius) + 4px); background: var(--sand); color: var(--sand-ink); }
.form-card h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: .6rem; }
.form-card > p { color: var(--sand-muted); margin-bottom: 1.8rem; }
.form-grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field { display: grid; gap: .4rem; }
.field label { font-weight: 700; font-size: .88rem; }
.field label span { color: var(--sand-muted); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: .8rem 1rem; border-radius: 12px; border: 1px solid rgba(23, 20, 15, .18); background: #fff; color: var(--sand-ink);
  font-size: 1rem; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.55; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2316130E' stroke-width='1.6'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sand-ink); box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand) 35%, transparent); }
.field [aria-invalid="true"] { border-color: #C2410C; }
.field-error { color: #B23A0A; font-size: .84rem; font-weight: 600; min-height: 0; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin-top: 1.6rem; }
.form-foot small { color: var(--sand-muted); max-width: 36ch; line-height: 1.45; }
.form-status { margin-top: 1.2rem; padding: 1rem 1.2rem; border-radius: 12px; font-weight: 600; display: none; }
.form-status.is-ok { display: block; background: #E3F3E7; color: #14532D; }
.form-status.is-error { display: block; background: #FBE7DD; color: #8A2C07; }
.btn[aria-busy="true"] { pointer-events: none; opacity: .75; }
.btn[aria-busy="true"]::after { content: ''; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }

/* ==========================================================================
   PIED DE PAGE
   ========================================================================== */
.site-footer { position: relative; background: var(--ink); border-top: 1px solid var(--line); padding-top: clamp(3.5rem, 7vw, 6rem); overflow: hidden; }
.footer-top { display: grid; gap: 3rem; grid-template-columns: 1fr; padding-bottom: 3.5rem; }
@media (min-width: 760px) { .footer-top { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 1100px) { .footer-top { grid-template-columns: 1.5fr 1fr .8fr 1.1fr; } }
.footer-brand img { height: 56px; width: auto; max-width: 220px; object-fit: contain; margin-bottom: 1.4rem; }
.footer-brand .wordmark { font-size: 1.6rem; margin-bottom: 1.4rem; }
.footer-brand p { font-family: var(--display); font-size: clamp(1.3rem, 2vw, 1.6rem); font-weight: 600; letter-spacing: -.01em; line-height: 1.25; max-width: 18ch; }
.footer-col h3 { font-family: var(--mono); font-size: .72rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-bottom: 1.2rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.footer-col a { color: var(--muted); transition: color .2s; }
.footer-col a:hover { color: var(--text); }
.footer-col address { font-style: normal; color: var(--muted); display: grid; gap: .7rem; }
.footer-col address a { color: var(--text); font-weight: 600; }
.socials { display: flex; gap: .5rem; margin-top: 1.4rem; }
.socials a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; color: var(--muted); transition: all .25s; }
.socials a:hover { color: var(--on-brand); background: var(--brand); border-color: var(--brand); }
.socials .icon { width: 18px; height: 18px; }
.footer-giant { font-family: var(--display); font-weight: 800; font-size: clamp(3rem, 12.6vw, 13.5rem); line-height: .8; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1px var(--line-strong); white-space: nowrap; text-align: center; user-select: none; margin-bottom: -.12em; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; padding: 1.5rem 0 2rem; border-top: 1px solid var(--line); font-size: .86rem; color: var(--dim); }

/* ==========================================================================
   WAKANDA AI — Chatbot
   ========================================================================== */
.wai-launcher {
  position: fixed; z-index: 70; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: .65rem; padding: .5rem 1.05rem .5rem .5rem; min-height: 56px; border-radius: 999px;
  background: color-mix(in oklab, var(--ink-3) 88%, transparent); border: 1px solid var(--line-strong); color: var(--text);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .7);
  font-weight: 700; font-size: .93rem; transition: transform .35s var(--ease), border-color .3s, opacity .3s;
}
.wai-launcher:hover { transform: translateY(-3px); border-color: var(--brand); }
.wai-orb { position: relative; width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(circle at 30% 30%, color-mix(in oklab, var(--brand) 90%, #fff), var(--brand) 40%, var(--tech) 100%); color: var(--on-brand); }
.wai-orb::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, transparent, rgba(255, 255, 255, .45), transparent 40%); animation: spin 4s linear infinite; mix-blend-mode: overlay; }
.wai-orb img { width: 70%; height: 70%; object-fit: contain; position: relative; z-index: 1; }
.wai-orb .icon { width: 20px; height: 20px; position: relative; z-index: 1; }
.wai-launcher[aria-expanded="true"] { opacity: 0; pointer-events: none; transform: scale(.9); }

.wai-panel {
  position: fixed; z-index: 75; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
  width: min(400px, calc(100vw - 32px)); height: min(620px, calc(100dvh - 32px));
  display: flex; flex-direction: column; border-radius: 22px; overflow: hidden;
  background: var(--ink-2); border: 1px solid var(--line-strong); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .85);
  opacity: 0; visibility: hidden; transform: translateY(16px) scale(.98); transform-origin: bottom right;
  transition: opacity .3s var(--ease), transform .4s var(--ease), visibility 0s .4s;
}
.wai-panel.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
@media (max-width: 520px) {
  .wai-panel { right: 0; bottom: 0; width: 100vw; height: 100dvh; border-radius: 0; border: 0; }
}
.wai-head { display: flex; align-items: center; gap: .8rem; padding: .9rem 1rem; border-bottom: 1px solid var(--line); background: var(--ink-3); }
.wai-head__id { flex: 1; min-width: 0; }
.wai-head strong { display: block; font-family: var(--display); font-size: 1.02rem; }
.wai-head small { display: flex; align-items: center; gap: .4rem; color: var(--muted); font-size: .78rem; }
.wai-head small::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #3DDC84; }
.wai-icon-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); transition: background-color .2s, color .2s; }
.wai-icon-btn:hover { background: rgba(255, 255, 255, .07); color: var(--text); }
.wai-icon-btn .icon { width: 20px; height: 20px; }
.wai-icon-btn--wa { color: #3DDC84; }
.wai-body { flex: 1; overflow-y: auto; padding: 1.1rem 1rem; display: flex; flex-direction: column; gap: .75rem; overscroll-behavior: contain; scroll-behavior: smooth; }
.wai-msg { max-width: 86%; padding: .75rem .95rem; border-radius: 16px; font-size: .95rem; line-height: 1.55; white-space: normal; word-wrap: break-word; animation: reveal .35s var(--ease); }
.wai-msg p { margin: 0 0 .5em; }
.wai-msg p:last-child { margin: 0; }
.wai-msg ul { margin: .3em 0 .5em; padding-left: 1.1em; }
.wai-msg a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.wai-msg--bot { align-self: flex-start; background: var(--ink-3); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.wai-msg--user { align-self: flex-end; background: var(--brand); color: var(--on-brand); border-bottom-right-radius: 6px; font-weight: 550; }
.wai-typing { display: inline-flex; gap: 4px; padding: .9rem 1rem; }
.wai-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: typing 1.2s infinite; }
.wai-typing i:nth-child(2) { animation-delay: .15s; }
.wai-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.wai-suggest { display: flex; flex-wrap: wrap; gap: .45rem; padding: 0 1rem .8rem; }
.wai-suggest button { padding: .5rem .8rem; border-radius: 999px; border: 1px solid var(--line-strong); font-size: .84rem; color: var(--muted); text-align: left; transition: all .2s; }
.wai-suggest button:hover { color: var(--text); border-color: var(--brand); }
.wai-form { display: flex; gap: .5rem; padding: .8rem; border-top: 1px solid var(--line); background: var(--ink-3); }
.wai-form textarea { flex: 1; resize: none; min-height: 46px; max-height: 120px; padding: .75rem .9rem; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--ink); color: var(--text); font-size: 16px; line-height: 1.4; }
.wai-form textarea:focus { outline: none; border-color: var(--brand); }
.wai-form button { width: 46px; height: 46px; border-radius: 50%; background: var(--brand); color: var(--on-brand); display: grid; place-items: center; flex: none; transition: transform .2s; align-self: flex-end; }
.wai-form button:disabled { opacity: .5; }
.wai-form button .icon { width: 20px; height: 20px; }
.wai-note { padding: 0 1rem .7rem; font-size: .72rem; color: var(--dim); text-align: center; background: var(--ink-3); }

/* ==========================================================================
   Animations au défilement (discrètes) & accessibilité
   ========================================================================== */
.hero [data-reveal], .page-hero [data-reveal] { animation: heroIn .9s var(--ease) var(--d, 0s) both; }
@keyframes heroIn { from { opacity: 0; transform: translateY(22px); } }
.hero [data-reveal="fade"], .page-hero [data-reveal="fade"] { animation-name: heroFade; }
@keyframes heroFade { from { opacity: 0; } }
/* Seuls les blocs que le script a explicitement marqués .rv (encore sous l'écran) sont masqués :
   sans JavaScript, ou en cas de problème, tout reste visible. */
.rv:not(.is-in) { opacity: 0; transform: translateY(20px); }
.rv[data-reveal="fade"]:not(.is-in) { transform: none; }
.rv { transition: opacity .6s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.rv.frame:not(.is-in) img { transform: scale(1.08); }
.rv.frame img { transition: transform 1.4s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .rv:not(.is-in) { opacity: 1; transform: none; }
  .ticker__track { animation: none; flex-wrap: wrap; width: auto; }
}

/* 404 */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.notfound h1 { font-size: clamp(5rem, 18vw, 12rem); color: transparent; -webkit-text-stroke: 1px var(--brand); line-height: 1; }

/* ---------- Logo officiel ---------- */
.brand img { height: 52px; max-width: 220px; }
@media (max-width: 640px) { .brand img { height: 46px; } }
.footer-brand img { height: 96px; max-width: 260px; }
.badge-ring__core img, .wai-orb--logo img { width: 100%; height: 100%; object-fit: cover; }
.wai-orb--logo { background: #000; border: 1px solid color-mix(in oklab, var(--brand) 55%, transparent); }
.wai-orb--logo::after { opacity: .35; }

/* ---------- Bouton Chat Wakanda compact sur mobile (ne masque plus les boutons de la page) ---------- */
@media (max-width: 640px) {
  .wai-launcher { padding: 6px; min-height: 0; gap: 0; }
  .wai-launcher > span:not(.wai-orb) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .wai-launcher .wai-orb { width: 46px; height: 46px; }
  .site-footer { padding-bottom: 72px; }
}

