/* ========================================
   LE MAS LILI - Main Stylesheet
   Modern CSS with Custom Properties
   ======================================== */

/* === CSS Custom Properties === */
:root {
    /* Colors - Soft pink palette */
    --color-primary: #d4a5a5;          /* Soft dusty rose */
    --color-primary-light: #e8b8b8;
    --color-primary-dark: #b88b8b;
    --color-accent: #ffd4d4;            /* Light pink accent */
    --color-accent-hover: #ffc0c0;
    --color-secondary: #E4A3A3;         /* Soft pink */

    /* Neutral colors */
    --color-white: #ffffff;
    --color-light: #f8f9fa;
    --color-gray-light: #e9ecef;
    --color-gray: #6c757d;
    --color-dark: #212529;
    --color-black: #0f0f14;

    /* Typography */
    --font-primary: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-artistic: 'Indie Flower', cursive;

    /* Font sizes */
    --font-size-base: 16px;
    --font-size-sm: 14px;
    --font-size-lg: 18px;
    --font-size-xl: 24px;
    --font-size-2xl: 32px;
    --font-size-3xl: 48px;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;

    /* Layout */
    --nav-width: 280px;
    --container-max: 1400px;
    --transition-speed: 0.3s;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.2);

    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

/* === Reset & Base Styles === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: var(--font-size-base);
}

body {
    font-family: var(--font-primary);
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-dark);
    background-color: var(--color-black);
    background-image: url('../images/background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

/* Permanent overlay for better content readability - always present */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 15, 20, 0.4);
    z-index: 0;
    pointer-events: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed) ease;
}

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
}

ul {
    list-style: none;
}

/* === Page Loader === */
/*page loader*/
.page-loader {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #d4a5a5 !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    transition: opacity 0.5s ease;
  }

  .page-loader.hidden {
    display: none;
  }

  body.loading {
    overflow: hidden;
  }
 
  .flowercontainer {
    width: 200px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background-color: #d4a5a5 !important;
  }
  
  .flower {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: rotation 3000ms ease-in-out infinite;
  }
  .flower__center {
    position: relative;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: #FFBB00;
    z-index: 10;
    animation: center 3000ms ease-in-out infinite;
  }
  
  .flower__leaf {
    position: absolute;
    top: 50%;
    left: 50%;
    transform-origin: center;
  }

.leaf__1::after {
  animation: leaf_1 3000ms ease-in-out infinite;
}
.leaf__2:after {
  animation: leaf_2 3000ms ease-in-out infinite;
}
.leaf__3:after {
  animation: leaf_3 3000ms ease-in-out infinite;
}
.leaf__4:after {
  animation: leaf_4 3000ms ease-in-out infinite;
}
.leaf__5:after {
  animation: leaf_5 3000ms ease-in-out infinite;
}
.leaf__6:after {
  animation: leaf_6 3000ms ease-in-out infinite;
}
.leaf__7:after {
  animation: leaf_7 3000ms ease-in-out infinite;
}
.leaf__1 {
  transform: translate(-50%, -50%) rotate(51.4285714286deg);
}
.leaf__2 {
  transform: translate(-50%, -50%) rotate(102.8571428571deg);
}
.leaf__3 {
  transform: translate(-50%, -50%) rotate(154.2857142857deg);
}
.leaf__4 {
  transform: translate(-50%, -50%) rotate(205.7142857143deg);
}
.leaf__5 {
  transform: translate(-50%, -50%) rotate(257.1428571429deg);
}
.leaf__6 {
  transform: translate(-50%, -50%) rotate(308.5714285714deg);
}
.leaf__7 {
  transform: translate(-50%, -50%) rotate(360deg);
}

.leaf::after {
  background: white;
  content: "";
  position: absolute;
  width: 3rem;
  height: 3rem;
  border-radius: 0 100%;
  transform-origin: top left;
  transform: scale(0);
}

