/* =========================================================
   glasz — Creative Production Studio
   Stylesheet
   ========================================================= */

@font-face {
  font-family: 'Onest';
  src: url('../fonts/Onest-var.woff2') format('woff2-variations'),
       url('../fonts/Onest-var.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Benzin';
  src: url('../fonts/Benzin-Bold.woff2') format('woff2');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --white: #ffffff;
  --grey: #f5f5f5;
  --grey-2: #e7e5e2;
  --ink: #55545a;
  --ink-soft: #8a8990;
  --black: #0a0a0d;
  --black-soft: #131217;
  --black-elev: #1b1a20;
  --red: #ff0a3d;
  --red-dim: #c40830;
  --red-deep: #3d0313;
  --red-ghost: rgba(255, 10, 61, 0.12);

  --font-display: 'Benzin', 'Arial Black', sans-serif;
  --font-body: 'Onest', 'Helvetica Neue', Arial, sans-serif;

  --container: 1320px;
  --pad: clamp(20px, 5vw, 64px);
  --gap: clamp(16px, 2.4vw, 32px);
  --ease: cubic-bezier(0.16, 0.84, 0.44, 1);
  --radius: 3px;

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Reset ---------- */
* , *::before, *::after { box-sizing: border-box; }
/* Components below set explicit display values, which would otherwise beat the
   UA rule for [hidden] and leave "hidden" elements on screen. */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, figure { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }

body {
  background: var(--white);
  color: var(--black);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body.no-scroll { overflow: hidden; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad);
}

section { position: relative; }

.section { padding-block: clamp(64px, 11vw, 150px); }
.section-tight { padding-block: clamp(48px, 7vw, 96px); }
.bg-black { background: var(--black); color: var(--white); }
.bg-white { background: var(--white); color: var(--black); }
.bg-grey { background: var(--grey); color: var(--black); }
.bg-red { background: var(--red); color: var(--black); }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--red);
  border-radius: 1px;
  flex-shrink: 0;
}
.eyebrow--light { color: rgba(255, 255, 255, 0.72); }
.eyebrow--on-red { color: rgba(10, 10, 13, 0.6); }
.eyebrow--on-red::before { background: var(--black); }
.eyebrow--center { justify-content: center; }

.accent { color: var(--red); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.h-display {
  font-size: clamp(2.4rem, 5.4vw, 4.6rem);
  font-weight: 800;
}

.h-section {
  font-size: clamp(1.7rem, 3.4vw, 2.9rem);
  font-weight: 700;
}

.lead {
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  color: var(--ink);
  max-width: 46ch;
}
.lead--light { color: rgba(255, 255, 255, 0.68); }

.statement {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(1.6rem, 3.1vw, 2.7rem);
  line-height: 1.18;
  letter-spacing: -0.005em;
}

/* Giant wordmark */
.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(4.5rem, 19vw, 15rem);
  line-height: 0.78;
  letter-spacing: -0.03em;
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
}
.wordmark--ghost { color: rgba(255, 255, 255, 0.06); }
.wordmark--on-red { color: rgba(10, 10, 13, 0.14); }
.wordmark--white { color: var(--white); }
.wordmark--black { color: var(--black); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0.95em 1.8em;
  border-radius: 100px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform 0.35s var(--ease), background-color 0.3s ease, color 0.3s ease, box-shadow 0.35s var(--ease);
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 10px 24px -10px rgba(10, 10, 13, 0.4); }
.btn:active { transform: translateY(-1px); box-shadow: 0 4px 12px -6px rgba(10, 10, 13, 0.35); transition-duration: 0.12s; }

.btn-light { background: var(--white); color: var(--black); }
.btn-light:hover { background: var(--red); color: var(--white); }

.btn-outline {
  background: transparent;
  color: currentColor;
  box-shadow: inset 0 0 0 1.5px currentColor;
}
.btn-outline:hover { background: var(--black); color: var(--white); box-shadow: inset 0 0 0 1.5px var(--black), 0 10px 24px -10px rgba(10, 10, 13, 0.4); }

.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: var(--red); color: var(--white); box-shadow: 0 10px 24px -10px rgba(255, 10, 61, 0.5); }

.icon-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1.5px currentColor;
  flex-shrink: 0;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.icon-btn:hover { background: currentColor; transform: translateY(-2px) scale(1.06); box-shadow: 0 8px 18px -8px rgba(10, 10, 13, 0.35); }
.icon-btn:active { transform: translateY(0) scale(0.97); }
.icon-btn:hover svg { color: var(--black); }
.icon-btn svg { width: 16px; height: 16px; transition: color 0.3s ease; }

.social-row { display: flex; gap: 10px; }
.social-row a {
  width: 38px; height: 38px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 1.5px currentColor;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.social-row a:hover { background: var(--red); box-shadow: inset 0 0 0 1.5px var(--red); color: var(--white); }
.social-row svg { width: 14px; height: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  padding-block: clamp(18px, 2.6vw, 28px);
  color: var(--white);
  transition: background-color 0.4s ease, padding 0.4s ease, box-shadow .4s ease;
}
.site-header.is-scrolled {
  background: rgba(10, 10, 13, 0.86);
  backdrop-filter: blur(14px);
  padding-block: 16px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}
.site-header.is-dark-page { color: var(--black); }
.site-header.is-dark-page.is-scrolled { color: var(--white); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.logo .mark { height: 44px; width: auto; object-fit: contain; }

.nav-desktop { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 40px); }
.nav-desktop a {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  position: relative;
  padding-block: 4px;
}
.nav-desktop a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 1.5px;
  background: currentColor;
  transition: right 0.35s var(--ease);
}
.nav-desktop a:hover::after { right: 0; }

.header-actions { display: flex; align-items: center; gap: 18px; }
.header-actions .btn { padding: 0.8em 1.5em; }

.menu-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: 50%;
  align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 1.5px currentColor;
  flex-shrink: 0;
  transition: background-color 0.3s ease, transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.menu-toggle:hover { background: var(--red); box-shadow: inset 0 0 0 1.5px var(--red), 0 8px 18px -8px rgba(255, 10, 61, 0.45); transform: translateY(-2px); }
.menu-toggle:hover span,
.menu-toggle:hover span::before,
.menu-toggle:hover span::after { background: var(--white); }
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  content: '';
  display: block;
  width: 16px; height: 1.5px;
  background: currentColor;
  position: relative;
  transition: transform 0.3s ease, opacity .3s ease, background-color 0.3s ease;
}
.menu-toggle span::before { position: absolute; top: -5px; }
.menu-toggle span::after { position: absolute; top: 5px; }

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--red);
  color: var(--black);
  display: flex;
  flex-direction: column;
  padding: 22px var(--pad) 40px;
  transform: translateY(-100%);
  transition: transform 0.55s var(--ease);
}
.mobile-menu.is-open { transform: translateY(0); }

