/* Réinitialisation de base */
body, h1, h2, h3, p, ul, form {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    box-sizing: border-box;
}

body {
    background-color: #f4f7f6;
    color: #333;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

/* Header (de header.php) */
header {
    background-color: #fff;
    padding: 15px 0;
    border-bottom: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

header .logo {
    font-size: 1.8em;
    font-weight: bold;
    color: #333;
    text-decoration: none;
}
/* Votre nom "covoiside" a une belle sonorité, on peut le styler */
header .logo { 
    font-weight: 700;
    color: #2c5282; /* Un bleu "tech" */
}

header nav ul {
    list-style: none;
    display: flex;
}
header nav ul li {
    margin-left: 20px;
}
header nav ul li a {
    text-decoration: none;
    color: #555;
    font-weight: bold;
}
header nav ul li a:hover {
    color: #2c5282;
}

/* Section Héro (index.php) */
.hero-section {
    background: #2c5282; /* Le bleu "tech" */
    color: #fff;
    padding: 60px 0;
    text-align: center;
}
.hero-section h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}
.hero-section .subtitle {
    font-size: 1.2em;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Le formulaire de recherche (responsive) */
.hero-search-form {
    display: flex;
    flex-wrap: wrap; /* Permet de passer à la ligne sur mobile */
    justify-content: center;
    align-items: flex-end; /* Aligne les champs et le bouton */
    gap: 15px;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.hero-search-form .form-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-grow: 1; /* Les champs prennent la place */
}
.hero-search-form label {
    font-size: 0.9em;
    margin-bottom: 5px;
    color: #333;
}
.hero-search-form input[type="text"],
.hero-search-form input[type="date"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
}

/* Boutons */
.btn-primary {
    background-color: #e67e22; /* Une couleur "action" orange */
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
}
.hero-search-form button {
    height: 40px; /* Aligner la hauteur avec les inputs */
}
.btn-primary:hover {
    background-color: #d35400;
}

/* Section Résultats (que jQuery va remplir) */
.results-section {
    padding: 40px 0;
}
.results-section h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2em;
}
#search-results .info,
#search-results .loading,
#search-results .no-results {
    text-align: center;
    color: #777;
    font-style: italic;
}

/* "Comment ça marche" */
.how-it-works {
    background-color: #fff;
    padding: 40px 0;
}
.how-it-works h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2em;
}
.how-it-works .steps {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap; /* Responsive */
    gap: 20px;
}
.how-it-works .step {
    flex-basis: 300px; /* Chaque bloc fait 300px de large */
    text-align: center;
}
.how-it-works .step-icon {
    font-size: 3em;
}

/* Footer (de footer.php) */
footer {
    text-align: center;
    padding: 30px 0;
    margin-top: 40px;
    border-top: 1px solid #ddd;
    color: #777;
}

/* Carte de Résultat de Trajet (Ride Card) */
.ride-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: flex;
    flex-wrap: wrap; /* Responsive */
}
.ride-card-header {
    flex-basis: 150px; /* Largeur fixe pour la photo */
    padding: 15px;
    text-align: center;
    border-right: 1px solid #eee;
}
.ride-card-header img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 5px;
    background-color: #eee;
}
.ride-card-body {
    flex-grow: 1; /* Prend le reste de la place */
    padding: 15px;
}
.ride-card-body p {
    margin-bottom: 8px;
}
.ride-card-footer {
    flex-basis: 150px; /* Largeur fixe pour le bouton */
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 1px solid #eee;
}

/* Responsive pour les cartes */
@media (max-width: 768px) {
    .ride-card-header, .ride-card-footer {
        flex-basis: 100%; /* Prend toute la largeur */
        border: none;
        border-bottom: 1px solid #eee;
    }
    .ride-card-footer {
        border-top: 1px solid #eee;
    }
}