@keyframes center {
  0% {
    transform: scale(0.1) translate(50%, 50%);
  }
  5% {
    transform: translateY(0) scale(1);
  }
  8% {
    transform: translateY(0) scale(1.15);
  }
  9%, 98% {
    transform: translateY(0) scale(1);
  }
  100% {
    transform: scale(0);
  }
}
@keyframes leaf_1 {
  0%, 4% {
    transform: scale(0) translateY(0);
  }
  12% {
    transform: scale(1) translateY(1%);
  }
  16% {
    transform: scale(1.1) translateY(1%);
  }
  19%, 90% {
    transform: scale(1) translateY(1%);
  }
  91%, 100% {
    transform: scale(0) translateY(0);
  }
}
@keyframes leaf_2 {
  0%, 12% {
    transform: scale(0) translateY(0);
  }
  16% {
    transform: scale(1) translateY(1%);
  }
  22% {
    transform: scale(1.1) translateY(1%);
  }
  25%, 90% {
    transform: scale(1) translateY(1%);
  }
  91%, 100% {
    transform: scale(0) translateY(0);
  }
}
@keyframes leaf_3 {
  0%, 16% {
    transform: scale(0) translateY(0);
  }
  22% {
    transform: scale(1) translateY(1%);
  }
  28% {
    transform: scale(1.1) translateY(1%);
  }
  31%, 90% {
    transform: scale(1) translateY(1%);
  }
  91%, 100% {
    transform: scale(0) translateY(0);
  }
}
@keyframes leaf_4 {
  0%, 22% {
    transform: scale(0) translateY(0);
  }
  28% {
    transform: scale(1) translateY(1%);
  }
  32% {
    transform: scale(1.1) translateY(1%);
  }
  33%, 90% {
    transform: scale(1) translateY(1%);
  }
  91%, 100% {
    transform: scale(0) translateY(0);
  }
}
@keyframes leaf_5 {
  0%, 28% {
    transform: scale(0) translateY(0);
  }
  34% {
    transform: scale(1) translateY(1%);
  }
  40% {
    transform: scale(1.1) translateY(1%);
  }
  43%, 90% {
    transform: scale(1) translateY(1%);
  }
  91%, 100% {
    transform: scale(0) translateY(0);
  }
}
@keyframes leaf_6 {
  0%, 34% {
    transform: scale(0) translateY(0);
  }
  40% {
    transform: scale(1) translateY(1%);
  }
  46% {
    transform: scale(1.1) translateY(1%);
  }
  49%, 90% {
    transform: scale(1) translateY(1%);
  }
  91%, 100% {
    transform: scale(0) translateY(0);
  }
}
@keyframes leaf_7 {
  0%, 40% {
    transform: scale(0) translateY(0);
  }
  46% {
    transform: scale(1) translateY(1%);
  }
  52% {
    transform: scale(1.1) translateY(1%);
  }
  55%, 90% {
    transform: scale(1) translateY(1%);
  }
  91%, 100% {
    transform: scale(0) translateY(0);
  }
}
@keyframes rotation {
  0%, 60% {
    transform: rotate(0deg);
  }
  80% {
    transform: rotate(360deg);
  }
  84% {
    transform: scale(1);
  }
  85% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(0);
  }
}
@keyframes leaf {
  0%, 4% {
    transform: scale(0) translateY(0);
  }
  12% {
    transform: scale(1) translateY(1%);
  }
  16% {
    transform: scale(1.1) translateY(1%);
  }
  18%, 85% {
    transform: scale(1) translateY(1%);
  }
  87%, 100% {
    transform: scale(0) translateY(0);
  }
}

/* === Mobile Menu Toggle === */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    width: 50px;
    height: 50px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    background: rgba(33, 37, 41, 0.95);
    border-radius: var(--radius-md);
    z-index: 1002;
    transition: all var(--transition-speed) ease;
    padding: 0;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--color-white);
    border-radius: 2px;
    transition: all var(--transition-speed) ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translateY(9px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-9px);
}

/* === Navigation === */
.main-nav {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    background: rgba(33, 37, 41, 0.95);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
}

.nav-content {
    display: flex;
    flex-direction: column;
    padding: var(--spacing-sm) 0;
}

.nav-menu {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 0 var(--spacing-md);
    flex-wrap: wrap;
}

.nav-link {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: var(--font-size-base);
    font-weight: 500;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition-speed) ease;
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 2px;
    background: var(--color-primary);
    transition: transform var(--transition-speed) ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-primary);
    background: rgba(212, 165, 165, 0.1);
}

