/**
 * Styles pour la barre de navigation selon le design Figma
 */

/* Masquer le menu principal (menu-wrap) - on travaille uniquement sur top-wrap */
.menu-wrap {
    display: none !important;
}

/* Masquer complètement le menu par défaut (top-left et top-right) */
#top-wrap #top-left,
#top-wrap #top-right {
    display: none !important;
}

/* Masquer le #top qui ne contient pas #top-menu (menu par défaut) */
#top-wrap #top:not(:has(#top-menu)) {
    display: none !important;
}

/* Pour les navigateurs sans support :has(), masquer directement via structure */
#top-wrap #top .span8:not(.top-menu-content-wrapper *),
#top-wrap #top .span4:not(.top-menu-content-wrapper *) {
    display: none !important;
}

/* Masquer directement le top-wrap qui contient top-left (menu par défaut) */
#top-wrap:has(#top-left) {
    display: none !important;
}

/* Masquer tous les top-wrap sauf celui qui contient #top-menu */
#top-wrap:not(:has(#top-menu)) {
    display: none !important;
}

/* Approche agressive : masquer le premier top-wrap s'il n'a pas #top-menu */
body>#top-wrap:first-child:not(:has(#top-menu)),
body>#top-wrap:nth-child(1):not(:has(#top-menu)) {
    display: none !important;
}

/* Masquer aussi via nth-of-type */
#top-wrap:first-of-type:not(:has(#top-menu)),
#top-wrap:nth-of-type(1):not(:has(#top-menu)) {
    display: none !important;
}

/* Masquer le menu dans #menu s'il n'est pas dans le top-wrap */
#menu:not(#top-menu #menu) {
    display: none !important;
}

/* S'assurer qu'il n'y a qu'un seul menu dans le top-wrap */
#top-wrap .wpcasa-menu-main~.wpcasa-menu-main {
    display: none !important;
}

/* Header wrap */
.header-wrap {
    background-color: #FFFFFF;
}

.header-wrap .wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Barre de navigation principale */
.menu-wrap {
    background-color: #F8F8F8;
    padding: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.menu-wrap .wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 40px;
    box-sizing: border-box;
}

#menu {
    background-color: transparent;
    padding: 16px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

/* Header */
#header {
    background-color: #FFFFFF;
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo - fond gris foncé avec lettres orange et blanches */
#header-left {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

#header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

#logo {
    background-color: #343A40;
    border-radius: 6px;
    padding: 10px 14px;
    display: inline-block;
}

#logo img {
    display: block;
}

/* Si le logo est du texte, styliser les lettres */
#logo-text {
    background-color: #343A40;
    border-radius: 6px;
    padding: 10px 14px;
    display: inline-block;
    color: #FFFFFF;
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.2;
}

/* Conteneur du menu et des boutons */
.menu-content-wrapper {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    width: 100%;
    max-width: 100%;
    gap: 32px;
    min-width: 0;
    box-sizing: border-box;
}

/* Liens de navigation */
.menu-content-wrapper>.wpcasa-menu-main {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    grid-column: 1;
    min-width: 0;
    overflow: hidden;
}

.wpcasa-menu-main {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.wpcasa-menu-main .sf-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    flex-wrap: nowrap;
    min-width: 0;
}

.wpcasa-menu-main .sf-menu li {
    margin: 0;
    position: relative;
    flex-shrink: 0;
    white-space: nowrap;
}

.top-menu-content-wrapper .wpcasa-menu-main .sf-menu a {
    color: #212529;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 500;
    font-family: 'Jost', sans-serif;
    padding: 8px 0;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.wpcasa-menu-main .sf-menu a {
    color: #212529;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    padding: 8px 0;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

/* Hover removed - click-based interaction only */

/* Chevron pour les menus déroulants */
.wpcasa-menu-main .sf-menu .sf-with-ul::after {
    content: "▼";
    font-size: 0.65rem;
    margin-left: 4px;
    color: #212529;
}

/* Boutons à droite dans la barre de navigation */
.menu-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    grid-column: 2;
}

/* Bouton "Contactez-nous" */
.header-contact-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #222222;
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

.header-contact-btn:hover {
    background-color: #000000;
    color: #FFFFFF;
}

/* Bouton téléphone */
.header-phone-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: #FFFFFF;
    color: #212529;
    text-decoration: none;
    border: 1px solid #212529;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.header-phone-btn:hover {
    background-color: #F8F8F8;
    color: #212529;
}

