/* ═══════════════════════════════════════════════════
   MAGIC HAT — STYLES
   ═══════════════════════════════════════════════════ */

/* ── VARIABLES ─────────────────────────────────── */
:root {
  /* Couleurs */
  --c-bg:          #090910;
  --c-bg-alt:      #0e0e1a;
  --c-card:        #111120;
  --c-card-hover:  #17172a;
  --c-border:      rgba(139, 92, 246, 0.16);
  --c-border-hi:   rgba(139, 92, 246, 0.45);

  --c-accent:      #8b5cf6;
  --c-accent-hi:   #a78bfa;
  --c-accent-dim:  rgba(139, 92, 246, 0.22);
  --c-accent-glow: rgba(139, 92, 246, 0.18);

  --c-text:        #f0f0f8;
  --c-text-2:      #9ca3af;
  --c-text-3:      #5c6578;

  /* Navbar — modifie ici pour ajuster sur tout le site */
  --navbar-height: 62px;

  /* Misc */
  --radius-s: 6px;
  --radius:   10px;
  --radius-l: 16px;
  --ease:     0.25s ease;
  --ease-s:   0.4s ease;

  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

/* ── RESET ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font); background: var(--c-bg); color: var(--c-text); line-height: 1.6; }
ul   { list-style: none; }
a    { color: inherit; text-decoration: none; }
img  { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── SCROLL (DESKTOP) ──────────────────────────── */
@media (min-width: 769px) {
  html, body { height: 100%; overflow: hidden; }

  /* Le container commence EXACTEMENT sous la navbar.
     Plus besoin de scroll-padding-top ni d'offset dans les sections. */
  .scroll-container {
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    right: 0;
    bottom: 0;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
  }
}

/* ── SECTIONS (base) ───────────────────────────── */
.section {
  /* Occupe exactement l'espace visible sous la navbar sur desktop,
     redéfini en min-height: 100svh dans le bloc mobile. */
  min-height: calc(100vh - var(--navbar-height));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  scroll-snap-align: start;
}

.section__inner {
  max-width: 1120px;
  width: 100%;
  padding: 40px 28px 48px;
}

.section__head {
  text-align: center;
  margin-bottom: 44px;
}

/* ── TYPOGRAPHY ────────────────────────────────── */
.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 14px;
}

.section__title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--c-text);
  margin-bottom: 20px;
}

.text-accent { color: var(--c-accent-hi); }

/* ── BUTTONS ───────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 26px;
  border-radius: var(--radius-s);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1.5px solid transparent;
  transition: all var(--ease);
  white-space: nowrap;
  cursor: pointer;
}

.btn--primary {
  background: var(--c-accent);
  color: #fff;
  border-color: var(--c-accent);
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.3);
}
.btn--primary:hover {
  background: var(--c-accent-hi);
  border-color: var(--c-accent-hi);
  box-shadow: 0 0 28px rgba(139, 92, 246, 0.55), 0 0 60px rgba(139, 92, 246, 0.2);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--c-accent-hi);
  border-color: var(--c-accent);
}
.btn--ghost:hover {
  background: var(--c-accent-dim);
  border-color: var(--c-accent-hi);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.25);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--c-accent-hi);
  border-color: var(--c-border-hi);
}
.btn--outline:hover {
  background: var(--c-accent-dim);
  border-color: var(--c-accent-hi);
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.2);
  transform: translateY(-2px);
}

.btn--sm    { padding: 7px 16px; font-size: 0.8rem; }
.btn--block { width: 100%; }

/* ── TAGS ──────────────────────────────────────── */
.tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: var(--radius-s);
  font-size: 0.78rem;
  font-weight: 500;
  background: rgba(139, 92, 246, 0.09);
  border: 1px solid var(--c-border);
  color: var(--c-accent-hi);
}
.tag--sm { padding: 3px 9px; font-size: 0.7rem; }

.tag-list         { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tag-list--sm     { gap: 6px; }

/* ═══════════════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  height: var(--navbar-height);
  background: rgba(9, 9, 16, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--c-border);
}

.navbar__inner {
  max-width: 1120px;
  height: 100%;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.navbar__logo { display: flex; align-items: center; flex-shrink: 0; }
.navbar__logo-img {
  height: 34px;
  width: auto;
  /* Logo sombre sur fond sombre : on inverse + glow violet */
  filter: invert(1) drop-shadow(0 0 10px rgba(139, 92, 246, 0.5));
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.navbar__link {
  padding: 7px 13px;
  border-radius: var(--radius-s);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--c-text-2);
  transition: all var(--ease);
  position: relative;
}
.navbar__link:hover { color: var(--c-text); background: rgba(139, 92, 246, 0.07); }
.navbar__link.is-active {
  color: var(--c-accent-hi);
  background: rgba(139, 92, 246, 0.11);
}
.navbar__link.is-active::after {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--c-accent);
  box-shadow: 0 0 6px var(--c-accent);
}

/* Burger */
.navbar__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 7px;
  border-radius: var(--radius-s);
}
.navbar__burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--c-text-2);
  border-radius: 2px;
  transition: all var(--ease);
}
.navbar__burger:hover span { background: var(--c-accent-hi); }
.navbar__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg);  }
.navbar__burger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.navbar__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═══════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════ */
.section--hero {
  background: var(--c-bg);
  align-items: center;
}

/* Grille subtile */
.hero__bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(139, 92, 246, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 92, 246, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 85% 85% at 50% 50%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 85% 85% at 50% 50%, black, transparent);
  pointer-events: none;
}

/* Halo central */
.hero__bg-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 55% at 50% 55%, rgba(139, 92, 246, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero__inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
  padding: 20px 0 32px;
}

