/* =========================================
   GAMMES PORTAL STYLES (Flex Accordion)
   Premium Awwwards Edition
   ========================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body, html {
    width: 100%;
    height: 100%;
    height: 100dvh;
    overflow: hidden;
    background-color: #050505;
    font-family: 'Montserrat', -apple-system, sans-serif;
    color: #fff;
    cursor: none;
    margin: 0;
    padding: 0;
}

/* FILM GRAIN */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9990;
    pointer-events: none;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 128px 128px;
}

/* CUSTOM CURSOR */
.cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: transparent;
    pointer-events: none;
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    mix-blend-mode: difference;
    transition: background-color 0.3s;
}

.cursor__text {
    font-size: 8px;
    letter-spacing: 0.2em;
    font-weight: 500;
    color: #fff;
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.3s, transform 0.3s;
}

.cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #fff;
    pointer-events: none;
    z-index: 9999998;
    mix-blend-mode: difference;
}

.cursor.is-hovering {
    background-color: rgba(255, 255, 255, 1);
    mix-blend-mode: normal;
}

.cursor.is-hovering .cursor__text {
    opacity: 1;
    transform: scale(1);
    color: #000;
}

.cursor-follower.is-hovering {
    opacity: 0;
}

/* NAVIGATION OVERRIDES */
.gn-navbar--gammes {
    border-bottom: none !important;
}

.gn-navbar--gammes.light-theme .gn-logo,
.gn-navbar--gammes.light-theme .gn-menu-toggle,
.gn-navbar--gammes.light-theme .gn-account-link,
.gn-navbar--gammes.light-theme .gn-quote-link {
    color: #111;
}

/* -----------------------------------------
   FLEX ACCORDION LAYOUT
   ----------------------------------------- */
.collections-accordion {
    position: relative;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: row;
}

@media (max-width: 768px) {
    .collections-accordion {
        flex-direction: column;
    }
}

.panel {
    position: relative;
    flex: 1;
    height: 100%;
    overflow: hidden;
    cursor: pointer;
    border-right: 1px solid rgba(255, 255, 255, 0.04);
    transition: flex 1s cubic-bezier(0.76, 0, 0.24, 1);
    outline: none;
}

@media (max-width: 768px) {
    .panel {
        height: auto;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    }
}

.panel:last-child {
    border: none;
}

/* EXPANDED STATE */
.panel--active {
    flex: 6;
    cursor: default;
}
@media (max-width: 768px) {
    .panel--active {
        flex: 5;
    }
}

/* BACKGROUNDS & IMAGES */
.panel__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.panel__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.15;
    transform: scale(1.15);
    filter: grayscale(100%) brightness(0.5);
    transition: all 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.panel__img--contain {
    object-fit: contain;
    padding: 10%;
}

.panel--active .panel__img {
    opacity: 1;
    transform: scale(1);
    filter: grayscale(0%) brightness(1);
}

/* Subtle hover effect on collapsed panels */
.panel:not(.panel--active):hover .panel__img {
    opacity: 0.25;
    filter: grayscale(80%) brightness(0.6);
}

.panel__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0) 100%);
    z-index: 2;
    transition: all 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.panel--active .panel__overlay {
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.7) 100%);
}

/* COLLAPSED PANEL NUMBER */
.panel__collapsed-number {
    position: absolute;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Montserrat', sans-serif;
    font-size: 9px;
    letter-spacing: 0.4em;
    color: rgba(198, 168, 124, 0.5);
    z-index: 5;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.panel--active .panel__collapsed-number {
    opacity: 0;
}

/* GOLD SEPARATOR LINE on collapsed panels */
.panel__separator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(198, 168, 124, 0.4), transparent);
    z-index: 5;
    pointer-events: none;
    transition: opacity 0.5s ease, height 0.5s ease;
}

.panel--active .panel__separator {
    opacity: 0;
    height: 0;
}

/* COLLAPSED VERTICAL TITLE */
.panel__vertical-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-90deg);
    white-space: nowrap;
    font-size: 1.8rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.5);
    z-index: 5;
    transition: opacity 0.5s ease 0.3s, color 0.4s ease, letter-spacing 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    letter-spacing: 0.15em;
}

/* Hover glow on collapsed panel titles */
.panel:not(.panel--active):hover .panel__vertical-title {
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 0.3em;
    transform: translate(-50%, -50%) rotate(-90deg) scale(1.02);
}

#panel-neroli .panel__vertical-title {
    font-family: 'Cormorant Garamond', serif;
}

#panel-meyou .panel__vertical-title {
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
}

#panel-ambiance .panel__vertical-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
}

#panel-roseaux .panel__vertical-title {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
}