.mobile-menu-top { display: flex; align-items: center; justify-content: space-between; }
.menu-close {
  width: 42px; height: 42px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 1.5px currentColor;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.35s var(--ease);
}
.menu-close:hover { background: var(--black); color: var(--white); transform: translateY(-2px) rotate(90deg); }
.menu-close svg { width: 16px; height: 16px; }

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: auto 0;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(2rem, 9vw, 3rem);
  padding-block: 8px;
  letter-spacing: -0.01em;
}

.mobile-menu-foot { display: flex; flex-direction: column; gap: 22px; }
.mobile-menu-foot p { max-width: 30ch; font-weight: 600; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background: linear-gradient(178deg, #8f0c20 0%, #7c0a1c 48%, #5e0715 100%);
  color: var(--white);
  padding-top: clamp(108px, 13vh, 156px);
}

/* Centered portrait, sitting behind the copy and behind the wordmark */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(178deg, rgba(90, 8, 22, 0.55) 0%, rgba(90, 8, 22, 0.18) 30%, rgba(60, 5, 13, 0.55) 72%, rgba(30, 2, 6, 0.94) 100%),
    radial-gradient(58% 52% at 50% 30%, rgba(255, 90, 110, 0.18), transparent 70%);
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.28;
  mix-blend-mode: overlay;
}
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 22%;
}
/* Illustrated silhouette — still used on team.html's hero */
.hero-figure {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(58%, 760px);
  filter: drop-shadow(0 30px 80px rgba(40, 0, 8, 0.5));
}
.hero-figure .fig-body { fill: url(#figFill); }
.hero-figure .fig-rim { fill: none; stroke: url(#figRim); stroke-width: 1.6; }

.hero-content {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  align-items: start;
  flex: 1;
}

.hero-left { display: flex; flex-direction: column; gap: clamp(18px, 3.2vh, 36px); min-width: 0; }
.hero-title {
  font-size: clamp(1.5rem, 3.1vw, 2.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
}
.hero-note {
  max-width: 26ch;
  font-size: clamp(0.6rem, 0.68vw, 0.7rem);
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.hero-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: end;
  gap: clamp(22px, 3.6vh, 40px);
  min-width: 0;
  margin-left: auto;
  max-width: 30ch;
  padding-bottom: clamp(24px, 6vh, 72px);
}
.hero-tagline {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  font-size: clamp(0.78rem, 0.98vw, 0.95rem);
  line-height: 1.45;
}
.hero-right .btn { padding: 1.15em 2.6em; }

/* Bottom block: the giant wordmark alone */
.hero-foot { position: relative; z-index: 3; }

/* The wordmark bleeds edge to edge and is cropped by the bottom of the hero */
.hero-wordmark-wrap {
  overflow: hidden;
  line-height: 0;
  padding-inline: clamp(10px, 1.6vw, 22px);
}
/* --wm-size is tuned per page so the word spans the full width whatever its length */
.hero-wordmark-wrap .wordmark {
  display: block;
  color: var(--white);
  text-transform: uppercase;
  font-size: var(--wm-size, 23.1vw);
  line-height: 0.9;
  letter-spacing: -0.035em;
  margin-bottom: -0.2em;
}

/* ---------- Portrait visual system (illustrated, no photography) ---------- */
.portrait {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 78% 8%, rgba(255, 40, 80, 0.55), transparent 55%),
    radial-gradient(90% 70% at 50% 100%, rgba(0,0,0,0.9), transparent 60%),
    linear-gradient(155deg, #7a0018 0%, #3d0313 46%, #0a0a0d 100%);
}
.portrait__figure {
  position: absolute;
  bottom: -4%;
  left: 50%;
  transform: translateX(-50%);
  width: min(64%, 620px);
  opacity: 0.9;
  filter: drop-shadow(0 40px 60px rgba(0,0,0,0.55));
}
.portrait__figure path { fill: #050506; }
.portrait__figure .rim { fill: none; stroke: rgba(255,255,255,0.14); stroke-width: 0.6; }
.portrait::before {
  content: '';
  position: absolute; inset: 0;
  background-image: var(--grain);
  opacity: 0.5;
  mix-blend-mode: overlay;
}
.portrait::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 50% 100%, transparent 30%, rgba(0,0,0,0.55) 100%);
}
.portrait--card .portrait__figure { width: 74%; bottom: -8%; }

/* small varied tints for repeated cards */
.portrait[data-tint="1"] { background: radial-gradient(120% 90% at 20% 0%, rgba(255,60,90,0.5), transparent 55%), radial-gradient(100% 80% at 50% 100%, rgba(0,0,0,0.92), transparent 60%), linear-gradient(160deg,#69051c 0%, #33020f 50%, #0a0a0d 100%); }
.portrait[data-tint="2"] { background: radial-gradient(120% 90% at 85% 10%, rgba(255,25,70,0.5), transparent 55%), radial-gradient(100% 80% at 50% 100%, rgba(0,0,0,0.92), transparent 60%), linear-gradient(160deg,#5c0417 0%, #2c0410 50%, #0a0a0d 100%); }
.portrait[data-tint="3"] { background: radial-gradient(120% 90% at 50% 0%, rgba(255,60,60,0.45), transparent 55%), radial-gradient(100% 80% at 50% 100%, rgba(0,0,0,0.92), transparent 60%), linear-gradient(165deg,#4c0512 0%, #26030d 50%, #0a0a0d 100%); }

/* Abstract light-streak panels for services / work */
.streak {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #1a0308 0%, #0a0a0d 70%);
}
.streak::before {
  content: '';
  position: absolute;
  inset: -30%;
  background: conic-gradient(from var(--angle, 200deg) at 30% 50%, transparent 0deg, rgba(255,10,61,0.85) 40deg, transparent 90deg, transparent 300deg, rgba(255,80,90,0.5) 340deg, transparent 360deg);
  filter: blur(18px);
  opacity: 0.9;
}
.streak::after {
  content: '';
  position: absolute; inset: 0;
  background-image: var(--grain);
  opacity: 0.35;
  mix-blend-mode: overlay;
}
.streak[data-angle="1"]::before { --angle: 160deg; }
.streak[data-angle="2"]::before { --angle: 240deg; }
.streak[data-angle="3"]::before { --angle: 20deg; }

/* ---------- Marquee-ish tag strip is reused as .hero-tags above ---------- */

/* ---------- About / stats ---------- */
.about-inner { max-width: 920px; margin-inline: auto; text-align: center; }
.about-statement { margin-top: 22px; }

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  margin-top: clamp(48px, 7vw, 84px);
  max-width: 860px;
  margin-inline: auto;
  text-align: center;
}
.stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  color: var(--red);
}
.stat-label {
  margin-top: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- Services ---------- */
.services-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.carousel-controls { display: flex; gap: 10px; flex-shrink: 0; }
.carousel-controls .icon-btn svg { width: 15px; height: 15px; }

.services-track {
  display: flex;
  gap: var(--gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 6px;
  scrollbar-width: none;
}
.services-track::-webkit-scrollbar { display: none; }

.service-card {
  position: relative;
  flex: 0 0 auto;
  width: min(360px, 78vw);
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  scroll-snap-align: start;
  isolation: isolate;
}
.service-card__label {
  position: absolute;
  left: 18px; bottom: 18px;
  z-index: 2;
  padding: 0.7em 1.3em;
  border-radius: 100px;
  background: rgba(10,10,13,0.55);
  backdrop-filter: blur(6px);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.16);
}

/* ---------- Concept split ---------- */
.split {
  display: grid;
  grid-template-columns: 0.62fr 1.38fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.split-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
}
.split-body h2 { margin-bottom: 20px; }
.split-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 26px 0 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
}
.split-brand .mark { height: 36px; width: auto; object-fit: contain; }
.split-brand span small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }

/* ---------- Work grid ---------- */
.work-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}
.work-item { display: flex; flex-direction: column; gap: 16px; }
.work-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
}
.work-caption { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.work-caption strong { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; text-transform: uppercase; }
.work-caption span { font-size: 0.78rem; color: var(--ink-soft); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }

/* ---------- Statement (red) ---------- */
.statement-section { overflow: hidden; padding-bottom: 0; }
.statement-media {
  position: relative;
  aspect-ratio: 16/8;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: clamp(28px, 5vw, 56px);
}
.statement-section .statement { max-width: 18ch; }
.statement-section .wordmark {
  margin-top: clamp(20px, 5vw, 48px);
  color: rgba(10,10,13,0.16);
}

/* ---------- Team teaser / core team shared card ---------- */
.people-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}
.person-card { display: flex; flex-direction: column; gap: 14px; }
.person-visual {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: var(--radius);
  overflow: hidden;
}
.person-social {
  position: absolute;
  right: 10px; bottom: 10px;
  display: flex; gap: 6px;
  z-index: 2;
}
.person-social a {
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(10,10,13,0.5);
  backdrop-filter: blur(6px);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2);
}
.person-social svg { width: 11px; height: 11px; color: var(--white); }
.person-name { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 0.95rem; }
.person-role { font-size: 0.76rem; color: var(--ink-soft); font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; margin-top: 2px; }

.stat-cell {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: 8px 4px;
}
.stat-cell b {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 2.6vw, 2.3rem);
}
.stat-cell span {
  display: block;
  margin-top: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- Testimonial ---------- */
.testimonial-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: clamp(28px,4vw,48px); }
.testimonial-wrap { overflow: hidden; }
.testimonial-track { display: flex; transition: transform 0.6s var(--ease); }
.testimonial-slide {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}
.testimonial-quote {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(1.3rem, 2.6vw, 2.1rem);
  line-height: 1.28;
}
.testimonial-who { margin-top: 22px; font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); }
.testimonial-who strong { color: var(--black); font-weight: 700; }
.testimonial-visual { position: relative; aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden; }

/* ---------- Leadership quote (team page) ---------- */
.leader {
  display: grid;
  grid-template-columns: 0.55fr 1.45fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.leader-visual { position: relative; aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden; }
.leader-name { color: var(--red); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 14px; }
.leader-quote { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: clamp(1.3rem, 2.9vw, 2.3rem); line-height: 1.26; }
.leader-role { margin-top: 20px; font-size: 0.85rem; color: rgba(255,255,255,0.55); max-width: 48ch; }

/* ---------- Philosophy / values cards ---------- */
.philosophy-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); margin-top: clamp(32px,5vw,56px); }
.philosophy-card { position: relative; aspect-ratio: 3/4; border-radius: var(--radius); overflow: hidden; display: flex; align-items: flex-end; padding: 18px; }
.philosophy-card span { position: relative; z-index: 2; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 0.92rem; line-height: 1.25; color: var(--white); }

.values-wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(28px,5vw,64px); align-items: center; }
.values-visual { position: relative; aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; }
.value-row { padding-block: 20px; border-top: 1px solid rgba(255,255,255,0.12); display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.value-row:last-child { border-bottom: 1px solid rgba(255,255,255,0.12); }
.value-row h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
.value-row p { color: rgba(255,255,255,0.5); font-size: 0.85rem; max-width: 34ch; }

/* ---------- CTA ---------- */
.cta-section { overflow: hidden; }
.cta-inner {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  min-height: 480px;
}
.cta-visual { position: relative; }
.cta-body {
  position: relative;
  background: linear-gradient(150deg, var(--red) 0%, #b8072f 100%);
  padding: clamp(32px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  color: var(--black);
}
.cta-body h2 { font-size: clamp(1.8rem, 3.6vw, 2.9rem); max-width: 14ch; }
.cta-body p { max-width: 42ch; color: rgba(10,10,13,0.68); font-weight: 500; }
.cta-body .social-row { margin-top: 8px; color: var(--black); }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  background: var(--black);
  color: var(--white);
  overflow: hidden;
  /* Le footer se détache de la section blanche qui le précède sur les trois
     pages. Seul endroit du site où l'on s'écarte de --radius (3px) : c'est la
     signature du modèle demandé. */
  border-radius: clamp(22px, 4vw, 44px) clamp(22px, 4vw, 44px) 0 0;
}
/* Halo de lumière au centre du bord haut. */
.footer-glow {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 128px;
  background: radial-gradient(35% 128px at 50% 0%, rgba(255,255,255,0.08), transparent);
  pointer-events: none;
}
/* Filet flouté posé sur la couture, au centre. */
.footer-seam {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 33%; height: 2px;
  background: rgba(255,255,255,0.2);
  border-radius: 100px;
  filter: blur(1.5px);
  pointer-events: none;
}

.footer-top {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(32px, 5vw, 64px);
  padding-block: clamp(48px, 7vw, 84px);
}
.footer-brand .logo { font-size: 1.3rem; margin-bottom: 12px; }
.footer-brand p { color: rgba(255,255,255,0.5); max-width: 26ch; font-size: 0.88rem; }
.footer-brand-contact { display: flex; flex-direction: column; gap: 6px; margin-top: 20px; font-size: 0.88rem; }
.footer-brand-contact a { color: rgba(255,255,255,0.78); }
.footer-brand-contact a:hover { color: var(--red); }
.footer-brand-contact address { font-style: normal; color: rgba(255,255,255,0.5); }
.footer-brand .footer-copy { margin-top: 24px; max-width: none; font-size: 0.8rem; color: rgba(255,255,255,0.4); }

.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 32px); }
.footer-col h4 { font-family: var(--font-body); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a, .footer-col address { font-size: 0.9rem; font-style: normal; color: rgba(255,255,255,0.78); }
.footer-col a { display: inline-flex; align-items: center; gap: 7px; transition: color 0.3s ease; }
.footer-col a:hover { color: var(--red); }
.footer-col a svg { width: 15px; height: 15px; flex-shrink: 0; }

.footer-wordmark { position: relative; padding-bottom: clamp(10px, 3vw, 28px); }
.footer-wordmark .wordmark { color: var(--white); }

/* Entrée en scène : flou qui se dissipe + léger glissement, décalé colonne
   par colonne. Branché sur l'observateur .reveal déjà en place (js/main.js). */
.footer-reveal { opacity: 0; transform: translateY(-8px); filter: blur(4px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), filter 0.8s var(--ease); }
.footer-reveal.in-view { opacity: 1; transform: translateY(0); filter: blur(0); }
.footer-reveal:nth-child(1) { transition-delay: 0.1s; }
.footer-reveal:nth-child(2) { transition-delay: 0.2s; }
.footer-reveal:nth-child(3) { transition-delay: 0.3s; }
.footer-reveal:nth-child(4) { transition-delay: 0.4s; }

/* ---------- Header icon extras (account / cart) ---------- */
.icon-btn { position: relative; }
.badge-count {
  position: absolute;
  top: -4px; right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px var(--black);
}
.site-header:not(.is-scrolled):not(.is-dark-page) .badge-count { box-shadow: 0 0 0 2px var(--red-deep); }
.badge-count[hidden] { display: none; }

/* ---------- Billing toggle ---------- */
.billing-toggle {
  position: relative;
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--grey);
  border-radius: 100px;
  margin-bottom: clamp(28px, 4vw, 40px);
}
.billing-thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  height: calc(100% - 8px);
  /* Largeur et décalage réels posés par syncBillingThumb() (js/main.js) :
     « Annuel » porte la pastille −20% et est donc plus large que « Mensuel ».
     Ce 50% n'est qu'un repli avant que le script ne mesure. */
  width: calc(50% - 4px);
  background: var(--black);
  border-radius: 100px;
  transition: transform 0.4s var(--ease), width 0.4s var(--ease);
  z-index: 0;
}
.billing-option {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.7em 1.3em;
  border-radius: 100px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  background: transparent;
  transition: color 0.3s ease;
}
.billing-option:hover:not(.active) { color: var(--black); }
.billing-option.active { color: var(--white); }
.billing-save {
  background: var(--red);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 100px;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.billing-option.active .billing-save { background: var(--white); color: var(--red); }

/* ---------- Pricing ---------- */
.price-was {
  display: block;
  font-size: 0.42em; font-weight: 600; opacity: 0.5;
  text-decoration: line-through;
  white-space: nowrap;
  line-height: 1.2; margin-bottom: 2px;
}
.price-note { font-size: 0.78rem; opacity: 0.7; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  align-items: stretch;
}
.pricing-grid.setup-grid { grid-template-columns: repeat(2, 1fr); max-width: 900px; margin-inline: auto; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--grey-2); }
.faq-item:first-child { border-top: 1px solid var(--grey-2); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  text-align: left;
  font-family: var(--font-body);
  font-size: clamp(0.98rem, 1.4vw, 1.08rem);
  font-weight: 600;
  color: var(--black);
  transition: color 0.25s ease, padding-left 0.25s var(--ease);
}
.faq-q:hover { color: var(--red); padding-left: 10px; }
.faq-q:hover .faq-chevron { color: var(--red); }
.faq-chevron { width: 18px; height: 18px; flex-shrink: 0; color: var(--ink-soft); transition: transform 0.3s var(--ease); }
.faq-item.is-open .faq-chevron { transform: rotate(180deg); color: var(--red); }
.faq-a { padding: 0 32px 24px 4px; }
.faq-a p { color: var(--ink); font-size: 0.96rem; line-height: 1.6; max-width: 62ch; }
.pricing-card {
  position: relative;
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius);
  padding: clamp(26px, 3vw, 34px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.pricing-card--featured { background: var(--red); color: var(--black); }
.pricing-badge {
  position: absolute;
  display: inline-flex; align-items: center; gap: 5px;
  top: 22px; right: 22px;
  background: var(--black);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 100px;
}
.pricing-top { display: flex; flex-direction: column; gap: 6px; }
.founder-badge {
  display: inline-flex;
  align-self: flex-start;
  background: var(--black);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 100px;
  margin-top: 4px;
}
.pricing-card--featured .founder-badge { background: var(--white); color: var(--black); }
.pricing-badge svg { width: 13px; height: 13px; flex-shrink: 0; }
.pricing-name { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 1.1rem; }
.pricing-price { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 3vw, 2.5rem); }
/* Chiffres à chasse fixe : sans ça le prix « saute » pendant qu'il défile. */
.price-amount { font-variant-numeric: tabular-nums; }
/* Les cartes sont mises en scène par Motion (voir js/main.js). Si le script
   ne charge pas, elles restent simplement visibles et bien disposées. */