.header-phone-btn svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: #212529;
    stroke-width: 2;
}

/* Menu Top - Design Figma */
#top-wrap {
    background-color: #FFFFFF;
    border: 10px solid rgba(255, 255, 255, 0.4);
    border-left: none;
    background-clip: padding-box;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 5;
}

/* Logo dans le top-wrap - taille de la barre, sans background */
#top-wrap #top-logo.top-logo-block {
    flex-shrink: 0;
    background: none;
    border-radius: 0;
    padding: 0;
    display: inline-block;
    position: relative;
    z-index: 10;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    /* Prend toute la hauteur de la barre */
}

#top-wrap #top-logo.top-logo-block a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    height: 100%;
    width: 100%;
    position: relative;
    z-index: 101;
    cursor: pointer;
}

#top-wrap #top-logo.top-logo-block img {
    display: block;
    height: 120px;
    /* Taille ajustée pour un débordement équilibré */
    max-height: 120px;
    width: auto;
    object-fit: contain;
    position: absolute;
    /* Sort du flux pour déborder librement */
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    z-index: 100;
}

#top-wrap .container {
    max-width: 1400px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    /* Aligné sur .homepage-search-wrapper */
    box-sizing: border-box;
}

#top-wrap .wrap {
    border-bottom: 1px solid #EDEDED;
}

#top {
    padding: 0;
    /* Supprimé pour laisser le logo remplir la hauteur */
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    /* Augmenté de 60px à 80px */
}

#top-menu {
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.top-menu-content-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 100%;
    gap: 0;
    min-width: 0;
    box-sizing: border-box;
    position: relative;
    min-height: 80px;
    /* Aligné sur la nouvelle hauteur du logo */
    height: 100%;
}

/* Conteneur pour logo + menu centrés verticalement */
.top-menu-content-wrapper>#top-logo.top-logo-block,
.top-menu-content-wrapper>.wpcasa-menu-main,
.top-menu-content-wrapper>.top-menu-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

/* Logo à gauche, centré verticalement avec le menu, parfaitement calé sur le bord du container */
.top-menu-content-wrapper>#top-logo.top-logo-block {
    flex-shrink: 0;
    width: 200px;
    /* Réserve l'espace pour le logo absolu */
    margin-right: 32px;
    /* Espacement avec le menu */
    position: relative;
    height: 100%;
    align-self: center;
    display: flex;
    align-items: center;
    overflow: visible;
    z-index: 100;
}

/* Menu aligné à gauche pour être proche du logo */
.top-menu-content-wrapper>.wpcasa-menu-main {
    justify-content: flex-start;
    flex: 1;
    min-width: 0;
    overflow: visible;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
}

/* Boutons à droite avec espacement harmonieux */
.top-menu-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-shrink: 0;
    margin-left: 0;
    /* Pas de margin-left auto, on utilise le margin-right du menu */
    height: 100%;
}

/* Assurer que les boutons sont centrés verticalement */
.top-menu-actions .header-contact-btn,
.top-menu-actions .header-phone-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

.top-menu-content-wrapper .wpcasa-menu-main {
    width: auto;
    max-width: none;
    min-width: 0;
}

.top-menu-content-wrapper .wpcasa-menu-main .sf-menu {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
    min-width: 0;
    /* Conteneur invisible pour le menu (borderbox) */
    background: transparent;
    border: none;
}

