/* PARCOLIS - IDENTITÉ VISUELLE OFFICIELLE 2025
    Couleurs : Orange (#ff5733), Vert (#8bc24a), Gris (#e8e8e8), Anthracite (#333333)
*/

:root {
    /* Redéfinition des variables racines de Bootstrap */
    --bs-primary: #ff5733 !important;
    --bs-primary-rgb: 255, 87, 51 !important;
    --bs-secondary: #8bc24a !important;
    --bs-secondary-rgb: 139, 194, 74 !important;
    --bs-light: #e8e8e8 !important;
    --bs-dark: #333333 !important;
    --bs-body-bg: #e8e8e8;
}

/* --- NETTOYAGE DES FONDS (Écrase le bleu Bootstrap) --- */
.bg-primary {
    background-color: var(--bs-primary) !important;
}

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

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

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

/* --- NAVIGATION (BLANCHE AVEC ACCENT ORANGE) --- */
.navbar {
    background-color: #ffffff !important;
    border-bottom: 3px solid var(--bs-primary) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

.navbar-brand {
    font-weight: 800 !important;
    color: var(--bs-dark) !important;
    font-size: 1.5rem;
}

.navbar-brand span {
    color: var(--bs-primary); /* Pour le "Par" de ParColis */
}

.navbar .nav-link {
    color: var(--bs-dark) !important;
    font-weight: 600;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

.navbar .nav-link:hover {
    color: var(--bs-primary) !important;
}

/* --- BOUTONS (PRIMARY & SECONDARY) --- */
.btn-primary {
    background-color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
    color: #ffffff !important;
    font-weight: 600;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn-primary:hover {
    background-color: #e64a19 !important;
    border-color: #e64a19 !important;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: var(--bs-secondary) !important;
    border-color: var(--bs-secondary) !important;
    color: #ffffff !important;
}

.btn-secondary:hover {
    background-color: #7cb342 !important;
}

/* --- BOUTONS OUTLINE (S'ASSURE QU'ILS NE SONT PLUS BLEUS) --- */
.btn-outline-primary {
    color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
    background-color: transparent !important;
}

.btn-outline-primary:hover {
    background-color: var(--bs-primary) !important;
    color: #ffffff !important;
}

.btn-outline-secondary {
    color: var(--bs-secondary) !important;
    border-color: var(--bs-secondary) !important;
}

.btn-outline-secondary:hover {
    background-color: var(--bs-secondary) !important;
    color: #ffffff !important;
}

/* --- CARTES ET DASHBOARD --- */
.card {
    border: none !important;
    border-radius: 15px !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.card-header {
    background-color: transparent !important;
    border-bottom: 1px solid rgba(0,0,0,0.05) !important;
    padding: 1.25rem;
}

/* --- COMPOSANTS DE FORMULAIRE --- */
.form-control:focus {
    border-color: var(--bs-primary) !important;
    box-shadow: 0 0 0 0.25rem rgba(255, 87, 51, 0.15) !important;
}

.form-select:focus {
    border-color: var(--bs-primary) !important;
    box-shadow: 0 0 0 0.25rem rgba(255, 87, 51, 0.15) !important;
}

/* --- BADGES ET LIENS --- */
.badge.bg-primary {
    background-color: var(--bs-primary) !important;
    color: #ffffff !important;
}

a {
    color: var(--bs-primary);
    text-decoration: none;
}

a:hover {
    color: #e64a19;
}

/* --- ANIMATION POUR LE TOTAL DANS CREATE --- */
#total-display {
    transition: all 0.3s ease;
}

/* Slogan Footer */
footer {
    border-top: 1px solid var(--bs-light);
}

/* 1. La classe de base (équivalent de .bi) */
.mm {
    display: inline-flex; /* Utiliser flex aide à l'alignement vertical */
    align-self: center;
    
    /* UTILISER 'em' EST LA CLÉ : 1em = la taille de la police actuelle */
    width: 1em;  
    height: 1em;
    
    background-color: currentColor;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
    
    /* Ajustement pour que l'icône ne soit pas trop haute par rapport au texte */
    vertical-align: -0.125em; 
    margin-right: 0.2rem;
}

.mm-miamminute {
    -webkit-mask-image: url('/miamminute.svg');
    mask-image: url('/miamminute.svg');
}