/* Style pour les boutons dans la navigation */
header nav ul li a.btn-primary-nav {
    background-color: #e67e22; /* L'orange "action" */
    color: #fff;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}
header nav ul li a.btn-primary-nav:hover {
    background-color: #d35400;
    color: #fff;
}

header nav ul li a.btn-logout {
    color: #e74c3c; /* Un rouge "danger" mais subtil */
}
header nav ul li a.btn-logout:hover {
    color: #c0392b;
    font-weight: bold;
}

/* --- Styles pour les formulaires (register.php, login.php) --- */

.form-container {
    max-width: 450px;
    margin: 40px auto; /* Centrer le formulaire */
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid #ddd;
}
.form-container h2 {
    text-align: center;
    color: #2c5282; /* Bleu Covoiside */
    margin-bottom: 10px;
}
.form-container p {
    text-align: center;
    color: #555;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box; /* Important pour que le padding ne casse pas la largeur */
}

/* Bouton pleine largeur */
.btn-full-width {
    width: 100%;
    padding: 12px;
    font-size: 1.1em;
}

/* Boîte de message AJAX */
.form-message-box {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
}
.form-message-box.success {
    background-color: #eaf8f0;
    color: #27ae60;
    border: 1px solid #27ae60;
}
.form-message-box.error {
    background-color: #fbeae9;
    color: #e74c3c;
    border: 1px solid #e74c3c;
}

/* Lien pour changer (ex: "Déjà un compte ?") */
.form-switch {
    text-align: center;
    margin-top: 20px;
    color: #555;
}
.form-switch a {
    color: #2c5282;
    font-weight: bold;
    text-decoration: none;
}
.form-switch a:hover {
    text-decoration: underline;
}

/* --- Styles pour Proposer un Trajet --- */

/* Pour le switch "Trajet récurrent ?" */
.form-group-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #f9f9f9;
    padding: 10px 15px;
    border-radius: 5px;
}
.form-group-inline label {
    margin-bottom: 0;
    font-weight: bold;
}
/* Un "toggle switch" cool (optionnel, mais sympa) */
#is_recurrent {
    width: 40px;
    height: 20px;
    position: relative;
    -webkit-appearance: none;
    appearance: none;
    background: #ccc;
    outline: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s;
}
#is_recurrent:before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    top: 2px;
    left: 2px;
    transition: left 0.3s;
}
#is_recurrent:checked {
    background: #27ae60; /* Vert succès */
}
#is_recurrent:checked:before {
    left: 22px; /* 40px - 16px - 2px */
}

/* Pour le groupe de jours de la semaine */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 5px;
}
.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-weight: normal;
}

/* --- Styles pour la Page "Détails du Trajet" --- */

.ride-details-container {
    display: flex;
    flex-wrap: wrap; /* Responsive */
    gap: 30px;
    margin-top: 30px;
}

/* Colonne principale (infos trajet) */
.ride-main-info {
    flex: 2; /* Prend 2/3 de la largeur */
    min-width: 300px;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.ride-main-info h1 {
    font-size: 2.2em;
    color: #2c5282;
    margin-bottom: 20px;
    line-height: 1.3;
}
.ride-main-info h1 strong {
    color: #e67e22; /* L'orange "action" */
}
.ride-main-info h3 {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 15px;
    border-bottom: 2px solid #eee;
    padding-bottom: 5px;
}

.ride-info-box {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}
.ride-info-box span {
    font-size: 1.1em;
    font-weight: bold;
    padding-left: 30px; /* Espace pour un icône */
    position: relative;
}
/* (On pourrait ajouter des icônes avant le ::before) */
.ride-info-time::before   { content: '🕒'; position: absolute; left: 0; }
.ride-info-contribution::before { content: '💰'; position: absolute; left: 0; }
.ride-info-seats::before  { content: '👥'; position: absolute; left: 0; }

.map-placeholder {
    width: 100%;
    height: 250px;
    background: #eee url('https://via.placeholder.com/600x250.png?text=Emplacement+de+la+carte') center center;
    border-radius: 8px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    font-style: italic;
}


/* Colonne latérale (infos conducteur) */
.driver-sidebar {
    flex: 1; /* Prend 1/3 de la largeur */
    min-width: 280px;
}
.driver-card {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #ddd;
    text-align: center;
    position: sticky; /* Reste visible au scroll */
    top: 20px;
}
.driver-card h3 {
    font-size: 1.2em;
    color: #555;
    margin-bottom: 15px;
    font-weight: normal;
}
.driver-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid #eee;
    margin-bottom: 10px;
}
.driver-card strong {
    font-size: 1.5em;
    color: #2c5282;
    display: block;
    margin-bottom: 5px;
}
.member-since {
    font-size: 0.9em;
    color: #777;
    margin-bottom: 15px;
}
.driver-bio {
    font-size: 0.95em;
    color: #333;
    font-style: italic;
    line-height: 1.5;
    border-top: 1px solid #eee;
    padding-top: 15px;
    margin-top: 15px;
}