.top-menu-content-wrapper .wpcasa-menu-main .sf-menu li {
    margin: 0;
    position: relative;
    flex-shrink: 0;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.top-menu-content-wrapper .wpcasa-menu-main .sf-menu a {
    color: #212529;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 500;
    font-family: 'Jost', sans-serif;
    padding: 8px 0;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    white-space: nowrap;
    height: 100%;
    line-height: 1.5;
    cursor: pointer;
}

/* Removed hover color change - menu is click-based only */


/* Chevron icon for menu items with dropdowns */
.top-menu-content-wrapper .wpcasa-menu-main .sf-menu .menu-item-has-children>a::after {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-left: 6px;
    background-image: url('data:image/svg+xml;utf8,<svg width="8" height="8" viewBox="0 0 8 8" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1.5 3L4 5.5L6.5 3" stroke="%23080D16" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transition: transform 0.2s ease;
}

/* Rotate chevron when dropdown is open */
.top-menu-content-wrapper .wpcasa-menu-main .sf-menu .menu-item-has-children.open>a::after {
    transform: rotate(180deg);
}

/* Remove old text chevron */
.top-menu-content-wrapper .wpcasa-menu-main .sf-menu .sf-with-ul::after {
    display: none;
}

/* Boutons à droite - déjà défini plus haut avec position absolute */

/* Styles pour les sous-menus (dropdown) - Design cohérent avec le menu */
.top-menu-content-wrapper .wpcasa-menu-main .sf-menu li {
    position: relative;
}

/* Change from hover to click-based with .open class */
.top-menu-content-wrapper .wpcasa-menu-main .sf-menu li.open>.sub-menu {
    display: block !important;
    visibility: visible !important;
    opacity: 1;
}

.top-menu-content-wrapper .wpcasa-menu-main .sf-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 250px;
    max-width: 350px;
    background-color: #FFFFFF !important;
    background-clip: padding-box !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: none !important;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    box-shadow: 0px 24px 40px rgba(0, 0, 0, 0.08);
    padding: 0;
    margin-top: 24px;
    /* Décalage pour sortir du top-wrap si celui-ci a du padding */
    z-index: 9999;
    list-style: none;
    display: none;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.top-menu-content-wrapper .wpcasa-menu-main .sf-menu .sub-menu li {
    margin: 0;
    padding: 0;
    white-space: normal;
    display: block;
}

.top-menu-content-wrapper .wpcasa-menu-main .sf-menu .sub-menu a {
    display: block;
    padding: 10px 24px;
    color: #000000 !important;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    font-family: 'Jost', sans-serif;
    transition: all 0.2s ease;
    border-left: none;
    white-space: normal;
    line-height: 1.4;
}

/* Hover removed from submenu links - click-based only */

/* Supprimer le chevron dans les sous-menus */
.top-menu-content-wrapper .wpcasa-menu-main .sf-menu .sub-menu .sf-with-ul::after {
    display: none;
}

/* Animation removed - submenus only open on click */

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ========================================
   RESPONSIVE MOBILE MENU
   ======================================== */

/* Hamburger Button - Hidden on desktop */
.mobile-menu-toggle {
    display: none;
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    z-index: 10000;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: #F9FAFB;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background-color: #080D16;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Animation du hamburger en X quand actif */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translateY(7px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translateY(-7px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Menu Container */
.mobile-menu-container {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 85%;
    max-width: 400px;
    background: #FFFFFF;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: -4px 0 40px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 24px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    height: 100%;
    max-height: 100vh;
}

.mobile-menu-overlay.active .mobile-menu-container {
    transform: translateX(0);
}

/* Logo dans le menu mobile */
.mobile-menu-logo {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #F1F3F5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-logo img {
    height: 60px;
    max-height: 60px;
    width: auto;
    object-fit: contain;
}

/* Bouton de fermeture */
.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 32px;
    color: #080D16;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    transition: color 0.2s ease;
}

.mobile-menu-close:hover {
    color: #F87518;
}

/* Mobile Menu Navigation */
.mobile-menu-nav {
    display: block !important;
    visibility: visible !important;
    width: 100% !important;
    opacity: 1 !important;
    background: transparent !important;
}

.mobile-menu-nav ul.mobile-menu-nav-ul {
    display: flex !important;
    visibility: visible !important;
    flex-direction: column;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

.mobile-menu-nav li {
    display: block !important;
    visibility: visible !important;
    margin: 0;
    padding: 0;
    width: 100%;
    position: relative;
    border-bottom: 1px solid #F1F3F5;
    background: transparent !important;
}

.mobile-menu-nav li>a {
    display: flex !important;
    visibility: visible !important;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    color: #080D16 !important;
    text-decoration: none;
    font-size: 1.15rem;
    font-weight: 500;
    font-family: 'Jost', sans-serif;
    transition: color 0.2s ease;
    word-break: break-word;
    background: transparent !important;
    width: 100%;
}

.mobile-menu-nav li>a:hover {
    color: #F87518 !important;
}

/* Chevron pour les items avec sous-menu */
.mobile-menu-nav .menu-item-has-children>a::after {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-left: 10px;
    background-image: url('data:image/svg+xml;utf8,<svg width="10" height="10" viewBox="0 0 10 10" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.5L5 6.5L8 3.5" stroke="%23080D16" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transition: transform 0.3s ease;
}

.mobile-menu-nav .menu-item-has-children.open>a::after {
    transform: rotate(180deg);
}

/* Sous-menus en accordéon */
.mobile-menu-nav-ul .sub-menu {
    display: none !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 0 0 20px !important;
    background: transparent !important;
    position: static !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: auto !important;
    box-shadow: none !important;
    margin-top: 0 !important;
    transform: none !important;
    border-left: 1px solid #F1F3F5 !important;
}

.mobile-menu-nav-ul .menu-item-has-children.open>.sub-menu {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.mobile-menu-nav-ul .sub-menu li {
    border-bottom: 1px solid #F1F3F5 !important;
    margin: 0;
    padding: 0;
    width: 100%;
}

.mobile-menu-nav-ul .sub-menu li:last-child {
    border-bottom: none !important;
}

.mobile-menu-nav-ul .sub-menu a {
    display: flex !important;
    align-items: center;
    justify-content: flex-start !important;
    gap: 12px;
    padding: 12px 0;
    color: #4B5563 !important;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 450;
    transition: all 0.2s ease;
    background: transparent !important;
}

/* Tiret à gauche pour les items de sous-menu */
.mobile-menu-nav-ul .sub-menu a::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 1px;
    background-color: #4B5563;
    opacity: 0.6;
}

.mobile-menu-nav-ul .sub-menu a:hover {
    color: #F87518 !important;
}

.mobile-menu-nav-ul .sub-menu a:hover::before {
    background-color: #F87518;
    width: 10px;
    /* Petit effet d'allongement au survol */
    transition: width 0.2s ease;
}

/* Boutons d'action dans le menu mobile */
.mobile-menu-actions {
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid #F1F3F5;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-menu-actions .header-contact-btn,
.mobile-menu-actions .header-phone-btn {
    width: 100%;
    max-width: 100%;
    text-align: center;
    justify-content: center;
    padding: 14px 16px;
    font-size: 1rem;
    white-space: normal;
    box-sizing: border-box;
    display: flex !important;
    gap: 8px;
    line-height: 1.2;
}

.mobile-menu-actions .header-phone-btn span {
    display: inline !important;
}

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

/* Tablette et Mobile - Afficher le hamburger */
@media (max-width: 1024px) {

    /* Afficher le bouton hamburger */
    .mobile-menu-toggle {
        display: flex;
    }

    /* Afficher l'overlay mobile */
    .mobile-menu-overlay {
        display: block;
    }

    /* Masquer le menu desktop */
    .top-menu-content-wrapper>.wpcasa-menu-main {
        display: none !important;
    }

    /* Ajuster le top-wrap sur mobile */
    #top-wrap {
        border: none !important;
        margin-top: 0 !important;
    }

    #top {
        min-height: 70px;
        padding: 0;
        display: flex;
        align-items: center;
    }

    #top-menu {
        display: flex;
        align-items: center;
        width: 100%;
    }

    /* Ajuster le logo sur mobile */
    .top-menu-content-wrapper {
        justify-content: space-between;
        align-items: center;
        display: flex;
        width: 100%;
    }

    .top-menu-content-wrapper>#top-logo.top-logo-block {
        width: auto;
        margin-right: 0;
        display: flex !important;
        position: relative;
        overflow: visible;
    }

    .top-menu-content-wrapper>#top-logo.top-logo-block img {
        height: 60px;
        max-height: 60px;
        position: relative !important;
        transform: none !important;
        left: auto !important;
        top: auto !important;
    }

    /* MASQUER les boutons d'action du header sur mobile/tablette */
    .top-menu-content-wrapper>.top-menu-actions {
        display: none !important;
    }
}

