/* ================================
   Polices hébergées avec le site (licence SIL OFL, voir le dossier fonts/)
   ================================ */
@font-face {
    font-family: 'Cormorant Garamond';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('fonts/cormorant-garamond-latin-300-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Cormorant Garamond';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/cormorant-garamond-latin-400-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Cormorant Garamond';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('fonts/cormorant-garamond-latin-500-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Cormorant Garamond';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('fonts/cormorant-garamond-latin-600-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Cormorant Garamond';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/cormorant-garamond-latin-700-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Cormorant Garamond';
    font-style: italic;
    font-weight: 300;
    font-display: swap;
    src: url('fonts/cormorant-garamond-latin-300-italic.woff2') format('woff2');
}

@font-face {
    font-family: 'Cormorant Garamond';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/cormorant-garamond-latin-400-italic.woff2') format('woff2');
}

@font-face {
    font-family: 'Cormorant Garamond';
    font-style: italic;
    font-weight: 500;
    font-display: swap;
    src: url('fonts/cormorant-garamond-latin-500-italic.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('fonts/inter-latin-300-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/inter-latin-400-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('fonts/inter-latin-500-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('fonts/inter-latin-600-normal.woff2') format('woff2');
}

/* ================================
   CSS Variables & Reset
   ================================ */
:root {
    /* Colors - Base */
    --color-primary: #1a1a2e;
    --color-secondary: #16213e;
    --color-accent: #c9a962;
    --color-accent-light: #e0c98a;
    --color-accent-dark: #a68b4a;
    --color-text: #2d2d2d;
    --color-text-light: #6b6b6b;
    --color-text-muted: #999999;
    --color-background: #fafafa;
    --color-surface: #ffffff;
    --color-border: #e8e8e8;
    --color-border-light: #f0f0f0;

    /* Colors - Dark variants */
    --color-dark: #0a0a0a;
    --color-dark-alt: #111111;

    /* Colors - Headers alternatifs */
    --color-ink-blue: #1a3a5c;
    --color-ink-gold: #8b7355;

    /* Typography */
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 40px rgba(201, 169, 98, 0.3);

    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    /* Container */
    --container-max: 1200px;
    --container-padding: 1.5rem;

    /* Z-index hierarchy (documentée) */
    --z-header-bg: 1;
    --z-header-overlay: 2;
    --z-header-particles: 3;
    --z-header-content: 10;
    --z-header-scroll: 10;
    --z-divider: 50;
    --z-navbar: 100;
    --z-back-btn: 200;
    --z-cursor: 9999;
    --z-loader: 10001;

    /* Durées d'animation standardisées */
    --duration-fast: 0.3s;
    --duration-medium: 0.5s;
    --duration-slow: 0.8s;
    --duration-very-slow: 1.5s;
    --duration-ambient: 4s;

    /* Easing curves */
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
    --ease-in-out-cubic: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-background);
    overflow-x: hidden;
}

body.loading {
    overflow: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul, ol {
    list-style: none;
}

/* ================================
   Custom Cursor
   ================================ */
.cursor {
    width: 8px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease, width 0.2s ease, height 0.2s ease;
    mix-blend-mode: difference;
}

.cursor-follower {
    width: 35px;
    height: 35px;
    border: 1px solid var(--color-accent);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease, width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
}

.cursor.hover {
    transform: translate(-50%, -50%) scale(3);
    background: var(--color-accent-light);
}

.cursor-follower.hover {
    width: 50px;
    height: 50px;
    border-color: var(--color-accent-light);
}

@media (max-width: 1024px) {
    .cursor, .cursor-follower {
        display: none;
    }
}

/* ================================
   Loading Screen
   ================================ */
.loader {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a962' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.loader-logo {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 600;
    color: var(--color-surface);
    margin-bottom: var(--space-xl);
    animation: pulse 2s ease-in-out infinite;
}

.loader-bar {
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin: 0 auto var(--space-md);
}

.loader-progress {
    height: 100%;
    background: var(--color-accent);
    border-radius: var(--radius-full);
    animation: loading 1.5s ease-in-out forwards;
}

.loader-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.1em;
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ================================
   Particles Background
   ================================ */
.particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--color-accent);
    border-radius: 50%;
    opacity: 0.3;
    animation: float-particle 15s infinite ease-in-out;
}

@keyframes float-particle {
    0%, 100% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

/* ================================
   Typography
   ================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.2;
    color: var(--color-primary);
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p {
    margin-bottom: 1rem;
}

p:last-child {
    margin-bottom: 0;
}

/* ================================
   Layout
   ================================ */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

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

/* ================================
   Navigation
   ================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: background var(--transition-base), box-shadow var(--transition-base), padding var(--transition-base);
}

/* ======== STYLE GLASSMORPHISM - En-tête au scroll ======== */
.navbar.scrolled {
    background: rgba(26, 26, 46, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(201, 169, 98, 0.2);
    box-shadow:
        0 4px 30px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--space-lg) var(--container-padding);
    transition: padding var(--transition-base);
}

.navbar.scrolled .nav-container {
    padding: var(--space-md) var(--container-padding);
}

.nav-logo {
    z-index: 1001;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--color-primary);
    letter-spacing: -0.02em;
    transition: color var(--transition-fast);
    position: relative;
}

.navbar:not(.scrolled) .logo-text {
    color: var(--color-surface);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-light);
    transition: color var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.navbar:not(.scrolled) .nav-link {
    color: rgba(255, 255, 255, 0.85);
}

/* Glassmorphism: liens restent clairs au scroll */
.navbar.scrolled .nav-link {
    color: rgba(255, 255, 255, 0.8);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-base);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

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

.navbar:not(.scrolled) .nav-link:hover {
    color: var(--color-surface);
}

/* Glassmorphism: hover reste clair */
.navbar.scrolled .nav-link:hover {
    color: var(--color-surface);
}

.nav-link-cta {
    padding: var(--space-sm) var(--space-lg);
    background: var(--color-accent);
    color: var(--color-surface) !important;
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    overflow: visible;
}

.nav-link-cta::after {
    display: none;
}

.nav-link-cta:hover {
    background: var(--color-accent-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* Mobile Navigation */
.nav-toggle {
    display: none;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1001;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    width: 100%;
    height: 2px;
    background: var(--color-primary);
    position: absolute;
    transition: all var(--transition-base);
}

.navbar:not(.scrolled) .hamburger,
.navbar:not(.scrolled) .hamburger::before,
.navbar:not(.scrolled) .hamburger::after {
    background: var(--color-surface);
}

/* Glassmorphism: hamburger reste clair au scroll */
.navbar.scrolled .hamburger,
.navbar.scrolled .hamburger::before,
.navbar.scrolled .hamburger::after {
    background: var(--color-surface);
}

.hamburger {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger::before {
    content: '';
    top: -8px;
}

.hamburger::after {
    content: '';
    bottom: -8px;
    top: auto;
}

.nav-toggle.active .hamburger {
    background: transparent;
}

.nav-toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
    background: var(--color-surface);
}

.nav-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    bottom: 0;
    top: 0;
    background: var(--color-surface);
}

/* ================================
   Buttons
   ================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn-text {
    position: relative;
    z-index: 1;
}

.btn-icon {
    width: 18px;
    height: 18px;
    position: relative;
    z-index: 1;
    transition: transform var(--transition-base);
}

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

.btn:hover .btn-icon {
    transform: translateX(4px);
}

.btn-primary {
    background: var(--color-accent);
    color: var(--color-surface);
    border-color: var(--color-accent);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--color-accent-dark);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-base);
    z-index: 0;
}

.btn-primary:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--color-surface);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-secondary:hover {
    background: var(--color-surface);
    color: var(--color-primary);
    border-color: var(--color-surface);
    transform: translateY(-3px);
}

.btn-small {
    padding: var(--space-sm) var(--space-lg);
    font-size: 0.85rem;
}

.btn-full {
    width: 100%;
}

/* Magnetic Button Effect */
.magnetic-btn {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ================================
   Boutons Billes (Headers Typographie/Encre)
   ================================ */
.btn-sphere {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-decoration: none;
    cursor: pointer;
    background: transparent;
    transition: all var(--duration-medium) var(--ease-out-expo);
}

.btn-sphere::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    transition: all var(--duration-medium) var(--ease-out-expo);
}

.btn-sphere .sphere-icon {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--duration-fast) ease;
}

.btn-sphere .sphere-icon svg {
    width: 20px;
    height: 20px;
}

.btn-sphere .sphere-label {
    position: absolute;
    white-space: nowrap;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    opacity: 0;
    transform: scale(0.8);
    transition: all var(--duration-fast) ease;
    z-index: 2;
}

/* État hover - expansion */
.btn-sphere:hover {
    width: 200px;
    border-radius: 30px;
}

.btn-sphere:hover::before {
    border-radius: 30px;
}

.btn-sphere:hover .sphere-icon {
    opacity: 0;
    transform: scale(0);
}

.btn-sphere:hover .sphere-label {
    opacity: 1;
    transform: scale(1);
}

/* Primary - Outline doré */
.btn-sphere.btn-sphere--primary::before {
    border: 2px solid var(--color-accent);
}

.btn-sphere.btn-sphere--primary .sphere-icon svg {
    stroke: var(--color-accent);
}

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

.btn-sphere.btn-sphere--primary:hover::before {
    background: var(--color-accent);
    border-color: var(--color-accent);
}

/* Secondary - Outline blanc */
.btn-sphere.btn-sphere--secondary::before {
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-sphere.btn-sphere--secondary .sphere-icon svg {
    stroke: rgba(255, 255, 255, 0.8);
}

.btn-sphere.btn-sphere--secondary .sphere-label {
    color: var(--color-primary);
}

.btn-sphere.btn-sphere--secondary:hover::before {
    background: var(--color-surface);
    border-color: var(--color-surface);
}

/* Responsive - Boutons toujours étendus sur mobile */
@media (max-width: 768px) {
    .btn-sphere {
        width: 180px;
        border-radius: 32px;
    }

    .btn-sphere::before {
        border-radius: 32px;
    }

    .btn-sphere .sphere-icon {
        display: none;
    }

    .btn-sphere .sphere-label {
        opacity: 1;
        transform: none;
        position: relative;
    }
}

/* ================================
   Hero Section
   ================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 50%, #0f0f23 100%);
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 25% 25%, rgba(201, 169, 98, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(201, 169, 98, 0.05) 0%, transparent 50%);
    animation: pattern-move 20s ease-in-out infinite alternate;
}

@keyframes pattern-move {
    0% { transform: scale(1) rotate(0deg); }
    100% { transform: scale(1.1) rotate(5deg); }
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(201, 169, 98, 0.15) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    animation: glow-pulse 4s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.8; }
}

/* Floating Shapes */
.floating-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--color-accent);
    top: 10%;
    left: -5%;
    animation: float-shape 8s ease-in-out infinite;
}

