/* ============================================================
   mobile.css - campionos sur telephone (18/11/2026)
   ------------------------------------------------------------
   Charge UNIQUEMENT sur les petits ecrans : le <link> de
   balises_head.php porte media="(max-width: 820px)". Sur ordinateur
   ce fichier n'est meme pas applique : l'affichage ne change pas.
   Etape 1 : la coque du site (en-tete, barre de navigation,
   colonnes, pied de page). Les pages seront reprises une par une.
   ============================================================ */

/* --- Page entiere : plus de largeur fixe de 1024 px --- */
#global { width: 100% !important; max-width: 100% !important; } /* tchat public, historique des sondages */
body { margin: 0 !important; }
#page, #pagePronos, #pageBilan {
	width: 100% !important;
	min-width: 0 !important;
	max-width: 100% !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}
/* les tableaux de mise en page deviennent de simples blocs (sinon le tableau
   s'elargit a la taille de son contenu et deborde de l'ecran) */
#page, #page > tbody, #page > tbody > tr, #page > tbody > tr > td,
#page > tbody > tr:first-child > td > table,
#page > tbody > tr:first-child > td > table > tbody,
#page > tbody > tr:first-child > td > table > tbody > tr {
	display: block !important;
	width: 100% !important;
	box-sizing: border-box;
}
#page > tbody > tr > td { padding-left: 8px !important; padding-right: 8px !important; }
img { max-width: 100%; height: auto; }

/* --- En-tete : logo au-dessus, bloc joueur en dessous --- */
#page > tbody > tr:first-child > td > table { width: 100% !important; }
#page > tbody > tr:first-child > td > table > tbody > tr:first-child > td {
	display: block !important;
	width: 100% !important;
	min-width: 0 !important;
	text-align: center !important;
	padding: 0 !important;
}
#page > tbody > tr:first-child > td > table > tbody > tr:first-child > td:first-child a {
	margin: 6px auto 8px !important;
}
#page > tbody > tr:first-child > td > table > tbody > tr:first-child > td:first-child img {
	max-width: 240px !important;
	height: auto !important;
}
#page > tbody > tr:first-child > td > table > tbody > tr:first-child > td > div[align="right"] > div,
#page > tbody > tr:first-child > td > table > tbody > tr:first-child > td > div[align="right"] > div > div {
	width: 100% !important;
	box-sizing: border-box;
}
#page > tbody > tr:first-child > td > table > tbody > tr:first-child > td > div[align="right"] > div > div > div {
	gap: 8px !important;
}
#page > tbody > tr:first-child > td > table > tbody > tr:first-child > td > div[align="right"] a[href*="cmois.php"],
#page > tbody > tr:first-child > td > table > tbody > tr:first-child > td > div[align="right"] a[href*="general.php"],
#page > tbody > tr:first-child > td > table > tbody > tr:first-child > td > div[align="right"] a[href*="campios_detail.php"] {
	padding: 5px 6px !important;
}

/* raccourcis du joueur (Bilan, Profil...) : 4 par ligne */
.tshirt-icones { flex-wrap: wrap !important; justify-content: center !important; row-gap: 8px !important; min-width: 0 !important; }
.tshirt-icones > a, .tshirt-icones > span { flex: 0 0 23% !important; min-width: 0 !important; }
.tshirt-icones > span:empty, .tshirt-icones > div:empty { display: none !important; }

/* --- Barre de navigation : les liens passent a la ligne --- */
#nvBarre {
	flex-wrap: wrap !important;
	justify-content: center !important;
	border-radius: 12px 12px 0 0 !important;
	padding: 6px !important;
	gap: 4px !important;
}
#nvBarre .nv-g { justify-content: center; row-gap: 4px; }
#nvBarre a.nv-l, #nvBarre a.nv-l:link, #nvBarre a.nv-l:visited {
	font-size: 13.5px !important;
	padding: 7px 10px !important;
}
#nvBarre .nv-compet { margin: 0 4px !important; gap: 6px !important; }
#nvBarre .nv-compet a, #nvBarre .nv-compet a:link, #nvBarre .nv-compet a:visited { padding: 6px 11px !important; }
#nvBarre a.nv-voter, #nvBarre a.nv-voter:link, #nvBarre a.nv-voter:visited { padding: 6px 12px !important; }
/* menus deroulants : toute la largeur de l'ecran, sous la barre */
#nvBarre .nv-dd { position: static !important; }
#nvBarre .nv-menu { left: 6px !important; right: 6px !important; }
#nvBarre .nv-carte { min-width: 0 !important; }
#nvBarre .nv-carte:before { display: none; }
.nv-sous { flex-wrap: wrap !important; justify-content: center !important; gap: 6px !important; }

