/* Mobile */

html, body {
    min-width: 400px;
}

header {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5px 0px;
}

.logo_header img, .logo_footer img {
    max-width: 60px;
    height: auto;
}

nav {
    padding-top: 10px;
}

.nav-btn {
    padding: 10px 10px;
}

footer {
    padding: 5px 0px;
}

footer nav {
    padding: 0;
}

.logo_footer {
    flex-direction: column-reverse;
}

.logo_footer p {
    padding-right: 10px;
    margin: 0;
}

/* Page Accueil / Index */

/* Animation voitures */
/* Différentes lignes et vitesses */
.hero-bg .hero-car:nth-child(1) { top: 15%; animation-duration: 2s; }
.hero-bg .hero-car:nth-child(2) { top: 30%; animation-duration: 3s; }
.hero-bg .hero-car:nth-child(3) { top: 45%; animation-duration: 2.5s; }
.hero-bg .hero-car:nth-child(4) { top: 60%; animation-duration: 3.5s; }
.hero-bg .hero-car:nth-child(5) { top: 75%; animation-duration: 3.25s; }

.hero h1 {
    font-size: 1.5rem;
}

.community-tag {
    font-size: 1.25rem;
}

/* Styles pour écrans < 450px */
@media screen and (max-width: 450px) {
    .hero h1 {
        font-size: 1.3rem;
    }

    .community-tag {
        font-size: 1.1rem;
    }
}

.hero-motto {
    font-size: 1rem;
}

.hero-subtitle {
    font-size: 0.875rem;
}

.hero {
    padding: 40px 10px 20px;
}

.hero-section {
    flex-direction: column;
}

.hero-section.flex-reverse {
    flex-direction: column-reverse;
}

.hero-section img,
.hero-text-block {
    width: 100%;
    max-width: 100%;
}

.hero-section img {
    max-height: 200px;
    object-fit: cover;
}

.img-object-position-top {
    object-position: top;
}

.img-object-position-bottom {
    object-position: bottom;
}

.hero-streams .stream-buttons {
    flex-direction: column;
}

.stream-buttons {
    align-items: center;
}

.stream-btn {
    justify-content: center;
    padding: 14px 22px
}

.discord-btn {
    padding: 14px 22px;
}

/* Page Classements */

/* Infos dernière mise à jour */
.lu-desktop,
.lu-tablet {
    display: none;
}

/* Connexion au dashboard */
.login-container {
    max-width: 450px;
    margin: 20px auto;
    padding: 20px;
}

/* dashboard */
.section-dashboard {
    margin: 20px;
    padding: 20px;
}

.nav-btn-dashboard {
    padding: 10px 10px;
}

.btn-header-dashboard span {
    font-weight: 600;
    font-size: 0.75rem;
    margin-left: auto;
}

.msg-success {
    margin: 15px;
    padding: 20px;
}

.msg-error {
    margin: 15px;
    padding: 20px;
}

.dashboard-table th, .dashboard-table td {
    font-size: 0.875rem;
}

/* Titres des sections Admin / Modo */
.page-header-dashboard h1 {
    font-size: 1.1rem;
}

/* Commentaires des sections Admin / Modo */
.page-header-dashboard p {
    font-size: 0.75rem;
}

/* Titres des Boutons de la 1ère page du dashboard */
.home-nav-btn-dashboard h3 {
    font-size: 0.85rem ;
}

/* Commentaires des Boutons de la 1ère page du dashboard */
.btn-subtitle {
    font-size: 0.75rem ;
}

/* Dashboard section CRUD */
.dashboard-crud-title {
    font-size: 1.3rem;
}

.dashboard-crud-subtitle {
    font-size: 0.75rem;
    font-weight: normal;
    margin: 0;
}

.category-title.big-line-height {
    line-height: 1.2;
}

@media screen and (max-width: 500px) {
    /* Pages DELETE */
    .h3-delete {
        font-size: 1rem;
    }

    /* title du CRUD GP - POLE & FASTEST LAP */
    .dashboard-crud-title.no-margin.title-ppfl {
        font-size: 0.95rem;
    }
}

