/* ────────────────────────────
 * 🧭 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: flex-start;
    gap: 12px;
    padding: 0 10px;
    overflow-x: auto;
    scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
    display: none;
}

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

#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: 18px;
    }
}

/* ────────────────────────────
 * 🍔 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 16px;
        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: 16px;
        padding: 16px 0 20px;
        display: none;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        overflow: visible;
    }

    #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;
    padding: 22px 20px;
    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;
}

[data-lang="he"] .footer-invitation {
    font-family: var(--primary-hebrew-font-family);
    font-size: 20px;
}

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

/* Ligne "créé par" avec lien discret mais cliquable */
.footer-invitation .credit {
    color: #6b5b4a;
}

.footer-invitation .creator-link {
    font-weight: 700;
    color: #b8996e;
    text-decoration: none;
    padding-bottom: 2px;
}

.footer-invitation .creator-link:hover {
    color: #a07f52;
    border-bottom-color: transparent;
}

/* Ligne de contact */
.footer-invitation .contact-rows {
    display: flex;
    gap: 10px;
    margin-top: 4px;
    justify-content: center;
}

.contact {
    display: flex;
    flex-direction: column;
}

.footer-invitation .contact a {
    color: #b8996e;
    font-weight: 600;
    text-decoration: none;
}

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

.footer-invitation .btn-footer {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: linear-gradient(180deg, #eadecf 0%, #e4cfb8 100%);
    color: #5a4b3a;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: .2px;
    box-shadow: 0 1px 0 #e3d4c0, 0 6px 18px rgba(184, 153, 110, .15);
    transition: transform .15s ease, box-shadow .2s ease, background .3s ease;
    will-change: transform;
}

.footer-invitation .btn-footer:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 0 #e3d4c0, 0 10px 24px rgba(184, 153, 110, .22);
}

.footer-invitation .wa-ic {
    width: 18px;
    height: 18px;
    fill: #2f7a39;
    /* vert doux, reste discret */
}

/* Responsive */
@media (max-width: 600px) {
    .footer-invitation {
        font-size: .95rem;
        padding: 18px 12px;
    }

    .footer-invitation .btn-footer {
        width: 100%;
        justify-content: center;
    }
}

/* ─────────────────────────────
 * 📱 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);
    }
}

/* =================== MENU PHOTOS =================== */
.menu-namy-photos {
    width: 100%;
    padding-top: 80px;
    min-height: 100%;
    display: flex;
    justify-content: center;
    background: url("../images/background.png") center/cover no-repeat fixed;
    color: #1a1715;
    text-transform: uppercase;
    font-family: 'Katana', system-ui, sans-serif;
}

.mnp-content {
    width: 100%;
    max-width: 1120px;
    padding: 28px 16px 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    line-height: 1.25;
    margin: 0 auto;
    position: relative;
}

.mnp-content::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    box-shadow: inset 0 0 160px rgba(0, 0, 0, .18);
}

.mnp-header h1 {
    font-size: 54px;
    margin: 0 0 10px;
    letter-spacing: .06em;
}

.mnp-subtitle {
    font-size: 26px;
    margin: 0 0 14px;
    letter-spacing: .05em;
}

.mnp-help {
    font-size: 13px;
    opacity: .82;
    margin: 0 0 18px;
}

.mnp-section {
    width: 100%;
    font-size: 20px;
    letter-spacing: .045em;
    margin: 22px 0 12px;
    position: relative;
}

.mnp-section::after {
    content: "";
    display: block;
    width: 160px;
    height: 1px;
    margin: 10px auto 0;
    background: rgba(0, 0, 0, .28);
}

.mnp-subsection {
    margin: 6px 0 18px;
}

.mnp-subsection-title {
    font-size: 18px;
    letter-spacing: .04em;
    text-align: left;
    margin: 0 0 10px;
}

.mnp-grid {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .55s ease, transform .55s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.mnp-grid--mini {
    gap: 10px;
}

@media (min-width: 480px) {
    .mnp-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .mnp-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.mnp-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: block;
    width: 100%;
    height: 220px;
    border-radius: 16px;
    background: #ddd;
    border: 1px solid rgba(0, 0, 0, .12);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
    transition: transform .12s ease, box-shadow .15s ease, filter .15s ease;
    -webkit-tap-highlight-color: transparent;
}

.mnp-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(1.02) contrast(1.02);
}