.hero__title {
  font-size: clamp(2.4rem, 5.4vw, 4.25rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  max-width: 1040px;
  margin-bottom: 20px;
}

.hero__highlight {
  background: linear-gradient(130deg, var(--c-accent-hi) 0%, #c4b5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 24px rgba(139, 92, 246, 0.45));
}

.hero__subtitle {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  color: var(--c-text-2);
  max-width: 610px;
  margin-bottom: 0;
  line-height: 1.72;
}

.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

.hero-scroll-cue {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: var(--c-text-2);
  transform: translateX(-50%);
  transition: color var(--ease), filter var(--ease);
}

.hero-scroll-cue span {
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-scroll-cue svg {
  width: 22px;
  height: 30px;
  fill: none;
  stroke: var(--c-accent-hi);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 7px rgba(139, 92, 246, 0.56));
  animation: hero-scroll-invite 2.2s ease-in-out infinite;
}

.hero-scroll-cue:hover,
.hero-scroll-cue:focus-visible {
  color: var(--c-text);
  filter: brightness(1.22);
}

.hero-scroll-cue:focus-visible {
  outline: 1px solid var(--c-border-hi);
  outline-offset: 7px;
  border-radius: var(--radius-s);
}

@keyframes hero-scroll-invite {
  0%, 100% { transform: translateY(0); }
  45% { transform: translateY(6px); }
  62% { transform: translateY(2px); }
}

/* ═══════════════════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════════════════ */
.section--about { background: var(--c-bg-alt); }

.about__layout {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 72px;
  align-items: center;
}

.about__text {
  color: var(--c-text-2);
  margin-bottom: 14px;
  font-size: 0.97rem;
  line-height: 1.78;
}

.avatar-frame {
  width: 220px;
  flex-shrink: 0;
  position: relative;
}

.avatar-frame::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 40px;
  background: radial-gradient(ellipse, rgba(139, 92, 246, 0.35) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(8px);
}

.avatar-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 8px 32px rgba(139, 92, 246, 0.28));
}

/* ═══════════════════════════════════════════════════
   SERVICES — MODULES
   ═══════════════════════════════════════════════════ */
.section--services { background: var(--c-bg); align-items: stretch; }

.section--services .section__inner {
  display: flex;
  flex-direction: column;
  padding-top: 28px;
  padding-bottom: 24px;
}

.section--services .section__head { flex-shrink: 0; margin-bottom: 12px; }

.services-intro {
  max-width: 720px;
  margin: -10px auto 0;
  color: var(--c-text-2);
  font-size: 0.92rem;
  line-height: 1.65;
}

.service-offers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.service-offer {
  --offer-color: 139, 92, 246;
  --offer-ink: #ffffff;
  min-width: 0;
  min-height: 322px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px 26px 22px;
  border: 1px solid rgba(var(--offer-color), 0.3);
  border-radius: var(--radius-l);
  background:
    linear-gradient(145deg, rgba(var(--offer-color), 0.105), transparent 38%),
    linear-gradient(155deg, rgba(18, 18, 34, 0.98), rgba(10, 10, 19, 0.98));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24), inset 0 1px rgba(255, 255, 255, 0.025);
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.service-offer--dev {
  --offer-color: 56, 189, 248;
  --offer-ink: #06131b;
}

.service-offer--play {
  --offer-color: 250, 204, 21;
  --offer-ink: #171205;
}

.service-offer:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--offer-color), 0.58);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.34), 0 0 30px rgba(var(--offer-color), 0.09);
}

.service-offer__glow {
  position: absolute;
  z-index: -1;
  top: -100px;
  right: -90px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(var(--offer-color), 0.12);
  filter: blur(45px);
  pointer-events: none;
}

.service-offer__header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.service-offer__number {
  order: 2;
  color: rgba(var(--offer-color), 0.45);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.service-offer__brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.service-offer__brand img {
  width: auto;
  height: 25px;
  filter: invert(1) drop-shadow(0 0 8px rgba(var(--offer-color), 0.34));
}

.service-offer__brand span {
  padding-left: 11px;
  border-left: 1px solid rgba(var(--offer-color), 0.52);
  color: rgb(var(--offer-color));
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.22em;
}

.service-offer__kicker {
  margin-bottom: 5px;
  color: rgba(var(--offer-color), 0.88);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.service-offer h3 {
  margin-bottom: 10px;
  color: var(--c-text);
  font-size: clamp(1.25rem, 2vw, 1.58rem);
  line-height: 1.2;
  letter-spacing: -0.018em;
}

.service-offer > p:not(.service-offer__kicker) {
  color: var(--c-text-2);
  font-size: 0.83rem;
  line-height: 1.56;
}

.service-offer__features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
  margin: 14px 0 16px;
}

.service-offer__features li {
  position: relative;
  padding: 8px 8px 8px 17px;
  border: 1px solid rgba(var(--offer-color), 0.13);
  border-radius: var(--radius-s);
  background: rgba(var(--offer-color), 0.045);
  color: #c7c7d5;
  font-size: 0.66rem;
  line-height: 1.35;
}

.service-offer__features li::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 8px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgb(var(--offer-color));
  box-shadow: 0 0 7px rgba(var(--offer-color), 0.65);
}

.service-offer__cta {
  margin-top: auto;
  color: var(--offer-ink);
  border-color: rgb(var(--offer-color));
  background: rgb(var(--offer-color));
  box-shadow: 0 0 22px rgba(var(--offer-color), 0.26);
}

.service-offer__cta:hover {
  color: var(--offer-ink);
  background: rgb(var(--offer-color));
  border-color: rgb(var(--offer-color));
  filter: brightness(1.08);
  box-shadow: 0 0 32px rgba(var(--offer-color), 0.42);
}

/* ── CLIENTS TICKER ─────────────────────────── */
.clients-ticker-wrap {
  flex-shrink: 0;
  margin-top: 14px;
}

.clients-ticker__label {
  text-align: center;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-text-3);
  margin-bottom: 9px;
}