@media screen and (max-width: 550px) {
    /* title Page DELETE - POLE & FASTEST LAP */
    .dashboard-crud-title.no-margin.title-ppfl.ppfl-delete {
        font-size: 1.2rem;
    }
}

@media screen and (max-width: 500px) {
    /* title Page DELETE - POLE & FASTEST LAP */
    .dashboard-crud-title.no-margin.title-ppfl.ppfl-delete {
        font-size: 1rem;
    }

    /* title Page DELETE - AJUSTEMENTS MANUELS */
    .dashboard-crud-title.no-margin.title-adjustments {
        font-size: 1rem;
    }
}

@media screen and (max-width: 450px) {
    /* title Page DELETE - POLE & FASTEST LAP */
    .dashboard-crud-title.no-margin.title-ppfl.ppfl-delete {
        font-size: 0.85rem;
    }

    .dashboard-crud-title.no-margin.title-teams-drivers {
        font-size: 1.1rem;
    }
}





/* Modal Afficher les résultats complets */
.gp-modal-content {
    padding: 15px;
}
.gp-details-container .dashboard-table th,
.gp-details-container .dashboard-table td {
    padding: 6px 8px;
}

/* Bouton retour en haut */
/* Responsive : plus petit et mieux placé */
#scrollToTop {
    width: 40px;
    height: 40px;
    bottom: 20px;
    right: 20px;
    font-size: 1rem;
}

/* Page Classements */

/* Bordure des titles h2 de chaque catégorie */
.category-title.has-content {
    padding: 5px 20px;
}

/* Saison */
.category-title .season-title {
    margin-left: 0px;
}

/* Videogame + platform */
.category-title .category-extra {
    margin-left: 0px;
}

/* Badges 1 / 2 / 3 ... */
.badge {
    padding: 0px;
}

.dashboard-table th.badge-width,
.dashboard-table td.badge-width {
    width: 30px;
}

/* Colonne Pilote */
.drivers-table td.driver-cell,
.drivers-table th:nth-child(2) {
    width: 30%;
}

.driver-teams-flag {
    height: 8px;
    margin-right: 3px;
    vertical-align: middle;
}

/* Colonne Équipe */
.drivers-table td.team-cell,
.drivers-table th:nth-child(3) {
    width: 10%;
}

/* Cache le nom des écuries */
.drivers-table .team-name,
.statsdrivers-table .team-name {
    display: none;
}

/* Background image logo écurie */
.team-cell {
    background-position: right -40px center;
    background-size: 110px 100%;
}


/* Colonne : Points */
.drivers-table td:nth-child(4),
.drivers-table th:nth-child(4) {
    width: 12%;
}

/* Classement Equipes uniquement */

/* Colonne Équipe */
.teams-table td.team-cell,
.teams-table th:nth-child(2) {
    width: 70%;
}

.team-logo-bg {
    right: -40px;
}

.team-gradient {
    background: linear-gradient(
        to left,
        color-mix(in srgb, var(--team-color) 100%, transparent) 60%,
        color-mix(in srgb, var(--team-color) 0%, transparent) 90%
    );
}

/* Tableaux Pénalités */
/* GP */
.penalties-table th:nth-child(1),
.penalties-table td:nth-child(1) {
    width: 24%;
}

/* Pilote */
.penalties-table th:nth-child(2),
.penalties-table td:nth-child(2) {
    width: 24%;
}

/* Équipe */
.penalties-table th:nth-child(3),
.penalties-table td:nth-child(3) {
    width: 24%;
}

/* Pénalité (points) */
.penalties-table th:nth-child(4),
.penalties-table td:nth-child(4) {
    width: 10%;
}

/* Commentaire */
.penalties-table th:nth-child(5),
.penalties-table td:nth-child(5) {
    width: 18%;
}

/* Tableaux Résultats GP */
/* Colonne Circuit + Code PAYS et Badge purple PP + FL */
@media screen and (max-width: 700px) {
    .gp-season-table th:nth-child(2),
    .gp-season-table td:nth-child(2) {
        width: 25%;
    }

    .badge-purple {
    padding: 0px 4px;
}
}

