/* Portfolio d'Atomique.xyz — /portfolio : gris très sombre, grille fine, grosse typo, une seule couleur vive */
:root {
  --bg: #111111;
  --card: rgba(15, 15, 15, .95);
  --card-hi: rgba(21, 21, 21, .98);
  --line: rgba(255, 255, 255, .06);
  --line-hi: rgba(255, 255, 255, .14);
  --ink: #f9f9f9;
  --ink-2: #8f8e8e;
  --ink-3: #5f5f5f;
  --acc: #ff3d00;
  --acc-2: #ff8a65;
  --acc-rgb: 255, 61, 0;
  --font: "Inter", "Helvetica Neue", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --ease: cubic-bezier(.22, .9, .28, 1);
  --soft: cubic-bezier(.4, 0, .2, 1);
  --pad: clamp(16px, 6vw, 96px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--bg); }
/* pas de fond sur body : il serait peint par-dessus la grille (z-index négatif) */
body { min-height: 100vh; font-family: var(--font); color: var(--ink); line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
svg { width: 1em; height: 1em; flex-shrink: 0; }
::selection { background: rgba(var(--acc-rgb), .35); }
section[id], article[id] { scroll-margin-top: 96px; }

/* ---------- Fond : grille de 30 px (une ligne plus marquée tous les 150 px) et deux lueurs qui dérivent ---------- */
.grid-bg { position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px) 0 0 / 150px 150px,
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px) 0 0 / 150px 150px,
    linear-gradient(rgba(255, 255, 255, .02) 1px, transparent 1px) 0 0 / 30px 30px,
    linear-gradient(90deg, rgba(255, 255, 255, .02) 1px, transparent 1px) 0 0 / 30px 30px; }
.glow { position: absolute; border-radius: 50%; filter: blur(90px); }
.g1 { width: 48vw; height: 48vw; left: -14vw; top: -12vw; background: radial-gradient(circle, rgba(var(--acc-rgb), .13), transparent 65%); animation: drift 20s ease-in-out infinite alternate; }
.g2 { width: 42vw; height: 42vw; right: -12vw; bottom: -14vw; background: radial-gradient(circle, rgba(255, 255, 255, .05), transparent 65%); animation: drift 26s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(7vw, 6vh) scale(1.12); } }
/* la grille s'allume en orange autour de la souris */
.spot { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .5s;
  background:
    linear-gradient(rgba(var(--acc-rgb), .42) 1px, transparent 1px) 0 0 / 30px 30px,
    linear-gradient(90deg, rgba(var(--acc-rgb), .42) 1px, transparent 1px) 0 0 / 30px 30px;
  -webkit-mask-image: radial-gradient(200px circle at var(--mx, -500px) var(--my, -500px), #000 0%, rgba(0, 0, 0, .35) 45%, transparent 75%);
  mask-image: radial-gradient(200px circle at var(--mx, -500px) var(--my, -500px), #000 0%, rgba(0, 0, 0, .35) 45%, transparent 75%); }
body.pointer .spot { opacity: 1; }
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 40; pointer-events: none; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--acc), var(--acc-2)); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); box-shadow: 0 0 12px rgba(var(--acc-rgb), .6); }

/* ---------- Barre du haut (glisse depuis le haut à l'arrivée) ---------- */
.top { position: fixed; top: 0; left: 0; right: 0; z-index: 30; display: flex; align-items: center; gap: 24px; padding: 24px var(--pad); border-bottom: 1px solid transparent; animation: navIn 1s var(--ease) both; transition: padding .35s var(--ease), background .35s, border-color .35s; }
@keyframes navIn { from { transform: translateY(-100%); opacity: 0; } }
.top.scrolled { padding-top: 14px; padding-bottom: 14px; background: rgba(17, 17, 17, .95); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); border-bottom-color: rgba(255, 255, 255, .04); }
.live { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 13px; border-radius: 999px; font-size: 12px; font-weight: 500; color: var(--acc); background: rgba(var(--acc-rgb), .1); border: 1px solid rgba(var(--acc-rgb), .22); white-space: nowrap; transition: background .3s, transform .3s var(--ease); }
.live:hover { background: rgba(var(--acc-rgb), .16); transform: translateY(-1px); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--acc); animation: ping 2.2s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(var(--acc-rgb), .55); } 70%, 100% { box-shadow: 0 0 0 7px rgba(var(--acc-rgb), 0); } }
.groups { display: flex; align-items: center; gap: 48px; margin-left: auto; }
.grp { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--ink-3); }
.grp i { font-style: normal; color: rgba(127, 126, 126, .5); }
.grp-k { color: var(--ink); font-weight: 600; }
.grp a { position: relative; padding: 4px 0; color: var(--ink-2); transition: color .3s; }
.grp a:hover, .grp a.on { color: var(--acc); }
.grp a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px; background: var(--acc); transform: scaleX(0); transition: transform .4s var(--soft); }
.grp a:hover::after, .grp a.on::after { transform: scaleX(1); }
.grp a.on { font-weight: 500; }
.talk { display: inline-flex; align-items: center; height: 44px; padding: 0 26px; border-radius: 999px; background: var(--ink); color: #000; border: 1px solid var(--ink); font-size: 14.5px; font-weight: 500; white-space: nowrap; transition: transform .3s var(--ease), background .3s, color .3s; }
.talk:hover { background: var(--bg); color: var(--acc); transform: scale(1.05); }
.burger { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line-hi); background: rgba(255, 255, 255, .04); color: var(--ink); font-size: 20px; align-items: center; justify-content: center; cursor: pointer; }

