/* Global styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f9;
    color: #333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
header {
    background-color: #ffcc00;
    color: #000;
    padding: 15px 0;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 1.8em;
    margin: 0;
    padding: 0 10px;
}

header h1 a {
    text-decoration: none;
    color: #000;
}

nav {
    margin-top: 10px;
}

nav a {
    margin: 0 10px;
    color: #000;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    padding: 8px 12px;
    display: inline-block;
    transition: all 0.3s ease;
}

nav a:hover, nav a.active {
    background-color: #333;
    color: #fff;
    border-radius: 5px;
}

/* Content */
.content {
    flex: 1;
    max-width: 1200px;
    width: 95%;
    margin: 30px auto;
    padding: 30px;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

h1, h2, h3 { color: #333; }
a { color: #007BFF; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Boutons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #ffcc00;
    color: #000;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
    text-align: center;
}

.btn:hover { background-color: #e6b800; color: #000; text-decoration: none; }
.btn-secondary { background-color: #6c757d; color: white; }
.btn-secondary:hover { background-color: #5a6268; color: white; }
.btn-danger { background-color: #dc3545; color: white; }
.btn-danger:hover { background-color: #c82333; color: white;}

/* Tableaux (Tarifs & Panier) */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th { background-color: #ffcc00; color: #000; }
tr:hover { background-color: #f1f1f1; }

/* Responsive Table (Mobile) */
@media screen and (max-width: 600px) {
    table thead { display: none; }
    table tr { display: block; margin-bottom: 15px; border: 1px solid #ddd; border-radius: 5px; }
    table td { display: block; text-align: right; font-size: 0.95em; border-bottom: 1px dotted #ccc; }
    table td::before {
        content: attr(data-label);
        float: left;
        font-weight: bold;
        text-transform: uppercase;
    }
    table td:last-child { border-bottom: none; }
}

/* Formulaires */
form { max-width: 100%; margin-top: 20px; }
.form-group { margin-bottom: 15px; }
label { display: block; margin-bottom: 5px; font-weight: bold; }
input[type="text"], input[type="email"], input[type="tel"], textarea, select {
    width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 4px; box-sizing: border-box;
}
textarea { resize: vertical; min-height: 100px; }
.checkbox-group { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; padding: 10px; background: #f9f9f9; border-radius: 4px; }
.checkbox-group input { margin-left: 10px; width: auto; }

/* Catalogue Produits (Materiel.php) */
.catalogue {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.produit {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    background: #fff;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.produit:hover { transform: translateY(-5px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.produit img { max-width: 100%; height: 180px; object-fit: contain; margin-bottom: 15px; }
.produit h3 { font-size: 1.1em; margin: 10px 0; }
.produit .price { font-size: 1.2em; color: #007BFF; font-weight: bold; margin-bottom: 10px; }

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background-color: #333;
    color: #fff;
    margin-top: auto;
}
footer a { color: #ffcc00; }

/* Notifications */
.alert { padding: 15px; margin-bottom: 20px; border-radius: 4px; }
.alert-success { background-color: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error { background-color: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }