body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #fafbfc;
}

.m-header {
    width: 100%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

/* Barre du haut */
.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(90deg, #2c3e50 0%, #34495e 60%, #2c3e50 100%);
    padding: 8px 12px 8px;
}

.md-logo {
    display: flex;
    align-items: center;

}
.logo-icon {
    background: #fff;
    color: #2c3e50;
    font-weight: bold;
    font-size: 28px;
    border-radius: 6px;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right:22px;
    padding-right:22px;
}
.logo-title {
    margin-left:12px;
    font-size: 22px;
    color: #fff;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Barre de recherche */
.searchbar {
    display: flex;
    align-items: center;
    flex: 1;
    max-width: 450px;
    margin: 0 30px;
}

.searchbar input {
    background: rgba(255,255,255,0.2);
    border: none;
    outline: none;
    color: #fff;
    padding: 8px 14px;
    font-size: 16px;
    /* arrondi cohérent avec le bouton */
    border-radius: 20px 20px 20px 20px;
    width: 100%;
}

.searchbar input::placeholder {
    color: rgba(255,255,255,0.8);
}

.search-btn {
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    border-radius: 0 20px 20px 0;
    font-size: 18px;
    padding: 8px 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    background: rgba(255,255,255,0.2);
}

/* Barre blanche du bas (menu principal) */
.header-bottom {
    background: #fff;
    box-shadow: 0 1px 7px rgba(0,0,0,0.01);
    position: relative;
	
}

/* conteneur interne : menu + selectbox à droite */
.header-bottom .bottom-inner {
    display: flex;
    align-items: center;   /* centre verticalement tous les enfants (ul + select) */
    padding: 0 30px;
}

/* on garde la compatibilité avec ton ul existant */
.header-bottom ul {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.header-bottom li {
    position: relative;
    padding: 4px 18px 0 6px;
    text-align: center;
    color: #61677c;
    font-size: 15px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 54px;
    transition: background 0.2s, border-bottom 0.2s;
}

.header-bottom li.selected,
.header-bottom li:hover {
    background: #f4f7fa;
    border-bottom: 2px solid #2c3e50;
    color: #2c3e50;
}

.header-bottom li i {
    font-size: 21px;
    color: inherit;
}

/* --- SELECT BOX alignée à droite --- */

/* wrapper poussé à droite avec léger écart */
.bottom-select-wrapper {
    margin-left: auto;     /* pousse la select complètement à droite */
    margin-right: 30px; 
	 
	  /* petit espace du bord droit */
}

/* style de la select */
.bottom-select {
    height: 32px;          /* hauteur contrôlée */
    line-height: 32px;     /* texte centré verticalement dans la select */
    padding: 0 30px 0 10px;
    font-size: 14px;
    border-radius: 999px;
    border: 1px solid #ced4da;
    background-color: #ffffff;
    color: #495057;
    cursor: pointer;

    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;

    background-image:
        linear-gradient(45deg, transparent 50%, #495057 50%),
        linear-gradient(135deg, #495057 50%, transparent 50%);
    background-position:
        calc(100% - 12px) 50%,
        calc(100% - 7px) 50%;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}

.bottom-select:focus {
    outline: none;
    border-color: #2c3e50;
    box-shadow: 0 0 0 2px rgba(44,62,80,0.15);
}

/* Sous-menus cachés par défaut */
.header-bottom .submenu {
    display: none;
    position: absolute;
    top: 54px;
    left: 0;
    min-width: 250px;
    background: #fff;
    box-shadow: 0 6px 16px rgba(35,170,242,0.07);
    border-radius: 0 0 12px 12px;
    overflow: hidden;
    z-index: 1100;
    animation: slideDown 0.3s forwards;
    transition: max-height 0.3s;
    padding-bottom:20px;
}

/* Sous-menu apparaît au survol */
.header-bottom li.has-sub:hover > .submenu {
    display: block;
}

/* Animation SlideDown du sous-menu */
@keyframes slideDown {
    0% {
        max-height: 0;
        opacity: 0;
    }
    100% {
        max-height: 400px;
        opacity: 1;
    }
}

.submenu li a {
    display: block;
    color: #4a5c6e;
    padding: 10px 18px;
    font-size: 15px;
    border-bottom: 1px solid #f4f5f8;
    text-align: left;
    background: #fff;
    transition: background 0.2s;
    text-decoration: none;
}

.submenu li.newx {
    color:#27ae60;
}

.submenu li.newx a {
    color:#27ae60;
}
.submenu li a:hover {
    background: #f4f7fa;
    color: #23aaf2;
}
.submenu li:last-child a {
    border-bottom: none;
}

/* Icône chevron tournante si besoin */
.bi-chevron-down {
    transition: transform 0.3s ease;
}
a[aria-expanded="true"] > .bi-chevron-down {
    transform: rotate(180deg);
}

/* Icônes header (dont cloche) */
.header-icons {
    display: flex;
    align-items: center;
    gap: 18px;
}

.header-icons .icon {
    color: #fff;
    font-size: 22px;
}

/* BOUTON CLOCHE (correction: un seul point) */
.notif-bell {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    position: relative;
    color: #fff;
    font-size: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.notif-bell .notif {
    position: absolute;
    top: -6px;
    right: -10px;
    background: #ff4d4f;
    color: #fff;
    border-radius: 12px;
    padding: 1px 6px;
    font-size: 11px;
    font-weight: 600;
}

.notif-svg {
    display: block;
}

/* Liste notifications */
.notif-wrapper {
    position: relative;
}

.notif-list {
    display: none;
    position: absolute;
    right: 0;
    top: 32px;
    min-width: 260px;
    background: #ffffff;
    color: #212529;
    list-style: none;
    margin: 0;
    padding: 8px 0;
    border-radius: 0.5rem;
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
    overflow: hidden;
    z-index: 1200;
}

.notif-list li {
    padding: 8px 14px;
    border-bottom: 1px solid #dee2e6;
    font-size: 14px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.notif-list li:last-child {
    border-bottom: none;
}

.notif-list li:hover {
    background: #f1f3f5;
}
