/*
 * Couche visuelle commune à toutes les pages rendues par index.php.
 * Elle ne modifie ni les formulaires, ni les liens, ni les paramètres PHP.
 */
:root {
    --ttw-page: #10131a;
    --ttw-surface: #1b202b;
    --ttw-surface-raised: #252c39;
    --ttw-surface-hover: #303a4a;
    --ttw-border: rgba(203, 213, 225, .16);
    --ttw-text: #f8fafc;
    --ttw-muted: #b8c2d1;
    --ttw-accent: #38bdf8;
    --ttw-accent-strong: #0284c7;
    --ttw-success: #34d399;
    --ttw-warning: #fbbf24;
}

#content {
    color: var(--ttw-text);
}

#content > table:not(.site-nav):not(.sub-nav) > tbody > tr > td {
    padding: clamp(12px, 2vw, 24px);
}

/* Navigation principale et navigation Squad. */
.site-nav,
.sub-nav {
    width: 100%;
    border: 0 !important;
    border-collapse: separate;
    border-spacing: 0;
    background: #111827;
}

.site-nav td,
.sub-nav td {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

.site-nav a,
.sub-nav a {
    display: block;
    min-height: 44px;
    padding: 8px 12px;
    color: var(--ttw-text) !important;
    text-decoration: none;
    transition: background-color .16s ease, color .16s ease;
}

.site-nav__link--play,
.site-nav__link--icon {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.site-nav__icon-content {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.site-nav__icon {
    display: block;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    object-fit: contain;
}

.site-nav__label {
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .045em;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.sub-nav a:hover,
.sub-nav a:focus-visible {
    background: var(--ttw-accent-strong);
    color: #fff !important;
    outline: none;
}

#menu {
    font-family: inherit;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .045em;
}

/* En-tête des participants : mêmes informations, format plus compact. */
#content .user-summary {
    border-collapse: collapse;
}

#content .user-summary__user {
    padding: 4px 6px !important;
}

#content .user-summary__labels {
    padding: 0 !important;
    background: #111827;
}

#content .header-nav {
    display: flex;
    height: 100%;
    flex-direction: column;
}

#content .header-nav a {
    display: flex;
    min-height: 42px;
    flex: 1 1 auto;
    align-items: center;
    gap: 7px;
    padding: 7px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    color: var(--ttw-text) !important;
    font-size: .67rem;
    font-weight: 800;
    line-height: 1.15;
    text-align: left;
    text-decoration: none;
    transition: background-color .16s ease;
}

#content .header-nav a:hover,
#content .header-nav a:focus-visible {
    background: var(--ttw-accent-strong);
}

#content .header-nav img {
    width: 26px !important;
    height: 26px !important;
    flex: 0 0 26px;
    object-fit: contain;
}

#content .header-nav .header-nav__logout {
    flex-grow: 0;
    justify-content: center;
    color: #cbd5e1 !important;
    font-size: .62rem;
    text-align: center;
}

#content .user-summary__labels-card {
    border-collapse: collapse;
}

#content .user-summary__labels-card td,
#content .user-summary__labels-card th {
    padding: 2px 4px !important;
    line-height: 1.2;
}

#content .user-summary__labels-avatar-space {
    height: 124px;
}

#content .user-summary__metric-label {
    color: var(--ttw-muted);
    font-size: .76rem;
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
}

#content .user-summary__card {
    border-collapse: collapse;
}

#content .user-summary__card td {
    padding: 2px 4px !important;
    line-height: 1.2;
}

#content .user-summary__stars {
    height: 16px;
}

#content .user-summary__stars img {
    width: 13px !important;
    height: 13px;
    vertical-align: middle;
}

#content .user-summary__avatar {
    width: 124px !important;
    height: 124px !important;
    object-fit: contain;
}

#content .user-summary__logout form {
    margin: 0;
}

#content .user-summary__labels > .user-summary__logout {
    position: absolute;
    top: 4px;
    left: 8px;
    margin: 0;
}

#content .user-summary__logout-row {
    display: none;
}

#content .user-summary__logout a {
    font-size: .72rem;
}

#content .user-summary__ranking-title {
    padding-top: 4px !important;
    font-size: .78rem;
}

#content .user-summary__general-label,
#content .user-summary__race-label,
#content .user-summary__points,
#content .user-summary__race-points {
    font-size: .76rem;
}

#content .user-summary__general-label,
#content .user-summary__race-label {
    display: none;
}

