/* ==== medias/css/main_style.css ==== */

/* ==== CHARTE GRAPHIQUE ET VARIABLES ==== */
:root {
    --primary-color: #76C721; /* Vert du logo */
    --text-color: #333333;    /* Gris foncé pour le texte */
    --text-light-color: #555555; /* Gris un peu plus clair pour certains textes secondaires */
    --background-color: #F4F7F6; /* Gris très clair pour le fond de page */
    --container-bg-color: #FFFFFF; /* Blanc pour les boîtes de contenu */
    --border-color: #DEE2E6; /* Gris clair pour les bordures */
    --input-border-color: #ced4da; /* Couleur de bordure pour les inputs */
    --light-grey-bg: #f8f9fa;  /* Fond gris clair pour certaines sections */

    --font-titles: 'Nunito', sans-serif;
    --font-body: 'Lato', sans-serif;

    /* Couleurs sémantiques pour les statuts */
    --status-blue: #007bff;
    --status-cyan: #17a2b8;
    --status-green: #28a745;
    --status-yellow: #ffc107;
    --status-red: #dc3545;
    --status-grey: #6c757d;
    --status-orange: #fd7e14;
}

/* =================================================================
   STYLE GÉNÉRIQUE ET UNIFIÉ POUR LES BADGES DE STATUT
   ================================================================= */
.status-badge {

    white-space: normal !important; /* Autorise le retour à la ligne */
    display: inline-block;
    max-width: 100%; /* Ne dépasse jamais son conteneur */
    padding: 5px 12px;
    font-size: 0.85em;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 20px;
    color: #fff;
}

/* Statut: Demandée / En attente */
.status-badge.status-demandee {
    background-color: var(--status-yellow);
    color: #212529;
}

/* Statut: Confirmée par le loueur */
.status-badge.status-confirmee_par_loueur {
    background-color: var(--status-cyan);
}

/* Statut: Payée et confirmée (prête pour la location) */
/* On a retiré .status-en_cours de cette règle pour qu'il ne soit plus bleu */
.status-badge.status-payee {
    background-color: var(--status-blue);
}

/* Statut: En cours (maintenant, cette règle orange s'appliquera sans conflit) */
.status-badge.status-en_cours {
    background-color: var(--status-orange);
}

/* Statuts d'annulation ou d'erreur */
.status-badge.status-annulee_par_locataire,
.status-badge.status-annulee_par_loueur,
.status-badge.status-probleme_signale,
.status-badge.status-refusee {
    background-color: var(--status-red);
}

/* Statuts neutres ou terminés */
.status-badge.status-terminee,
.status-badge.status-expiree,
.status-badge.status-supprimee,
.status-badge.status-inactive,
.status-badge.status-en_pause {
    background-color: var(--status-grey);
}

/* ==== STYLES GLOBAUX ==== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
    font-size: 16px; /* Taille de police de base */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-titles);
    font-weight: 800;
    margin-top: 1.5em;
    margin-bottom: 0.75em;
    color: var(--text-color);
}
h1 { font-size: 2.2rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.1rem; font-weight: 700;}

p {
    margin-bottom: 1em;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease-in-out, text-decoration 0.2s ease-in-out;
}
a:hover {
    text-decoration: underline;
    color: #5a9a1a; /* Vert primaire un peu plus foncé */
}

hr {
    border: 0;
    height: 1px;
    background: var(--border-color);
    margin: 2em 0;
}

img {
    max-width: 100%; /* Empêche les images de déborder de leur conteneur */
    height: auto;   /* Garde les proportions */
    display: block; /* Évite les espaces blancs parasites sous les images */
}

/* ==== HEADER / NAVIGATION (CORRIGÉ TABLETTE) ==== */
.main-header {
    background-color: var(--container-bg-color);
    padding: 10px 25px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid var(--primary-color);
    flex-wrap: wrap; /* Autorise le retour à la ligne si pas de place */
    gap: 15px; /* Espace entre logo et menu */
}

/* LOGO */
.logo-container a {
    font-family: var(--font-titles);
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--text-color);
    text-decoration: none;
    display: flex;
    align-items: center;
}
.logo-aligned-container {
    display: flex;
    align-items: baseline; /* Aligne le texte sur la ligne de base */
    gap: 10px;
}
.logo-aligned-tagline {
    font-size: 0.9rem;
    font-weight: normal;
    color: var(--text-light-color);
    /* Cache le slogan sur mobile pour gagner de la place */
}

/* NAVIGATION */
.main-nav ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
    display: flex;
    align-items: center;
    gap: 10px; /* Réduit un peu l'espace entre les liens */
    flex-wrap: wrap; /* IMPORTANT : Permet aux liens de passer à la ligne proprement */
    justify-content: flex-end; /* Pousse le menu à droite sur grand écran */
}

.main-nav a {
    text-decoration: none;
    font-weight: 700;
    color: var(--text-light-color);
    padding: 8px 10px; /* Padding légèrement réduit */
    border-radius: 6px;
    white-space: nowrap; /* Empêche un lien de se casser en deux lignes */
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
    display: inline-block; /* Assure un bon rendu du padding */
}

.main-nav a:hover, 
.main-nav a.active {
    background-color: var(--statut-highlight-bg);
    color: var(--primary-color);
    text-decoration: none;
}

.main-nav .user-info {
    color: var(--text-light-color);
    padding: 8px 12px;
    font-size: 0.9em;
    white-space: nowrap;
}

.main-nav a .notification-badge {
    background-color: var(--statut-annulee-bg);
    color: white;
    border-radius: 10px;
    padding: 1px 6px;
    font-size: 0.75em;
    font-weight: bold;
    position: relative;
    top: -7px; 
    left: -2px; 
}

/* =========================================
   MEDIA QUERY : TABLETTES & PETITS ÉCRANS
   (Moins de 1024px de large)
   ========================================= */
@media screen and (max-width: 1024px) {
    .main-header {
        flex-direction: column; /* Empile Logo (Haut) et Menu (Bas) */
        align-items: flex-start; /* <--- FORCE L'ALIGNEMENT À GAUCHE */
        padding: 15px 20px;
    }

    /* LOGO : On s'assure qu'il reste à gauche */
    .logo-container {
        width: 100%;
        display: flex;
        justify-content: flex-start; /* Aligne le logo au début (gauche) */
        margin-bottom: 15px; /* Espace avant le menu */
        padding-left: 5px; /* Petit décalage esthétique pour s'aligner avec le bord */
    }

    .logo-container a {
        justify-content: flex-start; /* Texte du logo à gauche */
    }

    /* NAVIGATION : Prend toute la largeur en dessous */
    .main-nav {
        width: 100%;
        border-top: 1px solid #eee; /* Optionnel : Petite ligne de séparation fine */
        padding-top: 10px;
    }

    .main-nav ul {
        /* ICI TU AS LE CHOIX : */
        /* justify-content: flex-start; -> Si tu veux les liens alignés à gauche sous le logo */
        /* justify-content: center;     -> Si tu veux les liens centrés (plus joli souvent) */
        /* justify-content: space-between; -> Si tu veux qu'ils s'étalent sur toute la largeur */
        
        justify-content: center; /* Mon conseil : Liens centrés sous le logo gauche */
        gap: 12px;
        width: 100%;
        flex-wrap: wrap;
    }

    .main-nav a {
        font-size: 0.95rem;
        padding: 8px 12px;
        white-space: nowrap;
        background-color: transparent; /* Retire le fond gris mobile si présent */
    }
    
    /* Réaffichage du slogan si tu veux, aligné à gauche */
    .logo-aligned-tagline {
        display: block; 
        margin-left: 10px;
        text-align: left;
    }
    .logo-aligned-separator {
        display: block;
    }
}

/* =========================================
   MEDIA QUERY : MOBILE (Moins de 600px)
   ========================================= */
@media screen and (max-width: 600px) {
    .main-nav ul {
        flex-direction: column; /* Menu vertical sur mobile */
        width: 100%;
    }
    .main-nav li {
        width: 100%;
        text-align: center;
    }
    .main-nav a {
        display: block; /* Lien prend toute la largeur */
        width: 100%;
        padding: 10px;
        background-color: #f8f9fa; /* Fond léger pour séparer */
        margin-bottom: 2px;
    }
}

/* ==== CONTENEUR DE PAGE PRINCIPAL ==== */
.page-container {
    max-width: 1200px; /* Largeur maximale pour le contenu principal */
    margin: 20px auto; /* Centrer avec des marges latérales automatiques */
    padding: 0 15px; /* Padding pour ne pas coller aux bords sur petits écrans */
}


/* ==== BOUTONS ==== */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-family: var(--font-titles);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.2s ease-in-out, transform 0.1s ease-in-out;
}
.btn:hover {
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}
.btn-primary {
    background-color: var(--primary-color);
    color: white;
}
.btn-primary:hover {
    background-color: #64a91c;
    color: white;
}
.btn-action.btn-avis {
    background-color: #ffc107;
    color: #212529;
    font-weight: bold;
}
.btn-action.btn-avis:hover {
    background-color: #0056b3; /* Un bleu plus foncé */
}


button[type="submit"] { /* Style par défaut pour les boutons de soumission de formulaire */
    background-color: var(--primary-color);
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: var(--font-titles);
    transition: background-color 0.2s ease-in-out, transform 0.1s ease-in-out;
}
button[type="submit"]:hover {
    background-color: #64a91c;
    transform: translateY(-2px);
}

/* Styles pour les boutons d'action (Approuver/Rejeter, etc.) */
.btn-action {
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    font-size: 0.9rem;
    margin: 2px;
    transition: opacity 0.2s;
    font-family: var(--font-body); /* Pour être cohérent avec les autres boutons */
}

.btn-action:hover {
    opacity: 0.8;
    text-decoration: none; /* Pour éviter le soulignement au survol */
    color: white;
}

/* Bouton vert (Validation / Check-in) */
.btn-success {
    background-color: #28a745; /* Vert standard */
    color: #ffffff !important; /* Force le texte en BLANC */
    border: 1px solid #28a745;
}

.btn-success:hover {
    background-color: #218838; /* Vert un peu plus foncé au survol */
    color: #ffffff !important; /* Reste blanc au survol */
    text-decoration: none;
    border-color: #1e7e34;
}

.btn-danger {
    background-color: #dc3545; /* Rouge */
}


/* ==== MESSAGES DE SESSION ==== */
.session-message {
    padding: 15px 20px;
    margin: 20px 0; /* Ajusté pour être dans .page-container */
    border-radius: 6px;
    text-align: left;
    font-weight: 700;
    border-width: 1px;
    border-style: solid;
}
.session-message.success {
    background-color: var(--statut-highlight-bg);
    color: var(--statut-highlight-text);
    border-color: var(--statut-highlight-border);
}
.session-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}
.session-message.warning {
    background-color: #fff3cd;
    color: #856404;
    border-color: #ffeeba;
}
.session-message.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-color: #bee5eb;
}


/* ==== STYLES POUR LES FORMULAIRES GÉNÉRIQUES ==== */
.container-form { 
    background-color: var(--container-bg-color); 
    padding: 25px 35px; 
    border-radius: 8px; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); 
    max-width: 700px; /* Un peu moins large pour les formulaires standard */
    margin: 40px auto; 
}
.container-form h2 { 
    text-align: center; 
    margin-top: 0; 
    margin-bottom: 1.5em;
}
.form-section { 
    border-bottom: 1px solid var(--border-color); 
    padding-bottom: 20px; 
    margin-bottom: 25px; 
}
.form-section:last-child { 
    border-bottom: none; 
    margin-bottom: 0;
}
.form-section h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--primary-color);
}
.form-grid { 
    display: grid; 
    grid-template-columns: 1fr; /* Par défaut sur 1 colonne */
    gap: 20px; 
}
@media (min-width: 600px) { /* Sur écrans plus larges, 2 colonnes */
    .form-grid { 
        grid-template-columns: 1fr 1fr; 
    }
}
.form-grid .full-width { 
    grid-column: 1 / -1; 
}
.form-group { 
    margin-bottom: 15px; 
}
.form-group label { 
    display: block; 
    margin-bottom: 6px; 
    font-weight: 700; 
    font-size: 0.9rem;
}
.form-group input[type="text"],
.form-group input[type="email"], 
.form-group input[type="password"], 
.form-group input[type="tel"], 
.form-group input[type="number"], 
.form-group input[type="datetime-local"],
.form-group select, 
.form-group textarea {
    width: 100%; 
    padding: 10px 12px; 
    border: 1px solid var(--input-border-color); 
    border-radius: 4px; 
    box-sizing: border-box; 
    font-size: 0.95rem;
    font-family: var(--font-body);
    background-color: #fff;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(118, 199, 33, 0.25); /* Ombre légère avec la couleur primaire */
    outline: none;
}
.form-group textarea { 
    resize: vertical; 
    min-height: 100px; 
}
.form-group small {
    font-size: 0.8rem;
    color: #6c757d;
    display: block;
    margin-top: 5px;
}
.container-form .btn-primary, /* Cibler les boutons primaires dans les formulaires */
.container-form button[type="submit"] { 
    display: block; 
    width: auto; 
    min-width: 150px;
    margin: 30px auto 0 auto; /* Centrer le bouton */
}


