/* ===========================
   RESET & BASE STYLES
   =========================== */

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

:root {
    /* Brand color palette */
    --color-primary: #c0522f;
    --color-secondary: #3B4559;
    --color-bg: #FAFAF9;
    --color-text: #3B4559;
    --color-text-light: #6B6B6B;
    --color-accent: #c0522f;
    --color-border: #E5E5E5;
    --color-card-bg: #FFFFFF;
    --color-overlay: rgba(59, 69, 89, 0.35);

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    --font-serif: 'Inter', 'Georgia', 'Times New Roman', serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 5rem;
    --spacing-xxl: 8rem;

    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Premium cubic-bezier easing */
:root {
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out-cubic: cubic-bezier(0.65, 0, 0.35, 1);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ===========================
   TOP NAVIGATION HEADER
   =========================== */

.top-header {
    background-color: #c0522f;
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.top-header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

.top-header-link {
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 500;
    color: #FFFFFF;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.top-header-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 2px;
    background-color: #FFFFFF;
    transition: transform 0.3s ease;
}

.top-header-link:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.top-header-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

/* ===========================
   HERO SECTION - 360° Panorama
   =========================== */

.hero-section {
    position: relative;
    width: 100%;
    height: 85vh;
    overflow: visible;
    min-height: 600px;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 80px;
    background-image: url('images/dechirement_bleu.svg');
    background-repeat: repeat-x;
    background-size: auto 80px;
    background-position: top;
    z-index: 100;
    pointer-events: none;
}

.panorama-viewer {
    width: 100%;
    height: 100%;
    cursor: grab;
}

.panorama-viewer:active {
    cursor: grabbing;
}

.panorama-viewer canvas {
    cursor: grab !important;
}

.panorama-viewer canvas:active {
    cursor: grabbing !important;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom, var(--color-overlay) 0%, transparent 100%);
    pointer-events: none;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.hero-year {
    font-family: var(--font-primary);
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    font-weight: 500;
    color: var(--color-accent);
    text-align: center;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    position: relative;
    padding: 0 40px;
}

.hero-year::before,
.hero-year::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-accent));
}

.hero-year::before {
    left: 0;
}

.hero-year::after {
    right: 0;
    background: linear-gradient(90deg, var(--color-accent), transparent);
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    color: #FFFFFF;
    text-align: center;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    margin: 0;
}

.hero-subtitle {
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-weight: 500;
    display: block;
    margin-top: 0.5rem;
}

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

/* 360° Navigation Thumbnails */
.panorama-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 16px;
    z-index: 100;
    opacity: 0;
    animation: fadeInNav 1s ease forwards 1.5s;
}

@keyframes fadeInNav {
    to {
        opacity: 1;
    }
}

