/* Reset & Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #000000;
    --color-secondary: #21201e;
    --color-light-brown: #100f0e;
    --color-cream: #F5F1ED;
    --color-white: #FFFFFF;
    --color-text: #2C2C2C;
    --color-text-light: #666666;
    --color-texte:#ffffff;
    --color-accent: #B8935F;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;
    --font-logo: 'Great Vibes', cursive;
    
    --transition: all 0.3s ease;
}

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

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

.container-large {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 60px;
}

/* Header */
.header {
    background-color: var(--color-white);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 58px;
    width: auto;
    object-fit: contain;
}

.nav {
    flex: 1;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 35px;
    justify-content: center;
}

.nav-link {
    text-decoration: none;
    color: var(--color-primary);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 2px;
    transition: var(--transition);
    position: relative;
}

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

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

.btn-header {
    padding: 12px 28px;
    border: 2px solid var(--color-light-brown);
    background-color: transparent;
    color: var(--color-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-header:hover {
    background-color: var(--color-light-brown);
    color: var(--color-white);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--color-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 0;
    min-height: 80vh;
    overflow: visible;
    background-color: #000;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 80vh;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    display: none;
    color: var(--color-white);
}

.hero-slide.active {
    display: block;
}

.hero-slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    transition: transform 6s ease-in-out;
}

.hero-slide.active .hero-slide-bg {
    transform: scale(1);
}

.hero-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.45) 55%, rgba(0,0,0,0) 100%);
}

.hero-slide-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
    padding: 0 60px;
    padding-top: 140px;
}

.hero-tagline {
    font-size: 14px;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 18px;
    color: rgba(255,255,255,0.85);
}

.hero-title {
    font-family: var(--font-body);
    font-size: clamp(38px, 4vw, 46px);
    line-height: 1;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--color-white);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    min-height: 52px;
    background-color: var(--color-primary);
    color: var(--color-white);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border-radius: 4px;
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: var(--color-secondary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(107, 68, 35, 0.3);
}

[data-reveal] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-reveal="left"] {
    transform: translateX(-60px);
}

[data-reveal="right"] {
    transform: translateX(60px);
}

[data-reveal="up"] {
    transform: translateY(60px);
}

[data-reveal="down"] {
    transform: translateY(-60px);
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translate(0, 0);
}

.hero-slider-controls {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 5;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.35);
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease;
}

.hero-dot.active {
    background: rgba(255,255,255,0.85);
    transform: scale(1.25);
}

/* Introduction Section */
.intro {
    padding: 0 0 90px;
    margin-top: -90px;
    position: relative;
    z-index: 3;
    background: transparent;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}

.intro-image {
    position: relative;
}

.intro-image-placeholder {
    width: 100%;
    height: 350px;
    background: url("images/deco1.jpg") no-repeat center center;
    background-size: cover;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.intro-description {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    margin: 0;
    padding: 0;
    background: transparent;
    color: var(--color-white);
    font-size: 15px;
    line-height: 1.6;
    text-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

.values-grid {
    display: contents;
}

.value-card {
    background: linear-gradient(135deg,
        rgba(62, 39, 35, 0.6) 0%,
        rgba(78, 52, 46, 0.65) 25%,
        rgba(93, 64, 55, 0.7) 50%,
        rgba(78, 52, 46, 0.65) 75%,
        rgba(62, 39, 35, 0.6) 100%),
        url('images/fondvision.png');
    background-size: 200% 200%, cover;
    background-position: center, center;
    background-blend-mode: multiply;
    position: relative;
    padding: 40px 30px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    transition: var(--transition);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.1);
    height: 100%;
    overflow: hidden;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.1) 2px,
            rgba(0, 0, 0, 0.1) 4px
        ),
        repeating-linear-gradient(
            0deg,
            rgba(0, 0, 0, 0.05) 0px,
            transparent 1px,
            transparent 2px,
            rgba(0, 0, 0, 0.05) 3px
        );
    pointer-events: none;
    opacity: 0.3;
    z-index: 0;
}

.value-card > * {
    position: relative;
    z-index: 1;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(107, 68, 35, 0.2);
}

.value-icon {
    width: 50px;
    height: 50px;
    color: var(--color-texte);
}

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

.value-card h3 {
    font-family: var(--font-body);
    font-size: 22px;
    color: var(--color-texte);
    font-weight: 600;
}