/* ==== STYLES SPÉCIFIQUES À vue_velo.php ==== */
.page-velo { max-width: 1100px; margin: 20px auto; padding: 20px; background-color: var(--container-bg-color); border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.velo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 30px; } /* Ajusté minmax */

/* Galerie Photos (vue_velo.php) */
.velo-gallery #main-photo { 
    width: 100%; 
    height: auto; 
    max-height: 450px; 
    aspect-ratio: 4/3; 
    object-fit: contain; /* CHANGÉ: 'cover' devient 'contain' pour afficher l'image entière */
    background-color: var(--light-grey-bg); /* AJOUT: Un fond discret si l'image ne remplit pas le cadre */
    border-radius: 8px; 
    border: 1px solid var(--border-color); 
    margin-bottom:10px; 
}
.thumbnails { display: flex; flex-wrap: wrap; gap: 10px; }
.thumbnails .thumb { width: 80px; height: 60px; object-fit: contain; border-radius: 4px; cursor: pointer; border: 2px solid transparent; transition: border-color 0.2s; }
.thumbnails .thumb:hover, .thumbnails .thumb.active { border-color: var(--primary-color); }

/* Détails du vélo (vue_velo.php) */
.velo-details h1 { margin-top: 0; }
.velo-prix { font-size: 1.8rem; font-weight: bold; color: var(--primary-color); margin-bottom: 20px; }
.velo-details h3 { font-size: 1.3rem; margin-top: 25px; margin-bottom: 10px; border-bottom: 1px solid var(--border-color); padding-bottom: 8px; color: var(--text-color); }
.velo-specs { list-style-type: none; padding: 0; margin-top: 10px; }
.velo-specs li { padding: 8px 0; font-size: 0.95rem; border-bottom: 1px dotted var(--border-color); }
.velo-specs li:last-child { border-bottom: none; }
.velo-specs li strong { color: var(--text-light-color); min-width:120px; display:inline-block;}

/* Calendrier d'affichage des disponibilités sur vue_velo.php */
#calendrier-affichage-dispo { 
    border: 1px solid var(--border-color, #ddd); 
    border-radius: 6px; 
    padding: 5px; 
    margin-bottom: 15px; 
    background-color: var(--container-bg-color, #fff);
}

#calendrier-affichage-dispo .flatpickr-day.flatpickr-disabled,
#calendrier-affichage-dispo .flatpickr-day.prevMonthDay:not(.flatpickr-range-highlight),
#calendrier-affichage-dispo .flatpickr-day.nextMonthDay:not(.flatpickr-range-highlight) {
    color: #ccc !important;
    text-decoration: none !important;
    background-color: transparent !important; 
}



/* Zone de réservation sur vue_velo.php */
.booking-zone { background-color: var(--light-grey-bg); padding: 20px; border-radius: 8px; margin-top: 25px; }
.booking-zone h4 { margin-top: 0; color: var(--text-color); }
/* Les .form-group et input sont déjà stylés par les règles générales des formulaires */
.booking-zone .btn-primary { width: 100%; }


/* Carte de localisation sur vue_velo.php */
.velo-localisation { margin-top: 30px; }
.velo-localisation h3 { font-size: 1.3rem; color: var(--text-color); }
#velo-map { height: 250px; border-radius: 8px; border: 1px solid var(--border-color); }


