/* Louloutech — vitrine infra personnelle, rouge vif, sombre, fluide */
:root {
  --bg-deep: #030303;
  --bg-elevated: #08080a;
  --bg-card: #0c0c10;
  --border-subtle: rgba(255, 255, 255, 0.06);
  --text: #f2f2f5;
  --text-muted: #8c919d;
  /* Rouge vif — priorité à la saturation */
  --red: #ff0000;
  --red-hot: #ff1a1a;
  --red-glow: #ff3333;
  --accent: var(--red);
  --accent-soft: var(--red-glow);
  --accent-dim: rgba(255, 0, 0, 0.14);
  --accent-2: #ff5555;
  --glow: rgba(255, 0, 0, 0.55);
  --glow-soft: rgba(255, 0, 0, 0.12);
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --radius: 11px;
  --nav-h: 108px;
  --ease-fluid: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --dur: 0.55s;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  body {
    opacity: 1 !important;
    animation: none !important;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.62;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.012em;
  opacity: 0;
  animation: pageIn 0.7s var(--ease-fluid) forwards;
}

@keyframes pageIn {
  to {
    opacity: 1;
  }
}

/* Fond : grille + orbes rouges animées + mesh (esprit portail / home)
   --mx / --my : -1…1, mis à jour en JS (léger parallaxe souris) */
.page-atmosphere {
  --mx: 0;
  --my: 0;
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}

/* Photo de page (ex. philosophie) : au-dessus du fond animé, semi-transparente */
.page-bg-photo {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.page-bg-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.26;
  border: none;
  outline: none;
  box-shadow: none;
  transform: translateZ(0);
}

/* Quadrillage lisible + léger mouvement */
.bg-grid {
  position: absolute;
  inset: -20%;
  width: 140%;
  height: 140%;
  background-image:
    linear-gradient(rgba(255, 55, 55, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 55, 55, 0.22) 1px, transparent 1px),
    linear-gradient(rgba(255, 80, 80, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 80, 80, 0.07) 1px, transparent 1px);
  background-size: 52px 52px, 52px 52px, 26px 26px, 26px 26px;
  background-position: 0 0, 0 0, 0 0, 0 0;
  opacity: 1;
  /* Centre lisible : on évite d’effacer le cadrillage au milieu de l’écran */
  mask-image: radial-gradient(ellipse 120% 100% at 50% 42%, black 48%, rgba(0, 0, 0, 0.72) 82%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 120% 100% at 50% 42%, black 48%, rgba(0, 0, 0, 0.72) 82%, transparent 100%);
  animation: gridShift 48s linear infinite;
}

@keyframes gridShift {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(52px, 52px);
  }
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
  will-change: transform, opacity, filter;
}

/* Position par défaut (reduced-motion ou avant init JS) ; sinon déplacement aléatoire fluide en JS */
.bg-orb--1 {
  width: min(95vw, 980px);
  height: min(95vw, 980px);
  background: radial-gradient(circle at 38% 38%, rgba(255, 0, 0, 0.62) 0%, rgba(255, 40, 40, 0.16) 45%, transparent 62%);
  left: 22%;
  top: 28%;
  transform: translate(calc(-50% + var(--mx, 0) * 36px), calc(-50% + var(--my, 0) * 28px));
  filter: blur(64px) hue-rotate(0deg) saturate(1.05);
  animation: orbAlive 14s ease-in-out infinite;
}

.bg-orb--2 {
  width: min(85vw, 820px);
  height: min(85vw, 820px);
  background: radial-gradient(circle at 55% 45%, rgba(255, 30, 30, 0.5) 0%, rgba(255, 80, 60, 0.14) 50%, transparent 62%);
  left: 72%;
  top: 68%;
  transform: translate(calc(-50% + var(--mx, 0) * -30px), calc(-50% + var(--my, 0) * -26px));
  filter: blur(64px) saturate(1.08);
  animation: orbAlive 17s ease-in-out infinite 1.2s;
}

.bg-orb--3 {
  width: min(65vw, 620px);
  height: min(65vw, 620px);
  background: radial-gradient(circle, rgba(255, 100, 90, 0.42) 0%, rgba(255, 0, 0, 0.12) 48%, transparent 62%);
  left: 48%;
  top: 46%;
  transform: translate(
      calc(-50% + var(--mx, 0) * 22px + var(--my, 0) * 14px),
      calc(-50% + var(--my, 0) * 24px - var(--mx, 0) * 16px)
    );
  filter: blur(62px) saturate(1.06);
  animation: orbAlive 12s ease-in-out infinite 2.4s;
}