#cta-button-container {
    margin-top: 20px;
}
/* Bouton secondaire (ex: "Modifier") */
.btn-secondary {
    background-color: #f0f0f0;
    color: #333;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    display: block;
}
.btn-secondary:hover {
    background-color: #e0e0e0;
}

/* --- STYLES DU MENU HAMBURGER (MOBILE) --- */

/* 1. Le bouton Hamburger */
.hamburger {
    display: none; /* Caché par défaut (sur ordinateur) */
    border: none;
    background: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001; /* Doit être au-dessus du menu */
}
.hamburger-line {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333; /* Couleur des lignes */
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}

/* 2. L'animation "cool" du bouton (se transforme en X) */
/* jQuery ajoutera la classe 'is-active' */
.hamburger.is-active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger.is-active .hamburger-line:nth-child(2) {
    opacity: 0;
}
.hamburger.is-active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}


/* 3. Media Query : C'est ce qui rend le tout "responsive" */
/* Cible les écrans de 768px de large ou moins (tablettes et mobiles) */

@media (max-width: 768px) {

    /* On affiche le bouton hamburger */
    .hamburger {
        display: block;
    }

    /* On cache le menu de navigation normal (la liste <ul>) */
    header nav ul#main-nav-links {
        display: none; /* jQuery le gérera, mais c'est une sécurité */
        
        /* Style du menu "overlay" (qui prend tout l'écran) */
        position: fixed; /* Reste fixe à l'écran */
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh; /* 100% de la hauteur de l'écran */
        background-color: rgba(255, 255, 255, 0.98); /* Fond blanc semi-transparent */
        backdrop-filter: blur(5px); /* Effet "cool" de flou */
        
        /* Centrer les liens */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 1000;
    }

    /* Quand jQuery ajoute 'is-active', on affiche le menu */
    header nav ul#main-nav-links.is-active {
        display: flex; /* On le ré-affiche en flexbox */
    }

    /* Style des liens dans le menu mobile */
    header nav ul#main-nav-links li {
        margin: 20px 0; /* Espacer les liens verticalement */
    }
    header nav ul#main-nav-links li a {
        font-size: 1.5em; /* Liens plus gros sur mobile */
        color: #2c5282; /* Bleu Covoiside */
    }
    
    /* On s'assure que le bouton "Inscription" reste "cool" */
    header nav ul#main-nav-links li a.btn-primary-nav {
        padding: 15px 30px;
        font-size: 1.5em;
    }
}

/* --- Styles pour la Messagerie (messagerie.php) --- */

.messenger-container {
    display: flex;
    height: calc(100vh - 120px); /* Hauteur (100% écran - header/footer) */
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-top: 20px;
    overflow: hidden; /* Important pour les colonnes */
}

