/* DA VIKING CODE — Formations site (production)
 * Charte graphique : Jet noir + Yellow #FFEB04 + Cyan accent.
 * Animations conformes a prefers-reduced-motion.
 */

@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=VT323&display=swap");

:root {
  --jet: #1a1a1a;
  --jet-2: #262626;
  --jet-3: #353535;
  --yellow: #ffeb04;
  --yellow-soft: #fff4a6;
  --white: #ffffff;
  --gray-50: #f7f7f5;
  --gray-100: #ececea;
  --gray-200: #d8d8d4;
  --gray-400: #8a8a86;
  --gray-600: #565654;
  --cyan: #00b5e1;
  --teal: #00cfb4;
  --radius: 6px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06), 0 1px 1px rgba(0, 0, 0, 0.03);
  --shadow: 0 4px 12px rgba(20, 20, 20, 0.08), 0 2px 4px rgba(20, 20, 20, 0.04);
  --shadow-lg: 0 24px 48px -12px rgba(20, 20, 20, 0.18), 0 8px 16px rgba(20, 20, 20, 0.06);
  --shadow-yellow: 0 18px 36px -12px rgba(255, 235, 4, 0.35);
  --font: "Space Grotesk", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-pixel: "VT323", monospace;
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font);
  background: var(--gray-50);
  color: var(--jet);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.55;
}
button {
  font-family: inherit;
}
a {
  color: inherit;
}

/* === ACCESSIBILITE === */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--yellow);
  color: var(--jet);
  padding: 12px 18px;
  font-weight: 700;
  z-index: 999;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 4px;
}

/* === LOADER INITIAL === */
.page-loader {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--jet);
  z-index: 999;
}
.page-loader-inner {
  display: flex;
  gap: 10px;
}
.loader-pulse {
  width: 12px;
  height: 12px;
  background: var(--yellow);
  border-radius: 50%;
  animation: loaderPulse 1.1s var(--ease-out-quart) infinite both;
}
.loader-pulse:nth-child(2) {
  animation-delay: 0.15s;
}
.loader-pulse:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes loaderPulse {
  0%,
  80%,
  100% {
    transform: scale(0.4);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* === TOP BAR === */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--jet);
  color: var(--white);
  border-bottom: 1px solid #000;
  transition:
    box-shadow 0.3s ease,
    background-color 0.3s ease;
}
.topbar.scrolled {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  background: rgba(20, 20, 20, 0.92);
  backdrop-filter: saturate(150%) blur(10px);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
}
.topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  user-select: none;
  text-decoration: none;
  transition: transform 0.25s var(--ease-out-back);
}
.brand:hover {
  transform: translateY(-1px);
}
.brand:active {
  transform: translateY(0) scale(0.98);
}
.brand-mark {
  width: 38px;
  height: 38px;
  background: var(--yellow);
  display: grid;
  place-items: center;
  border-radius: 4px;
  flex-shrink: 0;
  transition:
    transform 0.4s var(--ease-out-back),
    box-shadow 0.4s ease;
}
.brand:hover .brand-mark {
  transform: rotate(-6deg) scale(1.06);
  box-shadow: 0 8px 20px rgba(255, 235, 4, 0.4);
}
.brand-mark svg {
  width: 26px;
  height: 26px;
  transition: transform 0.4s var(--ease-out-back);
}
.brand-mark .brand-dragon {
  width: 26px;
  height: 26px;
  object-fit: contain;
  transition: transform 0.4s var(--ease-out-back);
  display: block;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand-text-1 {
  font-family: var(--font-pixel);
  font-size: 14px;
  letter-spacing: 2px;
  color: var(--gray-200);
}
.brand-text-2 {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 1px;
}
.brand-text-3 {
  font-family: var(--font-pixel);
  font-size: 14px;
  letter-spacing: 2px;
  color: var(--yellow);
}

.topbar nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-size: 14px;
  font-weight: 500;
}
.topbar nav a {
  position: relative;
  text-decoration: none;
  color: var(--gray-200);
  cursor: pointer;
  padding: 6px 0;
  transition: color 0.25s ease;
}
.topbar nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--yellow);
  transition: right 0.35s var(--ease-out-quart);
}
.topbar nav a:hover {
  color: var(--white);
}
.topbar nav a:hover::after {
  right: 0;
}
.topbar nav a.active {
  color: var(--yellow);
}
.topbar nav a.active::after {
  right: 0;
}

.qualiopi-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 235, 4, 0.12);
  border: 1px solid rgba(255, 235, 4, 0.4);
  color: var(--yellow);
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.qualiopi-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--yellow);
  animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 235, 4, 0);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(255, 235, 4, 0.3);
  }
}

/* === HERO === */
.hero {
  background: var(--jet);
  color: var(--white);
  padding: 72px 32px 96px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 80% at 75% 30%, rgba(255, 235, 4, 0.07), transparent 60%),
    radial-gradient(40% 60% at 15% 80%, rgba(0, 181, 225, 0.06), transparent 70%);
  pointer-events: none;
}
.hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-eyebrow {
  font-family: var(--font-pixel);
  font-size: 18px;
  letter-spacing: 3px;
  color: var(--yellow);
  margin-bottom: 18px;
  opacity: 0;
  transform: translateY(8px);
  animation: heroFade 0.6s var(--ease-out-quart) 0.1s forwards;
}
.hero h1 {
  font-size: 64px;
  line-height: 1.05;
  margin: 0 0 24px;
  font-weight: 700;
  letter-spacing: -1px;
  opacity: 0;
  transform: translateY(16px);
  animation: heroFade 0.7s var(--ease-out-quart) 0.2s forwards;
}
.hero h1 .accent {
  background: var(--yellow);
  color: var(--jet);
  padding: 0 12px;
  display: inline-block;
  transform: rotate(-1deg);
  transition: transform 0.4s var(--ease-out-back);
}
.hero h1 .accent:hover {
  transform: rotate(-3deg) scale(1.03);
}
.hero p {
  font-size: 18px;
  color: var(--gray-200);
  max-width: 540px;
  margin: 0 0 32px;
  opacity: 0;
  transform: translateY(12px);
  animation: heroFade 0.7s var(--ease-out-quart) 0.35s forwards;
}
@keyframes heroFade {
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(12px);
  animation: heroFade 0.7s var(--ease-out-quart) 0.5s forwards;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--radius);
  border: none;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 0.22s var(--ease-out-back),
    box-shadow 0.25s ease,
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.35), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.btn:active::after {
  opacity: 1;
  transition: opacity 0s;
}
.btn:active {
  transform: scale(0.97);
}
.btn svg {
  transition: transform 0.25s var(--ease-out-back);
}
.btn:hover svg {
  transform: translateX(3px);
}
.btn-primary {
  background: var(--yellow);
  color: var(--jet);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-yellow);
}
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
}
.btn-ghost:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}
.btn-dark {
  background: var(--jet);
  color: var(--white);
}
.btn-dark:hover {
  background: #000;
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}
.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}
.btn[disabled]:hover {
  transform: none;
  box-shadow: none;
}

.hero-aside {
  position: relative;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.stat-card {
  background: var(--jet-3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px;
  border-radius: var(--radius-lg);
  opacity: 0;
  transform: translateY(20px);
  animation: heroFade 0.65s var(--ease-out-quart) forwards;
  transition:
    transform 0.3s var(--ease-out-back),
    border-color 0.25s,
    background-color 0.25s;
}
.stat-card:nth-child(1) {
  animation-delay: 0.55s;
}
.stat-card:nth-child(2) {
  animation-delay: 0.65s;
}
.stat-card:nth-child(3) {
  animation-delay: 0.75s;
}
.stat-card:nth-child(4) {
  animation-delay: 0.85s;
}
.stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 235, 4, 0.3);
  background: var(--jet-2);
}
.stat-card.featured {
  background: var(--yellow);
  color: var(--jet);
  border-color: var(--yellow);
}
.stat-card.featured:hover {
  background: var(--yellow-soft);
}
.stat-num {
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
}
.stat-label {
  font-size: 13px;
  color: var(--gray-200);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.stat-card.featured .stat-label {
  color: var(--jet);
  opacity: 0.75;
}

.hero-stripe {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--yellow) 0%, var(--yellow) 50%, var(--cyan) 100%);
  background-size: 200% 100%;
  animation: stripeShimmer 8s linear infinite;
}
@keyframes stripeShimmer {
  0% {
    background-position: 0% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* === FILTERS & SECTIONS === */
.section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 32px;
}
.section-head {
  /* Titre au-dessus, description en dessous, toujours pleine largeur. */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 36px;
}
.section-head h2 {
  font-size: 40px;
  margin: 0;
  letter-spacing: -0.5px;
  font-weight: 700;
}
.section-head .eyebrow {
  font-family: var(--font-pixel);
  font-size: 16px;
  letter-spacing: 3px;
  color: var(--gray-600);
  display: block;
  margin-bottom: 8px;
}
.section-head p {
  color: var(--gray-600);
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s var(--ease-out-quart),
    transform 0.7s var(--ease-out-quart);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--gray-100);
}
.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 100px;
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  color: var(--jet);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition:
    transform 0.2s var(--ease-out-back),
    border-color 0.2s ease,
    background-color 0.2s,
    color 0.2s;
}
.filter-pill:hover {
  border-color: var(--jet);
  transform: translateY(-1px);
}
.filter-pill:active {
  transform: scale(0.97);
}
.filter-pill.active {
  background: var(--jet);
  color: var(--white);
  border-color: var(--jet);
}
.filter-pill .count {
  font-size: 12px;
  background: var(--gray-100);
  padding: 1px 8px;
  border-radius: 100px;
  color: var(--gray-600);
  transition:
    background-color 0.2s,
    color 0.2s;
}
.filter-pill.active .count {
  background: var(--yellow);
  color: var(--jet);
}

