body {
    margin: 0;
    background-color: #ffffff;
    color: #fff;
    font-family: "serif";
    overflow: hidden;
}

/* ----- opening ----- */

.opening-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1.5s ease;
}

.opening-content {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    position: relative;
}

.opening-img {
    width: auto;
    height: auto;
    max-width: 60%;
    max-height: 60%;
    object-fit: cover;
    opacity: 0.8;
    transition: all 2s ease;
}

@media (max-width: 450px) {
    .opening-img {
        width: 100%;
        height: auto;

    }
}

/* ----- menu ----- */

.hamburger-wrapper {
    position: fixed;
    top: 25px;
    right: 25px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
    z-index: 50;
    pointer-events: none;
}

.hamburger-menu {
    width: 28px;
    height: 18px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger-menu {
    pointer-events: auto;
}

.mini-menu-list {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}

.mini-menu-list.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.mini-menu-list li {
    margin: 0;
    padding: 0;
}

.mini-menu-list a {
    color: #7e7e7e;
    text-decoration: none;
    font-size: 13px;
    font-family: 'Times New Roman', serif;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    display: block;
    transition: opacity 0.3s, transform 0.3s;
}

.mini-menu-list a:hover {
    opacity: 0.5;
    transform: translateX(-5px);
}

.bar {
    width: 100%;
    height: 1px;
    background-color: #7e7e7e;
    transition: all 0.4s ease;
}

.hamburger-menu.active .bar:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.hamburger-menu.active .bar:nth-child(2) { opacity: 0; transform: translateX(-10px); }
.hamburger-menu.active .bar:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

/* ----- main ----- */

.gallery-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    padding: 20px 0;
    box-sizing: border-box;
    z-index: 10;
    opacity: 0;
    transition: opacity 3s ease;
}

@media (max-width: 450px) {
    .gallery-wrapper {
        padding-top: 50px;
        justify-content: flex-start;
    }
}

.gallery-wrapper.fade-in {
    opacity: 1;
}

/* ----- backv ----- */

.backv {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 50;
    pointer-events: none;
}

#bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    z-index: 0;
}

/* ----- header ----- */

.exhibition-header {
    text-align: center;
    height: 80px; 
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
    z-index: 100;
}

@media (max-width: 450px) {
    .exhibition-header {
        font-size: 30px;
    }
}

.exhibition-title {
    font-size: 32px;
    margin: 0;
    line-height: 1.2;
    color: #7e7e7e;
}

@media (max-width: 450px) {
    .exhibition-title {
        font-size: 30px;
    }
}

.music-control {
    position: fixed;
    top: 15px;
    left: 20px;
    width: 40px;
    height: 40px;
    background: rgba(54, 54, 54, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 300;
    transition: all 0.3s ease;
    color: #fff;
    font-size: 15px;
}

.music-control:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.is-playing {
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

/* ----- swiper ----- */

.swiper {
    width: 100%;
    padding-bottom: 30px;
    z-index: 150;
}

.swiper-slide {
    width: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s;
    transform: scale(0.85);
    filter: blur(2px);
    opacity: 0.4;
}

.swiper-slide-active {
    opacity: 1;
    transform: scale(1.0);
    filter: blur(0);
}

.artwork-frame {
    position: relative;
    z-index: 200;
    background: #fff;
    padding: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    cursor: pointer;
}

.artwork-frame img {
    display: block;
    width: 360px;
    max-height: 70vh;
}

@media (max-width: 450px) {
    .artwork-frame img {
        width: 240px;
    }
}

/* ----- modal ----- */

.modal {
    display: none;
    position: fixed;
    z-index: 450;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(255, 255, 255, 0.3); 
    justify-content: center;
    align-items: center;
    opacity: 0;
}

.modal.is-open {
    display: flex;
    opacity: 1
}

.modal.is-open .modal-content {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.modal-content {
    background: rgba(255, 255, 255, 0.15); 
    border-radius: 15px;
    backdrop-filter: blur(25px) saturate(150%);
    -webkit-backdrop-filter: blur(25px) saturate(150%);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(34, 34, 34, 0.4); 
    max-width: 650px;
    width: 90%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
}

@media (max-width: 450px) {
    .modal-content {
        width: 80%;
    }
}

@keyframes modalOpen {
    from { opacity: 0; transform: translateY(-20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-content img {
    width: 100%;
    max-height: 50vh;
    object-fit: contain;
    padding: 20px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.05);
}

#modal-title {
    font-family: 'Yusei Magic', cursive; 
    font-size: 24px;
    font-weight: 400;
    letter-spacing: 0.15em;
    color: #2c1e1a; 
    text-shadow: none;
    -webkit-font-smoothing: initial;
    -moz-osx-font-smoothing: auto;
    -webkit-text-stroke: 0.1px #2c1e1a;
    padding: 0px 20px;
    margin-bottom: 20px;
    text-align: center;
}

@media (max-width: 450px) {
    #modal-title {
        font-size: 15px;
    }
}

#modal-desc {
    font-family: 'Yusei Magic', cursive;
    font-size: 1.0rem;
    line-height: 2.0;
    padding: 0px 20px;
    color: #2c1e1a;
    text-align: center;
}

@media (max-width: 450px) {
    #modal-desc {
        font-size: 12px;
    }
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 550;
    line-height: 1;
    transition: transform 0.2s, opacity 0.2s;
    text-shadow: 0 0 5px rgba(0,0,0,0.5);
}

@media (max-width: 450px) {
    #modal-desc {
        font-size: 12px;
    }
}