/* ==== STYLES POUR mes_velos.php ==== */
.container-mes-velos { background-color: var(--container-bg-color); padding: 20px 30px; border-radius: 8px; max-width: 1000px; margin: 40px auto; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.container-mes-velos h2 { margin-top:0; }
.container-mes-velos .velo-card { display: flex; align-items: center; border: 1px solid var(--border-color); border-radius: 8px; padding: 15px; margin-bottom: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.04); background-color: #fff; transition: box-shadow 0.2s ease-in-out; }
.velo-card:hover { box-shadow: 0 4px 8px rgba(0,0,0,0.08); }
.velo-card-img { flex-shrink: 0; margin-right: 20px; width: 150px; } /* Hauteur retirée pour respecter le ratio */
.velo-card-img img { width: 100%; height: auto; object-fit: contain; border-radius: 5px; background-color: var(--light-grey-bg); }
.velo-card-body { flex-grow: 1; }
.velo-card-body h4 { margin: 0 0 10px 0; font-size: 1.2rem; color: var(--primary-color); }
.velo-card-details { display: flex; flex-wrap: wrap; gap: 10px 20px; font-size: 0.9rem; color: var(--text-light-color); margin-bottom: 15px; }
.velo-card-actions { margin-top: 15px; display: flex; gap: 10px; }
.velo-card-actions .action-btn { /* Utilisation d'une classe plus générique pour les boutons d'action */
    padding: 6px 12px;
    font-size: 0.8rem;
    text-decoration: none;
    border-radius: 4px;
    color: white;
    transition: opacity 0.2s;
}
.velo-card-actions .action-btn:hover { opacity: 0.85; text-decoration: none; }
.action-edit { background-color: #007bff; } /* Bleu Bootstrap */
.action-photos { background-color: #6c757d; } /* Gris Bootstrap */
.action-dispo { background-color: #17a2b8; } /* Info Bootstrap */
.action-btn.btn-contact, /* Pour les tableaux */
.velo-card-actions a.btn-contact /* Pour les cartes */ { 
    background-color: #f0ad4e; /* Orange/Jaune pour la communication */
}
.action-btn.btn-contact:hover,
.velo-card-actions a.btn-contact:hover {
    background-color: #ec971f;
}

/* Styles pour les statuts (utilisé dans mes_velos.php, mes_locations.php, etc.) */
.statut-badge, .statut-reservation { 
    padding: 4px 10px; 
    border-radius: 15px; 
    font-size: 0.8rem; 
    color: white; 
    font-weight:bold; 
    display:inline-block; 
    line-height: 1.4; 
    text-align: center;
    min-width: 80px; /* Assure une largeur minimale pour tous les badges */
}

/* Règle pour les statuts jaunes (en attente) */
.statut-demandee, 
.statut-en_attente_validation,
.statut-paiement_en_attente { 
    background-color: #ffc107;     /* Fond jaune */
    color: #212529 !important; /* TEXTE NOIR (force la priorité sur le texte blanc générique) */
}

/* Statuts verts (confirmé par le loueur) */
.statut-confirmee_par_loueur { 
    background-color: #28a745; 
}

/* Statuts bleus (payé, location à venir ou en cours) */
.statut-payee,
.statut-en_cours { 
    background-color: #007bff; 
}

/* Statuts rouges (annulé) */
.statut-annulee_par_locataire, 
.statut-annulee_par_loueur { 
    background-color: #dc3545; 
}

/* Statuts gris (inactif ou terminé) */
.statut-terminee, 
.statut-inactive, 
.statut-en_pause, 
.statut-supprimee { 
    background-color: #6c757d; 
}


/* ==== STYLES POUR TABLEAUX (mes_demandes_reservations.php, historique_reservations_loueur.php) ==== */
.container-demandes, .container-historique { background-color: var(--container-bg-color); padding: 20px 30px; border-radius: 8px; max-width: 1200px; margin: 40px auto; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.container-demandes h2, .container-historique h2 { margin-top: 0; }
.table-demandes, .table-historique { width: 100%; border-collapse: collapse; margin-top: 20px; background-color: #fff; font-size: 0.9rem; }
.table-demandes th, .table-demandes td, 
.table-historique th, .table-historique td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border-color); }
.table-demandes th, .table-historique th { background-color: var(--light-grey-bg); font-family: var(--font-titles); font-weight:700; color: var(--text-light-color); }
.action-btn.btn-accepter {
    background-color: var(--primary-color);
    color: white; /* AJOUTEZ CETTE LIGNE */
}
.action-btn.btn-accepter:hover {
    background-color: #64a91c;
}
.action-btn.btn-refuser {
    background-color: var(--statut-annulee-bg);
    color: white; /* AJOUTEZ CETTE LIGNE */
}
.action-btn.btn-refuser:hover {
    background-color: #c82333;
}

/* ==== STYLES POUR TABLEAU DE BORD ADMIN (Suite) ==== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: var(--container-bg-color, #fff);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border-left: 5px solid var(--primary-color);
}

.stat-card h4 {
    margin-top: 0;
    font-size: 1rem;
    color: var(--text-light-color);
    margin-bottom: 10px;
}

.stat-card .stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-color);
    display: block;
}

.admin-actions-menu {
    margin: 30px 0; 
    display:flex; 
    flex-wrap:wrap; 
    gap:15px;
}


/* ==== STYLES POUR gerer_disponibilites.php ==== */
.container-dispo { background-color: var(--container-bg-color); padding: 20px 30px; border-radius: 8px; max-width: 900px; margin: 40px auto; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.container-dispo h2 { margin-top:0; }
.dispo-grid { display: grid; grid-template-columns: 1fr; gap: 30px; }
@media (min-width: 768px) {
    .dispo-grid { grid-template-columns: 2fr 1fr; gap: 40px; }
}
.dispo-list table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.dispo-list th, .dispo-list td { padding: 10px; text-align: left; border-bottom: 1px solid var(--border-color); }
.dispo-list th { background-color: var(--light-grey-bg); font-weight: 700; }
.delete-btn { color: var(--statut-annulee-bg); text-decoration: none; font-weight: bold; }
.delete-btn:hover { text-decoration: underline; }
.dispo-form { background-color: var(--light-grey-bg); padding: 20px; border-radius: 8px; }
.dispo-form h4 { margin-top: 0; color: var(--text-color); }
.dispo-form button[type="submit"] { background-color: var(--primary-color); color:white; padding:10px 15px; border:none; border-radius: 4px; cursor:pointer; }


/* ==== STYLES POUR notifications.php ==== */
.container-notifications { background-color: var(--container-bg-color); padding: 20px 30px; border-radius: 8px; max-width: 900px; margin: 40px auto; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.container-notifications h2 { margin-top: 0; }
.notification-list { list-style-type: none; padding: 0; margin: 0; }
.notification-item { padding: 15px; border-bottom: 1px solid var(--border-color); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 15px; transition: background-color 0.3s ease; }
.notification-item:last-child { border-bottom: none; }
.notification-item.non-lue { 
    background-color: var(--statut-highlight-bg); 
    font-weight: bold; 
    border-left: 5px solid var(--primary-color);
    padding-left: calc(15px - 5px); /* Ajustement pour la bordure */
}
.notification-message { flex-grow: 1; line-height: 1.5; }
.notification-date { font-size: 0.85em; color: var(--text-light-color); white-space: nowrap; flex-shrink: 0; margin-left: 15px; }
.notification-actions { display: flex; gap: 10px; align-items: center; flex-shrink: 0; margin-left: 15px; }
.notification-lien a { display: inline-block; padding: 6px 12px; background-color: var(--primary-color); color: white; border-radius: 4px; text-decoration: none; font-size: 0.85em; font-weight: normal; white-space: nowrap; }
.notification-lien a:hover { background-color: #64a91c; text-decoration: none; }
.notification-mark-read a { font-size: 0.8em; color: var(--text-light-color); text-decoration: none; border-bottom: 1px dotted var(--text-light-color); }
.notification-mark-read a:hover { color: var(--text-color); border-bottom: 1px solid var(--text-color); }
.no-notifications, .no-velos, .no-reservations, .no-demandes, .no-historique { text-align: center; padding: 40px; color: var(--text-light-color); background-color: var(--container-bg-color); margin:20px; border-radius:8px; border: 1px dashed var(--border-color); }


/* ==== STYLES POUR gerer_photos_velo.php ==== */
.container-photos { background-color: var(--container-bg-color); padding: 20px 30px; border-radius: 8px; max-width: 900px; margin: 40px auto; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.container-photos h2, .container-photos h4 { margin-top: 0; }
.photos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px; margin-top: 20px; }
.photo-item { border: 1px solid var(--border-color); border-radius: 4px; padding: 10px; text-align: center; background-color: #fff; }
.photo-item img { width: 100%; height: 130px; object-fit: contain; border-radius: 4px; margin-bottom: 10px; }
.photo-item.is-primary { border-color: var(--primary-color); border-width: 3px; background-color: var(--statut-highlight-bg); }
.photo-item .primary-badge { display: block; font-size: 0.8rem; font-weight: bold; color: var(--primary-color); margin-bottom: 5px; }
.photo-actions { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.photo-actions .btn-action { display: block; padding: 7px 10px; font-size: 0.8rem; text-decoration: none; border-radius: 4px; color: white; cursor: pointer; border: none; width: 100%; box-sizing: border-box; transition: opacity 0.2s; }
.photo-actions .btn-action:hover { opacity: 0.85; }
.btn-set-primary { background-color: #007bff; }
.btn-delete-photo { background-color: #dc3545; }
.upload-form { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--border-color); }
.upload-form label { font-weight: 700; margin-bottom: 8px; display: block; }
.upload-form input[type="file"] { border: 1px solid var(--input-border-color); padding: 10px; border-radius: 4px; width: 100%; margin-bottom:15px; }
.upload-form button[type="submit"] { background-color: var(--primary-color); }


/* Styles spécifiques pour mon_compte.php */
.container-compte { background-color: var(--container-bg-color); padding: 25px 35px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); max-width: 700px; margin: 40px auto; }
.container-compte h2 { text-align: center; margin-top: 0; margin-bottom: 1.5em; }
.info-utilisateur p { font-size: 1rem; margin-bottom: 12px; line-height: 1.7; }
.info-utilisateur strong { color: var(--text-light-color); margin-right: 8px; }
.actions-compte { margin-top: 30px; padding-top:20px; border-top:1px solid var(--border-color); display: flex; flex-wrap: wrap; gap: 10px; }
.actions-compte a { /* Utilise .btn pour la base, ou un style plus spécifique */
    flex-grow: 1; /* Pour que les boutons prennent la même largeur si peu nombreux */
    text-align: center;
    padding: 10px 15px;
    background-color: var(--text-light-color);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-family: var(--font-titles);
    font-weight: 700;
    transition: background-color 0.2s ease-in-out;
}
.actions-compte a:hover {
    background-color: var(--text-color);
    text-decoration: none;
}
/* Styles spécifiques pour les boutons de mon_compte.php (si besoin de couleurs différentes) */
.actions-compte a[href="mes_velos.php"], 
.actions-compte a[href="ajouter_velo.php"] { background-color: var(--primary-color); }
.actions-compte a[href="mes_velos.php"]:hover, 
.actions-compte a[href="ajouter_velo.php"]:hover { background-color: #64a91c; }

.actions-compte a[href="mes_demandes_reservations.php"] { background-color: var(--statut-demandee-bg); color: var(--statut-demandee-text); }
.actions-compte a[href="mes_demandes_reservations.php"]:hover { background-color: #e0a800; }

.actions-compte a[href="historique_reservations_loueur.php"] { background-color: var(--statut-terminee-bg); }
.actions-compte a[href="historique_reservations_loueur.php"]:hover { background-color: #5a6268; }

.actions-compte a[href="mes_locations.php"] { background-color: var(--statut-paiement-attente-bg); }
.actions-compte a[href="mes_locations.php"]:hover { background-color: #138496; }


/* ==== STYLES POUR LE FORMULAIRE DE RECHERCHE (index.php) ==== */

.search-container {
    background-color: var(--container-bg-color, #fff);
    padding: 20px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin: 25px 0;
}

#form-recherche-velos {
    display: flex;
    flex-wrap: wrap; /* Permet le passage à la ligne, c'est crucial */
    gap: 15px;
    align-items: flex-end; 
}

.search-field {
    display: flex;
    flex-direction: column;
    flex: 1; /* Raccourci pour flex-grow: 1, flex-shrink: 1, flex-basis: 0% */
    min-width: 180px; /* C'EST LA LIGNE MAGIQUE : chaque champ fera au moins 180px de large */
}

.search-field label {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text-color);
}

.search-field input[type="text"],
.search-field select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--input-border-color, #ccc);
    border-radius: 4px;
    font-size: 1rem;
}

.search-field.search-submit {
    flex: 0 0 auto; /* Le bouton ne grandit pas et ne rétrécit pas */
}

.search-field button {
    padding: 10px 20px;
    height: 42px; /* Pour s'aligner avec les inputs */
    width: 100%; /* Le bouton prendra la largeur de sa colonne */
}

/* ============================================= */
/* ==== SECTION RESPONSIVE UNIQUE ET NETTOYÉE ==== */
/* ============================================= */
@media (max-width: 768px) {

    /* Règles générales pour mobile (header, grids, etc.) */
    .main-header { flex-direction: column; padding: 15px; }
    .logo-container { margin-bottom: 15px; }
    .main-nav ul { flex-direction: column; width: 100%; gap: 5px; }
    .main-nav li { width: 100%; text-align: center; }
    .main-nav a { display: block; padding: 12px; }
    .main-nav .user-info { text-align: center; width: 100%; padding-top: 10px; border-top: 1px solid var(--border-color); }
    .velo-grid, .dispo-grid, .profil-velos-grid { grid-template-columns: 1fr; }
    
    /* Cartes en mode colonne */
    #results-list .velo-card, /* Cible la carte sur index.php */
    .reservation-card {      /* Cible la carte sur mes_locations.php */
        flex-direction: column;
        align-items: center; /* Centre l'image quand elle est en colonne */
    }
    
    /* Styles pour l'image de la carte vélo (index.php) */
    #results-list .velo-card-img {
        width: 100%;
        max-width: 250px; /* Limite la largeur sur mobile pour un meilleur aspect */
        height: auto;
        margin-right: 0;
        margin-bottom: 15px;
    }

    /* Styles pour la carte réservation (mes_locations) */
    .reservation-card-img {
        flex-basis: auto;
        width: 100%;
        max-width: 300px;
        height: auto;
    }
}
    /* ==== STYLES POUR LES AVIS (vue_velo.php) ==== */

.rating-summary {
    margin-bottom: 20px;
    font-size: 1rem;
    color: var(--text-light-color, #555);
    display: flex;
    align-items: center;
    gap: 8px;
}

.rating-summary .stars {
    color: #ffc107; /* Jaune/Or pour les étoiles */
    font-size: 1.3rem; /* Etoiles un peu plus grandes */
    line-height: 1;
}

.reviews-container {
    max-width: 1100px;
    margin: 30px auto;
    padding: 20px;
    background-color: var(--container-bg-color, #fff);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.reviews-container h3 {
    margin-top: 0;
    border-bottom: 1px solid var(--border-color, #eee);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.review-item {
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px dotted var(--border-color, #eee);
}
.review-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.review-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap; /* Pour les petits écrans */
    gap: 10px 15px;
    margin-bottom: 10px;
}
.review-header .stars {
    color: #ffc107;
    font-size: 1.1rem;
}
.review-header .review-author {
    font-size: 0.95rem;
}
.review-header .review-date {
    font-size: 0.85rem;
    color: #888;
    margin-left: auto; /* Pousse la date à droite sur grands écrans */
}

.review-comment p {
    margin: 0;
    padding-left: 15px;
    border-left: 3px solid #eee;
    font-style: italic;
    color: #444;
    line-height: 1.6;
}

/* ==== STYLES POUR LES AVIS (vue_velo.php) ==== */

.rating-summary {
    margin-bottom: 20px;
    font-size: 1rem;
    color: var(--text-light-color, #555);
    display: flex;
    align-items: center;
    gap: 8px;
}

.rating-summary .stars {
    color: #ffc107; /* Jaune/Or pour les étoiles */
    font-size: 1.2rem;
    margin-right: 8px;
    line-height: 1; /* Pour un meilleur alignement vertical */
}

.rating-summary a {
    color: var(--text-light-color, #555);
    text-decoration: underline;
    text-decoration-style: dotted;
}
.rating-summary a:hover {
    color: var(--primary-color);
}

.reviews-container {
    max-width: 1100px; /* Doit correspondre à .page-velo pour l'alignement */
    margin: 40px auto;
    padding: 20px 30px;
    background-color: var(--container-bg-color, #fff);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.reviews-container h3 {
    margin-top: 0;
    border-bottom: 1px solid var(--border-color, #eee);
    padding-bottom: 15px;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.review-item {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color, #eee);
}
.review-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.review-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 15px;
    margin-bottom: 10px;
}
.review-header .stars {
    color: #ffc107;
    font-size: 1.1rem;
}
.review-header .review-author {
    font-size: 0.95rem;
}
.review-header .review-date {
    font-size: 0.85rem;
    color: #888;
    margin-left: auto; /* Pousse la date à droite sur grands écrans */
}

.review-comment p {
    margin: 0;
    padding-left: 15px;
    border-left: 3px solid #eee;
    font-style: italic;
    color: #444;
    line-height: 1.7;
}


/* ==== STYLES POUR L'INTERRUPTEUR (SWITCH) ==== */
.switch {
  position: relative;
  display: inline-block;
  width: 50px; /* Largeur de l'interrupteur */
  height: 24px; /* Hauteur */
  vertical-align: middle;
  margin: 0 10px;
}

.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px; /* Hauteur du curseur */
  width: 18px; /* Largeur du curseur */
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
}

input:checked + .slider {
  background-color: var(--primary-color); /* Vert quand activé */
}

input:focus + .slider {
  box-shadow: 0 0 1px var(--primary-color);
}

input:checked + .slider:before {
  transform: translateX(26px); /* Distance de déplacement du curseur */
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

.statut-text {
    vertical-align: middle;
    font-weight: bold;
}

/* ==== STYLES POUR LA MISE EN PAGE DE L'ACCUEIL ==== */

.layout-container {
    display: flex;
    flex-wrap: wrap; /* Permet de passer en une seule colonne sur mobile */
    gap: 20px; /* Espace entre les colonnes */
    margin-top: 25px;
}

.colonne-gauche {
    flex: 1; /* Prend l'espace disponible */
    min-width: 350px; /* Largeur minimale avant de passer à la ligne */
}

.colonne-droite {
    flex: 1.5;
    min-width: 350px;
    height: 600px; /* <-- ON AJOUTE LA HAUTEUR FIXE ICI */


/* === DEBUT : AJOUT POUR RENDRE LA CARTE "COLLANTE" === */
    position: -webkit-sticky; /* Pour la compatibilité avec Safari */
    position: sticky;
    top: 20px; /* Distance du haut de l'écran où la carte va se "coller" */
    align-self: flex-start; /* Empêche la colonne de s'étirer, ce qui est crucial pour le "sticky" */
    /* === FIN : AJOUT === */

}


#carte {
    height: 100%;  /* <-- ON DIT À LA CARTE DE PRENDRE 100% DE SON PARENT */
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Style pour la future liste de résultats */
.results-container {
    margin-top: 20px;
}

#results-summary {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--text-color-secondary);
}

/* Pour les futurs éléments dans la liste */
#results-list .velo-card {
    background-color: #fff;
    border: 1px solid var(--input-border-color, #ddd);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    align-items: center; /* Aligne verticalement l'image et le texte */
    gap: 15px;
    cursor: pointer;
    transition: box-shadow 0.2s ease-in-out;
}

#results-list .velo-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* ==== DEBUT MODIFICATION : Correction photo tronquée (PAGE D'ACCUEIL) ==== */
#results-list .velo-card-img {
    width: 120px;
    flex-shrink: 0; /* Empêche l'image de rétrécir */
    /* height: 100px; et object-fit: cover; sont supprimés pour garder le ratio */
    border-radius: 4px;
}
/* ==== FIN MODIFICATION ==== */

#results-list .velo-card-details {
    flex-grow: 1;
}

#results-list .velo-card-details h4 {
    margin: 0 0 10px 0;
}

#results-list .velo-card-details p {
    margin: 4px 0;
    font-size: 0.9rem;
}

#results-list .velo-card-prix {
    margin-left: auto;
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-color);
    text-align: right;
}

/* ==== STYLES POUR LA PAGINATION ==== */
.pagination {
    display: flex;
    justify-content: center;
    padding-left: 0;
    list-style: none;
    margin-top: 2rem;
}
.page-item .page-link {
    position: relative;
    display: block;
    padding: 0.5rem 0.75rem;
    margin-left: -1px;
    line-height: 1.25;
    color: var(--primary-color);
    background-color: #fff;
    border: 1px solid var(--border-color);
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}
.page-item:first-child .page-link {
    border-top-left-radius: 0.25rem;
    border-bottom-left-radius: 0.25rem;
}
.page-item:last-child .page-link {
    border-top-right-radius: 0.25rem;
    border-bottom-right-radius: 0.25rem;
}
.page-item.active .page-link {
    z-index: 1;
    color: #fff;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}
.page-item.disabled .page-link {
    color: #6c757d;
    pointer-events: none;
    cursor: auto;
    background-color: #fff;
    border-color: var(--border-color);
}
.page-link:hover {
    color: #fff;
    background-color: #64a91c;
    border-color: #5a9a1a;
}



/* ============================================= */
/* ==== AMÉLIORATIONS VISUELLES ET ANIMATIONS ==== */
/* ============================================= */

/* --- 1. Effet de fondu à l'ouverture des pages --- */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body {
    /* On applique l'animation à toutes les pages */
    animation: fadeIn 0.5s ease-in-out;
}


/* --- 2. Effet de survol pour toutes les cartes cliquables --- */

/* On prépare les cartes pour une transition douce */
#results-list .velo-card, .reservation-card { /* Ciblage plus précis */
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

/* Au survol, la carte se soulève et son ombre s'agrandit */
#results-list .velo-card:hover, .reservation-card:hover {
    transform: translateY(-5px); /* Fait "monter" la carte de 5 pixels */
    box-shadow: 0 8px 20px rgba(0,0,0,0.12); /* Ombre plus prononcée */
}

/* ================================== */
/* ==== STYLE DU SPINNER DE CHARGEMENT ==== */
/* ================================== */

.spinner-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
}

.spinner {
    border: 6px solid rgba(0, 0, 0, 0.1);
    border-left-color: var(--primary-color); /* Notre vert FredLooX */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Style pour les messages d'erreur générés par JavaScript dans les formulaires */
.js-form-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 6px;
    font-weight: 700;
    border: 1px solid transparent;
}

.js-form-message.error {
    background-color: #f8d7da; /* Rouge pâle */
    color: #721c24; /* Texte rouge foncé */
    border-color: #f5c6cb;
}

.js-form-message.success {
    background-color: #d4edda; /* Vert pâle */
    color: #155724; /* Texte vert foncé */
    border-color: #c3e6cb;
}

/* CSS pour les recommandations sur la page vue_velo */
.recommendations-container { margin-top: 40px; padding-top: 20px; border-top: 1px solid #eee; }
.velos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.velo-card-reco { border: 1px solid #ddd; border-radius: 8px; overflow: hidden; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; }
.velo-card-reco:hover { transform: translateY(-5px); box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.velo-card-reco-img { width: 100%; height: 150px; object-fit: contain; }
.velo-card-reco-body { padding: 15px; }
.velo-card-reco-body h5 { margin: 0 0 5px 0; font-size: 1rem; }
.velo-card-reco-body p { margin: 0 0 10px 0; font-size: 0.9rem; color: #666; }
.velo-card-reco-body .prix { font-weight: bold; color: var(--primary-color); }

/* ================================== */
/* ==== AJUSTEMENTS POUR FLATPCIKR ==== */
/* ================================== */

/* Correction pour la largeur du calendrier en ligne sur la page vue_velo.php */
#calendrier-affichage-dispo .flatpickr-calendar {
    /* Cette astuce force le calendrier à ne pas s'étirer sur toute la largeur 
       et à se centrer horizontalement dans son conteneur. */
    display: table !important;
    margin: 0 auto;
}

/* Style pour mettre en évidence les jours disponibles (fond vert et cercle) */
.flatpickr-day.jour-disponible {
    background: #e9f9da !important;    /* Fond vert pâle */
    border-radius: 50% !important;     /* Rend la forme parfaitement circulaire */
    border-color: transparent !important; /* On annule la bordure carrée d'origine */
    outline: 1px solid #dc3545;       /* Dessine le "cercle" rouge autour */
    outline-offset: -1px;              /* Place le cercle juste à l'intérieur pour un meilleur rendu */
    font-weight: bold;
}

/* Nouveau style pour les jours disponibles dans les calendriers de réservation (cercle bleu) */
.flatpickr-day.jour-reservable {
    background: #e9f9da !important;    /* On garde le même fond vert pâle */
    border-radius: 50% !important;     /* Forme circulaire */
    border-color: transparent !important;
    outline: 1px solid #007bff;       /* NOUVEAU : Un "cercle" bleu */
    outline-offset: -1px;
    font-weight: bold;
}

/* Style pour les jours déjà réservés (barré avec un cercle bleu) */
#calendrier-affichage-dispo .flatpickr-day.jour-reserve {
    background: #f0f0f0 !important; /* Fond gris clair */
    border-radius: 50% !important;
    border: 2px solid #eeff00;  /* Cercle jaune */
    text-decoration: line-through; /* On barre la date */
    color: #999 !important; /* On grise le texte */
}

/* ==== STYLES CORRIGÉS POUR LES CARTES DE RÉSERVATION (mes_locations.php) ==== */
.container-mes-locations .reservations-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.reservation-card {
    display: flex;
    gap: 20px;
    padding: 20px;
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    align-items: flex-start; /* Aligne les éléments (image, contenu) en haut */
}

.reservation-card-img {
    flex: 0 0 200px; /* On garde une largeur fixe de 200px sur grand écran */
    align-self: center; /* Centre verticalement l'image par rapport au texte si celui-ci est plus grand */
}

.reservation-card-img img {
    width: 100%;
    border-radius: 6px;
}

.reservation-card-content {
    flex: 1; /* Prend tout le reste de la place disponible */
    display: flex;
    flex-direction: column; /* Les détails et les actions s'empilent verticalement */
}

.reservation-card-details {
    flex-grow: 1; /* Le bloc de détails prend l'espace vertical disponible */
}

.reservation-card-actions {
    flex-shrink: 0;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}


/* ==== STYLES POUR LES BADGES D'AVIS IA ==== */
.ai-summary-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
    margin-top: 5px;
}

.ai-summary-container span {
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.ai-tag-positif {
    background-color: #e9f9da;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.ai-tag-negatif {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}



/* Styles pour les boutons d'affichage des QR Codes */
.action-btn.btn-qrcode-checkin {
    background-color: #28a745; /* Vert pour démarrer la location */
    color: white;
}
.action-btn.btn-qrcode-checkout {
    background-color: #ffc107; /* Jaune/Orange pour terminer */
    color: #212529;
}

/* ---- AJOUT POUR RENDRE LE STATUT "ACTIVE" VISIBLE ---- */

/* Statuts verts (Actif ou confirmé) */
.statut-active,
.statut-confirmee_par_loueur { 
    background-color: #28a745; 
}

/* ---- CORRECTION POUR LES COULEURS DE PRIX ---- */

/* On rend les sélecteurs plus spécifiques pour qu'ils s'appliquent correctement */
#results-list .velo-card-prix.prix-jour,
.velo-card-reco .prix.prix-jour,
.velo-prix.prix-jour,
.velo-card-details .prix-jour {
    color: var(--primary-color); /* Vert */
}

#results-list .velo-card-prix.prix-heure,
.velo-card-reco .prix.prix-heure,
.velo-prix.prix-heure,
.velo-card-details .prix-heure {
    color: #007bff; /* Bleu */
}

.booking-zone {
    max-width: 800px; /* Vous pouvez ajuster cette valeur */
    margin-left: auto;
    margin-right: auto;
}

/* ============================================= */
/* ==== STYLES POUR LE POPUP DE LA CARTE (AJOUT) ==== */
/* ============================================= */

.popup-velo {
    font-family: var(--font-body);
    text-align: center;
}
.popup-velo h6 {
    font-family: var(--font-titles);
    font-size: 1.1rem; /* Police du titre agrandie */
    margin: 5px 0 10px 0;
    color: var(--text-color);
}
.popup-velo p {
    font-size: 1rem; /* Police du prix agrandie */
    margin-bottom: 12px;
}
.popup-velo a {
    display: inline-block;
    padding: 6px 12px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    background-color: var(--primary-color);
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.2s;
}
.popup-velo a:hover {
    background-color: #64a91c;
    text-decoration: none;
}

/* ==== AJOUT : STYLES POUR LES FENÊTRES MODALES GÉNÉRIQUES ==== */
.modal { 
    display: none; 
    position: fixed; 
    z-index: 1001; 
    left: 0; 
    top: 0; 
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.6); 
}
.modal-content { 
    background-color: #fefefe; 
    margin: 10% auto; 
    padding: 25px 30px; 
    border: 1px solid #888; 
    width: 90%; 
    max-width: 650px; 
    border-radius: 8px; 
    position: relative; 
    animation: fadeIn 0.3s; 
}
.close-button { 
    color: #aaa; 
    float: right; 
    font-size: 28px; 
    font-weight: bold; 
    cursor: pointer; 
    line-height: 1; 
}
.modal-content h3 { 
    margin-top: 0; 
}
.modal-content ol { 
    padding-left: 20px; 
    margin-top: 15px; 
}
.modal-content li { 
    margin-bottom: 10px; 
    line-height: 1.6; 
}

/* ==== AJOUT : STYLES POUR PAGES DE COMPTE ET ACTIONS ==== */
.container-compte { max-width: 800px; }
.compte-section { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--border-color); }
.compte-section h3 { margin-top: 0; margin-bottom: 20px; color: var(--text-light-color); font-size: 1.2rem; }

.actions-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 15px; }
.actions-grid a {
    display: block; padding: 15px 20px; border-radius: 6px; text-align: center; text-decoration: none;
    color: white; font-weight: 700; font-family: var(--font-titles);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.actions-grid a:hover {
    transform: translateY(-3px); box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    text-decoration: none; color: white;
}

/* Couleurs utilitaires pour les boutons dans les grilles d'actions */
.btn-green { background-color: var(--primary-color); }
.btn-green:hover { background-color: #64a91c; }
.btn-blue { background-color: #007bff; }
.btn-blue:hover { background-color: #0069d9; }
.btn-grey { background-color: #6c757d; }
.btn-grey:hover { background-color: #5a6268; }
.btn-yellow { background-color: #ffc107; color: #212529 !important; }
.btn-yellow:hover { background-color: #e0a800; }
.btn-teal { background-color: #17a2b8; }
.btn-teal:hover { background-color: #138496; }

/* Styles pour la section Stripe */
.stripe-section p { margin-bottom: 15px; line-height: 1.6; }
.stripe-onboarding-success { font-weight: bold; color: #155724; background-color: #d4edda; padding: 15px; border-radius: 5px; }

/* ==== AJOUT : NOTE SUR LA POLITIQUE DE LOCATION ==== */
.rental-policy-note {
    background-color: var(--light-grey-bg);
    border-left: 4px solid var(--primary-color);
    padding: 15px;
    margin: 20px 0;
    font-size: 0.85rem;
    color: var(--text-light-color);
    border-radius: 0 4px 4px 0;
}

.rental-policy-note p {
    margin: 0;
}

/* ==== AJOUT : MISE EN FORME LISTE POLITIQUE DE LOCATION ==== */
.rental-policy-note ul {
    list-style-position: inside;
    padding-left: 5px;
    margin-top: 10px;
}
.rental-policy-note li {
    margin-bottom: 5px;
}

/* ==== AJOUT : STYLE POUR LE RÉSUMÉ DE RÉSERVATION ==== */
.booking-summary {
    background-color: #f8f9fa;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 15px;
    margin-top: 15px;
}
.booking-summary p {
    margin: 0 0 8px 0;
    font-size: 0.95rem;
    line-height: 1.5;
}
.booking-summary p:last-child {
    margin-bottom: 0;
}
.booking-summary .total-price {
    font-size: 1.2rem;
    font-weight: bold;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}

/* ==== DEBUT MODIFICATION : Ajout du style pour la note sur la règle journalière ==== */
.booking-summary .booking-day-rule-note {
    font-size: 0.8rem;
    font-style: italic;
    color: var(--text-light-color);
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dotted var(--border-color);
}
/* ==== FIN MODIFICATION ==== */

/* ==== AJOUT : AMÉLIORATION VISUELLE SÉLECTION DE PLAGE FLATPCIKR ==== */
.flatpickr-day.inRange,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #fff !important;
}
.flatpickr-day.inRange {
    border-radius: 0 !important;
    /* Crée l'effet de continuité entre les jours */
    box-shadow: -5px 0 0 var(--primary-color), 5px 0 0 var(--primary-color);
}
.flatpickr-day.startRange {
    border-radius: 50px 0 0 50px !important;
}
.flatpickr-day.endRange {
    border-radius: 0 50px 50px 0 !important;
}
/* Gère le cas où la date de début et de fin sont identiques */
.flatpickr-day.startRange.endRange {
    border-radius: 50px !important;
}

/* === AJOUT : MISE EN PAGE POUR LE CALENDRIER ET SON RÉSUMÉ === */
.calendrier-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: flex-start;
}
/* Le calendrier prendra l'espace disponible */
.calendrier-container > .flatpickr-calendar {
    flex: 1;
    min-width: 300px; /* Largeur minimale avant de passer à la ligne */
}
#disponibilites-summary {
    flex-basis: 220px; /* Largeur fixe pour la colonne de résumé */
    padding-top: 10px;
}
#disponibilites-summary h5 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1rem;
    color: var(--text-color);
}
#disponibilites-summary ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9em;
    color: var(--text-light-color);
}
#disponibilites-summary li {
    margin-bottom: 8px;
}

/* === AJOUT : MISE EN PAGE POUR LE CALENDRIER ET SON RÉSUMÉ === */
.calendrier-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: flex-start;
}
/* Le calendrier prendra l'espace disponible */
.calendrier-container > .flatpickr-calendar {
    flex: 1;
    min-width: 300px; /* Largeur minimale avant de passer à la ligne */
}
#disponibilites-summary {
    flex-basis: 220px; /* Largeur fixe pour la colonne de résumé */
    padding-top: 10px;
}
#disponibilites-summary h5 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1rem;
    color: var(--text-color);
}
#disponibilites-summary ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9em;
    color: var(--text-light-color);
}
#disponibilites-summary li {
    margin-bottom: 8px;
}

/* ============================================= */
/* ==== DEBUT MODIFICATION : STYLES PAGE À PROPOS ==== */
/* ============================================= */

.about-container {
    background-color: var(--container-bg-color);
    padding: 30px 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr; /* Une seule colonne sur mobile */
    gap: 30px;
    align-items: center;
}

@media (min-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr 2fr; /* Deux colonnes sur écrans plus larges */
    }
}

.about-image img {
    width: 100%;
    border-radius: 50%; /* Rend l'image ronde */
    aspect-ratio: 1 / 1; /* Force un format carré pour un cercle parfait */
    object-fit: cover; /* S'assure que l'image remplit le cercle sans se déformer */
    border: 5px solid var(--container-bg-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.about-content h2 {
    margin-top: 0;
    font-size: 2rem;
}

.about-content .short-hr {
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
    border: none;
    margin: 0 0 20px 0;
}

.about-content .intro-text {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-light-color);
    margin-bottom: 1.5em;
}

.about-content .highlight-quote {
    font-family: var(--font-titles);
    font-size: 1.3rem;
    text-align: center;
    margin: 30px 0;
    padding: 20px;
    border-left: 4px solid var(--primary-color);
    background-color: var(--light-grey-bg);
    border-radius: 0 8px 8px 0;
    color: var(--primary-color);
}

.about-content .signature {
    text-align: right;
    margin-top: 30px;
    font-family: var(--font-titles);
    font-weight: 700;
    font-size: 1.2rem;
}

/* ============================================= */
/* ==== DEBUT MODIFICATION : STYLES PAGE À PROPOS ==== */
/* ============================================= */

.about-container {
    background-color: var(--container-bg-color);
    padding: 30px 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr; /* Une seule colonne sur mobile */
    gap: 30px;
    align-items: center;
}

@media (min-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr 2fr; /* Deux colonnes sur écrans plus larges */
    }
}

.about-image img {
    width: 100%;
    border-radius: 50%; /* Rend l'image ronde */
    aspect-ratio: 1 / 1; /* Force un format carré pour un cercle parfait */
    object-fit: cover; /* S'assure que l'image remplit le cercle sans se déformer */
    border: 5px solid var(--container-bg-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.about-content h2 {
    margin-top: 0;
    font-size: 2rem;
}

.about-content .short-hr {
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
    border: none;
    margin: 0 0 20px 0;
}

.about-content .intro-text {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-light-color);
    margin-bottom: 1.5em;
}

.about-content .highlight-quote {
    font-family: var(--font-titles);
    font-size: 1.3rem;
    text-align: center;
    margin: 30px 0;
    padding: 20px;
    border-left: 4px solid var(--primary-color);
    background-color: var(--light-grey-bg);
    border-radius: 0 8px 8px 0;
    color: var(--primary-color);
}

.about-content .signature {
    text-align: right;
    margin-top: 30px;
    font-family: var(--font-titles);
    font-weight: 700;
    font-size: 1.2rem;
}
/* ============================================= */
/* ==== FIN MODIFICATION ==== */
/* ============================================= */

/* ======================================================= */
/* ==== DEBUT MODIFICATION : STYLES PAGE MODE D'EMPLOI ==== */
/* ======================================================= */

.how-it-works-header {
    text-align: center;
    padding: 20px;
    background-color: var(--container-bg-color);
    border-radius: 8px;
    margin-bottom: 40px;
}
.how-it-works-header h2 {
    margin-top: 0;
}

.section-container {
    margin-bottom: 50px;
}
.section-container h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 10px;
}
.section-container > p {
    text-align: center;
    color: var(--text-light-color);
    max-width: 600px;
    margin: 0 auto 30px auto;
}

.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 992px) {
    .steps-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.step-card {
    background-color: var(--container-bg-color);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.step-number {
    font-family: var(--font-titles);
    font-size: 2rem;
    font-weight: 800;
    color: white;
    background-color: var(--primary-color);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -30px auto 15px auto;
    border: 4px solid var(--background-color);
}

.step-content {
    padding: 0 20px 20px 20px;
    text-align: center;
}
.step-content h4 {
    margin-top: 0;
    margin-bottom: 10px;
}
.step-content p {
    font-size: 0.95rem;
    color: var(--text-light-color);
    margin-bottom: 20px;
}
.step-image {
    width: 100%;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    margin-top: auto; /* Aligne l'image en bas de la carte */
    /* ==== DEBUT MODIFICATION : Ajout du curseur et de la transition ==== */
    cursor: pointer;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    /* ==== FIN MODIFICATION ==== */
}
/* ======================================================= */
/* ==== DEBUT MODIFICATION : STYLES POUR LA LIGHTBOX ==== */
/* ======================================================= */

.lightbox {
    display: none; /* Caché par défaut */
    position: fixed; /* Reste en place même si on scroll */
    z-index: 1002; /* Au-dessus de tout le reste */
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Permet de scroller si l'image est très grande */
    background-color: rgba(0, 0, 0, 0.9); /* Fond noir semi-transparent */
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 1200px;
    animation-name: lightboxZoom;
    animation-duration: 0.4s;
}

@keyframes lightboxZoom {
    from {transform:scale(0)}
    to {transform:scale(1)}
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: #bbb;
    text-decoration: none;
}

/* ==== DEBUT AJOUT : STYLES POUR INFO-BULLE (TOOLTIP) ==== */
.tooltip-container {
    position: relative;
    display: inline-flex; /* Aligne l'icône avec le texte */
    align-items: center;
    margin-left: 8px; /* Espace entre le texte et l'icône */
}

.tooltip-icon {
    cursor: help; /* Change le curseur pour indiquer qu'il y a une aide */
    font-weight: bold;
    color: var(--text-light-color);
    border: 1px solid var(--text-light-color);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    line-height: 1;
}

.tooltip-text {
    visibility: hidden; /* Caché par défaut */
    width: 300px; /* Largeur de l'infobulle */
    background-color: var(--text-color);
    color: #fff;
    text-align: left;
    border-radius: 6px;
    padding: 10px 15px;
    position: absolute;
    z-index: 1;
    bottom: 125%; /* Positionné au-dessus de l'icône */
    left: 50%;
    margin-left: -150px; /* Centre l'infobulle */
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.85rem;
    font-weight: normal;
    line-height: 1.5;
}

/* Affiche l'infobulle au survol du conteneur */
.tooltip-container:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}


/* ==== AMÉLIORATIONS VISUELLES DES ACTIONS (mes_locations.php) ==== */

/* Message d'attente pour la caution (bleu informatif) */
.caution-pending-message {
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: 500;
    font-size: 0.9em;
    background-color: #d1ecf1; /* Fond bleu clair */
    color: #0c5460; /* Texte bleu foncé */
    border: 1px solid #bee5eb;
}

/* Bouton "Présenter QR Code Check-out" (orange/jaune) */
.btn-checkout {
    display: inline-block;
    padding: 10px 15px;
    border-radius: 5px;
    background-color: #ffc107; /* Fond jaune */
    color: #212529; /* Texte noir */
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.2s;
}
.btn-checkout:hover {
    background-color: #e0a800; /* Jaune plus foncé */
    color: #212529;
    text-decoration: none;
}

/* Bouton "Voir la facture" (gris neutre) */
.btn-invoice {
    display: inline-block;
    padding: 10px 15px;
    border-radius: 5px;
    background-color: #6c757d; /* Fond gris */
    color: white;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.2s;
}
.btn-invoice:hover {
    background-color: #5a6268; /* Gris plus foncé */
    color: white;
    text-decoration: none;
}

/* Bouton "Contacter le loueur" (style secondaire) */
.btn-contact {
    display: inline-block;
    padding: 10px 15px;
    border-radius: 5px;
    background-color: transparent;
    color: var(--primary-color); /* Vert FredLooX */
    font-weight: bold;
    text-decoration: none;
    border: 1px solid var(--primary-color);
    transition: background-color 0.2s, color 0.2s;
}
.btn-contact:hover {
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
}

/* Style pour le bouton Favori */
.btn-favori {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #E0E0E0; /* Couleur gris pâle par défaut */
    transition: color 0.2s ease-in-out, transform 0.2s ease-in-out;
    padding: 0;
    line-height: 1;
}

.btn-favori:hover {
    transform: scale(1.1);
}

/* Cette classe est ajoutée/retirée par le JavaScript */
.btn-favori.is-favori {
    color: #e74c3c; /* Couleur rouge vif quand le vélo est en favori */
}

/* Positionnement du bouton sur les cartes */
.velo-card, .velo-card-reco {
    position: relative; /* Nécessaire pour positionner le bouton à l'intérieur */
}

/* Section des favoris sur le tableau de bord */
.favoris-container {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}
.favoris-container h3 {
    margin-top: 0;
}
.favoris-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}
/* On réutilise le style des cartes de recommandation pour les favoris */
.favoris-grid .velo-card-reco {
    text-decoration: none;
}

        .faq-container {
            max-width: 800px;
            margin: 30px auto;
            padding: 20px;
        }
        .faq-section {
            margin-bottom: 40px;
        }
        .faq-section h2 {
            font-size: 2rem;
            color: var(--primary-color);
            text-align: center;
            margin-bottom: 30px;
        }
        .faq-item {
            margin-bottom: 20px;
            border-bottom: 1px solid var(--border-color);
            padding-bottom: 20px;
        }
        .faq-question {
            font-weight: bold;
            font-size: 1.2rem;
            cursor: pointer;
            position: relative;
            padding-right: 30px; /* Espace pour la flèche */
        }
        .faq-question::after {
            content: '▼';
            position: absolute;
            right: 5px;
            top: 50%;
            transform: translateY(-50%);
            transition: transform 0.2s ease-in-out;
            font-size: 0.8em;
        }
        .faq-question.active::after {
            transform: translateY(-50%) rotate(180deg);
        }
        .faq-answer {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease-in-out, padding 0.3s ease-in-out;
            line-height: 1.7;
            color: var(--text-light-color);
        }
        .faq-answer p {
            padding-top: 15px;
        }
        
        .legal-container { max-width: 800px; margin: 30px auto; padding: 20px; line-height: 1.7; }
        .legal-container h2 { font-size: 2rem; color: var(--primary-color); margin-bottom: 20px; }
        .legal-container h3 { font-size: 1.5rem; margin-top: 30px; margin-bottom: 15px; border-bottom: 2px solid var(--border-color); padding-bottom: 10px; }

        .legal-container { max-width: 800px; margin: 30px auto; padding: 20px; line-height: 1.7; }
        .legal-container h2 { font-size: 2rem; color: var(--primary-color); margin-bottom: 20px; }
        .legal-container h3 { font-size: 1.5rem; margin-top: 30px; margin-bottom: 15px; }
        .legal-container ul { padding-left: 20px; margin-bottom: 1em; }

    .logo-aligned-container {
        display: flex;
        align-items: center; /* Aligne verticalement le nom et le descriptif */
        gap: 12px; /* Espace entre le nom, la barre et le descriptif */
    }
    .logo-aligned-name {
        font-family: 'Nunito', sans-serif;
        font-weight: 800;
        font-size: 1.9rem;
        line-height: 1;
    }
    .logo-aligned-separator {
        font-size: 1.8rem;
        font-weight: 100;
        color: #ddd; /* Barre verticale gris clair */
    }
    .logo-aligned-tagline {
        font-size: 0.8rem;
        font-weight: normal;
        color: #555;
        padding-top: 2px; /* Léger ajustement vertical */
    }

    /* ==== AJOUT : Espace pour la pagination (page d'accueil) ==== */
#pagination-container {
    margin-top: 30px; /* Ajoute un espace au-dessus de la pagination */
    margin-bottom: 30px; /* Ajoute un espace en dessous (le "saut de ligne" demandé) */
}


/* ======================================================= */
/* ==== DEBUT : STYLE POUR LE MENU DEROULANT DES LANGUES ==== */
/* ======================================================= */

.lang-dropdown-container {
    margin-left: 15px; /* Espace à gauche du globe */
}

.lang-dropdown {
    position: relative;
    display: inline-block;
}

.lang-dropdown-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease-in-out;
}

.lang-dropdown-toggle svg {
    width: 24px;
    height: 24px;
    stroke: var(--text-light-color); /* Couleur du globe */
    transition: stroke 0.2s ease-in-out;
}

.lang-dropdown-toggle:hover {
    background-color: var(--light-grey-bg);
}
.lang-dropdown-toggle:hover svg {
    stroke: var(--primary-color); /* Le globe devient vert au survol */
}

.lang-dropdown-menu {
    display: none; /* Caché par défaut */
    position: absolute;
    top: calc(100% + 10px); /* Positionné sous le globe avec un petit espace */
    right: 0;
    background-color: var(--container-bg-color);
    min-width: 120px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 8px;
    z-index: 1000;
    border: 1px solid var(--border-color);
    overflow: hidden; /* Pour que les coins arrondis s'appliquent aux liens */
    
    /* Animation d'apparition */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.lang-dropdown-menu.open {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown-menu a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: var(--text-light-color);
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
}

.lang-dropdown-menu a:hover {
    background-color: var(--light-grey-bg);
    color: var(--text-color);
    text-decoration: none;
}

.lang-dropdown-menu a.active {
    background-color: var(--statut-highlight-bg);
    color: var(--primary-color);
    font-weight: bold;
}

/* Style pour le badge de statut "Confirmée par le loueur" */
.status-badge.status-confirmee_par_loueur {
    background-color: #28a745; /* Vert succès */
    color: #fff;
    border: 1px solid #28a745;
}

/* ============================================= */
/* ==== CORRECTIF FINAL PASTILLE NOTIFICATION ==== */
/* ============================================= */
.notification-badge {
    display: inline-block !important; /* Force l'affichage */
    vertical-align: top; /* Aligne la pastille en haut du texte */
    background-color: #dc3545 !important; /* Fond rouge (force la couleur) */
    color: white !important;
    font-size: 0.75em;
    font-weight: bold;
    padding: 2px 7px; /* Léger ajustement pour un look plus rond */
    border-radius: 12px; /* Pour une forme bien ronde */
    margin-left: 5px; /* Espace entre le mot "Notifications" et la pastille */
    
    /* On retire l'ancien positionnement pour un meilleur alignement */
    position: static; 
    top: auto;
    left: auto;
}

/* -- Styles pour les messages de session -- */

/* Conteneur général des messages */
.message-container {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    opacity: 0; /* Commence invisible */
    transform: translateY(-20px); /* Commence légèrement au-dessus */
    animation: fadeInSlideDown 0.5s ease-out forwards; /* Animation d'apparition */
}

/* Message de succès (vert) */
.message-success {
    background-color: #d4edda; /* Fond vert très clair */
    border: 1px solid #c3e6cb; /* Bordure verte claire */
    color: #155724; /* Texte vert foncé */
}

/* Message d'erreur (rouge) */
.message-error {
    background-color: #f8d7da; /* Fond rouge très clair */
    border: 1px solid #f5c6cb; /* Bordure rouge claire */
    color: #721c24; /* Texte rouge foncé */
}

/* Message d'information (bleu) */
.message-info {
    background-color: #d1ecf1; /* Fond bleu très clair */
    border: 1px solid #bee5eb; /* Bordure bleue claire */
    color: #0c5460; /* Texte bleu foncé */
}

/* Message d'avertissement (jaune/orange) */
.message-warning {
    background-color: #fff3cd; /* Fond jaune très clair */
    border: 1px solid #ffeeba; /* Bordure jaune claire */
    color: #856404; /* Texte jaune foncé */
}

/* Texte à l'intérieur des messages */
.message-container p {
    margin: 0; /* Supprime la marge par défaut des paragraphes */
    line-height: 1.5;
}

/* Animation pour l'apparition des messages */
@keyframes fadeInSlideDown {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.calendrier-container { display: flex; align-items: flex-start; gap: 25px; flex-wrap: wrap; }
        #calendrier-reservation-integre { flex: 0 0 auto; }
        #disponibilites-summary { flex: 1; min-width: 250px; }
        
        /* === STYLES POUR LES NOUVELLES SECTIONS === */
        .velo-avis-container, .velo-similaires-container {
            border-top: 1px solid #eee;
            padding-top: 30px;
            margin-top: 40px;
        }
        .avis-stats {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 1.2rem;
            margin-bottom: 25px;
        }
        .star-rating { color: #f39c12; }
        .liste-avis .avis-item {
            border-bottom: 1px solid #f0f0f0;
            padding-bottom: 20px;
            margin-bottom: 20px;
        }
        .liste-avis .avis-item:last-child {
            border-bottom: none;
            margin-bottom: 0;
        }
        .avis-header {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 10px;
        }
        .avis-avatar {
            width: 45px;
            height: 45px;
            border-radius: 50%;
            background-color: #76c721;
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            font-size: 1.2rem;
        }
        .avis-meta { display: flex; flex-direction: column; }
        .avis-meta strong { font-size: 1.1rem; }
        .avis-meta span { font-size: 0.9rem; color: #777; }
        .avis-body q {
            display: block;
            margin: 10px 0;
            font-style: italic;
            color: #333;
        }
        .avis-reponse {
            background: #f8f9fa;
            border-left: 3px solid #76c721;
            padding: 15px;
            margin-top: 15px;
            margin-left: 20px;
            border-radius: 0 4px 4px 0;
        }
        .avis-reponse strong {
            display: block;
            margin-bottom: 5px;
            color: #333;
        }
        
        .grid-velos-similaires {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 20px;
        }
        .grid-velos-similaires .velo-card {
            border: 1px solid #ddd;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 2px 5px rgba(0,0,0,0.05);
            transition: box-shadow 0.3s ease;
        }
        .velo-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
        .velo-card-img {
            width: 100%;
            height: 180px;
            object-fit: contain;
            background-color: #f0f0f0;
        }
        .velo-card-body { padding: 15px; }
        .velo-card-body h5 { margin: 0 0 10px 0; font-size: 1.1rem; }
        .velo-card-prix {
            font-weight: bold;
            color: #76c721;
            font-size: 1.1rem;
        }

        .notification-item {
    display: flex; /* Active l'alignement horizontal */
    justify-content: space-between; /* Pousse les éléments aux extrémités */
    align-items: center; /* Centre les éléments verticalement */
    gap: 20px; /* Ajoute un espace entre le texte et les boutons */
}

.notification-content {
    flex-grow: 1; /* Permet au texte de prendre toute la place disponible */
}

.notification-actions {
    flex-shrink: 0; /* Empêche les boutons de se réduire en taille */
    display: flex;
    gap: 10px; /* Espace entre les boutons */
    align-items: center;
}

/* ============================================= */
/* ==   Styles pour la page de notifications  == */
/* ============================================= */

/* Style de base pour chaque notification */
.notification-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    background-color: #fff;
    border: 1px solid var(--border-color);
    /* La barre verticale par défaut (grise) */
    border-left: 5px solid #e0e0e0; 
}

/* Style spécifique pour les notifications non lues */
.notification-item.non-lu {
    background-color: #f7fef2; /* Fond légèrement vert */
    /* La barre verticale verte pour attirer l'attention */
    border-left-color: var(--primary-color); 
}

.notification-content {
    flex-grow: 1;
}

.notification-content p {
    margin: 0 0 5px 0;
}

.notification-date {
    color: #777;
    font-size: 0.85em;
}

.notification-actions {
    flex-shrink: 0;
    display: flex;
    gap: 10px;
    align-items: center;
}

.mark-as-read {
    font-size: 0.85em;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.2s ease;
}

.mark-as-read:hover {
    text-decoration: underline;
    opacity: 0.8;
}

/* ============================================= */
/* ==   AMÉLIORATION PAGE MES LOCATIONS       == */
/* ============================================= */

/* Onglets de navigation */
.tabs {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 30px;
}
.tab-link {
    padding: 10px 20px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    font-weight: 500;
    color: var(--text-light-color);
}
.tab-link.active {
    border-bottom-color: var(--primary-color);
    color: var(--text-color);
}
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}

/* Refonte des cartes de location */
.location-card {
    display: flex;
    gap: 20px;
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    flex-wrap: wrap;
}

.location-card-img-container {
    flex-shrink: 0;
    width: 150px;
    height: 120px;
}
.location-card-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.location-card-main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.location-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}
.location-card-title h3 {
    margin: 0;
    font-size: 1.2rem;
}
.location-card-title h3 a {
    text-decoration: none;
    color: var(--text-color);
}
.location-card-title h3 a:hover {
    color: var(--primary-color);
}
.location-card-title p {
    margin: 5px 0 0;
    font-size: 0.9rem;
    color: var(--text-light-color);
}
.location-card-price {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-color);
    white-space: nowrap;
    margin-left: 15px;
}

.location-card-body .info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    font-size: 0.9rem;
    margin-bottom: 15px;
}
.info-grid > div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.location-card-footer {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.location-card-actions {
    display: flex;
    gap: 10px;
    margin-left: auto;
}

/* Statuts améliorés */
.status-bar {
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.8rem;
    text-align: center;
    white-space: nowrap;
}
.status-bar.status-demandee { background-color: #fff3cd; color: #856404; }
.status-bar.status-confirmee_par_loueur { background-color: #cce5ff; color: #004085; }
.status-bar.status-payee { background-color: #d1ecf1; color: #0c5460; }
.status-bar.status-en_cours { background-color: #d4edda; color: #155724; }
.status-bar.status-terminee { background-color: #e2e3e5; color: #383d41; }
.status-bar.status-annulee_par_locataire,
.status-bar.status-annulee_par_loueur,
.status-bar.status-expiree { background-color: #f8d7da; color: #721c24; }


/* ======================================================= */
/* ==   DESIGN DÉFINITIF PAGE MES LOCATIONS (FredLooX)    == */
/* ======================================================= */

/* KPIs (Indicateurs) en haut de page */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.kpi-card {
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}
.kpi-card .kpi-icon {
    font-size: 1.8rem;
    color: var(--primary-color);
    background-color: #f0f9e8;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.kpi-card .kpi-info .kpi-value {
    font-size: 1.5rem;
}

/* Onglets de navigation (En cours / Historique) */
.tabs {
    display: flex;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 30px;
}
.tab-link {
    padding: 10px 20px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    font-weight: 500;
    color: #6c757d;
}
.tab-link.active {
    border-bottom-color: var(--primary-color);
    color: var(--text-color);
}
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}

/* Design final des cartes de location */
.rental-card-pro {
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
    overflow: hidden;
}
.rental-card-pro-main {
    display: flex;
    gap: 25px;
    padding: 1.5rem;
}
.rental-card-pro-img {
    width: 150px;
    height: 150px;
    object-fit: contain; /* CORRECTION DÉFINITIVE : Affiche l'image entière */
    border-radius: 12px;
    flex-shrink: 0;
    background-color: #f8f9fa;
}
.rental-card-pro-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.rental-card-pro-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}
.rental-card-pro-header h3 {
    margin: 0;
    font-size: 1.3rem;
}
.rental-card-pro-header h3 a {
    color: var(--text-color);
    text-decoration: none;
}
.rental-card-pro-header h3 a:hover {
    color: var(--primary-color);
}
.rental-card-pro-header p {
    margin: 4px 0 0;
    font-size: 0.9rem;
    color: #6c757d;
}

.rental-card-pro-body {
    display: grid;
    /* On augmente légèrement la largeur min pour éviter que les colonnes ne se tassent trop */
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
    gap: 1.5rem;
    align-items: start; /* Aligne les éléments en haut pour éviter des décalages */
}
.rental-info-block h4 {
    margin: 0 0 8px;
    font-size: 0.8rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.rental-info-block p,
.rental-info-block .status-text {
    margin: 0;
    font-weight: 600;
    font-size: 0.95rem;
}
.rental-info-block .price-tag {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.text-warning {
    color: #ff8c00;
}
.guarantee-block {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap; /* Empêche le texte de passer à la ligne */
}
.sharelock-icon {
    height: 20px;
    width: auto;
}

.rental-location-section {
    background-color: #f8f9fa;
    padding: 1rem 1.5rem;
    border-top: 1px solid #e9ecef;
}
.rental-location-section h4 {
    margin: 0 0 10px;
}
.rental-map-container {
    height: 200px;
    border-radius: 8px;
    margin-top: 10px;
}
.rental-card-pro-footer {
    padding: 1rem 1.5rem;
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* ============================================= */
/* ==   STYLE POUR LES BANDEAUX DE MESSAGE    == */
/* ============================================= */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
}
.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}
.alert-error {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}
.alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

/* AJOUTS POUR LES STATUTS DE LITIGE (Version corrigée et complète) */
.status-badge.status-ouvert {
    background-color: var(--status-orange);
    color: #212529; /* Texte noir pour la lisibilité */
}
.status-badge.status-en-analyse {
    background-color: var(--status-cyan);
    color: #fff;
}
.status-badge.status-resolu-capture {
    background-color: var(--status-green);
    color: #fff;
}
.status-badge.status-resolu-refus {
    background-color: var(--status-grey);
    color: #fff;
}
.status-badge.status-resolu-assurance {
    background-color: #6f42c1; /* Violet pour l'assurance */
    color: #fff;
}

/* ============================================= */
/* ====   STYLES POUR LA RÉPONSE AUX AVIS      ==== */
/* ============================================= */

.form-reponse-avis {
    margin-top: 15px;
    border-top: 1px dashed #ccc;
    padding-top: 15px;
    text-align: left;
}

.form-reponse-avis p {
    font-weight: bold;
    margin-bottom: 5px;
}

.form-reponse-avis q {
    font-style: italic;
    color: #555;
    display: block;
    margin-bottom: 10px;
    padding-left: 10px;
    border-left: 3px solid #eee;
}

.reponse-deja-postee {
    margin-top: 15px;
    padding: 10px;
    background: #f4f4f4;
    border-radius: 4px;
    text-align: left;
    font-size: 0.9em;
}

.reponse-deja-postee p {
    margin: 0;
    font-weight: bold;
}

/* ============================================= */
/* ====   STYLE POUR LE BOUTON RETOUR          ==== */
/* ============================================= */

.back-link-container {
    max-width: 1200px; /* Doit correspondre à la largeur max du contenu (.page-container) */
    margin: 15px auto -10px auto; /* Marge pour le positionner correctement */
    padding: 0 15px;
    text-align: left; /* Aligne le bouton à gauche */
}

/* Style pour le panel admin, si besoin d'ajustements spécifiques */
.container-admin .back-link-container {
    max-width: none;
    margin: 0 0 15px 0;
    padding: 0;
}

.back-link {
    display: inline-block;
    padding: 6px 14px;
    background-color: #f8f9fa; /* Fond gris très clair */
    border: 1px solid #dee2e6; /* Bordure grise */
    border-radius: 20px; /* Forme de pilule */
    color: #495057; /* Texte gris foncé */
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

.back-link:hover {
    background-color: #e9ecef;
    border-color: #ced4da;
    color: #212529;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
}

/* ============================================= */
/* ==== BANDEAU D'ACTION PRIORITAIRE         ==== */
/* ============================================= */

.pending-action-banner {
    background-color: #fff3cd; /* Jaune d'alerte doux */
    color: #856404;
    padding: 15px 20px;
    position: sticky;
    top: 0;
    z-index: 1050;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    border-bottom: 1px solid #ffeeba;
}

.pending-action-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between; /* Texte à gauche, bouton à droite */
    align-items: center;
    gap: 20px;
    flex-wrap: wrap; /* Sécurité pour les écrans intermédiaires */
}

/* Le bloc de texte principal */
.pending-action-message {
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.4; /* Aère le texte pour le multi-lignes */
    flex: 1; /* Prend tout l'espace disponible */
}

/* === NOUVEAU : Style pour les détails (Dates & Prix) === */
.pending-action-message small {
    display: block; /* Force le passage à la ligne proprement */
    font-weight: 400; /* Texte normal, moins gras que le titre */
    font-size: 0.9em; /* Légèrement plus petit */
    margin-top: 4px;  /* Petit espace avec le titre */
    color: #533f03;   /* Légèrement plus foncé pour la lisibilité */
}

/* === NOUVEAU : Style pour le lien de contexte ("Voir dans...") === */
a.pending-context-link {
    color: inherit;
    text-decoration: underline;
    font-weight: bold;
    margin-right: 5px;
}
a.pending-context-link:hover {
    text-decoration: none;
    opacity: 0.8;
}

/* Conteneur du bouton */
.pending-action-button-container {
    flex-shrink: 0; /* Empêche le bouton de rétrécir */
}

/* Pour les petits écrans */
@media (max-width: 768px) {
    .pending-action-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    /* Sur mobile, on centre le texte des détails */
    .pending-action-message small {
        margin-top: 8px;
    }
    
    /* Le bouton prend toute la largeur sur mobile pour être facile à cliquer */
    .pending-action-banner .btn {
        width: 100%; 
    }
}

/* ============================================= */
/* ====   STYLE POUR RÉCAPITULATIF DE DATE     ==== */
/* ============================================= */

.booking-summary-text {
    background-color: #f8f9fa;
    border: 1px solid var(--border-color);
    padding: 15px;
    margin: 20px 0;
    border-radius: 6px;
    font-weight: 600;
    color: var(--text-color);
    text-align: center;
    min-height: 50px; /* Assure que le bloc est visible même vide */
}

/* AJOUT POUR LE FORMULAIRE DANS LE BANDEAU D'ACTION */
.pending-action-banner form {
    margin-bottom: 0;
}

/* ============================================= */
/* ==== MODULE D'INSTRUCTIONS (DÉPLIANT)     ==== */
/* ============================================= */

details.scanner-instructions-collapsible {
    max-width: 500px;
    margin: 30px auto;
    background-color: #f8f9fa;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

details.scanner-instructions-collapsible[open] {
    background-color: #fff;
}

details.scanner-instructions-collapsible summary {
    padding: 15px;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    list-style: none; /* Cache la flèche par défaut */
    display: flex;
    align-items: center;
    justify-content: space-between;
}

details.scanner-instructions-collapsible summary::-webkit-details-marker {
    display: none; /* Cache la flèche par défaut sur Chrome/Safari */
}

details.scanner-instructions-collapsible summary::after {
    content: '▼'; /* Flèche vers le bas */
    font-size: 0.8em;
    color: var(--text-light-color);
    transition: transform 0.2s ease-in-out;
}

details[open] > summary::after {
    transform: rotate(180deg); /* La flèche pointe vers le haut quand c'est ouvert */
}

.instructions-content {
    padding: 0 20px 20px 20px;
    border-top: 1px solid var(--border-color);
}

.instructions-content ol {
    list-style: none;
    padding: 15px 0 0 0;
    counter-reset: step-counter;
}

.instructions-content li {
    counter-increment: step-counter;
    display: flex;
    align-items: flex-start;
    font-size: 0.95rem;
    margin-bottom: 15px;
    line-height: 1.5;
}
.instructions-content li:last-child {
    margin-bottom: 0;
}

.instructions-content li::before {
    content: counter(step-counter);
    margin-right: 15px;
    background-color: var(--primary-color);
    color: white;
    font-weight: bold;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ============================================= */
/* ==== STYLES SPÉCIFIQUES PANNEAU ADMIN      ==== */
/* ============================================= */

.container-admin {
    max-width: 1200px;
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
}

.table-admin {
    width: 100%;
    border-collapse: collapse;
    margin-top: 25px;
    font-size: 0.9rem;
}

.table-admin th, .table-admin td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
    vertical-align: middle; /* Aligne le contenu verticalement */
}

.table-admin th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #495057;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.table-admin tbody tr:hover {
    background-color: #f8f9fa;
}

.table-admin .actions-cell {
    text-align: right;
    width: 150px; /* Donne une largeur fixe à la colonne d'actions */
}

/* Style pour les boutons plus petits dans les tableaux */
.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    border-radius: 0.2rem;
}

/* Style de la ligne de détails qui se déplie */
.details-row .details-cell {
    padding: 0;
    background-color: #f8f9fa;
    border-bottom: 2px solid var(--primary-color);
}

.litige-details-content {
    padding: 20px;
}
.litige-details-content h4 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.proof-photos-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}
.proof-photos-container img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 6px;
    border: 2px solid #ddd;
}

.litige-actions-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #dee2e6;
    text-align: right;
}

/* Style pour le montant réclamé dans le tableau des litiges */
.montant-reclame {
    color: #dc3545; /* Rouge */
    font-weight: bold;
}
/* Style pour le texte en rouge dans les en-têtes de tableau */
.table-admin th .text-danger {
    color: #dc3545; /* Rouge */

}

/* ==== AJOUT : STYLE POUR LE TOTAL À PAYER (MES LOCATIONS) ==== */
.total-a-payer {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
    font-size: 1.1rem;
    color: var(--text-color);
}
.total-a-payer strong {
    color: var(--text-light-color);
    font-size: 0.9rem;
}

/* ==== AJOUT : STYLE POUR LE RECAPITULATIF DE PRIX (HISTORIQUE) ==== */
.rental-price-breakdown {
    margin-top: 10px;
    font-size: 0.9rem;
}
.rental-price-breakdown p {
    display: flex;
    justify-content: space-between;
    margin: 5px 0;
    padding: 2px 0;
}
.rental-price-breakdown .refund-amount {
    color: var(--status-green); /* Vert pour un remboursement */
}
.rental-price-breakdown .final-cost {
    font-weight: bold;
    font-size: 1rem;
    border-top: 1px solid var(--border-color);
    padding-top: 8px;
    margin-top: 8px;
    color: var(--text-color);

/* ============================================= */
/* ==== STYLE LIEN CONTEXTE BANDEAU ACTION    ==== */
/* ============================================= */

.pending-action-content {
    /* S'assurer que c'est flex (normalement déjà le cas) */
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.pending-action-message {
    font-weight: 600;
    flex-grow: 1; /* Le message prend l'espace dispo */
}

.pending-action-button-container {
    flex-shrink: 0; /* Le bouton ne rétrécit pas */
}

.pending-context-link {
    /* C'est le nouveau lien */
    display: block; /* Se met au-dessus du message sur tous les écrans (plus simple) */
    font-size: 0.85em;
    font-weight: 700;
    color: var(--text-light-color); /* Couleur texte gris */
    text-decoration: underline;
    margin-bottom: 5px; /* Espace entre le lien et le message */
}
.pending-context-link:hover {
    color: var(--text-color); /* Plus foncé au survol */
    text-decoration: underline;
}

/* Responsive pour le bandeau d'action */
@media (max-width: 768px) {
    .pending-action-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    .pending-context-link {
        margin-right: 0;
        padding-right: 0;
        margin-bottom: 8px;
    }
}

/* ============================================= */
/* ==== CORRECTION ALIGNEMENT CHECKBOX INSCRIPTION ==== */
/* ============================================= */

.form-group-checkbox {
    display: flex;
    align-items: flex-start; /* Aligne en haut (mieux si le texte fait plusieurs lignes) */
    gap: 10px; /* Espace entre la case et le texte */
    margin-bottom: 15px;
}

.form-group-checkbox input[type="checkbox"] {
    width: 16px; /* Taille fixe */
    height: 16px; /* Taille fixe */
    margin-top: 3px; /* Léger décalage pour s'aligner avec la première ligne de texte */
    flex-shrink: 0; /* Empêche la case de rétrécir */
}

.form-group-checkbox label {
    font-size: 0.9em;
    font-weight: normal;
    line-height: 1.5;
    margin: 0; /* Annule les marges par défaut des labels */
}

/* ============================================= */
/* ==== STYLES POUR LE PARTENAIRE (Vélo an nou) ==== */
/* ============================================= */

.partner-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}
.partner-section h3 {
    text-align: center;
    color: var(--text-color);
    margin-bottom: 25px;
}
.partner-card {
    background-color: var(--container-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.partner-info {
    width: 100%;
}

.partner-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.partner-logo-inline {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
}

.partner-logo-inline img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
}

.partner-info h4 {
    margin-top: 0;
    margin-bottom: 0;
    font-size: 1.8rem;
    color: var(--primary-color);
}

.partner-info p, .partner-info li {
    font-size: 0.95rem;
    color: var(--text-light-color);
    margin-bottom: 10px;
}
.partner-info ul {
    padding-left: 20px;
    margin-top: -10px;
}



}

/* === Utilitaires de style (Type Bootstrap) === */

/* Alignement vertical au milieu pour les cellules de tableau */
.align-middle {
    vertical-align: middle !important;
}

/* Texte gris (discret) */
.text-muted {
    color: #6c757d !important;
    font-size: 0.9em;
}

/* Texte rouge (pour les montants ou alertes) */
.text-danger {
    color: #dc3545 !important;
}

/* Texte en gras */
.font-weight-bold {
    font-weight: 700 !important;
}

/* Style pour les badges (étiquettes colorées) */
.badge {
    display: inline-block;
    padding: 0.35em 0.65em;
    font-size: 0.75em;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25rem;
    color: #fff; /* Texte blanc par défaut sur les badges */
}
/* ============================================= */
/* ==== NOUVEAU DESIGN FORMULAIRE DE RECHERCHE == */
/* ============================================= */

.search-container {
    background-color: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    margin-bottom: 25px;
    border: 1px solid #f0f0f0;
}

.pro-search-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Lignes de la grille (2 colonnes sur desktop) */
.form-grid-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Champs pleine largeur */
.search-field.full-width {
    width: 100%;
}

/* Style des labels */
.search-field label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    color: var(--text-light-color);
    margin-bottom: 8px;
    display: block;
}

.search-field label i {
    color: var(--primary-color);
    margin-right: 5px;
}

/* Style des inputs et selects */
.search-field input,
.search-field select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    background-color: #f9f9f9;
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--text-color);
    font-family: var(--font-body);
    transition: all 0.2s ease;
    height: 48px; /* Hauteur fixe pour l'alignement */
}

.search-field input:focus,
.search-field select:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(118, 199, 33, 0.1);
}

/* Bouton Rechercher large */
.search-btn-large {
    width: 100%;
    padding: 14px;
    font-size: 1.1rem;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Responsive : Sur mobile, tout passe en 1 colonne */
@media (max-width: 768px) {
    .form-grid-row {
        grid-template-columns: 1fr; /* 1 seule colonne */
        gap: 15px;
    }
}

/* ============================================= */
/* ==== PIED DE PAGE (FOOTER) & CONFIANCE ==== */
/* ============================================= */

.main-footer {
    background-color: #fff;
    border-top: 4px solid var(--primary-color);
    padding: 40px 0 20px 0;
    margin-top: 50px;
    color: var(--text-color);
}

/* Section Badges de Confiance */
.footer-trust {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-bottom: 30px;
    flex-wrap: wrap; /* Pour le mobile */
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Nouveau style pour les logos images (Stripe & Sharelock) */
.trust-logo {
    /* La hauteur est gérée directement dans le HTML pour l'ajustement fin,
       mais on met une sécurité ici */
    max-height: 50px; 
    width: auto;
    display: block;
}

.trust-text {
    display: flex;
    flex-direction: column;
}

.trust-title {
    font-weight: 800;
    font-family: var(--font-titles);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-color);
}

.trust-desc {
    font-size: 0.85rem;
    color: var(--text-light-color);
}

/* Séparateur vertical entre les badges */
.trust-separator {
    width: 1px;
    height: 40px;
    background-color: #e0e0e0;
}

/* Ligne de séparation horizontale */
.footer-divider {
    border: 0;
    height: 1px;
    background: #e0e0e0;
    margin: 0 auto 30px auto;
    max-width: 100%;
}

/* Liens et Copyright */
.footer-links {
    text-align: center;
    font-size: 0.9rem;
}

.legal-menu {
    list-style: none;
    padding: 0;
    margin: 15px 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.legal-menu a {
    color: var(--text-light-color);
    text-decoration: none;
    font-weight: 600;
}

.legal-menu a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.version-text {
    color: #999;
    font-size: 0.8em;
}

.support-text a {
    font-weight: bold;
}

/* Responsive Mobile */
@media (max-width: 768px) {
    .footer-trust {
        flex-direction: column;
        gap: 20px;
        text-align: left;
    }
    
    .trust-item {
        width: 100%;
        justify-content: center;
    }

    .trust-separator {
        display: none;
    }

    .legal-menu {
        flex-direction: column;
        gap: 10px;
    }
}

/* CORRECTIF ASSURANCE TRONQUÉE */
.rental-info-block .guarantee-block {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: normal; /* Autorise le retour à la ligne si trop long */
    overflow: visible;   /* Empêche de couper le texte */
    flex-wrap: wrap;     /* Permet aux éléments de passer à la ligne sur petits écrans */
}

.rental-info-block {
    min-width: 180px; /* Donne un peu plus de largeur minimale aux colonnes d'info */
}

/* =========================================
   PAGE PARTENAIRES
   ========================================= */

/* --- VARIABLES & GENERAL (À supprimer si déjà existant) --- */
:root {
    --card-shadow: 0 10px 20px rgba(0,0,0,0.08);
    --card-hover: 0 15px 30px rgba(0,0,0,0.15);
    /* --primary-green: #76C721;  <-- Décommentez si pas déjà défini */
    --text-dark: #333;
    --text-grey: #666;
    --bg-light: #f8f9fa;
}

.page-header-container {
    text-align: center;
    margin: 40px 0 50px;
}

.page-title {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-weight: 800;
}

.page-subtitle {
    color: var(--text-grey);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* --- GRILLE DES PARTENAIRES --- */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

/* --- CARTE PARTENAIRE DESIGN --- */
.partner-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-hover);
}

.card-header {
    padding: 25px;
    background: linear-gradient(to right, #f9f9f9, #fff);
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 20px;
}

.card-logo {
    width: 160px;           /* Un peu plus grand */
    height: 160px;
    border-radius: 10px;   /* Carré arrondi au lieu de cercle (50%) */
    object-fit: contain;   /* IMPORTANT : Affiche tout le logo sans couper */
    border: 1px solid #eee;
    background: white;
    padding: 5px;          /* Petite marge interne pour que le logo ne touche pas le bord */
}

.card-title h3 {
    margin: 0;
    color: var(--primary-green, #76C721); /* Fallback si variable manquante */
    font-size: 1.4rem;
    margin-bottom: 15px !important; /* Force un saut de ligne visuel de 15px */
    line-height: 1.4; /* Aère le texte si le titre est sur 2 lignes */

}

.card-specialty {
    display: inline-block;
    margin-top: 5px;
    font-size: 0.85em;
    color: var(--text-grey);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-body {
    padding: 25px;
    flex-grow: 1;
}

.card-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: 20px;
    min-height: 50px;
}

.services-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.services-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #555;
}

.services-list li::before {
    content: '\f00c'; /* FontAwesome Check */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--primary-green, #76C721);
}

.card-footer {
    padding: 20px 25px;
    background-color: #fcfcfc;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.contact-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-dark);
    text-decoration: none;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 20px;
    transition: 0.2s;
}

.contact-pill:hover {
    border-color: var(--primary-green, #76C721);
    color: var(--primary-green, #76C721);
}

/* --- SECTION DEVENIR PARTENAIRE (FORMULAIRE) --- */
.join-section {
    background-color: var(--bg-light);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid #eee;
    margin-top: 60px;
}

.join-header {
    text-align: center;
    margin-bottom: 30px;
}

.join-header h2 {
    color: var(--text-dark);
    margin-bottom: 10px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-full { grid-column: span 2; }

@media (max-width: 768px) {
    .form-grid { grid-template-columns: 1fr; }
    .form-full { grid-column: span 1; }
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: 0.3s;
}

.form-control:focus {
    border-color: var(--primary-green, #76C721);
    outline: none;
    box-shadow: 0 0 0 3px rgba(118, 199, 33, 0.2);
}

.btn-submit {
    background-color: var(--primary-green, #76C721);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s;
    margin-top: 10px;
}

.btn-submit:hover {
    background-color: #64a91c;
}

.char-count {
    font-size: 0.75rem;
    color: #888;
    text-align: right;
    margin-top: 5px;
}

/* BANDEAU PARTENAIRES DÉFILANT (Version Corrigée) */
.partners-slider {
    background: white;
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.125);
    
    margin: 0;
    overflow: hidden;
    position: relative;
    width: 100%;
    
    /* MODIFICATION 1 : On retire "display: flex" ici. 
       Cela laisse la piste (.partners-track) prendre toute sa largeur sans être écrasée par le parent. */
    display: block; 
    
    padding: 10px 0;
}

/* Effet de dégradé sur les côtés */
.partners-slider::before,
.partners-slider::after {
    background: linear-gradient(to right, white 0%, rgba(255, 255, 255, 0) 100%);
    content: "";
    height: 100%;
    position: absolute;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}
.partners-slider::after {
    background: linear-gradient(to left, white 0%, rgba(255, 255, 255, 0) 100%);
    right: 0;
    top: 0;
}
.partners-slider::before {
    left: 0;
    top: 0;
}

/* La bande qui contient tous les logos */
.partners-track {
    display: flex;
    align-items: center;
    animation: scroll 40s linear infinite; /* J'ai ralenti un peu (30s -> 40s) pour plus de fluidité */
    width: max-content; /* Force la largeur totale réelle */
}

.partner-logo {
    display: block;
    height: 50px;
    width: auto;
    
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.8;
    transition: all 0.3s ease;
    
    /* MODIFICATION 2 : On passe à 80px (160px d'écart total) */
    margin: 0 80px !important; 
    
    /* SÉCURITÉ MAXIMUM ANTI-ÉCRASEMENT */
    flex-shrink: 0;
    flex-grow: 0;
    max-width: none;
}

/* Effet au survol */
.partners-slider:hover .partners-track {
    animation-play-state: paused;
}
.partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
    cursor: pointer;
}

/* Animation */
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Conteneur principal */
.partners-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    background: white;
    padding: 30px 0;
    width: 100%;
}

/* Titre */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    position: relative;
    margin: 0;
}

.section-title a {
    color: #333333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.section-title a:hover {
    color: #8cc63f;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: #8cc63f;
    margin: 10px auto 0;
    border-radius: 2px;
}

/* Alignement des 3 boutons */
    .card-footer {
        display: flex;
        justify-content: space-between; /* Écarte les éléments */
        align-items: center;
        padding-top: 15px;
        margin-top: auto; /* Colle en bas de la carte */
        border-top: 1px solid #eee;
    }

    /* Style général des boutons (déjà existant ou à renforcer) */
    .contact-pill {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        text-decoration: none;
        color: #555;
        font-size: 0.9em;
        font-weight: 600;
        padding: 5px 10px;
        border-radius: 20px;
        transition: all 0.2s ease;
    }
    .contact-pill:hover {
        background-color: #f0f0f0;
        color: #333;
    }

    /* STYLE SPÉCIFIQUE "BOUTON BLEU" POUR LE SITE */
    .pill-site {
        background-color: #f0f8ff; /* Bleu très clair (AliceBlue) */
        color: #007bff;            /* Bleu vif */
        border: 1px solid #cce5ff; /* Bordure bleu pâle */
        padding: 6px 15px;         /* Un peu plus large */
    }

    .pill-site:hover {
        background-color: #007bff; /* Bleu plein au survol */
        color: white !important;
        transform: translateY(-2px);
        box-shadow: 0 2px 5px rgba(0,123,255,0.3);
    }

    /* ==========================================================================
   STYLE PERSONNALISÉ FREDLOOX - THEME VERT (#76C721)
   ========================================================================== */
/* --- MASQUER LA SÉLECTION DU MODE DE LOCATION --- */
/* On cache tout le groupe : la question "Comment souhaitez-vous..." ET les boutons */
.mode-tarification-group {
    display: none !important;
}


/* --- 2. ZONE D'UPLOAD (Nuage) --- */

.custom-file-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 40px 20px;
    margin-bottom: 15px;
    background-color: #f8f9fa;   /* Gris clair fond de base */
    border: 2px dashed #ced4da;  /* Bordure tirets gris */
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #495057;
    font-weight: 600;
}

/* SURVOL DU NUAGE : Tout passe au vert */
.custom-file-upload:hover {
    background-color: #f4fcf0;   /* Vert très pâle */
    border-color: #76C721;       /* Ton Vert */
    color: #76C721;              /* Ton Vert */
}

/* Icône (le nuage) */
.custom-file-upload i {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #6c757d;              /* Gris par défaut */
    transition: color 0.3s ease;
}

/* L'icône devient verte au survol */
.custom-file-upload:hover i {
    color: #76C721;
}

/* Petit texte "Aucune photo..." */
#file-count-display {
    display: block;
    text-align: center;
    font-style: italic;
    color: #888;
    margin-top: -10px;
    margin-bottom: 20px;
    font-size: 0.9em;
}


/* --- 3. GROUPE VALEUR NEUVE --- */

.valeur-neuve-group {
    /* Force la bordure gauche en vert */
    border-left: 4px solid #76C721 !important; 
    margin-bottom: 20px;
    /* Petit fond gris pour bien délimiter le bloc (optionnel) */
    background-color: #fcfcfc; 
    padding: 15px;
    border-radius: 0 5px 5px 0; /* Arrondi sauf à gauche */
}

/* Assure-toi que l'input réel reste bien caché */
input#photos {
    display: none;
}

/* --- MASQUER L'OPTION PAR HEURE --- */
/* On cache l'input radio ET son étiquette (le bouton) */
#mode_heure,
label[for="mode_heure"] {
    display: none !important;

/* --- BOUTON INSCRIPTION MENU (Appel à l'action) --- */
.btn-nav-inscription {
    background-color: #ff4757 !important; /* Rouge dynamique */
    color: white !important;
    padding: 8px 20px !important;
    border-radius: 50px;       /* Arrondi complet */
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(255, 71, 87, 0.2);
    transition: all 0.3s ease;
    margin-left: 10px; /* Petit espace avec les autres liens */
}

.btn-nav-inscription:hover {
    background-color: #ff6b81 !important; /* Eclaircit au survol */
    transform: translateY(-2px); /* Petit effet de levier */
    text-decoration: none;
    box-shadow: 0 6px 8px rgba(255, 71, 87, 0.3);
}

/* En mobile, on ajuste un peu pour pas que ça casse tout */
@media (max-width: 991px) {
    .btn-nav-inscription {
        margin-left: 0;
        margin-top: 10px;
        text-align: center;
        display: inline-block;
    }
}

}

/* --- LIEN INSCRIPTION ROUGE (UNIQUEMENT ACCUEIL) --- */
.nav-inscription-accueil {
    color: #ff4757 !important; /* Ton rouge dynamique */
    font-weight: 800 !important; /* Très gras pour bien ressortir */
    font-size: 1.05rem;          /* Un tout petit peu plus gros */
    transition: all 0.3s ease;
}

.nav-inscription-accueil:hover {
    color: #d63031 !important;   /* Rouge plus foncé au survol */
    transform: scale(1.1);       /* Petit effet de loupe */
    text-shadow: 0 0 5px rgba(255, 71, 87, 0.2);
}

/* --- STYLE UNIFIÉ DES BOUTONS RETOUR (Style Vert FredLooX) --- */
.back-link, 
.btn-retour-fredloox {
    display: inline-flex !important;
    align-items: center;
    gap: 8px; /* Espace entre la flèche et le texte */
    padding: 8px 20px;
    background-color: white;
    color: #76C721 !important; /* Vert FredLooX */
    border: 1px solid #76C721 !important;
    border-radius: 50px !important; /* Forme de pilule */
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    font-size: 0.9rem;
    cursor: pointer;
}

/* Effet au survol : Devient vert plein */
.back-link:hover, 
.btn-retour-fredloox:hover {
    background-color: #76C721 !important;
    color: white !important;
    transform: translateX(-5px); /* Petite animation vers la gauche */
    box-shadow: 0 4px 8px rgba(118, 199, 33, 0.3);
}

/* Ajustement spécifique pour le bouton flottant du Header */
.back-link-container {
    padding-top: 15px;
    padding-left: 15px; /* Pour qu'il ne colle pas trop au bord */
}

/* --- DESIGN DU GLOBE "ORBITE FREDLOOX" --- */

/* Le conteneur du globe */
.fredloox-globe-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-right: 5px; /* Espace avant la flèche */
}

/* L'icône Terre (Le Globe) */
.fredloox-globe-wrapper i {
    color: #333; /* Globe Gris foncé (ou blanc selon ton header) */
    font-size: 1.1rem;
    z-index: 2; /* Reste au dessus */
    transition: color 0.3s ease;
}

/* L'Orbite (L'anneau vert) */
.fredloox-globe-wrapper::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    
    /* L'astuce pour l'anneau incomplet stylé */
    border: 2px solid transparent; 
    border-top-color: #76C721; /* Vert FredLooX */
    border-right-color: #76C721; /* Vert FredLooX */
    
    /* Positionnement et inclinaison initiale */
    transform: rotate(-45deg);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 0 rgba(118, 199, 33, 0); /* Pas de lueur au repos */
    z-index: 1;
}

/* --- L'ANIMATION AU SURVOL --- */

/* Quand on survole le menu langue */
.language-selector:hover .fredloox-globe-wrapper::after {
    transform: rotate(315deg); /* Tourne presque complet */
    box-shadow: 0 0 8px rgba(118, 199, 33, 0.6); /* Petit effet néon */
}

.language-selector:hover .fredloox-globe-wrapper i {
    color: #000; /* Le globe devient un peu plus noir */
}