/* Léger « souffle » (opacité) — positions aléatoires fluides en JS */
@keyframes orbAlive {
  0%,
  100% {
    opacity: 0.74;
  }
  38% {
    opacity: 0.96;
  }
  62% {
    opacity: 0.66;
  }
}

/* Reflets rouges animés (pulse + déplacement léger) */
.bg-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 95% 65% at 50% -12%, rgba(255, 0, 0, 0.28), transparent 52%),
    radial-gradient(ellipse 50% 45% at 100% 28%, rgba(255, 60, 50, 0.2), transparent 50%),
    radial-gradient(ellipse 45% 40% at 0% 85%, rgba(255, 30, 30, 0.18), transparent 48%);
  animation: meshGlow 14s ease-in-out infinite alternate;
}

@keyframes meshGlow {
  0% {
    opacity: 0.88;
    filter: hue-rotate(0deg) saturate(1) brightness(1);
    transform: translate(calc(var(--mx, 0) * 16px), calc(var(--my, 0) * 12px)) scale(1);
  }
  50% {
    opacity: 1;
    filter: hue-rotate(-14deg) saturate(1.55) brightness(1.06);
    transform: translate(calc(var(--mx, 0) * 16px), calc(var(--my, 0) * 12px)) scale(1.06);
  }
  100% {
    opacity: 0.92;
    filter: hue-rotate(10deg) saturate(1.28) brightness(1.03);
    transform: translate(calc(var(--mx, 0) * 16px), calc(var(--my, 0) * 12px)) scale(1.03);
  }
}

.bg-mesh::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 45% at 60% 55%, rgba(255, 0, 0, 0.16), transparent 62%);
  animation: meshSweep 16s ease-in-out infinite;
  pointer-events: none;
}

@keyframes meshSweep {
  0%,
  100% {
    opacity: 0.45;
    transform: translate(calc(var(--mx, 0) * 10px), calc(var(--my, 0) * 8px)) translate(-10%, -7%) scale(1);
    filter: hue-rotate(0deg);
  }
  50% {
    opacity: 0.95;
    transform: translate(calc(var(--mx, 0) * 10px), calc(var(--my, 0) * 8px)) translate(14%, 11%) scale(1.14);
    filter: hue-rotate(-8deg);
  }
}

.bg-mesh::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, transparent 35%, transparent 65%, rgba(0, 0, 0, 0.38) 100%);
  pointer-events: none;
}

.grid-noise {
  position: absolute;
  inset: 0;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (prefers-reduced-motion: reduce) {
  .bg-grid,
  .bg-orb--1,
  .bg-orb--2,
  .bg-orb--3,
  .bg-mesh,
  .bg-mesh::before {
    animation: none !important;
  }

  .bg-mesh {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .bg-mesh::before {
    filter: none;
  }

  .bg-orb--1 {
    opacity: 0.84;
  }

  .bg-orb--2 {
    opacity: 0.78;
  }

  .bg-orb--3 {
    opacity: 0.7;
  }
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  width: 100%;
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(3, 3, 3, 0.35);
  backdrop-filter: blur(52px) saturate(200%);
  -webkit-backdrop-filter: blur(52px) saturate(200%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 1px 0 rgba(255, 0, 0, 0.06) inset;
  transition: background var(--dur) var(--ease-soft), box-shadow var(--dur) var(--ease-soft);
}

.site-header.scrolled {
  background: rgba(3, 3, 3, 0.62);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
}

.header-inner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.15rem 1.5rem;
  min-height: calc(var(--nav-h) - 4px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1rem;
}

.nav-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.2rem;
  flex: 1;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--text);
  transition: opacity 0.3s var(--ease-soft);
}

.brand:hover {
  opacity: 0.9;
}

.brand img {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  box-shadow: 0 0 24px var(--glow-soft);
  object-fit: contain;
}

.brand-text {
  font-weight: 700;
  font-size: 1.48rem;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.brand-text span {
  color: var(--red);
  text-shadow: 0 0 24px rgba(255, 0, 0, 0.45);
}

.nav-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.1rem 0.25rem;
}

.nav-main a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.97rem;
  font-weight: 500;
  padding: 0.55rem 0.85rem;
  border-radius: 9px;
  transition: color 0.35s var(--ease-fluid), background 0.35s var(--ease-fluid), box-shadow 0.35s;
}