.pricing-grid { perspective: 1200px; }
.pricing-card { will-change: transform, opacity; }
.pricing-price--custom { font-size: clamp(1.3rem, 1.8vw, 1.6rem); text-transform: uppercase; }
.pricing-price .price-unit { font-family: var(--font-body); font-weight: 600; font-size: 0.85rem; text-transform: lowercase; opacity: 0.6; margin-left: 4px; }
.pricing-desc { font-size: 0.9rem; line-height: 1.55; opacity: 0.78; }
.pricing-features { display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.pricing-features li { font-size: 0.85rem; font-weight: 500; padding-left: 22px; position: relative; }
.pricing-features li::before {
  content: '';
  position: absolute; left: 0; top: 3px;
  width: 15px; height: 15px;
  background-color: var(--red);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") no-repeat center / contain;
}
.pricing-card--featured .pricing-features li::before { background-color: var(--black); }
.pricing-card .btn { margin-top: auto; }
.pricing-card .btn.is-added { background: var(--red); color: var(--white); }
.pricing-card--featured .btn.is-added { background: var(--black); color: var(--white); }
.pricing-card--current { outline: 2px solid var(--red); outline-offset: 3px; }
.pricing-current-badge {
  align-self: flex-start;
  background: #128b48;
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 100px;
}
.pricing-card .btn:disabled { opacity: 0.6; cursor: default; }

/* ---------- Work item cart button ---------- */
.work-item .btn { align-self: flex-start; margin-top: 4px; }

/* ---------- Form fields (auth) ---------- */
.field { display: flex; flex-direction: column; gap: 6px; text-align: left; }
.field-label { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; color: var(--ink-soft); }
.field-input {
  width: 100%;
  padding: 0.85em 1em;
  border-radius: var(--radius);
  border: 1.5px solid var(--grey-2);
  background: var(--white);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.25s ease;
}
.field-input:focus { outline: none; border-color: var(--red); }
.field-note { font-size: 0.78rem; color: var(--ink-soft); }
.field-error { font-size: 0.78rem; color: var(--red); min-height: 1.1em; }
.qr-body { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.qr-image {
  width: 200px; height: 200px;
  border-radius: 16px;
  padding: 16px;
  background: var(--white);
  box-shadow: 0 0 0 2px var(--red), 0 20px 50px rgba(255, 10, 61, 0.25);
}
.qr-code-label {
  font-family: 'SF Mono', 'Menlo', monospace;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.qr-actions { display: flex; gap: 10px; width: 100%; }
.qr-actions .btn { flex: 1; }

/* ---- Variante sombre du modal (QR code) — reprend l'identité de la hero ---- */
.modal-panel.modal-panel--dark { background: var(--black); color: var(--white); }
.modal-panel--dark .modal-close { color: var(--white); }
.modal-panel--dark .modal-close:hover { background: rgba(255, 255, 255, 0.1); }
.modal-panel--dark .auth-title { color: var(--white); }
.modal-panel--dark .auth-sub { color: rgba(255, 255, 255, 0.62); }
.modal-panel--dark .field-label { color: rgba(255, 255, 255, 0.62); }
.modal-panel--dark .field-input {
  background: var(--black-elev);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.16);
}
.modal-panel--dark .btn-outline:hover { background: var(--white); color: var(--black); box-shadow: inset 0 0 0 1.5px var(--white); }

.qr-steps { list-style: none; margin: 8px 0 0; padding: 0; width: 100%; text-align: left; }
.qr-step {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.9rem;
}
.qr-step:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.qr-step-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--red);
  flex-shrink: 0;
  width: 1.4em;
}
.qr-step strong { color: var(--white); }

