/* ==================== RESET & FONTS ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;600;700&family=Montserrat:wght@300;400;500;600&display=swap');

body {
    font-family: 'Montserrat', sans-serif;
    color: #333;
}

/* ==================== HEADER PRINCIPAL ==================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: transparent;
    z-index: 1000;
    transition: all 0.3s ease;
}
.scrolled .header {
    background-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.scrolled .header-container {
    padding: 10px 30px;
    transition: padding .5s ease-in-out;
}

/* ==================== LOGO ==================== */
.custom-logo-link {
    font-size: 24px;
    font-weight: 600;
    color: #2c2c2c;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    white-space: nowrap;
}
.custom-logo-link img {
    max-height: 80px;
    width: auto;
    transition: max-height .5s ease-in-out;
}
.scrolled .custom-logo-link img {
    max-height: 40px;
}

.custom-logo-link:hover {
    color: #8b7355;
}

/* ==================== NAVIGATION DESKTOP ==================== */
/* Menu toujours caché - accessible uniquement via toggle burger */

/* Menu burger - toujours visible */
.menu-burger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: transparent;
    border: none !important;
    cursor: pointer;
    padding: 0 !important;
}

.menu-burger span {
    width: 100%;
    height: 2px;
    background-color: white;
    transition: all 0.3s ease;
}

.scrolled .menu-burger span {
    background-color: #1d1d1B;
}

/* ==================== ACTIONS HEADER (Langue + Burger) ==================== */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Bouton langue */
.gt-lang-code {
    display: none;
}
#gt_float_wrapper {
    position: relative !important;
    line-height: 0;
}
.gt_float_switcher {
    box-shadow: none !important;
    background-color: transparent !important;
}
.gt_float_switcher .gt-selected {
    background-color: transparent !important;
}
.gt_float_switcher .gt_options {
    position: absolute !important;
    top: 45px;
    left: 0;
    max-height: unset !important;
    background-color: white;
}
.gt_float_switcher .gt_options a {
    font-size: 0;
}


/* ==================== MENU MOBILE ==================== */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    /* max-width: 400px; */
    height: 100vh;
    background: white;
    z-index: 1001;
    transition: right 0.4s ease;
    overflow-y: auto;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2);
}

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

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

.menu-close {
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    padding: 0;
}

.menu-close span {
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #2c2c2c;
    top: 50%;
    left: 0;
}

.menu-close span:first-child {
    transform: rotate(45deg);
}

.menu-close span:last-child {
    transform: rotate(-45deg);
}

.menu-close:hover span {
    background-color: #8b7355;
}

/* Navigation mobile */
.mobile-nav {
    padding: 30px 0;
}

.mobile-nav > ul {
    list-style: none;
}

.mobile-nav > ul > li {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-nav > ul > li > a {
    display: block;
    padding: 18px 30px;
    color: #2c2c2c;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.mobile-nav > ul > li > a:hover,
.mobile-nav > ul > li > a.active {
    color: #8b7355;
    background-color: #f9f9f9;
}

/* Sous-menu mobile */
.mobile-submenu {
    list-style: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: #f9f9f9;
}

.mobile-submenu.active {
    max-height: 500px;
}

.mobile-submenu li a {
    display: block;
    padding: 12px 30px 12px 50px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.mobile-submenu li a:hover {
    color: #8b7355;
    padding-left: 55px;
}

/* Footer du menu mobile */
.mobile-menu-footer {
    padding: 30px;
    background-color: #f9f9f9;
    margin-top: 20px;
    font-size: 14px;
    line-height: 1.8;
}

.mobile-menu-footer p {
    margin-bottom: 10px;
}

.mobile-menu-footer a {
    color: #8b7355;
    text-decoration: none;
}

.mobile-menu-footer a:hover {
    text-decoration: underline;
}

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

/* Tablette */
@media (max-width: 1200px) {
    .header-container {
        padding: 18px 25px;
    }
}

@media (max-width: 992px) {
    .header-container {
        padding: 15px 20px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .custom-logo-link {
        font-size: 20px;
    }
    
    .header-container {
        padding: 15px 15px;
    }
    
    .mobile-menu {
        max-width: 100%;
    }
    
    .lang-btn {
        width: 35px;
        height: 35px;
        font-size: 11px;
    }
    
    .header-actions {
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .custom-logo-link {
        font-size: 16px;
        max-width: 200px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .menu-burger {
        width: 25px;
        height: 18px;
    }
    
    .lang-btn {
        width: 32px;
        height: 32px;
        font-size: 10px;
    }
}

/* ==================== OVERLAY MENU MOBILE ==================== */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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