/* Section Hero */
#covoiturages-header {
    background: linear-gradient(to right, #6dcf81, #28a745); /* Dégradé vert inversé */
    color: white;
    text-align: center;
    padding: 50px 20px;
    border-radius: 0 0 12px 12px;
}

#covoiturages-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

#covoiturages-header p {
    font-size: 1.2rem;
}

/* Résultats des covoiturages */
#covoiturage-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px;
    margin: 20px auto;
}

.covoiturage-item {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.covoiturage-item h3 {
    font-size: 1.5rem;
    color: #28a745;
    margin-bottom: 10px;
}

.covoiturage-item p {
    font-size: 1rem;
    margin-bottom: 5px;
    line-height: 1.5;
}

.covoiturage-item .btn-details {
    display: inline-block;
    background-color: #28a745;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.covoiturage-item .btn-details:hover {
    background-color: #218838;
    transform: scale(1.05);
}

.covoiturage-item:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

/* Aucune donnée */
.no-results {
    text-align: center;
    font-size: 1.2rem;
    color: #888;
    margin-top: 20px;
}

/* ==========================================================================
   Covoiturages Page Styles - EcoRide Modern Redesign
   ========================================================================== */

h1 {
    text-align: center;
    margin-bottom: 2rem;
}

.trajets-list {
    display: grid;
    gap: 1.5rem;
}

.trajet-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    background-color: var(--surface-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition-main);
    border-left: 5px solid transparent;
}

.trajet-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-left-color: var(--primary-color);
}

.trajet-path h3 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.trajet-path .fas {
    color: var(--text-color-light);
    margin: 0 1rem;
}

.trajet-info {
    display: flex;
    gap: 2rem;
    color: var(--text-color-light);
}

.trajet-info p {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.trajet-action {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.trajet-action .prix {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* ------------------------------------------
   Empty State
   ------------------------------------------ */
.empty-state {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 2rem;
    padding: 3rem;
    text-align: left;
    background: var(--surface-color);
    border-radius: 16px;
    margin-top: 2rem;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.empty-state-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.1), rgba(52, 152, 219, 0.1));
    border-radius: 50%;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.empty-state-icon svg {
    width: 40px;
    height: 40px;
}

.empty-state h2 {
    font-size: 1.6rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.empty-state-description {
    font-size: 1rem;
    color: var(--text-color-light);
    margin-bottom: 1.5rem;
    max-width: none;
}

.empty-state-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-secondary-outline {
    padding: 0.7rem 1.5rem;
    border-radius: var(--border-radius);
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary-outline:hover {
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
}

/* Map styles */
.empty-state-map {
    width: 100%;
    height: 100%;
}

.empty-state-map svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.map-path {
    animation: drawPath 3s ease-in-out forwards;
}

.city-marker {
    opacity: 0;
    animation: popIn 0.5s ease forwards;
}
.city-marker:nth-child(2) { animation-delay: 1s; }
.city-marker:nth-child(3) { animation-delay: 1.5s; }
.city-marker:nth-child(4) { animation-delay: 2.5s; }

.city-marker text {
    font-family: var(--font-family-main);
    font-size: 8px;
    font-weight: 600;
    fill: var(--text-color);
}

@keyframes drawPath {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes popIn {
    from {
        transform: scale(0.5);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Illustration styles */
.empty-state-illustration {
    width: 100%;
    height: 100%;
    align-self: center;
}

.empty-state-illustration svg {
    width: 100%;
    height: auto;
    max-height: 200px;
}

.road-marks {
    animation: move-road 1s linear infinite;
}

.car {
    animation: bounce 0.5s ease-in-out infinite alternate;
}

@keyframes move-road {
    from { stroke-dashoffset: 0; }
    to { stroke-dashoffset: -22; } /* Matches the dash-array pattern */
}

@keyframes bounce {
    from { transform: translateY(0); }
    to { transform: translateY(-3px); }
}

/* === Détail Trajet Modern Card === */
.trajet-detail-card {
    max-width: 600px;
    margin: 2.5rem auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(39, 174, 96, 0.10), 0 1.5px 6px rgba(44,62,80,0.04);
    padding: 2.5rem 2rem 2rem 2rem;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.trajet-detail-path h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
}
.trajet-detail-info p {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 0.7rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.trajet-detail-driver {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.2rem 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.06);
}
.trajet-detail-driver h3 {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.trajet-detail-driver p {
    margin: 0.2rem 0;
    color: var(--text-color-light);
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* === Formulaire Proposer un Trajet Modern === */
.form-container {
    max-width: 650px;
    margin: 2.5rem auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(39, 174, 96, 0.10), 0 1.5px 6px rgba(44,62,80,0.04);
    padding: 2.5rem 2rem 2rem 2rem;
    border: 1px solid var(--border-color);
}
fieldset {
    border: 1.5px solid var(--primary-color);
    border-radius: 10px;
    margin-bottom: 1.5rem;
    padding: 1.2rem 1rem 1rem 1rem;
    background: #f8f9fa;
}
legend {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
    padding: 0 0.7rem;
}
.form-group-duo {
    display: flex;
    gap: 1.5rem;
}
.form-group-duo .form-group {
    flex: 1;
}
.styled-form label {
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.styled-form input,
.styled-form textarea {
    width: 100%;
    padding: 0.9rem 1.1rem;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    background: #f8f9fa;
    color: var(--text-color);
    margin-bottom: 1rem;
    transition: border 0.2s;
}
.styled-form input:focus,
.styled-form textarea:focus {
    border-color: var(--primary-color);
    background: #fff;
}
.form-actions {
    text-align: right;
}
.form-actions .btn {
    padding: 0.9rem 2.2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
}

.search-form label {
    color: #fff !important;
    font-weight: 600;
    font-size: 1.05rem;
}

.search-form input,
.search-form select {
    color: #fff !important;
    background: transparent !important;
    border: 1.5px solid #fff !important;
    border-radius: 8px !important;
    padding: 0.9rem 1.1rem !important;
    font-size: 1.1rem !important;
    margin-bottom: 1rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
.search-form input::placeholder {
    color: #fff !important;
    opacity: 1 !important;
}
.search-form input[type="date"]::-webkit-input-placeholder { color: #fff !important; }
.search-form input[type="date"]::-moz-placeholder { color: #fff !important; }
.search-form input[type="date"]:-ms-input-placeholder { color: #fff !important; }
.search-form input[type="date"]::placeholder { color: #fff !important; }
.search-form input[type="date"] {
    color-scheme: dark !important;
    color: #fff !important;
    background: transparent !important;
    border: 1.5px solid #fff !important;
    border-radius: 8px !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}
.search-form label i {
    color: #fff !important;
}
