/* Style principal des boutons */
.navbar .btn-custom {
    background-color: #c00113; /* Rouge principal */
    border: none;
    color: white;
    font-weight: bold;
    font-size: 14px; /* Taille de la police */
    padding: 8px 16px; /* Espacement interne */
    border-radius: 20px; /* Coins arrondis */
    margin-left: 10px; /* Espacement entre les boutons */
    transition: all 0.3s ease-in-out; /* Transition fluide */
    text-transform: uppercase; /* Texte en majuscules */
}
.btn-ajout {
    background-color: #c00113; /* Rouge principal */
    border: none;
    color: white;
    font-weight: bold;
    font-size: 14px; /* Taille de la police */
    padding: 8px 16px; /* Espacement interne */
    border-radius: 20px; /* Coins arrondis */
    margin-left: 10px; /* Espacement entre les boutons */
    text-transform: uppercase; /* Texte en majuscules */

}
/* Style au survol (hover) */
.navbar .btn-custom:hover {
    background-color: black; /* Couleur noire au survol */
    color: white; /* Texte reste blanc */
    border: none; /* Pas de bordure */
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2); /* Ombre subtile */
    transform: translateY(-2px); /* Légère élévation */
}
/* Styles spécifiques au tableau de bord */
.admin-dashboard .card {
    background-color: #343a40 !important; /* Fond sombre */
    color: white !important; /* Texte blanc */
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.admin-dashboard .card .btn {
    background-color: #c00113 !important; /* Rouge principal */
    border: none;
}

.admin-dashboard .card .btn:hover {
    background-color: #9e000f !important;
}

.admin-dashboard #sidebar {
    background-color: #212529; /* Sidebar sombre */
    color: white;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    min-height: 100% ;
    width: 240px; /* Largeur de la sidebar */
    height: auto; /* Assure que la hauteur est égale à 100% de la fenêtre */
    overflow-y: auto; /* Ajoute un défilement vertical si nécessaire */
    padding-top: 20px;
}
#sidebar {
    background-color: #212529; /* Couleur sombre de la sidebar */
    color: white; /* Couleur du texte */
    position: fixed; /* Fixe la barre latérale */
    top: 0; /* S'étend depuis le haut */
    left: 0; /* S'étend depuis la gauche */
    width: 240px; /* Largeur de la sidebar */
    min-height: 100%; /* S'assure que la sidebar s'allonge en fonction du contenu */
    height: auto; /* Permet de s'ajuster à la hauteur du contenu */
    overflow-y: auto; /* Ajoute un défilement vertical si nécessaire */
    padding-top: 20px; /* Espacement supérieur */
}

.admin-dashboard #sidebar .nav-link {
    color: #adb5bd;
    padding: 10px 15px;
}

.admin-dashboard #sidebar .nav-link:hover,
.admin-dashboard #sidebar .nav-link.active {
    background-color: #c00113;
    color: white;
    border-radius: 5px;
}

.admin-dashboard main {
    background-color: #f8f9fa; /* Fond gris clair */
    min-height: 100vh; /* S'assure que le contenu occupe toute la hauteur */
    margin-left: 240px; /* Compense la largeur de la sidebar */
    padding: 20px; /* Espacement interne */
}

.admin-dashboard {
    background-color: #f8f9fa; /* Fond gris clair global */
}


/* Appliquer uniquement le style hover pour les liens des sidebars */
#sidebar .nav-link:hover,
#sidebar .nav-link.active {
    background-color: #c00113; /* Couleur de survol (hover) */
    color: white; /* Texte blanc */
    border-radius: 5px; /* Coins arrondis */
}

a {
    color: #c00113;
    text-decoration: none !important;
    -moz-transition: all 0.5s ease-in-out 0s;
    -ms-transition: all 0.5s ease-in-out 0s;
    -o-transition: all 0.5s ease-in-out 0s;
    -webkit-transition: all 0.5s ease-in-out 0s;
    transition: all 0.5s ease-in-out 0s;
}
.vehicle-form {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.vehicle-form label {
    font-weight: bold;
    color: #333;
}

.vehicle-form .form-control {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    font-size: 16px;
}

.vehicle-form .form-control:focus {
    border-color: #d90000;
    box-shadow: 0 0 5px rgba(217, 0, 0, 0.3);
}

.vehicle-form .btn-custom {
    background-color: #d90000;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    border: none;
    transition: all 0.3s ease-in-out;
}

.vehicle-form .btn-custom:hover {
    background-color: #b00000;
}

.vehicle-form .btn-outline-secondary {
    color: #333;
    border-color: #ddd;
    padding: 10px 20px;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}

.vehicle-form .btn-outline-secondary:hover {
    color: #fff;
    background-color: #b00000;
    border-color: #b00000;
}
.alert-danger {
    background-color: #f8d7da;
    color: #842029;
    border: 1px solid #f5c2c7;
    border-radius: 8px;
    padding: 15px;
    font-size: 16px;
    font-weight: bold;
}

.alert-danger a {
    color: #842029;
    text-decoration: underline;
    font-weight: bold;
}

.alert-danger a:hover {
    color: #d90000;
}
/* Style par défaut pour l'icône "Mon Espace" */
.navbar .fa-user-circle {
    font-size: 1.5rem; /* Taille de l'icône */
    color: #d90000; /* Rouge de votre thème */
    margin-right: 5px;
    transition: color 0.3s ease-in-out; /* Transition fluide */
}

/* Effet au survol de l'icône */
.navbar .fa-user-circle:hover {
    color: #b00000; /* Rouge foncé au survol */
}

/* Cacher le texte "Mon Espace" par défaut */
.espace-client-text {
    display: none; /* Caché par défaut */
    font-size: 16px;
    color: #fff; /* Blanc pour contraster avec le fond */
    transition: opacity 0.3s ease-in-out; /* Apparition fluide */
}

/* Afficher le texte "Mon Espace" au survol */
#espace-client-link:hover .espace-client-text {
    display: inline; /* Affiche le texte */
    opacity: 1; /* Texte visible */
}
/* Table Styling */
.custom-table {
    background-color: #222; /* Fond général du tableau */
    border-collapse: collapse;
    margin: 20px auto;
    width: 80%; /* Ajuste la largeur pour plus d'équilibre */
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
}

