/* 1. BASE & TYPOGRAPHIE */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f8fafc;
    /* Ton choix préféré */
    margin: 0;
    padding: 0;
    color: #333;
}

/* 2. HEADER & NAVIGATION (Hamburger inclus) */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 50;
}

.logo img {
    max-width: 120px;
    height: auto;
}

/* Le menu mobile (Nav) */
.hamburger {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    border: none;
    background: transparent;
    gap: 5px;
    z-index: 100;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    transition: 0.3s;
}

.nav-menu {
    position: fixed;
    top: 0;
    right: -250px;
    width: 250px;
    height: 100vh;
    background-color: #f9fafb;
    padding-top: 80px;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    z-index: 90;
}

.nav-menu.active {
    right: 0;
}

.nav-menu a {
    padding: 15px 25px;
    text-decoration: none;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
    font-weight: 600;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* 3. COMPOSANTS (Cartes, Boutons, Switch) */
.bg-white.rounded-3xl {
    transition: all 0.2s ease;
}

.bg-white.rounded-3xl:active {
    transform: translateY(2px);
    box-shadow: none;
}

/* Switch & Notifications (Gardés tels quels car uniques) */
.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 24px;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: #2196F3;
}

input:checked+.slider:before {
    transform: translateX(16px);
}

/* 4. FORMULAIRES & MODALES */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    border: 1px solid #ccc;
    padding: 0.75rem;
    border-radius: 0.5rem;
    box-sizing: border-box;
}

.form-group button {
    width: 100%;
    background-color: #4f46e5;
    /* Indigo plus moderne */
    color: white;
    padding: 0.75rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s;
}

.form-group button:hover {
    background-color: #4338ca;
}

/* 5. RESPONSIVE */
@media (max-width: 768px) {
    /* Vos ajustements mobiles ici */
}

/* 6. MODALES (Correction pour l'affichage) */

/* L'arrière-plan noir transparent */
.modal {
    display: none;
    /* CACHÉ PAR DÉFAUT */
    position: fixed;
    z-index: 2000;
    /* Doit être au-dessus du header (z-index 50) */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    /* Fond sombre */
    backdrop-filter: blur(4px);
    /* Petit effet de flou moderne */
    overflow: auto;
}

/* La boîte blanche au centre */
.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 2rem;
    border-radius: 1.5rem;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    animation: modalFadeIn 0.3s ease-out;
}

/* Animation d'apparition */
@keyframes modalFadeIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Le bouton X pour fermer */
.close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: #9ca3af;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    color: #111827;
}