/* Solea Pixel — site vitrine (identité launcher, pas clone vitrine hosting) */
:root {
  --bg: #070708;
  --bg-panel: #0e0e12;
  --text: #ececf1;
  --muted: rgba(236, 236, 241, 0.62);
  --border: rgba(255, 255, 255, 0.07);
  /* Orange légèrement plus clair pour meilleur contraste (texte important sur fond sombre) */
  --accent: #ff7d33;
  --accent-dim: color-mix(in srgb, var(--accent) 45%, #301008);
  --accent-glow: color-mix(in srgb, var(--accent) 28%, transparent);
  /* Halos hero — plus resserrés = rendu plus « produit » */
  --hub-tag-glow: 0 0 0 1px color-mix(in srgb, #fff 0.1, transparent);
  --note-green: #3ecf8e;
  --note-blue: #5eb3ff;
  --glow-orange: #ff7d33;
  --glow-blue: #3d8cff;
  --glow-green: #2ee59a;
  --glow-violet: #a855f7;
  --radius: 16px;
  --radius-sm: 10px;
  /* Séparateurs : dégradés légers (évite les lignes 1px « crues » sur fond noir) */
  --sep-fade-x: linear-gradient(
    90deg,
    transparent 0%,
    color-mix(in srgb, #fff 0.055, transparent) 22%,
    color-mix(in srgb, #fff 0.1, transparent) 50%,
    color-mix(in srgb, #fff 0.055, transparent) 78%,
    transparent 100%
  );
  --sep-fade-x-accent: linear-gradient(
    90deg,
    transparent 0%,
    color-mix(in srgb, #fff 0.06, transparent) 28%,
    color-mix(in srgb, var(--accent) 0.32, transparent) 50%,
    color-mix(in srgb, #fff 0.06, transparent) 72%,
    transparent 100%
  );
  --font-sans: 'DM Sans', system-ui, sans-serif;
  --font-pixel: 'Press Start 2P', monospace;
  /* Hauteur réservée sous la nav fixe (plein écran / scroll-snap) */
  --nav-slot: 4.5rem;
  /* Scrollbar (Firefox + WebKit) — alignée sur fond sombre + accent orange */
  --scrollbar-w: 10px;
  --scrollbar-track: color-mix(in srgb, var(--bg-panel) 88%, #000);
  --scrollbar-thumb: color-mix(in srgb, var(--accent) 38%, #141018);
  --scrollbar-thumb-hover: color-mix(in srgb, var(--accent) 58%, #1c1014);
  --scrollbar-thumb-active: color-mix(in srgb, var(--accent) 72%, #241208);
}

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

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  height: 100%;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  overflow: hidden;
}

.skip-link {
  position: fixed;
  top: 0.35rem;
  left: 0.35rem;
  z-index: 300;
  padding: 0.45rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--bg);
  background: color-mix(in srgb, var(--accent) 92%, #fff);
  border-radius: 8px;
  text-decoration: none;
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
}

.skip-link:focus {
  clip-path: none;
  width: auto;
  height: auto;
  outline: 2px solid color-mix(in srgb, var(--note-blue) 70%, #fff);
  outline-offset: 2px;
}

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

  .nav-brand:hover {
    transform: none;
  }

  .nav-links a {
    transition-duration: 0.01ms;
  }
}

/* Fond : lueurs colorées animées (orange, bleu, vert, violet) + grain */
.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.ambient__base {
  position: absolute;
  inset: 0;
  background: linear-gradient(165deg, #060607 0%, #08080c 40%, #050506 100%);
}

.ambient__blobs {
  position: absolute;
  inset: -15%;
  overflow: hidden;
}

.ambient-blob {
  position: absolute;
  width: min(52vw, 520px);
  height: min(52vw, 520px);
  border-radius: 50%;
  filter: blur(88px);
  opacity: 0.38;
  will-change: transform;
  mix-blend-mode: screen;
}

.ambient-blob--orange {
  left: -8%;
  top: 5%;
  background: radial-gradient(circle at 35% 35%, color-mix(in srgb, var(--glow-orange) 95%, #fff), var(--glow-orange));
  animation: ambient-blob-a 22s ease-in-out infinite;
}

.ambient-blob--blue {
  right: -12%;
  top: 0%;
  width: min(48vw, 480px);
  height: min(48vw, 480px);
  background: radial-gradient(circle at 40% 40%, color-mix(in srgb, var(--glow-blue) 90%, #fff), var(--glow-blue));
  opacity: 0.32;
  animation: ambient-blob-b 26s ease-in-out infinite;
  animation-delay: -4s;
}

.ambient-blob--green {
  left: 15%;
  bottom: -18%;
  width: min(44vw, 440px);
  height: min(44vw, 440px);
  background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--glow-green) 88%, #fff), var(--glow-green));
  opacity: 0.28;
  animation: ambient-blob-c 19s ease-in-out infinite;
  animation-delay: -9s;
}

.ambient-blob--violet {
  right: 5%;
  bottom: 5%;
  width: min(42vw, 420px);
  height: min(42vw, 420px);
  background: radial-gradient(circle at 30% 60%, color-mix(in srgb, var(--glow-violet) 92%, #e9d5ff), var(--glow-violet));
  opacity: 0.3;
  animation: ambient-blob-d 24s ease-in-out infinite;
  animation-delay: -2s;
}

@keyframes ambient-blob-a {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(10vw, 12vh) scale(1.12);
  }
  66% {
    transform: translate(4vw, -6vh) scale(0.94);
  }
}

@keyframes ambient-blob-b {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  40% {
    transform: translate(-14vw, 8vh) scale(1.08);
  }
  70% {
    transform: translate(-5vw, -10vh) scale(0.9);
  }
}

@keyframes ambient-blob-c {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  35% {
    transform: translate(-12vw, -8vh) scale(1.06);
  }
  65% {
    transform: translate(8vw, -14vh) scale(0.96);
  }
}

@keyframes ambient-blob-d {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  30% {
    transform: translate(-8vw, 10vh) scale(1.1);
  }
  60% {
    transform: translate(12vw, 4vh) scale(0.92);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ambient-blob {
    animation: none;
    opacity: 0.22;
  }
}

.ambient__grain {
  position: absolute;
  inset: 0;
  opacity: 0.055;
  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");
  mix-blend-mode: overlay;
}

.page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100%;
}

/* Une « page » = hauteur utile sous la nav ; snap au défilement ou clic ancre */
.snap-root {
  position: relative;
  flex: 1;
  min-height: 0;
  margin-top: var(--nav-slot);
  height: calc(100vh - var(--nav-slot));
  height: calc(100dvh - var(--nav-slot));
  overflow-anchor: none;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  /* proximity = molette plus naturelle ; mandatory collait trop aux sections */
  scroll-snap-type: y proximity;
  scroll-behavior: smooth;
  scroll-padding-top: 0.5rem;
  outline: none;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

.snap-root::-webkit-scrollbar,
.legal-dialog__panel::-webkit-scrollbar {
  width: var(--scrollbar-w);
}

.snap-root::-webkit-scrollbar-track,
.legal-dialog__panel::-webkit-scrollbar-track {
  margin: 6px 0;
  background: var(--scrollbar-track);
  border-radius: 999px;
}

.snap-root::-webkit-scrollbar-thumb,
.legal-dialog__panel::-webkit-scrollbar-thumb {
  border-radius: 999px;
  border: 2px solid var(--scrollbar-track);
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--scrollbar-thumb-hover) 85%, transparent),
    var(--scrollbar-thumb)
  );
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent);
}

.snap-root::-webkit-scrollbar-thumb:hover,
.legal-dialog__panel::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    180deg,
    var(--scrollbar-thumb-hover),
    color-mix(in srgb, var(--scrollbar-thumb) 75%, #000)
  );
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent),
    0 0 12px color-mix(in srgb, var(--accent) 25%, transparent);
}

.snap-root::-webkit-scrollbar-thumb:active,
.legal-dialog__panel::-webkit-scrollbar-thumb:active {
  background: var(--scrollbar-thumb-active);
}

@media (prefers-reduced-motion: reduce) {
  .snap-root {
    scroll-snap-type: none;
    scroll-behavior: auto;
  }
}

/* Sections pleine largeur : chaque bloc = un écran (sous la nav) */
.site-section {
  position: relative;
  box-sizing: border-box;
  min-height: calc(100vh - var(--nav-slot));
  min-height: calc(100dvh - var(--nav-slot));
  padding: clamp(1.25rem, 3vw, 2rem) clamp(1rem, 4vw, 2.25rem);
  scroll-snap-align: start;
  /* always forçait un arrêt par section — difficile de remonter avec la molette */
  scroll-snap-stop: normal;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: none;
  transition: opacity 0.45s ease;
}

/* Contenu au-dessus des voilages de transition entre sections */
.site-section > .site-section__inner {
  position: relative;
  z-index: 1;
}

/* Entre sections : voile doux (lueurs + fondu) — plus de « coupure » nette */
.site-section + .site-section::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: clamp(56px, 16vh, 140px);
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 78% 70% at 50% -8%, color-mix(in srgb, var(--accent) 0.16, transparent), transparent 58%),
    radial-gradient(ellipse 42% 50% at 12% 0%, color-mix(in srgb, var(--note-blue) 0.1, transparent), transparent 52%),
    radial-gradient(ellipse 40% 48% at 90% 0%, color-mix(in srgb, var(--glow-violet) 0.08, transparent), transparent 50%),
    linear-gradient(180deg, color-mix(in srgb, #fff 0.04, transparent) 0%, transparent 72%);
  mask-image: linear-gradient(180deg, #000 0%, #000 32%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 32%, transparent 100%);
  opacity: 0.92;
}

.site-section + .site-section {
  border-top: none;
}

@media (prefers-reduced-motion: reduce) {
  .site-section + .site-section::before {
    opacity: 0.65;
    height: clamp(40px, 10vh, 80px);
  }

  .site-section--downloads::after {
    opacity: 0.55;
    height: clamp(44px, 12vh, 100px);
  }
}

/* Entrées au scroll (léger) — uniquement si l’utilisateur n’a pas demandé moins de mouvement */
@keyframes solea-in-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes solea-in-nudge {
  from {
    transform: translateY(8px);
  }
  to {
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hub--inview .hub-shell {
    animation: solea-in-nudge 0.52s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .hub--inview .meta-strip {
    animation: solea-in-up 0.44s cubic-bezier(0.22, 1, 0.36, 1) 0.07s both;
  }

  .features--inview .section-head--about .section-head__tag {
    animation: solea-in-up 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .features--inview .section-head--about .section-head__line {
    animation: solea-in-up 0.42s cubic-bezier(0.22, 1, 0.36, 1) 0.04s both;
  }

  .features--inview .section-head--about .section-head__title {
    animation: solea-in-up 0.44s cubic-bezier(0.22, 1, 0.36, 1) 0.07s both;
  }

  .features--inview .section-head--about .section-head__lead {
    animation: solea-in-up 0.44s cubic-bezier(0.22, 1, 0.36, 1) 0.11s both;
  }

  .features--inview .about-bento > article:nth-child(1) {
    animation: solea-in-up 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
  }

  .features--inview .about-bento > article:nth-child(2) {
    animation: solea-in-up 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.13s both;
  }

  .features--inview .about-bento > article:nth-child(3) {
    animation: solea-in-up 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.16s both;
  }

  .features--inview .about-bento > article:nth-child(4) {
    animation: solea-in-up 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.19s both;
  }

  .features--inview .about-bento > article:nth-child(5) {
    animation: solea-in-up 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.22s both;
  }

  .features--inview .about-bento > article:nth-child(6) {
    animation: solea-in-up 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both;
  }

  .features--inview .about-bento > article:nth-child(7) {
    animation: solea-in-up 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.28s both;
  }

  .news--inview .section-head--news .section-head__tag {
    animation: solea-in-up 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .news--inview .section-head--news .section-head__line {
    animation: solea-in-up 0.42s cubic-bezier(0.22, 1, 0.36, 1) 0.04s both;
  }

  .news--inview .section-head--news .section-head__title {
    animation: solea-in-up 0.44s cubic-bezier(0.22, 1, 0.36, 1) 0.07s both;
  }

  .news--inview .section-head--news .section-head__lead {
    animation: solea-in-up 0.44s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
  }

  .news--inview .news-hub__p:nth-child(1) {
    animation: solea-in-up 0.42s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
  }

  .news--inview .news-hub__p:nth-child(2) {
    animation: solea-in-up 0.42s cubic-bezier(0.22, 1, 0.36, 1) 0.16s both;
  }

  .downloads--inview .section-head--downloads .section-head__tag {
    animation: solea-in-up 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .downloads--inview .section-head--downloads .section-head__line {
    animation: solea-in-up 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.04s both;
  }

  .downloads--inview .section-head--downloads .section-head__title {
    animation: solea-in-up 0.42s cubic-bezier(0.22, 1, 0.36, 1) 0.07s both;
  }

  .downloads--inview .section-head--downloads .section-head__lead {
    animation: solea-in-up 0.42s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
  }
}

.site-section--hub {
  padding-top: clamp(1rem, 2.5vw, 1.85rem);
  padding-bottom: clamp(1.25rem, 3vw, 2.1rem);
}

.site-section__inner {
  max-width: 1220px;
  margin: 0 auto;
  width: 100%;
  flex: 0 1 auto;
}

.site-section__inner--narrow {
  max-width: 760px;
}

.site-section__inner--hub {
  max-width: 1320px;
}

/* Bloc accueil : cadre vitré, fil lumineux haut, relief maîtrisé */
.hub-shell {
  position: relative;
  isolation: isolate;
  padding: clamp(2rem, 5vw, 3.35rem) clamp(1.45rem, 4vw, 3rem);
  border-radius: calc(var(--radius) + 10px);
  border: 1px solid color-mix(in srgb, #fff 0.11, transparent);
  background:
    radial-gradient(ellipse 72% 48% at 14% -8%, color-mix(in srgb, var(--accent) 0.18, transparent), transparent 55%),
    radial-gradient(ellipse 50% 38% at 92% 8%, color-mix(in srgb, var(--glow-violet) 0.08, transparent), transparent 52%),
    linear-gradient(158deg, color-mix(in srgb, var(--accent) 0.07, transparent) 0%, transparent 52%),
    color-mix(in srgb, var(--bg-panel) 86%, rgba(0, 0, 0, 0.35));
  backdrop-filter: blur(20px) saturate(1.08);
  -webkit-backdrop-filter: blur(20px) saturate(1.08);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--accent) 0.12, transparent),
    0 36px 96px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.075);
}

.hub-shell::before {
  content: '';
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent,
    color-mix(in srgb, #fff 0.22, transparent) 42%,
    color-mix(in srgb, var(--accent) 0.45, transparent) 50%,
    color-mix(in srgb, #fff 0.18, transparent) 58%,
    transparent
  );
  opacity: 0.85;
}

.site-section--about {
  background:
    radial-gradient(ellipse 85% 50% at 50% -5%, color-mix(in srgb, var(--accent) 0.12, transparent), transparent 52%),
    radial-gradient(ellipse 55% 40% at 0% 100%, color-mix(in srgb, var(--glow-violet) 0.06, transparent), transparent 50%),
    radial-gradient(ellipse 50% 35% at 100% 90%, color-mix(in srgb, var(--note-blue) 0.06, transparent), transparent 50%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 65%);
  justify-content: flex-start;
  padding: clamp(1rem, 2.5vh, 1.65rem) clamp(0.75rem, 2.5vw, 1.5rem);
}

/* À propos : bloc vitré large (refonte visuelle + meilleure emprise écran) */
.site-section__inner--about.site-section__inner--wide {
  max-width: min(1240px, calc(100% - 1.5rem));
  display: flex;
  flex-direction: column;
  gap: clamp(1.15rem, 2.5vh, 1.75rem);
  width: 100%;
  padding: clamp(1.15rem, 2.8vw, 1.85rem) clamp(1.1rem, 3vw, 2.25rem);
  border-radius: clamp(20px, 2.5vw, 28px);
  border: 1px solid color-mix(in srgb, #fff 0.11, transparent);
  background:
    linear-gradient(165deg, color-mix(in srgb, var(--accent) 0.06, rgba(255, 255, 255, 0.02)) 0%, transparent 45%),
    color-mix(in srgb, var(--bg-panel) 78%, rgba(0, 0, 0, 0.5));
  backdrop-filter: blur(20px) saturate(1.12);
  -webkit-backdrop-filter: blur(20px) saturate(1.12);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--accent) 0.15, transparent),
    0 32px 80px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.section-head--about {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto auto;
  align-items: center;
  gap: 0.55rem 1.25rem;
  margin-bottom: 0;
  padding-bottom: clamp(0.85rem, 2vh, 1.2rem);
  border-bottom: none;
  position: relative;
}

.section-head--about::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 99px;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--accent) 58%, transparent) 0%,
    color-mix(in srgb, #fff 10%, transparent) 38%,
    color-mix(in srgb, var(--accent) 18%, transparent) 72%,
    transparent 100%
  );
  opacity: 0.92;
  box-shadow: 0 0 20px color-mix(in srgb, var(--accent) 16%, transparent);
}

.section-head--about .section-head__tag {
  grid-column: 1;
  grid-row: 1;
  letter-spacing: 0.24em;
}

.section-head--about .section-head__title {
  grid-column: 1 / -1;
  grid-row: 2;
  margin: 0.25rem 0 0;
  font-size: clamp(1.55rem, 2.8vw + 1rem, 2.45rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: #fff;
  text-shadow:
    0 2px 32px rgba(0, 0, 0, 0.45),
    0 0 40px color-mix(in srgb, var(--accent) 18%, transparent);
}

.section-head--about .section-head__lead {
  grid-column: 1 / -1;
  grid-row: 3;
  max-width: min(52rem, 100%);
  margin: 0.55rem 0 0;
  font-size: clamp(1rem, 0.55vw + 0.88rem, 1.18rem);
  line-height: 1.55;
  color: color-mix(in srgb, var(--text) 88%, var(--muted));
  font-weight: 500;
}

.site-section--news {
  background: linear-gradient(180deg, transparent 0%, rgba(255, 125, 51, 0.04) 45%, transparent 100%);
  justify-content: flex-start;
}

.site-section--news .site-section__inner--wide {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  gap: 0.35rem;
}

.section-head--news .section-head__tag {
  color: color-mix(in srgb, var(--accent) 92%, #fff);
}

.news-hub {
  flex: 0 1 auto;
  max-width: 44rem;
  padding: 0.25rem 0 0.5rem;
}

.news-hub__p {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  line-height: 1.58;
  color: var(--text);
}

.news-hub__p:last-child {
  margin-bottom: 0;
}

.news-hub__p strong {
  color: color-mix(in srgb, var(--accent) 72%, #fff);
  font-weight: 650;
}

.news-hub__p--muted {
  color: var(--muted);
  font-size: 0.9rem;
}

.live-news-feed__intro {
  margin: 1rem 0 0.5rem;
  max-width: 44rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: color-mix(in srgb, var(--text) 82%, var(--muted));
}

.live-news-feed {
  width: 100%;
  max-width: min(56rem, 100%);
  margin: 0.25rem 0 0;
}

.live-news-feed__grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
}

.live-news-feed__loading,
.live-news-feed__status {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.live-news-feed__status:not([hidden]) {
  padding-top: 0.35rem;
}

.live-news-card {
  border-radius: 14px;
  padding: 0.85rem 1rem;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

.live-news-card__title {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  color: color-mix(in srgb, var(--accent) 55%, var(--text));
}

.live-news-card__body {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text);
}

/* Rendu actu (même mini-langage que le launcher — style proche Discord) */
.live-news-card__body .actu-body {
  margin: 0;
}

.live-news-card__body .actu-h {
  margin: 0.35rem 0 0.25rem;
  font-weight: 700;
  line-height: 1.25;
}

.live-news-card__body .actu-h--1 {
  font-size: 1.05rem;
}

.live-news-card__body .actu-h--2 {
  font-size: 0.98rem;
  color: color-mix(in srgb, var(--accent) 55%, var(--text));
}

.live-news-card__body .actu-h--3 {
  font-size: 0.92rem;
  color: color-mix(in srgb, var(--text) 90%, var(--muted));
}

.live-news-card__body .actu-p {
  margin: 0 0 0.5rem;
}

.live-news-card__body .actu-p:last-child {
  margin-bottom: 0;
}

.live-news-card__body .actu-ul {
  margin: 0.35rem 0 0.55rem;
  padding-left: 1.15rem;
}

.live-news-card__body .actu-li {
  margin: 0.15rem 0;
}

.live-news-card__body .actu-blockquote {
  margin: 0.45rem 0;
  padding: 0.45rem 0.65rem;
  border-left: 3px solid color-mix(in srgb, var(--accent) 55%, transparent);
  border-radius: 0 8px 8px 0;
  background: color-mix(in srgb, var(--surface) 75%, #1e2127);
}

.live-news-card__body .actu-bq-line {
  margin: 0.2rem 0;
  color: color-mix(in srgb, var(--text) 88%, var(--muted));
}

.live-news-card__body .actu-hr {
  border: none;
  height: 1px;
  margin: 0.55rem 0;
  background: var(--sep-fade-x);
  opacity: 0.9;
}

.live-news-card__body .actu-pre {
  margin: 0.45rem 0;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  line-height: 1.45;
  overflow-x: auto;
  background: #1e1f22;
  color: #dbdee1;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.live-news-card__body .actu-pre code {
  font: inherit;
  white-space: pre;
}

.live-news-card__body .actu-inline-code {
  padding: 0.08em 0.32em;
  border-radius: 4px;
  font-size: 0.9em;
  background: #2b2d31;
  color: #eceff4;
}

.live-news-card__body .actu-inline-mark {
  padding: 0.06em 0.22em;
  border-radius: 4px;
  background: color-mix(in srgb, var(--accent) 32%, transparent);
}

.live-news-card__body .actu-inline-strike {
  opacity: 0.85;
}

.live-news-card__body .actu-spoiler {
  cursor: help;
  border-radius: 4px;
  padding: 0 0.1em;
  background: #2b2d31;
}

.live-news-card__body .actu-spoiler__inner {
  filter: blur(5px);
  transition: filter 0.18s ease;
}

.live-news-card__body .actu-spoiler:hover .actu-spoiler__inner,
.live-news-card__body .actu-spoiler:focus-within .actu-spoiler__inner {
  filter: none;
}

.live-news-card .live-news-card__title.actu-h {
  margin-bottom: 0.4rem;
}

.engage-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: clamp(1.25rem, 3vw, 1.85rem);
}

@media (max-width: 900px) {
  .engage-strip {
    grid-template-columns: 1fr;
  }
}

.engage-tile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 1.05rem;
  border-radius: calc(var(--radius-sm) + 2px);
  border: 1px solid color-mix(in srgb, #fff 0.1, transparent);
  background: color-mix(in srgb, var(--bg-panel) 90%, transparent);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  transition:
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.engage-tile:hover {
  border-color: color-mix(in srgb, var(--accent) 32%, transparent);
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.36);
}

.engage-tile--discord {
  border-color: color-mix(in srgb, #5865f2 35%, transparent);
  background: linear-gradient(
    135deg,
    color-mix(in srgb, #5865f2 12%, transparent),
    color-mix(in srgb, var(--bg-panel) 92%, transparent)
  );
}

@media (max-width: 720px) {
  .engage-tile--discord {
    order: -1;
  }
}

.engage-tile__icon {
  display: inline-flex;
  flex-shrink: 0;
  opacity: 0.88;
}

.engage-tile__icon--git {
  opacity: 0.95;
}

.engage-tile__text {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}

.engage-tile__title {
  font-size: 0.92rem;
  font-weight: 750;
}

.engage-tile__sub {
  font-size: 0.76rem;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  .engage-tile {
    transition: none;
  }

  .engage-tile:hover {
    transform: none;
  }
}

.legal-dialog {
  padding: 0;
  border: none;
  background: transparent;
  width: min(100vw, 100%);
  max-width: 100vw;
  max-height: 100dvh;
  height: 100dvh;
  margin: 0;
  color: inherit;
}

.legal-dialog::backdrop {
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.legal-dialog__frame {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  width: 100%;
  padding: clamp(0.85rem, 4vw, 1.75rem);
  box-sizing: border-box;
  cursor: default;
}

.legal-dialog__panel {
  width: 100%;
  max-width: 560px;
  max-height: min(88dvh, 760px);
  overflow-x: hidden;
  overflow-y: auto;
  padding: clamp(1rem, 2.8vw, 1.35rem) clamp(1rem, 3vw, 1.45rem) clamp(1.1rem, 2.8vw, 1.35rem);
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid color-mix(in srgb, #fff 0.16, transparent);
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
  background:
    linear-gradient(165deg, color-mix(in srgb, var(--accent) 0.1, #12121a) 0%, #0c0c10 55%);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--accent) 0.22, transparent),
    0 4px 0 color-mix(in srgb, var(--accent) 0.12, transparent),
    0 32px 96px rgba(0, 0, 0, 0.72),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  cursor: auto;
}

.legal-dialog__surface {
  margin-top: 0.15rem;
  padding: clamp(1.1rem, 2.8vw, 1.45rem) clamp(1.05rem, 2.8vw, 1.35rem) clamp(1rem, 2.5vw, 1.25rem);
  border-radius: calc(var(--radius-sm) + 6px);
  border: 1px solid color-mix(in srgb, #fff 0.1, transparent);
  background: linear-gradient(180deg, #1a1a24 0%, #13131a 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 12px 40px rgba(0, 0, 0, 0.35);
}

.legal-dialog__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: none;
  position: relative;
}

.legal-dialog__head::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  pointer-events: none;
  background: var(--sep-fade-x);
  opacity: 0.85;
}

.legal-dialog__close {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin: 0;
  padding: 0;
  border: 1px solid color-mix(in srgb, #fff 0.12, transparent);
  border-radius: 10px;
  font-size: 1.35rem;
  line-height: 1;
  font-weight: 500;
  color: var(--muted);
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  cursor: pointer;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.legal-dialog__close:hover {
  color: var(--text);
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

.legal-dialog__close:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--note-blue) 65%, #fff);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .legal-dialog::backdrop {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

.legal-page__title {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-size: clamp(1.2rem, 3.5vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.legal-page__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 1.5rem;
}

@media (max-width: 640px) {
  .legal-page__grid {
    grid-template-columns: 1fr;
  }
}

.legal-page__h {
  margin: 0 0 0.45rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: color-mix(in srgb, var(--accent) 45%, #fff);
}

.legal-page__p {
  margin: 0;
  font-size: 0.88rem;
  color: color-mix(in srgb, var(--muted) 88%, var(--text));
  line-height: 1.58;
}

.legal-page__p strong {
  color: color-mix(in srgb, var(--accent) 72%, #fff);
  font-weight: 600;
}

.legal-page__note {
  margin: 1.25rem 0 0;
  padding-top: 1.1rem;
  border-top: none;
  position: relative;
  font-size: 0.8rem;
  color: color-mix(in srgb, var(--muted) 92%, var(--text));
  line-height: 1.5;
}

.legal-page__note::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  pointer-events: none;
  background: var(--sep-fade-x);
  opacity: 0.8;
}

.site-section--downloads {
  background:
    radial-gradient(ellipse 65% 50% at 80% 20%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 55%),
    radial-gradient(ellipse 50% 45% at 10% 70%, color-mix(in srgb, var(--glow-green) 8%, transparent), transparent 50%),
    linear-gradient(180deg, transparent 0%, rgba(255, 106, 26, 0.05) 45%, transparent 78%);
  justify-content: flex-start;
}

/* Bas de section téléchargements : fondu vers le noir pour enchaîner visuellement avec la FAQ */
.site-section--downloads::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(64px, 18vh, 160px);
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    0deg,
    transparent 0%,
    color-mix(in srgb, #050508 55%, transparent) 38%,
    color-mix(in srgb, #030305 75%, transparent) 100%
  );
  mask-image: linear-gradient(180deg, transparent 0%, #000 40%, #000 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 40%, #000 100%);
  opacity: 0.85;
}

.site-section--downloads .site-section__inner--wide {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

.downloads-stack {
  gap: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.site-section__inner--wide {
  max-width: 1120px;
}

.site-section--faq {
  background:
    radial-gradient(ellipse 95% 60% at 50% 2%, color-mix(in srgb, var(--note-blue) 12%, transparent), transparent 55%),
    radial-gradient(ellipse 60% 48% at 100% 35%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 58%),
    radial-gradient(ellipse 55% 42% at 0% 55%, color-mix(in srgb, var(--glow-violet) 12%, transparent), transparent 52%),
    radial-gradient(ellipse 45% 30% at 50% 100%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 45%),
    linear-gradient(180deg, color-mix(in srgb, #050508 40%, transparent) 0%, transparent 22%, transparent 100%),
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.32));
  padding-top: clamp(1.5rem, 3.5vw, 2.25rem);
  padding-bottom: clamp(1.25rem, 3vw, 2rem);
}

.site-section--about,
.site-section--faq {
  justify-content: flex-start;
}

/* FAQ : colonne pleine hauteur, mentions en bas du même écran (plus d’écran « vide ») */
.site-section--faq .site-section__inner--narrow {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  width: 100%;
  max-width: min(860px, 100%);
  min-height: 0;
  gap: clamp(0.65rem, 2vw, 1.1rem);
}

.site-section--faq .faq-shell {
  flex: 0 0 auto;
}

.section-head {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto auto;
  gap: 0.65rem 1.35rem;
  align-items: center;
  margin-bottom: clamp(1.85rem, 4.2vw, 2.85rem);
}

/* Pastille + rail : contraste élevé, finition « produit » (lisible sur noir) */
.section-head__tag {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0.52rem 1.18rem;
  font-size: clamp(0.64rem, 1.05vw, 0.74rem);
  font-weight: 780;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--accent) 96%, #fff);
  white-space: nowrap;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 62%, #2a1006);
  background:
    linear-gradient(
      168deg,
      color-mix(in srgb, var(--accent) 26%, rgba(255, 255, 255, 0.14)) 0%,
      color-mix(in srgb, var(--accent) 6%, transparent) 48%,
      transparent 58%
    ),
    linear-gradient(180deg, color-mix(in srgb, #fff 8%, transparent) 0%, transparent 42%),
    color-mix(in srgb, var(--bg-panel) 68%, #120805);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -1px 0 color-mix(in srgb, var(--accent) 18%, transparent),
    0 0 0 1px color-mix(in srgb, #000 55%, transparent),
    0 0 36px color-mix(in srgb, var(--accent) 28%, transparent),
    0 6px 20px rgba(0, 0, 0, 0.4);
  text-shadow: 0 0 20px color-mix(in srgb, var(--accent) 45%, transparent);
}

.section-head__line {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  align-self: center;
  min-height: 3px;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--accent) 72%, transparent) 0%,
    color-mix(in srgb, var(--accent) 38%, transparent) 8%,
    color-mix(in srgb, #fff 14%, transparent) 22%,
    color-mix(in srgb, #fff 7%, transparent) 42%,
    color-mix(in srgb, var(--accent) 22%, transparent) 68%,
    color-mix(in srgb, var(--accent) 6%, transparent) 88%,
    transparent 100%
  );
  box-shadow:
    0 0 1px color-mix(in srgb, var(--accent) 40%, transparent),
    0 0 28px color-mix(in srgb, var(--accent) 22%, transparent),
    inset 0 1px 0 color-mix(in srgb, #fff 18%, transparent);
}

.section-head__line::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 8px;
  transform: translate(-0.55rem, -50%);
  border-radius: 50%;
  background: linear-gradient(145deg, #fff 0%, color-mix(in srgb, var(--accent) 90%, #fff) 100%);
  box-shadow:
    0 0 0 2px color-mix(in srgb, var(--accent) 35%, transparent),
    0 0 18px color-mix(in srgb, var(--accent) 70%, transparent),
    0 0 36px color-mix(in srgb, var(--accent) 28%, transparent);
  pointer-events: none;
}

.section-head__title {
  grid-column: 1 / -1;
  grid-row: 2;
  margin: 0.45rem 0 0;
  font-size: clamp(1.5rem, 2.9vw, 2.12rem);
  font-weight: 800;
  letter-spacing: -0.028em;
  line-height: 1.14;
  color: #fafafa;
}

.section-head__lead {
  grid-column: 1 / -1;
  grid-row: 3;
  margin: 0.55rem 0 0;
  color: color-mix(in srgb, var(--muted) 94%, var(--text));
  font-size: 0.96rem;
  max-width: 42rem;
  line-height: 1.55;
}

@media (max-width: 480px) {
  .section-head__tag {
    letter-spacing: 0.16em;
    padding: 0.42rem 0.88rem;
    font-size: 0.6rem;
  }

  .section-head__line {
    min-height: 2px;
    height: 2px;
  }

  .section-head__line::before {
    width: 7px;
    height: 7px;
    transform: translate(-0.42rem, -50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .section-head__tag {
    text-shadow: none;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.14),
      inset 0 -1px 0 color-mix(in srgb, var(--accent) 12%, transparent),
      0 0 0 1px color-mix(in srgb, #000 55%, transparent),
      0 4px 16px rgba(0, 0, 0, 0.38);
  }

  .section-head__line {
    box-shadow:
      0 0 1px color-mix(in srgb, var(--accent) 28%, transparent),
      inset 0 1px 0 color-mix(in srgb, #fff 12%, transparent);
  }

  .section-head__line::before {
    box-shadow:
      0 0 0 2px color-mix(in srgb, var(--accent) 28%, transparent),
      0 0 12px color-mix(in srgb, var(--accent) 45%, transparent);
  }

  .section-head--faq .section-head__tag {
    text-shadow: none;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.12),
      inset 0 -1px 0 color-mix(in srgb, var(--note-blue) 12%, transparent),
      0 0 0 1px color-mix(in srgb, #000 55%, transparent),
      0 4px 16px rgba(0, 0, 0, 0.38);
  }

  .section-head--faq .section-head__line {
    box-shadow:
      0 0 1px color-mix(in srgb, var(--note-blue) 26%, transparent),
      inset 0 1px 0 color-mix(in srgb, #fff 10%, transparent);
  }

  .section-head--faq .section-head__line::before {
    box-shadow:
      0 0 0 2px color-mix(in srgb, var(--note-blue) 26%, transparent),
      0 0 12px color-mix(in srgb, var(--note-blue) 42%, transparent);
  }
}

.section-head--faq .section-head__tag {
  color: color-mix(in srgb, var(--note-blue) 94%, #fff);
  border-color: color-mix(in srgb, var(--note-blue) 58%, #0a1a28);
  background:
    linear-gradient(
      168deg,
      color-mix(in srgb, var(--note-blue) 24%, rgba(255, 255, 255, 0.12)) 0%,
      color-mix(in srgb, var(--note-blue) 5%, transparent) 48%,
      transparent 58%
    ),
    linear-gradient(180deg, color-mix(in srgb, #fff 7%, transparent) 0%, transparent 42%),
    color-mix(in srgb, var(--bg-panel) 66%, #050a12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 color-mix(in srgb, var(--note-blue) 16%, transparent),
    0 0 0 1px color-mix(in srgb, #000 55%, transparent),
    0 0 36px color-mix(in srgb, var(--note-blue) 26%, transparent),
    0 6px 20px rgba(0, 0, 0, 0.4);
  text-shadow: 0 0 20px color-mix(in srgb, var(--note-blue) 40%, transparent);
}

.section-head--faq .section-head__line {
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--note-blue) 68%, transparent) 0%,
    color-mix(in srgb, var(--note-blue) 36%, transparent) 8%,
    color-mix(in srgb, #fff 13%, transparent) 22%,
    color-mix(in srgb, #fff 6%, transparent) 42%,
    color-mix(in srgb, var(--note-blue) 20%, transparent) 70%,
    color-mix(in srgb, var(--note-blue) 5%, transparent) 90%,
    transparent 100%
  );
  box-shadow:
    0 0 1px color-mix(in srgb, var(--note-blue) 38%, transparent),
    0 0 28px color-mix(in srgb, var(--note-blue) 20%, transparent),
    inset 0 1px 0 color-mix(in srgb, #fff 16%, transparent);
}

.section-head--faq .section-head__line::before {
  background: linear-gradient(145deg, #fff 0%, color-mix(in srgb, var(--note-blue) 88%, #fff) 100%);
  box-shadow:
    0 0 0 2px color-mix(in srgb, var(--note-blue) 32%, transparent),
    0 0 18px color-mix(in srgb, var(--note-blue) 65%, transparent),
    0 0 34px color-mix(in srgb, var(--note-blue) 26%, transparent);
}

/* Nav fixe — grille 3 colonnes, dock central glass */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: clamp(0.75rem, 2vw, 1.5rem);
  min-height: var(--nav-slot);
  padding: 0.5rem clamp(0.85rem, 3.5vw, 2rem);
  border-bottom: none;
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 88%, transparent) 0%, color-mix(in srgb, var(--bg) 94%, transparent) 100%);
  backdrop-filter: blur(22px) saturate(1.15);
  -webkit-backdrop-filter: blur(22px) saturate(1.15);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.nav::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  pointer-events: none;
  background: var(--sep-fade-x-accent);
  opacity: 0.75;
}

.nav__glow {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: min(72vw, 520px);
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    color-mix(in srgb, var(--accent) 55%, transparent) 35%,
    color-mix(in srgb, var(--note-blue) 45%, transparent) 65%,
    transparent
  );
  opacity: 0.85;
  pointer-events: none;
}

.nav__rail {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 25%, #300));
  opacity: 0.75;
  pointer-events: none;
}

.nav-brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
  justify-self: start;
  padding: 0.2rem 0.35rem 0.2rem 0.5rem;
  border-radius: 14px;
  transition:
    background 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.22s ease;
}

.nav-brand:hover {
  background: color-mix(in srgb, #fff 0.04, transparent);
  box-shadow: 0 0 28px color-mix(in srgb, var(--accent) 12%, transparent);
  transform: translateY(-1px);
}

.nav-brand__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  background: color-mix(in srgb, var(--bg-panel) 94%, transparent);
  box-shadow:
    0 0 20px var(--accent-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition:
    border-color 0.25s ease,
    transform 0.25s ease;
}

.nav-brand:hover .nav-brand__mark {
  border-color: color-mix(in srgb, var(--accent) 70%, transparent);
  transform: scale(1.03);
}

.nav-brand__mark img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
}

.nav-brand__type {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  font-family: var(--font-pixel);
  line-height: 1.2;
}

.nav-brand__solea {
  font-size: 0.5rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.nav-brand__pixel {
  font-size: 0.56rem;
  letter-spacing: 0.05em;
  color: var(--text);
}

.nav__center {
  position: relative;
  z-index: 1;
  justify-self: center;
  display: flex;
  align-items: center;
  max-width: 100%;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  flex-wrap: nowrap;
}

.nav-dock {
  display: flex;
  align-items: center;
  padding: 0.28rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, #fff 0.1, transparent);
  background: color-mix(in srgb, var(--bg-panel) 72%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 8px 32px rgba(0, 0, 0, 0.35);
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 550;
  letter-spacing: 0.03em;
  padding: 0.48rem 0.95rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition:
    color 0.22s ease,
    background 0.22s ease,
    border-color 0.22s ease,
    transform 0.2s ease,
    box-shadow 0.22s ease;
}

.nav-links a:hover {
  color: var(--text);
  background: color-mix(in srgb, #fff 0.06, transparent);
  transform: translateY(-1px);
}

.nav-links a.is-active {
  color: #fff;
  font-weight: 650;
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--accent) 55%, #401000),
    color-mix(in srgb, var(--accent) 28%, #120804)
  );
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  box-shadow: 0 4px 20px color-mix(in srgb, var(--accent) 28%, transparent);
}

.nav-links a:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--note-blue) 75%, #fff);
  outline-offset: 2px;
}

.nav-actions {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
  justify-self: end;
  flex-wrap: wrap;
  justify-content: flex-end;
}

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

.btn-social {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 999px;
  color: #fff;
  border: 1px solid color-mix(in srgb, #fff 0.12, transparent);
  background: color-mix(in srgb, var(--bg-panel) 82%, transparent);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.28);
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.btn-social svg {
  display: block;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.btn-social:hover {
  transform: translateY(-2px);
}

.btn-social--modrinth {
  background: color-mix(in srgb, #1bd96a 18%, transparent);
  border-color: color-mix(in srgb, #1bd96a 42%, transparent);
  color: #e8fff4;
  box-shadow: 0 4px 16px color-mix(in srgb, #1bd96a 22%, transparent);
}

.btn-social--modrinth:hover {
  background: color-mix(in srgb, #1bd96a 28%, transparent);
  box-shadow: 0 6px 22px color-mix(in srgb, #1bd96a 32%, transparent);
}

.btn-social--youtube {
  background: color-mix(in srgb, #ff0033 16%, transparent);
  border-color: color-mix(in srgb, #ff4d67 38%, transparent);
  color: #fff;
  box-shadow: 0 4px 16px color-mix(in srgb, #ff0033 18%, transparent);
}

.btn-social--youtube:hover {
  background: color-mix(in srgb, #ff0033 26%, transparent);
  box-shadow: 0 6px 22px color-mix(in srgb, #ff0033 28%, transparent);
}

.btn-social--x {
  background: color-mix(in srgb, #fff 8%, transparent);
  border-color: color-mix(in srgb, #fff 0.16, transparent);
  color: #f4f4f5;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.btn-social--x:hover {
  background: color-mix(in srgb, #fff 0.14, transparent);
  border-color: color-mix(in srgb, #fff 0.22, transparent);
}

.btn-social--discord {
  background: color-mix(in srgb, #5865f2 22%, transparent);
  border-color: color-mix(in srgb, #5865f2 42%, transparent);
  color: #fff;
  box-shadow: 0 4px 18px color-mix(in srgb, #5865f2 22%, transparent);
}

.btn-social--discord:hover {
  background: color-mix(in srgb, #5865f2 34%, transparent);
  box-shadow: 0 8px 26px color-mix(in srgb, #5865f2 35%, transparent);
}

.btn-social--bmc {
  background: color-mix(in srgb, #ffdd00 14%, #2a2410);
  border-color: color-mix(in srgb, #ffdd00 45%, #5c4a12);
  color: #fff8e6;
  box-shadow: 0 4px 16px color-mix(in srgb, #ffdd00 18%, transparent);
}

.btn-social--bmc:hover {
  background: color-mix(in srgb, #ffdd00 24%, #2a2410);
  box-shadow: 0 6px 22px color-mix(in srgb, #ffdd00 26%, transparent);
}

@media (prefers-reduced-motion: reduce) {
  .btn-social:hover {
    transform: none;
  }
}

/* Sélecteur de langue — même famille visuelle que les boutons sociaux (44px, ombre, hover) */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  height: 44px;
  padding: 0 0.45rem 0 0.4rem;
  box-sizing: border-box;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, #fff 0.12, transparent);
  background: color-mix(in srgb, var(--bg-panel) 82%, transparent);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.28);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.lang-switch:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 32%, transparent);
  box-shadow:
    0 6px 22px rgba(0, 0, 0, 0.34),
    0 0 28px color-mix(in srgb, var(--accent) 16%, transparent);
}

.lang-switch:focus-within {
  border-color: color-mix(in srgb, var(--accent) 38%, transparent);
}

.lang-switch__globe {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: color-mix(in srgb, var(--accent) 78%, #fff);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid color-mix(in srgb, #fff 0.08, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.lang-switch__globe svg {
  display: block;
}

.lang-switch__pair {
  display: inline-flex;
  align-items: center;
  align-self: stretch;
  margin: 4px 0;
  padding: 2px;
  border-radius: 999px;
  gap: 2px;
  background: rgba(0, 0, 0, 0.3);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4);
}

@media (prefers-reduced-motion: reduce) {
  .lang-switch {
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  }

  .lang-switch:hover {
    transform: none;
  }
}

.nav-social-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.nav-lang-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

@media (max-width: 720px) {
  .nav {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    row-gap: 0.55rem;
    padding-bottom: 0.65rem;
  }

  .nav-brand {
    grid-column: 1;
    grid-row: 1;
  }

  .nav-actions {
    grid-column: 2;
    grid-row: 1;
  }

  .nav-social-wrap {
    align-items: center;
  }

  .nav-lang-wrap {
    align-items: center;
  }

  .nav-social {
    gap: 0.28rem;
  }

  .btn-social {
    width: 40px;
    height: 40px;
  }

  .btn-social svg {
    width: 24px;
    height: 24px;
  }

  .lang-switch {
    height: 40px;
    padding: 0 0.38rem 0 0.32rem;
  }

  .lang-switch__globe {
    width: 28px;
    height: 28px;
  }

  .lang-switch__globe svg {
    width: 16px;
    height: 16px;
  }

  .lang-switch__pair {
    margin: 3px 0;
  }

  .lang-btn {
    min-height: 26px;
    padding: 0 0.62rem;
    font-size: 0.66rem;
    min-width: 2.15rem;
  }

  .nav__center {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: stretch;
  }

  .nav-dock {
    width: 100%;
    justify-content: space-between;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  .nav-links a {
    flex: 1 1 auto;
    text-align: center;
    padding: 0.42rem 0.5rem;
    font-size: 0.76rem;
  }
}

.fab-top {
  position: fixed;
  bottom: clamp(0.85rem, 3vw, 1.35rem);
  right: clamp(0.75rem, 3vw, 1.5rem);
  z-index: 98;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.65rem;
  height: 2.65rem;
  padding: 0;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, #fff 0.12, transparent);
  background: color-mix(in srgb, var(--bg-panel) 88%, transparent);
  color: color-mix(in srgb, var(--accent) 72%, #fff);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;
}

.fab-top:hover {
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
}

.fab-top:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--note-blue) 65%, #fff);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .fab-top {
    transition: none;
  }

  .fab-top:hover {
    transform: none;
  }
}

.lang-btn {
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 0.72rem;
  min-width: 2.4rem;
  font-family: inherit;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  color: color-mix(in srgb, var(--muted) 95%, var(--text));
  background: transparent;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition:
    color 0.2s ease,
    background 0.22s ease,
    transform 0.18s ease,
    box-shadow 0.22s ease;
}

.lang-btn:hover {
  color: var(--text);
  background: color-mix(in srgb, #fff 0.06, transparent);
}

.lang-btn--on {
  color: #fff;
  background: linear-gradient(
    155deg,
    color-mix(in srgb, var(--accent) 72%, #401008),
    color-mix(in srgb, var(--accent) 38%, #1a0a04)
  );
  box-shadow:
    0 2px 12px color-mix(in srgb, var(--accent) 35%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.lang-btn:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--note-blue) 72%, #fff);
  outline-offset: 1px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.12s ease,
    box-shadow 0.18s ease;
}

.btn:active {
  transform: scale(0.98);
}

/* .btn définit du padding plus bas : sans ça, les icônes sont écrasées dans le carré */
.btn.btn-social {
  padding: 0;
  gap: 0;
}

.btn-line {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-line:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  color: #fff;
}

.btn:focus-visible,
.btn-line:focus-visible,
.btn-download:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--note-blue) 72%, #fff);
  outline-offset: 2px;
}

.btn-download {
  background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 95%, #000), color-mix(in srgb, var(--accent) 55%, #401000));
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  color: #fff;
  box-shadow: 0 6px 28px var(--accent-glow);
}

.btn-download:hover {
  filter: brightness(1.06);
  box-shadow: 0 10px 36px var(--accent-glow);
}

.btn-lg {
  padding: 0.82rem 1.35rem;
  font-size: 0.94rem;
  border-radius: 12px;
}

/* Hub — grille dans .site-section__inner */
.hub {
  margin: 0;
  padding: 0;
}

/* Hub — base type capture : texte à gauche, mockup à droite, colonnes centrées verticalement */
.hub__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hub__copy {
  width: 100%;
  max-width: min(40rem, 100%);
  text-align: left;
}

.hub__kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.35rem 0.5rem;
  margin: 0 0 1.35rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 960px) {
  .hub__grid {
    grid-template-columns: 1fr;
    gap: clamp(1.75rem, 4vw, 2.75rem);
  }

  .hub__copy {
    max-width: min(44rem, 100%);
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .hub__kicker {
    justify-content: center;
  }

  .hub-tags {
    justify-content: center;
    justify-items: center;
  }

  .hub__universe {
    align-items: center;
    text-align: center;
  }

  .hub__universe-prefix::after {
    margin: 0.45rem auto 0;
  }

  .hub__universe-row {
    justify-content: center;
  }

  .hub__cta {
    justify-content: center;
  }

  .hub__lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hub__version {
    margin-left: auto;
    margin-right: auto;
  }

  .hub__showcase {
    max-width: min(56rem, 100%);
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(0.25rem, 2vw, 1rem);
    padding-right: clamp(0.25rem, 2vw, 1rem);
  }

  .hub__showcase::after {
    left: 50%;
    right: auto;
    transform: translate(-50%, -50%);
  }
}

.hub__kicker-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 70%, transparent);
  opacity: 0.9;
}

.hub-tags {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.55rem 0.65rem;
  margin: 0 0 clamp(1.35rem, 2.8vw, 1.75rem);
  align-items: stretch;
}

.hub-tag:nth-child(-n + 3) {
  grid-column: span 2;
}

.hub-tag:nth-child(4) {
  grid-column: 2 / 4;
}

.hub-tag:nth-child(5) {
  grid-column: 4 / 6;
}

@media (max-width: 720px) {
  .hub-tags {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hub-tag:nth-child(n) {
    grid-column: auto;
  }
}

.hub-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.42rem 0.82rem;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, #fff 0.12, transparent);
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  box-shadow:
    var(--hub-tag-glow),
    0 3px 10px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.11);
  transition:
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.32s ease,
    border-color 0.25s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .hub-tag {
    animation: hub-tag-float 5.5s ease-in-out infinite;
  }

  .hub-tag:nth-child(2) {
    animation-delay: -0.8s;
  }
  .hub-tag:nth-child(3) {
    animation-delay: -1.6s;
  }
  .hub-tag:nth-child(4) {
    animation-delay: -2.4s;
  }
  .hub-tag:nth-child(5) {
    animation-delay: -3.2s;
  }
}

@keyframes hub-tag-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
}

.hub-tag:hover {
  transform: translateY(-3px) scale(1.015);
  border-color: color-mix(in srgb, #fff 0.2, transparent);
  box-shadow:
    var(--hub-tag-glow),
    0 8px 22px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.hub-tag--green {
  color: color-mix(in srgb, var(--note-green) 95%, #fff);
  border-color: color-mix(in srgb, var(--note-green) 35%, transparent);
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--note-green) 28%, rgba(10, 14, 12, 0.9)),
    color-mix(in srgb, var(--note-green) 10%, rgba(6, 8, 10, 0.82))
  );
  box-shadow:
    var(--hub-tag-glow),
    0 2px 12px color-mix(in srgb, var(--note-green) 18%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.hub-tag--amber {
  color: color-mix(in srgb, #fde68a 95%, #fff);
  border-color: color-mix(in srgb, #f59e0b 38%, transparent);
  background: linear-gradient(
    145deg,
    color-mix(in srgb, #f59e0b 34%, rgba(18, 12, 6, 0.9)),
    color-mix(in srgb, #f59e0b 12%, rgba(8, 6, 4, 0.82))
  );
  box-shadow:
    var(--hub-tag-glow),
    0 2px 12px color-mix(in srgb, #f59e0b 18%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

.hub-tag--orange {
  color: #fff;
  border-color: color-mix(in srgb, var(--accent) 42%, transparent);
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--accent) 52%, rgba(24, 8, 4, 0.92)),
    color-mix(in srgb, var(--accent) 20%, rgba(10, 6, 6, 0.85))
  );
  box-shadow:
    var(--hub-tag-glow),
    0 3px 14px color-mix(in srgb, var(--accent) 26%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.hub-tag--blue {
  color: color-mix(in srgb, var(--note-blue) 96%, #fff);
  border-color: color-mix(in srgb, var(--note-blue) 38%, transparent);
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--note-blue) 34%, rgba(8, 12, 22, 0.9)),
    color-mix(in srgb, var(--note-blue) 12%, rgba(6, 8, 14, 0.82))
  );
  box-shadow:
    var(--hub-tag-glow),
    0 2px 12px color-mix(in srgb, var(--note-blue) 20%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

.hub-tag--violet {
  color: color-mix(in srgb, #f5e6ff 96%, #fff);
  border-color: color-mix(in srgb, var(--glow-violet) 40%, transparent);
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--glow-violet) 38%, rgba(14, 8, 22, 0.9)),
    color-mix(in srgb, var(--glow-violet) 14%, rgba(8, 6, 14, 0.82))
  );
  box-shadow:
    var(--hub-tag-glow),
    0 2px 14px color-mix(in srgb, var(--glow-violet) 20%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

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

  .hub-tag:hover {
    transform: none;
  }
}

.hub__title {
  margin: 0 0 clamp(0.5rem, 1.2vw, 0.75rem);
  font-size: clamp(2.28rem, 5.5vw + 0.2rem, 3.55rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.038em;
  text-wrap: balance;
}

.hub__title-line {
  display: block;
  color: #fafafa;
  text-shadow:
    0 2px 24px rgba(0, 0, 0, 0.35),
    0 1px 0 rgba(255, 255, 255, 0.04);
}

.hub__title-accent {
  display: block;
  margin-top: 0.1em;
  background: linear-gradient(
    105deg,
    #fff 0%,
    color-mix(in srgb, var(--accent) 88%, #fff) 38%,
    var(--accent) 78%,
    color-mix(in srgb, var(--accent) 85%, #401808) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 20px color-mix(in srgb, var(--accent) 22%, transparent));
}

.hub__universe {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 0.35rem 0.5rem;
  margin: 0 0 clamp(1.2rem, 2.5vw, 1.55rem);
  padding: 0.85rem 0 0;
  border-top: none;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--accent) 55%, transparent),
    color-mix(in srgb, #fff 0.12, transparent) 28%,
    transparent 72%
  )
    0 0 / 100% 1px no-repeat;
  min-height: clamp(3.35rem, 7.5vw, 4.1rem);
}

.hub__universe-prefix {
  display: block;
  width: 100%;
  font-size: clamp(0.95rem, 1.65vw, 1.18rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.25;
  color: color-mix(in srgb, var(--text) 92%, var(--muted));
}

.hub__universe-prefix::after {
  content: '';
  display: block;
  width: min(12rem, 55%);
  height: 2px;
  margin: 0.45rem 0 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 15%, transparent));
}

.hub__universe-row {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-start;
  gap: 0.2rem 0.45rem;
  min-height: 1.35em;
}

.hub__universe-target {
  font-family: var(--font-sans);
  font-size: clamp(1.08rem, 2.15vw, 1.48rem);
  font-weight: 800;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  line-height: 1.2;
  color: color-mix(in srgb, var(--accent) 94%, #fff);
  text-shadow: 0 0 32px color-mix(in srgb, var(--accent) 24%, transparent);
}

.hub__caret {
  font-family: var(--font-sans);
  font-size: clamp(1rem, 1.9vw, 1.35rem);
  font-weight: 300;
  color: var(--accent);
  animation: hub-caret-blink 0.95s step-end infinite;
}

@keyframes hub-caret-blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

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

.hub__lead {
  margin: 0 0 clamp(1.5rem, 3vw, 1.95rem);
  max-width: 38rem;
  color: color-mix(in srgb, var(--muted) 88%, var(--text));
  font-size: clamp(1.04rem, 1.25vw + 0.55rem, 1.14rem);
  line-height: 1.66;
  font-weight: 400;
}

.hub__lead strong {
  color: color-mix(in srgb, var(--accent) 84%, #fff);
  font-weight: 600;
}

.hub__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 0.85rem;
  align-items: center;
  justify-content: flex-start;
}

.hub__cta .btn-download {
  box-shadow:
    0 2px 0 color-mix(in srgb, #fff 0.12, transparent) inset,
    0 8px 32px color-mix(in srgb, var(--accent) 32%, transparent),
    0 2px 12px rgba(0, 0, 0, 0.35);
}

.hub__cta .btn-download:hover {
  box-shadow:
    0 2px 0 color-mix(in srgb, #fff 0.16, transparent) inset,
    0 12px 40px color-mix(in srgb, var(--accent) 38%, transparent),
    0 4px 16px rgba(0, 0, 0, 0.38);
}

.hub__cta .btn-line {
  background: color-mix(in srgb, var(--bg-panel) 48%, transparent);
  border-color: color-mix(in srgb, #fff 0.14, transparent);
  backdrop-filter: blur(12px) saturate(1.1);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.hub__cta .btn-line:hover {
  background: color-mix(in srgb, var(--bg-panel) 62%, transparent);
  border-color: color-mix(in srgb, var(--accent) 38%, transparent);
}

.hub__version {
  margin: clamp(1.1rem, 2.5vw, 1.45rem) 0 0;
  padding: 0.48rem 0.9rem;
  width: fit-content;
  max-width: 100%;
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--muted);
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, #fff 0.08, transparent);
  background: color-mix(in srgb, #000 35%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.hub__version strong {
  color: color-mix(in srgb, var(--accent) 92%, #fff);
  font-weight: 600;
}

.hub__version--pending {
  position: relative;
  min-height: 1.15em;
}

.hub__version--pending:not(.hub__version--slow) {
  background: linear-gradient(
    110deg,
    color-mix(in srgb, var(--muted) 55%, transparent) 0%,
    color-mix(in srgb, var(--text) 35%, transparent) 50%,
    color-mix(in srgb, var(--muted) 55%, transparent) 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: hub-version-shimmer 1.15s ease-in-out infinite;
}

.hub__version--slow {
  animation: none;
  -webkit-text-fill-color: unset;
  background: none;
  color: var(--muted);
}

@keyframes hub-version-shimmer {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: -200% 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hub__version--pending:not(.hub__version--slow) {
    animation: none;
    background: none;
    -webkit-text-fill-color: unset;
    color: var(--muted);
  }
}

.hub__showcase {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0 -0.35rem;
  padding: clamp(0.65rem, 2.2vw, 1.5rem) 0;
  overflow: visible;
}

/* Halo discret derrière le mockup — profondeur sans surcharge */
.hub__showcase::before {
  content: '';
  position: absolute;
  inset: -6% -14% 32% -14%;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse 58% 48% at 50% 44%,
    color-mix(in srgb, var(--accent) 20%, transparent),
    transparent 72%
  );
  opacity: 0.85;
}

@media (min-width: 961px) {
  .hub__showcase::before {
    inset: -8% -18% 28% -8%;
    background: radial-gradient(
      ellipse 64% 50% at 58% 42%,
      color-mix(in srgb, var(--accent) 24%, transparent),
      transparent 70%
    );
    opacity: 0.92;
  }
}

.hub__showcase::after {
  content: '';
  position: absolute;
  width: min(100%, 26rem);
  aspect-ratio: 1;
  right: -6%;
  left: auto;
  top: 44%;
  transform: translateY(-50%);
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--glow-violet) 12%, transparent),
    transparent 68%
  );
  opacity: 0.72;
}

/* Tilt — cadre « device », léger flottement + image mise en avant */
.tilt-wrap {
  position: relative;
  z-index: 1;
  perspective: 1200px;
  perspective-origin: 50% 42%;
  transform-style: preserve-3d;
  outline: none;
  animation: tilt-showcase-bob 6.5s ease-in-out infinite;
}

@keyframes tilt-showcase-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.tilt-frame {
  position: relative;
  padding: 3px;
  border-radius: calc(var(--radius) + 10px);
  overflow: visible;
  border: 1px solid transparent;
  background:
    linear-gradient(168deg, #0a090c 0%, #070708 100%) padding-box,
    linear-gradient(
      128deg,
      color-mix(in srgb, var(--accent) 52%, transparent),
      color-mix(in srgb, #fff 0.16, transparent) 44%,
      color-mix(in srgb, var(--note-blue) 42%, transparent)
    ) border-box;
  background-clip: padding-box, border-box;
  box-shadow:
    0 22px 52px rgba(0, 0, 0, 0.44),
    0 0 0 1px color-mix(in srgb, #fff 0.05, transparent) inset,
    0 0 56px color-mix(in srgb, var(--accent) 11%, transparent);
  transition:
    box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.45s ease;
  will-change: box-shadow;
}

.tilt-wrap:hover .tilt-frame,
.tilt-wrap:focus-visible .tilt-frame {
  box-shadow:
    0 30px 68px rgba(0, 0, 0, 0.52),
    0 0 0 1px color-mix(in srgb, #fff 0.08, transparent) inset,
    0 0 72px color-mix(in srgb, var(--accent) 16%, transparent),
    0 0 96px color-mix(in srgb, var(--glow-violet) 9%, transparent);
}

.tilt-inner {
  position: relative;
  border-radius: calc(var(--radius) + 2px);
  overflow: visible;
  background: #050506;
  transform-style: preserve-3d;
  will-change: transform;
  transition: filter 0.45s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.tilt-wrap:hover .tilt-inner,
.tilt-wrap:focus-visible .tilt-inner {
  filter: drop-shadow(0 14px 32px rgba(0, 0, 0, 0.48)) drop-shadow(0 0 36px color-mix(in srgb, var(--accent) 22%, transparent));
}

.tilt-inner img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  object-fit: contain;
  object-position: top center;
  background: #060608;
  transform: scale(1.06);
  transform-origin: 50% 8%;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 0 0 1px rgba(0, 0, 0, 0.35);
}

.tilt-wrap:hover .tilt-inner img,
.tilt-wrap:focus-visible .tilt-inner img {
  transform: scale(1.12);
}

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

  .tilt-frame {
    transition: none;
  }

  .tilt-inner {
    transition: none;
  }

  .tilt-inner img {
    transform: scale(1.03);
    transition: none;
  }

  .tilt-wrap:hover .tilt-inner img,
  .tilt-wrap:focus-visible .tilt-inner img {
    transform: scale(1.04);
  }
}

/* Étiquettes glass, léger flottement 3D au-dessus du screenshot */
.tilt-anno {
  position: absolute;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.62rem;
  row-gap: 0.14rem;
  padding: 0.55rem 0.82rem 0.58rem 0.6rem;
  max-width: 12.75rem;
  background: linear-gradient(
    140deg,
    color-mix(in srgb, rgba(20, 20, 28, 0.94) 90%, transparent),
    color-mix(in srgb, rgba(6, 6, 10, 0.9) 92%, transparent)
  );
  border: 1px solid color-mix(in srgb, #fff 0.11, transparent);
  border-radius: 14px;
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  pointer-events: none;
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.22),
    0 16px 40px rgba(0, 0, 0, 0.48),
    0 0 0 1px color-mix(in srgb, #fff 0.07, transparent) inset,
    0 0 24px color-mix(in srgb, var(--accent) 0.1, transparent);
  transform-style: preserve-3d;
  will-change: transform;
}

.tilt-anno__stripe {
  grid-column: 1;
  grid-row: 1 / -1;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 25%, #1a0500));
  align-self: stretch;
  box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 32%, transparent);
}

.tilt-anno__stripe--alt {
  background: linear-gradient(180deg, var(--note-blue), color-mix(in srgb, var(--note-blue) 28%, #0a1528));
  box-shadow: 0 0 10px color-mix(in srgb, var(--note-blue) 28%, transparent);
}

.tilt-anno__label {
  grid-column: 2;
  grid-row: 1;
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--accent) 82%, #fff);
}

.tilt-anno--2 .tilt-anno__label {
  color: color-mix(in srgb, var(--note-blue) 88%, #fff);
}

.tilt-anno__text {
  grid-column: 2;
  grid-row: 2;
  font-size: 0.78rem;
  font-weight: 500;
  color: color-mix(in srgb, var(--muted) 96%, #fff);
  line-height: 1.32;
}

.tilt-anno--1 {
  top: 9%;
  left: -3%;
  transform-origin: 20% 80%;
  animation: tilt-anno-float-1 3.8s ease-in-out infinite;
}

.tilt-anno--2 {
  top: 34%;
  right: -5%;
  left: auto;
  transform-origin: 80% 50%;
  animation: tilt-anno-float-2 4.2s ease-in-out infinite;
  animation-delay: -1.2s;
}

.tilt-anno--3 {
  bottom: 10%;
  left: 2%;
  transform-origin: 30% 100%;
  animation: tilt-anno-float-3 3.5s ease-in-out infinite;
  animation-delay: -0.6s;
}

@keyframes tilt-anno-float-1 {
  0%,
  100% {
    transform: translate3d(0, 0, 52px) rotate(-2.8deg);
  }
  50% {
    transform: translate3d(0, -7px, 62px) rotate(-2.1deg);
  }
}

@keyframes tilt-anno-float-2 {
  0%,
  100% {
    transform: translate3d(0, 0, 58px) rotate(3.2deg);
  }
  50% {
    transform: translate3d(0, -8px, 68px) rotate(2.5deg);
  }
}

@keyframes tilt-anno-float-3 {
  0%,
  100% {
    transform: translate3d(0, 0, 54px) rotate(-2.2deg);
  }
  50% {
    transform: translate3d(0, -6px, 64px) rotate(-1.6deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tilt-anno--1,
  .tilt-anno--2,
  .tilt-anno--3 {
    animation: none;
    transform: translate3d(0, 0, 48px) rotate(-2deg);
  }

  .tilt-anno--2 {
    transform: translate3d(0, 0, 52px) rotate(2.5deg);
  }

  .tilt-anno--3 {
    transform: translate3d(0, 0, 50px) rotate(-1.5deg);
  }
}

@media (max-width: 600px) {
  .tilt-anno {
    max-width: 9.5rem;
    padding: 0.42rem 0.6rem 0.48rem 0.48rem;
  }

  .tilt-anno__label {
    font-size: 0.54rem;
  }

  .tilt-anno__text {
    font-size: 0.68rem;
  }

  .tilt-inner img {
    transform: scale(1.04);
  }

  .tilt-wrap:hover .tilt-inner img,
  .tilt-wrap:focus-visible .tilt-inner img {
    transform: scale(1.07);
  }

  .tilt-anno--2 {
    right: -2%;
  }
}

/* Bandeau meta — dock technique lisible */
.meta-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.15rem;
  margin-top: clamp(2.1rem, 4.8vw, 3.15rem);
  max-width: 52rem;
  margin-left: auto;
  margin-right: auto;
  padding: 0.92rem 1.35rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, #fff 0.1, transparent);
  background:
    linear-gradient(165deg, color-mix(in srgb, #fff 0.05, transparent), transparent 55%),
    color-mix(in srgb, var(--bg-panel) 82%, rgba(0, 0, 0, 0.4));
  backdrop-filter: blur(16px) saturate(1.06);
  -webkit-backdrop-filter: blur(16px) saturate(1.06);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--accent) 0.1, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    0 14px 40px rgba(0, 0, 0, 0.28);
  font-size: 0.8rem;
}

.meta-strip__item {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
}

.meta-strip__key {
  color: color-mix(in srgb, var(--muted) 92%, var(--text));
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
}

.meta-strip__val {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #f4f4f5;
}

.meta-strip__sep {
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  margin: 0 0.1rem;
  border-radius: 50%;
  background: radial-gradient(
    circle at 35% 30%,
    color-mix(in srgb, #fff 0.35, transparent),
    color-mix(in srgb, var(--accent) 55%, transparent) 45%,
    color-mix(in srgb, var(--accent) 22%, transparent) 100%
  );
  box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 25%, transparent);
  opacity: 0.65;
}

/* Grille À propos : cartes plus grandes, hiérarchie forte */
.about-bento {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.about-card {
  position: relative;
  padding: 1.25rem 1.3rem 1.3rem;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid color-mix(in srgb, #fff 0.08, transparent);
  background:
    linear-gradient(155deg, color-mix(in srgb, var(--accent) 0.05, transparent), transparent 52%),
    color-mix(in srgb, var(--bg-panel) 92%, transparent);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    0 12px 36px rgba(0, 0, 0, 0.28);
  transition:
    border-color 0.22s ease,
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.about-bento .about-card {
  padding: 1.15rem 1.2rem 1.2rem 1.35rem;
  border-radius: clamp(16px, 1.8vw, 20px);
  border: 1px solid color-mix(in srgb, #fff 0.12, transparent);
  border-top: none;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 0.09, transparent) 0%, transparent 48%),
    linear-gradient(180deg, color-mix(in srgb, var(--bg-panel) 94%, #08080c) 0%, color-mix(in srgb, var(--bg-panel) 82%, #030305) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 14px 40px rgba(0, 0, 0, 0.36),
    0 0 0 1px rgba(0, 0, 0, 0.25);
}

.about-bento .about-card:hover {
  border-color: color-mix(in srgb, #fff 0.2, transparent);
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.11),
    0 20px 52px rgba(0, 0, 0, 0.42),
    0 0 0 1px color-mix(in srgb, var(--accent) 0.28, transparent),
    0 0 48px color-mix(in srgb, var(--accent) 0.08, transparent);
}

.about-card:hover {
  border-color: color-mix(in srgb, var(--accent) 22%, transparent);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    0 16px 44px rgba(0, 0, 0, 0.34);
}

@media (prefers-reduced-motion: reduce) {
  .about-card:hover,
  .about-bento .about-card:hover {
    transform: none;
  }
}

.about-card--wide {
  grid-column: 1 / -1;
  max-width: 42rem;
  width: 100%;
  margin-inline: auto;
  padding: 1.35rem 1.4rem 1.4rem;
}

.about-bento .about-card--wide {
  max-width: none;
  width: 100%;
  margin-inline: 0;
  padding: 1.2rem 1.25rem 1.3rem 1.4rem;
}

.about-card--wide .about-card__icon {
  margin-bottom: 0.45rem;
}

.about-bento .about-card--wide .about-card__icon {
  margin-bottom: 0.4rem;
}

.about-card--wide .about-card__title {
  max-width: 100%;
}

.about-card--wide .about-card__body {
  max-width: 100%;
}

.about-bento .about-card__icon {
  font-size: 1.15rem;
  margin-bottom: 0.45rem;
  opacity: 0.75;
}

.about-bento .about-card__icon--svg svg {
  width: 26px;
  height: 26px;
}

.about-bento .about-card__title {
  margin: 0 0 0.55rem;
  font-size: clamp(0.98rem, 0.75vw + 0.82rem, 1.14rem);
  font-weight: 750;
  line-height: 1.25;
  color: #fff;
}

.about-bento .about-card__body {
  font-size: clamp(0.92rem, 0.5vw + 0.82rem, 1.05rem);
  line-height: 1.6;
  color: color-mix(in srgb, var(--text) 88%, var(--muted));
}

.about-bento .about-bento__span .about-card__title {
  font-size: clamp(1.05rem, 0.85vw + 0.88rem, 1.22rem);
  margin-bottom: 0.58rem;
}

.about-bento .about-bento__span .about-card__body {
  font-size: clamp(0.95rem, 0.45vw + 0.85rem, 1.06rem);
}

@media (min-width: 900px) {
  .about-bento {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: auto auto auto;
    gap: 1rem 1.1rem;
    align-content: start;
  }

  .about-bento .about-bento__tile {
    grid-row: 1;
  }

  .about-bento .about-card--1 {
    grid-column: 1 / span 3;
  }

  .about-bento .about-card--2 {
    grid-column: 4 / span 3;
  }

  .about-bento .about-card--3 {
    grid-column: 7 / span 3;
  }

  .about-bento .about-card--4 {
    grid-column: 10 / span 3;
  }

  .about-bento .about-bento__span.about-card--6 {
    grid-column: 1 / span 6;
    grid-row: 2;
  }

  .about-bento .about-bento__span.about-card--5 {
    grid-column: 7 / span 6;
    grid-row: 2;
  }

  .about-bento .about-bento__smart {
    grid-column: 1 / -1;
    grid-row: 3;
    display: flex;
    flex-direction: column;
  }

  .about-bento .about-bento__smart .about-smartscreen__layout {
    overflow: visible;
  }
}

@media (max-width: 899px) {
  .about-bento .about-card--wide .about-card__icon--svg svg {
    width: 24px;
    height: 24px;
  }

  .site-section__inner--about.site-section__inner--wide {
    padding: 1rem 1.05rem 1.15rem;
    border-radius: 18px;
  }
}

.about-card--1 {
  border-top: 2px solid var(--note-green);
}

.about-card--2 {
  border-top: 2px solid #5865f2;
}

.about-card--3 {
  border-top: 2px solid var(--accent);
}

.about-card--4 {
  border-top: 2px solid var(--note-blue);
}

.about-card--5 {
  border-top: 2px solid var(--glow-violet);
}

.about-card--6 {
  border-top: 2px solid color-mix(in srgb, var(--accent) 78%, #ffd6bf);
}

.about-bento .about-card--1 {
  border-top: none;
  border-left: 5px solid var(--note-green);
}

.about-bento .about-card--2 {
  border-top: none;
  border-left: 5px solid #5865f2;
}

.about-bento .about-card--3 {
  border-top: none;
  border-left: 5px solid var(--accent);
}

.about-bento .about-card--4 {
  border-top: none;
  border-left: 5px solid var(--note-blue);
}

.about-bento .about-card--5 {
  border-top: none;
  border-left: 5px solid var(--glow-violet);
}

.about-bento .about-card--6 {
  border-top: none;
  border-left: 5px solid color-mix(in srgb, var(--accent) 82%, #ffd6bf);
}

.about-card__icon--svg {
  display: flex;
  align-items: center;
  opacity: 0.72;
}

.about-card__icon--svg svg {
  display: block;
}

.about-card--compare:hover .about-card__icon--svg {
  opacity: 0.95;
  color: color-mix(in srgb, var(--accent) 65%, #fff);
}

.about-card__icon {
  font-size: 0.85rem;
  opacity: 0.5;
  margin-bottom: 0.35rem;
}

.about-card__title {
  margin: 0 0 0.5rem;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.28;
  color: color-mix(in srgb, var(--text) 96%, var(--muted));
}

.about-card__body {
  margin: 0;
  font-size: 0.9rem;
  color: color-mix(in srgb, var(--muted) 96%, var(--text));
  line-height: 1.65;
}

/* SmartScreen : carte mise en avant + deux colonnes lisibles */
.about-card--smartscreen {
  border-top: 2px solid color-mix(in srgb, #f59e0b 55%, rgba(255, 255, 255, 0.12));
  background:
    linear-gradient(165deg, color-mix(in srgb, #f59e0b 0.08, transparent) 0%, transparent 45%),
    color-mix(in srgb, var(--bg-panel) 94%, #060608);
}

.about-bento .about-card--smartscreen {
  border-top: none;
  border-left: 5px solid color-mix(in srgb, #fbbf24 58%, var(--accent));
  padding: 1.25rem 1.35rem 1.35rem 1.45rem;
  background:
    linear-gradient(145deg, color-mix(in srgb, #f59e0b 0.14, transparent) 0%, transparent 52%),
    linear-gradient(180deg, color-mix(in srgb, var(--bg-panel) 92%, #000) 0%, rgba(4, 4, 10, 0.97) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 16px 48px rgba(0, 0, 0, 0.38),
    0 0 0 1px color-mix(in srgb, #f59e0b 0.2, transparent);
}

.about-smartscreen__head {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid color-mix(in srgb, #fff 0.1, transparent);
}

.about-smartscreen__head .about-card__icon--tip {
  display: flex;
  margin: 0;
  flex-shrink: 0;
  opacity: 0.95;
  color: color-mix(in srgb, #fbbf24 55%, var(--accent));
}

.about-smartscreen__head .about-card__icon--tip svg {
  display: block;
  width: 24px;
  height: 24px;
  filter: drop-shadow(0 0 12px color-mix(in srgb, #f59e0b 32%, transparent));
}

.about-smartscreen__head .about-card__title {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: clamp(1.02rem, 0.75vw + 0.88rem, 1.2rem);
  font-weight: 750;
  line-height: 1.28;
  color: #fff;
}

.about-smartscreen__layout {
  display: grid;
  gap: 0.85rem 1.35rem;
  align-items: start;
}

@media (min-width: 720px) {
  .about-smartscreen__layout {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  }
}

.about-smartscreen__col--copy {
  min-width: 0;
}

.about-smartscreen__col--steps {
  min-width: 0;
  padding: 0.85rem 0.95rem 0.95rem;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, #fff 0.1, transparent);
  background: color-mix(in srgb, #000 42%, var(--bg-panel) 58%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 8px 28px rgba(0, 0, 0, 0.25);
}

.about-smartscreen__intro {
  margin: 0 0 0.55rem;
}

.about-bento .about-smartscreen__intro {
  font-size: clamp(0.94rem, 0.45vw + 0.82rem, 1.05rem);
  line-height: 1.58;
  color: color-mix(in srgb, var(--text) 86%, var(--muted));
}

.about-smartscreen__why {
  margin: 0;
  padding: 0.78rem 0.9rem 0.85rem 0.95rem;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, #fff 0.1, transparent);
  border-left: 4px solid color-mix(in srgb, #f59e0b 68%, var(--accent));
  font-size: clamp(0.88rem, 0.38vw + 0.78rem, 0.98rem);
  line-height: 1.55;
  color: color-mix(in srgb, var(--text) 84%, var(--muted));
  background: color-mix(in srgb, var(--bg) 35%, var(--bg-panel) 65%);
}

.about-smartscreen__why strong {
  color: color-mix(in srgb, var(--accent) 75%, #fff);
  font-weight: 700;
}

.about-smartscreen__how {
  margin: 0 0 0.58rem;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--accent) 92%, #fff);
}

.about-smartscreen__steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: about-ss;
  font-size: clamp(0.9rem, 0.42vw + 0.8rem, 1.02rem);
  color: color-mix(in srgb, var(--text) 86%, var(--muted));
  line-height: 1.55;
}

.about-smartscreen__steps li {
  position: relative;
  counter-increment: about-ss;
  margin-bottom: 0.5rem;
  padding: 0.68rem 0.75rem 0.72rem 2.55rem;
  border-radius: 11px;
  border: 1px solid color-mix(in srgb, #fff 0.09, transparent);
  background: color-mix(in srgb, var(--bg-panel) 78%, #000);
}

.about-smartscreen__steps li:last-child {
  margin-bottom: 0;
}

.about-smartscreen__steps li::before {
  content: counter(about-ss);
  position: absolute;
  left: 0.62rem;
  top: 0.58rem;
  width: 1.48rem;
  height: 1.48rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  color: #fff;
  background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 88%, #fff), var(--accent));
  border-radius: 9px;
  box-shadow: 0 3px 14px color-mix(in srgb, var(--accent) 38%, transparent);
}

.about-smartscreen__steps strong {
  color: color-mix(in srgb, var(--accent) 82%, #fff);
  font-weight: 650;
}

.about-smartscreen__step--split {
  display: block;
}

.smartscreen-glossary-btn {
  display: inline;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-size: inherit;
  font-weight: 650;
  color: color-mix(in srgb, var(--accent) 82%, #fff);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
  cursor: pointer;
  border-radius: 2px;
}

.smartscreen-glossary-btn:hover {
  color: color-mix(in srgb, var(--accent) 92%, #fff);
}

.smartscreen-glossary-btn:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--note-blue) 65%, #fff);
  outline-offset: 2px;
}

.smartscreen-help-dialog .legal-dialog__panel {
  max-width: min(100%, 640px);
}

.smartscreen-help-prose p {
  margin: 0 0 0.85rem;
  font-size: 0.9rem;
  line-height: 1.58;
  color: var(--muted);
}

.smartscreen-help-prose__trust {
  margin-top: 0.35rem;
  margin-bottom: 0.9rem;
}

.smartscreen-help-prose__trust strong {
  color: color-mix(in srgb, var(--accent) 78%, #fff);
}

.smartscreen-help-prose__ms {
  margin: 1.1rem 0 0.55rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--accent) 85%, #fff);
}

.smartscreen-help-links {
  margin: 0 0 0.85rem;
}

.help-ms-link-list {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--muted);
}

.help-ms-link-list li {
  margin-bottom: 0.45rem;
}

.help-ms-link-list a {
  color: color-mix(in srgb, var(--note-blue) 78%, #fff);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--note-blue) 42%, transparent);
}

.help-ms-link-list a:hover {
  color: #fff;
  border-bottom-color: color-mix(in srgb, var(--note-blue) 70%, transparent);
}

.smartscreen-help-prose__closing {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.55;
  color: color-mix(in srgb, var(--muted) 92%, var(--text));
}

@media (prefers-reduced-motion: reduce) {
  .about-smartscreen__head .about-card__icon--tip svg {
    filter: none;
  }
}

.dl-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
  align-items: stretch;
}

@media (max-width: 960px) {
  .dl-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .dl-grid {
    grid-template-columns: 1fr;
  }
}

.dl-card {
  position: relative;
  padding: 1.35rem 1.35rem 1.4rem;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid color-mix(in srgb, #fff 0.08, transparent);
  background:
    linear-gradient(160deg, color-mix(in srgb, #fff 0.05, transparent), transparent 48%),
    color-mix(in srgb, var(--bg-panel) 94%, #000);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-height: 10.5rem;
  overflow: hidden;
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.35s ease,
    box-shadow 0.4s ease;
}

.dl-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(125deg, transparent 40%, color-mix(in srgb, #fff 0.04, transparent) 50%, transparent 60%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.downloads--inview .dl-card:nth-child(1) {
  animation: dl-card-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.04s both;
}
.downloads--inview .dl-card:nth-child(2) {
  animation: dl-card-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}
.downloads--inview .dl-card:nth-child(3) {
  animation: dl-card-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.16s both;
}
.downloads--inview .dl-card:nth-child(4) {
  animation: dl-card-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.22s both;
}

@keyframes dl-card-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dl-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, #fff 0.14, transparent);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.42);
}

.dl-card:hover::after {
  opacity: 1;
}

.dl-card--beta {
  grid-column: span 1;
  border-style: dashed;
  border-color: color-mix(in srgb, var(--note-blue) 38%, var(--border));
  background:
    linear-gradient(165deg, color-mix(in srgb, var(--note-blue) 12%, transparent), transparent 55%),
    color-mix(in srgb, var(--bg-panel) 92%, #000);
}

.dl-card--stable {
  border-color: color-mix(in srgb, var(--accent) 42%, transparent);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.4),
    0 0 0 1px color-mix(in srgb, var(--accent) 0.15, transparent),
    0 0 40px color-mix(in srgb, var(--accent) 14%, transparent);
}

.dl-card--stable:hover {
  box-shadow:
    0 22px 56px rgba(0, 0, 0, 0.45),
    0 0 52px color-mix(in srgb, var(--accent) 22%, transparent);
}

.dl-card--soon {
  opacity: 0.94;
}

.dl-card__badge {
  align-self: flex-start;
  padding: 0.28rem 0.62rem;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 999px;
  border: none;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--accent) 65%, #401000),
    color-mix(in srgb, var(--accent) 35%, #180804)
  );
  color: #fff;
  box-shadow: 0 4px 16px color-mix(in srgb, var(--accent) 35%, transparent);
}

.dl-card__badge--soft {
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--note-blue) 55%, #0a1830),
    color-mix(in srgb, var(--note-blue) 28%, #060d18)
  );
  box-shadow: 0 4px 16px color-mix(in srgb, var(--note-blue) 30%, transparent);
}

.dl-card__os {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.dl-card__hint {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.dl-card__na {
  margin: auto 0 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: color-mix(in srgb, var(--muted) 90%, var(--accent));
}

.dl-card__note {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
}

.dl-card__btn {
  margin-top: auto;
  align-self: stretch;
  justify-content: center;
}

.dl-below {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: clamp(1.5rem, 3.5vw, 2.25rem);
  flex: 1 1 auto;
  align-content: start;
}

.dl-panel {
  padding: 1.15rem 1.25rem 1.25rem;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid color-mix(in srgb, #fff 0.09, transparent);
  background:
    linear-gradient(165deg, color-mix(in srgb, var(--note-blue) 0.07, transparent), transparent 50%),
    color-mix(in srgb, var(--bg-panel) 93%, #000);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.32);
  transition:
    border-color 0.3s ease,
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease;
}

.dl-panel:hover {
  border-color: color-mix(in srgb, var(--note-blue) 28%, transparent);
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.38);
}

.dl-panel--accent {
  border-color: color-mix(in srgb, var(--accent) 28%, transparent);
  background:
    linear-gradient(165deg, color-mix(in srgb, var(--accent) 0.1, transparent), transparent 52%),
    color-mix(in srgb, var(--bg-panel) 93%, #000);
}

.dl-panel--accent:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  box-shadow: 0 18px 48px color-mix(in srgb, var(--accent) 12%, transparent);
}

.dl-panel--wide {
  grid-column: 1 / -1;
}

.downloads--inview .dl-below .dl-panel {
  animation: dl-card-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.28s both;
}

.downloads--inview .dl-below .dl-panel:nth-child(2) {
  animation-delay: 0.34s;
}

.downloads--inview .dl-below .dl-panel:nth-child(3) {
  animation-delay: 0.4s;
}

.downloads--inview .engage-strip .engage-tile {
  animation: dl-card-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.downloads--inview .engage-strip .engage-tile:nth-child(1) {
  animation-delay: 0.46s;
}

.downloads--inview .engage-strip .engage-tile:nth-child(2) {
  animation-delay: 0.52s;
}

.downloads--inview .engage-strip .engage-tile:nth-child(3) {
  animation-delay: 0.58s;
}

.dl-panel__title {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--accent) 88%, #fff);
}

.dl-panel__text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.58;
  color: var(--muted);
}

.dl-panel__text a {
  color: color-mix(in srgb, var(--accent) 82%, #fff);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.dl-panel__text a:hover {
  color: #fff;
  border-bottom-color: color-mix(in srgb, var(--accent) 80%, transparent);
}

.dl-checklist {
  margin: 0;
  padding: 0 0 0 1.1rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.dl-checklist li {
  margin-bottom: 0.35rem;
}

.dl-checklist li::marker {
  color: color-mix(in srgb, var(--accent) 75%, var(--muted));
}

@media (max-width: 720px) {
  .dl-below {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .downloads--inview .dl-card:nth-child(n),
  .downloads--inview .dl-below .dl-panel,
  .downloads--inview .engage-strip .engage-tile {
    animation: none;
  }

  .dl-card:hover,
  .dl-panel:hover {
    transform: none;
  }

  .dl-card::after {
    display: none;
  }
}

.section-head--downloads {
  margin-bottom: clamp(1.35rem, 3vw, 1.85rem);
}

.section-head--downloads .section-head__tag {
  color: color-mix(in srgb, var(--accent) 90%, #fff);
}

/* Bento (bloc À propos) */
.bento {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1rem;
  min-height: 280px;
}

@media (max-width: 800px) {
  .bento {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    min-height: 0;
  }

  .bento__hub {
    grid-row: auto;
  }
}

.bento__hub {
  grid-row: 1 / -1;
  min-height: 0;
}

.card {
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-panel) 94%, transparent);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.card:hover {
  border-color: color-mix(in srgb, var(--accent) 22%, transparent);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.card__title {
  margin: 0 0 0.5rem;
  font-size: 1.02rem;
  font-weight: 700;
}

.card__body {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

.card__body code {
  font-size: 0.82em;
  padding: 0.12em 0.35em;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
}

.card--accent {
  border-left: 4px solid var(--accent);
  padding-left: 1.25rem;
}

.card--muted {
  border-left: 4px solid color-mix(in srgb, var(--accent) 35%, #444);
}

.card--note {
  border-left: 4px solid var(--note-green);
}

.card--note-blue {
  border-left-color: var(--note-blue);
}

/* FAQ — panneau premium + accordéon lisible */
.faq-shell {
  position: relative;
}

.faq-shell::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 26px;
  background: linear-gradient(
    125deg,
    color-mix(in srgb, var(--accent) 42%, transparent),
    color-mix(in srgb, var(--note-blue) 32%, transparent),
    color-mix(in srgb, var(--glow-violet) 26%, transparent)
  );
  opacity: 0.42;
  filter: blur(22px);
  z-index: 0;
  pointer-events: none;
}

.faq-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.72rem;
  padding: clamp(1.05rem, 2.2vw, 1.35rem) clamp(0.85rem, 2vw, 1.2rem) clamp(1.1rem, 2.2vw, 1.4rem);
  border-radius: 22px;
  border: 1px solid color-mix(in srgb, #fff 0.14, transparent);
  background:
    linear-gradient(185deg, color-mix(in srgb, var(--note-blue) 0.12, transparent) 0%, transparent 45%),
    linear-gradient(215deg, color-mix(in srgb, var(--accent) 0.1, transparent) 0%, transparent 40%),
    linear-gradient(180deg, color-mix(in srgb, #fff 0.04, transparent), transparent 28%),
    color-mix(in srgb, var(--bg-panel) 97%, #000);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--accent) 0.16, transparent),
    0 36px 96px rgba(0, 0, 0, 0.52),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  counter-reset: faq-i;
}

.faq-panel::before {
  content: '';
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  top: 0.55rem;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(
    90deg,
    transparent,
    color-mix(in srgb, var(--accent) 55%, transparent),
    color-mix(in srgb, var(--note-blue) 45%, transparent),
    transparent
  );
  opacity: 0.65;
  pointer-events: none;
}

.faq__item {
  counter-increment: faq-i;
  margin: 0;
  padding: 0;
  border: 1px solid color-mix(in srgb, #fff 0.065, transparent);
  border-radius: 18px;
  background:
    linear-gradient(110deg, color-mix(in srgb, var(--accent) 0.07, transparent) 0%, transparent 32%),
    linear-gradient(180deg, color-mix(in srgb, #fff 0.03, transparent), transparent 40%),
    color-mix(in srgb, #080810 97%, var(--bg-panel));
  overflow: clip;
  box-shadow:
    0 6px 24px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition:
    border-color 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq--inview .faq-panel > .faq__item {
  animation: faq-card-enter 0.52s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.faq--inview .faq-panel > .faq__item:nth-child(1) {
  animation-delay: 0.02s;
}
.faq--inview .faq-panel > .faq__item:nth-child(2) {
  animation-delay: 0.06s;
}
.faq--inview .faq-panel > .faq__item:nth-child(3) {
  animation-delay: 0.1s;
}
.faq--inview .faq-panel > .faq__item:nth-child(4) {
  animation-delay: 0.14s;
}
.faq--inview .faq-panel > .faq__item:nth-child(5) {
  animation-delay: 0.18s;
}
.faq--inview .faq-panel > .faq__item:nth-child(6) {
  animation-delay: 0.22s;
}
.faq--inview .faq-panel > .faq__item:nth-child(7) {
  animation-delay: 0.26s;
}
.faq--inview .faq-panel > .faq__item:nth-child(8) {
  animation-delay: 0.3s;
}
.faq--inview .faq-panel > .faq__item:nth-child(9) {
  animation-delay: 0.34s;
}
.faq--inview .faq-panel > .faq__item:nth-child(10) {
  animation-delay: 0.38s;
}
.faq--inview .faq-panel > .faq__item:nth-child(11) {
  animation-delay: 0.42s;
}
.faq--inview .faq-panel > .faq__item:nth-child(12) {
  animation-delay: 0.46s;
}
.faq--inview .faq-panel > .faq__item:nth-child(13) {
  animation-delay: 0.5s;
}
.faq--inview .faq-panel > .faq__item:nth-child(14) {
  animation-delay: 0.54s;
}
.faq--inview .faq-panel > .faq__item:nth-child(15) {
  animation-delay: 0.58s;
}
.faq--inview .faq-panel > .faq__item:nth-child(16) {
  animation-delay: 0.62s;
}

@keyframes faq-card-enter {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.faq__item:hover {
  border-color: color-mix(in srgb, var(--note-blue) 38%, transparent);
  transform: translateY(-2px);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.4),
    0 0 36px color-mix(in srgb, var(--note-blue) 12%, transparent);
}

.faq__item[open] {
  border-color: color-mix(in srgb, var(--accent) 52%, transparent);
  box-shadow:
    0 20px 52px rgba(0, 0, 0, 0.45),
    0 0 48px color-mix(in srgb, var(--accent) 14%, transparent),
    inset 0 0 0 1px color-mix(in srgb, var(--accent) 0.12, transparent);
}

.faq__item[open]:hover {
  transform: translateY(-1px);
}

.faq__item summary {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  cursor: pointer;
  font-weight: 650;
  font-size: clamp(0.92rem, 1.9vw, 1.02rem);
  line-height: 1.42;
  letter-spacing: -0.015em;
  list-style: none;
  position: relative;
  padding: 1.12rem 3.5rem 1.12rem 1.15rem;
  color: var(--text);
  transition: color 0.25s ease;
  text-wrap: balance;
}

.faq__item summary:hover {
  color: color-mix(in srgb, var(--text) 94%, var(--accent));
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::before {
  content: counter(faq-i, decimal-leading-zero);
  flex: 0 0 auto;
  min-width: 2.5rem;
  padding: 0.38rem 0.42rem;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  color: #fff;
  text-align: center;
  border-radius: 12px;
  background: linear-gradient(
    155deg,
    color-mix(in srgb, var(--accent) 88%, #fff) 0%,
    color-mix(in srgb, var(--accent) 42%, #1a0804) 100%
  );
  box-shadow:
    0 0 0 1px color-mix(in srgb, #fff 0.2, transparent) inset,
    0 6px 18px color-mix(in srgb, var(--accent) 38%, transparent);
}

.faq__item summary::after {
  content: '';
  position: absolute;
  right: 0.8rem;
  top: 50%;
  width: 2.35rem;
  height: 2.35rem;
  margin-top: -1.175rem;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, #fff 0.14, transparent);
  background-color: color-mix(in srgb, #fff 0.06, transparent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='%23c8c8d4' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center 54%;
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.25s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease;
}

.faq__item summary:hover::after {
  border-color: color-mix(in srgb, var(--accent) 42%, transparent);
  background-color: color-mix(in srgb, var(--accent) 14%, transparent);
  box-shadow: 0 0 22px color-mix(in srgb, var(--accent) 24%, transparent);
}

.faq__item[open] summary::after {
  transform: rotate(180deg);
  border-color: color-mix(in srgb, var(--accent) 50%, transparent);
  background-color: color-mix(in srgb, var(--accent) 18%, transparent);
}

.faq__item p {
  margin: 0;
  padding: 0 1.25rem 1.25rem 3.55rem;
  color: color-mix(in srgb, var(--muted) 92%, var(--text));
  font-size: 0.94rem;
  line-height: 1.72;
  letter-spacing: 0.01em;
  border-left: 4px solid color-mix(in srgb, var(--accent) 55%, var(--note-blue));
  margin-left: 1.05rem;
  margin-right: 0.75rem;
  border-radius: 0 0 0 10px;
  background: linear-gradient(100deg, color-mix(in srgb, var(--accent) 0.09, transparent), transparent 60%);
  text-wrap: pretty;
}

.faq__item p a {
  color: color-mix(in srgb, var(--accent) 88%, #fff);
  font-weight: 600;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.faq__item p a:hover {
  color: color-mix(in srgb, var(--accent) 98%, #fff);
}

.faq__item[open] p {
  animation: faq-answer-in 0.48s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes faq-answer-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.faq--inview .section-head--faq .section-head__title {
  animation: faq-title-in 0.62s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.faq--inview .section-head--faq .section-head__lead {
  animation: faq-title-in 0.62s cubic-bezier(0.22, 1, 0.36, 1) 0.06s both;
}

.faq--inview .section-head--faq .section-head__tag {
  animation: faq-title-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes faq-title-in {
  from {
    opacity: 0.88;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.faq--inview .footer.footer--in-faq {
  animation: faq-title-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both;
}

@media (prefers-reduced-motion: reduce) {
  .faq--inview .faq-panel > .faq__item {
    animation: none;
  }

  .faq__item p {
    animation: none;
  }

  .faq--inview .section-head--faq .section-head__tag,
  .faq--inview .section-head--faq .section-head__title,
  .faq--inview .section-head--faq .section-head__lead {
    animation: none;
  }

  .faq--inview .footer.footer--in-faq {
    animation: none;
  }

  .faq__item summary::after {
    transition: transform 0.2s ease;
  }
}

/* Footer (dans dernière section plein écran) */
.footer {
  text-align: center;
  font-size: 0.76rem;
  color: var(--muted);
}

.footer a {
  color: color-mix(in srgb, var(--accent) 75%, #fff);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* Pied légal sous la FAQ (priorité sur les règles .footer génériques) */
.footer.footer--in-faq {
  flex: 0 0 auto;
  margin-top: auto;
  padding-top: clamp(1.35rem, 3vw, 2rem);
  margin-bottom: 0.25rem;
  border-top: 1px solid color-mix(in srgb, #fff 0.1, transparent);
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.55;
}

.footer.footer--in-faq a {
  color: color-mix(in srgb, var(--accent) 78%, #fff);
  text-decoration: none;
}

.footer.footer--in-faq a:hover {
  text-decoration: underline;
}

/* Lien licence SPL (nouvel onglet) — pastille discrète dans le pied de page */
.footer-license-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.6rem;
  margin: 0 0.12rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bg) !important;
  background: color-mix(in srgb, var(--accent) 88%, #fff);
  border-radius: 999px;
  text-decoration: none !important;
  vertical-align: middle;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  transition: filter 0.15s ease, transform 0.15s ease;
}

.footer-license-pill:hover {
  filter: brightness(1.07);
  text-decoration: none !important;
  transform: translateY(-1px);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 380px) {
  .section-head__title {
    font-size: clamp(1.22rem, 6.2vw, 1.55rem);
  }

  .section-head__lead {
    font-size: 0.88rem;
  }

  .hub__lead {
    font-size: clamp(0.92rem, 3.8vw, 1.02rem);
  }

  .nav-links a {
    font-size: 0.7rem;
    padding: 0.38rem 0.35rem;
  }
}

/* -------------------------------------------------------------------------- */
/* Page 404 — URL inconnue (Netlify sert /404.html automatiquement)            */
/* -------------------------------------------------------------------------- */

body.page-error {
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 100dvh;
}

.page-error__shell {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.page-error__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem clamp(1rem, 4vw, 1.75rem);
  border-bottom: none;
  position: relative;
  background: color-mix(in srgb, var(--bg-panel) 55%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.page-error__top::after {
  content: '';
  position: absolute;
  left: 3%;
  right: 3%;
  bottom: 0;
  height: 1px;
  pointer-events: none;
  background: var(--sep-fade-x);
  opacity: 0.85;
}

.page-error__brand.nav-brand {
  justify-self: start;
}

.page-error__lang-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.page-error__main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 5vw, 3rem) 1rem;
}

.page-error__card {
  width: 100%;
  max-width: 26rem;
  padding: clamp(1.35rem, 4vw, 2rem);
  border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, #fff 0.08, transparent);
  background: color-mix(in srgb, var(--bg-panel) 88%, transparent);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  text-align: center;
}

.page-error__code {
  margin: 0 0 0.35rem;
  font-family: var(--font-pixel);
  font-size: clamp(1.85rem, 5vw, 2.35rem);
  letter-spacing: 0.08em;
  color: color-mix(in srgb, var(--accent) 88%, #fff);
  text-shadow: 0 0 40px color-mix(in srgb, var(--accent) 35%, transparent);
}

.page-error__title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.25rem, 3.5vw, 1.55rem);
  font-weight: 700;
  line-height: 1.2;
}

.page-error__lead {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: color-mix(in srgb, var(--text) 88%, var(--muted));
}

.page-error__path-wrap {
  margin: 0 0 1.35rem;
  text-align: left;
}

.page-error__path-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.page-error__path {
  display: block;
  width: 100%;
  padding: 0.5rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  word-break: break-all;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  color: color-mix(in srgb, var(--text) 92%, var(--muted));
}

.page-error__actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.page-error__actions .btn-lg {
  width: 100%;
  justify-content: center;
}

@media (min-width: 480px) {
  .page-error__actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .page-error__actions .btn-lg {
    width: auto;
    min-width: 10rem;
  }
}