#panel-electrique .panel__vertical-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
}

#panel-liquide .panel__vertical-title {
    font-family: 'Cormorant Garamond', serif;
}

.panel__vertical-title--light {
    color: rgba(17, 17, 17, 0.5);
}

.panel:not(.panel--active):hover .panel__vertical-title--light {
    color: rgba(17, 17, 17, 0.85);
}

@media (max-width: 768px) {
    .panel__vertical-title {
        transform: translate(-50%, -50%);
        font-size: 1.3rem;
    }
}

.panel--active .panel__vertical-title {
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* EXPANDED CONTENT */
.panel__content {
    position: absolute;
    inset: 0;
    z-index: 6;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem 5%;
    opacity: 0;
    pointer-events: none;
    transform: translateY(30px);
    box-sizing: border-box;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), 0 2px 5px rgba(0, 0, 0, 0.6);
}

@media (max-width: 768px) {
    .panel__content {
        padding: 4rem 1.5rem;
        justify-content: flex-end;
    }
}

.panel--active .panel__content {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.panel__content--light {
    color: #111;
    text-shadow: 0 4px 15px rgba(255, 255, 255, 0.7), 0 2px 5px rgba(255, 255, 255, 0.9);
}

.panel__number {
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    letter-spacing: 0.4em;
    margin-bottom: 1.5rem;
    color: var(--nav-brass, #C6A87C);
}

.panel__details {
    max-width: 550px;
    text-align: center;
    padding: 3.5rem 2.5rem;
    background: 
        radial-gradient(circle at var(--mouse-x, 50vw) var(--mouse-y, 50vh), rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 30%),
        rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08); /* fallback border */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    position: relative;
}

/* Organic Scent Visualizer Background */
.panel__details::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 140%;
    height: 140%;
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0) 65%);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    transform: translate(-50%, -50%) rotate(0deg);
    animation: organicScent 20s linear infinite;
    z-index: -1;
    pointer-events: none;
    filter: blur(25px);
}

@keyframes organicScent {
    0% { transform: translate(-50%, -50%) rotate(0deg); border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
    33% { border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%; }
    66% { border-radius: 100% 60% 60% 100% / 100% 100% 60% 60%; }
    100% { transform: translate(-50%, -50%) rotate(360deg); border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
}

/* Premium Edge-Lit Glass Effect */
.panel__details::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0) 40%, rgba(255,255,255,0) 60%, rgba(255,255,255,0.5) 100%);
    background-size: 200% 200%;
    animation: edgeGlow 4s linear infinite;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 10;
}

@keyframes edgeGlow {
    0% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
    100% { background-position: 0% 0%; }
}

.panel__content--light .panel__details {
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

.panel__title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.8rem, 5vw, 5.5rem);
    font-weight: 300;
    line-height: 0.9;
    margin-bottom: 1rem;
    color: #fff;
}

.panel__desc {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.8;
    color: #fff;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
}

.panel__btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 40px;
    background: transparent;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: #fff;
    transition: background-color 0.5s cubic-bezier(0.86, 0, 0.07, 1), color 0.5s, border-color 0.5s, box-shadow 0.5s;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.panel__btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #fff;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.6s cubic-bezier(0.86, 0, 0.07, 1);
    z-index: -1;
    border-radius: 40px;
}

.panel__btn:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.panel__btn:hover {
    color: #000;
    border-color: transparent;
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.panel__btn--light {
    border-color: rgba(17, 17, 17, 0.3);
    color: #111;
}

.panel__btn--light::before {
    background: #111;
}

.panel__btn--light:hover {
    color: #fff;
    border-color: transparent;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* COMING SOON tag for panels without pages */
.panel__badge {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: 8px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--nav-brass, #C6A87C);
    border: 1px solid rgba(198, 168, 124, 0.3);
    padding: 0.3rem 0.8rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

/* -----------------------------------------
   HUD TIMELINE
   ----------------------------------------- */
.hud-timeline {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 900;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    pointer-events: none;
    mix-blend-mode: difference;
}

@media (max-width: 768px) {
    .hud-timeline {
        right: 1rem;
    }
}

.hud-timeline__track {
    width: 1px;
    height: 120px;
    background: rgba(255, 255, 255, 0.2);
    position: relative;
}

.hud-timeline__indicator {
    position: absolute;
    top: 0;
    left: -1px;
    width: 3px;
    height: 20px;
    background: #fff;
    transition: top 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hud-timeline__numbers {
    display: flex;
    flex-direction: column;
    gap: 130px;
    position: absolute;
    top: -1.5rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 8px;
    font-weight: 300;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.6);
}
