/* Vitrine (page d'accueil publique) = page de vente du jeu de société. Couleurs et boutons : matatak-ui.css
   Les animations se jouent seules quand leur section arrive (vitrine.js, « lecteurs », depuis le 23/11) ; elles lisent
   des variables qu'il pose (--p du graphique, --cri du point 3, --x des bandeaux…). Tout est figé si l'appareil demande
   moins d'animations.
   Polices : titres en Jost Heavy capitales (comme le dos de la boîte), boutons en Tribeca (comme tout le site),
   texte en Nunito. */
/* Tribeca se dessine 0,1175 em trop bas (métriques pour 1000 : ascent 1136, descent 135, capitales et chiffres 766).
   Aujourd'hui on corrige au cas par cas avec --mt-tribeca (matatak-ui.css). Correction à la source, NON appliquée
   (Hugo, 20/11 : ne pas tout modifier) : dans cette déclaration, ascent-override: 90.1%; descent-override: 13.5%;
   met le centre des capitales au centre de la ligne, quelle que soit la hauteur de ligne ; il faudrait alors mettre
   --mt-tribeca à 0 et vérifier toutes les pages. */
@font-face { font-family: 'Tribeca'; src: url('fonts/Tribeca.woff2') format('woff2'), url('fonts/Tribeca.woff') format('woff'); font-display: swap; }

* { box-sizing: border-box; }
html { overflow-x: clip; /* (23/11) Safari laissait glisser la page de côté (logo du point 1 agrandi avant son entrée) : le body seul ne suffit pas */ scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; background: var(--mt-nuit); }
body { margin: 0; background: none; /* le fond nuit est sur html : les feuilles fixes (z-index -1) passent devant */ color: var(--mt-encre); font: 400 clamp(16px, 1.25vw, 18px)/1.6 'Nunito', system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: 'Jost', sans-serif; font-weight: 900; text-transform: uppercase; letter-spacing: .005em; line-height: 1.14; /* 1.02 avant : les accents (É) touchaient la ligne du dessus, Hugo 18/11 */ text-wrap: balance; margin: 0; }
.surtitre { display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--c, var(--mt-or)); font: 900 12px/1.3 'Jost', sans-serif; letter-spacing: .24em; text-transform: uppercase; margin-bottom: 16px; text-align: center; }
.surtitre .mt-losange { background: var(--c, var(--mt-or)); }
.surtitre.gauche { justify-content: flex-start; text-align: left; }
.avant { position: relative; z-index: 1; }
.etroit { width: min(820px, 100% - 32px); }
.bloc { padding: clamp(72px, 9vw, 120px) 0; position: relative; }
.titre { text-align: center; font-size: clamp(28px, 3.6vw, 50px); margin-bottom: 16px; }
.sous { text-align: center; color: var(--mt-doux); max-width: 600px; margin: 0 auto 44px; font-size: 1.06em; }

/* ---------- Navigation ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, box-shadow .3s, transform 260ms cubic-bezier(.32, .72, 0, 1); padding-top: env(safe-area-inset-top); }
/* caché quand on descend, de retour dès qu'on remonte (Hugo, 24/11 : test de Joseph Joseph) */
.nav.cache { transform: translateY(-100%); }
/* fond presque opaque, sans flou d'arrière-plan : le flou sur toute la largeur, au-dessus des feuilles fixes, faisait
   tressauter la barre au défilement dans WebKit (vidéo d'Hugo, 17/11) */
.nav.plein { background: rgba(18, 16, 14, .95); box-shadow: 0 1px 0 var(--mt-filet); }
.nav .mt-wrap { display: flex; align-items: center; gap: 30px; height: 64px; }
.nav .logo img { height: 21px; width: auto; }
.nav ul { display: flex; gap: 26px; list-style: none; margin: 0 auto 0 0; padding: 0; font-weight: 700; font-size: 15px; color: var(--mt-doux); }
.nav ul a:hover { color: var(--mt-encre); }
.nav-boutons { display: flex; gap: 12px; }
/* liens sur une ligne ; sur un écran moyen, seulement le logo et les deux boutons */
.nav ul a { white-space: nowrap; }
@media (max-width: 1180px) { .nav ul { display: none; } .nav .logo { margin-right: auto; } }
@media (max-width: 760px) { .nav { display: none; } }

/* ---------- Scènes 3D (vitrine.js) : la boîte, son fond, le plateau plié en 4, les cartes ----------
   Un « monde » (0 × 0, au centre de la scène) que vitrine.js tourne et déplace ; chaque face est un plan centré
   sur l'origine, posé par translate3d / rotate. vitrine.js convertit les millimètres en px. */