.shape-2 {
    width: 200px;
    height: 200px;
    border: 2px solid var(--color-accent);
    background: transparent;
    top: 60%;
    right: 10%;
    animation: float-shape 10s ease-in-out infinite reverse;
}

.shape-3 {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, var(--color-accent), transparent);
    bottom: 20%;
    left: 15%;
    animation: float-shape 12s ease-in-out infinite;
}

.shape-4 {
    width: 80px;
    height: 80px;
    background: var(--color-accent-light);
    top: 30%;
    right: 20%;
    animation: float-shape 6s ease-in-out infinite;
}

.shape-5 {
    width: 120px;
    height: 120px;
    border: 1px solid rgba(201, 169, 98, 0.5);
    top: 70%;
    left: 60%;
    animation: rotate-shape 20s linear infinite;
}

@keyframes float-shape {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(10deg); }
}

@keyframes rotate-shape {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
    max-width: var(--container-max);
    padding: 0 var(--container-padding);
    width: 100%;
}

.hero-text {
    padding-right: var(--space-2xl);
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--space-md);
    overflow: hidden;
}

.reveal-text {
    display: inline-block;
    overflow: hidden;
}

.reveal-text-inner {
    display: inline-block;
    transform: translateY(100%);
    animation: reveal-text 0.8s ease forwards 0.5s;
}

@keyframes reveal-text {
    to { transform: translateY(0); }
}

.hero-title {
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 400;
    color: var(--color-surface);
    margin-bottom: var(--space-lg);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.title-line {
    display: block;
    overflow: hidden;
    transform: translateY(100%);
    animation: slide-up 0.8s ease forwards;
}

.title-line:nth-child(1) { animation-delay: 0.6s; }
.title-line:nth-child(2) { animation-delay: 0.7s; }

@keyframes slide-up {
    to { transform: translateY(0); }
}

.hero-tagline {
    font-family: var(--font-heading);
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-style: italic;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--space-2xl);
    opacity: 0;
    animation: fade-in 1s ease forwards 1s;
}

