/* =========================
	GP banner / contexte
========================= */

/* Titre principal GP (Pronostiquer + Résultats) */
.prono-f1-gp-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 8px 0 6px 0;
}

/* Statut inline "Grand Prix terminé" dans le titre Résultats */
.prono-f1-gp-status-inline {
    font-size: 0.9em;
    font-weight: 400;
    margin-left: 6px;
}

.prono-f1-gp-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Drapeau GP (bandeau principal, pas sidebar) */
.prono-f1-flag {
    width: 40px;
    height: auto;
    display: inline-block;
    border-radius: 2px;
    position: relative;
    top: -48px;
}

.prono-f1-gp-main {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Bandeau info "Mes classements" */
.prono-f1-mes-classements {
    margin: 20px 0;
    padding: 16px 20px;
    border: 1px solid #dde3ea;
    border-radius: 6px;
    background: #f2e4ce;
    font-size: 15px;
    line-height: 1.6;
}

/* Chaque ligne = petite carte avec picto + texte */
.prono-f1-mes-classements-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 6px 0;
    padding: 8px 10px;
    border-radius: 4px;
    background: #faf5eb;
    border: 1px solid #e3e8f0;
}

/* Picto simple rond numéroté à gauche */
.prono-f1-mes-classements-row::before {
    content: "★";
    flex: 0 0 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #ee3923;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    margin-top: 2px;
}

/* Variante quand le texte indique “classement général” (optionnel) */
.prono-f1-mes-classements-row:nth-child(1)::before { content: "Q"; } /* qualifs */
.prono-f1-mes-classements-row:nth-child(2)::before { content: "C"; } /* course */
.prono-f1-mes-classements-row:nth-child(3)::before { content: "T"; } /* tour */
.prono-f1-mes-classements-row:nth-child(4)::before { content: "G"; } /* général */

/* Lien vers le détail : légèrement mis en avant */
.prono-f1-mes-classements-link {
    color: #0056b3;
    text-decoration: none;
    font-weight: 600;
}

.prono-f1-mes-classements-link:hover,
.prono-f1-mes-classements-link:focus {
    text-decoration: underline;
}

/* Titres classements */

.prono-f1-titre-onglet-classements,
.prono-f1-titre-classement-saison-inner {
    font-size: 20px;
    margin: 16px 0;
}

/* Textes d’aide / placeholders */

.prono-f1-classements-wrapper label,
.prono-f1-classements-placeholder,
.prono-f1-message-empty {
    margin-top: 1.0rem;
    font-size: 20px;
    line-height: 1.5;
}

/* Bloc "aucun prono" */

.prono-f1-empty-pronostics {
    margin-top: 1.5rem;
    padding: 1.25rem 1.5rem;
    max-width: 720px;
    background: #f7f7f7;
    border-radius: 6px;
    border-left: 4px solid #e53935;
    font-size: 0.95rem;
    line-height: 1.5;
}

