/* ═══════════════════════════════════════════════════════════
   L'ART Réunion — Page d'accueil WOW
   Skills: Impeccable · Taste · UI UX Pro Max · Bento · Cinematic
   ═══════════════════════════════════════════════════════════ */

/* ── Hero cinématique ── */
.hero-cinematic {
    min-height: 100svh;
}

.hero-overlay-cinematic {
    background:
        linear-gradient(105deg, rgba(8, 8, 8, 0.92) 0%, rgba(8, 8, 8, 0.55) 45%, rgba(8, 8, 8, 0.35) 100%),
        linear-gradient(0deg, rgba(8, 8, 8, 0.95) 0%, transparent 35%),
        radial-gradient(ellipse 50% 60% at 75% 30%, rgba(212, 100, 40, 0.12) 0%, transparent 60%);
}

.hero-volcanic-glow {
    position: absolute;
    bottom: -20%;
    right: -10%;
    width: 70%;
    height: 70%;
    background: radial-gradient(ellipse, rgba(212, 80, 30, 0.15) 0%, transparent 65%);
    filter: blur(40px);
    animation: volcanicPulse 8s ease-in-out infinite alternate;
}

@keyframes volcanicPulse {
    from { opacity: 0.6; transform: scale(1); }
    to { opacity: 1; transform: scale(1.08); }
}

.hero-split-title {
    text-wrap: balance;
    line-height: 1.05;
}

.hero-split-title .split-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(1.2em) rotateX(40deg);
    transform-origin: center bottom;
    animation: wordReveal 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-split-title .split-word:nth-child(1) { animation-delay: 0.15s; }
.hero-split-title .split-word:nth-child(2) { animation-delay: 0.25s; }
.hero-split-title .split-word:nth-child(3) { animation-delay: 0.35s; }
.hero-split-title .split-word:nth-child(4) { animation-delay: 0.45s; }
.hero-split-title .split-word:nth-child(5) { animation-delay: 0.55s; }
.hero-split-title .split-word:nth-child(6) { animation-delay: 0.65s; }
.hero-split-title .split-word:nth-child(7) { animation-delay: 0.75s; }
.hero-split-title .split-word:nth-child(8) { animation-delay: 0.85s; }

@keyframes wordReveal {
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

/* Marquee */
.hero-marquee {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    overflow: hidden;
    border-top: 1px solid rgba(200, 200, 200, 0.08);
    background: rgba(8, 8, 8, 0.75);
    backdrop-filter: blur(12px);
    padding: 0.85rem 0;
    mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

.hero-marquee-track {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    width: max-content;
    animation: marqueeScroll 30s linear infinite;
}

.hero-marquee-track span {
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--silver-muted);
    white-space: nowrap;
}

.marquee-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--green-light);
    flex-shrink: 0;
}

@keyframes marqueeScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.hero-scroll {
    bottom: 4.5rem;
}

/* Boutons magnétiques */
.btn-magnetic {
    position: relative;
    transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}

/* ── Intro éditoriale ── */
.intro-editorial {
    padding-top: clamp(5rem, 10vw, 8rem);
}

.intro-grid {
    display: grid;
    grid-template-columns: minmax(200px, 1fr) minmax(0, 2fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: start;
}

.intro-index {
    display: block;
    font-family: var(--font-serif);
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 700;
    line-height: 0.85;
    background: linear-gradient(180deg, rgba(124, 179, 66, 0.35) 0%, rgba(124, 179, 66, 0.05) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
}

.intro-pullquote {
    font-family: var(--font-serif);
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-style: italic;
    line-height: 1.6;
    color: var(--silver);
    border-left: 2px solid var(--green);
    padding-left: 1.25rem;
    margin: 0;
}

.intro-heading {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-wrap: balance;
}

/* ── Bento Grid (UI UX Pro Max) ── */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 1.25rem;
}

.bento-card {
    position: relative;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    background: linear-gradient(165deg, #1c1c1c 0%, #121212 100%);
    border: 1px solid var(--relief-edge, rgba(200, 200, 200, 0.07));
    border-radius: var(--radius);
    box-shadow: var(--shadow-relief-sm);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
    overflow: hidden;
}

.bento-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--relief-highlight, rgba(255,255,255,0.09)), transparent);
}

.bento-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-relief-lg);
}

.bento-featured {
    grid-row: span 2;
    grid-column: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 320px;
    background:
        linear-gradient(165deg, rgba(45, 138, 62, 0.08) 0%, transparent 50%),
        linear-gradient(165deg, #1e1e1e 0%, #111 100%);
}

.bento-featured h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.bento-featured p {
    font-size: 1rem;
    line-height: 1.7;
}

.bento-icon {
    width: 48px;
    height: 48px;
    color: var(--green-light);
    margin-bottom: 1.25rem;
}

.bento-icon svg {
    width: 100%;
    height: 100%;
}

.bento-card h3 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.bento-card p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.65;
}

.bento-tag {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    padding: 0.3rem 0.75rem;
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--green-light);
    border: 1px solid rgba(124, 179, 66, 0.3);
    border-radius: 50px;
}

/* ── Galerie horizontale (Horizontal Scroll Journey) ── */
.featured-scroll-wrap {
    overflow-x: auto;
    overflow-y: hidden;
    padding: 1rem 0 2rem;
    margin: 0 -4vw;
    padding-left: max(4vw, calc((100vw - 1200px) / 2 + 4vw));
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
}

.featured-scroll-wrap::-webkit-scrollbar {
    display: none;
}