/* Typewriter effect */
.typewriter {
    overflow: hidden;
    border-right: 2px solid var(--color-accent);
    white-space: nowrap;
    animation:
        typing 2s steps(40, end) forwards 1s,
        blink-caret 0.75s step-end infinite 1s,
        fade-in 0.1s ease forwards 1s;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: var(--color-accent); }
}

@keyframes fade-in {
    to { opacity: 1; }
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    opacity: 0;
    transform: translateY(20px);
    animation: fade-up 0.8s ease forwards 1.3s;
}

@keyframes fade-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Image */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-wrapper {
    position: relative;
    width: 350px;
    height: 350px;
    opacity: 0;
    animation: scale-in 1s ease forwards 0.8s;
}

@keyframes scale-in {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.image-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle, rgba(201, 169, 98, 0.5) 0%, transparent 60%);
    border-radius: 50%;
    animation: glow-rotate 10s linear infinite;
    filter: blur(10px);
    will-change: transform;
}

@keyframes glow-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.image-border {
    position: absolute;
    inset: -10px;
    border: 2px solid var(--color-accent);
    border-radius: 50%;
    animation: border-rotate 15s linear infinite reverse;
}

@keyframes border-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    position: relative;
    z-index: 1;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: var(--space-2xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0;
    animation: fade-in 1s ease forwards 1.5s;
}

.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    position: relative;
}

.mouse-wheel {
    width: 4px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 1.5s ease-in-out infinite;
}

@keyframes scroll-wheel {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
    50% { transform: translateX(-50%) translateY(10px); opacity: 0.3; }
}

/* ================================
   Section Headers
   ================================ */
.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--space-md);
    position: relative;
    padding-left: var(--space-xl);
}

.section-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 20px;
    height: 2px;
    background: var(--color-accent);
    transform: translateY(-50%);
}

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

.section-description {
    font-size: 1.1rem;
    color: var(--color-text-light);
    max-width: 600px;
}

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

.section-header .section-label::before {
    display: none;
}

.section-header .section-label {
    padding-left: 0;
}

.section-header .section-description {
    margin: 0 auto;
}

/* Section Background */
.section-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-heading);
    font-size: clamp(8rem, 20vw, 20rem);
    font-weight: 700;
    color: rgba(0, 0, 0, 0.02);
    white-space: nowrap;
    user-select: none;
}

.bg-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--color-background) 0%, var(--color-surface) 50%, var(--color-background) 100%);
}

/* ================================
   Reveal Animations
   ================================ */
.reveal-element {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-element.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ================================
   About Section
   ================================ */
.about {
    background: var(--color-surface);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-4xl);
    align-items: center;
}

.about-image {
    position: relative;
}

.image-frame {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transition: transform 0.5s ease;
}

.frame-border {
    position: absolute;
    inset: -15px;
    border: 2px solid var(--color-accent);
    border-radius: var(--radius-lg);
    z-index: -1;
    transition: transform 0.5s ease;
}

.image-frame:hover .frame-border {
    transform: translate(10px, 10px);
}

.author-photo {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.image-frame:hover .author-photo {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 26, 46, 0.3) 0%, transparent 50%);
}

.floating-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--color-accent);
    color: var(--color-surface);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    box-shadow: var(--shadow-lg);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.badge-icon {
    font-size: 1.5rem;
}

.badge-text {
    font-weight: 600;
    font-size: 0.9rem;
}

.about-content {
    padding-left: var(--space-xl);
}

.about-text {
    margin-bottom: var(--space-2xl);
}

.about-text p {
    font-size: 1.05rem;
    color: var(--color-text-light);
}

.about-stats {
    display: flex;
    gap: var(--space-2xl);
}

.stat {
    text-align: center;
    position: relative;
}

.stat-number {
    display: inline;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--color-accent);
    line-height: 1;
}

.stat-plus {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-accent);
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-top: var(--space-xs);
}

/* ================================
   Photography Section - Carousel Fullscreen
   ================================ */
.photography-carousel {
    padding: 0;
    position: relative;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    height: 100vh;
    width: 100%;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
}

/* Main slides area */
.carousel-main {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Gradient overlay */
.carousel-main::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(26, 26, 46, 0.3) 0%,
        transparent 30%,
        transparent 60%,
        rgba(26, 26, 46, 0.9) 100%
    );
    z-index: 1;
    pointer-events: none;
}

/* Content overlay */
.carousel-content {
    position: absolute;
    bottom: 180px;
    left: 0;
    right: 0;
    padding: 0 var(--space-2xl);
    z-index: 10;
    max-width: 800px;
}

.carousel-content .section-label {
    color: var(--color-accent-light);
    margin-bottom: var(--space-sm);
}

.carousel-content .section-label::before {
    background: var(--color-accent-light);
}

.carousel-counter {
    font-size: 0.85rem;
    color: var(--color-accent);
    letter-spacing: 2px;
    margin-bottom: var(--space-md);
}

.carousel-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--color-surface);
    line-height: 1.1;
    margin-bottom: var(--space-md);
}

.carousel-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    max-width: 500px;
    margin-bottom: var(--space-lg);
}

.carousel-cta {
    margin-top: var(--space-md);
}

.photography-carousel .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-surface);
    backdrop-filter: blur(10px);
}

.photography-carousel .btn-secondary:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-primary);
}

/* Navigation arrows */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(201, 169, 98, 0.1);
    border: 2px solid var(--color-accent);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 20;
}

.carousel-nav:hover {
    background: var(--color-accent);
}

.carousel-nav svg {
    width: 24px;
    height: 24px;
    fill: var(--color-accent);
    transition: fill 0.3s ease;
}

.carousel-nav:hover svg {
    fill: var(--color-primary);
}

.carousel-prev { left: var(--space-xl); }
.carousel-next { right: var(--space-xl); }

/* Thumbnails */
.carousel-thumbnails {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--space-md);
    z-index: 20;
    padding: var(--space-md);
    background: rgba(26, 26, 46, 0.5);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(201, 169, 98, 0.2);
}

.carousel-thumbnail {
    width: 80px;
    height: 60px;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.carousel-thumbnail:hover {
    opacity: 0.8;
}

.carousel-thumbnail.active {
    opacity: 1;
    border-color: var(--color-accent);
    transform: scale(1.1);
}

.carousel-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Progress bar */
.carousel-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 20;
}

.progress-fill {
    height: 100%;
    background: var(--color-accent);
    width: 0%;
    transition: width 0.1s linear;
}

/* Autoplay toggle */
.autoplay-toggle {
    position: absolute;
    bottom: 120px;
    right: var(--space-xl);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 20;
    background: rgba(26, 26, 46, 0.5);
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-full);
    backdrop-filter: blur(10px);
    cursor: pointer;
    border: 1px solid rgba(201, 169, 98, 0.2);
    transition: all 0.3s ease;
}