.prono-f1-empty-pronostics h3 {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.prono-f1-empty-pronostics ul {
    margin: 0.5rem 0 0;
    padding-left: 1.1rem;
}

.prono-f1-intro,
.prono-f1-intro-help {
    margin: 0.5rem 0 0.25rem;
    font-size: 1.0rem;
    color: #1f2933;
}

/* Spacing panels classements */

.prono-f1-classements-tab-panels .prono-f1-classements-tab-panel {
    margin-top: 12px;
}

.prono-f1-classements-tab-panels .prono-f1-classements-tab-panel label {
    display: block;
    margin: 8px 0 4px 0;
}

.prono-f1-classements-select {
    margin-bottom: 8px;
    font-size: 16px;
}

/* Panel SAISON */

.prono-f1-classements-saison-inner h3.prono-f1-titre-classement-saison {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

/* Onglet principal "Équipes" */

.prono-f1-main-tab-panel[data-main-tab-panel="equipes"] .prono-f1-equipes-inner {
    margin-top: 16px;
    font-size: 18px;
    line-height: 1.4;
}

.prono-f1-main-tab-panel[data-main-tab-panel="equipes"] .prono-f1-equipes-filters label {
    display: block;
    margin: 8px 0 4px 0;
}

.prono-f1-main-tab-panel[data-main-tab-panel="equipes"] .prono-f1-equipes-filters
.prono-f1-classements-select {
    margin-bottom: 8px;
}

/* En-têtes du tableau "Mes équipes" */
.prono-f1-table-mes-equipes th {
    font-size: 15px;
    text-transform: none;
}

.prono-f1-classements-groupe-table-footer td {
    background: #f3f3f3;   /* même esprit que l’en-tête */
    font-size: 13px;
    font-style: italic;
    padding: 6px 10px;
}

.prono-f1-equipes-section-status {
    margin-top: 1.5rem;
}

.prono-f1-equipes-section-status .prono-f1-equipes-title {
    margin-bottom: 0.75rem;
}

/* Espacement entre les sections de l’onglet Équipes */
.prono-f1-equipes-section {
    margin-bottom: 1.5rem;
}

/* Espacement entre les boutons et les champs */
.prono-f1-equipes-form .prono-f1-button {
    margin-top: 0.4rem;
}

/* Éviter que le bouton "Demander à rejoindre" colle au select */
.prono-f1-equipes-form-join .prono-f1-button-equipe-join {
    margin-top: 0.5rem;
}

/* Panel "Classements des équipes" */
.prono-f1-classements-tab-panel[data-classement-tab-panel="groupes-global"] {
    font-size: 16px;
    line-height: 1.4;
}

.prono-f1-classements-tab-panel[data-classement-tab-panel="groupes-global"] label {
    display: block;
    font-size: 18px;
    margin: 12px 0 4px 0;
}

.prono-f1-classements-tab-panel[data-classement-tab-panel="groupes-global"]
.prono-f1-classements-select {
    margin-bottom: 8px;
    font-size: 16px;
}

/* --- Zone liste des GPs à venir --- */

.prono-f1-gp-list-wrapper {
    margin-bottom: 2rem;
    padding: 1.5rem 1.5rem 1rem;
    background: #faf5eb;
    border-radius: 6px;
}

.prono-f1-gp-list-title {
    margin: 0 0 1rem;
    font-size: 1.275rem;
    font-weight: 600;
    font-family: UniviaPro-Black, Helvetica, Arial, sans-serif;
}

.prono-f1-gp-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.prono-f1-gp-card {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    background: #fff;
}

.prono-f1-gp-card-current {
    border-color: #e53935;
    background: #f3fafd;
    box-shadow: 0 0 0 1px rgba(229,57,53,0.25);
}

.prono-f1-gp-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.prono-f1-gp-card-name {
    font-weight: 600;
}

.prono-f1-gp-card-badge {
    padding: 0.15rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 4px;
    font-weight: 600;
}

.prono-f1-gp-card-badge-primary {
    background: #e53935;
    color: #fff;
}

.prono-f1-gp-card-badge-secondary {
    background: #ffffff;
    color: #e53935;
    border: 1px solid #e53935;
}

.prono-f1-gp-card-meta {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.prono-f1-gp-card-status {
    display: block;
    margin-top: 0.15rem;
    color: #666;
}

.prono-f1-gp-card-actions {
    margin-top: 0.5rem;
}

.prono-f1-gp-card-button {
    width: 100%;
}

/* Lien visuel carte <-> panneau */

.prono-f1-current-gp-context {
    margin: 1rem 0 1.5rem;
    padding: 0.75rem 1rem;
    background: #faf5eb;
    border-left: 4px solid #e53935;
    font-size: 0.95rem;
}

.prono-f1-current-gp-context strong {
    font-weight: 600;
}

/* Bandeau GP dans le panneau */

.prono-f1-gp-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.prono-f1-gp-circuit {
    margin: 0.15rem 0 0;
    font-size: 1.00rem;
}

.prono-f1-gp-circuit-image {
    max-width: 300px;
}

.prono-f1-gp-circuit-img {
    margin-left: -1.6rem;
    width: 300px;
    height: 150px;
    display: block;
    border: 1px solid #e53935;
    border-radius: 6px;
}

.prono-f1-gp-datetime {
    font-size: 1.0rem;
    margin-top: 0.05rem;
}

.prono-f1-gp-datetime .label {
    font-weight: 600;
}

.prono-f1-gp-datetime.qualif::before,
.prono-f1-gp-datetime.course::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 6px;
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
}

.prono-f1-gp-datetime.qualif::before {
    background-image: url('https://www.prono-formule1.com/wp-content/plugins/prono-f1/public/flags/picto/horloge-qualif.png');
}

.prono-f1-gp-datetime.course::before {
    background-image: url('https://www.prono-formule1.com/wp-content/plugins/prono-f1/public/flags/picto/feu-de-depart.png');
}

/* =========================
	CARTES PILOTES & TOP 10 CENTRAL
========================= */

/* Carte pilote grisée si utilisée dans Top 10 */
.prono-f1-pilot-card-used {
    opacity: 0.35;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
    border-color: #ddd;
}

.prono-f1-pilot-card-used:hover {
    opacity: 0.35;
    box-shadow: none;
    transform: none;
}

/* Layout global Top 10 (colonne droite du panneau) */

.prono-f1-top10 {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

/* Chaque ligne P1..P10 */

.prono-f1-top10-row {
    display: grid;
    grid-template-columns: 3rem 1fr auto;
    align-items: center;
    column-gap: 0.75rem;
    padding: 0.45rem 0.25rem;
    border-bottom: 1px solid #f0f0f0;
}

.prono-f1-top10-row:last-child {
    border-bottom: none;
}

.prono-f1-top10-pilot-card-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: 0.35rem;
}

.prono-f1-top10-pilot-card-inline .pf1-inline-photo img {
    display: block;
    width: 40px;
    height: 64px;
    object-fit: cover;
    object-position: top;
    border-radius: 8px;
}

.prono-f1-top10-pilot-card-inline .pf1-inline-name {
    font-weight: 600;
    font-size: 0.88rem;
    margin-left: 0.95rem;
}

/* Select Top 10 */

.prono-f1-top10-select {
    width: 100%;
    max-width: 180px;
    font-size: 0.85rem;
}

/* Bouton "Vider" */

.prono-f1-top10-clear-position {
    justify-self: end;
}

.prono-f1-top10-clear-position:hover {
    color: #c9302c;
}

/* Masquer les <select> (Top 10) mais les garder dans le DOM */

.prono-f1-top10-select-qualif,
.prono-f1-top10-select-course {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.prono-f1-top10-pilot-label {
    display: none;
}

/* Zone grille pilotes (fond) */

.prono-f1-prono-layout-qualif,
.prono-f1-prono-layout-course {
    background: #faf5eb;
    padding: 1rem;
    border-radius: 8px;
}

/* Disposition 2 colonnes (grille / Top 10 central) */

.prono-f1-prono-layout-qualif,
.prono-f1-prono-layout-course {
    display: grid;
    grid-template-columns: 1.4fr 1.6fr;
    gap: 1.5rem;
    align-items: flex-start;
}

/* Grilles de cartes pilotes */

.prono-f1-pilots-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.75rem;
}

/* Carte pilote */

.prono-f1-pilot-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.4rem 0.35rem;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    background: #ffffff;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.prono-f1-pilot-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    border-color: #d32f2f;
}

/* Photo pilote */

.prono-f1-pilot-photo img {
    display: block;
    width: 58px;
    height: 92px;
    object-fit: cover;
    border-radius: 10px;
}

/* Texte carte pilote */

.prono-f1-pilot-main {
    margin-top: 0.35rem;
    text-align: center;
    font-size: 0.8rem;
}

.prono-f1-pilot-name {
    display: block;
    font-weight: 600;
    font-size: 0.8rem;
    color: #777;
}

.prono-f1-pilot-team {
    text-transform: none;
}

.prono-f1-pilot-code {
    display: block;
    font-size: 0.75rem;
    color: #777;
}

.prono-f1-pilot-meta {
    margin-top: 0.15rem;
    font-size: 0.7rem;
    color: #555;
}

/* Colonne Top 10 central */

.prono-f1-top10-wrapper {
    max-width: 612px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    padding: 0.5rem 0.75rem;
}

.prono-f1-top10-row.prono-f1-top10-row-active {
    background-color: #f1c23a;
    border-left: 3px solid #ff9800;
}

/* Statut + messages */

.prono-f1-status {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.prono-f1-message {
    margin-bottom: 1rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.9rem;
}

.prono-f1-message-error {
    background: #fee2e2;
    color: #991b1b;
}

.prono-f1-message-success {
    background: #dcfce7;
    color: #166534;
}

/* Onglets Qualifications / Course */

.prono-f1-tab-panel {
    display: none;
}

.prono-f1-tab-panel.prono-f1-tab-panel-active {
    display: block;
}

/* Layout global panneau + sidebar */

.prono-f1-pronostics-layout {
    display: grid;
    grid-template-columns: 1049px 360px;
    column-gap: 2rem;
    align-items: flex-start;
    margin-top: 1.5rem;
    width: 100%;
}

.prono-f1-pronostics-main {
    min-width: 0;
}

.prono-f1-pronostics-sidebar-wrapper {
    flex: 0 0 352px;
    max-width: 352px;
    margin-left: -18px; /* rapprocher le sidebar du Top 10 */
    margin-top: 1.5rem;
}

/* =========================
	SIDEBAR – EN-TÊTE "Mon pronostic"
========================= */

.prono-f1-sidebar {
    background-color: #faf5eb;
    border: 1px solid #dde2e8;
    padding: 10px 12px;
    font-size: 0.9em;
    border-radius: 6px;
}

/* Conteneur de l'entête */
.prono-f1-sidebar-header {
    display: flex;
    flex-direction: column;
}

/* Ligne 1 : "Mon pronostic" seul */
.prono-f1-sidebar-title {
	font-size: 1.15em;
    font-weight: 600;
    margin: 5px 0 15px 4px;
    padding: 8px 6px;
    background-color: #ed3b24;
    border-radius: 3px;
    color: #ffffff;
}

/* Ligne 2 : drapeau + nom GP */
.prono-f1-sidebar-gp-line {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Drapeau image (flag_url) */
.prono-f1-sidebar-gp-flag-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.prono-f1-sidebar-gp-flag {
    width: 30px;   /* ajustable 20–24px */
    height: 18px;
    border-radius: 2px;
    object-fit: cover;
    display: block;
}

/* Nom du GP à droite du drapeau */
.prono-f1-sidebar-gp-name {
    font-size: 15px;
    color: #555;
    font-weight: 400;
}

/* Statut sous l'entête ("Pronostics ouverts"...) */
.prono-f1-sidebar-status-text,
.prono-f1 [data-pf1-sidebar-status] {
    display: block;
    font-size: 0.85em;
    color: #333;
    margin: 6px 0 8px;
}

/* =========================
	SIDEBAR – LISTES TOP 10 / TOUR
========================= */

.prono-f1-sidebar-block {
    border-top: 1px solid #dde2e8;
    padding-top: 8px;
    margin-top: 8px;
}

.prono-f1-sidebar-block-title {
    font-size: 1.15em;
    font-weight: 600;
    margin: 0 0 4px;
    padding: 3px 6px;
    background-color: #ed3b24;
    border-radius: 3px;
    color: #ffffff;
}

.prono-f1-sidebar-pilot-row {
    margin: 2px 0;
}

.prono-f1-sidebar-pilot-inner {
    display: flex;
    align-items: center;
}

.prono-f1-sidebar-pilot-photo {
    margin-right: 8px;
    margin-left: 8px;
}

.prono-f1-sidebar-pilot-photo-placeholder {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: #e33;
    color: #fff;
    font-size: 0.8em;
}

.prono-f1-sidebar-pilot-main {
    flex: 1 1 auto;
}

.prono-f1-sidebar-pilot-percent {
    margin-left: 6px;
    white-space: nowrap;
    font-size: 0.85em;
}

.prono-f1-sidebar-list-qualif,
.prono-f1-sidebar-list-course,
.prono-f1-sidebar-list-tour {
    list-style-type: decimal;
    padding-left: 1.4em;
}

.prono-f1-sidebar-list-qualif li,
.prono-f1-sidebar-list-course li,
.prono-f1-sidebar-list-tour li {
    font-size: 0.95rem;
}

/* =========================
	ACCORDION – RESULTATS
========================= */
/* Conteneur global de l'accordéon */
.prono-f1-resultats-accordion {
    margin-top: 16px; /* espace sous les onglets */
}

/* Bandeau d'un GP terminé */
.prono-f1-resultats-accordion-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    line-height: 1.3;
    cursor: pointer;
    width: 80%;          /* même largeur pour tous */
    box-sizing: border-box;
}

/* état ouvert : à utiliser quand l'item est actif */
.prono-f1-resultats-accordion-item.is-open
.prono-f1-resultats-accordion-header {
    background-color: #c01a10;   /* rouge plus foncé */
    box-shadow: 0 2px 0 rgba(0,0,0,0.15);
}

.prono-f1-pronostics-resultats .prono-f1-gp-header {
    margin-top: 12px;   /* décale le titre vers le bas */
    margin-bottom: 10px;
}

.prono-f1-pronostics-resultats .prono-f1-resultats-sections {
    margin-top: 4px;    /* décolle un peu les sous-titres du titre */
}

/* Pastille GP 01 / GP 02… */
.prono-f1-resultats-gp-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    padding: 2px 6px;
    border-radius: 999px;
    background-color: #ffffff;
    color: #e53935;          /* rouge cohérent avec vos bandeaux */
    font-size: 0.9em;
    font-weight: 700;
}

/* Hiérarchie du texte dans le bandeau */
.prono-f1-resultats-gp-name {
    font-size: 1.05em;
    font-weight: 600;
    margin-right: 8px;
}

.prono-f1-resultats-gp-dates {
    font-size: 0.9em;
    opacity: 0.9;
}

.prono-f1-resultats-gp-status {
    margin-left: auto;       /* pousse le statut à droite */
    font-size: 0.9em;
    font-weight: 500;
}

.prono-f1-resultats-accordion-item {
	width: 100%;
    margin-bottom: 6px;          /* espace entre deux bandeaux rouges */
}

/* Titre des blocs de résultats dans l'onglet Résultats */
.prono-f1-resultats-block {
    margin-top: 16px;      /* espace au-dessus du titre */
}

.prono-f1-resultats-title {
    margin: 0 0 8px 0;     /* espace juste dessous le titre */
}

/* Liste Top 10 dans les résultats */
.prono-f1-top10-list {
    margin: 0 0 12px 0;    /* espace en bas de la liste (entre P10 et le titre suivant) */
    padding-left: 20px;
}

/* STYLE COMMUN POUR TOUS LES TABLEAUX DE CLASSEMENTS */

/* Tables SAISON (shortcode) + SAISON (onglet) + GP + équipes */
.prono-f1-classement-saison,
.prono-f1-table.prono-f1-table-classement-saison,
.prono-f1-classement-gp,
.prono-f1-table.prono-f1-table-classements-groupes-global,
.prono-f1-classements-groupes-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    margin-top: 0.75rem;
    background-color: #f2e4ce;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #dde3ea;
}