/* === CATALOG TILES === */
.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.tile {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition:
    transform 0.35s var(--ease-out-back),
    box-shadow 0.35s ease,
    border-color 0.25s ease;
  border: 1px solid var(--gray-100);
  display: flex;
  flex-direction: column;
  position: relative;
  opacity: 0;
  transform: translateY(24px);
  animation: tileEnter 0.55s var(--ease-out-quart) forwards;
}
.tile:nth-child(1) {
  animation-delay: 0.04s;
}
.tile:nth-child(2) {
  animation-delay: 0.1s;
}
.tile:nth-child(3) {
  animation-delay: 0.16s;
}
.tile:nth-child(4) {
  animation-delay: 0.22s;
}
.tile:nth-child(5) {
  animation-delay: 0.28s;
}
.tile:nth-child(6) {
  animation-delay: 0.34s;
}
.tile:nth-child(n + 7) {
  animation-delay: 0.4s;
}
@keyframes tileEnter {
  to {
    opacity: 1;
    transform: none;
  }
}

.tile:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--jet);
}
.tile:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}
.tile-illu {
  aspect-ratio: 16 / 10;
  position: relative;
  overflow: hidden;
  background: var(--jet);
}
.tile-illu svg {
  width: 100%;
  height: 100%;
  display: block;
  transition: transform 0.8s var(--ease-out-quart);
}
.tile-illu-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s var(--ease-out-quart);
}
.tile:hover .tile-illu svg,
.tile:hover .tile-illu-img {
  transform: scale(1.04);
}
.tile-corner {
  position: absolute;
  top: 0;
  right: 0;
  width: 110px;
  height: 110px;
  overflow: hidden;
  pointer-events: none;
}
.tile-corner-inner {
  position: absolute;
  top: 16px;
  right: -36px;
  width: 160px;
  text-align: center;
  background: var(--yellow);
  color: var(--jet);
  font-family: var(--font-pixel);
  font-size: 16px;
  letter-spacing: 3px;
  padding: 6px 0;
  transform: rotate(45deg);
  font-weight: 700;
}
.tile-corner.code-intra .tile-corner-inner {
  background: var(--jet);
  color: var(--yellow);
}
.tile-corner.code-both .tile-corner-inner {
  background: linear-gradient(90deg, var(--yellow) 0 50%, var(--jet) 50% 100%);
  color: #fff;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
}
.tile-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.tile-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  line-height: 1.25;
  letter-spacing: -0.3px;
}
.tile-tagline {
  font-size: 14px;
  color: var(--gray-600);
  margin: 0;
}
.tile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}
.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  padding: 5px 11px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  color: var(--jet);
}
.meta-chip svg {
  width: 13px;
  height: 13px;
}
.meta-chip.accessible {
  background: var(--yellow-soft);
  border-color: var(--yellow);
}
.tile-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tile-price {
  font-weight: 700;
  font-size: 18px;
}
.tile-price small {
  font-weight: 400;
  color: var(--gray-600);
  font-size: 12px;
}
.tile-price-both {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
  line-height: 1.2;
}
.tile-price-both .price-tag {
  display: inline-block;
  font-family: var(--font-pixel);
  font-size: 11px;
  letter-spacing: 1.5px;
  background: var(--jet);
  color: var(--yellow);
  padding: 1px 6px;
  border-radius: 3px;
  margin-right: 6px;
  font-weight: 400;
  vertical-align: 1px;
}
.tile-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--jet);
  color: var(--white);
  display: grid;
  place-items: center;
  transition:
    background-color 0.25s,
    color 0.25s,
    transform 0.35s var(--ease-out-back);
}
.tile:hover .tile-arrow {
  background: var(--yellow);
  color: var(--jet);
  transform: translateX(4px) rotate(-6deg);
}