@media screen and (max-width: 500px) {
    .gp-season-table th:nth-child(2),
    .gp-season-table td:nth-child(2) {
        width: 30%;
    }

    .badge-purple {
    padding: 0px 2px;
}
}

/* Modal affiche Résultats complets du GP */
.gp-modal {
    min-width: 400px;
}

.modal-gp-title.has-content {
    font-size: 0.85rem;
    padding: 5px 5px 0px 10px;
}

.modal-pp-fl {
    font-size: 0.875rem;
}

.modal-gp-results-table thead th {
    font-size: 0.875rem;
}

.modal-gp-results-table thead th::after {
    font-size: 0.875rem;
}

/* Page Palmarès et Circuits */
table.sortable th {
    padding-bottom: 12px;
}

table.sortable th::after {
    font-size: 0.6rem;
}

table.sortable th.asc::after {
    font-size: 0.6rem;
}

table.sortable th.desc::after {
    font-size: 0.6rem;
}

/* Tailles des colonnes */
/* 3 colonnes : Champions + Vice-Champions + Troisièmes */
.palmares-drivers-table th:nth-child(3),
.palmares-drivers-table td:nth-child(3),
.palmares-drivers-table th:nth-child(4),
.palmares-drivers-table td:nth-child(4),
.palmares-drivers-table th:nth-child(5),
.palmares-drivers-table td:nth-child(5) {
    width: 6%;
}

/* 2 colonnes : Victoires + Podiums */
.palmares-drivers-table th:nth-child(6),
.palmares-drivers-table td:nth-child(6),
.palmares-drivers-table th:nth-child(7),
.palmares-drivers-table td:nth-child(7) {
    width: 8%;
}

/* Colonne : GP */
.palmares-drivers-table th:nth-child(8),
.palmares-drivers-table td:nth-child(8) {
    width: 12%;
}

/* Colonne : Points */
.palmares-drivers-table th:nth-child(9),
.palmares-drivers-table td:nth-child(9) {
    width: 15%;
}

/* PAGE CIRCUITS */
/* TOP 10 */
.circuit-title,
.statsdrivers-title {
    font-size: 1.2rem;
}

/* Colonne Jeu vidéo */
.circuits-top10-table th:nth-child(7),
.circuits-top10-table td:nth-child(7) {
    padding: 0px 0px 0px 7px;
}

@media screen and (max-width: 500px) {
    /* Chrono */
    .circuits-top10-table th:nth-child(3),
    .circuits-top10-table td:nth-child(3) {
        width: 18%;
    }

    /* Console */
    .circuits-top10-table th:nth-child(7),
    .circuits-top10-table td:nth-child(7) {
        width: 20%;
    }

    /* Console */
    .circuits-top10-table td:nth-child(7) {
        font-size: 0.75rem;
    }
}

/* CIRCUITS CLASSEMENT PILOTES */
/* Tailles des colonnes */
/* 5 colonnes : GP + Victoires + Podiums + PP + FL */
.circuits-drivers-table th:nth-child(3),
.circuits-drivers-table td:nth-child(3),
.circuits-drivers-table th:nth-child(4),
.circuits-drivers-table td:nth-child(4),
.circuits-drivers-table th:nth-child(5),
.circuits-drivers-table td:nth-child(5),
.circuits-drivers-table th:nth-child(6),
.circuits-drivers-table td:nth-child(6),
.circuits-drivers-table th:nth-child(7),
.circuits-drivers-table td:nth-child(7) {
    width: 11%;
}


/* DASHBOARD */

/* Tableaux du CRUD */
/* Boutons actions Update Delete */
.action-btn {
    padding: 2px 10px;
}

.dashboard-table th.width-actions,
.dashboard-table td.width-actions {
    width: 87px;
}

/* Pour colonne */
.dashboard-table th.width-small-info,
.dashboard-table td.width-small-info {
    width: 70px;
}

/* Numbers à 1 ou 2 chiffres */
.dashboard-table th.width-numbers,
.dashboard-table td.width-numbers {
    width: 30px;
}

/* TABLE GP Résultats */
/* Largeur du bouton pour révéler résultats */
.btn-reveal-gp {
    width: 40px;
}