.prono-f1-classement-saison thead,
.prono-f1-table.prono-f1-table-classement-saison thead,
.prono-f1-classement-gp thead,
.prono-f1-table.prono-f1-table-classements-groupes-global thead,
.prono-f1-classements-groupes-content table thead {
    background-color: #e0d1b6;
}

.prono-f1-classement-saison thead th,
.prono-f1-table.prono-f1-table-classement-saison thead th,
.prono-f1-classement-gp thead th,
.prono-f1-table.prono-f1-table-classements-groupes-global thead th,
.prono-f1-classements-groupes-content table thead th {
    padding: 0.45rem 0.75rem;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 1px solid #dde3ea;
}

.prono-f1-classement-saison tbody tr,
.prono-f1-table.prono-f1-table-classement-saison tbody tr,
.prono-f1-classement-gp tbody tr,
.prono-f1-table.prono-f1-table-classements-groupes-global tbody tr,
.prono-f1-classements-groupes-content table tbody tr {
    border-bottom: 1px solid #edf1f7;
}

/* Alternance lignes */
.prono-f1-classement-saison tbody tr:nth-child(2n),
.prono-f1-table.prono-f1-table-classement-saison tbody tr:nth-child(2n),
.prono-f1-classement-gp tbody tr:nth-child(2n),
.prono-f1-table.prono-f1-table-classements-groupes-global tbody tr:nth-child(2n),
.prono-f1-classements-groupes-content table tbody tr:nth-child(2n) {
    background-color: #faf5eb;
}