/* Colonne 1 : Liste des conversations */
.conversation-list {
    flex-basis: 300px;
    border-right: 1px solid #eee;
    overflow-y: auto; /* Scroll si trop de conversations */
    background: #fcfcfc;
}
.conversation-list h3 {
    padding: 20px;
    margin: 0;
    font-size: 1.2em;
    color: #333;
    border-bottom: 1px solid #eee;
}
.convo-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    color: #333;
    transition: background-color 0.2s ease;
}
.convo-item:hover {
    background-color: #f5f5f5;
}
/* Style de la conversation active */
.convo-item.active {
    background-color: #eaf2f8; /* Bleu Covoiside très clair */
    border-right: 3px solid #2c5282; /* Bleu Covoiside */
}
.convo-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    margin-right: 15px;
    background: #eee;
}
.convo-details {
    overflow: hidden;
}
.convo-details strong {
    display: block;
    font-size: 1.1em;
}
.convo-details span {
    font-size: 0.9em;
    color: #777;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.info-text {
    padding: 20px;
    text-align: center;
    color: #888;
}

/* Colonne 2 : Fenêtre de Chat */
.chat-window {
    flex-grow: 1;
    display: flex;
    flex-direction: column; /* Structure verticale */
    background: #fff;
}

/* Placeholder (si aucun chat n'est sélectionné) */
.chat-placeholder {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #aaa;
}
.chat-placeholder .chat-icon {
    font-size: 4em;
    margin-bottom: 15px;
}

/* Vrai Chat */
.chat-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    font-size: 1.2em;
    font-weight: bold;
}
.chat-messages {
    flex-grow: 1;
    overflow-y: auto; /* LE scroll pour les messages */
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.chat-form {
    display: flex;
    padding: 15px;
    border-top: 1px solid #eee;
    background: #f9f9f9;
}
#message-content {
    flex-grow: 1;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 20px; /* Style "cool" */
    margin-right: 10px;
    font-size: 1em;
}
.chat-form button {
    border-radius: 20px;
    padding: 0 20px;
}

/* Les Bulles de Chat (Le "design cool") */
.msg-bubble {
    max-width: 75%;
    padding: 10px 15px;
    border-radius: 15px;
    line-height: 1.5;
}
.msg-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}
.msg-info strong {
    font-size: 0.9em;
}
.msg-info span {
    font-size: 0.8em;
    color: #555;
    margin-left: 10px;
}
.msg-content p {
    margin: 0;
}

/* Bulle "reçue" (l'autre personne) */
.msg-bubble.received {
    background-color: #f0f0f0;
    color: #333;
    align-self: flex-start; /* Aligner à gauche */
    border-bottom-left-radius: 3px;
}
.msg-bubble.received .msg-info strong {
    color: #2c5282; /* Bleu Covoiside */
}


/* Bulle "envoyée" (moi) */
.msg-bubble.sent {
    background-color: #2c5282; /* Bleu Covoiside */
    color: #fff;
    align-self: flex-end; /* Aligner à droite */
    border-bottom-right-radius: 3px;
}
.msg-bubble.sent .msg-info {
    color: #eee;
}
.msg-bubble.sent .msg-info strong {
    color: #fff; /* C'est "Moi" */
}
.msg-bubble.sent .msg-info span {
    color: #eee;
}

/* Responsive Messagerie (Mobile) */
@media (max-width: 768px) {
    .messenger-container {
        flex-direction: column;
        height: calc(100vh - 60px); /* 100% - juste le header */
    }
    .conversation-list {
        flex-basis: auto; /* Auto-hauteur */
        flex-grow: 0;
        max-height: 200px; /* On limite la hauteur de la liste */
        border-right: none;
        border-bottom: 1px solid #eee;
    }
    .chat-window {
        /* Prend tout le reste de la place */
        flex-grow: 1;
    }
}
/* ---
   STYLES COMPLETS POUR LA PAGE PROFIL (profile.php)
   --- */

.profile-container h1 {
    color: #2c5282; /* Bleu Covoiside */
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 30px;
    font-size: 2.2em;
}

/* La mise en page principale en 2 colonnes */
.profile-layout {
    display: flex;
    flex-wrap: wrap; /* Passe en une colonne sur mobile */
    gap: 30px; /* Espace entre les colonnes */
}