#content .user-summary__rank-icon img {
    height: 30px !important;
    width: auto;
}

/* Cartes et tableaux utilisés par Jouer, Résultats, Classements et Squad. */
#content table[bgcolor],
#content .MonTableau {
    border-color: var(--ttw-border) !important;
    background-color: var(--ttw-surface-raised) !important;
    color: var(--ttw-text);
}

#content table[border="1"],
#content .MonTableau {
    border: 1px solid var(--ttw-border);
}

#content .MonTableau {
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .16);
}

#content .MonTableau td,
#content .MonTableau th,
#content table[border="1"] td,
#content table[border="1"] th {
    border-color: var(--ttw-border) !important;
}

#content .MonTableau tr:nth-child(even) > td {
    background-color: rgba(255, 255, 255, .025);
}

#content .MonTableau tr:hover > td {
    background-color: rgba(56, 189, 248, .075);
}

/* The Race : fond légèrement plus clair, sans séparations entre les cellules. */
#content .the-race-table {
    box-sizing: border-box;
    border: 1px solid transparent !important;
    background-color: #3b4556 !important;
    transition: border-color .16s ease;
}

#content .the-race-table--not-played {
    border-color: #ef4444 !important;
}

#content .the-race-table--played {
    border-color: #22c55e !important;
}

#content .the-race-table:hover {
    border-color: #38bdf8 !important;
}

#content .the-race-table td,
#content .the-race-table th {
    border: 0 !important;
}

/* The Best Ligue 1 : mêmes états et interactions que les autres pronostics. */
#content .the-best-l1-table {
    box-sizing: border-box;
    width: 91.2% !important;
    margin-right: 2%;
    margin-left: 6.8%;
    border: 1px solid transparent !important;
    background-color: #3b4556 !important;
    scroll-margin-top: 12px;
    transition: border-color .16s ease;
}

#content .the-best-l1-table.the-best-l1-table--not-played {
    border-color: #ef4444 !important;
}

#content .the-best-l1-table.the-best-l1-table--played {
    border-color: #22c55e !important;
}

#content .the-best-l1-table:hover {
    border-color: #38bdf8 !important;
}

#content .the-best-l1-table td,
#content .the-best-l1-table th {
    border: 0 !important;
}

#content .the-best-l1-match {
    color: #cbd5e1;
    font-size: .78rem;
    font-weight: 700;
}

#content .the-best-l1-clubs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 5px 6px 6px;
}

#content .the-best-l1-club h4 {
    margin: 0 0 4px;
    color: #cbd5e1;
    text-align: center;
}

#content .the-best-l1-players {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 3px;
}

#content .the-best-l1-choice {
    min-height: 18px;
    padding: 0 1px;
    border: 1px solid #ef4444;
    border-radius: 6px;
    background: #fff;
    color: #172033;
    font: 700 .65rem/1.2 inherit;
    cursor: pointer;
    transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}

#content .the-race-choice-cell {
    width: 2%;
    padding-right: 0 !important;
    padding-left: 0 !important;
}

#content .the-race-choice {
    margin-right: 0 !important;
    margin-left: 0 !important;
    padding-right: 5px;
    padding-left: 5px;
}

#content .the-best-l1-choice.is-selected,
#content .the-best-l1-choice:hover,
#content .the-best-l1-choice:focus-visible {
    border-color: var(--ttw-accent-strong) !important;
    background: var(--ttw-accent-strong) !important;
    color: #fff !important;
    font-weight: 800;
}

#content .the-race-match-meta {
    color: #cbd5e1;
}

#content .question-match-meta {
    color: #cbd5e1;
}

#content .the-race-match-detail {
    font-weight: 400;
}

#content caption {
    padding: 10px 12px;
    color: var(--ttw-muted);
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-align: left;
    text-transform: uppercase;
}

/* Filtres communs aux résultats, classements et écrans Squad. */
.buttonFiltre,
.buttonFiltreActif {
    min-height: 34px;
    margin: 2px;
    padding: 6px 10px;
    border: 1px solid rgba(125, 211, 252, .22);
    border-radius: 999px;
    background: #202a38;
    box-shadow: none;
    color: #e2e8f0;
    font: 700 .78rem/1.2 inherit;
    transition: background-color .16s ease, border-color .16s ease, transform .16s ease;
}