.autoplay-toggle:hover {
    background: rgba(26, 26, 46, 0.8);
}

.autoplay-toggle span {
    font-size: 0.85rem;
    color: var(--color-surface);
}

.toggle-btn {
    width: 40px;
    height: 22px;
    background: var(--color-secondary);
    border-radius: 11px;
    position: relative;
    transition: background 0.3s ease;
}

.toggle-btn::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    background: var(--color-surface);
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.autoplay-toggle.active .toggle-btn {
    background: var(--color-accent);
}

.autoplay-toggle.active .toggle-btn::after {
    transform: translateX(18px);
}

/* Responsive Carousel */
@media (max-width: 992px) {
    .carousel-container {
        height: 80vh;
    }

    .carousel-content {
        bottom: 160px;
        padding: 0 var(--space-lg);
    }

    .carousel-title {
        font-size: 2.5rem;
    }

    .carousel-thumbnails {
        gap: var(--space-sm);
    }

    .carousel-thumbnail {
        width: 60px;
        height: 45px;
    }

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

@media (max-width: 576px) {
    .carousel-container {
        height: 70vh;
    }

    .carousel-content {
        bottom: 140px;
        padding: 0 var(--space-md);
    }

    .carousel-title {
        font-size: 2rem;
    }

    .carousel-description {
        font-size: 0.95rem;
    }

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

    .carousel-prev { left: var(--space-md); }
    .carousel-next { right: var(--space-md); }

    .carousel-thumbnails {
        display: none;
    }

    .autoplay-toggle {
        bottom: 100px;
        right: var(--space-md);
    }
}

/* ================================
   Books Section
   ================================ */
.books {
    background: var(--color-background);
    overflow: hidden;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.book-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    position: relative;
}

.book-card:hover {
    box-shadow: var(--shadow-xl);
}

.book-cover {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
}

.cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.book-card:hover .cover-img {
    transform: scale(1.1);
}

.book-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(255, 255, 255, 0.3) 45%,
        rgba(255, 255, 255, 0.5) 50%,
        rgba(255, 255, 255, 0.3) 55%,
        transparent 60%
    );
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.book-card:hover .book-shine {
    transform: translateX(100%);
}

.book-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 26, 46, 0.95) 0%, rgba(26, 26, 46, 0.5) 50%, transparent 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: var(--space-xl);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.book-card:hover .book-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    transform: translateY(20px);
    transition: transform var(--transition-base);
}

.book-card:hover .overlay-content {
    transform: translateY(0);
}

.book-year {
    display: block;
    color: var(--color-accent);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-md);
}

.book-info {
    padding: var(--space-lg);
}

.book-title {
    font-size: 1.25rem;
    margin-bottom: var(--space-xs);
    transition: color var(--transition-fast);
}

.book-card:hover .book-title {
    color: var(--color-accent);
}

.book-genre {
    font-size: 0.85rem;
    color: var(--color-accent);
    margin-bottom: var(--space-md);
    font-weight: 500;
}

.book-description {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.book-downloads {
    display: flex;
    gap: var(--space-sm);
    padding: 0 var(--space-lg) var(--space-lg);
}

.book-downloads .btn-small {
    flex: 1;
    text-align: center;
    justify-content: center;
}

.book-decoration {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

.book-card:hover .book-decoration {
    transform: scaleX(1);
}

/* ================================
   Marquee Section
   ================================ */
.marquee-section {
    background: var(--color-primary);
    padding: var(--space-lg) 0;
    overflow: hidden;
}

.marquee {
    display: flex;
    width: max-content;
    animation: marquee 30s linear infinite;
}

.marquee:hover {
    animation-play-state: paused;
}

.marquee-content {
    display: flex;
    align-items: center;
    gap: var(--space-2xl);
    padding: 0 var(--space-xl);
}

.marquee-content span {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--color-surface);
    white-space: nowrap;
}

.marquee-dot {
    width: 8px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 50%;
    flex-shrink: 0;
}

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

/* ================================
   Memoir Section
   ================================ */
.memoir {
    background: var(--color-surface);
    overflow: hidden;
}

.memoir-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.memoir-description {
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin-bottom: var(--space-2xl);
}

.memoir-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.memoir-detail {
    padding: var(--space-lg);
    background: var(--color-background);
    border-radius: var(--radius-md);
    text-align: center;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.memoir-detail:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.detail-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto var(--space-md);
}

.detail-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--color-accent);
}

.memoir-detail h4 {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: var(--space-xs);
}

.memoir-detail p {
    font-size: 1rem;
    color: var(--color-text);
    font-weight: 500;
}