.clients-ticker {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.clients-ticker__track {
  display: flex;
  align-items: center;
  gap: 60px;
  width: max-content;
  animation: ticker-scroll 36s linear infinite;
}

.clients-ticker__logo {
  height: 50px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  flex-shrink: 0;
  opacity: 0.85;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .clients-ticker__track { animation: none; }
  .hero-scroll-cue svg { animation: none; }
}

/* Arena : conteneur relatif pour superposer grille & panneau */
.services-arena {
  flex: 1;
  position: relative;
  min-height: 300px;
}

/* ── GRILLE ─────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 16px;
  height: 100%;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.services-grid.is-fading {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.98);
}

/* ── MODULE (carte service) ─────────────────── */
.svc-module {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-l);
  padding: 36px 32px;
  cursor: pointer;
  transition:
    border-color 0.3s ease,
    box-shadow   0.3s ease,
    transform    0.3s ease,
    background   0.3s ease;
  position: relative;
  overflow: hidden;
  user-select: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.svc-module::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 30% 20%, rgba(139,92,246,0.09), transparent 65%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  border-radius: inherit;
}

.svc-module:hover {
  border-color: var(--c-border-hi);
  box-shadow: 0 0 28px rgba(139,92,246,0.13), 0 8px 28px rgba(0,0,0,0.3);
  transform: translateY(-2px);
}
.svc-module:hover::before { opacity: 1; }

.svc-module:focus-visible {
  outline: 2px solid rgba(139,92,246,0.6);
  outline-offset: 3px;
}

.svc-module.is-loading { pointer-events: none; }

/* Icône — badge arrondi */
.svc-module__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: var(--radius);
  background: rgba(139, 92, 246, 0.09);
  border: 1px solid rgba(139, 92, 246, 0.16);
  color: var(--c-accent-hi);
  margin-bottom: 22px;
  flex-shrink: 0;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.svc-module__icon svg { width: 28px; height: 28px; }

.svc-module:hover .svc-module__icon {
  background: rgba(139, 92, 246, 0.16);
  border-color: rgba(139, 92, 246, 0.32);
  box-shadow: 0 0 22px rgba(139, 92, 246, 0.2);
}

.svc-module__title {
  font-size: 1.28rem;
  font-weight: 800;
  color: var(--c-text);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.svc-module__desc {
  font-size: 0.88rem;
  color: var(--c-text-2);
  line-height: 1.72;
  max-width: 38ch;
}

/* CTA hover — "Charger ce module..." */
.svc-module__cta {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-accent-hi);
  background: linear-gradient(to top, rgba(139,92,246,0.07) 0%, transparent 100%);
  border-top: 1px solid rgba(139, 92, 246, 0.12);
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.24s ease, opacity 0.24s ease;
  pointer-events: none;
}
.svc-module:hover .svc-module__cta {
  transform: translateY(0);
  opacity: 1;
}

/* Loader à l'intérieur du module */
.svc-module__loader {
  position: absolute;
  inset: 0;
  background: var(--c-card);
  border-radius: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.svc-module.is-loading .svc-module__loader { opacity: 1; }

.svc-loader__label {
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  color: var(--c-text-3);
  text-transform: uppercase;
}

.svc-loader__bar {
  width: 140px;
  height: 3px;
  background: rgba(139,92,246,0.13);
  border-radius: 2px;
  overflow: hidden;
}

.svc-loader__fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--c-accent), var(--c-accent-hi));
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(139,92,246,0.55);
  transition: width 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.svc-loader__fill.is-complete { width: 100%; }

/* ── PANNEAU DÉTAIL ─────────────────────────── */
.services-panel {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.services-panel.is-visible {
  opacity: 1;
  pointer-events: all;
}

.svc-detail {
  width: 100%;
  height: 100%;
  background: var(--c-card);
  border: 1px solid var(--c-border-hi);
  border-radius: var(--radius-l);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 0 44px rgba(139,92,246,0.1), 0 16px 44px rgba(0,0,0,0.38);
  position: relative;
}

.svc-detail__light {
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(255,255,255,0.016) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* En-tête */
.svc-detail__header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.svc-detail__header-icon {
  width: 30px;
  height: 30px;
  color: var(--c-accent-hi);
  flex-shrink: 0;
}
.svc-detail__header-icon svg { width: 100%; height: 100%; }

.svc-detail__header-title {
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--c-text);
  flex: 1;
  min-width: 0;
}

/* Boutons de navigation */
.svc-detail__nav {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.svc-nav-btn {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-s);
  background: rgba(0,0,0,0.28);
  border: 1px solid rgba(255,255,255,0.09);
  color: rgba(255,255,255,0.52);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--ease);
  font-family: inherit;
}
.svc-nav-btn:hover:not(:disabled) {
  background: rgba(139,92,246,0.14);
  border-color: var(--c-accent);
  color: var(--c-accent-hi);
  box-shadow: 0 0 10px rgba(139,92,246,0.18);
}
.svc-nav-btn:disabled { opacity: 0.25; cursor: default; }

.svc-close-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0,0,0,0.32);
  border: 1px solid rgba(255,255,255,0.11);
  color: rgba(255,255,255,0.52);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--ease);
  font-family: inherit;
  font-size: 0.75rem;
  margin-left: 4px;
}
.svc-close-btn:hover {
  background: rgba(0,0,0,0.58);
  color: #fff;
  border-color: rgba(255,255,255,0.26);
  transform: scale(1.08);
}

/* Corps : 2 colonnes */
.svc-detail__body {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.svc-detail__left {
  padding: 20px 22px;
  border-right: 1px solid rgba(255,255,255,0.04);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  scrollbar-width: thin;
  scrollbar-color: rgba(139,92,246,0.25) transparent;
}
.svc-detail__left::-webkit-scrollbar       { width: 3px; }
.svc-detail__left::-webkit-scrollbar-thumb { background: rgba(139,92,246,0.3); border-radius: 2px; }

.svc-detail__right {
  padding: 20px 22px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(139,92,246,0.25) transparent;
}
.svc-detail__right::-webkit-scrollbar       { width: 3px; }
.svc-detail__right::-webkit-scrollbar-thumb { background: rgba(139,92,246,0.3); border-radius: 2px; }

/* Blocs de contenu */
.svc-block { display: flex; flex-direction: column; gap: 10px; }

.svc-block__label {
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-accent);
}

.svc-block__text {
  font-size: 0.86rem;
  line-height: 1.75;
  color: var(--c-text-2);
}

