/*
Theme Name: SSG
Theme URI: https://fluxgroup.ch
Author: Fluxgroup
Author URI: https://fluxgroup.ch
Description: Un thème WordPress conçu pour offrir une expérience adaptable aux besoins spécifiques du site.
Version: 1.0
License: GPL-2.0+
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
    --fs-xxs: 10px;
    --fs-xs: 11px;
    --fs-sm: 12px;
    --fs-md: 13px;
    --fs-base: 14px;
    --fs-lg: 15px;
    --fs-xl: 16px;
    --fs-2xl: 18px;
    --fs-3xl: 20px;
    --fs-3-3xl: 22px;
    --fs-4xl: 24px;
    --fs-5-5xl: 26px;
    --fs-5xl-2: 30px;
    --fs-5xl: 32px;
    --fs-6xl: 36px;
    font-size: var(--fs-xl);
    /* overflow-x: hidden; */
}

@font-face {
    font-family: "Roboto";
    src: url(./assets/fonts/Roboto-VariableFont_wdth,wght.ttf);
}

@font-face {
    font-family: "Lora";
    src: url(./assets/fonts/Lora-VariableFont_wght.ttf);
}

@font-face {
    font-family: "Montserrat";
    src: url(./assets/fonts/Montserrat-VariableFont_wght.ttf);
}

@font-face {
    font-family: "Inter";
    src: url(./assets/fonts/Inter-VariableFont_opsz\,wght.ttf);
}

@font-face {
    font-family: "Inter Italic";
    src: url(./assets/fonts/Inter-Italic-VariableFont_opsz\,wght.ttf);
}

@font-face {
    font-family: "New York";
    src: url(./assets/fonts/NewYork.otf);
}

@font-face {
    font-family: "Poppins";
    src: url(./assets/fonts/Poppins-Medium.ttf);
}

@font-face {
    font-family: "Poppins-Regular";
    src: url(./assets/fonts/Poppins-Regular.ttf);
}

body {
    margin: 0;
    padding: 0;
}

@media (max-width: 991px) {
    :root {
        --fs-xxs: 9px;
        --fs-xs: 10px;
        --fs-sm: 11px;
        --fs-md: 12px;
        --fs-base: 13px;
        --fs-lg: 14px;
        --fs-xl: 15px;
        --fs-2xl: 16px;
        --fs-3xl: 18px;
        --fs-3-3xl: 20px;
        --fs-4xl: 22px;
        --fs-5-5xl: 24px;
        --fs-5xl-2: 28px;
        --fs-5xl: 28px;
    }
}

@media (max-width: 480px) {
    :root {
        --fs-xxs: 8px;
        --fs-xs: 9px;
        --fs-sm: 10px;
        --fs-md: 11px;
        --fs-base: 12px;
        --fs-lg: 13px;
        --fs-xl: 14px;
        --fs-2xl: 15px;
        --fs-3xl: 16px;
        --fs-3-3xl: 18px;
        --fs-4xl: 20px;
        --fs-5-5xl: 22px;
        --fs-5xl-2: 26px;
        --fs-5xl: 24px;
    }
}

/* GLOBAL STYLES */

.section-title {
    font-size: 26px;
    padding: 12px;
    border-bottom: 1px solid #c0c0c0;
    width: fit-content;
    text-align: center;
    font-family: "Lora";
    place-self: center;
}

.condition-title {
    color: black;
    font-family: 'Poppins';
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: fit-content;
    font-weight: 700;
    font-size: 22px;
    padding: 16px 0;
}

.title-underline {
    max-width: 96px;
    width: 42px;
    height: 3px;
    margin-top: 4px;
    background-color: #002147;
}

