*,
*::before,
*::after {
    box-sizing: border-box;
}
input, textarea {
    font-size: 16px; /* minimum 16px pour éviter zoom */
}
:root {
    --primary: #004d40;
    --secondary: #00796b;
    --bg: #f4f7f6;
    --ia-bubble: #e8f5e9;
    --error-bg: #ffebee;
    --error-text: #c62828;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg);
    margin: 0;
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
    padding: 0px;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: var(--primary);
    color: white;
    height: 100vh;
    position: fixed;
    display: flex;
    flex-direction: column;
    padding: 0px;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.sidebar .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    height: 65px;
    padding: 0 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.main-content {
    margin-left: 245px;
    flex: 1;
    width: 100%;
    padding: 0px;
   
    
}



.header-div{display: block;
border-bottom:  1px solid #ddd;
background-color: white;
 border: 2px solid white;
 padding-left: 20px;
 border-bottom:  1px solid #ddd;
 min-width: 100%;

}

.header-div{display: block;
border-bottom:  1px solid #ddd;
background-color: white;
 border: 2px solid white;
 padding-left: 30px;
 border-bottom:  1px solid #ddd;
 min-width: 100%;
 margin-bottom: 20px;
 height: 75px;
 display: flex;align-items: center;

}
.header-div h1{
    display: block;
    font-size: 1.8em;
}


/* Buttons */
.btn-main {
    background: var(--primary);
    color: white;
    border: none;
    padding: 16px 30px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    width: 100%;
    font-size: 16px;
}

/* Responsive */

    .main-content { margin-left: 0; padding: 0px;
    position: relative;}

    /* Contenu principal */


.main-div {
  
    
    padding: 0px;
    max-width: 900px;
    width: 100%;
     margin: auto;
   margin-top: 20px;
    padding-top: 10px;
}

.header-div{display: block;
border-bottom:  1px solid #ddd;
background-color: white;
 border: 2px solid white;

 border-bottom:  1px solid #ddd;
 min-width: 100%;

}
    .chat-footer { left: 0; right: 0; padding: 15px; }
    #menuButton {
        display: block;
        position: fixed;
        top: 20px;
        right: 20px;
        background: var(--primary);
        color: white;
        border: none;
        padding: 12px;
        border-radius: 50%;
        font-size: 20px;
        z-index: 101;
        cursor: pointer;
    }

@media (min-width: 769px) {
    #menuButton { display: none; }
}



.sidebar button {
    margin: 10px;
    background: white; 
    color: var(--primary);
    border: none;
    padding: 10px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    position: absolute;
    bottom: 5px;
    display: block;
    width: 230px;
    text-align: center;
    font-weight: 800;
}



/* --- Logo & Titres --- */
        .logo-area {
            font-size: 1.7rem;
            font-weight: 800;
            color: white; 
            margin-bottom: 5px;
            letter-spacing: -1.5px;display: flex;align-items: center;
            
            
        }
        .logo-area .color{display: block;color: white;}
        .icon-content{
        font-size: 2.2rem;border-radius: 4px;color: #ffc107;
    }

     

        h2 {
            font-weight: 600;
            font-size: 1.1rem;
            margin-bottom: 35px;
            color: #004d40;
            text-transform: lowercase;
            letter-spacing: 1px;
        }



.main-nav{
    padding: 10px;
}
.main-nav ul {
    list-style: none;
    padding: 0;
}

.main-nav a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.main-nav a:hover,
.main-nav a.active {
    background: rgba(255,255,255,0.15);
}



































#side-menu {
            font-family: Arial, sans-serif;
           
            width: 85%; /* Largeur du menu, comme demandé */
            height: 100%;
            background-color: #004d40;
            color: white;
            padding-top: 20px; /* Espace pour la barre de titre */
            transform: translateX(-100%); /* Masqué hors écran à gauche */
            transition: transform 0.3s ease-in-out; /* Animation douce */
            z-index: 900;
            overflow-y: auto;
            font-family: 'Poppins',sans-serif;
            max-width: 500px;
            background-color: rgba(255, 255, 255, 0.12);