/* Colonne principale (infos) */
.profile-main {
    flex: 2; /* Prend 2/3 de la largeur */
    min-width: 320px; /* Taille minimale avant de "wrapper" */
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.profile-main h3 {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

/* Section spéciale pour la Photo de profil */
.profile-picture-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-align: center;
    margin-bottom: 20px;
}
.profile-picture-section .driver-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid #eee;
    object-fit: cover; /* S'assure que l'image remplit le cercle */
}
/* Cacher l'input "file" moche */
#form-profile-picture input[type="file"] {
    display: none;
}
/* Styler le label comme un bouton */
#form-profile-picture .btn-secondary {
    display: inline-block;
    padding: 10px 20px;
    cursor: pointer;
}
#form-profile-picture .btn-primary {
    padding: 10px 20px;
}

/* On s'assure que le formulaire de détails n'a pas une double-boîte */
#form-profile-details {
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
}

/* Champ bio */
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    resize: vertical; /* Permet de redimensionner verticalement */
}


/* Colonne latérale (mes trajets) */
.profile-sidebar {
    flex: 1; /* Prend 1/3 de la largeur */
    min-width: 300px;
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
}
.profile-sidebar h3 {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 20px;
}
.my-rides-list .my-ride-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 10px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.my-rides-list .my-ride-item a {
    display: block;
    padding: 15px;
    text-decoration: none;
    color: #333;
}
.my-rides-list .my-ride-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}
.my-rides-list .my-ride-item strong {
    display: block;
    font-size: 1.1em;
    color: #2c5282;
    margin-bottom: 5px;
}
.my-rides-list .my-ride-item span {
    font-size: 0.9em;
    color: #555;
}
.profile-sidebar .info-text {
    color: #777;
    margin-bottom: 20px;
}

/* --- Styles pour l'Édition de Trajet --- */

/* Un bouton "Danger" pour la suppression */
.btn-danger {
    background-color: #e74c3c; /* Rouge "danger" */
    color: #fff;
    padding: 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    text-decoration: none;
    width: 100%; /* S'adapte au form-actions */
}
.btn-danger:hover {
    background-color: #c0392b;
}
.btn-danger:disabled {
    background-color: #f5b7b1;
}

/* Conteneur pour les boutons "Mettre à jour" et "Supprimer" */
.form-actions {
    display: flex;
    flex-wrap: wrap; /* Sur mobile, les boutons passeront l'un sous l'autre */
    gap: 15px; /* Espace entre les boutons */
    margin-top: 20px;
}
.form-actions button {
    flex-grow: 1; /* Les deux boutons essaient de prendre la même place */
    font-size: 1.1em;
}

/* --- Styles pour le Modal de Notation --- */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000; /* Au-dessus de tout */
}
.modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}
.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2em;
    color: #aaa;
    background: none;
    border: none;
    cursor: pointer;
}
.modal-content h2 {
    color: #2c5282;
    text-align: center;
    margin-top: 0;
    margin-bottom: 20px;
}
.modal-content .form-group {
    margin-bottom: 15px;
}

/* Les étoiles */
.star-rating {
    text-align: center;
    margin-bottom: 20px;
}
.star-rating .star {
    font-size: 2.5em; /* Grosses étoiles */
    color: #ccc;
    cursor: pointer;
    transition: color 0.2s ease;
}
.star-rating .star:hover,
.star-rating .star.selected {
    color: #f39c12; /* Jaune/Orange étoile */
}

/* Boutons d'action dans le header du chat */
.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.chat-actions .btn-secondary,
.chat-actions .btn-primary {
    padding: 8px 12px;
    font-size: 0.9em;
}

/* --- Styles pour l'affichage des Avis (Trajet Details) --- */

.driver-rating {
    margin-bottom: 10px;
    font-size: 1.1em;
}
.driver-rating .stars {
    font-size: 1.2em;
}
.driver-rating .no-rating {
    font-style: italic;
    color: #777;
}

