/* ------------------------------
   RESET + BASE
--------------------------------*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
    background: #05070b;
    color: #e5e9f0;
    line-height: 1.5;
}

/* ------------------------------
   SIDEBAR (NAVIGATION)
--------------------------------*/
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 240px;
    height: 100vh;
    background: #0b0f18;
    border-right: 1px solid #1f8bff55;
    padding: 25px 18px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: #1f8bff;
    text-align: center;
    margin-bottom: 10px;
}

.sidebar ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar a {
    color: #cfd8ff;
    text-decoration: none;
    font-size: 17px;
    padding: 10px 12px;
    display: block;
    border-radius: 6px;
    transition: 0.2s;
}

.sidebar a:hover {
    background: #1f8bff22;
    color: #ffffff;
    text-shadow: 0 0 6px #1f8bff;
}

/* ------------------------------
   CONTENU PRINCIPAL
--------------------------------*/
.content {
    margin-left: 260px; /* espace pour éviter que ça colle */
    padding: 40px;
    min-height: 100vh;
    transition: margin-left 0.2s ease;
}

h1 {
    font-size: 32px;
    margin-bottom: 15px;
    color: #ffffff;
}

h2 {
    font-size: 26px;
    margin-bottom: 10px;
    color: #dbe4ff;
}

p {
    margin-bottom: 12px;
    color: #d8dee9;
}

/* ------------------------------
   FORMULAIRES
--------------------------------*/
form {
    background: #0b0f18;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #1f8bff33;
    max-width: 450px;
    box-shadow: 0 0 12px #1f8bff22;
}

label {
    display: block;
    margin-bottom: 6px;
    font-size: 15px;
    color: #cfd8ff;
}

input[type="email"],
input[type="password"],
input[type="text"],
textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 18px;
    border-radius: 6px;
    border: 1px solid #2e3440;
    background: #05070b;
    color: #e5e9f0;
    font-size: 15px;
    transition: 0.2s;
}

textarea {
    min-height: 120px;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #1f8bff;
    box-shadow: 0 0 6px #1f8bff55;
}

/* ------------------------------
   BOUTONS
--------------------------------*/
button {
    display: block;          /* évite que les boutons se collent horizontalement */
    width: 100%;             /* bouton pleine largeur */
    padding: 12px;
    border-radius: 6px;
    border: none;
    background: #1f8bff;
    color: white;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: 0.2s;
    margin-bottom: 18px;     /* ESPACEMENT ENTRE LES BOUTONS */
}

button:last-child {
    margin-bottom: 0;        /* évite un espace inutile sous le dernier bouton */
}

button:hover {
    background: #4aa6ff;
    box-shadow: 0 0 10px #1f8bff55;
}

/* ------------------------------
   ALERTES
--------------------------------*/
.error {
    background: #3b0b10;
    border-left: 4px solid #ff4b5c;
    padding: 12px;
    margin-bottom: 15px;
    color: #ffb3bd;
    border-radius: 6px;
}

.success {
    background: #0b3b1a;
    border-left: 4px solid #2eff6b;
    padding: 12px;
    margin-bottom: 15px;
    color: #b5ffd0;
    border-radius: 6px;
}

/* ------------------------------
   FOOTER
--------------------------------*/
footer {
    margin-top: 40px;
    padding: 20px 30px;
    border-top: 1px solid #1f8bff33;
    color: #7f8c9f;
    font-size: 14px;
    text-align: center;
}

/* ------------------------------
   RESPONSIVE
--------------------------------*/
@media (max-width: 900px) {
    .sidebar {
        width: 200px;
    }
    .content {
        margin-left: 220px;
    }
}

@media (max-width: 700px) {
    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid #1f8bff55;
    }
    .content {
        margin-left: 0;
        padding: 20px;
    }
}
