/* ────────────────────────────
 * 🧭 NAVBAR
 *──────────────────────────── */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    font-family: var(--primary-font-family);
}

#navbar nav {
    display: flex;
    align-items: center;
    padding: 10px 40px;
}

.nav-links {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 20px;
}

#navbar nav a {
    position: relative;
    margin: 0 15px;
    text-decoration: none;
    color: black;
    font-weight: bold;
    font-size: 25px;
    transition: color 0.3s ease;
    white-space: nowrap;
}

#navbar nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    left: 0;
    bottom: -5px;
    background-color: #A60808;
    transition: width 0.3s ease;
}

#navbar nav a:hover,
#navbar nav a.active {
    color: #A60808;
}

#navbar nav a:hover::after,
#navbar nav a.active::after {
    width: 100%;
}

#navbar.transparent {
    background-color: #ffffff;
    box-shadow: none;
}

/* #navbar.scrolled {
    background-color: var(--secondary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
} */

@media (max-width: 480px) {
    #navbar nav a {
        font-size: 20px;
    }
}

/* ────────────────────────────
 * 🍔 MENU HAMBURGER (MOBILE)
 *──────────────────────────── */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    height: 3px;
    width: 25px;
    background: currentColor;
    border-radius: 2px;
    transition: all 0.3s ease;
}

@media (max-width: 992px) {
    #navbar nav {
        padding: 10px 25px;
        justify-content: space-between;
    }

    .hamburger {
        display: flex;
        color: #E9D6AA;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 20px 0;
        display: none;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    #navbar.transparent .nav-links {
        background-color: #ffffff;
    }

    /* #navbar.scrolled .nav-links {
        background-color: var(--secondary-color);
    } */

    .nav-links.active {
        display: flex;
    }
}

.hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ────────────────────────────
 * 📶 BARRE DE PROGRESSION SCROLL
 *──────────────────────────── */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background-color: #E9D6AA;
    width: 0%;
    z-index: 2000;
    transition: width 0.2s ease-out;
}

/* ────────────────────────────
 * 🖼️ LOGO
 *──────────────────────────── */
.logo {
    height: 80px;
    transition: transform 0.3s ease;
}

.logo.fade {
    opacity: 0;
}

.logo:hover {
    transform: scale(1.05);
}

.middle-logo {
    width: 160px;
    bottom: 90px;
    position: relative;
}

@media (max-width: 992px) {

    .middle-logo {
        bottom: 25px;
    }
}

/* ────────────────────────────
 * 🏠 SECTION ACCUEIL
 *──────────────────────────── */
#accueil {
    min-height: 100vh;
    text-align: center;
    background: url('../images/background.png') no-repeat center center/cover;
    color: rgb(0, 0, 0);
    position: relative;
    padding-top: 80px;

}

#accueil li {
    list-style: none;
}



/* ────────────────────────────
 * 🌍 SÉLECTEURS DE LANGUE (MULTI)
 *──────────────────────────── */

#language-switcher {
    z-index: 10000;
    display: flex;
    gap: 10px;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(6px);
    border-radius: 30px;
    padding: 8px 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

#language-switcher2 {
    position: fixed;
    z-index: 10001;
    display: flex;
    gap: 10px;
    top: 20px;
    right: 20px;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(6px);
    border-radius: 12px;
    padding: 8px 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

#language-switcher button,
#language-switcher2 button {
    font-family: var(--primary-font-family);
    font-size: 0.95rem;
    background: none;
    border: none;
    padding: 5px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#language-switcher button img,
#language-switcher2 button img {
    width: 24px;
    height: 24px;
    display: block;
    border-radius: 50%;
}

#language-switcher button:hover,
#language-switcher button.active,
#language-switcher2 button:hover,
#language-switcher2 button.active {
    transform: scale(1.1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    background-color: var(--primary-color);
    color: white;
    font-weight: bold;
}

/* ─────────── Responsive ─────────── */
@media (max-width: 480px) {

    #language-switcher,
    #language-switcher2 {
        gap: 6px;
        padding: 6px 10px;
    }
}

