﻿/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #000;
    --secondary-color: #f0ede5;
    --accent-color: #ff6b6b;
    --text-color: #333;
    --bg-color: #d4cfc4;
    --dark-bg: #1a1a1a;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    background: #f0ede5 !important;
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-color);
    background-color: #f0ede5;
    line-height: 1.6;
    overflow-x: hidden;
    overflow-y: auto;
    cursor: default;
    max-width: 100%;
}

.main-content {
    overflow-x: visible !important;
    overflow-y: visible !important;
    width: 100%;
    background: #f0ede5;
}

/* Custom Cursor */
.custom-cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.2s ease, width 0.2s ease, height 0.2s ease;
    mix-blend-mode: difference;
}

@media (max-width: 768px) {
    .custom-cursor {
        display: none;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(212, 207, 196, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(212, 207, 196, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo .logo-link {
    text-decoration: none;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-image {
    height: 40px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    transition: var(--transition);
}

.logo-link:hover .logo-image {
    opacity: 0.8;
}

.nav-logo .logo-text {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: lowercase;
    color: var(--primary-color);
    transition: var(--transition);
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 4px;
    transition: var(--transition);
    position: relative;
    display: inline-block;
}

.logo-light {
    display: none;
}

.logo-mobile {
    display: none;
}

.logo-text::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.logo-link:hover .logo-text::after {
    width: 100%;
}

/* Dark mode logo switch */
body.dark-mode .logo-dark {
    display: none;
}

body.dark-mode .logo-light {
    display: inline-block;
    color: var(--secondary-color);
}

.nav-menu {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    transition: var(--transition);
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
    display: block;
    position: relative;
}

/* ============================================
   ARTWORK FRAMES SVG
   ============================================ */
.frame-classic {
    --frame-bg: #d4cfc4;
    --frame-border: #1a1a1a;
    --frame-inner: #d4cfc4;
    --frame-image-bg: #d4cfc4;
}

.artwork-frame {
    width: auto;
    height: auto;
    max-width: 60vw;
    max-height: 80vh;
    display: block;
    cursor: pointer;
    background: red;
    padding: 14px;
    box-sizing: border-box;
    visibility: visible;
    opacity: 1;
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
    overflow: visible;
    transform: none !important;
    transition: none !important;
    margin: 0 auto;
    position: relative;
}


.artwork-frame:hover {
    transform: none !important;
    scale: 1 !important;
}

.artwork-frame .frame-image {
    display: block;
    transform: none !important;
    transition: opacity 0.3s ease !important;
    opacity: 1;
    /* Optimisation du rendu pour downscaling - netteté maximale */
    image-rendering: auto;
    image-rendering: -webkit-optimize-contrast;
    -ms-interpolation-mode: bicubic;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    -webkit-transform: translateZ(0);
}

.artwork-frame:hover .frame-image {
    transform: none !important;
    scale: 1 !important;
    opacity: 1 !important;
}

.artwork-frame rect {
    visibility: visible !important;
    opacity: 1 !important;
    transition: opacity 0.3s ease, fill 0.3s ease !important;
    display: block !important;
}

/* Bordure grise épaisse extérieure */
.artwork-frame rect:first-of-type {
    stroke: #808080 !important;
    stroke-width: 3 !important;
    opacity: 1 !important;
}

/* Bordure noire intérieure */
.artwork-frame rect:nth-of-type(2) {
    stroke: #000000 !important;
    stroke-width: 2 !important;
    opacity: 1 !important;
}

.artwork-frame .frame-inner-rect {
    fill: #ffffff;
    transition: fill 0.3s ease, opacity 0.3s ease !important;
}

.artwork-frame:hover .frame-inner-rect {
    /* Rectangle blanc intérieur - reste visible */
    fill: #ffffff !important;
    opacity: 1 !important;
}

.artwork-frame:hover rect:first-of-type {
    /* Bordure grise extérieure au survol - reste visible */
    opacity: 1 !important;
    stroke: #808080 !important;
    stroke-width: 3 !important;
}

.artwork-frame:hover rect:nth-of-type(2) {
    /* Bordure noire intérieure au survol - reste visible */
    opacity: 1 !important;
    stroke: #000000 !important;
    stroke-width: 2 !important;
}

.artwork-frame svg {
    border: 2px solid #000;
    outline: none !important;
    outline-offset: 0;
    overflow: hidden;
    box-shadow: none !important;
    display: block;
    width: 100%;
    height: 100%;
}

.artwork-frame svg rect:first-of-type {
    visibility: visible !important;
    opacity: 1 !important;
    stroke: #ff0000 !important;
    stroke-width: 2 !important;
    display: block !important;
}

.artwork-frame svg rect:nth-of-type(2) {
    visibility: visible !important;
    opacity: 1 !important;
    stroke: #000000 !important;
    stroke-width: 1 !important;
    display: block !important;
}

.poem-overlay-group {
    pointer-events: none;
}

.poem-foreign-object {
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    /* Forcer une taille de police de base fixe indépendante du viewBox */
    font-size: 16px !important;
}

.artwork-frame:hover .poem-foreign-object {
    opacity: 0;
    pointer-events: none;
}

.poem-content-svg {
    width: 100%;
    height: 100%;
    padding: 8px 6px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: transparent !important;
    overflow: hidden;
    gap: 0 !important;
    row-gap: 0 !important;
    font-size: 16px !important; /* Taille de base fixe pour tous les poèmes */
}

.poem-title-svg {
    font-family: 'Playfair Display', serif;
    font-size: 7px !important;
    font-weight: 700;
    color: #000;
    margin: 0 0 6px 0;
    padding: 0;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    line-height: 1.2;
    text-align: center;
    flex-shrink: 0;
    width: 100%;
    text-shadow: none;
}

.poem-text-svg {
    font-family: 'Inter', sans-serif;
    font-size: 5px !important;
    line-height: 1.2;
    color: #000;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center;
    max-width: 100%;
    overflow: hidden;
    flex: 0 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    text-shadow: none;
}

.poem-text-svg p {
    margin: 0 0 2px 0;
    padding: 0;
    text-align: center;
    width: 100%;
}

.poem-author-svg {
    font-family: 'Inter', sans-serif;
    font-size: 5px !important;
    font-style: italic;
    color: #000;
    margin: 6px auto 0 auto;
    padding: 0;
    text-align: center;
    font-weight: 700;
    flex-shrink: 0;
    width: 100%;
    line-height: 1.2;
    text-shadow: none;
    display: block;
}

/* ============================================
   CAROUSEL IMAGES SECTION - SWIPER
   ============================================ */
.carousel-images-section {
    width: 100%;
    background: #f0ede5 !important;
    min-height: calc(100vh - 80px);
    height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin-top: 80px;
    overflow: visible !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
    position: relative;
    box-sizing: border-box;
}

.carousel-images-section * {
    background: #f0ede5 !important;
}

.carousel-images-section .swiper-slide {
    background: #f0ede5 !important;
}

.carousel-images-section svg {
    background: transparent !important;
}

.carousel-images-section svg * {
    background: transparent !important;
}

.carousel-images-section .artwork-frame {
    background: transparent !important;
}

.carousel-images-section .artwork-frame * {
    background: transparent !important;
}

.gallery-wrapper {
    width: 100%;
    overflow: visible !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-swiper {
    width: 100%;
    overflow-x: visible !important;
    overflow-y: visible !important;
    padding: 0;
}

.gallery-swiper .swiper-wrapper {
    align-items: center;
    overflow: visible !important;
}

.gallery-swiper .swiper-slide {
    width: 70vw !important;
    max-width: 680px;
    min-width: 450px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    transform: scale(0.85) !important;
    transition: transform 0.4s ease !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Règle par défaut pour tous les écrans > 1024px (sans media query spécifique) */
@media (min-width: 1025px) {
    .gallery-swiper .swiper-slide {
        visibility: visible !important;
        opacity: 1 !important;
        display: flex !important;
    }
    
    .gallery-swiper .swiper-slide:not(.swiper-slide-active) {
        visibility: visible !important;
        opacity: 1 !important;
        display: flex !important;
    }
    
    .gallery-swiper .swiper-slide-prev,
    .gallery-swiper .swiper-slide-next {
        visibility: visible !important;
        opacity: 1 !important;
        display: flex !important;
    }
}

/* Forcer la visibilité de toutes les slides sur tous les écrans */
.gallery-swiper .swiper-slide {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.gallery-swiper .swiper-slide-prev,
.gallery-swiper .swiper-slide-next {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

@media (max-width: 768px) {
    .gallery-swiper .swiper-slide-prev,
    .gallery-swiper .swiper-slide-next {
        transform: scale(0.85) !important;
    }
}

.gallery-swiper .swiper-slide-active {
    transform: scale(1) !important;
}

.gallery-swiper .swiper-slide svg {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 3 / 4;
}

.gallery-swiper .swiper-button-prev,
.gallery-swiper .swiper-button-next {
    position: absolute !important;
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
    color: #666;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50%;
    z-index: 1000;
    margin: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    vertical-align: middle !important;
}

.gallery-swiper .swiper-button-prev {
    left: 25vw;
    right: auto !important;
}

.gallery-swiper .swiper-button-next {
    right: 25vw;
    left: auto !important;
}

.gallery-swiper .swiper-button-prev::after,
.gallery-swiper .swiper-button-next::after {
    font-size: 20px;
    font-weight: bold;
}

.gallery-swiper .swiper-button-prev:hover,
.gallery-swiper .swiper-button-next:hover {
    background: transparent !important;
    background-color: transparent !important;
    color: #333;
}

.gallery-swiper .swiper-button-disabled {
    opacity: 1 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
}

/* Empêcher Swiper de désactiver les boutons */
.poems-swiper .swiper-button-disabled {
    opacity: 1 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
}

.poem-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 100vh;
}

.poem-image {
    width: 100%;
    height: 100%;
    min-height: 100vh;
    object-fit: cover;
    display: block;
}

.carousel-image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 48px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 8px;
}

.poem-image[style*="display: none"] ~ .carousel-image-placeholder {
    display: flex;
}

.poem-image:not([style*="display: none"]) ~ .carousel-image-placeholder {
    display: none;
}

.poem-overlay-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    max-width: 65%;
    height: auto;
    background: #f7f3e8;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 35px;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

.poem-image-wrapper:hover .poem-overlay-box {
    opacity: 0.9;
    pointer-events: auto;
}

.poem-title-large {
    font-family: var(--font-primary);
    font-size: 28px;
    font-weight: 700;
    color: #000;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.3;
    text-align: center;
}

.poem-text-content {
    font-size: 14px;
    line-height: 1.8;
    color: #000;
    margin-bottom: 20px;
    text-align: center;
    max-width: 100%;
}

.poem-text-content p {
    margin-bottom: 12px;
}

.poem-author {
    text-align: center;
    font-style: italic;
    color: #000;
    font-size: 13px;
    margin-top: 15px;
}


/* ============================================
   HERO SECTION WITH POEMS (OLD - KEPT FOR REFERENCE)
   ============================================ */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 80px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(0,0,0,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(100px, 100px); }
}

.poems-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1400px;
    width: 100%;
    z-index: 1;
    position: relative;
}

.poem-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.poem-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.poem-card:hover::before {
    left: 100%;
}

.poem-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.poem-title {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.poem-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.poem-card:hover .poem-title::after {
    transform: scaleX(1);
}

.poem-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 20px;
}

.poem-text p {
    margin-bottom: 15px;
}

.poem-author {
    font-style: italic;
    color: #666;
    text-align: right;
    font-size: 14px;
}

/* Emotion-specific colors */
.poem-card[data-emotion="tristesse"] {
    border-left: 4px solid #4a90e2;
}

.poem-card[data-emotion="colere"] {
    border-left: 4px solid #e74c3c;
}

.poem-card[data-emotion="joie"] {
    border-left: 4px solid #f39c12;
}

.poem-card[data-emotion="peur"] {
    border-left: 4px solid #9b59b6;
}

/* ============================================
   NATU REPEATING TEXT
   ============================================ */
.natu-repeat {
    padding: 60px 0;
    background: transparent;
    overflow: hidden;
    position: relative;
}

.natu-text-scroll {
    display: flex;
    white-space: nowrap;
    animation: scroll 20s linear infinite;
    gap: 40px;
}

.natu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.natu-main {
    font-family: 'Playfair Display', serif;
    font-size: 120px;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.1);
    letter-spacing: 20px;
    text-transform: none;
    line-height: 1;
}

.natu-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 24px;
    font-weight: 400;
    color: rgba(0, 0, 0, 0.08);
    letter-spacing: 4px;
    text-transform: lowercase;
    margin-top: 8px;
    line-height: 1;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ============================================
   RECENT ARTWORKS SECTION
   ============================================ */
.recent-artworks-section {
    padding: 100px 20px;
    background: #f0ede5;
}

.recent-artworks-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.recent-artworks-text {
    padding-right: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.recent-artworks-title {
    font-family: 'Inter', sans-serif;
    font-size: 48px;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 40px;
    line-height: 0.9;
    font-style: normal;
    letter-spacing: -3px;
    text-align: left;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

.recent-artworks-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
}

.recent-artworks-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #888;
    margin-bottom: 15px;
    line-height: 1.3;
    letter-spacing: 5px;
    text-transform: uppercase;
    text-align: left;
}

.recent-artworks-description {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 50px;
    font-weight: 400;
    text-align: left;
    max-width: 90%;
    letter-spacing: 0.3px;
}

.recent-artworks-button {
    display: inline-block;
    padding: 0;
    background: transparent;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 1px;
    font-size: 15px;
    border: none;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 4px;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    position: relative;
    align-self: flex-start;
}

.recent-artworks-button::after {
    content: ' →';
    transition: transform 0.3s ease;
    display: inline-block;
    margin-left: 5px;
}

.recent-artworks-button:hover {
    border-bottom-width: 3px;
    padding-bottom: 3px;
}

.recent-artworks-button:hover::after {
    transform: translateX(8px);
}

.recent-artworks-gallery {
    width: 100%;
    max-width: 500px;
}

.recent-artworks-profile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.08);
    position: relative;
}

.recent-artworks-profile::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--primary-color);
}