.modal-close:hover {
    color: #fff;
}

/* ----- swiper ----- */

.gallery-controls {
    margin-top: 20px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 40px;
    z-index: 250;
}

@media (max-width: 450px) {
    .gallery-controls {
       padding-top: -150px;
    }
}

.gallery-counter {
   color: #7e7e7e;
}

.swiper-button-prev,
.swiper-button-next {
    position: static;
    margin: 0;
    width: 40px;
    height: 40px;
    color: #ffffff;
}

/* ---------- Langage ---------- */

.lang-container {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 350;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

@media (max-width: 450px) {
    .lang-container {
       bottom: 16px !important;
    }
}

.lang-menu-list {
    list-style: none;
    padding: 12px 15px;
    margin: 0 0 10px 0;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px) saturate(150%);
    -webkit-backdrop-filter: blur(15px) saturate(150%);
    border: 1px solid rgba(34, 34, 34, 0.2);
    border-radius: 10px;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: all 0.4s ease;
}

.lang-menu-list.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.lang-menu-list li {
    margin-bottom: 8px;
}

.lang-menu-list li:last-child {
    margin-bottom: 0;
}

.lang-menu-list a {
    color: #7e7e7e;
    text-decoration: none;
    font-size: 11px;
    font-family: 'Times New Roman', serif;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    transition: opacity 0.3s;
}

.lang-menu-list a:hover {
    opacity: 0.5;
}

.lang-trigger {
    background: none;
    border: none;
    color: #7e7e7e;
    font-family: "serif";
    font-size: 13px;
    cursor: pointer;
    padding: 0;
    margin: 0;
    letter-spacing: 0.05em;
    transition: opacity 0.3s;
}

.lang-trigger:hover {
    opacity: 0.6;
}

@media (max-width: 450px) {
    .lang-container {
        left: 15px;
        bottom: 12px;
    }
}

/* ---------- copyright ---------- */

.copyright {
  position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    padding-bottom: 5px;
    z-index: 300;
}

.copyright_text {
  font-weight: 500;
  font-size: 12px;
  color: #7e7e7e;
  margin-top: 16px;
  text-align: center;
  letter-spacing: 0.08em;
}

/* ---------- AI ---------- */

.chat-popup {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 350px;
    height: 500px;
    display: none;
    z-index: 400;
    background: rgba(255, 255, 255, 0.15); 
    backdrop-filter: blur(25px) saturate(150%);
    -webkit-backdrop-filter: blur(25px) saturate(150%); 
    border-radius: 15px;
    border: 1px solid rgba(34, 34, 34, 0.4); 
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: modalOpen 0.4s ease;
}

#chat-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

#chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: rgba(56, 56, 56, 0.85);
    color: #fff;
    flex-shrink: 0;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.avatar-container {
    display: flex;
    align-items: center;
}

.header-avatar {
    width: 35px;
    height: 35px;
    object-fit: contain;
    border-radius: 50%;
    background: #fff;
    padding: 2px;
}

.header-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.header-info .name {
    font-size: 13px;
    font-weight: bold;
    line-height: 1.2;
}

.header-info .status-tag {
    font-size: 10px;
    color: #4caf50;
    text-transform: uppercase;
    margin-top: 2px;
}

.chat-close-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    z-index: 500;
}

#chat-messages {
    flex: 1;
    overflow-y: auto !important;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 20px 0;
    display: block;
}

.bot-message {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 20px;
    padding: 0 15px;
    align-items: flex-end; 
    flex-shrink: 0;
}

.bot-avatar {
    margin-right: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #fff;
    flex-shrink: 0;
    margin-bottom: 2px;
}

.bot-message .bubble {
    background: #ffffff;
    color: #333;
    padding: 12px 15px;
    border-radius: 15px 15px 15px 3px;
    max-width: 80%;
    font-size: 14px;
    line-height: 1.6;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    white-space: pre-wrap;
    word-wrap: break-word;
}

.chat-trigger {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 350;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

@media (max-width: 450px) {
    .chat-trigger {
       bottom: 15px;
       right: 15px;
       width: 45px;
       height: 45px;
    }
}

.chat-trigger img {
    width: 40px;
    height: auto;
}

@media (max-width: 450px) {
    .chat-popup {
        width: 90%;
        right: 5%;
        bottom: 80px;
        height: 60dvh !important;
        max-height: 60dvh !important;
    }
}