/*
 * Surcharge des couleurs de base Bootstrap 5
 * Définir :root AVANT ou dans une feuille chargée APRÈS bootstrap.min.css
 * Pour les utilitaires .bg-primary, .text-primary, .btn-primary, etc.
 * il faut aussi définir la variante -rgb (Bootstrap 5.1+).
 */

 :root {
    --primary-color: #d83f3a;
    --primary-hover: #A00016;
}

body {
    background-color: #f8f9fa;


}

header {
    background-color: #d83f3a !important;
    color: white !important;
}

nav > a {
    color: white !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

a.active {
    color: var(--primary-color);
    border-bottom: 2px solid #FFF;
    border-top: none;
    border-left: none;
    border-right: none;
    
}

.nav-tabs .nav-link {
    color:rgb(20, 21, 22);
    border: none;
    border-bottom: 2px solid transparent;
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}
.nav-tabs {
    border-bottom: 1px solid #dee2e6;
}

.accordion-button {
    background-color: var(--primary-color);
    color: white;
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: white;
}

.accordion-button:hover {
    background-color: var(--primary-hover);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

.accordion-button::after {
    filter: brightness(0) invert(1);
}

.date-box {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 1.5rem 2rem;
    min-width: 100px;
}

.date-box .day {
    font-size: 18px;
    line-height: 10px;
}

.date-box .date {
    font-size: 2.5rem;
    
}

.date-box .month,
.date-box .year {
    font-size: 18px;
}

.badge-custom {
    background-color: var(--primary-color);
    color: white;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* EasyAdmin : largeur de la colonne sidebar (grille .wrapper)
   Défaut du thème = 230px. 100% donne toute la place au contenu. */
body.ea {
    --sidebar-max-width: 100%;
}

body.ea section.main-content {
    background-color: #ffffff !important;
}

body.ea a.btn:hover  {
    border: 1px solid #0d6efd !important;
}

header {
    background-color: #d83f3a !important;
}



.ligne-resultat {
    background-color: #f8f9fa !important;
}

.ligne-estimation {
    font-size: smaller !important;
    font-style: italic;
    color: rgb(114, 114, 114) !important;
}

.ligne-total {
    font-weight: bold !important;
    font-size: larger !important;
}



/* Dégradé de rouge foncé (19) vers rouge clair (0) */
span.distance_course_0 {
    background-color: #21f4aa !important;
}

span.distance_course_1 {
    background-color: rgb(29, 249, 69) !important;
}

span.distance_course_2 {
    background-color: rgb(67, 212, 15) !important;
}

span.distance_course_3 {
    background-color: rgb(111, 180, 8) !important;
}

span.distance_course_4 {
    background-color: #ff8080 !important;
}

span.distance_course_5 {
    background-color: #ff6666 !important;
}

span.distance_course_6 {
    background-color: #ff4d4d !important;
}

span.distance_course_7 {
    background-color: #ff3333 !important;
}

span.distance_course_8 {
    background-color: #ff1a1a !important;
}

span.distance_course_9 {
    background-color: #ff0000 !important;
}

span.distance_course_10 {
    background-color: #e60000 !important;
}

span.distance_course_11 {
    background-color: #cc0000 !important;
}

span.distance_course_12 {
    background-color: #b30000 !important;
}

span.distance_course_13 {
    background-color: #990000 !important;
}

span.distance_course_14 {   
    background-color: #800000 !important;
}

span.distance_course_15 {
    background-color: #660000 !important;
}

span.distance_course_16 {
    background-color: #4d0000 !important;
}

span.distance_course_17 {   
    background-color: #330000 !important;
}

span.distance_course_18 {
    background-color: #1a0000 !important;
}

span.distance_course_19 {
    background-color: #8B0000 !important;
}


span.vitesse_course_5 {
    background-color: #21f4aa !important;
    color: #1a0000;
}

span.vitesse_course_6 {
    background-color: #21f428 !important;
    color: #1a0000;
}

span.vitesse_course_7 {
    background-color: #f4cd21 !important;
    color: #1a0000;
}span.vitesse_course_8 {
    background-color: #21f4aa !important;
}span.vitesse_course_9 {
    background-color: #21f4aa !important;
}


span.vitesse_course_10 {
    background-color: color-mix(in srgb, #8B0000 10%, white) !important;
}
span.vitesse_course_11 {
    background-color: #f4d400 !important;
}
span.vitesse_course_12 {
    background-color: #f47921 !important;
}
span.vitesse_course_13 {
    background-color: #f43621 !important;
}
span.vitesse_course_14 {
    background-color: #f42121 !important;
}