*,
*::before,
*::after {
    box-sizing: border-box;
}
input, textarea {
    font-size: 16px; /* minimum 16px pour éviter zoom */
}
:root {
    --primary: #004d40;
    --secondaire:#ffc107;
    --secondary: #00796b;
    --bg: #f4f7f6;
    --ia-bubble: #e8f5e9;
    --error-bg: #ffebee;
    --error-text: #c62828;
}



:root {
            --primary: #004d40; /* Vert profond GloraHub */
            --secondary: #00796b; /* Vert plus clair */
            --accent: #ffc107; /* Or pour l'impact */
            --bg-light: #f4f7f6; /* Fond de page gris très clair */
            --text-main: #1e293b; /* Texte principal presque noir */
            --text-muted: #64748b; /* Texte secondaire gris */
            --white: #ffffff;
            --shadow: 0 10px 30px rgba(0,0,0,0.08);
        }

        * {
            margin: 0; padding: 0; box-sizing: border-box;
            font-family: 'Poppins', sans-serif; /* Utilisation de Poppins pour tout le site */
        }

       
  body {
            font-family: 'Poppins', sans-serif;
           
          
            margin: 0;
            padding: 0px;
          
            min-height: 100vh;
          

            margin: 0;
   
    min-height: 100vh;
    overflow-x: hidden;
    padding: 0px;

      padding-bottom: 0px; /* Espace pour la nav-bar */
      background-color: var(--bg); /* Très propre, utilisé par Google et Bootstrap */
      
    
      background-color: #F2F4F7!important;
      
            color: var(--text-main);
            line-height: 1.6;
    }


/* 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;
}


.main-content {
   
    width: 100%;
    padding: 0px;margin: auto;
    /*max-width: 950px;*/
   
    
} 



/* 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 */
@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); position: fixed; }
    .main-content { margin-left: 0; padding: 20px; }

    /* Contenu principal */


.main-div {
  
    
    padding: 0px;
    max-width: 900px;
    width: 100%;
     margin: auto;
   margin-top: 20px;
    padding-top: 10px;
}


    .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{
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    height: 65px;
    padding: 0 10px;
    
    padding: 0px;
}

        .logo-area {
            font-size: 2.1rem;
            font-weight: 900;
            color: #004d40;
            margin:0px;
            letter-spacing: -3.5px;display: flex;align-items: center;
            width: calc( 100% - 400px);
            width: 200px;
            height: 70px;
          
            
        }
         .logo-area img{width: 200px;height: auto;}
        .logo-area span{display: block;color: #ffc107;}
        .content-icon{
        font-size: 2.5rem;border-radius: 4px;
    }

     

        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);
}

























.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%;
 border-top: none!important;

}

.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;justify-content: space-between;
 position: fixed;
 z-index: 100;

}
.header-div h1{
    display: block;
    font-size: 1.8em;
}

#cache_{height: 75px;}


.header{width: 100%; z-index: 100;height: 75px;
    background-color: #004d40;align-items: center;

border-bottom: 1px solid #ddd;}


.header {
    width: 100%;
    z-index: 100;
    height: 75px;
    background-color: #004d40;
   
    align-items: center;
    border-bottom: 1px solid #ddd;
    
    /* MODIFICATIONS ICI */
    position: fixed; 
    top: 0;
    left: 0;
    transition: transform 0.3s ease-in-out; /* Animation fluide */
}

/* Cette classe sera ajoutée via JavaScript quand on descend */
.header-hidden {
    transform: translateY(-100%);
}





.profil-image{width: 45px;height: 45px;border: 2px solid #004d40;border-radius: 60px;}

.nav-link{
height: 75px;display: flex;gap: 20px;
align-items: center;padding-right: 20px;
width: 280px;}

.nav-link a{display: flex;height: 70px;align-items: center;}

/* - Boutons (Adaptés au Vert) --- */
.btn-primary {
    display: flex;
    align-items: center;
    
    width: 170px;
    padding: 8px 0px;
    max-height: 40px;
    border-radius: 15px;
    font-weight: 600;
    font-size: 1rem;
    background-color: var(--primary);
    transition: background-color 0.3s, opacity 0.3s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);color: white;
    font-family: 'Poppins', sans-serif;
    justify-content: center;text-align: center;
     background: rgba(15, 23, 42, 0.9);
}

a{text-decoration: none;}

.btn-primary:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
   color: white;
}













.hide-desktop{display: none;}