/* --- Colonnes : centre puis droite, l'une sous l'autre --- */
#contenu, #contenu:has(> .index_centre):has(> .index_droite) {
	width: 100% !important;
	display: block !important;
}
#contenu > .index_gauche,
#contenu > .index_centre,
#contenu > .index_droite,
.index_gauche, .index_centre, .index_droite {
	float: none !important;
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	box-sizing: border-box;
}
.index_droite { margin-top: 14px !important; }
/* accueil : blocs Prochains pronostics / Derniers resultats (650 px fixes sur ordinateur) */
.pronos_index { width: 100% !important; max-width: 100% !important; box-sizing: border-box; }

/* blocs de contenu : jamais plus larges que l'ecran */
.index_centre table, .index_droite table { max-width: 100%; }
.hm-duo { display: block !important; }
.hm-duo > .hm-carte { width: auto !important; margin-bottom: 14px; }

/* lignes de pronostics (accueil, prochains pronostics) : le temps restant
   et le bouton passent sous le nom du championnat */
.conteneurPronostics .pp-cellule, .conteneurPronostics .pr-cellule { flex-wrap: wrap !important; row-gap: 8px !important; }
.conteneurPronostics .pp-infos { flex: 1 1 100% !important; }
.conteneurPronostics .pp-temps { margin-left: 42px; }
.conteneurPronostics .pp-cellule > a:last-child, .conteneurPronostics .pp-bouton { margin-left: auto; }

/* filet de securite : un contenu trop large (tableau de classement...)
   defile dans sa colonne au lieu d'elargir toute la page */
.index_centre, .index_droite, .contenu_encadre, .contenu_sans_menu { overflow-x: auto; }
.contenu_sans_menu { width: 100% !important; max-width: 100% !important; box-sizing: border-box; }
.section-titre-violet { margin-left: 0 !important; margin-right: 0 !important; }

/* forum (liste des sujets) : sur ordinateur les titres longs sont coupes
   par "..." ; dans un tableau ils elargissaient toute la page sur
   telephone -> ils passent a la ligne */
.contenu_sans_menu a.forum-sujet-titre { white-space: normal !important; overflow-wrap: anywhere; }
.contenu_sans_menu:has(.forum-sujet-titre) input[name="recherche_pseudo"] { width: 150px !important; }

/* classements general / mensuel / amis (.clm-tab) : colonnes resserrees */
.clm-tab th, .clm-tab td { padding: 6px 3px !important; }
.clm-tab td.v { width: auto !important; }
.clm-tab td.ev { width: 34px !important; }
.clm-tab td.j img { width: 20px !important; height: 20px !important; }

/* Ligues : la colonne Forme est masquee sur telephone (elle reste sur la page de chaque ligue en grand ecran) */
.lc-forme-th, td:has(> .lc-forme) { display: none !important; }

/* messagerie : pseudo, pastille et date peuvent passer a la ligne */
.mc-l1 { flex-wrap: wrap !important; row-gap: 2px; }
.mc-l1 .d { margin-left: auto; }

/* page de pronostic : chaque match sur deux lignes, les deux equipes en
   entier en haut (domicile a gauche, exterieur a droite), les cases du
   score centrees en dessous (avant : noms coupes a 2-3 lettres) */
.prono-match-ligne {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
	grid-template-areas: "dom ext" "sc sc";
	row-gap: 8px !important;
	column-gap: 10px !important;
	padding: 10px 12px !important;
}
.prono-match-equipe.dom { grid-area: dom; justify-content: flex-start !important; }
.prono-match-equipe.ext { grid-area: ext; justify-content: flex-end !important; text-align: right; }
.prono-match-equipe.dom img.lg, .prono-match-equipe.dom .lg.vide { order: -1; }
.prono-match-equipe.dom .prono-match-classement { order: 1; }
.prono-match-equipe.ext .prono-match-classement { order: -1; }
.prono-match-equipe.ext img.lg, .prono-match-equipe.ext .lg.vide { order: 2; }
.prono-match-equipe .nm { white-space: normal !important; overflow: visible !important; text-overflow: clip !important; line-height: 1.25; }
.prono-match-scores { grid-area: sc; justify-self: center; }
.prono-match-scores input { width: 46px !important; height: 40px !important; font-size: 18px !important; }

/* --- Pied de page --- */
.cp-pied {
	width: auto !important;
	max-width: 100% !important;
	flex-wrap: wrap !important;
	justify-content: center !important;
	gap: 10px !important;
	text-align: center;
}
.cp-pied > div { width: auto !important; }

/* page de pronostic : pastille "Ligues" reduite a la coupe sur telephone */
.prono-match-equipe a.lc-tag { order: -2; margin-right: 0 !important; padding: 2px 6px !important; }
.prono-match-equipe a.lc-tag .lc-tag-t { display: none; }