.prono-f1-classement-saison tbody td,
.prono-f1-table.prono-f1-table-classement-saison tbody td,
.prono-f1-classement-gp tbody td,
.prono-f1-table.prono-f1-table-classements-groupes-global tbody td,
.prono-f1-classements-groupes-content table tbody td {
    padding: 0.40rem 0.75rem;
    color: #111827;
}

/* Dernière colonne alignée à droite */
.prono-f1-classement-saison thead th:last-child,
.prono-f1-classement-saison tbody td:last-child,
.prono-f1-table.prono-f1-table-classement-saison thead th:last-child,
.prono-f1-table.prono-f1-table-classement-saison tbody td:last-child,
.prono-f1-classement-gp thead th:last-child,
.prono-f1-classement-gp tbody td:last-child,
.prono-f1-table.prono-f1-table-classements-groupes-global thead th:last-child,
.prono-f1-table.prono-f1-table-classements-groupes-global tbody td:last-child,
.prono-f1-classements-groupes-content table thead th:last-child,
.prono-f1-classements-groupes-content table tbody td:last-child {
    text-align: right;
}

/* Ligne du joueur connecté */
.prono-f1-classement-saison tbody tr.prono-f1-row-me,
.prono-f1-table.prono-f1-table-classement-saison tbody tr.prono-f1-row-me,
.prono-f1-classement-gp tbody tr.prono-f1-row-me,
.prono-f1-classements-groupes-content table tbody tr.prono-f1-row-me {
    background-color: #f1c23a;
    font-weight: 600;
}