.memoir-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.memoir-decoration {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.decoration-ring {
    position: absolute;
    border: 1px solid rgba(201, 169, 98, 0.2);
    border-radius: 50%;
}

.ring-1 {
    width: 300px;
    height: 300px;
    animation: rotate-ring 20s linear infinite;
}

.ring-2 {
    width: 250px;
    height: 250px;
    animation: rotate-ring 15s linear infinite reverse;
}

.ring-3 {
    width: 200px;
    height: 200px;
    animation: rotate-ring 25s linear infinite;
}

@keyframes rotate-ring {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.quote-card {
    background: var(--color-surface);
    padding: var(--space-2xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    max-width: 320px;
    position: relative;
    z-index: 1;
}

.quote-icon {
    font-family: var(--font-heading);
    font-size: 5rem;
    color: var(--color-accent);
    opacity: 0.2;
    position: absolute;
    top: 0;
    left: var(--space-lg);
    line-height: 1;
}

.memoir-quote {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-style: italic;
    color: var(--color-text);
    line-height: 1.6;
    margin-bottom: var(--space-md);
    position: relative;
    z-index: 1;
}

.quote-author {
    font-size: 0.9rem;
    color: var(--color-accent);
    font-weight: 500;
}

/* ================================
   Services Section
   ================================ */
.services {
    background: var(--color-background);
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

/* Grille élargie pour 9 services */
.services-grid-large {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.services-grid-large .service-card {
    padding: var(--space-xl);
}

.services-grid-large .service-number {
    font-size: 3rem;
}

.services-grid-large .service-title {
    font-size: 1.1rem;
}

.services-grid-large .service-description {
    font-size: 0.9rem;
}

.service-card {
    position: relative;
    background: var(--color-surface);
    padding: var(--space-2xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    overflow: hidden;
}

.service-card:hover {
    box-shadow: var(--shadow-xl);
}

.service-hover-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(201, 169, 98, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.service-card:hover .service-hover-bg {
    opacity: 1;
}

.service-number {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.03);
    line-height: 1;
    transition: color var(--transition-base);
}

.service-card:hover .service-number {
    color: rgba(201, 169, 98, 0.1);
}

.service-card.featured {
    border: 2px solid var(--color-accent);
}

.service-badge {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    padding: var(--space-xs) var(--space-md);
    background: var(--color-accent);
    color: var(--color-surface);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    z-index: 1;
}

.pulse-animation {
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.service-icon {
    width: 50px;
    height: 50px;
    margin-bottom: var(--space-lg);
    position: relative;
    z-index: 1;
}

.service-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--color-accent);
    transition: transform var(--transition-base);
}

.service-card:hover .service-icon svg {
    transform: scale(1.1);
}

.service-title {
    font-size: 1.25rem;
    margin-bottom: var(--space-md);
    position: relative;
    z-index: 1;
}

.service-description {
    font-size: 0.95rem;
    color: var(--color-text-light);
    margin-bottom: var(--space-lg);
    position: relative;
    z-index: 1;
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    position: relative;
    z-index: 1;
}

.service-features li {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.feature-dot {
    width: 6px;
    height: 6px;
    background: var(--color-accent);
    border-radius: 50%;
    flex-shrink: 0;
}

.services-cta {
    margin-top: var(--space-3xl);
}

.cta-content {
    text-align: center;
    padding: var(--space-2xl);
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.cta-content p {
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin-bottom: var(--space-lg);
}

/* ================================
   Extraits Section
   ================================ */
.extraits {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: var(--color-surface);
    position: relative;
    overflow: hidden;
}

.extraits::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a962' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.extraits .section-label {
    color: var(--color-accent-light);
}

.extraits .section-label::before {
    background: var(--color-accent-light);
}

.extraits .section-title {
    color: var(--color-surface);
}

.extraits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

@media (max-width: 992px) {
    .extraits-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
}

.extrait-card {
    padding: var(--space-xl);
    position: relative;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.extrait-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.glass-effect {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
}

.extrait-quote {
    font-family: var(--font-heading);
    font-size: 4rem;
    color: var(--color-accent);
    opacity: 0.4;
    line-height: 1;
    margin-bottom: -1rem;
}

.extrait-content {
    flex: 1;
    margin-bottom: var(--space-lg);
}

.extrait-content p {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-style: italic;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
}

.extrait-source {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.source-cover {
    width: 50px;
    height: 70px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

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

.source-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.source-title {
    font-weight: 500;
    color: var(--color-surface);
    font-size: 0.95rem;
}

.source-type {
    font-size: 0.8rem;
    color: var(--color-accent-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ================================
   Contact Section
   ================================ */
.contact {
    background: var(--color-surface);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-4xl);
}

.contact-description {
    font-size: 1.05rem;
    color: var(--color-text-light);
    margin-bottom: var(--space-2xl);
}

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

.contact-method {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-lg);
    background: var(--color-background);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.contact-method::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light));
    transform: translateX(-100%);
    transition: transform var(--transition-base);
    z-index: 0;
}

.contact-method:hover::before {
    transform: translateX(0);
}

.contact-method:hover {
    color: var(--color-surface);
}

.contact-method > * {
    position: relative;
    z-index: 1;
}

.method-icon {
    width: 45px;
    height: 45px;
    flex-shrink: 0;
    transition: transform var(--transition-base);
}

.method-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--color-accent);
    transition: stroke var(--transition-base);
}

.contact-method:hover .method-icon svg {
    stroke: var(--color-surface);
}

.method-info {
    flex-grow: 1;
}

.method-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    transition: color var(--transition-base);
}

.contact-method:hover .method-label {
    color: rgba(255, 255, 255, 0.7);
}

.method-value {
    display: block;
    font-size: 1rem;
    color: var(--color-text);
    transition: color var(--transition-base);
}

.contact-method:hover .method-value {
    color: var(--color-surface);
}

.method-arrow {
    width: 20px;
    height: 20px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all var(--transition-base);
}

.method-arrow svg {
    width: 100%;
    height: 100%;
    stroke: var(--color-surface);
}

.contact-method:hover .method-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Contact Form */
.contact-form-wrapper {
    padding: var(--space-2xl);
    border-radius: var(--radius-lg);
    background: var(--color-background);
}

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

.form-group {
    position: relative;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: var(--space-sm);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: var(--space-md);
    font-family: var(--font-body);
    font-size: 1rem;
    border: none;
    border-bottom: 2px solid var(--color-border);
    background: transparent;
    transition: border-color var(--transition-base);
    border-radius: 0;
}

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

.input-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width var(--transition-base);
}

.form-group input:focus ~ .input-line,
.form-group select:focus ~ .input-line,
.form-group textarea:focus ~ .input-line {
    width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-text-muted);
}

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

/* ================================
   Footer
   ================================ */
.footer {
    background: var(--color-primary);
    color: rgba(255, 255, 255, 0.8);
    padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: var(--space-2xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo-text {
    color: var(--color-surface);
    margin-bottom: var(--space-sm);
    display: block;
}

.footer-tagline {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-nav {
    display: flex;
    gap: var(--space-xl);
}

.footer-link {
    font-size: 0.9rem;
    transition: color var(--transition-fast);
    position: relative;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-accent);
    transition: width var(--transition-base);
}

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

.footer-link:hover {
    color: var(--color-accent);
}

.footer-social {
    display: flex;
    gap: var(--space-md);
}

.social-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all var(--transition-base);
}

.social-link:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    transform: translateY(-3px);
}

.social-link svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

.footer-bottom {
    padding-top: var(--space-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

.back-to-top {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-base);
}

.back-to-top:hover {
    background: var(--color-accent);
    transform: translateY(-3px);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
    stroke: var(--color-surface);
}

/* ================================
   Tilt Effect
   ================================ */
.tilt-element {
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

/* ================================
   Responsive Design
   ================================ */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text {
        padding-right: 0;
    }

    .hero-image {
        display: none;
    }

    .hero-cta {
        justify-content: center;
    }

    .about-grid,
    .memoir-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .about-content {
        padding-left: 0;
    }

    .about-image {
        max-width: 400px;
        margin: 0 auto;
    }

    .books-grid,
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid-large {
        grid-template-columns: repeat(2, 1fr);
    }

    .memoir-visual {
        order: -1;
    }

    .memoir-details {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --container-padding: 1rem;
    }

    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        /* Glassmorphism: menu mobile sombre */
        background: rgba(26, 26, 46, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: flex-start;
        padding: 100px var(--space-xl) var(--space-xl);
        gap: var(--space-lg);
        transition: right var(--transition-base);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.4);
        border-left: 1px solid rgba(201, 169, 98, 0.2);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu .nav-link {
        /* Glassmorphism: liens clairs sur fond sombre */
        color: rgba(255, 255, 255, 0.85);
        font-size: 1.1rem;
    }

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

    .nav-link-cta {
        margin-top: var(--space-md);
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
    }

    .books-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }

    .services-grid-large {
        grid-template-columns: 1fr;
    }

    .about-stats {
        justify-content: center;
        flex-wrap: wrap;
    }

    .footer-content {
        flex-direction: column;
        gap: var(--space-xl);
        text-align: center;
    }

    .footer-nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-lg);
    }

    .marquee-content span {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .section {
        padding: var(--space-3xl) 0;
    }

    .about-stats {
        flex-direction: column;
        gap: var(--space-lg);
    }

    .stat-number {
        font-size: 2rem;
    }

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

    .typewriter {
        white-space: normal;
        animation: fade-in 1s ease forwards 1s;
        border-right: none;
    }
}

/* ================================
   Logo Images
   ================================ */
/* Logo dans navigation */
.logo-img {
    height: 50px;
    width: auto;
    transition: transform var(--transition-base), filter var(--transition-base);
}

.navbar:not(.scrolled) .logo-img {
    filter: brightness(0) invert(1);
}

/* Glassmorphism: logo reste inversé (blanc) au scroll */
.navbar.scrolled .logo-img {
    filter: brightness(0) invert(1);
}

.logo-img:hover {
    transform: scale(1.05);
}

/* Logo dans loader */
.loader-logo-img {
    max-width: 150px;
    height: auto;
    margin-bottom: var(--space-xl);
    animation: pulse 2s ease-in-out infinite;
    filter: brightness(0) invert(1);
}

/* Logo dans footer - grand format */
.footer-logo-img {
    height: 150px;
    width: auto;
    margin-bottom: var(--space-lg);
    filter: brightness(0) invert(1);
}

.footer-logo-large {
    display: block;
}

/* Icône LinkedIn personnalisée */
.linkedin-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.social-link .linkedin-icon {
    width: 24px;
    height: 24px;
}

.method-icon .linkedin-icon {
    width: 100%;
    height: 100%;
}

/* ================================
   Portfolio Section - Design Graphiste
   ================================ */
.portfolio {
    position: relative;
    overflow: hidden;
    background: var(--color-dark);
    padding: var(--space-4xl) 0;
}

.portfolio-bg-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.05;
}

