:root {
  --bleu: #000091;
  --bleu-clair: #e3e3fd;
  --rouge: #c9191e;
  --vert: #18753c;
  --vert-clair: #dffee6;
  --or: #b34000;
  --fond: #f6f6f6;
  --carte: #fff;
  --texte: #161616;
  --gris: #666;
  --bord: #ddd;
  --rayon: 8px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Marianne, Arial, sans-serif;
  background: var(--fond);
  color: var(--texte);
}
h1, h2, h3 { margin: 0; }
h2 { font-size: 1.1rem; }
button, input, select, textarea { font: inherit; }

button {
  background: var(--bleu); color: #fff; border: 0; border-radius: 4px;
  padding: .45rem .9rem; cursor: pointer;
}
button:hover { filter: brightness(1.2); }
button:disabled { background: #bbb; cursor: not-allowed; filter: none; }
button.secondaire { background: #fff; color: var(--bleu); border: 1px solid var(--bleu); }
button.secondaire:disabled { background: #fff; color: #bbb; border-color: #ddd; }
button.danger { background: var(--rouge); }
button.lien { background: none; color: var(--bleu); padding: 0; text-decoration: underline; }
input, select, textarea {
  border: 1px solid #bbb; border-radius: 4px; padding: .4rem .55rem; background: #fff; min-width: 0;
}

/* En-tête ------------------------------------------------------------- */
.entete {
  background: #fff; border-bottom: 4px solid var(--bleu);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center;
  padding: .9rem clamp(1rem, 3vw, 2rem);
}
.marque { display: flex; gap: .8rem; align-items: center; }
.logo { font-size: 2.2rem; }
.entete h1 { font-size: 1.5rem; color: var(--bleu); }
.sous-titre { margin: 0; color: var(--gris); font-size: .9rem; }
.compte { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.compte form { display: flex; flex-wrap: wrap; gap: .4rem; }
.compte input { width: 9rem; }
.solde { display: flex; gap: 1rem; align-items: center; }
.solde .bloc { text-align: right; line-height: 1.15; }
.solde .bloc small { display: block; color: var(--gris); font-size: .75rem; }
.solde .bloc b { font-size: 1.25rem; color: var(--bleu); }

/* Bandeau « Dernière minute » ----------------------------------------- */
.bandeau {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; gap: .9rem; overflow: hidden;
  background: var(--bleu); color: #fff; font-size: .9rem;
  padding: .45rem clamp(1rem, 3vw, 2rem); box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.bandeau b { color: #fff; }
.bandeau .cloture { color: #b8fec9; }
.bandeau-etiquette {
  flex: none; display: inline-flex; align-items: center; gap: .4rem;
  background: var(--rouge); font-weight: 800; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em;
  padding: .2rem .55rem; border-radius: 3px;
}
.bandeau-etiquette i { width: .45rem; height: .45rem; border-radius: 50%; background: #fff; animation: pulse 1.2s infinite; }
.bandeau-derniere { flex: 0 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.bandeau-derniere .quand { opacity: .7; font-size: .8rem; margin-right: .3rem; }
.bandeau-defile {
  flex: 1 1 0; min-width: 6rem; overflow: hidden; white-space: nowrap; opacity: .7;
  border-left: 1px solid rgba(255,255,255,.35); padding-left: .9rem;
  mask-image: linear-gradient(90deg, transparent, #000 2rem, #000 calc(100% - 2rem), transparent);
}
.bandeau-defile .piste { display: inline-block; animation: defile 60s linear infinite; }
.bandeau-defile:hover .piste { animation-play-state: paused; }
.bandeau-defile span { margin-right: 2.5rem; }
@keyframes defile { to { transform: translateX(-50%); } }
.bandeau.nouveau { animation: flash 1.8s ease-out; }
.bandeau.nouveau .bandeau-derniere { animation: arrivee .5s ease-out; }
@keyframes flash { 0%, 30% { background: var(--rouge); } 100% { background: var(--bleu); } }
@keyframes arrivee { from { transform: translateY(-120%); opacity: 0; } }
@media (max-width: 700px) {
  .bandeau-defile { display: none; }
  .bandeau-etiquette { font-size: 0; gap: 0; padding: .35rem; }
}
@media (prefers-reduced-motion: reduce) {
  .bandeau-defile .piste, .bandeau.nouveau, .bandeau.nouveau .bandeau-derniere { animation: none; }
}

/* Mise en page ---------------------------------------------------------- */
.grille {
  display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.5rem;
  padding: 1.5rem clamp(1rem, 3vw, 2rem); max-width: 1400px; margin: 0 auto;
}
@media (max-width: 900px) { .grille { grid-template-columns: minmax(0, 1fr); } }
.lateral { display: flex; flex-direction: column; gap: 1rem; }
@media (min-width: 901px) { .lateral { position: sticky; top: 3.4rem; align-self: start; max-height: calc(100vh - 4.4rem); overflow-y: auto; } }

.carte {
  background: var(--carte); border: 1px solid var(--bord); border-radius: var(--rayon);
  padding: 1rem 1.1rem;
}
.carte h2 { margin-bottom: .6rem; }
.carte-titre { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.titre-section { margin: 1.5rem 0 .8rem; }
.vide { color: var(--gris); font-style: italic; padding: 1rem 0; }
.aide { color: var(--gris); font-size: .85rem; }

.onglets { display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: 1rem; border-bottom: 1px solid var(--bord); }
.onglets button {
  background: none; color: var(--gris); border-radius: 0; border-bottom: 3px solid transparent;
  padding: .55rem .9rem; font-weight: 600;
}
.onglets button.actif { color: var(--bleu); border-bottom-color: var(--bleu); }
.onglets .compteur { background: var(--bleu-clair); color: var(--bleu); border-radius: 1rem; padding: 0 .45rem; font-size: .8rem; margin-left: .3rem; }

/* Cartes de pari ---------------------------------------------------------- */
.liste-paris { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.pari { position: relative; }
.pari-entete { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-bottom: .35rem; }
.pari h3 { font-size: 1.05rem; margin-bottom: .2rem; }
.pari .desc { color: var(--gris); font-size: .9rem; margin: 0 0 .7rem; }
.auteur { color: var(--gris); font-size: .8rem; font-style: italic; margin: -.4rem 0 .7rem; }
.badge {
  display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em;
  padding: .1rem .5rem; border-radius: 3px; background: var(--bleu-clair); color: var(--bleu);
}
.badge.ouvert { background: var(--vert-clair); color: var(--vert); }
.badge.suspendu, .badge.ferme { background: #feecc2; color: var(--or); }
.badge.clos { background: #eee; color: #444; }
.badge.annule { background: #fee; color: var(--rouge); }
.meta { color: var(--gris); font-size: .82rem; margin-left: auto; }

.issues { display: grid; gap: .45rem; }
.issue {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .3rem 1rem; align-items: center;
  border: 1px solid var(--bord); border-radius: 6px; padding: .55rem .7rem; position: relative; overflow: hidden;
}
.issue .barre { position: absolute; inset: 0 auto 0 0; background: var(--bleu-clair); opacity: .45; z-index: 0; }
.issue > *:not(.barre) { position: relative; z-index: 1; }
.issue .libelle { font-weight: 600; }
.issue .stats { color: var(--gris); font-size: .8rem; }
.issue .cote { font-weight: 800; color: var(--bleu); font-size: 1.1rem; white-space: nowrap; }
.issue .cote small { font-weight: 400; color: var(--gris); font-size: .75rem; margin-left: .3rem; }
.issue .miser { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.issue .miser input { width: 7rem; }
.issue .gain { font-size: .85rem; color: var(--vert); }
.issue.gagnante { border-color: var(--vert); background: var(--vert-clair); }
.issue.gagnante .libelle::after { content: " ✓ issue réalisée"; color: var(--vert); font-size: .8rem; }
.issue.perdante { opacity: .6; }
.ma-position { font-size: .82rem; color: var(--bleu); font-weight: 600; }

/* Tableaux ------------------------------------------------------------- */
.tableau-conteneur { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: .4rem .35rem; border-bottom: 1px solid #eee; }
th { color: var(--gris); font-weight: 600; font-size: .78rem; text-transform: uppercase; }
td.nombre, th.nombre { text-align: right; font-variant-numeric: tabular-nums; }
tr.moi td { background: var(--bleu-clair); font-weight: 700; }
.rang { width: 2.2rem; font-weight: 700; }
.gain-positif { color: var(--vert); font-weight: 700; }
.gain-nul { color: var(--rouge); }

.direct { font-size: .75rem; color: var(--rouge); display: inline-flex; gap: .35rem; align-items: center; }
.direct i { width: .5rem; height: .5rem; border-radius: 50%; background: var(--rouge); animation: pulse 1.6s infinite; }
.direct.hors-ligne { color: var(--gris); }
.direct.hors-ligne i { background: var(--gris); animation: none; }
@keyframes pulse { 50% { opacity: .25; } }

.fil { list-style: none; margin: 0; padding: 0; font-size: .85rem; max-height: 22rem; overflow-y: auto; }
.fil li { padding: .4rem 0; border-bottom: 1px solid #f0f0f0; }
.fil time { color: var(--gris); font-size: .75rem; display: block; }
.fil .cloture { color: var(--vert); }

.regles summary { font-weight: 700; cursor: pointer; }
.regles ul { padding-left: 1.1rem; margin: .6rem 0 0; font-size: .88rem; }

/* Administration --------------------------------------------------------- */
.ligne-form { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.form-pari { display: grid; gap: .7rem; }
.form-pari label { display: grid; gap: .2rem; font-size: .88rem; font-weight: 600; }
.deux-colonnes { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
@media (max-width: 600px) { .deux-colonnes { grid-template-columns: 1fr; } }
fieldset { border: 1px solid var(--bord); border-radius: 6px; display: grid; gap: .45rem; }
legend { font-size: .88rem; font-weight: 600; }
.ligne-issue { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .4rem; }
.admin-pari .actions { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .7rem; align-items: center; }
.admin-pari table td { vertical-align: middle; }
.admin-pari details, .admin-joueur .actions { margin-top: .7rem; }
.admin-pari details > summary { cursor: pointer; color: var(--bleu); font-size: .9rem; }
.edition .form-pari { margin-top: .6rem; padding: .8rem; background: var(--fond); border-radius: 6px; }
.edition .ligne-issue { align-items: center; }
.sous-onglets { margin-top: 1rem; }
.admin-joueur { margin-bottom: .6rem; }
.admin-joueur summary { cursor: pointer; display: flex; flex-wrap: wrap; gap: .5rem; align-items: baseline; }
.admin-joueur .actions { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.admin-joueur ul { margin: .6rem 0 0; }
input.petit { width: 7rem; }
.cote-saisie { width: 5.5rem; text-align: right; }

/* Nouveautés : lien direct, estimations, classement par équipe -------------- */
.lien-pari { font-size: .8rem; }
.pari.surligne { box-shadow: 0 0 0 3px var(--bleu); transition: box-shadow .3s; }
.pari { scroll-margin-top: 3.6rem; }
button.badge.etape { flex: none; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; border: 0; font: inherit; font-size: .72rem; font-weight: 700; text-transform: none; letter-spacing: 0; }
.badge.estimation { background: #fbe7ff; color: #6e22a0; }
.bloc-estimation .stats { color: var(--gris); font-size: .85rem; margin: 0 0 .5rem; }
.bloc-estimation .valeur-reelle { margin: 0 0 .5rem; }
.bloc-estimation tr.gagnante td { background: var(--vert-clair); font-weight: 700; }
.miser-estimation { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-top: .4rem; }
.miser-estimation input { width: 9rem; }
.bascule { display: inline-flex; border: 1px solid var(--bleu); border-radius: 4px; overflow: hidden; margin-bottom: .6rem; }
.bascule button { background: #fff; color: var(--bleu); border-radius: 0; padding: .25rem .8rem; font-size: .85rem; }
.bascule button.actif { background: var(--bleu); color: #fff; }
.mon-equipe { margin-bottom: 1rem; }
.mon-equipe label { display: flex; gap: .5rem; align-items: center; font-weight: 600; }
.choix-type label { display: block; font-weight: 400; }
.choix-type label input { margin-right: .4rem; }
.courbe-cotes { margin-top: .7rem; }
.courbe-cotes > summary { cursor: pointer; color: var(--bleu); font-size: .88rem; }
a.bouton {
  display: inline-block; background: var(--bleu); color: #fff; text-decoration: none;
  padding: .45rem .9rem; border-radius: 4px;
}
.actions-globales { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: 1rem; }
.actions-globales .aide { flex: 1 1 18rem; }
.admin-pari .actions.cloture { padding-top: .6rem; border-top: 1px dashed var(--bord); }
.admin-etape { margin-top: .8rem; }
.admin-etape textarea, .vue-admin textarea { width: 100%; margin-top: .4rem; }
.vue-admin .actions { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-top: .5rem; }
input.large { flex: 1 1 16rem; }

/* Calendrier : frise verticale --------------------------------------------- */
.frise { list-style: none; margin: 0; padding: 0 0 0 1.2rem; border-left: 3px solid var(--bleu-clair); }
.frise > li { position: relative; margin: 0 0 1rem; }
.etape-frise { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: .3rem 1rem;
  background: var(--carte); border: 1px solid var(--bord); border-radius: var(--rayon); padding: .8rem 1rem; }
@media (max-width: 600px) { .etape-frise { grid-template-columns: 1fr; } }
.etape-frise::before { content: ""; position: absolute; left: -1.75rem; top: 1rem; width: .8rem; height: .8rem;
  border-radius: 50%; background: var(--bleu); border: 2px solid var(--fond); }
.etape-frise.passee { opacity: .65; }
.etape-frise.passee::before { background: var(--gris); }
.etape-frise.aujourdhui { border-color: var(--vert); }
.etape-frise.aujourdhui::before { background: var(--vert); }
.etape-date { font-weight: 700; color: var(--bleu); text-transform: capitalize; }
.etape-frise h3 { font-size: 1rem; margin-bottom: .2rem; }
.etape-frise .desc { color: var(--gris); font-size: .9rem; margin: 0 0 .4rem; }
.puces { display: flex; flex-wrap: wrap; gap: .35rem; }
.puce-pari { font-size: .82rem; padding: .15rem .55rem; border-radius: 1rem; text-decoration: none;
  background: #eee; color: #444; border: 1px solid transparent; }
.puce-pari.ouvert { background: var(--vert-clair); color: var(--vert); }
.puce-pari.suspendu { background: #feecc2; color: var(--or); }
.puce-pari:hover { border-color: currentColor; }
.repere-aujourdhui { margin: -.2rem 0 1rem; }
.repere-aujourdhui span { position: relative; left: -1.9rem; background: var(--vert); color: #fff; font-size: .72rem;
  font-weight: 700; text-transform: uppercase; padding: .1rem .5rem; border-radius: 3px; }

/* Courbes -------------------------------------------------------------------- */
.graphique { margin-top: .6rem; }
.legende { display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: .82rem; color: var(--texte); margin-bottom: .3rem; }
.legende i, .infobulle i { display: inline-block; width: 1rem; border-top: 2px solid; vertical-align: middle; margin-right: .35rem; }
.zone-graphique { position: relative; }
.zone-graphique svg { width: 100%; height: auto; display: block; overflow: visible; touch-action: pan-y; }
.zone-graphique svg:focus-visible { outline: 2px solid var(--bleu); outline-offset: 2px; }
.zone-graphique .grille { stroke: #ececec; stroke-width: 1; }
.zone-graphique .axe { fill: var(--gris); font-size: 11px; font-variant-numeric: tabular-nums; }
.zone-graphique .etiquette { fill: var(--texte); font-size: 11px; }
.zone-graphique .reticule { stroke: #999; stroke-width: 1; stroke-dasharray: 3 3; }
.infobulle { position: absolute; top: .3rem; background: #fff; border: 1px solid var(--bord); border-radius: 6px;
  box-shadow: 0 4px 14px rgba(0,0,0,.12); padding: .45rem .6rem; font-size: .8rem; pointer-events: none; min-width: 9rem; }
.infobulle .bulle-date { color: var(--gris); font-size: .75rem; margin-bottom: .2rem; }
.infobulle b { margin-right: .4rem; font-variant-numeric: tabular-nums; }
.infobulle span { color: var(--gris); }
.donnees { margin-top: .4rem; font-size: .85rem; }
.donnees summary { cursor: pointer; color: var(--bleu); }

/* Profil, inscription, trophées, commentaires, paris flash ------------------- */
button.lien.pseudo { color: var(--texte); text-decoration: none; }
button.lien.pseudo:hover b { text-decoration: underline; }
.trophee { cursor: help; font-size: .9em; }
.trophees { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .6rem; }
.trophees li { display: flex; gap: .6rem; align-items: center; padding: .5rem .6rem; border: 1px dashed var(--bord); border-radius: 6px; opacity: .55; filter: grayscale(1); }
.trophees li.obtenu { opacity: 1; filter: none; border-style: solid; border-color: var(--bleu-clair); background: #fafaff; }
.trophees .icone { font-size: 1.6rem; }
#form-profil input { flex: 1 1 14rem; }
.commentaires { margin-top: .6rem; }
.commentaires > summary { cursor: pointer; color: var(--bleu); font-size: .88rem; }
.commentaires ul { list-style: none; margin: .5rem 0; padding: 0; font-size: .88rem; max-height: 18rem; overflow-y: auto; }
.commentaires li { padding: .35rem 0; border-bottom: 1px solid #f0f0f0; overflow-wrap: anywhere; }
.commentaires time { color: var(--gris); font-size: .75rem; margin-left: .3rem; }
.commentaires li button.lien { margin-left: .3rem; color: var(--gris); text-decoration: none; font-size: .8rem; }
.form-commentaire { display: flex; gap: .4rem; flex-wrap: wrap; }
.form-commentaire input { flex: 1 1 14rem; }
.pari.flash { border: 2px solid var(--or); box-shadow: 0 0 0 3px #feecc2; }
.bandeau-flash { margin: -1rem -1.1rem .8rem; padding: .45rem 1.1rem; background: #feecc2; color: var(--or);
  border-radius: var(--rayon) var(--rayon) 0 0; font-weight: 600; }
.bandeau-flash b { font-variant-numeric: tabular-nums; }
.pari.flash.urgent .bandeau-flash { background: var(--rouge); color: #fff; animation: pulse 1s infinite; }
@media (prefers-reduced-motion: reduce) { .pari.flash.urgent .bandeau-flash { animation: none; } }
.evt-flash { font-weight: 600; }
.lancer-flash { border-color: var(--or); margin-bottom: 1rem; }
input.petit-moyen { width: 9rem; }

/* Page d'accueil « marché » -------------------------------------------------- */
.accueil-hero {
  background: linear-gradient(135deg, var(--bleu) 0%, #2323a8 60%, #4a3aa7 100%); color: #fff;
  border-radius: var(--rayon); padding: clamp(1.2rem, 4vw, 2.2rem); margin-bottom: 1.2rem;
}
.accueil-hero h2 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); margin: 0; letter-spacing: -.01em; }
.accueil-hero .slogan { font-size: clamp(1rem, 2.4vw, 1.25rem); margin: .3rem 0 1.1rem; opacity: .92; font-style: italic; }
.chiffres-cles { display: flex; flex-wrap: wrap; gap: .6rem; }
.chiffres-cles > div { background: rgba(255,255,255,.12); border-radius: 6px; padding: .5rem .8rem; min-width: 7.5rem; }
@media (max-width: 600px) {
  .chiffres-cles { display: grid; grid-template-columns: 1fr 1fr; }
  .chiffres-cles > div { min-width: 0; }
  .hero-flux time { min-width: 0; margin-right: .3rem; }
}
.chiffres-cles b { display: block; font-size: 1.35rem; font-variant-numeric: tabular-nums; text-transform: capitalize; }
.chiffres-cles span { font-size: .8rem; opacity: .85; }
.accueil-moi { margin: 1rem 0 0; }
.appel { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; margin-top: 1.1rem; }
.appel button { background: #fff; color: var(--bleu); font-weight: 700; padding: .6rem 1.1rem; }
.appel .aide { color: rgba(255,255,255,.85); }
.grille-tuiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16.5rem), 1fr)); gap: .9rem; }
.tuile { background: var(--carte); border: 1px solid var(--bord); border-radius: var(--rayon); padding: .9rem 1rem;
  display: flex; flex-direction: column; gap: .5rem; transition: box-shadow .15s, border-color .15s; }
.tuile:hover { border-color: #b9b9f0; box-shadow: 0 3px 12px rgba(0,0,145,.08); }
.tuile-entete { display: flex; gap: .3rem; flex-wrap: wrap; min-height: 1.1rem; }
.badge.flash { background: #feecc2; color: var(--or); font-variant-numeric: tabular-nums; }
.tuile-titre { color: var(--texte); font-weight: 700; text-decoration: none; line-height: 1.3; }
.tuile-titre:hover { color: var(--bleu); text-decoration: underline; }
.tuile-corps { display: flex; flex-direction: column; gap: .3rem; }
.tuile .mini-courbe svg { width: 100%; height: 54px; }
.tuile-chiffre { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .45rem; }
.tuile-chiffre .issue-tete { width: 100%; font-size: .85rem; color: var(--gris); }
.tuile-chiffre b { white-space: nowrap; }
.tuile-chiffre b { font-size: 1.9rem; color: var(--bleu); font-variant-numeric: tabular-nums; line-height: 1.1; }
.tuile-chiffre small { width: 100%; }
.variation { font-weight: 700; font-size: .85rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.variation.hausse { color: var(--vert); }
.variation.baisse { color: var(--rouge); }
.variation.stable { color: var(--gris); }
.sparkline { width: 120px; height: 34px; flex: none; }
.barre-proba { display: flex; height: 6px; border-radius: 3px; overflow: hidden; gap: 2px; background: #fff; }
.barre-proba span { display: block; min-width: 2px; }
.tuile-issues { display: flex; flex-wrap: wrap; gap: .35rem; }
.bouton-issue { flex: 1 1 auto; text-align: center; text-decoration: none; font-size: .85rem; color: var(--bleu);
  border: 1px solid var(--bleu-clair); background: #f7f7ff; border-radius: 4px; padding: .3rem .5rem; }
.bouton-issue:hover { background: var(--bleu); color: #fff; }
.tuile-pied { margin-top: auto; font-size: .78rem; }
.accueil-colonnes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: .9rem; margin-top: 1.2rem; }
.accueil-colonnes h3 { font-size: .95rem; margin: .9rem 0 .3rem; }
.liste-simple { list-style: none; margin: 0; padding: 0; font-size: .9rem; }
.liste-simple li { padding: .4rem 0; border-bottom: 1px solid #f0f0f0; display: flex; justify-content: space-between; gap: .6rem; }
.liste-simple a { color: var(--texte); text-decoration: none; }
.liste-simple a:hover { color: var(--bleu); text-decoration: underline; }
.liste-simple .aide, .liste-simple .resultat { flex: none; text-align: right; }
.liste-simple .resultat { font-weight: 700; color: var(--vert); }

/* Marché : probabilités, mini-courbes, direct, pari du jour, fiche joueur ---- */
.issue .proba { text-align: right; line-height: 1.15; }
.issue .proba b { display: block; font-size: 1.35rem; color: var(--bleu); font-variant-numeric: tabular-nums; }
.issue .proba small { display: block; color: var(--gris); font-size: .75rem; white-space: nowrap; }
.issue .proba .variation { font-size: .78rem; }
.pari-titre { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.pari-titre > div { min-width: 0; }
.mini-courbe { margin: 0; flex: none; }
.mini-courbe svg { width: 150px; height: 54px; display: block; }
.mi-repere { stroke: #e2e2e2; stroke-dasharray: 2 3; }
.mi-axe { fill: var(--gris); font-size: 8.5px; font-variant-numeric: tabular-nums; }
@media (max-width: 520px) { .pari-titre { flex-direction: column; gap: .3rem; } }
.zone-graphique .repere { stroke: var(--or); stroke-width: 1; stroke-dasharray: 4 3; }
.zone-graphique .repere-texte { fill: var(--or); font-size: 10px; }
.hero-haut { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; }
.hero-direct { display: inline-flex; align-items: center; gap: .4rem; background: var(--rouge); color: #fff; font-size: .72rem;
  font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: .2rem .55rem; border-radius: 3px; }
.hero-direct i { width: .5rem; height: .5rem; border-radius: 50%; background: #fff; animation: pulse 1.2s infinite; }
.chiffres-cles > div { transition: background .3s; }
.chiffres-cles > div.bouge { animation: eclair 1.4s ease-out; }
@keyframes eclair { 0%, 25% { background: rgba(255,255,255,.45); } 100% { background: rgba(255,255,255,.12); } }
.hero-depeche { margin: .9rem 0 0; background: rgba(255,255,255,.14); border-left: 3px solid #fcd34d; padding: .4rem .7rem; border-radius: 0 4px 4px 0; }
.hero-depeche span { opacity: .8; font-size: .85rem; }
.hero-flux { list-style: none; margin: .8rem 0 0; padding: 0; font-size: .86rem; display: grid; gap: .2rem; }
.hero-flux li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: .92; }
.hero-flux li:first-child { opacity: 1; }
.hero-flux time { display: inline-block; min-width: 6.5rem; opacity: .7; font-size: .78rem; }
.hero-flux b { color: #fff; }
.hero-flux .cloture, .hero-flux .evt-mouvement, .hero-flux .evt-depeche, .hero-flux .evt-flash { color: #fff; }
.accueil-moi .lien, .appel span { color: #fff; }
.pari-du-jour { border: 2px solid #fcd34d; margin-bottom: 1.2rem; }
.pdj-entete { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.pdj-entete .lien-pari { margin-left: auto; }
.pdj-etiquette { background: #fcd34d; color: #5c3b00; font-weight: 800; font-size: .78rem; text-transform: uppercase;
  letter-spacing: .05em; padding: .15rem .6rem; border-radius: 3px; }
.pari-du-jour h2 { font-size: 1.4rem; margin: .5rem 0 .2rem; }
.pari-du-jour h2 a { color: var(--texte); text-decoration: none; }
.pari-du-jour h2 a:hover { color: var(--bleu); text-decoration: underline; }
.pdj-corps { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 1.2rem; margin-top: .6rem; }
@media (max-width: 1100px) { .pdj-corps { grid-template-columns: minmax(0, 1fr); } }
.badge.pdj { background: #fef3c7; color: #5c3b00; }
.lancer-depeche { border-color: #fcd34d; margin-bottom: 1rem; }
.evt-mouvement b, .evt-depeche b { font-weight: 800; }
button.lien-joueur { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; text-align: left; }
button.lien-joueur:hover { color: var(--bleu); text-decoration: underline; }
dialog.fiche { border: 0; border-radius: 10px; padding: 1.2rem 1.3rem; width: min(40rem, calc(100% - 2rem));
  box-shadow: 0 12px 40px rgba(0,0,0,.25); }
dialog.fiche::backdrop { background: rgba(0, 0, 40, .45); }
.fiche-entete { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.fiche-entete h2 { font-size: 1.35rem; }
.fiche-entete p { margin: .2rem 0 0; }
.fiche-entete .fermer { font-size: 1.2rem; text-decoration: none; color: var(--gris); }
.fiche-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: .6rem; margin: 1rem 0; }
.fiche-stats > div, .fiche-paris > div { background: var(--fond); border-radius: 6px; padding: .6rem .7rem; display: flex; flex-direction: column; gap: .1rem; }
.fiche-stats span, .fiche-paris span { font-size: .75rem; color: var(--gris); text-transform: uppercase; letter-spacing: .03em; }
.fiche-stats b { font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.fiche-stats b.petit { font-size: 1rem; }
.fiche-stats small { font-size: .8rem; color: var(--gris); font-variant-numeric: tabular-nums; }
.fiche-stats .hausse, .fiche-paris .hausse { color: var(--vert); }
.fiche-stats .baisse, .fiche-paris .baisse { color: var(--rouge); }
.fiche-paris { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: .6rem; }
.fiche-paris a { color: var(--texte); font-weight: 600; text-decoration: none; }
.fiche-paris a:hover { color: var(--bleu); text-decoration: underline; }
.fiche-paris b { font-size: 1.1rem; }
dialog.fiche h3, .fiche-profil h3 { font-size: .95rem; margin: 1rem 0 .3rem; }

/* Administration : question du jour et ordre des questions ------------------ */
.ordre-questions { margin-bottom: 1rem; border-color: #fcd34d; }
.ordre-questions h2 + .actions select { flex: 1 1 20rem; min-width: 0; }
.ordre-questions h2:not(:first-child) { margin-top: 1.2rem; }
.liste-ordre { margin: .4rem 0 0; padding-left: 1.6rem; }
.liste-ordre li { padding: .3rem 0; border-bottom: 1px solid #f0f0f0; }
.liste-ordre li { display: list-item; }
.liste-ordre li > span { display: inline-flex; vertical-align: middle; }
.liste-ordre .ordre-titre { width: calc(100% - 10.5rem); min-width: 8rem; gap: .4rem; align-items: center; }
.liste-ordre .ordre-boutons { gap: .25rem; float: right; }
.liste-ordre .ordre-boutons button { padding: .15rem .5rem; line-height: 1.2; }
.liste-ordre li::after { content: ""; display: block; clear: both; }

/* Bonus quotidien et bonus de la question du jour ---------------------------- */
.bonus-pret { background: #fcd34d; color: #5c3b00; font-weight: 800; animation: appel 2s ease-in-out infinite; }
.bonus-pret:hover { filter: brightness(1.05); }
@keyframes appel { 0%, 100% { box-shadow: 0 0 0 0 rgba(252, 211, 77, .7); } 50% { box-shadow: 0 0 0 7px rgba(252, 211, 77, 0); } }
.bonus-attente { font-size: .85rem; color: var(--gris); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hero-bonus { margin-top: .8rem; padding: .55rem .8rem; border-radius: 6px; background: rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; gap: .4rem .8rem; align-items: center; }
.hero-bonus b { font-variant-numeric: tabular-nums; }
.hero-bonus.pret { background: #fcd34d; color: #5c3b00; }
.hero-bonus.pret button { background: var(--bleu); color: #fff; font-weight: 700; margin-left: auto; }
.pdj-bonus { margin: .5rem 0 0; padding: .45rem .7rem; border-radius: 6px; background: #fef3c7; color: #5c3b00; font-size: .9rem; }
.pdj-bonus.obtenu { background: var(--vert-clair); color: var(--vert); }
@media (prefers-reduced-motion: reduce) { .bonus-pret { animation: none; } }

/* Minuteur de fin des mises -------------------------------------------------- */
.minuteur { display: inline-flex; align-items: center; gap: .25rem; font-size: .75rem; font-weight: 700; white-space: nowrap;
  padding: .1rem .5rem; border-radius: 3px; background: #eef2ff; color: var(--bleu); font-variant-numeric: tabular-nums; cursor: help; }
.minuteur.bientot { background: #feecc2; color: var(--or); }
.minuteur.urgent { background: var(--rouge); color: #fff; }
.minuteur.urgent span { animation: pulse 1s infinite; }
@media (prefers-reduced-motion: reduce) { .minuteur.urgent span { animation: none; } }
.sans-date { font-size: .75rem; color: var(--or); border: 1px dashed currentColor; border-radius: 3px; padding: 0 .35rem; cursor: help; }

.toast {
  position: fixed; bottom: 1.2rem; left: 50%; transform: translateX(-50%);
  background: var(--texte); color: #fff; padding: .7rem 1.1rem; border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,.25); max-width: calc(100% - 2rem); z-index: 10;
}
.toast.erreur { background: var(--rouge); }
.toast.succes { background: var(--vert); }

/* Actualités de la presse ------------------------------------------------------ */
.actualites h2 { margin-bottom: .5rem; }
.actualites .liste-articles { font-size: .88rem; }
.actualites details .liste-articles { max-height: 24rem; overflow-y: auto; }
.liste-articles { list-style: none; margin: 0; padding: 0; }
.liste-articles li { padding: .5rem 0; border-bottom: 1px solid #f0f0f0; overflow-wrap: anywhere; }
.liste-articles li:last-child { border-bottom: 0; }
.article-titre { color: var(--texte); font-weight: 600; text-decoration: none; line-height: 1.3; }
.article-titre:hover { color: var(--bleu); text-decoration: underline; }
.article-meta { display: flex; flex-wrap: wrap; gap: .3rem .5rem; align-items: center; margin-top: .2rem; font-size: .8rem; color: var(--gris); }
.badge.nouveau { background: #fee; color: var(--rouge); }
.badge.pari-lie { text-decoration: none; text-transform: none; letter-spacing: 0; font-weight: 600;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge.pari-lie:hover { text-decoration: underline; }
.actualites details > summary { cursor: pointer; color: var(--bleu); font-size: .88rem; margin-top: .4rem; }
.actualites > .aide:last-child { margin: .7rem 0 0; font-size: .78rem; }
.presse { margin-top: .6rem; }
.presse > summary { cursor: pointer; color: var(--bleu); font-size: .88rem; }
.presse .liste-articles { font-size: .9rem; max-height: 22rem; overflow-y: auto; }
.pdj-presse { font-size: .9rem; margin: .2rem 0 .5rem; }
.pdj-presse a { color: var(--texte); font-weight: 600; }
.recherche-actualites { flex: 1 1 100%; display: flex; gap: .4rem; align-items: center; }
.recherche-actualites input { flex: 1; }