.scene3d { position: absolute; inset: 0; overflow: hidden; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.scene3d .repli { position: absolute; left: 50%; top: 32%; width: min(300px, 60vw); translate: -50% -50%; box-shadow: 0 30px 60px -20px #000; }
.scene3d.prete .repli { display: none; }
.monde, .monde .pivot { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; }
.monde .pivot { left: 0; top: 0; }
.monde .plan { position: absolute; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: center / 100% 100% no-repeat; }
.monde .ombre { background: radial-gradient(closest-side, rgba(0, 0, 0, .85), rgba(0, 0, 0, .4) 60%, transparent); backface-visibility: visible; }
.monde .tranche::after, .monde .paroi::after { content: ""; position: absolute; inset: 0; background: rgba(8, 6, 5, var(--sombre, .35)); }
.monde .dedans { background: linear-gradient(#0c0907, #1c1511); }
.monde .fond-dedans { background: radial-gradient(circle, #241b16, #0e0b09); }
.monde .verso-plateau { background-color: #0b0c10; background-size: 200% 200%; }
.monde .dessous { background-color: #0d0a08; }
.monde .carte { border-radius: 6%; background-size: cover; }
.monde .reflet::before { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 38%, rgba(255, 240, 200, .14) 47%, transparent 56%) var(--reflet, 50%) 0 / 300% 100% no-repeat; }

/* ---------- Héros : la boîte au centre, la promesse dessous (vitrine.js pose --S = côté de la boîte) ---------- */
.ouverture .collant { position: relative; height: 100svh; min-height: 600px; overflow: hidden; isolation: isolate; }
/* téléphone (23/11) : 64 px de moins que l'écran (APERCU dans vitrine.js), le titre de la section suivante se voit dessous :
   des visiteurs croyaient la page finie et ne descendaient pas */
@media (max-width: 820px) { .ouverture .collant { height: max(560px, calc(100svh - 64px)); min-height: 0; } }
/* une seule couche de feuilles, fixe ; vitrine.js règle son opacité au défilement (Hugo, 17/11) :
   ordinateur = claires en haut (elles remplacent le fond du héros), assombries ensuite jusqu'à la fin (la boîte ouverte ressort sur le noir, 18/11) ;
   téléphone = cachées pendant la page (le héros a son propre fond), elles reviennent sur la boîte de fin.
   Même image que le héros sur téléphone : rien de plus à charger */
/* vignettage, comme au début : sur ordinateur il remplace celui du héros ; sur téléphone il n'est que sur la fin */
.feuilles-cote::after { content: ""; position: absolute; inset: 0; opacity: var(--v, 0);
  background: radial-gradient(ellipse 50% 50% at 50% 42%, rgba(18, 16, 14, .9) 0 40%, rgba(18, 16, 14, .45) 75%, rgba(18, 16, 14, .1)); }
/* téléphone : aussi le bas assombri, comme le voile du héros (Hugo, 17/11) */
@media (max-width: 820px) {
  /* téléphone : les feuilles ne reviennent qu'en bas, la boîte ouverte et le plateau restent dans le noir (Hugo, 18/11) */
  .feuilles-cote { -webkit-mask-image: linear-gradient(transparent 0 48%, #000 78%); mask-image: linear-gradient(transparent 0 48%, #000 78%); }
  .feuilles-cote::after { background: radial-gradient(ellipse 50% 50% at 50% 42%, rgba(18, 16, 14, .9) 0 40%, rgba(18, 16, 14, .45) 75%, rgba(18, 16, 14, .1)), linear-gradient(transparent 70%, var(--mt-nuit)); }
}
/* hauteur du plus grand écran (lvh) : quand la barre du navigateur se replie, la couche ne change pas de taille et
   les feuilles du bas ne sautent plus (Hugo, 17/11) */
.feuilles-cote { position: fixed; left: 0; right: 0; top: 0; height: 100vh; height: 100lvh; z-index: -1; pointer-events: none; opacity: 0;
  background: url('images/background/feuilles-1400.webp') center / cover no-repeat; }
@media (min-width: 821px) {
  .feuilles-cote { opacity: 1; background-image: url('images/background/feuilles-2000.webp'); }
  /* le vignettage du héros est sur la couche fixe : il s'efface sur place au défilement au lieu de remonter
     avec la page (Hugo, 17/11) ; vitrine.js règle --v */
  .ouverture .fond, .ouverture .voile { display: none; }
}
.ouverture .fond { position: absolute; inset: -6%; z-index: -3; background: url('images/background/feuilles-1400.webp') center / cover no-repeat; will-change: transform; opacity: .6; } /* assombries : la boîte ressort mieux (Hugo, 18/11) */
/* les feuilles du jeu en ligne (Hugo, 16/11), en grand sur les grands écrans */
@media (min-width: 900px) { .ouverture .fond { background-image: url('images/background/feuilles-2000.webp'); } }
.ouverture .voile { position: absolute; inset: 0; z-index: -2; background: radial-gradient(ellipse 50% 50% at 50% 42%, rgba(18, 16, 14, .9) 0 40%, rgba(18, 16, 14, .45) 75%, rgba(18, 16, 14, .1)), linear-gradient(transparent 70%, var(--mt-nuit)); }
.promesse { position: absolute; z-index: 3; left: 0; right: 0; top: calc(96px + var(--S, 300px) * 1.3); padding: 0 16px; text-align: center; }
/* « Le plaisir des échecs, enfin accessible » sur une seule ligne (deux sur téléphone) */
.promesse h1 { font-size: min(58px, 4.4vw, (100vw - 32px) / 13.8); margin: 0 0 16px; white-space: nowrap; text-shadow: 0 4px 30px rgba(0, 0, 0, .6); }
.promesse h1 .mot { display: block; opacity: 0; transform: translateY(18px); animation: monte .9s cubic-bezier(.2, .8, .2, 1) forwards; }
.promesse h1 .mot.or { color: var(--mt-or); animation-delay: .25s; }
@keyframes monte { to { opacity: 1; transform: none; } }
/* même style que la phrase sœur de la fin, « Pour rassembler ceux qui adorent les échecs… » (.rassembler ; Hugo, 24/11) */
.accroche { font: 700 clamp(17px, 1.5vw, 21px)/1.4 'Nunito', sans-serif; color: var(--mt-doux); margin: 0 0 12px; text-wrap: balance; }
.infos { display: flex; justify-content: center; gap: 8px 18px; color: var(--mt-doux); font-weight: 700; font-size: 14px; margin-bottom: 26px; flex-wrap: wrap; }
.infos span { display: inline-flex; gap: 8px; align-items: center; }
/* Pictos du dos de la boîte (losange seul) avec leur texte complet
   ordinateur : picto à gauche de son texte, à la couleur de sa Saison ;
   téléphone (choix D d'Hugo, 16/11) : picto au-dessus, texte neutre, sous-titre discret sur une ligne */
.infos.pictos { gap: 40px; flex-wrap: nowrap; margin-bottom: 26px; }
.infos.pictos span { gap: 12px; font-size: 16px; line-height: 1.2; }
.infos.pictos img { width: 48px; height: 48px; }
.infos.pictos .hiver { color: var(--mt-hiver); }
.infos.pictos .automne { color: var(--mt-automne); }
.infos.pictos .printemps { color: var(--mt-printemps); }
.promesse .accroche { margin: 6px 0 20px; }
@media (max-width: 820px) {
  .promesse .accroche { margin: 10px 0 20px; }
  .infos.pictos { gap: 0; margin-bottom: 22px; }
  .infos.pictos span { flex-direction: column; gap: 8px; width: 104px; font-size: 13px; font-weight: 600; }
  .infos.pictos span[class] { color: var(--mt-doux); }
  .infos.pictos img { width: 40px; height: 40px; }
}
.promesse .actions { display: flex; gap: 14px; justify-content: center; flex-direction: column; align-items: center; }
/* une seule action principale (loi de Hick) : essayer en ligne devient un lien discret sous le bouton doré */
.promesse .essayer { display: inline-flex; align-items: center; gap: 6px; padding: 6px 4px; font: 600 15px/1.2 'Nunito', system-ui, sans-serif;
  color: var(--mt-doux); text-decoration: underline; text-decoration-color: rgba(234, 196, 90, .4); text-underline-offset: 4px; }
.promesse .essayer { align-self: center; justify-content: center; }
.promesse .essayer:hover { color: var(--mt-jaune); }
.promesse .essayer svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 820px) {
  .promesse { top: calc(30px + 22px + var(--S, 240px) * 1.28); } /* + 22 px : la boîte plus bas (Hugo, 24/11 ; vitrine.js repos) */
  .infos { margin-bottom: 18px; }
  .promesse .actions { flex-direction: column; align-items: stretch; width: min(340px, 100%); margin: auto; gap: 10px; }
}
@media (max-width: 820px) and (max-height: 720px) { .infos { display: none; } }

/* Lucioles : quelques points dorés qui flottent dans le noir (héros, final) */
.lucioles { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.lucioles i { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: var(--mt-jaune); box-shadow: 0 0 10px 3px rgba(246, 201, 69, .55); opacity: 0; animation: luciole 9s ease-in-out infinite; }
.lucioles i:nth-child(1) { left: 12%; top: 30%; animation-delay: 0s; }
.lucioles i:nth-child(2) { left: 84%; top: 22%; animation-delay: 1.4s; animation-duration: 11s; }
.lucioles i:nth-child(3) { left: 22%; top: 72%; animation-delay: 3s; }
.lucioles i:nth-child(4) { left: 70%; top: 78%; animation-delay: 4.2s; animation-duration: 12s; }
.lucioles i:nth-child(5) { left: 92%; top: 55%; animation-delay: 2.2s; }
.lucioles i:nth-child(6) { left: 6%; top: 52%; animation-delay: 5.5s; animation-duration: 10s; }
.lucioles i:nth-child(7) { left: 48%; top: 12%; animation-delay: 6.5s; }
.lucioles i:nth-child(8) { left: 58%; top: 90%; animation-delay: 7.4s; animation-duration: 13s; }
@keyframes luciole { 0% { opacity: 0; transform: translate(0, 0); } 20% { opacity: .9; } 50% { opacity: .3; transform: translate(18px, -26px); } 75% { opacity: .8; } 100% { opacity: 0; transform: translate(-10px, -50px); } }

/* ---------- Les freins (section collante) ----------
   Échiquier classique (pièces Cburnett) : une ouverture se joue, une flèche par coup possible ; les 3 freins arrivent
   et sont barrés ; puis le plateau de MATATAK arrive de la droite et pousse l'échiquier, qui part en tournoyant ;
   le logo remplace le titre. Tout est piloté par vitrine.js. */
/* (23/11) plus collante : l'animation se joue seule quand la section est à l'écran (vitrine.js, lecteur) */
.freins { position: relative; }
.freins .collant { position: relative; padding: 14px 0 clamp(40px, 8svh, 90px); display: grid; align-items: center; overflow: hidden; background: radial-gradient(ellipse 60% 55% at 50% 50%, #1b1410, transparent 70%); }
.freins .collant > .mt-wrap { position: relative; z-index: 1; }
@media (min-width: 821px) { .freins .collant { padding-top: 110px; } } /* sous la barre du haut */
.titres { --m: 0; --t: 0; position: relative; display: grid; place-items: center; margin-bottom: 18px; }
.titres > * { grid-area: 1 / 1; }
.freins .titre { margin: 0; opacity: calc(1 - var(--t)); transform: translateY(calc(var(--t) * -16px)); }
.logo-mt { --m: 0; width: min(300px, 62vw); height: auto; opacity: var(--m); transform: scale(calc(.85 + var(--m) * .15)); filter: drop-shadow(0 6px 24px rgba(234, 196, 90, .25)); }
/* logo en tête du point 1 (23/11) ; vitrine.js pose --m quand le point 1 se joue */
.logo-point1 { display: grid; justify-items: center; margin-bottom: clamp(18px, 3vw, 36px); }
.plateaux { position: relative; aspect-ratio: 1; transform: perspective(1400px) rotateX(16deg); pointer-events: none; }
.echiquier, .plateau-mt { position: absolute; inset: 0; width: 100%; height: 100%; }
.echiquier { will-change: transform; }
/* échiquier en nuances de gris (Hugo, 18/11 : un vrai noir et blanc), assombri pour la page sombre */
/* assourdi (choix B d'Hugo, 16/11) : l'échiquier reste un vrai échiquier, mais le texte passe devant */
/* couleurs déjà assourdies (saturate(0) brightness(.62) calculés d'avance, outils/vitrine_freins.py assourdi()) et
   ombre en box-shadow : un filtre CSS sur ce dessin, dont les flèches changent à chaque image, était recalculé à
   chaque image (jusqu'à plusieurs secondes par image dans WebKit, 17/11) */
.echiquier { overflow: visible; border-radius: 1.6%; box-shadow: 0 30px 40px rgba(0, 0, 0, .7); }
.echiquier .cadre { fill: #222; stroke: #333; stroke-width: 4; }
.echiquier .c { fill: #8a8a8a; }
.echiquier .f { fill: #5a5a5a; }
.echiquier .coord { font: 800 28px/1 'Nunito', sans-serif; fill: #7a7a7a; text-anchor: middle; }
.echiquier .coups { opacity: 0; }
/* flèches d'analyse en gris, épaisses mais discrètes : elles chargent l'échiquier sans attirer l'œil */
.echiquier .coups line { stroke: #252322; stroke-width: 15; stroke-linecap: round; opacity: .7; }
.echiquier marker path { fill: #252322; }
.plateau-mt { border-radius: 8px; overflow: hidden; box-shadow: 0 40px 80px -30px #000; transform: translateX(100vw); }
/* la caméra : --s = zoom (1 → 9 sur la carte de MOJO, puis 2,6), --f centre peu à peu MOJO (e2) ;
   --o efface les autres cartes, --av fait avancer MOJO de e1 à e2, --p fait briller ses symboles, --t fait pousser les flèches */
.plateau-mt .vue { position: absolute; left: 0; top: 0; width: 900%; height: 900%;
  background: url('images/board/matatak8x8.png') center / cover; transform-origin: 0 0;
  /* la vue fait 9 fois le plateau et se réduit (zoom / 9 ≤ 1) : au plus près, la carte est dessinée à sa vraie
     taille, nette, au lieu d'être agrandie après coup (flou sur le site) ; vitrine.js pose le transform à chaque image,
     ceci est la vue de départ (tout le plateau) */
  transform: scale(.11111); }
/* ombre des cartes à flou court : la vue fait 9 fois le plateau, un flou de 108 px y coûtait très cher à chaque image
   (WebKit, 17/11) ; réduite par la vue, elle reste à peu près la même à l'écran */
.plateau-mt img { position: absolute; width: 10.7%; border-radius: 6%; box-shadow: 0 36px 40px -24px rgba(0, 0, 0, .85); }
.plateau-mt img.vedette { z-index: 1; }
/* chaque symbole de la carte de MOJO pulse quand sa flèche en sort (une seule pulsation au défilement) : une copie du
   symbole, découpée dans la carte (16 % de la carte = 1,71 % du plateau), plus vive, grossit devant un halo doré
   (vitrine.js : opacity et transform seulement ; avant, un filtre dont l'ombre lumineuse changeait à chaque image) */
.plateau-mt .lueur { position: absolute; z-index: 3; width: 1.71%; aspect-ratio: 1; translate: -50% -50%; pointer-events: none;
  background-image: var(--carte-mojo); background-size: 625%; background-repeat: no-repeat;
  -webkit-mask-image: radial-gradient(circle, #000 38%, transparent 62%); mask-image: radial-gradient(circle, #000 38%, transparent 62%);
  filter: saturate(2.4) brightness(1.15); opacity: 0; }
.plateau-mt .halo { position: absolute; z-index: 2; width: 2.7%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 252, 235, .95), rgba(255, 240, 190, .45) 42%, rgba(246, 201, 69, 0) 70%); opacity: 0; }
/* puis une flèche fine aux couleurs du Printemps sort de chaque symbole jusqu'à sa case (--t) */
.plateau-mt .fleches-mt { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; z-index: 2; pointer-events: none; }
/* vitrine.js : opacité, longueur du trait et place de la pointe ; l'ombre est une copie sombre dessous (.ombres) */
.plateau-mt .fleches-mt g { opacity: 0; }
.plateau-mt .fleches-mt .ombres { opacity: 1; }
.plateau-mt .fleches-mt line { stroke: var(--mt-printemps); stroke-width: 8; stroke-linecap: round;
  stroke-dasharray: calc(var(--l) * 1px) 1000px; stroke-dashoffset: calc(var(--l) * 1px); }
.plateau-mt .fleches-mt .tete { fill: var(--mt-printemps); }
.plateau-mt .fleches-mt .ombres line { stroke: rgba(0, 0, 0, .4); stroke-width: 11; }
.plateau-mt .fleches-mt .ombres .tete { fill: rgba(0, 0, 0, .4); }
.freins-texte { position: relative; min-height: 7.5em; }
/* (23/11) le plateau de MATATAK ne pousse plus l'échiquier : celui des freins reste caché (vitrine.js en fait une
   copie pour le point 1) ; après les 3 freins, une phrase mène aux 4 points (--f posé par vitrine.js) */
.freins .plateau-mt { display: none; }
/* dans la police des titres (Jost Heavy capitales, Hugo 23/11), en or, plus petite */
.transition-freins { margin: clamp(22px, 3.4vw, 36px) auto 0; max-width: 22ch; text-align: center; text-wrap: balance;
  font: 900 clamp(20px, 2.2vw, 30px)/1.2 'Jost', sans-serif; text-transform: uppercase; letter-spacing: .02em; color: var(--mt-or); }
.scene-freins { position: relative; width: min(540px, 88vw, 50svh); margin: 0 auto 22px; }
.scene-freins .plateaux { margin: 0; width: 100%; }
/* point 1 (23/11 : sa propre section) : une copie du plateau de MATATAK des freins (vitrine.js), déjà en place */
.scene-point1 { position: relative; width: min(500px, 88vw, 50svh); margin: 0 auto; }
.scene-point1 .plateau-mt { transform: none; }
.liste-freins { list-style: none; padding: 0; margin: 0 auto; display: grid; gap: 12px; width: fit-content; max-width: 100%; }
.liste-freins li { position: relative; padding-left: 22px; line-height: 1.3; font-size: clamp(17px, 1.6vw, 21px); font-weight: 800; color: var(--mt-encre); }
/* (23/11) les freins et la phrase se dévoilent un à un dès qu'ils arrivent (vitrine.js, enVague), sans attendre l'échiquier */
.liste-freins li::before { content: ""; position: absolute; left: 0; top: calc(.65em - 5px); width: 10px; height: 10px; background: var(--mt-or); transform: rotate(45deg); }
/* la barre suit le texte, ligne par ligne (un frein sur 2 lignes est barré sur ses 2 lignes) */
.liste-freins li span { background: linear-gradient(var(--mt-or), var(--mt-or)) 0 58% / calc(var(--s) * 100%) 3px no-repeat; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* ---------- Courbe d'apprentissage : MATATAK passe vite au-dessus du sentiment de bien jouer ---------- */
.graphe { position: relative; margin: 0; width: 100%; }
/* une animation finie se rejoue quand on la touche (vitrine.js) */
.rejouable { cursor: pointer; }
.graphe svg { width: 100%; overflow: visible; font-family: 'Jost', sans-serif; }
.graphe .axe { fill: none; stroke: var(--mt-filet); stroke-width: 3; }
.graphe .seuil { stroke: var(--mt-doux); stroke-width: 2; stroke-dasharray: 2 10; stroke-linecap: round; opacity: .7; }
.graphe .legende-seuil { fill: var(--mt-doux); font-size: 17px; font-weight: 700; text-anchor: middle; font-family: 'Nunito', sans-serif; }
.graphe .echecs, .graphe .matatak { fill: none; stroke-linecap: round; stroke-dasharray: 1px 2px; stroke-dashoffset: calc((1 - var(--p)) * 1px); }
.graphe .echecs { stroke: #8a8178; stroke-width: 5; }
.graphe .matatak { stroke: var(--mt-or); stroke-width: 8; filter: drop-shadow(0 0 12px rgba(234, 196, 90, .5)); stroke-dashoffset: calc((1 - min(1, var(--p) * 1.25)) * 1px); }
.graphe .nom-echecs, .graphe .nom-matatak { font-weight: 900; font-size: 22px; text-anchor: end; letter-spacing: .08em; }
.graphe .nom-matatak { opacity: clamp(0, calc(var(--p) * 6 - 4.6), 1); }
.graphe .nom-echecs { opacity: clamp(0, calc(var(--p) * 8 - 7), 1); }
.graphe .nom-echecs { fill: #8a8178; }
.graphe .nom-matatak { fill: var(--mt-or); }
.graphe .genie, .graphe .repere { opacity: clamp(0, calc((var(--p) - var(--a)) * 14), 1); }
.graphe .repere-echecs { fill: #8a8178; }
.graphe .genie rect { fill: var(--mt-jaune); }
.graphe .genie text { fill: var(--mt-jaune); font-size: 17px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.graphe .axe-nom { fill: var(--mt-discret); font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; text-anchor: end; }
@media (max-width: 600px) { .graphe .legende-seuil, .graphe .genie text { font-size: 22px; } .graphe .nom-echecs, .graphe .nom-matatak { font-size: 28px; } .graphe .axe-nom { font-size: 20px; } }

/* ---------- Ils y ont joué (Gartin591, Julien Song) ---------- */
.temoins { text-align: center; }
.temoins-grille { display: flex; justify-content: center; gap: clamp(20px, 4vw, 50px); flex-wrap: wrap; }
.temoins figure { margin: 0; width: min(440px, 90vw); }
.temoins .video { position: relative; }
.temoins video { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 22px; box-shadow: 0 40px 60px -30px #000; background: #000; }
.temoins .titre { margin-bottom: clamp(28px, 4vw, 48px); }
.temoins .sous-titre { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); margin: 0; max-width: calc(100% - 120px);
  padding: 4px 12px; border-radius: 8px; background: rgba(18, 16, 14, .78); color: #fff; font: 700 clamp(15px, 1.6vw, 18px)/1.3 'Nunito', sans-serif;
  text-align: center; pointer-events: none; transition: opacity .2s; }
.temoins .sous-titre:empty { opacity: 0; }
.temoins .son { position: absolute; right: 12px; bottom: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; padding: 10px;
  background: rgba(18, 16, 14, .72); color: var(--mt-or); cursor: pointer; transition: transform .2s, background .2s; }
@media (hover: hover) and (pointer: fine) { .temoins .son:hover { transform: scale(1.08); background: rgba(18, 16, 14, .9); } }
.temoins .son svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.temoins .son svg path:first-child { fill: currentColor; }
.temoins .son .ondes { display: none; }
.temoins .son[aria-pressed="true"] .ondes { display: inline; }
.temoins .son[aria-pressed="true"] .barre { display: none; }
.temoins .legende { display: grid; gap: 2px; text-align: center; }
.temoins q { font: 900 clamp(20px, 2.2vw, 28px)/1.15 'Jost', sans-serif; text-transform: uppercase; color: var(--mt-or); margin-bottom: 8px; }
.temoins .legende b { font: 900 clamp(18px, 1.7vw, 22px)/1.2 'Jost', sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--mt-or); }
.temoins .legende { gap: 6px; }
/* extensions (Hugo, 18/11 : en parler sur la vitrine, le détail sur la page de précommande) ; mots du livret, page 12 */
.point-texte .extensions { margin-top: 10px; font-size: min(.92em, 3.7vw); color: var(--mt-doux); white-space: nowrap; }
/* même étiquette blanche que « Dans la boîte » : les extensions n'y sont pas */
/* phrase coupée à la virgule (Hugo, 18/11) */
.temoins .evenement span { white-space: nowrap; }
@media (max-width: 600px) { .temoins .evenement span { display: block; } }

/* flèche « descendre » en bas du héros : elle rebondit doucement, s'efface au défilement (vitrine.js) */
.descendre { position: absolute; z-index: 4; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); translate: -50% 0; width: 44px; height: 44px; display: grid; place-items: center;
  color: var(--mt-or); opacity: .85; transition: opacity .4s; animation: rebond 2.2s ease-in-out infinite; }
.descendre svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.descendre.partie { opacity: 0; pointer-events: none; }
@keyframes rebond { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .descendre { animation: none; } }
/* la même flèche quand une animation se termine (Hugo, 24/11) : fixée en bas, sur un rond sombre pour se lire sur tout,
   au-dessus de la barre « Précommander » quand elle est là ; vitrine.js (montrerSuite) */
.suite-bas { position: fixed; z-index: 59; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); translate: -50% 0; width: 46px; height: 46px;
  display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; cursor: pointer; color: var(--mt-or);
  background: rgba(18, 16, 14, .78); box-shadow: 0 0 0 1px rgba(234, 196, 90, .35), 0 8px 20px -6px rgba(0, 0, 0, .7);
  opacity: 0; pointer-events: none; transition: opacity .35s, bottom .24s cubic-bezier(.32, .72, 0, 1); }
.suite-bas svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.suite-bas.visible { opacity: 1; pointer-events: auto; animation: rebond 2.2s ease-in-out infinite; }
.collante.visible + .suite-bas { bottom: calc(80px + env(safe-area-inset-bottom)); }
@media (prefers-reduced-motion: reduce) { .suite-bas.visible { animation: none; } }
/* ordinateur : pas de place sous le lien « essayer », et l'en-tête montre déjà la suite */
@media (min-width: 821px) { .descendre { display: none; } }
/* titre et audience côte à côte, une icône chacun ; ils passent l'un sous l'autre si la place manque */
.temoins .faits { margin: 2px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; }
.temoins .faits span { display: inline-flex; align-items: center; gap: 7px; font: 800 clamp(14px, 1.2vw, 16px)/1.3 'Nunito', sans-serif; color: var(--mt-encre); }
.temoins .faits svg { flex: none; width: 17px; height: 17px; fill: none; stroke: var(--mt-or); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.temoins .evenement { margin: 0; font-size: 13.5px; font-style: italic; color: var(--mt-discret); }

/* ---------- Le jeu en 4 points : un point = une illustration animée + le texte du dos de la boîte ---------- */
.points { padding: clamp(60px, 8vw, 110px) 0 clamp(40px, 6vw, 80px); }
.point { padding: clamp(30px, 5vw, 70px) 0; }
.point-grille { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.point.inverse .point-visuel { order: 2; }
.point-visuel { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; align-items: center; width: 100%; }
.point-texte .num { display: grid; place-items: center; width: 40px; height: 40px; margin: 0 0 22px 6px; transform: rotate(45deg); border: 2px solid var(--c); }
.point-texte .num b { transform: rotate(-45deg); font: 900 18px 'Jost', sans-serif; color: var(--c); }
.point-texte h3 { font-size: clamp(28px, 3.6vw, 50px); color: var(--c); margin-bottom: 14px; }
.point-texte p { margin: 0; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.45; max-width: 480px; }
.point-texte.centre { text-align: center; margin-bottom: 40px; }
.point-texte.centre .num { margin: 0 auto 22px; }
.point-texte.centre p { margin: auto; }
@media (max-width: 820px) {
  .point-grille { grid-template-columns: 1fr; gap: 26px; }
  .point.inverse .point-visuel { order: 0; }
  .point-texte { text-align: center; }
  .point-texte .num { margin: 0 auto 16px; }
  .point-texte p { margin: auto; }
}
/* Point 3 : la partie à 4, vue de dessus comme les échecs (plateau dans son sens : pas de quart de tour) */
.partie4-cadre { position: relative; } /* (23/11) le cri est sur le plateau, au-dessus de KRAK : plus de place réservée en haut */
.partie4 { width: min(540px, 100%, 54svh); container-type: inline-size; } /* cqw : taille du cri */
.partie4::before { transform: none; }
/* « MATATAK ! » au-dessus du plateau, hors de sa perspective (il n'est pas déformé), droit et sans contour */
/* « MATATAK ! » au-dessus de KRAK, qui met l'échec (vitrine.js pose left / top sur sa case ; Hugo, 23/11) */
/* (Hugo, 24/11 : les bulles « font amateur ») plus de bulle : le cri seul, centré entre KRAK et SHANS, juste sous la
   flèche (jamais dessus : règle du livret) ; lettres en dégradé d'or comme le titre de la boîte, ombre douce pour se lire
   sur les cartes ; il arrive en fondu, un peu plus grand et flou, et se pose (--cri, vitrine.js) */
.partie4 .cri { position: absolute; z-index: 4; white-space: nowrap; pointer-events: none;
  font: 900 4.9cqw/1 'Jost', sans-serif; letter-spacing: .06em; /* ≈ 30 % du plateau : tient dans les 3 cases libres sous la flèche */
  color: var(--mt-or); background: linear-gradient(180deg, #fbe7a1 0%, var(--mt-jaune) 38%, var(--mt-or) 62%, #c98a2c 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .55)) drop-shadow(0 6px 16px rgba(0, 0, 0, .6)) blur(calc((1 - var(--cri, 0)) * 5px));
  opacity: var(--cri, 0); transform: translate(-50%, -50%) scale(calc(1.14 - .14 * var(--cri, 0))); }
/* SHANS en échec : le liseré rouge qui pulse et la secousse du site (chessground.css), seule exception à « pas de rouge » */
.partie4 img.echec { animation: echec4-secousse .42s cubic-bezier(.36, .07, .19, .97), echec4-pulse .8s ease-in-out .42s infinite alternate;
  box-shadow: 0 0 0 2.5px #ff4b3e, 0 0 10px 3px rgba(255, 60, 50, .85); }
/* bulle de bande dessinée : c'est KRAK qui le dit (Hugo, 23/11) ; la queue pointe sur sa carte */
/* la flèche de l'échec, de KRAK vers SHANS (vitrine.js la trace) */
.partie4 .fleche-echec { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; overflow: visible; pointer-events: none; }
.partie4 .fleche-echec line { stroke: var(--mt-or); stroke-width: 9; stroke-linecap: round; }
.partie4 .fleche-echec path { fill: var(--mt-or); }
@keyframes echec4-pulse { from { box-shadow: 0 0 0 2.5px rgba(255, 75, 62, .55), 0 0 10px 3px rgba(255, 60, 50, .45); } to { box-shadow: 0 0 0 2.5px #ff4b3e, 0 0 10px 3px rgba(255, 60, 50, .85); } }
@keyframes echec4-secousse { 0%, 100% { translate: 0 0; rotate: 0deg; } 20% { translate: -4% 0; rotate: -4deg; } 40% { translate: 4% 0; rotate: 4deg; } 60% { translate: -3% 0; rotate: -2deg; } 80% { translate: 2% 0; rotate: 1deg; } }
.temoins .legende { margin-top: 14px; } /* (23/11) sous sa vidéo */
.point-cartes .cartes-bloc { overflow-x: clip; gap: 0; grid-template-columns: 100%; } /* sinon la colonne prend la largeur des bandeaux et le texte part hors de l'écran */
.point-cartes .cartes-bloc > * { min-width: 0; }
.point-cartes .rangee img { width: max(clamp(80px, min(11vw, 13svh), 170px), 9vw); }
/* Point 4 : les Personnages défilent */
/* coupé sur les côtés seulement : en haut, le bout de la rangée inclinée (−4°) dépassait et était coupé sur tablette et
   ordinateur (Hugo, 23/11) ; la place de l'inclinaison (≈ 4,2vw) est ajoutée au-dessus */
.point-cartes { overflow-x: clip; padding-top: calc(clamp(30px, 5vw, 70px) + 4.5vw); }

/* ---------- Cartes recto verso ---------- */
.carte-rv { --f: 0; position: relative; aspect-ratio: 1; transform-style: preserve-3d; transform: rotateY(calc(var(--f) * 180deg)); }
.carte-rv > img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 6%; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.carte-rv .verso { transform: rotateY(180deg); }

.rangees { display: grid; gap: clamp(10px, 1.4vw, 18px); transform: rotate(-4deg); margin: 0 -10vw; }
/* centrée sur l'écran (la boîte .rangees fait 120vw, son milieu est à 60vw), glisse de ±10vw au défilement ; plus de
   rangée répétée (Hugo, 18/11 : pas de doublon), elle doit donc rester plus large que l'écran : 14 ou 15 cartes de 9vw au moins */
.rangee { display: flex; gap: clamp(10px, 1.4vw, 18px); width: max-content; transform: translateX(var(--x, 0px)); } /* (23/11) défile en continu, vitrine.js */
.rangee:nth-child(2) { margin-left: -6vw; }
.rangee img { width: clamp(110px, 13vw, 190px); border-radius: 6%; box-shadow: 0 16px 30px -14px #000; }
.point-cartes .rangees + .mt-wrap { margin-top: clamp(28px, 4vw, 48px); }
/* téléphone : 2 bandeaux de 3 rangées plus courtes, au-dessus et au-dessous du texte (Hugo, 18/11) ; ordinateur : 1 bandeau */
.rangees-tel { display: none; }
@media (max-width: 600px) {
  .rangees-grand { display: none; }
  .rangees-tel { display: grid; }
  /* cartes à la taille que permet la hauteur de l'écran (6 rangées + le texte au-dessus de la barre du bas) */
  .point-cartes .rangees-tel .rangee img { width: clamp(52px, calc((100svh - 300px) / 6.6), 74px); }
  .point-cartes .rangees-tel, .point-cartes .rangees-tel .rangee { gap: 8px; }
  .point-cartes .rangees-tel { transform: rotate(-3deg); }
  .point-cartes .cartes-bloc { padding-bottom: calc(64px + env(safe-area-inset-bottom)); box-sizing: border-box; }
  .point-cartes .mt-wrap + .rangees-bas { margin-top: -18px; } /* la rotation laisse déjà du vide au-dessus */
  .point-cartes .rangees + .mt-wrap { margin-top: 22px; }
}

/* ---------- Échecs (section collante) : les 32 cartes se posent, puis les premiers coups d'une partie ---------- */
.echecs { position: relative; } /* (23/11) plus collante : jouée une fois (vitrine.js) */
.echecs .collant { position: relative; padding: clamp(56px, 9svh, 110px) 0; display: grid; align-content: center; gap: 4px; overflow: hidden; background: radial-gradient(ellipse 70% 50% at 50% 60%, #1b1610, transparent 70%); }
.echecs .sous { margin-bottom: 24px; }
.echiquier-mt { position: relative; width: min(560px, 92vw, 56svh); aspect-ratio: 1; margin: 0 auto; transform: perspective(1400px) rotateX(24deg); }
/* aux échecs, le plateau de MATATAK se tourne d'un quart de tour (case claire en bas à droite) */
.echiquier-mt::before { content: ""; position: absolute; inset: 0; background: url('images/board/matatak8x8.png') center / cover; transform: rotate(90deg); border-radius: 6px; box-shadow: 0 40px 80px -30px #000; }
.echiquier-mt img { position: absolute; left: .75%; top: .75%; width: 11%; border-radius: 6%; box-shadow: 0 6px 12px -6px #000; } /* en a8, vitrine.js les déplace par transform */

/* ---------- En ligne : trois téléphones qui montent l'un après l'autre ---------- */
/* jeu en ligne (section collante, 3 sujets) : le téléphone montre le vrai site ; --a fait défiler l'Aventure,
   --g fait glisser d'un écran à l'autre (0, 1, 2), --k1 --k2 font bouger Défier et l'Arène ; le sujet actif est en or */
.en-ligne { position: relative; } /* (23/11) plus collante : les 36 captures se jouent une fois (vitrine.js) */
.en-ligne .collant { position: relative; padding: clamp(56px, 9svh, 110px) 0; display: grid; align-items: center; overflow: clip;
  background: radial-gradient(ellipse 60% 50% at 50% 55%, #1d1712, transparent 70%); }
.en-ligne-grille { display: grid; grid-template-columns: auto minmax(0, 440px); justify-content: center; align-items: center; gap: clamp(28px, 6vw, 90px); }
.telephone { padding: 8px; border-radius: 40px; background: #1d1814;
  box-shadow: inset 0 0 0 1.5px #3a3029, 0 50px 80px -30px #000; }
/* l'écran a exactement le format des captures (540 × 1169), plein écran : pendant une partie il n'y a pas d'onglets */
.ecran-tel { position: relative; width: min(280px, 35svh); aspect-ratio: 540 / 1169; border-radius: 32px; overflow: hidden; background: #12100e; }
.partie-mini video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; } /* (23/11) la partie filmée */
.en-ligne-texte { text-align: left; }
.en-ligne-texte .titre { text-align: left; margin-bottom: 10px; }
.en-ligne-texte .sous { margin: 0 0 16px; text-align: left; }
/* Puces de toute la page (Hugo, 18/11 : un seul style) : losange de 10 px doré, 12 px avant le texte, gras 17-21 px.
   Mêmes réglages dans .liste-freins et .liste-fab ; barre des freins dans le même or */
.sujets { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; }
.sujets li { display: flex; gap: 12px; align-items: center; font: 800 clamp(17px, 1.6vw, 21px)/1.3 'Nunito', sans-serif;
  color: var(--mt-encre); transition: color .3s, transform .3s; }
.sujets li::before { content: ""; flex: none; width: 10px; height: 10px; rotate: 45deg; background: var(--mt-or); }
@media (max-width: 820px) {
  .en-ligne .collant { padding-bottom: 64px; box-sizing: border-box; } /* la barre Précommander · Jouer du bas */
  .en-ligne-grille { grid-template-columns: 1fr; justify-items: center; gap: 18px; }
  .telephone { padding: 6px; border-radius: 30px; }
  .ecran-tel { width: min(206px, 23svh, 52vw); border-radius: 24px; }
  .en-ligne-texte, .en-ligne-texte .titre, .en-ligne-texte .sous { text-align: center; }
  .sujets { justify-content: center; gap: 8px; margin-bottom: 18px; }
}

/* ---------- Confiance ---------- */
#questions { padding-top: 40px; }
.confiance { display: grid; grid-template-columns: 1fr 1.25fr; gap: 60px; align-items: start; }
/* Équipe en deux étapes (18/11) : titre centré, puis les trois ensemble, puis la genèse */
.equipe-bloc .confiance { grid-template-columns: 100%; gap: clamp(24px, 4vw, 48px); justify-items: center; }
.equipe-bloc .confiance h2 { text-align: center; margin: 0; }
.equipe-etapes { width: 100%; max-width: 980px; display: grid; gap: clamp(64px, 9vw, 110px); } /* (23/11) les 4 parties l'une sous l'autre */
.equipe-trois { display: grid; justify-items: center; gap: clamp(22px, 3vw, 36px); align-content: center; }
.equipe-bloc .etape-sous { align-self: center; justify-self: center; display: grid; justify-items: center; text-align: center; width: 100%; }
/* sous-titre d'étape : même police que les titres (Jost Heavy), en or, plus petit (Hugo, 18/11 : « dans le style des autres ») */
.equipe-bloc .etape-sous h3 { margin: 0 0 clamp(22px, 3vw, 36px); font-size: clamp(22px, 2.4vw, 32px); color: var(--mt-or); }
/* partenaires : deux colonnes, un logo blanc et sa phrase */
.equipe-bloc .soutien-logos { display: grid; grid-template-columns: repeat(2, minmax(0, 300px)); justify-content: center; gap: clamp(28px, 6vw, 80px); }
.equipe-bloc .soutien figure { margin: 0; display: grid; justify-items: center; align-content: start; gap: 16px; }
.equipe-bloc .soutien img { height: clamp(96px, 10vw, 130px); width: auto; }
.equipe-bloc .soutien figure + figure img { height: clamp(70px, 7.4vw, 96px); margin-block: clamp(13px, 1.3vw, 17px); }
.equipe-bloc .soutien figcaption { font-size: clamp(15px, 1.25vw, 17px); line-height: 1.45; color: var(--mt-doux); }
@media (max-width: 600px) { .equipe-bloc .soutien-logos { grid-template-columns: 1fr; gap: 30px; } }
/* mis en avant (Hugo, 23/11) : police des titres, en or, comme la phrase des freins ; sans « Un jeu » (déjà dans le titre) */
.equipe-trois .intro { margin: 0; text-align: center; font: 900 clamp(20px, 2.2vw, 30px)/1.2 'Jost', sans-serif; text-transform: uppercase; letter-spacing: .02em; color: var(--mt-or); }
.equipe-bloc .genese { max-width: 760px; justify-self: center; align-self: center; }
.portraits { display: flex; justify-content: center; gap: clamp(20px, 6vw, 80px); }
.portrait { margin: 0; display: grid; justify-items: center; gap: 14px; }
.portrait .photo { width: clamp(88px, 14vw, 190px); height: auto; aspect-ratio: 1; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--mt-or), 0 24px 40px -18px #000; }
.portrait .sans-photo { display: grid; place-items: center; background: var(--mt-surface-2); }
.portrait .sans-photo svg { width: 42%; height: 42%; fill: none; stroke: var(--mt-or); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.portrait figcaption { display: grid; justify-items: center; text-align: center; gap: 2px; }
.portrait figcaption span { display: inline-flex; align-items: center; gap: 6px; }
.portrait figcaption svg { width: 16px; height: 16px; margin: 0; fill: none; stroke: var(--mt-or); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.portrait figcaption b { font: 900 15px/1.2 'Jost', sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--mt-or); }
.portrait figcaption span { color: var(--mt-doux); font-size: 14px; }
@media (max-width: 760px) {
  /* téléphone : en triangle, Hugo en haut, Samuel et Olivier dessous, pour des photos plus grandes (Hugo, 18/11) */
  .portraits { flex-wrap: wrap; gap: 14px 36px; }
  .portraits .portrait:first-child { flex-basis: 100%; }
  .portrait .photo { width: min(124px, 32vw); }
  .portrait figcaption b { font-size: 12.5px; letter-spacing: .1em; }
  .portrait figcaption span { font-size: 13px; }
  .equipe-bloc .genese { font-size: 15px; }
}
}
.confiance h2 { margin-bottom: 16px; }
.confiance .intro { color: var(--mt-doux); margin: 0; }
.equipe { list-style: none; padding: 0; display: grid; gap: 16px; margin: 28px 0 0; }
.equipe li { display: grid; grid-template-columns: 30px auto; column-gap: 12px; align-items: center; }
.equipe svg { grid-row: span 2; width: 24px; height: 24px; fill: none; stroke: var(--mt-or); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.equipe b { font: 900 15px/1.2 'Jost', sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--mt-or); }
.equipe span { color: var(--mt-doux); font-size: 14px; }
details { border-bottom: 1px solid var(--mt-filet); }
details:first-of-type { border-top: 1px solid var(--mt-filet); }
summary { list-style: none; cursor: pointer; padding: 20px 0; min-height: 48px; display: flex; justify-content: space-between; gap: 16px; font-weight: 800; font-size: 1.04em; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; width: 10px; height: 10px; flex: none; margin-top: 6px; border: solid var(--mt-or); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .3s; }
details[open]:not(.ferme) summary::after { transform: rotate(-135deg); } /* .ferme : pendant la fermeture animée (vitrine.js) */
details p { margin: -6px 0 20px; color: var(--mt-doux); }
.genese { margin: 0; padding: 4px 0 0 28px; border-left: 3px solid var(--mt-or); font-size: clamp(16px, 1.3vw, 18px); line-height: 1.6; }
.genese p { margin: 0 0 14px; font-style: italic; }
.genese p i { font-style: normal; }
/* le texte s'écrit mot à mot quand il arrive (lecteur texte de vitrine.js : opacité de chaque mot .mot-g) */
.genese footer { margin-top: 10px; display: flex; align-items: center; gap: 12px; font: 900 14px 'Jost', sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--mt-or); }
/* petite photo ronde à côté de la signature (Hugo, 18/11) ; sans photo : le gouvernail */
.genese .photo-mini { flex: none; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1.5px var(--mt-or); }
.genese .photo-mini.sans-photo { display: grid; place-items: center; background: var(--mt-surface-2); }
.genese .photo-mini svg { width: 55%; height: 55%; fill: none; stroke: var(--mt-or); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
/* Fabrication : les 3 points arrivent un à un, puis le label (enVague, vitrine.js) */
.liste-fab { list-style: none; padding: 0; margin: 8px auto 0; display: grid; gap: 14px; width: fit-content; max-width: 100%; text-align: left; }
.liste-fab li { position: relative; padding-left: 22px; line-height: 1.3; font-size: clamp(17px, 1.6vw, 21px); font-weight: 800; }
.liste-fab small { display: block; font-size: 15px; font-weight: 600; color: var(--mt-doux); margin-top: 4px; }
.liste-fab li::before { content: ""; position: absolute; left: 0; top: calc(.65em - 5px); width: 10px; height: 10px; background: var(--mt-or); transform: rotate(45deg); }
.fabrication .label { margin-top: clamp(24px, 4vh, 44px); }
.fabrication .label img { display: block; margin: 0 auto 14px; width: clamp(220px, 24vw, 320px); height: auto; }
.fabrication .label p { color: var(--mt-doux); font-size: 14px; margin: 0 auto; max-width: 30em; }
.fabrication .label a { color: var(--mt-or); }
@media (max-width: 860px) { .confiance { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- La boîte : tout rentre, puis la phrase du bas du dos et l'achat ---------- */
.fermeture { position: relative; } /* (23/11) un écran : la boîte s'ouvre seule quand on arrive (vitrine.js) */
/* vue d'ensemble (vitrine.js, classe .vue) : sur ordinateur l'offre passe à droite de la boîte ouverte, alignée à gauche */
@media (min-width: 821px) {
  .fermeture.vue .offre { left: auto; right: max(4vw, calc(50% - 680px)); margin: 0; width: min(560px, 40vw); top: 50%; translate: 0 -50%; text-align: left; }
  .fermeture.vue .offre .suivre { justify-content: flex-start; }
  .fermeture.vue .question span { white-space: normal; }
}
/* téléphone : l'offre sous la vue d'ensemble */
@media (max-width: 820px) {
  .fermeture.vue .offre { top: auto; bottom: calc(20px + env(safe-area-inset-bottom)); }
  /* le contenu de la boîte reste, en plus serré (Hugo, 18/11 : « c'est important ») */
  .fermeture .offre .contenu { font-size: 12.5px; line-height: 1.45; }
  .fermeture .suivre { margin-bottom: 16px; }
}
.fermeture .collant { position: relative; height: 100svh; overflow: hidden; background: radial-gradient(ellipse 60% 50% at 50% 40%, #1b1610, transparent 70%); }
/* l'offre sous la boîte, au centre (ordinateur comme téléphone), à la place de la promesse du héros */
.offre { position: absolute; z-index: 3; left: 0; right: 0; margin: 0 auto; width: min(900px, 100% - 40px); top: calc(96px + var(--S, 200px) * 1.3); /* 900 : la question en 50 px tient sur ses 2 lignes */ text-align: center; opacity: 0; pointer-events: none; will-change: opacity, transform; }
.offre .suivre { justify-content: center; }
/* écran d'ordinateur bas (1366 × 768) : la boîte est la même qu'au début, le texte se resserre pour tenir dessous */
@media (min-width: 821px) and (max-height: 860px) {
  .offre .question { margin-bottom: 8px; }
  .offre .rassembler { margin-bottom: 14px; }
  .offre .suivre { margin-bottom: 12px; }
}
.offre.visible { pointer-events: auto; }
.statut { display: inline-flex; gap: 9px; align-items: center; font: 800 13px 'Nunito', sans-serif; color: var(--mt-ete); margin-bottom: 14px; }
/* point vert qui pulse : un anneau (::after) qui grandit et s'efface, en transform et opacity seulement (revue des
   animations, 19/11 : l'ancien box-shadow animé faisait redessiner la page en continu) */
.statut .pastille { position: relative; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--mt-ete); }
.statut .pastille::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: rgba(155, 199, 129, .5);
  animation: pulse 2s cubic-bezier(0.23, 1, 0.32, 1) infinite; }
@keyframes pulse { from { transform: scale(1); opacity: 1; } to { transform: scale(3.5); opacity: 0; } }
.rassembler { font: 700 clamp(17px, 1.5vw, 21px)/1.4 'Nunito', sans-serif; color: var(--mt-doux); margin: 0 0 26px; text-wrap: balance; }
/* « Pour rassembler ceux qui adorent les échecs » sur une ligne, « et ceux… » sur la suivante (Hugo, 17/11) */
.rassembler span { display: block; }
@media (min-width: 400px) { .rassembler span { white-space: nowrap; } }
/* la question en titre, sur 2 lignes équilibrées (sur 3 lignes, elle se lisait mal : Hugo 16/11) */
@media (min-width: 821px) { .question span { display: block; white-space: nowrap; } }
.question { font-size: clamp(28px, 3.6vw, 50px); line-height: 1.14; color: var(--mt-or); margin: 0 0 14px; text-wrap: balance; text-shadow: 0 0 40px rgba(234, 196, 90, .35); }
.suivre { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.suivre .mt-btn { font-size: 17px; padding-inline: 46px; min-height: 58px; }
.offre .contenu { margin: 0 0 4px; color: var(--mt-discret); font-size: 13.5px; line-height: 1.5; }
.offre .contenu b { color: var(--mt-doux); font: 900 11px 'Jost', sans-serif; letter-spacing: .16em; text-transform: uppercase; margin-right: 6px; }
@media (max-width: 820px) {
  .offre { left: 0; right: 0; width: auto; top: calc(78px + var(--S, 200px) * 1.28); translate: none; padding: 0 20px; text-align: center; }
  .statut { display: flex; justify-content: center; }
  .question { font-size: clamp(28px, 3.6vw, 50px); margin-bottom: 12px; } /* même taille que les autres titres (Hugo, 18/11) */
  .rassembler { margin-bottom: 18px; }
  .suivre { justify-content: center; }
  .suivre .mt-btn { flex: 1; max-width: 340px; }
}

body > footer { border-top: 1px solid var(--mt-filet); padding: 34px 0 calc(34px + env(safe-area-inset-bottom)); font-size: 14px; color: var(--mt-discret); }
body > footer .mt-wrap { display: flex; justify-content: space-between; gap: 18px 30px; flex-wrap: wrap; align-items: center; }
body > footer nav { display: flex; gap: 8px 22px; flex-wrap: wrap; }
body > footer a { padding: 6px 0; }
body > footer a:hover { color: var(--mt-or); }

/* ---------- Barre de progression (vitrine.js) : une case par section, en haut de l'écran ---------- */
/* 3 px : sous les 10 px qui feraient prendre sa couleur à la barre de Safari iPhone (matatak-ui.css, .mt-barre-safari) */
.progression { position: fixed; z-index: 70; left: 0; right: 0; top: env(safe-area-inset-top); display: flex; gap: 3px; height: 3px;
  padding: 0 3px; pointer-events: none; opacity: 0; transition: opacity .4s; }
.progression.visible { opacity: 1; }
.progression i { flex: 1; position: relative; overflow: hidden; border-radius: 2px; background: rgba(244, 236, 220, .14); }
.progression b { position: absolute; inset: 0; background: var(--mt-or); transform: scaleX(0); transform-origin: left; }

/* ---------- Barre collante (téléphone) ---------- */
.collante { display: none; }
/* flou d'arrière-plan gardé, sauf sur iPhone : là, recalculé à chaque image sur la page qui bouge dessous, il faisait
   saccader tout le défilement (vidéo du frère d'Hugo, 19/11). Firefox Android (Hugo, 19/11, même onglet) : flou +
   sans le décodage d'avance des captures = fluide ; sans flou + avec ce décodage = rame. Le décodage est retiré
   (vitrine.js) ; le flou reste, faute d'avoir essayé sans flou ET sans décodage */
@media (max-width: 600px) {
  .collante { display: flex; position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(18, 16, 14, .9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 -1px 0 var(--mt-filet); transform: translateY(110%); transition: transform 240ms cubic-bezier(0.32, 0.72, 0, 1); } /* courbe de tiroir, plus vive que l'ancienne (.35s, courbe par défaut) */
  .collante.visible { transform: none; }
  @supports (-webkit-touch-callout: none) { .collante { background: rgba(18, 16, 14, .96); -webkit-backdrop-filter: none; backdrop-filter: none; } }
  .collante { gap: 10px; }
  .collante .mt-btn-or { flex: 1; }
  body > footer { padding-bottom: 100px; }
}
@media (max-width: 420px) { .mt-btn:not(.mt-btn-petit) { padding: 0 22px; font-size: 15.5px; } }

/* (pas de halo : clip-path coupe drop-shadow et box-shadow)
   ---------- Boutons de la vitrine (Hugo, 18/11 : « mieux ») : même bandeau que les cartes, mais en relief :
   or dégradé comme le liseré des cartes, filet clair en haut, un reflet passe de temps en temps sur les
   boutons principaux (pas sur les petits de la barre du haut), le bouton se soulève au survol ---------- */
.mt-btn-or { background: linear-gradient(180deg, #f8dc85 0%, var(--mt-or) 48%, #d6a53a 100%);
  transition: transform .2s cubic-bezier(.2, .9, .3, 1.3), filter .25s, background .2s, color .2s; }
.mt-btn-or::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .45), transparent 2px), linear-gradient(0deg, rgba(90, 55, 0, .25), transparent 3px); }
.mt-btn-or:not(.mt-btn-petit)::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 250, 225, .75) 50%, transparent 62%);
  transform: translateX(-110%); animation: reflet-btn 5.5s ease-in-out 1.2s infinite; }
@keyframes reflet-btn { 0%, 72% { transform: translateX(-110%); } 92%, 100% { transform: translateX(110%); } }
/* survol seulement à la souris : au doigt, le navigateur garde le « survol » après le toucher et le bouton restait
   soulevé (revue des animations, 19/11) */
@media (hover: hover) and (pointer: fine) {
  .mt-btn-or:hover { background: linear-gradient(180deg, #fbe39a 0%, var(--mt-jaune) 48%, #e0ae3c 100%);
    transform: translateY(-2px); }
  .mt-btn-ligne:hover { transform: translateY(-2px); }
}
.mt-btn-or:active { transform: translateY(0) scale(.97); }
@media (prefers-reduced-motion: reduce) { .mt-btn-or::after { display: none; } }

/* Moins d'animations : tout est montré dans son état final */
@media (prefers-reduced-motion: reduce) {
  /* plus doux plutôt que rien (revue des animations, 19/11) : plus aucun déplacement, mais les changements d'opacité et
     de couleur restent en fondu court */
  *, *::before, *::after { animation: none !important; transition-property: opacity, color, background-color !important;
    transition-duration: .2s !important; transition-timing-function: ease !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .promesse h1 .mot { opacity: 1; transform: none; }
  .lucioles { display: none; }
  .logo-mt { --m: 1 !important; }
  .offre { opacity: 1; pointer-events: auto; }
}
/* Point 4 : une carte touchée fait un tour sur elle-même, face claire au dos (carte-tour de matatak-ui.css, comme
   dans la Collection) ; vitrine.js enveloppe la carte et ajoute sa face claire au premier toucher */
.rangee img { cursor: pointer; }
.rangee .tour { position: relative; flex: none; transform-style: preserve-3d; perspective: 900px; }
.rangee .tour img { display: block; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.rangee .tour .dos { position: absolute; inset: 0; transform: rotateY(180deg); }
.rangee .tour .pivote { display: block; position: relative; transform-style: preserve-3d; }
.rangee .tour .pivote.en-tour { animation: carte-tour 1.5s cubic-bezier(.3, 1.3, .5, 1); }
@media (prefers-reduced-motion: reduce) { .rangee .tour .pivote.en-tour { animation: none; } }
/* Cale de la boîte et tranches des piles de cartes (scène 3D de fin de page) */
/* Les grilles ne s'élargissent pas pour leur contenu */
.point-grille > * { min-width: 0; }
.point-visuel > * { max-width: 100%; }
@media (max-width: 820px) { .promesse h1 { font-size: min(40px, (100vw - 32px) / 13.8); } }
