/* ============================================
   SCOOP DÉCO - Design System
   Minimaliste, Dark, Haut de gamme
   ============================================ */

:root {
    --black: #0a0a0a;
    --anthracite: #141414;
    --gray-dark: #2a2a2a;
    --gray-mid: #3a3a3a;
    --gray: #888888;
    --gray-light: #b0b0b0;
    --white: #f5f5f5;
    --white-pure: #ffffff;
    --cream: #ffffff;

    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;
    --space-xxl: 12rem;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    font-size: 16px;
    font-weight: 300;
    line-height: 1.7;
    color: var(--gray-light);
    background-color: var(--black);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3 {
    font-weight: 400;
    color: var(--white);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(3rem, 8vw, 6rem);
}

h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h3 {
    font-size: 1.25rem;
    font-weight: 500;
}

p {
    max-width: 50ch;
}

.lead {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--white);
}

strong {
    font-weight: 500;
    color: var(--white);
}

a {
    color: var(--gray-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--white);
}

/* Layout */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.grid-two {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

@media (min-width: 768px) {
    .grid-two {
        grid-template-columns: 1fr 1.5fr;
        gap: var(--space-xl);
    }
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: var(--space-md);
    background: linear-gradient(to bottom, var(--black), transparent);
}

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

.logo {
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    color: var(--white);
    text-transform: uppercase;
}

.logo-img {
    height: 28px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: var(--space-md);
}

.nav-links a {
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xxl) var(--space-md);
    background: var(--black);
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 50%, var(--anthracite) 0%, var(--black) 70%);
    opacity: 0.5;
}

.hero-content {
    position: relative;
    text-align: center;
    max-width: 900px;
}

.hero h1 {
    margin-bottom: var(--space-md);
}

.highlight {
    color: var(--gray);
}

.hero-overtitle {
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gray);
    margin-bottom: var(--space-sm);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto var(--space-lg);
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    border: 1px solid var(--gray);
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
}

/* Animated Divider */
.animated-divider {
    position: relative;
    width: 100%;
    height: 120px;
    margin-top: -60px;
    overflow: hidden;
    z-index: 10;
}

.animated-divider svg {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100%;
}

.wave {
    fill: var(--anthracite);
}

.wave-1 {
    opacity: 0.15;
    animation: wave 8s ease-in-out infinite;
}

.wave-2 {
    opacity: 0.3;
    animation: wave 6s ease-in-out infinite reverse;
}

.wave-3 {
    opacity: 0.6;
    animation: wave 4s ease-in-out infinite;
}

@keyframes wave {
    0%, 100% {
        transform: translateX(0) translateY(0);
    }
    25% {
        transform: translateX(-20px) translateY(5px);
    }
    50% {
        transform: translateX(0) translateY(10px);
    }
    75% {
        transform: translateX(20px) translateY(5px);
    }
}

.divider-glow {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255,255,255,0.3) 20%,
        rgba(255,255,255,0.8) 50%,
        rgba(255,255,255,0.3) 80%,
        transparent 100%
    );
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.5;
        width: 60%;
    }
    50% {
        opacity: 1;
        width: 80%;
    }
}

/* Sections */
.section {
    padding: var(--space-xxl) 0;
    border-top: 1px solid var(--gray-dark);
}

/* Section claire - contraste */
.section.light {
    background: var(--cream);
    border-top: none;
}

.section.light h2,
.section.light h3,
.section.light .lead,
.section.light strong {
    color: var(--anthracite);
}

.section.light p,
.section.light .section-subtitle {
    color: var(--gray-dark);
}

.section.light .value-title {
    color: var(--anthracite);
}

.section.light .value-desc {
    color: var(--gray);
}

.section.light .service {
    border-bottom-color: rgba(0,0,0,0.1);
}

.section.light .contact-label {
    color: var(--gray);
}

.section.light .contact-item address,
.section.light .contact-item p,
.section.light .contact-item a {
    color: var(--anthracite);
}

.section.light .gallery-item {
    background: var(--white);
}

.section.light .gallery-loading {
    color: var(--gray);
}

/* Section gris moyen */
.section.mid {
    background: var(--gray-dark);
}

.section-header h2 {
    margin-bottom: var(--space-sm);
}

.section-header.centered {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.section-subtitle {
    color: var(--gray);
}

.section-content p {
    margin-bottom: var(--space-md);
}

/* Collection Features */
.collection-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

@media (min-width: 768px) {
    .collection-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

.collection-feature {
    padding: var(--space-lg);
    background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
}

.collection-feature h3 {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    margin-bottom: var(--space-sm);
    color: var(--white);
}

.collection-feature p {
    color: var(--gray-light);
    max-width: none;
}

/* Vision - Values - 3D Cards */
.values {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-lg);
    margin-top: var(--space-lg);
    perspective: 1000px;
}

.value {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    padding: var(--space-md);
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    transform-style: preserve-3d;
}

.value:hover {
    transform: translateY(-4px) rotateX(2deg);
    background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.03) 100%);
    border-color: rgba(255,255,255,0.2);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.value-title {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--white);
}

.value-desc {
    font-size: 0.875rem;
    color: var(--gray);
}

/* Gallery - Mobile First - 2026 Premium 3D */
.gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    perspective: 1000px;
}

@media (min-width: 640px) {
    .gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
}

@media (min-width: 1024px) {
    .gallery {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }
}