.buttonFiltre:hover,
.buttonFiltre:focus-visible {
    border-color: var(--ttw-accent);
    background: #263a4e;
    color: #fff;
}

.buttonFiltreActif {
    border-color: var(--ttw-accent);
    background: var(--ttw-accent-strong);
    color: #fff;
}

/* Actions de pronostics, d'enchères et de gestion d'équipe. */
#content .ButtonJouer,
#content .ButtonJouer2,
#content .myButton,
#content .myButton_Valider,
#content [class^="myButton_Enchere"],
#content [class*=" myButton_Enchere"],
#content .bouton_Remplacement_Gar,
#content .bouton_Remplacement_Def,
#content .bouton_Remplacement_Mil,
#content .bouton_Remplacement_Att {
    min-height: 36px;
    padding: 7px 12px;
    border-radius: 8px;
    box-shadow: none;
    font-family: inherit;
    font-size: .82rem;
    line-height: 1.2;
    text-shadow: none;
}

#content .btn1 {
    display: inline-flex;
    min-width: 40px;
    min-height: 40px;
    justify-content: center;
    padding: 5px 8px;
    border-radius: 9px;
    transition: border-color .16s ease, background-color .16s ease, color .16s ease;
}

#content .btn1:hover {
    padding: 5px 8px;
    border-width: 3px;
    transform: none;
}

/* Propositions des devinettes : une action claire par réponse possible. */
#content .question-table {
    box-sizing: border-box;
    border: 1px solid transparent !important;
    scroll-margin-top: 12px;
    transition: border-color .16s ease;
}

#content .question-table.question-table--incomplete {
    border-color: #ef4444 !important;
}

#content .question-table.question-table--complete {
    border-color: #22c55e !important;
}

#content .question-table:hover {
    border-color: #38bdf8 !important;
}

#content .question-competition-logo {
    width: 60px;
    min-width: 60px;
    text-align: center;
    vertical-align: middle;
}

#content .question-competition-logo img {
    display: block;
    width: 50px;
    max-width: 50px;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
}

#content .question-answer-area {
    overflow-x: auto;
}

#content .question-answer-grid {
    display: block;
}

#content .question-answer-grid > tbody {
    display: grid;
    grid-template-columns: repeat(var(--question-answer-count), minmax(135px, 1fr));
    gap: 10px;
}

#content .question-answer-grid > tbody > tr {
    display: block;
    min-width: 0;
}

#content .question-answer-grid > tbody > tr > td {
    display: block;
    width: auto !important;
    padding: 4px;
    text-align: center;
}

#content .question-answer-grid input[type="text"] {
    box-sizing: border-box;
    width: 100%;
}

#content .question-choice-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

#content .question-choices-coming-soon {
    display: block;
    padding: 8px 4px;
    color: #6b7280;
    font-size: .78rem;
    font-style: italic;
}

#content .question-answer-area--coming-soon {
    text-align: center;
    vertical-align: middle;
}

#content .question-choice-button {
    min-height: 38px;
    padding: 7px 12px;
    border: 2px solid #ef4444;
    border-radius: 8px;
    background: #fff;
    color: #172033;
    font: 700 .74rem/1.2 inherit;
    cursor: pointer;
    transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}

#content .question-choice-button.is-selected {
    border-color: var(--ttw-accent-strong) !important;
    background: var(--ttw-accent-strong) !important;
    color: #fff !important;
    font-weight: 800;
}

#content .question-choice-button:hover,
#content .question-choice-button:focus-visible {
    border-color: var(--ttw-accent-strong) !important;
    background: var(--ttw-accent-strong) !important;
    color: #fff !important;
    font-weight: 800;
}

/* Choix 1 / N / 2 de The Race : même bleu au survol et après sélection. */
#content .the-race-choice:hover,
#content .the-race-choice:focus-visible,
#content .the-race-choice.is-selected {
    border-color: var(--ttw-accent-strong) !important;
    background: var(--ttw-accent-strong) !important;
    color: #fff !important;
}

#content .the-race-choice.is-selected {
    font-weight: 900 !important;
}

#content .the-race-choice:hover,
#content .the-race-choice:focus-visible {
    border-width: 1px;
}

#content .the-race-choice:hover span,
#content .the-race-choice:focus-visible span {
    display: inline;
}

#content .the-race-choice:hover::before,
#content .the-race-choice:focus-visible::before {
    content: none;
}

