/* ===== NAVBAR SAIN FRACTAL - Split vert / bourgogne ===== */
.sf-navbar {
    font-family: 'Open Sans', sans-serif;
    padding: 0 !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
}
.sf-navbar > .container-fluid {
    padding: 0 !important;
    display: flex;
    align-items: stretch;
    min-height: 68px;
}
.sf-brand-zone {
    background-color: #6B885F;
    padding: 0 1.4rem;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    min-width: 255px;
}
.sf-nav-zone {
    background-color: #82304A;
    display: flex;
    align-items: center;
    flex: 1;
    padding: 0 0.5rem 0 0.8rem;
    position: relative;
}
.sf-navbar .navbar-brand {
    font-size: 0.95rem;
    letter-spacing: 0.07em;
    color: white !important;
    white-space: nowrap;
    padding: 0; margin: 0;
    font-weight: 800;
}
.sf-navbar .nav-link {
    letter-spacing: 0.07em;
    font-weight: 700;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.88) !important;
    transition: color 0.18s, background 0.18s;
    padding: 0.45rem 0.65rem !important;
    border-radius: 5px;
}
.sf-navbar .nav-link:hover,
.sf-navbar .nav-link.active {
    color: #F5E8DC !important;
    background-color: rgba(255,255,255,0.13);
}
.sf-dropdown {
    background-color: #6b2840 !important;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 0.4rem;
}
.sf-dropdown .dropdown-item {
    color: rgba(255,255,255,0.9) !important;
    font-size: 0.79rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
}
.sf-dropdown .dropdown-item:hover {
    background-color: rgba(255,255,255,0.15);
    color: white !important;
}
.sf-divider { border-color: rgba(255,255,255,0.18) !important; }

/* Recherche */
.sf-search-wrap { position: relative; display: flex; align-items: center; }
.sf-search {
    background-color: rgba(255,255,255,0.14) !important;
    border-color: rgba(255,255,255,0.32) !important;
    color: white !important;
    font-size: 0.8rem;
    border-radius: 20px !important;
    padding-right: 2.2rem !important;
    min-width: 160px;
    transition: all 0.2s;
}
.sf-search::placeholder { color: rgba(255,255,255,0.5); }
.sf-search:focus {
    background-color: rgba(255,255,255,0.22) !important;
    border-color: rgba(255,255,255,0.65) !important;
    box-shadow: none !important;
    min-width: 210px;
}
.sf-search-btn {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: rgba(255,255,255,0.7);
    cursor: pointer; font-size: 0.9rem; padding: 0 4px;
}
/* Liste des résultats de recherche */
.sf-search-results {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    width: 320px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    z-index: 999;
    overflow: hidden;
    max-height: 380px;
    overflow-y: auto;
}
.sf-search-results.visible { display: block; }
.sf-res-item {
    display: flex; align-items: center; gap: 0.7rem;
    padding: 0.65rem 1rem;
    text-decoration: none;
    border-bottom: 1px solid #f0e8e0;
    transition: background 0.15s;
    cursor: pointer;
}
.sf-res-item:last-child { border-bottom: none; }
.sf-res-item:hover { background: #f5e8dc; }
.sf-res-emoji { font-size: 1.4rem; flex-shrink: 0; }
.sf-res-body { flex: 1; min-width: 0; }
.sf-res-label { font-weight: 700; color: #714835; font-size: 0.85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sf-res-desc  { color: #82304A; font-size: 0.73rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sf-res-badge { font-size: 0.68rem; font-weight: 700; padding: 2px 8px; border-radius: 10px; flex-shrink: 0; }
.sf-res-badge.produit    { background: #82304A; color: white; }
.sf-res-badge.evenement  { background: #6B885F; color: white; }
.sf-no-result { padding: 1rem; text-align: center; color: #aaa; font-size: 0.85rem; }

/* Bouton du menu mobile */
.sf-toggler { border-color: rgba(255,255,255,0.5); margin-left: auto; margin-right: 0.5rem; }
.sf-toggler .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Mobile */
@media (max-width: 991.98px) {
    /* Le conteneur passe sur deux lignes : logo et bouton en haut, menu déroulant en dessous */
    .sf-navbar > .container-fluid {
        flex-wrap: wrap;
        background: #82304A;
        align-items: center;
    }
    .sf-brand-zone {
        min-width: unset;
        flex: 1;
        padding: 0.55rem 1rem;
        background: #6B885F;
    }

    /* La zone de navigation reste visible pour que le bouton et le menu déroulant fonctionnent */
    .sf-nav-zone {
        display: flex !important;
        flex: unset;
        background: #82304A;
        padding: 0;
        align-items: center;
    }

    /* Bouton du menu mobile */
    .sf-toggler {
        margin-right: 0.75rem;
    }

    /* Le menu déroulant s'ouvre en pleine largeur sous la navbar */
    .sf-navbar .navbar-collapse {
        background-color: #82304A;
        padding: 0.4rem 1rem 1rem;
        width: 100vw;
        margin-left: -0rem;
        order: 10; /* placé sous le reste de la barre */
        flex-basis: 100%;
    }

    /* Sur mobile, le menu déroulant ne garde que les liens */
    .sf-ouverture { display: none !important; }

    .sf-search-wrap {
        width: 100%;
        margin: 0.5rem 0 0 0 !important;
    }
    .sf-search-wrap form { width: 100%; }
    .sf-search { width: 100% !important; }
}

/* ── Badge événements à venir ── */
.sf-evt-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--rose, #E75E84);
    color: white;
    font-size: 0.6rem;
    font-weight: 800;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    padding: 0 4px;
    margin-left: 4px;
    vertical-align: middle;
    line-height: 1;
    animation: badgePop 0.3s cubic-bezier(.36,.07,.19,.97);
}
@keyframes badgePop {
    0%   { transform: scale(0); }
    70%  { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* ── Widget ouvert/fermé ── */
.sf-ouverture {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.03em;
    cursor: default;
    margin-right: 0.5rem;
}
.sf-ouverture.vert  { background: rgba(160,180,141,0.25); color: #d4f0c8; }
.sf-ouverture.rouge { background: rgba(255,100,100,0.2);  color: #ffb3b3; }
.sf-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}
.sf-ouverture.vert  .sf-dot { background: #7ec86a; animation: pulse-vert 2s ease-in-out infinite; }
.sf-ouverture.rouge .sf-dot { background: #ff7070; }
@keyframes pulse-vert {
    0%,100% { box-shadow: 0 0 0 0 rgba(126,200,106,0.5); }
    50%      { box-shadow: 0 0 0 5px rgba(126,200,106,0); }
}

/* ── Petits téléphones : le titre ne doit jamais pousser le bouton ☰ hors de l'écran ── */
@media (max-width: 991.98px) {
    .sf-brand-zone { min-width: 0; }
    .sf-navbar .navbar-brand {
        display: flex;
        align-items: center;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .sf-navbar .navbar-collapse { width: 100%; }
}
@media (max-width: 420px) {
    .sf-brand-zone { padding: 0.45rem 0.75rem; }
    .sf-navbar .navbar-brand { font-size: 0.82rem; letter-spacing: 0.04em; }
    .sf-navbar .navbar-brand img { width: 38px; height: 38px; }
}