.nav-flex {
    width: 100%;
    font-weight: 300;
    top: 0;
    left: 0;
    color: #002147;
    padding-bottom: 56px;

    .home-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-size: 18px;
        padding: 32px 64px 8px 64px;
        font-family: "Inter";
        height: 14vh;

        .colored {
            margin-top: 40px;
        }

        .left-top {
            display: flex;
            gap: 14px;

            .language-select {
                padding: 0 6px 0 8px;
                border: 1px solid #002147;
                display: flex;
                align-items: center;
                gap: 4px;
                position: relative;
                cursor: pointer;
                transition: all 0.2s ease-in-out;

                &:hover {
                    opacity: 0.7;
                }

                img {
                    width: 34px;
                }

                .selecticon {
                    width: 20px;
                    transition: transform 0.2s ease-in-out;
                }

                &.active .selecticon {
                    transform: rotate(180deg);
                }

                .language-dropdown {
                    position: absolute;
                    top: 100%;
                    left: 0;
                    right: 0;
                    background: white;
                    border: 1px solid #002147;
                    border-top: none;
                    opacity: 0;
                    visibility: hidden;
                    transform: translateY(-10px);
                    transition: all 0.2s ease-in-out;
                    z-index: 1000;

                    .language-option {
                        display: flex;
                        align-items: center;
                        gap: 8px;
                        padding: 8px 12px;
                        text-decoration: none;
                        color: #002147;
                        font-size: 14px;
                        transition: background-color 0.2s ease-in-out;

                        &:hover {
                            background-color: rgba(184, 184, 184, 0.2);
                        }

                        img {
                            width: 24px;
                        }
                    }
                }

                &.active .language-dropdown {
                    opacity: 1;
                    visibility: visible;
                    transform: translateY(0);
                }
            }

            .menu {
                display: flex;
                align-items: center;
                gap: 16px;
                font-size: 14px;
                cursor: pointer;
                transition: all 0.2s ease-in-out;

                &:hover {
                    opacity: 0.7;
                }
            }
        }

        .logo {
            width: 254px;
            justify-self: center;
            position: absolute;
            top: 24px;
            right: 50%;
            left: 50%;
        }

        .right-top {
            display: flex;
            align-items: center;
            gap: 14px;

            .contact-button {
                display: flex;
                align-items: center;
                justify-content: center;
                padding: 10px 24px;
                border: 1px solid #002147;
                font-size: 14px;
                transition: all 0.1s ease-in-out;

                &:hover {
                    background-color: #002147;
                    color: white;
                    cursor: pointer;
                }
            }

            .user-account {
                display: flex;
                border-bottom: 1px solid #002147;
                font-size: 14px;
                align-items: center;
                gap: 12px;
                padding: 0 16px;
                height: 36px;
                transition: all 0.1s ease-in-out;

                &:hover {
                    background-color: rgba(184, 184, 184, 0.301);
                    cursor: pointer;
                }
            }

            .gift-button {
                display: flex;
                align-items: center;
                justify-content: center;
                border: 1px solid #002147;
                width: 36px;
                height: 36px;
                transition: all 0.1s ease-in-out;

                img {
                    width: 24px;
                }

                &:hover {
                    background-color: #002147;
                    color: white;
                    cursor: pointer;

                    img {
                        filter: brightness(0) invert(1);
                    }
                }
            }
        }
    }
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
    font-family: "Inter", sans-serif;
    color: #002147;
    padding-bottom: 64px;

    &.active {
        opacity: 1;
        visibility: visible;
        
        /* Trigger animations when modal becomes active */
        .modal-header {
            animation: slideInFromTop 0.6s ease-out 0.1s both;
        }
        
        .modal-nav-link {
            animation: slideInFromLeft 0.6s ease-out both;
            
            /* Staggered delay for each nav link */
            &:nth-child(1) { animation-delay: 0.2s; }
            &:nth-child(2) { animation-delay: 0.3s; }
            &:nth-child(3) { animation-delay: 0.4s; }
            &:nth-child(4) { animation-delay: 0.5s; }
            &:nth-child(5) { animation-delay: 0.6s; }
            &:nth-child(6) { animation-delay: 0.7s; }
        }
        
        .modal-bottom {
            animation: slideInFromBottom 0.6s ease-out 0.8s both;
        }
    }

    .modal-content {
        position: relative;
        width: 100%;
        height: 100vh;
        display: flex;
        flex-direction: column;
        padding: 24px 48px;
        box-sizing: border-box;
        overflow-y: auto;
    }

    .modal-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-shrink: 0;
        /* Initial state - hidden */
        opacity: 0;
        transform: translateY(-30px);
    }

    .close-button {
        background: none;
        border: none;
        cursor: pointer;
        padding: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease-in-out;

        &:hover {
            opacity: 0.7;
            transform: scale(1.1);
        }

        img {
            width: 32px;
            height: 32px;
        }

        &:not(:has(img))::before {
            content: "✕";
            font-size: 32px;
            color: #002147;
            font-weight: 300;
        }
    }

    .modal-body {
        flex: 1;
        display: flex;
        flex-direction: column;
        padding-top: 24px;
        margin: 0;
        gap: 8px;

        .modal-nav-link {
            text-decoration: none;
            height: 64px;
            width: 100%;
            color: black;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            transition: all 0.1s ease-in-out;
            /* Initial state - hidden */
            opacity: 0;
            transform: translateX(-50px);

            &.selected {
                font-size: 20px;
                border-top: 1px solid #B8860B;
                border-bottom: 1px solid #B8860B;
                color: #B8860B;
                font-weight: 600;

                &:hover {
                    scale: 1;
                    background-color: white;
                }
            }

            &:hover {
                scale: 1.05;
                cursor: pointer;
                background-color: #00214711;
            }
        }
    }

    .modal-bottom {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-bottom: 24px;
        font-family: "Inter";
        font-weight: 300;
        font-size: 14px;
        width: 92%;
        color: #757575;
        border-bottom: 1px solid #B8860B;
        width: 100%;
        /* Initial state - hidden */
        opacity: 0;
        transform: translateY(30px);

        a {
            color: #757575;
            text-decoration: none;
            cursor: pointer;
            transition: all 0.1s ease-in-out;

            &:hover {
                color: black;
            }
        }

        .separation {
            width: 1px;
            height: 16px;
            background-color: #7575758a;
        }

        .bottom-left,
        .bottom-right {
            display: flex;
            align-items: center;
            gap: 16px;
        }
    }

    .modal-contact-info {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 24px;
    }

    .social-icons {
        display: flex;
        gap: 16px;

        a {
            display: block;
            width: 32px;
            height: 32px;
            transition: all 0.2s ease-in-out;

            &:hover {
                transform: scale(1.1);
            }

            img {
                width: 100%;
                height: 100%;
            }
        }
    }

    .contact-details {
        display: flex;
        gap: 32px;
        font-size: 16px;
        font-weight: 300;

        span {
            color: #002147;
        }
    }

    .footer-links {
        display: flex;
        gap: 24px;
        font-size: 14px;
        font-weight: 300;

        span,
        a {
            color: #002147;
            text-decoration: none;

            &:hover {
                opacity: 0.7;
            }
        }
    }

    /* Responsive Design */
    @media (max-width: 768px) {
        .modal-content {
            padding: 32px 24px;
        }

        .modal-menu-section {
            h2 {
                font-size: 36px;
                margin-bottom: 40px;
            }
        }

        .modal-nav-link {
            font-size: 24px;
        }

        .modal-contact-info {
            flex-direction: column;
            text-align: center;
            gap: 16px;
        }

        .contact-details {
            flex-direction: column;
            gap: 8px;
        }
    }
}

