/* =====================================================================
   TOURNOIS : styles propres a l'outil (tournois/index.php). Palette
   « arene » : bleu nuit, orange, or ; vert gagnant, rouge perdant, or
   champion (comme le prototype de 2013). Tout est prefixe .tournois / .to-
   pour ne pas deborder sur le menu et le pied de page du site.
   ===================================================================== */
.tournois-page { background: #f3f4f8; }
/* .to-choix-fond (fenetres) et .to-tv (mode TV) sont ajoutes directement dans <body>, hors de .tournois : ils recoivent la palette aussi. */
.tournois, .to-choix-fond, .to-tv, .to-annonces {
	--t-nuit: #14213d;
	--t-nuit-2: #22335c;
	--t-orange: #f77f00;
	--t-orange-f: #d26a00;
	--t-or: #fcbf49;
	--t-vert: #2a9d4b;
	--t-rouge: #d62828;
	--t-fond: #f3f4f8;
	--t-carte: #ffffff;
	--t-texte: #1d2333;
	--t-doux: #7a8197;
	--t-bord: #e1e4ee;
	--t-ombre: 0 6px 22px rgba(20, 33, 61, .10);
	--t-ombre-forte: 0 14px 34px rgba(20, 33, 61, .22);
	color: var(--t-texte);
}
.tournois { padding-bottom: 6rem; }
.to-doux { color: var(--t-doux); }

/* ---------- Bandeau ---------- */
.to-hero { position: relative; overflow: hidden; color: #fff; margin-bottom: 1.5rem; }
.to-hero-fond {
	position: absolute; inset: 0;
	background:
		radial-gradient(circle at 20% 30%, rgba(252, 191, 73, .40), transparent 40%),
		radial-gradient(circle at 80% 70%, rgba(247, 127, 0, .55), transparent 45%),
		linear-gradient(135deg, #0b1428 0%, #14213d 50%, #3a2c5e 100%);
	background-size: 140% 140%;
	animation: to-respire 14s ease-in-out infinite alternate;
}
@keyframes to-respire { from { background-position: 0% 0%; } to { background-position: 100% 100%; } }
.to-hero-contenu { position: relative; padding: 2.2rem 15px 2rem; text-align: center; }
.to-retour { position: absolute; left: 15px; top: 1rem; color: rgba(255,255,255,.8); font-size: 1.2rem; }
.to-retour:hover { color: #fff; }
.to-logo { font-size: 2.8rem; letter-spacing: .25em; margin: 0 0 .2rem .25em; font-weight: 800; text-shadow: 0 4px 18px rgba(0,0,0,.35); }
.to-logo i { color: var(--t-or); letter-spacing: 0; }
.to-slogan { font-style: italic; opacity: .85; margin: 0; }
@media (max-width: 575px) { .to-logo { font-size: 2rem; letter-spacing: .15em; } }

.to-vue > * { animation: to-entree .35s ease both; }
@keyframes to-entree { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.to-chargement { text-align: center; padding: 4rem 0; font-size: 2rem; color: var(--t-orange); }

/* ---------- Boutons ---------- */
.to-btn {
	display: inline-flex; align-items: center; gap: .45rem; border: 1px solid var(--t-bord); background: #fff; color: var(--t-nuit);
	border-radius: 999px; padding: .5rem 1.05rem; font-weight: 600; cursor: pointer; transition: all .15s; text-decoration: none; white-space: nowrap;
}
.to-btn:hover { border-color: var(--t-orange); color: var(--t-orange-f); text-decoration: none; }
.to-btn:disabled { opacity: .5; cursor: default; }
.to-btn-or { background: linear-gradient(135deg, var(--t-orange), #f9a03f); border-color: transparent; color: #fff; box-shadow: 0 4px 14px rgba(247,127,0,.35); }
.to-btn-or:hover { color: #fff; filter: brightness(1.06); transform: translateY(-1px); }
.to-btn-danger:hover { border-color: var(--t-rouge); color: var(--t-rouge); }
.to-btn-discret { border-color: transparent; background: none; color: var(--t-doux); }
.to-icone { border: 0; background: none; width: 2rem; height: 2rem; border-radius: 50%; color: var(--t-doux); cursor: pointer; }
.to-icone:hover:not(:disabled) { background: var(--t-fond); color: var(--t-nuit); }
.to-icone.danger:hover { color: var(--t-rouge); }
.to-icone:disabled { opacity: .3; cursor: default; }

/* ---------- Liste ---------- */
.to-outils { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: 1.2rem; }
.to-recherche { flex: 1 1 260px; position: relative; }
.to-recherche input { width: 100%; border: 1px solid var(--t-bord); border-radius: 999px; padding: .6rem 1rem .6rem 2.4rem; background: #fff; box-shadow: var(--t-ombre); }
.to-recherche input:focus { outline: none; border-color: var(--t-orange); }
.to-recherche i, .to-recherche svg { position: absolute; left: .95rem; top: 50%; transform: translateY(-50%); color: var(--t-doux); }
.to-section { font-size: 1.25rem; font-weight: 700; margin: 1.6rem 0 .8rem; color: var(--t-nuit); }
.to-section i, .to-section svg { color: var(--t-orange); margin-right: .3rem; }
.to-section .nb { font-size: .8rem; background: var(--t-nuit); color: #fff; border-radius: 999px; padding: .1rem .55rem; vertical-align: middle; }
.to-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.1rem; }
.to-carte {
	background: var(--t-carte); border-radius: 18px; overflow: hidden; box-shadow: var(--t-ombre); display: flex; flex-direction: column;
	color: inherit; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease;
}
.to-carte:hover { transform: translateY(-4px); box-shadow: var(--t-ombre-forte); color: inherit; text-decoration: none; }
.to-carte-haut { position: relative; background: linear-gradient(135deg, var(--t-nuit), var(--t-nuit-2)); padding: .9rem 1.2rem; color: rgba(255,255,255,.85); }
.to-carte.statut-termine .to-carte-haut { background: linear-gradient(135deg, #3d3320, #6b5622); }
.to-carte.statut-brouillon .to-carte-haut { background: linear-gradient(135deg, #4a5068, #6b7290); }
.to-carte-haut .to-schema { height: 64px; width: 100%; }
.to-direct { position: absolute; right: .6rem; top: .6rem; background: var(--t-rouge); color: #fff; border-radius: 999px; padding: .1rem .55rem; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.to-direct .point { display: inline-block; width: .45rem; height: .45rem; border-radius: 50%; background: #fff; margin-right: .2rem; animation: to-pulse 1.2s ease-in-out infinite; }
@keyframes to-pulse { 50% { opacity: .2; } }
.to-a-moi { position: absolute; left: .6rem; top: .6rem; background: rgba(255,255,255,.18); width: 1.6rem; height: 1.6rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .75rem; }
.to-carte-corps { padding: .9rem 1.1rem 1rem; display: flex; flex-direction: column; gap: .25rem; flex: 1; }
.to-carte-nom { font-weight: 800; font-size: 1.1rem; line-height: 1.2; color: var(--t-nuit); }
.to-carte-jeu { color: var(--t-orange-f); font-size: .88rem; font-weight: 600; }
.to-carte-infos { display: flex; gap: .4rem; flex-wrap: wrap; font-size: .82rem; color: var(--t-doux); }
.to-carte-infos span + span::before { content: "·"; margin-right: .4rem; }
.to-carte-champion { margin-top: .2rem; font-weight: 700; color: #9a6b00; }
.to-carte-champion i, .to-carte-champion svg { color: var(--t-or); }
.to-carte-pied { margin-top: auto; padding-top: .4rem; font-size: .78rem; color: var(--t-doux); }
.to-vide { text-align: center; padding: 3rem 1rem; color: var(--t-doux); }
.to-vide-icone { font-size: 3.5rem; color: var(--t-or); margin-bottom: .6rem; }

/* ---------- Schemas des modes ---------- */
.to-schema { display: block; }
.to-schema path { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.to-sch-or { fill: var(--t-or); }
.to-sch-plein { fill: currentColor; opacity: .85; }
.to-sch-doux { fill: currentColor; opacity: .35; }
.to-sch-vide { fill: none; stroke: currentColor; stroke-width: 1.5; opacity: .35; }

/* ---------- Fiche ---------- */
.to-lien-retour { display: inline-block; color: var(--t-doux); margin-bottom: .8rem; font-weight: 600; }
.to-lien-retour:hover { color: var(--t-orange-f); text-decoration: none; }
.to-fiche-tete { display: flex; gap: 1.2rem; align-items: center; margin-bottom: 1rem; }
.to-fiche-schema { flex: 0 0 120px; background: linear-gradient(135deg, var(--t-nuit), var(--t-nuit-2)); color: rgba(255,255,255,.85); border-radius: 16px; padding: .7rem; box-shadow: var(--t-ombre); }
.to-fiche-nom { font-weight: 800; color: var(--t-nuit); margin: 0; font-size: 1.8rem; line-height: 1.15; }
.to-fiche-jeu { color: var(--t-orange-f); font-weight: 600; }
.to-badges { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .4rem; }
.to-badge { background: var(--t-nuit); color: #fff; border-radius: 999px; padding: .15rem .7rem; font-size: .8rem; font-weight: 600; }
.to-badge.doux { background: var(--t-bord); color: var(--t-nuit); }
.to-badge.statut-en_cours { background: var(--t-rouge); }
.to-badge.statut-brouillon { background: #6b7290; }
.to-badge.statut-termine { background: #9a6b00; }
@media (max-width: 575px) {
	.to-fiche-tete { flex-direction: column; align-items: flex-start; }
	.to-fiche-schema { flex-basis: auto; width: 120px; }
	.to-fiche-nom { font-size: 1.45rem; }
}
.to-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.to-description { background: #fff; border-left: 4px solid var(--t-orange); border-radius: 10px; padding: .8rem 1rem; margin-bottom: 1rem; box-shadow: var(--t-ombre); }
.to-bandeau-info { background: #fff6e6; border: 1px solid #fde0b0; color: #7a4b00; border-radius: 12px; padding: .7rem 1rem; margin-bottom: 1rem; }
.to-panneau-blanc { background: #fff; border-radius: 18px; box-shadow: var(--t-ombre); padding: 1.2rem 1.3rem; }
.to-h3 { font-size: 1.1rem; font-weight: 800; color: var(--t-nuit); margin-bottom: .8rem; }
.to-participants-liste { list-style: none; padding: 0; margin: 0; counter-reset: tete; }
.to-participants-liste li { display: flex; align-items: center; gap: .6rem; padding: .35rem 0; border-bottom: 1px solid var(--t-fond); counter-increment: tete; }
.to-participants-liste li::before { content: counter(tete); width: 1.6rem; text-align: right; color: var(--t-doux); font-size: .85rem; font-weight: 700; }
.to-responsables { display: flex; flex-wrap: wrap; gap: .4rem; }
.to-responsable { display: inline-flex; align-items: center; gap: .4rem; background: var(--t-fond); border-radius: 999px; padding: .2rem .3rem .2rem .25rem; font-size: .9rem; }

/* ---------- Pastilles (avatars) ---------- */
.to-pastille { flex: 0 0 auto; width: 2.2rem; height: 2.2rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: .8rem; overflow: hidden; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.to-pastille img { width: 100%; height: 100%; object-fit: cover; }
.to-pastille.petite { width: 1.6rem; height: 1.6rem; font-size: .62rem; }

/* ---------- Apercu ---------- */
.to-chiffres { background: var(--t-fond); border-radius: 10px; padding: .55rem .8rem; font-size: .9rem; }
.to-chiffres i, .to-chiffres svg { color: var(--t-orange); }
.to-apercu-titre { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--t-doux); font-weight: 700; margin: .8rem 0 .5rem; }
.to-apercu-liste, .to-apercu-cotes > div { display: flex; flex-direction: column; gap: .4rem; }
.to-apercu-cotes { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
@media (max-width: 575px) { .to-apercu-cotes { grid-template-columns: 1fr; } }
.to-cote-titre { font-size: .75rem; font-weight: 700; color: var(--t-orange-f); }
.to-am { display: flex; align-items: center; gap: .4rem; background: linear-gradient(90deg, #fff, var(--t-fond)); border: 1px solid var(--t-bord); border-radius: 10px; padding: .35rem .5rem; }
.to-am.exempt { opacity: .75; border-style: dashed; }
.to-am-joueur { flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: .35rem; }
.to-am-joueur + .to-am-vs + .to-am-joueur { justify-content: flex-end; flex-direction: row-reverse; text-align: right; }
.to-am-joueur .nom { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: .9rem; }
.to-am-joueur.vide { color: var(--t-doux); font-style: italic; font-size: .8rem; }
.to-am-vs { flex: 0 0 auto; font-size: .65rem; font-weight: 800; color: #fff; background: var(--t-orange); border-radius: 6px; padding: .05rem .3rem; }
.to-apercu-mode { display: flex; align-items: center; gap: .8rem; margin-bottom: .8rem; }
.to-apercu-mode .to-schema { width: 90px; flex: 0 0 90px; color: var(--t-nuit); }
@media (min-width: 992px) { .to-apercu-colle { position: sticky; top: 80px; max-height: calc(100vh - 100px); overflow: auto; } }

/* ---------- Assistant ---------- */
.to-titre-edition { font-weight: 800; color: var(--t-nuit); }
.to-etapes { list-style: none; display: flex; gap: .3rem; padding: 0; margin: 1rem 0 1.2rem; counter-reset: e; }
.to-etapes li { flex: 1; }
.to-etapes button { width: 100%; border: 0; background: #fff; border-radius: 12px; padding: .55rem .4rem; display: flex; align-items: center; justify-content: center; gap: .45rem; color: var(--t-doux); font-weight: 700; box-shadow: var(--t-ombre); cursor: pointer; transition: all .15s; }
.to-etapes .num { width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--t-fond); display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; }
.to-etapes li.actif button { background: var(--t-nuit); color: #fff; }
.to-etapes li.actif .num { background: var(--t-orange); }
.to-etapes li.fait .num { background: var(--t-vert); color: #fff; }
@media (max-width: 575px) { .to-etapes .lib { display: none; } .to-etapes li.actif .lib { display: inline; } }
.to-nav-etapes { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-top: .8rem; flex-wrap: wrap; }
.to-nav-droite { display: flex; gap: .5rem; margin-left: auto; }
.to-modes { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .8rem; }
.to-mode { border: 2px solid var(--t-bord); background: #fff; border-radius: 16px; padding: .9rem; text-align: left; display: flex; flex-direction: column; gap: .35rem; cursor: pointer; transition: all .15s; color: var(--t-nuit); }
.to-mode .to-schema { height: 70px; width: 100%; color: var(--t-nuit-2); }
.to-mode:hover:not(:disabled) { border-color: var(--t-orange); transform: translateY(-2px); }
.to-mode.actif { border-color: var(--t-orange); background: #fff8ef; box-shadow: 0 0 0 4px rgba(247,127,0,.15); }
.to-mode.actif .to-schema { color: var(--t-orange-f); }
.to-mode:disabled { cursor: default; opacity: .6; }
.to-mode.actif:disabled { opacity: 1; }
.to-mode-nom { font-weight: 800; }
.to-mode-desc { font-size: .82rem; color: var(--t-doux); line-height: 1.35; }
.to-compteur { float: right; font-size: .85rem; background: var(--t-fond); border-radius: 999px; padding: .1rem .6rem; color: var(--t-doux); }
.to-ajout { display: flex; gap: .4rem; margin-bottom: .5rem; }
.to-ajout .to-btn { padding: .5rem .85rem; }
.to-ajout-boutons { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .5rem; }
.to-edit-participants { list-style: none; padding: 0; margin: 0; }
.to-edit-participants li { display: flex; align-items: center; gap: .55rem; padding: .35rem .3rem; border-radius: 10px; border: 1px solid transparent; transition: background .15s; }
.to-edit-participants li:hover { background: var(--t-fond); }
.to-edit-participants li[draggable=true] { cursor: grab; }
.to-edit-participants li.glisse { opacity: .4; }
.to-edit-participants li.survol { border-color: var(--t-orange); background: #fff8ef; }
.to-edit-participants .nom { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.to-tete { width: 1.8rem; text-align: center; font-weight: 800; color: var(--t-orange-f); font-size: .85rem; }
.to-nom-inline { flex: 1; min-width: 0; border: 1px solid transparent; border-radius: 8px; padding: .25rem .45rem; font-weight: 600; background: transparent; }
.to-nom-inline:hover, .to-nom-inline:focus { border-color: var(--t-bord); background: #fff; outline: none; }
.to-ligne-actions { display: flex; flex: 0 0 auto; }
.to-melange li { animation: to-melange .45s ease both; }
.to-melange li:nth-child(2n) { animation-delay: .05s; }
.to-melange li:nth-child(3n) { animation-delay: .1s; }
@keyframes to-melange { from { opacity: 0; transform: translateX(-14px) rotate(-1deg); } to { opacity: 1; transform: none; } }
.to-choix { display: flex; flex-direction: column; gap: .3rem; }
.to-radio, .to-check { font-weight: 400; cursor: pointer; }
.to-radio input, .to-check input { margin-right: .4rem; }
.to-points { display: flex; gap: .8rem; flex-wrap: wrap; }
.to-points label { font-weight: 400; font-size: .9rem; }
.to-points input { width: 5rem; }

/* ---------- Choix des membres ---------- */
.to-choix-fond { position: fixed; inset: 0; background: rgba(11, 20, 40, .55); z-index: 1060; display: flex; align-items: center; justify-content: center; padding: 1rem; animation: to-entree .2s ease both; }
.to-choix-boite { background: #fff; border-radius: 18px; width: 100%; max-width: 440px; max-height: 85vh; display: flex; flex-direction: column; padding: 1rem; box-shadow: var(--t-ombre-forte); }
.to-choix-tete { display: flex; justify-content: space-between; align-items: center; margin-bottom: .6rem; }
.to-choix-liste { overflow: auto; flex: 1; display: flex; flex-direction: column; gap: .15rem; }
.to-choix-membre { border: 0; background: none; display: flex; align-items: center; gap: .6rem; padding: .4rem .5rem; border-radius: 10px; text-align: left; cursor: pointer; }
.to-choix-membre:hover { background: var(--t-fond); }
.to-choix-membre .nom { flex: 1; font-weight: 600; }
.to-choix-membre.inactif .nom { color: var(--t-doux); }
.to-choix-membre .coche { color: var(--t-bord); font-size: 1.2rem; }
.to-choix-membre.pris { background: #eaf7ee; }
.to-choix-membre.pris .coche { color: var(--t-vert); }
.to-choix-pied { text-align: right; margin-top: .6rem; }

/* ---------- Toast ---------- */
/* Cachee pour de bon (sortie de l'ecran ET invisible) : vide, un decalage de 150 % de sa hauteur en laissait depasser un point en bas au centre. */
.to-toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translate(-50%, calc(100% + 3rem)); background: var(--t-nuit); color: #fff; padding: .7rem 1.2rem; border-radius: 999px; box-shadow: var(--t-ombre-forte); z-index: 1070; max-width: calc(100% - 2rem); text-align: center;
	opacity: 0; visibility: hidden; transition: transform .3s ease, opacity .3s ease, visibility 0s linear .3s; }
.to-toast.visible { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition: transform .3s ease, opacity .3s ease, visibility 0s; }
.to-toast.erreur { background: var(--t-rouge); }

/* ---------- Tableau (lot 2) ---------- */
.to-vue.sans-anim > * { animation: none; }
.to-direct-etat { margin-left: auto; align-self: center; font-size: .82rem; color: var(--t-doux); white-space: nowrap; }
.to-direct-etat .point { display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; background: var(--t-vert); margin-right: .25rem; animation: to-pulse 2s ease-in-out infinite; }
.to-direct-etat .point.hors { background: var(--t-rouge); }
.to-barre-tableau { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: .6rem; }
.to-segment { display: inline-flex; background: #fff; border-radius: 999px; box-shadow: var(--t-ombre); padding: .2rem; }
.to-segment button { border: 0; background: none; border-radius: 999px; padding: .35rem .8rem; font-weight: 600; color: var(--t-doux); cursor: pointer; white-space: nowrap; }
.to-segment button:hover { color: var(--t-nuit); }
.to-segment button.actif { background: var(--t-nuit); color: #fff; }
.to-zoom-val { min-width: 4.2rem; font-variant-numeric: tabular-nums; }
.to-cadre {
	overflow: auto; max-height: 78vh; border-radius: 18px; padding: 4px;
	background:
		radial-gradient(circle at 50% 0%, rgba(252, 191, 73, .25), transparent 55%),
		linear-gradient(160deg, #0b1428 0%, #14213d 55%, #2b2550 100%);
	box-shadow: var(--t-ombre-forte);
	-webkit-overflow-scrolling: touch;
}
.to-zoom { position: relative; margin: 0 auto; }
.to-tableau { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.to-liens { position: absolute; left: 0; top: 0; overflow: visible; }
.to-liens path { fill: none; stroke: rgba(255,255,255,.28); stroke-width: 2.5; stroke-linejoin: round; }
.to-liens path.monte { stroke: rgba(120, 220, 150, .85); }
.to-liens path.or { stroke: var(--t-or); stroke-width: 3.5; }
.to-liens path.trace { stroke: var(--t-or); stroke-width: 4; }
.to-m {
	position: absolute; display: flex; flex-direction: column; border-radius: 10px; overflow: hidden;
	box-shadow: 0 6px 16px rgba(0,0,0,.35); background: #1f2c4d;
}
.to-m.statut-en_cours { box-shadow: 0 0 0 3px var(--t-orange), 0 6px 16px rgba(0,0,0,.35); animation: to-en-cours 1.6s ease-in-out infinite; }
@keyframes to-en-cours { 50% { box-shadow: 0 0 0 6px rgba(247,127,0,.35), 0 6px 16px rgba(0,0,0,.35); } }
.to-mj {
	flex: 1 1 50%; min-height: 0; display: flex; align-items: center; gap: .4rem; padding: 0 .55rem;
	background: #2e3f68; color: #fff; font-size: .86rem; cursor: pointer; transition: filter .15s;
}
.to-mj + .to-mj { border-top: 1px solid rgba(0,0,0,.25); }
.to-mj:hover { filter: brightness(1.15); }
.to-mj-nom { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.to-mj-score { flex: 0 0 auto; font-weight: 800; background: rgba(0,0,0,.25); border-radius: 6px; padding: 0 .4rem; font-variant-numeric: tabular-nums; }
.to-mj.gagne { background: linear-gradient(90deg, #1f8a40, var(--t-vert)); }
.to-mj.passe { background: linear-gradient(90deg, #1f6e3a, #2f8a50); }
.to-mj.perdu { background: linear-gradient(90deg, #a51d1d, var(--t-rouge)); opacity: .85; }
.to-mj.perdu .to-mj-nom { text-decoration: line-through; text-decoration-color: rgba(255,255,255,.5); }
.to-mj.attente, .to-mj.vide { cursor: default; background: #26355a; color: rgba(255,255,255,.45); }
.to-mj.vide { background: #1c2848; font-style: italic; }
.to-mj.attente:hover, .to-mj.vide:hover { filter: none; }
.to-mj.trace { box-shadow: inset 0 0 0 3px var(--t-or); }
.to-mj .to-pastille { box-shadow: 0 0 0 2px rgba(255,255,255,.35); }
.to-champion {
	position: absolute; height: 54px; display: flex; align-items: center; justify-content: center; gap: .5rem; padding: 0 .8rem;
	border-radius: 14px; background: rgba(255,255,255,.08); border: 2px dashed rgba(252,191,73,.55); color: rgba(255,255,255,.6); font-weight: 700;
}
.to-champion > i, .to-champion > svg { color: var(--t-or); font-size: 1.2rem; }
.to-champion .nom { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.to-champion .nom.attente { cursor: default; }
.to-champion.sacre { background: linear-gradient(135deg, #f9d56e, var(--t-or) 45%, #e09b16); border: 0; color: #3b2600; box-shadow: 0 0 0 4px rgba(252,191,73,.3), 0 10px 26px rgba(252,191,73,.45); animation: to-sacre 2.4s ease-in-out infinite; }
.to-champion.sacre > i, .to-champion.sacre > svg { color: #7a4b00; }
@keyframes to-sacre { 50% { box-shadow: 0 0 0 9px rgba(252,191,73,.12), 0 10px 30px rgba(252,191,73,.6); } }
.to-petite-finale { margin-top: .8rem; display: inline-block; background: linear-gradient(160deg, #0b1428, #14213d); border-radius: 14px; padding: .6rem .9rem .9rem; box-shadow: var(--t-ombre); }
.to-petite-finale .to-apercu-titre { color: rgba(255,255,255,.7); margin-top: 0; }
.to-petite-finale .to-m { position: relative; }
.to-bandeau-champion { display: flex; align-items: center; gap: .8rem; background: linear-gradient(135deg, #f9d56e, var(--t-or) 50%, #e09b16); color: #3b2600; border-radius: 16px; padding: .7rem 1.1rem; margin-bottom: 1rem; box-shadow: 0 8px 24px rgba(252,191,73,.4); }
.to-bandeau-champion b { font-size: 1.25rem; }
.to-bandeau-champion > i, .to-bandeau-champion > svg { margin-left: auto; font-size: 1.8rem; color: #7a4b00; }
.to-couronne { color: var(--t-or); }
.to-participants-liste.colonnes { column-width: 220px; column-gap: 1.5rem; }
.to-participants-liste.colonnes li { break-inside: avoid; }

/* ---------- Saisie des resultats (lot 3) ---------- */
.to-cadre.arbitre .to-m { cursor: pointer; transition: transform .12s; }
.to-cadre.arbitre .to-m:hover { transform: scale(1.04); box-shadow: 0 0 0 3px rgba(252,191,73,.8), 0 8px 20px rgba(0,0,0,.4); }
.to-cadre.arbitre .to-m.statut-pret { box-shadow: 0 0 0 2px rgba(252,191,73,.55), 0 6px 16px rgba(0,0,0,.35); }
.to-saisie { max-width: 520px; }
.to-saisie-duel { display: flex; align-items: stretch; gap: .5rem; margin: .4rem 0 .8rem; }
.to-saisie-joueur { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: .5rem; }
.to-saisie-choisir {
	border: 2px solid var(--t-bord); background: #fff; border-radius: 16px; padding: .8rem .4rem .6rem; display: flex; flex-direction: column; align-items: center; gap: .35rem;
	cursor: pointer; transition: all .15s; color: var(--t-nuit);
}
.to-saisie-choisir .nom { font-weight: 800; text-align: center; line-height: 1.2; word-break: break-word; }
.to-saisie-couronne { font-size: .75rem; font-weight: 700; color: #9a6b00; visibility: hidden; }
.to-saisie-joueur.gagnant .to-saisie-choisir { border-color: var(--t-vert); background: #eaf7ee; box-shadow: 0 0 0 4px rgba(42,157,75,.15); }
.to-saisie-joueur.gagnant .to-saisie-couronne { visibility: visible; }
.to-saisie-joueur.perdant .to-saisie-choisir { opacity: .6; }
.to-pastille.grande { width: 3.6rem; height: 3.6rem; font-size: 1.15rem; }
.to-saisie-vs { align-self: center; font-weight: 800; color: #fff; background: var(--t-orange); border-radius: 8px; padding: .15rem .45rem; font-size: .8rem; }
.to-stepper { display: flex; align-items: center; justify-content: center; gap: .25rem; }
.to-stepper button { width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 1px solid var(--t-bord); background: #fff; color: var(--t-nuit); cursor: pointer; }
.to-stepper button:active { background: var(--t-fond); }
.to-stepper input { width: 4.2rem; text-align: center; font-size: 1.5rem; font-weight: 800; border: 1px solid var(--t-bord); border-radius: 10px; padding: .1rem; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.to-stepper input::-webkit-outer-spin-button, .to-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.to-saisie-pied { display: flex; justify-content: space-between; gap: .5rem; flex-wrap: wrap; margin-top: .8rem; }
.to-saisie-pied .to-btn-or { margin-left: auto; }
.to-btn.actif-direct { border-color: var(--t-orange); color: var(--t-orange-f); }

/* ---------- Listes de matchs ---------- */
.to-a-jouer .to-h3 i, .to-a-jouer .to-h3 svg { color: var(--t-orange); margin-right: .3rem; }
.to-ligne-match { display: block; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--t-fond); background: none; padding: .5rem .2rem; cursor: pointer; border-radius: 8px; }
.to-ligne-match:hover { background: var(--t-fond); }
.to-ligne-match .lib { display: flex; align-items: center; gap: .4rem; font-size: .75rem; color: var(--t-doux); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.to-ligne-match .lib .to-direct { position: static; text-transform: none; letter-spacing: 0; }
.to-ligne-match .duel { display: flex; align-items: center; gap: .5rem; font-weight: 600; }
.to-ligne-match .duel > span:first-child, .to-ligne-match .duel > span:last-child { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.to-ligne-match .duel > span:last-child { text-align: right; }
.to-ligne-match .duel .g { color: var(--t-vert); font-weight: 800; }
.to-ligne-match .sc { flex: 0 0 auto; background: var(--t-nuit); color: #fff; border-radius: 6px; padding: 0 .45rem; font-size: .82rem; font-variant-numeric: tabular-nums; }
.to-ligne-match.statut-en_cours { background: #fff6e6; }

/* ---------- Double elimination (lot 4) ---------- */
.to-section-tableau { position: absolute; color: #fff; font-weight: 800; font-size: 1rem; letter-spacing: .03em; white-space: nowrap; }
.to-section-tableau i, .to-section-tableau svg { color: var(--t-or); margin-right: .3rem; }
.to-section-tableau.repechage i, .to-section-tableau.repechage svg { color: #ff9b9b; }
.to-section-tableau span { font-weight: 400; font-size: .8rem; opacity: .65; margin-left: .4rem; }
.to-m.repechage { background: #3a2440; }
.to-m.repechage .to-mj { background: #4a3258; }
.to-m.repechage .to-mj.gagne { background: linear-gradient(90deg, #1f8a40, var(--t-vert)); }
.to-m.repechage .to-mj.passe { background: linear-gradient(90deg, #1f6e3a, #2f8a50); }
.to-m.repechage .to-mj.perdu { background: linear-gradient(90deg, #a51d1d, var(--t-rouge)); }
.to-m.repechage .to-mj.attente, .to-m.repechage .to-mj.vide { background: #34233d; }
.to-m.grande-finale { box-shadow: 0 0 0 2px var(--t-or), 0 8px 22px rgba(0,0,0,.4); }
.to-liens path.pointille { stroke-dasharray: 6 6; }
.to-note-revanche { position: absolute; font-size: .72rem; line-height: 1.25; color: rgba(255,255,255,.6); font-style: italic; text-align: center; }
.to-mj.attente .to-mj-nom { font-size: .8rem; }

/* ---------- Championnat (lot 5) ---------- */
.to-h3 i, .to-h3 svg { color: var(--t-orange); margin-right: .3rem; }
.to-champ-tete { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin-bottom: .8rem; }
.to-progression { flex: 1 1 120px; height: .5rem; background: var(--t-fond); border-radius: 999px; overflow: hidden; }
.to-progression span { display: block; height: 100%; background: linear-gradient(90deg, var(--t-orange), var(--t-or)); border-radius: 999px; transition: width .5s ease; }
.to-classement-defil { overflow-x: auto; }
.to-classement { width: 100%; border-collapse: separate; border-spacing: 0; font-variant-numeric: tabular-nums; }
.to-classement th { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--t-doux); font-weight: 700; padding: .3rem .4rem; text-align: center; border-bottom: 2px solid var(--t-fond); }
.to-classement td { padding: .4rem; text-align: center; border-bottom: 1px solid var(--t-fond); }
.to-classement .g { text-align: left; }
.to-classement .rang { width: 2rem; font-weight: 800; color: var(--t-doux); }
.to-classement .pts { font-weight: 800; font-size: 1.05rem; color: var(--t-nuit); }
.to-cl-joueur { display: inline-flex; align-items: center; gap: .45rem; max-width: 100%; }
.to-cl-joueur .nom { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.to-classement tr.podium-1 .rang { color: #c9971c; }
.to-classement tr.podium-2 .rang { color: #8f98a8; }
.to-classement tr.podium-3 .rang { color: #b8733d; }
.to-classement tr.champion td { background: #fff7e0; }
.to-classement tr.champion .rang { color: var(--t-or); font-size: 1.1rem; }
.to-forme { display: inline-flex; gap: .15rem; }
.to-forme span { width: 1.2rem; height: 1.2rem; border-radius: 4px; font-size: .65rem; font-weight: 800; color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.to-forme .V { background: var(--t-vert); }
.to-forme .N { background: #8f98a8; }
.to-forme .D { background: var(--t-rouge); }
.to-journees { display: flex; gap: .3rem; flex-wrap: wrap; margin-bottom: .6rem; }
.to-journees button { min-width: 2.2rem; height: 2.2rem; border-radius: 10px; border: 1px solid var(--t-bord); background: #fff; font-weight: 700; color: var(--t-doux); cursor: pointer; }
.to-journees button.finie { background: #eaf7ee; color: var(--t-vert); border-color: #cde9d6; }
.to-journees button.direct { border-color: var(--t-orange); color: var(--t-orange-f); }
.to-journees button.actif { background: var(--t-nuit); color: #fff; border-color: var(--t-nuit); }
.to-mj.nul { background: linear-gradient(90deg, #5d6680, #737c96); }
.to-saisie-nul.choisi { background: #5d6680; color: #fff; border-color: #5d6680; }

/* ---------- Assistant : saisie avec suggestions, apercu modifiable ---------- */
.to-ajout-champ { position: relative; flex: 1 1 auto; min-width: 0; }
.to-suggestions {
	position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 30; background: #fff; border-radius: 12px;
	box-shadow: var(--t-ombre-forte); border: 1px solid var(--t-bord); padding: .3rem; max-height: 320px; overflow: auto;
}
.to-sugg { display: flex; align-items: center; gap: .5rem; width: 100%; border: 0; background: none; padding: .4rem .5rem; border-radius: 8px; text-align: left; cursor: pointer; }
.to-sugg:hover, .to-sugg.actif { background: #fff3e2; }
.to-sugg .nom { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.to-sugg.inactif .nom { color: var(--t-doux); }
.to-sugg-type { font-size: .7rem; font-weight: 700; color: var(--t-vert); background: #eaf7ee; border-radius: 999px; padding: .05rem .5rem; }
.to-sugg-libre { font-size: .8rem; color: var(--t-doux); padding: .4rem .5rem .2rem; border-top: 1px solid var(--t-fond); margin-top: .2rem; }
.to-sugg-libre:first-child { border-top: 0; margin-top: 0; }
.to-apercu-arbre { max-height: 70vh; }
.to-apercu-arbre.interactif .to-mj[data-p] { cursor: grab; }
.to-apercu-arbre .to-mj.glisse { opacity: .4; }
.to-apercu-arbre .to-mj.survol { box-shadow: inset 0 0 0 3px var(--t-orange); filter: brightness(1.25); }
.to-apercu-arbre .to-mj.attente, .to-apercu-arbre .to-mj.vide { cursor: default; }

/* ---------- Image de fond (lot 6) ---------- */
.to-fond-choix { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.to-fond-vignette { width: 160px; height: 90px; border-radius: 12px; background: linear-gradient(135deg, var(--t-nuit), var(--t-nuit-2)) center / cover; color: rgba(255,255,255,.5); display: flex; align-items: center; justify-content: center; font-size: 1.6rem; box-shadow: var(--t-ombre); }
.to-fond-boutons { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.to-carte-haut.avec-fond { background-size: cover; background-position: center; }
.to-fiche-tete.avec-fond { background-size: cover; background-position: center; border-radius: 18px; padding: 1rem 1.2rem; color: #fff; box-shadow: var(--t-ombre-forte); }
.to-fiche-tete.avec-fond .to-fiche-nom { color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.5); }
.to-fiche-tete.avec-fond .to-fiche-jeu { color: var(--t-or); }
.to-fiche-tete.avec-fond .to-doux { color: rgba(255,255,255,.75); }
.to-fiche-tete.avec-fond .to-fiche-schema { background: rgba(0,0,0,.3); }

/* ---------- Partage (lot 6) ---------- */
.to-partage { max-width: 460px; }
.to-partage-lien { display: flex; gap: .4rem; margin-bottom: .8rem; }
.to-partage-lien input { font-size: .85rem; }
.to-partage-qr { display: flex; flex-direction: column; align-items: center; gap: .5rem; text-align: center; }
.to-partage-qr canvas { width: 220px; height: 220px; border-radius: 12px; box-shadow: var(--t-ombre); image-rendering: pixelated; }

/* ---------- Mode TV (lot 6) ---------- */
body.to-tv-actif { overflow: hidden; }
.to-tv {
	position: fixed; inset: 0; z-index: 1080; display: flex; flex-direction: column; color: #fff;
	background-color: #0b1428; background-image: linear-gradient(160deg, #0b1428 0%, #14213d 55%, #2b2550 100%);
	background-size: cover; background-position: center;
}
.to-tv-tete { display: flex; align-items: center; gap: 1rem; padding: .8rem 1.4rem; background: rgba(0,0,0,.35); }
.to-tv-titre { font-size: 1.8rem; font-weight: 800; letter-spacing: .02em; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.to-tv-titre i, .to-tv-titre svg { color: var(--t-or); }
.to-tv-titre span { font-size: 1rem; font-weight: 600; color: var(--t-or); margin-left: .6rem; }
.to-tv-champion { background: linear-gradient(135deg, #f9d56e, var(--t-or) 50%, #e09b16); color: #3b2600; font-weight: 800; font-size: 1.2rem; border-radius: 999px; padding: .3rem 1rem; animation: to-sacre 2.4s ease-in-out infinite; }
.to-tv .to-direct-etat { color: rgba(255,255,255,.75); margin-left: 0; }
.to-tv-fermer { border: 0; background: rgba(255,255,255,.12); color: #fff; width: 2.6rem; height: 2.6rem; border-radius: 50%; font-size: 1.1rem; cursor: pointer; }
.to-tv-fermer:hover { background: rgba(255,255,255,.25); }
.to-tv-scene { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 10px; overflow: hidden; }
.to-tv-echelle { position: relative; }
.to-tv .to-tableau { pointer-events: none; }
.to-tv-petite .to-petite-finale { margin-top: .6rem; }
.to-tv-champ { flex: 1; min-height: 0; overflow: auto; padding: 1rem 1.4rem; display: grid; grid-template-columns: 3fr 2fr; gap: 1rem; align-content: start; }
@media (max-width: 900px) { .to-tv-champ { grid-template-columns: 1fr; } }
.to-tv-champ .to-panneau-blanc { background: rgba(255,255,255,.94); color: var(--t-texte); font-size: 1.15rem; }
.to-tv-champ .to-classement td { padding: .55rem .5rem; }
.to-tv-champ .to-panneau-blanc p.to-doux:last-child { display: none; }
.to-tv-champ button { pointer-events: none; }

/* ---------- Placement libre sur l'apercu : les cases vides du premier tour recoivent un joueur ---------- */
.to-apercu-arbre.interactif .to-mj.vide[data-case] { cursor: pointer; }
.to-apercu-arbre.interactif .to-mj.vide[data-case]:hover,
.to-apercu-arbre.en-choix .to-mj.vide[data-case] { box-shadow: inset 0 0 0 2px rgba(252,191,73,.7); background: #2a3a63; }
.to-bandeau-info .to-btn { margin-left: .3rem; padding: .2rem .6rem; }

/* ---------- Album photo du tournoi ---------- */
.to-album-tete { display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; margin-bottom: .6rem; }
.to-album-titre { font-weight: 800; color: var(--t-nuit); }
.to-album-titre:hover { color: var(--t-orange-f); }
.to-album-vignettes { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .4rem; }
.to-album-vignettes a { display: block; aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden; background: var(--t-fond); }
.to-album-vignettes img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.to-album-vignettes a:hover img { transform: scale(1.06); }
.to-album-plus { display: flex !important; align-items: center; justify-content: center; font-weight: 800; color: var(--t-nuit); font-size: 1.1rem; text-decoration: none; }
.to-sugg-type.prive { color: #9a6b00; background: #fff3e2; }

/* ---------- Lien vers l'album sur la carte de la liste ---------- */
.to-carte-album {
	position: absolute; right: .6rem; bottom: .6rem; width: 2rem; height: 2rem; border-radius: 50%;
	display: flex; align-items: center; justify-content: center; font-size: .85rem; cursor: pointer;
	background: rgba(255,255,255,.92); color: var(--t-nuit); box-shadow: 0 3px 10px rgba(0,0,0,.3); transition: transform .15s, background .15s;
}
.to-carte-album:hover, .to-carte-album:focus { transform: scale(1.12); background: var(--t-or); outline: none; }

/* ---------- Date du tournoi ---------- */
.to-quand { display: flex; gap: .5rem; flex-wrap: wrap; }
.to-quand .to-quand-precision { flex: 0 0 auto; width: auto; }
.to-quand input[type=date] { flex: 0 1 200px; }
.to-quand-mois { display: flex; gap: .5rem; }
.to-quand-mois select { width: auto; }
.to-quand-mois input, .to-quand .to-quand-seule { width: 7rem; }
.to-etat-carte { position: absolute; right: .6rem; top: .6rem; border-radius: 999px; padding: .1rem .55rem; font-size: .72rem; font-weight: 700; background: rgba(255,255,255,.18); color: #fff; }
.to-etat-carte.statut-termine { background: rgba(252,191,73,.9); color: #3b2600; }
.to-carte-date { font-weight: 700; color: var(--t-nuit); }
.to-fiche-date { font-weight: 700; margin-top: .25rem; }
.to-fiche-date i, .to-fiche-date svg { color: var(--t-orange); margin-right: .2rem; }
.to-fiche-tete.avec-fond .to-fiche-date { color: #fff; }

/* ---------- Inscriptions, salle d'attente, joueurs qui donnent leurs resultats ---------- */
.to-carte-inscriptions { color: var(--t-vert); font-weight: 600; }
.to-btn-petit { padding: .25rem .6rem; font-size: .85rem; }
.to-champ-court { max-width: 7rem; }
.to-jauge { display: flex; align-items: center; gap: .7rem; margin-bottom: .8rem; }
.to-jauge-barre { flex: 1 1 auto; height: .5rem; border-radius: 999px; background: var(--t-fond); overflow: hidden; max-width: 22rem; }
.to-jauge-barre span { display: block; height: 100%; background: linear-gradient(90deg, var(--t-vert), var(--t-or)); border-radius: 999px; }
.to-moi-insc { display: flex; align-items: flex-start; gap: .8rem; border-radius: 12px; padding: .75rem 1rem; margin-bottom: .8rem; flex-wrap: wrap; }
.to-moi-insc > i { font-size: 1.4rem; margin-top: .15rem; }
.to-moi-insc > div { flex: 1 1 14rem; }
.to-moi-insc.attente { background: #fff6e6; border: 1px solid #fde0b0; color: #7a4b00; }
.to-moi-insc.admis { background: #e9f7ee; border: 1px solid #bfe5cb; color: #1d6b35; }
.to-moi-insc.refuse { background: #fdeceb; border: 1px solid #f6c4c1; color: #8f1d1d; }
.to-inscrire-anonyme .to-ajout { max-width: 30rem; }
.to-attente { list-style: none; padding: 0; margin: 0 0 .5rem; }
.to-attente li { display: flex; align-items: center; gap: .6rem; padding: .45rem 0; border-bottom: 1px solid var(--t-bord); }
.to-attente li:last-child { border-bottom: 0; }
.to-attente .nom { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.to-h3 .to-btn-petit { float: right; margin-left: .5rem; }
.to-reglages { margin-top: 1rem; }
.to-reglages > summary { cursor: pointer; font-weight: 600; color: var(--t-nuit); }
.to-reglages[open] > summary { margin-bottom: .6rem; }
.to-mon-match { border: 2px solid var(--t-or); }
.to-mon-duel { display: flex; align-items: center; gap: .6rem; margin-bottom: .7rem; flex-wrap: wrap; }
.to-mon-duel .vs { font-weight: 700; color: var(--t-doux); font-size: .8rem; text-transform: uppercase; }
.to-litiges { background: #fdeceb; border: 1px solid #f6c4c1; border-radius: 12px; padding: .7rem 1rem; margin-bottom: 1rem; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.to-litiges-titre { flex: 1 1 100%; color: #8f1d1d; font-weight: 600; }
.to-m.litige { box-shadow: 0 0 0 3px var(--t-rouge); }
.to-ligne-match.litige { border-color: var(--t-rouge); }
.to-tag-litige, .to-tag-decl { display: inline-block; font-size: .72rem; border-radius: 999px; padding: .05rem .5rem; margin-left: .3rem; font-weight: 600; }
.to-tag-litige { background: var(--t-rouge); color: #fff; }
.to-tag-decl { background: #fff6e6; color: #7a4b00; }
.to-decl { background: var(--t-fond); border-radius: 12px; padding: .6rem .8rem; margin-bottom: .8rem; font-size: .9rem; }
.to-decl.litige { background: #fdeceb; }
.to-decl-titre { color: #8f1d1d; font-weight: 600; margin-bottom: .3rem; }
.to-decl-ligne { display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; padding: .2rem 0; }
/* Annonces (notifications dans la page) : en bas a droite, au-dessus de tout, hors de la fiche redessinee. */
.to-annonces { position: fixed; right: 1rem; bottom: 1rem; z-index: 1080; display: flex; flex-direction: column; gap: .5rem; max-width: min(24rem, calc(100% - 2rem)); }
.to-annonce { display: flex; align-items: flex-start; gap: .7rem; background: var(--t-nuit); color: #fff; border-radius: 14px; padding: .8rem 1rem; box-shadow: var(--t-ombre-forte); animation: to-annonce-entree .35s ease; }
.to-annonce > i { color: var(--t-or); font-size: 1.2rem; margin-top: .15rem; }
.to-annonce > div { flex: 1 1 auto; font-size: .9rem; }
.to-annonce .to-icone { color: #fff; }
@keyframes to-annonce-entree { from { transform: translateY(1rem); opacity: 0; } to { transform: none; opacity: 1; } }
/* Enregistrement automatique (assistant et reglages de la fiche) : etat discret a la place des boutons Enregistrer. */
.to-auto-etat { font-size: .85rem; color: var(--t-doux); align-self: center; }
.to-auto-etat .fa-check { color: var(--t-vert); }
.to-auto-etat .erreur { color: var(--t-rouge); }
.to-nav-droite { flex-wrap: wrap; align-items: center; justify-content: flex-end; }
/* ---------- Classement final (tournoi termine), sous le bandeau du champion ---------- */
.to-cf { list-style: none; padding: 0; margin: 0 0 .5rem; columns: 2 22rem; column-gap: 2rem; }
.to-cf li { display: flex; align-items: center; gap: .6rem; padding: .45rem .3rem; border-bottom: 1px solid var(--t-bord); break-inside: avoid; }
.to-cf-rang { flex: 0 0 2.6rem; text-align: center; font-weight: 800; font-size: 1.05rem; color: var(--t-nuit); }
.to-cf-rang sup { font-size: .6em; font-weight: 600; }
.to-cf li.med1 .to-cf-rang, .to-cf li.med2 .to-cf-rang, .to-cf li.med3 .to-cf-rang { border-radius: 999px; padding: .15rem 0; color: #3b2600; }
.to-cf li.med1 .to-cf-rang { background: linear-gradient(135deg, #f9d56e, #e0a930); }
.to-cf li.med2 .to-cf-rang { background: linear-gradient(135deg, #eceff4, #b8bfcc); }
.to-cf li.med3 .to-cf-rang { background: linear-gradient(135deg, #f0c9a0, #c88a52); }
.to-cf-nom { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; overflow-wrap: anywhere; }
.to-cf-stats { flex: 0 0 auto; font-size: .82rem; color: var(--t-doux); white-space: nowrap; }
.to-annonce { transition: opacity .35s ease, transform .35s ease; }
.to-annonce.sortie { opacity: 0; transform: translateX(1rem); }

/* Zone dangereuse en bas de la page de modification : suppression du tournoi en deux temps. */
.to-zone-alerte { border: 2px solid var(--t-rouge); background: #fdecec; border-radius: 18px; padding: 1.1rem 1.3rem; margin: 1.5rem 0 1rem; color: #6b1010; }
.to-za-titre { font-weight: 800; color: var(--t-rouge); text-transform: uppercase; letter-spacing: .04em; margin-bottom: .5rem; }
.to-zone-alerte p { margin-bottom: .75rem; }
.to-za-champ { max-width: 26rem; margin-bottom: .75rem; border-color: var(--t-rouge); }
.to-za-boutons { display: flex; flex-wrap: wrap; gap: .5rem; }
.to-btn-rouge { background: var(--t-rouge); border-color: var(--t-rouge); color: #fff; }
.to-btn-rouge:hover { background: #b51f1f; border-color: #b51f1f; color: #fff; }
.to-btn-rouge:disabled:hover { background: var(--t-rouge); border-color: var(--t-rouge); }

/* Photos des joueurs dans l'album lie au tournoi (10 au plus par joueur). */
.to-photos-joueur { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: .75rem; padding-top: .75rem; border-top: 1px dashed var(--t-bord); }