/* Mobile uniquement - Simplifier encore plus */
@media (max-width: 768px) {

    /* Logo reste à 60px sur mobile */
    .top-menu-content-wrapper>#top-logo.top-logo-block img {
        height: 60px !important;
        max-height: 60px !important;
    }

    /* Les boutons sont déjà masqués du header, pas besoin de règles supplémentaires */

    /* Ajuster le container du top-wrap - réduire le padding */
    #top-wrap .container {
        padding: 0 8px !important;
    }

    #top-wrap .wrap {
        border-bottom: none;
    }

    /* Menu mobile plus large sur petit écran */
    .mobile-menu-container {
        width: 100%;
        /* Full width matches base container */
        max-width: 100%;
        border-radius: 0;
        /* Optional: remove border radius since it fills screen */
        box-sizing: border-box !important;
        /* Force padding inside width */
        right: 0;
        /* Ensure strictly anchored */
        left: 0;
    }
}

/* Très petit mobile */
@media (max-width: 480px) {
    .mobile-menu-container {
        width: 100%;
        max-width: 100%;
    }

    .top-menu-content-wrapper>#top-logo.top-logo-block img {
        height: 60px !important;
        max-height: 60px !important;
    }

    .mobile-menu-toggle {
        /* Utiliser position absolute avec top 50% pour centrage vertical */
        position: absolute !important;
        top: 50% !important;
        right: 16px !important;
        transform: translateY(-50%) !important;
    }
}