.panorama-thumb {
    position: relative;
    width: 110px;
    cursor: pointer;
    transition: all 0.4s var(--ease-out-expo);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.panorama-thumb:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.panorama-thumb.active {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 6px 20px rgba(221, 164, 111, 0.4);
    transform: translateY(-6px);
}

.panorama-thumb img {
    width: 100%;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid rgba(221, 164, 111, 0.2);
    transition: all 0.4s var(--ease-out-expo);
}

.panorama-thumb:hover img {
    border-color: rgba(221, 164, 111, 0.5);
}

.panorama-thumb.active img {
    border-color: var(--color-accent);
}

.thumb-title {
    display: block;
    text-align: center;
    color: #2C3E50;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 8px;
    transition: all 0.3s ease;
}

.panorama-thumb:hover .thumb-title {
    color: var(--color-accent);
}

.panorama-thumb.active .thumb-title {
    font-weight: 600;
    color: var(--color-accent);
}

/* Mouse hint icon */
.mouse-hint {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    animation: fadeInHint 1.5s ease forwards 2.5s, fadeOutHint 1s ease forwards 5s;
    z-index: 10;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

@keyframes fadeInHint {
    to {
        opacity: 0.8;
    }
}

@keyframes fadeOutHint {
    to {
        opacity: 0;
    }
}

/* 360 GIF hint icon */
.gif-360-hint {
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInHint 1.5s ease forwards 2.5s;
}

.gif-360-hint img {
    width: 100px;
    height: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

/* ===========================
   SECTION - RESOLUTIONS
   =========================== */

.resolutions-section {
    min-height: 100vh;
    padding: var(--spacing-lg) 0;
    background-color: #3B4559;
    /*background-image: url('images/bground-reso.png');*/
    background-repeat: repeat;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Removed - déchirement now on hero-section::after */

.resolutions-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.resolutions-title {
    font-family: var(--font-serif);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    line-height: 1;
}

.title-top {
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    font-weight: 400;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 8px;
}

.title-main {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: -0.02em;
    line-height: 1.1;
    background: linear-gradient(135deg, #FFFFFF 0%, rgba(255, 255, 255, 0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.title-bottom {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.05em;
    margin-top: 8px;
    font-style: italic;
}

/* Full Width Carousel Design - Deconstructed Layout */
.resolutions-carousel-wrapper {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
}

.resolutions-carousel-container {
    overflow: hidden;
    width: 100%;
}

.resolutions-carousel-track {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.resolution-item {
    min-width: 100%;
    padding: var(--spacing-md) 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Large Number */
.resolution-number {
    font-family: var(--font-serif);
    font-size: clamp(4rem, 10vw, 6rem);
    font-weight: 700;
    color: rgb(192 82 47 / 55%)
    line-height: 0.8;.column-text .section-title
    margin-bottom: -1.5rem;
    position: relative;
    z-index: 1;
}

/* Content Grid - Alternating Layout */
.resolution-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
    margin-bottom: var(--spacing-md);
    position: relative;
    z-index: 2;
    padding: 45px;
}

.resolution-text-block {
    padding: var(--spacing-sm);
}

.resolution-title {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin: 0 0 var(--spacing-sm);
}

.resolution-description {
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-weight: 300;
}

.resolution-image-block {
    position: relative;
    overflow: visible;
    border-radius: 12px;
    aspect-ratio: 16 / 10;
    max-height: 300px;
}

.resolution-image-block img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* Reward Block - Horizontal Layout */
.resolution-reward-block {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: var(--spacing-md);
    max-width: 600px;
    margin: 0 auto;
}

.resolution-reward-block.reverse {
    flex-direction: row-reverse;
    margin-left: auto;
    margin-right: 0;
}

.reward-badge {
    flex: 0 0 100px;
    height: 100px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.reward-badge img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reward-info {
    flex: 1;
}

.reward-label {
    font-family: var(--font-serif);
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 4px;
}

.reward-partner {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.reward-text {
    font-size: 0.85rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 12px 0;
    font-weight: 400;
}

.reward-link {
    display: inline;
    font-size: 0.75rem;
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.reward-link::after {
    content: '→';
    margin-left: 6px;
    transition: transform 0.3s ease;
    display: inline-block;
}

.reward-link:hover {
    color: #FFFFFF;
}

.reward-link:hover::after {
    transform: translateX(4px);
}

.reward-cta {
    background: linear-gradient(135deg, var(--color-accent) 0%, #C89561 100%);
    color: #FFFFFF;
    border: none;
    padding: 8px 20px;
    font-family: var(--font-primary);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
    box-shadow: 0 3px 12px rgba(221, 164, 111, 0.4);
}

.reward-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(221, 164, 111, 0.6);
}

.reward-cta:active {
    transform: translateY(0);
}

/* Carousel Navigation Buttons - Full Width Style */
.carousel-btn-fullwidth {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn-fullwidth:hover {
    background: rgba(221, 164, 111, 0.9);
    border-color: var(--color-accent);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn-fullwidth.prev {
    left: var(--spacing-md);
}

.carousel-btn-fullwidth.next {
    right: var(--spacing-md);
}

/* Carousel Indicators */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: var(--spacing-lg);
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
}

.indicator.active {
    background: var(--color-accent);
    width: 32px;
    border-radius: 6px;
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.6);
}

.section-logo {
    width: 75px;
    height: 75px;
    margin: 0 auto var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Logo alignment follows title alignment */
.column-text .section-logo {
    margin-left: 0;
    margin-right: auto;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    color: var(--color-text);
    text-align: center;
    margin-bottom: 15px;
    letter-spacing: -0.02em;
    line-height: 1;
}

.section-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 500;
    color: var(--color-accent);
    text-align: center;
    margin: 0 0 var(--spacing-xl) 0;
    padding: 0;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1;
}

/* ===========================
   TWO-COLUMN LAYOUTS
   =========================== */

.musee-section,
.office-section,
.parc-section,
.congres-section {
    padding: var(--spacing-xxl) 0;
    position: relative;
}

/* Alternating background colors with torn paper transitions */
.musee-section {
    background-color: #FFFFFF;
    position: relative;
}

.musee-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/ostrea-bground.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.2;
    z-index: 0;
}

.musee-section .container {
    position: relative;
    z-index: 1;
}

.musee-section::before {
    content: '';
    position: absolute;
    top: -35px;
    left: 0;
    width: 100%;
    height: 36px;
    background-image: url('images/dechirement_white.svg');
    background-repeat: repeat-x;
    background-size: auto 36px;
    z-index: 2;
    transform: scaleY(1);
}

.office-section {
    background: linear-gradient(135deg, #F8F8F7 0%, #f5d1af 100%);
}

.parc-section {
    background-color: #FFFFFF;
}

.parc-section::before {
    content: '';
    position: absolute;
    top: -35px;
    left: 0;
    width: 100%;
    height: 36px;
    background-image: url('images/dechirement_white.svg');
    background-repeat: repeat-x;
    background-size: auto 36px;
    z-index: 2;
    transform: scaleY(1);
}

.congres-section {
    background: linear-gradient(135deg, #F5F5F4 0%, #F8F8F7 100%);
}

.congres-section::before {
    content: '';
    position: absolute;
    top: -35px;
    left: 0;
    width: 100%;
    height: 36px;
    background-image: url('images/dechirement_grey.svg');
    background-repeat: repeat-x;
    background-size: auto 36px;
    z-index: 2;
}

/* Torn paper transitions - color variations */
.musee-section::before,
.parc-section::before {
    /* White sections - keep original color */
    opacity: 1;
}

.office-section::before,
.congres-section::before {
    /* Grey sections - slightly darker */
    opacity: 1;
}

/* Decorative illustrations */
.section-illustration {
    position: absolute;
    width: 280px;
    height: 280px;
    opacity: 0;
    transition: opacity 1.2s var(--ease-out-expo),
                transform 1.2s var(--ease-out-expo);
    z-index: 1;
    pointer-events: none;
    filter: grayscale(30%) contrast(105%) brightness(105%);
    mix-blend-mode: multiply;
}

.section-illustration img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Left positioned illustrations */
.section-illustration.left {
    left: 8%;
    top: 45%;
    transform: translate(-120px, -50%) rotate(-8deg) scale(0.9);
}

.section-illustration.left.is-visible {
    opacity: 0.5;
    transform: translate(0, -50%) rotate(-8deg) scale(1);
}

/* Right positioned illustrations */
.section-illustration.right {
    right: 8%;
    top: 45%;
    transform: translate(120px, -50%) rotate(8deg) scale(0.9);
}

.section-illustration.right.is-visible {
    opacity: 0.5;
    transform: translate(0, -50%) rotate(8deg) scale(1);
}

/* Tablet adjustments */
@media (max-width: 1024px) {
    .resolutions-carousel-wrapper {
        max-width: 100%;
        padding: 0 var(--spacing-md);
    }

    .resolutions-carousel-wrapper .carousel-btn.prev {
        left: -15px;
    }

    .resolutions-carousel-wrapper .carousel-btn.next {
        right: -15px;
    }

    .card-main-image {
        height: 240px;
    }

    .reward-content {
        flex-direction: column;
        text-align: center;
    }

    .reward-image {
        flex: 0 0 80px;
        height: 80px;
    }

    .section-illustration {
        width: 180px;
        height: 180px;
    }

    .section-illustration.left {
        left: 3%;
    }

    .section-illustration.right {
        right: 3%;
    }
}

.two-column-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
    margin-bottom: var(--spacing-xl);
}

.column-image img,
.section-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-height: 500px;
}

.column-text .section-title {
    text-align: left;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
}

.column-text .section-subtitle {
    text-align: left;
}

.section-paragraph {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-text-light);
    max-width: 600px;
    margin-bottom: var(--spacing-lg);
}

/* Section Button with animations */
.section-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--color-accent) 0%, #C89561 100%);
    color: #FFFFFF;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 16px rgba(221, 164, 111, 0.3);
    opacity: 0;
    transform: translateY(20px);
}

.section-btn.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.section-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.section-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(221, 164, 111, 0.5);
}

.section-btn:hover::before {
    left: 100%;
}

.section-btn:hover svg {
    transform: translateX(5px);
}

.section-btn:active {
    transform: translateY(-1px);
}

.section-btn svg {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

/* Image Grid & Stack */
.image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
}

.grid-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.image-stack {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.stack-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.text-first-layout {
    max-width: 900px;
    margin: 0 auto var(--spacing-xl);
    text-align: center;
}

.text-first-layout .section-logo {
    margin-left: auto;
    margin-right: auto;
}

.text-first-layout .section-paragraph {
    max-width: 800px;
    margin: 0 auto;
}

/* ===========================
   EVENTS CAROUSEL
   =========================== */

.events-carousel-wrapper {
    margin-top: var(--spacing-xl);
}

.carousel-title {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: var(--spacing-md);
    color: var(--color-text);
    text-align: center;
}

.carousel {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.carousel-track-container {
    overflow: hidden;
    padding: var(--spacing-sm) 0;
}

.carousel-track {
    display: flex;
    gap: var(--spacing-md);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.event-card {
    flex: 0 0 280px;
    background: var(--color-card-bg);
    padding: var(--spacing-lg);
    border: 1px solid var(--color-border);
    transition: var(--transition-smooth);
}

.event-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-4px);
}

.event-name {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    color: var(--color-text);
}

.event-date {
    font-size: 0.9rem;
    color: var(--color-accent);
    letter-spacing: 0.02em;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--color-text);
    cursor: pointer;
    transition: var(--transition-fast);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: var(--color-secondary);
    color: #FFFFFF;
    border-color: var(--color-secondary);
}

.carousel-btn.prev {
    left: -24px;
}

.carousel-btn.next {
    right: -24px;
}

/* ===========================
   FOOTER
   =========================== */

.footer-text {
    text-align: center;
    font-size: 0.9rem;
    color: var(--color-accent);
}

/* ===========================
   ADVANCED SCROLL ANIMATIONS
   Premium UX patterns
   =========================== */

/* Base animation states */
[data-scroll] {
    transition: opacity 0.8s var(--ease-out-expo),
                transform 0.8s var(--ease-out-expo);
}

/* Fade Up Animation */
[data-scroll="fade-up"] {
    opacity: 0;
    transform: translateY(60px);
}

[data-scroll="fade-up"].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Fade Left Animation */
[data-scroll="fade-left"] {
    opacity: 0;
    transform: translateX(60px);
}

[data-scroll="fade-left"].is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* Fade Right Animation */
[data-scroll="fade-right"] {
    opacity: 0;
    transform: translateX(-60px);
}

[data-scroll="fade-right"].is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* Scale Animation */
[data-scroll="scale"] {
    opacity: 0;
    transform: scale(0.85);
}

[data-scroll="scale"].is-visible {
    opacity: 1;
    transform: scale(1);
}

/* Fade Animation */
[data-scroll="fade"] {
    opacity: 0;
}

[data-scroll="fade"].is-visible {
    opacity: 1;
}

/* Hero fade in */
.fade-in {
    animation: fadeInHero 1.2s var(--ease-out-expo) forwards;
}

@keyframes fadeInHero {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===========================
   RESPONSIVE - TABLET
   =========================== */

@media (max-width: 1024px) {
    .hero-section {
        height: 60vh;
    }

    .resolutions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }

    .two-column-layout {
        gap: var(--spacing-lg);
    }

    .carousel-btn.prev {
        left: -12px;
    }

    .carousel-btn.next {
        right: -12px;
    }

    .event-card {
        flex: 0 0 240px;
    }
}

/* ===========================
   RESPONSIVE - MOBILE
   =========================== */

@media (max-width: 768px) {
    :root {
        --spacing-xl: 3rem;
        --spacing-xxl: 5rem;
    }

    /* Top Header Mobile */
    .top-header {
        padding: 10px 0;
    }

    .top-header-container {
        gap: var(--spacing-sm);
        padding: 0 var(--spacing-sm);
    }

    .top-header-link {
        font-size: 0.75rem;
        padding: 6px 12px;
    }

    .hero-section {
        height: 55vh;
    }

    /* Panorama navigation on mobile */
    .panorama-nav {
        bottom: 20px;
        gap: 10px;
        max-width: 90%;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        padding: 0 var(--spacing-sm);
    }

    .panorama-nav::-webkit-scrollbar {
        display: none;
    }

    .panorama-thumb {
        width: 80px;
        flex-shrink: 0;
    }

    .panorama-thumb img {
        height: 50px;
    }

    .thumb-title {
        font-size: 0.65rem;
        margin-top: 6px;
    }

    .mouse-hint svg {
        width: 18px;
        height: 28px;
    }

    /* 360 GIF hint responsive */
    .gif-360-hint {
        margin-bottom: 0.75rem;
    }

    .gif-360-hint img {
        width: 60px;
    }

    /* Hide decorative illustrations on mobile */
    .section-illustration {
        display: none;
    }

    /* Adjust torn paper transitions for mobile */
    .resolutions-section::before,
    .musee-section::before,
    .office-section::before,
    .parc-section::before,
    .congres-section::before {
        top: -18px;
        height: 18px;
        background-size: auto 18px;
    }

    .hero-title {
        font-size: 2rem;
        padding: 0 var(--spacing-md);
    }

    .resolutions-section {
        padding: var(--spacing-xl) 0;
    }

    .resolutions-title {
        font-size: 1.75rem;
        text-align: center;
    }

    .resolutions-carousel-wrapper {
        padding: 0 var(--spacing-sm);
    }

    /* Full Width Carousel Mobile */
    .resolution-item {
        padding: var(--spacing-md) 0;
    }

    .resolution-number {
        font-size: clamp(4rem, 20vw, 6rem);
        margin-bottom: -1.5rem;
    }

    .resolution-content-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .resolution-text-block {
        padding: var(--spacing-sm);
    }

    .resolution-title {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
    }

    .resolution-description {
        font-size: 1rem;
    }

    .resolution-image-block {
        order: -1;
    }

    .resolution-reward-block {
        flex-direction: column;
        text-align: center;
        padding: var(--spacing-md);
    }

    .resolution-reward-block.reverse {
        flex-direction: column;
        margin-left: 0;
        margin-right: 0;
    }

    .reward-badge {
        flex: 0 0 100px;
        height: 100px;
    }

    .carousel-btn-fullwidth {
        width: 45px;
        height: 45px;
    }

    .carousel-btn-fullwidth svg {
        width: 30px;
        height: 30px;
    }

    .carousel-btn-fullwidth.prev {
        left: var(--spacing-xs);
    }

    .carousel-btn-fullwidth.next {
        right: var(--spacing-xs);
    }

    .card-main-image {
        height: 160px;
    }

    .card-content {
        padding: var(--spacing-sm);
    }

    .card-description {
        font-size: 0.9rem;
    }

    .card-reward {
        padding: var(--spacing-sm);
    }

    .reward-content {
        flex-direction: row;
        gap: var(--spacing-sm);
    }

    .reward-image {
        flex: 0 0 50px;
        height: 50px;
    }

    .reward-text p {
        font-size: 0.8rem;
    }

    .reward-btn {
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: 0.8rem;
    }

    .section-title {
        margin-bottom: var(--spacing-lg);
    }

    .two-column-layout {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .column-text .section-title {
        text-align: center;
    }

    .section-paragraph {
        max-width: 100%;
    }

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

    .grid-img {
        height: 240px;
    }

    .stack-img {
        height: 180px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .carousel-btn.prev {
        left: 0;
    }

    .carousel-btn.next {
        right: 0;
    }

    .event-card {
        flex: 0 0 220px;
        padding: var(--spacing-md);
    }

    .carousel-track-container {
        padding: var(--spacing-sm) var(--spacing-md);
    }

    .musee-section,
    .office-section,
    .parc-section,
    .congres-section {
        padding: var(--spacing-xl) 0;
    }
}

@media (max-width: 480px) {
    .hero-section {
        height: 50vh;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .resolution-card {
        padding: 0;
    }

    .card-image {
        height: 160px;
    }

    .card-title {
        font-size: 1.1rem;
        padding: 0 var(--spacing-md);
        margin-top: var(--spacing-md);
    }

    .card-text {
        font-size: 0.9rem;
        padding: 0 var(--spacing-md) var(--spacing-md);
    }

    .event-card {
        flex: 0 0 200px;
        padding: var(--spacing-sm) var(--spacing-md);
    }

    .event-name {
        font-size: 1rem;
    }

    .event-date {
        font-size: 0.85rem;
    }
}

/* ===========================
   ACCESSIBILITY
   =========================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

.carousel-btn:focus-visible,
button:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}
