/*
 * Château Richelieu - 法文页面公共菜单及字体样式 (menu-fr.css)
 * 统一作为 nav 顶导与 .fullscreen-menu 全屏目录的公共样式支持。
 * 遵循 fr-mjjn.html 黄金标准。
 */

/* ── 字体声明 ── */
/* Bebas Neue 由外部 Google Fonts (https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap) 或 nosvins/assets/fonts.css 引入 */

/* ── 顶部导航栏 (NAV) ── */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: 90px;
    /* padding: 0 50px; */
    padding: 25px 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    transition: .6s;
    backdrop-filter: blur(8px);
}

nav.scrolled {
    height: 70px;
    padding: 0 50px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.menu {
    justify-self: end;
    display: flex;
    gap: 20px;
}

.menu a {
    color: #d7b26d;
    text-decoration: none;
    border: 1px solid rgba(215, 178, 109, .4);
    padding: 10px 25px;
    transition: .5s;
    position: relative;
    overflow: hidden;
}

.menu a.active {
    background: rgba(215, 178, 109, .15);
    border-color: rgba(215, 178, 109, .4);
    color: #fff;
    box-shadow: 0 0 12px rgba(215, 178, 109, .25);
}

.menu a:before {
    content: '';
    position: absolute;
    left: -100%;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .3), transparent);
    transition: .7s;
}

.menu a:hover:before {
    left: 100%;
}

.menu a:hover {
    transform: translateY(-5px);
    border-color: #fff;
}

.logo-container {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4px 0;
    top: 6px;
}

nav.scrolled .logo-container {
    top: 0px;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: #d7b26d;
    transition: .4s;
}

.hamburger:hover span {
    background: #fff;
}

.logo-image {
    width: 180px;
    height: auto;
    transition: .6s;
    filter: drop-shadow(0 0 15px rgba(215, 178, 109, .5));
}

nav.scrolled .logo-image {
    width: 140px;
}

.logo-image:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 30px rgba(215, 178, 109, .8));
}

.menu {
    justify-self: end;
    display: flex;
    gap: 20px;
}

.menu a {
    color: #d7b26d;
    text-decoration: none;
    border: 1px solid rgba(215, 178, 109, .4);
    padding: 10px 25px;
    transition: .5s;
    position: relative;
    overflow: hidden;
}

.menu a.active {
    background: rgba(215, 178, 109, .15);
    border-color: rgba(215, 178, 109, .4);
    color: #fff;
    box-shadow: 0 0 12px rgba(215, 178, 109, .25);
}

.menu a:before {
    content: '';
    position: absolute;
    left: -100%;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .3), transparent);
    transition: .7s;
}

.menu a:hover:before {
    left: 100%;
}

.menu a:hover {
    transform: translateY(-5px);
    border-color: #fff;
}

/* ── 全屏覆盖层控制 (fullscreen-menu) ── */
.fullscreen-menu {
    position: fixed;
    inset: 0;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity .5s cubic-bezier(.4, 0, .2, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #f2ede6;
    font-family: 'Bebas Neue', sans-serif;
    color: #3a2a1a;
}

.fullscreen-menu.open {
    opacity: 1;
    pointer-events: all;
}

/* ── 羊皮纸纹理叠层 (局部化，避免污染主页面背景) ── */
.fullscreen-menu::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

/* ── 建筑剪影背景 ── */
.fullscreen-menu .bg-sketch {
    position: fixed;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 110%;
    max-width: 1500px;
    opacity: 0.82;
    pointer-events: none;
    z-index: 1;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.fullscreen-menu .bg-sketch img {
    width: 100%;
    height: auto;
    display: block;
}

/* ── 主容器 ── */
.fullscreen-menu .page {
    position: relative;
    z-index: 2;
    height: 100vh;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 32px 40px 0;
    overflow-y: scroll;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.fullscreen-menu .page::-webkit-scrollbar {
    display: none;
}

/* ── LOGO ── */
.fullscreen-menu .logo-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 16px;
    animation: fadeDown 1.1s ease both;
    position: relative;
    z-index: 3;
}

.fullscreen-menu .logo-emblem {
    width: 72px;
    height: 72px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fullscreen-menu .logo-emblem svg {
    width: 72px;
    height: 72px;
}

.fullscreen-menu .logo-chateau {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 11px;
    letter-spacing: 7px;
    text-transform: uppercase;
    color: #7a5c3a;
    opacity: .8;
    margin-bottom: 2px;
}

.fullscreen-menu .logo-name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 42px;
    font-weight: 500;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: #2e1e0f;
    line-height: 1;
}

.fullscreen-menu .logo-img-wrap {
    position: relative;
    display: inline-block;
}

.fullscreen-menu .logo-img-wrap img {
    display: block;
    transition: transform .6s cubic-bezier(.25, .46, .45, .94);
}

.fullscreen-menu .logo-img-wrap:hover img {
    transform: scale(1.03) translateY(-4px);
}

/* ── NOS VINS 按钮 ── */
.fullscreen-menu .nos-vins-wrap {
    display: none;
}

.fullscreen-menu .nos-vins-pill {
    display: inline-flex;
    align-items: center;
    border: 1px solid #8b7a64;
    border-radius: 50px;
    padding: 8px 36px;
    font-size: 28px;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-weight: 400;
    color: #8b7a64;
    font-family: 'Bebas Neue', sans-serif;
    cursor: pointer;
    background: transparent;
    transition: .3s;
    text-decoration: none;
}

.fullscreen-menu .nos-vins-pill:hover {
    background: #8b7a64;
    color: #f2ede6;
}

/* ── 目录网格 ── */
.fullscreen-menu .directory {
    width: 100%;
    max-width: 1100px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 0;
    margin-bottom: 0;
    flex: 1;
}


.mobile-directory {
    display: none;
}

.fullscreen-menu .dir-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    opacity: 0;
    transform: translateY(18px);
    animation: fadeUp .7s ease both;
}

.fullscreen-menu .dir-col:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
    animation-delay: .3s;
    justify-content: flex-end;
    padding-bottom: 28px;
}

