/* Kamronite — site public, façon « launcher » de jeux.

   Une seule feuille pour toutes les pages publiques (une requête, versionnée par ?v=). L'ORDRE des sections compte :
   à sélecteurs égaux, la règle écrite plus bas l'emporte ; « Adaptations » ajuste les sections qui la précèdent, et
   les sections suivantes portent leurs propres adaptations. Une règle nouvelle va dans la section de son élément.
   Les cadres des cartes sont dans frames.css (chargée seulement sur les pages qui en montrent un).

   Sommaire : base et thème · Logo · En-tête (et habillage téléphone) · Mise en page générale · Jaquettes (vidéo
   d'aperçu) · Bandeau à la une (lueur, compte à rebours, « Ça m'intéresse ») · Boutons · Rayons de projets ·
   Fiche (tuile) · Pages catégorie et recherche · Pied de page · Page d'erreur · Adaptations (ordinateur, tablette,
   téléphone ; réduire les animations) · Choix des statistiques · Pages légales · Catalogue : filtres, blocs, aide,
   messages · Fiche détaillée d'un projet · Accès au projet · L'entreprise (accueil, À propos, contact). */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(/fonts/archivo-latin-wdth-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(/fonts/archivo-latin-ext-wdth-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: dark;
  --bg: #0d0f14;
  --bg-deep: #0a0c10;
  --surface: #161920;
  --surface-2: #1d2029;
  --surface-3: #262a35;
  --line: rgb(255 255 255 / 0.08);
  --line-2: rgb(255 255 255 / 0.15);
  --text: #f3f5f8;
  --text-2: #b4bbc8;
  --muted: #8a92a3;
  --accent: #4766ff;
  --accent-hover: #5c7aff;
  /* Fond survolé d'un bouton à texte blanc : 5,8:1 (WCAG AA), --accent-hover (3,7:1) reste réservé au texte et aux contours. */
  --accent-strong: #3654eb;
  --live: #3ddc84;
  --soon: linear-gradient(120deg, #ff8a3c, #ff3c7f);
  --heart: #ff5c8a;

  --font: 'Archivo', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --gutter: clamp(16px, 3.4vw, 48px);
  --max: 1440px;
  /* Marge latérale du contenu : la gouttière, plus la moitié de l'espace libre au-delà de --max. */
  --page-pad: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
  --r: 14px;
  --r-s: 10px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@property --ambient {
  syntax: '<color>';
  inherits: true;
  initial-value: #4766ff;
}

/* Pas de transition animée entre les pages : la navigation reste simple et immédiate. */

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

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid #8da0ff;
  outline-offset: 3px;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
}

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

.skip {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--r-s);
  background: var(--text);
  color: var(--bg);
  font-weight: 700;
  text-decoration: none;
}
.skip:focus {
  top: 12px;
}

/* ------------------------------------------------------------------ */
/* Logo                                                                */
/* ------------------------------------------------------------------ */

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  flex: none;
}
.logo__mark {
  width: 30px;
  height: 30px;
}
.logo__word {
  font-weight: 800;
  font-stretch: 125%;
  font-size: 17px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ------------------------------------------------------------------ */
/* En-tête                                                             */
/* ------------------------------------------------------------------ */

.hdr {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(13 15 20 / 0.86);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms;
}
.hdr.is-scrolled {
  border-bottom-color: var(--line);
}
.hdr__in {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 68px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-wrap {
  position: relative;
  min-width: 0;
  flex: 1;
}
.nav-wrap::before,
.nav-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 36px;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 150ms;
}
.nav-wrap::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg), transparent);
}
.nav-wrap::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg), transparent);
}
.nav-wrap.has-left::before,
.nav-wrap.has-right::after {
  opacity: 1;
}
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav::-webkit-scrollbar {
  display: none;
}
.nav__a {
  flex: none;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--text-2);
  text-decoration: none;
  font-size: 15px;
  font-weight: 550;
  white-space: nowrap;
  transition: color 150ms, background-color 150ms;
}
.nav__a:hover {
  color: var(--text);
  background: var(--surface);
}
.nav__a[aria-current='page'] {
  color: var(--text);
  background: var(--surface-2);
}

.search {
  position: relative;
  flex: none;
  width: 290px;
}
.search__icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}
.search__input {
  width: 100%;
  height: 42px;
  padding: 0 40px 0 42px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 15px;
  color: var(--text);
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 150ms, background-color 150ms;
}
.search__input::placeholder {
  color: var(--muted);
}
.search__input::-webkit-search-cancel-button {
  display: none;
}
.search__input:hover {
  border-color: var(--line-2);
}
.search__input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface-2);
}
.search__key {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  min-width: 22px;
  padding: 1px 6px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  font: 600 12px/1.4 var(--font);
  color: var(--muted);
  text-align: center;
  pointer-events: none;
}
.search__input:focus ~ .search__key,
.search__input:not(:placeholder-shown) ~ .search__key {
  display: none;
}

.search__list {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: min(380px, calc(100vw - 32px));
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  box-shadow: 0 18px 48px rgb(0 0 0 / 0.5);
}
.sugg {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: var(--r-s);
  cursor: pointer;
}
.sugg[aria-selected='true'],
.sugg:hover {
  background: var(--surface-3);
}
.sugg__icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 9px;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 18%, transparent);
}
.sugg__icon .icon {
  width: 18px;
  height: 18px;
}
.sugg__text {
  min-width: 0;
  display: grid;
}
.sugg__title {
  font-weight: 650;
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sugg__soon {
  margin-left: 8px;
  padding: 0 6px;
  border-radius: 5px;
  background: var(--soon);
  color: #fff;
  font-size: 11px;
  vertical-align: 1px;
}
.sugg__cat {
  font-size: 13px;
  color: var(--muted);
}
.sugg--all {
  justify-content: center;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 600;
}
.sugg--none {
  cursor: default;
  color: var(--muted);
  font-size: 14px;
}
.sugg--none:hover {
  background: none;
}

/* Habillage téléphone : sur ordinateur et tablette, ces enveloppes disparaissent et les liens restent en ligne. */
.rub,
.menu,
.menu__panel {
  display: contents;
}
.rub__btn,
.menu__btn,
.menu__title,
.lang__name,
.lang__on {
  display: none;
}

.lang {
  display: flex;
  flex: none;
  padding: 3px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.lang a {
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-decoration: none;
  line-height: 1.3;
}
.lang a:hover {
  color: var(--text);
}
.lang a[aria-current='true'] {
  background: var(--surface-3);
  color: var(--text);
}

/* ------------------------------------------------------------------ */
/* Mise en page générale                                               */
/* ------------------------------------------------------------------ */

.main {
  /* Pleine largeur : le contenu garde la même colonne (--max), mais la découpe horizontale (aucun défilement de
     côté, même sur téléphone) se fait au bord de l'écran, plus au bord de la colonne. Sur un grand écran, la
     lueur du bandeau peut ainsi se fondre dans les marges au lieu de s'arrêter net sur une ligne verticale. */
  overflow-x: clip;
  flex: 1;
  width: 100%;
  padding: 0 var(--page-pad) 96px;
}

.intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 48px;
  flex-wrap: wrap;
  padding: 28px 0 24px;
}
.intro__title {
  margin: 0;
  max-width: 22em;
  font-size: clamp(22px, 2.3vw, 30px);
  font-weight: 750;
  font-stretch: 112%;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.intro__text {
  margin: 0;
  max-width: 46ch;
  color: var(--text-2);
  font-size: 15.5px;
  text-wrap: pretty;
}
.intro__side {
  display: grid;
  gap: 14px;
}
.intro__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
}
.btn--sm {
  height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 14px;
  gap: 8px;
}
.btn--sm .icon {
  width: 16px;
  height: 16px;
}
/* Ancre #projets (bouton « Découvrir nos projets », liens directs) : l'en-tête collant ne recouvre pas le début du
   catalogue. « Projets » de l'en-tête, lui, mène au début de l'accueil. */
.projects {
  scroll-margin-top: 96px;
}

/* ------------------------------------------------------------------ */
/* Jaquettes                                                           */
/* ------------------------------------------------------------------ */

.art {
  position: relative;
  display: block;
  overflow: hidden;
  isolation: isolate;
  background: var(--surface-2);
  container-type: inline-size;
}
.art__svg,
.art__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.art__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(0 0 0 / 0.55), rgb(0 0 0 / 0) 58%);
}
/* Vidéo d'aperçu (survol des fiches, fond du bandeau) */
.art__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.art__video {
  object-fit: cover;
  opacity: 0;
  transition: opacity 400ms ease;
}
.art.is-playing .art__video {
  opacity: 1;
}
.art__mark,
.art__title {
  transition: opacity 300ms ease;
}
.art.is-playing .art__mark,
.art.is-playing .art__title {
  opacity: 0;
}
@media (prefers-reduced-motion: reduce) {
  .art__video {
    display: none;
  }
}
.art__mark {
  position: absolute;
  top: 7%;
  left: 5.5%;
  width: max(14px, 6.5cqi);
  height: auto;
  color: #fff;
  opacity: 0.8;
}
.art__title {
  position: absolute;
  left: 5.5%;
  right: 5.5%;
  bottom: 8%;
  color: #fff;
  font-weight: 850;
  font-stretch: 125%;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 16px rgb(0 0 0 / 0.35);
  overflow-wrap: break-word;
}
.art__title {
  --max: 12cqi;
  font-size: min(var(--max), calc(var(--fit, 0.1) * 88cqi));
}
.art__title--l {
  --max: 10cqi;
}
.art__title--m {
  --max: 8cqi;
}
.art__title--s {
  --max: 6.6cqi;
}