/* Skeleton (placeholders pendant le fetch) */
.tile-skeleton {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-100);
  overflow: hidden;
  min-height: 360px;
}
.skel-illu {
  aspect-ratio: 16 / 10;
  background: linear-gradient(90deg, #ececea 0, #f7f7f5 50%, #ececea 100%);
  background-size: 200% 100%;
  animation: shimmer 1.6s linear infinite;
}
.skel-line {
  height: 14px;
  border-radius: 6px;
  margin: 12px 24px;
  background: linear-gradient(90deg, #ececea 0, #f7f7f5 50%, #ececea 100%);
  background-size: 200% 100%;
  animation: shimmer 1.6s linear infinite;
}
.skel-line.short {
  width: 50%;
}
@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* === DETAIL VIEW === */
.detail-wrap {
  background: var(--gray-50);
  min-height: 100vh;
  animation: pageEnter 0.5s var(--ease-out-quart) both;
}
@keyframes pageEnter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.detail-hero {
  background: var(--jet);
  color: var(--white);
  padding: 32px 32px 96px;
}
.detail-hero.has-image {
  padding-top: 220px;
  padding-bottom: 110px;
}
.detail-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--gray-400);
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.breadcrumb button {
  background: none;
  border: none;
  color: var(--gray-200);
  cursor: pointer;
  font-size: 13px;
  font-family: inherit;
  padding: 0;
  transition: color 0.2s;
}
.breadcrumb button:hover {
  color: var(--yellow);
}
.detail-hero h1 {
  font-size: 48px;
  line-height: 1.1;
  margin: 0 0 16px;
  letter-spacing: -1px;
  max-width: 900px;
}
.detail-tagline {
  font-size: 20px;
  color: var(--gray-200);
  max-width: 760px;
  margin: 0 0 32px;
}
.detail-hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.detail-hero-chips .meta-chip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--white);
  padding: 8px 14px;
  font-size: 13px;
}
.detail-hero-chips .meta-chip.accessible {
  background: rgba(255, 235, 4, 0.15);
  border-color: var(--yellow);
  color: var(--yellow);
}

.detail-main {
  max-width: 1280px;
  margin: -64px auto 0;
  padding: 0 32px 96px;
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 32px;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 92px;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-100);
}
.sidebar-illu {
  aspect-ratio: 4 / 3;
  background: var(--jet);
  position: relative;
  overflow: hidden;
}
.sidebar-illu svg {
  width: 100%;
  height: 100%;
  display: block;
}
.sidebar-illu-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sidebar-body {
  padding: 24px;
}
.sidebar-code {
  font-family: var(--font-pixel);
  font-size: 14px;
  letter-spacing: 3px;
  color: var(--gray-600);
  margin-bottom: 4px;
}
.sidebar-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 8px;
  line-height: 1.2;
}
.sidebar-tag {
  font-size: 14px;
  color: var(--gray-600);
  margin: 0 0 18px;
}
.sidebar-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--gray-100);
}
.sidebar-meta-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
}
.sidebar-meta-row .icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--gray-50);
  color: var(--jet);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.sidebar-meta-row .label {
  color: var(--gray-600);
  font-size: 12px;
}
.sidebar-meta-row .value {
  font-weight: 600;
}
.sidebar-price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 16px 0;
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
  margin-bottom: 16px;
}
.sidebar-price-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray-600);
}
.sidebar-price-val {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.sidebar-price-group {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
  margin-bottom: 16px;
}
.sidebar-price-group .sidebar-price {
  border-top: none;
  border-bottom: 1px solid var(--gray-100);
  margin-bottom: 0;
  padding: 14px 0;
}
.sidebar-price-group .sidebar-price:last-child {
  border-bottom: none;
}
.sidebar-price-group .sidebar-price-val {
  font-size: 22px;
}
.sidebar .btn {
  width: 100%;
  justify-content: center;
}
.sat-card {
  background: linear-gradient(135deg, var(--yellow) 0%, var(--yellow-soft) 100%);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 18px;
}
.sat-card-label {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
}
.sat-bar {
  height: 6px;
  background: rgba(0, 0, 0, 0.12);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 6px;
}
.sat-fill {
  height: 100%;
  background: var(--jet);
  border-radius: 100px;
  width: 0;
  transition: width 1.1s var(--ease-out-quart);
}
.sat-card-val {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
}
.sat-card-val small {
  color: rgba(0, 0, 0, 0.6);
  font-weight: 500;
}

.detail-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.panel {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-100);
  padding: 32px;
  transition:
    transform 0.3s var(--ease-out-quart),
    box-shadow 0.3s ease;
}
.panel:hover {
  box-shadow: var(--shadow);
}
.panel-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.panel-head .icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--yellow);
  color: var(--jet);
  display: grid;
  place-items: center;
  transition: transform 0.35s var(--ease-out-back);
}
.panel:hover .panel-head .icon {
  transform: rotate(-8deg) scale(1.04);
}
.panel-head h2 {
  font-size: 22px;
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.3px;
}
.panel .lede {
  font-size: 16px;
  color: var(--gray-600);
  line-height: 1.6;
  margin: 0;
}
.panel ul.check {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.panel ul.check li {
  display: flex;
  gap: 12px;
  font-size: 15px;
  line-height: 1.5;
  transition: transform 0.25s var(--ease-out-quart);
}
.panel ul.check li:hover {
  transform: translateX(3px);
}
.panel ul.check li::before {
  content: "";
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--yellow);
  flex-shrink: 0;
  margin-top: 2px;
  background-image: url("data:image/svg+xml;utf8,<svg 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'><polyline points='20 6 9 17 4 12'/></svg>");
  background-size: 14px;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.3s var(--ease-out-back);
}
.panel ul.check li:hover::before {
  transform: rotate(-8deg) scale(1.08);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 900px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

/* Accordion (animation max-height + opacity) */
.accordion {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  overflow: hidden;
}
.accordion-item + .accordion-item {
  border-top: 1px solid var(--gray-100);
}
.accordion-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  cursor: pointer;
  background: var(--white);
  font-weight: 600;
  font-size: 15px;
  transition:
    background-color 0.2s ease,
    padding-left 0.25s ease;
  user-select: none;
}
.accordion-head:hover {
  background: var(--gray-50);
  padding-left: 24px;
}
.accordion-head .chev {
  transition: transform 0.3s var(--ease-out-back);
  display: inline-flex;
}
.accordion-item.open .accordion-head .chev {
  transform: rotate(180deg);
}
.accordion-item.open .accordion-head {
  background: var(--gray-50);
  color: var(--jet);
}
.accordion-body {
  max-height: 0;
  overflow: hidden;
  background: var(--gray-50);
  font-size: 14px;
  color: var(--gray-600);
  transition:
    max-height 0.45s var(--ease-out-quart),
    padding 0.35s ease;
  padding: 0 20px;
}
.accordion-item.open .accordion-body {
  max-height: 480px;
  padding: 0 20px 16px;
}
.accordion-body ul {
  margin: 4px 0 0;
  padding-left: 20px;
}
.accordion-body li {
  margin: 4px 0;
}