.recent-artworks-profile-picture {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.recent-artworks-profile-picture .profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.recent-artworks-profile-name {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: 3px;
    text-transform: uppercase;
    position: relative;
    padding-left: 0;
    margin: 0;
}

.recent-artworks-grid {
    display: grid;
    gap: 3px;
    background: transparent;
    aspect-ratio: 1;
    width: 100%;
}

/* 1 image : prend tout l'espace */
.recent-artworks-grid[data-count="1"] {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
}

/* 2 images : division équilibrée (50% chacune) */
.recent-artworks-grid[data-count="2"] {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
}

/* 3 images : division équilibrée (33.33% chacune) - même taille d'image que dans la grille 6 images (3x2) mais sur une seule ligne */
.recent-artworks-grid[data-count="3"] {
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr;
    aspect-ratio: 2 / 1;
}

/* 4 images : grille 2x2 (25% chacune) */
.recent-artworks-grid[data-count="4"] {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}

/* 5 images : disposition harmonieuse */
.recent-artworks-grid[data-count="5"] {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
}

.recent-artworks-grid[data-count="5"] .recent-artwork-item:nth-child(1) {
    grid-column: 1 / 3;
    grid-row: 1 / 2;
}

.recent-artworks-grid[data-count="5"] .recent-artwork-item:nth-child(2) {
    grid-column: 3 / 4;
    grid-row: 1 / 3;
}

.recent-artworks-grid[data-count="5"] .recent-artwork-item:nth-child(3) {
    grid-column: 1 / 2;
    grid-row: 2 / 4;
}

.recent-artworks-grid[data-count="5"] .recent-artwork-item:nth-child(4) {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
}

.recent-artworks-grid[data-count="5"] .recent-artwork-item:nth-child(5) {
    grid-column: 2 / 4;
    grid-row: 3 / 4;
}

/* 6 images : grille 3x2 (16.67% chacune) */
.recent-artworks-grid[data-count="6"] {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
}

/* 7 images : disposition harmonieuse */
.recent-artworks-grid[data-count="7"] {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
}

.recent-artworks-grid[data-count="7"] .recent-artwork-item:nth-child(1) {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}

.recent-artworks-grid[data-count="7"] .recent-artwork-item:nth-child(2) {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
}

.recent-artworks-grid[data-count="7"] .recent-artwork-item:nth-child(3) {
    grid-column: 3 / 4;
    grid-row: 1 / 2;
}

.recent-artworks-grid[data-count="7"] .recent-artwork-item:nth-child(4) {
    grid-column: 2 / 4;
    grid-row: 2 / 3;
}

.recent-artworks-grid[data-count="7"] .recent-artwork-item:nth-child(5) {
    grid-column: 1 / 2;
    grid-row: 3 / 4;
}

.recent-artworks-grid[data-count="7"] .recent-artwork-item:nth-child(6) {
    grid-column: 2 / 3;
    grid-row: 3 / 4;
}

.recent-artworks-grid[data-count="7"] .recent-artwork-item:nth-child(7) {
    grid-column: 3 / 4;
    grid-row: 3 / 4;
}

/* 8 images : disposition équilibrée */
.recent-artworks-grid[data-count="8"] {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
}

.recent-artworks-grid[data-count="8"] .recent-artwork-item:nth-child(1) {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
}

.recent-artworks-grid[data-count="8"] .recent-artwork-item:nth-child(2) {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
}

.recent-artworks-grid[data-count="8"] .recent-artwork-item:nth-child(3) {
    grid-column: 3 / 4;
    grid-row: 1 / 2;
}

.recent-artworks-grid[data-count="8"] .recent-artwork-item:nth-child(4) {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
}

.recent-artworks-grid[data-count="8"] .recent-artwork-item:nth-child(5) {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
}

.recent-artworks-grid[data-count="8"] .recent-artwork-item:nth-child(6) {
    grid-column: 3 / 4;
    grid-row: 2 / 3;
}

.recent-artworks-grid[data-count="8"] .recent-artwork-item:nth-child(7) {
    grid-column: 1 / 2;
    grid-row: 3 / 4;
}

.recent-artworks-grid[data-count="8"] .recent-artwork-item:nth-child(8) {
    grid-column: 2 / 4;
    grid-row: 3 / 4;
}

/* 9 images : grille 3x3 classique (11.11% chacune) */
.recent-artworks-grid[data-count="9"] {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
}

.recent-artwork-item {
    overflow: hidden;
    background: #f0ede5;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    border: 1px solid #e0e0e0;
    min-height: 0;
    /* Force hardware acceleration for better image rendering */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;
    transition: transform 0.3s ease;
    /* Force high-quality background image rendering */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: auto;
}

.recent-artwork-empty {
    background: #f0ede5;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.recent-artwork-link {
    display: block;
    width: 100%;
    height: 100%;
}

.recent-artwork-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.3s ease;
    /* High-quality rendering for sharp thumbnails */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: auto;
}

/* ============================================
   ARTIST PHOTO SECTION
   ============================================ */
.artist-photo-section {
    padding: 80px 20px;
    background: #f0ede5;
    text-align: center;
}