.value-card p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--color-texte);
}

/* Expertise Banner */
.expertise-banner {
    background-color: var(--color-primary);
    padding: 60px 0;
}

.expertise-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: center;
}

.expertise-text p {
    color: var(--color-white);
    font-size: 18px;
    line-height: 1.7;
}

.expertise-blocks {
    display: flex;
    gap: 20px;
    justify-content: flex-end;
}

.expertise-block {
    width: 100px;
    height: 80px;
    background-color: var(--color-secondary);
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}

.expertise-block-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    display: none;
}

.expertise-block:has(.expertise-block-image[src]:not([src=""])) .expertise-block-image {
    display: block;
}

.expertise-block:has(.expertise-block-image[src]:not([src=""])) .expertise-block-placeholder {
    display: none;
}

.expertise-block-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-secondary);
}

.expertise-block-placeholder svg {
    width: 40px;
    height: 40px;
}

/* About Section */
.about {
    padding: 120px 0;
    background-color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.about-content {
    display: grid;
    grid-template-columns: 0.8fr 1fr 1.2fr;
    gap: 80px;
    align-items: center;
    position: relative;
}

.stats {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.stat-item {
    text-align: center;
}

.stat-label {
    font-size: 14px;
    color: var(--color-light-brown);
    margin-bottom: 10px;
    font-weight: 500;
}

.stat-number {
    font-family: var(--font-body);
    font-size: 48px;
    color: var(--color-light-brown);
    font-weight: 700;
}

.stat-label {
    font-size: 14px;
    color: var(--color-light-brown);
    margin-bottom: 10px;
    font-weight: 500;
}

.stat-number {
    font-family: var(--font-body);
    font-size: 52px;
    color: var(--color-light-brown);
    font-weight: 700;
}

.about-chair {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.chair-image {
    width: 300px;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(107, 68, 35, 0.3);
    display: none;
}

.about-chair:has(.chair-image[src]:not([src=""])) .chair-image {
    display: block;
}

.about-chair:has(.chair-image[src]:not([src=""])) .chair-placeholder {
    display: none;
}

.chair-placeholder {
    width: 300px;
    height: 400px;
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(107, 68, 35, 0.3);
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 25px;
}


.about-subtitle {
    font-size: 14px;
    color: var(--color-text-light);
    font-weight: 500;
}

.about-title {
    font-family: var(--font-body);
    font-size: 38px;
    line-height: 1.3;
    color: var(--color-text);
    font-weight: 700;
}

.about-description {
    font-size: 15px;
    line-height: 1.8;
    color: var(--color-text-light);
}

/* Decorative vases (about section) */
.decorative-vase {
    position: absolute;
    top: -140px;
    width: 180px;
    height: 160px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    pointer-events: none;
}

.decorative-vase.left {
    left: -10px;
}

.decorative-vase.right {
    right: -10px;
}

.vase-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.18));
    opacity: 0.9;
    display: none;
    clip-path: ellipse(80% 95% at 50% 95%);
}

.decorative-vase:has(.vase-image[src]:not([src=""])) .vase-image {
    display: block;
}

.decorative-vase:has(.vase-image[src]:not([src=""])) .vase-placeholder {
    display: none;
}

.vase-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, var(--color-light-brown) 0%, var(--color-secondary) 100%);
    clip-path: ellipse(80% 95% at 50% 95%);
    opacity: 0.9;
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.2);
}

/* Notre Approche Section */
.approach {
    background-color: #F5F5F5;
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.approach-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.approach-title {
    font-family: var(--font-body);
    font-size: 48px;
    color: var(--color-primary);
    font-weight: 700;
    margin-bottom: 20px;
}

.approach-description {
    font-size: 16px;
    color: var(--color-text);
    line-height: 1.8;
}

.approach-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    position: relative;
    z-index: 2;
}

.approach-card {
    background-color: var(--color-white);
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    position: relative;
}

.approach-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.approach-number {
    display: block;
    font-family: var(--font-body);
    font-size: 48px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 20px;
    opacity: 0.3;
    line-height: 1;
}

.approach-card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-light-brown);
    margin-bottom: 15px;
    line-height: 1.4;
}

.approach-card-text {
    font-size: 14px;
    color: var(--color-text);
    line-height: 1.7;
}

