/**
 * Styles de migration - Quick wins pour la production
 * En attendant la nouvelle version d'Avygeo
 * Tous les styles CSS inspirés des nouvelles maquettes seront ajoutés ici
 */

/* Import des polices */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* ========================================================================
   SECTION HERO - PAGE TOP VOYAGISTES
   ======================================================================== */

/* Sélecteur spécifique pour la page voyagiste index uniquement */
body.locations .cover_dossier.bg_world {
    /* Remplacer l'image de fond par un dégradé vert */
    background: linear-gradient(135deg, #00a799 0%, #00796b 100%) !important;
    background-image: linear-gradient(135deg, #00a799 0%, #00796b 100%) !important;
    padding: 60px 20px;
}

/* Container du contenu Hero */
body.locations .cover_dossier.bg_world .cover_hook {
    /* Retirer le fond noir transparent pour laisser le vert visible */
    background: transparent !important;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 20px;
    border-radius: 0;
}

/* Titre principal */
body.locations .cover_dossier.bg_world .cover_hook h1 {
    font-family: 'Playfair Display', Georgia, serif !important;
    font-size: 4.5rem !important;
    margin-bottom: 10px;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
}

/* Sous-titre (small dans le h1) */
body.locations .cover_dossier.bg_world .cover_hook h1 small {
    font-size: 2.2rem !important;
    display: block;
    padding-top: 15px;
    opacity: 0.95;
    font-weight: 400;
}

/* Texte descriptif */
body.locations .cover_dossier.bg_world .cover_hook p {
    font-size: 1.8rem !important;
    opacity: 0.95;
    margin-bottom: 10px;
    color: #fff;
    margin-top: 0;
}

/* Date de mise à jour */
body.locations .cover_dossier.bg_world .cover_hook p.update {
    font-size: 1.4rem !important;
    opacity: 0.8;
    font-style: italic;
    margin-bottom: 0;
}

/* Responsive pour mobile */
@media only screen and (max-width: 768px) {
    body.locations .cover_dossier.bg_world .cover_hook h1 {
        font-size: 3.5rem !important;
    }

    body.locations .cover_dossier.bg_world .cover_hook h1 small {
        font-size: 1.8rem !important;
    }

    body.locations .cover_dossier.bg_world .cover_hook p {
        font-size: 1.5rem !important;
    }

    body.locations .cover_dossier.bg_world .cover_hook p.update {
        font-size: 1.2rem !important;
    }
}

@media only screen and (max-width: 480px) {
    body.locations .cover_dossier.bg_world {
        padding: 40px 15px;
    }

    body.locations .cover_dossier.bg_world .cover_hook h1 {
        font-size: 2.8rem !important;
    }
}

/* ========================================================================
   FIN SECTION HERO - PAGE TOP VOYAGISTES
   ======================================================================== */

/* ========================================================================
   NOUVEAU HEADER v3.0.0 - DESIGN MODERNE PROPRE
   Date : 16/10/2025
   Préfixe: mh- (modern-header)
   ======================================================================== */

/* Masquer les anciens éléments du header qui pourraient subsister */
.header_identification_close,
.header_form_box,
.account_menu_left,
.account_menu_right,
.header_icone,
.btn-user-panel,
#mobile-top-search-form {
    display: none !important;
}

/* ========== WRAPPER ========== */
.mh-wrapper {
    width: 100%;
    background-color: #fff;
    border-bottom: 1px solid #e5e5e5;
    position: relative;
}

/* ========== HEADER SECTION ========== */
.mh-header-section {
    max-width: 1024px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

/* ========== LOGO ZONE ========== */
.mh-logo-zone {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 1;
    min-width: 0;
}

.mh-logo {
    display: inline-block;
    line-height: 0;
    flex-shrink: 1;
    min-width: 0;
    max-width: 30vw;
}

.mh-logo img {
    height: auto;
    max-height: 40px;
    display: block;
    width: auto;
    max-width: 100%;
}

/* Burger menu - caché par défaut */
.mh-burger-btn {
    display: none;
    width: 40px;
    height: 40px;
    border: 1px solid #dee2e6;
    background: #e9ecef;
    color: #495057;
    font-size: 18px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.3s ease;
    flex-shrink: 0;
    padding: 0;
    line-height: 1;
}

.mh-burger-btn .fa {
    display: block;
    line-height: 1;
}

.mh-burger-btn:hover {
    background-color: #dee2e6;
    border-color: #00a799;
    color: #00a799;
}

/* ========== NAVIGATION DESKTOP ========== */
.mh-nav-desktop {
    flex: 1;
    display: flex;
    justify-content: center;
}

.mh-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.mh-nav-item {
    margin: 0;
    padding: 0;
    list-style: none;
}

.mh-nav-link {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 15px;
    color: #495057;
    padding: 10px 15px;
    display: block;
    position: relative;
    text-decoration: none;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.mh-nav-link:hover {
    color: #00a799;
    text-decoration: none;
}

/* Animated underline */
.mh-nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 15px;
    right: 15px;
    height: 2px;
    background-color: #00a799;
    width: 0;
    transition: width 0.3s ease;
}

.mh-nav-link:hover::after {
    width: calc(100% - 30px);
}

.mh-nav-item.mh-active .mh-nav-link {
    color: #00a799;
}

.mh-nav-item.mh-active .mh-nav-link::after {
    width: calc(100% - 30px);
}

/* ========== ACTIONS ZONE ========== */
.mh-actions-zone {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-right: 5px;
    flex-shrink: 0;
}

/* Bouton recherche */
.mh-search-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background-color: transparent;
    background-image: none;
    background: transparent;
    color: #495057;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
    outline: none;
    box-shadow: none;
}

.mh-search-btn:hover {
    background-color: #f8f9fa;
    color: #00a799;
}

.mh-search-btn:focus {
    outline: none;
    box-shadow: none;
}

/* Bouton connexion (non logué) */
.mh-login-btn {
    background-color: #00a799;
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease;
    line-height: normal;
    background-image: none;
}

.mh-login-btn:hover {
    background-color: #00796b;
    text-decoration: none;
    color: #fff;
}

/* ========== USER AVATAR (LOGUÉ) ========== */
.mh-user-container {
    position: relative;
    display: inline-block;
}

.mh-avatar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    border: 2px solid #e5e5e5;
    background: #fff;
    padding: 0;
    transition: border-color 0.3s ease;
}