.gallery-item {
    aspect-ratio: 1;
    overflow: hidden;
    background: linear-gradient(135deg, var(--gray-dark) 0%, var(--anthracite) 100%);
    cursor: pointer;
    position: relative;
    border-radius: 8px;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1),
                box-shadow 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.gallery-item:hover {
    transform: translateY(-8px) rotateX(2deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.gallery-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        transparent 0%,
        transparent 40%,
        rgba(0, 0, 0, 0.6) 100%
    );
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 2;
    pointer-events: none;
    border-radius: 8px;
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: none;
    transition: border-color 0.4s ease;
}

.gallery-item:hover::after {
    border-color: rgba(255, 255, 255, 0.2);
}

.gallery-item-inner {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s cubic-bezier(0.23, 1, 0.32, 1),
                filter 0.6s ease,
                opacity 0.5s ease;
}

.gallery-img.lazy {
    filter: blur(30px) saturate(0) brightness(0.8);
    transform: scale(1.3);
    opacity: 0;
}

.gallery-img.loaded {
    filter: blur(0) saturate(1) brightness(1);
    transform: scale(1);
    opacity: 1;
    animation: imageReveal 1s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes imageReveal {
    0% {
        opacity: 0;
        transform: scale(1.2);
        filter: blur(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
}

.gallery-item:hover .gallery-img {
    transform: scale(1.15);
    filter: brightness(1.1) saturate(1.2);
}

/* Gallery Loader */
.gallery-loader {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-lg);
    color: var(--gray);
}

.loader-spinner {
    width: 32px;
    height: 32px;
    border: 2px solid var(--gray-dark);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Gallery Message */
.gallery-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--space-xl);
}

.gallery-message h3 {
    margin-bottom: var(--space-sm);
    color: var(--anthracite);
}

.gallery-message p {
    color: var(--gray);
    max-width: none;
}

/* Lightbox - Premium 2026 */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-content img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    font-size: 2rem;
    color: var(--white);
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
    z-index: 10;
    transition: opacity 0.2s ease;
}

.lightbox-close:hover {
    opacity: 0.7;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    z-index: 10;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
    left: var(--space-md);
}

.lightbox-next {
    right: var(--space-md);
}

.lightbox-prev svg,
.lightbox-next svg {
    width: 24px;
    height: 24px;
}

.lightbox-counter {
    position: absolute;
    bottom: var(--space-md);
    left: 50%;
    transform: translateX(-50%);
    color: var(--gray);
    font-size: 0.875rem;
    letter-spacing: 0.1em;
}

/* Lightbox Mobile */
@media (max-width: 640px) {
    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        background: rgba(255, 255, 255, 0.15);
    }

    .lightbox-prev {
        left: var(--space-sm);
    }

    .lightbox-next {
        right: var(--space-sm);
    }

    .lightbox-content img {
        max-width: 100%;
        max-height: 80vh;
    }
}

/* Services */
.service {
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--gray-dark);
}

.service:last-child {
    border-bottom: none;
}

.service h3 {
    margin-bottom: var(--space-sm);
}

/* Contact */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.contact-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gray);
}

.contact-item address,
.contact-item p {
    font-style: normal;
    color: var(--white);
}

.contact-item a {
    color: var(--white);
}

.contact-item a:hover {
    text-decoration: underline;
}

/* WhatsApp Button - 3D Premium */
.whatsapp-cta {
    grid-column: 1 / -1;
    margin-top: var(--space-md);
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white !important;
    border-radius: 50px;
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none !important;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3),
                0 0 0 0 rgba(37, 211, 102, 0.4);
    transform-style: preserve-3d;
    perspective: 500px;
}

.whatsapp-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4),
                0 0 0 4px rgba(37, 211, 102, 0.1);
}

.whatsapp-btn:active {
    transform: translateY(-2px) scale(0.98);
}

.whatsapp-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.whatsapp-btn:hover .whatsapp-icon {
    transform: rotate(-10deg) scale(1.1);
}

/* Floating WhatsApp Button (fixed) */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-4px);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: white;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4),
                    0 0 0 0 rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4),
                    0 0 0 15px rgba(37, 211, 102, 0);
    }
}

/* Footer */
.footer {
    padding: var(--space-lg) 0;
    border-top: 1px solid var(--gray-dark);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.footer-logo {
    height: 24px;
    width: auto;
    opacity: 0.7;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--gray);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-copy {
    font-size: 0.875rem;
    color: var(--gray);
}

/* Legal Page */
.legal-page {
    padding: 120px 0 var(--space-xxl);
    background: var(--anthracite);
    min-height: 100vh;
}

.legal-page h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: var(--space-xl);
}

.legal-section {
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--gray-dark);
}

.legal-section:last-of-type {
    border-bottom: none;
}

.legal-section h2 {
    font-size: 1.25rem;
    margin-bottom: var(--space-md);
    color: var(--white);
}

.legal-section p {
    margin-bottom: var(--space-sm);
    color: var(--gray-light);
}

.legal-section a {
    color: var(--white);
}

.legal-back {
    margin-top: var(--space-xl);
}

.nav-solid {
    background: var(--anthracite);
}

/* Mobile Nav */
@media (max-width: 640px) {
    .nav-links {
        display: none;
    }

    .hero {
        padding-top: var(--space-xl);
    }

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

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