/* ---------- Drawer (cart) ---------- */
.drawer {
  position: fixed; inset: 0; z-index: 260;
  visibility: hidden;
  pointer-events: none;
}
.drawer.is-open { visibility: visible; pointer-events: auto; }
.drawer-scrim {
  position: absolute; inset: 0;
  background: rgba(10, 10, 13, 0.6);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.drawer.is-open .drawer-scrim { opacity: 1; }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(420px, 92vw);
  background: var(--white);
  color: var(--black);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.5s var(--ease);
  box-shadow: -30px 0 60px rgba(0,0,0,0.3);
}
.drawer.is-open .drawer-panel { transform: translateX(0); }
.drawer.is-confirmed .drawer-foot { display: none; }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--pad);
  border-bottom: 1px solid var(--grey-2);
}
.drawer-head h3 { font-size: 1.05rem; }
.drawer-body { flex: 1; overflow-y: auto; padding: 12px var(--pad); }
.drawer-foot { padding: 20px var(--pad) 26px; border-top: 1px solid var(--grey-2); display: flex; flex-direction: column; gap: 14px; }
.cart-total-row { display: flex; align-items: baseline; justify-content: space-between; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; text-transform: uppercase; }
.drawer-note { font-size: 0.76rem; color: var(--ink-soft); text-align: center; }