padding-bottom: 100px!important;

        }

        #side-menu.open {
            transform: translateX(0); /* Déplacé à l'écran */
        }

        #side-menu nav ul li a:hover {
            background-color: #555;
        }


         /* --- Logo & Titres --- */
        .logo-area {
            font-size: 1.7rem;
            font-weight: 800;
            color:white;
            margin-bottom: 5px;
            letter-spacing: -1.5px;
            padding: 5px 10px;
            padding-left: 20px;
           
        }

        .logo-area spa { color: #ffc107; }

        h2 {
            font-weight: 600;
            font-size: 1.1rem;
            margin-bottom: 35px;
            color: #004d40;
            text-transform: lowercase;
            letter-spacing: 1px;
        }


        #side-menu {
    position: fixed;
    top: 75;
    left: 0;
    width: 100%;
    max-width: 600px;
    height: 100%;
    background-color: #ffffff;
border-left: 1px solid rgba(0, 0, 125, 0.15);

    color: white;
    padding-top: 20px;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 900;
    overflow-y: auto;
    font-family: 'Poppins', sans-serif;
    padding-bottom: 100px!important;border-top: 1px solid #ddd;
}


#side-menu.open {
    transform: translateX(0);

    
}

#side-menu nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#side-menu nav ul li a {
    display: flex;
    padding: 15px 20px;
    text-decoration: none;
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}



#side-menu nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.12);
}
#side-menu nav ul li a {
  color: #004d40;
}

#side-menu nav ul li a:hover {
  background-color: rgba(0, 0, 125, 0.08);
}

.deconnect-link{
 color: #fff;padding: 10px 20px;border-radius: 8px;
    background-color: #004d40;

     background-color: #004d40;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;width: 185px;text-align: center;
    margin: auto;display: block;
    

}

/* -------------------------- */
        /* 2. STYLES DU MENU SÉLECTEUR (Le nouveau menu) */
        /* -------------------------- */
        #selector-menu-container {
            position: sticky; /* Fixe le menu juste en dessous du header lors du défilement */
            top: 0px; /* Commence juste en dessous du header de 50px */
            width: 100%;
            background-color: #f8f8f8; /* Fond légèrement gris */
        
            z-index: 9; /* Sous le header principal */
            font-family: 'Poppins',sans-serif;
            margin-bottom: 0px;
            padding: 20px;
        }

        #selector-display {
            padding: 15px;
            background-color: white;
            
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-weight: bold;
        }

        
       
        




        
#right-menu-mobile {
    
    

    padding: 20px;
    

    
    /* Permet le défilement si le contenu est trop long */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* Aligner les éléments en haut */
     gap: 20px;/* Espace pour ne pas coller au top-header si celui-ci s'étendait */
z-index: 15;
}


* {box-sizing: inherit;}

#cacher_
{
    height: 80px;
    
}
#menu_nav{
    
    display: none;
    position: absolute;
    left: 0px;top: 84px;
    width: 250px;
    
    background-color: white; box-shadow: 2px 2px 3px grey;
    height: 400px;
    z-index: 1000;position: fixed;
}
@media (max-width:600px) {
    #menu_nav{
    
        
        position: absolute;
        left: 0px;top: 104px;
        
        
        background-color: white; box-shadow: 2px 2px 3px grey;
        height: 300px;
        z-index: 1000;position: fixed;
    }
}
heade
{
    height: 85px;
    
    width: 100%;
    color: white;
    margin: 0px;
    padding: 0px;
    position: fixed;
    z-index: 200;
    background-color: red; /*rgb(0,0,125);*/
	box-shadow: 0px 0px 3px black;

	
}
.span
{
	
	visibility: hidden;
}


#info
{
	width: 100%;
	height: 65px;
	margin-top: 0px;display: flex;
}