.approach-placeholder {
    background-color: var(--color-primary);
    border-radius: 8px;
    min-height: 300px;
    overflow: hidden;
    position: relative;
    grid-column: span 1;
}

.approach-image-container {
    width: 100%;
    height: 100%;
    min-height: 300px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.approach-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.approach-image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--color-primary);
    color: var(--color-white);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.approach-image-placeholder svg {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
}

.approach-image-placeholder p {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-white);
    opacity: 0.7;
}

.approach-image-container:hover .approach-image-placeholder {
    opacity: 0;
}

/* When image is loaded, hide placeholder */
.approach-image-container:has(.approach-image[src]:not([src=""])) .approach-image-placeholder {
    display: none;
}

.approach-image-container:has(.approach-image[src]:not([src=""])) .approach-image {
    display: block !important;
}

/* Decorative Pendant Lights */
.pendant-light {
    position: absolute;
    top: 0;
    z-index: 1;
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.pendant-light.left {
    left: 40px;
    width: 80px;
    height: 180px;
}

.pendant-light.right {
    right: 40px;
    width: 100px;
    height: 220px;
}

.pendant-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: top;
    opacity: 0.3;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.pendant-svg-container {
    width: 100%;
    height: 100%;
}

.pendant-light svg {
    width: 100%;
    height: 100%;
}

/* Hide SVG when image is loaded */
.pendant-light:has(.pendant-image[src]:not([src=""])) .pendant-svg-container {
    display: none;
}

.pendant-light:has(.pendant-image[src]:not([src=""])) .pendant-image {
    display: block !important;
}

/* Nos Réalisations Section */
.realisations {
    background-color: var(--color-white);
    padding: 100px 0 0;
    position: relative;
}

.realisations-top {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-bottom: 0;
}

.realisations-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    position: relative;
    margin-top: 0;
}

.realisation-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 800px;
}

.panel-title {
    font-family: var(--font-body);
    font-size: 32px;
    color: var(--color-primary);
    font-weight: 700;
    margin-bottom: 30px;
    padding: 0 30px;
    text-align: left;
}

.panel-vertical-text {
    position: absolute;
    left: 30px;
    top: 100px;
    z-index: 2;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    display: flex;
    flex-direction: column;
    gap: 15px;
    pointer-events: none;
}

.panel-vertical-text p {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-primary);
    letter-spacing: 3px;
    margin: 0;
    line-height: 1.4;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.panel-image-container {
    flex: 1;
    position: relative;
    width: 100%;
    overflow: hidden;
}

.panel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
    transform-origin: center;
    animation: realisationFlow 18s ease-in-out infinite;
    will-change: transform;
    transition: transform 0.6s ease, filter 0.6s ease;
}

.realisation-panel:hover .panel-image,
.realisation-panel-bottom:hover .panel-image {
    animation-play-state: running;
    transform: scale(1.08) translateY(-12px);
    filter: brightness(0.85) saturate(0.9);
    box-shadow: 0 35px 60px rgba(0, 0, 0, 0.3);
}

@keyframes realisationFlow {
    0% {
        transform: scale(1.02) translateY(0);
    }
    35% {
        transform: scale(1.06) translateY(-12px);
    }
    70% {
        transform: scale(1.04) translateY(8px);
    }
    100% {
        transform: scale(1.02) translateY(0);
    }
}

.panel-image-container:has(.panel-image[src]:not([src=""])) .panel-image {
    display: block;
}

.panel-image-container:has(.panel-image[src]:not([src=""])) .panel-placeholder {
    display: none;
}

@media (prefers-reduced-motion: reduce) {
    .panel-image {
        animation: none;
        transform: none;
    }
}

.panel-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-cream) 0%, var(--color-light-brown) 100%);
    color: var(--color-primary);
}

.panel-placeholder svg {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
}

.panel-placeholder p {
    font-size: 16px;
    font-weight: 500;
    color: var(--color-primary);
    opacity: 0.7;
}

/* ========================== */
/*   PAGE ÉBÉNISTERIE DETAIL  */
/* ========================== */
.ebene-page {
    background-color: #fdfbf8;
}