.cart-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--grey-2); }
.cart-item-name { font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; text-transform: uppercase; }
.cart-item-period { display: block; margin-top: 2px; font-size: 0.76rem; color: var(--ink-soft); font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; }
.cart-item-price { font-weight: 700; white-space: nowrap; }
.cart-item-remove { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; box-shadow: inset 0 0 0 1.5px var(--grey-2); flex-shrink: 0; transition: background-color 0.2s ease, color 0.2s ease, transform 0.25s var(--ease); }
.cart-item-remove:hover { background: var(--red); color: var(--white); box-shadow: inset 0 0 0 1.5px var(--red); transform: scale(1.08); }
.cart-item-remove svg { width: 12px; height: 12px; }
.cart-empty { padding: 40px 0; text-align: center; color: var(--ink-soft); font-size: 0.9rem; }

.order-confirm { padding: 20px 0; text-align: center; }
.order-confirm svg { width: 44px; height: 44px; color: var(--red); margin: 0 auto 16px; }
.order-confirm h4 { font-size: 1.1rem; margin-bottom: 8px; }
.order-confirm p { font-size: 0.88rem; }

/* ---------- Modal (auth) ---------- */
.modal {
  position: fixed; inset: 0; z-index: 270;
  visibility: hidden; pointer-events: none;
  display: flex; align-items: center; justify-content: center;
  padding: var(--pad);
}
.modal.is-open { visibility: visible; pointer-events: auto; }
.modal-scrim { position: absolute; inset: 0; background: rgba(10,10,13,0.6); opacity: 0; transition: opacity 0.4s ease; }
.modal.is-open .modal-scrim { opacity: 1; }
.modal-panel {
  position: relative;
  width: min(420px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  background: var(--white);
  color: var(--black);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 40px);
  transform: translateY(16px) scale(0.98);
  opacity: 0;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}
.modal.is-open .modal-panel { transform: translateY(0) scale(1); opacity: 1; }
.modal-close { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; }
.modal-close svg { width: 14px; height: 14px; }

.auth-title { font-size: 1.3rem; margin-bottom: 6px; padding-right: 30px; }
.auth-sub { font-size: 0.88rem; margin-bottom: 22px; }
.auth-tabs { display: flex; gap: 6px; padding: 4px; background: var(--grey); border-radius: 100px; margin-bottom: 24px; }
.auth-tab { flex: 1; padding: 0.65em 1em; border-radius: 100px; font-size: 0.82rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em; color: var(--ink-soft); transition: background-color 0.3s ease, color 0.3s ease; }
.auth-tab.active { background: var(--black); color: var(--white); }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-form .btn { width: 100%; margin-top: 4px; }