.dialog-box.active {
    display: block;
    transform: translate(-50%, -50%) scale(1);
}

/* --- CONTENU --- */
.dialog-box h4 {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
}

.dialog-box p {
    font-size: 15px;
    color: #64748b;
    margin-bottom: 25px;
    line-height: 1.5;
}

/* --- BOUTONS --- */
.dialog-buttons {
    display: flex;
    gap: 12px;
}

.dialog-buttons a, 
.dialog-buttons button {
    flex: 1;
    padding: 14px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-family: 'Poppins', sans-serif;
}

/* Bouton Confirmer (Rouge/Danger pour déconnexion) */
#confirm-logout {
    background: #e11d48;
    color: white;
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.2);
}

#confirm-logout:hover {
    background: #be123c;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(225, 29, 72, 0.3);
}

/* Bouton Annuler */
#cancel-logout {
    background: #f1f5f9;
    color: #475569;
}

#cancel-logout:hover {
    background: #e2e8f0;
    color: #1e293b;
}

/* --- ANIMATION D'APPARITION --- */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.dialog-box.active {
    animation: fadeInScale 0.3s forwards;
}






/* 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;
}





  .nav-bar {
            
            display: none;
        }

        .nav-bar-desktop{
            
            
            
            width: 400px;
            max-width: 400px;
            
           
            
            
            display: flex;
            justify-content: space-around;
        

            margin: auto;
            margin-top: 30px;
         
        }
        .icon-nav{margin-left: 25px;
        height: 75px;display: flex;align-items: baseline;}


        .nav-item { color : rgba(15, 23, 42, 0.9); font-size: 1.4rem;
        width: 60px;text-align: center;padding-bottom: 5px; }
        .nav-item.active { opacity: 1; color: white; border: 2px solid rd;}
 
        .btn-action button,#confirmDeleteLink{padding: 10px 15px;border-radius: 10px;}





/* --- SYSTÈME D'AIDE --- */
        .help-overlay {
            position: fixed;
            top: 0; left: 0; width: 100%; height: 100%;
           
            backdrop-filter: blur(1px);
            z-index: 1999;
            display: none;
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        .help-overlay.active { display: block; opacity: 1; }

        .help-sheet {
            position: fixed;
            bottom: -100%; left: 0; width: 100%; height: 75%;
            background: var(--primary);
            z-index: 2000;
            transition: bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            border-radius: 30px 30px 0 0;
           
            color: white;
            display: flex;
            flex-direction: column;
           
        }
        .help-sheet.active { bottom: 0; }

        .help-content {
            
            max-width: 700px;margin: auto;
            padding: 20px 50px; display: flex; flex-direction: column; align-items: center; height: 100%; }
        .help-handle { width: 40px; height: 5px; background: rgba(255,255,255,0.3); border-radius: 10px; margin-bottom: 20px; }

        .help-scroll-area {
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
            padding: 0 15px;
            text-align: center;
        }

        .imagination-box {
            margin: 20px 0;
            padding: 15px;
            background: rgba(255, 255, 255, 0.08);
            border-radius: 15px;
            border: 1px dashed var(--accent);
        }

        .btn-close-help {
            background: var(--light-green);
            color: var(--primary);
            border: none;
            padding: 15px 40px;
            border-radius: 15px;
            font-weight: 700;
            width: 85%;
            margin-top: auto;
            margin-bottom: 20px;
            cursor: pointer;
        }

        .info-box-trigger {
            padding: 12px 20px;
            background: white;
            border: 1px dashed var(--primary);
            border-radius: 15px;
            color: var(--primary);
            font-size: 0.85rem;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 10px;
        }
   /* --- BOUTON DÉCONNEXION PC MODERNE --- */
.logout {
    background-color: transparent !important; /* Fond transparent par défaut */
    border: 1.5px solid #cbd5e1; /* Bordure grise discrète */
    color: #64748b !important; /* Texte gris doux */
    width: auto !important; /* Largeur s'adapte au texte */
    padding: 8px 20px !important;
    border-radius: 12px !important; /* Arrondi plus moderne */
    box-shadow: none !important;
    transition: all 0.3s ease;
    gap: 10px;
}

.logout i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

/* Effet au survol : Devient "Danger" */
.logout:hover {
    border-color: #e11d48 !important;
    color: #e11d48 !important;
    background-color: #fff1f2 !important; /* Très léger fond rouge */
}

.logout:hover i {
    transform: translateX(3px); /* Petit mouvement de l'icône */
}








        /* --- LAYOUT GRID --- */
@media (min-width: 1000px) {
    .main-layout {
        display: grid;
        grid-template-columns: 1fr 500px 1fr; /* 3 colonnes */
        gap: 8px;
        max-width: 100% !important; /* On élargit pour le PC */
       background-color: #F2F4F7!important;
        justify-content: center;
    }
}


        /* --- LAYOUT GRID --- */
@media (max-width: 999px) {
    .main-layout {
        display: grid;
        grid-template-columns: 280px 1fr 280px; /* 3 colonnes */
        gap: 30px;
        max-width: 1100px !important; /* On élargit pour le PC */
        background-color: #F2F4F7!important;
        justify-content: center;
    }
}

/* --- COLONNES LATÉRALES --- */
.side-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* --- COLONNES LATÉRALES FIXES AU SCROLL --- */
@media (min-width: 900px) {
   
}
@media (min-width: 900px) {
    .side-column {


         position: sticky; /* L'astuce est ici */
        top: 80px;       /* Distance par rapport au haut de l'écran (ajuste selon ton menu top) */
        height: fit-content; /* Important : la colonne ne doit pas faire toute la page pour coller */
        display: flex;
        flex-direction: column;
        gap: 20px;
        position: sticky;
         /* Aligné sous ton header-div de 75px + marge */
        
        /* --- L'ASTUCE POUR LE SCROLL INDÉPENDANT --- */
        height: calc(100vh - 90px); /* Hauteur de l'écran moins la marge du haut */
        overflow-y: auto;           /* Permet de scroller si le contenu déborde */
        padding-right: 5px;         /* Petit espace pour la barre de scroll */
        
        display: flex;
        flex-direction: column;
        gap: 20px;border-radius: 20px;
        padding: 10px;
        background-color: #ffffff;
    }

    /* --- OPTIONNEL : Rendre la barre de scroll invisible ou discrète --- */
    .side-column::-webkit-scrollbar {
        width: 4px;
    }
    .side-column::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 10px;
    }
}