.nav-main a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.nav-main a[aria-current="page"] {
  color: #fff;
  background: rgba(255, 0, 0, 0.14);
  box-shadow: 0 0 0 1px rgba(255, 0, 0, 0.45);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: 7px;
  padding: 0.4rem 0.55rem;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s;
}

.menu-toggle:hover {
  background: rgba(255, 0, 0, 0.06);
  border-color: rgba(255, 0, 0, 0.25);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
}

@media (max-width: 820px) {
  .menu-toggle {
    display: flex;
  }

  .nav-wrap {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    display: none;
    order: 3;
    padding-top: 0.25rem;
  }

  .nav-wrap.is-open {
    display: flex;
  }

  .nav-main {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-main a {
    padding: 0.6rem 0.45rem;
  }
}

main {
  position: relative;
  z-index: 1;
  padding-top: calc(var(--nav-h) + 1.5rem);
}

.container {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 1.35rem 3.25rem;
}

.container--wide {
  max-width: 1000px;
}

/* Hero accueil */
.hero {
  position: relative;
  padding: 2rem 0 3rem;
  text-align: center;
}

.hero--home .hero-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.85rem;
  animation: hero-in 1s var(--ease-fluid) both;
}

.hero-badge {
  display: inline-block;
  padding: 0.28rem 0.7rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  border: 1px solid rgba(255, 0, 0, 0.65);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 0, 0, 0.35), rgba(255, 0, 0, 0.12));
  margin-bottom: 1rem;
  animation: hero-in 0.95s var(--ease-fluid) both;
  box-shadow: 0 0 28px rgba(255, 0, 0, 0.25);
}

.hero h1 {
  font-size: clamp(1.75rem, 4.8vw, 2.85rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.08;
  margin-bottom: 0.85rem;
  animation: hero-in 1s 0.06s var(--ease-fluid) both;
}

.hero h1 .hl {
  background: linear-gradient(100deg, #fff 0%, #ff0000 35%, #ff6666 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 28px rgba(255, 0, 0, 0.35));
}

.hero-lead {
  font-size: 1.02rem;
  color: var(--text-muted);
  max-width: 38rem;
  margin: 0 auto 1.15rem;
  font-weight: 450;
  animation: hero-in 1s 0.12s var(--ease-fluid) both;
}

.hero-lead strong {
  color: var(--text);
  font-weight: 600;
}

.hero-manifesto {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 40rem;
  margin: 0 auto 1.65rem;
  line-height: 1.68;
  animation: hero-in 1s 0.18s var(--ease-fluid) both;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  animation: hero-in 1s 0.24s var(--ease-fluid) both;
}

@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.15rem;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: transform 0.45s var(--ease-fluid), box-shadow 0.45s var(--ease-fluid), background 0.45s, border-color 0.45s;
}

.btn-primary {
  background: linear-gradient(180deg, #ff0000 0%, #d40000 100%);
  color: #fff;
  box-shadow: 0 0 36px var(--glow), 0 4px 20px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 80, 80, 0.5);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 48px rgba(255, 0, 0, 0.65), 0 12px 32px rgba(0, 0, 0, 0.5);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border: 1px solid var(--border-subtle);
}

.btn-ghost:hover {
  background: rgba(255, 0, 0, 0.08);
  border-color: rgba(255, 0, 0, 0.35);
}

/* Stats */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 0.65rem;
  margin: 2rem 0 2.5rem;
  max-width: 52rem;
  margin-left: auto;
  margin-right: auto;
}

.stat-item {
  padding: 0.95rem 0.65rem;
  background: rgba(12, 12, 16, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 0, 0, 0.15);
  border-radius: var(--radius);
  text-align: center;
  transition: transform 0.5s var(--ease-fluid), border-color 0.5s, box-shadow 0.5s;
}

.stat-item:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 0, 0, 0.4);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4), 0 0 24px rgba(255, 0, 0, 0.12);
}

.stat-value {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--red);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.stat-label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.section-title {
  font-size: clamp(1.28rem, 2.6vw, 1.65rem);
  font-weight: 700;
  margin-bottom: 0.55rem;
  letter-spacing: -0.035em;
}