.portfolio .section-label,
.portfolio .section-title,
.portfolio .section-description {
    color: var(--color-surface);
}

.portfolio .section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -0.02em;
    margin-bottom: var(--space-sm);
}

.portfolio .section-description {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.portfolio .section-label::before {
    background: var(--color-accent-light);
}

/* Portfolio Showcase - Elegant 3-item layout */
.portfolio-showcase {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.portfolio-showcase-item {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    cursor: pointer;
    background: var(--color-dark-alt);
}

.portfolio-showcase-item .portfolio-image {
    position: absolute;
    inset: 0;
}

.portfolio-showcase-item .portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1), filter 0.6s ease;
    filter: grayscale(30%);
}

.portfolio-showcase-item:hover .portfolio-image img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.portfolio-showcase-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.portfolio-showcase-item:hover::before {
    opacity: 1;
}

.portfolio-showcase-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--color-accent);
    transform: scaleX(0);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 4;
}

.portfolio-showcase-item:hover::after {
    transform: scaleX(1);
}

.portfolio-showcase-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    z-index: 2;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-showcase-item:hover .portfolio-showcase-info {
    transform: translateY(0);
    opacity: 1;
}

.portfolio-showcase-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--color-surface);
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

.portfolio-showcase-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 300;
}

@media (max-width: 992px) {
    .portfolio-showcase {
        grid-template-columns: 1fr;
        gap: 30px;
        max-width: 450px;
        margin: 0 auto;
    }

    .portfolio-showcase-item {
        aspect-ratio: 4/5;
    }
}

/* Portfolio Card - Minimal Elegant */
.portfolio-card {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    cursor: pointer;
    background: var(--color-dark-alt);
}

.portfolio-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-card:hover::before {
    opacity: 1;
}

.portfolio-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid transparent;
    transition: border-color 0.4s ease;
    z-index: 3;
    pointer-events: none;
}

.portfolio-card:hover::after {
    border-color: rgba(201, 169, 98, 0.3);
}

.portfolio-image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1), filter 0.6s ease;
    filter: grayscale(20%);
}

.portfolio-card:hover .portfolio-image img {
    transform: scale(1.08);
    filter: grayscale(0%);
}

/* Elegant line reveal effect */
.portfolio-glare {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
    transform: scaleX(0);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 4;
}

.portfolio-card:hover .portfolio-glare {
    transform: scaleX(1);
}

/* Portfolio Overlay - Elegant Minimal */
.portfolio-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--space-xl);
    z-index: 2;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-content {
    transform: translateY(20px);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-card:hover .portfolio-content {
    transform: translateY(0);
}

.portfolio-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--color-surface);
    margin-bottom: 4px;
    letter-spacing: 0.01em;
}

.portfolio-desc {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.4;
    font-weight: 300;
}

/* Expand Button - Minimal */
.portfolio-expand {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 3;
}

.portfolio-expand svg {
    width: 18px;
    height: 18px;
    stroke: var(--color-surface);
    stroke-width: 1.5;
}

.portfolio-card:hover .portfolio-expand {
    opacity: 1;
    transform: scale(1);
}

.portfolio-expand:hover {
    background: var(--color-surface);
    border-color: var(--color-surface);
}

.portfolio-expand:hover svg {
    stroke: var(--color-dark);
}

/* Portfolio CTA */
.portfolio-cta {
    text-align: center;
    margin-top: var(--space-3xl);
}

.portfolio-cta .btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--color-surface);
}

.portfolio-cta .btn:hover {
    background: var(--color-surface);
    color: var(--color-dark);
    border-color: var(--color-surface);
}

/* Responsive Portfolio */
@media (max-width: 768px) {
    .portfolio-overlay {
        padding: var(--space-md);
    }

    .portfolio-title {
        font-size: 1rem;
    }

    .portfolio-desc {
        font-size: 0.75rem;
    }
}

/* ================================
   Lightbox
   ================================ */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

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

.lightbox-close {
    position: absolute;
    top: var(--space-xl);
    right: var(--space-xl);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-base);
    z-index: 10;
}