.nav-link:hover::before,
.nav-link.active::before {
    transform: translateX(-50%) scaleX(1);
}

/* === Main Content === */
.main-content {
    margin-left: 0;
    min-height: 100vh;
    transition: margin-left var(--transition-speed) ease;
    position: relative;
    z-index: 1;
}

.page {
    display: none;
    min-height: 100vh;
    padding-top: 70px; /* Space for fixed nav */
    position: relative;
    opacity: 0;
}

.page.active {
    display: block;
    opacity: 1;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--spacing-md);
}

/* === Hero Section (Accueil) === */
.accueil-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 110px); /* Subtract nav height */
    padding: var(--spacing-xl) var(--spacing-md);
}

.accueil-title {
    font-family: var(--font-artistic);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 400;
    color: var(--color-primary);
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.video-square {
    width: 100%;
    max-width: 1100px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    margin-bottom: var(--spacing-lg);
    box-shadow: var(--shadow-lg);
}

.video-square .hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.accueil-description {
    max-width: 700px;
    text-align: center;
}

.accueil-description p {
    font-size: var(--font-size-lg);
    line-height: 1.8;
    margin-bottom: var(--spacing-sm);
    color: var(--color-light);
}

/* === About Section (Votre Hôte) === */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-content {
    position: relative;
}

.content-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
}

.artist-name {
    font-size: var(--font-size-2xl);
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: var(--spacing-sm);
}

.divider {
    width: 60px;
    height: 2px;
    background: var(--color-primary);
    margin-bottom: var(--spacing-md);
}

.bio-text p {
    color: var(--color-light);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
    text-align: justify;
}

/* === Contact Section === */
.contact-section {
    background: rgba(45, 122, 95, 0.1);
    border: 2px solid var(--color-primary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    text-align: center;
}

.contact-title {
    font-size: var(--font-size-2xl);
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: var(--spacing-sm);
}

.contact-intro {
    color: var(--color-light);
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-md);
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: all var(--transition-speed) ease;
    box-shadow: var(--shadow-sm);
}

.contact-link:hover {
    background: var(--color-primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.contact-link i {
    font-size: var(--font-size-xl);
}

/* === Event Section === */
.event-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 110px); /* Full height minus nav */
    padding: 0;
}

.event-image {
    width: 100%;
    height: calc(100vh - 200px); /* Full height minus nav */
    object-fit: contain;
    border-radius: 0;
    box-shadow: none;
    transition: transform var(--transition-speed) ease;
}

.event-image:hover {
    transform: scale(1.02);
}

/* === Gallery Grid === */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-md);
    padding: var(--spacing-md) 0;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    background: var(--color-dark);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-speed) ease;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-speed) ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: var(--color-white);
    font-size: var(--font-size-3xl);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: var(--spacing-sm);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--color-white);
    font-size: var(--font-size-sm);
    text-align: center;
    transform: translateY(100%);
    transition: transform var(--transition-speed) ease;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

/* === Lightbox === */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    transition: opacity 0.2s ease-in-out;
}

.lightbox-caption {
    text-align: center;
    color: var(--color-white);
    margin-top: var(--spacing-sm);
    font-size: var(--font-size-lg);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    font-size: var(--font-size-xl);
    z-index: 2001;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--color-primary-light);
    transform: scale(1.1);
}

.lightbox-close {
    top: var(--spacing-md);
    right: var(--spacing-md);
}

.lightbox-prev {
    left: var(--spacing-md);
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: var(--spacing-md);
    top: 50%;
    transform: translateY(-50%);
}

/* === Scroll to Top Button === */
.scroll-top {
    position: fixed;
    bottom: var(--spacing-md);
    right: var(--spacing-md);
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-speed) ease;
    z-index: 1000;
    box-shadow: var(--shadow-md);
    cursor: pointer;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--color-primary-light);
    transform: translateY(-5px);
}

.scroll-top i {
    font-size: var(--font-size-xl);
}

/* === Accessibility === */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-primary);
    color: var(--color-white);
    padding: var(--spacing-sm);
    text-decoration: none;
    z-index: 10000;
}

.skip-link:focus {
    top: 0;
}

/* === Utility Classes === */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }

.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