/* Tableau "Classements mon équipe" */
.prono-f1-classements-groupe-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    margin-top: 0.75rem;
    background-color: #ffffff;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #dde3ea;
}

.prono-f1-classements-groupe-table thead {
    background-color: #f7f7f7;
}

.prono-f1-classements-groupe-table thead th {
    padding: 0.45rem 0.75rem;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 1px solid #dde3ea;
}

.prono-f1-classements-groupe-table tbody tr {
    border-bottom: 1px solid #edf1f7;
}

.prono-f1-classements-groupe-table tbody tr:nth-child(2n) {
    background-color: #f7f7f7;
}

.prono-f1-classements-groupe-table tbody td {
    padding: 0.40rem 0.75rem;
    color: #111827;
}

/* Colonne points à droite */
.prono-f1-classements-groupe-table thead th:last-child,
.prono-f1-classements-groupe-table tbody td:last-child {
    text-align: left;
}

/* Surlignage joueur connecté */
.prono-f1-classements-groupe-table tbody tr.prono-f1-row-me {
    background-color: #f1c23a;
    font-weight: 600;
}

/* Entête du tableau des demandes d’adhésion (onglet Équipes) */
.prono-f1-table-equipes-requests thead {
    background-color: #e0d1b6;
}

/* Alternance lignes tableau demandes d’adhésion (onglet Équipes) */
.prono-f1-table-equipes-requests tbody tr:nth-child(odd) {
    background-color: #faf5eb; /* ligne claire */
}

