/* ============================================================
   Écran « Vision 26-27 » (cf. js/pages/vision.js)
   ============================================================
   Trois écrans : la garde et ses deux portes, Notre Chemin (la frise et
   sa route), Notre Puzzle. Le bleu du mur du staff (#002a6a) sert de
   fond à la frise ; vert = victoire (la route), rouge = défaite (le
   chemin de terre), comme les cartes de l'appli.

   FLUIDITÉ : la route se pose carré après carré et les pièces
   s'aimantent par transform / opacity seulement, avec un délai par rang
   (--k). Rien ne s'anime tant que le bloc n'est pas à l'écran (.est-vu,
   posé par ui.js). */

.pv {
  --mur: #002a6a; --mur-2: #00235e;
  --v: #36d27a; --d: #ff5a63;
  --v-fond: linear-gradient(180deg, #2db552, #1a8a3a);
  --d-fond: linear-gradient(180deg, #e3434a, #b3222a);
}

.pv-attente { display: grid; place-items: center; min-height: 50vh; }
.pv-attente i { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--ligne-2); border-top-color: var(--bleu-2); animation: tourne .9s linear infinite; }

.pv-retour {
  display: inline-flex; align-items: center; gap: 6px; margin: 6px 0 14px; padding: 6px 13px 6px 10px; border-radius: 999px;
  font-size: 12.5px; font-weight: 750; color: var(--texte-2); background: rgba(255, 255, 255, .06); border: 1px solid var(--ligne);
  transition: color .2s, background .2s, border-color .2s;
}
.pv-retour svg { width: 15px; height: 15px; transition: transform .25s var(--doux); }
.pv-retour:hover { color: #fff; background: rgba(47, 107, 255, .22); border-color: rgba(143, 179, 255, .4); }
.pv-retour:hover svg { transform: translateX(-3px); }

/* ============================================================
   PAGE DE GARDE
   ============================================================ */
.pv-garde {
  position: relative; overflow: hidden; isolation: isolate; margin: 6px 0 10px; text-align: center;
  padding: clamp(30px, 5vw, 58px) clamp(16px, 3.4vw, 44px) clamp(26px, 3.4vw, 40px);
  border-radius: 30px; border: 1px solid var(--ligne-2);
  background:
    radial-gradient(70% 60% at 50% 0%, rgba(127, 179, 224, .2), transparent 70%),
    linear-gradient(160deg, #0a1f44 0%, #123a78 45%, #0a1f44 100%);
  box-shadow: 0 50px 120px -60px rgba(47, 107, 255, .8);
}
/* Deux halos qui dérivent : des dégradés, pas de flou (rien à recalculer). */
.pv-garde-fond { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.pv-garde-fond i { position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; will-change: transform; }
.pv-garde-fond i:first-child { left: -25%; top: -45%; background: radial-gradient(circle, rgba(127, 179, 224, .24), transparent 62%); animation: pv-derive 22s ease-in-out infinite alternate; }
.pv-garde-fond i:last-child { right: -28%; bottom: -55%; background: radial-gradient(circle, rgba(199, 40, 45, .16), transparent 60%); animation: pv-derive 27s ease-in-out infinite alternate-reverse; }
@keyframes pv-derive { to { transform: translate3d(12%, 8%, 0) scale(1.08); } }
.pv-garde-corps { max-width: 720px; margin: 0 auto; }
.pv-garde-logo { width: clamp(78px, 8vw, 104px); margin: 0 auto 16px; filter: drop-shadow(0 18px 40px rgba(47, 107, 255, .55)); animation: flotte 5s ease-in-out infinite; }
.pv-garde-sur { font-size: 11.5px; font-weight: 800; letter-spacing: .32em; text-transform: uppercase; color: var(--texte-2); }
.pv-garde-t { margin: 8px 0 4px; font: 600 clamp(40px, 6.4vw, 84px)/.92 var(--titre); letter-spacing: .01em; text-transform: uppercase;
  background: linear-gradient(180deg, #fff 40%, #a9c4ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pv-garde-ss { font-size: clamp(17px, 2vw, 24px); font-weight: 300; letter-spacing: .3em; color: rgba(238, 243, 255, .9); }
.pv-garde-trait { width: 70px; height: 3px; margin: 20px auto; border-radius: 2px; background: linear-gradient(90deg, transparent, #7fb3e0, transparent); }
.pv-garde-x { max-width: 500px; margin: 0 auto; color: var(--texte-2); font-size: 15.5px; line-height: 1.6; }

.pv-portes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 1100px; margin: clamp(26px, 4vw, 40px) auto 0; text-align: left; }
.pv-porte {
  position: relative; display: grid; grid-template-rows: auto 1fr; overflow: hidden; isolation: isolate; border-radius: 24px;
  background: linear-gradient(170deg, rgba(10, 24, 60, .85), rgba(4, 9, 26, .9)); border: 1px solid rgba(143, 179, 255, .2);
  transition: transform .4s var(--ressort), border-color .3s, box-shadow .4s, opacity .7s var(--doux);
}
.pv-porte:hover { transform: translate3d(0, -4px, 0); border-color: rgba(143, 179, 255, .5); box-shadow: 0 30px 70px -34px rgba(47, 107, 255, .85); }
.pv-porte.apparait:not(.est-vu) { transform: translate3d(0, 18px, 0); }
.pv-porte-vue { position: relative; overflow: hidden; aspect-ratio: 2.1; background: var(--mur); }
.pv-porte-vue::after { content: ""; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(transparent, rgba(4, 9, 26, .55)); pointer-events: none; }
.pv-apercu { position: absolute; left: 0; top: 0; width: 100%; overflow: hidden; transition: transform .8s var(--doux); }
.pv-porte:hover .pv-apercu { transform: scale(1.03); }
.pv-porte-duo { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 4%; padding: 14px; background: radial-gradient(80% 90% at 50% 100%, rgba(47, 107, 255, .25), transparent 70%), #06152e; }
.pv-porte-complet { height: 100%; width: auto; border-radius: 8px; opacity: .5; filter: saturate(.7); transition: opacity .4s, transform .6s var(--doux); }
.pv-porte-notre { height: 100%; aspect-ratio: .6988; transition: transform .6s var(--doux); }
.pv-porte:hover .pv-porte-complet { opacity: .7; transform: translate3d(-4px, 0, 0) rotate(-1.5deg); }
.pv-porte:hover .pv-porte-notre { transform: translate3d(4px, 0, 0) rotate(1.5deg); }
.pv-porte .pv-piece span { display: none; }
.pv-porte-txt { display: grid; gap: 4px; padding: 16px 64px 18px 20px; }
.pv-porte-txt b { font: 600 24px/1 var(--titre); text-transform: uppercase; letter-spacing: .04em; }
.pv-porte-txt > span { font-size: 13.5px; color: var(--texte-2); }
.pv-porte-puces { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 8px; }
.pv-porte-puces em { font-style: normal; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 800; letter-spacing: .03em; color: var(--texte-2); background: var(--surface-2); border: 1px solid var(--ligne); }
.pv-porte-puces em.est-v { color: #a9f0c6; background: rgba(54, 210, 122, .14); border-color: rgba(54, 210, 122, .3); }
.pv-porte-puces em.est-d { color: #ffc0c4; background: rgba(255, 90, 99, .14); border-color: rgba(255, 90, 99, .3); }
.pv-porte-puces .pv-jauge { flex: 1; min-width: 80px; }
.pv-porte-fleche { position: absolute; right: 18px; bottom: 20px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: rgba(47, 107, 255, .2); border: 1px solid rgba(143, 179, 255, .35); color: #fff; transition: transform .35s var(--ressort), background .25s; }
.pv-porte-fleche svg { width: 18px; height: 18px; }
.pv-porte:hover .pv-porte-fleche { transform: translate3d(4px, 0, 0); background: var(--bleu); }
.pv-garde-t14 { width: 80px; margin: clamp(22px, 3vw, 34px) auto 0; opacity: .9; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .4)); }

/* Une jauge : la part faite, en transform seulement. */
.pv-jauge { display: block; height: 6px; border-radius: 6px; overflow: hidden; background: rgba(255, 255, 255, .08); }
.pv-jauge i { display: block; height: 100%; border-radius: 6px; transform-origin: 0 50%; transform: scaleX(var(--p)); background: linear-gradient(90deg, var(--coul, var(--bleu)), color-mix(in srgb, var(--coul, var(--bleu)) 55%, #fff)); }

/* ============================================================
   NOTRE CHEMIN
   ============================================================ */
.pv-chiffres { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pv-chiffres .chiffre.est-v b { color: var(--v); }
.pv-chiffres .chiffre.est-d b { color: var(--d); }
.pv-ou b { font-size: 28px !important; line-height: 1.05 !important; padding-right: 54px; }
.pv-ou small { padding-right: 54px; }
.pv-ou img { position: absolute; right: 16px; top: 50%; width: 48px; height: 48px; border-radius: 12px; transform: translateY(-50%) rotate(-6deg); box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .12); }

.pv-outils { gap: 12px 16px; margin-bottom: 14px; }
.pv-legende { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; font-weight: 650; color: var(--texte-2); }
.pv-legende span { display: inline-flex; align-items: center; gap: 8px; }
.pv-legende img { width: 22px; height: 22px; border-radius: 5px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12); }
.pv-rejouer { margin-left: auto; }

/* La fenêtre : toute la saison (l'image entière), ou la vue rapprochée
   qui défile horizontalement. */
.pv-frise { position: relative; }
.pv-fenetre {
  position: relative; overflow: hidden; border-radius: 22px; background: var(--mur);
  border: 1px solid var(--ligne-2); box-shadow: 0 40px 90px -50px rgba(47, 107, 255, .75);
  outline-offset: 3px;
}
.pv-frise[data-vue="pres"] .pv-fenetre { overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: rgba(143, 179, 255, .35) transparent; cursor: grab; }
.pv-fenetre.est-glisse { cursor: grabbing; }
.pv-fenetre.est-glisse .pv-cible { pointer-events: none; }
.pv-piste { position: relative; overflow: hidden; }
.pv-toile { position: absolute; left: 0; top: 0; width: 100%; height: 100%; container-type: inline-size; }
.pv-mur { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; user-select: none; -webkit-user-drag: none; pointer-events: none; }

/* La route : un carré par match (deux pour un virage), à la place que lui
   donne l'appli. Elle se pose carré après carré. */
.pv-carre { position: absolute; overflow: hidden; pointer-events: none; opacity: 0; transform: scale(.55); }
.pv-carre img { display: block; width: 100%; height: 100%; max-width: none; object-fit: fill; transition: filter .25s; }
.est-vu .pv-carre { opacity: 1; transform: none; transition: transform .6s var(--ressort) calc(var(--k) * 95ms + 150ms), opacity .3s linear calc(var(--k) * 95ms + 150ms); }
.pv-carre.est-survol img, .pv-carre.est-choisi img { filter: brightness(1.18) saturate(1.1); }

/* Le score dans la carte : CO au-dessus, l'adversaire dessous quand la
   carte est étroite ; sur une ligne dès qu'il y a la place. */
.pv-score {
  position: absolute; container-type: size; display: grid; place-items: center; overflow: hidden;
  border-radius: 6px; color: #fff; font-family: var(--titre); font-variant-numeric: tabular-nums; line-height: .95;
  opacity: 0; transform: scale(.6);
}
.est-vu .pv-score { opacity: 1; transform: none; transition: transform .5s var(--ressort) calc(var(--k) * 95ms + 330ms), opacity .25s linear calc(var(--k) * 95ms + 330ms); }
.est-vu .pv-score.est-vide { transition-delay: .2s; }
.pv-score.est-gagne { background: var(--v-fond); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 4px 14px -4px rgba(54, 210, 122, .7); }
.pv-score.est-perdu { background: var(--d-fond); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 4px 14px -4px rgba(255, 90, 99, .6); }
.pv-score.est-vide { background: rgba(255, 255, 255, .07); color: rgba(255, 255, 255, .38); }
/* Toujours « 16 - 08 » sur une ligne, à la taille de la carte. */
.pv-score-v { white-space: nowrap; font-weight: 600; font-size: min(44cqh, 22cqw); letter-spacing: -.01em; }
.pv-score-v em { font-style: normal; }
@container (max-width: 15px) { .pv-score-v { display: none; } }

/* Le ballon du CO au bout de la route : là où la saison en est. */
/* Le bus du CO (photo détourée, avant à droite), les roues sur la route. */
.pv-bus { position: absolute; aspect-ratio: 3 / 1; transform: translate(0, -78%); pointer-events: none; opacity: 0; }
.pv-bus img { width: 100%; height: auto; max-width: none; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .55)); animation: pv-roule 1.6s ease-in-out infinite; }
.est-vu .pv-bus { opacity: 1; transform: translate(0, -78%); transition: opacity .4s linear calc(var(--k) * 95ms + 250ms); }
@keyframes pv-roule { 50% { transform: translate3d(0, -2.5%, 0); } }

/* Les cibles : une par carte, de la route au bas de la carte. */
.pv-cible { position: absolute; z-index: 2; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 6px; }
.pv-cible::before { content: ""; position: absolute; inset: 0 0 calc(100% - var(--carte)); border-radius: 6px 6px 0 0; background: linear-gradient(180deg, transparent, rgba(143, 179, 255, .16)); opacity: 0; transition: opacity .2s; }
.pv-cible::after { content: ""; position: absolute; inset: var(--carte) -2px 0; border-radius: 8px; box-shadow: 0 0 0 2px rgba(143, 179, 255, .9), 0 0 22px rgba(91, 140, 255, .65); opacity: 0; transition: opacity .2s; }
.pv-cible:hover::before, .pv-cible:hover::after { opacity: 1; }
.pv-cible.est-choisi::after { opacity: 1; box-shadow: 0 0 0 2px var(--or), 0 0 24px rgba(245, 196, 81, .55); }
.pv-cible:focus-visible { outline: none; }
.pv-cible:focus-visible::after { opacity: 1; }

/* Le rail des trente matchs : la frise en un coup d'œil, et la partie
   visible de la vue rapprochée. */
.pv-rail { position: relative; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 3px; margin-top: 12px; padding: 4px; border-radius: 14px; background: var(--surface); border: 1px solid var(--ligne); }
.pv-rail-c {
  position: relative; min-width: 0; height: 30px; padding: 0; border: 0; border-radius: 7px; display: grid; place-items: center;
  font: 600 10.5px var(--titre); letter-spacing: .02em; color: var(--texte-3); background: rgba(255, 255, 255, .05);
  transition: transform .2s var(--ressort), background .2s, color .2s;
}
.pv-rail-c span { overflow: hidden; white-space: nowrap; }
.pv-rail-c.est-coupe { box-shadow: inset 0 2px 0 var(--or); }
.pv-rail-c.est-v { color: #fff; background: var(--v-fond); }
.pv-rail-c.est-d { color: #fff; background: var(--d-fond); }
.pv-rail-c:hover { transform: translate3d(0, -2px, 0); color: #fff; }
.pv-rail-c.est-choisi { outline: 2px solid var(--or); outline-offset: 1px; z-index: 1; }
.pv-rail-fenetre { position: absolute; top: 1px; bottom: 1px; left: 0; border-radius: 10px; border: 2px solid rgba(143, 179, 255, .85); box-shadow: 0 0 18px rgba(91, 140, 255, .5); pointer-events: none; opacity: 0; transition: opacity .3s; }

/* Le détail d'une rencontre, sous la frise. */
.pv-detail { margin-top: 16px; }
.pv-detail-c {
  --res: var(--texte-3);
  position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; padding: 16px 20px; border-radius: 20px;
  background: linear-gradient(165deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .015)); border: 1px solid var(--ligne);
  animation: pv-entre .35s var(--doux);
}
.pv-detail-c::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--res); }
.pv-detail-c.est-v { --res: var(--v); } .pv-detail-c.est-d { --res: var(--d); }
.pv-detail-c.est-avenir { opacity: .8; }
@keyframes pv-entre { from { opacity: 0; transform: translate3d(0, 6px, 0); } }
.pv-detail-cle { display: grid; gap: 2px; min-width: 120px; }
.pv-detail-cle b { font: 600 34px/1 var(--titre); }
.pv-detail-cle span { font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--texte-3); }
.pv-detail-affiche { display: flex; align-items: center; gap: 14px; flex: 1 1 340px; min-width: 0; }
.pv-ecu { display: grid; place-items: center; flex: none; width: 52px; height: 52px; padding: 7px; border-radius: 15px; background: #fff; box-shadow: 0 12px 26px rgba(0, 0, 0, .35); }
.pv-ecu img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pv-ecu i { font: 600 17px var(--titre); font-style: normal; color: #0a1433; }
.pv-detail-nom { display: grid; gap: 2px; min-width: 0; }
.pv-detail-nom small { font-size: 12px; font-weight: 650; color: var(--texte-3); }
.pv-detail-nom b { font: 600 20px/1.1 var(--titre); text-transform: uppercase; letter-spacing: .03em; overflow-wrap: anywhere; }
.pv-detail-score { margin-left: auto; display: flex; align-items: baseline; gap: 6px; font: 600 40px/1 var(--titre); font-variant-numeric: tabular-nums; }
.pv-detail-score b + i + b { color: var(--texte-2); }
.pv-detail-score i { font-style: normal; font-size: 24px; color: var(--texte-3); }
.pv-detail-res { padding: 4px 11px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: color-mix(in srgb, var(--res) 26%, transparent); }
.pv-detail-effet { display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 700; color: var(--texte-2); }
.pv-detail-effet i { width: 26px; height: 14px; border-radius: 4px; }
.pv-detail-effet i.est-route { background: repeating-linear-gradient(90deg, #4b4f57 0 6px, #e8e8e8 6px 9px, #4b4f57 9px 14px); box-shadow: inset 0 2px 0 #6c7480, inset 0 -2px 0 #6c7480; }
.pv-detail-effet i.est-terre { background: linear-gradient(180deg, #8a6b43, #c9a776 50%, #8a6b43); }
.pv-detail-lien { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 750; color: #fff; background: rgba(47, 107, 255, .22); border: 1px solid rgba(143, 179, 255, .4); transition: background .2s, transform .25s var(--ressort); }
.pv-detail-lien svg { width: 15px; height: 15px; }
.pv-detail-lien:hover { background: var(--bleu); transform: translate3d(2px, 0, 0); }

/* ============================================================
   NOTRE PUZZLE
   ============================================================ */
.pv-chiffres b em { font-style: normal; }
.pv-chiffres b em.pv-sur { font-size: 20px; color: var(--texte-3); }
.pv-total .pv-jauge { margin-top: 12px; }
.pv-lot-c { box-shadow: inset 0 3px 0 var(--coul); }
.pv-lot-c b { color: color-mix(in srgb, var(--coul) 45%, #fff); }

.pv-onglets-mobile { display: none; margin-bottom: 14px; }
.pv-deux { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: start; }
.pv-col-t { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; font: 600 17px var(--titre); text-transform: uppercase; letter-spacing: .04em; }
.pv-col-t span { font: 700 12.5px var(--corps); letter-spacing: 0; text-transform: none; color: var(--texte-3); }
.pv-cadre {
  padding: 10px; border-radius: 24px; border: 1px solid var(--ligne-2);
  background: linear-gradient(160deg, #0d2350, #06112b); box-shadow: 0 40px 90px -50px rgba(47, 107, 255, .7);
}
.pv-complet { width: 100%; height: auto; border-radius: 14px; }

/* Le nôtre : chaque pièce à sa place, en % de l'image entière. */
.pv-puzzle { position: relative; width: 100%; border-radius: 14px; background: #06152e; }
.pv-piece { position: absolute; transition: opacity .25s; }
.pv-piece img { display: block; width: 100%; height: 100%; max-width: none; object-fit: fill; }
.pv-piece.est-vide {
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--coul) 13%, transparent);
  border: 1px dashed color-mix(in srgb, var(--coul) 70%, transparent);
}
.pv-piece.est-vide span { font: 600 clamp(10px, 1.1vw, 15px) var(--titre); color: color-mix(in srgb, var(--coul) 50%, #fff); opacity: .75; }
/* Une pièce gagnée s'aimante à sa place. */
.pv-piece.est-acquise { z-index: 1; opacity: 0; transform: translate3d(0, -7%, 0) scale(1.1); box-shadow: 0 0 0 1px rgba(255, 255, 255, .14); }
.est-vu .pv-piece.est-acquise { opacity: 1; transform: none; transition: transform .75s var(--ressort) calc(var(--k) * 140ms + 250ms), opacity .35s linear calc(var(--k) * 140ms + 250ms), box-shadow .3s; }
.pv-piece.est-acquise:hover, .pv-piece.est-acquise:focus-visible { z-index: 3; outline: none; box-shadow: 0 0 0 2px var(--or), 0 18px 40px -10px rgba(0, 0, 0, .8); }
.pv-piece.est-vide:hover { background: color-mix(in srgb, var(--coul) 26%, transparent); }
/* Un lot survolé (légende ou chiffres) : ses emplacements ressortent. */
.pv-puzzle[data-lot] .pv-piece { opacity: .22; }
.pv-puzzle[data-lot="t14"] .pv-piece[data-lot="t14"],
.pv-puzzle[data-lot="finales"] .pv-piece[data-lot="finales"],
.pv-puzzle[data-lot="cc"] .pv-piece[data-lot="cc"] { opacity: 1; }
.pv-bulle {
  position: absolute; z-index: 5; max-width: 240px; padding: 8px 11px; border-radius: 12px; pointer-events: none;
  transform: translate(-50%, calc(-100% - 8px)); font-size: 12.5px; font-weight: 650; line-height: 1.35; text-align: center;
  color: var(--texte); background: rgba(6, 12, 34, .96); border: 1px solid var(--ligne-2); box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .9);
}
.pv-bulle.est-bas { transform: translate(-50%, 8px); }

.pv-lots { display: grid; gap: 6px; margin-top: 14px; }
.pv-lot {
  display: grid; grid-template-columns: 12px minmax(0, 9.5rem) 3.6rem minmax(0, 1fr); align-items: center; gap: 4px 10px;
  padding: 9px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--ligne); font-size: 13px; transition: background .2s, border-color .2s;
}
.pv-lot:hover, .pv-lot:focus-visible { background: var(--surface-2); border-color: var(--ligne-2); outline: none; }
.pv-lot-pastille { width: 12px; height: 12px; border-radius: 50%; background: var(--coul); box-shadow: 0 0 10px color-mix(in srgb, var(--coul) 70%, transparent); }
.pv-lot b { font-weight: 750; }
.pv-lot-n { font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }
.pv-lot-s { color: var(--texte-3); font-size: 12px; }
.pv-lot .pv-jauge { grid-column: 2 / -1; height: 4px; }
.pv-regle { max-width: 860px; margin: 22px 0 0; color: var(--texte-3); font-size: 13.5px; line-height: 1.6; }

/* ============================================================
   TÉLÉPHONE
   ============================================================ */
@media (max-width: 980px) {
  .pv-chiffres { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  /* Sur téléphone, la frise passe avant les chiffres : on la voit tout de suite. */
  .pv.est-chemin { display: flex; flex-direction: column; }
  .pv.est-chemin > .pv-retour { align-self: flex-start; }
  .pv.est-chemin > .pv-chiffres { order: 1; margin: 18px 0 0; }
  .pv-portes { grid-template-columns: 1fr; }
  .pv-porte-txt b { font-size: 21px; }
  .pv-ou b { font-size: 22px !important; padding-right: 40px; }
  .pv-ou small { padding-right: 40px; }
  .pv-ou img { width: 36px; height: 36px; right: 12px; }
  .pv-legende { order: 3; flex-basis: 100%; font-size: 12px; }
  .pv-rejouer span { display: none; }
  .pv-rail { gap: 2px; padding: 3px; }
  .pv-rail-c { height: 16px; border-radius: 4px; }
  .pv-rail-c span { display: none; }
  .pv-detail-c { padding: 14px 16px; gap: 10px 14px; }
  .pv-detail-cle { min-width: 0; grid-auto-flow: column; align-items: baseline; justify-content: start; gap: 10px; }
  .pv-detail-cle b { font-size: 28px; }
  .pv-detail-affiche { flex-basis: 100%; flex-wrap: wrap; }
  .pv-detail-score { font-size: 34px; }
  .pv-detail-lien { margin-left: 0; }
  .pv-onglets-mobile { display: block; }
  .pv-deux { grid-template-columns: 1fr; }
  .pv-deux[data-montre="notre"] .pv-col.est-complet, .pv-deux[data-montre="complet"] .pv-col.est-notre { display: none; }
  .pv-lot { grid-template-columns: 12px minmax(0, 1fr) auto; }
  .pv-lot-s { grid-column: 2 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  .pv-carre, .pv-score, .pv-piece.est-acquise { opacity: 1 !important; transform: none !important; }
  .pv-bus { opacity: 1 !important; }
  .pv-bus img, .pv-garde-fond i, .pv-garde-logo { animation: none; }
}
.allege .pv-garde-fond i, .allege .pv-bus img { animation: none; }