.svc-examples {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.svc-examples li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.84rem;
  color: var(--c-text-2);
  line-height: 1.5;
}
.svc-examples li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--c-accent);
  box-shadow: 0 0 6px rgba(139,92,246,0.45);
  flex-shrink: 0;
  margin-top: 5px;
}

/* ── VIGNETTES PROJETS ASSOCIÉS ─────────────── */
.svc-dvds {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.svc-proj-card {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-s);
  overflow: hidden;
  cursor: pointer;
  user-select: none;
  background: #0d0d1a;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.55),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  transition:
    transform  0.2s cubic-bezier(0.34, 1.2, 0.64, 1),
    box-shadow 0.2s ease;
}

.svc-proj-card:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.7),
    0 0 14px var(--proj-glow, rgba(139, 92, 246, 0.22));
}

.svc-proj-card:focus-visible {
  outline: 2px solid rgba(139, 92, 246, 0.6);
  outline-offset: 2px;
}

.svc-proj-card__cover {
  width: 100%;
  height: 100%;
}
.svc-proj-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.svc-proj-card__fallback {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 6px;
  background:
    radial-gradient(ellipse 90% 70% at 25% 25%, rgba(255,255,255,0.07) 0%, transparent 65%),
    linear-gradient(150deg, var(--proj-color, #7c3aed) 0%, rgba(0,0,0,0.68) 100%);
}

.svc-proj-card__fallback-title {
  font-size: 0.57rem;
  font-weight: 700;
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.3;
  word-break: break-word;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

.svc-proj-card__fallback-client {
  font-size: 0.48rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.38);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
}

.svc-proj-card__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    130deg,
    rgba(255, 255, 255, 0.07) 0%,
    transparent 55%
  );
  pointer-events: none;
}

.svc-proj-card__title-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 18px 6px 6px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.88));
  transform: translateY(100%);
  transition: transform 0.18s ease;
  pointer-events: none;
}

.svc-proj-card:hover .svc-proj-card__title-overlay {
  transform: translateY(0);
}

.svc-proj-card__title-text {
  display: block;
  font-size: 0.56rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  text-align: center;
  letter-spacing: 0.04em;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ═══════════════════════════════════════════════════
   PROJECTS — GALERIE JAQUETTES
   ═══════════════════════════════════════════════════ */
.section--projects {
  background: var(--c-bg-alt);
  align-items: stretch;
}

.section--projects .section__inner {
  display: flex;
  flex-direction: column;
  padding-top: 28px;
  padding-bottom: 20px;
}

.projects__header {
  text-align: center;
  flex-shrink: 0;
  margin-bottom: 4px;
}
.projects__intro {
  text-align: center;
  font-size: 0.83rem;
  color: var(--c-text-2);
  margin: 2px 0 16px;
}

/* ─── FILTRES ──────────────────────────────────── */
.projects__filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 18px;
  transition: opacity 0.22s ease;
}

.filter-btn {
  padding: 5px 16px;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  border: 1.5px solid var(--btn-border, rgba(139, 92, 246, 0.22));
  color: var(--c-text-3);
  background: transparent;
  transition: all var(--ease);
  cursor: pointer;
  font-family: var(--font);
}
.filter-btn:hover {
  border-color: var(--btn-color, var(--c-accent));
  color: var(--btn-color, var(--c-accent-hi));
  background: var(--btn-bg-dim, rgba(139, 92, 246, 0.08));
  box-shadow: 0 0 14px var(--btn-glow, rgba(139, 92, 246, 0.2));
}
.filter-btn.is-active {
  background: var(--btn-bg-dim, rgba(139, 92, 246, 0.14));
  border-color: var(--btn-color, var(--c-accent-hi));
  color: var(--btn-color, var(--c-accent-hi));
  box-shadow:
    0 0 18px var(--btn-glow-hi, rgba(139, 92, 246, 0.38)),
    inset 0 0 10px var(--btn-bg-dim, rgba(139, 92, 246, 0.06));
  text-shadow: 0 0 10px var(--btn-glow-text, rgba(139, 92, 246, 0.5));
}

.projects__filters.is-shelf-hidden {
  opacity: 0;
  pointer-events: none;
}

/* ─── GALERIE (wrapper + wall + grille) ────────── */
.dvd-wall-wrapper {
  flex: 1;
  min-height: 0;
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.dvd-wall {
  flex: 1;
  min-width: 0;
  height: 100%;
  overflow: hidden;
}

.dvd-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* JS remplace dynamiquement */
  grid-auto-rows: 180px;                  /* JS remplace dynamiquement */
  gap: 10px;
  align-content: start;
  transition: opacity 0.24s ease, transform 0.26s ease;
}

/* Flèches de pagination — dans le flux flex, jamais en overlap */
.dvd-arrow {
  flex-shrink: 0;
  width: 32px;
  height: 56px;
  border-radius: var(--radius-s);
  background:
    linear-gradient(180deg, rgba(56, 189, 248, 0.2), rgba(14, 116, 144, 0.1)),
    rgba(9, 12, 21, 0.94);
  border: 1px solid rgba(56, 189, 248, 0.58);
  color: #7dd3fc;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow:
    0 0 0 1px rgba(56, 189, 248, 0.08) inset,
    0 0 18px rgba(14, 165, 233, 0.2);
  transition:
    color var(--ease),
    border-color var(--ease),
    background var(--ease),
    box-shadow var(--ease),
    transform var(--ease);
  font-family: inherit;
  animation: dev-pagination-beacon 2.4s ease-in-out infinite;
}
.dvd-arrow:hover {
  background:
    linear-gradient(180deg, rgba(56, 189, 248, 0.36), rgba(14, 116, 144, 0.18)),
    rgba(9, 12, 21, 0.98);
  border-color: #7dd3fc;
  color: #e0f2fe;
  box-shadow:
    0 0 0 1px rgba(125, 211, 252, 0.18) inset,
    0 0 26px rgba(14, 165, 233, 0.42);
  transform: translateY(-1px);
  animation-play-state: paused;
}
.dvd-arrow:active {
  transform: translateY(1px) scale(0.96);
}
.dvd-arrow:focus-visible {
  outline: 2px solid #7dd3fc;
  outline-offset: 3px;
}
@keyframes dev-pagination-beacon {
  0%, 100% {
    border-color: rgba(56, 189, 248, 0.48);
    box-shadow:
      0 0 0 1px rgba(56, 189, 248, 0.06) inset,
      0 0 12px rgba(14, 165, 233, 0.14);
  }
  50% {
    border-color: rgba(125, 211, 252, 0.9);
    box-shadow:
      0 0 0 1px rgba(125, 211, 252, 0.16) inset,
      0 0 24px rgba(14, 165, 233, 0.36);
  }
}
@media (prefers-reduced-motion: reduce) {
  .dvd-arrow {
    animation: none;
  }
}
/* hidden : espace réservé mais invisible — la grille garde la même largeur */
.dvd-arrow[hidden] {
  display: flex;
  visibility: hidden;
  pointer-events: none;
  animation: none;
}