.artist-photo-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.artist-photo-image {
    max-width: 60%;
    width: auto;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    display: block;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.artist-photo-text {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: var(--text-color);
    line-height: 1.6;
    font-style: italic;
    max-width: 600px;
    margin: 0;
}

@media (max-width: 768px) {
    .artist-photo-section {
        padding: 60px 20px;
    }
    
    .artist-photo-image {
        max-width: 80%;
        max-height: 300px;
    }
    
    .artist-photo-text {
        font-size: 16px;
    }
}
    -ms-interpolation-mode: bicubic;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    will-change: transform;
    /* Force sharp rendering */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.recent-artwork-item:hover {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

.recent-artwork-item.placeholder {
    background: #f0f0f0;
    border: 1px solid #e0e0e0;
}

@media (max-width: 1024px) {
    .recent-artworks-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .recent-artworks-text {
        padding-right: 0;
        text-align: center;
        align-items: center;
    }
    
    .recent-artworks-title {
        font-size: 58px;
        letter-spacing: -2px;
    }
    
    .recent-artworks-subtitle {
        font-size: 12px;
    }
    
    .recent-artworks-description {
        max-width: 100%;
        text-align: center;
    }
    
    .recent-artworks-button {
        align-self: center;
    }
}

@media (max-width: 768px) {
    .recent-artworks-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .recent-artworks-title {
        font-size: 42px;
        letter-spacing: -1.5px;
    }
    
    .recent-artworks-subtitle {
        font-size: 11px;
        letter-spacing: 4px;
    }
    
    .recent-artworks-description {
        font-size: 15px;
        line-height: 1.7;
    }
    
    .recent-artworks-button {
        font-size: 14px;
    }
}

@media (max-width: 1024px) {
    .recent-artworks-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .recent-artworks-text {
        padding-right: 0;
    }
    
    .recent-artworks-title {
        font-size: 12px;
    }
    
    .recent-artworks-subtitle {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .recent-artworks-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .recent-artworks-title {
        font-size: 11px;
    }
    
    .recent-artworks-subtitle {
        font-size: 28px;
    }
    
    .recent-artworks-description {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .recent-artworks-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .recent-artworks-label {
        font-size: 28px;
    }
    
    .recent-artworks-link-more {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .recent-artworks-grid {
        grid-template-columns: 1fr;
    }
    
    .recent-artworks-label {
        font-size: 24px;
    }
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-section {
    padding: 100px 20px;
    background: #f0ede5;
}

.section-title {
    font-family: 'Inter', sans-serif;
    font-size: 48px;
    font-weight: 900;
    text-align: left;
    margin-bottom: 40px;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    line-height: 0.9;
    letter-spacing: -3px;
    text-transform: uppercase;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
}

.about-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 80px;
    align-items: center;
    text-align: left;
}

.about-image-wrapper {
    width: 400px;
    height: 400px;
    clip-path: circle(50% at 50% 50%);
    flex-shrink: 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    position: relative;
}

.about-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: auto;
    -ms-interpolation-mode: bicubic;
}

.about-text-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-text {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 40px;
    color: var(--text-color);
    font-weight: 400;
    letter-spacing: 0.3px;
    max-width: 90%;
}

.about-link {
    display: inline-block;
    padding: 0;
    background: transparent;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 1px;
    font-size: 18px;
    border: none;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 4px;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    position: relative;
    align-self: flex-start;
}

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

.about-link:hover {
    border-bottom-width: 3px;
    padding-bottom: 3px;
}

.about-link:hover::after {
    transform: translateX(8px);
}

.btn-primary {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary-color);
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 14px;
    border: 2px solid var(--primary-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--secondary-color);
    transition: left 0.3s ease;
    z-index: -1;
}

.btn-primary:hover {
    color: var(--primary-color);
}

.btn-primary:hover::before {
    left: 0;
}

@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    
    .about-image-wrapper {
        margin: 0 auto;
        width: 300px;
        height: 300px;
    }
    
    .about-text-wrapper {
        text-align: center;
        align-items: center;
    }
    
    .section-title {
        text-align: center;
    }
    
    .section-title::after {
        width: 80px;
        height: 4px;
        bottom: -15px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .about-text {
        font-size: 17px;
        line-height: 1.75;
        max-width: 100%;
    }
    
    .section-title {
        font-size: 46px;
        letter-spacing: -2px;
    }
    
    .about-link {
        align-self: center;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 34px;
        letter-spacing: -1.5px;
    }
    
    .about-text {
        font-size: 16px;
        line-height: 1.65;
    }
    
    .about-image-wrapper {
        width: 250px;
        height: 250px;
    }
    
    .section-title {
        font-size: 38px;
    }
    
    .about-text {
        font-size: 18px;
    }
}

.btn-secondary {
    display: inline-block;
    padding: 15px 40px;
    background: transparent;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 14px;
    border: 2px solid var(--primary-color);
    transition: var(--transition);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
}

/* ============================================
   COLLECTION FILTERS
   ============================================ */
.collection-filters {
    padding: 30px 20px;
    background: #f0ede5;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.collection-filters-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.collection-filter-btn {
    padding: 10px 20px;
    background: #f0ede5;
    color: var(--text-color);
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.collection-filter-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(0,0,0,0.05);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.collection-filter-btn:hover::before {
    width: 300px;
    height: 300px;
}

.collection-filter-btn:hover {
    background: rgba(0,0,0,0.03);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.collection-filter-btn.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.collection-filter-btn.active:hover {
    background: #333;
    border-color: #333;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* ============================================
   COLLECTION DESCRIPTION
   ============================================ */
.collection-description {
    padding: 30px 20px;
    background: #f0ede5;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.collection-description-container {
    max-width: 1400px;
    margin: 0 auto;
}

.collection-description-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-color);
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    font-weight: 400;
}

/* ============================================
   ARTWORKS SECTION
   ============================================ */
.artworks-preview,
.artworks-full {
    padding: 100px 20px;
    background: #f0ede5;
    min-height: 500px;
}

.artworks-top {
    padding-top: 120px;
}

.artworks-grid,
.artworks-grid-full {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

/* ============================================
   ARTWORKS GRID SECTION
   ============================================ */
.artworks-grid-section {
    padding: 60px 20px 80px;
    background: #f0ede5;
    min-height: 80vh;
    width: 100%;
}

.artworks-grid-container {
    max-width: 1400px;
    margin: 0 auto;
    background: #f0ede5;
}

.artworks-masonry-grid {
    position: relative;
    width: 100%;
    background: #f0ede5;
}

.artwork-grid-item {
    position: absolute;
    width: calc((100% - 60px) / 4);
    margin-bottom: 20px;
    display: block;
    transition: top 0.3s ease, left 0.3s ease;
}

.artwork-grid-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* Responsive: ajuster le nombre de colonnes */
@media (max-width: 1400px) {
    .artwork-grid-item {
        width: calc((100% - 40px) / 3);
    }
}

@media (max-width: 900px) {
    .artwork-grid-item {
        width: calc((100% - 20px) / 2);
    }
}

@media (max-width: 600px) {
    .artwork-grid-item {
        width: 100%;
    }
}


.artwork-grid-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: auto;
    -ms-interpolation-mode: bicubic;
    transition: transform 0.3s ease;
}

.artwork-grid-item:hover .artwork-grid-image {
    transform: scale(1.02);
}

.artworks-empty {
    text-align: center;
    padding: 100px 20px;
    color: #999;
    font-size: 18px;
    background: #f0ede5;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .artworks-masonry-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .artworks-masonry-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* ============================================
   ARTWORKS CAROUSEL
   ============================================ */
.artworks-carousel-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto 60px;
    padding: 0 60px;
    min-height: 450px;
}

.artworks-carousel {
    overflow: hidden;
    position: relative;
    min-height: 430px;
}

.artworks-carousel-track {
    display: flex;
    gap: 30px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.artwork-item-carousel {
    flex: 0 0 auto;
    width: 400px;
    cursor: pointer;
    position: relative;
}

.artwork-frame {
    position: relative;
    background: #000;
    padding: 10px;
    border-radius: 4px;
    transition: var(--transition);
}

.artwork-frame:hover {
    transform: scale(1.02);
}

.artwork-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    position: relative;
    overflow: hidden;
    background: #f0f0f0;
}

.artwork-image img.artwork-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: var(--transition);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
}

.artwork-item-carousel:hover .artwork-image img {
    transform: scale(1.05);
}

.artwork-image-placeholder {
    width: 100%;
    padding-top: 100%;
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: block;
    overflow: hidden;
    transition: var(--transition);
    border-radius: 10px;
}

.artwork-image img.artwork-img[style*="display: none"] {
    z-index: 0;
    opacity: 0;
}

/* Cacher le placeholder seulement si l'image est chargée et visible */
/* Le placeholder est visible par défaut (z-index: 1) */
/* L'image est au-dessus si elle existe (z-index: 2) */
.artwork-image img.artwork-img:not([style*="display: none"]) {
    z-index: 2;
}

/* Cacher le placeholder seulement si l'image est chargée et visible */
.artwork-image:has(img.artwork-img:not([style*="display: none"])) .artwork-image-placeholder {
    display: none !important;
}

.artwork-image-placeholder span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: 600;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 2px;
    z-index: 1;
    opacity: 0.8;
    transition: var(--transition);
    text-align: center;
    width: 100%;
    padding: 0 10px;
}

.artwork-item-carousel:hover .artwork-image-placeholder span {
    opacity: 0.5;
}

/* Overlay avec titre et description */
.artwork-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 30px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 10;
    text-align: center;
    overflow-y: auto;
}

.artwork-item-carousel:hover .artwork-overlay {
    opacity: 1;
    visibility: visible;
}

.artwork-overlay-title {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 700;
    color: white;
    margin-bottom: 15px;
    transform: translateY(20px);
    transition: transform 0.4s ease 0.1s;
}

.artwork-item-carousel:hover .artwork-overlay-title {
    transform: translateY(0);
}

.artwork-overlay-description {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    transform: translateY(20px);
    transition: transform 0.4s ease 0.2s;
}

.artwork-item-carousel:hover .artwork-overlay-description {
    transform: translateY(0);
}

/* Navigation du carousel */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--primary-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    transition: var(--transition);
    color: var(--primary-color);
}

.carousel-nav:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 0;
}

.carousel-next {
    right: 0;
}

.carousel-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carousel-nav:disabled:hover {
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
}

.artwork-item,
.artwork-item-full {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.artwork-item:hover,
.artwork-item-full:hover {
    transform: scale(1.05);
}

.artwork-label {
    margin-top: 15px;
    font-size: 14px;
    color: var(--text-color);
    text-align: center;
    font-weight: 500;
}

.artworks-more {
    text-align: center;
}

/* ============================================
   DESCRIPTION SECTION
   ============================================ */
.description-section {
    padding: 100px 20px;
    background: #f0ede5;
}

.description-subtitle {
    font-size: 24px;
    text-align: center;
    margin-bottom: 40px;
    color: #666;
    font-style: italic;
}

.description-title {
    font-family: 'Playfair Display', serif;
    font-size: 58px;
    font-weight: 900;
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary-color);
    letter-spacing: 10px;
}

