/* Sécurité : cacher le menu mobile si la fenêtre est trop grande */
@media (max-width: 980px) {
    /* Masquer le menu desktop sur mobile */
    .hr-main-menu { display: none !important; }
}


@media (min-width: 981px) {
    .hr-mobile-menu-toggle,
    .hr-mobile-menu-overlay { display: none !important; }
}

/* ==========================================================================
   MENU MOBILE - STYLES
   Affiché uniquement en dessous de 980px
   ========================================================================== */

/* Masquer par défaut */
.hr-mobile-menu-toggle,
.hr-mobile-menu-overlay {
    display: none;
}

@media (max-width: 980px) {

    /* ==========================================================================
       RESET COMPLET - Supprimer toutes les puces Divi/WordPress
       ========================================================================== */
    .hr-mobile-menu-overlay ul,
    .hr-mobile-menu-overlay ol,
    .hr-mobile-menu-overlay li,
    .hr-mobile-menu-overlay nav ul,
    .hr-mobile-menu-overlay nav li {
        list-style: none !important;
        list-style-type: none !important;
        list-style-image: none !important;
        margin-left: 0 !important;
        padding-left: 0 !important;
    }

    .hr-mobile-menu-overlay li::before,
    .hr-mobile-menu-overlay li::marker {
        content: none !important;
        display: none !important;
    }

    /* ==========================================================================
       BOUTON HAMBURGER + LABEL "MENU"
       ========================================================================== */
    .hr-mobile-menu-toggle {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 10px;
        margin-top: 12px;
        margin-left: 24px;
        height: 44px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 10px 14px 10px 10px;
        z-index: 1000001;
        position: relative;
    }

    /* Quand le menu est ouvert, centrer le X par rapport à l'écran */
    .hr-mobile-menu-toggle.hr-active {
        position: fixed;
        top: 13px;
        left: 50vw;
        transform: translateX(-50%);
        margin-left: 0;
        margin-top: 0;
    }

    .hr-mobile-menu-toggle-bars {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 24px;
        height: 24px;
    }

    .hr-mobile-menu-toggle-bars span {
        display: block;
        width: 22px;
        height: 2px;
        background: #fff;
        border-radius: 2px;
        transition: all 0.3s ease;
        position: relative;
    }

    .hr-mobile-menu-toggle-bars span:nth-child(1) {
        margin-bottom: 5px;
    }

    .hr-mobile-menu-toggle-bars span:nth-child(3) {
        margin-top: 5px;
    }

    .hr-mobile-menu-toggle-label {
        color: #fff;
        font-family: 'Montserrat', -apple-system, sans-serif;
        font-size: 13px;
        font-weight: 600;
        letter-spacing: 1px;
        text-transform: uppercase;
    }

    /* Animation hamburger → X */
    .hr-mobile-menu-toggle.hr-active .hr-mobile-menu-toggle-bars span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hr-mobile-menu-toggle.hr-active .hr-mobile-menu-toggle-bars span:nth-child(2) {
        opacity: 0;
        transform: translateX(-10px);
    }

    .hr-mobile-menu-toggle.hr-active .hr-mobile-menu-toggle-bars span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* Masquer le label quand ouvert */
    .hr-mobile-menu-toggle.hr-active .hr-mobile-menu-toggle-label {
        display: none;
    }

    /* ==========================================================================
       OVERLAY PLEIN ÉCRAN
       ========================================================================== */
    .hr-mobile-menu-overlay {
        display: block;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        bottom: 0;
        background: #fff;
        z-index: 1000000;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        overflow: hidden;
    }

    .hr-mobile-menu-overlay.hr-open {
        opacity: 1;
        visibility: visible;
    }

    /* ==========================================================================
       PANNEAU PRINCIPAL (Niveau 1)
       ========================================================================== */
    .hr-mobile-panel {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        padding: 0;
        overflow-y: auto;
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .hr-mobile-panel-main {
        transform: translateX(0);
    }

    /* Panneau principal glisse à gauche quand un pays est ouvert */
    .hr-mobile-menu-overlay.hr-country-open .hr-mobile-panel-main {
        transform: translateX(-100%);
    }

    /* ==========================================================================
       LISTE DU MENU NIVEAU 1
       ========================================================================== */
    .hr-mobile-nav {
        list-style: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .hr-mobile-nav > li {
        margin: 0 !important;
        padding: 0 !important;
        border-bottom: 1px solid rgba(0,0,0,0.08);
    }

    .hr-mobile-nav > li:last-child {
        border-bottom: none;
    }

    .hr-mobile-nav > li > a {
        display: block;
        padding: 16px 24px;
        color: #1a1a2e;
        font-family: 'Montserrat', -apple-system, sans-serif;
        font-size: 18px;
        font-weight: 600;
        text-decoration: none;
        transition: color 0.2s ease, background 0.2s ease;
        line-height: 1.2;
        box-sizing: border-box;
    }

    .hr-mobile-nav > li > a:hover,
    .hr-mobile-nav > li > a:active {
        color: #02c39a;
        background: rgba(2, 195, 154, 0.04);
    }

    /* ==========================================================================
       SECTION DESTINATIONS (accordéon ouvert par défaut)
       ========================================================================== */
    .hr-mobile-destinations-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 16px 24px 12px;
        background: none;
        border: none;
        color: #1a1a2e;
        font-family: 'Montserrat', -apple-system, sans-serif;
        font-size: 18px;
        font-weight: 600;
        text-align: left;
        cursor: pointer;
        line-height: 1.2;
        transition: color 0.2s ease;
    }

    .hr-mobile-destinations-toggle:hover {
        color: #02c39a;
    }

    /* Chevron accordéon Destinations */
    .hr-mobile-destinations-toggle::after {
        content: '';
        width: 10px;
        height: 10px;
        border-right: 2px solid rgba(0,0,0,0.4);
        border-bottom: 2px solid rgba(0,0,0,0.4);
        transform: rotate(45deg);
        transition: transform 0.3s ease, border-color 0.2s ease;
        margin-right: 4px;
    }

    .hr-mobile-destinations-section.hr-destinations-open .hr-mobile-destinations-toggle::after {
        transform: rotate(-135deg);
    }

    .hr-mobile-destinations-section.hr-destinations-open .hr-mobile-destinations-toggle {
        color: #1a1a2e;
    }

    /* Contenu accordéon Destinations */
    .hr-mobile-destinations-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
    }

    .hr-mobile-destinations-section.hr-destinations-open .hr-mobile-destinations-content {
        max-height: 500px;
    }

    .hr-mobile-destinations-section {
        border-bottom: 1px solid rgba(0,0,0,0.08) !important;
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }

    /* Liste des pays - INDENTÉE avec fond gris */
    .hr-mobile-countries {
        list-style: none !important;
        margin: 0 !important;
        padding: 0 0 0 0 !important;
        background: #f8fbfd;
    }

    .hr-mobile-countries > li {
        margin: 0 !important;
        padding: 0 !important;
        background: transparent;
    }

    /* Style : conteneur pays */
    .hr-mobile-country-item {
        border-bottom: 1px solid rgba(0,0,0,0.06);
    }

    .hr-mobile-countries > li:last-child .hr-mobile-country-item {
        border-bottom: none;
    }

    /* Bouton drill-down = toute la ligne */
    .hr-mobile-country-drill {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 10px 24px 10px 44px;
        background: none;
        border: none;
        cursor: pointer;
        transition: background 0.2s ease;
        min-height: 44px;
        position: relative;
    }

    .hr-mobile-country-drill:hover,
    .hr-mobile-country-drill:active {
        background: rgba(2, 195, 154, 0.04);
    }

    /* Lien texte du pays : positionné par-dessus le bouton */
    .hr-mobile-country-name {
        position: relative;
        z-index: 1;
        color: #05668d;
        font-family: 'Montserrat', -apple-system, sans-serif;
        font-size: 16px;
        font-weight: 600;
        text-decoration: none;
        transition: color 0.2s ease;
        padding: 2px 0;
    }

    .hr-mobile-country-name:hover,
    .hr-mobile-country-name:active {
        color: #02c39a;
        text-decoration: underline;
    }

    /* Chevron droite */
    .hr-mobile-country-chevron {
        font-size: 24px;
        font-weight: 300;
        color: rgba(0,0,0,0.4);
        transition: transform 0.2s ease, color 0.2s ease;
        line-height: 1;
    }

    .hr-mobile-country-drill:hover .hr-mobile-country-chevron,
    .hr-mobile-country-drill:active .hr-mobile-country-chevron {
        color: #02c39a;
        transform: translateX(3px);
    }

    /* ==========================================================================
       BARRE DE RECHERCHE MOBILE - STYLE CLASSE
       ========================================================================== */
    .hr-mobile-search {
        margin: 0px 24px 0;
        padding-top: 16px;
        border-top: 1px solid rgba(0,0,0,0.08);
    }

    .hr-mobile-search-form {
        display: flex;
        align-items: stretch;
        max-width: 300px;
        height: 38px;
        border-radius: 6px;
        overflow: hidden;
        background: #fff;
        border: 2px solid #05668d;
    }

    .hr-mobile-search-input {
        flex: 1;
        min-width: 0;
        background: transparent;
        border: none !important;
        padding: 0 12px 0 16px;
        margin-left: 2px;
        color: #1a1a2e;
        font-family: 'Montserrat', -apple-system, sans-serif;
        font-size: 15px;
        outline: none;
        height: 100%;
        box-sizing: border-box;
    }

    .hr-mobile-search-input::placeholder {
        color: rgba(0,0,0,0.4);
    }

    .hr-mobile-search-input:focus {
        outline: none;
    }

    .hr-mobile-search-submit {
        display: flex;
        align-items: center;
        justify-content: center;
        background: #02c39a;
        border: none;
        width: 38px;
        min-width: 38px;
        height: 100%;
        cursor: pointer;
        transition: background 0.2s ease;
        flex-shrink: 0;
    }

    .hr-mobile-search-submit:hover {
        background: #00a896;
    }

    .hr-mobile-search-submit svg {
        width: 18px;
        height: 18px;
        color: #fff;
    }

    /* ==========================================================================
       PANNEAU PAYS (Niveau 2) - Drill-down
       ========================================================================== */
    .hr-mobile-panel-country {
        transform: translateX(100%);
        background: #fff;
        padding: 0 !important;
    }

    /* Empêcher le click-through pendant la transition */
    .hr-mobile-panel-country.hr-animating {
        pointer-events: none;
    }

    .hr-mobile-menu-overlay.hr-country-open .hr-mobile-panel-country {
        transform: translateX(0);
    }

    /* Header du panneau pays */
    .hr-mobile-country-header {
        display: flex;
        align-items: center;
        padding: 25px 24px 22px 16px;
        margin-bottom: 0;
        border-bottom: 1px solid rgba(0,0,0,0.1);
    }

    .hr-mobile-back-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        color: #02c39a;
        cursor: pointer;
        padding: 0;
        transition: opacity 0.2s ease;
        width: 32px;
        height: 24px;
        flex-shrink: 0;
    }

    .hr-mobile-back-btn:hover {
        opacity: 0.8;
    }

    .hr-mobile-back-btn svg {
        width: 22px;
        height: 22px;
    }

    .hr-mobile-country-title {
        text-align: center;
        color: #1a1a2e;
        font-family: 'Montserrat', -apple-system, sans-serif;
        font-size: 24px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin: 0;
		padding-top: 0px;
        line-height: 24px;
    }

    /* Lien du titre pays cliquable */
    .hr-mobile-country-title-link {
        flex: 1;
        text-decoration: none;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 32px; /* Compense le bouton retour pour centrer */
        transition: opacity 0.2s ease;
        height: 24px;
    }

    .hr-mobile-country-title-link:hover {
        opacity: 0.8;
    }

    .hr-mobile-country-title-link .hr-mobile-country-title {
        color: #05668d;
    }

    .hr-mobile-country-title-link:hover .hr-mobile-country-title {
        color: #02c39a;
    }

    /* Liste des liens du pays */
    .hr-mobile-country-links {
        list-style: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .hr-mobile-country-links > li {
        margin: 0 !important;
        padding: 0 !important;
        border-bottom: 1px solid rgba(0,0,0,0.08);
    }

    .hr-mobile-country-links > li:last-child {
        border-bottom: none;
    }

    .hr-mobile-country-links > li > a {
        display: block;
        padding: 16px 24px;
        color: #1a1a2e;
        font-family: 'Montserrat', -apple-system, sans-serif;
        font-size: 16px;
        font-weight: 600;
        text-decoration: none;
        transition: color 0.2s ease, background 0.2s ease;
    }

    .hr-mobile-country-links > li > a:hover,
    .hr-mobile-country-links > li > a:active {
        color: #02c39a;
        background: rgba(2, 195, 154, 0.04);
    }

    /* ==========================================================================
       ACCORDÉON NIVEAU 3 (Top 5, Circuits, etc.)
       ========================================================================== */
    .hr-mobile-has-children {
        background: transparent;
    }

    .hr-mobile-accordion-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 16px 24px;
        background: none;
        border: none;
        color: #1a1a2e;
        font-family: 'Montserrat', -apple-system, sans-serif;
        font-size: 16px;
        font-weight: 600;
        text-align: left;
        cursor: pointer;
        transition: color 0.2s ease, background 0.2s ease;
    }

    .hr-mobile-accordion-toggle:hover {
        color: #02c39a;
        background: #fff;
    }

    /* Chevron accordéon */
    .hr-mobile-accordion-toggle::after {
        content: '';
        width: 10px;
        height: 10px;
        border-right: 2px solid rgba(0,0,0,0.4);
        border-bottom: 2px solid rgba(0,0,0,0.4);
        transform: rotate(45deg);
        transition: transform 0.3s ease, border-color 0.2s ease;
        margin-right: 4px;
    }

    .hr-mobile-has-children.hr-accordion-open .hr-mobile-accordion-toggle::after {
        transform: rotate(-135deg);
        border-color: #02c39a;
    }

    .hr-mobile-has-children.hr-accordion-open .hr-mobile-accordion-toggle {
        color: #02c39a;
    }

    /* Contenu accordéon */
    .hr-mobile-accordion-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
        background: #f8fbfd;
    }

    .hr-mobile-has-children.hr-accordion-open .hr-mobile-accordion-content {
        max-height: 500px; /* Assez grand pour le contenu */
    }

    .hr-mobile-accordion-content ul {
        list-style: none !important;
        margin: 0 !important;
        padding: 4px 24px 4px 40px !important;
    }

    .hr-mobile-accordion-content li {
        margin: 0 !important;
        padding: 0 !important;
    }

    .hr-mobile-accordion-content a {
        display: block;
        padding: 8px 0;
        color: #444;
        font-family: 'Montserrat', -apple-system, sans-serif;
        font-size: 15px;
        font-weight: 500;
        text-decoration: none;
        transition: color 0.2s ease;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }

    .hr-mobile-accordion-content li:last-child a {
        border-bottom: none;
    }

    .hr-mobile-accordion-content a:hover,
    .hr-mobile-accordion-content a:active {
        color: #02c39a;
    }

    /* ==========================================================================
       EMPÊCHER LE SCROLL DU BODY QUAND MENU OUVERT
       ========================================================================== */
    body.hr-mobile-menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }

} /* Fin @media */