/* ------------------------------------------------------------------ */
/* Bandeau à la une                                                    */
/* ------------------------------------------------------------------ */

.hero {
  --ambient: #4766ff;
  position: relative;
  isolation: isolate;
  transition: --ambient 900ms ease;
}
/* Lueur d'ambiance aux couleurs du projet affiché.
   Elle ne doit jamais s'arrêter sur une ligne : le calque s'étend jusqu'au bord de l'écran sur les côtés
   (--glow-x : marge de la page, découpée seulement par .main au bord de l'écran) et le masque elliptique le
   ramène progressivement à zéro avant chacun de ses bords. Les dégradés de couleur peuvent donc dépasser :
   seul le masque décide où la lueur finit. Pas de filtre flou : il débordait du calque et se faisait couper. */
.hero__glow {
  --glow-x: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  --glow-top: clamp(56px, 9vw, 140px);
  --glow-bottom: clamp(48px, 8vw, 120px);
  position: absolute;
  z-index: -1;
  top: calc(var(--glow-top) * -1);
  bottom: calc(var(--glow-bottom) * -1);
  left: calc(var(--glow-x) * -1);
  right: calc(var(--glow-x) * -1);
  background:
    radial-gradient(42% 46% at 66% 40%, color-mix(in srgb, var(--ambient) 46%, transparent), transparent),
    radial-gradient(36% 42% at 26% 66%, color-mix(in srgb, var(--ambient) 26%, transparent), transparent);
  -webkit-mask-image: radial-gradient(farthest-side, #000 52%, rgb(0 0 0 / 0.74) 64%, rgb(0 0 0 / 0.44) 76%, rgb(0 0 0 / 0.18) 87%, rgb(0 0 0 / 0.05) 95%, transparent);
  mask-image: radial-gradient(farthest-side, #000 52%, rgb(0 0 0 / 0.74) 64%, rgb(0 0 0 / 0.44) 76%, rgb(0 0 0 / 0.18) 87%, rgb(0 0 0 / 0.05) 95%, transparent);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  opacity: 0.8;
  pointer-events: none;
}
.hero__frame {
  /* Les diapositives sont empilées dans une même cellule de grille : le cadre prend la hauteur de la plus haute
     (jamais de texte rogné, aucun saut de hauteur d'un projet à l'autre), au moins --hero-h. */
  --hero-h: clamp(460px, 62vh, 640px);
  position: relative;
  display: grid;
  border-radius: 22px;
  overflow: hidden;
  background: var(--surface);
}
.slide {
  grid-area: 1 / 1;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: var(--hero-h);
  padding: clamp(24px, 4.4vw, 60px) clamp(24px, 4.4vw, 64px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 700ms var(--ease), visibility 0s linear 700ms;
}
.slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 700ms var(--ease), visibility 0s;
}
.slide__art {
  position: absolute;
  inset: 0;
}
.slide__art::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgb(10 12 16 / 0.94) 0%, rgb(10 12 16 / 0.72) 30%, rgb(10 12 16 / 0) 62%),
    linear-gradient(0deg, rgb(10 12 16 / 0.7) 0%, rgb(10 12 16 / 0) 42%);
}

.slide__body {
  position: relative;
  width: min(640px, 56%);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 6px 13px 6px 11px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.1);
  border: 1px solid rgb(255 255 255 / 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 13.5px;
  font-weight: 650;
}
.chip .icon {
  color: var(--c);
  width: 16px;
  height: 16px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip--soon {
  background: var(--soon);
  border-color: transparent;
}
.chip--soon .icon {
  color: #fff;
}
.chip--custom {
  background: var(--b);
  border-color: transparent;
}
.slide__body {
  container-type: inline-size;
}
.slide__title {
  --max: clamp(36px, 4.6vw, 76px);
  margin: 18px 0 0;
  font-size: min(var(--max), calc(var(--fit, 0.1) * 100cqi));
  font-weight: 850;
  font-stretch: 125%;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: -0.015em;
  text-wrap: balance;
  overflow-wrap: break-word;
}
.slide__title--l {
  --max: clamp(32px, 4vw, 64px);
}
.slide__title--m {
  --max: clamp(30px, 3.4vw, 54px);
}
.slide__title--s {
  --max: clamp(28px, 2.9vw, 46px);
}
.slide__text {
  margin: 18px 0 0;
  max-width: 46ch;
  color: #d3d8e1;
  font-size: 17px;
  line-height: 1.5;
  text-wrap: pretty;
}
.slide__actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.slide__release {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 0;
  color: #ffd1b3;
  font-weight: 650;
}

/* Compte à rebours (projets à venir) */
.cd {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}
.cd__box {
  min-width: 68px;
  padding: 10px 8px 9px;
  border-radius: 12px;
  background: rgb(10 12 16 / 0.5);
  border: 1px solid rgb(255 255 255 / 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-align: center;
}
.cd__num {
  display: block;
  font-size: 30px;
  font-weight: 800;
  font-stretch: 112%;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.cd__unit {
  display: block;
  margin-top: 6px;
  color: var(--text-2);
  font-size: 11.5px;
  font-weight: 600;
}

/* « Ça m'intéresse » */
.interest {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 650;
  cursor: pointer;
  transition: background-color 150ms, border-color 150ms, color 150ms;
}
.interest:hover {
  background: var(--surface-2);
}
.interest .icon {
  width: 16px;
  height: 16px;
}
.interest__done {
  display: none;
}
.interest__count {
  min-width: 22px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--surface-3);
  font-size: 12px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.interest.is-on {
  background: color-mix(in srgb, var(--heart) 16%, transparent);
  border-color: color-mix(in srgb, var(--heart) 55%, transparent);
  color: #ffd6e2;
}
.interest.is-on .interest__icon {
  display: none;
}
.interest.is-on .interest__done {
  display: block;
  color: var(--heart);
}
.interest.is-on .interest__count {
  background: color-mix(in srgb, var(--heart) 30%, transparent);
}
.interest.is-pop {
  animation: pop 450ms cubic-bezier(0.2, 0.7, 0.2, 1.4);
}
@keyframes pop {
  40% {
    transform: scale(1.08);
  }
}
.btn.interest--hero {
  border: 0;
  padding: 0 14px 0 22px;
  border-radius: 12px;
  color: #fff;
}
.btn.interest--hero .icon {
  width: 18px;
  height: 18px;
}
.btn.interest--hero .interest__count {
  background: rgb(255 255 255 / 0.22);
  font-size: 13px;
}
.btn.interest--hero.is-on {
  background: var(--heart);
  color: #fff;
}
.btn.interest--hero.is-on .interest__done {
  color: #fff;
}
.btn.interest--hero.is-on .interest__count {
  background: rgb(255 255 255 / 0.25);
}

.hero__picker {
  position: absolute;
  right: clamp(16px, 2.4vw, 32px);
  bottom: clamp(16px, 2.4vw, 32px);
  display: flex;
  gap: 10px;
  z-index: 2;
}
.pick {
  width: 150px;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
  color: var(--text-2);
}
.pick__art {
  aspect-ratio: 16 / 9;
  border-radius: 9px;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.14);
  transition: box-shadow 200ms, transform 200ms var(--ease);
}
.pick:hover .pick__art {
  transform: translateY(-2px);
}
.pick.is-active .pick__art {
  box-shadow: 0 0 0 2px var(--text);
}
.pick__title {
  display: block;
  margin-top: 7px;
  font-size: 13px;
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 1px 8px rgb(0 0 0 / 0.6);
}
.pick.is-active .pick__title {
  color: var(--text);
}
.pick__bar {
  display: block;
  height: 2px;
  margin-top: 6px;
  border-radius: 2px;
  background: rgb(255 255 255 / 0.18);
  overflow: hidden;
}
.pick__bar > span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--text);
}
.pick.is-active .pick__bar > span {
  width: 100%;
}
.hero.is-playing .pick.is-active .pick__bar > span {
  width: 0;
  animation: progress var(--slide-ms, 8000ms) linear forwards;
}
.hero.is-paused .pick.is-active .pick__bar > span {
  animation-play-state: paused;
}
@keyframes progress {
  to {
    width: 100%;
  }
}