/* ---------- Accueil ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: 120px calc(var(--pad) + 3vw) 23vh; }
.services { position: absolute; right: calc(var(--pad) + 6vw); top: 30%; display: grid; justify-items: end; gap: 22px; }
.services a { position: relative; font-size: 17px; color: var(--ink-2); padding-bottom: 3px; animation: fadeUp .7s var(--soft) both; transition: color .3s; }
.services a:nth-child(1) { animation-delay: .5s; }
.services a:nth-child(2) { animation-delay: .7s; }
.services a:nth-child(3) { animation-delay: .9s; }
.services a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 2px; background: var(--acc); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--soft); }
.services a:hover { color: var(--acc); }
.services a:hover::after { transform: scaleX(1); transform-origin: left; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } }
.hero-t { will-change: transform, opacity; }
.hero h1 { font-size: clamp(54px, 8.2vw, 132px); font-weight: 900; line-height: 1; letter-spacing: -.01em; text-transform: uppercase; }
.ln { display: block; overflow: hidden; padding: .02em 0 .06em; margin-bottom: -.06em; }
.ln > span { display: block; }
.ch { display: inline-block; transform: translateY(110%) rotate(8deg); transform-origin: 0 100%; animation: chIn .9s var(--ease) forwards; animation-delay: calc(.15s + var(--d) * 45ms); transition: color .25s, transform .35s var(--ease); }
@keyframes chIn { to { transform: none; } }
.ch.ok { animation: none; transform: none; }
.ch.ok:hover { color: var(--acc); transform: translateY(-.08em); }
.role { display: flex; align-items: center; min-height: 1.25em; margin-top: 14px; font-size: clamp(28px, 4.3vw, 66px); font-weight: 800; line-height: 1.2; color: var(--acc); text-transform: uppercase; animation: fadeUp .9s var(--soft) .7s both; }
.caret { display: inline-block; width: .07em; min-width: 3px; height: .9em; margin-left: .1em; border-radius: 2px; background: var(--ink-2); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.scroll { position: absolute; right: calc(var(--pad) + 6vw); bottom: 7vh; width: 2px; height: 64px; border-radius: 2px; background: rgba(255, 255, 255, .1); overflow: hidden; animation: fadeUp .9s var(--soft) 1.2s both; }
.scroll span { position: absolute; left: 0; top: 0; width: 100%; height: 40%; border-radius: 2px; background: var(--ink); animation: drip 2s var(--ease) infinite; }
@keyframes drip { from { transform: translateY(-100%); } to { transform: translateY(260%); } }

/* ---------- Apparitions au défilement : animations (pas de transition) pour laisser le survol libre ---------- */
.rv { opacity: 0; }
.rv.in { opacity: 1; animation: up .95s var(--ease) backwards; }
@keyframes up { from { opacity: 0; transform: translateY(46px); } }

/* ---------- Titres de section ---------- */
.ttl { width: fit-content; margin: 0 auto; font-size: clamp(42px, 5.4vw, 72px); font-weight: 800; line-height: 1.05; letter-spacing: -.01em; text-align: center; }
.ttl::after { content: ""; display: block; width: 75%; height: 4px; margin: 14px auto 0; border-radius: 4px; background: var(--acc); transform: scaleX(0); transition: transform 1s var(--ease) .35s; }
.ttl.in::after { transform: scaleX(1); }

