/* Rye */
@font-face {
  font-family: 'Rye';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/Rye/Rye-Regular.ttf') format('truetype');
}

/* Ultra */
@font-face {
  font-family: 'Ultra';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/Ultra/Ultra-Regular.ttf') format('truetype'); 
}

/* Work Sans */
@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 100 900;
  src: url('../fonts/Work_Sans/WorkSans-VariableFont_wght.ttf') format('truetype');
}

:root {
  --brown: #694730;
  --white: #FFF7DD;
  --black: #1a1a1a;
  --text-dark: #2d2d2d;
  --font-rye: 'Rye', cursive;
  --font-sans: 'Ultra', sans-serif;
  --font-classic: 'Work Sans', sans-serif;
  --radius: 12px;
  --fond: url('/img/ui/fond.webp');
}

*, *::before, *::after { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 

    user-select: none;
    -webkit-user-select: none; 
    -moz-user-select: none;  
    -ms-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-sans);
    font-weight: bold;
    color: var(--text-dark);
    background: var(--white);
    min-height: 100vh;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; transition: transform 0.3s ease; }
a:hover { transform: scale(1.02); }

.navbar {
    position: relative;
    top: 0; width: 100%;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(105,71,48,0.3);
    z-index: 1000;
}
.nav-container {
    max-width: 1400px; margin: 0 auto;
    padding: 15px 40px;
    display: flex; justify-content: space-between; align-items: center;
    font-family: 'Work Sans', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
}
.nav-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.nav-logo img {
    height: 50px;
    width: auto;
    display: block;
}
.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}
.nav-menu a {
    color: var(--brown);
    font-family: 'Work Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}
.nav-menu a.nav-active {
    text-decoration: underline;
    text-underline-offset: 4px;
}
.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 6px;
}
.lang-btn {
    background: none;
    border: none;
    padding: 2px;
    cursor: pointer;
    border-radius: 4px;
    opacity: 0.45;
    transition: opacity 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
}
.lang-btn:hover { opacity: 0.75; transform: scale(1.1); }
.lang-btn.lang-active { opacity: 1; }

.flag-icon {
    width: 26px;
    height: 18px;
    display: block;
    border-radius: 3px;
    object-fit: cover;
}
.flag-icon svg { width: 100%; height: 100%; display: block; }
.menu-toggle, .hamburger { display: none; }

.partners-section { padding: 60px 40px; }
.partners-container { display: flex; justify-content: center; gap: 40px; }
.partner-logo img { height: 40px; opacity: 0.8; object-fit: contain; }
.footer {
    background-image: var(--fond);
    padding: 30px;
    text-align: center;
    color: var(--white);
    font-weight: 600;
    font-family: var(--font-classic);
}

.footer.footer-light {
    background-image: none;
    background-color: #FFF7DD;
    color: #694730;
}

.mentionfooter {
    color: inherit;
    text-decoration: none;
    font-weight: 300;

}

.mentionfooter:hover {
    opacity: 0.75;
}

.nav-lang-mobile {
    display: none; 
}

@media (max-width: 1400px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 80px; left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        box-shadow: 0 4px 10px rgba(105,71,48,0.15);
    }
    .menu-toggle:checked ~ .nav-menu { display: flex; }
    .hamburger {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        padding: 4px;
        order: 3;
    }
    .hamburger span { width: 25px; height: 3px; background: var(--brown); border-radius: 2px; }
    
    .nav-right {
        order: 2; 
    }

    .desktop-langs {
        display: none;
    }

    .nav-lang-mobile {
        display: block;
        padding-top: 15px;
        border-top: 1px solid rgba(105, 71, 48, 0.1);
        margin-top: 10px;
    }

    .nav-lang-mobile .lang-switcher {
        justify-content: flex-start; 
        gap: 15px;
    }


    .menu-toggle:checked ~ .nav-menu {
        display: flex;
    }
}