.prono-f1-table-equipes-requests tbody tr:nth-child(even) {
    background-color: #f2e4ce; /* ligne un peu plus soutenue */
}

.prono-f1-classement-gp tbody tr.prono-f1-row-me {
    background-color: #f1c23a;
    font-weight: 600;
}

/* Noms d'équipes en uppercase dans "Classements des équipes" */
.prono-f1-table.prono-f1-table-classements-groupes-global tbody td:nth-child(2) {
    text-transform: uppercase;
}

/* Tableau historique des pronostics */
.prono-f1-historique-pronos {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.89rem;
    background-color: #f2e4ce;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #dde3ea;
}

.prono-f1-titre-historique-pronos {
    margin: 0 0 8px;
    font-size: 1rem;
    font-weight: 600;
}

/* En-tête */
.prono-f1-historique-pronos thead tr {
    background-color: #e0d1b6;
    border-bottom: 1px solid #ddd;
}

.prono-f1-historique-pronos th,
.prono-f1-historique-pronos td {
    padding: 14px 14px;
    vertical-align: top;
    border: none;
    font-size: 0.9rem;
}

/* Corps + séparateurs */
.prono-f1-historique-pronos tbody tr {
    min-height: 40px;
    border-bottom: 1px solid #eee;
}

/* Lignes alternées */
.prono-f1-historique-pronos tbody tr:nth-child(odd) {
    background-color: #f2e4ce;
}

.prono-f1-historique-pronos tbody tr:nth-child(even) {
    background-color: #faf5eb;
}

/* Hover léger */
.prono-f1-historique-pronos tbody tr:hover {
    background-color: #f0ece8;
}

/* Colonnes Qualif / Course mises en avant */
.prono-f1-historique-pronos td.prono-f1-historique-pronos-qualif,
.prono-f1-historique-pronos td.prono-f1-historique-pronos-course {
    line-height: 1.3;
    white-space: normal;
}

/* En-têtes */
.prono-f1-historique-pronos th {
    font-size: 1rem;
    font-weight: 600;
}

/* Colonne "Grand Prix" */
.prono-f1-historique-pronos td.prono-f1-historique-pronos-gp {
    font-size: 0.95rem;
    font-weight: 600;
}

/* Tableau récap des points par GP (shortcode [pronof1historique]) */
.prono-f1-historique {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    background-color: #f2e4ce;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #dde3ea;
}

/* En-tête */
.prono-f1-historique thead tr {
    background-color: #e0d1b6;
    border-bottom: 1px solid #ddd;
}

.prono-f1-historique thead th {
    padding: 0.45rem 0.75rem;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
}

/* Corps */
.prono-f1-historique tbody tr {
    border-bottom: 1px solid #edf1f7;
}

/* Lignes alternées */
.prono-f1-historique tbody tr:nth-child(odd) {
    background-color: #f2e4ce;
}

.prono-f1-historique tbody tr:nth-child(even) {
    background-color: #faf5eb;
}

/* Cellules */
.prono-f1-historique tbody td {
    padding: 0.40rem 0.75rem;
    color: #111827;
}

/* Dernière colonne (Total GP) alignée à droite */
.prono-f1-historique thead th:last-child,
.prono-f1-historique tbody td:last-child {
    text-align: right;
}

/* Bloc "Pilote du meilleur tour" : label au-dessus, select en dessous */
.prono-f1-meilleur-tour {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-top: 0.5rem;
}

.prono-f1-meilleur-tour label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Harmoniser l'affichage du select "Pilote du meilleur tour" */
.prono-f1-meilleur-tour-select {
    font-size: 0.9rem;
    padding: 0.35rem 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: none;
    outline: none;
}

/* Au focus : bordure rouge légère, sans halo orange du thème */
.prono-f1-meilleur-tour-select:focus {
    border-color: #e53935;
    box-shadow: 0 0 0 1px rgba(229, 57, 53, 0.25);
}


/* =========================
	RESPONSIVE – BREAKPOINTS
========================= */