/* Keyframe Animations */
@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Alternative fade-in-up animation (uncomment to use instead) */
/*
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
*/

.footer {
    background-color: #002147;
    /* width: 100%; */
    height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    justify-content: space-between;
    padding: 0;
    margin: 0;

    .footer-top {
        display: flex;
        flex-direction: column;
        align-items: center;

        .logo {
            width: 378px;
            margin-top: 52px;
        }

        .footer-text {
            font-family: "Lora";
            font-size: 16px;
            font-weight: 200;
            text-align: center;
            margin-top: 24px;
        }

        .send-mail {
            border-bottom: 1px solid white;
            padding: 8px 16px;
            margin-top: 32px;
            width: 548px;

            display: flex;
            align-items: center;
            transition: all 0.1s ease-in-out;

            &:focus-within {
                background-color: #e9e9e911;
            }

            input {
                font-family: "Inter";
                font-size: 16px;
                height: 100%;
                color: white;
                font-weight: 300;
                background-color: transparent;
                border: none;
                width: 424px;

                &:focus {
                    border: none;
                    outline: none;
                }
            }

            .sabonnerbutton {
                background-color: white;
                color: #002147;
                font-family: "Inter";
                padding: 8px 26px;
                transition: all 0.2s ease-in-out;

                &:hover {
                    cursor: pointer;
                    background-color: black;
                    color: white;
                }
            }
        }
    }

    .footer-bottom {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-bottom: 24px;
        font-family: "Inter";
        font-weight: 300;
        font-size: 14px;
        width: 92%;

        .separation {
            width: 1px;
            height: 16px;
            background-color: white;
        }

        .bottom-left,
        .bottom-right {
            display: flex;
            align-items: center;
            gap: 16px;
        }
    }
}