.section-lead {
  color: var(--text-muted);
  max-width: 40rem;
  margin-bottom: 1.5rem;
  font-size: 0.94rem;
  line-height: 1.65;
}

.section-block {
  margin: 2.75rem 0;
  padding-left: 1rem;
  border-left: 2px solid rgba(255, 0, 0, 0.55);
}

.section-kicker {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red-hot);
  margin-bottom: 0.45rem;
}

.layer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.layer-card {
  background: rgba(12, 12, 16, 0.5);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 1.2rem 1.1rem;
  transition: border-color 0.45s var(--ease-fluid), transform 0.45s var(--ease-fluid);
}

.layer-card:hover {
  border-color: rgba(255, 0, 0, 0.28);
  transform: translateY(-2px);
}

.layer-card h3 {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--red-glow);
  margin-bottom: 0.5rem;
}

.layer-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.58;
  margin-bottom: 0.65rem;
}

.layer-card a {
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 0, 0, 0.45);
  padding-bottom: 1px;
  transition: color 0.25s, border-color 0.25s;
}

.layer-card a:hover {
  color: var(--red-glow);
  border-color: var(--red-glow);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.85rem;
}

.card {
  background: rgba(12, 12, 16, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 1.2rem 1.05rem;
  transition: border-color 0.5s var(--ease-fluid), transform 0.5s var(--ease-fluid), box-shadow 0.5s;
}

.card:hover {
  border-color: rgba(255, 0, 0, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.38);
}

.card h3 {
  font-size: 0.98rem;
  margin-bottom: 0.4rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.card a {
  color: var(--red-glow);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.8rem;
  display: inline-block;
  margin-top: 0.75rem;
  transition: color 0.3s;
}

.card a:hover {
  color: #fff;
}

/* Un seul niveau d’overflow + radius évite le fin liseré / effet « mal cadré » */
.figure {
  border-radius: 0;
  overflow: visible;
  border: none;
  margin: 1.2rem 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  box-shadow: none;
}

.figure:hover {
  box-shadow: none;
}

/* Même fond que la page : pas de cadre gris autour du média (contain) */
.figure__inner {
  position: relative;
  width: 100%;
  background: var(--bg-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  min-height: 0;
  border-radius: var(--radius);
  border: none;
  box-shadow: none;
  overflow: hidden;
  transform: translateZ(0);
  isolation: isolate;
}

.figure__inner--split {
  min-height: 260px;
  max-height: min(52vh, 440px);
}

.figure__inner--wide {
  min-height: 280px;
  max-height: min(65vh, 560px);
}

.figure img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(58vh, 520px);
  object-fit: contain;
  object-position: center;
  border: none;
  outline: none;
  box-shadow: none;
  border-radius: 0;
  cursor: zoom-in;
  transition: transform 0.45s var(--ease-fluid);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.figure:hover img {
  transform: scale(1.015);
}

.figure figcaption {
  display: none;
}

.split .figure .figure__inner--split img,
.split .figure .figure__inner--wide img {
  max-height: min(48vh, 400px);
}

.gallery-row .figure__inner {
  aspect-ratio: 4 / 3;
  min-height: 0;
  max-height: none;
  padding: 0;
}

.gallery-row .figure img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  margin: 2.25rem 0;
}

.split .figure {
  margin: 0;
  height: 100%;
}

@media (max-width: 768px) {
  .split {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .figure__inner--split,
  .figure__inner--wide {
    max-height: none;
  }
}

.gallery-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 960px) {
  .gallery-row {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }
}

.gallery-row .figure {
  margin: 0;
}

.service-list {
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.service-list li {
  padding: 0.68rem 0.85rem;
  background: var(--bg-elevated);
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  font-size: 0.88rem;
  transition: border-color 0.35s;
}

.service-list li:hover {
  border-color: rgba(255, 0, 0, 0.18);
}

.service-list strong {
  color: var(--red-glow);
  font-weight: 600;
}

/* Tables */
.data-table-wrap {
  overflow-x: auto;
  margin: 1.15rem 0 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-subtle);
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.data-table th,
.data-table td {
  padding: 0.62rem 0.72rem;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
}

.data-table th {
  background: rgba(255, 0, 0, 0.08);
  color: var(--red-glow);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tbody tr {
  transition: background 0.3s;
}

.data-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.85s var(--ease-fluid), transform 0.85s var(--ease-fluid);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger .stagger-item {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.75s var(--ease-fluid), transform 0.75s var(--ease-fluid);
}

.reveal-stagger.visible .stagger-item {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.visible .stagger-item:nth-child(1) {
  transition-delay: 0.04s;
}
.reveal-stagger.visible .stagger-item:nth-child(2) {
  transition-delay: 0.1s;
}
.reveal-stagger.visible .stagger-item:nth-child(3) {
  transition-delay: 0.16s;
}
.reveal-stagger.visible .stagger-item:nth-child(4) {
  transition-delay: 0.22s;
}
.reveal-stagger.visible .stagger-item:nth-child(5) {
  transition-delay: 0.28s;
}
.reveal-stagger.visible .stagger-item:nth-child(6) {
  transition-delay: 0.34s;
}
.reveal-stagger.visible .stagger-item:nth-child(7) {
  transition-delay: 0.4s;
}
.reveal-stagger.visible .stagger-item:nth-child(8) {
  transition-delay: 0.46s;
}

.prose .hero {
  text-align: left;
  padding: 0.5rem 0 2rem;
}

.prose .hero h1 {
  font-size: clamp(1.55rem, 3.2vw, 2.15rem);
}

.prose .hero .hero-lead {
  margin-left: 0;
  max-width: 42rem;
}

.site-footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border-subtle);
  margin-top: auto;
  padding: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 1.35rem 1.35rem;
  display: grid;
  grid-template-columns: 1.15fr 1fr 1.1fr;
  gap: 1.75rem;
  align-items: start;
}

@media (max-width: 720px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.footer-logo {
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: -0.03em;
  display: block;
  margin-bottom: 0.35rem;
}

.footer-logo span {
  color: var(--red);
  text-shadow: 0 0 20px rgba(255, 0, 0, 0.35);
}

.footer-tagline {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 18rem;
}

.footer-tagline strong {
  color: var(--text);
  font-weight: 600;
}

.footer-heading {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.86rem;
  transition: color 0.3s var(--ease-soft);
}

.footer-links a:hover {
  color: var(--red-glow);
}

.footer-note {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 400;
}

.footer-copy {
  text-align: center;
  padding: 1.1rem 1.35rem 1.85rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.prose h2 {
  font-size: 1.12rem;
  margin: 2.25rem 0 0.6rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
}

.prose h3 {
  font-size: 0.95rem;
  margin: 1.35rem 0 0.45rem;
  font-weight: 650;
  color: var(--text);
}

.prose p {
  margin-bottom: 0.85rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.68;
}

.prose p strong {
  color: var(--text);
  font-weight: 600;
}

.prose ul {
  margin: 0.65rem 0 1rem 1.1rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.prose ul li {
  margin-bottom: 0.35rem;
}

.quote {
  margin: 1.5rem 0;
  padding: 1rem 1.15rem;
  border-left: 3px solid var(--red);
  background: rgba(255, 0, 0, 0.07);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.55;
}

.text-accent {
  color: var(--red-glow);
  font-weight: 600;
}

/* Lightbox — agrandir les images au clic */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(1rem, env(safe-area-inset-top));
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease-fluid), visibility 0.4s;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.86);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  cursor: zoom-out;
}

.lightbox__content {
  position: relative;
  z-index: 1;
  max-width: min(96vw, 1680px);
  max-height: 92vh;
  margin: auto;
  animation: lbIn 0.45s var(--ease-fluid) both;
}

@keyframes lbIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.lightbox__content img {
  display: block;
  max-width: 100%;
  max-height: min(90vh, 1200px);
  width: auto;
  height: auto;
  object-fit: contain;
  border: none;
  outline: none;
  border-radius: var(--radius);
  box-shadow:
    0 32px 96px rgba(0, 0, 0, 0.65),
    0 0 80px rgba(255, 0, 0, 0.08);
}

.lightbox__close {
  position: fixed;
  top: max(1rem, env(safe-area-inset-top));
  right: max(1rem, env(safe-area-inset-right));
  z-index: 2;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(20, 20, 24, 0.85);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}

.lightbox__close:hover {
  background: rgba(255, 0, 0, 0.35);
  border-color: rgba(255, 80, 80, 0.5);
}

.lightbox__close:focus-visible {
  outline: 2px solid var(--red-glow);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .lightbox__content {
    animation: none;
  }
}