/* ===================================
	MOBILE < 600px
=================================== */
@media (max-width: 599px) {
	
	/* 1) Layout global : panneau + sidebar */
	.prono-f1-pronostics-layout {
		display: block;
		margin-top: 1rem;
	}
	
	.prono-f1-pronostics-main {
		width: 100%;
	}
	
	.prono-f1-pronostics-sidebar-wrapper {
		max-width: 100%;
		flex: 0 0 auto;
		margin-left: 0;
		margin-top: 1.5rem;
	}
	
	.prono-f1-sidebar {
		padding: 10px;
		font-size: 0.9rem;
	}
	
	.prono-f1-sidebar-title,
	.prono-f1-sidebar-block-title {
		font-size: 1rem;
	}
	
	.prono-f1-sidebar-gp-name {
		font-size: 0.9rem;
	}
	
	/* 2) Header GP : titre + drapeau */
	.prono-f1-gp-main {
		align-items: flex-start;
		gap: 0.5rem;
	}
	
	.prono-f1-gp-title {
		font-size: 1.3rem;
		margin: 4px 0 4px 0;
	}
	
	.prono-f1-gp-text {
		max-width: 100%;
	}
	
	.prono-f1-flag {
		top: 0;
		width: 32px;
	}
	
	/* 3) Onglets principaux : Pronostics / Résultats / Classements / Équipes */
	.prono-f1-main-tabs {
		display: flex;
		flex-wrap: wrap;
		gap: 0.5rem;
	}
	
	.prono-f1-main-tab {
		flex: 1 1 48%;
		font-size: 0.9rem;
		padding: 0.5rem 0.25rem;
		text-align: center;
	}

	/* Liste GPs : 1 colonne */
	.prono-f1-gp-list {
		grid-template-columns: 1fr;
	}
	
	/* 4) Panneau pronostics : empiler cartes pilotes + Top 10 */
	.prono-f1-prono-layout-qualif,
	.prono-f1-prono-layout-course {
		display: block;
	}
	
	.prono-f1-pilots-grid {
		margin-bottom: 1rem;
	}
	
	/* 5) Grilles Top 10 : ajustements légers */
	.prono-f1-top10-wrapper {
		padding: 0.25rem 0.5rem;
	}
	
	.prono-f1-top10-row {
		padding: 0.35rem 0.25rem;
	}
	
	.prono-f1-top10-pilot-card-inline .pf1-inline-photo img {
		max-width: 36px;
		height: auto;
	}
	
	.prono-f1-top10-pilot-card-inline .pf1-inline-name {
		font-size: 0.8rem;
	}
	
    /* 6) Tables de classements / historiques : version compacte, no-débordement */
	
	/* Le conteneur scrolle si besoin */
	.prono-f1-table.prono-f1-table-classement-saison,
	.prono-f1-classement-gp,
	.prono-f1-table.prono-f1-table-classements-groupes-global,
	.prono-f1-classements-groupes-content,
	.prono-f1-classements-groupe-table,
	.prono-f1-historique,
	.prono-f1-historique-pronos {
		width: 100%;
		max-width: 100%;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
	
	/* Le tableau ne dépasse pas l’écran */
	.prono-f1-classement-saison table,
	.prono-f1-classement-gp table,
	.prono-f1-table.prono-f1-table-classements-groupes-global table,
	.prono-f1-classements-groupes-content table,
	.prono-f1-classements-groupe-table table,
	.prono-f1-historique table,
	.prono-f1-historique-pronos table {
		width: 100%;
		table-layout: fixed;
	}
	
	/* Cellules compactes + retour à la ligne forcé */
	.prono-f1-classement-saison th,
	.prono-f1-classement-saison td,
	.prono-f1-classement-gp th,
	.prono-f1-classement-gp td,
	.prono-f1-classements-groupe-table th,
	.prono-f1-classements-groupe-table td,
	.prono-f1-historique th,
	.prono-f1-historique td,
	.prono-f1-historique-pronos th,
	.prono-f1-historique-pronos td {
		padding: 0.3rem 0.35rem;
		font-size: 0.8rem;
		white-space: normal;
		word-wrap: break-word;
	}
	
}

/* ===================================
	TABLETTE 600px – 959px
=================================== */
@media (min-width: 600px) and (max-width: 959px) {
	
	/* 1) Layout global : panneau + sidebar */
	.prono-f1-pronostics-layout {
		display: grid;
		grid-template-columns: 2fr 1fr;
		column-gap: 1.5rem;
		margin-top: 1.25rem;
	}
	
	.prono-f1-pronostics-sidebar-wrapper {
		max-width: 100%;
		flex: 0 0 auto;
		margin-left: 0;
	}
	
	/* 2) Panneau pronostics : grille pilotes + Top 10 */
	.prono-f1-prono-layout-qualif,
	.prono-f1-prono-layout-course {
		display: grid;
		grid-template-columns: 1.2fr 1.4fr; /* un peu plus de place pour les cartes pilotes */
		gap: 1rem;
	}
	
	.prono-f1-pilots-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr)); /* au lieu de 5 colonnes */
	}
	
	/* 3) Onglets principaux : deux par ligne */
	.prono-f1-main-tabs {
		display: flex;
		flex-wrap: wrap;
		gap: 0.5rem;
	}
	
	.prono-f1-main-tab {
		flex: 1 1 48%;
		font-size: 0.9rem;
		padding: 0.5rem 0.25rem;
		text-align: center;
	}

	/* Liste GPs : 2 colonnes */
	.prono-f1-gp-list {
		grid-template-columns: repeat(2, 1fr);
	}
	
}