/* ------------------------------------------------------------------ */
/* Boutons                                                             */
/* ------------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 150ms, border-color 150ms, transform 150ms var(--ease);
}
.btn:active {
  transform: scale(0.98);
}
.btn .icon {
  width: 18px;
  height: 18px;
}
.btn--play {
  height: 54px;
  padding: 0 30px 0 24px;
  background: var(--accent);
  color: #fff;
  font-size: 17px;
}
.btn--play:hover {
  background: var(--accent-strong);
}
.btn--glass {
  background: rgb(255 255 255 / 0.1);
  border: 1px solid rgb(255 255 255 / 0.14);
  color: var(--text);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.btn--glass:hover {
  background: rgb(255 255 255 / 0.16);
}
.btn--ghost {
  background: var(--surface);
  border: 1px solid var(--line-2);
  color: var(--text);
  font-size: 15px;
  height: 44px;
}
.btn--ghost:hover {
  background: var(--surface-2);
}

.copy__done {
  display: none;
  color: var(--live);
}
.copy.is-copied .copy__icon {
  display: none;
}
.copy.is-copied .copy__done {
  display: block;
}

.live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-2);
  white-space: nowrap;
}
.live::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
}
.live.is-online {
  color: var(--text);
}
.live.is-online::before {
  background: var(--live);
  box-shadow: 0 0 0 3px rgb(61 220 132 / 0.2);
}
.live--art {
  padding: 3px 9px 3px 8px;
  border-radius: 7px;
  background: rgb(10 12 16 / 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  gap: 6px;
}
.live--art::before {
  width: 7px;
  height: 7px;
}
.live--hero {
  height: 48px;
  padding: 0 16px;
  border-radius: 12px;
  background: rgb(10 12 16 / 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ------------------------------------------------------------------ */
/* Rayons de projets                                                   */
/* ------------------------------------------------------------------ */

.shelf {
  margin-top: 56px;
}
.shelf__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.shelf__titles {
  min-width: 0;
}
.shelf__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 22px;
  font-weight: 750;
  font-stretch: 112%;
  line-height: 1.2;
  letter-spacing: -0.005em;
}
.shelf--upcoming .shelf__title .icon {
  color: #ff8a3c;
}
.pick__soon {
  display: inline-block;
  margin-right: 6px;
  padding: 0 6px;
  border-radius: 5px;
  background: var(--soon);
  color: #fff;
  font-size: 11px;
  vertical-align: 1px;
}
.shelf__title .icon {
  width: 22px;
  height: 22px;
  color: var(--c, var(--accent));
}
.shelf__count {
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  font-stretch: 100%;
  font-variant-numeric: tabular-nums;
}
.shelf__desc {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14.5px;
}
.shelf__tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}
.shelf__all {
  margin-right: 6px;
  color: var(--text-2);
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
}
.shelf__all:hover {
  color: var(--text);
}
.round {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: background-color 150ms, opacity 150ms;
}
.round:hover:not(:disabled) {
  background: var(--surface-2);
}
.round:disabled {
  opacity: 0.35;
  cursor: default;
}
.round .icon {
  width: 18px;
  height: 18px;
}

.shelf__row {
  --cols: 4;
  position: relative;
  list-style: none;
  margin: 0;
  padding: 4px 0 6px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--cols) - 1) * 20px) / var(--cols));
  gap: 20px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.shelf__row::-webkit-scrollbar {
  display: none;
}
.shelf__row > .tile {
  scroll-snap-align: start;
}

.grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
  gap: 36px 20px;
}

/* ------------------------------------------------------------------ */
/* Fiche (tuile)                                                       */
/* ------------------------------------------------------------------ */

.tile {
  position: relative;
  min-width: 0;
}
.tile__link {
  display: block;
  color: inherit;
  text-decoration: none;
  border-radius: var(--r);
}
.tile__link:focus-visible {
  outline: none;
}
.art--tile {
  aspect-ratio: 16 / 9;
  border-radius: var(--r);
  box-shadow: 0 0 0 1px var(--line);
  transition: transform 300ms var(--ease), box-shadow 300ms var(--ease);
}
.art--tile > .art__svg,
.art--tile > .art__img {
  transition: transform 500ms var(--ease);
}
.tile__link:focus-visible .art--tile {
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px #8da0ff;
}
.art__tags {
  position: absolute;
  z-index: 2;
  top: 8%;
  right: 4.5%;
  max-width: 78%;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 7px;
  background: rgb(10 12 16 / 0.62);
  color: #fff;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.01em;
  white-space: nowrap;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.tag .icon {
  width: 13px;
  height: 13px;
}
.tag--new {
  background: var(--accent);
}
.tag--soon {
  background: var(--soon);
}
.tag--custom {
  background: var(--b);
}
.tag--light,
.chip--light {
  color: #0d0f14;
}
.tile__play {
  position: absolute;
  /* Centre exact du visuel (.art--tile, le rectangle de l'image, cadre décoratif exclu). */
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px 8px 11px;
  border-radius: 999px;
  background: #fff;
  color: #0d0f14;
  font-size: 14px;
  font-weight: 750;
  opacity: 0;
  transform: scale(0.9);
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.35);
  transition: opacity 200ms, transform 250ms var(--ease);
  pointer-events: none;
}
.tile__play .icon {
  width: 15px;
  height: 15px;
}
.tile__name {
  display: block;
  margin-top: 12px;
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tile__meta {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 550;
}
.tile__meta .icon {
  width: 15px;
  height: 15px;
  color: var(--c);
}
.tile__release {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 6px;
  color: #ffb98a;
  font-size: 13.5px;
  font-weight: 650;
}
.tile__release .icon {
  width: 15px;
  height: 15px;
}
.tile__link--static {
  cursor: default;
}
.tile__desc {
  display: -webkit-box;
  margin-top: 8px;
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.5;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tile__extra {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: 12px;
}
.copy:not(.btn) {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 6px 11px;
  border-radius: 9px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--text-2);
  font-size: 13.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: background-color 150ms, color 150ms;
}
.copy:not(.btn):hover {
  background: var(--surface-2);
  color: var(--text);
}
.copy:not(.btn) .icon {
  width: 15px;
  height: 15px;
}
.copy__value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (hover: hover) {
  .tile__link:hover .art--tile {
    transform: translateY(-4px);
    box-shadow: 0 0 0 1px var(--line-2), 0 18px 40px rgb(0 0 0 / 0.45);
  }
  .tile__link:hover .art--tile > .art__svg,
  .tile__link:hover .art--tile > .art__img {
    transform: scale(1.04);
  }
  .tile__link:hover .tile__play {
    opacity: 1;
    transform: none;
  }
  .tile__link:hover .tile__name {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
  }
}
.tile__link:focus-visible .tile__play {
  opacity: 1;
  transform: none;
}

/* ------------------------------------------------------------------ */
/* Pages catégorie et recherche                                        */
/* ------------------------------------------------------------------ */

.page-head {
  --c: var(--accent);
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 28px 0 32px;
  padding: 28px;
  border-radius: 20px;
  background:
    radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--c) 22%, transparent), transparent 60%),
    var(--surface);
  border: 1px solid var(--line);
}
.page-head__icon {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 16px;
  background: color-mix(in srgb, var(--c) 20%, var(--surface-2));
  color: var(--c);
}
.page-head__icon .icon {
  width: 28px;
  height: 28px;
}
.page-head__body {
  min-width: 0;
  flex: 1;
}
.page-head__title {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 800;
  font-stretch: 118%;
  line-height: 1.05;
  letter-spacing: -0.015em;
  overflow-wrap: break-word;
}
.page-head__text {
  margin: 8px 0 0;
  max-width: 60ch;
  color: var(--text-2);
}
.page-head__count {
  margin: 0;
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
}
.page-head--search .page-head__icon {
  color: var(--text);
  background: var(--surface-2);
}

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-top: 40px;
  padding: 64px 24px;
  border-radius: 20px;
  border: 1px dashed var(--line-2);
  text-align: center;
}
.empty p {
  margin: 0;
  max-width: 42ch;
  color: var(--text-2);
  font-size: 17px;
}
.empty__mark {
  width: 44px;
  height: 44px;
  color: var(--surface-3);
}