.ebene-hero {
    padding: 160px 0 110px;
    background: linear-gradient(120deg, #f4ede6 0%, #faf7f3 55%, #ffffff 100%);
}

.ebene-hero-content {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 70px;
    align-items: center;
    min-height: 85vh;
}

.ebene-hero-block {
    background: #f4f2ef;
    padding: 60px;
    border-radius: 32px;
    box-shadow: 0 35px 120px rgba(0, 0, 0, 0.1);
}

.ebene-hero-block h1 {
    font-family: var(--font-heading);
    font-size: 56px;
    line-height: 1.1;
    color: var(--color-primary);
    margin-bottom: 24px;
}

.ebene-hero-block p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-text-light);
    margin-bottom: 30px;
}

.ebene-hero-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.ebene-hero-meta span {
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.55);
}

.ebene-hero-meta strong {
    font-size: 18px;
    color: var(--color-primary);
}

.ebene-hero-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 45px 140px rgba(0, 0, 0, 0.15);
    object-fit: cover;
    height: 80vh;
}

.ebene-hero-subtitle,
.ebene-tag {
    letter-spacing: 3px;
    font-size: 13px;
    text-transform: uppercase;
    color: var(--color-light-brown);
    font-weight: 600;
    margin-bottom: 18px;
    display: inline-block;
}

.ebene-intro {
    padding: 80px 0;
}

.ebene-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.ebene-intro-text h2 {
    font-family: var(--font-heading);
    font-size: 44px;
    line-height: 1.2;
    color: var(--color-primary);
    margin-bottom: 25px;
}

.ebene-intro-text p {
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: 15px;
}

.ebene-divider {
    width: 80px;
    height: 1px;
    background-color: var(--color-secondary);
    margin: 20px 0;
}

.ebene-intro-image img {
    width: 100%;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.12);
}

.ebene-gallery {
    padding: 80px 0;
    background: #faf7f3;
}

.ebene-gallery-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 40px;
}

.ebene-gallery-header h2 {
    font-family: var(--font-heading);
    font-size: 42px;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.ebene-gallery-header p {
    color: var(--color-text-light);
    line-height: 1.7;
}

.ebene-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 240px;
    gap: 22px;
}

.ebene-gallery-item {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.08);
}

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

.ebene-gallery-item:hover img {
    transform: scale(1.07);
}

.ebene-gallery-item figcaption {
    position: absolute;
    left: 18px;
    bottom: 18px;
    color: #fff;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.ebene-gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.ebene-gallery-item.tall {
    grid-row: span 2;
}

.ebene-gallery-item.wide {
    grid-column: span 2;
}

.ebene-projects {
    padding: 60px 0 40px;
}

.ebene-category {
    margin-bottom: 60px;
}

.ebene-category-head h3 {
    font-family: var(--font-heading);
    font-size: 38px;
    color: var(--color-primary);
    margin-bottom: 30px;
}

.ebene-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.ebene-card {
    background-color: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 35px 90px rgba(0, 0, 0, 0.07);
    display: flex;
    flex-direction: column;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.ebene-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 45px 120px rgba(0, 0, 0, 0.1);
}

.ebene-card-image img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.ebene-card-body {
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ebene-card-body h4 {
    font-size: 22px;
    color: var(--color-primary);
    font-family: var(--font-heading);
}

.ebene-card-body p {
    color: var(--color-text-light);
    line-height: 1.7;
}

.ebene-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.ebene-meta-grid span {
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.45);
}

.ebene-meta-grid strong {
    font-size: 15px;
    color: var(--color-primary);
}

.ebene-cta {
    padding: 90px 0;
}

.ebene-cta-content {
    background: radial-gradient(circle at top left, rgba(255,255,255,0.95) 0%, rgba(214,185,150,0.2) 100%);
    border-radius: 28px;
    padding: 60px 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.08);
}

.ebene-cta-content h3 {
    font-size: 32px;
    line-height: 1.4;
    color: var(--color-primary);
    margin-top: 10px;
}

.ebene-cta-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-link {
    color: var(--color-secondary);
    text-decoration: none;
    font-weight: 600;
    position: relative;
}

.btn-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 100%;
    height: 2px;
    background-color: var(--color-secondary);
}
.realisation-panel-bottom {
    position: relative;
    min-height: 550px;
}

.realisation-panel-bottom.left {
    grid-column: 1;
}

.realisation-panel-bottom.right {
    grid-column: 2;
}

.realisation-panel-bottom .panel-image-container {
    width: 100%;
    height: 100%;
    min-height: 550px;
}