.mh-avatar-btn:hover {
    border-color: #00a799;
}

.mh-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Badge notification sur avatar */
.mh-badge-avatar {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #dc3545;
    color: #fff;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    min-width: 20px;
    text-align: center;
    border: 2px solid #fff;
    z-index: 10;
    line-height: 1.3;
    display: none;
}

.mh-badge-avatar.mh-show {
    display: block;
}

/* Dropdown menu utilisateur */
.mh-dropdown {
    position: absolute;
    top: 50px;
    right: 0;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 220px;
    padding: 8px 0;
    display: none;
    z-index: 1000;
    list-style: none;
    margin: 0;
}

.mh-dropdown.mh-show {
    display: block;
}

.mh-dropdown-item {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mh-dropdown-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: #495057;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    text-decoration: none;
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.mh-dropdown-link:hover {
    background-color: #f8f9fa;
    text-decoration: none;
    color: #495057;
}

.mh-dropdown-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.mh-dropdown-separator {
    margin: 8px 0;
    border: none;
    border-top: 1px solid #e5e5e5;
    height: 1px;
}

/* Badge notification dans dropdown */
.mh-badge-dropdown {
    background-color: #dc3545;
    color: #fff;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    min-width: 18px;
    text-align: center;
    margin-left: auto;
    line-height: 1.3;
    display: none;
}

.mh-badge-dropdown.mh-show {
    display: inline-block;
}

/* ========== SEARCH POPUP ========== */
.mh-search-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 100px;
}

.mh-search-popup.mh-show {
    display: flex;
}

.mh-search-popup-content {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    position: relative;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.mh-search-popup-content h3 {
    margin-top: 0;
    font-family: 'Poppins', sans-serif;
    color: #495057;
    margin-bottom: 20px;
}

.mh-search-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    color: #495057;
    cursor: pointer;
    padding: 5px 10px;
    line-height: 1;
    transition: color 0.3s ease;
}

.mh-search-popup-close:hover {
    color: #00a799;
}