.icon_menu{padding-top: 5px; display: flex;justify-content: right; width: calc(100% - 170px);color: rgb(0,0,125);}
.line-icon span{margin-left: 10px;border-radius: 1px; border-bottom: 3px solid white; 
    display: block;width: 30px;margin-bottom: 4px;}
    .line-icon{display: flex;flex-direction: column;justify-content: center;align-items: center;margin-right: 20px;}

#menu-text{
    text-transform: uppercase;display: none;

}


.menu_ordi
{
    
	
    vertical-align: top;
    display: inline-block;
    width:65%;
    height: 90px;
    margin: 0px;
	text-align: right;
	
	margin-left: 2%;
	margin-top: 10px;
    margin-top: 0px;
    margin-right: 0px;
}


.liste-menu li
{
    list-style-type: none;
    display : block;
    font-size: 25px;
    font-family: "Courier New";
    font-weight: bold;
	margin-top: 20px;
    font-style: oblique;
	text-align: left;
	font-weight: bold;
	color: #004d40;
	margin-left: 5px;
	position: relative;
	
}


.user
{
	border: 2px solid white;
	border-radius: 50%;
	padding: 5px;

}
.liste-menu li:hover
{
    color: grey;
	
	text-shadow: 0px 0px 2px black;
}
#page
{
  
  padding: 0px;
 /* font-family: Arial,Helvetica,Courier,Roman,"Times New", Georgia Courrier, serif;*/
  width: 100%;
  margin-top: 0px;
  position: relative;
  bottom: 0px;
  text-align: center;
  margin-bottom: 15px; 
  
}




#right-menu{display: none;}




        #side-menu nav ul {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        #side-menu nav ul li a {
            display: flex;
            padding: 15px 20px;font-family:  'Poppins', sans-serif;
            width: 80%;
            max-width: 300px;
            margin: auto;
            margin-top: 25px;
            text-decoration: none;
            color: white;
            text-align: center;
            background-color: #eee;
            background-color: rgba(0, 77, 64,0.08);
    color: #000;font-weight: 700;font-size: 15px;color: #004d40;

  font-family: 'Poppins', 'Inter', system-ui, -apple-system, sans-serif;


justify-content: center;gap: 10px;align-items: center;

           border-radius: 15px;
           
        }
#side-menu nav ul li a span{
    display: block;
 display: flex;align-items: center;
    
}





header{width: 100%; z-index: 100;position: fixed;height: 75px;
    background-color: #004d40;align-items: center;

border-bottom: 1px solid #ddd;}









#cache_{height: 70px;}





.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    
    height: 75px;
    
    
    
}

.header-top .menu-icon {
    font-size: 24px;
    border: 1px solid red;
}
.header-top .logo {
    
    margin-top: 3px;
}



.sidebar-nav a:hover {
    color: #e68a00;
}





/* Style de l'overlay (le fond sombre) */
.overlay {
    display: none; /* Caché par défaut */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001; /* Doit être au-dessus de la sidebar (1000) */
}

/* Style de la boîte de dialogue */
.dialog-box {
    display: none; /* Caché par défaut */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8); /* Centrage parfait + réduction pour l'animation */
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    z-index: 1002; /* Au-dessus de l'overlay */
    width: 90%;
    max-width: 400px;
    text-align: center;
    opacity: 0;
}

/* Boutons de la modale */
.dialog-buttons {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
}

#confirm-logout {
    background: #c62828;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
}

#cancel-logout {
    background: #ddd;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}
.logo{
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    height: 65px;
    padding: 0 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
        .logo-area {
            font-size: 1.9rem;
            font-weight: 800;
            color: white; 
            margin-bottom: 5px;
            letter-spacing: -1.5px;display: flex;align-items: center;
            
            
        }
        .logo-area span{display: block;}
        .content-icon{
        font-size: 2.4rem;border-radius: 4px;
    }

        .logo-area span { color: #ffc107; }

        h2 {
            font-weight: 600;
            font-size: 1.1rem;
            margin-bottom: 35px;
            color: #004d40;
            text-transform: lowercase;
            letter-spacing: 1px;
        }

.hide-mobile{display: none;}