.condition-title {
    color: black;
    font-family: 'Inter';
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: fit-content;
}

.reservation-step {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;

    .step-container {
        color: #B9B9B9;
        border-bottom: 1px solid #B9B9B9;
        font-size: 13px;
        padding-bottom: 4px;
        width: 31%;

        &.current-step {
            color: black;
            border-bottom: 1px solid black;
        }
    }
}

@media (max-width: 892px) {

    .footer-bottom,
    .modal-bottom {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 16px;
    }

    .home-top {
        .logo {
            opacity: 0;
        }
    }
}/* Tablet adjustments */
@media (max-width: 1024px) {
    .nav-flex {
        .home-top {
            padding: 24px 32px 8px 32px;
            height: 12vh;
            
            .logo {
                width: 200px;
                top: 20px;
            }
            
            .left-top {
                gap: 10px;
                
                .language-select {
                    img {
                        width: 28px;
                    }
                    
                    .selecticon {
                        width: 16px;
                    }
                }
                
                .menu {
                    gap: 12px;
                    font-size: 13px;
                }
            }
            
            .right-top {
                gap: 10px;
                
                .contact-button {
                    padding: 8px 16px;
                    font-size: 13px;
                }
                
                .user-account {
                    font-size: 13px;
                    gap: 8px;
                    padding: 0 12px;
                    height: 32px;
                }
                
                .gift-button {
                    width: 32px;
                    height: 32px;
                    
                    img {
                        width: 20px;
                    }
                }
            }
        }
    }
}

/* Mobile landscape and small tablets */
@media (max-width: 892px) {
    .nav-flex {
        .home-top {
            padding: 16px 24px 8px 24px;
            height: 10vh;
            font-size: 16px;
            
            .logo {
                width: 160px;
                top: 16px;
            }
            
            .left-top {
                gap: 8px;
                
                .language-select {
                    padding: 0 4px 0 6px;
                    
                    img {
                        width: 24px;
                    }
                    
                    .selecticon {
                        width: 14px;
                    }
                    
                    .language-dropdown {
                        .language-option {
                            padding: 6px 8px;
                            font-size: 12px;
                            
                            img {
                                width: 20px;
                            }
                        }
                    }
                }
                
                .menu {
                    gap: 8px;
                    font-size: 12px;
                }
            }
            
            .right-top {
                gap: 8px;
                
                .contact-button {
                    padding: 6px 12px;
                    font-size: 12px;
                }
                
                .user-account {
                    font-size: 12px;
                    gap: 6px;
                    padding: 0 8px;
                    height: 28px;
                }
                
                .gift-button {
                    width: 28px;
                    height: 28px;
                    
                    img {
                        width: 16px;
                    }
                }
            }
        }
    }
    
    .modal-overlay {
        .modal-content {
            padding: 24px 16px;
        }
        
        .modal-body {
            .modal-nav-link {
                font-size: 16px;
                height: 56px;
                
                &.selected {
                    font-size: 18px;
                }
            }
        }
        
        .modal-bottom {
            flex-direction: column;
            gap: 12px;
            font-size: 12px;
            
            .bottom-left,
            .bottom-right {
                gap: 12px;
                flex-wrap: wrap;
                justify-content: center;
            }
        }
    }
}

/* Mobile portrait */
@media (max-width: 576px) {
    .nav-flex {
        padding-bottom: 40px;
        
        .home-top {
            padding: 12px 16px 8px 16px;
            height: 8vh;
            font-size: 14px;
            
            .colored {
                margin-top: 20px;
            }
            
            .logo {
                display: none;
                width: 120px;
                top: 12px;
            }
            
            .left-top {
                gap: 6px;
                
                .language-select {
                    padding: 0 3px 0 4px;
                    
                    img {
                        width: 20px;
                    }
                    
                    .selecticon {
                        width: 12px;
                    }
                    
                    .language-dropdown {
                        .language-option {
                            padding: 4px 6px;
                            font-size: 11px;
                            
                            img {
                                width: 16px;
                            }
                        }
                    }
                }
                
                .menu {
                    gap: 6px;
                    font-size: 11px;
                    
                    img {
                        width: 16px;
                    }
                }
            }
            
            .right-top {
                gap: 6px;
                
                .contact-button {
                    padding: 4px 8px;
                    font-size: 11px;
                }
                
                .user-account {
                    font-size: 11px;
                    gap: 4px;
                    padding: 0 6px;
                    height: 24px;
                    
                    img {
                        width: 16px;
                    }
                }
                
                .gift-button {
                    width: 24px;
                    height: 24px;
                    
                    img {
                        width: 14px;
                    }
                }
            }
        }
    }
    
    .modal-overlay {
        .modal-content {
            padding: 20px 12px;
        }
        
        .close-button {
            img {
                width: 24px;
                height: 24px;
            }
        }
        
        .modal-body {
            padding-top: 16px;
            gap: 4px;
            
            .modal-nav-link {
                font-size: 14px;
                height: 48px;
                
                &.selected {
                    font-size: 16px;
                }
            }
        }
        
        .modal-bottom {
            font-size: 11px;
            gap: 8px;
            
            .bottom-left,
            .bottom-right {
                gap: 8px;
                
                img {
                    width: 16px;
                }
            }
        }
    }
}