.lightbox-close svg {
    width: 24px;
    height: 24px;
    stroke: var(--color-surface);
}

.lightbox-close:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-base);
    z-index: 10;
}

.lightbox-nav svg {
    width: 28px;
    height: 28px;
    stroke: var(--color-surface);
}

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

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

.lightbox-nav:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
}

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

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

.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.lightbox-info {
    text-align: center;
    margin-top: var(--space-xl);
    color: var(--color-surface);
}

.lightbox-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    margin-bottom: var(--space-sm);
    color: var(--color-surface);
}

.lightbox-desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Lightbox Responsive */
@media (max-width: 768px) {
    .lightbox-nav {
        width: 45px;
        height: 45px;
    }

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

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

/* Smooth scroll offset for fixed header */
html {
    scroll-padding-top: 80px;
}

/* Selection */
::selection {
    background: var(--color-accent);
    color: var(--color-surface);
}


/* ================================
   Navigation : sept liens sur les écrans moyens
   ================================ */
@media (min-width: 769px) and (max-width: 1180px) {
    .nav-menu {
        gap: var(--space-md);
    }

    .nav-link {
        font-size: 0.82rem;
    }

    .nav-link-cta {
        padding: var(--space-sm) var(--space-md);
    }
}

/* ================================
   Graphisme : rails de cartes, agrandies au survol, et vue d'ensemble
   ================================ */
.graphisme {
    --hauteur-carte: 380px;
    background: var(--color-background);
}

.graphisme .section-header {
    margin-bottom: var(--space-2xl);
}

.graphisme-bascule {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
    padding: var(--space-sm) var(--space-lg);
    border: 1px solid var(--color-primary);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-primary);
    transition: background var(--transition-base), color var(--transition-base);
}

.graphisme-bascule svg {
    width: 18px;
    height: 18px;
}

.graphisme-bascule:hover,
.graphisme-bascule[aria-pressed="true"] {
    background: var(--color-primary);
    color: var(--color-surface);
}

.graphisme-projets {
    display: flex;
    flex-direction: column;
    gap: var(--space-3xl);
}

.graphisme-entete {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-xl);
    margin-bottom: var(--space-sm);
}

.graphisme-titre {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
}

.graphisme-texte p {
    max-width: 68ch;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--color-text-light);
}

.graphisme-fleches {
    display: flex;
    flex-shrink: 0;
    gap: var(--space-sm);
}

.graphisme-fleche {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    background: var(--color-surface);
    color: var(--color-primary);
    transition: border-color var(--transition-base), background var(--transition-base), color var(--transition-base), opacity var(--transition-base);
}

.graphisme-fleche svg {
    width: 20px;
    height: 20px;
}

.graphisme-fleche:hover:not(:disabled) {
    border-color: var(--color-accent);
    background: var(--color-accent);
    color: var(--color-surface);
}

.graphisme-fleche:disabled {
    opacity: 0.35;
    cursor: default;
}

.graphisme-fleche[hidden] {
    display: none;
}

/* Rail : les cartes défilent ; la marge intérieure laisse la place à l'agrandissement */
.graphisme-rail {
    display: flex;
    gap: var(--space-lg);
    overflow-x: auto;
    scroll-snap-type: x proximity;
    padding: var(--space-xl) var(--space-lg) var(--space-2xl);
    margin: 0 calc(-1 * var(--space-lg));
    scroll-padding-inline: var(--space-lg);
    scrollbar-width: thin;
    scrollbar-color: var(--color-accent) transparent;
    overscroll-behavior-x: contain;
}

.graphisme-carte {
    position: relative;
    flex: 0 0 auto;
    height: var(--hauteur-carte);
    padding: 0;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--color-surface);
    box-shadow: var(--shadow-md);
    scroll-snap-align: start;
    cursor: zoom-in;
    transition: transform 0.45s var(--ease-out-expo), box-shadow 0.45s var(--ease-out-expo), opacity 0.3s ease;
}

.graphisme-carte img {
    display: block;
    width: auto;
    height: 100%;
    max-width: none;
}

.graphisme-legende {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: var(--space-xl) var(--space-md) var(--space-md);
    background: linear-gradient(180deg, transparent, rgba(10, 10, 20, 0.82));
    font-size: 0.85rem;
    line-height: 1.4;
    text-align: left;
    color: var(--color-surface);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    pointer-events: none;
}

@media (hover: hover) {
    .graphisme-carte:hover,
    .graphisme-carte:focus-visible {
        z-index: 2;
        transform: scale(1.06);
        box-shadow: 0 24px 50px rgba(0, 0, 0, 0.25);
    }

    .graphisme-carte:hover .graphisme-legende,
    .graphisme-carte:focus-visible .graphisme-legende {
        opacity: 1;
        transform: none;
    }

    .graphisme-rail:hover .graphisme-carte:not(:hover) {
        opacity: 0.7;
    }
}

@media (hover: none) {
    .graphisme-legende {
        opacity: 1;
        transform: none;
    }

    .graphisme-fleches {
        display: none;
    }
}

/* Vue d'ensemble : toutes les œuvres en petit ; le survol les agrandit comme une loupe */
.graphisme.vue-ensemble {
    --hauteur-carte: 150px;
}

.graphisme.vue-ensemble .graphisme-projets {
    gap: var(--space-2xl);
}

.graphisme.vue-ensemble .graphisme-texte p,
.graphisme.vue-ensemble .graphisme-legende {
    display: none;
}

.graphisme.vue-ensemble .graphisme-titre {
    font-size: 1.35rem;
}

.graphisme.vue-ensemble .graphisme-rail {
    flex-wrap: wrap;
    gap: var(--space-md);
    overflow: visible;
    padding: var(--space-sm) 0 0;
    margin: 0;
}

@media (hover: hover) {
    .graphisme.vue-ensemble .graphisme-carte:hover,
    .graphisme.vue-ensemble .graphisme-carte:focus-visible {
        transform: scale(1.6);
    }
}

@media (max-width: 1024px) {
    .graphisme {
        --hauteur-carte: 320px;
    }

    .graphisme-entete {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-md);
    }

    .graphisme-fleches {
        align-self: flex-end;
    }
}

@media (max-width: 768px) {
    .graphisme {
        --hauteur-carte: 260px;
    }

    .graphisme.vue-ensemble {
        --hauteur-carte: 110px;
    }

    .graphisme-rail {
        gap: var(--space-md);
        padding: var(--space-lg) var(--space-md) var(--space-xl);
        margin: 0 calc(-1 * var(--space-md));
    }
}

/* ================================
   Livres : maison d'édition
   ================================ */
