/* Global Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    color: #2c3e50;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #3A75C4;
    padding: 10px 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    top: 0;
    z-index: 1000;
}

.navbar .logo {
    display: flex;
    align-items: center;
}

.navbar .logo img {
    height: 50px;
    width: auto;
    border-radius: 50%;
    margin-right: 10px;
}

.navbar .logo span {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
}

.navbar .nav-button {
    display: flex;
    align-items: center;
}

.navbar .btn-access {
    background-color: #FFD700;
    color: #2c3e50;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}

.navbar .btn-access:hover {
    background-color: #f9a602;
    color: #fff;
}

/* Main Content */
main {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 130px);
    padding: 20px;
}

.form-container {
    background: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 1000;
}

.form-container h1 {
    font-size: 2rem;
    color: #3A75C4;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 5px;
    color: #555;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus {
    border-color: #3A75C4;
    box-shadow: 0 0 5px rgba(58, 117, 196, 0.5);
}

button.btn-primary {
    background-color: #3A75C4;
    color: #fff;
    font-size: 1.1rem;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

button.btn-primary:hover {
    background-color: #2c3e50;
}

.form-container a {
    color: #3A75C4;
    text-decoration: none;
    font-weight: bold;
}

.form-container a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: #fff;
    text-align: center;
    padding: 10px 20px;
    font-size: 0.9rem;
    position: relative;
    z-index: 1000;
}

footer p {
    margin: 0;
}

/* Arrière-plan du carrousel */
.carousel-inner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.carousel-bg {
    object-fit: cover;
    width: 100%;
    height: 100vh;
    filter: brightness(0.5) blur(3px); /* Effet d'assombrissement et flou */
    
}

/* Superposition de contenu */
.container {
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, 0.8); /* Fond semi-transparent */
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* Boutons du carrousel (facultatif) */
.carousel-control-prev,
.carousel-control-next {
    display: none; /* Masque les contrôles si non nécessaires */
}

/* Amélioration des titres */
h1, h2 {
    color: #f8f9fa;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
}

h1 {
    font-family: 'Arial', sans-serif;
    font-weight: bold;
    color: #2c3e50;
}

/* Flash messages */
.container .alert-success {
    background-color: #28a745; /* Vert */
    color: white;
    border: 1px solid #28a745;
    z-index: 1050; /* Assure que l'alerte soit visible par-dessus les autres éléments */
    margin-top: 20px; /* Un peu d'espace au-dessus de l'alerte */
    position: relative;
}

.container .alert-danger {
    background-color: #dc3545; /* Rouge */
    color: white;
    border: 1px solid #dc3545;
    z-index: 1050; /* Assure que l'alerte soit visible par-dessus les autres éléments */
    margin-top: 20px; /* Un peu d'espace au-dessus de l'alerte */
    position: relative;
}

.container .alert {
    padding: 15px;
    border-radius: 5px;
    position: relative;
    margin-top: 20px; /* S'assure qu'il y a de l'espace entre le formulaire et les alertes */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Ajoute un petit effet d'ombre pour que les alertes ressortent */
.container .alert-dismissible {
    cursor: pointer;
}

.container .alert .btn-close {
    background-color: transparent;
    border: none;
    font-size: 1.5rem;
    color: white;
    opacity: 0.8;
}

.container .alert .btn-close:hover {
    opacity: 1;
}

/* Amélioration de la position de l'alerte */
.container {
    position: relative;
    z-index: 10; /* Pour l'ensemble du contenu */
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