/* Desktop : >= 960px
	-> rien à mettre ici, vos règles actuelles font office de version desktop.
	Si un jour vous avez besoin d’un réglage spécial grand écran, vous pouvez créer :
	@media (min-width: 1200px) { ... }
*/
/* ===================================
	LARGE TABLETTE / PETIT DESKTOP
	960px – 1199px (ex : iPad Pro)
=================================== */
@media (min-width: 960px) and (max-width: 1199px) {
	
	/* Réduire la largeur relative du sidebar
	pour laisser plus de place au panneau pilotes + Top 10 */
	.prono-f1-pronostics-layout {
		display: grid;
		grid-template-columns: 3fr 1fr; /* au lieu de 1049px + 360px */
		column-gap: 1.5rem;
	}
	
	/* Grille pilotes : passer à 4 colonnes au lieu de 5 */
	.prono-f1-pilots-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* Pagination classement saison */
.prono-f1-saison-pagination {
	margin-top: 10px;
	padding: 6px 8px;
	text-align: center;
	font-size: 13px;
	background: #f2e4ce;
	border-top: 1px solid #ddd;
}

.prono-f1-saison-pagination .prono-f1-pagination-info {
	display: block;
	margin-bottom: 6px;
	color: #555;
}

.prono-f1-saison-pagination .prono-f1-pagination-links {
	display: inline-flex;
	gap: 4px;
}

.prono-f1-saison-pagination .prono-f1-page-link {
	border: 1px solid #c8102e;
	background: #ffffff;
	color: #c8102e;
	padding: 3px 7px;
	font-size: 12px;
	cursor: pointer;
	border-radius: 2px;
}

.prono-f1-saison-pagination .prono-f1-page-link.current {
	background: #c8102e;
	color: #ffffff;
	cursor: default;
}

.prono-f1-saison-pagination .prono-f1-page-link:hover:not(.current) {
	background: #c8102e;
	color: #ffffff;
}

/* Pagination GP (même style que Saison) */
.prono-f1-gp-pagination {
	margin-top: 10px;
	padding: 6px 8px;
	text-align: center;
	font-size: 13px;
	background: #f2e4ce;
	border-top: 1px solid #ddd;
}

.prono-f1-gp-pagination .prono-f1-pagination-info {
	display: block;
	margin-bottom: 6px;
	color: #555;
}

.prono-f1-gp-pagination .prono-f1-pagination-links {
	display: inline-flex;
	gap: 4px;
}

.prono-f1-gp-pagination .prono-f1-page-link {
	border: 1px solid #c8102e;
	background: #ffffff;
	color: #c8102e;
	padding: 3px 7px;
	font-size: 12px;
	cursor: pointer;
	border-radius: 2px;
}

.prono-f1-gp-pagination .prono-f1-page-link.current {
	background: #c8102e;
	color: #ffffff;
	cursor: default;
}

.prono-f1-gp-pagination .prono-f1-page-link:hover:not(.current) {
	background: #c8102e;
	color: #ffffff;
}

/* Lien "Classements détaillés" — même rendu que les boutons d'onglets */
.prono-f1 a.prono-f1-classements-lien-externe {
    display: inline-block;
    background-color: #ee3923;
    color: #ffffff;
    text-decoration: none;
    border: 2px solid #ee3923;
    border-radius: 8px;
    padding: 15px 30px;
    font-family: UniviaPro-Regular, Helvetica, Arial, sans-serif;
    font-weight: 500;
    font-size: 0.9375rem;
    line-height: 1em;
    cursor: pointer;
}

.prono-f1 a.prono-f1-classements-lien-externe:hover {
    background-color: #c8102e;
    border-color: #c8102e;
    color: #ffffff;
    text-decoration: none;
}