/* ------------------------------------------------------------------ */
/* Pied de page                                                        */
/* ------------------------------------------------------------------ */

.foot {
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
}
.foot__in {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px var(--gutter) 40px;
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
}
.foot__brand p {
  margin: 16px 0 0;
  max-width: 44ch;
  color: var(--muted);
  font-size: 15px;
}
.foot__title {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.foot__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.foot__col a,
.foot__brand a {
  overflow-wrap: anywhere;
}
.foot__col a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
}
.foot__col a:hover {
  color: var(--text);
}
.foot__base {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px var(--gutter) 28px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px 32px;
  color: var(--muted);
  font-size: 14px;
}
.foot__base > p {
  margin: 0;
}
.foot__legal {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.foot__legal a,
.foot__consent {
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
}
.foot__legal a:hover,
.foot__consent:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.foot__lang:hover {
  color: var(--text);
}
.foot__lang {
  color: var(--muted);
}

/* ------------------------------------------------------------------ */
/* Page d'erreur                                                       */
/* ------------------------------------------------------------------ */

.page-error {
  display: grid;
  place-items: center;
  padding: 24px;
}
.error {
  max-width: 520px;
}
.error__code {
  margin: 56px 0 0;
  color: var(--accent-hover);
  font-weight: 800;
  font-stretch: 125%;
  font-size: 15px;
  letter-spacing: 0.04em;
}
.error__title {
  margin: 6px 0 0;
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 850;
  font-stretch: 125%;
  line-height: 1;
  letter-spacing: -0.015em;
}
.error__text {
  margin: 16px 0 28px;
  color: var(--text-2);
}

/* ------------------------------------------------------------------ */
/* Adaptations                                                         */
/* ------------------------------------------------------------------ */

/* Trois compositions, choisies d'après le contenu plutôt qu'une grille imposée partout :
   - ordinateur (≥ 1024 px) : bandeau large, texte posé sur le visuel, sélecteur dans le bandeau ; rayons qui
     défilent de côté avec flèches ;
   - tablette (720 à 1023 px) : en-tête sur une ligne ; bandeau au format du visuel (16:9, rien n'est rogné),
     sélecteur dessous ; projets en grille de 2 ou 3 colonnes, tous visibles (plus de carte coupée au bord) ;
   - téléphone (< 720 px) : en-tête sur deux lignes ; bandeau compact (visuel puis texte) pour laisser voir le
     catalogue ; projets en liste verticale sur toute la largeur, où visuels, titres et cadres ont la place. */

@media (max-width: 1280px) {
  .shelf__row {
    --cols: 3;
  }
}

@media (max-width: 1100px) {
  .hdr__in {
    gap: 16px;
  }
  .search {
    width: 220px;
  }
  .hero__picker .pick {
    width: 120px;
  }
  .slide__body {
    /* 56 % : les boutons ne passent jamais sous le sélecteur posé en bas à droite du bandeau (1024 px). */
    width: min(560px, 56%);
  }
  .foot__in {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .foot__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1023px) {
  /* En-tête sur une ligne : [logo · Projets · À propos · recherche · FR/EN] ; la recherche prend la place qui reste. */
  .hdr__in {
    gap: 14px;
  }
  .nav-wrap {
    flex: 0 1 auto;
  }
  /* La recherche garde au moins 160 px ; avec des libellés longs, c'est la navigation qui défile de côté. */
  .search {
    flex: 1 0 160px;
    width: auto;
    margin-left: auto;
    max-width: 320px;
  }
  .search__input {
    min-width: 0;
  }
  /* Pages sans recherche (pages légales) : la langue reste à droite. */
  .lang {
    margin-left: auto;
  }
  .search__key {
    display: none;
  }
  /* Bandeau au format du visuel : l'image n'est plus rognée sur les côtés ; le texte reste lisible sur le voile. */
  .hero__frame {
    --hero-h: 0px;
    aspect-ratio: 16 / 9;
  }
  .slide {
    padding: clamp(20px, 3.4vw, 32px);
  }
  .slide__body {
    width: min(560px, 68%);
  }
  .slide__title {
    margin-top: 12px;
  }
  .slide__text {
    margin-top: 10px;
    font-size: 16px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
  }
  .slide__actions {
    margin-top: 18px;
  }
  .cd {
    margin-top: 14px;
  }
  /* Sélecteur sous le bandeau, vignettes de largeur égale : jamais de défilement de côté (3 projets au plus). */
  .hero__picker {
    position: static;
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 168px));
    gap: 12px;
  }
  .hero__picker .pick {
    width: auto;
    min-width: 0;
  }
  .pick__title {
    text-shadow: none;
  }
  /* Projets : grille qui passe à la ligne, tous visibles, au lieu d'un rayon coupé au bord de la colonne. */
  .shelf__row {
    grid-auto-flow: row;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
    grid-auto-columns: auto;
    gap: 32px 20px;
    overflow: visible;
    scroll-snap-type: none;
  }
  .shelf .round {
    display: none;
  }
}

