/* ============================================================
   ALEXANDRE LABSI — Portfolio
   Direction : Apple-grade. Clair, aéré, épuré. Dégradés iridescents,
   typographie XXL, animations au scroll (reveal + parallax).
   Typo : Manrope + JetBrains Mono.
   ============================================================ */

:root {
  --bg:        #ffffff;
  --bg-soft:   #f5f5f7;   /* gris Apple */
  --ink:       #1d1d1f;   /* presque noir */
  --ink-2:     #424245;
  --muted:     #6e6e73;
  --faint:     #86868b;
  --hair:      #d2d2d7;   /* filets */
  --hair-soft: #e8e8ed;

  --accent:    #0a6cff;
  --accent-2:  #5b8cff;

  /* dégradé iridescent signature */
  --iris: linear-gradient(120deg, #6a8cff 0%, #8f6dff 28%, #c46cff 52%, #ff7eb3 74%, #ff9d6c 100%);
  --iris-soft: linear-gradient(130deg, #cdd8ff, #e3d4ff 45%, #ffd9ec 75%, #ffe7d4);

  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --maxw: 1200px;
  --pad: clamp(20px, 5vw, 40px);
  --ease: cubic-bezier(.16,.84,.36,1);
  --ease-out: cubic-bezier(.22,1,.36,1);
  --radius: 22px;
  --radius-lg: 34px;
}

* , *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
::selection { background: #d6e4ff; color: var(--ink); }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0 0 10px 0; z-index: 300; }
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- Typographie ---------- */
h1, h2, h3 { font-weight: 700; letter-spacing: -0.035em; line-height: 1.02; color: var(--ink); }
h2 { font-size: clamp(2.1rem, 5.2vw, 4rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); letter-spacing: -0.02em; }

.eyebrow {
  font-family: var(--mono); font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 1.1rem;
}

.sec-head { max-width: 820px; margin: 0 auto clamp(2.6rem, 6vw, 4.5rem); padding-inline: var(--pad); text-align: center; }
.sec-head .eyebrow { color: var(--faint); }
.sec-sub { margin-top: 1rem; color: var(--muted); font-size: 1.05rem; }

section { position: relative; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-weight: 600; font-size: 1rem; padding: 0.95em 1.7em; border-radius: 100px;
  transition: transform .4s var(--ease), background .3s, color .3s, box-shadow .4s var(--ease);
}
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0,0,0,.22); }
.btn-plain { color: var(--accent); padding-inline: 0.4em; }
.btn-plain span { transition: transform .35s var(--ease); display: inline-block; }
.btn-plain:hover span { transform: translateX(5px); }

/* ============ NAV ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0);
  transition: background .4s var(--ease), border-color .4s, box-shadow .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(255,255,255,0.72);
  backdrop-filter: saturate(1.8) blur(20px);
  -webkit-backdrop-filter: saturate(1.8) blur(20px);
  border-bottom-color: var(--hair-soft);
}
.nav-inner { max-width: var(--maxw); margin-inline: auto; padding: 16px var(--pad); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.logo { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 700; letter-spacing: -0.02em; }
.logo-mark { width: 28px; height: 28px; border-radius: 9px; background: var(--iris); box-shadow: 0 4px 14px rgba(143,109,255,.4); flex: none; display: grid; place-items: center; }
.logo-mark svg { width: 66%; height: 66%; display: block; }
.logo-text { font-size: 1.04rem; }
.nav-links { display: flex; gap: 2rem; }
.nav-links a { font-size: 0.96rem; color: var(--ink-2); font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { font-size: 0.92rem; font-weight: 600; padding: 0.6em 1.2em; border-radius: 100px; background: var(--ink); color: #fff; transition: transform .35s var(--ease), box-shadow .35s; }
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.18); }

.nav-burger { display: none; flex-direction: column; gap: 5px; width: 42px; height: 42px; align-items: center; justify-content: center; background: none; border: none; cursor: pointer; }
.nav-burger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .35s var(--ease), opacity .3s; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }
.m-menu { display: flex; flex-direction: column; gap: 0.2rem; padding: 0.4rem var(--pad) 1.4rem; background: rgba(255,255,255,0.96); backdrop-filter: blur(20px); border-bottom: 1px solid var(--hair-soft); }
.m-menu[hidden] { display: none; }
.m-menu a { padding: 0.95rem 0.2rem; font-weight: 600; font-size: 1.1rem; border-bottom: 1px solid var(--hair-soft); }
.m-cta { color: var(--accent) !important; border-bottom: none !important; }

/* ============ HERO ============ */
.hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 120px var(--pad) 60px; overflow: hidden; }
.hero-aura {
  position: absolute; inset: -20% -10% auto -10%; height: 90%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(40% 55% at 30% 20%, rgba(143,109,255,.28), transparent 60%),
    radial-gradient(42% 50% at 75% 25%, rgba(255,126,179,.22), transparent 62%),
    radial-gradient(46% 60% at 55% 8%, rgba(106,140,255,.26), transparent 65%);
  filter: blur(10px); opacity: .9;
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift { from { transform: translate3d(-2%, 0, 0) scale(1); } to { transform: translate3d(3%, 2%, 0) scale(1.08); } }

.hero-inner { position: relative; z-index: 2; max-width: 1000px; }
.hero-title { font-size: clamp(2.9rem, 9vw, 6.6rem); font-weight: 800; letter-spacing: -0.045em; line-height: 0.98; }
.hero-title span { display: block; }
.hero-title .grad { background: var(--iris); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { max-width: 620px; margin: 1.8rem auto 0; font-size: clamp(1.05rem, 2vw, 1.35rem); color: var(--muted); font-weight: 400; line-height: 1.5; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; align-items: center; margin-top: 2.4rem; flex-wrap: wrap; }

/* visuel flottant */
.hero-stage { position: relative; z-index: 1; width: min(560px, 86vw); height: 280px; margin-top: clamp(2rem, 5vw, 3.5rem); }
.orb {
  position: absolute; left: 50%; top: 46%; width: 236px; height: 236px; transform: translate(-50%,-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 48%, #8f6dff 0%, #6a8cff 34%, #c46cff 62%, #ff7eb3 86%, #ff9d6c 100%);
  filter: blur(3px);
  box-shadow: 0 40px 100px rgba(143,109,255,.4);
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translate(-50%,-50%) translateY(0); } 50% { transform: translate(-50%,-50%) translateY(-16px); } }
.glass-card {
  position: absolute; right: 2%; top: 12%; width: 240px; padding: 14px 14px 16px;
  background: rgba(255,255,255,.62); backdrop-filter: blur(22px) saturate(1.5);
  -webkit-backdrop-filter: blur(22px) saturate(1.5);
  border: 1px solid rgba(255,255,255,.75); border-radius: 18px;
  box-shadow: 0 24px 60px rgba(40,40,80,.18);
}
/* mini-aperçu de site dans la carte */
.gc-bar { display: flex; align-items: center; gap: 6px; margin-bottom: 13px; }
.gc-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--hair); flex: none; }
.gc-bar i:first-child { background: #ff6159; } .gc-bar i:nth-child(2) { background: #ffbd2e; } .gc-bar i:nth-child(3) { background: #28c940; }
.gc-url { margin-left: 7px; flex: 1; min-width: 0; font-family: var(--mono); font-size: 9px; color: var(--faint);
  background: var(--bg-soft); border-radius: 6px; padding: 4px 6px; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gc-site { display: flex; flex-direction: column; }
.gc-eyebrow { width: 66px; height: 7px; border-radius: 4px; background: var(--iris); opacity: .85; }
.gc-title { margin-top: 10px; font-size: 15px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); line-height: 1.1; }
.gc-text { width: 84%; height: 7px; border-radius: 4px; margin-top: 10px; background: linear-gradient(90deg, var(--hair), var(--hair-soft)); }
.gc-btn { align-self: flex-start; margin-top: 13px; font-size: 10px; font-weight: 700; color: #fff;
  background: var(--iris); border-radius: 100px; padding: 6px 13px; }
.gc-img { height: 54px; border-radius: 10px; margin-top: 13px; background: var(--iris-soft);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.55); }

