/* ==========================================================================
   Top Clario — couche « Signature V4 » (Amelia V4, 2026-11-24)
   Chargée en DERNIER sur toutes les pages. Palette marine / or / champagne,
   menu marine avec l'emblème officiel du bison en haut à gauche, recherche
   ivoire, cartes illustrées, catégories en images, bannières panoramiques.
   Aucune police téléchargée : titres en serif du système (Palatino / Georgia),
   texte en police du système. Décors : assets/img/v4/deco (SVG maison).
   ========================================================================== */
:root {
  --v4-marine: #081C33;
  --v4-marine-2: #0B2443;
  --v4-royal: #14396A;
  --v4-or: #CBA052;
  --v4-or-vif: #F3D58D;
  --v4-or-texte: #7A5A12;            /* or foncé pour petit texte sur fond clair (AA) */
  --v4-champagne: #F2E5D1;
  --v4-ivoire: #FFF8ED;
  --v4-texte: #0C1C34;
  --v4-texte-2: #3B4A60;
  --v4-sur-marine: #FFF8ED;
  --v4-sur-marine-2: #E6D9C2;
  --v4-degrade-or: linear-gradient(135deg, #FFF1C4 0%, #F3D58D 32%, #D9B266 66%, #B8913F 100%);
  --v4-degrade-marine: linear-gradient(180deg, #14396A 0%, #0B2443 55%, #081C33 100%);
  --v4-serif: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --v4-sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --v4-ombre: 0 1px 2px rgba(8, 28, 51, .08), 0 14px 30px -18px rgba(8, 28, 51, .55);
  --v4-ombre-forte: 0 2px 4px rgba(8, 28, 51, .1), 0 22px 40px -20px rgba(8, 28, 51, .65);
  --v4-filet: rgba(203, 160, 82, .7);
  --v4-menu: 248px;
  --v4-menu-replie: 96px;
  --v4-marge: 32px;
  --v4-gap: 16px;
  --v4-rayon: 12px;
  --gouttiere: var(--v4-marge);

  /* Anciens noms (site.css, studio.css, arcade.css, accueil.css) rebranchés sur la V4 */
  --papier: var(--v4-champagne);
  --papier-2: var(--v4-ivoire);
  --papier-3: #E8D8BE;
  --carte: var(--v4-ivoire);
  --encre: var(--v4-texte);
  --encre-2: var(--v4-texte-2);
  --encre-3: var(--v4-texte-2);
  --ligne: rgba(203, 160, 82, .45);
  --ligne-forte: var(--v4-or);
  --or: var(--v4-or);
  --or-texte: var(--v4-or-texte);
  --btn: var(--v4-marine);
  --btn-texte: var(--v4-ivoire);
  --voile: rgba(8, 28, 51, .58);
  --ombre: var(--v4-ombre);
  --f-titre: var(--v4-serif);
  --f-texte: var(--v4-sans);
  --f-mono: var(--v4-sans);
  --r: 12px;
  --r-l: 16px;
}
@media (max-width: 1023.98px) { :root { --v4-marge: 16px; } }

body {
  color: var(--v4-texte); font-family: var(--v4-sans);
  background-color: var(--v4-champagne);
  background-image: radial-gradient(ellipse 70% 45% at 55% 0%, rgba(255, 248, 237, .85), rgba(255, 248, 237, 0) 70%),
    url("../img/v4/deco/texture-papier.svg");
  background-repeat: no-repeat, repeat;
}
h1, h2, h3, h4 { font-family: var(--v4-serif); letter-spacing: 0; font-weight: 700; }
:focus-visible { outline: 3px solid var(--v4-royal); outline-offset: 3px; }
.tc-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Icônes dorées (dégradé partagé #tc-or / #tc-or-fonce, défini une fois dans l'en-tête) */
.icone-or { display: inline-grid; place-items: center; flex: none; line-height: 0; }
.icone-or svg { width: 20px; height: 20px; stroke: url(#tc-or) #CBA052; }

/* Rubans de coin (décor seulement, sous le contenu) */
#entete-site { position: relative; }
#entete-site::before {
  content: ""; position: absolute; top: 0; right: 0; z-index: 0; pointer-events: none;
  width: clamp(180px, 25vw, 420px); aspect-ratio: 420 / 120;
  background: url("../img/v4/deco/ruban-haut.svg") no-repeat right top / contain;
}
main.sig { position: relative; }
main.sig::after {
  content: ""; position: absolute; right: 0; bottom: 0; z-index: 0; pointer-events: none;
  width: clamp(160px, 22vw, 360px); aspect-ratio: 360 / 64;
  background: url("../img/v4/deco/ruban-bas.svg") no-repeat right bottom / contain;
}
main.sig > * { position: relative; z-index: 1; }

/* ---------- Mise en page : place du menu (CSS seul, donc aucun saut à l'ouverture) ---------- */
@media (min-width: 1024px) {
  body { padding-left: var(--v4-menu); }
  html.barre-repliee body { padding-left: var(--v4-menu-replie); }
}
#entete:empty { display: block; min-height: 75px; }
@media (max-width: 1023.98px) { #entete:empty { min-height: 154px; } }

/* ---------- Menu latéral marine ---------- */
.barre {
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 60;
  width: var(--v4-menu);
  display: flex; flex-direction: column; gap: 10px;
  padding: 14px 14px 16px;
  color: var(--v4-sur-marine);
  background-color: var(--v4-marine);
  background-image: url("../img/v4/deco/ruban-menu.svg"), url("../img/v4/deco/texture-marine.svg"),
    linear-gradient(180deg, #0D2A4D 0%, #081C33 55%, #061527 100%);
  background-repeat: no-repeat, repeat, no-repeat;
  background-position: left bottom, 0 0, 0 0;
  background-size: 100% auto, 240px 240px, 100% 100%;
  border-right: 1px solid rgba(203, 160, 82, .55);
  box-shadow: 8px 0 26px -14px rgba(8, 28, 51, .7);
}
.barre nav { flex: 1; min-height: 0; overflow-y: auto; margin-inline: -4px; padding-inline: 4px; scrollbar-width: thin; }

/* Bloc marque : bison officiel + nom, lien vers l'accueil (12–16 px du haut et de la gauche) */
.barre-haut { display: flex; align-items: center; gap: 8px; min-height: 76px; }
.barre-marque { display: inline-flex; align-items: center; gap: 10px; min-width: 0; color: var(--v4-sur-marine); text-decoration: none; border-radius: 14px; }
.barre-marque .marque-bison, .marque-bison { display: block; flex: none; aspect-ratio: 1 / 1; height: auto; object-fit: contain; }
.barre .barre-marque .marque-bison { width: 76px; height: 76px; }
.barre-marque span {
  font-family: var(--v4-serif); font-weight: 700; font-size: 1.32rem; line-height: 1.05; letter-spacing: .02em; white-space: nowrap;
  color: var(--v4-or-vif); text-shadow: 0 1px 0 rgba(0, 0, 0, .35);
}
.barre-marque:hover span { color: #FFF1C4; }

/* Bouton « replier » : rond marine posé sur le bord du menu, près du haut (comme la maquette) */
.barre-replier {
  position: absolute; top: 16px; left: calc(100% - 20px); z-index: 2;
  width: 40px; height: 40px; display: grid; place-items: center; padding: 0;
  background: var(--v4-marine); color: var(--v4-or-vif);
  border: 1px solid var(--v4-or); border-radius: 50%; cursor: pointer;
  box-shadow: 0 4px 12px -4px rgba(8, 28, 51, .7);
}
.barre-replier svg { width: 20px; height: 20px; transition: transform .2s ease; }
.barre-replier:hover { background: var(--v4-royal); }
html.barre-repliee .barre-replier { left: calc(100% - 14px); }
html.barre-repliee .barre-replier svg { transform: rotate(180deg); }

/* Liens du menu */
.barre nav ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 6px; }
.barre nav li:last-child { margin-top: 8px; padding-top: 14px; border-top: 1px solid rgba(203, 160, 82, .45); }
.barre nav a {
  display: flex; align-items: center; gap: 14px; min-height: 50px; padding: 10px 14px;
  border-radius: 12px; border: 1px solid transparent;
  color: var(--v4-sur-marine); text-decoration: none;
  font-family: var(--v4-serif); font-size: 1.14rem; font-weight: 600;
}
.barre nav a svg { width: 24px; height: 24px; flex: none; stroke: url(#tc-or) #CBA052; }
.barre nav a:hover { background: rgba(255, 248, 237, .07); border-color: rgba(203, 160, 82, .45); }
.barre nav a[aria-current="page"] {
  background: var(--v4-degrade-or); color: var(--v4-marine); font-weight: 700;
  border-color: #F3D58D; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 8px 18px -10px rgba(0, 0, 0, .7);
}
.barre nav a[aria-current="page"] svg { stroke: var(--v4-marine); }
.barre nav a:focus-visible { outline-color: var(--v4-or-vif); outline-offset: 2px; }

.barre-bas { margin-top: auto; display: flex; gap: 8px; justify-content: flex-start; }
.barre-bas button, .barre-fermer {
  min-width: 44px; min-height: 44px; display: inline-grid; place-items: center;
  background: rgba(8, 28, 51, .55); color: var(--v4-or-vif);
  border: 1px solid rgba(203, 160, 82, .6); border-radius: 12px; cursor: pointer;
}
.barre-bas button svg, .barre-fermer svg { width: 18px; height: 18px; }
.barre-bas button:hover, .barre-fermer:hover { background: var(--v4-royal); }
.barre-fermer { display: none; }

/* Menu replié (ordinateur) : bison seul, centré, puis les icônes */
@media (min-width: 1024px) {
  html.barre-repliee .barre { width: var(--v4-menu-replie); padding-inline: 12px; }
  html.barre-repliee .barre-haut { justify-content: center; }
  html.barre-repliee .barre .barre-marque .marque-bison { width: 64px; height: 64px; }
  html.barre-repliee .barre-marque span, html.barre-repliee .barre nav a span {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
  html.barre-repliee .barre nav a { justify-content: center; padding-inline: 0; }
  html.barre-repliee .barre-bas { justify-content: center; }
  .tete-mobile, .barre-voile { display: none !important; }
}

/* Téléphone et tablette : barre du haut (bison en haut à gauche) + tiroir */
.tete-mobile {
  position: relative; z-index: 3;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 80px; padding: 8px var(--v4-marge);
  color: var(--v4-sur-marine);
  background-color: var(--v4-marine);
  background-image: url("../img/v4/deco/texture-marine.svg"), linear-gradient(180deg, #0D2A4D, #081C33);
  border-bottom: 1px solid rgba(203, 160, 82, .6);
}
.tete-mobile .barre-marque .marque-bison { width: 64px; height: 64px; }
.tete-mobile .barre-marque span { font-size: 1.2rem; }
.tete-mobile .bouton-menu {
  /* width/height/margin : annule l'ancien bouton carré de site.css */
  display: inline-flex; align-items: center; gap: 8px; width: auto; height: auto; margin: 0; min-height: 44px; padding: 0 14px;
  background: rgba(255, 248, 237, .06); color: var(--v4-or-vif); border: 1px solid rgba(203, 160, 82, .7); border-radius: 12px;
  cursor: pointer; font-weight: 700; font-family: var(--v4-sans);
}
.tete-mobile .bouton-menu svg { width: 20px; height: 20px; }
@media (max-width: 1023.98px) {
  .barre { transform: translateX(-100%); visibility: hidden; transition: transform .22s ease, visibility 0s linear .22s; width: min(300px, 86vw); }
  .barre.ouverte { transform: none; visibility: visible; transition: transform .22s ease; }
  .barre nav { overflow-y: auto; }
  .barre-fermer { display: inline-grid; margin-left: auto; }
  .barre-replier { display: none !important; }
  .barre-voile { position: fixed; inset: 0; z-index: 55; background: var(--voile); }
  .barre-voile[hidden] { display: none; }
}
@media (max-width: 359.98px) { .tete-mobile .barre-marque span { font-size: 1.05rem; } .tete-mobile .bouton-menu span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }
@media (prefers-reduced-motion: reduce) { .barre, .barre.ouverte, .barre-replier svg { transition: none; } }

/* ---------- Barre de recherche du haut (ivoire, loupe à gauche, bouton doré à droite) ---------- */
.tete-recherche { position: relative; z-index: 4; padding: 13px var(--v4-marge); background: transparent; border: 0; }
.recherche-site {
  position: relative; display: flex; align-items: center;
  max-width: 917px; min-height: 49px; margin-left: min(57px, 4vw); margin-right: auto;
  background: var(--v4-ivoire); border: 1px solid rgba(8, 28, 51, .55); border-radius: 999px;
  box-shadow: 0 6px 16px -12px rgba(8, 28, 51, .55), inset 0 1px 0 #fff;
}
.recherche-site:focus-within { box-shadow: 0 0 0 3px rgba(20, 57, 106, .3), 0 6px 16px -12px rgba(8, 28, 51, .55); border-color: var(--v4-royal); }
.recherche-loupe { display: grid; place-items: center; width: 52px; flex: none; color: var(--v4-marine); }
.recherche-loupe svg { width: 22px; height: 22px; }
.recherche-site input {
  flex: 1; min-width: 0; min-height: 47px; padding: 0 12px 0 0; border: 0; background: transparent;
  font: inherit; font-size: 1.02rem; color: var(--v4-texte);
}
.recherche-site input:focus { outline: none; }
.recherche-site input::placeholder { color: #5A6880; }
.recherche-site button[type="submit"] {
  flex: none; align-self: stretch; width: 84px; margin: -1px -1px -1px 0; display: grid; place-items: center;
  border: 1px solid #B8913F; border-radius: 0 999px 999px 0; cursor: pointer;
  background: var(--v4-degrade-or); color: var(--v4-marine);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55);
}
.recherche-site button[type="submit"] svg { width: 22px; height: 22px; }
.recherche-site button[type="submit"]:hover { filter: brightness(1.05); }
.recherche-site button[type="submit"]:focus-visible { outline: 3px solid var(--v4-royal); outline-offset: -5px; }
.recherche-resultats {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 50;
  background: var(--v4-ivoire); border: 1px solid var(--v4-or); border-radius: 14px; box-shadow: var(--v4-ombre-forte);
  padding: 8px; max-height: min(60vh, 420px); overflow-y: auto;
}
.recherche-resultats[hidden] { display: none; }
.recherche-resultats a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--v4-texte); }
.recherche-resultats a:hover, .recherche-resultats a:focus-visible { background: #F3E6CF; }
.recherche-resultats small { color: var(--v4-or-texte); font-weight: 600; white-space: nowrap; }
.recherche-resultats p { padding: 10px 12px; color: var(--v4-texte-2); }
@media (max-width: 1023.98px) {
  .tete-recherche { padding-block: 12px; }
  .recherche-site { margin-left: 0; max-width: none; }
  .recherche-site button[type="submit"] { width: 60px; }
  .recherche-loupe { width: 44px; }
}

/* ---------- Boutons ---------- */
.btn { border-radius: 999px; font-family: var(--v4-sans); font-weight: 700; }
.btn:not(.btn-ligne) { background: var(--v4-degrade-marine); border: 1px solid var(--v4-or); color: var(--v4-ivoire); }
.btn:not(.btn-ligne):hover { background: var(--v4-royal); border-color: var(--v4-or-vif); box-shadow: var(--v4-ombre); }
.btn-or:not(.btn-ligne) { background: var(--v4-degrade-or); border-color: #F3D58D; color: var(--v4-marine); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 10px 20px -14px rgba(0, 0, 0, .8); }
.btn-or:not(.btn-ligne):hover { background: var(--v4-degrade-or); filter: brightness(1.06); border-color: #FFF1C4; }
.btn-marine { gap: 8px; }
.btn-marine .fleche, .btn-or .fleche { font-size: 1.2em; line-height: 1; }
.btn-ligne { background: transparent; color: var(--v4-texte); border: 1px solid var(--v4-or); }
.btn-ligne:hover { background: var(--v4-ivoire); color: var(--v4-texte); border-color: var(--v4-or-texte); }
.lien-prevenir {
  display: inline-flex; align-items: center; min-height: 44px; padding-inline: 2px;
  color: var(--v4-royal); font-weight: 600; font-size: .92rem; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(20, 57, 106, .4);
}
.lien-prevenir:hover { text-decoration-color: currentColor; }

/* ---------- Titres de section : serif marine + filet doré ---------- */
.sig { padding-block: 6px 72px; display: grid; gap: 22px; }
.sig-section { display: grid; gap: 14px; }
.titre-filet { display: flex; align-items: center; gap: 18px; font-size: clamp(1.4rem, 1.1rem + .9vw, 1.85rem); line-height: 1.15; color: var(--v4-marine); }
.titre-filet::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--v4-or), rgba(203, 160, 82, .25)); }
.tete-section-sig { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.tete-section-sig .titre-filet { flex: 1 1 260px; }
.tete-section-sig > a { font-weight: 600; color: var(--v4-royal); white-space: nowrap; }
.note-honnete { color: var(--v4-texte-2); font-size: .95rem; }
@media (min-width: 1024px) { .page.sig { max-width: 1760px; padding-inline: var(--v4-marge); } }

/* ---------- Cartes de jeux (3 variantes : vedette, nouveauté, grand) ---------- */
.grille-jeux { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px var(--v4-gap); }
@media (max-width: 1199.98px) { .grille-jeux { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 559.98px) { .grille-jeux { grid-template-columns: 1fr; } }
.grille-jeux--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 639.98px) { .grille-jeux--3 { grid-template-columns: 1fr; } }
.grille-jeux > .etat-vide { grid-column: 1 / -1; }

.carte-jeu {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  background: var(--v4-ivoire); border: 1px solid var(--v4-filet); border-radius: var(--v4-rayon);
  overflow: hidden; box-shadow: var(--v4-ombre); transition: transform .18s ease, box-shadow .18s ease;
}
.carte-jeu:hover { transform: translateY(-3px); box-shadow: var(--v4-ombre-forte); }
.carte-jeu-image { position: relative; aspect-ratio: 16 / 9; background: var(--v4-marine); overflow: hidden; }
.carte-jeu-image picture { display: block; width: 100%; height: 100%; }
.carte-jeu-image img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--cadrage, 50% 50%); }
.carte-jeu-image .boite { width: 100%; height: 100%; border-radius: 0; }
.carte-jeu-image .puce-statut {
  position: absolute; right: 10px; bottom: 10px; z-index: 1;
  background: rgba(8, 28, 51, .86); color: var(--v4-ivoire); border-color: rgba(243, 213, 141, .85);
}
.puce-statut {
  display: inline-flex; align-items: center; min-height: 28px; padding: 2px 11px; border-radius: 999px;
  font-size: .78rem; font-weight: 700; letter-spacing: .02em;
  border: 1px solid var(--v4-or); color: var(--v4-or-texte); background: var(--v4-ivoire);
}
/* Lien étiré : toute la carte est cliquable (vedette, nouveauté) */
.carte-jeu-lien::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.carte-jeu-lien:focus-visible { outline: none; }
.carte-jeu-lien:focus-visible::after { outline: 3px solid var(--v4-royal); outline-offset: -3px; border-radius: var(--v4-rayon); }
.carte-jeu-titre { margin: 0; }

/* Ruban « Nouveau » (seulement si le catalogue le dit) */
.ruban-nouveau {
  position: absolute; top: 18px; left: -38px; z-index: 1; width: 150px; transform: rotate(-45deg);
  padding: 6px 0; text-align: center; background: var(--v4-degrade-or); color: var(--v4-marine);
  font: 800 .7rem/1 var(--v4-sans); letter-spacing: .16em; text-transform: uppercase;
  box-shadow: 0 4px 10px -4px rgba(0, 0, 0, .6);
}

/* Vedette (accueil) : la pochette seule, généreuse */
.carte-jeu--vedette { border-color: rgba(203, 160, 82, .8); }

/* Nouveauté : image presque carrée + bande marine (titre serif blanc, catégorie dorée) */
.carte-jeu--nouveaute .carte-jeu-image { aspect-ratio: 7 / 5; }
.carte-jeu-bande {
  position: relative; display: grid; gap: 4px; justify-items: center; text-align: center;
  padding: 10px 14px 12px; background: var(--v4-degrade-marine); color: var(--v4-sur-marine);
  border-top: 2px solid var(--v4-or); flex: 1; align-content: center;
}
.carte-jeu--nouveaute .carte-jeu-bande { padding: 8px 14px 9px; gap: 2px; }
.carte-jeu-bande h3 { font-size: clamp(1.08rem, .9rem + .4vw, 1.3rem); line-height: 1.2; margin: 0; }
.carte-jeu-bande h3 a { color: inherit; text-decoration: none; }
.carte-jeu-bande h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.carte-jeu-cat { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: .92rem; }
.carte-jeu-bande .carte-jeu-cat { color: var(--v4-sur-marine-2); }
.carte-jeu-cat .icone-or svg { width: 17px; height: 17px; }

/* Grand jeu : illustration dominante (~57 %), puce ivoire, résumé, bouton marine bordé d'or */
.carte-jeu--grand .carte-jeu-image { aspect-ratio: 7 / 5; }
.carte-jeu-corps { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 14px; flex: 1; }
.carte-jeu--grand .carte-jeu-cat {
  align-self: flex-start; padding: 3px 12px 3px 8px; border-radius: 999px;
  background: #FFFDF8; border: 1px solid rgba(203, 160, 82, .8); color: var(--v4-texte); font-weight: 600; font-size: .8rem;
}
.carte-jeu--grand .carte-jeu-cat .icone-or svg { stroke: url(#tc-or-fonce) #9C7834; }
.carte-jeu--grand h3 { font-size: 1.16rem; line-height: 1.2; margin: 0; }
.carte-jeu--grand h3 a { color: var(--v4-marine); text-decoration: none; }
.carte-jeu--grand h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.carte-jeu-resume { color: var(--v4-texte-2); font-size: .92rem; line-height: 1.45; margin: 0; }
.carte-jeu-actions { margin-top: auto; padding-top: 4px; display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; }
.carte-jeu-actions .btn { min-height: 44px; padding: 8px 18px; }
@media (prefers-reduced-motion: reduce) { .carte-jeu, .tuiles-cat img { transition: none; } .carte-jeu:hover { transform: none; } }

/* ---------- Tuiles de catégories : image + bande marine (icône dorée, nom serif) ---------- */
.tuiles-cat { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
@media (max-width: 1199.98px) { .tuiles-cat { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 479.98px) { .tuiles-cat { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.tuiles-cat a {
  position: relative; display: block; aspect-ratio: 1.37 / 1; overflow: hidden; text-decoration: none;
  background: var(--v4-marine); border: 1px solid var(--v4-filet); border-radius: var(--v4-rayon); box-shadow: var(--v4-ombre);
}
.tuiles-cat img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.tuiles-cat a:hover img { transform: scale(1.04); }
.tuiles-cat a:hover { box-shadow: var(--v4-ombre-forte); }
.tuile-bande {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 34%; padding: 6px 10px;
  background: linear-gradient(180deg, rgba(11, 36, 67, .82), rgba(8, 28, 51, .96));
  border-top: 1px solid rgba(203, 160, 82, .8); color: var(--v4-sur-marine);
  font-family: var(--v4-serif); font-size: clamp(1rem, .85rem + .35vw, 1.22rem); font-weight: 700;
}
.tuile-bande .icone-or svg { width: 26px; height: 26px; }
@media (max-width: 479.98px) { .tuile-bande { gap: 6px; } .tuile-bande .icone-or svg { width: 20px; height: 20px; } }

/* ---------- Filtres (puces) ---------- */
.barre-filtres { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.barre-filtres-titre { font-family: var(--v4-serif); font-weight: 700; font-size: 1.12rem; color: var(--v4-marine); }
.barre-filtres p { color: var(--v4-texte-2); font-size: .95rem; }
.filtres-cat { display: flex; flex-wrap: wrap; gap: 8px 10px; }
.filtres-cat button {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px 6px 12px;
  border-radius: 999px; border: 1px solid rgba(203, 160, 82, .85); background: var(--v4-ivoire); color: var(--v4-texte);
  font: 600 .95rem/1.1 var(--v4-sans); cursor: pointer; box-shadow: 0 3px 8px -6px rgba(8, 28, 51, .6);
}
.filtres-cat button .icone-or svg { width: 18px; height: 18px; stroke: url(#tc-or-fonce) #9C7834; }
.filtres-cat button:hover { border-color: var(--v4-or-texte); }
.filtres-cat button[aria-pressed="true"] { background: var(--v4-degrade-marine); color: var(--v4-ivoire); border-color: var(--v4-or); }
.filtres-cat button[aria-pressed="true"] .icone-or svg { stroke: url(#tc-or) #CBA052; }
.filtres-cat button b { min-width: 1.7em; padding: 2px 7px; border-radius: 999px; background: rgba(203, 160, 82, .2); font-weight: 700; text-align: center; }
.filtres-cat button[aria-pressed="true"] b { background: rgba(243, 213, 141, .22); }
.avis-arcade { padding: 14px 18px; border-radius: var(--v4-rayon); background: var(--v4-ivoire); border: 1px solid var(--v4-or); }

/* ---------- États vides ---------- */
.etat-vide { padding: 28px; text-align: center; border: 1px dashed var(--v4-or); border-radius: var(--v4-rayon); background: var(--v4-ivoire); display: grid; gap: 12px; justify-items: center; }

/* ---------- En-tête de page simple (pages secondaires) ---------- */
.tete-page { display: flex; align-items: center; gap: 18px; padding-bottom: 18px; position: relative; }
.tete-page::after { content: ""; position: absolute; left: 0; bottom: 0; width: 96px; height: 3px; border-radius: 3px; background: var(--v4-degrade-or); }
.tete-page-icone { flex: none; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 14px; background: var(--v4-marine); border: 1px solid var(--v4-or); }
.tete-page-icone svg { width: 30px; height: 30px; stroke: url(#tc-or) #CBA052; }
.tete-page h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.9rem); color: var(--v4-marine); line-height: 1.1; }
.tete-page p { color: var(--v4-texte-2); margin-top: 4px; max-width: 62ch; }

[hidden] { display: none !important; }

/* ---------- Bannière illustrée pleine largeur (Nouveautés, Grands jeux, Arcade) ---------- */
.entete-illustre {
  position: relative; display: flex; align-items: center; overflow: hidden; isolation: isolate;
  margin-inline: calc(-1 * var(--v4-marge)); min-height: 171px;
  border-block: 1px solid var(--v4-filet); background: #EBDCC2;
}
.entete-illustre-fond { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: var(--cadrage, 70% 50%); }
.entete-illustre::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.entete-illustre-texte { display: grid; gap: 8px; justify-items: start; padding: 22px var(--v4-marge) 24px calc(var(--v4-marge) + 8px); max-width: min(760px, 62%); }
.entete-illustre-ligne { display: flex; align-items: center; gap: 16px; }
.entete-illustre h1 { margin: 0; font-size: clamp(2rem, 1.3rem + 2.6vw, 3.6rem); line-height: 1.02; color: var(--v4-marine); }
.entete-illustre p { margin: 0; font-size: clamp(1rem, .92rem + .35vw, 1.22rem); color: var(--v4-texte); max-width: 52ch; }
.entete-illustre-icone { display: grid; place-items: center; flex: none; }
.entete-illustre-icone svg { width: clamp(40px, 3.4vw, 56px); height: auto; stroke-width: 1.7; stroke: url(#tc-or-fonce) #A88134; }
/* Clair (champagne) : voile ivoire à gauche, l'image respire à droite */
.entete-illustre--clair::before { background: linear-gradient(90deg, rgba(255, 248, 237, .96) 0%, rgba(255, 248, 237, .86) 34%, rgba(255, 248, 237, 0) 64%); }
.entete-illustre--clair .entete-illustre-filet { width: 120px; height: 3px; border-radius: 3px; background: var(--v4-degrade-or); }
/* Courbe dorée en bas (Grands jeux) */
.entete-illustre--courbe::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 34px; z-index: -1; pointer-events: none;
  background: url("../img/v4/deco/ruban-bas.svg") no-repeat right bottom / auto 100%;
}
/* Marine (Arcade) : texte clair sur fond marine, borne à gauche */
.entete-illustre--marine { background: var(--v4-marine) url("../img/v4/deco/texture-marine.svg"); border-color: var(--v4-or); }
.entete-illustre--marine h1 { color: var(--v4-ivoire); }
.entete-illustre--marine p { color: var(--v4-sur-marine-2); }
.entete-illustre--marine .entete-illustre-icone svg { stroke: url(#tc-or) #CBA052; }
/* Nouveautés : château aquarelle à droite, fondu dans le champagne de gauche */
.entete-illustre--nouveautes { background: #F4ECDA; }
.entete-illustre--nouveautes .entete-illustre-fond {
  left: auto; right: 0; width: auto; max-width: none; height: 100%; object-fit: contain; object-position: right center;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%); mask-image: linear-gradient(90deg, transparent 0, #000 22%);
}
.entete-illustre--nouveautes .entete-illustre-texte { max-width: min(900px, 66%); padding-block: 16px 18px; }
.entete-illustre--nouveautes p { max-width: 70ch; }
.entete-illustre--nouveautes .entete-illustre-icone svg { width: clamp(52px, 4.6vw, 76px); }
@media (max-width: 639.98px) {
  .entete-illustre--nouveautes .entete-illustre-fond { position: absolute; height: 100%; aspect-ratio: auto; opacity: .4; }
  .entete-illustre--nouveautes .entete-illustre-texte { background: transparent; }
}
/* Grands jeux : paysage du château à droite, titre serif + losange, bas découpé en courbe dorée */
.entete-illustre--grands {
  --vague: 40px;
  min-height: clamp(190px, 14.2vw, 272px); border-bottom: 0; background: #F4E8D3;
  -webkit-mask: linear-gradient(#000, #000) top / 100% calc(100% - var(--vague) + 1px) no-repeat, url("../img/v4/deco/courbe-masque.svg") bottom / 100% var(--vague) no-repeat;
  mask: linear-gradient(#000, #000) top / 100% calc(100% - var(--vague) + 1px) no-repeat, url("../img/v4/deco/courbe-masque.svg") bottom / 100% var(--vague) no-repeat;
}
.entete-illustre--grands::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: var(--vague); z-index: -1; pointer-events: none;
  background: url("../img/v4/deco/courbe-or.svg") no-repeat center bottom / 100% 100%;
}
.entete-illustre--grands .entete-illustre-fond {
  left: auto; right: 0; top: auto; bottom: 0; width: auto; max-width: none; height: 110%; object-fit: contain;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 26%); mask-image: linear-gradient(90deg, transparent 0, #000 26%);
}
.entete-illustre--grands .entete-illustre-texte { gap: 6px; padding: 14px var(--v4-marge) calc(var(--vague) + 4px) calc(var(--v4-marge) + 48px); max-width: min(900px, 60%); }
.entete-illustre--grands h1 { font-size: clamp(2.4rem, 1rem + 3.7vw, 5.4rem); letter-spacing: -.01em; }
.entete-illustre--grands .losange-or { width: min(300px, 70%); margin: 0 0 4px 28px; }
.entete-illustre--grands p { font-family: var(--v4-serif); font-style: italic; font-size: clamp(1.02rem, .88rem + .5vw, 1.42rem); line-height: 1.32; color: #22324D; max-width: 50ch; }
@media (max-width: 639.98px) {
  .entete-illustre--grands { --vague: 26px; }
  .entete-illustre--grands .entete-illustre-fond { position: static; width: 100%; height: auto; aspect-ratio: 2.4 / 1; object-fit: cover; object-position: 78% 62%; -webkit-mask-image: none; mask-image: none; }
  .entete-illustre--grands .entete-illustre-texte { max-width: none; padding: 12px var(--v4-marge) calc(var(--vague) + 8px); background: var(--v4-ivoire); }
  .entete-illustre--grands .losange-or { margin-left: 0; }
}
/* Filtres des grands jeux : étiquette « Catégories : » + puces serif avec icône dorée */
.barre-filtres--grands { gap: 8px 10px; }
.barre-filtres--grands .barre-filtres-titre { font-size: clamp(1.1rem, .98rem + .35vw, 1.4rem); }
.barre-filtres--grands .filtres-cat { gap: 8px; }
.barre-filtres--grands .filtres-cat button { min-height: 48px; gap: 7px; padding: 6px 10px; font-family: var(--v4-serif); font-size: 1rem; font-weight: 600; }
.barre-filtres--grands .filtres-cat button .icone-or svg { width: 20px; height: 20px; }
.titre-filet--court::after { flex: 0 1 120px; height: 3px; border-radius: 3px; background: var(--v4-degrade-or); }
/* Grille des grands jeux : quatre cartes serrées, bouton marine centré */
.grille-jeux--grands { column-gap: 14px; }
.grille-jeux--grands .carte-jeu--grand .carte-jeu-image { aspect-ratio: 4 / 3; }
.carte-jeu--grand .carte-jeu-resume { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.carte-jeu--grand .carte-jeu-actions { flex-direction: column; align-items: center; gap: 0; padding-top: 6px; }
.carte-jeu--grand .carte-jeu-actions .btn { width: min(100%, 88%); justify-content: center; border: 1px solid var(--v4-or); }
.carte-jeu--grand .lien-prevenir { min-height: 36px; }
.losange-or { display: flex; align-items: center; gap: 10px; width: min(260px, 70%); }
.losange-or::before, .losange-or::after { content: ""; flex: 1; height: 1px; background: var(--v4-or); }
.losange-or span { width: 9px; height: 9px; transform: rotate(45deg); background: var(--v4-degrade-or); border: 1px solid #B8913F; }
@media (max-width: 1023.98px) { .entete-illustre { margin-inline: calc(-1 * var(--v4-marge)); border-radius: 0; } }
@media (max-width: 639.98px) {
  .entete-illustre { min-height: 0; flex-direction: column; align-items: stretch; }
  .entete-illustre-fond { position: static; height: auto; aspect-ratio: 16 / 7; }
  .entete-illustre::before { display: none; }
  .entete-illustre-texte { max-width: none; padding: 16px var(--v4-marge) 20px; background: var(--v4-ivoire); }
  .entete-illustre--marine .entete-illustre-texte { background: transparent; }
}

/* ---------- Accueil : bannière JOJO panoramique (image partout, texte réel sur zone marine fondue) ---------- */
.banniere-jojo {
  position: relative; overflow: hidden; isolation: isolate; color: var(--v4-ivoire);
  background: var(--v4-marine); border: 1px solid var(--v4-or); border-radius: 14px; box-shadow: var(--v4-ombre-forte);
}
.banniere-jojo-image { display: block; }
.banniere-jojo-image img { display: block; width: 100%; height: auto; aspect-ratio: 4.2 / 1; object-fit: cover; }
.banniere-jojo-texte {
  position: absolute; top: 0; right: 0; bottom: 0; width: 42%; z-index: 1;
  display: grid; align-content: center; justify-items: center; gap: 10px; text-align: center;
  padding: 18px clamp(18px, 2.6vw, 44px) 18px clamp(48px, 6vw, 110px);
  background: linear-gradient(90deg, rgba(8, 28, 51, 0) 0%, rgba(8, 28, 51, .72) 26%, rgba(8, 28, 51, .9) 52%, rgba(8, 28, 51, .94) 100%);
}
.banniere-surtitre {
  display: flex; align-items: center; gap: 14px; width: 100%; max-width: 330px; justify-content: center;
  font: 700 clamp(.72rem, .62rem + .25vw, .86rem)/1 var(--v4-sans); letter-spacing: .22em; text-transform: uppercase; color: var(--v4-or-vif);
}
.banniere-surtitre::before, .banniere-surtitre::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(203, 160, 82, 0), var(--v4-or)); }
.banniere-surtitre::after { transform: scaleX(-1); }
.banniere-jojo h1 {
  margin: 0; font-size: clamp(1.7rem, .9rem + 2.3vw, 3.1rem); line-height: 1.02; letter-spacing: .01em;
  color: var(--v4-or-vif); background: linear-gradient(180deg, #FFF1C4 0%, #F3D58D 45%, #CBA052 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .55));
}
.banniere-jojo-phrase { margin: 0; max-width: 40ch; font-size: clamp(.92rem, .82rem + .3vw, 1.08rem); line-height: 1.4; color: var(--v4-ivoire); text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.banniere-jojo-actions { display: flex; flex-wrap: wrap; gap: 8px 12px; justify-content: center; align-items: center; }
.banniere-jojo-actions .btn { min-height: 46px; padding: 10px 22px; }
.banniere-jojo .btn-ligne { color: var(--v4-ivoire); border-color: var(--v4-or); background: rgba(8, 28, 51, .35); }
.banniere-jojo .btn-ligne:hover { background: var(--v4-royal); color: var(--v4-ivoire); }
.banniere-jojo .puce-statut { background: rgba(8, 28, 51, .6); color: var(--v4-sur-marine-2); border-color: rgba(203, 160, 82, .8); }
/* Écran moyen : la zone de texte s'élargit un peu */
@media (max-width: 1279.98px) { .banniere-jojo-texte { width: 48%; padding-left: clamp(36px, 5vw, 70px); } }
/* Tablette et téléphone : image (version mobile sans titre peint) puis texte sur marine */
@media (max-width: 639.98px) { .banniere-jojo-image img { aspect-ratio: 8 / 5; } }
@media (max-width: 899.98px) {
  .banniere-jojo-texte { position: static; width: auto; padding: 18px var(--v4-marge) 22px; gap: 10px; background: var(--v4-degrade-marine); border-top: 1px solid var(--v4-or); }
}

/* ---------- Contact : deux colonnes (texte + manette | formulaire ivoire + casque) ---------- */
.page-contact { overflow-x: clip; }
.contact-v4 {
  position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr);
  gap: clamp(24px, 3vw, 56px); align-items: stretch; padding: clamp(8px, 5.5vw, 92px) clamp(0px, 7.4vw, 140px) 0 12px;
}
/* Vague marine et or derrière la manette : décor, monte vers le formulaire */
.contact-v4::before {
  content: ""; position: absolute; z-index: -2; pointer-events: none;
  left: calc(-1 * var(--v4-marge)); right: calc(-1 * var(--v4-marge)); bottom: -72px; height: clamp(200px, 19.75vw, 330px);
  background: url("../img/v4/deco/vague-contact.svg") no-repeat left bottom / 100% 100%;
}
.contact-gauche { position: relative; display: grid; grid-template-rows: repeat(6, auto) 1fr; gap: 14px; justify-items: center; text-align: center; }
.contact-enveloppe { display: block; width: clamp(150px, 11.5vw, 200px); height: auto; margin: 0 0 -6px 4%; }
.contact-gauche h1 { margin: 0; font-size: clamp(2.5rem, -.2rem + 4.2vw, 4.25rem); line-height: 1.02; color: var(--v4-marine); letter-spacing: -.01em; }
.contact-filet { width: 150px; height: 3px; border-radius: 3px; background: var(--v4-degrade-or); margin: 6px 0 10px; }
.contact-gauche .chapeau { margin: 0; color: var(--v4-texte); font-size: clamp(1.08rem, .9rem + .6vw, 1.5rem); font-weight: 500; max-width: 31ch; line-height: 1.34; text-align: left; }
.contact-adresse { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 12px; align-items: center; }
.contact-adresse a { font-weight: 700; color: var(--v4-royal); overflow-wrap: anywhere; }
.contact-adresse .btn { min-height: 44px; }
.contact-gauche .note-honnete { margin: -6px 0 0; }
/* La boîte = l'objet seul (rapport 897:684) ; l'ombre au sol déborde de la boîte sans la grossir */
.contact-manette { position: relative; display: block; align-self: end; justify-self: start; width: clamp(230px, 17.8vw, 300px); aspect-ratio: 897 / 684; margin: 8px 0 calc(-1 * clamp(0px, 2.5vw, 44px)) clamp(0px, 1.2vw, 24px); pointer-events: none; }
.contact-manette img { position: absolute; left: -6.689%; top: -.439%; width: 126.756%; max-width: none; height: auto; }
.contact-droite { position: relative; }
.contact-casque { position: absolute; right: calc(-1 * var(--v4-marge) - 2.8vw); top: clamp(280px, 23.5vw, 420px); z-index: -1; width: clamp(130px, 11.4vw, 200px); height: auto; pointer-events: none; }
.form-contact {
  position: relative; display: grid; gap: 12px; padding: clamp(20px, 2.6vw, 40px) clamp(20px, 2.9vw, 48px);
  background: var(--v4-ivoire); border: 1.5px solid var(--v4-or); border-radius: 22px;
  box-shadow: 0 26px 50px -30px rgba(8, 28, 51, .55), 0 0 0 6px rgba(255, 248, 237, .55), inset 0 0 0 5px rgba(255, 255, 255, .6);
}
.form-contact .champ { display: grid; gap: 6px; }
.form-contact label { font-weight: 700; color: var(--v4-marine); font-family: var(--v4-sans); font-size: 1.15rem; text-transform: none; letter-spacing: 0; }
.form-contact label small { font-weight: 500; color: var(--v4-texte-2); font-family: var(--v4-sans); font-size: .88rem; text-transform: none; letter-spacing: 0; }
.champ-icone { position: relative; }
.champ-icone > svg { position: absolute; left: 14px; top: 50%; width: 22px; height: 22px; transform: translateY(-50%); stroke: var(--v4-marine); pointer-events: none; }
.champ-icone input { padding-left: 46px !important; }
.form-contact input, .form-contact select, .form-contact textarea {
  width: 100%; min-height: 50px; padding: 10px 14px; font: inherit; font-size: 1rem; color: var(--v4-texte);
  background: #fff; border: 1px solid rgba(8, 28, 51, .38); border-radius: 12px; box-shadow: inset 0 1px 2px rgba(8, 28, 51, .06);
}
.form-contact select {
  -webkit-appearance: none; appearance: none; padding-right: 44px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23081C33' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 20px 20px;
}
.form-contact textarea { min-height: 140px; resize: vertical; }
.form-contact input:focus-visible, .form-contact select:focus-visible, .form-contact textarea:focus-visible { outline: 3px solid var(--v4-royal); outline-offset: 1px; border-color: var(--v4-royal); }
.form-contact [aria-invalid="true"] { border-color: #B42318; }
.form-contact .erreur-champ { margin: 0; color: #B42318; font-size: .9rem; font-weight: 600; }
.form-contact .erreur-champ:empty { display: none; }
.form-contact .contact-note { margin: 0; font-size: .88rem; line-height: 1.4; color: var(--v4-texte-2); }
.form-contact .btn { justify-self: center; min-width: min(100%, 320px); min-height: 58px; font-size: 1.22rem; gap: 12px; margin-top: 4px; box-shadow: 0 0 0 3px rgba(203, 160, 82, .28), 0 14px 26px -14px rgba(8, 28, 51, .8); }
.form-contact .btn svg { width: 24px; height: 24px; stroke: #FFF8ED; }
.contact-resultat { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--v4-champagne); border: 1px solid var(--v4-or); }
.contact-resultat:empty { display: none; }
.contact-resultat--ok { background: #E7F4EA; border-color: #2E7D46; }
.contact-resultat--erreur { background: #FCEDEB; border-color: #B42318; }
@media (max-width: 1199.98px) {
  .contact-v4 { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); padding-right: 0; padding-top: 12px; }
  .contact-casque { display: none; }
}
@media (max-width: 899.98px) {
  .contact-v4 { grid-template-columns: 1fr; padding: 4px 0 24px; gap: 20px; }
  .contact-v4::before { display: none; }
  .contact-gauche { grid-template-rows: none; }
  .contact-gauche::after {
    content: ""; position: absolute; z-index: -1; pointer-events: none; left: calc(-1 * var(--v4-marge)); right: calc(-1 * var(--v4-marge)); bottom: -6px; height: 120px;
    background: url("../img/v4/deco/vague-contact.svg") no-repeat 12.14% 0 / 237.3% 100%; /* mobile : seulement la partie visible du ruban (x 100..700) */
  }
  .contact-enveloppe { width: 130px; }
  .contact-manette { justify-self: center; width: min(230px, 62vw); margin: 0 0 30px; }
  .contact-gauche .chapeau { text-align: center; }
}
/* Ancienne mise en page (pages qui ne sont pas encore V4) */
.contact-sig { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 899.98px) { .contact-sig { grid-template-columns: 1fr; } }
.contact-intro { display: grid; gap: 16px; align-content: start; }

/* ---------- Arcade : grille claire, aperçus réels panoramiques, bande marine ---------- */
.sig .salle { background: none; color: var(--v4-texte); border: 0; border-radius: 0; min-height: 0; padding: 0; box-shadow: none; overflow: visible; }
.sig .salle::before, .sig .salle::after { display: none; }
.salle-barre { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; }
.salle-barre p { margin-bottom: 14px; }
.salle-barre p { color: var(--v4-texte-2); font-size: .92rem; }
.salle-barre p:empty { display: none; }
.sig .murs { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 32px; padding-bottom: 0; }
@media (max-width: 1439.98px) { .sig .murs { gap: 20px; } }
@media (max-width: 1199.98px) { .sig .murs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 799.98px) { .sig .murs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 799.98px) { .sig .murs { gap: 14px; } .sig .cabinet-record { top: 5px; right: 5px; padding: 2px 7px; font-size: .68rem; } .sig .cabinet-fronton { font-size: .98rem; padding: 7px 8px 8px; } }
@media (max-width: 349.98px) { .sig .murs { grid-template-columns: 1fr; } }
.sig .murs .cabinet[hidden] { display: none; }
.sig .cabinet {
  display: flex; flex-direction: column; gap: 0; padding: 0; text-align: left; min-width: 0;
  background: var(--v4-marine); border: 1px solid var(--v4-filet); border-radius: var(--v4-rayon); overflow: hidden;
  box-shadow: var(--v4-ombre); transform: none; color: var(--v4-sur-marine); font: inherit;
}
.sig .cabinet:hover, .sig .cabinet:focus-visible { transform: translateY(-3px); box-shadow: var(--v4-ombre-forte); }
.sig .cabinet:focus-visible { outline: 3px solid var(--v4-royal); outline-offset: 3px; }
.sig .cabinet-ecran { position: relative; display: block; line-height: 0; background: #020812; }
.sig .cabinet canvas { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; border-radius: 0; background: #020812; }
.sig .cabinet-record {
  position: absolute; top: 8px; right: 8px; line-height: 1.2; padding: 3px 9px; border-radius: 999px;
  font: 600 .74rem/1.2 var(--v4-sans); color: var(--v4-sur-marine); background: rgba(8, 28, 51, .78); border: 1px solid rgba(203, 160, 82, .75);
}
.sig .cabinet-record b { color: var(--v4-or-vif); font-weight: 700; }
.sig .cabinet-jouer {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.92); opacity: 0; line-height: 1;
  padding: 10px 20px; border-radius: 999px; font: 700 .95rem/1 var(--v4-sans); color: var(--v4-marine);
  background: var(--v4-degrade-or); border: 1px solid #B8913F; box-shadow: 0 6px 16px rgba(0, 0, 0, .45);
  transition: opacity .18s ease, transform .18s ease;
}
.sig .cabinet-jouer::after { content: " ›"; }
.sig .cabinet:hover .cabinet-jouer, .sig .cabinet:focus-visible .cabinet-jouer { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.sig .cabinet-fronton {
  display: block; padding: 7px 12px 8px; text-align: center;
  font-family: var(--v4-serif); font-size: clamp(1.02rem, .9rem + .3vw, 1.2rem); font-weight: 700; letter-spacing: 0; line-height: 1.2;
  color: var(--v4-ivoire); text-shadow: 0 1px 2px rgba(0, 0, 0, .5); border-top: 2px solid var(--v4-or);
  background: linear-gradient(180deg, #14396A 0%, #0B2445 55%, #081C33 100%);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sig .cabinet-txt { position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; margin: -1px; border: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sig .cabinet-bas { display: none; }
@media (prefers-reduced-motion: reduce) { .sig .cabinet-jouer { transition: none; } }
.sig .salle .etat-vide { background: var(--v4-ivoire); color: var(--v4-texte); border-color: var(--v4-or); }
.sig .salle a { color: var(--v4-royal); }
.sig .salle .btn-ligne { color: var(--v4-texte); border-color: var(--v4-or); background: transparent; }
.sig .records { padding: 0; display: grid; gap: 14px 32px; grid-template-columns: minmax(0, 720px) minmax(min(100%, 280px), 1fr); align-items: start; }
.sig .records h2 { grid-column: 1 / -1; }
.records-notes { display: grid; gap: 12px; justify-items: start; padding: 20px 22px; background: var(--v4-ivoire); border: 1px solid var(--v4-filet); border-radius: var(--v4-rayon); box-shadow: var(--v4-ombre); }
@media (max-width: 899.98px) { .sig .records { grid-template-columns: 1fr; } }
.sig .table-records th { text-align: left; padding: 10px 14px; font: 700 .8rem/1.2 var(--v4-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--v4-sur-marine); background: var(--v4-marine); }
.sig .table-records th:last-child { text-align: right; }
.sig .table-records td:last-child { text-align: right; }
.sig .records h2 { font-family: var(--v4-serif); font-size: clamp(1.4rem, 1.1rem + .9vw, 1.85rem); letter-spacing: 0; color: var(--v4-marine); font-weight: 700; }
.sig .table-records { width: 100%; font-family: var(--v4-sans); font-size: .95rem; background: var(--v4-ivoire); border: 1px solid var(--v4-filet); border-radius: var(--v4-rayon); border-collapse: separate; border-spacing: 0; overflow: hidden; }
.sig .table-records td { padding: 10px 14px; border-bottom: 1px solid rgba(203, 160, 82, .35); color: var(--v4-texte); }
.sig .table-records tr:last-child td { border-bottom: 0; }
.sig .table-records td:last-child { color: var(--v4-or-texte); font-weight: 700; }
.sig .records p { color: var(--v4-texte-2); }
.sig .records .btn-ligne { color: var(--v4-texte); border-color: var(--v4-or); }
.jetons { display: flex; flex-wrap: wrap; gap: 8px; }
.entete-illustre .jeton, .sig .jeton {
  display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 3px 12px; border-radius: 999px;
  font: 600 .82rem/1.2 var(--v4-sans); letter-spacing: 0; text-transform: none;
  color: var(--v4-sur-marine); background: rgba(255, 248, 237, .08); border: 1px solid rgba(203, 160, 82, .7);
}
.entete-illustre .jeton b, .sig .jeton b { color: var(--v4-or-vif); font-weight: 700; }
.sig .salle-barre .jeton { background: var(--v4-marine); border-color: var(--v4-or); color: var(--v4-ivoire); }
.entete-illustre--arcade { min-height: 170px; border: 1px solid var(--v4-or); border-radius: 14px; margin-inline: 0; margin-top: 2px; box-shadow: var(--v4-ombre-forte); }
.borne-arcade { position: absolute; left: clamp(16px, 4vw, 80px); bottom: -64px; z-index: -1; height: 160%; width: auto; max-height: 290px; }
.entete-illustre--arcade .entete-illustre-texte { padding: 20px var(--v4-marge) 26px clamp(150px, 19vw, 330px); max-width: none; gap: 6px; }
.entete-illustre--arcade p { max-width: 62ch; }
.entete-illustre--arcade .jetons { margin-top: 6px; }
@media (min-width: 1600px) {
  .entete-illustre--arcade .entete-illustre-texte { padding-right: 400px; }
  .entete-illustre--arcade .jetons { position: absolute; right: clamp(32px, 3vw, 64px); top: 50%; transform: translateY(-50%); display: grid; grid-template-columns: repeat(2, auto); margin: 0; }
}
@media (max-width: 1023.98px) { .entete-illustre--arcade { margin-inline: 0; border-radius: 14px; } }
@media (max-width: 639.98px) {
  .entete-illustre--arcade { flex-direction: row; align-items: center; min-height: 150px; }
  .borne-arcade { position: absolute; left: 6px; height: 100%; max-height: 170px; z-index: -1; }
  .entete-illustre--arcade .entete-illustre-texte { padding: 16px 14px 22px 104px; }
  .entete-illustre--arcade .entete-illustre-icone { display: none; }
}

/* ---------- Pied de page marine, bison officiel ---------- */
.pied {
  color: var(--v4-sur-marine-2); border-top: 2px solid var(--v4-or); padding-top: 56px;
  background-color: var(--v4-marine);
  background-image: url("../img/v4/deco/texture-marine.svg"), linear-gradient(180deg, #0D2A4D, #081C33 60%);
}
.pied::before { display: none; }
.pied a, .pied .marque { color: var(--v4-ivoire); }
.pied a:hover { color: var(--v4-or-vif); }
.pied h3 { color: var(--v4-or-vif); font-family: var(--v4-serif); }
.pied-texte, .pied-bas { color: var(--v4-sur-marine-2); }
.pied-bas { border-top-color: rgba(203, 160, 82, .4); }
.pied .marque { gap: 12px; }
.pied .marque-bison { width: 64px; height: 64px; }
.pied .marque-nom { font-family: var(--v4-serif); font-size: 1.3rem; color: var(--v4-or-vif); letter-spacing: .02em; }

/* Le lecteur plein écran de l'arcade reste au-dessus de tout (z-index 90 dans arcade.css) */

/* ---------- Emblème officiel JOJO : seulement là où il est déjà intégré (fiches, pochettes) ---------- */
.jojo-logo { display: block; object-fit: contain; aspect-ratio: 1 / 1; height: auto; flex-shrink: 0; }