.description-subtitle-large {
    font-size: 28px;
    text-align: center;
    margin-bottom: 60px;
    color: var(--text-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.description-text {
    max-width: 900px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.9;
}

.description-text p {
    margin-bottom: 25px;
}

.description-text strong {
    font-weight: 700;
    color: var(--primary-color);
}

/* ============================================
   INSTAGRAM SECTION
   ============================================ */
.instagram-section {
    padding: 80px 20px;
    background: #f0ede5;
}

.instagram-embed {
    max-width: 600px;
    margin: 0 auto;
}

.instagram-placeholder {
    background: #f0ede5;
    padding: 60px 40px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.instagram-placeholder p {
    font-size: 18px;
    color: var(--text-color);
    margin-bottom: 10px;
}

.instagram-placeholder p:last-child {
    font-weight: 600;
    color: var(--primary-color);
}

/* ============================================
   PAGE HERO
   ============================================ */
.page-hero {
    padding: 120px 20px 40px;
    background: #f0ede5;
    text-align: center;
    position: relative;
}

.page-title {
    font-family: 'Playfair Display', serif;
    font-size: 52px;
    font-weight: 300;
    color: var(--primary-color);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
    line-height: 1.2;
    position: relative;
    display: inline-block;
    padding-bottom: 20px;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background: var(--primary-color);
    opacity: 0.3;
}

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

/* ============================================
   PAGE CONTENT
   ============================================ */
.artiste-content,
.actualites-content,
.contact-content,
.legal-content {
    padding: 100px 20px;
    background: #f0ede5;
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
}

.legal-text {
    line-height: 1.8;
    color: var(--text-color);
}

.legal-text h2 {
    font-family: 'Inter', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 50px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.legal-text h2:first-child {
    margin-top: 0;
}

.legal-text p {
    font-size: 16px;
    margin-bottom: 20px;
    text-align: justify;
}

.legal-text ul {
    margin-left: 30px;
    margin-bottom: 20px;
}

.legal-text ul li {
    font-size: 16px;
    margin-bottom: 10px;
    line-height: 1.8;
}

.legal-text a {
    color: var(--primary-color);
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

.legal-text a:hover {
    opacity: 0.7;
}

.legal-date {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    font-style: italic;
    color: rgba(0, 0, 0, 0.6);
}

/* ============================================
   WELCOME SECTION
   ============================================ */
.welcome-section {
    min-height: 75vh;
    height: 75vh;
    background: var(--secondary-color); /* White background */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0;
    margin: 0;
}

.welcome-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 20px;
}

/* Ajustement desktop : descendre légèrement le logo / contenu */
@media (min-width: 1025px) {
    .welcome-content {
        margin-top: 40px;
    }
}

.welcome-logo {
    height: 80px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    margin-bottom: 10px;
}

.welcome-title {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    font-weight: 900;
    color: var(--primary-color);
    letter-spacing: 10px;
    text-transform: none;
    margin: 0;
    line-height: 1;
}

.welcome-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: var(--text-color);
    letter-spacing: 3px;
    text-transform: lowercase;
    margin: 0;
    margin-top: 10px;
}

/* Responsive pour la section welcome */
@media (max-width: 1024px) {
    .welcome-logo {
        height: 90px;
        max-width: 250px;
    }
    .welcome-title {
        font-size: 46px;
        letter-spacing: 9px;
    }
    .welcome-subtitle {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .welcome-section {
        min-height: 85vh;
        height: 85vh;
    }
    .welcome-logo {
        height: 75px;
        max-width: 200px;
    }
    .welcome-title {
        font-size: 34px;
        letter-spacing: 7px;
    }
    .welcome-subtitle {
        font-size: 18px;
        letter-spacing: 3px;
    }
}

@media (max-width: 480px) {
    .welcome-section {
        min-height: 80vh;
        height: 80vh;
    }
    .welcome-logo {
        height: 60px;
        max-width: 150px;
    }
    .welcome-title {
        font-size: 32px;
        letter-spacing: 5px;
    }
    .welcome-subtitle {
        font-size: 16px;
        letter-spacing: 2px;
    }
}

/* Responsive pour les pages légales */
@media (max-width: 768px) {
    .legal-content {
        padding: 60px 20px;
    }
    
    .legal-text h2 {
        font-size: 24px;
        margin-top: 40px;
        margin-bottom: 15px;
    }
    
    .legal-text p {
        font-size: 15px;
        margin-bottom: 15px;
    }
    
    .legal-text ul {
        margin-left: 20px;
    }
    
    .legal-text ul li {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .legal-content {
        padding: 50px 15px;
    }
    
    .legal-text h2 {
        font-size: 20px;
        margin-top: 30px;
    }
    
    .legal-text p {
        font-size: 14px;
    }
    
    .legal-text ul li {
        font-size: 14px;
    }
}

.artiste-hero {
    background: #f0ede5;
    position: relative;
}

.artiste-hero .page-title {
    font-size: 64px;
    letter-spacing: 2px;
    font-weight: 300;
    text-transform: uppercase;
}

.artiste-container {
    max-width: 1400px;
    margin: 0 auto;
}

.artiste-section {
    display: block;
    margin-bottom: 150px;
    padding: 0;
}

.artiste-section:last-child {
    margin-bottom: 0;
}

.artiste-section.reverse {
    grid-template-columns: 0.9fr 1.1fr;
}

.artiste-section.reverse .artiste-image-block {
    order: -1;
}

.artiste-text-block {
    display: block;
    padding-top: 0;
    overflow: visible;
    text-align: justify;
}

.artiste-text-content {
    margin-top: 0;
    text-align: justify;
}

.artiste-text-block h2,
.artiste-text-block h3 {
    font-family: 'Inter', sans-serif;
    font-size: 48px;
    margin-bottom: 40px;
    margin-top: 0;
    color: var(--primary-color);
    line-height: 0.9;
    font-weight: 900;
    letter-spacing: -3px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

.artiste-text-block h2::after,
.artiste-text-block h3::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
}

.artiste-text-block h3 {
    font-size: 38px;
    margin-bottom: 35px;
}

.artiste-text-block h4 {
    font-family: 'Inter', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.artiste-text-block p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text-color);
    font-weight: 400;
    letter-spacing: 0.3px;
    text-align: justify;
}

.artiste-text-block p:last-child {
    margin-bottom: 0;
}

.artiste-image-block {
    float: left;
    width: auto;
    overflow: visible;
    border-radius: 0;
    box-shadow: none;
    position: relative;
    background: transparent;
    margin: 0 40px 30px 0;
    min-height: 0;
    height: auto;
    shape-outside: margin-box;
}

.artiste-image {
    max-width: 400px;
    width: 400px;
    height: auto;
    display: block;
    object-fit: contain;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.artiste-section.reverse:nth-child(2) .artiste-image {
    max-width: 70%;
    width: 70%;
}

.artiste-section:nth-child(3) .artiste-image {
    max-width: 75%;
    width: 75%;
}

.artiste-image-block:hover .artiste-image {
    transform: scale(1.05);
}

.artiste-image-block:empty::after {
    content: 'Image à venir';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(0, 0, 0, 0.2);
    font-size: 13px;
    font-style: italic;
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
}

/* Responsive */
@media (max-width: 1200px) {
    .artiste-section {
        gap: 80px;
    }
    
    .artiste-text-block h2 {
        font-size: 46px;
        letter-spacing: -2px;
    }
    
    .artiste-text-block h3 {
        font-size: 37px;
        letter-spacing: -2px;
    }
    
    .artiste-text-block p {
        font-size: 17px;
        line-height: 1.75;
    }
    
    .artiste-image-block {
        height: auto;
        position: relative;
        top: 0;
    }
}

@media (max-width: 1024px) {
    .artiste-section {
        grid-template-columns: 1fr;
        gap: 60px;
        margin-bottom: 100px;
    }
    
    .artiste-section.reverse {
        grid-template-columns: 1fr;
    }
    
    .artiste-section.reverse .artiste-image-block {
        order: 0;
    }
    
    .artiste-image-block {
        height: auto;
        max-height: 400px;
        order: -1;
        position: relative;
        top: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }
    
    .artiste-image {
        max-width: 100%;
        width: 100%;
        height: auto;
        max-height: 400px;
        object-fit: contain;
    }
    
    .artiste-section:first-child .artiste-image,
    .artiste-section.reverse:nth-child(2) .artiste-image {
        max-width: 100%;
        width: 100%;
    }
    
    .artiste-text-block {
        padding-top: 0;
    }
    
    .artiste-text-block h2 {
        font-size: 48px;
        letter-spacing: -2px;
        margin-bottom: 35px;
    }
    
    .artiste-text-block h3 {
        font-size: 38px;
        letter-spacing: -1.5px;
        margin-bottom: 30px;
    }
    
    .artiste-text-block p {
        font-size: 16px;
        line-height: 1.7;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .artiste-content {
        padding: 30px 20px 60px;
    }
    
    .artiste-section {
        gap: 50px;
        margin-bottom: 80px;
    }
    
    .artiste-section:first-child {
        margin-top: 0;
    }
    
    .artiste-image-block {
        height: auto;
        max-height: 300px;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }
    
    .artiste-image {
        max-width: 100%;
        width: 100%;
        height: auto;
        max-height: 300px;
        object-fit: contain;
    }
    
    .artiste-section:first-child .artiste-image,
    .artiste-section.reverse:nth-child(2) .artiste-image {
        max-width: 100%;
        width: 100%;
    }
    
    .artiste-text-block {
        margin-top: 0;
    }
    
    .artiste-text-block h2 {
        font-size: 34px;
        letter-spacing: -1.5px;
        margin-bottom: 30px;
    }
    
    .artiste-text-block h3 {
        font-size: 27px;
        letter-spacing: -1px;
        margin-bottom: 25px;
    }
    
    .artiste-text-block p {
        font-size: 16px;
    line-height: 1.9;
        margin-bottom: 12px;
    }
}

@media (max-width: 480px) {
    .artiste-content {
        padding: 25px 15px 50px;
    }
    
    .artiste-section {
        gap: 40px;
        margin-bottom: 60px;
    }
    
    .artiste-section:first-child {
        margin-top: 0;
    }
    
    .artiste-image-block {
        height: auto;
        max-height: 250px;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }
    
    .artiste-image {
        max-width: 100%;
        width: 100%;
        height: auto;
        max-height: 250px;
        object-fit: contain;
    }
    
    .artiste-section:first-child .artiste-image,
    .artiste-section.reverse:nth-child(2) .artiste-image {
        max-width: 100%;
        width: 100%;
    }
    
    .artiste-text-block {
        margin-top: 0;
    }
    
    .artiste-text-block h2 {
        font-size: 30px;
        margin-bottom: 30px;
    }
    
    .artiste-text-block h3 {
        font-size: 26px;
    margin-bottom: 25px;
    }
    
    .artiste-text-block p {
        font-size: 15px;
        line-height: 1.8;
        margin-bottom: 12px;
    }
}

@media (max-width: 360px) {
    .artiste-content {
        padding: 20px 10px 40px;
    }
    
    .artiste-section {
        gap: 35px;
        margin-bottom: 50px;
    }
    
    .artiste-section:first-child {
        margin-top: 0;
    }
    
    .artiste-image-block {
        max-height: 200px;
        overflow: hidden;
    }
    
    .artiste-image {
        max-height: 200px;
    }
    
    .artiste-text-block {
        margin-top: 0;
    }
    
    .artiste-text-block h2 {
        font-size: 26px;
        margin-bottom: 25px;
    }
    
    .artiste-text-block h3 {
        font-size: 22px;
        margin-bottom: 20px;
    }
    
    .artiste-text-block p {
        font-size: 14px;
        line-height: 1.7;
        margin-bottom: 20px;
    }
}

.contact-form-container {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 16px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: #d4cfc4;
    color: var(--text-color);
    padding: 60px 20px 40px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.footer-links a:hover::after {
    width: 100%;
}

.footer-legal {
    font-size: 12px;
    color: #666;
    text-align: center;
}

.footer-legal p {
    margin: 8px 0;
    line-height: 1.6;
}

.footer-legal p:first-child {
    margin-top: 0;
}

.footer-legal p:last-child {
    margin-bottom: 0;
}

.footer-legal a {
    color: #666;
    text-decoration: none;
    transition: var(--transition);
}

.footer-legal a:hover {
    color: var(--primary-color);
}

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100vw;
        height: 100vh;
        background: var(--bg-color);
        flex-direction: column;
        padding: 80px 20px 40px;
        transition: left 0.3s ease;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        z-index: 9998;
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }
    
    /* Bloquer le scroll du body quand le menu est ouvert */
    body.menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
        height: 100%;
    }

    .nav-toggle {
        display: flex;
        position: relative;
        z-index: 10000;
        width: 25px;
        height: 17px;
        justify-content: center;
        align-items: center;
    }

    .nav-toggle.active span:nth-child(1) {
        position: absolute;
        top: 50%;
        left: 0;
        transform: translateY(-50%) rotate(45deg);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
        width: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        position: absolute;
        top: 50%;
        left: 0;
        transform: translateY(-50%) rotate(-45deg);
    }

    .logo-dark,
    .logo-light {
        display: none !important;
    }

    .logo-mobile {
        display: inline-block !important;
        font-size: 24px;
        letter-spacing: 2px;
    }

    .nav-search-container {
        margin-left: 10px;
    }

    .search-box.active .search-input {
        width: 200px;
    }

    .search-results {
        width: 200px;
    }

    .artworks-carousel-container {
        padding: 0 50px;
    }

    .artwork-item-carousel {
        width: 300px;
    }

    .carousel-nav {
        width: 40px;
        height: 40px;
    }

    .artwork-overlay-title {
        font-size: 24px;
    }

    .artwork-overlay-description {
        font-size: 14px;
    }

    .poems-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .section-title {
        font-size: 29px;
    }

    .description-title {
        font-size: 38px;
    }

    .page-hero {
        padding: 120px 20px 30px;
    }

    .page-title {
        font-size: 34px;
        letter-spacing: 1.5px;
    }
    
    .artiste-hero {
        min-height: auto;
        padding-bottom: 20px;
    }
    
    .artiste-hero .page-title {
        font-size: 34px;
        letter-spacing: 1.5px;
    }

    .artworks-grid,
    .artworks-grid-full {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }

    .natu-text-scroll span {
        font-size: 60px;
    }

    .nav-container {
        padding: 15px 20px;
    }

    .logo-text {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .page-hero {
        padding: 100px 20px 50px;
    }
    
    .page-title {
        font-size: 32px;
        letter-spacing: 1px;
    }
    
    .artiste-hero {
        min-height: 350px;
    }
    
    .artiste-hero .page-title {
        font-size: 32px;
        letter-spacing: 1px;
    }
    
    .poem-card {
        padding: 25px;
    }

    .poem-title {
        font-size: 24px;
    }

    .description-title {
        font-size: 29px;
    }

    .artworks-grid,
    .artworks-grid-full {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   LOADING ANIMATION
   ============================================ */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    min-width: 100vw;
    min-height: 100vh;
    background: #f0ede5;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    overflow: hidden;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Bloquer le scroll du body quand le loader est visible */
body.loading {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

.loader-content {
    display: flex;
    align-items: center;
    gap: 18px;
    animation: fadeInScale 1.2s ease-out;
}

.loader-logo {
    height: 50px;
    width: auto;
    opacity: 0;
    transform: translateY(-20px) scale(0.8);
    animation: logoFadeIn 1.4s ease-out 0.3s forwards, logoFloat 3s ease-in-out 3.5s infinite;
}

.loader-text {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: lowercase;
    color: var(--primary-color);
    opacity: 0;
    transform: translateY(20px);
    animation: textFadeIn 1.4s ease-out 0.8s forwards, textFloat 3s ease-in-out 3.5s infinite;
    position: relative;
}

.loader-text::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    animation: underlineExpand 1s ease-out 2.2s forwards;
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes logoFadeIn {
    0% {
        opacity: 0;
        transform: translateY(-20px) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-4px) scale(1);
    }
}

@keyframes textFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes textFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(4px);
    }
}

@keyframes underlineExpand {
    0% {
        width: 0;
    }
    100% {
        width: 100%;
    }
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.4;
    }
}


/* ============================================
   ANIMATIONS & EFFECTS
   ============================================ */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Fade in animation classes for scroll */
.fade-in-hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    will-change: opacity, transform;
}

.fade-in-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.slide-in-left {
    animation: slideInLeft 0.8s ease forwards;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.8s ease forwards;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============================================
   ARTWORK DETAIL PAGE
   ============================================ */
.artwork-detail-section {
    padding: 40px 0 40px 20px;
    background: #f0ede5;
    min-height: calc(100vh - 150px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.artwork-detail-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 400px auto;
    gap: 20px;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
}


.artwork-detail-image {
    width: 100%;
    background: #f0ede5;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.artwork-detail-info {
    max-width: 450px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    min-height: 100%;
    margin: 0 auto;
}

.artwork-detail-info .artwork-detail-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    flex: 1;
    width: 100%;
    min-height: 0;
}

.artwork-detail-content > .artwork-detail-collection-title {
    flex-shrink: 0;
    margin-bottom: 0;
}

.artwork-detail-content > .artwork-detail-field {
    flex-shrink: 0;
}

.artwork-detail-content > .artwork-detail-field:first-of-type {
    margin-top: auto;
}

.artwork-detail-content > .artwork-detail-field:last-of-type {
    margin-bottom: auto;
}

.artwork-detail-img {
    width: 100%;
    height: auto;
    max-height: 70vh;
    display: block;
    object-fit: contain;
}

.artwork-detail-content {
    margin-top: 0;
    margin-bottom: 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    flex: 1;
    min-height: 0;
    width: 100%;
}

.artwork-detail-title {
    font-family: 'Inter', sans-serif;
    font-size: 48px;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 50px;
    line-height: 1.1;
    letter-spacing: -2px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 20px;
}

.artwork-detail-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
}

.artwork-detail-field {
    margin-bottom: 25px;
    text-align: left;
    width: 100%;
}

.artwork-detail-field:first-child {
    margin-top: 0;
}

.artwork-detail-value {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: var(--text-color);
    line-height: 1.6;
    display: block;
}

.artwork-detail-collection-title {
    font-family: 'Inter', sans-serif;
    font-size: 32px;
    font-weight: 900;
    color: var(--primary-color);
    margin: 0;
    margin-bottom: 0;
    padding: 0;
    line-height: 1.1;
    letter-spacing: -1px;
    text-transform: uppercase;
    white-space: nowrap;
    text-align: left;
    width: 100%;
    flex-shrink: 0;
}

.artwork-detail-size {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 0;
}

.artwork-detail-inline {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: var(--text-color);
    display: block;
    line-height: 1.6;
    text-transform: uppercase;
}

.artwork-detail-technique {
    font-weight: 400;
    font-size: 14px;
}

.artwork-detail-collection {
    font-weight: 400;
    font-size: 14px;
    color: var(--text-color);
    letter-spacing: 0;
}

.artwork-detail-description {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: var(--text-color);
    line-height: 1.8;
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    text-align: justify;
}

.artwork-detail-back {
    margin-top: 0;
    padding-top: 0;
    flex-shrink: 0;
}

.artwork-detail-back-link {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.artwork-detail-back-link:hover {
    color: var(--accent-color);
}

/* Responsive */
@media (max-width: 968px) {
    .artwork-detail-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .artwork-detail-image {
        position: static;
    }
    
    .artwork-detail-title {
        font-size: 36px;
    }
}

/* ============================================
   ARTWORKS GRID PAGE
   ============================================ */
.artworks-grid-section {
    padding: 80px 20px;
    background: #f0ede5;
}

.artworks-grid-container {
    max-width: 1400px;
    margin: 0 auto;
    background: #f0ede5;
}

.artworks-masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    grid-auto-rows: 10px;
    background: #f0ede5;
}

.artwork-grid-item {
    overflow: hidden;
    border-radius: 4px;
    background: #f0ede5;
    transition: transform 0.3s ease;
}

.artwork-grid-item:hover {
    transform: translateY(-5px);
}

.artwork-grid-item a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.artwork-grid-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.artwork-grid-item:hover .artwork-grid-image {
    transform: scale(1.05);
}

.artworks-empty {
    text-align: center;
    padding: 100px 20px;
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    background: #f0ede5;
}

/* ============================================
   ACTUALITES PAGE
   ============================================ */

.actualites-content {
    padding: 40px 20px;
    max-width: 1000px;
    margin: 0 auto;
    min-height: calc(100vh - 400px); /* Assure une hauteur minimale pour que le footer soit bien positionné */
}

.actualites-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.actualite-item {
    margin-bottom: 0;
}

.actualite-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: stretch;
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.actualite-image {
    width: 100%;
    height: 100%;
    min-height: 300px;
    overflow: hidden;
    background: #f0ede5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.actualite-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Afficher l'image entière sans déformation ni coupe */
    object-position: center;
    display: block;
}

/* Images en paysage : taille de l'image augmentée */
.actualite-image.landscape img {
    transform: scale(1.2); /* Agrandir l'image de 20% */
    transform-origin: center;
}

.actualite-content {
    padding: 40px 35px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.actualite-title-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 8px;
}

.actualite-title {
    font-size: 28px;
    font-weight: 700;
    color: #000;
    margin-bottom: 0;
    margin-top: 0;
    font-family: 'Inter', sans-serif;
    line-height: 1.25;
    letter-spacing: -0.3px;
    flex: 1;
}

.actualite-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    padding: 6px 12px;
    border: 1px solid #333;
    border-radius: 4px;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.actualite-link:hover {
    background: #333;
    color: #fff;
}

.actualite-link svg {
    width: 16px;
    height: 16px;
}

.actualite-date {
    font-size: 12px;
    color: #888;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
}

.actualite-text-wrapper {
    position: relative;
}

.actualite-text {
    font-size: 16px;
    line-height: 1.75;
    color: #1a1a1a;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    margin: 0;
    transition: max-height 0.3s ease;
}

.actualite-text.text-truncated {
    max-height: 120px; /* Environ 3 lignes (16px * 1.75 * 3 ≈ 84px, on met 120px) */
    overflow: hidden;
    position: relative;
}

.actualite-text.text-truncated::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.95));
    pointer-events: none;
}