/* ─── VIGNETTE PROJET ──────────────────────────── */
.jacket {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-s);
  overflow: hidden;
  cursor: pointer;
  user-select: none;
  background: #0d0d1a;
  box-shadow:
    0 3px 10px rgba(0, 0, 0, 0.55),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  transition:
    transform  0.22s cubic-bezier(0.34, 1.2, 0.64, 1),
    box-shadow 0.22s ease,
    opacity    0.18s ease;
}
.jacket:hover {
  transform: translateY(-5px) scale(1.04);
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.72),
    0 0 20px var(--jacket-glow, rgba(139, 92, 246, 0.22)),
    inset 0 0 0 1px rgba(255, 255, 255, 0.09);
  z-index: 2;
}
.jacket:focus-visible {
  outline: 2px solid rgba(139, 92, 246, 0.65);
  outline-offset: 3px;
}
.jacket.is-dimmed {
  opacity: 0.1;
  transform: scale(0.97);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.jacket.is-selected {
  transform: scale(1.05);
  z-index: 3;
  transition: transform 0.18s cubic-bezier(0.34, 1.5, 0.64, 1);
}

.jacket__cover {
  width: 100%;
  height: 100%;
}
.jacket__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Fallback : gradient + titre + client */
.jacket__fallback {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 14px 10px;
  background:
    radial-gradient(ellipse 90% 70% at 25% 25%, rgba(255,255,255,0.07) 0%, transparent 65%),
    linear-gradient(150deg, var(--jacket-color, #7c3aed) 0%, rgba(0,0,0,0.72) 100%);
}
.jacket__fallback-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
  color: rgba(255, 255, 255, 0.92);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  line-height: 1.38;
  word-break: break-word;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.65);
}
.jacket__fallback-client {
  font-size: 0.57rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.42);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
}

/* Reflet glacé */
.jacket__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    130deg,
    rgba(255, 255, 255, 0.07) 0%,
    rgba(255, 255, 255, 0.01) 35%,
    transparent 58%
  );
  pointer-events: none;
}

/* Overlay titre au survol */
.jacket__title-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 26px 10px 8px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.88));
  transform: translateY(100%);
  transition: transform 0.2s ease;
  pointer-events: none;
}
.jacket:hover .jacket__title-overlay {
  transform: translateY(0);
}
.jacket__title-text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  text-align: center;
  letter-spacing: 0.04em;
  line-height: 1.3;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

/* ─── ZONE COUVERTURE (panneau détail) ─────────── */
.project-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  z-index: 10;
  transition: opacity 0.22s ease;
}
.project-cover.is-visible {
  opacity: 1;
  pointer-events: all;
}

/* ─── DETAIL PANEL (vue détail complète) ──────── */
.detail-panel {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-l);
  overflow: hidden;
  background: var(--c-card);
  border: 1px solid rgba(255,255,255,0.06);
  display: flex;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.38s cubic-bezier(0.34, 1.5, 0.64, 1);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.78),
    0 0  48px var(--cover-glow, rgba(139, 92, 246, 0.3));
}
.detail-panel.is-open { transform: scaleX(1); }

.detail-panel__light {
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, rgba(255,255,255,0.025) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}

.detail-panel__close {
  position: absolute;
  top: 11px; right: 11px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.7);
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--ease);
  z-index: 10;
  font-family: inherit;
}
.detail-panel__close:hover {
  background: rgba(0,0,0,0.72);
  color: #fff;
  border-color: rgba(255,255,255,0.3);
  transform: scale(1.1);
}

/* Colonne unique — contenu */
.detail-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.detail-right__header {
  flex-shrink: 0;
  padding: 20px 52px 16px 30px; /* right: 52px = espace pour le bouton × */
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.detail-header__info { flex: 1; min-width: 0; }

.detail-cats { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 9px; }

/* Liens — ancrés à droite dans l'en-tête */
.detail-links {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.detail-link-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: var(--radius-s);
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.8);
  font-size: 0.73rem;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--ease);
  font-family: var(--font);
  white-space: nowrap;
}
.detail-link-btn:hover {
  background: rgba(0,0,0,0.55);
  border-color: rgba(255,255,255,0.22);
  color: #fff;
  transform: translateY(-1px);
}
.detail-link-btn__icon {
  width: 14px; height: 14px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.detail-link-btn__icon svg { width: 14px; height: 14px; }

.detail-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--c-text);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.detail-year {
  font-size: 0.67rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-text-3);
}

.detail-client {
  margin-top: 7px;
}

.detail-client-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--radius-s);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--c-text-2);
  letter-spacing: 0.05em;
}

.detail-client-logo {
  height: 16px;
  width: auto;
  object-fit: contain;
  opacity: 0.72;
  filter: brightness(1.3);
}

.detail-right__scroll {
  flex: 1;
  overflow-y: auto;
  padding: 16px 30px 22px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  scrollbar-width: thin;
  scrollbar-color: rgba(139, 92, 246, 0.3) transparent;
}
.detail-right__scroll::-webkit-scrollbar       { width: 4px; }
.detail-right__scroll::-webkit-scrollbar-track { background: transparent; }
.detail-right__scroll::-webkit-scrollbar-thumb { background: rgba(139, 92, 246, 0.3); border-radius: 2px; }