@media (max-width: 719px) {
  /* En-tête compact sur téléphone, deux rangées, mêmes proportions de 320 à 719 px :
       [marque ............ menu]
       [recherche ... Projets ▾ ... ]      (le sélecteur est au centre réel de l'écran)
     Le menu contient le choix de la langue ; le sélecteur contient les liens de rubrique. La recherche est une
     icône qui devient un vrai champ, sur toute la largeur de la seconde rangée, dès qu'on la touche. */
  .hdr {
    position: relative;
    z-index: 50;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .hdr__in {
    position: relative;
    height: auto;
    display: grid;
    /* Deux colonnes extérieures de même largeur : la colonne centrale est exactement au milieu de l'écran. */
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    grid-template-areas:
      'logo logo menu'
      'search rub .';
    align-items: center;
    gap: 0 8px;
    padding-top: 6px;
    padding-bottom: 4px;
  }
  .logo {
    grid-area: logo;
    justify-self: start;
    min-height: 48px;
  }
  .logo__mark {
    width: 30px;
    height: 30px;
  }
  .logo__word {
    font-size: 17px;
  }

  /* Bouton de menu : trois traits, 44 px de zone tactile, trait aligné sur la marge droite de la page. */
  .menu {
    display: block;
    position: relative;
    grid-area: menu;
    justify-self: end;
    margin-right: -10px;
  }
  .menu__btn,
  .rub__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--text);
    font: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 150ms;
  }
  .menu__btn {
    width: 44px;
  }
  .menu__btn .icon {
    width: 26px;
    height: 26px;
  }
  .menu__btn:hover,
  .rub__btn:hover,
  .menu[data-open] .menu__btn,
  .rub[data-open] .rub__btn {
    background: var(--surface-2);
  }
  .menu__btn:focus-visible,
  .rub__btn:focus-visible {
    outline: 2px solid #8da0ff;
    outline-offset: 0;
  }

  /* Sélecteur de rubrique : libellé de la page courante + chevron, au centre de la seconde rangée. */
  .rub {
    display: block;
    position: relative;
    grid-area: rub;
    justify-self: center;
  }
  .rub__btn {
    gap: 6px;
    padding: 0 12px 0 16px;
    font-size: 16px;
    font-weight: 650;
    letter-spacing: 0.01em;
    white-space: nowrap;
  }
  .rub__chev {
    width: 18px;
    height: 18px;
    color: var(--text-2);
    transition: transform 200ms var(--ease);
  }
  .rub[data-open] .rub__chev {
    transform: rotate(180deg);
  }

  /* Panneaux ouverts sous leur bouton (fermés par défaut) : rubriques au centre, langue à droite. */
  .rub:not([data-open]) .nav-wrap,
  .menu:not([data-open]) .menu__panel {
    display: none;
  }
  .nav-wrap,
  .menu__panel {
    position: absolute;
    z-index: 60;
    top: calc(100% + 6px);
    padding: 6px;
    background: var(--surface-2);
    border: 1px solid var(--line-2);
    border-radius: var(--r);
    box-shadow: 0 18px 48px rgb(0 0 0 / 0.5);
  }
  .nav-wrap {
    left: 50%;
    translate: -50% 0;
    flex: none;
    min-width: 200px;
    margin: 0;
  }
  .nav-wrap::before,
  .nav-wrap::after {
    display: none;
  }
  .menu__panel {
    display: block;
    right: 0;
    width: min(260px, calc(100vw - 2 * var(--gutter)));
  }
  .nav {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    overflow: visible;
    padding: 0;
  }
  .nav__a,
  .hdr .lang a {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 46px;
    padding: 0 14px;
    border-radius: var(--r-s);
    font-size: 16px;
    line-height: 1.3;
  }
  .nav__a {
    justify-content: space-between;
    color: var(--text);
  }
  .nav__a[aria-current='page'],
  .hdr .lang a[aria-current='true'] {
    background: var(--surface-3);
    color: var(--text);
  }
  /* Rubrique courante : coche à droite, en plus du fond, pour ne pas reposer sur la seule couleur. */
  .nav__a[aria-current='page']::after {
    content: '';
    width: 6px;
    height: 12px;
    margin: -3px 4px 0 0;
    border: solid var(--accent-hover);
    border-width: 0 2px 2px 0;
    rotate: 45deg;
  }
  .nav__a:focus-visible,
  .hdr .lang a:focus-visible {
    outline-offset: -2px;
  }

  /* Langues : une rangée par langue, nom complet, coche sur la langue active. */
  .menu__title {
    display: block;
    margin: 6px 14px 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
  }
  .hdr .lang {
    display: grid;
    gap: 2px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
  }
  .hdr .lang a {
    color: var(--text-2);
    font-weight: 600;
    letter-spacing: 0;
  }
  .hdr .lang a:hover {
    color: var(--text);
    background: var(--surface-3);
  }
  .lang__code {
    min-width: 2.2em;
    font-weight: 800;
    letter-spacing: 0.06em;
  }
  .lang__name {
    display: inline;
    flex: 1;
  }
  .lang__on {
    display: inline-flex;
    color: var(--accent-hover);
  }

  /* Recherche : icône nue à gauche de la seconde rangée (le trait s'aligne sur la marge), puis vrai champ. */
  .search {
    grid-area: search;
    justify-self: start;
    width: 44px;
    max-width: none;
    margin: 0 0 0 -10px;
  }
  .search__input {
    height: 44px;
    padding: 0;
    border-color: transparent;
    background: transparent;
    /* 16 px : iOS n'agrandit pas la page au toucher du champ. */
    font-size: 16px;
    color: transparent;
    -webkit-text-fill-color: transparent;
    caret-color: transparent;
    cursor: pointer;
    /* Ouverture immédiate : le sélecteur de rubrique ne doit pas transparaître pendant un fondu. */
    transition: none;
  }
  .search__input::placeholder {
    color: transparent;
    -webkit-text-fill-color: transparent;
  }
  .search__icon {
    left: 50%;
    translate: -50% 0;
    width: 24px;
    height: 24px;
    color: var(--text);
  }
  /* Champ ouvert quand on le touche (ou qu'on l'atteint au clavier) : toute la largeur de la seconde rangée. */
  .search:focus-within .search__input {
    padding: 0 16px 0 46px;
    border-color: var(--accent);
    background: var(--surface-2);
    color: var(--text);
    -webkit-text-fill-color: currentColor;
    caret-color: auto;
    cursor: text;
  }
  .search:focus-within .search__input:focus-visible {
    box-shadow: 0 0 0 3px rgb(71 102 255 / 0.35);
  }
  .search:focus-within .search__input::placeholder {
    color: var(--muted);
    -webkit-text-fill-color: var(--muted);
  }
  .search:focus-within .search__icon {
    left: 15px;
    translate: 0 0;
    width: 20px;
    height: 20px;
    color: var(--muted);
  }
  /* Élément positionné dans une grille : sa référence est sa zone de grille, étendue ici à toute la seconde rangée. */
  .search:focus-within {
    position: absolute;
    grid-area: 2 / 1 / 3 / -1;
    z-index: 61;
    inset: 0;
    width: auto;
    height: 44px;
    margin: 0;
    justify-self: stretch;
    align-self: center;
  }
  .search__list {
    left: 0;
    right: 0;
    width: auto;
  }
  /* Introduction centrée : titre aux retours à la ligne équilibrés, texte court, une action principale. */
  .intro {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    padding: 24px 0 26px;
  }
  .intro__title {
    max-width: 15em;
    font-size: clamp(23px, 6.7vw, 29px);
    line-height: 1.16;
  }
  .intro__side {
    width: 100%;
    justify-items: center;
    gap: 18px;
  }
  .intro__text {
    max-width: 32ch;
    font-size: 15px;
    line-height: 1.55;
    text-wrap: balance;
  }
  /* « Découvrir nos projets » : l'action principale (pleine largeur, couleur de la marque) ;
     « Qui sommes-nous ? » : une action secondaire, discrète, juste dessous. */
  .intro__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    width: 100%;
    max-width: 340px;
  }
  .intro__actions .intro__cta {
    height: 50px;
    border-radius: 12px;
    border-color: transparent;
    background: var(--accent);
    color: #fff;
    font-size: 16px;
  }
  .intro__actions .intro__cta:hover {
    background: var(--accent-strong);
  }
  .intro__actions .intro__more {
    height: 44px;
    border-color: transparent;
    background: none;
    color: var(--text-2);
    font-size: 15px;
    font-weight: 600;
  }
  .intro__actions .intro__more:hover {
    color: var(--text);
    background: var(--surface);
  }
  .projects {
    scroll-margin-top: 16px;
  }
  /* Bandeau compact : visuel 16:9, puis le texte ; il occupe environ la moitié de l'écran et laisse voir le
     catalogue juste après. */
  /* Sélecteur au-dessus du bandeau, comme des onglets : seul le projet choisi est affiché, à sa hauteur
     naturelle (pas de vide sous un texte court), et le sélecteur ne bouge pas quand on change de projet. */
  .hero {
    display: flex;
    flex-direction: column;
  }
  .hero__frame {
    aspect-ratio: auto;
    border-radius: 18px;
  }
  .slide {
    padding: 0;
    justify-content: flex-start;
  }
  .slide:not(.is-active) {
    display: none;
  }
  .slide__art {
    position: relative;
    inset: auto;
    aspect-ratio: 16 / 9;
  }
  .slide__art::after {
    background: linear-gradient(0deg, var(--surface) 0%, rgb(22 25 32 / 0) 45%);
  }
  .slide__body {
    width: auto;
    margin-top: -30px;
    padding: 0 18px 18px;
  }
  .chip {
    padding: 4px 11px 4px 9px;
    font-size: 13px;
  }
  .slide__title {
    --max: clamp(28px, 8.4vw, 36px);
    margin-top: 10px;
  }
  .slide__text {
    font-size: 15px;
    margin-top: 8px;
  }
  .slide__actions {
    margin-top: 16px;
    gap: 10px;
  }
  .btn--play {
    flex: 1;
  }
  .slide__actions .btn {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    padding: 0 16px;
  }
  .slide__actions .copy__value {
    min-width: 0;
  }
  .live--hero {
    flex: 1 0 100%;
    justify-content: center;
  }
  /* Sélecteur : les noms seuls, en boutons faciles à toucher, sur une ligne. */
  .hero__picker {
    order: -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 0 0 10px;
  }
  .pick {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 10px;
    border-radius: 10px;
    border: 1px solid var(--line-2);
    background: var(--surface);
  }
  .pick.is-active {
    border-color: var(--text-2);
    background: var(--surface-3);
  }
  .pick__art {
    display: none;
  }
  .pick__title {
    margin: 0;
    font-size: 13px;
    line-height: 1.2;
    text-align: center;
    /* Un nom long passe sur deux lignes ; il n'est coupé en plein mot qu'en dernier recours. */
    white-space: normal;
    overflow-wrap: break-word;
    min-width: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }
  .pick {
    padding: 4px 4px;
  }
  .shelf {
    margin-top: 44px;
  }
  /* Petit catalogue : le titre « Projets » d'abord, puis les filtres sur le même bord gauche, puis la liste
     (l'ordre du code reste filtres, titre, liste : seul l'affichage change, ordinateur compris inchangé). */
  .projects > .catalog {
    display: flex;
    flex-direction: column;
    margin-top: 44px;
  }
  .catalog > * {
    order: 5;
  }
  .catalog > .block[data-block='available'] {
    display: contents;
  }
  .catalog > .block[hidden] {
    display: none;
  }
  .catalog > .block .shelf__head {
    order: 1;
    margin: 0 0 14px;
  }
  .catalog > .filters {
    order: 2;
    margin: 0 0 26px;
  }
  .catalog > .block .grid {
    order: 3;
  }
  /* Bandeau de consentement plus compact : même texte, mêmes deux choix de même poids, côte à côte. */
  .consent {
    padding-bottom: 10px;
  }
  .consent__in {
    padding: 16px;
    /* Écran bas (téléphone couché) : le texte défile dans le bandeau, qui ne dépasse jamais de l'écran. */
    max-height: calc(100dvh - 20px);
    overflow-y: auto;
  }
  .consent__title {
    font-size: 16px;
  }
  .consent__text {
    margin-top: 6px;
    font-size: 13.5px;
    line-height: 1.5;
  }
  .consent__actions {
    flex-wrap: nowrap;
    gap: 8px;
    margin-top: 12px;
  }
  .consent__btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 0 8px;
  }
  .shelf__head {
    align-items: center;
  }
  .shelf__title {
    font-size: 19px;
  }
  .shelf__desc {
    display: none;
  }
  .round {
    display: none;
  }
  /* Liste verticale sur toute la largeur. */
  .shelf__row,
  .grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .page-head {
    flex-wrap: wrap;
    padding: 20px;
    gap: 14px;
  }
  .page-head__icon {
    width: 48px;
    height: 48px;
    border-radius: 13px;
  }
  .page-head__count {
    align-self: center;
  }
  .foot__in {
    /* minmax(0, …) : une longue adresse e-mail ne peut plus élargir la colonne au-delà de l'écran. */
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Réglage d'accessibilité de l'appareil « réduire les animations » : tout s'arrête. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ------------------------------------------------------------------ */
/* Choix des statistiques (bandeau non bloquant)                       */
/* ------------------------------------------------------------------ */

.consent {
  position: fixed;
  z-index: 60;
  inset: auto 0 0;
  padding: 0 var(--gutter) 16px;
  pointer-events: none;
}
.consent[hidden] {
  display: none;
}
.consent__in {
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 22px;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: var(--surface-2);
  box-shadow: 0 18px 48px rgb(0 0 0 / 0.45);
  pointer-events: auto;
}
.consent__title {
  margin: 0;
  font-size: 17px;
  font-weight: 750;
}
.consent__text {
  margin: 8px 0 0;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.6;
}
.consent__text a,
.legal a {
  color: var(--text);
  text-underline-offset: 3px;
}
.consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
/* Les deux choix ont exactement la même forme, la même taille et la même place. */
.consent__btn {
  flex: 1 1 140px;
  height: 44px;
  padding: 0 20px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--surface-3);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  font-weight: 650;
  cursor: pointer;
}
.consent__btn:hover {
  background: var(--surface);
  border-color: var(--text-2);
}
.consent__btn:focus-visible {
  outline: 2px solid var(--accent-hover);
  outline-offset: 2px;
}
.consent__btn[aria-pressed='true'] {
  border-color: var(--accent-hover);
}
.consent__btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
body.has-consent .foot {
  padding-bottom: 220px;
}

