/* Léo - TechMaker
   Direction : pages produit à la Apple. Grands titres serrés, beaucoup d'air, scènes épinglées,
   engrenages en acier qui tournent avec le défilement (le motif du t-shirt de Léo),
   et le chibi qui réagit à ce qu'il se passe. Une seule famille : Archivo, hébergée sur le site. */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("archivo.woff2") format("woff2-variations"), url("archivo.woff2") format("woff2");
}

:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --line: #d2d2d7;
  --night: #000000;
  --night-card: #161618;
  --night-card-hi: #1f1f22;
  --night-ink-2: #a1a1a6;
  --accent: #2f5bff;
  --accent-hi: #8ea6ff;
  --live: #ff3b30;
  --surface: #ffffff;
  --thumb: #e8e8ed;
  --btn: #e3e3e8;
  --btn-hi: #d6d6dc;
  --accent-press: #1f47e0;
  --ok: #1a8e3e;
  --err: #d70015;
  --shadow: rgba(0, 0, 0, .25);
  --nav-bg: rgba(255, 255, 255, .72);
  --menu-bg: rgba(255, 255, 255, .96);
  --nav-line: rgba(0, 0, 0, .06);
  --nav-ink: rgba(29, 29, 31, .8);
  --grad-1: #1d1d1f;
  --grad-2: #57575c;
  --grad-3: #6e6e73;
  color-scheme: light dark;

  --font: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --nav-h: 52px;
  --gutter: clamp(1.25rem, 5vw, 3.5rem);
  --max: 72rem;
  --radius: 22px;
  --radius-lg: 30px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* Mode sombre automatique : suit le réglage de l'appareil */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-alt: #101012;
    --surface: #1c1c1e;
    --ink: #f5f5f7;
    --ink-2: #a1a1a6;
    --line: #38383d;
    --accent: #5b82ff;
    --accent-press: #4a6ff0;
    --btn-accent: #3461ff;
    --thumb: #2c2c2e;
    --btn: #2c2c2e;
    --btn-hi: #3a3a3c;
    --ok: #30d158;
    --err: #ff453a;
    --shadow: rgba(0, 0, 0, .7);
    --nav-bg: rgba(22, 22, 23, .72);
    --menu-bg: rgba(22, 22, 23, .96);
    --nav-line: rgba(255, 255, 255, .08);
    --nav-ink: rgba(245, 245, 247, .8);
    --grad-1: #f5f5f7;
    --grad-2: #a1a1a6;
    --grad-3: #8e8e93;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.5; letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--ink); color: var(--bg); padding: .6rem 1rem; border-radius: 10px; text-decoration: none; }