/* Ajustements pour la zone entre 1111px et 1350px (Compact) */
@media (min-width: 1111px) and (max-width: 1350px) {
    .top-menu-content-wrapper>#top-logo.top-logo-block {
        margin-right: 16px;
        width: 180px;
    }

    .top-menu-content-wrapper .wpcasa-menu-main .sf-menu {
        gap: 16px;
    }

    .top-menu-content-wrapper .wpcasa-menu-main .sf-menu a {
        font-size: 0.95rem;
    }

    .top-menu-actions {
        gap: 8px;
    }

    .header-contact-btn,
    .header-phone-btn {
        padding: 8px 14px;
        font-size: 0.85rem;
    }
}

/* Ajustements agressifs pour la zone critique entre 1025px et 1110px (Ultra-Compact) */
@media (min-width: 1025px) and (max-width: 1110px) {
    #top-wrap .container {
        padding: 0 10px !important;
    }

    .top-menu-content-wrapper>#top-logo.top-logo-block {
        margin-right: 8px;
        width: 140px;
    }

    .top-menu-content-wrapper .wpcasa-menu-main .sf-menu {
        gap: 10px;
    }

    .top-menu-content-wrapper .wpcasa-menu-main .sf-menu a {
        font-size: 0.88rem;
    }

    /* Masquer le texte du téléphone si vraiment trop serré, ou simplement réduire */
    .header-phone-btn span {
        font-size: 0.8rem;
    }

    .top-menu-actions {
        gap: 6px;
    }

    .header-contact-btn,
    .header-phone-btn {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
}

/* Styles TinyNav supprimés car TinyNav est désactivé */

.top-menu-content-wrapper .wpcasa-menu-main .sf-menu li,
.top-menu-content-wrapper .wpcasa-menu-main .sf-menu li a {
    background-color: transparent !important;
}

.top-menu-content-wrapper .wpcasa-menu-main .sf-menu .sub-menu li,
.top-menu-content-wrapper .wpcasa-menu-main .sf-menu .sub-menu li a {
    background-color: #FFFFFF !important;
}

.top-menu-content-wrapper .wpcasa-menu-main .sf-menu .sub-menu a:hover {
    background-color: rgba(248, 117, 24, 0.05) !important;
}