body {
    font-family: sans-serif;
    margin: 20px;
    background-color: #f4f4f9;
}

header {
    background-color: #004d40;
    color: white;
    padding: 15px 0;
    text-align: center;
}

h2 {
    color: #004d40;
    border-bottom: 2px solid #004d40;
    padding-bottom: 5px;
}

section {
    background-color: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

section ul {
    margin: 15px 0;
    padding-left: 25px;
}

section li {
    margin: 10px 0;
    line-height: 1.6;
}

footer {
    text-align: center;
    margin-top: 30px;
    font-size: 0.8em;
    color: #666;
}

/* Navigation */
nav {
    margin: 20px 0;
    padding: 10px;
    background-color: #e0f2f1;
    border-radius: 5px;
    display: flex;
    align-items: center;
}

nav a {
    margin: 0 15px;
    text-decoration: none;
    color: #004d40;
    font-weight: bold;
}

.login, .logout {
    margin-left: auto;
    padding: 10px;
    background-color: #ff9800;
    color: white;
    border-radius: 5px;
    text-decoration: none;
}

/* Flash Messages */
.flash-message {
    padding: 15px 20px;
    margin: 20px auto;
    max-width: 600px;
    border-radius: 8px;
    font-weight: 500;
    text-align: left;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.flash-error {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    color: #c62828;
    border-left: 4px solid #d32f2f;
}

.flash-error::before {
    content: "⚠️";
    font-size: 24px;
    flex-shrink: 0;
}

.flash-success {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    color: #2e7d32;
    border-left: 4px solid #388e3c;
}

.flash-success::before {
    content: "✓";
    font-size: 24px;
    font-weight: bold;
    background-color: #4caf50;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.auth-form input {
    margin-bottom: 15px;
}

.auth-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #004d40;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="tel"] {
    width: 100%;
    max-width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

.search-form {
    max-width: 500px;
    margin: 20px auto;
}

.search-form select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    margin-bottom: 15px;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 15px 0;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: bold;
    color: #004d40;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

/* Buttons */
.btn-submit {
    margin-top: 20px;
    padding: 12px 30px;
    background-color: #004d40;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
}

.btn-submit:hover {
    background-color: #00695c;
}

.btn-cancel {
    padding: 10px 20px;
    background-color: #f44336;
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
}

.btn-cancel:hover {
    background-color: #d32f2f;
}

.btn-reserve {
    width: 100%;
    padding: 12px;
    background-color: #4caf50;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

.btn-reserve:hover {
    background-color: #45a049;
}

.btn-signal {
    width: 100%;
    padding: 15px;
    background-color: #f44336;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 15px;
}

.btn-signal:hover {
    background-color: #d32f2f;
}

.btn-link {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    background-color: #004d40;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

.btn-link:hover {
    background-color: #00695c;
}

/* Badges */
.status-badge, .badge {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
}

.status-badge {
    font-size: 0.9em;
}

.badge {
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
}

.status-ok, .badge-termine {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.status-empty, .badge-encours {
    background-color: #fff3e0;
    color: #e65100;
}

.status-full, .badge-retard {
    background-color: #ffebee;
    color: #c62828;
}

.badge-velo {
    background-color: #e8f5e9;
    color: #2e7d32;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
}

.badge-voiture {
    background-color: #e3f2fd;
    color: #1565c0;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
}

.no-results {
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
}

/* connexion.html */
.auth-container {
    display: flex;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.auth-container section {
    flex: 1;
    min-width: 0;
}

/* accueil.html */
.info-note {
    background-color: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 12px;
    margin: 15px 0;
    border-radius: 5px;
    font-size: 0.95em;
    color: #1565c0;
}

/* stations.html */
.stations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.station-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-left: 4px solid #004d40;
}

.station-card h3 {
    color: #004d40;
    margin-top: 0;
    font-size: 1.3em;
}

.station-address {
    color: #666;
    font-size: 0.9em;
    margin: 5px 0 15px 0;
}

.station-stats {
    display: flex;
    gap: 20px;
    margin: 15px 0;
}

.stat-group {
    flex: 1;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 5px;
}

.stat-group h4 {
    margin: 0 0 10px 0;
    color: #004d40;
    font-size: 1.1em;
}

.stat-group p {
    margin: 5px 0;
    font-size: 0.95em;
}

.station-status {
    margin-top: 15px;
    text-align: center;
}

/* planification.html */
.alert-section {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border-left: 4px solid #ff9800;
}

.emprunt-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-top: 15px;
}

.emprunt-card p {
    margin: 10px 0;
}

.emprunt-card .warning {
    color: #e65100;
    font-weight: bold;
    margin-top: 15px;
    padding: 10px;
    background-color: #fff3e0;
    border-radius: 5px;
}

.reservations-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.reservation-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #2196f3;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.reservation-info h3 {
    margin: 0 0 10px 0;
    color: #004d40;
}

.reservation-info p {
    margin: 5px 0;
}

.expiration {
    color: #ff9800;
    font-weight: bold;
}

.vehicules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.vehicule-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-left: 4px solid #004d40;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.vehicule-icon {
    font-size: 48px;
    text-align: center;
}

.vehicule-info h3 {
    margin: 0;
    color: #004d40;
}

.vehicule-info p {
    margin: 5px 0;
    font-size: 0.95em;
}

/* signalement.html */
.signalement-box {
    background: white;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid #ff9800;
}

.vehicule-info-signalement {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
    margin: 15px 0;
}

.vehicule-info-signalement p {
    margin: 8px 0;
}

.signalement-form {
    margin-top: 20px;
}

.warning-text {
    background: #fff3e0;
    color: #e65100;
    padding: 12px;
    border-radius: 5px;
    font-weight: bold;
    margin-bottom: 20px;
}

.no-emprunt {
    text-align: center;
    padding: 40px;
    background: #f9f9f9;
    border-radius: 8px;
}

.no-emprunt p {
    margin: 10px 0;
    color: #666;
}

.info-section {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
}

/* mon_compte.html */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.info-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.info-card h3 {
    margin: 0 0 15px 0;
    color: #004d40;
    border-bottom: 2px solid #004d40;
    padding-bottom: 10px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: bold;
    color: #666;
}

.info-value {
    color: #333;
}

.carte-abonne {
    background: linear-gradient(135deg, #004d40 0%, #00695c 100%);
    color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
}

.carte-numero {
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 3px;
    margin-bottom: 15px;
}

.carte-nom {
    font-size: 18px;
    text-transform: uppercase;
}

.statut-ok, .statut-warning {
    text-align: center;
    padding: 20px;
    border-radius: 8px;
}

.statut-ok {
    background: #e8f5e9;
    color: #2e7d32;
}

.statut-warning {
    background: #fff3e0;
    color: #e65100;
}

.statut-ok p:first-child, .statut-warning p:first-child {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

.statut-detail {
    font-size: 14px;
}

.table-container {
    overflow-x: auto;
    margin-top: 20px;
}

.historique-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.historique-table thead {
    background-color: #004d40;
    color: white;
}

.historique-table th {
    padding: 15px;
    text-align: left;
    font-weight: bold;
}

.historique-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

.historique-table tbody tr:hover {
    background-color: #f5f5f5;
}

.row-retard {
    background-color: #ffebee;
}

.row-encours {
    background-color: #fff3e0;
}

/* statistiques.html */
.stats-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-top: 20px;
}

.stats-table thead {
    background-color: #004d40;
    color: white;
}

.stats-table th {
    padding: 15px;
    text-align: left;
    font-weight: bold;
    font-size: 14px;
}

.stats-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

.stats-table tbody tr:hover {
    background-color: #f5f5f5;
}

/* Responsive */
@media (max-width: 768px) {
    .auth-container {
        flex-direction: column;
    }

    .stations-grid, .vehicules-grid {
        grid-template-columns: 1fr;
    }

    .station-stats {
        flex-direction: column;
        gap: 10px;
    }

    .reservation-card {
        flex-direction: column;
        gap: 15px;
    }

    .btn-cancel {
        width: 100%;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .historique-table, .stats-table {
        font-size: 14px;
    }

    .historique-table th, .historique-table td,
    .stats-table th, .stats-table td {
        padding: 8px;
    }
}