.account-summary { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding-top: 8px; }
.account-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--red); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 1.4rem;
  margin-bottom: 10px;
}
.account-name { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; text-transform: uppercase; }
.account-email { color: var(--ink-soft); font-size: 0.88rem; margin-bottom: 20px; }
.account-summary .btn { width: 100%; }

/* ---------- Inner page head (compact hero) ---------- */
.page-head {
  position: relative;
  overflow: hidden;
  background: linear-gradient(178deg, #8f0c20 0%, #7c0a1c 55%, #5e0715 100%);
  color: var(--white);
  padding-top: clamp(128px, 17vh, 190px);
  padding-bottom: clamp(48px, 8vh, 96px);
}
.page-head-bg {
  position: absolute;
  inset: 0;
}
.page-head-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 80% at 20% 0%, rgba(255, 90, 110, 0.4), transparent 70%);
}
.page-head-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.28;
  mix-blend-mode: overlay;
}
.page-head-inner { position: relative; z-index: 2; }
.page-title {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(1.7rem, 4.2vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 16px 0 22px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0.65em 1.2em;
  border-radius: 100px;
  background: rgba(10, 10, 13, 0.35);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.bar-switcher {
  position: relative;
  display: inline-block;
  margin-top: 18px;
}
.bar-switcher-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0.6em 0.9em 0.6em 1.2em;
  border-radius: 100px;
  border: none;
  background: rgba(10, 10, 13, 0.35);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  color: var(--white);
  cursor: pointer;
  font-family: var(--font-body);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.bar-switcher-btn:hover,
.bar-switcher-btn:focus-visible {
  background: rgba(10, 10, 13, 0.5);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
  outline: none;
}
.bar-switcher-btn[aria-expanded="true"] {
  background: rgba(10, 10, 13, 0.55);
  box-shadow: inset 0 0 0 1px var(--red);
}
.bar-switcher-eyebrow {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.bar-switcher-current {
  font-size: 0.85rem;
  font-weight: 700;
}
.bar-switcher-chevron {
  width: 14px;
  height: 14px;
  color: rgba(255, 255, 255, 0.6);
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.bar-switcher-btn[aria-expanded="true"] .bar-switcher-chevron { transform: rotate(180deg); color: var(--red); }
.bar-switcher-menu {
  position: fixed;
  z-index: 200;
  width: max-content;
  max-width: 320px;
  padding: 8px;
  border-radius: 16px;
  background: var(--black);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 24px 48px -12px rgba(0, 0, 0, 0.6), 0 0 32px rgba(255, 10, 61, 0.18);
}
.bar-switcher-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 0.7em 0.9em;
  border: none;
  border-radius: 10px;
  background: none;
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.bar-switcher-option:hover,
.bar-switcher-option:focus-visible { background: rgba(255, 255, 255, 0.08); color: var(--white); outline: none; }
.bar-switcher-option-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: transparent;
  flex-shrink: 0;
}
.bar-switcher-option[aria-selected="true"] { color: var(--white); }
.bar-switcher-option[aria-selected="true"] .bar-switcher-option-dot { background: var(--red); box-shadow: 0 0 8px rgba(255, 10, 61, 0.7); }
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffb02e;
  box-shadow: 0 0 0 4px rgba(255, 176, 46, 0.22);
  flex-shrink: 0;
}

/* ---------- Empty / logged-out state ---------- */
.empty-state { max-width: 560px; margin-inline: auto; text-align: center; }
.empty-state > svg { width: 46px; height: 46px; color: var(--red); margin: 0 auto 22px; }
.empty-state h2 { margin-bottom: 14px; }
.empty-state-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

/* ---------- Account panel ---------- */
.account-split {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.account-split > * { min-width: 0; }
.account-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.account-panel {
  background: var(--grey);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 32px);
}
.account-panel-title {
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 20px;
}
.account-list { display: flex; flex-direction: column; gap: 2px; margin-bottom: 26px; }
.account-list > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-block: 12px;
  border-bottom: 1px solid var(--grey-2);
}
.account-list > div:last-child { border-bottom: 0; }
.account-list dt {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.account-list dd {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  text-align: right;
  overflow-wrap: anywhere;
}
.tag-off {
  display: inline-block;
  padding: 0.3em 0.75em;
  border-radius: 100px;
  background: var(--red-ghost);
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.account-panel .btn { width: 100%; }

/* ---------- Locked modules ---------- */
.locked-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.locked-card {
  position: relative;
  border-radius: var(--radius);
  padding: clamp(22px, 2.6vw, 30px);
  background: var(--black-soft);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.locked-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg, transparent 0 9px, rgba(255, 255, 255, 0.022) 9px 18px);
  pointer-events: none;
}
.locked-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--red-ghost);
  color: var(--red);
  margin-bottom: 18px;
}
.locked-icon svg { width: 17px; height: 17px; }
.locked-card h3 {
  font-size: 0.98rem;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.55);
}
.locked-card p {
  font-size: 0.85rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.38);
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  list-style: none;
  margin: 0;
  padding: 0;
}
.step { padding-top: 22px; border-top: 2px solid var(--black); }
.step-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--red);
  margin-bottom: 14px;
}
.step h3 { font-size: 1.05rem; margin-bottom: 10px; }
.step p { font-size: 0.9rem; line-height: 1.6; color: var(--ink); }

/* =========================================================
   Espace abonné (dashboard)
   ========================================================= */
.status-dot--on { background: #2fd07a; box-shadow: 0 0 0 4px rgba(47, 208, 122, 0.22); }

.tag-on {
  display: inline-block;
  padding: 0.3em 0.75em;
  border-radius: 100px;
  background: rgba(47, 208, 122, 0.14);
  color: #128b48;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Section nav */
.dash-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 6px;
  background: var(--grey);
  border-radius: 100px;
  scrollbar-width: none;
  margin-bottom: clamp(32px, 5vw, 52px);
}
.dash-nav::-webkit-scrollbar { display: none; }
.dash-nav a {
  flex-shrink: 0;
  padding: 0.7em 1.3em;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: background-color 0.3s ease, color 0.3s ease;
}
.dash-nav a:hover { background: var(--white); color: var(--black); }

/* Section heading inside dashboard */
.dash-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: clamp(22px, 3vw, 34px);
}
.dash-head h2 { font-size: clamp(1.3rem, 2.2vw, 1.9rem); }
.dash-note { font-size: 0.78rem; color: var(--ink-soft); }