.book-editeur {
    margin-top: calc(-1 * var(--space-sm));
    margin-bottom: var(--space-md);
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* ================================
   Carrousel photo : deux boutons et crédit Pexels
   ================================ */
.carousel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.carousel-credit {
    margin-top: var(--space-md);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.carousel-credit a {
    color: var(--color-accent-light);
    text-decoration: underline;
}

/* ================================
   Contact sans formulaire : une seule colonne
   ================================ */
.contact-grid--seul {
    grid-template-columns: 1fr;
    max-width: 640px;
    margin: 0 auto;
}

/* ================================
   Carrousel sur téléphone : on balaie du doigt, les flèches laissent la place au texte
   ================================ */
@media (max-width: 576px) {
    .carousel-nav {
        display: none;
    }

    .carousel-content {
        bottom: 150px;
    }
}

/* ================================
   Pied de page : six liens, empilés sur les écrans moyens
   ================================ */
.footer-link {
    white-space: nowrap;
}

@media (max-width: 1180px) {
    .footer-content {
        flex-direction: column;
        gap: var(--space-xl);
        text-align: center;
    }

    .footer-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ================================
   Séries et galeries du site photo (données de photos.karlforterre.fr)
   ================================ */
.site-photo {
    background: var(--color-surface);
}

.site-photo [hidden] {
    display: none !important;
}

.site-photo-chiffres {
    margin-top: var(--space-md);
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    color: var(--color-accent-dark);
}

.site-photo-series {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-3xl);
}

.serie-carte {
    position: relative;
    display: block;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--color-dark-alt);
}

.serie-carte img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease-out-expo);
}

.serie-carte::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(10, 10, 20, 0.85) 100%);
}

.serie-carte:hover img,
.serie-carte:focus-visible img {
    transform: scale(1.05);
}

.serie-infos {
    position: absolute;
    left: var(--space-lg);
    right: var(--space-lg);
    bottom: var(--space-lg);
    z-index: 1;
    color: var(--color-surface);
}

.serie-titre {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    line-height: 1.2;
}

.serie-lieu {
    display: block;
    margin-top: var(--space-xs);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.85);
}

.site-photo-sous-titre {
    margin-bottom: var(--space-lg);
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 500;
    text-align: center;
    color: var(--color-primary);
}

.site-photo-pastilles {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-3xl);
}

.site-photo-pastilles a {
    padding: var(--space-sm) var(--space-md);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    color: var(--color-text);
    transition: border-color var(--transition-base), background var(--transition-base), color var(--transition-base);
}

.site-photo-pastilles a span {
    margin-left: 0.4em;
    color: var(--color-text-muted);
}

.site-photo-pastilles a:hover,
.site-photo-pastilles a:focus-visible {
    border-color: var(--color-accent);
    background: rgba(201, 169, 98, 0.08);
    color: var(--color-primary);
}

.site-photo-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-md);
}

.site-photo .btn-secondary {
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.site-photo .btn-secondary:hover {
    background: var(--color-primary);
    color: var(--color-surface);
    border-color: var(--color-primary);
}

/* Légende du carrousel : lien vers la série ou la galerie */
.carousel-description a {
    color: var(--color-accent-light);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Carrousel : texte lisible sur les photos claires */
.carousel-title,
.carousel-description,
.carousel-counter {
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
}

@media (max-width: 576px) {
    .carousel-main::before {
        background: linear-gradient(180deg, rgba(26, 26, 46, 0.35) 0%, rgba(26, 26, 46, 0.25) 25%, rgba(26, 26, 46, 0.75) 60%, rgba(26, 26, 46, 0.92) 100%);
    }
}

/* ================================
   Langues : pastille à côté de « Contact » et choix Français, English, 中文
   ================================ */
.nav-langues {
    position: relative;
}

.nav-langue {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-langue svg {
    width: 16px;
    height: 16px;
}

.menu-langues {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 160px;
    padding: var(--space-xs);
    list-style: none;
    background: var(--color-surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    z-index: 1002;
}

.menu-langues[hidden] {
    display: none;
}

.menu-langues button {
    display: block;
    white-space: nowrap;
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    text-align: left;
    color: var(--color-text);
    transition: background var(--transition-fast), color var(--transition-fast);
}

.menu-langues button:hover,
.menu-langues button:focus-visible {
    background: rgba(201, 169, 98, 0.12);
    color: var(--color-primary);
}

.menu-langues button[aria-current="true"] {
    font-weight: 600;
    color: var(--color-accent-dark);
}

.menu-langues button[aria-current="true"]::after {
    content: ' ✓';
}

@media (min-width: 769px) and (max-width: 1180px) {
    .nav-langue {
        font-size: 0.82rem;
    }
}

@media (max-width: 1024px) {
    .menu-langues {
        position: static;
        display: flex;
        gap: var(--space-sm);
        min-width: 0;
        margin-top: var(--space-md);
        padding: 0;
        background: none;
        box-shadow: none;
    }

    .menu-langues button {
        width: auto;
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: var(--radius-full);
        color: rgba(255, 255, 255, 0.9);
    }

    .menu-langues button:hover,
    .menu-langues button:focus-visible {
        background: rgba(255, 255, 255, 0.1);
        color: var(--color-surface);
    }

    .menu-langues button[aria-current="true"] {
        border-color: var(--color-accent);
        color: var(--color-accent-light);
    }

    .menu-langues button[aria-current="true"]::after {
        content: '';
    }
}

/* Chinois : les caractères viennent des polices du système (PingFang, YaHei, Noto…) */
html[lang|="zh"] {
    --font-heading: 'Cormorant Garamond', 'Songti SC', 'STSong', 'Noto Serif SC', 'Source Han Serif SC', serif;
    --font-body: 'Inter', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
}

/* Légende du carrousel : « Série : » ou « Galerie : » avant le lien */
.rubrique-nom {
    margin-right: 0.35em;
}

html[lang|="zh"] .rubrique-nom {
    margin-right: 0.1em;
}

/* Tablettes : le menu passe dans le panneau latéral, comme sur téléphone,
   pour que les libellés anglais tiennent */
@media (min-width: 769px) and (max-width: 1024px) {
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: rgba(26, 26, 46, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: flex-start;
        padding: 100px var(--space-xl) var(--space-xl);
        gap: var(--space-lg);
        transition: right var(--transition-base);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.4);
        border-left: 1px solid rgba(201, 169, 98, 0.2);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu .nav-link {
        color: rgba(255, 255, 255, 0.85);
        font-size: 1.1rem;
    }

    .nav-link-cta {
        margin-top: var(--space-md);
    }
}