.custom-table th {
    background-color: #333; /* En-tête plus contrastée */
    color: #f00; /* Rouge pour les titres */
    text-transform: uppercase;
    padding: 15px;
    font-size: 14px;
    border: 1px solid #444;
}

.custom-table td {
    color: #ddd;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #444;
    text-align: center;
}

.custom-table tr:nth-child(even) {
    background-color: #2a2a2a; /* Alternance des lignes */
}

.custom-table tr:hover {
    background-color: #444; /* Effet de survol */
}

.custom-table .btn-outline-info {
    color: #0dcaf0;
    border-color: #0dcaf0;
}

.custom-table .btn-outline-info:hover {
    background-color: #0dcaf0;
    color: #fff;
}

.custom-table .btn-outline-primary {
    color: #ffc107;
    border-color: #ffc107;
}

.custom-table .btn-outline-primary:hover {
    background-color: #ffc107;
    color: #111;
}

.custom-table .badge-warning {
    background-color: #ffc107;
    color: #111;
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .custom-table {
        width: 100%;
        font-size: 12px;
    }
}
/* Styling for the details page */
.appointment-details-page {
    max-width: 800px;
    margin: auto;
    font-family: Arial, sans-serif;
}

/* Card styling */
.card {
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

/* Table styling */
.table-borderless th {
    color: #007bff; /* Bleu doux pour les titres */
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
}

.table-borderless td {
    font-size: 14px;
    color: #333;
    padding: 10px 0;
}

/* Badge styling */
.badge-warning {
    background-color: orange;
    color: white;
    font-size: 14px;
    padding: 5px 10px;
    border-radius: 5px;
}

/* Button styling */
.btn {
    border-radius: 20px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
}

.btn-outline-dark {
    color: #343a40;
    border-color: #343a40;
}

.btn-outline-dark:hover {
    background-color: #343a40;
    color: white;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-primary:hover {
    background-color: #0056b3;
    color: white;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
    color: white;
}
/* Style spécifique pour la carte d'enregistrement d'administrateur */
#card-admin-registration {
    border: 1px solid #ddd; /* Bordure légère */
    border-radius: 10px; /* Coins arrondis */
    background-color: #343a40; /* Couleur sombre */
    color: white; /* Texte blanc */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Ombre subtile */
    padding: 20px; /* Espacement interne */
    margin: 20px auto; /* Espacement vertical centré */
    max-width: 600px; /* Largeur maximale */
    text-align: center; /* Centrer le contenu */
}

/* Style du bouton spécifique à cette carte */
#card-admin-registration .btn {
    background-color: #c00113; /* Rouge principal */
    color: white; /* Texte blanc */
    border: none;
    border-radius: 20px; /* Coins arrondis */
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase; /* Texte en majuscules */
    transition: all 0.3s ease-in-out; /* Animation fluide */
}

#card-admin-registration .btn:hover {
    background-color: #9e000f; /* Rouge foncé */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Ombre subtile au survol */
    transform: translateY(-2px); /* Légère élévation */
}
.card-header.bg-red {
    background-color: #c00113; /* Rouge personnalisé */
    color: white; /* Texte blanc */
    font-weight: bold; /* Texte en gras */
}
/* Cibler uniquement la page des produits */
#shop-page .card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

#shop-page .card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.2);
}

#shop-page .card-img-top {
    height: 150px;
    object-fit: contain;
    background-color: #f9f9f9;
    padding: 10px;
}

#shop-page .card-body {
    padding: 15px;
    text-align: center;
}

#shop-page .card-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
    text-transform: uppercase;
}

#shop-page .subcategories {
    margin-top: 10px;
    text-align: left;
    font-size: 0.9rem;
}

#shop-page .subcategories li {
    margin-bottom: 5px;
    list-style-type: disc;
    margin-left: 15px;
}

#shop-page .subcategories li a {
    color: #dc3545;
    text-decoration: none;
}

#shop-page .subcategories li a:hover {
    text-decoration: underline;
}

#shop-page .container h1 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 30px;
    text-transform: uppercase;
    color: #555;
    text-align: center;
}

/* 1. Le parent .row doit utiliser flex et align-items: stretch */
.theme-repair-services .row.d-flex.align-items-center {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

/* 2. Les colonnes doivent aussi être en flex pour que les cartes s'étirent */
.theme-repair-services .col-lg-4,
.theme-repair-services .col-md-4,
.theme-repair-services .col-sm-12 {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* 3. Les cartes prennent toute la hauteur disponible */
.kar-theme-single-service-card {
    flex: 1 1 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: 320px; /* Ajuste cette valeur selon ton design */
    height: 100%;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.04);
    padding: 32px 24px;
    margin-bottom: 32px;
}