#content .btn_G,
#content .btn_D,
#content .btn_M,
#content .btn_A,
#content .btn_R,
#content .btn_R2 {
    min-width: 34px;
    min-height: 34px;
    margin: 2px;
    font-family: inherit;
    font-size: .78rem;
}

/* Typographie et informations de match. */
#content #competition_TheRace,
#content #date,
#content #date2,
#content #competition,
#content #titre_compet,
#content #def_match,
#content #res_match {
    font-family: inherit;
}

#content #competition_TheRace {
    color: var(--ttw-warning);
}

#content #date {
    color: #fb7185;
}

#content #date2,
#content #Periode_0,
#content #Periode_1,
#content #Periode_2,
#content #Periode_3,
#content #Periode_4,
#content #Periode_5,
#content #Periode_6,
#content #Periode_7,
#content #Periode_8,
#content #Periode_9 {
    border-width: 1px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .16);
}

#content #cote {
    min-width: 28px;
    padding: 3px 6px;
    border: 1px solid rgba(251, 191, 36, .35);
    border-radius: 999px;
    background: rgba(251, 191, 36, .12);
    color: #fef3c7;
}

#content .the-race-choice + #cote {
    margin-top: 5px;
}

#content #cote.cote--selected {
    border-color: var(--ttw-accent-strong);
    color: var(--ttw-accent);
    font-weight: 800;
}

#content #question,
#content #joueurSquad {
    line-height: 1.5;
}

#content #question_Explication,
#content #joueurSquad_Explication,
#content #infos_date,
#content #infos_cat,
#content #infos_eve {
    color: var(--ttw-muted);
}

#content p {
    margin: 12px 0;
    padding: 14px 16px;
    border: 1px solid var(--ttw-border);
    border-radius: 10px;
    background: rgba(255, 255, 255, .025);
    line-height: 1.6;
}

#content .maintenance-panel {
    max-width: 680px;
    margin: 64px auto 20px;
    padding: 36px 28px;
    border: 1px solid rgba(56, 189, 248, .5);
    border-radius: 18px;
    background: linear-gradient(145deg, #273244, #172033);
    box-shadow: 0 18px 48px rgba(0, 0, 0, .32);
    color: var(--ttw-text);
    text-align: center;
}

#content .maintenance-panel__icon {
    color: var(--ttw-accent);
    font-size: 3.2rem;
    line-height: 1;
}

#content .maintenance-panel h1 {
    margin: 14px 0 12px;
    color: #f8fafc;
    font-size: clamp(1.7rem, 4vw, 2.5rem);
}

#content .maintenance-panel p {
    margin: 6px 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #cbd5e1;
}

#content .maintenance-panel__logout {
    margin: 20px auto;
    text-align: center;
}

#content .maintenance-panel__logout a {
    display: inline-block;
    margin-left: 8px;
    color: var(--ttw-accent);
    font-weight: 800;
}

#content .login-form {
    width: min(92%, 410px);
    margin: 24px auto 56px;
}

#content .login-panel {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, .22);
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #202938;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .22);
    color: #cbd5e1;
}

#content .login-panel th,
#content .login-panel td {
    border: 0;
    padding: 7px 9px;
}

#content .login-panel tr + tr > * {
    border-top: 1px solid rgba(148, 163, 184, .13);
}

#content .login-panel__title {
    padding: 10px !important;
    background: #273244;
    color: #e2e8f0;
    font-size: .88rem;
    letter-spacing: .025em;
}

#content .login-panel__label {
    width: 105px;
    background: rgba(255, 255, 255, .025);
    color: #94a3b8;
    font-size: .74rem;
    font-weight: 700;
    white-space: nowrap;
}

#content .login-panel__field input {
    box-sizing: border-box;
    width: 100%;
    min-height: 30px;
    padding: 5px 7px;
    border: 1px solid rgba(148, 163, 184, .28);
    border-radius: 6px;
    background: #151d2a;
    color: #e2e8f0;
    font: inherit;
    font-size: .8rem;
}

#content .login-panel__submit {
    padding: 9px !important;
    background: #1c2533;
    text-align: center;
}

#content .login-panel__submit button {
    min-height: 30px;
    padding: 5px 14px;
    border: 1px solid rgba(56, 189, 248, .38);
    border-radius: 7px;
    background: #334155;
    color: #e2e8f0;
    font: 700 .76rem/1.2 inherit;
    cursor: pointer;
}

