/* GENERAL */
:root {
    --bg-color: #121212;
    --text-color: #f0f0f0;
    --container-color: #1c1c2c93;
    --card-bg: #1e1e2f;
    --primary: #6a5acd;
    /* SlateBlue */
    --primary-light: #9370DB;
    /* MediumPurple */
    --accent: #7B68EE;
    /* MediumSlateBlue */
    --border-color: #2e2e3e;
}

html,
body {
    height: 100%;
    margin: 0;
}




/*FOOTER*/

footer {
    background-color: var(--card-bg);
    color: var(--text-color);
    padding: 1rem;
    text-align: center;
    padding-top: 50px;

}

footer h5 {
    color: var(--primary-light);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

footer a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover,
footer a:focus {
    color: var(--primary);
    text-decoration: underline;
}

footer hr {
    border-color: var(--border-color);
    margin: 1.5rem 0;
}

footer .copyright {
    color: var(--primary);
    font-weight: 500;
    text-align: center;
    margin-top: 1rem;
}

.wrapper {
    min-height: 100vh;
    /* prend toute la hauteur de l'écran */
    display: flex;
    flex-direction: column;
}


/* FORMS */

form.form.login {
    background-color: white;
}

/* MAIN */

main {
    flex: 1;
}

/*Maintenance*/

#maintenance {
    height: 100vh;
    background-color: #121212;
    color: #f0f0f0;
    font-size: 50px;
}

/* SECTION GÉNÉRALE */
section {
    min-height: 100vh;
    background: linear-gradient(135deg, #1e1e2f, #2a225f);
    /* Bleu-violet */
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 20px;
    color: #f0f0f0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-bottom: 45px;

}

/* SECTIONS SPÉCIFIQUES (plus d'image de fond) */
section#section-accueil {
    background: linear-gradient(135deg, #1e1e2f, #3b2f75);
}

section#section-presentation {
    background: linear-gradient(135deg, #1e1e2f, #2a225f);
}


/* ANIMATIONS */

@media (min-width: 992px) {
    .navbar .dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
    }

    .navbar .dropdown-menu {
        animation: fadeInDown 0.4s;
    }

}

/* BOOTSTRAP */

.btn-add-projet {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #007bff;
    color: white;
    font-size: 32px;
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transition: 0.3s;
}

.btn-add-projet:hover {
    background-color: #0056b3;
}

.card-img-top {
    height: 200px;
    object-fit: cover;
    object-position: center;
}

.card-link {
    text-decoration: none;
    color: inherit;
}

.card-link:hover {
    text-decoration: none;
    color: inherit;
}



.projets-container {

    width: 100%;
    background-color: var(--container-color);
    border-radius: 10px;
    padding: 20px;
    overflow-y: visible;
    min-height: 80vh;
    /* 80% de la hauteur de la fenêtre */



    /* Ajoute cette ligne : */

}

.top-bar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 20px;
    margin-top: 30px;
}

/* Bouton + flottant en bas à droite */
#btnAjoutProjet {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 30px;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1050;
    /* au-dessus des modals */
}

.image-projet {
    height: 650px;
    width: 100%;
    object-fit: contain;
    object-position: center;
    background-color: #f8f9fa;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.6);
    /* fond sombre semi-transparent */
    border-radius: 50%;
    /* cercle */
    padding: 10px;
    /* espace intérieur */
    width: 40px;
    height: 40px;
    background-size: 60% 60%;
    /* taille de l’icône flèche */
}

.carousel-control-prev,
.carousel-control-next {
    width: auto;
}

.modal .dropdown-menu {
    z-index: 1200 !important;
    position: absolute !important;
}

.card,
.modal-content,
.form-control,
.form-select {
    background-color: var(--card-bg);
    color: var(--text-color);
    border-color: var(--border-color);
}

.card-title,
.modal-title,
label {
    color: var(--primary-light);
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--accent);
}

.btn-primary:hover {
    background-color: var(--accent);
    border-color: var(--primary-light);
}

input[type="radio"]:checked+label,
input[type="checkbox"]:checked+label {
    color: var(--accent);
}

a {
    color: var(--primary-light);
}

a:hover {
    color: var(--accent);
}

/* Dropdown sombre */


/* Texte des items */
.dropdown-menu a.dropdown-item {
    color: #ddd;
}

/* Hover sur items */
.dropdown-menu a.dropdown-item:hover {
    background-color: #444;
    color: white;
}



/* Bouton prénom utilisateur plus gros */
.btn-user {
    font-weight: 600;
    font-size: 1.1rem;
    padding: 6px 16px;
    color: #eee;
    background-color: #444;
    border: none;
    border-radius: 0.3rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-user:hover,
.btn-user:focus {
    background-color: #666;
    color: #fff;
}