/* ----------------------------------------- 
----------------- GENERAL ---------------
------------------------------------------ */

body {
    font-family: 'Roboto', 'Arial', sans-serif;
    /* background-color: #f4f4f4; */
    background-color: #323884;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.container {
    text-align: center;
    background-color: #ffffff;
    padding: 40px;
    border-radius: 10px;
    margin: auto;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    overflow: scroll;
}

.container.lg {
    width: 90%;
}

.container.md {
    width: 70%;
}

.container.sm {
    width: 50%;
}

.container.md {
    width: 70%;
}

h1 {
    color: #323884;
}

p {
    color: #666666;
}

/* ----------------------------------------- 
----------------- PAGE 404 ---------------
------------------------------------------ */
h1.erreur404 {
    font-size: 4em;
    color: #323884;
}

p.erreur404 {
    font-size: 1.2em;
}

a.erreur404 {
    display: inline-block;
    padding: 10px 20px;
    background-color: #3dbeff;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
}

a.erreur404:hover {
    background-color: #323884;
}

/* ----------------------------------------- 
----------------- LOGIN FORM ---------------
------------------------------------------ */

.container.login {
    margin-top: 10vh;
    overflow: hidden;
    background-color: #ffffffee;
}

.login-form {
    width: 80%;
    margin: auto;
    margin-top: 10vh;
}

.login-form input {
    margin-bottom: 10px;
    padding: 10px;
    width: 80%;
    border: 1px solid #dddddd;
    border-radius: 5px;
}

.login-form button {
    padding: 10px 20px;
    width: calc(80% + 22px);
    background-color: #323884;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.login-form button:hover {
    background-color: #3dbeff;
}

.forgot-password {
    margin-top: 20px;
}

.forgot-password a {
    color: #3dbeff;
    text-decoration: none;
}

.forgot-password a:hover {
    text-decoration: underline;
}

/*----------- Navbar -------------*/
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffffee;
    color: 333333;
    padding: 10px 20px;
    margin-bottom: 10px;
}

.navbar-logo img {
    height: 50px; /* Ajustez selon la taille de votre logo */
}

.navbar-links a {
    color: #3dbeff;
    text-decoration: none;
    margin: 0 10px;
}

.navbar-links a:hover {
    text-decoration: underline;
}

.navbar-links .user-name {
    margin-left: 20px;
}

/* --------- liste-general --------- */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.data-table thead {
    height: 50px;
}

.data-table th {
    height: 50px; /* Hauteur spécifique pour les entêtes */
    overflow: hidden; /* Empêche le débordement du contenu */
    white-space: nowrap; /* Garde le texte sur une seule ligne */
    text-overflow: ellipsis; /* Ajoute des ellipses si le texte dépasse la largeur disponible */
}

.data-table th, .data-table td {
    border: 1px solid #dddddd;
    padding: 8px;
    text-align: left;
}

.data-table th {
    background-color: #3dbeff;
    color: white;
}

.data-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

.data-table tr:hover {
    background-color: #ddd;
}

/* ----------------------------------------- 
----------------- ADD FORM ---------------
------------------------------------------ */
.add-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 600px; /* Ajustez selon vos préférences */
    margin: auto;
}

.add-form input[type=text],
.add-form input[type=email],
.add-form input[type=date],
.add-form input[type=datetime-local],
.add-form input[type=password],
.add-form select,
.add-form textarea {
    padding: 10px;
    border: 1px solid #dddddd;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.9em;
    border-radius: 5px;
    width: 96%;
    margin: 5px 0;
}

.add-form select {
    width: calc(100%);
}

.add-form .checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: flex-start;
}

.add-form .checkbox-group label {
    font-size: 0.9em;
}

.add-form button {
    padding: 10px 20px;
    background-color: #3dbeff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.add-form button:hover {
    background-color: #323884;
}

fieldset {
    border: 1px solid #ddd;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 5px;
}

legend {
    padding: 0 10px;
    color: #3dbeff;
    font-weight: bold;
}

