/* ========================================================================
   NAVBAR RESPONSIVE - VERSION FINALE CORRIGÉE
   Correction: Suppression des propriétés conflictuelles avec main.css
   ======================================================================== */

/* Variables pour la navbar */
:root {
    --header-height: 80px;
    --nav-padding: 0 2rem;
    --nav-gap: 2rem;
    --nav-font-size: 0.9rem;
    --logo-width: 180px;
}

/* ========================================================================
   RÉINITIALISATION - IMPORTANT
   ======================================================================== */

/* Supprimer TOUT padding/margin du body et main qui pourrait créer des espaces */
body {
    padding-top: 0 !important;
    margin: 0 !important;
}

main {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* ========================================================================
   HEADER - NE PAS DUPLIQUER LES STYLES DE MAIN.CSS
   ======================================================================== */

/* On ne touche PAS aux styles .header existants de main.css */
/* On ajoute seulement les styles manquants pour le responsive */

/* Layout horizontal du header */
.header__left {
    flex-shrink: 0;
    z-index: 10;
}

.header__right {
    flex-shrink: 0;
    z-index: 10;
    gap: 15px;
}

/* Le logo doit avoir une taille cohérente */
.header__logo img {
    max-height: 70px;
    width: auto;
}

/* ========================================================================
   HOVER EFFECTS - NAVIGATION LINKS
   ======================================================================== */

/* Style de base pour les liens de navigation */
.header__center .text-15,
.header__nav a {
    position: relative;
    transition: color 0.3s ease;
}

/* Effet hover - couleur gold */
.header__center .text-15:hover,
.header__nav a:hover {
    color: #D4A051 !important;
}

/* Soulignement animé au hover */
.header__center .text-15::after,
.header__nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #D4A051;
    transition: width 0.3s ease;
}

.header__center .text-15:hover::after,
.header__nav a:hover::after {
    width: 100%;
}

/* Bouton Réserver - hover effect */
.header__right .button:hover {
    background-color: #c49045 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 160, 81, 0.4);
}

/* ========================================================================
   LANGUAGE SELECTOR - DESKTOP
   ======================================================================== */

.language-selector {
    position: relative;
    margin-right: 20px;
}

.lang-current {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #2c3e50;
    transition: all 0.3s ease;
}

.lang-current:hover {
    border-color: #D4A051;
    color: #D4A051;
}

.lang-current .lang-code {
    font-weight: 600;
}

.lang-current i {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.language-selector:hover .lang-current i {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    min-width: 160px;
    overflow: hidden;
    z-index: 1000;
}

.language-selector:hover .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: #2c3e50;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.lang-option:hover {
    background: #f8f9fa;
    color: #D4A051;
}

.lang-option.active {
    background: linear-gradient(135deg, #D4A051 0%, #c49045 100%);
    color: #fff;
}

.lang-flag {
    font-size: 18px;
}

/* ========================================================================
   LANGUAGE SELECTOR - MOBILE
   ======================================================================== */

.mobile-lang-selector {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-lang-selector a {
    padding: 8px 20px;
    border: 1px solid #ddd;
    border-radius: 20px;
    color: #2c3e50;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.mobile-lang-selector a:hover {
    border-color: #D4A051;
    color: #D4A051;
}

.mobile-lang-selector a.active {
    background: linear-gradient(135deg, #D4A051 0%, #c49045 100%);
    border-color: #D4A051;
    color: #fff;
}

/* ========================================================================
   RTL SUPPORT (ARABIC)
   ======================================================================== */

html[dir="rtl"] .header__container {
    flex-direction: row-reverse;
}

html[dir="rtl"] .header__nav .row {
    flex-direction: row-reverse;
}

html[dir="rtl"] .header__right {
    flex-direction: row-reverse;
}

html[dir="rtl"] .language-selector {
    margin-right: 0;
    margin-left: 20px;
}

html[dir="rtl"] .lang-dropdown {
    right: auto;
    left: 0;
}

html[dir="rtl"] .menuFullScreen__links__item a {
    flex-direction: row-reverse;
}

html[dir="rtl"] .icon-arrow-right::before {
    transform: rotate(180deg);
}


/* ========================================================================
   INFO CONTACT (Téléphone) - NOUVEAU
   ======================================================================== */

.header__info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.9rem;
    margin-right: auto;
    margin-left: 2rem;
}

.header__info i {
    color: #c9a96e;
}

/* ========================================================================
   NAVIGATION - AJUSTEMENTS RESPONSIVE
   ======================================================================== */

/* Espacement adaptatif de la navigation */
.header .desktopNav {
    gap: var(--nav-gap);
}

.header .desktopNav .desktopNav__item a {
    font-size: var(--nav-font-size);
}

/* ========================================================================
   BOUTON RÉSERVER - AJUSTEMENTS
   ======================================================================== */

.header__cta {
    flex-shrink: 0;
    margin-left: 2rem;
}

/* ========================================================================
   RESPONSIVE - ÉCRANS LARGES (1600px+)
   ======================================================================== */

@media (min-width: 1600px) {
    :root {
        --nav-padding: 0 3rem;
        --nav-gap: 2.5rem;
        --nav-font-size: 1rem;
        --logo-width: 200px;
    }

    .header .desktopNav {
        gap: 3rem;
    }
}

/* ========================================================================
   RESPONSIVE - ÉCRANS MOYENS (1200px - 1599px)
   ======================================================================== */

@media (max-width: 1599px) and (min-width: 1200px) {
    :root {
        --nav-padding: 0 2rem;
        --nav-gap: 1.5rem;
        --nav-font-size: 0.875rem;
    }

    .header .desktopNav {
        gap: 2rem;
    }

    .header__cta {
        margin-left: 1.5rem;
    }
}

/* ========================================================================
   RESPONSIVE - TABLETTES (992px - 1199px)
   ======================================================================== */

@media (max-width: 1199px) and (min-width: 992px) {
    :root {
        --nav-padding: 0 1.5rem;
        --nav-gap: 1rem;
        --nav-font-size: 0.85rem;
    }

    .header .desktopNav {
        gap: 1.5rem;
    }

    /* Cacher le numéro de téléphone sur tablette */
    .header__info {
        display: none;
    }
}

/* ========================================================================
   RESPONSIVE - MOBILE (max 991px)
   ======================================================================== */

@media (max-width: 991px) {

    /* Cacher info contact */
    .header__info {
        display: none;
    }
}

/* ========================================================================
   UTILITAIRES - NE PAS AJOUTER DE PADDING AU BODY
   ======================================================================== */

/* Ne PAS ajouter: body { padding-top: ... } */
/* Le header est déjà fixed dans main.css */
/* Le contenu s'ajuste automatiquement */


/* ========================================================================
   RESPONSIVE - ÉCRANS LARGES (1600px+)
   ======================================================================== */

@media (min-width: 1600px) {
    :root {
        --nav-padding: 0 3rem;
        --nav-gap: 2.5rem;
        --nav-font-size: 1rem;
        --logo-width: 200px;
    }

    .header__container {
        max-width: 1800px;
        padding: var(--nav-padding);
    }

    .nav__menu {
        gap: 3rem;
    }

    .btn-reserve {
        padding: 1rem 2.5rem;
        font-size: 1rem;
    }
}

/* ========================================================================
   BOUTON HAMBURGER
   ======================================================================== */

.header__burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 8px;
    z-index: 100;
    position: relative;
}

.header__burger span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #122223;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.header__burger:hover span {
    background-color: #D4A051;
}