/* KPI cards */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}
.kpi-card {
  background: var(--grey);
  border-radius: var(--radius);
  padding: clamp(20px, 2.4vw, 28px);
}
.kpi-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 12px;
}
.kpi-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 2.8vw, 2.3rem);
  line-height: 1;
}
.kpi-trend { margin-top: 10px; font-size: 0.78rem; font-weight: 600; }
.kpi-trend--up { color: #128b48; }
.kpi-trend--flat { color: var(--ink-soft); }
.kpi-card--locked { opacity: 0.55; }
.kpi-card--locked .kpi-value { font-size: 1.4rem; }
.kpi-card--locked .kpi-trend { color: var(--ink-soft); }

/* Panels */
.panel {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px var(--grey-2);
  padding: clamp(22px, 2.6vw, 32px);
}
.panel--grey { background: var(--grey); color: var(--black); box-shadow: none; }
.panel-title {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.95rem;
  margin-bottom: 6px;
}
.panel-sub { font-size: 0.8rem; color: var(--ink-soft); margin-bottom: 24px; }

.panel-duo {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: var(--gap);
}
.panel-duo > * { min-width: 0; }

/* Vertical bar chart */
.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: clamp(6px, 1.4vw, 16px);
  height: 190px;
}
.chart-bar {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}
.chart-bar i {
  display: block;
  height: calc(var(--v, 50) * 1%);
  border-radius: 3px;
  background: linear-gradient(180deg, var(--red) 0%, var(--red-dim) 100%);
  transition: height 0.6s var(--ease);
}
.chart-bar b {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: center;
}
.chart-bar--muted i { background: var(--grey-2); }

/* Horizontal usage bars */
.usage-list { display: flex; flex-direction: column; gap: 18px; }
.usage-row { display: flex; flex-direction: column; gap: 8px; }
.usage-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
}
.usage-top b { font-weight: 600; }
.usage-top span { color: var(--ink-soft); font-weight: 600; font-size: 0.78rem; white-space: nowrap; }
.bar-track { height: 6px; border-radius: 100px; background: var(--grey-2); overflow: hidden; }
.bar-fill { display: block; height: 100%; border-radius: 100px; background: var(--red); }
.formation-detail-toggle {
  align-self: flex-start;
  border: none;
  background: none;
  padding: 0;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--red);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.formation-detail { display: flex; flex-direction: column; gap: 4px; margin-top: 2px; }
.formation-names { font-size: 0.76rem; line-height: 1.5; margin: 0; }
.formation-names--ok { color: #128b48; }
.formation-names--pending { color: var(--ink-soft); }

/* Team toolbar (recherche + tri) */
.team-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.team-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.6em 1em;
  border-radius: 100px;
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--grey-2);
  max-width: 320px;
  width: 100%;
  transition: box-shadow 0.2s ease;
}
.team-search:focus-within { box-shadow: inset 0 0 0 1.5px var(--red); }
.team-search svg { width: 16px; height: 16px; color: var(--ink-soft); flex-shrink: 0; }
.team-search input {
  border: none;
  background: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--black);
  width: 100%;
}
.team-search input::placeholder { color: var(--ink-soft); }
.team-toolbar-hint { font-size: 0.74rem; color: var(--ink-soft); }

/* Data table */
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.data-table th {
  text-align: left;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--grey-2);
  white-space: nowrap;
}
.data-table th.th-sort {
  cursor: pointer;
  user-select: none;
  transition: color 0.15s ease;
}
.data-table th.th-sort:hover { color: var(--black); }
.data-table th.th-sort.is-active { color: var(--red); }
.th-sort-arrow { display: inline-block; margin-left: 4px; font-size: 0.7em; }
.data-table td {
  padding-block: 16px;
  border-bottom: 1px solid var(--grey-2);
  font-size: 0.88rem;
  vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: 0; }
.data-table .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.cell-person { display: flex; align-items: center; gap: 12px; }
.avatar-sm {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 0.78rem;
  flex-shrink: 0;
}
.cell-person b { font-weight: 600; }
.cell-person small { display: block; color: var(--ink-soft); font-size: 0.75rem; font-weight: 500; }

.pill-state {
  display: inline-block;
  padding: 0.28em 0.7em;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}
.pill-ok { background: rgba(47, 208, 122, 0.14); color: #128b48; }
.pill-warn { background: rgba(255, 176, 46, 0.16); color: #9a6200; }
.pill-off { background: var(--grey-2); color: var(--ink); }
.pin-code {
  font-family: 'SF Mono', 'Menlo', monospace;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  background: var(--grey-2);
  padding: 0.28em 0.6em;
  border-radius: 6px;
}
.pin-cell { white-space: nowrap; }
.pin-regen {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.4em 0.8em;
  border-radius: 100px;
  border: 1px solid var(--grey-2);
  background: transparent;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.pin-regen svg { width: 13px; height: 13px; flex-shrink: 0; }
.pin-regen:hover { background: var(--grey-2); border-color: var(--grey-2); }

/* Billing */
.billing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  margin-bottom: var(--gap);
}
.plan-live {
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 34px);
}
.plan-live .panel-title { color: rgba(255, 255, 255, 0.55); }
.plan-live-price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  line-height: 1;
  margin-bottom: 6px;
}
.plan-live-price span { font-family: var(--font-body); font-size: 0.85rem; font-weight: 600; opacity: 0.55; }
.plan-live-meta { font-size: 0.85rem; color: rgba(255, 255, 255, 0.6); margin-bottom: 24px; }
.plan-live-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.plan-live .btn-outline:hover { background: var(--white); color: var(--black); box-shadow: inset 0 0 0 1.5px var(--white); }


/* Settings */
.settings-list { display: flex; flex-direction: column; }
.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 20px;
  border-bottom: 1px solid var(--grey-2);
  flex-wrap: wrap;
}
.settings-row:last-child { border-bottom: 0; }
.settings-row h4 { font-family: var(--font-body); font-size: 0.92rem; font-weight: 600; text-transform: none; letter-spacing: 0; }
.settings-row p { font-size: 0.8rem; color: var(--ink-soft); margin-top: 4px; }
.link-edit {
  border: none;
  background: none;
  padding: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--red);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  flex-shrink: 0;
}
.link-edit--danger { color: var(--ink-soft); }
.link-edit--danger:hover { color: var(--red); }
.settings-value { font-size: 0.9rem; font-weight: 600; text-align: right; }

/* Toggle switch (visual state only) */
.switch {
  position: relative;
  width: 46px; height: 26px;
  border-radius: 100px;
  background: var(--grey-2);
  flex-shrink: 0;
  transition: background-color 0.3s ease;
}
.switch::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
  transition: transform 0.3s var(--ease);
}
.switch[aria-pressed="true"] { background: var(--red); }
.switch[aria-pressed="true"]::after { transform: translateX(20px); }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%; bottom: 28px;
  transform: translate(-50%, 20px);
  z-index: 280;
  background: var(--black);
  color: var(--white);
  padding: 0.9em 1.5em;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
  white-space: nowrap;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-group .reveal:nth-child(1) { transition-delay: 0s; }