/* Pourquoi nous choisir - Overlay intégré */
.why-choose-overlay {
    position: absolute;
    left: 0;
    top: 0;
    width: 50%;
    height: 100%;
    z-index: 10;
    display: flex;
    align-items: center;
}

.why-choose-text {
    background-color: var(--color-primary);
    padding: 50px 40px;
    border-radius: 0;
    color: var(--color-white);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.why-choose-title {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: 25px;
    text-align: left;
}

.why-choose-main-text {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 40px;
    line-height: 1.3;
    text-align: center;
}

.why-choose-points {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 35px 25px;
}

.why-choose-point {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.why-choose-icon {
    width: 45px;
    height: 45px;
    flex-shrink: 0;
    color: var(--color-texte);
}

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

.why-choose-point p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-white);
    opacity: 0.95;
    margin: 0;
}

/* Galerie Supplémentaire */
.gallery-extra {
    background-color: var(--color-white);
    padding: 0;
    margin-top: 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    aspect-ratio: 4/3;
}

.gallery-item:hover {
    z-index: 5;
    transform: scale(1.05);
}

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

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: none;
}

.gallery-image-container:has(.gallery-image[src]:not([src=""])) .gallery-image {
    display: block;
}

.gallery-image-container:has(.gallery-image[src]:not([src=""])) .gallery-placeholder {
    display: none;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.1);
}

.gallery-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-cream) 0%, var(--color-light-brown) 100%);
    color: var(--color-primary);
}

.gallery-placeholder svg {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
}

.gallery-placeholder p {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-primary);
    opacity: 0.7;
}

/* Partners Logos Section */
.partners {
    background-color: var(--color-white);
    padding: 60px 0;
    overflow: hidden;
    position: relative;
}

.partners-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.partners-track {
    display: flex;
    gap: 60px;
    animation: scroll-logos 30s linear infinite;
    will-change: transform;
}

.partner-logo {
    flex-shrink: 0;
    width: 200px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: var(--transition);
    position: relative;
}

.partner-logo:hover {
    opacity: 1;
    transform: scale(1.05);
}

.partner-logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    display: block;
}

.logo-placeholder {
    font-family: var(--font-body);
    font-size: 24px;
    color: var(--color-light-brown);
    font-weight: 600;
    text-align: center;
    padding: 20px;
    border: 2px solid var(--color-light-brown);
    border-radius: 8px;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
}

.partner-logo-image.is-broken {
    display: none;
}

.partner-logo-image.is-broken + .logo-placeholder {
    display: flex;
}

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

/* Nos Expertises (cards + image) */
.expertises-section {
    background-color: #F5F5F5;
    padding: 90px 0;
}

.expertises-layout {
    display: grid;
    grid-template-columns: 1.1fr 1.4fr;
    gap: 60px;
    align-items: center;
}

.expertises-image {
    width: 100%;
    height: 100%;
}

.expertises-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.expertises-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.expertises-title {
    font-family: var(--font-body);
    font-size: 34px;
    font-weight: 700;
    color: var(--color-text);
}

.expertises-subtitle {
    font-size: 14px;
    color: var(--color-text-light);
    margin-bottom: 10px;
}

.expertises-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.expertise-card {
    background: var(--color-white);
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    gap: 12px;
    border: 1px solid rgba(0,0,0,0.05);
}

.expertise-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.expertise-num {
    font-weight: 600;
    color: var(--color-text-light);
}

.expertise-card-title {
    font-family: var(--font-body);
    font-size: 18px;
    color: var(--color-text);
}

.expertise-card-text {
    font-size: 14px;
    color: var(--color-text-light);
}

.expertise-btn {
    align-self: start;
    padding: 10px 16px;
    background-color: var(--color-primary);
    color: var(--color-white);
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    transition: var(--transition);
    margin-top: 6px;
}

.expertise-btn:hover {
    background-color: #4f311a;
}

/* Contact Section */
.contact {
    background-color: #F5F5F5;
    padding: 80px 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: 600px;
}

.contact-map {
    width: 100%;
    height: 100%;
    min-height: 600px;
    position: relative;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.contact-form-section {
    background-color: var(--color-white);
    padding: 60px 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-form-container {
    width: 100%;
    max-width: 500px;
}

.contact-title {
    font-family: var(--font-body);
    font-size: 36px;
    font-weight: 700;
    color: #2C2C2C;
    margin-bottom: 10px;
}

.contact-subtitle {
    font-size: 12px;
    font-weight: 500;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 40px;
}

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

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

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    width: 100%;
}

.form-group.half-width {
    width: 100%;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #E0E0E0;
    border-radius: 4px;
    font-size: 15px;
    font-family: var(--font-body);
    color: #2C2C2C;
    background-color: var(--color-white);
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-light-brown);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #999;
}

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