.profile-cover {
    height: 70px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
}

.avatar-side {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid white;
    margin-top: -40px;
    object-fit: cover;
}

.mini-stat {
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    font-size: 0.85rem;
}

/* Cartes Droite */
.info-card {
    background: white;
    padding: 20px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.info-card h4 { margin: 0 0 10px; font-size: 0.95rem; color: var(--primary); display: flex; align-items: center; gap: 10px; }

.count-badge {
    background: #fee2e2;
    color: #ef4444;
    padding: 5px 12px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 700;
}

.ads-box {
    background: var(--primary);
    color: white;
    border: none;
}
.ads-box small { opacity: 0.7; letter-spacing: 1px; }

/* Masquer sur mobile */
@media (max-width: 899px) {
    .hide-mobile { display: none; }
    .main-layout { display: block; }
}

.center-column{border-radius: 20px;
padding: 20px;background-color: #ffffff;
padding-bottom: 100px;}


   








        /* --- HEADER & ZONE DE PROFIL --- */
        .header-card {
            background: var(--white);
           
          
           
            position: relative;
           
        }

        .cover-photo {
            height: 80px;
           
            width: 100%;
            position: relative;
        }

        /* Effet de motif discret sur la couverture */
        .cover-photo::after {
            content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
            background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgdmlld0JveD0iMCAwIDQwIDQwIj48ZyBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxnIGZpbGw9IiNmZmYiIGZpbGwtb3BhY2l0eT0iMC4wNSI+PHBhdGggZD0iTTAgMGg0MHY0MEgwVjB6bTIwIDIwaDIwdjIwSDIWMjB6TTAgMjBoMjB2MjBIMFYyMHoyMCAwaDIwdjIwSDIwVjB6Ii8+PC9nPjwvZz48L3N2Zz4=');
            opacity: 0.8;
        }

        .profile-essentials {
            text-align: center;
            margin-top: -70px; /* Fait monter la photo sur la couverture */
            padding: 0 20px;
            position: relative; z-index: 10;
        }

        .avatar-container {
            position: relative; display: inline-block;
        }

        .profile-img {
            width: 130px; height: 130px;
            border-radius: 50%; /* Squircle moderne */
            border: 6px solid var(--white);
            object-fit: cover;
            box-shadow: 0 10px 25px rgba(0,0,0,0.2);
            background: var(--white);
        }

        .verify-badge {
            position: absolute; bottom: 8px; right: 2px;
            background: #3b82f6; color: white;
            width: 32px; height: 32px;
            border-radius: 50%;
            display: flex; align-items: center; justify-content: center;
            border: 3px solid var(--white); font-size: 0.9rem;
            box-shadow: 0 4px 10px rgba(0,0,0,0.15);display: none;
        }

        .user-name {
            margin-top: 15px; font-size: 1.4rem; font-weight: 800;
            color: var(--primary); letter-spacing: -1.2px;
        }

        .user-tagline {
            font-size: 0.95rem; color: var(--text-muted);
            max-width: 550px; margin: 5px auto 15px;
            font-weight: 400;
        }

        /* --- COMPTEURS D'IMPACT --- */
        .impact-bar {
            display: grid; grid-template-columns: repeat(3, 1fr);
            max-width: 600px; margin: 25px auto 0;
            background: #f1f5f9; padding: 10px; border-radius: 25px;
            border: 1px solid #e2e8f0;
        }

        .stat-box { text-align: center; border-right: 1px solid #cbd5e1; }
        .stat-box:last-child { border-right: none; }

        .stat-num {
            display: block; font-size: 1.2rem; font-weight: 800;
            color: var(--primary); line-height: 1.2;
        }

        .stat-label {
            font-size: 0.75rem; text-transform: uppercase;
            letter-spacing: 1.5px; color: var(--text-muted);
            font-weight: 600; margin-top: 3px;
        }










/* Sidebar Droite */
.status-tag {

   
    background: #c8e6c9; color: #2e7d32;
    padding: 4px 10px; border-radius: 20px; font-size: 0.8em;
}
.avail-header { display: flex; justify-content: space-between; align-items: center; }

.rdv-counter {
    background: #f1f3f4;
    padding: 15px;
    border-radius: 10px;
    margin: 15px 0;font-size: 0.9rem;
}
.progress-bar {
    background: #ddd; height: 8px; border-radius: 4px; margin-top: 10px;
}
.progress-fill {
    background: var(--primary-blue); width: 100%; height: 100%; border-radius: 4px;
}

.btn-outline {
    width: 100%; padding: 10px; border: 1px solid #ddd;
    background: #e0e0e0; border-radius: 5px; cursor: pointer;
}

      .right-sidebar{padding: 20px;
        
    color: #333;} 
    
    /* Style de la carte Avis */
.reviews-card {
    padding: 20px;
    border: 1px solid #f0f0f0;
}

.reviews-card h3 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    color: #00234e;
}

.small-text {
    font-size: 0.85rem;
    color: #757575;
    margin-bottom: 20px;
    line-height: 1.4;
}

/* Container des deux stats */
.reviews-stats-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Item individuel */
.review-stat-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #f1f4f8;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.review-stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* Cercles des icônes */
.icon-circle {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-right: 15px;
}

.msg-bg {
    background-color: #e3f2fd; /* Bleu clair */
    color: #1976d2;
}

.prog-bg {
    background-color: #f3e5f5; /* Violet clair */
    color: #7b1fa2;
}

/* Texte des stats */
.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.2rem;
    font-weight: 800;
    color: #333;
}

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #9e9e9e;
    font-weight: 600;
}




       
.notification-container {
    position: relative;
    display: inline-block;
    
}

.badge-notif {
    position: absolute;
    top: 12px;      /* Ajuste la hauteur */
    right: -5px;    /* Ajuste la position latérale */
    background-color: #ff4757; /* Rouge alerte */
    color: white;
    font-size: 11px;
    font-weight: bold;
    min-width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    border: 1px solid white; /* Pour détacher le badge de l'icône */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Optionnel : faire vibrer le badge s'il y a des notifs */
.badge-notif {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-3px);}
    60% {transform: translateY(-1px);}
}
        

 .action-btn.like i { color: #ff2d55; }


 .badge-planning{
     position: absolute;
    top: -10px;      /* Ajuste la hauteur */
    right: 3px;    /* Ajuste la position latérale */
    background-color: #ff4757; /* Rouge alerte */
    color: white;
    font-size: 11px;
    font-weight: bold;
    min-width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    border: 1px solid white; /* Pour détacher le badge de l'icône */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Optionnel : faire vibrer le badge s'il y a des notifs */
.badge-planning {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-3px);}
    60% {transform: translateY(-1px);}
}
        

 .action-btn.like i { color: #ff2d55; }