.skip:focus { top: .6rem; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.a-completer { display: none !important; }

h2, .page-h1 {
  font-weight: 700; font-size: clamp(2.3rem, 5.6vw, 4.6rem);
  line-height: 1.04; letter-spacing: -.035em; text-wrap: balance;
}
.section { padding-block: clamp(5.5rem, 13vw, 10rem); }
.alt { background: var(--bg-alt); }
.section-sub { margin-top: 1rem; font-size: clamp(1.15rem, 1.8vw, 1.45rem); color: var(--ink-2); text-wrap: balance; }
.link-more { color: var(--accent); text-decoration: none; font-weight: 500; font-size: 1.1rem; white-space: nowrap; }
.link-more::after { content: ""; display: inline-block; width: .45em; height: .45em; margin-left: .35em; border: solid currentColor; border-width: 2px 2px 0 0; transform: translateY(-.08em) rotate(45deg); }
.link-more:hover { text-decoration: underline; text-underline-offset: .2em; }

/* ---------- Barre de navigation (verre dépoli) ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h);
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--nav-line);
}
.nav-inner { height: 100%; max-width: calc(var(--max) + 2rem); margin-inline: auto; padding-inline: var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; font-weight: 700; font-size: 1.02rem; letter-spacing: -.02em; }
.brand-mark { width: 2.1rem; height: 2.1rem; margin: -.2rem 0 -.2rem -.15rem; object-fit: contain; }
.nav-links { display: flex; gap: clamp(1.25rem, 3vw, 2.4rem); font-size: .88rem; }
.nav-links a { text-decoration: none; color: var(--nav-ink); }
.nav-links a:hover { color: var(--ink); }
.nav { transition: background .35s, border-color .35s; }
.nav.nav-dark { background: rgba(22, 22, 23, .72); border-bottom-color: rgba(255, 255, 255, .08); }
.nav.nav-dark .brand, .nav.nav-dark .nav-toggle { color: #f5f5f7; }
.nav.nav-dark .nav-links a { color: rgba(245, 245, 247, .8); }
.nav.nav-dark .nav-links a:hover { color: #fff; }
.nav-toggle { display: none; }
@media (max-width: 44rem) {
  .nav-toggle {
    display: grid; place-items: center; width: 44px; height: 44px; margin-right: -10px;
    background: none; border: 0; color: var(--ink); cursor: pointer;
  }
  .nav-toggle-bars, .nav-toggle-bars::before { display: block; width: 18px; height: 1.5px; background: currentColor; position: relative; transition: transform .3s var(--ease); }
  .nav-toggle-bars::before { content: ""; position: absolute; top: 6px; left: 0; }
  .nav-toggle-bars { transform: translateY(-3px); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { transform: translateY(0) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(-6px) rotate(-90deg); }
  .nav-links {
    position: absolute; top: var(--nav-h); left: 0; right: 0; flex-direction: column; gap: 0;
    padding: .5rem var(--gutter) 1.5rem; background: var(--menu-bg);
    -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--nav-line); font-size: 1.5rem; font-weight: 600;
    visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .25s, transform .3s var(--ease), visibility 0s .3s;
  }
  .nav-links a { padding: .55rem 0; color: var(--ink); }
  .nav.nav-dark .nav-links { background: rgba(22, 22, 23, .96); }
  .nav.nav-dark .nav-links a { color: #f5f5f7; }
  .nav.open .nav-links { visibility: visible; opacity: 1; transform: none; transition: opacity .25s, transform .3s var(--ease); }
}

/* ---------- Chibi ---------- */
.chibi { pointer-events: none; }
.chibi img { width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; transform-origin: 50% 100%; }
.chibi.pop img { animation: chibi-pop .5s var(--ease); }
@keyframes chibi-pop {
  0% { transform: scale(1, 1); }
  28% { transform: scale(1.05, .94); }
  58% { transform: scale(.97, 1.04) translateY(-3%); }
  100% { transform: scale(1, 1); }
}
.chibi-reveal { opacity: 0; transform: translateY(40px); transition: opacity .7s var(--ease), transform .9s var(--ease); }
.chibi-reveal.in { opacity: 1; transform: none; }

/* ---------- Engrenages ---------- */
.gears { position: absolute; pointer-events: none; overflow: visible; max-width: none; }

/* ---------- 1. Héros épinglé ---------- */
.hero { position: relative; height: 320vh; background: var(--bg); }
.hero-stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  display: grid; grid-template-rows: auto 1fr; justify-items: center;
  padding-top: calc(var(--nav-h) + clamp(1.5rem, 6vh, 4.5rem));
}
.hero-stage { --chibi-h: min(58svh, 640px); }
.gears-hero { left: 50%; top: 66%; width: min(150vh, 1500px); transform: translate(-50%, -50%); }