.btn-submit {
    width: 100%;
    padding: 16px;
    background-color: #2C2C2C;
    color: var(--color-white);
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 10px;
}

.btn-submit:hover {
    background-color: #1a1a1a;
    transform: translateY(-2px);
}

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

/* Footer */
.footer {
    background: linear-gradient(180deg, var(--color-primary) 0%, #1a1a1a 100%);
    color: var(--color-white);
    padding: 80px 0 40px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(196, 165, 123, 0.5), transparent);
}

.footer-main {
    display: grid;
    grid-template-columns: 1.2fr 2fr;
    gap: 80px;
    margin-bottom: 50px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo-image {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.footer-tagline {
    font-size: 15px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 35px;
    max-width: 280px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
}

.social-link:hover {
    color: var(--color-accent);
    border-color: var(--color-accent);
    background: rgba(196, 165, 123, 0.1);
    transform: translateY(-3px);
}

.social-link svg {
    width: 18px;
    height: 18px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-title {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 25px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 12px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--color-light-brown);
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-list li {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-list li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
}

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

.footer-list li a:hover {
    color: var(--color-texte);
    padding-left: 5px;
}

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

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.footer-contact li svg {
    width: 18px;
    height: 18px;
    color: var(--color-texte);
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-contact li span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.6;
}

.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    margin: 50px 0 30px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
}

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

.footer-legal .separator {
    color: rgba(255, 255, 255, 0.3);
    font-size: 12px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }
    
    .stats {
        flex-direction: row;
        justify-content: space-around;
    }
    
    .decorative-vase {
        display: none;
    }
    
    .ebene-hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .ebene-hero-block {
        text-align: center;
    }
    
    .ebene-hero-meta {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .ebene-hero-image {
        order: -1;
        height: 60vh;
    }
    
    .ebene-intro-grid {
        grid-template-columns: 1fr;
    }
    
    .ebene-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .ebene-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ebene-cta-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 992px) {
    .hero {
        min-height: 70vh;
    }
    
    .intro {
        margin-top: -60px;
        padding-bottom: 70px;
    }
    
    .hero-slide-content {
        max-width: 560px;
        padding: 140px 40px 80px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-slider-controls {
        right: 25px;
    }
    
    .intro-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .expertise-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .expertise-blocks {
        justify-content: center;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    
    .approach-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .approach-title {
        font-size: 36px;
    }
    
    .realisations-top {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .realisation-panel {
        min-height: 600px;
    }
    
    .panel-title {
        font-size: 28px;
        padding: 0 20px;
    }
    
    .panel-vertical-text {
        left: 20px;
        top: 80px;
    }
    
    .realisations-bottom {
        grid-template-columns: 1fr;
    }
    
    .realisation-panel-bottom.left,
    .realisation-panel-bottom.right {
        grid-column: 1;
        min-height: 500px;
    }
    
    .why-choose-overlay {
        position: relative;
        width: 100%;
        height: auto;
        margin-top: 40px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0;
    }
    
    .ebene-hero {
        padding: 130px 0 80px;
    }
    
    .ebene-hero-block h1 {
        font-size: 44px;
    }
    
    .ebene-hero-meta {
        grid-template-columns: 1fr 1fr;
    }
    
    .ebene-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
    }
    
    .ebene-cards {
        grid-template-columns: 1fr;
    }
    
    .ebene-card-image img {
        height: 220px;
    }
}

@media (max-width: 768px) {
    .intro-grid {
        grid-template-columns: 1fr;
    }
    .container,
    .container-large {
        padding: 0 20px;
    }
    
    .header-content {
        flex-wrap: wrap;
    }
    
    .nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        background-color: var(--color-white);
        padding: 30px;
        transition: var(--transition);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }
    
    .nav.active {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }
    
    .intro {
        margin-top: -40px;
        padding-bottom: 60px;
    }
    
    .hero-slide-content {
        padding: 120px 20px 60px;
        text-align: left;
    }
    
    .hero-title {
        font-size: 30px;
    }
    
    .hero-slider-controls {
        flex-direction: row;
        gap: 8px;
        bottom: 25px;
        top: auto;
        right: 50%;
        transform: translateX(50%);
    }
    
    .logo h1 {
        font-size: 36px;
    }
    
    .footer-logo {
        font-size: 36px;
    }
    
    .about-title {
        font-size: 28px;
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    .approach {
        padding: 60px 0 50px;
    }
    
    .approach-title {
        font-size: 32px;
    }
    
    .approach-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .approach-card {
        padding: 30px 25px;
    }
    
    .approach-number {
        font-size: 36px;
    }
    
    .pendant-light {
        display: none;
    }
    
    .partner-logo {
        width: 150px;
        height: 90px;
    }
    
    .logo-placeholder {
        font-size: 18px;
        padding: 15px;
    }
    
    .realisations {
        padding: 60px 0;
    }
    
    .realisation-panel {
        min-height: 500px;
    }
    
    .panel-title {
        font-size: 24px;
        padding: 0 15px;
        margin-bottom: 20px;
    }
    
    .panel-vertical-text {
        left: 15px;
        top: 70px;
    }
    
    .panel-vertical-text p {
        font-size: 12px;
    }
    
    .realisation-panel-bottom {
        min-height: 400px;
    }
    
    .why-choose-overlay {
        margin-top: 30px;
    }
    
    .why-choose-text {
        padding: 40px 30px;
    }
    
    .why-choose-title {
        font-size: 16px;
    }
    
    .why-choose-main-text {
        font-size: 24px;
    }
    
    .why-choose-points {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .gallery-extra {
        padding: 0;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .gallery-item {
        aspect-ratio: 16/9;
    }

    .ebene-hero {
        padding: 120px 0 70px;
    }
    
    .ebene-hero-block h1 {
        font-size: 32px;
    }
    
    .ebene-hero-meta {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .ebene-intro-grid {
        gap: 30px;
    }
    
    .ebene-gallery-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .ebene-gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 180px;
    }
    
    .ebene-card-image img {
        height: 200px;
    }
    
    .ebene-cta-content {
        padding: 32px 24px;
    }
    
    .ebene-cta-actions {
        width: 100%;
        flex-direction: column;
    }

    .expertises-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .expertises-grid {
        grid-template-columns: 1fr;
    }
    
    .contact {
        padding: 60px 0;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .contact-map {
        min-height: 400px;
        order: 2;
    }
    
    .contact-form-section {
        padding: 40px 30px;
        order: 1;
    }
    
    .contact-title {
        font-size: 28px;
    }
    
    .contact-subtitle {
        font-size: 11px;
        margin-bottom: 30px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer {
        padding: 60px 0 30px;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-legal {
        justify-content: center;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-text,
.value-card,
.about-text {
    animation: fadeIn 0.8s ease-out;
}

.value-card:nth-child(2) {
    animation-delay: 0.2s;
}

.value-card:nth-child(3) {
    animation-delay: 0.4s;
}

/* ========================================
   REALISATIONS PAGE STYLES
   ======================================== */

/* Hero Section */
.realisations-hero {
    padding: 105px 0 35px;
    background: linear-gradient(135deg, var(--color-cream) 0%, #f8f6f3 100%);
    position: relative;
    overflow: hidden;
}

.realisations-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect width="1" height="1" x="50" y="50" fill="%236B4423" opacity="0.03"/></svg>');
    background-size: 30px 30px;
    pointer-events: none;
}

.realisations-hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.realisations-hero-tag {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 12px;
    display: inline-block;
}

.realisations-hero-title {
    font-family: var(--font-body);
    font-size: 44px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 14px;
    line-height: 1.15;
}

.realisations-hero-description {
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    opacity: 0.85;
    max-width: 600px;
    margin: 0 auto;
}

/* Filters */
.realisations-filters {
    padding: 34px 0;
    background: var(--color-white);
    border-bottom: 1px solid rgba(107, 68, 35, 0.1);
    position: sticky;
    top: 80px;
    z-index: 10;
    transition: all 0.3s ease;
}

.filters-wrapper {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 30px;
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 30px;
    transition: all 0.3s ease;
    font-family: var(--font-body);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(107, 68, 35, 0.2);
}

/* Gallery */
.realisations-gallery {
    padding: 60px 0 100px;
    background: var(--color-white);
}

.gallery-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    align-items: start;
}

.gallery-project {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: var(--color-cream);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    transform: scale(1);
}

.gallery-project--featured {
    grid-column: span 2;
}

.gallery-project--featured .project-image-wrapper {
    aspect-ratio: 8 / 5;
}

.gallery-project {
    box-shadow: 0 4px 18px rgba(33, 26, 20, 0);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-project:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(33, 26, 20, 0.18);
}

/* Staggered entrance for the gallery grid: each card animates a beat after its neighbours */
.gallery-masonry .gallery-project:nth-child(3n+2) {
    transition-delay: 0.09s;
}

.gallery-masonry .gallery-project:nth-child(3n+3) {
    transition-delay: 0.18s;
}

.gallery-project.hidden {
    opacity: 0;
    transform: scale(0.8);
    position: absolute;
    pointer-events: none;
}

.project-image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    cursor: pointer;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-project:hover .project-image {
    transform: scale(1.08);
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 60%, transparent 100%);
    padding: 40px 30px 30px;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-project:hover .project-overlay {
    transform: translateY(0);
}

.project-info {
    color: var(--color-white);
}

.project-category {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-accent);
    display: inline-block;
    margin-bottom: 10px;
}

.project-title {
    font-family: var(--font-body);
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--color-white);
    line-height: 1.3;
}

.project-description {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

/* CTA Section */
.realisations-cta {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    position: relative;
    overflow: hidden;
}

.realisations-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.cta-text h2 {
    font-family: var(--font-body);
    font-size: 42px;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 15px;
    line-height: 1.2;
}

.cta-text p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .gallery-masonry {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 25px;
    }

    .realisations-hero-title {
        font-size: 52px;
    }
}

@media (max-width: 768px) {
    .realisations-hero {
        padding: 100px 0 40px;
    }

    .realisations-hero-title {
        font-size: 32px;
    }

    .realisations-hero-description {
        font-size: 16px;
    }

    .realisations-filters {
        padding: 40px 0;
        position: relative;
        top: 0;
    }

    .filters-wrapper {
        gap: 10px;
    }

    .filter-btn {
        padding: 10px 20px;
        font-size: 12px;
    }

    .gallery-masonry {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }

    .gallery-project--featured .project-image-wrapper {
        aspect-ratio: 4 / 5;
    }

    .realisations-gallery {
        padding: 60px 0;
    }

    .realisations-cta {
        padding: 80px 0;
    }

    .cta-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .cta-text h2 {
        font-size: 32px;
    }

    .cta-text p {
        font-size: 16px;
    }

    .project-overlay {
        transform: translateY(0);
        background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.5) 50%, transparent 100%);
        padding: 30px 20px 20px;
    }

    .project-title {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .realisations-hero-title {
        font-size: 32px;
    }

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

    .gallery-project--featured {
        grid-column: span 1;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 11px;
    }

    .cta-text h2 {
        font-size: 28px;
    }
}

/* ========================================
   Lightbox — Réalisations gallery
   ======================================== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: rgba(16, 15, 14, 0.94);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 1100px;
    max-height: 88vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    background: var(--color-cream);
    border-radius: 6px;
    overflow: hidden;
    transform: scale(0.96);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.lightbox-content img {
    width: 100%;
    max-height: 66vh;
    object-fit: contain;
    background: #000;
    display: block;
}

.lightbox-content figcaption {
    padding: 22px 30px 26px;
    text-align: left;
}

.lightbox-category {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-accent);
    display: inline-block;
    margin-bottom: 8px;
}

.lightbox-content h3 {
    font-family: var(--font-body);
    font-size: 22px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 8px;
}

.lightbox-content p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-text-light);
}

.lightbox-close,
.lightbox-nav {
    position: absolute;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--color-white);
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

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

.lightbox-close {
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    font-size: 26px;
    line-height: 1;
    z-index: 2;
}

.lightbox-nav {
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    font-size: 30px;
    line-height: 1;
    z-index: 2;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

@media (max-width: 768px) {
    .lightbox {
        padding: 16px;
    }

    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 22px;
    }

    .lightbox-prev {
        left: 8px;
    }

    .lightbox-next {
        right: 8px;
    }

    .lightbox-content figcaption {
        padding: 16px 18px 20px;
    }

    .lightbox-content h3 {
        font-size: 18px;
    }
}