/* ────────────────────────────
 * 💼 FOOTER SIGNATURE DÉVELOPPEUR
 *──────────────────────────── */
.footer-invitation {
    background-color: #fdf9f3;
    text-align: center;
    font-family: var(--primary-font-family);
    font-size: 1rem;
    color: #6b5b4a;
    border-top: 1px solid #e3d4c0;
    box-shadow: inset 0 1px 0 #e3d4c0;
}

.footer-invitation .footer-content p {
    margin: 10px 0;
    line-height: 1.6;
}

.footer-invitation a {
    color: #b8996e;
    text-decoration: none;
    font-weight: 600;
    flex-shrink: 0;
    width: 100%;
}

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

#footer_name {
    font-weight: bold;
}

/* ─────────────────────────────
 * 📱 menu 
 *──────────────────────────── */

/* ====== SECTION FULL WIDTH + FLEX / STYLE PREMIUM SOBRE ====== */
.menu-namy {
    width: 100%;
    display: flex;
    background: url('../images/background.png') no-repeat center center/cover;
    /* centre le contenu */
    justify-content: center;
    /* ton image de fond peut être appliquée ici via background */
    color: #1a1715;
    text-transform: uppercase;
    font-family: 'Katana', system-ui, sans-serif;
}

#page1 {
    padding-top: 80px;
}

/* Conteneur centré : calé sur la maquette 676px */
.menu-namy__content {
    position: relative;
    padding: 41px 35px 54px;
    /* top | lr | bottom */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    line-height: 1.25;
}

/* Vignettage discret pour mieux cadrer l’œil */
.menu-namy__content::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    box-shadow: inset 0 0 120px rgba(0, 0, 0, .24);
}

/* ====== Titres ====== */
.menu-namy h1 {
    font-size: 112px;
    /* “NAMY” */
    margin: 0 0 15px;
    letter-spacing: 0.06em;
}

.menu-namy .subtitle {
    font-size: 49px;
    margin: 0 0 37px;
    letter-spacing: 0.05em;
}

/* Titre de section + séparateur décoratif */
.menu-namy .section-title {
    font-size: 33px;
    margin: 37px 0 16px;
    /* + un peu d’air pour le séparateur */
    letter-spacing: 0.04em;
    position: relative;
}

.menu-namy .section-title .small {
    font-size: 0.65em;
}

/* Séparateur : petite “barre texturée” centrée */
.menu-namy .section-title::after {
    content: "";
    display: block;
    width: 160px;
    height: 10px;
    margin: 10px auto 0;
    background:
        repeating-linear-gradient(90deg,
            rgba(0, 0, 0, .28) 0px, rgba(0, 0, 0, .28) 12px,
            rgba(0, 0, 0, 0) 12px, rgba(0, 0, 0, 0) 22px);
    opacity: .55;
}

/* Variante “MAKI - 33₪” sur une seule ligne */
.menu-namy .section-title--inline {
    display: flex;
    align-items: baseline;
    gap: 14px;
    justify-content: center;
}

.menu-namy .section-title--inline::after {
    display: none;
}

.menu-namy .dash {
    margin: 0 3px;
}

/* ====== Listes (tout centré) ====== */
.menu-namy .items {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* centrage strict de chaque ligne */
    gap: 8px;
}

.menu-namy .items li {
    font-size: 24px;
    line-height: 1.35;
    letter-spacing: 0.02em;
    white-space: normal;
}

/* Deux éléments côte à côte pour les suppléments (toujours centrés) */
.menu-namy .items--two {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    /* espace entre les deux entrées */
}

/* Pastille de prix premium */
.menu-namy .price {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 12px;
    border: 1px solid rgba(0, 0, 0, .22);
    border-radius: 9999px;
    background: rgba(255, 255, 255, .55);
    backdrop-filter: blur(1px);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.04em;
}

/* (Optionnel) style pour de futurs badges : VEG / HOT / NEW */
.menu-namy .badge {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 6px;
    font-size: 14px;
    border: 1px solid #b63;
    border-radius: 6px;
    color: #b63;
    background: rgba(182, 99, 0, .08);
}



