/* === Variables de Couleur et Styles Généraux === */
:root {
    --primary-color: #e02787; /* Un violet riche */
    --primary-color-dark: #4a148c;
    --secondary-color: #FF1493; /* Un violet très clair pour les fonds */
}

a {
    color: var(--primary-color);
}

a:hover {
    color: var(--primary-color-dark);
}

/* === Barre de Navigation === */
.bg-primary-gradient {
    background: var(--primary-color);
    background: linear-gradient(90deg, var(--primary-color-dark) 0%, var(--primary-color) 100%);
}

/* MODIFICATION APPLIQUÉE : Style du logo */
.navbar-brand.logo-text {
    font-weight: bold;
    color: #ffffff; /* Couleur blanche par défaut */
    transition: color 0.3s ease-in-out; /* Animation douce pour le survol */
}

.navbar-brand.logo-text:hover {
    color: #e9ecef; /* Gris très clair au survol (mieux que le gris foncé sur fond sombre) */
}

.profile-pic {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #fff;
}

.notification-badge {
    position: relative;
    top: -10px;
    left: -5px;
}

/* === Formulaires === */
.form-section-title {
    color: var(--primary-color);
    border-left: 4px solid var(--primary-color);
    padding-left: 10px;
    margin-bottom: 1.5rem;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--primary-color-dark);
    border-color: var(--primary-color-dark);
}

.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.25rem rgba(106, 27, 154, 0.25);
}

/* === Disposition Générale === */
.main-content {
    padding-bottom: 100px; 
}

.action-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.action-bar .btn {
    width: 90%;
    max-width: 400px;
    font-weight: bold;
    padding: 0.75rem 1rem;
}

.empty-state-container {
    margin-top: 15vh;
    color: #6c757d;
}

/* === Cartes de Demande (Fil d'actualité et En cours) === */
.request-card {
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease-in-out;
}

.request-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.my-request-card {
    border: 2px solid var(--primary-color);
    background-color: #f8f0fe; /* Un violet très léger */
}

.request-card .card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.badge.bg-premium {
    background-color: #ffc107 !important;
    color: #212529 !important;
}

.badge.bg-eco {
    background-color: #198754 !important;
}

.exchange-flow {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.amount {
    color: var(--primary-color);
    font-weight: 700;
}

.recharge-info {
    background-color: #e8f5e9;
    border-radius: .375rem;
    padding: 0.75rem;
    text-align: center;
    border: 1px solid #c8e6c9;
}

/* === Système de Notation par Étoiles === */
.rating-stars { 
    display: inline-block; 
}

.rating-stars input[type="radio"] { 
    display: none; 
}

.rating-stars label {
    float: right;
    padding: 0;
    font-size: 30px;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s;
}

.rating-stars label:before { 
    content: '\f005'; 
    font-family: 'Font Awesome 6 Free'; 
    font-weight: 900; 
}

.rating-stars input[type="radio"]:checked ~ label,
.rating-stars label:hover,
.rating-stars label:hover ~ label { 
    color: #ffc107; /* Jaune doré pour les étoiles */
}

/* === Panel Admin === */
.admin-card {
    transition: all 0.2s ease-in-out;
}
.admin-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* === NOUVEAUX STYLES POUR LES BOX DE CHOIX DE SERVICE === */

/* Conteneur pour les deux boîtes */
.service-choice-wrapper {
    display: flex; /* Utiliser flexbox pour l'alignement */
    flex-direction: column; /* Les empiler verticalement sur mobile (mobile-first) */
    gap: 1rem; /* Espace entre les boîtes */
}

/* Style de base pour chaque boîte cliquable */
.service-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
    border: 2px solid var(--primary-color);
    border-radius: 0.75rem; /* Coins bien arrondis */
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    background-color: #fff; /* Fond blanc par défaut */
    color: var(--primary-color); /* Texte de couleur primaire */
}

/* Style de l'icône à l'intérieur de la boîte */
.service-box .service-icon {
    font-size: 2rem; /* Agrandir l'icône */
    margin-bottom: 0.75rem;
    color: var(--primary-color);
    transition: color 0.3s ease-in-out;
}

/* Style du titre (ex: "Eco - ENTRE AGENTS") */
.service-box .service-title {
    font-weight: bold;
    font-size: 1.1rem;
}

/* Style du sous-titre */
.service-box .service-subtitle {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* --- LOGIQUE DE SÉLECTION --- */

/* Style de la boîte LORSQU'ELLE EST SÉLECTIONNÉE (radio coché) */
.btn-check:checked + .service-box {
    background-color: var(--primary-color); /* Le fond devient violet */
    color: #ffffff; /* Le texte devient blanc */
    border-color: var(--primary-color-dark);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
}

/* L'icône devient blanche quand la boîte est sélectionnée */
.btn-check:checked + .service-box .service-icon {
    color: #ffffff;
}

/* Le badge change de couleur quand la boîte est sélectionnée */
.btn-check:checked + .service-box .badge {
    background-color: #ffffff !important;
    color: var(--primary-color) !important;
}

/* --- RESPONSIVE POUR TABLETTES ET ORDINATEURS --- */

/* Quand l'écran est plus grand que 768px (tablettes et plus) */
@media (min-width: 768px) {
    .service-choice-wrapper {
        /* On les affiche côte à côte */
        flex-direction: row;
    }
}

/* Style pour les logos des opérateurs sur les cartes */
.operator-logo {
    width: 24px;      /* Largeur fixe */
    height: 24px;     /* Hauteur fixe */
    margin-right: 8px; /* Espace entre le logo et le texte */
    vertical-align: middle; /* Alignement vertical avec le texte */
    object-fit: contain; /* S'assure que le logo n'est pas déformé */
}