/* Animation du bouton hamburger quand le menu est ouvert */
.is-menu-opened .header__burger span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.is-menu-opened .header__burger span:nth-child(2) {
    opacity: 0;
}

.is-menu-opened .header__burger span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================================================
   CLASSES RESPONSIVE UTILITAIRES
   ======================================================================== */

/* Par défaut - mobile first */
.lg\:d-none {
    display: block;
}

.lg\:d-flex {
    display: flex;
}

.lg\:d-block {
    display: block;
}

.d-none {
    display: none !important;
}

/* Sur les grands écrans (992px+) */
@media (min-width: 992px) {
    .lg\:d-none {
        display: none !important;
    }

    .lg\:d-flex {
        display: flex !important;
    }

    .lg\:d-block {
        display: block !important;
    }

    .d-none.lg\:d-block {
        display: block !important;
    }

    .d-none.lg\:d-flex {
        display: flex !important;
    }

    .header__burger {
        display: none !important;
    }
}

/* Sur mobile (< 992px) */
@media (max-width: 991px) {

    .d-none.lg\:d-block,
    .d-none.lg\:d-flex {
        display: none !important;
    }

    .lg\:d-none {
        display: block !important;
    }

    .header__burger {
        display: flex !important;
    }

    /* Le bouton réserver se cache sur mobile */
    .header__right .button {
        display: none !important;
    }
}

/* ========================================================================
   MENU MOBILE PLEIN ÉCRAN
   ======================================================================== */

.menuFullScreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999;
    visibility: hidden;
    pointer-events: none;
}

.menuFullScreen__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menuFullScreen__content {
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100%;
    background-color: #fff;
    padding: 80px 30px 30px;
    overflow-y: auto;
    transition: right 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
}

.menuFullScreen.is-active {
    visibility: visible;
    pointer-events: auto;
}

.menuFullScreen.is-active .menuFullScreen__bg {
    opacity: 1;
}

.menuFullScreen.is-active .menuFullScreen__content {
    right: 0;
}

/* Bouton fermer */
.menuFullScreen__close {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.menuFullScreen__close span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #122223;
    margin: 3px 0;
}

.menuFullScreen__close span:first-child,
.menuFullScreen__close .icon {
    display: none;
}

.menuFullScreen__close span:nth-child(2) {
    transform: rotate(45deg);
    position: relative;
}

.menuFullScreen__close span:nth-child(3) {
    transform: rotate(-45deg);
    position: relative;
    top: -8px;
}

.menuFullScreen__close span:last-child {
    margin-top: 15px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #122223;
    width: auto;
    height: auto;
    background: none;
    transform: none;
    position: static;
}

/* Liens du menu */
.menuFullScreen__links {
    margin-top: 40px;
}

.menuFullScreen__links__item {
    margin-bottom: 15px;
}

.menuFullScreen__links__item a {
    display: flex;
    align-items: center;
    font-size: 18px;
    font-weight: 500;
    color: #122223;
    text-decoration: none;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

.menuFullScreen__links__item a:hover {
    color: #D4A051;
    padding-left: 10px;
}

.menuFullScreen__links__item a i {
    margin-right: 15px;
    font-size: 14px;
    color: #D4A051;
}

/* Bas du menu */
.menuFullScreen__bottom {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.menuFullScreen__bottom .text-sec {
    font-family: var(--font-secondary, 'Cormorant Garamond', serif);
    color: #122223;
}

.menuFullScreen__bottom img {
    max-width: 150px;
    height: auto;
}