/* ------------------------------------------
   RESET GLOBAL & STYLE BASE
------------------------------------------ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    background: linear-gradient(to bottom right, #f8faff, #eef1f7);
    color: #1a1d23;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
body.modal-open {
    overflow: hidden !important;
    display: block !important;
}

/* ------------------------------------------
   NAVBAR MODERNE
------------------------------------------ */
header {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 18px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header h1 {
    font-size: 22px;
    font-weight: 700;
    color: #0b63ff;
    letter-spacing: 0.5px;
}

.nav-links a {
    margin-left: 25px;
    text-decoration: none;
    color: #333;
    font-size: 15px;
    font-weight: 500;
    transition: 0.25s ease;
}

.nav-links a:hover {
    color: #0b63ff;
    text-shadow: 0 0 4px rgba(11,99,255,0.4);
}

/* ------------------------------------------
   CONTAINER PAGE
------------------------------------------ */
.container {
    width: 90%;
    max-width: 1100px;
    margin: 40px auto;
}

/* ------------------------------------------
   TITRES
------------------------------------------ */
h2 {
    font-size: 26px;
    font-weight: 700;
    color: #0b63ff;
    margin-bottom: 20px;
}

/* ------------------------------------------
   CARD ULTRA CLEAN
------------------------------------------ */
.card {
    background: #ffffff;
    padding: 28px;
    border-radius: 18px;
    box-shadow: 0 10px 35px rgba(0,0,0,0.08);
    transition: 0.35s ease;
    margin-bottom: 28px;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 45px rgba(0,0,0,0.12);
}

/* ------------------------------------------
   FORMULAIRES PRO
------------------------------------------ */
form {
    background: #f0ebeb;
    padding: 30px;
    border-radius: 18px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
    animation: fadeIn 0.5s ease;
}

label {
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
}

input, select, textarea {
    width: 100%;
    padding: 14px 16px;
    background: #f4f6f9;
    border-radius: 12px;
    border: 1px solid #d7dde7;
    margin-bottom: 20px;
    transition: 0.25s;
    font-size: 15px;
}

input:focus, textarea:focus, select:focus {
    border-color: #0b63ff;
    background: #ffffff;
    outline: none;
    box-shadow: 0 0 0 4px rgba(11,99,255,0.18);
}

/* ------------------------------------------
   BOUTONS PREMIUM
------------------------------------------ */
.btn {
    padding: 13px 24px;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    font-size: 15px;
    transition: 0.25s ease;
}

.btn-primary {
    background: linear-gradient(to right, #0b63ff, #0073ff);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(to right, #0058e6, #0069f0);
    box-shadow: 0 6px 20px rgba(11,99,255,0.4);
    transform: translateY(-2px);
}

.btn-danger {
    background: linear-gradient(to right, #eb3939, #dd3838);
    color: white;
}

.btn-danger:hover {
    box-shadow: 0 6px 20px rgba(88, 50, 50, 0.897);
    transform: translateY(-2px);
}

/* ------------------------------------------
   ALERTES STYLÉES
------------------------------------------ */
.alert {
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-weight: 600;
}

.alert-success {
    background: #ecfdf3;
    border-left: 6px solid #0f9d58;
    color: #0f9d58;
}

.alert-danger {
    background: #ffe6e6;
    border-left: 6px solid #d92d20;
    color: #b42318;
}

/* ------------------------------------------
   FOOTER BAS & DISCRET
------------------------------------------ */
footer {
    margin-top: auto;
    text-align: center;
    padding: 12px 0;
    font-size: 14px;
    color: #7c828c;
    border-top: 1px solid rgba(0,0,0,0.06);
}

/* ------------------------------------------
   ANIMATIONS CLASSES
------------------------------------------ */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ------------------------------------------
   RESPONSIVE
------------------------------------------ */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 12px;
    }
    .nav-links a {
        margin-left: 0;
        margin: 6px;
    }
    .container {
        width: 92%;
    }
}