﻿.glass-container {
    position: relative;
    display: block; /* ← plus générique */
    font-weight: 600;
    color: white;
    background: transparent;
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 6px 6px rgba(0, 0, 0, 0.2), 0 0 20px rgba(0, 0, 0, 0.1);
}

.glass-container--tight {
    border-radius: 1rem;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.1);
}

.glass-filter {
    position: absolute;
    inset: 0;
    z-index: 0;
    backdrop-filter: blur(0px);
    filter: url(#lg-dist);
    isolation: isolate;
}

.glass-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(255, 255, 255, 0.25);
}

.glass-specular {
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: inherit;
    overflow: hidden;
    box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.75),
    inset 0 0 5px rgba(255, 255, 255, 0.75);
}

.glass-content {
    position: relative;
    z-index: 3;
    padding: 1rem 1.5rem;
}

/* ======================== */
/* 💧 Liquid Interaction Button */
/* ======================== */

.liquid-button {
    transition:
            transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
            box-shadow 0.3s ease-in-out;
    will-change: transform, box-shadow;
}

.liquid-button:hover {
    transform: scale(1.015);
    box-shadow: 0 0 25px rgba(95, 233, 243, 0.08), 0 0 20px rgba(95, 233, 243, 0.05);
}

/* ======================== */
/* 🌫️ Modal Liquid Glass */
/* ======================== */

.lg-modal-backdrop {
    position: fixed;
    inset: 0;
    backdrop-filter: blur(0px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lg-modal-container {
    position: relative;
    max-width: 600px;
    width: 90%;
    border-radius: 2rem;
    overflow: hidden;
    z-index: 1001;
    transition: all 0.3s ease-in-out;
}

/* ======================== */
/* 🖼️ LiquidGlass Image */
/* ======================== */
.lg-image {
    position: relative;
    width: 100%;
    height: auto;
    border-radius: 2rem;
    opacity: 0.8;
    overflow: hidden;
}
.lg-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: inherit;
}
.lg-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.25);
    border-radius: inherit;
    pointer-events: none;
}
.lg-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    border-radius: inherit;
    pointer-events: none;
    opacity: 0.5;
}