/* Very small mobile devices */
@media (max-width: 400px) {
    .nav-flex {
        .home-top {
            padding: 8px 12px 8px 12px;
            
            .left-top {
                .menu {
                    div {
                        display: none; /* Hide "MENU" text on very small screens */
                    }
                }
            }
            
            .right-top {
                .user-account {
                    div {
                        display: none; /* Hide account text on very small screens */
                    }
                }
                
                .contact-button {
                    font-size: 10px;
                    padding: 3px 6px;
                }
            }
        }
    }
}

/* Tablet styles */
@media (max-width: 768px) {
    .footer {
        height: auto;
        min-height: 70vh;
        padding: 32px 16px;

        .footer-top {
            .logo {
                width: 280px;
                margin-top: 32px;
            }

            .footer-text {
                font-size: 14px;
                margin-top: 20px;
                padding: 0 16px;
            }

            .send-mail {
                width: 100%;
                max-width: 480px;
                margin-top: 24px;

                input {
                    width: calc(100% - 120px);
                }
            }
        }

        .footer-bottom {
            flex-direction: column;
            gap: 24px;
            width: 100%;
            padding-bottom: 16px;

            .bottom-left,
            .bottom-right {
                flex-wrap: wrap;
                justify-content: center;
                gap: 12px;
            }

            .bottom-right {
                .separation {
                    display: none;
                }
            }
        }
    }
}

/* Mobile styles */
@media (max-width: 480px) {
    .footer {
        height: auto;
        min-height: 60vh;
        padding: 24px 12px;

        .footer-top {
            .logo {
                width: 220px;
                margin-top: 24px;
            }

            .footer-text {
                font-size: 13px;
                line-height: 1.5;
                margin-top: 16px;
                padding: 0 8px;
            }

            .send-mail {
                width: calc(100% - 32px);
                max-width: 340px;
                margin-top: 20px;
                padding: 6px 12px;
                flex-direction: column;
                gap: 12px;

                input {
                    width: 100%;
                    text-align: center;
                    padding: 8px 0;
                    font-size: 14px;
                }

                .sabonnerbutton {
                    width: 100%;
                    text-align: center;
                    padding: 10px 16px;
                }
            }
        }

        .footer-bottom {
            gap: 20px;
            font-size: 12px;

            .bottom-left {
                /* flex-direction: column; */
                padding-top: 32px;
                gap: 16px;

                > div:first-child {
                    display: flex;
                    gap: 12px;
                }

                .separation {
                    display: none;
                }

                a {
                    text-align: center;
                }
            }

            .bottom-right {
                gap: 8px;
                font-size: 11px;

                > div {
                    text-align: center;
                }
            }
        }
    }
}

/* Small mobile styles */
@media (max-width: 360px) {
    .footer {
        .footer-top {
            .logo {
                width: 180px;
            }

            .footer-text {
                font-size: 12px;
            }

            .send-mail {
                width: calc(100% - 24px);
                
                input {
                    font-size: 13px;
                }

                .sabonnerbutton {
                    font-size: 13px;
                    padding: 8px 12px;
                }
            }
        }

        .footer-bottom {
            .bottom-left {
                > div:first-child {
                    gap: 8px;
                    
                    img {
                        width: 20px;
                        height: 20px;
                    }
                }
            }

            .bottom-right {
                font-size: 10px;
                gap: 6px;
            }
        }
    }
}