* {
	margin: 0;
	padding: 0;
}

@font-face {
    font-family: "Police";
    src: url('Roboto-Regular.ttf');
}

body {
	font-size: 14px;
	color: #000000;
	background: #FFFFFF no-repeat;
	font-family: "Police", Arial, sans-serif;
	-webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Modifications pour le menu principal */
.menu {
    width: 100%;
    min-height: 45px; /* Hauteur minimale au lieu de fixe */
    display: flex; /* Utilisation de flexbox pour un meilleur positionnement */
    align-items: center; /* Centrage vertical */
    justify-content: space-between; /* Espacement entre les éléments */
    background-color: #DDDDDD;
    padding: 0 10px; /* Ajout de padding horizontal */
    box-sizing: border-box; /* Pour inclure le padding dans la largeur */
    flex-wrap: wrap; /* Permettre le retour à la ligne sur petits écrans */
    float: none; /* Suppression du float qui peut causer des problèmes avec flexbox */
}

/* Ajustement du titre */
.titre_nidaetude {
    margin-left: 0; /* Suppression de la marge fixe */
    flex: 1; /* Utilisation de l'espace disponible */
    text-align: center; /* Centrage du texte */
    padding: 8px 0; /* Padding vertical */
    float: none; /* Suppression du float qui peut causer des problèmes avec flexbox */
}

/* Ajustement des liens */
.liens {
    display: flex; /* Utilisation de flexbox */
    align-items: center; /* Centrage vertical */
    flex-wrap: wrap; /* Permettre le retour à la ligne */
    margin-right: 0; /* Suppression de la marge fixe */
    margin-top: 0; /* Suppression de la marge fixe */
    float: none; /* Suppression du float qui peut causer des problèmes avec flexbox */
}

.espacement_menu {
    margin: 5px 10px; /* Marge uniforme */
    white-space: nowrap; /* Empêcher le retour à la ligne à l'intérieur des liens */
}

/* Amélioration de la bannière logo */
.banniere_logo {
    width: 100%;
    height: auto; /* Hauteur automatique au lieu de fixe */
    min-height: 75px; /* Hauteur minimale */
    padding: 25px 0 15px 0; /* Ajustement du padding */
    display: flex;
    justify-content: space-between; /* Espacement entre les éléments */
    align-items: center; /* Centrage vertical */
    background-color: #FFFFFF;
    float: none; /* Suppression du float qui peut causer des problèmes avec flexbox */
    flex-wrap: wrap; /* Permettre le retour à la ligne */
}

.decalage_logo {
    margin-left: 5%; /* Pourcentage au lieu de pixels fixes */
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 90%; /* Largeur adaptative */
}

/* Ajustement pour la déconnexion */
.decalage_deconnexion {
    margin-left: 0; /* Suppression de la marge fixe */
    margin-right: 5%; /* Marge en pourcentage */
}

/* Amélioration du fil d'Ariane */
.vous_etes_ici {
    width: 100%;
    padding: 15px 0; /* Padding vertical */
    height: auto; /* Hauteur automatique */
    min-height: 30px; /* Hauteur minimale */
    background-color: #222222;
    float: left;
    margin-bottom: 20px;
}

.texte_vous_etes_ici {
    margin-left: 5%; /* Pourcentage au lieu de pixels fixes */
    display: inline-block; /* Pour éviter les problèmes de débordement */
    color: white;
}

/* Ajustements pour les écrans mobiles */
@media screen and (max-width: 768px) {
    .menu {
        flex-direction: column; /* Empilement vertical sur petits écrans */
        padding: 10px;
    }
    
    .liens {
        width: 100%;
        justify-content: center; /* Centrage horizontal */
        margin-top: 10px;
    }
    
    .titre_nidaetude {
        width: 100%;
        margin: 5px 0;
    }
    
    .espacement_menu {
        margin: 5px;
    }
    
    .decalage_logo {
        flex-direction: column;
        align-items: center;
    }
    
    .decalage_deconnexion {
        margin-top: 10px;
        margin-right: 0;
    }
}

.cadre_principal {
    margin-left: 3%;
    padding: 1%;
    color: #282828;
    width: 92%;
    float: center;
    background-color: white;
}

.titre {
    font-size: 32px;
    letter-spacing: 2.5px;
    margin-left: 0px;
}

.sous_titre {
    font-size: 25px;
    letter-spacing: 2px;
    margin-left: 0px;
}

.rouge {
    color: #AA1917;
}

.rouge2 {
    color: #AA1917;
    font-weight: bold;
}

.vert {
    color: #04B404;
}

.deconnexion {
    color: white;
    background-color: #AA1818;
    height: 23px;
    padding: 5px 10px;
    border-radius: 5px;
    display: inline-block;
    text-align: center;
}

a:link {
    text-decoration: none;
    color: #000000;
    letter-spacing: 1px;
}

a:visited {
    text-decoration: none;
    color: #000000;
    letter-spacing: 1px;
}

a:active {
    text-decoration: none;
    color: #000000;
    letter-spacing: 1px;
}

a:hover {
    text-decoration: none;
    color: #AA1917;
    letter-spacing: 1px;
}

.souligne {
    text-decoration: underline;
}

a.lienblanc {
    text-decoration: underline;
    color: #ffffff;
    letter-spacing: 1px;
}

.decalage_formulaire {
    margin-left: 350px;
}

.centrer {
    text-align: center;
}

.decalage {
    margin-left: 30px;
}

.gras {
    font-weight: bold;
}

.decalage_droite {
    float: right;
    margin-right: 5%;
}

.droite {
    float: right;
    vertical-align: bottom;
}

fieldset {
    padding: 2%;
}

.texte_commentaire {
    position: relative;
    top: -65px;
}

.cadre_gauche {
    float: left;
}

.cadre_droite {
    float: right;
}

.conteneur_gauche {
    float: left;
    width: 50%;
}

.conteneur_droite {
    float: right;
    width: 50%;
}

.conteneur_central {
    float: left;
    width: 100%;
}

th {
    text-align: center;
    padding: 10px;
}

td {
    text-align: center;
    padding: 10px;
}

table {
    border-collapse: collapse;
    font-size: 12px;
}

.bouton_dessin_rouge {
    border: none;
    background-color: #AA1818;
    padding: 5px;
    border-radius: 5px;
    color: white;
    letter-spacing: 1px;
    font-size: 15px;
    border: 1px solid #222222;
}

.bouton_dessin_gris {
    border: none;
    background-image: linear-gradient(#FDFDFD, #E7E7E7);
    padding: 5px;
    border-radius: 4px;
    color: #333333;
    letter-spacing: 1px;
    font-size: 15px;
    border: 1px solid #DDDDDD;
    border-bottom: 1px solid #B7B7B7;
    margin-bottom: 10px;
    cursor: pointer;
}

.bouton_dessin_marron {
    border: none;
    background-image: linear-gradient(#9B6D68, #7B5551);
    padding: 5px;
    border-radius: 4px;
    color: #333333;
    letter-spacing: 1px;
    font-size: 15px;
    border: 1px solid #DDDDDD;
    border-bottom: 1px solid #B7B7B7;
    margin-bottom: 10px;
    cursor: pointer;
}

.decalage_couche {
    margin-left: 30px;
}

.pied {
    position: absolute;
    bottom: 0;
}

.bouton_navigation {
    float: right;
    width: 100%;
    text-align: right;
}

input[type="number"] {
    width: 70px;
}

.ui-wrapper {
    overflow: visible !important;
}

.ui-resizable-handle {
    background: red;
    z-index: 2;
}

.fleche {
    margin: 15px auto 10px;
    height: 2px;
    background: #000;
    width: 60px;
}

.fleche:before {
    content: "";
    border-top: 7px solid rgba(0, 0, 0, 0);
    border-bottom: 7px solid rgba(0, 0, 0, 0);
    border-right: 7px solid #000;
    float: left;
    margin-top: -5px;
    margin-left: -5px;
}

.cotation {
    margin: 15px auto 10px;
    height: 3px;
    background: #000;
    width: 60px;
}

.cotation:before {
    content: "";
    border-top: 7px solid rgba(0, 0, 0, 0);
    border-bottom: 7px solid rgba(0, 0, 0, 0);
    border-right: 7px solid #000;
    float: left;
    margin-top: -5px;
    margin-left: -5px;
}

.cotation:after {
    content: "";
    border-top: 7px solid rgba(0, 0, 0, 0);
    border-bottom: 7px solid rgba(0, 0, 0, 0);
    border-left: 7px solid #000;
    float: right;
    margin-top: -5px;
    margin-right: -5px;
}

.ui-tooltip {
    white-space: pre-line;
}

img {
    border: none;
}

/* menu deroulant */
.menu_langues {
    background-color: #DDDDDD;
    color: #222222;
    font-size: 14px;
    padding: 5px 10px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    margin-left: 10px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.menu_langues:hover {
    background-color: #AAAAAA;
    color: #AA1917;
}

.menu_langues:focus {
    outline: none;
    border: 2px solid #AA1917;
}

/* Améliorations spécifiques pour le formulaire de connexion */
.login-form {
    width: 100%;
    padding: 5px 10px;
    box-sizing: border-box;
}

.login-grid {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    padding: 5px 0;
}

.login-grid label {
    font-weight: bold;
    white-space: nowrap;
}

.login-grid input {
    width: 150px;
    height: 24px;
    padding: 2px 5px;
    border: 1px solid #CCCCCC;
    border-radius: 3px;
    box-sizing: border-box;
}

.login-grid input:focus {
    border-color: #AA1917;
    outline: none;
    box-shadow: 0 0 3px rgba(170, 25, 23, 0.5);
}

.login-grid button {
    margin: 0 5px;
    padding: 4px 12px;
    min-width: 100px;
}

/* Message d'erreur pour la connexion */
.error-message {
    color: #AA1917;
    font-weight: bold;
    padding: 0 10px;
    text-align: center;
    flex-basis: 100%;
    order: -1; /* Pour afficher l'erreur avant les autres éléments */
}

/* Amélioration de la version mobile du formulaire de connexion */
@media screen and (max-width: 768px) {
    .login-form {
        padding: 10px;
    }
    
    .login-grid {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .login-grid label {
        margin-top: 8px;
    }
    
    .login-grid input {
        width: 100%;
    }
    
    .login-grid button {
        width: 100%;
        margin: 10px 0;
        padding: 8px;
    }
    
    /* Ajustement du formulaire à différents niveaux de zoom */
    @media screen and (min-width: 769px) and (max-width: 1100px) {
        .login-grid {
            flex-wrap: wrap;
            justify-content: center;
        }
        
        .login-grid > * {
            margin: 3px;
        }
    }
}