/* ─── BODY : jacket + textes ──────────────────── */
.detail-body {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.detail-jacket {
  flex: 0 0 130px;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-s);
  overflow: hidden;
  background: var(--c-bg);
  flex-shrink: 0;
}
.detail-jacket img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.detail-jacket__placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(
    140deg,
    var(--cover-color, var(--c-accent)) 0%,
    rgba(0, 0, 0, 0.6) 100%
  );
  opacity: 0.28;
}

.detail-body__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.detail-section__label {
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cover-color, var(--c-accent));
  margin-bottom: 5px;
}
.detail-section__text {
  font-size: 0.86rem;
  line-height: 1.74;
  color: var(--c-text-2);
}

/* ─── MEDIA : carrousel + vidéo côte à côte ──── */
.detail-no-media {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--c-border);
  border-radius: var(--radius-s);
  padding: 24px;
  text-align: center;
}
.detail-no-media p {
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--c-text-3);
  font-style: italic;
  max-width: 340px;
}

.detail-media {
  flex: 1;
  min-height: 0;
  display: flex;
  gap: 16px;
  align-items: stretch;
}

.detail-carousel,
.detail-video,
.detail-videos {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* Colonne vidéos — thumbnails cliquables */
.detail-videos { gap: 10px; overflow-y: auto; }

.detail-video-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-s);
  overflow: hidden;
  cursor: pointer;
  background: var(--c-bg);
  flex-shrink: 0;
  outline: none;
}
.detail-video-thumb img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.3s ease;
}
.detail-video-thumb:hover img,
.detail-video-thumb:focus-visible img { transform: scale(1.04); }

.detail-video-play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  transition: background var(--ease);
}
.detail-video-thumb:hover .detail-video-play,
.detail-video-thumb:focus-visible .detail-video-play { background: rgba(0, 0, 0, 0.55); }
.detail-video-play svg {
  width: 52px; height: 52px; color: #fff;
  filter: drop-shadow(0 2px 14px rgba(0,0,0,0.75));
  transition: transform var(--ease);
}
.detail-video-thumb:hover .detail-video-play svg { transform: scale(1.14); }

/* Carrousel */
.detail-carousel__track {
  flex: 1;
  min-height: 0;
  position: relative;
  border-radius: var(--radius-s);
  overflow: hidden;
  background: var(--c-bg);
  cursor: zoom-in;
}
.detail-carousel__item {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.detail-carousel__item.is-active {
  opacity: 1;
  pointer-events: auto;
}
.detail-carousel__item img { width: 100%; height: 100%; object-fit: cover; display: block; }

.detail-carousel__dots {
  flex-shrink: 0;
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 8px;
}
.carousel-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all var(--ease);
}
.carousel-dot.is-active {
  background: var(--cover-color, var(--c-accent));
  transform: scale(1.4);
}
.carousel-dot:hover:not(.is-active) { background: rgba(255,255,255,0.35); }

/* Vidéo intégrée */
.detail-video__frame {
  flex: 1;
  min-height: 0;
  position: relative;
  border-radius: var(--radius-s);
  overflow: hidden;
  background: var(--c-bg);
}
.detail-video__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: none;
}
.cover-cat-tag {
  padding: 3px 9px;
  border-radius: 99px;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: rgba(0,0,0,0.22);
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.82);
}

/* ─── LIGHTBOX ────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
  cursor: zoom-out;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.lightbox.is-open {
  opacity: 1;
  pointer-events: all;
}
.lightbox__img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: var(--radius-s);
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.8);
  cursor: default;
}
.lightbox__close {
  position: absolute;
  top: 18px; right: 22px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--ease);
}
.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  transform: scale(1.1);
}
/* ─── VIDEO LIGHTBOX (élément indépendant) ──── */
.video-lightbox {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.92);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.video-lightbox.is-open {
  opacity: 1;
  pointer-events: all;
}
.video-lightbox__close {
  position: absolute;
  top: 18px; right: 22px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all var(--ease);
  z-index: 1;
}
.video-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  transform: scale(1.1);
}
.video-lightbox__frame {
  width: min(90vw, 960px);
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-s);
  overflow: hidden;
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.8);
}
.video-lightbox__frame iframe {
  width: 100%; height: 100%;
  border: none; display: block;
}

.lightbox__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--ease), transform var(--ease);
  z-index: 2;
}
.lightbox__arrow:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-50%) scale(1.1);
}
.lightbox__arrow--prev { left: 20px; }
.lightbox__arrow--next { right: 20px; }
.lightbox__arrow svg   { width: 22px; height: 22px; pointer-events: none; }
.lightbox__counter {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.65);
  background: rgba(0, 0, 0, 0.45);
  padding: 3px 12px;
  border-radius: 99px;
  font-family: var(--font);
  letter-spacing: 0.04em;
  pointer-events: none;
}

/* (spine-tooltip supprimé — remplacé par jaquettes) */

/* ═══════════════════════════════════════════════════
   NAVIGATION ENTRE PROJETS (flèches PC)
   ═══════════════════════════════════════════════════ */
.proj-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  width: 76px;
  padding: 10px 6px 12px;
  background: rgba(10, 10, 18, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  z-index: 5;
  opacity: 0;
  transition: opacity 0.22s ease, border-color 0.22s ease;
}
.project-cover.is-visible .proj-nav { opacity: 0.5; }
.proj-nav:hover { opacity: 1 !important; border-color: rgba(255, 255, 255, 0.2); }
.proj-nav--prev { left: 10px; }
.proj-nav--next { right: 10px; }