#content .login-panel__submit button:hover,
#content .login-panel__submit button:focus-visible {
    background: #3f4d61;
    border-color: rgba(56, 189, 248, .65);
}

#content .flash-message {
    max-width: 560px;
    margin: 20px auto -20px;
}

#content .flash-message--error {
    border-color: rgba(251, 113, 133, .55);
    background: rgba(190, 24, 93, .18);
    color: #ffe4e6;
}

#content .flash-message--success {
    border-color: rgba(52, 211, 153, .55);
    background: rgba(5, 150, 105, .18);
    color: #d1fae5;
}

#content :is(input, select, textarea, button):focus-visible,
#content a:focus-visible {
    outline: 3px solid rgba(56, 189, 248, .58);
    outline-offset: 2px;
}

@media (max-width: 700px) {
	html,
	body {
		width: 100% !important;
		max-width: 100% !important;
		margin: 0 !important;
		padding: 0 !important;
		overflow-x: hidden;
		background: var(--ttw-surface, #24272f) !important;
	}

	#content {
		width: 100% !important;
		max-width: 100% !important;
		margin: 0 !important;
		border: 0 !important;
		border-radius: 0 !important;
		box-shadow: none !important;
		overflow-x: hidden;
	}

	#content .header-nav {
		width: 100%;
		flex-direction: row;
		flex-wrap: wrap;
	}

	#content .header-nav a {
		min-width: 0;
		min-height: 52px;
		flex: 0 0 33.333%;
		justify-content: center;
		padding: 5px 3px;
		font-size: .6rem;
		text-align: center;
	}

	#content .header-nav img {
		width: 26px !important;
		height: 26px !important;
		flex: 0 0 26px;
	}

	#content .header-nav .header-nav__logout {
		min-height: 30px;
		flex: 0 0 100%;
		padding: 4px;
	}

	/* L'en-tête mobile reste compact : menu sur toute la largeur, puis les
	   quatre participants côte à côte avant le contenu de la page. */
	#content .user-summary,
	#content .user-summary > tbody {
		display: block !important;
		width: 100% !important;
	}

	#content .user-summary > tbody > tr {
		display: grid !important;
		grid-template-columns: repeat(4, minmax(0, 1fr));
		width: 100% !important;
	}

	#content .user-summary__labels {
		display: block !important;
		grid-column: 1 / -1;
		width: 100% !important;
	}

	#content .user-summary__user {
		display: block !important;
		width: auto !important;
		min-width: 0;
		padding: 3px 1px !important;
	}

	#content .user-summary__card,
	#content .user-summary__card tbody,
	#content .user-summary__card tr {
		display: table !important;
		width: 100% !important;
	}

	#content .user-summary__card tr {
		display: table-row !important;
	}

	#content .user-summary__card td {
		display: table-cell !important;
		width: auto !important;
		padding: 1px !important;
	}

	#content .user-summary__avatar {
		width: 100% !important;
		height: auto !important;
		aspect-ratio: 1 / 1;
		object-fit: contain;
	}

	#content .user-summary__avatar-cell {
		padding: 0 !important;
	}

	#content .user-summary__points,
	#content .user-summary__race-points {
		font-size: .62rem;
	}

	#content .user-summary__card .user-summary__general-label,
	#content .user-summary__card .user-summary__race-label {
		display: none !important;
	}

	#content .user-summary__card .user-summary__logout-row {
		display: none !important;
	}

	#content .main-route {
		display: block;
		width: 100vw;
		max-width: 100vw;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		text-align: center;
	}

	#content center:has(> .main-route) {
		display: block;
		width: 100vw;
		max-width: 100vw;
	}

	#content .main-route > table {
		min-width: max-content;
	}

	#content .the-race-table {
		display: table;
		width: 100% !important;
		min-width: 0 !important;
		margin-right: 0;
		margin-left: 0;
		table-layout: fixed;
		font-size: .62rem;
	}

	#content .the-race-table > tbody {
		display: table-row-group;
		width: 100%;
		min-width: 0;
	}

	#content .the-race-table td {
		padding: 2px 1px !important;
		overflow-wrap: anywhere;
	}

	#content .the-race-table #def_match {
		font-size: .58rem;
		line-height: 1.1;
	}

	#content .the-race-table .the-race-match-meta {
		font-size: .6rem;
		line-height: 1.15;
	}

	#content .the-race-table .the-race-choice {
		min-width: 24px;
		min-height: 26px;
		padding: 2px 4px;
	}

	#content .the-race-table td:last-child table {
		width: 100% !important;
	}

	#content .the-race-table td:last-child table td {
		padding: 0 !important;
	}

	#content .the-race-table td:last-child img {
		width: auto !important;
		max-width: 100%;
		max-height: 24px;
	}

	/* Menu mobile : trois actions visibles sur une seule ligne. */
	#content .site-nav {
		display: table !important;
		table-layout: fixed;
	}

	#content .site-nav > tbody {
		display: table-row-group !important;
	}

	#content .site-nav > tbody > tr {
		display: table-row !important;
	}

	#content .site-nav > tbody > tr > td {
		display: table-cell !important;
		width: 33.333% !important;
		vertical-align: middle;
	}

	#content .site-nav a {
		min-height: 52px;
		padding: 9px 4px;
		border-right: 1px solid rgba(255, 255, 255, .08);
		border-bottom: 0;
	}

	/* Carte The Race mobile : aucune partie utile ne sort de l'écran. */
	#content .the-race-table .the-race-competition-logo {
		width: 8% !important;
		padding: 3px !important;
	}

	#content .the-race-table .the-race-meta-cell {
		width: 68% !important;
	}

	#content .the-race-table tr:first-child > td:last-child,
	#content .the-race-table .the-race-played-cell {
		width: 24% !important;
	}

	#content .the-race-table .the-race-match-detail {
		display: none;
	}

	#content .the-race-table .the-race-club-name {
		width: 17% !important;
	}

	#content .the-race-table .the-race-club-logo {
		width: 6% !important;
	}

	#content .the-race-table .the-race-club-logo img {
		max-height: 28px;
		object-fit: contain;
	}

	#content .the-race-table .the-race-played-cell br {
		display: none;
	}

	#content .maintenance-panel {
		margin: 28px 12px 18px;
		padding: 26px 18px;
	}

	#content .login-form {
		width: calc(100% - 24px);
		margin-top: 16px;
	}

	#content .login-panel,
	#content .login-panel tbody,
	#content .login-panel tr,
	#content .login-panel td,
	#content .login-panel th {
		display: block;
		box-sizing: border-box;
		width: 100%;
	}

	#content .login-panel__label {
		padding-bottom: 3px;
		border-top: 1px solid rgba(148, 163, 184, .13) !important;
	}

	#content .login-panel__field {
		padding-top: 3px;
	}

	#content .login-panel tr + tr > * {
		border-top: 0;
	}

    .site-nav,
    .site-nav tbody,
    .site-nav tr,
    .site-nav td,
    .sub-nav,
    .sub-nav tbody,
    .sub-nav tr,
    .sub-nav td {
        display: block;
        width: 100% !important;
    }

    .site-nav a,
    .sub-nav a {
        min-height: 44px;
        padding: 12px 16px;
        border-bottom: 1px solid rgba(255, 255, 255, .08);
    }

    .site-nav__link--play,
    .site-nav__link--icon {
        min-height: 54px !important;
    }

    .site-nav__link--play .site-nav__label,
    .site-nav__link--icon .site-nav__label {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .site-nav__icon {
        width: 1.7rem;
        height: 1.7rem;
        flex-basis: 1.7rem;
    }

    #content > table:not(.site-nav):not(.sub-nav) > tbody > tr > td {
		padding: 0;
    }

    #content .MonTableau {
        display: block;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    #content .MonTableau > tbody {
        display: table;
        min-width: 580px;
        width: 100%;
    }

	/* Surcharges finales mobiles : ces cartes doivent réellement occuper tout
	   l'écran et ne pas hériter du minimum générique de 580px. */
	#content .main-route,
	#content .main-route form,
	#content .main-route form > table {
		width: 100% !important;
		max-width: 100% !important;
		margin-right: 0 !important;
		margin-left: 0 !important;
	}

	#content .MonTableau.the-race-table {
		display: table !important;
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
		overflow: visible;
	}

	#content .MonTableau.the-race-table > tbody {
		display: table-row-group !important;
		width: 100% !important;
		min-width: 0 !important;
	}

	#content .MonTableau.the-best-l1-table,
	#content .question-table {
		width: 100% !important;
		max-width: 100% !important;
		margin-right: 0 !important;
		margin-left: 0 !important;
	}

    #content table[width] {
        max-width: 100%;
    }

    #content .buttonFiltre,
    #content .buttonFiltreActif {
        min-height: 38px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}