.quality-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.quality-card {
  background: var(--gray-50);
  border-radius: var(--radius);
  padding: 20px;
  transition:
    transform 0.3s var(--ease-out-back),
    background-color 0.25s;
}
.quality-card:hover {
  transform: translateY(-3px);
  background: var(--white);
  box-shadow: var(--shadow);
}
.quality-card .label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray-600);
  margin-bottom: 8px;
}
.quality-card .value {
  font-size: 20px;
  font-weight: 700;
}
@media (max-width: 700px) {
  .quality-row {
    grid-template-columns: 1fr;
  }
}

/* === CONTACT === */
.contact-strip {
  background: var(--jet);
  color: var(--white);
  padding: 80px 32px;
  position: relative;
  overflow: hidden;
}
.contact-strip::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -100px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 235, 4, 0.15), transparent 70%);
  filter: blur(20px);
}
.contact-strip-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: start;
  position: relative;
  z-index: 2;
}
.contact-strip-inner > * {
  min-width: 0;
}
.contact-strip h2 {
  font-size: 48px;
  margin: 0 0 16px;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -1px;
  overflow-wrap: break-word;
}
.contact-strip .eyebrow {
  font-family: var(--font-pixel);
  font-size: 16px;
  letter-spacing: 3px;
  color: var(--yellow);
  margin-bottom: 18px;
  display: block;
}
.contact-strip p {
  color: var(--gray-200);
  max-width: 460px;
  font-size: 17px;
}
.contact-info {
  margin-top: 32px;
  display: grid;
  gap: 16px;
}
.contact-info-row {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  transition: transform 0.25s var(--ease-out-back);
  min-width: 0;
}
.contact-info-row > div:last-child {
  min-width: 0;
  flex: 1;
}
.contact-info-row:hover {
  transform: translateX(4px);
}
.contact-info-row .icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  display: grid;
  place-items: center;
  color: var(--yellow);
  transition:
    background-color 0.25s,
    transform 0.35s var(--ease-out-back);
}
.contact-info-row:hover .icon {
  background: rgba(255, 235, 4, 0.15);
  transform: rotate(-6deg);
}
.contact-info-row .icon {
  flex-shrink: 0;
}
.contact-info-row .label {
  display: block;
  font-size: 12px;
  color: var(--gray-400);
}
.contact-info-row .val {
  font-weight: 600;
  overflow-wrap: anywhere;
}