/* ------------------------------------------------------------------ */
/* Pages légales                                                       */
/* ------------------------------------------------------------------ */

/* Colonne de lecture commune aux deux pages (Mentions légales, Confidentialité).
   Elle est posée par les marges latérales de <main>, pas par une largeur maximale : <main> porte déjà la marge de
   page (--page-pad, qui grandit avec l'écran), et une largeur maximale s'y soustrayait (820 px − 2 × 288 px = 244 px
   de texte sur un écran de 1920 px) tout en laissant la colonne collée à gauche. Ici la colonne mesure --read,
   centrée, et se réduit à la largeur de l'écran moins la gouttière sur téléphone. */
.legal {
  --read: 800px;
  --measure: 66ch;
  padding-top: 40px;
  padding-inline: max(var(--gutter), calc((100% - var(--read)) / 2));
  color: var(--text-2);
  font-size: 17px;
  line-height: 1.7;
  text-align: left;
  /* Libellés, adresses et liens longs passent à la ligne au lieu de déborder. */
  overflow-wrap: anywhere;
}
/* Lignes de lecture limitées (≈ 70 caractères) ; le bandeau, les titres, les listes de champs et le choix de
   statistiques occupent toute la colonne. */
.legal p,
.legal li {
  max-width: var(--measure);
}
.legal__title {
  margin: 0 0 24px;
  color: var(--text);
  font-size: clamp(24px, 7.2vw, 48px);
  font-weight: 850;
  font-stretch: 125%;
  line-height: 1.08;
}
.legal h2 {
  margin: 36px 0 10px;
  color: var(--text);
  font-size: 20px;
}
.legal h3 {
  margin: 24px 0 8px;
  color: var(--text);
  font-size: 16px;
}
.legal ul {
  padding-left: 20px;
}
.legal .legal__notice {
  max-width: none;
  margin: 0 0 8px;
  padding: 14px 16px;
  border: 1px solid #e9b949;
  border-radius: var(--r-s);
  background: rgb(233 185 73 / 0.08);
  color: var(--text);
}
.legal__todo {
  color: #e9b949;
}
.legal__dl {
  display: grid;
  grid-template-columns: minmax(110px, 14em) minmax(0, 1fr);
  gap: 6px 20px;
  margin: 0;
}
.legal__dl dt {
  color: var(--muted);
}
.legal__dl dd {
  margin: 0;
}
.legal__choice {
  margin: 16px 0;
  padding: 16px 18px;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: var(--surface);
}
.legal__choice p {
  margin: 0;
  color: var(--text);
}
@media (max-width: 560px) {
  .legal__dl {
    grid-template-columns: minmax(0, 1fr);
  }
  .legal__dl dd {
    margin-bottom: 8px;
  }
}