/* --------- Checkbox customisée --------- */
/* Cache la case à cocher d'origine */
.custom-checkbox input[type="checkbox"] {
    visibility: hidden;
    position: absolute;
}

.custom-checkbox {
    display: flex;
    justify-content: flex-start;
    align-content: middle;
    margin: 5px 0;
}

/* Style pour le label qui apparaîtra comme notre case à cocher */
.custom-checkbox .checkmark {
    display: inline-block;
    width: 16px;
    height: 16px;
    background: #eee;
    margin-right: 10px;
    position: relative;
    border-radius: 4px;
    border: 1px solid #dcdcdc;
}

/* Lorsque la case à cocher est cochée, change le background et ajoute un symbole */
.custom-checkbox input[type="checkbox"]:checked + .checkmark:after {
    content: "";
    position: absolute;
    left: 4px;
    top: 0px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
    background-color: #3dbeff; /* Changez cette couleur pour celle que vous voulez */
    border-radius: 2px;
}

/* Change le fond de la pseudo-element `after` pour afficher la couleur personnalisée */
.custom-checkbox input[type="checkbox"]:checked + .checkmark {
    background-color: #3dbeff; /* Couleur de fond du checkmark quand la checkbox est cochée */
    border-color: #3dbeff; /* Adaptation de la couleur de la bordure si nécessaire */
}


/* ---- Pagination ----*/
.pagination {
    display: flex;
    list-style: none;
    padding: 0;
}

.pagination li {
    margin: 0 5px;
}

.pagination li a {
    display: block;
    padding: 8px 12px;
    text-decoration: none;
    color: #3dbeff;
    border: 1px solid #3dbeff;
    border-radius: 5px;
    background-color: white;
    transition: background-color 0.3s, color 0.3s;
}

/* Style au survol */
.pagination li a:hover {
    background-color: #3dbeff;
    color: white;
}

/* Style pour l'élément actif (si vous pouvez le marquer dans votre HTML) */
.pagination li.active a,
.pagination li.active a:hover {
    background-color: #323884;
    color: white;
    border-color: #323884;
}

/* --- Infobulle ---*/
.info-icon {
    display: inline-block; /* Permet l'application de la largeur et de la hauteur */
    width: 18px; /* Taille du cercle */
    height: 18px; /* Taille du cercle */
    line-height: 20px; /* Centrage vertical du texte dans le cercle */
    text-align: center; /* Centrage horizontal du texte */
    border-radius: 50%; /* Rend le fond complètement rond */
    border: 2px solid #eee; /* Couleur de fond du cercle */
    color: white; /* Couleur du texte */
    font-family: Arial, sans-serif; /* Changement de la police, ajustez selon vos besoins */
    font-size: 12px; /* Taille de la police */
    cursor: help; /* Change le curseur pour indiquer une action d'aide/information */
}

.infobulle {
    display: none;
}

.info-icon:hover .infobulle {
    display: inline-block;
    position: absolute;
    overflow: visible;
    background-color: white;
    border: 1px solid #3dbeff;
    border-radius: 5px;
    padding: 5px;
    color: #3dbeff;
    margin-top: -40px;
    margin-left: -100px;
}

/* ----------------------------------------- 
------------- RECTANGLES ANIMÉS ------------
------------------------------------------ */

.rectangle {
    position: absolute; 
    z-index: -100000;
    width: 60%; /* Largeur initiale ajustée */
    height: 70%; /* Hauteur initiale ajustée */ 
    border-radius: 10px;
    transition: all 5s cubic-bezier(0.5, 0.2, 0.5, 1); /* Transition douce */
    box-shadow: 0 5px 15px rgba(0,0,0,0.3); /* Effet d'ombre portée */
}

#rectangle1 {
    top: 12%;
    left: 15%;
    background-color: #f5cc00; /* Jaune */
}

#rectangle2 {
    top: 15%; /* Chevauchement léger */
    left: 20%;
    background-color: #A9A9A900; /* Gris */
    border: 2px solid #A9A9A9;
    box-shadow: 0 0 20px #3dbeff; /* Effet d'ombre portée */
}