.featured-scroll-wrap.is-dragging {
    cursor: grabbing;
    user-select: none;
}

.featured-scroll-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    padding-right: 4vw;
}

.featured-scroll-track .painting-card-wrap {
    width: min(340px, 80vw);
    flex-shrink: 0;
}

/* ── Timeline processus ── */
.process-timeline-section {
    overflow: hidden;
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    position: relative;
    padding-top: 2rem;
}

.timeline-line {
    position: absolute;
    top: 2.75rem;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: rgba(200, 200, 200, 0.1);
    border-radius: 1px;
}

.timeline-progress {
    display: block;
    height: 100%;
    width: 0%;
    background: var(--gradient-green);
    border-radius: 1px;
    transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.process-timeline.is-visible .timeline-progress {
    width: 100%;
}

.timeline-step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.timeline-step .step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: linear-gradient(165deg, #1c1c1c, #111);
    border: 2px solid rgba(124, 179, 66, 0.3);
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-relief-sm);
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.process-timeline.is-visible .timeline-step .step-num {
    border-color: var(--green-light);
    box-shadow: 0 0 20px rgba(45, 138, 62, 0.25);
}

.timeline-step h3 {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.timeline-step p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.65;
    max-width: 220px;
    margin: 0 auto;
}

/* ── Thématiques showcase ── */
.themes-showcase {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.theme-showcase-card {
    position: relative;
    display: block;
    min-height: 280px;
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--relief-edge, rgba(200, 200, 200, 0.07));
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease;
}

.theme-showcase-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: var(--shadow-relief-lg);
}

.theme-showcase-bg {
    position: absolute;
    inset: 0;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.theme-showcase-card:hover .theme-showcase-bg {
    transform: scale(1.08);
}

.theme-volcan .theme-showcase-bg {
    background:
        radial-gradient(ellipse 80% 60% at 30% 80%, rgba(212, 80, 30, 0.5) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 70% 30%, rgba(180, 40, 20, 0.4) 0%, transparent 50%),
        linear-gradient(160deg, #1a0a08 0%, #0d0808 100%);
}

.theme-landscape .theme-showcase-bg {
    background:
        radial-gradient(ellipse 70% 50% at 50% 100%, rgba(45, 138, 62, 0.45) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 20% 40%, rgba(30, 107, 184, 0.2) 0%, transparent 50%),
        linear-gradient(160deg, #0a1208 0%, #080a08 100%);
}

.theme-ocean .theme-showcase-bg {
    background:
        radial-gradient(ellipse 80% 50% at 60% 70%, rgba(0, 180, 216, 0.35) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 30% 30%, rgba(30, 107, 184, 0.4) 0%, transparent 50%),
        linear-gradient(160deg, #080a14 0%, #060810 100%);
}

.theme-culture .theme-showcase-bg {
    background:
        radial-gradient(ellipse 70% 60% at 40% 60%, rgba(212, 168, 67, 0.35) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 80% 20%, rgba(180, 60, 80, 0.25) 0%, transparent 50%),
        linear-gradient(160deg, #140a08 0%, #0a0808 100%);
}

.theme-showcase-content {
    position: relative;
    z-index: 1;
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(0deg, rgba(8, 8, 8, 0.9) 0%, rgba(8, 8, 8, 0.3) 50%, transparent 100%);
}

.theme-showcase-num {
    font-family: var(--font-serif);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: var(--green-light);
    margin-bottom: 0.5rem;
}

.theme-showcase-content h3 {
    font-family: var(--font-serif);
    font-size: clamp(1.3rem, 2.5vw, 1.6rem);
    margin-bottom: 0.5rem;
}

.theme-showcase-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

/* ── Stats animées ── */
.stats-animated .stat-item {
    transition: transform 0.4s ease;
}

.stats-animated .stat-item:hover {
    transform: translateY(-4px);
}

/* ── CTA wow ── */
.cta-box-wow {
    position: relative;
    overflow: hidden;
    padding: clamp(3rem, 6vw, 5rem) 2rem;
}

.cta-glow {
    position: absolute;
    inset: -50%;
    background:
        radial-gradient(ellipse 40% 50% at 30% 50%, rgba(212, 168, 67, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 40% 50% at 70% 50%, rgba(45, 138, 62, 0.1) 0%, transparent 50%);
    animation: ctaGlowDrift 12s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes ctaGlowDrift {
    from { transform: translate(-5%, -5%) rotate(0deg); }
    to { transform: translate(5%, 5%) rotate(3deg); }
}

.cta-box-wow h2,
.cta-box-wow p,
.cta-box-wow .cta-actions {
    position: relative;
    z-index: 1;
}

/* ── Accessibilité ── */
@media (prefers-reduced-motion: reduce) {
    .hero-marquee-track,
    .hero-volcanic-glow,
    .cta-glow,
    .hero-split-title .split-word {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .timeline-progress {
        width: 100% !important;
        transition: none !important;
    }

    .featured-scroll-wrap {
        cursor: default;
    }
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .intro-grid {
        grid-template-columns: 1fr;
    }

    .intro-index {
        font-size: 4rem;
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-featured {
        grid-row: auto;
        min-height: auto;
    }

    .process-timeline {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .timeline-line {
        display: none;
    }

    .themes-showcase {
        grid-template-columns: 1fr;
    }

    .theme-showcase-card {
        min-height: 220px;
    }

    .hero-marquee {
        display: none;
    }

    .hero-scroll {
        bottom: 2rem;
    }
}

@media (max-width: 520px) {
    .process-timeline {
        grid-template-columns: 1fr;
    }
}