.form-card {
  background: var(--white);
  color: var(--jet);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.form-card::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 32px;
  right: 32px;
  height: 4px;
  background: var(--yellow);
  border-radius: 100px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.form-row > * {
  min-width: 0;
}
@media (max-width: 700px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.field label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray-600);
}
.field input,
.field select,
.field textarea {
  padding: 12px 14px;
  border: 1.5px solid var(--gray-100);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 14px;
  background: var(--gray-50);
  transition:
    border-color 0.2s,
    background-color 0.2s,
    box-shadow 0.2s;
  color: var(--jet);
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  padding-right: 36px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1.5L6 6.5L11 1.5' stroke='%23222' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--jet);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(255, 235, 4, 0.18);
}
.field input.invalid,
.field select.invalid,
.field textarea.invalid {
  border-color: #d12d2d;
  background: #fff3f3;
}
.field textarea {
  resize: vertical;
  min-height: 100px;
}
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--gray-600);
  margin: 16px 0;
  line-height: 1.45;
}
.checkbox-row input {
  margin-top: 3px;
  accent-color: var(--jet);
  flex-shrink: 0;
}
.checkbox-row label {
  min-width: 0;
  flex: 1;
}
.form-card .btn {
  width: 100%;
  justify-content: center;
  padding: 16px;
  font-size: 16px;
}
.form-success {
  background: var(--yellow-soft);
  border: 1.5px solid var(--yellow);
  padding: 18px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-weight: 500;
  animation: successPop 0.5s var(--ease-out-back);
}
.form-error {
  background: #fff3f3;
  border: 1.5px solid #ffb3b3;
  color: #a31a1a;
  padding: 12px 14px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-size: 14px;
}
@keyframes successPop {
  0% {
    opacity: 0;
    transform: scale(0.96);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Inline spinner pour boutons en cours */
.btn .spinner {
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: btnSpin 0.8s linear infinite;
}
@keyframes btnSpin {
  to {
    transform: rotate(360deg);
  }
}

/* === FOOTER === */
.footer {
  background: #000;
  color: var(--gray-200);
  padding: 56px 32px 24px;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
.footer h4 {
  color: var(--yellow);
  font-family: var(--font-pixel);
  font-size: 14px;
  letter-spacing: 3px;
  margin: 0 0 16px;
}
.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
  font-size: 14px;
}
.footer ul a,
.footer ul li {
  color: var(--gray-200);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer ul a:hover {
  color: var(--yellow);
}
.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--gray-400);
  flex-wrap: wrap;
  gap: 16px;
}
.footer-quali {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--yellow);
  border-radius: var(--radius);
  margin-top: 16px;
  transition: background-color 0.25s ease;
}
.footer-quali:hover {
  background: rgba(255, 235, 4, 0.05);
}
.footer-quali-mark {
  width: 36px;
  height: 36px;
  background: var(--yellow);
  color: var(--jet);
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-family: var(--font-pixel);
  font-size: 18px;
}
.footer-quali-text {
  font-size: 12px;
  line-height: 1.3;
}
.footer-quali-text strong {
  color: var(--white);
  display: block;
  font-size: 13px;
}

/* === EMPTY / ERROR / EMPTY-CATALOG === */
.catalog-empty,
.catalog-error {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px;
  background: var(--white);
  border: 1px dashed var(--gray-200);
  border-radius: var(--radius-lg);
  color: var(--gray-600);
}
.catalog-error {
  border-color: #ffb3b3;
  background: #fff8f8;
  color: #a31a1a;
}

/* === RESPONSIVE === */

/* Hamburger (cache desktop) */
.topbar-burger {
  display: none;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: auto;
  transition:
    border-color 0.2s,
    background-color 0.2s,
    transform 0.15s;
}
.topbar-burger:hover {
  border-color: var(--yellow);
}
.topbar-burger:active {
  transform: scale(0.95);
}
.topbar-burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  position: relative;
  transition: background-color 0.15s;
}
.topbar-burger span::before,
.topbar-burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition:
    transform 0.25s var(--ease-out-back),
    top 0.25s,
    bottom 0.25s;
}
.topbar-burger span::before {
  top: -6px;
}
.topbar-burger span::after {
  bottom: -6px;
}
.topbar-burger.open span {
  background: transparent;
}
.topbar-burger.open span::before {
  top: 0;
  transform: rotate(45deg);
}
.topbar-burger.open span::after {
  bottom: 0;
  transform: rotate(-45deg);
}

/* === APPROACH === */
.approach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.approach-card {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-100);
  transition:
    transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}
.approach-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--jet);
}
.approach-card-num {
  font-family: var(--font-pixel);
  letter-spacing: 4px;
  color: var(--gray-200);
  font-size: 32px;
  margin-bottom: 16px;
}
.approach-card h3 {
  font-size: 22px;
  margin: 0 0 12px;
  letter-spacing: -0.3px;
}
.approach-card p {
  color: var(--gray-600);
  margin: 0;
}