.reviews-list {
    margin-top: 20px;
}
.review-item {
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 10px;
}
.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.review-header strong {
    color: #333;
}
.review-item p {
    color: #555;
    font-style: italic;
}
/* Style pour le message d'attente */
.chat-actions .info-text {
    font-size: 0.9em;
    font-style: italic;
    color: #777;
    padding: 8px 12px;
}

/* --- Styles pour le Bandeau Cookies --- */

.cookie-banner {
    position: fixed; /* Reste fixe en bas */
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(44, 82, 130, 0.95); /* Bleu Covoiside semi-transparent */
    color: #fff;
    padding: 15px 0;
    z-index: 3000; /* Au-dessus de tout */
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    backdrop-filter: blur(3px);
}

.cookie-banner-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cookie-banner p {
    margin: 0;
    font-size: 0.9em;
    flex-grow: 1; /* Prend l'espace disponible */
}

.cookie-banner a {
    color: #f1c40f; /* Un jaune pour contraster */
    text-decoration: underline;
}
.cookie-banner a:hover {
    color: #f39c12;
}

.cookie-banner button {
    padding: 8px 15px;
    font-size: 0.9em;
    flex-shrink: 0; /* Ne se réduit pas */
}

/* Responsive */
@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column; /* Passe en colonne sur mobile */
        text-align: center;
    }
    .cookie-banner p {
        margin-bottom: 10px;
    }
}

/* --- Styles pour le Footer et les Pages Statiques --- */

footer {
    text-align: center;
    padding: 30px 0;
    margin-top: 40px;
    border-top: 1px solid #ddd;
    background-color: #fff; /* Assorti au header */
}

.footer-content {
    display: flex;
    flex-direction: column; /* Par défaut en colonne */
    align-items: center;
    gap: 10px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 15px; /* Espace entre les liens */
}
.footer-links li a {
    color: #555;
    text-decoration: none;
    font-size: 0.9em;
}
.footer-links li a:hover {
    color: #2c5282;
    text-decoration: underline;
}

/* Responsive Footer */
@media (min-width: 768px) {
    .footer-content {
        flex-direction: row; /* Passe en ligne sur écran large */
        justify-content: space-between;
    }
}


/* Style de base pour les pages statiques (Mentions, Politique) */
.page-container {
    background: #fff;
    padding: 30px;
    margin-top: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.page-container h1 {
    color: #2c5282;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
}
.page-container h2 {
    color: #333;
    margin-top: 30px;
    margin-bottom: 15px;
}
.page-container p, .page-container ul {
    line-height: 1.7;
    margin-bottom: 15px;
}
.page-container ul {
    margin-left: 20px;
}
.page-container a {
    color: #e67e22;
}
.page-container a:hover {
    text-decoration: underline;
}

/* --- Styles pour le Logo dans le Header --- */

/* On cible le lien qui contient le logo */
header .logo-link {
    display: inline-block; /* Pour pouvoir lui donner une taille */
    vertical-align: middle; /* Aide à l'alignement vertical */
}

/* On cible l'image elle-même pour la taille */
header .logo-image {
    height: 40px; /* ** Ajustez cette hauteur selon vos besoins ** (ex: 50px) */
    width: auto; /* La largeur s'ajustera automatiquement */
    display: block; /* Évite certains problèmes d'espacement */
}

/* (Optionnel) Ajustement si le logo est trop haut/bas sur mobile */
@media (max-width: 768px) {
    header .logo-image {
        height: 35px; /* Un peu plus petit sur mobile ? */
    }
}

/* (Optionnel) Si vous aviez des styles sur l'ancien '.logo' qui ne sont plus utiles, supprimez-les */
/* Exemple: Supprimer la taille de police ou la couleur */
/* header .logo {
    font-size: 1.8em;
    font-weight: bold;
    color: #2c5282;
    text-decoration: none;
} */ /* <<< Supprimer ou commenter si c'était votre ancien style */