/* ------------------------------------------------------------------ */
/* Catalogue : filtres, blocs, aide, messages                          */
/* ------------------------------------------------------------------ */

.catalog {
  margin-top: 8px;
}
.block {
  margin-top: 36px;
}
.block:first-child,
.filters + .block,
.filters + p + .block {
  margin-top: 24px;
}
.block .shelf__head {
  margin-bottom: 18px;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.filter {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--text-2);
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 150ms, color 150ms, border-color 150ms;
}
.filter:hover {
  background: var(--surface-2);
  color: var(--text);
}
.filter:active {
  background: var(--surface-3);
}
.filter[aria-current='true'] {
  background: var(--surface-3);
  border-color: var(--text-2);
  color: var(--text);
}
.help {
  margin: 18px 0 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: 14px;
}
.notice-inline {
  margin: 28px 0 0;
  padding: 14px 18px;
  border-radius: var(--r-s);
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--text-2);
}
.toast {
  position: fixed;
  z-index: 70;
  left: 50%;
  bottom: 18px;
  translate: -50% 0;
  width: min(92vw, 520px);
  padding: 12px 16px;
  border-radius: var(--r-s);
  background: #3a1a22;
  border: 1px solid #ff7a95;
  color: #ffe3ea;
  font-size: 14.5px;
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.5);
}
.pick__bar {
  display: none;
}
.pick.is-active .pick__art {
  box-shadow: 0 0 0 2px #fff;
}

/* États interactifs des cartes et commandes tactiles */
.tile__link:active .art--tile {
  transform: translateY(-1px) scale(0.99);
}
.tile__link:focus-visible .tile__name {
  text-decoration: underline;
}
.tile__name {
  overflow-wrap: anywhere;
}
.tile__desc,
.tile__meta {
  overflow-wrap: anywhere;
}
.interest:active,
.copy:not(.btn):active {
  background: var(--surface-3);
}
.interest .interest__count .sr-only {
  /* lu par les lecteurs d'écran seulement */
}
@media (hover: none) {
  /* Écran tactile : pas de pastille permanente, qui masquait le titre de la jaquette. Toute la carte est un lien ;
     son nom, sous le visuel, dit où elle mène. */
  .tile__play {
    display: none;
  }
}
@media (pointer: coarse) {
  .interest,
  .copy:not(.btn),
  .filter,
  .nav__a,
  .lang a {
    min-height: 44px;
  }
  .lang a {
    display: inline-flex;
    align-items: center;
  }
  .pick {
    min-height: 44px;
  }
}
@media (max-width: 400px) {
  .cd__box {
    min-width: 0;
    flex: 1;
  }
  .cd__num {
    font-size: 26px;
  }
}

/* ------------------------------------------------------------------ */
/* Fiche détaillée d'un projet (/fr/projets/…, /en/projects/…)         */
/* ------------------------------------------------------------------ */

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin: 0;
  padding: 22px 0 0;
  list-style: none;
  color: var(--muted);
  font-size: 14px;
}
.crumbs li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.crumbs li + li::before {
  content: '/';
  color: var(--line-2);
}
.crumbs a {
  color: var(--text-2);
  text-decoration: none;
}
.crumbs a:hover {
  color: var(--text);
  text-decoration: underline;
}
.crumbs [aria-current] {
  overflow: hidden;
  max-width: 40ch;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pp {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  grid-template-areas:
    'head head'
    'media side'
    'about side';
  align-items: start;
  gap: 24px 36px;
  padding-top: 18px;
}
.pp-head {
  grid-area: head;
  min-width: 0;
}
.pp-head .chips {
  margin-bottom: 14px;
}
a.chip {
  color: var(--text);
  text-decoration: none;
}
a.chip:hover {
  background: rgb(255 255 255 / 0.16);
}
.chip--new {
  background: var(--accent);
  border-color: transparent;
}
.pp-head__title {
  margin: 0;
  font-size: clamp(30px, 4.4vw, 52px);
  font-weight: 800;
  font-stretch: 112%;
  line-height: 1.05;
  letter-spacing: -0.015em;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.pp-head__text {
  margin: 12px 0 0;
  max-width: 62ch;
  color: var(--text-2);
  font-size: 17px;
  text-wrap: pretty;
}

/* Médias : galerie, ou visuel principal si la fiche n'a aucun média */
.pp-media {
  grid-area: media;
  min-width: 0;
}
/* Sans galerie : le visuel du projet (avec son cadre) est le média principal, présent une seule fois sur la page. */
.pp-media--cover > .art {
  aspect-ratio: 16 / 9;
  border-radius: var(--r);
  box-shadow: 0 0 0 1px var(--line), 0 24px 70px -30px var(--ambient, #000);
}
.pp-media--cover > .frame {
  box-shadow: 0 24px 70px -30px var(--ambient, #000);
}
.pp-media--cover > .frame--minecraft-kamronite,
.pp-media--cover > .frame--circle-exe,
.pp-media--cover > .frame--undercover {
  margin: 12px;
}
.gal__stage {
  position: relative;
  display: grid;
  gap: 14px;
}
.gal__item {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--r);
  background: var(--bg-deep);
  box-shadow: 0 0 0 1px var(--line);
}
.gal__img,
.gal__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--bg-deep);
}
.gal--js .gal__stage {
  display: block;
}
.gal--js .gal__item:not(.is-active) {
  display: none;
}
.gal:not(.gal--js) .gal__thumbs,
.gal:not(.gal--js) .gal__nav {
  display: none;
}
.gal__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  translate: 0 -50%;
  background: rgb(10 12 16 / 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.gal__nav--prev {
  left: 12px;
}
.gal__nav--next {
  right: 12px;
}
.gal__count {
  position: absolute;
  top: 12px;
  right: 12px;
  margin: 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgb(10 12 16 / 0.62);
  font-size: 13px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}
.gal__thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  padding: 4px 2px 6px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.gal__thumb {
  position: relative;
  flex: 0 0 auto;
  width: 132px;
  aspect-ratio: 16 / 9;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--r-s);
  background: var(--surface-2);
  opacity: 0.62;
  cursor: pointer;
  box-shadow: 0 0 0 1px var(--line);
  transition: opacity 150ms, box-shadow 150ms;
}
.gal__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gal__thumb:hover {
  opacity: 0.9;
}
.gal__thumb.is-active {
  opacity: 1;
  box-shadow: 0 0 0 2px var(--accent);
}
.gal__badge {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 26px;
  height: 26px;
  padding: 6px;
  translate: -50% -50%;
  border-radius: 50%;
  background: rgb(10 12 16 / 0.7);
  color: #fff;
}

/* Colonne d'action et informations */
.pp-side {
  grid-area: side;
  display: grid;
  gap: 18px;
  min-width: 0;
  position: sticky;
  top: 88px;
}
.pp-buy,
.pp-info {
  padding: 18px;
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--line);
}
.pp-buy__art {
  aspect-ratio: 16 / 9;
  margin-bottom: 16px;
  border-radius: var(--r-s);
  box-shadow: 0 0 0 1px var(--line);
}
.pp-buy .cd {
  margin: 0 0 16px;
}
.pp-buy .cd__box {
  flex: 1;
  min-width: 0;
}
.pp-buy__release {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  color: #ffd1b3;
  font-weight: 650;
}
.pp-buy__actions,
.pp-buy__extra {
  display: grid;
  gap: 10px;
}
.pp-buy__extra {
  margin-top: 10px;
}
.btn--block {
  display: flex;
  width: 100%;
  min-width: 0;
}
.btn--block > span:not(.sr-only):not(.interest__count),
.pp-buy .copy__value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pp-buy__none {
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 12px 14px;
  border-radius: var(--r-s);
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 14.5px;
}
.pp-buy__none .icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 1px;
}
.pp-buy .help {
  margin-top: 12px;
  font-size: 13px;
}
.pp-info__title,
.pp-about__title {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 750;
  font-stretch: 108%;
}
.pp-info dl {
  display: grid;
  gap: 0;
  margin: 0;
}
.pp-info dl > div {
  display: grid;
  grid-template-columns: minmax(90px, auto) minmax(0, 1fr);
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}
.pp-info dl > div:first-child {
  border-top: 0;
  padding-top: 0;
}
.pp-info dt {
  color: var(--muted);
  font-size: 14px;
}
.pp-info dd {
  margin: 0;
  min-width: 0;
  text-align: right;
  font-size: 14.5px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.pp-info dd a {
  color: var(--text);
}
.pp-info code {
  font-family: ui-monospace, 'SFMono-Regular', Consolas, monospace;
  font-size: 13.5px;
}
.pp-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pp-tags li {
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
}

.pp-about {
  grid-area: about;
  min-width: 0;
  max-width: 78ch;
}
.pp-about__title {
  font-size: 20px;
}
.pp-about__text {
  color: var(--text-2);
  font-size: 16.5px;
  line-height: 1.65;
}
.pp-about__text p {
  margin: 0 0 1em;
  overflow-wrap: anywhere;
}
.pp-related {
  margin-top: 56px;
}

@media (max-width: 960px) {
  /* Une colonne. Avec une galerie : le visuel encadré et les actions d'abord (comme une boutique d'applications),
     puis la galerie. Sans galerie : le visuel encadré, puis les actions. Le cadre du projet reste visible. */
  .pp {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: 'head' 'buy' 'media' 'info' 'about';
  }
  .pp--solo {
    grid-template-areas: 'head' 'media' 'buy' 'info' 'about';
  }
  .pp-side {
    display: contents;
  }
  .pp-buy {
    grid-area: buy;
  }
  .pp-info {
    grid-area: info;
  }
  .pp-buy > .frame,
  .pp-buy > .pp-buy__art {
    max-width: 520px;
    margin-inline: auto;
  }
}
@media (max-width: 560px) {
  .crumbs [aria-current] {
    max-width: 22ch;
  }
  .pp-buy,
  .pp-info {
    padding: 14px;
  }
  .gal__thumb {
    width: 104px;
  }
  .gal__nav {
    display: none;
  }
}

/* ------------------------------------------------------------------ */
/* Accès au projet : adresse à copier en action principale, aide       */
/* ------------------------------------------------------------------ */

.copy--primary .copy__value {
  font-family: ui-monospace, 'SFMono-Regular', Consolas, monospace;
  font-size: 15.5px;
  letter-spacing: 0;
}
.copy__hint {
  margin-left: auto;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.2);
  font-size: 13px;
  font-weight: 700;
}
.btn--play.copy--primary:not(.btn--block) .copy__hint {
  margin-left: 4px;
}
.copy--primary.is-copied .copy__hint {
  visibility: hidden;
}
.pp-buy__help {
  display: flex;
  gap: 8px;
  margin: -2px 0 2px;
  padding: 10px 12px;
  border-radius: var(--r-s);
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.45;
}
.pp-buy__help .icon {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  color: var(--muted);
}

