/* ==================================================
   RESET & BASE
================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: url('../images/login.jpg') no-repeat center center fixed;
    background-size: cover;
    color: #fff;
}

/* ==================================================
   HEADER / NAVBAR
================================================== */
header {
    position: relative;
    background: linear-gradient(135deg, #006d77, #00afb9);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 10;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar .nav-link,
.navbar-brand {
    color: white;
    font-weight: 700;
}

/* Hamburger menu mobile */
#menuToggle {
    display: none;
}

.menu-label {
    background: white;
    color: #006d77;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
}

#menu {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.5s ease;
    background-color: rgba(0, 77, 85, 0.8);
    position: absolute;
    top: 90%;
    right: 0;
    padding: 0.5rem 1rem;
    z-index: 999;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
}

#menu a {
    text-decoration: none;
    color: white;
    font-weight: 600;
    margin: 0.3rem 0;
    padding: 0.5rem;
    border-radius: 50px;
}

#menuToggle:checked+.menu-label+#menu {
    max-height: 500px;
    opacity: 1;
    transform: translateY(0);
}

#menu a:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

/* ==================================================
   FORMULAIRE / CONTAINER
================================================== */
.container {
    max-width: 900px;
    margin: 2rem auto;
}

h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.2rem;
    font-weight: 900;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

form {
    background: linear-gradient(135deg, rgba(0, 109, 119, 0.3), rgba(0, 175, 185, 0.3));
    backdrop-filter: blur(12px);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

form:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

/* Labels et champs */
.form-label {
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.3rem;
}

.form-control,
.form-select {
    height: 50px;
    font-size: 1rem;
    padding: 0.6rem 1rem;
    border: none;
    border-radius: 12px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Placeholder */
.form-control::placeholder,
.form-select::placeholder {
    color: #ffd166;
    font-style: italic;
    opacity: 1;
}

/* Focus */
.form-control:focus,
.form-select:focus {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 10px rgba(255, 209, 102, 0.7);
    outline: none;
    color: #fff;
}

/* ==================================================
   SELECT / TYPE DE COMPTE
================================================== */
.form-select {
    appearance: none;
    /* retire le style natif */
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3E%3Cpath fill='white' d='M2 0L0 2h4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 0.65rem auto;
}

/* Placeholder option vide */
.form-select option[value=""] {
    color: #ffd166;
    font-style: italic;
}

/* Options classiques */
.form-select option {
    color: #000;
    background: #fff;
}

/* Checkbox CGU */
.form-check-input {
    accent-color: #ffddd2;
}

/* Messages d’erreur */
.invalid-feedback {
    color: #ff4b2b;
    font-weight: 600;
}

/* ==================================================
   BOUTONS
================================================== */
button,
.btn {
    border-radius: 50px;
    padding: 0.6rem 2rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-light {
    background: rgba(2, 190, 17, 0.5);
    color: white;
    border: none;
}

.btn-primary {
    background: rgba(2, 37, 190, 0.411);
    color: white;
    border: none;
}

.btn-light:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 109, 119, 0.5);
}

.btn-dark {
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
}

.btn-dark:hover {
    background: rgba(0, 0, 0, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* ==================================================
   RESPONSIVE
================================================== */
@media (max-width: 768px) {
    form {
        padding: 1.5rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .form-control,
    .form-select {
        height: 45px;
        font-size: 0.95rem;
    }

    .btn {
        width: 100%;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    h2 {
        font-size: 1.5rem;
    }
}
