/* Menu principal desktop — hover capsule navy */

#header #_desktop_top_menu .top-menu[data-depth="0"] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    margin: 0;
    padding: 0;
}

#header #_desktop_top_menu .top-menu[data-depth="0"] > li {
    display: inline-flex;
    margin: 0;
}

#header #_desktop_top_menu .top-menu[data-depth="0"] > li > a[data-depth="0"] {
    display: inline-block;
    padding: 0.45rem 1rem;
    color: #1a2d4a;
    background: transparent;
    border-radius: 999px;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.25;
    transition: background-color 0.2s ease, color 0.2s ease;
}

#header #_desktop_top_menu .top-menu[data-depth="0"] > li > a[data-depth="0"]:hover,
#header #_desktop_top_menu .top-menu[data-depth="0"] > li > a[data-depth="0"]:focus-visible,
#header #_desktop_top_menu .top-menu[data-depth="0"] > li:hover > a[data-depth="0"] {
    background-color: #1a2d4a !important;
    color: #fff !important;
    text-decoration: none !important;
}

/* Sous-menus : conserver le style classique */
#header #_desktop_top_menu .top-menu .sub-menu a[data-depth="0"]:hover,
#header #_desktop_top_menu .top-menu .sub-menu a[data-depth="1"]:hover,
#header #_desktop_top_menu .top-menu .sub-menu a[data-depth="2"]:hover {
    background: transparent;
    color: #24b9d7;
    border-radius: 0;
}

/* Barre de recherche header — pill blanc + bouton rond corail */
#header .elementor-widget-ajax-search.elementor-search--skin-classic .elementor-search {
    width: 100%;
    max-width: 100%;
}

#header .elementor-widget-ajax-search.elementor-search--skin-classic .elementor-search__container {
    background-color: #fff !important;
    border: 1px solid #dbe0e5 !important;
    border-radius: 999px !important;
    min-height: 46px;
    padding: 0.2rem 0.25rem 0.2rem 1rem;
    align-items: center;
    overflow: hidden;
    box-shadow: none;
}

#header .elementor-widget-ajax-search.elementor-search--skin-classic .elementor-search__input {
    color: #1a2d4a;
    padding: 0 0.5rem 0 0 !important;
    font-size: 0.95rem;
    line-height: 1.4;
}

#header .elementor-widget-ajax-search.elementor-search--skin-classic .elementor-search__input::placeholder {
    color: #9aa3ad;
    opacity: 1;
}

#header .elementor-widget-ajax-search.elementor-search--skin-classic .elementor-search__input:focus {
    color: #1a2d4a;
}

#header .elementor-widget-ajax-search.elementor-search--skin-classic .elementor-search__clear {
    padding: 0 0.35rem !important;
    color: #9aa3ad;
}

#header .elementor-widget-ajax-search.elementor-search--skin-classic .elementor-search__submit {
    flex-shrink: 0;
    width: 2.35rem;
    height: 2.35rem;
    min-width: 2.35rem !important;
    padding: 0 !important;
    margin: 0;
    border: 0;
    border-radius: 50% !important;
    background-color: #e8675a !important;
    color: #1a2d4a !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

#header .elementor-widget-ajax-search.elementor-search--skin-classic .elementor-search__submit:hover,
#header .elementor-widget-ajax-search.elementor-search--skin-classic .elementor-search__submit:focus-visible {
    background-color: #d85a4d !important;
    color: #1a2d4a !important;
    transform: scale(1.03);
}

#header .elementor-widget-ajax-search.elementor-search--skin-classic .elementor-search__submit i {
    font-size: 0.95rem;
    color: #1a2d4a;
}

#header .elementor-widget-ajax-search.elementor-search--skin-classic.elementor-search--focus .elementor-search__container {
    border-color: #c5ccd3 !important;
    box-shadow: 0 0 0 2px rgba(26, 45, 74, 0.08);
}