.fullscreen-menu .dir-col:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
    animation-delay: .5s;
    justify-content: flex-start;
    padding-top: 28px;
}

.fullscreen-menu .dir-col:nth-child(3) {
    grid-column: 3;
    grid-row: 1;
    animation-delay: .4s;
    justify-content: flex-end;
    padding-bottom: 28px;
}

.fullscreen-menu .dir-col:nth-child(4) {
    grid-column: 3;
    grid-row: 2;
    animation-delay: .6s;
    justify-content: flex-start;
    padding-top: 28px;
}

.fullscreen-menu .dir-col-center {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 20px 48px 0;
    opacity: 0;
    animation: fadeUp .7s .2s ease both;
    animation-fill-mode: both;
}

.fullscreen-menu .dir-title {
    text-decoration: none;
    font-size: 28px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 400;
    color: #8b7a64;
    margin-bottom: 6px;
    padding-bottom: 6px;
    width: 100%;
    font-family: 'Bebas Neue', sans-serif;
}

.fullscreen-menu .dir-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.fullscreen-menu .dir-links a {
    font-size: 18px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #111111;
    text-decoration: none;
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    transition: .3s;
    opacity: 1;
    position: relative;
    display: inline-block;
}

.fullscreen-menu .dir-links a::after {
    display: none;
}

.fullscreen-menu .dir-links a:hover {
    opacity: .7;
    color: #5a3e22;
}

/* ── LA MAISON ── */
.fullscreen-menu .maison-wrap {
    margin-bottom: 0;
    animation: fadeUp .7s .7s ease both;
    opacity: 0;
    animation-fill-mode: both;
}

.fullscreen-menu .maison-link {
    font-size: 28px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 400;
    color: #8b7a64;
    text-decoration: none;
    font-family: 'Bebas Neue', sans-serif;
    transition: .3s;
    position: relative;
    display: inline-block;
    padding-bottom: 4px;
}

.fullscreen-menu .maison-link::after {
    display: none;
}

.fullscreen-menu .maison-link:hover {
    opacity: .8;
}

/* ── FOOTER ── */
.fullscreen-menu footer {
    width: 100%;
    border-top: 1px solid rgba(122, 92, 58, .2);
    padding: 22px 0 28px;
    display: flex;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
    margin-top: auto;
    flex-shrink: 0;
    background: #f2ede6;
    position: relative;
    z-index: 5;
    animation: fadeUp .7s .85s ease both;
    opacity: 0;
    animation-fill-mode: both;
}

.fullscreen-menu footer a {
    font-size: 15px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #2a1a08;
    text-decoration: none;
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 300;
    opacity: .6;
    transition: .3s;
    padding: 6px 24px;
    border-right: 1px solid rgba(122, 92, 58, .3);
}

.fullscreen-menu footer a:last-child {
    border-right: none;
}