/* ----- >= 1100px : layout par defaut ----- */

/* ----- Tablette large (≤ 1100px) ----- */
@media (max-width: 1100px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero h1 {
    font-size: 48px;
  }
  .detail-main {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: relative;
    top: 0;
  }
  .tiles {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-strip-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

/* ----- Tablette / grand mobile (≤ 900px) ----- */
@media (max-width: 900px) {
  .section {
    padding: 56px 24px;
  }
  .section-head h2 {
    font-size: 32px;
  }
  .hero {
    padding: 64px 24px 80px;
  }
  .hero h1 {
    font-size: 42px;
  }
  .detail-hero {
    padding: 28px 24px 80px;
  }
  .detail-hero.has-image {
    padding-top: 160px;
    padding-bottom: 96px;
  }
  .detail-main {
    padding: 0 24px 80px;
  }
  .contact-strip {
    padding: 64px 24px;
  }
  .contact-strip h2 {
    font-size: 36px;
  }
  .footer {
    padding: 48px 24px 20px;
  }
  .topbar-inner {
    padding: 14px 24px;
    gap: 16px;
  }
  .panel {
    padding: 24px;
  }
  .form-card {
    padding: 28px;
  }
  .indicators-grid {
    grid-template-columns: 1fr 1fr !important;
  }
  .approach-card {
    padding: 24px;
  }
}

/* ----- Mobile (≤ 700px) — declenche aussi le menu hamburger ----- */
@media (max-width: 700px) {
  .topbar-burger {
    display: inline-flex;
  }
  .qualiopi-pill {
    display: none;
  }
  .section-head h2 br,
  .contact-strip h2 br {
    display: none;
  }
  .contact-strip h2 {
    font-size: 32px;
  }
  .contact-info-row {
    font-size: 14px;
  }
  /* nav : panneau deroulant sous la topbar */
  .topbar nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--jet);
    border-bottom: 1px solid #000;
    margin-left: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 20px;
    transform-origin: top;
    transform: scaleY(0);
    opacity: 0;
    pointer-events: none;
    transition:
      transform 0.25s var(--ease-out-quart),
      opacity 0.2s ease;
  }
  .topbar nav.open {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }
  .topbar nav a {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 15px;
  }
  .topbar nav a::after {
    display: none;
  }

  .tiles {
    grid-template-columns: 1fr;
  }
}

/* ----- Mobile compact (≤ 540px) ----- */
@media (max-width: 540px) {
  .section {
    padding: 40px 18px;
  }
  .section-head {
    margin-bottom: 24px;
    gap: 12px;
  }
  .section-head h2 {
    font-size: 26px;
  }
  .section-head p {
    font-size: 14px;
  }
  .hero {
    padding: 48px 18px 72px;
  }
  .hero h1 {
    font-size: 34px;
    line-height: 1.08;
  }
  .hero p {
    font-size: 16px;
  }
  .hero-eyebrow {
    font-size: 16px;
    margin-bottom: 14px;
  }
  .hero-stats {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .stat-card {
    padding: 16px;
    border-radius: var(--radius);
  }
  .stat-num {
    font-size: 28px;
  }
  .stat-label {
    font-size: 11px;
  }

  .detail-hero {
    padding: 24px 18px 72px;
  }
  .detail-hero.has-image {
    padding-top: 120px;
    padding-bottom: 80px;
  }
  .detail-hero h1 {
    font-size: 28px;
    line-height: 1.15;
  }
  .detail-tagline {
    font-size: 16px;
  }
  .detail-main {
    padding: 0 18px 64px;
    margin-top: -48px;
  }
  .breadcrumb {
    font-size: 12px;
    gap: 6px;
    margin-bottom: 20px;
  }
  .breadcrumb > span:nth-child(n + 4) {
    display: none;
  }

  .panel {
    padding: 20px;
    border-radius: var(--radius);
  }
  .panel-head {
    gap: 10px;
    margin-bottom: 14px;
  }
  .panel-head h2 {
    font-size: 18px;
  }
  .panel-head .icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
  }
  .panel .lede {
    font-size: 15px;
  }
  .panel ul.check li {
    font-size: 14px;
  }

  .contact-strip {
    padding: 48px 18px;
  }
  .contact-strip h2 {
    font-size: 28px;
  }
  .contact-strip p {
    font-size: 15px;
  }
  .contact-info {
    margin-top: 24px;
    gap: 12px;
  }
  .contact-info-row .icon {
    width: 36px;
    height: 36px;
  }
  .contact-info-row .val {
    font-size: 14px;
    word-break: break-word;
  }
  .form-card {
    padding: 18px;
    border-radius: var(--radius);
  }
  .form-card::before {
    left: 20px;
    right: 20px;
  }
  .form-row {
    gap: 12px;
    margin-bottom: 12px;
  }
  .field input,
  .field select,
  .field textarea {
    font-size: 16px;
    padding: 11px 12px;
  }
  .checkbox-row {
    font-size: 12px;
    gap: 8px;
    margin: 14px 0;
  }
  .form-card .btn {
    padding: 14px;
    font-size: 15px;
  }
  .approach-grid {
    gap: 16px;
  }
  .approach-card {
    padding: 20px;
  }
  .approach-card h3 {
    font-size: 19px;
  }
  .approach-card-num {
    font-size: 28px;
    margin-bottom: 12px;
  }

  .footer {
    padding: 40px 18px 18px;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 28px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }

  .topbar-inner {
    padding: 12px 18px;
    gap: 12px;
  }
  .brand-text-1,
  .brand-text-3 {
    font-size: 12px;
    letter-spacing: 1.5px;
  }
  .brand-text-2 {
    font-size: 16px;
  }
  .brand-mark {
    width: 34px;
    height: 34px;
  }
  .brand-mark svg,
  .brand-mark .brand-dragon {
    width: 22px;
    height: 22px;
  }

  .filters {
    gap: 8px;
    padding-bottom: 18px;
    margin-bottom: 24px;
  }
  .filter-pill {
    padding: 7px 12px;
    font-size: 13px;
  }

  .indicators-grid {
    grid-template-columns: 1fr !important;
  }
  #indicators {
    padding: 56px 18px !important;
  }
  #indicators > div > div:first-child h2 {
    font-size: 28px !important;
  }
  #indicators > div > div > div {
    padding: 28px 22px !important;
  }
  #indicators > div > div > div > div:first-child {
    font-size: 36px !important;
  }

  .hero-cta .btn {
    flex: 1 1 100%;
    justify-content: center;
  }
  .btn {
    padding: 12px 20px;
    font-size: 14px;
  }
}

