/* Styles de base */
:root {
    --accent: #c2ad93;
    --accent-soft: rgba(194, 173, 147, 0.14);
    --accent-border: rgba(194, 173, 147, 0.28);
    --text: #2f2a24;
    --muted: #6d6256;
    --surface: rgba(255, 255, 255, 0.92);
    --surface-solid: #ffffff;
    --shadow-soft: 0 10px 28px rgba(0, 0, 0, 0.06);
}

body {
    font-family: 'Oswald', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: var(--text);
}

/* Header et logo */
.header-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px 0 10px;
    background-color: var(--surface-solid);
}

#logo {
    max-width: 180px;
    height: auto;
}

/* Navbar principale */
.site-navbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    grid-template-areas: "toggle menu tools";
    align-items: center;
    gap: 16px;
    padding: 10px 22px;
    background-color: var(--surface);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--accent-border);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
    position: relative;
    z-index: 1000;
}

/* Menu desktop */
.menu {
    grid-area: menu;
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 18px;
    justify-self: center;
}

.menu-item {
    padding: 9px 12px;
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    display: flex;
    align-items: center;
    height: auto;
    border-radius: 999px;
    border: 1px solid transparent;
    background: transparent;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.menu-item:hover {
    color: var(--accent);
    background-color: rgba(194, 173, 147, 0.12);
    border-color: rgba(194, 173, 147, 0.26);
}

.menu-item.active {
    color: var(--accent);
    background-color: rgba(194, 173, 147, 0.16);
    border-color: rgba(194, 173, 147, 0.34);
}

/* Menu déroulant simple */
.dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--surface-solid);
    min-width: 200px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    box-shadow: var(--shadow-soft);
    z-index: 9999;
    left: 0;
    top: 100%;
    overflow: hidden;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: var(--text);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dropdown-content a:hover {
    background-color: rgba(194, 173, 147, 0.12);
    color: var(--accent);
}

/* Outils à droite (réseaux + langues) */
.nav-tools {
    grid-area: tools;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    justify-self: end;
}

/* Icônes sociales et sélecteur de langue */
.social-icons, .languages {
    display: flex;
    align-items: center;
}

.social-icons {
    gap: 8px;
}

.social-icons a {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    border: 1px solid var(--accent-border);
    background: var(--accent-soft);
    color: var(--muted);
    font-size: 15px;
    text-decoration: none;
    transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.social-icons a:hover {
    background: rgba(194, 173, 147, 0.22);
    color: var(--text);
    transform: translateY(-1px);
}

.languages {
    gap: 4px;
    padding: 4px;
    border-radius: 999px;
    border: 1px solid var(--accent-border);
    background: linear-gradient(90deg, rgba(194, 173, 147, 0.18), rgba(194, 173, 147, 0.08));
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.05);
}

.languages a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--text);
    text-decoration: none;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.languages a:hover {
    background-color: rgba(255, 255, 255, 0.75);
    color: var(--accent);
    transform: translateY(-1px);
}

.languages a:focus-visible,
.social-icons a:focus-visible,
.menu-toggle:focus-visible,
.menu-item:focus-visible {
    outline: 2px solid rgba(194, 173, 147, 0.85);
    outline-offset: 2px;
}

.languages .flag {
    font-size: 14px;
    line-height: 1;
}

.languages .lang-code {
    line-height: 1;
}

/* Menu hamburger pour mobile */
.menu-toggle {
    grid-area: toggle;
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 1px solid var(--accent-border);
    background: rgba(194, 173, 147, 0.10);
    font-size: 24px;
    cursor: pointer;
    color: var(--text);
    transition: background-color 0.15s ease, transform 0.15s ease;
    justify-self: start;
}

.menu-toggle:hover {
    background: rgba(194, 173, 147, 0.18);
    transform: translateY(-1px);
}

/* Styles mobiles simplifiés */
@media screen and (max-width: 768px) {
    .site-navbar {
        padding: 10px 14px;
        grid-template-columns: auto 1fr auto;
        grid-template-areas: "toggle menu tools";
    }
    
    .menu-toggle {
        display: block;
    }
    
    .menu {
        display: none;
        grid-column: 1 / -1;
        grid-row: 2;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        padding: 10px 0 0;
    }
    
    .menu.active {
        display: flex;
    }
    
    .menu-item {
        padding: 14px 12px;
        text-align: left;
        border-top: 1px solid rgba(194, 173, 147, 0.22);
        width: 100%;
        justify-content: space-between;
    }
    
    .dropdown-btn {
        width: 100%;
        position: relative;
    }
    
    .dropdown-btn::after {
        content: "▼";
        font-size: 10px;
        margin-left: 8px;
    }
    
    .dropdown-content {
        position: static;
        box-shadow: none;
        border: none;
        border-radius: 0;
        width: 100%;
        display: none;
        background-color: transparent;
    }
    
    .dropdown-content a {
        padding: 12px 18px 12px 28px;
        border-top: 1px solid rgba(0, 0, 0, 0.06);
        display: block;
        width: 100%;
    }
}

@media screen and (max-width: 420px) {
    .languages .lang-code {
        display: none;
    }
}
