/* ========================================
   MEGA MENU OLFACTIF - STYLES MINIMALISTES
   Pour le projet Salnea
   Version 4.2.0 - 26 Novembre 2025
   2 styles : Liste simple, Familles + Accords (2 colonnes)
======================================== */

/* ========================================
   BASE COMMUNE
======================================== */

.mega-dropdown-olfactif {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: #fff !important;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    pointer-events: none;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
}

.mega-dropdown-olfactif::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    right: 0;
    height: 20px;
    background: transparent;
}

.nav-item.mega-menu-olfactif:hover .mega-dropdown-olfactif,
.mega-dropdown-olfactif.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.mega-content-olfactif {
    padding: 0;
    background: #fff;
}

/* Colonnes container */
.mega-olfactif-columns {
    display: flex;
}

.mega-column {
    min-width: 280px;
}

/* Header */
.mega-olfactif-header {
    padding: 20px 25px 15px;
    border-bottom: 1px solid #f0f0f0;
}

.mega-olfactif-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #999;
    margin: 0;
}

/* Liste */
.mega-olfactif-list {
    padding: 10px 0;
}

.mega-famille-link,
.mega-accord-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 25px;
    text-decoration: none !important;
    color: #000 !important;
    transition: color 0.3s ease;
}

.mega-famille-link:hover,
.mega-accord-link:hover {
    color: #555 !important;
}

.mega-famille-name,
.mega-accord-name {
    font-size: 14px;
    font-weight: 500;
}

.mega-famille-arrow,
.mega-accord-arrow {
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mega-famille-link:hover .mega-famille-arrow,
.mega-accord-link:hover .mega-accord-arrow {
    opacity: 1;
}

/* Footer */
.mega-olfactif-footer {
    border-top: 1px solid #f0f0f0;
    padding: 0;
}

.mega-all-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 25px;
    text-decoration: none !important;
    color: #000 !important;
    font-size: 13px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.mega-all-link:hover {
    color: #555 !important;
}

.mega-all-link:hover .mega-all-arrow {
    color: #555 !important;
}

.mega-all-arrow {
    font-size: 14px;
    transition: color 0.3s ease;
}

/* Flèche du menu principal */
.nav-item.mega-menu-olfactif > .nav-link::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 6px;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    vertical-align: middle;
    transition: transform 0.3s ease;
}

.nav-item.mega-menu-olfactif:hover > .nav-link::after {
    transform: rotate(180deg);
}

/* ========================================
   STYLE 1 : LISTE SIMPLE (1 colonne)
======================================== */

[data-style="1"] .mega-dropdown-olfactif {
    min-width: 320px;
}

[data-style="1"] .mega-column-accords {
    display: none;
}

/* ========================================
   STYLE 2 : FAMILLES + ACCORDS (2 colonnes)
======================================== */

[data-style="2"] .mega-dropdown-olfactif {
    min-width: 560px;
}

[data-style="2"] .mega-olfactif-columns {
    display: flex;
}

[data-style="2"] .mega-column-familles {
    border-right: 1px solid #f0f0f0;
}

[data-style="2"] .mega-column-accords {
    display: block;
}

/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 768px) {
    .mega-dropdown-olfactif {
        display: none !important;
    }
}

/* ========================================
   PRINT STYLES
======================================== */

@media print {
    .mega-dropdown-olfactif {
        display: none !important;
    }
}
