/* TeamKit — 🍺 La Taverne : vitrine /taverne (taverne.php) et bloc « Nouveau » de l'accueil (oct. 2026 ; 1.1.0 = vitrine v2, Taverne 0.1.5 ; 1.2.0 = Taverne 0.1.6 : accueil à deux images, « Nouveau dans la 0.1.6 », défi entre amis ;
   1.3.0 = Taverne 0.2.0 : Arcade à 7 jeux, carte vedette de La Cascade, pastille « Nouveau » sur les cartes ;
   1.4.0 = Taverne 0.2.8 : « Quoi de neuf » avec la version sur chaque tuile, section « 🏆 Classements et tournois »,
   lien discret vers les classements ou le tournoi du moment dans le bloc de l'accueil).
   Préfixe tv- (la page de passage /taverne/connexion a sa propre feuille, taverne-connexion.css, jamais chargée avec celle-ci).
   Ambiance : bois sombre, ambre et or, néon cyan de TeamKit en rappel. Rien ne bouge sous prefers-reduced-motion. */

:root {
  --tv-or: #ffd166;
  --tv-ambre: #ff9f1c;
  --tv-bois: #1a120c;
  --tv-bois-2: #241810;
  --tv-trait: rgba(255, 209, 102, 0.22);
}

.tv-main { overflow-x: clip; padding-top: 80px; }   /* l'en-tête du site est fixe (comme .hp-main, .cm-main) */
.tv-main h2, .tv-main h3 { color: var(--text-primary); }

/* Le gros bouton 🍺 Jouer : la seule chose qu'on doit voir */
.tv-jouer {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 60px; padding: 0 38px; border-radius: 16px;
  font-family: var(--font-display); font-weight: 900; font-size: 1.35rem; letter-spacing: .06em; text-transform: uppercase;
  color: #1a1205; text-decoration: none; white-space: nowrap;
  background: linear-gradient(135deg, var(--tv-or) 0%, var(--tv-ambre) 100%);
  box-shadow: 0 10px 30px rgba(255, 159, 28, .35), inset 0 -3px 0 rgba(0, 0, 0, .18);
  transition: transform .15s ease, box-shadow .15s ease;
}
.tv-jouer:hover, .tv-jouer:focus-visible { transform: translateY(-2px); color: #1a1205; box-shadow: 0 14px 40px rgba(255, 159, 28, .5), inset 0 -3px 0 rgba(0, 0, 0, .18); }
.tv-jouer-s { min-height: 48px; font-size: 1.05rem; padding: 0 26px; }

.tv-pastille { display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .04em; color: var(--tv-or); border: 1px solid var(--tv-trait); background: rgba(255, 209, 102, .07); }
.tv-nouveau { color: #1a1205; background: linear-gradient(135deg, var(--tv-or), var(--tv-ambre)); border-color: transparent; }
.tv-fictif { margin: 14px 0 0; color: var(--text-secondary); font-size: .95rem; }

/* ── Héros ── */
.tv-hero { position: relative; padding: 46px 0 40px; border-bottom: 1px solid var(--tv-trait);
  background: radial-gradient(ellipse at 15% 20%, rgba(255, 159, 28, .16), transparent 55%), radial-gradient(ellipse at 90% 0%, rgba(123, 44, 191, .25), transparent 55%), linear-gradient(180deg, var(--tv-bois) 0%, var(--bg-primary) 100%); }
.tv-hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: center; }
.tv-badges { margin: 0 0 6px; display: flex; flex-wrap: wrap; gap: 8px; }
.tv-titre { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: clamp(2.2rem, 5.4vw, 3.7rem); line-height: 1.02; margin: 10px 0 8px; white-space: nowrap;
  background: linear-gradient(90deg, var(--tv-or), var(--tv-ambre) 60%, #ff6b6b); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 22px rgba(255, 159, 28, .3)); }
.tv-accroche { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.15rem, 2.6vw, 1.6rem); color: var(--text-primary); margin: 0 0 10px; }
.tv-lead { color: var(--text-secondary); font-size: 1.12rem; max-width: 52ch; margin: 0; }
.tv-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 24px; }

.tv-hero-visuel { position: relative; }
.tv-hero-img { display: block; width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--tv-trait); box-shadow: 0 30px 80px rgba(0, 0, 0, .55); }

