/* =========================================
   NAVIGATION PRINCIPALE
========================================= */
.sam_nav {
    background: #8b6f5d;
    direction: rtl;
    font-family: "Cairo", sans-serif;	
	font-size: 14px;
    z-index: 99999 !important;
}

/* =========================================
   MENU PRINCIPAL (UL + LI + A)
========================================= */
.sam_ul {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
	gap: 0 !important;
    padding: 0 !important;
	height: 40px;
}

/* Liens du menu */
.sam_ul > li > a {
    color: #fff;
    display: block;
    text-decoration: none !important;
    font-weight: normal !important;
    border-bottom: 3px solid transparent; 
    transition: 0.3s;
}

/* Hover (désactivé volontairement) */
.sam_ul > li > a:hover {
    /* background: #61493b; */
}

/* Bouton actif */
.sam_active > a {
    border-bottom: 3px solid #ffffff !important;
}

/* Hover bordure (désactivé) */
.sam_ul > li:not(.sam_active) > a:hover {
    /* border-bottom: 3px solid #ffffff; */
}

/* Icône dans les liens */
.sam_ul > li > a i {
    color: #fff;
}

/* Texte sans wrap */
.sam_nav ul li > a {
    white-space: nowrap;
	font-weight: normal !important;
    text-decoration: none !important;
}

/* =========================================
   LIGNES VERTICALES
========================================= */
.sam_vertical_line {
    border-left: 1px solid #ffffff55;
    height: 28px;
}

/* Version doublée (garde ton code intact) */
.sam_vertical_line {
    /* height: 20px !important; */
    /* margin: 0 !important; */
}

/* =========================================
   SOUS MENUS (conteneur)
========================================= */
.sam_deroulant {
    position: relative;
}

.sam_sous {
    list-style: none;
    position: absolute;
    right: 0;
    top: 42px;
    min-width: 210px;
	background: #fbf9f7;
    border-radius: 10px;
    display: none;
}

/* Hover (désactivé volontairement) */
.sam_deroulant:hover .sam_sous {
    /* display: block; */
}

/* Version compacte (tes lignes commentées) */
.sam_sous {
    /* padding: 3px 0 !important; */
    top: 40px !important;
}

/* =========================================
   SOUS MENU TEXTE
========================================= */
.sam_sub_text a {
    color: #44352e;
    display: block;
}

.sam_sub_text a:hover {
    /* background: #f4eeea; */
}

/* Version compacte */
.sam_sub_text a {
    padding: 0px 20px !important;
	font-size: 12px;
	text-align: center;
	margin: 0px auto;
}

/* =========================================
   SOUS MENU IMAGES
========================================= */
.sam_sub_img a {
    display: flex;
}

.sam_sub_img img {
    border-radius: 10px;
    transition: .3s;
	width: 100%;
}

.sam_sub_img img:hover {
    /* opacity: 0.85; */
}

/* =========================================
   Z-INDEX GLOBAL
========================================= */
.sam_nav,
.sam_nav ul,
.sam_nav ul li {
    z-index: 9999;       /* passe toujours devant le contenu */
}

.sam_nav ul .sous {
    position: absolute;
    z-index: 99999;      /* le sous-menu passe au-dessus de tout */
}

/* =========================================
   DEUXIÈME BLOC IDENTIQUE (conservé intact)
========================================= */

.sam_nav {
    background: #8b6f5d;
    direction: rtl;
    font-family: "Cairo", sans-serif;
}

.sam_ul {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sam_ul > li > a {
    color: #fff;
    padding: 12px 22px;
    display: block;
    text-decoration: none;
    font-weight: 600;
}

.sam_ul > li > a:hover {
    /* background: #61493b; */
}

/* VERTICAL LINES */
.sam_vertical_line {
    border-left: 1px solid #ffffff55;
    height: 28px;
    margin: 0 6px;
}

/* SUBMENUS */
.sam_deroulant {
    position: relative;
}

.sam_sous {
    list-style: none;
    position: absolute;
    right: 0;
    top: 42px;
    min-width: 210px;
    background: #fbf9f7;
    border-radius: 10px;
    padding: 10px 0;
    display: none;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.sam_deroulant:hover .sam_sous {
    display: block;
}

/* TEXT ONLY */
.sam_sub_text a {
    padding: 10px 15px;
    color: #44352e;
    font-weight: 600;
    display: block;
}

.sam_sub_text a:hover {
    /* background: #f4eeea; */
}

/* IMAGE ONLY */
.sam_sub_img a {
    display: flex;
    justify-content: center;
    padding: 1px;
}

.sam_sub_img img {
    width: 90%;
    border-radius: 10px;
    transition: .3s;
}

.sam_sub_img img:hover {
    opacity: 0.85;
}

.sam_nav ul li > a {
    white-space: nowrap;
}

.sam_nav,
.sam_nav ul,
.sam_nav ul li {
    z-index: 9999;
}

.sam_nav ul .sous {
    position: absolute;
    z-index: 99999;
}

.sam_nav {
    z-index: 99999 !important;
}