.proj-nav__jacket {
  width: 54px;
  aspect-ratio: 3 / 4;
  border-radius: 5px;
  overflow: hidden;
  background: var(--c-bg-2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}
.proj-nav__jacket img { width: 100%; height: 100%; object-fit: cover; display: block; }
.proj-nav__fallback   { width: 100%; height: 100%; background: var(--c-bg-2); }

.proj-nav svg { width: 15px; height: 15px; color: rgba(255,255,255,0.45); flex-shrink: 0; }
.proj-nav:hover svg { color: rgba(255,255,255,0.9); }

.proj-nav__title {
  font-size: 0.58rem;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
  line-height: 1.35;
  max-width: 66px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: var(--font);
}
.proj-nav:hover .proj-nav__title { color: rgba(255,255,255,0.75); }

/* Masquer les flèches si pas assez de place */
@media (max-width: 999px) {
  .proj-nav { display: none; }
}

/* Décaler le panneau pour laisser la place aux flèches à l'extérieur */
@media (min-width: 1000px) {
  .project-cover.has-prev .detail-panel { left: 92px; }
  .project-cover.has-next .detail-panel { right: 92px; }
}

/* ═══════════════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════════════ */
.section--contact { background: var(--c-bg); }

.contact__layout {
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: 72px;
  align-items: start;
}

.contact__text {
  color: var(--c-text-2);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-top: -4px;
}

/* Formulaire */
.contact-form { display: flex; flex-direction: column; gap: 14px; }

.form-row--2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-group { display: flex; flex-direction: column; gap: 5px; }

.form-label {
  font-size: 0.79rem;
  font-weight: 500;
  color: var(--c-text-2);
  letter-spacing: 0.02em;
}

.form-input {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-s);
  padding: 11px 15px;
  font-size: 0.88rem;
  font-family: inherit;
  color: var(--c-text);
  transition: border-color var(--ease), box-shadow var(--ease);
  outline: none;
}
.form-input::placeholder { color: var(--c-text-3); }
.form-input:focus {
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.14);
}

.form-textarea { resize: vertical; min-height: 118px; }

.form-feedback {
  font-size: 0.83rem;
  min-height: 18px;
  text-align: center;
  transition: all var(--ease);
}
.form-feedback.ok  { color: #4ade80; }
.form-feedback.err { color: #f87171; }

/* ── FORMSPREE SDK ──────────────────────────── */
.fs-success {
  display: none;
  padding: 14px 18px;
  border-radius: var(--radius-s);
  background: rgba(74, 222, 128, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.22);
  color: #4ade80;
  font-size: 0.88rem;
  text-align: center;
  margin-bottom: 16px;
}

.fs-error-global {
  display: none;
  padding: 10px 14px;
  border-radius: var(--radius-s);
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.2);
  color: #f87171;
  font-size: 0.83rem;
  text-align: center;
  margin-bottom: 12px;
}

.fs-error-field {
  display: none;
  font-size: 0.74rem;
  color: #f87171;
  margin-top: 4px;
}

.form-input[aria-invalid="true"] {
  border-color: rgba(248, 113, 113, 0.55);
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.1);
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════ */

/* Filter wrap/toggle — transparent sur desktop */
.projects__filters-wrap { display: contents; }
.projects__filter-toggle { display: none; }

/* Tablette */
@media (max-width: 1024px) {
  .about__layout    { gap: 44px; }
  .avatar-frame     { width: 190px; }
  .contact__layout  { gap: 44px; }

  /* Services : grille déjà 2 colonnes — pas d'override nécessaire */
}

/* Mobile */
@media (max-width: 768px) {
  :root { --navbar-height: 56px; }

  /* Burger visible, liens cachés par défaut */
  .navbar__burger { display: flex; }
  .navbar__links  {
    position: absolute;
    top: var(--navbar-height);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(9, 9, 16, 0.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--c-border);
    padding: 10px 12px 14px;
    gap: 2px;
    display: none;
  }
  .navbar__links.is-open { display: flex; }
  .navbar__link { padding: 11px 16px; font-size: 0.92rem; }

  /* Scroll normal : scroll-margin-top décale l'ancre sous la nav */
  .section {
    min-height: 100svh;
    scroll-margin-top: var(--navbar-height);
  }
  .section__inner { padding-top: calc(var(--navbar-height) + 28px); padding-bottom: 44px; }

  /* About */
  .about__layout {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }
  .about__layout .avatar-frame { margin: 0 auto; width: 160px; }
  .tag-list { justify-content: center; }

  /* ── SERVICES — mobile : grille 2×2 ─────────── */
  .section--services .section__inner {
    padding-top: calc(var(--navbar-height) + 16px);
    padding-bottom: 30px;
  }
  .section--services .section__head { margin-bottom: 20px; }
  .services-intro { margin-top: -8px; font-size: 0.86rem; }
  .service-offers { grid-template-columns: 1fr; gap: 14px; }
  .service-offer { min-height: 0; padding: 22px 20px; }
  .service-offer__features { grid-template-columns: 1fr; margin-bottom: 18px; }
  .service-offer__features li { padding-top: 7px; padding-bottom: 7px; }
  .clients-ticker-wrap { margin-top: 26px; }
  .clients-ticker__logo { height: 42px; }
  .clients-ticker__track { gap: 40px; }
  .services-arena { min-height: 200px; }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
    gap: 12px;
    height: auto;
  }
  .svc-module {
    padding: 20px 14px 34px;
    justify-content: flex-start;
  }
  .svc-module__icon { width: 44px; height: 44px; margin-bottom: 12px; }
  .svc-module__icon svg { width: 22px; height: 22px; }
  .svc-module__title { font-size: 0.9rem; margin-bottom: 8px; }

  .svc-detail__body {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }
  .svc-detail__left {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    overflow-y: visible;
  }
  .svc-detail__right { overflow-y: visible; }
  .svc-detail__header-title { font-size: 1rem; }
  .svc-dvds { grid-template-columns: repeat(2, 1fr); }

  /* ── PROJECTS — mobile : pagination dynamique ── */
  .section--projects {
    height: 100svh;
    min-height: unset;
  }
  .section--projects .section__inner {
    padding-top: calc(var(--navbar-height) + 10px);
    padding-bottom: 8px;
  }
  .projects__header { margin-bottom: 0; }
  .projects__header .eyebrow { margin-bottom: 4px; }
  .projects__header .section__title { font-size: 1.25rem; margin-bottom: 0; }

  /* Filtres — dropdown compact sur mobile */
  .projects__filters-wrap {
    display: flex;
    flex-direction: column;
    position: relative;
    flex-shrink: 0;
    margin-bottom: 8px;
    align-items: flex-start;
  }
  .projects__filter-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 13px;
    border-radius: 99px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    border: 1.5px solid var(--c-border-hi);
    color: var(--c-accent-hi);
    background: rgba(139, 92, 246, 0.09);
    cursor: pointer;
    font-family: var(--font);
    transition: all var(--ease);
  }
  .projects__filter-toggle:hover,
  .projects__filter-toggle.is-open {
    background: rgba(139, 92, 246, 0.16);
    border-color: var(--c-accent);
  }
  .filter-toggle__chevron { transition: transform var(--ease); }
  .projects__filter-toggle.is-open .filter-toggle__chevron { transform: rotate(180deg); }

  .projects__filters {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 240px;
    flex-direction: column;
    gap: 3px;
    background: rgba(9, 9, 16, 0.97);
    border: 1px solid var(--c-border-hi);
    border-radius: var(--radius);
    padding: 8px;
    z-index: 50;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55);
    margin-bottom: 0;
  }
  .projects__filters.is-open { display: flex; }
  .filter-btn {
    width: 100%;
    border-radius: var(--radius-s);
    padding: 8px 12px;
    text-align: left;
    justify-content: flex-start;
  }

  /* Wall — pagination activée sur mobile, flèches visibles */
  .dvd-wall-wrapper { gap: 4px; }
  .dvd-wall { overflow: hidden; height: 100%; }
  .dvd-grid { gap: 8px; }
  .dvd-arrow { width: 24px; height: 40px; }
  .dvd-arrow[hidden] { display: flex; visibility: hidden; pointer-events: none; }

  /* ── DÉTAIL PROJET — hauteur naturelle sur mobile ── */
  /* La couverture devient scrollable et aligne le panneau en haut */
  .project-cover { align-items: flex-start; overflow-y: auto; }
  /* Le panneau s'insère dans le flux (hauteur naturelle, pas de scaleX) */
  .detail-panel {
    position: relative;
    inset: auto;
    width: 100%;
    transform: none;
    border-radius: var(--radius-s);
    transition: opacity 0.28s ease;
    opacity: 0;
  }
  .detail-panel.is-open { transform: none; opacity: 1; }
  .detail-right { overflow: visible; }
  .detail-right__header    { padding: 14px 48px 12px 18px; gap: 14px; }
  .detail-right__scroll    { flex: none; overflow-y: visible; padding: 12px 18px 20px; gap: 16px; }
  .detail-title            { font-size: 1.1rem; }
  .detail-body             { flex-direction: column; }
  .detail-jacket           { flex: none; width: 100%; max-width: 180px; aspect-ratio: 3 / 4; }
  .detail-media            { flex: none; flex-direction: column; }
  .detail-carousel,
  .detail-video,
  .detail-videos           { flex: none; }
  .detail-carousel__track  { flex: none; aspect-ratio: 16 / 9; }
  .detail-video__frame     { flex: none; aspect-ratio: 16 / 9; }
  .detail-video-thumb      { flex-shrink: 0; }

  /* Contact */
  .contact__layout { grid-template-columns: 1fr; gap: 28px; }
  .form-row--2     { grid-template-columns: 1fr; }
}