/* Aperçu réservé à l'administration */
.preview-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: 18px 0 4px;
  padding: 12px 16px;
  border: 1px solid #e9b949;
  border-radius: var(--r-s);
  background: rgb(233 185 73 / 0.1);
  font-size: 14.5px;
  font-weight: 600;
}
.preview-bar > .icon {
  width: 18px;
  height: 18px;
  color: #e9b949;
}
.preview-bar .btn {
  margin-left: auto;
}

/* ------------------------------------------------------------------ */
/* L'entreprise : bloc de l'accueil, page « À propos », contact        */
/* ------------------------------------------------------------------ */

.studio {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(220px, 1fr);
  align-items: center;
  gap: 24px 48px;
  margin-top: 72px;
  padding: clamp(22px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background:
    radial-gradient(120% 140% at 0% 0%, rgb(71 102 255 / 0.16), transparent 60%),
    var(--surface);
}
.studio__title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 10px;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 800;
  font-stretch: 112%;
  line-height: 1.1;
}
.studio__mark {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  color: var(--text);
}
.studio__text {
  margin: 0;
  max-width: 60ch;
  color: var(--text-2);
  font-size: 16.5px;
  line-height: 1.6;
}
.studio__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 0;
}
.facts {
  display: grid;
  gap: 0;
  margin: 0;
}
.facts > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}
.facts > div:first-child {
  border-top: 0;
}
.facts dt {
  color: var(--muted);
  font-size: 14.5px;
}
.facts dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
}

.about {
  max-width: 1100px;
  padding-top: 36px;
}
.about__title {
  margin: 0;
  font-size: clamp(32px, 4.6vw, 54px);
  font-weight: 800;
  font-stretch: 112%;
  line-height: 1.05;
  letter-spacing: -0.015em;
}
.about__lead {
  margin: 16px 0 0;
  max-width: 60ch;
  color: var(--text-2);
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
  text-wrap: pretty;
}
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(220px, 1fr);
  align-items: start;
  gap: 24px 56px;
  margin-top: 32px;
}
.about__grid > .facts:only-child {
  grid-column: 2;
}
.about__text {
  color: var(--text-2);
  font-size: 16.5px;
  line-height: 1.7;
}
.about__text p {
  margin: 0 0 1em;
  overflow-wrap: anywhere;
}
.about__grid > .facts {
  padding: 6px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
}
.makes {
  margin-top: 56px;
}
.makes__title,
.contact__title {
  margin: 0 0 18px;
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 800;
  font-stretch: 110%;
}
.makes__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.make {
  display: grid;
  gap: 6px;
  height: 100%;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: border-color 150ms, background-color 150ms;
}
.make:hover {
  border-color: var(--line-2);
  background: var(--surface-2);
}
.make__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--c) 18%, transparent);
  color: var(--c);
}
.make__icon .icon {
  width: 21px;
  height: 21px;
}
.make__name {
  margin-top: 6px;
  font-size: 17px;
  font-weight: 750;
}
.make__desc {
  color: var(--text-2);
  font-size: 14.5px;
}
.make__count {
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
}
.contact {
  margin-top: 56px;
  padding: clamp(22px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background:
    radial-gradient(100% 120% at 100% 0%, rgb(71 102 255 / 0.14), transparent 60%),
    var(--surface);
  scroll-margin-top: 96px;
}
.contact__text {
  margin: 0 0 20px;
  max-width: 60ch;
  color: var(--text-2);
  font-size: 16.5px;
}
.contact__mail {
  margin: 0;
}
.contact__mail .btn {
  max-width: 100%;
}
.contact__mail .btn > span:not(.sr-only) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.contact__sub {
  margin: 24px 0 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}
.contact__socials ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.contact__none {
  margin: 0;
  color: var(--text-2);
}
.contact__legal {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.contact__legal a {
  color: var(--text-2);
}
.foot__more {
  color: var(--text);
  font-weight: 600;
}

@media (max-width: 820px) {
  .studio,
  .about__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .about__grid > .facts:only-child {
    grid-column: auto;
  }
  .studio {
    margin-top: 56px;
  }
}