/* Alignement des éléments du formulaire de recherche */
.mh-search-popup-content .input-group {
    display: table;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.mh-search-popup-content .input-group > * {
    display: table-cell;
    vertical-align: middle;
}

.mh-search-popup-content .input-group-addon {
    width: 1%;
    white-space: nowrap;
    padding: 6px 12px;
    background-color: #f5f5f5;
    border: 1px solid #ccc;
    text-align: center;
}

.mh-search-popup-content .input-group-addon:first-child {
    border-right: 0;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.mh-search-popup-content .input-group-addon:last-child {
    border-left: 0;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    background-color: #00a799;
    color: #fff;
}

.mh-search-popup-content .input-group .form-control {
    width: 100%;
    border-radius: 0;
    margin-bottom: 0;
}

.mh-search-popup-content .input-group-addon select.form-control {
    border: none;
    background: transparent;
    padding: 5px 8px;
    height: auto;
    outline: none;
    font-size: 14px;
    color: #495057;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    cursor: pointer;
    appearance: auto;
    -webkit-appearance: menulist;
    -moz-appearance: menulist;
}

.mh-search-popup-content .input-group-addon button {
    padding: 0;
    margin: 0;
    outline: none;
}

/* ========== LOGIN POPUP ========== */
.mh-login-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 80px;
}

.mh-login-popup.mh-show {
    display: flex;
}

.mh-login-popup-content {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    max-width: 450px;
    width: 90%;
    position: relative;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.mh-login-popup-content h3 {
    margin-top: 0;
    font-family: 'Poppins', sans-serif;
    color: #495057;
    margin-bottom: 20px;
    text-align: center;
}

.mh-login-popup-content .form-group {
    margin-bottom: 15px;
}

.mh-login-popup-content label {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    color: #495057;
    margin-bottom: 5px;
}

.mh-login-popup-content .form-control {
    font-family: 'Poppins', sans-serif;
    border-radius: 4px;
}

.mh-login-popup-content .checkbox {
    margin-bottom: 15px;
}

.mh-login-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    color: #495057;
    cursor: pointer;
    padding: 5px 10px;
    line-height: 1;
    transition: color 0.3s ease;
}

.mh-login-popup-close:hover {
    color: #00a799;
}

/* ========== MOBILE NAVIGATION - NOUVEAU SYSTEME INDEPENDANT ========== */
.mh-mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.mh-mobile-menu-panel {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100%;
    background: #fff;
    z-index: 99999;
    overflow-y: auto;
    transition: right 0.3s ease;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
}

.mh-mobile-menu-panel.mh-mobile-menu-active {
    right: 0;
}

.mh-mobile-menu-header {
    padding: 20px;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mh-mobile-menu-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #495057;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.mh-mobile-menu-close:hover {
    color: #00a799;
}

.mh-mobile-menu-list {
    list-style: none;
    margin: 0;
    padding: 20px 0;
}

.mh-mobile-menu-item {
    list-style: none;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #e5e5e5;
}

.mh-mobile-menu-item:last-child {
    border-bottom: none;
}

.mh-mobile-menu-link {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: #495057;
    padding: 15px 20px;
    display: block;
    text-decoration: none;
    transition: all 0.3s ease;
}

.mh-mobile-menu-link:hover {
    background-color: #f8f9fa;
    color: #00a799;
    text-decoration: none;
}

.mh-mobile-menu-item.mh-active .mh-mobile-menu-link {
    color: #00a799;
    background-color: #f8f9fa;
}

/* ========== RESPONSIVE < 992px ========== */
@media (max-width: 991px) {
    /* Afficher le burger menu */
    .mh-burger-btn {
        display: flex;
    }

    /* Masquer la navigation desktop */
    .mh-nav-desktop {
        display: none;
    }

    /* Réduire les paddings */
    .mh-header-section {
        padding: 12px 15px;
        gap: 12px;
    }

    /* Réduire la hauteur du logo */
    .mh-logo img {
        max-height: 35px;
    }

    /* Réduire le gap de la logo zone */
    .mh-logo-zone {
        gap: 10px;
    }

    /* Actions zone plus compacte */
    .mh-actions-zone {
        gap: 10px;
        padding-right: 5px;
    }

    /* Boutons plus petits */
    .mh-burger-btn,
    .mh-search-btn,
    .mh-avatar-btn {
        width: 36px;
        height: 36px;
    }

    .mh-login-btn {
        padding: 6px 14px;
        font-size: 14px;
    }
}

/* ========== RESPONSIVE < 520px ========== */
@media (max-width: 519px) {
    /* Réduire encore */
    .mh-header-section {
        padding: 10px 12px;
        gap: 10px;
    }

    .mh-logo img {
        max-height: 30px;
    }

    .mh-logo-zone {
        gap: 8px;
    }

    .mh-actions-zone {
        gap: 8px;
        padding-right: 3px;
    }

    .mh-burger-btn,
    .mh-search-btn,
    .mh-avatar-btn {
        width: 34px;
        height: 34px;
    }

    .mh-login-btn {
        padding: 5px 12px;
        font-size: 13px;
    }
}

/* ========== RESPONSIVE < 400px ========== */
@media (max-width: 399px) {
    .mh-header-section {
        padding: 10px 12px;
        gap: 8px;
    }

    .mh-logo img {
        max-height: 28px;
    }

    .mh-logo-zone {
        gap: 8px;
    }

    .mh-actions-zone {
        gap: 6px;
        padding-right: 2px;
    }

    .mh-burger-btn,
    .mh-search-btn,
    .mh-avatar-btn {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .mh-login-btn {
        padding: 5px 10px;
        font-size: 12px;
    }

    .mh-badge-avatar {
        padding: 1px 4px;
        font-size: 10px;
        min-width: 16px;
    }
}

/* ========== RESPONSIVE < 340px ========== */
@media (max-width: 339px) {
    .mh-header-section {
        padding: 8px 10px;
        gap: 6px;
    }

    .mh-logo img {
        max-height: 26px;
    }

    .mh-logo-zone {
        gap: 6px;
    }

    .mh-actions-zone {
        gap: 6px;
        padding-right: 2px;
    }

    .mh-burger-btn,
    .mh-search-btn,
    .mh-avatar-btn {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }

    .mh-login-btn {
        padding: 4px 8px;
        font-size: 11px;
    }
}

/* ========================================================================
   FIN NOUVEAU HEADER v3.0.0
   ======================================================================== */