.mnp-card--mini {
    height: 160px;
}

.mnp-card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 14px;
    background: linear-gradient(to top, rgba(0, 0, 0, .48), rgba(0, 0, 0, .06) 58%, rgba(0, 0, 0, 0) 75%);
}

.mnp-card-title {
    color: #fff;
    font-size: 16px;
    margin-bottom: 8px;
    letter-spacing: .06em;
}

.mnp-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    height: 26px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 9999px;
    color: #fff;
    background: rgba(0, 0, 0, .2);
    backdrop-filter: blur(1px);
    font-variant-numeric: tabular-nums;
    letter-spacing: .04em;
}

.mnp-chevron {
    position: absolute;
    right: 10px;
    bottom: 8px;
    color: rgba(255, 255, 255, .9);
    font-size: 18px;
}

.mnp-card:focus-visible {
    outline: 2px solid rgba(255, 255, 255, .9);
    outline-offset: -2px;
}

.mnp-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .14);
}

.mnp-card:active {
    transform: translateY(1px);
    filter: brightness(.96);
}

.mnp-notes {
    width: 100%;
    background: rgba(255, 255, 255, .78);
    border: 1px solid rgba(0, 0, 0, .1);
    border-radius: 12px;
    padding: 12px 14px;
    margin: 6px 0 18px;
    text-transform: none;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: #1a1715;
}

.mnp-notes p {
    margin: 6px 0;
    font-size: 14px;
}

.mnp-modal[hidden] {
    display: none;
}

.mnp-modal {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    z-index: 999;
    padding: 18px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .28s ease;
}

.mnp-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity .28s ease;
}

.mnp-modal__dialog {
    position: relative;
    width: min(960px, 96vw);
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 48px rgba(0, 0, 0, .18);
    display: grid;
    grid-template-columns: 1fr;
    transform: translateY(16px) scale(.98);
    opacity: 0;
    transition: transform .32s ease, opacity .32s ease;
}

.mnp-modal.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.mnp-modal.is-visible .mnp-modal__backdrop {
    opacity: 1;
}

.mnp-modal.is-visible .mnp-modal__dialog {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.mnp-modal__media img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

.mnp-modal__content {
    padding: 20px 18px 22px;
    text-align: left;
    text-transform: none;
    color: #1a1715;
}

.mnp-modal__content h3 {
    margin: 0 0 8px;
    font-size: 22px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.mnp-modal__description {
    margin: 0 0 10px;
    font-size: 14px;
    color: rgba(0, 0, 0, .78);
}

.mnp-modal__list {
    display: grid;
    gap: 8px;
}

.mnp-modal__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(0, 0, 0, .03);
    font-size: 15px;
    border: 1px solid rgba(0, 0, 0, .08);
}

.mnp-modal__row-title {
    font-weight: 600;
}

.mnp-modal__row-price {
    font-variant-numeric: tabular-nums;
}

.mnp-modal__special {
    margin: 12px 0;
}

#mnp-special-note-row {
    margin-top: 8px;
}

.mnp-modal__close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: rgba(0, 0, 0, .06);
    border: none;
    border-radius: 999px;
    width: 34px;
    height: 34px;
    font-size: 18px;
    cursor: pointer;
}

.mnp-modal__close:hover {
    background: rgba(0, 0, 0, .12);
}

.mnp-modal__close:focus-visible {
    outline: 2px solid #000;
}

@media (min-width: 840px) {
    .mnp-modal__dialog {
        grid-template-columns: 1fr 1fr;
    }

    .mnp-modal__media img {
        height: 100%;
        min-height: 100%;
    }
}

@media (min-width: 768px) {
    .mnp-header h1 {
        font-size: 80px;
        margin-bottom: 12px;
    }

    .mnp-subtitle {
        font-size: 36px;
        margin-bottom: 18px;
    }

    .mnp-section {
        font-size: 26px;
        margin: 28px 0 14px;
    }

    .mnp-card {
        height: 240px;
    }

    .mnp-card--mini {
        height: 170px;
    }

    .mnp-card-title {
        font-size: 18px;
    }
}

@media (max-width: 360px) {
    .mnp-card {
        height: 200px;
    }

    .mnp-card-title {
        font-size: 15px;
    }
}