.hero-copy, .hero-stats { grid-area: 1 / 1; width: min(100%, 60rem); padding-inline: var(--gutter); text-align: center; position: relative; z-index: 2; }
.hero-name { font-weight: 600; font-size: clamp(1.1rem, 2vw, 1.5rem); color: var(--ink-2); letter-spacing: -.01em; }
.hero h1 {
  margin-top: .4rem; font-weight: 700; font-size: clamp(2.7rem, 8vw, 6.6rem); line-height: 1; letter-spacing: -.045em;
  text-wrap: balance;
  background: linear-gradient(180deg, var(--grad-1) 40%, var(--grad-2)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { margin: 1.1rem auto 0; max-width: 40ch; font-size: clamp(1.1rem, 1.7vw, 1.35rem); color: var(--ink-2); text-wrap: balance; }

.big-num {
  font-weight: 750; font-stretch: 108%; font-size: clamp(5rem, 17vw, 12.5rem); line-height: .9; letter-spacing: -.055em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, var(--grad-1) 35%, var(--grad-3)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.big-unit { margin-left: .06em; }
.big-label { margin-top: .4rem; font-size: clamp(1.3rem, 2.6vw, 2rem); font-weight: 600; letter-spacing: -.02em; }
.live { display: inline-flex; align-items: center; gap: .5rem; margin-top: .9rem; font-size: .92rem; color: var(--ink-2); }
.live-dot { flex: none; width: .55rem; height: .55rem; border-radius: 50%; background: var(--live); animation: live 2.2s ease-out infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(255, 59, 48, .5); } 70%, 100% { box-shadow: 0 0 0 .5rem rgba(255, 59, 48, 0); } }

.specs {
  position: absolute; z-index: 2; left: 50%; bottom: 20svh; transform: translateX(-50%);
  width: min(64rem, 100% - 2 * var(--gutter)); display: flex; justify-content: space-between; gap: 1rem;
}
.specs div { display: flex; flex-direction: column-reverse; gap: .2rem; max-width: 13rem; }
.specs div:last-child { text-align: right; }
.specs dd { font-weight: 700; font-size: clamp(2rem, 4.2vw, 3.6rem); line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.specs dt { color: var(--ink-2); font-size: 1.05rem; }

.chibi-hero {
  grid-row: 2; align-self: end; position: relative; z-index: 1;
  height: var(--chibi-h); aspect-ratio: 716 / 900; margin-bottom: -1px;
}

/* Phases du héros (pilotées par data-at, posé par le script) */
.hero [data-phase] { transition: opacity .6s var(--ease), transform .9s var(--ease), visibility 0s .9s; }
.hero-copy { opacity: 0; transform: translateY(-30px) scale(.97); visibility: hidden; }
.hero-stats { opacity: 0; transform: translateY(40px) scale(.96); visibility: hidden; }
.specs { opacity: 0; visibility: hidden; }
.specs div:first-child { transform: translateX(-30px); transition: transform .9s var(--ease); }
.specs div:last-child { transform: translateX(30px); transition: transform .9s var(--ease); }
.hero[data-at="1"] .hero-copy,
.hero[data-at="2"] .hero-stats, .hero[data-at="3"] .hero-stats,
.hero[data-at="3"] .specs { opacity: 1; transform: none; visibility: visible; transition: opacity .6s var(--ease), transform .9s var(--ease), visibility 0s; }
.hero[data-at="3"] .specs { transform: translateX(-50%); }
.hero[data-at="3"] .specs div { transform: none; }

@media (max-width: 52rem) {
  .hero { height: 280vh; }
  .hero-stage { --chibi-h: min(44svh, 420px); }
  .gears-hero { width: 230vw; top: 68%; }
  .specs { bottom: auto; top: calc(var(--nav-h) + clamp(1.5rem, 6vh, 4.5rem) + clamp(5rem, 17vw, 12.5rem) * .9 + 5.6rem); }
  .specs dd { font-size: 2rem; }
  .specs dt { font-size: .92rem; }
}

/* ---------- 2. Texte qui s'éclaire ---------- */
.statement { padding-block: clamp(6rem, 16vw, 12rem); }
.statement-grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 56rem) { .statement-grid { grid-template-columns: 1fr 17rem; gap: 2.5rem 4rem; } }
.statement-text { font-weight: 650; font-size: clamp(1.9rem, 4.1vw, 3.5rem); line-height: 1.12; letter-spacing: -.035em; }
[data-words] .w { opacity: var(--o, .16); transition: opacity .25s linear; }
.chibi-side { height: clamp(260px, 52vh, 520px); aspect-ratio: 716 / 900; justify-self: center; }

/* ---------- 3. Réseaux (scène sombre) ---------- */
.dark { background: var(--night); color: #f5f5f7; }
.reseaux { position: relative; overflow: hidden; padding-block: clamp(6rem, 14vw, 11rem) clamp(13rem, 24vw, 19rem); text-align: center; }
.reseaux .section-sub { color: var(--night-ink-2); }
.gears-dark { right: -22vw; top: -26vw; width: max(50vw, 480px); }
.reseaux h2, .reseaux .section-sub { position: relative; z-index: 1; }
.networks {
  margin: clamp(3rem, 6vw, 4.5rem) auto 0; display: grid; gap: 1rem; text-align: left; position: relative; z-index: 1;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 60rem) { .networks { grid-template-columns: repeat(3, 1fr); } }
.net-main { grid-column: span 2; }
@media (min-width: 60rem) { .net-main { grid-row: span 2; } }
@media (max-width: 59.99rem) { .networks > .net:last-child:nth-child(even) { grid-column: span 2; } }
/* Tuiles aux couleurs de chaque plateforme (simples dégradés de couleur, pas de logos dessinés) */
.net { --g1: rgba(255, 255, 255, .14); --g2: rgba(255, 255, 255, .06); --pill: rgba(255, 255, 255, .12); --edge: rgba(255, 255, 255, .1); }
.net[data-net="youtube"]   { --g1: rgba(255, 0, 51, .62);   --g2: rgba(255, 92, 60, .28);   --pill: rgba(255, 0, 51, .32);   --edge: rgba(255, 60, 80, .35); }
.net[data-net="tiktok"]    { --g1: rgba(254, 44, 85, .5);   --g2: rgba(37, 244, 238, .38);  --pill: rgba(254, 44, 85, .3);   --edge: rgba(37, 244, 238, .3); }
.net[data-net="instagram"] { --g1: rgba(129, 52, 175, .6);  --g2: rgba(245, 133, 41, .5);   --pill: rgba(221, 42, 123, .34); --edge: rgba(221, 42, 123, .35); }
.net[data-net="x"]         { --g1: rgba(255, 255, 255, .2); --g2: rgba(150, 150, 160, .16); --pill: rgba(255, 255, 255, .14); --edge: rgba(255, 255, 255, .2); }
.net[data-net="twitch"]    { --g1: rgba(145, 70, 255, .62); --g2: rgba(100, 65, 165, .32);  --pill: rgba(145, 70, 255, .34); --edge: rgba(145, 70, 255, .4); }
.net[data-net="linkedin"]  { --g1: rgba(10, 102, 194, .7);  --g2: rgba(112, 181, 249, .26); --pill: rgba(10, 102, 194, .4);  --edge: rgba(70, 150, 230, .4); }
.net a {
  position: relative; display: grid; height: 100%; min-height: 13rem; padding: 1.75rem; border-radius: var(--radius-lg);
  text-decoration: none; align-content: start; grid-template-rows: auto 1fr auto auto; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(110% 85% at 100% 0%, var(--g1), transparent 62%),
    radial-gradient(90% 80% at 0% 100%, var(--g2), transparent 66%),
    var(--night-card);
  box-shadow: inset 0 0 0 1px var(--edge);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.net a::after { /* reflet qui suit le survol */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .45s var(--ease);
  background: radial-gradient(80% 70% at 100% 0%, var(--g1), transparent 70%);
}
.net a:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--edge), 0 24px 60px -24px var(--g1); }
.net a:hover::after { opacity: .8; }
.net-name {
  justify-self: start; display: inline-flex; align-items: center; gap: .7rem;
  font-weight: 650; font-size: 1.1rem; color: #fff; letter-spacing: -.01em;
}
.net-icon { width: 2.4rem; height: 2.4rem; object-fit: contain; flex: none; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .35)); }
.net[data-net="x"] .net-icon { border-radius: 22%; box-shadow: 0 0 0 1px rgba(255, 255, 255, .18); }
.net-main .net-icon { width: 3.2rem; height: 3.2rem; }
@media (prefers-reduced-motion: reduce) { .net a:hover { transform: none; } }
.net-num {
  align-self: end; margin-top: 2rem; font-weight: 750; font-stretch: 106%; font-size: clamp(3rem, 5vw, 4rem); line-height: 1; letter-spacing: -.045em;
  background: linear-gradient(180deg, #fff 35%, #9a9aa0); -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}
.net-label { margin-top: .35rem; font-size: 1.05rem; }
.net-main a { padding: clamp(1.75rem, 3vw, 2.5rem); }
.net-main .net-name { font-size: 1.35rem; }
.net-main .net-num { font-size: clamp(3rem, 5.6vw, 5.2rem); }
.net-main .net-label { font-size: 1.3rem; }
.net[data-count=""] .net-num { font-size: 1.35rem; font-weight: 600; letter-spacing: -.01em; background: none; color: var(--accent-hi); -webkit-text-fill-color: currentColor; }
.net[data-count=""] .net-label { display: none; }
@media (max-width: 40rem) { .net a { min-height: 11rem; padding: 1.35rem; } .net-num { font-size: 2.4rem; } .net-name { font-size: 1rem; gap: .55rem; } .net-icon { width: 2rem; height: 2rem; } .net-main .net-icon { width: 2.6rem; height: 2.6rem; } }
.net-handle { margin-top: 1.25rem; font-size: .92rem; color: rgba(245, 245, 247, .72); }
.chibi-net { position: absolute; z-index: 2; right: max(2vw, calc((100vw - var(--max)) / 2 - 4rem)); bottom: -2.5rem; height: clamp(200px, 22vw, 290px); aspect-ratio: 716 / 900; }
@media (max-width: 44rem) { .chibi-net { right: 50%; transform: translateX(50%); } .chibi-net.in { transform: translateX(50%); } }

[data-reveal] > * { opacity: 0; transform: translateY(36px); transition: opacity .7s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
[data-reveal].in > * { opacity: 1; transform: none; }

/* ---------- 4. Vidéos : rail horizontal ---------- */
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.rail { --pad: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); }
.rail-track {
  display: flex; gap: 1.1rem; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  padding: .5rem var(--pad) 1.5rem; scroll-padding-inline: var(--pad); scrollbar-width: none;
}
.rail-track::-webkit-scrollbar { display: none; }
.rail-track:focus-visible { outline-offset: -3px; }
.card { flex: none; width: clamp(17rem, 31vw, 25rem); scroll-snap-align: start; }
.card a { display: flex; flex-direction: column; height: 100%; background: var(--surface); border-radius: var(--radius); overflow: hidden; text-decoration: none; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.card a:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -18px var(--shadow); }
.thumb { position: relative; aspect-ratio: 16 / 9; background: var(--thumb); overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.duration { position: absolute; right: .6rem; bottom: .6rem; padding: .15rem .45rem; border-radius: 6px; background: rgba(0, 0, 0, .72); color: #fff; font-size: .78rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.card-body { padding: 1.15rem 1.35rem 1.4rem; display: grid; gap: .5rem; }
.card-title { font-size: 1.12rem; font-weight: 650; line-height: 1.28; letter-spacing: -.015em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { color: var(--ink-2); font-size: .92rem; }
.card-new .card-meta::before { content: "Nouveau"; color: var(--accent); font-weight: 600; margin-right: .5rem; }
.rail-controls { display: flex; justify-content: flex-end; gap: .75rem; }
.rail-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--btn); color: var(--ink); cursor: pointer; display: grid; place-items: center; transition: background .2s, opacity .2s; }
.rail-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rail-btn:hover { background: var(--btn-hi); }
.rail-btn:disabled { opacity: .35; cursor: default; }
.videos-fallback { display: grid; gap: 1rem; justify-items: start; color: var(--ink-2); font-size: 1.15rem; }

/* ---------- 5. Partenaires ---------- */
.partners { text-align: center; }
.logos { margin-top: clamp(3rem, 6vw, 4.5rem); display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 40rem) { .logos { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 60rem) { .logos { grid-template-columns: repeat(4, 1fr); } }
.logo { aspect-ratio: 3 / 2; display: grid; place-items: center; background: var(--bg-alt); border-radius: var(--radius); padding: 1.5rem; }
.logo img { max-height: 3.2rem; width: auto; max-width: 80%; filter: grayscale(1); opacity: .7; transition: filter .3s, opacity .3s; }
.logo:hover img { filter: none; opacity: 1; }
.logo-todo { color: var(--ink-2); border: 2px dashed var(--line); background: none; }

/* ---------- 6. Distinctions (mosaïque) ---------- */
.awards { margin-top: clamp(3rem, 6vw, 4.5rem); display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 40rem) and (max-width: 59.99rem) {
  .awards { grid-template-columns: 1fr 1fr; }
  .award-main, .award-photo, .award-wide { grid-column: span 2; }
}
@media (min-width: 60rem) {
  .awards { grid-template-columns: 5fr 4fr 4fr; grid-template-areas: "photo main main" "photo ndr troyen" "wide wide wide"; }
  .award-photo { grid-area: photo; }
  .award-main { grid-area: main; }
  .award-ndr { grid-area: ndr; }
  .award-troyen { grid-area: troyen; }
  .award-wide { grid-area: wide; }
}
@media (min-width: 40rem) {
  .award-wide { grid-template-columns: auto 1fr; align-items: center; column-gap: 2rem; }
  .award-wide .award-note { max-width: 52ch; }
}
.award {
  position: relative; display: grid; gap: 1.25rem; align-content: start; overflow: hidden;
  background: var(--surface); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.25rem);
}
.award-medal { position: relative; width: 5.5rem; aspect-ratio: 1; display: grid; place-items: center; }
.medal { position: absolute; inset: 0; width: 100%; height: 100%; }
.medal-hole { fill: var(--surface); }
.medal-year { position: relative; font-weight: 750; font-size: .95rem; letter-spacing: -.02em; color: var(--ink); }
.award-status { color: var(--accent); font-weight: 600; font-size: 1rem; }
.award-title { margin-top: .3rem; font-weight: 700; font-size: clamp(1.35rem, 2vw, 1.7rem); line-height: 1.1; letter-spacing: -.03em; text-wrap: balance; }
.award-note { margin-top: .55rem; color: var(--ink-2); }
.award .stretched { text-decoration: none; color: inherit; }
.award .stretched::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.award .stretched:focus-visible { outline: none; }
.award:has(.stretched:focus-visible) { outline: 3px solid var(--accent); outline-offset: 3px; }
.award:has(.stretched) { transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.award:has(.stretched):hover { transform: translateY(-4px); box-shadow: 0 18px 40px -18px var(--shadow); }
.award:has(.stretched):hover .award-title { color: var(--accent); }
.award-more { margin-top: .8rem; color: var(--accent); font-weight: 500; }
.award-more::after { content: ""; display: inline-block; width: .42em; height: .42em; margin-left: .35em; border: solid currentColor; border-width: 2px 2px 0 0; transform: translateY(-.08em) rotate(45deg); }
.award-credit { margin-top: .6rem; font-size: .8rem; color: var(--ink-2); opacity: .8; }

.award-main { align-items: center; align-content: center; min-height: 17rem; }
@media (min-width: 48rem) { .award-main { grid-template-columns: auto 1fr 11rem; gap: 2rem; } }
.award-main .award-medal { width: clamp(7rem, 11vw, 9rem); }
.award-main .medal-year { font-size: clamp(1.15rem, 1.7vw, 1.4rem); }
.award-main .award-title { font-size: clamp(1.7rem, 2.7vw, 2.3rem); }
.chibi-award { height: 13rem; aspect-ratio: 716 / 900; justify-self: end; align-self: end; margin-bottom: calc(-1 * clamp(1.5rem, 3vw, 2.25rem)); }
@media (max-width: 48rem) { .chibi-award { position: absolute; right: .25rem; bottom: 0; height: 8.5rem; margin: 0; } .award-main .award-body { padding-right: 5.5rem; } }

.award-photo { padding: 0; display: flex; }
.award-photo a { flex: 1; display: flex; flex-direction: column; text-decoration: none; }
.award-img { width: 100%; height: auto; aspect-ratio: 1000 / 1215; flex: none; }
.award-photo .award-body { padding: clamp(1.25rem, 2.5vw, 1.75rem) clamp(1.5rem, 3vw, 2.25rem) clamp(1.5rem, 3vw, 2.25rem); }
.award-photo a:hover .award-title { color: var(--accent); }

.press-list { margin-top: 2rem; }
.press-item { display: grid; grid-template-columns: 5rem 1fr; gap: 1rem; padding-block: 1.4rem; border-bottom: 1px solid var(--line); }
.press-date { font-weight: 700; color: var(--ink-2); }
.press-title { font-weight: 650; font-size: 1.2rem; }
.press-title a { text-decoration: none; }
.press-title a:hover { color: var(--accent); }
.press-source { color: var(--ink-2); margin-top: .2rem; }

/* ---------- 7. Contact ---------- */
.contact-grid { display: grid; gap: 3rem; }
@media (min-width: 60rem) { .contact-grid { grid-template-columns: 5fr 7fr; gap: 4.5rem; align-items: start; } }
.contact-intro p { margin-top: 1.25rem; font-size: 1.2rem; color: var(--ink-2); max-width: 32ch; }
.chibi-contact { margin-top: 2rem; height: clamp(220px, 30vw, 340px); aspect-ratio: 716 / 900; }
@media (max-width: 60rem) { .chibi-contact { display: none; } }

.form { display: grid; gap: 1.1rem; background: var(--bg-alt); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3.5vw, 2.5rem); }
.form-row { display: grid; gap: 1.1rem; }
@media (min-width: 40rem) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .45rem; }
.field label { font-weight: 600; font-size: .95rem; }
.opt { font-weight: 400; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: 12px; padding: .85rem 1rem; min-height: 3.25rem;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 9rem; }
.field select { appearance: none; padding-right: 2.6rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%236e6e73' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9rem center; background-size: 1.1rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(47, 91, 255, .18); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: .3rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3.1rem; padding: .8rem 1.6rem; border: 0; border-radius: 980px; background: var(--btn-accent, var(--accent)); color: #fff; font: inherit; font-weight: 600; cursor: pointer; transition: background .2s; }
.btn:hover { background: var(--accent-press); }
.btn[disabled] { opacity: .6; cursor: progress; }
.form-status { font-weight: 600; }
.form-status.is-ok { color: var(--ok); }
.form-status.is-err { color: var(--err); }
.form-note { font-size: .85rem; color: var(--ink-2); }

/* ---------- Pied de page ---------- */
.foot { background: var(--bg-alt); color: var(--ink-2); font-size: .85rem; }
.foot-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem; padding-block: 1.6rem; border-top: 1px solid var(--line); }
.foot nav { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- Page texte (mentions légales) ---------- */
.legal { max-width: 46rem; padding-top: calc(var(--nav-h) + 4rem); }
.legal h1 { font-weight: 700; font-size: clamp(2.3rem, 5vw, 3.6rem); line-height: 1.04; letter-spacing: -.035em; margin-bottom: 2.5rem; }
.legal h2 { font-size: 1.35rem; letter-spacing: -.02em; margin: 2.5rem 0 .75rem; }
.legal p + p { margin-top: .6rem; }
.legal .back { margin-top: 2rem; }
.todo { background: #fff3c4; padding: 0 .25em; border-radius: 3px; }

/* ---------- Mouvement réduit : tout est affiché, rien ne bouge ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .hero { height: auto; }
  .hero-stage { position: relative; height: auto; min-height: 100svh; grid-template-rows: auto auto auto auto; row-gap: 2.5rem; padding-bottom: 0; }
  .hero-copy, .hero-stats, .specs, .hero [data-phase] { opacity: 1 !important; visibility: visible !important; transform: none !important; }
  .hero-stats { grid-area: 2 / 1; }
  .specs { position: static; grid-row: 3; width: min(40rem, 100% - 2 * var(--gutter)); }
  .chibi-hero { grid-row: 4; }
  [data-words] .w { opacity: 1; }
  [data-reveal] > *, .chibi-reveal { opacity: 1; transform: none; }
}
@media (max-width: 44rem) { .nav-links-static { position: static; flex-direction: row; gap: 1.25rem; padding: 0; background: none; border: 0; font-size: .9rem; font-weight: 400; visibility: visible; opacity: 1; transform: none; -webkit-backdrop-filter: none; backdrop-filter: none; } }

/* Compteur exact : petit mouvement à chaque nouvel abonné */
.net-num.tick { animation: tick .6s var(--ease); }
@keyframes tick { 0% { opacity: .35; transform: translateY(.12em); } 100% { opacity: 1; transform: none; } }

/* Leitmotiv : une seule ligne sur toute la largeur, sous le texte et le chibi */
.statement-motto {
  grid-column: 1 / -1; margin-top: 0;
  font-weight: 650; font-size: clamp(1.9rem, 4.1vw, 3.5rem); line-height: 1.1; letter-spacing: -.035em;
}
@media (min-width: 56rem) {
  .statement-motto { white-space: nowrap; font-size: min(4.4rem, calc((min(100vw, var(--max)) - 2 * var(--gutter)) / var(--motto-ratio, 19.4))); }
}

/* ---------- Bandeau « en live » ---------- */
.onair {
  position: fixed; z-index: 49; top: calc(var(--nav-h) + .75rem); left: 0; right: 0; margin-inline: auto; width: fit-content;
  display: flex; align-items: center; max-width: calc(100vw - 1.5rem);
  background: rgba(29, 29, 31, .88); color: #fff; border-radius: 999px;
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 12px 40px -12px rgba(0, 0, 0, .45);
  animation: onair-in .6s var(--ease);
}
@keyframes onair-in { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
.onair-link { display: flex; align-items: center; gap: .6rem; min-width: 0; padding: .6rem .5rem .6rem 1.1rem; color: inherit; text-decoration: none; font-size: .92rem; }
.onair-dot { flex: none; width: .6rem; height: .6rem; border-radius: 50%; background: var(--live); animation: live 2.2s ease-out infinite; }
.onair[data-kind="upcoming"] .onair-dot { background: var(--accent-hi); animation: none; }
.onair-label { flex: none; font-weight: 700; }
.onair-title { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: rgba(255, 255, 255, .78); max-width: 34ch; }
.onair-cta { flex: none; font-weight: 600; color: var(--accent-hi); }
.onair-link:hover .onair-cta { text-decoration: underline; text-underline-offset: .2em; }
.onair-close { flex: none; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; margin-right: .2rem; border: 0; border-radius: 50%; background: none; color: rgba(255, 255, 255, .7); cursor: pointer; }
.onair-close:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.onair-close svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
@media (max-width: 40rem) { .onair-title { display: none; } }
@media (prefers-reduced-motion: reduce) { .onair { animation: none; } }

/* Choix de langue (FR / EN) dans la barre de navigation */
.nav-links .lang-switch {
  font-weight: 600; font-size: .78rem; letter-spacing: .02em;
  padding: .12rem .45rem; border: 1px solid currentColor; border-radius: 6px; line-height: 1.3; opacity: .85;
}
.nav-links .lang-switch:hover { opacity: 1; }
@media (max-width: 44rem) { .nav-links .lang-switch { align-self: flex-start; margin-top: .5rem; padding: .25rem .6rem; font-size: 1rem; } }
.foot-lang { margin-left: 1rem; }

/* ---------- Shorts : vignettes verticales ---------- */
.shorts-head { margin-top: clamp(3rem, 6vw, 4.5rem); }
.shorts-title { font-weight: 700; font-size: clamp(1.8rem, 3.6vw, 2.8rem); line-height: 1.05; letter-spacing: -.035em; }
.card-short { width: clamp(10.5rem, 17vw, 13.5rem); }
.thumb-short { aspect-ratio: 9 / 16; }
.thumb-short img { object-position: 50% 50%; }
.short-views {
  position: absolute; left: .6rem; bottom: .6rem; padding: .15rem .5rem; border-radius: 6px;
  background: rgba(0, 0, 0, .62); color: #fff; font-size: .8rem; font-weight: 600; font-variant-numeric: tabular-nums;
}
.card-short .card-body { padding: .85rem 1rem 1.05rem; }
.card-short .card-title { font-size: .98rem; -webkit-line-clamp: 2; }

/* Espacements resserrés autour des vidéos et des Shorts */
#videos { padding-top: clamp(3.5rem, 7vw, 5.5rem); padding-bottom: clamp(2.5rem, 5vw, 3.5rem); }

/* ---------- Conférences, salons, podcasts ---------- */
/* Tant que la section partenaires est masquée, vidéos et distinctions se suivent sur le même fond gris */
.partners.a-completer + #distinctions { padding-top: clamp(3rem, 6vw, 4.5rem); }

/* Page à part (conferences.html, non liée depuis l'accueil) */
.page-solo { padding-top: var(--nav-h); min-height: calc(100svh - 4rem); }
#conferences { padding-top: clamp(3.5rem, 7vw, 5.5rem); }
.talks { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 48rem) { .talks { grid-template-columns: 1fr 1fr; gap: 1.25rem; } }
.talk-card {
  position: relative; display: flex; flex-direction: column; height: 100%; overflow: hidden;
  background: var(--bg-alt); border-radius: var(--radius-lg); color: inherit; text-decoration: none;
}
@media (prefers-color-scheme: dark) { .talk-card { background: var(--surface); } }
a.talk-card { transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
a.talk-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -18px var(--shadow); }
a.talk-card:hover .talk-title { color: var(--accent); }
a.talk-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.talk-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--thumb); }
.talk-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Affiche ou vidéo verticale : image entière, posée sur une copie floutée d'elle-même */
.talk-media-fit .talk-fg { object-fit: contain; }
.talk-backdrop { filter: blur(26px) saturate(1.25); transform: scale(1.3); opacity: .9; }
.talk-play {
  position: absolute; left: 50%; top: 50%; width: 4rem; height: 4rem; margin: -2rem 0 0 -2rem; border-radius: 50%;
  display: grid; place-items: center; background: rgba(0, 0, 0, .55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: transform .4s var(--ease), background .3s;
}
.talk-play svg { width: 1.6rem; height: 1.6rem; fill: #fff; margin-left: .15rem; }
a.talk-card:hover .talk-play { transform: scale(1.08); background: var(--btn-accent, var(--accent)); }
.talk-body { padding: 1.35rem 1.6rem 1.6rem; display: grid; gap: .35rem; }
.talk-kind { color: var(--accent); font-weight: 650; font-size: .92rem; }
.talk-title { font-size: clamp(1.2rem, 1.9vw, 1.45rem); font-weight: 700; line-height: 1.2; letter-spacing: -.02em; transition: color .2s; }
.talk-meta { color: var(--ink-2); }
@media (prefers-reduced-motion: reduce) { a.talk-card, a.talk-card:hover, a.talk-card:hover .talk-play { transition: none; transform: none; } }

/* ---------- Chibis qui dépassent derrière les rangées de vidéos ---------- */
.rail { position: relative; z-index: 1; }
.section-head { position: relative; }
.chibi-peek {
  position: relative; align-self: flex-end; margin-left: auto; flex: none;
  width: 9rem; height: 6.6rem; overflow: hidden;
  margin-bottom: calc(-1 * clamp(2rem, 4vw, 3rem) - .5rem);
}
.chibi-peek img { position: absolute; left: 0; top: 0; width: 100%; height: auto; object-fit: fill; transform-origin: 50% 100%; }
.chibi-peek.chibi-reveal { opacity: 1; transform: none; }
.chibi-peek.chibi-reveal img { transform: translateY(105%); transition: transform .9s var(--ease); }
.chibi-peek.chibi-reveal.in img { transform: none; }
.section-head.has-peek { flex-wrap: nowrap; }
.head-text { display: grid; gap: .75rem; justify-items: start; min-width: 0; }
@media (max-width: 48rem) { .chibi-peek { width: 6.2rem; height: 4.6rem; } }
@media (prefers-reduced-motion: reduce) { .chibi-peek.chibi-reveal img { transform: none; } }

/* ---------- Page introuvable ---------- */
.notfound { min-height: 100svh; display: grid; align-items: center; padding: calc(var(--nav-h) + 3rem) 0 4rem; }
.notfound-grid { display: grid; gap: 2rem; align-items: center; justify-items: center; text-align: center; }
@media (min-width: 52rem) { .notfound-grid { grid-template-columns: 18rem 1fr; justify-items: start; text-align: left; gap: 4rem; } }
.notfound h1 { font-weight: 700; font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 1.02; letter-spacing: -.04em; text-wrap: balance; }
.notfound p { margin-top: 1.1rem; font-size: clamp(1.1rem, 1.7vw, 1.3rem); color: var(--ink-2); max-width: 40ch; }
.notfound-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: inherit; gap: 1rem 1.75rem; margin-top: 2rem; }
@media (max-width: 51.99rem) { .notfound-actions { justify-content: center; } }
.notfound .btn { text-decoration: none; }
.notfound-en { margin-top: 2.5rem !important; font-size: .95rem !important; }
.notfound-en a { color: var(--accent); }
.chibi-dizzy { width: min(16rem, 60vw); aspect-ratio: 716 / 900; }
.chibi-dizzy img { animation: dizzy 2.8s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes dizzy { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }

/* ---------- Presse et conférences ---------- */
/* Classements : trois tuiles avec le rang en grand */
.ranks { margin-top: 1.5rem; display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 48rem) { .ranks { grid-template-columns: repeat(3, 1fr); } }
.rank {
  position: relative; display: grid; align-content: start; gap: .5rem;
  background: var(--surface); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.25rem);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.rank-num { font-weight: 800; font-size: clamp(3.4rem, 6vw, 4.6rem); line-height: .95; letter-spacing: -.045em; color: var(--accent); font-variant-numeric: tabular-nums; }
.rank-num sup { font-size: .38em; letter-spacing: 0; vertical-align: top; position: relative; top: .25em; margin-left: .06em; }
.rank-label { font-weight: 650; font-size: 1.15rem; line-height: 1.3; }
.rank-source { color: var(--ink-2); font-size: .95rem; }
.rank .stretched { text-decoration: none; color: inherit; }
.rank .stretched::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.rank .stretched:focus-visible { outline: none; }
.rank:has(.stretched:focus-visible) { outline: 3px solid var(--accent); outline-offset: 3px; }
.rank:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -18px var(--shadow); }
.rank:hover .rank-label { color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .rank, .rank:hover { transition: none; transform: none; } }

.press-head { margin-top: clamp(3.5rem, 7vw, 5rem); font-weight: 700; font-size: clamp(1.8rem, 3.6vw, 2.8rem); line-height: 1.05; letter-spacing: -.035em; scroll-margin-top: calc(var(--nav-h) + 1rem); }
.press-list { margin-top: 1.5rem; border-top: 1px solid var(--line); }
.press-item { align-items: baseline; }
@media (min-width: 48rem) { .press-item { grid-template-columns: 7rem 1fr; } }
.press-title a { background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .3s var(--ease); }
.press-title a:hover { background-size: 100% 1px; }