/* Le chiffre en direct, posé sur l'image */
.tv-direct { position: absolute; left: -18px; bottom: -22px; display: flex; flex-direction: column; min-width: 230px; max-width: 78%;
  padding: 14px 18px; border-radius: 16px; background: rgba(15, 11, 8, .92); border: 1px solid var(--tv-trait); box-shadow: 0 18px 50px rgba(0, 0, 0, .6); }
.tv-direct[hidden] { display: none; }
.tv-direct-h { display: flex; align-items: center; gap: 8px; font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text-muted); }
.tv-point { width: 9px; height: 9px; border-radius: 50%; background: var(--accent-success); box-shadow: 0 0 10px var(--accent-success); animation: tv-pouls 1.8s ease-in-out infinite; }
.tv-heros { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 3rem; line-height: 1.05; margin-top: 4px;
  background: linear-gradient(90deg, var(--tv-or), var(--tv-ambre)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tv-direct-l { color: var(--text-primary); font-weight: 700; }
.tv-direct-s { color: var(--text-secondary); font-size: .92rem; margin-top: 4px; }
.tv-direct-s b { color: var(--tv-or); font-family: var(--font-mono); }
.tv-direct-m { margin-top: 6px; color: var(--accent-warning); font-size: .88rem; }
.tv-direct-m[hidden] { display: none; }
.tv-direct.tv-calme .tv-point { background: var(--tv-or); box-shadow: 0 0 10px var(--tv-or); }
@keyframes tv-pouls { 50% { opacity: .35; } }

/* ── Sections ── */
.tv-sec { padding: 52px 0; }
.tv-alt { background: linear-gradient(180deg, var(--tv-bois-2), var(--bg-secondary)); border-block: 1px solid var(--tv-trait); }
.tv-sec-h { margin-bottom: 22px; }
.tv-sec-h h2 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: .03em; font-size: clamp(1.3rem, 3vw, 1.9rem); margin: 0; }
.tv-sec-h p { color: var(--text-muted); margin: 6px 0 0; max-width: 62ch; }

/* Tables ouvertes en ce moment */
.tv-ouvertes { padding: 40px 0 8px; }
.tv-ouvertes[hidden] { display: none; }
.tv-tables { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.tv-table { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--bg-card); border: 1px solid var(--tv-trait); }
.tv-table-ico { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; font-size: 1.35rem; color: var(--tv-or); background: rgba(255, 209, 102, .08); }
.tv-table-c { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.tv-table-c b { color: var(--text-primary); }
.tv-table-c small { color: var(--text-muted); font-size: .84rem; }
.tv-table-go { flex: none; padding: 8px 12px; border-radius: 10px; font-weight: 800; font-size: .88rem; color: #1a1205; text-decoration: none; background: linear-gradient(135deg, var(--tv-or), var(--tv-ambre)); white-space: nowrap; }

/* Les jeux */
.tv-jeux { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.tv-jeu { display: flex; flex-direction: column; overflow: hidden; border-radius: 16px; background: var(--bg-card); border: 1px solid var(--border-color); transition: transform .15s ease, border-color .15s ease; }
.tv-jeu:hover { transform: translateY(-3px); border-color: var(--tv-trait); }
.tv-jeu img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.tv-jeu-c { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tv-jeu h3 { display: flex; align-items: center; gap: 10px; margin: 0; font-family: var(--font-display); font-size: 1.12rem; text-transform: uppercase; letter-spacing: .03em; }
.tv-jeu-ico { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; font-size: 1.15rem; color: var(--tv-or); background: rgba(255, 209, 102, .1); }
.tv-jeu-belote .tv-jeu-ico, .tv-jeu-poker .tv-jeu-ico { color: #ff6b6b; }
.tv-jeu p { color: var(--text-secondary); margin: 0; font-size: .96rem; flex: 1; }
.tv-tag { align-self: flex-start; font-size: .76rem; font-weight: 700; color: var(--text-muted); border: 1px solid var(--border-color); border-radius: 999px; padding: 2px 9px; }

/* Tuiles « entre potes » et « avec ton compte » */
.tv-tuiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.tv-tuiles-2 { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.tv-tuile { padding: 18px; border-radius: 16px; background: rgba(15, 11, 8, .55); border: 1px solid var(--tv-trait); }
.tv-tuile-ico { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; font-size: 1.5rem; background: rgba(255, 209, 102, .1); }
.tv-tuile h3 { margin: 12px 0 6px; font-size: 1.08rem; }
.tv-tuile p { margin: 0; color: var(--text-secondary); font-size: .95rem; }
.tv-compte { display: grid; grid-template-columns: 1.4fr .9fr; gap: 34px; align-items: center; }
.tv-compte-img { margin: 0; }
.tv-compte-img img { display: block; width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--tv-trait); }

/* Galerie */
.tv-galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.tv-galerie figure { margin: 0; }
.tv-galerie img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; border: 1px solid var(--border-color); transition: border-color .15s ease; }
.tv-galerie a:hover img { border-color: var(--tv-or); }
.tv-galerie figcaption { color: var(--text-muted); font-size: .88rem; margin-top: 6px; }

/* FAQ */
.tv-faq { max-width: 820px; }
.tv-faq details { border: 1px solid var(--border-color); border-radius: 12px; background: var(--bg-card); margin-bottom: 10px; }
.tv-faq summary { cursor: pointer; padding: 14px 16px; font-weight: 700; color: var(--text-primary); font-size: 1.05rem; list-style-position: inside; }
.tv-faq details[open] summary { color: var(--tv-or); }
.tv-faq details p { margin: 0; padding: 0 16px 14px; color: var(--text-secondary); }

/* Appel final */
.tv-fin { padding: 56px 0 64px; text-align: center; border-top: 1px solid var(--tv-trait);
  background: radial-gradient(ellipse at 50% 100%, rgba(255, 159, 28, .18), transparent 60%), var(--tv-bois); }
.tv-fin .tv-accroche { margin-bottom: 18px; }

/* ── v2 (Taverne 0.1.5) : sommaire, « à table », Arcade, vocal, historique, bientôt ── */
.tv-hero-txt b { color: var(--tv-or); }
.tv-sommaire { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 44px; }
.tv-sommaire a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; font-weight: 700; font-size: .92rem; color: var(--text-secondary); text-decoration: none;
  background: rgba(15, 11, 8, .6); border: 1px solid var(--tv-trait); transition: color .15s ease, border-color .15s ease; }
.tv-sommaire a:hover, .tv-sommaire a:focus-visible { color: var(--tv-or); border-color: var(--tv-or); }
.tv-main section[id] { scroll-margin-top: 84px; }

.tv-sous-titre { margin: 38px 0 14px; font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: .03em; font-size: 1.15rem; color: var(--tv-or) !important; }
.tv-tuiles-s { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.tv-tuiles-s .tv-tuile { padding: 14px 16px; display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 12px; align-items: start; align-content: start; }
.tv-tuiles-s .tv-tuile-ico { width: 40px; height: 40px; border-radius: 12px; font-size: 1.25rem; grid-row: span 2; }
.tv-tuiles-s .tv-tuile h3 { margin: 2px 0 4px; font-size: 1rem; }
.tv-tuiles-s .tv-tuile p { font-size: .92rem; }

/* L'Arcade */
.tv-arcade { background: radial-gradient(ellipse at 85% 0%, rgba(0, 200, 255, .12), transparent 55%), radial-gradient(ellipse at 10% 100%, rgba(255, 159, 28, .12), transparent 55%), linear-gradient(180deg, var(--tv-bois-2), var(--bg-secondary)); }
.tv-jeux-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tv-arcade .tv-jeu { border-color: var(--tv-trait); }
.tv-arcade .tv-jeu-ico { font-size: 1.3rem; }
/* 1.3.0 : 7 jeux = la vedette (La Cascade) sur toute la largeur, puis 3 × 2 cartes. Pastille « Nouveau » dans le titre. */
.tv-jeu-neuf { margin-left: auto; padding: 2px 9px; font-size: .68rem; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.tv-jeu-vedette { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); border-color: rgba(0, 200, 255, .45) !important;
  background: linear-gradient(120deg, rgba(0, 200, 255, .1), var(--bg-card) 45%, rgba(255, 209, 102, .08)); box-shadow: 0 20px 50px rgba(0, 0, 0, .35); }
.tv-jeu-vedette img { height: 100%; min-height: 100%; }
.tv-jeu-vedette .tv-jeu-c { padding: 24px 26px; justify-content: center; gap: 10px; }
.tv-jeu-vedette .tv-surtitre { flex: none; color: #5ee0ff !important; }
.tv-jeu-vedette h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.tv-jeu-vedette .tv-jeu-ico { width: 44px; height: 44px; font-size: 1.6rem; background: rgba(0, 200, 255, .14); }
.tv-jeu-vedette p:not(.tv-surtitre) { flex: none; font-size: 1.02rem; }

.tv-duo { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 34px; align-items: start; }
.tv-defi { align-items: center; }
.tv-defi { margin-top: 34px; padding: 22px; border-radius: 20px; border: 1px solid rgba(255, 209, 102, .4);
  background: linear-gradient(120deg, rgba(255, 209, 102, .1), rgba(15, 11, 8, .6) 55%, rgba(0, 200, 255, .08)); box-shadow: 0 20px 50px rgba(0, 0, 0, .35); }
.tv-duo-img { margin: 0; }
.tv-duo-img img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--tv-trait); box-shadow: 0 18px 44px rgba(0, 0, 0, .45); }
.tv-duo-img a:hover img { border-color: var(--tv-or); }
.tv-duo-txt h3 { margin: 0 0 10px; font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.2rem, 2.4vw, 1.55rem); }
.tv-duo-txt > p { color: var(--text-secondary); margin: 0 0 10px; font-size: 1.04rem; }
.tv-duo-txt > p b { color: var(--text-primary); }
.tv-surtitre { margin: 0 0 4px !important; font-size: .78rem !important; text-transform: uppercase; letter-spacing: .14em; color: var(--tv-ambre) !important; font-weight: 700; }
.tv-puces { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tv-puces li { padding: 6px 12px; border-radius: 999px; font-size: .88rem; font-weight: 700; color: var(--text-primary); background: rgba(255, 255, 255, .05); border: 1px solid var(--tv-trait); }
.tv-defi .tv-cta { margin-top: 18px; }

.tv-arcade-bas { margin-top: 28px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 26px; align-items: start; }
.tv-arcade-tuiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
/* 1.3.0 : 8 badges → la tuile « Niveau, XP et badges » prend toute la largeur (badges sur 4 colonnes), les 3 autres tuiles dessous */
.tv-tuile-xp { grid-column: 1 / -1; }
.tv-tuile-xp .tv-badges-liste { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tv-badges-liste { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tv-badges-liste li { display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 8px; align-items: center; padding: 7px 9px; border-radius: 12px; background: rgba(255, 209, 102, .07); border: 1px solid var(--tv-trait); }
.tv-badges-liste li span { grid-row: span 2; font-size: 1.3rem; text-align: center; }
.tv-badges-liste b { color: var(--tv-or); font-size: .92rem; line-height: 1.2; }
.tv-badges-liste small { color: var(--text-muted); font-size: .78rem; line-height: 1.25; }
.tv-tels { margin: 0; display: grid; grid-template-columns: 170px 170px; gap: 14px; align-items: end; }
.tv-tels img { display: block; width: 100%; height: auto; border-radius: 22px; border: 3px solid #2a2f45; box-shadow: 0 18px 40px rgba(0, 0, 0, .5); background: #0b0b18; }
.tv-tels figcaption { grid-column: 1 / -1; text-align: center; color: var(--text-muted); font-size: .9rem; }

/* Le vocal, l'historique : listes d'une ligne par idée */
.tv-cle { margin: 0 0 18px !important; padding: 14px 16px; border-radius: 14px; color: var(--text-primary) !important; background: linear-gradient(120deg, rgba(6, 214, 160, .14), rgba(15, 11, 8, .6)); border: 1px solid rgba(6, 214, 160, .45); }
.tv-cle b { color: #06d6a0; }
.tv-cle a { color: var(--tv-or); font-weight: 700; }
.tv-liste { display: grid; gap: 12px; }
.tv-ligne, .tv-discord, .tv-bientot li { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 12px; align-items: start; }
.tv-ligne-ico { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; font-size: 1.3rem; background: rgba(255, 209, 102, .1); }
.tv-ligne h3, .tv-discord h3, .tv-bientot h3 { margin: 1px 0 3px; font-size: 1.02rem; }
.tv-ligne p, .tv-discord p, .tv-bientot p { margin: 0; color: var(--text-secondary); font-size: .95rem; }
.tv-discord { margin-top: 16px; padding: 14px; border-radius: 14px; background: rgba(88, 101, 242, .12); border: 1px solid rgba(88, 101, 242, .45); }
.tv-discord .tv-ligne-ico { background: rgba(88, 101, 242, .25); }
.tv-duo-inverse .tv-duo-img { order: 2; }
#historique .tv-cta { margin-top: 18px; }

/* ✨ Nouveau dans la 0.1.6 (1.2.0) : tuiles teintées cyan, pour les repérer d'un coup d'œil ; 3 colonnes (9 tuiles) */
.tv-tuiles-neuf { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tv-neuf { background: radial-gradient(ellipse at 50% 0%, rgba(0, 200, 255, .1), transparent 60%); }
.tv-tuiles-neuf .tv-tuile { border-color: rgba(0, 200, 255, .32); background: linear-gradient(135deg, rgba(0, 200, 255, .08), rgba(15, 11, 8, .6)); }
.tv-tuiles-neuf .tv-tuile-ico { background: rgba(0, 200, 255, .14); }
/* ⚔️ Le défi entre amis (Arcade) : violet, comme un groupe */
.tv-defi-amis { border-color: rgba(168, 85, 247, .5); background: linear-gradient(120deg, rgba(168, 85, 247, .16), rgba(15, 11, 8, .6) 55%, rgba(255, 209, 102, .1)); }
.tv-defi-amis .tv-surtitre { color: #c084fc !important; }

/* 1.4.0 : la version de la Taverne sur chaque tuile de « Quoi de neuf » */
.tv-tuile-v { display: inline-block; margin-left: 4px; padding: 1px 8px; border-radius: 999px; vertical-align: 2px; white-space: nowrap;
  font-family: var(--font-mono); font-size: .7rem; font-weight: 700; color: #5ee0ff; background: rgba(0, 200, 255, .1); border: 1px solid rgba(0, 200, 255, .35); }
/* 1.4.0 : 🏆 Classements et tournois (or, comme les couronnes de /classements) ; 5 tuiles sur une ligne quand il y a la place */
.tv-tournois { background: radial-gradient(ellipse at 50% 0%, rgba(255, 209, 102, .14), transparent 60%), radial-gradient(ellipse at 100% 100%, rgba(123, 44, 191, .16), transparent 55%);
  border-block: 1px solid var(--tv-trait); }
.tv-tuiles-to { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.tv-tuiles-to .tv-tuile { border-color: rgba(255, 209, 102, .4); background: linear-gradient(160deg, rgba(255, 209, 102, .09), rgba(15, 11, 8, .6) 60%); }
.tv-tournois .tv-cta { margin-top: 22px; }

/* Bientôt */
.tv-bientot { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.tv-bientot li { padding: 14px 16px; border-radius: 14px; border: 1px dashed rgba(255, 209, 102, .4); background: rgba(15, 11, 8, .45); }

/* ── Bloc « 🍺 Nouveau : La Taverne » de l'accueil (index.php) ──
   1.2.0 (Taverne 0.1.6) : deux images côte à côte (cartes et plateaux | l'Arcade), chacune liée à sa section de /taverne ;
   téléphone : l'une sous l'autre, en léger chevauchement (la 1re passe au-dessus : la main de cartes reste visible). */
.tv-accueil { padding: 34px 0; }
.tv-accueil-carte { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 0; overflow: hidden; border-radius: 20px; border: 1px solid var(--tv-trait);
  background: linear-gradient(120deg, var(--tv-bois-2) 0%, var(--tv-bois) 55%, rgba(123, 44, 191, .25) 100%); box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
.tv-accueil-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 20px; }
.tv-accueil-fig { position: relative; display: block; overflow: hidden; border-radius: 14px; border: 1px solid var(--tv-trait); background: #0b0806;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .5); transition: transform .15s ease, border-color .15s ease; }
/* Ordinateur : les deux images prennent toute la hauteur de la carte (cadrage portrait : la main de cartes au centre,
   le panneau des jeux de l'Arcade à droite de sa capture) */
.tv-accueil-fig { min-height: 280px; }
.tv-accueil-fig img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.tv-accueil-fig-b img { object-position: 100% 50%; }
.tv-accueil-fig:hover, .tv-accueil-fig:focus-visible { transform: translateY(-3px); border-color: var(--tv-or); }
.tv-accueil-etiq { position: absolute; left: 10px; top: 10px; padding: 5px 12px; border-radius: 999px; font-weight: 800; font-size: .92rem; white-space: nowrap;
  color: var(--tv-or); background: rgba(15, 11, 8, .9); border: 1px solid var(--tv-trait); box-shadow: 0 4px 14px rgba(0, 0, 0, .5); }
.tv-accueil-puces { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tv-accueil-puces li { padding: 6px 12px; border-radius: 999px; font-size: .9rem; font-weight: 700; color: var(--text-primary); background: rgba(255, 209, 102, .07); border: 1px solid var(--tv-trait); }
.tv-accueil-c { padding: 26px 28px 26px 8px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.tv-accueil-c h2 { margin: 0; font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: clamp(1.35rem, 3vw, 2rem); color: var(--text-primary); }
.tv-accueil-c h2 span { background: linear-gradient(90deg, var(--tv-or), var(--tv-ambre)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tv-accueil-c p { margin: 0; color: var(--text-secondary); font-size: 1.05rem; }
.tv-accueil-direct { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; color: var(--text-secondary); }
.tv-accueil-direct[hidden] { display: none; }
.tv-accueil-direct .tv-heros { font-size: 2.3rem; margin: 0; }
.tv-accueil-direct .tv-point { align-self: center; }
.tv-accueil .tv-cta { margin-top: 4px; }
/* 1.4.0 : le lien discret sous les boutons (classements, ou le tournoi du moment quand il y en a un) */
.tv-accueil-lien { margin: 0; font-size: .95rem !important; }
.tv-accueil-lien a { color: var(--tv-or); font-weight: 700; text-decoration: none; border-bottom: 1px dashed rgba(255, 209, 102, .5); }
.tv-accueil-lien a:hover, .tv-accueil-lien a:focus-visible { color: #fff; border-bottom-color: var(--tv-or); }

/* ── Téléphone ── */
@media (max-width: 1100px) {
  .tv-arcade-bas { grid-template-columns: 1fr; }
  .tv-tels { justify-content: center; }
}
@media (max-width: 900px) {
  .tv-duo { grid-template-columns: 1fr; gap: 20px; }
  .tv-duo-inverse .tv-duo-img { order: 0; }
  .tv-defi-amis .tv-duo-img { order: -1; }   /* téléphone et tablette : l'image d'abord, comme le défi du jour */
  .tv-tuiles-neuf { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
  .tv-jeux-3 { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
  .tv-jeu-vedette { grid-template-columns: 1fr; }
  .tv-jeu-vedette img { height: auto; min-height: 0; aspect-ratio: 16 / 9; }
  .tv-jeu-vedette .tv-jeu-c { padding: 16px 18px 18px; }
  .tv-sommaire { margin-top: 48px; }
  .tv-hero-grid, .tv-compte, .tv-accueil-carte { grid-template-columns: 1fr; }
  .tv-hero { padding: 30px 0 46px; }
  .tv-direct { left: 12px; bottom: -26px; }
  .tv-accueil-duo { padding: 16px 16px 4px; }
  .tv-accueil-fig { min-height: 0; }
  .tv-accueil-fig img { position: static; height: auto; aspect-ratio: 16 / 9; }
  .tv-accueil-c { padding: 20px 24px 24px; }
}
@media (max-width: 760px) {
  .tv-arcade-tuiles { grid-template-columns: 1fr; }
  .tv-tuile-xp .tv-badges-liste { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .tv-titre { white-space: normal; }
  .tv-jouer { width: 100%; padding: 0 20px; }
  .tv-cta { flex-direction: column; align-items: stretch; }
  .tv-cta .btn { text-align: center; }
  .tv-direct { position: relative; left: auto; bottom: auto; margin-top: -30px; margin-inline: 10px; max-width: none; min-width: 0; }
  .tv-hero { padding-bottom: 30px; }
  .tv-sec { padding: 38px 0; }
  .tv-accueil-c { padding: 18px 18px 22px; }
  .tv-accueil-duo { grid-template-columns: 1fr; gap: 0; padding: 14px 14px 0; }
  .tv-accueil-fig { width: 90%; }
  .tv-accueil-fig:first-child { z-index: 1; }
  .tv-accueil-fig-b { justify-self: end; margin-top: -22px; }
  .tv-accueil-fig-b .tv-accueil-etiq { top: auto; bottom: 10px; left: auto; right: 10px; }
  .tv-accueil-etiq { font-size: .85rem; padding: 4px 10px; }
  .tv-accueil-puces li { font-size: .85rem; padding: 5px 10px; }
  .tv-table { flex-wrap: wrap; }
  .tv-table-go { width: 100%; text-align: center; }
  .tv-arcade-tuiles { grid-template-columns: 1fr; }
  .tv-defi { padding: 14px; }
  /* Les cartes des jeux en lignes (image à gauche) : la page reste courte sur téléphone */
  .tv-jeu { display: grid; grid-template-columns: 112px minmax(0, 1fr); }
  .tv-jeu img { height: 100%; aspect-ratio: auto; min-height: 120px; }
  .tv-jeu-c { padding: 12px 13px 13px; gap: 6px; }
  .tv-jeu h3 { font-size: 1rem; gap: 8px; }
  .tv-jeu-ico { width: 28px; height: 28px; font-size: 1rem; border-radius: 8px; }
  /* La vedette garde son image en grand, au-dessus du texte */
  .tv-jeu-vedette { display: flex; flex-direction: column; }
  .tv-jeu-vedette img { height: auto; min-height: 0; aspect-ratio: 16 / 9; }
  .tv-jeu-vedette h3 { font-size: 1.2rem; }
  .tv-jeu-vedette .tv-jeu-ico { width: 36px; height: 36px; font-size: 1.3rem; }
  .tv-jeu-vedette p:not(.tv-surtitre) { font-size: .95rem; }
  /* « Nouveau » posé sur le coin de l'image : le titre garde toute la place */
  .tv-jeu { position: relative; }
  .tv-jeu-neuf { position: absolute; left: 6px; top: 6px; font-size: .6rem; padding: 2px 7px; box-shadow: 0 3px 10px rgba(0, 0, 0, .5); }
  .tv-jeu-demineur img { object-position: 0 50%; }   /* les dalles et le drapeau, à gauche de la vignette */
  .tv-jeu p { font-size: .9rem; }
  .tv-galerie { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .tv-galerie img { border-radius: 9px; }
  .tv-galerie figcaption { font-size: .78rem; line-height: 1.3; }
  .tv-tels { grid-template-columns: repeat(2, minmax(0, 150px)); }
  .tv-sommaire { gap: 6px; margin-top: 18px; }
  .tv-sommaire a { min-height: 36px; padding: 0 11px; font-size: .86rem; }
  .tv-sous-titre { margin-top: 30px; }
}
@media (max-width: 400px) {
  .tv-badges-liste, .tv-tuile-xp .tv-badges-liste { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .tv-point { animation: none; }
  .tv-jouer, .tv-jeu, .tv-sommaire a, .tv-accueil-fig { transition: none; }
  .tv-jouer:hover, .tv-jeu:hover, .tv-accueil-fig:hover { transform: none; }
}