/* ----- Tres petit (≤ 380px) — confort sur iPhone SE etc. ----- */
@media (max-width: 380px) {
  .hero h1 {
    font-size: 30px;
  }
  .stat-num {
    font-size: 24px;
  }
  .section-head h2 {
    font-size: 22px;
  }
  .detail-hero h1 {
    font-size: 24px;
  }
  .contact-strip h2 {
    font-size: 26px;
  }
}

/* === MOTION RESPECT === */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   View Transitions — navigation Home <-> Detail
   ============================================================ */

/* Slide directionnel sur le root */
:root:active-view-transition-type(nav-forward)::view-transition-old(root) {
  animation: vt-slide-out-left 0.25s ease-in both;
}
:root:active-view-transition-type(nav-forward)::view-transition-new(root) {
  animation: vt-slide-in-right 0.25s ease-out both;
}
:root:active-view-transition-type(nav-back)::view-transition-old(root) {
  animation: vt-slide-out-right 0.25s ease-in both;
}
:root:active-view-transition-type(nav-back)::view-transition-new(root) {
  animation: vt-slide-in-left 0.25s ease-out both;
}

@keyframes vt-slide-in-right {
  from {
    transform: translateX(40px);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
@keyframes vt-slide-out-left {
  to {
    transform: translateX(-40px);
    opacity: 0;
  }
}
@keyframes vt-slide-in-left {
  from {
    transform: translateX(-40px);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
@keyframes vt-slide-out-right {
  to {
    transform: translateX(40px);
    opacity: 0;
  }
}

/* Morph snappy par defaut */
::view-transition-group(*) {
  animation-duration: 0.35s;
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ----- Shared image (tile <-> sidebar) -----
   Morph visible : on ralentit, on adoucit la courbe, on remonte le groupe au-dessus
   du slide root et on supprime le cross-fade par defaut (src identique de chaque cote). */
::view-transition-group(.shared-image) {
  animation-duration: 0.85s;
  animation-timing-function: cubic-bezier(0.32, 0.72, 0, 1);
  border-radius: 16px;
  overflow: clip;
  z-index: 10;
}
::view-transition-image-pair(.shared-image) {
  isolation: isolate;
  border-radius: 16px;
  overflow: clip;
}
::view-transition-old(.shared-image),
::view-transition-new(.shared-image) {
  animation-duration: 0.85s;
  animation-timing-function: cubic-bezier(0.32, 0.72, 0, 1);
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(*),
  ::view-transition-new(*),
  ::view-transition-group(*),
  ::view-transition-image-pair(*) {
    animation: none !important;
  }
}
