:root {
    --primary: #2c3e50;
    --secondary: #3498db;
    --accent: #e74c3c;
    --light: #ecf0f1;
    --dark: #2c3e50;
    --success: #27ae60;
    --warning: #f39c12;
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
    --radius: 8px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

/* Navigation */
.zone-navigation {
    background-color: var(--primary);
    padding: 1rem 2rem;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.navbar-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    transition: var(--transition);
}

.navbar-link:hover, .navbar-link.active {
    background-color: var(--secondary);
}
/* Pied de page */
.zone-pied {
    background-color: var(--dark);
    color: white;
    padding: 3rem 2rem 1rem;
    margin-top: 3rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section {
    flex: 1;
    min-width: 200px;
}

.footer-section h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: #ddd;
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: white;
}
#start-tutorial {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #3b6e93;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  z-index: 9999;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: background 0.3s;
}    
#start-tutorial:hover {
  background: #508bbb;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .search-row {
        flex-direction: column;
        gap: 1rem;
    }
}
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 1rem 2rem;
    background-color: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.titre-principal {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.search-filters h2 {
    color: var(--secondary);
    margin-bottom: 1rem;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.filter-group label {
    font-weight: bold;
    margin-bottom: 0.5rem;
    display: block;
}

.filter-input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--light);
    border-radius: var(--radius);
    background-color: var(--light);
    transition: var(--transition);
}

.filter-input:focus {
    border-color: var(--secondary);
    background-color: white;
    outline: none;
}

.filter-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.ride-card {
    background-color: var(--light);
    padding: 1rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.ride-card.expanded {
    background-color: white;
}

.ride-card:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
}

.ride-header,
.ride-details {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.ride-driver {
    display: flex;
    align-items: center;
    margin-top: 1rem;
}

.driver-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 0.75rem;
}

.driver-info .driver-name {
    font-weight: bold;
    color: var(--primary);
}

.driver-rating {
    font-size: 0.9rem;
    color: var(--success);
}

.pagination {
    margin: 2rem 0;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.pagination button {
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    background-color: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
}

.pagination button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    max-width: 500px;
    width: 100%;
}

.close-button {
    float: right;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--accent);
}

.no-rides-message {
    text-align: center;
    padding: 2rem;
    font-size: 1.2rem;
    color: var(--warning);
}