.fullscreen-menu footer a:hover {
    opacity: 1;
    color: #5a3e22;
}

/* ── ANIMATIONS ── */
@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── RESPONSIVE ── */
@media(max-width:640px) {
    .directory {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .logo-name {
        font-size: 30px;
    }

    footer a {
        /* padding: 6px 14px; */
    }
}

.fullscreen-menu .page {
    transform: translateX(-100%);
    transition: transform .55s cubic-bezier(.4, 0, .2, 1);
}

.fullscreen-menu.open .page {
    transform: translateX(0);
}

.menu-close-btn {
    position: absolute;
    top: 35px;
    right: 36px;
    background: none;
    border: none;
    font-size: 25px;
    cursor: pointer;
    color: #7a5c3a;
    z-index: 10;
    line-height: 1;
    transition: .3s;
    font-family: sans-serif;
}

@media (max-width: 768px) {
    .menu-close-btn {
        font-size: 24px;
        top: 20px;
        right: 20px;
    }
}

.menu-close-btn:hover {
    color: #2e1e0f;
    transform: rotate(90deg);
}

/* 每次打开重新触发动画 */
.fullscreen-menu .dir-col,
.fullscreen-menu .maison-wrap,
.fullscreen-menu footer {
    opacity: 0;
    animation: none;
}

.fullscreen-menu.open .dir-col {
    animation: fadeUp .7s ease both;
}

.fullscreen-menu.open .dir-col:nth-child(1) {
    animation-delay: .25s;
}

.fullscreen-menu.open .dir-col:nth-child(2) {
    animation-delay: .35s;
}

.fullscreen-menu.open .dir-col:nth-child(3) {
    animation-delay: .45s;
}

.fullscreen-menu.open .dir-col:nth-child(4) {
    animation-delay: .55s;
}

.fullscreen-menu.open .dir-col-center {
    animation: fadeUp .7s .2s ease both;
}

.fullscreen-menu.open .maison-wrap {
    display: none;
}

.fullscreen-menu.open footer {
    animation: fadeUp .7s .75s ease both;
}

.fullscreen-menu.open .logo-area {
    animation: fadeDown .7s ease both;
}

.fullscreen-menu.open .nos-vins-wrap {
    animation: fadeUp .7s .1s ease both;
}

/* ==========================================
   页面底部统一 Footer 样式 (基于 fr-mjjn.html)
   ========================================== */
footer {
    padding: 100px 40px;
    /* background: #000000; */
    background: #ffffff;
    text-align: center;
    /* color: #ffffff; */
    color: #000000;
    position: relative;
    z-index: 10;
}

.footer1 {
    padding: 40px 20px;
    /* background: #000000; */
    background: #1a120b;
    /* background: #ffffff; */
    text-align: center;
    color: #ffffff;
    /* color: #000000; */
    position: relative;
    z-index: 10;
}


footer h1 {
    font-size: 70px;
    font-family: 'CormorantGaramond', Georgia, serif;
    font-weight: 500;
    margin-bottom: 30px;
    /* color: #ffffff; */
    color: #000000;
}

.footer1 h1 {
    /* font-size: 70px; */
    font-size: 44px;
    font-family: 'CormorantGaramond', Georgia, serif;
    font-weight: 500;
    margin-bottom: 30px;
    color: #ffffff;
    /* color: #000000; */
}

footer ul {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

footer li {
    font-size: 20px;
    opacity: .8;
    transition: .5s;
    cursor: pointer;
    font-family: 'CormorantGaramond', Georgia, serif;
}

footer li a {
    /* color: #ffffff; */
    text-decoration: none;
}

.footer1 li a {
    color: #ffffff;
    text-decoration: none;
}

footer li:hover {
    transform: translateY(-5px);
}

footer li a:hover {
    color: #d7b26d;
}

@media (max-width: 768px) {
    nav {
        padding: 18px 20px !important;
    }

    .logo-container {
        top: 4px;
    }

    footer {
        padding: 60px 20px;
    }

    footer h1 {
        font-size: 40px;
        margin-bottom: 20px;
    }

    footer ul {
        gap: 20px;
    }

    footer li {
        font-size: 16px;
    }

    .fullscreen-menu .directory {

        display: none;

    }

    .mobile-directory {
        display: block;
        width: 92%;
        margin: 25px auto;
    }

    .mobile-directory.open .mobile-item {
        display: none;
    }

    .mobile-directory.open .mobile-nosvins {
        display: none;
    }

    .mobile-directory.open .mobile-maison {
        display: none;
    }

    .mobile-directory.open .mobile-item.active {
        display: block;
    }

    .mobile-item {

        border-bottom: 1px solid rgba(120, 90, 60, .2);

    }

    .mobile-title {
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 7rem;
        cursor: pointer;
    }

    .mobile-title span:first-child {
        color: #93836e;
        font-size: 2.2rem;
        font-family: 'Bebas Neue';
        letter-spacing: 0px;
        padding-left: 6rem;
    }

    .arrow {
        font-size: 2.2rem;
        color: #93836e;
        transition: .3s;
        font-weight: 100;
        font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', sans-serif;
    }

    .mobile-sub {

        display: none;
        text-align: center;
        padding: 8rem 0;

    }

    .mobile-sub a {
        display: block;
        text-decoration: none;
        color: #222;
        font-family: 'Bebas Neue';
        font-size: 1.8rem;
        margin: 16px 0;
    }

    .mobile-item.active {
        border-bottom: none;
    }

    .mobile-item.active .mobile-title {
        position: relative;
        justify-content: center;
        border-bottom: 1px solid rgba(120, 90, 60, .2);
    }

    .mobile-item.active .mobile-title span:first-child {
        padding-left: 0;
    }

    .mobile-item.active .mobile-sub {

        display: block;

    }

    .mobile-item.active .arrow {

        position: absolute;
        left: 0;
        transform: rotate(180deg);

    }

    .mobile-nosvins {
        display: block;
        width: 14rem;
        margin: 7rem auto 3rem;
        text-align: center;
        border: 1px solid #93836e;
        border-radius: 30px;
        padding: 1.3rem 0;
        color: #93836e;
        text-decoration: none;
        font-family: 'Bebas Neue';
        font-size: 3rem;

    }

    .mobile-maison {

        display: block;
        text-align: center;
        color: #93836e;
        text-decoration: none;
        font-family: 'Bebas Neue';
        font-size: 2.2rem;
        /* margin-bottom: 30px; */

    }

    .fullscreen-menu .page {
        padding: 1rem 0 0;
    }

    .fullscreen-menu footer {
        padding: 15px 0 25px;
    }

    .fullscreen-menu footer a {
        font-size: 1.6rem;
        letter-spacing: 0px;
        padding: 5px 9px;
        border-right: none;
    }

    /* 手机端页面底部 Footer 菜单重构样式 */
    footer.footer1,
    footer {
        /* padding: 50px 20px !important; */
        /* background: #ffffff !important; */
        color: #000000 !important;
        text-align: center !important;
        font-family: 'PlayfairDisplay';
    }

    footer.footer1 h1,
    footer h1 {
        color: #000000 !important;
        font-family: 'PlayfairDisplay' !important;
        font-size: 3.2rem !important;
        margin-bottom: 1.2rem !important;
        font-weight: 500 !important;
    }

    footer.footer1 ul,
    footer ul {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 0rem !important;
        list-style: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    footer.footer1 li,
    footer li {
        font-size: 1.6rem !important;
        opacity: 0.65 !important;
        font-family: 'PlayfairDisplay' !important;
        text-transform: none !important;
        transition: all 0.3s ease;
        margin: 0 !important;
    }

    footer.footer1 li a,
    footer li a {
        color: #000000 !important;
        text-decoration: none !important;
    }




}

/* ── 全屏目录覆盖层内的语言切换 ── */
.fullscreen-menu .menu-lang-switcher {
    position: absolute;
    top: 36px;
    right: 90px;
    z-index: 10;
    font-family: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 1px;
}

.fullscreen-menu .menu-lang-switcher a {
    color: #a8895e;
    /* 未激活状态使用柔和的淡金色/灰色 */
    text-decoration: none;
    transition: color 0.3s, font-weight 0.3s;
    font-weight: 500;
}

.fullscreen-menu .menu-lang-switcher a:hover {
    color: #3a2a1a;
}

.fullscreen-menu .menu-lang-switcher a.active {
    color: #3a2a1a;
    /* 激活状态为深褐色 */
    text-decoration: underline;
    text-underline-offset: 4px;
    font-weight: 700;
}

.fullscreen-menu .menu-lang-switcher .separator {
    color: #d7b26d;
    /* 斜杠颜色为金色 */
    font-style: italic;
    opacity: 0.8;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .fullscreen-menu .menu-lang-switcher {
        top: 18px;
        right: 60px;
        font-size: 1.4rem;
    }
}