/* ---------- À propos ---------- */
.about { padding: 130px var(--pad) 60px; text-align: center; }
.about-t { max-width: 780px; margin: 40px auto 0; display: grid; gap: 2px; }
.about-t.in { animation: none; }
.about-t p { color: var(--ink-2); font-size: clamp(15.5px, 1.25vw, 18px); line-height: 1.85; text-wrap: pretty; }
.about-t.in p { animation: fromLeft .8s var(--soft) backwards; }
.about-t.in p:nth-child(2) { animation-delay: .18s; }
.about-t.in p:nth-child(3) { animation-delay: .36s; }
@keyframes fromLeft { from { opacity: 0; transform: translateX(-24px); } }
.stats { display: flex; justify-content: center; flex-wrap: wrap; gap: 0; margin-top: 64px; }
.stats.in { animation: none; }
.st { position: relative; display: grid; justify-items: center; gap: 10px; padding: 0 clamp(26px, 4vw, 60px); }
.st + .st::before { content: ""; position: absolute; left: 0; top: 50%; width: 2px; height: 52px; border-radius: 2px; background: rgba(var(--acc-rgb), .22); transform: translateY(-60%); }
.stats.in .st { animation: pop .6s var(--ease) backwards; }
.stats.in .st:nth-child(2) { animation-delay: .12s; }
.stats.in .st:nth-child(3) { animation-delay: .24s; }
@keyframes pop { from { opacity: 0; transform: scale(.7); } }
.st b { font-size: clamp(40px, 4.2vw, 58px); font-weight: 800; line-height: 1.05; font-variant-numeric: tabular-nums; background: linear-gradient(45deg, var(--acc), var(--acc-2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; transition: transform .3s var(--ease), filter .3s; cursor: default; }
.st b:hover { transform: scale(1.06); filter: drop-shadow(0 0 18px rgba(var(--acc-rgb), .35)); }
.st span { font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }

/* bande d'outils qui défile ; au survol, le logo prend sa couleur et son nom apparaît */
.tools { margin: 78px calc(var(--pad) * -1) 0; overflow: hidden; padding: 26px 0 54px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); }
.tools-t { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.tools:hover .tools-t { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.tool { position: relative; display: grid; place-items: center; margin-right: 84px; transition: transform .35s var(--ease); }
.tool i { display: block; width: 50px; height: 50px; background: #6f6f6f; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; transition: background .35s, filter .35s; }
.tool em { position: absolute; top: calc(100% + 12px); left: 50%; transform: translate(-50%, 8px); padding: 5px 11px; border-radius: 8px; white-space: nowrap; font-style: normal; font-size: 12px; font-weight: 500; letter-spacing: .02em; color: #fff; background: rgba(var(--acc-rgb), .92); box-shadow: 0 6px 18px -4px rgba(var(--acc-rgb), .45); opacity: 0; transition: opacity .35s var(--soft), transform .35s var(--soft); pointer-events: none; }
.tool em::before { content: ""; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; background: inherit; transform: translateX(-50%) rotate(45deg); }
.tool:hover { transform: translateY(-10px) scale(1.12); }
.tool:hover i { background: var(--c); filter: drop-shadow(0 0 14px var(--c)); }
.tool:hover em { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Projets ---------- */
.projects { padding: 90px var(--pad) 110px; }
.projects .ttl { margin-bottom: 72px; }
.proj { position: relative; max-width: 1220px; margin: 0 auto 56px; display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 3.4vw, 48px); align-items: center; padding: 30px; border-radius: 32px; background: var(--card); border: 1px solid rgba(255, 255, 255, .035); transition: transform .5s var(--soft), background .5s, box-shadow .5s, border-color .5s; }
.proj[data-href] { cursor: pointer; }
.proj:hover { transform: translateY(-14px); background: var(--card-hi); border-color: rgba(var(--acc-rgb), .14); box-shadow: 0 30px 60px -15px rgba(0, 0, 0, .55), 0 0 0 1px rgba(var(--acc-rgb), .1), 0 0 80px -30px rgba(var(--acc-rgb), .35); }
.proj-media { position: relative; min-height: 340px; aspect-ratio: 16 / 10.5; border-radius: 22px; overflow: hidden; background: #0c0c0c; border: 1px solid var(--line); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .4); }
.proj-media::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .09) 45%, transparent 60%); transform: translateX(-120%); }
.proj:hover .proj-media::after { transform: translateX(120%); transition: transform 1.1s var(--soft); }
.proj-media.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; filter: brightness(.94) contrast(1.02); transition: transform .8s var(--soft), filter .8s; }
.proj:hover .proj-media.shot img { transform: scale(1.06); filter: brightness(1.02) contrast(1.05); }
.proj-b { display: flex; flex-direction: column; align-items: flex-start; padding: 6px 18px 6px 0; }
.tag { display: inline-flex; height: 32px; align-items: center; padding: 0 16px; border-radius: 999px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--acc); background: rgba(var(--acc-rgb), .1); border: 1px solid rgba(var(--acc-rgb), .22); transition: transform .4s var(--soft), background .4s, box-shadow .4s; }
.proj:hover .tag { transform: translateY(-5px); background: rgba(var(--acc-rgb), .15); box-shadow: 0 10px 20px -10px rgba(var(--acc-rgb), .45); }
.proj h3 { margin: 24px 0 18px; font-size: clamp(30px, 3.3vw, 46px); font-weight: 800; line-height: 1.04; text-transform: uppercase; letter-spacing: -.005em; transition: color .5s var(--soft); }
.proj:hover h3 { color: var(--acc); }
.proj p { color: var(--ink-2); font-size: 15.5px; line-height: 1.75; transition: color .5s var(--soft); }
.proj:hover p { color: rgba(255, 255, 255, .8); }
.proj .stack { margin-top: 16px; font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: var(--ink-3) !important; }
.corner { position: absolute; top: 22px; right: 22px; z-index: 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--acc); background: rgba(var(--acc-rgb), .12); border: 1px solid rgba(var(--acc-rgb), .2); font-size: 17px; opacity: 0; transform: translateY(10px); transition: opacity .4s var(--soft), transform .4s var(--soft), background .3s; }
.proj:hover .corner, .corner:focus-visible { opacity: 1; transform: none; }
.corner:hover { background: rgba(var(--acc-rgb), .22); }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.btn-w, .btn-o { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 22px; border-radius: 999px; font-size: 14px; font-weight: 500; transition: transform .3s var(--ease), background .3s, border-color .3s, color .3s; }
.btn-w { background: var(--ink); color: #000; border: 1px solid var(--ink); }
.btn-w:hover { background: var(--bg); color: var(--acc); transform: scale(1.05); }
.btn-o { border: 1px solid var(--line-hi); color: var(--ink); background: rgba(255, 255, 255, .03); }
.btn-o:hover { transform: translateY(-2px); border-color: rgba(var(--acc-rgb), .45); background: rgba(var(--acc-rgb), .08); color: var(--acc); }
.btn-o svg { font-size: 16px; }

/* maquette Discord */
.proj-media.dc { aspect-ratio: auto; min-height: 340px; }
.dc { display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 26px 24px; background: radial-gradient(120% 90% at 0% 0%, rgba(var(--acc-rgb), .1), transparent 55%), #1e1f22; font-family: "gg sans", var(--font); }
.dc-msg { display: flex; gap: 14px; padding: 14px 16px; border-radius: 14px; background: #2b2d31; border: 1px solid rgba(255, 255, 255, .04); transition: transform .6s var(--ease); }
.proj:hover .dc-msg { transform: translateX(6px); }
.proj:hover .dc-small { transform: translateX(-6px); }
.dc-small { margin-left: 34px; opacity: .88; }
.dc-av { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.dc-main { min-width: 0; flex: 1; }
.dc-name { font-size: 14px; font-weight: 600; color: #f2f3f5; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; line-height: 1.4; }
.dc-app { font-size: 10px; font-weight: 700; padding: 1px 5px; border-radius: 4px; background: #5865f2; color: #fff; }
.dc-time { font-size: 11.5px; font-weight: 400; color: #949ba4; }
.dc-embed { margin-top: 8px; padding: 12px 14px; border-radius: 6px; background: #232428; border-left: 4px solid var(--acc); }
.dc-embed.alt { border-left-color: #23a55a; }
.dc-t { font-size: 14px; font-weight: 700; color: #f2f3f5 !important; }
.dc-d { margin-top: 4px; font-size: 13.5px !important; color: #dbdee1 !important; line-height: 1.5 !important; }

@keyframes bar { from { transform: scaleX(0); } }
.dc-f { margin-top: 8px; font-size: 11.5px !important; color: #949ba4 !important; }

/* maquette navigateur */
.browser { display: flex; flex-direction: column; background: #0c0c0c; }
.br-bar { display: flex; align-items: center; gap: 7px; height: 38px; flex-shrink: 0; padding: 0 14px; background: #1a1a1a; border-bottom: 1px solid var(--line); }
.br-bar i { width: 10px; height: 10px; border-radius: 50%; }
.br-bar i:first-child { background: #ff5f57; } .br-bar i:nth-child(2) { background: #febc2e; } .br-bar i:nth-child(3) { background: #28c840; }
.br-bar span { margin: 0 auto; padding: 3px 14px; border-radius: 7px; background: #111; font-size: 11.5px; color: var(--ink-3); transform: translateX(-24px); }
.browser img { flex: 1; width: 100%; min-height: 0; object-fit: cover; object-position: top; transition: transform .8s var(--soft); }
.proj:hover .browser img { transform: scale(1.05); }

.vid video { width: 100%; height: 100%; object-fit: cover; background: #000; }

/* ---------- Pied de page ---------- */
.foot { position: relative; border-top: 1px solid rgba(255, 255, 255, .04); padding: 64px var(--pad) 30px; background: rgba(15, 15, 15, .95); }
.foot-in { max-width: 1220px; margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.fb-n { font-size: 24px; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; }
.fb-t { margin-top: 10px; font-size: 14px; color: var(--ink-2); max-width: 280px; }
.fb-s { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-top: 18px; border-radius: 12px; color: var(--ink-2); background: rgba(255, 255, 255, .04); border: 1px solid var(--line); font-size: 18px; transition: color .3s, border-color .3s, transform .3s var(--ease), background .3s; }
.fb-s:hover { color: var(--acc); border-color: rgba(var(--acc-rgb), .35); background: rgba(var(--acc-rgb), .08); transform: translateY(-3px); }
.fc { display: grid; align-content: start; gap: 11px; font-size: 14px; }
.fc-k { font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.fc a { display: inline-flex; align-items: center; gap: 8px; width: fit-content; color: var(--ink-2); transition: color .3s, transform .3s var(--ease); }
.fc a:hover { color: var(--acc); transform: translateX(4px); }
.foot-bot { max-width: 1220px; margin: 52px auto 0; padding-top: 24px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-3); }
.dev { display: inline-flex; align-items: center; height: 30px; padding: 0 14px; border-radius: 999px; font-family: var(--mono); font-size: 11.5px; color: var(--acc); background: rgba(var(--acc-rgb), .08); border: 1px solid rgba(var(--acc-rgb), .25); transition: background .3s; }
.dev:hover { background: rgba(var(--acc-rgb), .15); }

/* ---------- Écrans moyens et téléphones ---------- */
@media (max-width: 1080px) {
  .groups { gap: 28px; }
  .grp:first-child { display: none; }
  .proj { grid-template-columns: 1.05fr 1fr; }
}
@media (max-width: 860px) {
  .top { gap: 12px; }
  .burger { display: inline-flex; }
  .talk { margin-left: auto; height: 40px; padding: 0 18px; font-size: 13.5px; }
  .groups { position: absolute; top: calc(100% + 8px); left: 16px; right: 16px; margin: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px; border-radius: 18px; background: rgba(24, 24, 24, .97); border: 1px solid var(--line-hi); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 24px 60px rgba(0, 0, 0, .5); opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .25s, transform .3s var(--ease); }
  .top.open .groups { opacity: 1; transform: none; pointer-events: auto; }
  .grp, .grp:first-child { display: flex; flex-wrap: wrap; padding: 12px 14px; font-size: 14px; }
  .grp + .grp { border-top: 1px solid var(--line); }
  .proj { grid-template-columns: 1fr; padding: 16px; gap: 22px; border-radius: 24px; }
  .proj:hover { transform: translateY(-6px); }
  .proj-media { min-height: 0; }
  .proj-b { padding: 0 6px 10px; }
  .corner { opacity: 1; transform: none; top: 26px; right: 26px; background: rgba(17, 17, 17, .8); }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .fb { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .top { padding: 16px; }
  .top.scrolled { padding: 10px 16px; }
  .live { max-width: 46vw; overflow: hidden; }
  .hero { padding: 110px 20px 21vh; }
  .services { position: static; justify-items: start; margin-bottom: auto; padding-top: 6vh; gap: 14px; }
  .services a { font-size: 15px; }
  .hero h1 { font-size: clamp(44px, 14.5vw, 72px); }
  .role { font-size: clamp(22px, 7.4vw, 34px); }
  .scroll { right: 24px; }
  .about { padding: 96px 16px 40px; }
  .stats { flex-direction: column; gap: 34px; margin-top: 48px; }
  .st + .st::before { display: none; }
  .st { padding: 0; }
  .tools { margin-left: -16px; margin-right: -16px; }
  .tool { margin-right: 56px; }
  .tool i { width: 40px; height: 40px; }
  .projects { padding: 60px 16px 90px; }
  .projects .ttl { margin-bottom: 48px; }
  .dc { padding: 14px; gap: 10px; }
  .dc-small { margin-left: 0; }
  .foot { padding: 52px 16px 26px; }
  .foot-in { grid-template-columns: 1fr; gap: 30px; }
}

/* « réduire les animations » (souvent coché dans Windows) : on garde les apparitions, on retire les grands mouvements continus */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .g1, .g2 { animation: none; }
}