@media screen and (max-width: 768px) {
    .menu-namy .price {
        margin-left: 4px;
        padding: 1px 8px;
        font-size: 0.9em;
    }

    .menu-namy .badge {
        margin-left: 4px;
        padding: 1px 4px;
        font-size: 12px;
    }

    .menu-namy h1 {
        font-size: 72px;
        margin: 0 0 10px;
    }

    .brcht-y {
        font-size: 25px;
    }

    .menu-namy .subtitle {
        font-size: 32px;
        margin: 0 0 20px;
    }

    .menu-namy .section-title {
        font-size: 24px;
        margin: 30px 0 12px;
    }

    .menu-namy .items li {
        font-size: 18px;
        line-height: 1.4;
    }

    .menu-namy__content {
        padding: 30px 20px 40px;
    }

}

/* ====== Décorations (positions calquées sur 676px) ====== */
.doodle {
    display: none;
}

.menu-namy .doodle {
    position: absolute;
    opacity: .7;
    pointer-events: none;
}

.menu-namy .doodle-chopsticks {
    width: 88px;
    top: 54px;
    right: 47px;
    transform: rotate(18deg);
}

.menu-namy .doodle-rolls-left {
    width: 95px;
    top: 352px;
    left: 41px;
}

.menu-namy .doodle-rolls-right {
    width: 108px;
    top: 581px;
    right: 61px;
}

/* Lissage */
.menu-namy p,
.menu-namy li,
.menu-namy h1,
.menu-namy h2 {
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* ===== Doodles spécifiques pages suivantes (optionnels) ===== */
.page-2 .doodle-fish-right {
    width: 120px;
    top: 130px;
    right: 60px;
    opacity: .65;
}

.page-2 .doodle-bowl-left {
    width: 120px;
    top: 520px;
    left: 40px;
    opacity: .65;
}

.page-3 .doodle-plate-left {
    width: 120px;
    top: 90px;
    left: 40px;
    opacity: .65;
}

.page-3 .doodle-chopsticks-bottom {
    width: 160px;
    bottom: 40px;
    right: 60px;
    opacity: .65;
}

/* ---- 1) iOS fixed elements: éviter le débordement sous Safari ---- */
#navbar {
    left: 0;
    /* ancre aux bords plutôt que width:100% */
    right: 0;
    width: auto;
}

#scroll-progress {
    left: 0;
    right: 0;
    width: auto;
    /* la largeur sera gérée par ton JS via transform/width */
}

/* ---- 2) Nav: garantir qu’elle ne pousse pas en largeur ---- */
.nav-links {
    min-width: 0;
}

/* autorise la réduction */
#navbar nav a {
    margin: 0;
    /* les gaps suffisent, évite l’addition margin+gap */
}

.nav-links {
    gap: 16px;
}

/* Quand le menu mobile est ouvert, prends toute la largeur SANS overflow */
@media (max-width: 768px) {
    .nav-links.active {
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        width: auto;
        /* pas de 100vw */
        overflow-x: hidden;
    }
}

/* ---- 3) Footer: éviter le débordement en flex ---- */
.footer-invitation a {
    flex-shrink: 1;
    /* laissait 0 + width:100% -> peut dépasser */
    width: auto;
    /* laisse le parent contrôler */
    max-width: 100%;
}

/* ---- 4) Menu: la liste "items--two" ne force jamais deux colonnes sur tel ---- */
@media (max-width: 480px) {
    .menu-namy .items--two {
        flex-direction: column;
        gap: 8px;
    }
}

/* ---- 5) Garde-fous globaux sans casser la mise en page ---- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

img,
svg,
video {
    max-width: 100%;
    height: auto;
}

html,
body {
    width: 100%;
    /* à activer si tu veux masquer tout reste de débordement résiduel:
  overflow-x: hidden;
  */
}

/* iOS micro-shift (arrondi): créer un nouveau contexte de rendu */
@supports (-webkit-touch-callout: none) {

    #navbar,
    .menu-namy {
        transform: translateZ(0);
    }
}