.scroll-hint { position: relative; z-index: 2; margin-top: clamp(1.5rem, 4vw, 3rem); width: 26px; height: 42px; border: 2px solid var(--hair); border-radius: 14px; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; background: var(--faint); border-radius: 3px; transform: translateX(-50%); animation: scrolldot 1.8s ease-in-out infinite; }
@keyframes scrolldot { 0% { opacity: 0; transform: translate(-50%,0); } 40% { opacity: 1; } 80%,100% { opacity: 0; transform: translate(-50%,14px); } }

/* ============ MARQUEE ============ */
.marquee-wrap { padding: 18px 0; border-block: 1px solid var(--hair-soft); overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-row { display: flex; width: max-content; align-items: center; gap: 1.6rem; white-space: nowrap; }
.marquee-row.is-ready { animation: scrollx 30s linear infinite; }
.marquee-row span { font-size: 1.15rem; font-weight: 600; color: var(--faint); letter-spacing: -0.01em; }
@keyframes scrollx { to { transform: translateX(-50%); } }

/* ============ STATEMENT ============ */
.statement { padding: clamp(6rem, 14vw, 11rem) var(--pad); max-width: 1080px; margin-inline: auto; }
.statement-text { font-size: clamp(1.7rem, 4.6vw, 3.4rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.16; color: var(--faint); }
.statement-text strong { color: var(--ink); font-weight: 700; }

/* ============ SERVICES ============ */
.services { padding: clamp(3rem, 7vw, 6rem) 0 clamp(5rem, 10vw, 8rem); }
.svc-grid { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.svc {
  background: var(--bg-soft); border-radius: var(--radius-lg); padding: clamp(2rem, 3.5vw, 3rem);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), background .4s;
}
.svc:hover { transform: translateY(-6px); box-shadow: 0 30px 60px rgba(0,0,0,.08); background: #fff; outline: 1px solid var(--hair-soft); }
.svc-num { font-family: var(--mono); font-size: 0.85rem; color: var(--accent); }
.svc h3 { margin: 1.4rem 0 0.7rem; }
.svc p { color: var(--muted); font-size: 1.02rem; max-width: 42ch; }

/* ============ WORK ============ */
.work { padding: clamp(3rem, 7vw, 6rem) 0 clamp(4rem, 8vw, 7rem); }
.case {
  max-width: var(--maxw); margin: 0 auto clamp(3rem, 6vw, 6rem); padding-inline: var(--pad);
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 5rem); align-items: center;
}
.case-rev .case-visual { order: 2; }
.case-visual { position: relative; }
.mock {
  aspect-ratio: 4 / 3; border-radius: var(--radius-lg); position: relative; overflow: hidden;
  box-shadow: 0 40px 80px rgba(40,40,80,.16); transition: transform .6s var(--ease);
}
.case:hover .mock { transform: translateY(-6px) scale(1.012); }
.mock-a { background: linear-gradient(140deg, #e8efff, #dfe6ff 40%, #efe2ff 100%); }
.mock-b { background: linear-gradient(140deg, #fff0e6, #ffe7d6 45%, #ffe0ec 100%); }
.mock-c { background: linear-gradient(140deg, #e6fff4, #d9f6ff 50%, #e7ecff 100%); }
.mock-glow { position: absolute; width: 60%; height: 60%; left: 20%; top: 22%; border-radius: 50%; background: var(--iris); filter: blur(46px); opacity: .55; }

/* Carte "projet confidentiel" */
.mock.confidential { display: grid; place-items: center; }
.mock.confidential::after { display: none; }
.lock { position: relative; z-index: 1; font-weight: 600; font-size: 1rem; color: var(--ink-2); background: rgba(255,255,255,.7); backdrop-filter: blur(6px); padding: 0.7em 1.3em; border-radius: 100px; border: 1px solid rgba(255,255,255,.8); }

/* Cadre navigateur autour des captures de sites */
.frame {
  border-radius: var(--radius-lg); overflow: hidden; background: #fff;
  border: 1px solid var(--hair-soft);
  box-shadow: 0 40px 80px rgba(40,40,80,.16);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.case:hover .frame { transform: translateY(-6px) scale(1.012); box-shadow: 0 50px 100px rgba(40,40,80,.2); }
.frame-bar { display: flex; gap: 7px; padding: 13px 16px; background: var(--bg-soft); border-bottom: 1px solid var(--hair-soft); }
.frame-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--hair); }
.frame-bar i:first-child { background: #ff6159; } .frame-bar i:nth-child(2) { background: #ffbd2e; } .frame-bar i:nth-child(3) { background: #28c940; }
.frame img { width: 100%; height: auto; display: block; }
.mock::after {
  content: ""; position: absolute; inset: 14% 14% auto 14%; height: 56%;
  background: rgba(255,255,255,.6); border: 1px solid rgba(255,255,255,.8); border-radius: 16px;
  box-shadow: 0 20px 50px rgba(40,40,80,.14); backdrop-filter: blur(6px);
}
.case-tag { font-family: var(--mono); font-size: 0.8rem; color: var(--faint); text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 0.9rem; }
.case-meta h3 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); margin-bottom: 1rem; }
.case-meta p { color: var(--muted); font-size: 1.08rem; max-width: 46ch; }
.case-stack { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 1.5rem; }
.case-stack li { font-family: var(--mono); font-size: 0.78rem; color: var(--ink-2); padding: 0.4em 0.9em; border: 1px solid var(--hair); border-radius: 100px; }
.work-note { text-align: center; color: var(--faint); font-size: 0.95rem; padding-inline: var(--pad); }

/* ============ APPROACH (sticky) ============ */
.approach { padding: clamp(4rem, 8vw, 7rem) 0; background: var(--bg-soft); }
.approach-grid { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 5rem); }
.approach-sticky { position: sticky; top: 18vh; }
.approach-sticky h2 { margin: 0.6rem 0 1rem; }
.approach-lead { color: var(--muted); font-size: 1.1rem; max-width: 34ch; }
.approach-steps { display: grid; gap: 1rem; }
.approach-steps li { display: flex; gap: 1.4rem; align-items: flex-start; background: #fff; border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.2rem); box-shadow: 0 1px 0 var(--hair-soft); transition: transform .5s var(--ease), box-shadow .5s; }
.approach-steps li:hover { transform: translateX(6px); box-shadow: 0 20px 50px rgba(0,0,0,.07); }
.step-n { font-family: var(--mono); font-size: 0.9rem; color: var(--accent); padding-top: 0.3rem; flex: none; }
.approach-steps h3 { margin-bottom: 0.4rem; }
.approach-steps p { color: var(--muted); }

/* ============ ABOUT ============ */
.about { padding: clamp(5rem, 11vw, 9rem) 0; }
.about-inner { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.about-copy h2 { margin: 0.6rem 0 1.4rem; }
.about-copy p { color: var(--muted); font-size: 1.1rem; margin-bottom: 1.2rem; max-width: 52ch; }
.about-copy .btn-plain { margin-top: 0.6rem; }
.about-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem 1.2rem; }
.about-stats li { border-top: 1px solid var(--hair); padding-top: 1rem; }
.about-stats strong { display: block; font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -0.04em; background: var(--iris); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.about-stats span { color: var(--faint); font-size: 0.95rem; }

/* ============ CONTACT ============ */
.contact { padding: clamp(6rem, 13vw, 11rem) var(--pad); text-align: center; overflow: hidden; }
.contact-aura { position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(50% 60% at 50% 55%, rgba(143,109,255,.18), transparent 65%), radial-gradient(40% 50% at 70% 40%, rgba(255,126,179,.16), transparent 60%); }
.contact-inner { position: relative; z-index: 1; max-width: 820px; margin-inline: auto; }
.contact h2 { font-size: clamp(2.4rem, 7vw, 5rem); }
.contact-sub { color: var(--muted); font-size: 1.2rem; margin: 1.4rem auto 2.4rem; }
.contact-mail {
  display: inline-block; font-size: clamp(1.2rem, 3.4vw, 2rem); font-weight: 700; letter-spacing: -0.02em;
  padding-bottom: 4px; background: linear-gradient(var(--accent), var(--accent)) no-repeat left bottom / 0% 2px;
  transition: background-size .5s var(--ease), color .3s;
}
.contact-mail:hover { background-size: 100% 2px; }
.contact-phone {
  display: inline-block; margin-top: 1.1rem; font-size: clamp(1.05rem, 2.6vw, 1.5rem); font-weight: 700;
  letter-spacing: -0.01em; color: var(--ink-2); padding-bottom: 4px;
  background: linear-gradient(var(--accent), var(--accent)) no-repeat left bottom / 0% 2px;
  transition: background-size .5s var(--ease), color .3s;
}
.contact-phone:hover { background-size: 100% 2px; color: var(--ink); }
.contact-socials { display: flex; gap: 1.4rem; justify-content: center; margin-top: 2.4rem; }
.contact-socials a { font-weight: 600; color: var(--ink-2); padding: 0.6em 1.4em; border: 1px solid var(--hair); border-radius: 100px; transition: border-color .3s, transform .35s var(--ease), color .3s; }
.contact-socials a:hover { border-color: var(--ink); transform: translateY(-2px); }

/* ============ FAQ ============ */
.faq { padding: clamp(3rem, 7vw, 6rem) 0 clamp(5rem, 10vw, 8rem); }
.faq-list { max-width: 820px; margin-inline: auto; padding-inline: var(--pad); border-top: 1px solid var(--hair-soft); }
.faq-item { padding: clamp(1.4rem, 3vw, 2rem) 0; border-bottom: 1px solid var(--hair-soft); }
.faq-item h3 { font-size: clamp(1.1rem, 2.4vw, 1.4rem); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 0.7rem; }
.faq-item p { color: var(--ink-2); font-size: 1rem; line-height: 1.65; max-width: 72ch; }

/* ============ PAGE LÉGALE ============ */
.legal-page { padding: clamp(7rem, 14vw, 10rem) 0 clamp(4rem, 8vw, 6rem); }
.legal-wrap { max-width: 760px; margin-inline: auto; padding-inline: var(--pad); }
.legal-wrap h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -0.03em; margin: 0.4rem 0 2rem; }
.legal-wrap h2 { font-size: clamp(1.2rem, 2.6vw, 1.5rem); letter-spacing: -0.02em; margin: 2.2rem 0 0.8rem; }
.legal-wrap p { color: var(--ink-2); line-height: 1.7; margin-bottom: 0.8rem; }
.legal-wrap a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.legal-note { color: var(--faint); font-size: 0.9rem; }
.legal-back { margin-top: 2.6rem; font-weight: 600; }

/* ============ FOOTER ============ */
.footer { border-top: 1px solid var(--hair-soft); padding: 2.5rem var(--pad); }
.footer-inner { max-width: var(--maxw); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: var(--faint); font-size: 0.92rem; }
.footer-brand { display: flex; flex-direction: column; gap: 0.2rem; }
.footer .logo-text { color: var(--ink); }
.footer-role { font-size: 0.82rem; color: var(--faint); }
.footer-legal { font-size: 0.76rem; color: var(--faint); }
.footer-legal a { color: var(--faint); text-decoration: underline; text-underline-offset: 2px; }
.footer-legal a:hover { color: var(--ink); }
.to-top { transition: color .2s; }
.to-top:hover { color: var(--ink); }

/* ============ BOUTON RETOUR EN HAUT (flottant) ============ */
.backtop {
  position: fixed; right: clamp(16px, 4vw, 32px); bottom: clamp(16px, 4vw, 32px); z-index: 90;
  width: 52px; height: 52px; border-radius: 50%; border: none; cursor: pointer;
  display: grid; place-items: center; color: #fff; background: var(--ink);
  box-shadow: 0 10px 30px rgba(0,0,0,.22);
  opacity: 0; visibility: hidden; transform: translateY(14px) scale(.92);
  transition: opacity .45s var(--ease-out), transform .45s var(--ease-out), box-shadow .35s;
}
.backtop.show { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.backtop:hover { transform: translateY(-4px) scale(1); box-shadow: 0 16px 40px rgba(0,0,0,.28); }
.backtop:active { transform: translateY(-1px) scale(.98); }
.backtop svg { display: block; }

/* ============ REVEAL (robuste) ============
   Visible par défaut ; l'état masqué n'est appliqué que si le JS tourne
   (classe .js sur <html>), pour ne jamais laisser un écran vide. */
.reveal { transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--d, 0s); }
.js .reveal { opacity: 0; transform: translateY(32px); }
.js .reveal.in { opacity: 1; transform: none; }

/* ============ RESPONSIVE ============ */
@media (max-width: 920px) {
  .svc-grid { grid-template-columns: 1fr; }
  .case, .case-rev { grid-template-columns: 1fr; gap: 2rem; }
  .case-rev .case-visual { order: 0; }
  .approach-grid { grid-template-columns: 1fr; }
  .approach-sticky { position: static; }
  .about-inner { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .glass-card { right: -2%; width: 180px; }
}
@media (max-width: 480px) {
  .about-stats { grid-template-columns: 1fr 1fr; }
  .hero { padding-top: 100px; }
}

/* Animations actives pour TOUS les visiteurs.
   La détection « mouvement réduit » (prefers-reduced-motion) a été volontairement
   retirée à la demande du propriétaire du site. */