/* Petit mobile */
@media (max-width: 440px) {
  .section__inner { padding-left: 16px; padding-right: 16px; }
  .hero__actions { flex-direction: column; width: 100%; max-width: 260px; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .hero__title { font-size: clamp(2.15rem, 11vw, 3rem); }
  .hero__subtitle { max-width: 330px; font-size: 0.9rem; }
  .hero-scroll-cue { bottom: 12px; }
  .hero-scroll-cue span { font-size: 0.62rem; }
}

/* Très petit écran */
@media (max-width: 480px) {
  /* Services : cache la description si l'espace est limité */
  .svc-module__desc { display: none; }

  .detail-right__header { padding: 12px 44px 10px 14px; flex-wrap: wrap; gap: 10px; }
  .detail-links         { flex-direction: row; flex-wrap: wrap; gap: 5px; }
  .detail-link-btn      { padding: 5px 8px; font-size: 0.68rem; }
  .detail-right__scroll { padding: 10px 14px 16px; }
  .detail-jacket        { max-width: 100%; }
}

/* Écrans très étroits */
@media (max-width: 380px) {
  .section__inner { padding-left: 14px; padding-right: 14px; }
  .svc-module { padding: 16px 12px 30px; }
  .svc-module__title { font-size: 0.82rem; }
}

/* Identité d'interaction : curseurs desktop et barres de défilement Magic Hat Dev. */
html {
  scrollbar-width: thin;
  scrollbar-color: rgba(56, 189, 248, .76) #090910;
}

* {
  scrollbar-color: rgba(56, 189, 248, .6) rgba(9, 9, 16, .88);
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  background: #090910;
}

*::-webkit-scrollbar-thumb {
  min-height: 42px;
  border: 2px solid #090910;
  border-radius: 999px;
  background: linear-gradient(180deg, #7dd3fc, #0ea5e9);
  box-shadow: 0 0 12px rgba(56, 189, 248, .32);
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #bae6fd, #38bdf8);
}

@media (hover: hover) and (pointer: fine) {
  html,
  body,
  .scroll-container {
    cursor: url("ui/cursor-default.png") 3 2, auto;
  }

  body :is(a[href], button:not(:disabled), [role="button"]:not([aria-disabled="true"]), summary, label[for], select, input[type="checkbox"], input[type="radio"], input[type="range"], input[type="button"], input[type="submit"], input[type="reset"]) {
    cursor: url("ui/cursor-action.png") 16 16, pointer !important;
  }

  body :is(input:not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]), textarea, [contenteditable="true"]) {
    cursor: text !important;
  }

  body :is(button:disabled, [aria-disabled="true"]) {
    cursor: not-allowed !important;
  }
}