/* Largeur de la colonne pour révéler résultats */
.dashboard-table th.width-reveal-gp,
.dashboard-table td.width-reveal-gp {
    width: 50px;
}

/* Colonne noms des pilotes et teams */
.width-gp-points-main {
    width: 30%;
}

/* Table GP Pole & Fastest Lap */
/* Pour les noms des GP */
.dashboard-table th.name-gp-verylong,
.dashboard-table td.name-gp-verylong {
    width: 25%;
}

/* Pour les noms des GP */
.dashboard-table td.name-gp-verylong {
    font-size: 0.75rem;
}

/* Pour les chronos */
.dashboard-table th.width-chrono,
.dashboard-table td.width-chrono {
    width: 60px;
}

.dashboard-table .badge-purple-dashboard {
    font-size: 0.75rem;
}

/* Pour les noms des pilotes et teams */
.dashboard-table td.text-long-responsive {
    font-size : 0.85rem;
}

@media screen and (max-width: 500px) {
    .dashboard-table td.name-gp-verylong {
        font-size: 0.6rem;
    }

    /* Pour les chronos */
    .dashboard-table th.width-chrono,
    .dashboard-table td.width-chrono {
        width: 40px;
    }

    .dashboard-table .badge-purple-dashboard {
        font-size: 0.6rem;
    }

    /* Pour les noms des pilotes et teams */
    .dashboard-table td.text-long-responsive {
        font-size : 0.75rem;
    }
}

/* Table Catégories */
/* Colonne active / desactive */
.dashboard-table th.status,
.dashboard-table td.status {
    width: 60px;
}

.dashboard-table th.categories-color,
.dashboard-table td.categories-color {
    width: 60px;
}

/* Table Pays */
/* Largeur de la colonne pour révéler résultats */
.dashboard-table th.width-code,
.dashboard-table td.width-code {
    width: 60px;
}

/* Table Teams */
.dashboard-table th.teams-color,
.dashboard-table td.teams-color {
    width: 50px;
}

.dashboard-table th.teams-logo,
.dashboard-table td.teams-logo {
    width: 80px;
}

.preview-logo {
    width: auto;
    max-width : 80px;
    height: 15px;
    vertical-align: middle;
}

@media screen and (max-width: 500px) {
    .dashboard-table th.teams-color,
    .dashboard-table td.teams-color {
        width: 20px;
    }

    .dashboard-table th.teams-logo,
    .dashboard-table td.teams-logo {
        width: 60px;
    }

    .preview-logo {
        width: auto;
        max-width : 60px;
        height: 12px;
        vertical-align: middle;
    }
}


/* Page Stats Pilotes */

@media screen and (max-width: 450px) {
    .section-dashboard .nav-btn.statsdrivers {
        margin-left: 2px;
    }
}

/* Colonne Saison & Jeu vidéo */
.statsdrivers-table td:nth-child(1),
.statsdrivers-table th:nth-child(1) {
    width: 95px;
    padding-left: 5px;
}

/* Colonne Équipe */
.statsdrivers-table td.team-cell,
.statsdrivers-table th:nth-child(2) {
    width: 10%;
}

/* Colonne Position */
.statsdrivers-table td:nth-child(3),
.statsdrivers-table th:nth-child(3) {
    width: 25px;
}

/* Colonne Points */
.statsdrivers-table td:nth-child(4),
.statsdrivers-table th:nth-child(4) {
    width: 12%;
}

/* Colonne GP */
.statsdrivers-table td:nth-child(5),
.statsdrivers-table th:nth-child(5) {
    width: 10%;
}

.season-cell .statsdrivers-videogame {
    font-size: 0.75rem;
}

@media screen and (max-width: 500px) {
    /* Réduction taille du texte des totaux dans le tfoot */
    .dashboard-table tfoot td.tfoot-very-small-text {
        font-size: 0.75rem;
    }
}

@media screen and (min-width: 501px) and (max-width: 600px) {
    /* Réduction taille du texte des totaux dans le tfoot */
    .dashboard-table tfoot td.tfoot-very-small-text {
        font-size: 0.81rem;
    }
}