.reveal-group .reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal-group .reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal-group .reveal:nth-child(4) { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .footer-reveal { opacity: 1; transform: none; filter: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   Responsive
   ========================================================= */
/* Grid/flex children shrink below their content's min-content size instead of
   overflowing — required wherever a big display heading sits in a grid cell. */
.hero-content > *,
.split > *,
.leader > *,
.values-wrap > *,
.cta-inner > *,
.testimonial-slide > * {
  min-width: 0;
}

@media (max-width: 1080px) {
  .hero-content { grid-template-columns: 1fr; }
  .hero-right { align-items: flex-start; margin-left: 0; }
  .split { grid-template-columns: 1fr; }
  .split-visual { max-width: 320px; }
  .leader { grid-template-columns: 1fr; }
  .leader-visual { max-width: 320px; }
  .values-wrap { grid-template-columns: 1fr; }
  .cta-inner { grid-template-columns: 1fr; }
  .cta-visual { aspect-ratio: 16/9; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-brand { margin-bottom: 12px; }
}

/* The account/cart icons crowd the header before the nav itself needs to go,
   so the CTA button steps out first, then the links. */
@media (max-width: 1080px) {
  .header-actions .btn { display: none; }
  .nav-desktop { gap: clamp(14px, 2vw, 24px); }
}

@media (max-width: 940px) {
  .nav-desktop { display: none; }
  .menu-toggle { display: inline-flex; }
}

@media (max-width: 860px) {
  .nav-desktop, .header-actions .btn { display: none; }
  .menu-toggle { display: inline-flex; }
  .stats-row { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .work-grid { grid-template-columns: 1fr; }
  .people-grid { grid-template-columns: repeat(2, 1fr); }
  .philosophy-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-slide { grid-template-columns: 1fr; }
  .testimonial-visual { order: -1; max-width: 260px; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; }
  .pricing-grid, .pricing-grid.setup-grid { grid-template-columns: 1fr; }
  .drawer-panel { width: 100%; }
  .account-split { grid-template-columns: 1fr; }
  .locked-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step { padding-block: 22px; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .panel-duo, .billing-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .hero { padding-top: 104px; }
  .hero-photo { object-position: 22% 26%; }
  .stats-row { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .stat-num { font-size: clamp(1.6rem, 7vw, 2.2rem); }
  .people-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .philosophy-grid { grid-template-columns: 1fr 1fr; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .locked-grid { grid-template-columns: 1fr; }
  .account-list > div { flex-direction: column; align-items: flex-start; gap: 4px; }
  .account-list dd { text-align: left; }
  .kpi-grid { grid-template-columns: 1fr; }
  .settings-row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .settings-value { text-align: left; }
}

/* =========================================================
   Console plateforme (admin.html)
   ========================================================= */

/* Bandeau mode support — fixe au-dessus du header, qu'on décale
   d'autant via .has-support-banner pour éviter tout recouvrement. */
.support-banner {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 120;
  background: var(--red);
  color: var(--white);
  padding-block: 10px;
  box-shadow: 0 2px 18px rgba(255, 10, 61, 0.35);
}
.support-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.support-banner-main { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.support-banner-tag {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.support-banner-text { font-size: 0.85rem; }
.support-banner-text b { font-weight: 700; }
.support-banner-side { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.support-banner-timer { font-size: 0.78rem; opacity: 0.92; font-variant-numeric: tabular-nums; }
.btn-light-sm {
  border: none;
  border-radius: 100px;
  background: var(--white);
  color: var(--red);
  padding: 0.5em 1.1em;
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.btn-light-sm:hover { background: rgba(255, 255, 255, 0.88); }
body.has-support-banner .site-header { top: 46px; }
@media (max-width: 640px) {
  body.has-support-banner .site-header { top: 88px; }
}

.admin-chip {
  font-size: 0.74rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
  padding: 0.4em 0.9em;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.1);
  white-space: nowrap;
}
.nav-desktop a.is-active { color: var(--red); }

/* Flux d'audit */
.audit-feed { display: flex; flex-direction: column; gap: 10px; }
.audit-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--grey-2);
}
.audit-row:last-child { border-bottom: 0; padding-bottom: 0; }
.audit-action {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--red);
}
.audit-when { font-size: 0.74rem; color: var(--ink-soft); white-space: nowrap; }

/* Onglets des journaux */
.log-tabs { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.log-tab {
  border: none;
  border-radius: 100px;
  background: var(--grey);
  color: var(--ink-soft);
  padding: 0.55em 1.2em;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.log-tab:hover { color: var(--black); }
.log-tab.is-active { background: var(--black); color: var(--white); }

/* Regroupement par catégorie dans la vue support */
.data-table tr.group-row td {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-block: 10px;
  border-bottom: 0;
}
.data-table tr.group-row td span {
  font-family: var(--font-body);
  font-weight: 600;
  opacity: 0.55;
  margin-left: 8px;
  letter-spacing: 0;
}
.support-filters { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.support-filters .field-input { max-width: 220px; font-size: 0.82rem; padding-block: 0.5em; }

/* Formulaire d'édition : liste longue, on la rend scrollable */
.edit-fields {
  max-height: 52vh;
  overflow-y: auto;
  padding-right: 6px;
  margin-bottom: 6px;
}
.edit-fields .field-label { font-family: ui-monospace, "SF Mono", Menlo, monospace; text-transform: none; letter-spacing: 0; }
.edit-fields .field-label em { opacity: 0.6; font-style: normal; }
.edit-fields textarea.field-input { resize: vertical; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.78rem; }

/* Détail déplié des journaux */
.data-table tr.log-detail-row > td {
  background: rgba(10, 10, 13, 0.04);
  padding-block: 14px;
}
.log-timeline { margin: 0; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 7px; }
.log-timeline li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.8rem;
}
.log-time {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.72rem;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.log-what { font-weight: 600; }
.log-diff {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.72rem;
  background: var(--white);
  padding: 0.25em 0.6em;
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px var(--grey-2);
}
.log-diff del { color: var(--ink-soft); text-decoration: line-through; }
.log-diff ins { color: #128b48; text-decoration: none; font-weight: 600; }
.log-detail-empty { font-size: 0.8rem; color: var(--ink-soft); margin: 0; }
.log-meta { margin: 0; padding-left: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.log-meta li { font-size: 0.78rem; }
.log-meta b {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.72rem;
  color: var(--ink-soft);
  font-weight: 600;
  margin-right: 4px;
}