.actualite-content .actualite-text.text-truncated::after {
    background: linear-gradient(to bottom, transparent, var(--card-bg, #fff));
}

.actualite-text p {
    margin-bottom: 16px;
    margin-top: 0;
}

.actualite-text p:first-child {
    margin-top: 0;
}

.actualite-text p:last-child {
    margin-bottom: 0;
}

.read-more-btn {
    margin-top: 12px;
    padding: 8px 16px;
    background: transparent;
    border: 1px solid #333;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: inline-block;
}

.read-more-btn:hover {
    background: #333;
    color: #fff;
}

.read-more-btn:focus {
    outline: 2px solid #333;
    outline-offset: 2px;
}

.actualites-empty {
    text-align: center;
    padding: 150px 20px;
    color: #666;
    font-size: 18px;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .actualites-content {
        padding: 40px 15px;
    }
    
    .actualites-list {
        gap: 30px;
    }
    
    .actualite-wrapper {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .actualite-image {
        min-height: 250px;
        height: 250px;
    }
    
    .actualite-content {
        padding: 25px;
    }
    
    .actualite-title {
        font-size: 22px;
    }
}

/* ============================================
   CONTACT PAGE - NEW DESIGN
   ============================================ */

.contact-page {
    padding: 80px 20px;
    background: #f0ede5;
}

.contact-container {
    max-width: 1400px;
    margin: 0 auto;
}

.contact-intro {
    text-align: center;
    margin-bottom: 80px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.contact-intro-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.5px;
}

.contact-intro-text {
    font-size: 18px;
    color: #666;
    line-height: 1.8;
    font-family: 'Inter', sans-serif;
}

.contact-main {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    align-items: stretch;
}

/* Contact Info Section */
.contact-info-section {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.contact-info-block {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.contact-info-item {
    padding: 35px 0;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.contact-info-item:first-child {
    padding-top: 0;
}

.contact-info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.contact-info-item:hover {
    padding-left: 15px;
}

.contact-info-label {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    font-family: 'Inter', sans-serif;
    opacity: 0.6;
}

.contact-info-value {
    font-size: 18px;
    color: var(--text-color);
    line-height: 1.8;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
}

.contact-info-value a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.contact-info-value a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.contact-info-value a:hover {
    color: var(--primary-color);
}

.contact-info-value a:hover::after {
    width: 100%;
}

/* Contact Form Section */
.contact-form-section {
    background: #f0ede5;
    padding: 50px;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    height: fit-content;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.contact-form-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 40px;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.5px;
}

.contact-alert {
    padding: 16px 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
}

.contact-alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.contact-alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.contact-form-new {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-field-message {
    grid-column: 1 / -1;
}

.contact-form-new label {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Inter', sans-serif;
}

.contact-form-new input,
.contact-form-new textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid rgba(0,0,0,0.1);
    border-radius: 10px;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    background: var(--bg-color);
    transition: all 0.3s ease;
}

.contact-form-new input:focus,
.contact-form-new textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #f0ede5;
    box-shadow: 0 0 0 4px rgba(0,0,0,0.04);
}

.contact-form-new textarea {
    resize: vertical;
    height: 120px;
    min-height: 120px;
    line-height: 1.7;
    font-size: 16px;
}

.contact-submit-btn {
    padding: 18px 40px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    margin-top: 10px;
    width: fit-content;
}

.contact-submit-btn:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.contact-submit-btn:active {
    transform: translateY(0);
}

@media (max-width: 1200px) {
    .contact-main {
        gap: 60px;
    }
}

@media (max-width: 968px) {
    .contact-main {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .contact-intro {
        margin-bottom: 60px;
    }
    
    .contact-intro-title {
        font-size: 40px;
    }
    
    .contact-form-section {
        padding: 40px 30px;
    }
    
    .contact-form-title {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .contact-page {
        padding: 60px 15px;
    }
    
    .contact-intro {
        margin-bottom: 50px;
    }
    
    .contact-intro-title {
        font-size: 32px;
    }
    
    .contact-intro-text {
        font-size: 16px;
    }
    
    .contact-info-section {
        gap: 20px;
    }
    
    .contact-info-card {
        padding: 25px;
    }
    
    .contact-info-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 15px;
    }
    
    .contact-info-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .contact-form-section {
        padding: 30px 20px;
    }
    
    .contact-form-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-form-new {
        gap: 20px;
    }
    
    .contact-form-new textarea {
        min-height: 220px;
    }
    
    .contact-submit-btn {
        width: 100%;
        padding: 16px 32px;
    }
}

/* ============================================
   GLOBAL MESSAGES
   ============================================ */

.global-message {
    position: fixed;
    top: 100px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    animation: slideInRight 0.3s ease-out;
    max-width: 400px;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.global-message-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.global-message-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.global-message-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

@media (max-width: 768px) {
    .global-message {
        top: 80px;
        right: 15px;
        left: 15px;
        max-width: none;
    }
}

/* ============================================
   RESPONSIVE DESIGN - ADDITIONAL RULES
   (Desktop styles remain unchanged)
   ============================================ */

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
    .artwork-detail-container {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 20px;
    }
    
    .artwork-detail-image {
        max-width: 100%;
    }
    
    .artwork-detail-info {
        max-width: 100%;
    }
    
    .gallery-swiper .swiper-slide {
        width: 60vw !important;
        min-width: 400px;
    }
    
    .gallery-swiper .swiper-button-prev {
        left: 10vw;
    }
    
    .gallery-swiper .swiper-button-next {
        right: 10vw;
    }
    
    .natu-main {
        font-size: 100px;
        letter-spacing: 15px;
    }
    
    .natu-subtitle {
        font-size: 20px;
    }
    
    .collection-filters-container {
        justify-content: flex-start;
        gap: 10px;
    }
    
    .collection-filter-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .footer-links {
        gap: 20px;
    }
    
    .contact-form {
        padding: 30px;
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    .artwork-detail-section {
        padding: 20px 0 40px 0;
        min-height: auto;
    }
    
    .artwork-detail-container {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 15px;
    }
    
    .artwork-detail-image {
        width: 100%;
    }
    
    .artwork-detail-img {
        max-height: 60vh;
    }
    
    .artwork-detail-info {
        max-width: 100%;
    }
    
    .artwork-detail-content {
        margin-bottom: 40px;
    }
    
    .artwork-detail-field {
        margin-bottom: 20px;
    }
    
    .artwork-detail-size {
        font-size: 28px;
    }
    
    .artwork-detail-inline {
        font-size: 15px;
    }
    
    .artwork-detail-description {
        font-size: 15px;
        line-height: 1.7;
    }
    
    .artwork-detail-back {
        margin-top: 30px;
    }
    
    
    .natu-repeat {
        padding: 40px 0;
    }
    
    .natu-main {
        font-size: 80px;
        letter-spacing: 10px;
    }
    
    .natu-subtitle {
        font-size: 18px;
        letter-spacing: 3px;
    }
    
    .natu-text-scroll {
        gap: 30px;
    }
    
    .collection-filters {
        padding: 20px 15px;
    }
    
    .collection-filters-container {
        gap: 8px;
    }
    
    .collection-filter-btn {
        padding: 8px 14px;
        font-size: 12px;
    }
    
    .contact-content {
        padding: 60px 15px;
    }
    
    .contact-form-container {
        max-width: 100%;
    }
    
    .contact-form {
        padding: 25px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 15px;
    }
    
    .footer {
        padding: 40px 15px 30px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 30px;
    }
    
    .footer-links a {
        font-size: 13px;
    }
    
    .footer-legal {
        font-size: 11px;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .recent-artworks-section {
        padding: 60px 15px;
    }
    
    .about-section {
        padding: 60px 15px;
    }
    
    .description-section {
        padding: 60px 15px;
    }
    
    .description-subtitle {
        font-size: 20px;
        margin-bottom: 30px;
    }
    
    .description-subtitle-large {
        font-size: 24px;
        margin-bottom: 40px;
    }
    
    .description-text {
        font-size: 16px;
        line-height: 1.8;
    }
    
    .instagram-section {
        padding: 60px 15px;
    }
    
    .instagram-placeholder {
        padding: 40px 25px;
    }
    
    .instagram-placeholder p {
        font-size: 16px;
    }
    
    .actualites-content {
        padding: 60px 15px;
    }
    
    .artworks-grid-section {
        padding: 40px 15px 60px;
    }
    
    .artworks-preview,
    .artworks-full {
        padding: 60px 15px;
    }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .artwork-detail-section {
        padding: 15px 0 30px 0;
    }
    
    .artwork-detail-container {
        gap: 25px;
        padding: 0 10px;
    }
    
    .artwork-detail-img {
        max-height: 50vh;
    }
    
    .artwork-detail-size {
        font-size: 24px;
    }
    
    .artwork-detail-inline {
        font-size: 14px;
    }
    
    .artwork-detail-description {
        font-size: 14px;
        line-height: 1.6;
    }
    
    
    .natu-main {
        font-size: 60px;
        letter-spacing: 8px;
    }
    
    .natu-subtitle {
        font-size: 16px;
        letter-spacing: 2px;
    }
    
    .natu-text-scroll {
        gap: 20px;
    }
    
    .collection-filters {
        padding: 15px 10px;
    }
    
    .collection-filter-btn {
        padding: 6px 12px;
        font-size: 11px;
    }
    
    .contact-form {
        padding: 20px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 8px 10px;
        font-size: 14px;
    }
    
    .form-group textarea {
        min-height: 120px;
    }
    
    .footer {
        padding: 30px 10px 20px;
    }
    
    .footer-links {
        gap: 12px;
        margin-bottom: 25px;
    }
    
    .footer-links a {
        font-size: 12px;
    }
    
    .footer-legal {
        font-size: 10px;
    }
    
    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
    }
    
    .recent-artworks-section {
        padding: 50px 10px;
    }
    
    .about-section {
        padding: 50px 10px;
    }
    
    .description-section {
        padding: 50px 10px;
    }
    
    .description-subtitle {
        font-size: 18px;
    }
    
    .description-subtitle-large {
        font-size: 20px;
        margin-bottom: 30px;
    }
    
    .description-text {
        font-size: 15px;
    }
    
    .instagram-section {
        padding: 50px 10px;
    }
    
    .instagram-placeholder {
        padding: 30px 20px;
    }
    
    .instagram-placeholder p {
        font-size: 14px;
    }
    
    .actualites-content {
        padding: 50px 10px;
    }
    
    .artworks-grid-section {
        padding: 30px 10px 50px;
    }
    
    .artworks-preview,
    .artworks-full {
        padding: 50px 10px;
    }
}

/* ============================================
   RESPONSIVE COMPLET DU SITE (SANS CARROUSEL)
   ============================================ */

/* Navigation Responsive */
@media (max-width: 1024px) {
    .nav-container {
        padding: 18px 30px;
    }
    
    .nav-menu {
        gap: 30px;
    }
    
    .nav-link {
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 15px 20px;
    }
    
    .logo-image {
        height: 35px;
    }
    
    .logo-text {
        font-size: 22px;
        letter-spacing: 3px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 12px 15px;
    }
    
    .carousel-images-section {
        height: calc(100vh - 64px);
        margin-top: 64px;
    }
    
    .logo-image {
        height: 30px;
    }
    
    .logo-text {
        font-size: 20px;
        letter-spacing: 2px;
    }
}

/* Page Hero Responsive */
@media (max-width: 1024px) {
    .page-hero {
        padding: 120px 20px 40px;
    }
    
    .page-title {
        font-size: 56px;
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding: 100px 20px 20px;
    }
    
    .artiste-hero {
        min-height: auto;
        padding-bottom: 20px;
    }
    
    .page-title {
        font-size: 42px;
        letter-spacing: 1.5px;
    }
}

@media (max-width: 480px) {
    .page-hero {
        padding: 90px 15px 15px;
    }
    
    .artiste-hero {
        min-height: auto;
        padding-bottom: 15px;
    }
    
    .page-title {
        font-size: 32px;
        letter-spacing: 1px;
    }
}

/* Recent Artworks Section Responsive */
@media (max-width: 1024px) {
    .recent-artworks-section {
        padding: 80px 20px;
    }
    
    .recent-artworks-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .recent-artworks-text {
        padding-right: 0;
        text-align: center;
    }
    
    .recent-artworks-title {
        font-size: 52px;
        text-align: center;
    }
    
    /* Garder le soulignement identique et centré sur mobile */
    .recent-artworks-title::after {
        width: 80px;
        height: 4px;
        bottom: -15px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .recent-artworks-description {
        max-width: 100%;
        text-align: center;
    }
    
    .recent-artworks-gallery {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .recent-artworks-section {
        padding: 60px 15px;
    }
    
    .recent-artworks-container {
        gap: 40px;
    }
    
    .recent-artworks-title {
        font-size: 42px;
        margin-bottom: 30px;
        text-align: center;
    }
    
    /* Garder le soulignement identique et centré sur mobile */
    .recent-artworks-title::after {
        width: 80px;
        height: 4px;
        bottom: -15px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .recent-artworks-description {
        font-size: 16px;
        margin-bottom: 40px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .recent-artworks-section {
        padding: 50px 10px;
    }
    
    .recent-artworks-container {
        gap: 30px;
    }
    
    .recent-artworks-title {
        font-size: 26px;
        margin-bottom: 25px;
        text-align: center;
    }
    
    /* Garder le soulignement identique et centré sur mobile */
    .recent-artworks-title::after {
        width: 80px;
        height: 4px;
        bottom: -15px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .recent-artworks-subtitle {
        font-size: 11px;
        margin-bottom: 12px;
        text-align: center;
    }
    
    .recent-artworks-description {
        font-size: 15px;
        margin-bottom: 30px;
        text-align: center;
    }
}

/* About Section Responsive */
@media (max-width: 1024px) {
    .about-section {
        padding: 80px 20px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    
    .about-image-wrapper {
        margin: 0 auto;
        width: 300px;
        height: 300px;
    }
    
    .about-text-wrapper {
        text-align: center;
        align-items: center;
    }
    
    .section-title {
        text-align: center;
        font-size: 42px;
    }
    
    /* Garder le soulignement identique même quand centré */
    .section-title::after {
        width: 80px;
        height: 4px;
        bottom: -15px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .about-text {
        font-size: 17px;
        max-width: 100%;
    }
    
    .about-link {
        align-self: center;
    }
}

@media (max-width: 768px) {
    .about-section {
        padding: 60px 15px;
    }
    
    .about-content {
        gap: 40px;
    }
    
    .about-image-wrapper {
        width: 250px;
        height: 250px;
    }
    
    .section-title {
        font-size: 42px;
    }
    
    /* Garder le soulignement identique */
    .section-title::after {
        width: 80px;
        height: 4px;
        bottom: -15px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .about-text {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .about-section {
        padding: 50px 10px;
    }
    
    .about-content {
        gap: 30px;
    }
    
    .about-image-wrapper {
        width: 200px;
        height: 200px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    /* Garder le soulignement identique */
    .section-title::after {
        width: 80px;
        height: 4px;
        bottom: -15px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .about-text {
        font-size: 15px;
    }
}

/* Description Section Responsive */
@media (max-width: 1024px) {
    .description-section {
        padding: 80px 20px;
    }
    
    .description-title {
        font-size: 60px;
    }
    
    .description-subtitle-large {
        font-size: 26px;
    }
    
    .description-text {
        font-size: 17px;
    }
}

@media (max-width: 768px) {
    .description-section {
        padding: 60px 15px;
    }
    
    .description-title {
        font-size: 48px;
    }
    
    .description-subtitle {
        font-size: 20px;
        margin-bottom: 30px;
    }
    
    .description-subtitle-large {
        font-size: 24px;
        margin-bottom: 40px;
    }
    
    .description-text {
        font-size: 16px;
        line-height: 1.8;
    }
}

@media (max-width: 480px) {
    .description-section {
        padding: 50px 10px;
    }
    
    .description-title {
        font-size: 36px;
    }
    
    .description-subtitle {
        font-size: 18px;
    }
    
    .description-subtitle-large {
        font-size: 20px;
        margin-bottom: 30px;
    }
    
    .description-text {
        font-size: 15px;
    }
}

/* Artworks Grid Responsive */
@media (max-width: 1024px) {
    .artworks-grid-section {
        padding: 70px 20px;
    }
    
    .artworks-grid-container {
        gap: 30px;
    }
    
    .artworks-grid,
    .artworks-grid-full {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .artworks-grid-section {
        padding: 50px 15px;
    }
    
    .artworks-grid-container {
        gap: 25px;
    }
    
    .artworks-grid,
    .artworks-grid-full {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .artworks-grid-section {
        padding: 40px 10px;
    }
    
    .artworks-grid-container {
        gap: 20px;
    }
    
    .artworks-grid,
    .artworks-grid-full {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
}

/* Actualites Responsive */
@media (max-width: 1024px) {
    .actualites-content {
        padding: 80px 20px;
    }
    
    .actualite-wrapper {
        grid-template-columns: 1fr;
    }
    
    .actualite-image {
        min-height: 250px;
    }
    
    .actualite-content {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .actualites-content {
        padding: 60px 15px;
    }
    
    .actualites-list {
        gap: 25px;
    }
    
    .actualite-wrapper {
        grid-template-columns: 1fr;
    }
    
    .actualite-image {
        min-height: 200px;
    }
    
    .actualite-content {
        padding: 25px 20px;
    }
    
    .actualite-title {
        font-size: 24px;
    }
    
    .actualite-date {
        font-size: 12px;
    }
    
    .actualite-text {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .actualites-content {
        padding: 50px 10px;
    }
    
    .actualites-list {
        gap: 20px;
    }
    
    .actualite-image {
        min-height: 180px;
    }
    
    .actualite-content {
        padding: 20px 15px;
    }
    
    .actualite-title {
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .actualite-date {
        font-size: 11px;
        margin-bottom: 15px;
    }
    
    .actualite-text {
        font-size: 14px;
        line-height: 1.6;
    }
}

/* Footer Responsive */
@media (max-width: 1024px) {
    .footer {
        padding: 50px 20px 35px;
    }
    
    .footer-links {
        gap: 25px;
    }
    
    /* Désactiver les animations du footer en mode tablette */
    .footer-links a {
        transition: none !important;
    }
    
    .footer-links a::after {
        display: none !important;
    }
    
    .footer-legal a {
        transition: none !important;
    }
    
    .footer-legal a:hover {
        color: #666 !important;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 40px 15px 30px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 30px;
    }
    
    .footer-links a {
        font-size: 13px;
        transition: none !important;
    }
    
    .footer-links a::after {
        display: none !important;
    }
    
    .footer-legal {
        font-size: 11px;
    }
    
    .footer-legal a {
        transition: none !important;
    }
    
    .footer-legal a:hover {
        color: #666 !important;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 30px 10px 20px;
    }
    
    .footer-links {
        gap: 12px;
        margin-bottom: 25px;
    }
    
    .footer-links a {
        font-size: 12px;
        transition: none !important;
    }
    
    .footer-links a::after {
        display: none !important;
    }
    
    .footer-legal {
        font-size: 10px;
    }
    
    .footer-legal a {
        transition: none !important;
    }
    
    .footer-legal a:hover {
        color: #666 !important;
    }
}

/* Back to Top Responsive */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
    }
}

/* Natu Repeating Text Responsive */
@media (max-width: 1024px) {
    .natu-repeat {
        padding: 50px 0;
    }
    
    .natu-main {
        font-size: 100px;
        letter-spacing: 15px;
    }
    
    .natu-subtitle {
        font-size: 20px;
    }
    
    .natu-text-scroll {
        gap: 35px;
    }
}

@media (max-width: 768px) {
    .natu-repeat {
        padding: 40px 0;
        margin-top: -40vh !important;
    }
    
    .natu-main {
        font-size: 80px;
        letter-spacing: 10px;
    }
    
    .natu-subtitle {
        font-size: 18px;
        letter-spacing: 3px;
    }
    
    .natu-text-scroll {
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .natu-repeat {
        padding: 30px 0;
        margin-top: -35vh !important;
    }
    
    .natu-main {
        font-size: 60px;
        letter-spacing: 8px;
    }
    
    .natu-subtitle {
        font-size: 16px;
        letter-spacing: 2px;
    }
    
    .natu-text-scroll {
        gap: 20px;
    }
}

/* Collection Filters Responsive */
@media (max-width: 1024px) {
    .collection-filters {
        padding: 25px 20px;
    }
    
    .collection-filters-container {
        justify-content: center;
        gap: 10px;
    }
    
    .collection-filter-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .collection-filters {
        padding: 20px 15px;
    }
    
    .collection-filters-container {
        justify-content: center;
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .collection-filter-btn {
        padding: 8px 14px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .collection-filters {
        padding: 15px 10px;
    }
    
    .collection-filters-container {
        justify-content: center;
        gap: 6px;
    }
    
    .collection-filter-btn {
        padding: 6px 12px;
        font-size: 11px;
    }
}

/* ============================================
   CARROUSEL RESPONSIVE - IMAGES ADJACENTES TOUJOURS VISIBLES
   (Desktop reste inchangé, on ajuste juste les tailles pour que les images restent visibles)
   ============================================ */

/* Tablet (max-width: 1024px) - Réduire la taille pour que les images adjacentes restent visibles */
@media (max-width: 1024px) {
    .gallery-swiper .swiper-slide {
        width: 60vw !important;
        max-width: 550px;
        min-width: 400px;
    }
    
    .gallery-swiper .swiper-button-prev {
        left: 10vw;
    }
    
    .gallery-swiper .swiper-button-next {
        right: 10vw;
    }
}

/* ============================================
   CARROUSEL RESPONSIVE
   Ordinateurs et tablettes : affichage similaire
   Téléphones : affichage indépendant
   ============================================ */

/* Large Desktop (min-width: 1400px) - Ajuster pour les très grands écrans */
@media (min-width: 1400px) {
    .gallery-swiper .swiper-slide {
        width: 64vw !important;
        max-width: 720px;
        min-width: 480px;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .gallery-swiper .swiper-slide:not(.swiper-slide-active) {
        visibility: visible !important;
        opacity: 1 !important;
        display: flex !important;
    }
    
    .gallery-swiper .swiper-slide-prev,
    .gallery-swiper .swiper-slide-next {
        visibility: visible !important;
        opacity: 1 !important;
        display: flex !important;
    }
    
    .gallery-swiper .swiper-button-prev {
        left: 25vw;
    }
    
    .gallery-swiper .swiper-button-next {
        right: 25vw;
    }
}

/* Medium Desktop (min-width: 1200px) - Ajuster pour les écrans moyens */
@media (min-width: 1200px) and (max-width: 1399px) {
    .gallery-swiper .swiper-slide {
        width: 66vw !important;
        max-width: 660px;
        min-width: 460px;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .gallery-swiper .swiper-slide:not(.swiper-slide-active) {
        visibility: visible !important;
        opacity: 1 !important;
        display: flex !important;
    }
    
    .gallery-swiper .swiper-slide-prev,
    .gallery-swiper .swiper-slide-next {
        visibility: visible !important;
        opacity: 1 !important;
        display: flex !important;
    }
    
    .gallery-swiper .swiper-button-prev {
        left: 22vw;
    }
    
    .gallery-swiper .swiper-button-next {
        right: 22vw;
    }
}

/* Standard Desktop (min-width: 1025px) - Ajuster pour les écrans standards */
@media (min-width: 1025px) and (max-width: 1199px) {
    .gallery-swiper .swiper-slide {
        width: 65vw !important;
        max-width: 620px;
        min-width: 420px;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .gallery-swiper .swiper-slide:not(.swiper-slide-active) {
        visibility: visible !important;
        opacity: 1 !important;
        display: flex !important;
    }
    
    .gallery-swiper .swiper-slide-prev,
    .gallery-swiper .swiper-slide-next {
        visibility: visible !important;
        opacity: 1 !important;
        display: flex !important;
    }
    
    .gallery-swiper .swiper-button-prev {
        left: 20vw;
    }
    
    .gallery-swiper .swiper-button-next {
        right: 20vw;
    }
}

/* Tablette (max-width: 1024px) - Ajuster pour voir les images adjacentes en paysage */
@media (max-width: 1024px) {
    .gallery-swiper .swiper-slide {
        width: 60vw !important;
        max-width: 550px;
        min-width: 400px;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .gallery-swiper .swiper-slide:not(.swiper-slide-active) {
        visibility: visible !important;
        opacity: 1 !important;
        display: flex !important;
    }
    
    .gallery-swiper .swiper-slide-prev,
    .gallery-swiper .swiper-slide-next {
        visibility: visible !important;
        opacity: 1 !important;
        display: flex !important;
    }
    
    .gallery-swiper .swiper-button-prev {
        left: 20vw;
    }
    
    .gallery-swiper .swiper-button-next {
        right: 20vw;
    }
}

/* Masquer les flèches sur tablettes en format portrait */
@media (max-width: 1024px) and (orientation: portrait) {
    .gallery-swiper .swiper-button-prev,
    .gallery-swiper .swiper-button-next {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        width: 0 !important;
        height: 0 !important;
    }
}

/* Masquer aussi sur toutes les tablettes (sans condition d'orientation pour plus de sécurité) */
@media (min-width: 769px) and (max-width: 1024px) {
    .gallery-swiper .swiper-button-prev,
    .gallery-swiper .swiper-button-next {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        width: 0 !important;
        height: 0 !important;
    }
}

/* Mobile (max-width: 768px) - Image centrale visible avec deux images adjacentes qui dépassent */
@media (max-width: 768px) {
    body, html {
        overflow-x: hidden !important;
        position: relative;
    }
    
    .main-content {
        overflow-x: hidden !important;
    }
    
    .carousel-images-section {
        height: calc(100vh - 70px) !important;
        margin-top: -40vh !important;
        transform: translateY(-40vh) !important;
        overflow: visible !important;
        overflow-x: visible !important;
        padding: 0 !important;
        position: relative;
    }
    
    .gallery-wrapper {
        overflow: visible !important;
        overflow-x: visible !important;
        width: 100% !important;
        max-width: 100% !important;
        position: relative;
    }
    
    .gallery-swiper {
        padding: 0 !important;
        overflow: visible !important;
        overflow-x: visible !important;
        overflow-y: visible !important;
        width: 100% !important;
        max-width: 100% !important;
        position: relative;
    }
    
    .gallery-swiper .swiper-wrapper {
        overflow: visible !important;
        overflow-x: visible !important;
        overflow-y: visible !important;
    }
    
    .gallery-swiper .swiper-slide {
        width: 55vw !important;
        max-width: 420px;
        min-width: 280px;
        visibility: visible !important;
        opacity: 1 !important;
        display: flex !important;
    }
    
    .gallery-swiper .swiper-slide:not(.swiper-slide-active) {
        visibility: visible !important;
        opacity: 1 !important;
        display: flex !important;
        transform: scale(0.85) !important;
    }
    
    .gallery-swiper .swiper-slide-prev,
    .gallery-swiper .swiper-slide-next {
        visibility: visible !important;
        opacity: 1 !important;
        display: flex !important;
    }
    
    /* Masquer les flèches sur mobile - l'utilisateur peut faire défiler avec le doigt */
    .gallery-swiper .swiper-button-prev,
    .gallery-swiper .swiper-button-next {
        display: none !important;
    }
}

/* Small Mobile (max-width: 600px) - Image centrale visible avec deux images adjacentes qui dépassent */
@media (max-width: 600px) {
    .gallery-swiper .swiper-slide {
        width: 50vw !important;
        max-width: 380px;
        min-width: 260px;
        visibility: visible !important;
        opacity: 1 !important;
        display: flex !important;
    }
    
    .gallery-swiper .swiper-slide:not(.swiper-slide-active) {
        visibility: visible !important;
        opacity: 1 !important;
        display: flex !important;
        transform: scale(0.85) !important;
    }
    
    .gallery-swiper .swiper-slide-prev,
    .gallery-swiper .swiper-slide-next {
        visibility: visible !important;
        opacity: 1 !important;
        display: flex !important;
    }
}

/* Very Small Mobile (max-width: 480px) - Image centrale visible avec deux images adjacentes qui dépassent */
@media (max-width: 480px) {
    body, html {
        overflow-x: hidden !important;
    }
    
    .main-content {
        overflow-x: hidden !important;
    }
    
    .carousel-images-section {
        height: calc(100vh - 64px);
        margin-top: -35vh !important;
        transform: translateY(-35vh) !important;
        overflow: visible !important;
        overflow-x: visible !important;
        padding: 0 !important;
    }
    
    .gallery-wrapper {
        overflow: visible !important;
        overflow-x: visible !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .gallery-swiper {
        padding: 0 !important;
        overflow: visible !important;
        overflow-x: visible !important;
        overflow-y: visible !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .gallery-swiper .swiper-wrapper {
        overflow: visible !important;
        overflow-x: visible !important;
        overflow-y: visible !important;
    }
    
    .gallery-swiper .swiper-slide {
        width: 48vw !important;
        max-width: 360px;
        min-width: 240px;
        visibility: visible !important;
        opacity: 1 !important;
        display: flex !important;
    }
    
    .gallery-swiper .swiper-slide:not(.swiper-slide-active) {
        visibility: visible !important;
        opacity: 1 !important;
        display: flex !important;
        transform: scale(0.85) !important;
    }
    
    .gallery-swiper .swiper-slide-prev,
    .gallery-swiper .swiper-slide-next {
        visibility: visible !important;
        opacity: 1 !important;
        display: flex !important;
    }
}

/* Extra Small Mobile (max-width: 360px) - Image centrale visible avec deux images adjacentes qui dépassent */
@media (max-width: 360px) {
    .gallery-swiper .swiper-slide {
        width: 45vw !important;
        max-width: 320px;
        min-width: 220px;
        visibility: visible !important;
        opacity: 1 !important;
        display: flex !important;
    }
    
    .gallery-swiper .swiper-slide:not(.swiper-slide-active) {
        visibility: visible !important;
        opacity: 1 !important;
        display: flex !important;
        transform: scale(0.85) !important;
    }
    
    .gallery-swiper .swiper-slide-prev,
    .gallery-swiper .swiper-slide-next {
        visibility: visible !important;
        opacity: 1 !important;
        display: flex !important;
    }
}

/* ============================================
   CENTRAGE VERTICAL DU CARROUSEL
   Le carrousel doit être centré entre la navbar et la fin de l'écran
   ============================================ */

/* Tablet (max-width: 1024px) - Hauteur navbar: ~76px */
@media (max-width: 1024px) {
    .carousel-images-section {
        height: calc(100vh - 76px) !important;
        margin-top: 76px !important;
    }
}

/* Extra Small Mobile (max-width: 360px) - Hauteur navbar: ~64px */
@media (max-width: 360px) {
    .carousel-images-section {
        height: calc(100vh - 64px) !important;
        margin-top: -35vh !important;
        transform: translateY(-35vh) !important;
    }
}





