/* ============================================
   MENUISERIE PHILIPPE — Design System
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600&display=swap');

/* --- CSS Variables --- */
:root {
    --color-cream: #F5F0E8;
    --color-cream-dark: #EDE5D6;
    --color-wood: #8B5E3C;
    --color-wood-dark: #5C3A1E;
    --color-wood-light: #C4956A;
    --color-charcoal: #1A1714;
    --color-charcoal-mid: #2D2926;
    --color-charcoal-light: #4A443E;
    --color-accent: #D4A853;
    --color-accent-light: #F0C878;
    --color-white: #FFFFFF;
    --color-gray: #8A847C;
    --color-gray-light: #C8C2BA;
    --color-success: #4CAF50;
    --color-error: #E53E3E;

    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', -apple-system, sans-serif;

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --shadow-sm: 0 2px 8px rgba(26, 23, 20, 0.08);
    --shadow-md: 0 8px 32px rgba(26, 23, 20, 0.12);
    --shadow-lg: 0 20px 60px rgba(26, 23, 20, 0.18);
    --shadow-wood: 0 8px 32px rgba(139, 94, 60, 0.25);

    --trans-fast: 0.2s ease;
    --trans-med: 0.4s ease;
    --trans-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);

    --max-width: 1200px;
    --section-padding: 100px 24px;
}

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

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

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

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

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

ul {
    list-style: none;
}

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

/* --- Typography --- */
h1,
h2,
h3,
h4 {
    font-family: var(--font-serif);
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
}

h2 {
    font-size: clamp(1.8rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
}

h4 {
    font-size: 1.1rem;
}

p {
    font-size: 1rem;
    color: var(--color-charcoal-light);
    line-height: 1.8;
}

/* --- Container --- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Section Header --- */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header .eyebrow {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-wood);
    margin-bottom: 12px;
}

.section-header h2 {
    color: var(--color-charcoal);
    margin-bottom: 16px;
}

.section-header p {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.05rem;
}

.divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-wood), var(--color-accent));
    margin: 20px auto 0;
    border-radius: 2px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    transition: all var(--trans-med);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.15);
    opacity: 0;
    transition: opacity var(--trans-fast);
}

.btn:hover::before {
    opacity: 1;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-wood), var(--color-wood-dark));
    color: var(--color-white);
    box-shadow: var(--shadow-wood);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(139, 94, 60, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--color-white);
    border: 2px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--color-white);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--color-wood);
    border: 2px solid var(--color-wood);
}

.btn-outline:hover {
    background: var(--color-wood);
    color: var(--color-white);
    transform: translateY(-2px);
}

.btn-accent {
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
    color: var(--color-charcoal);
    box-shadow: 0 8px 24px rgba(212, 168, 83, 0.35);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(212, 168, 83, 0.5);
}

/* ============================================
   COOKIE BANNER
   ============================================ */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-charcoal-mid);
    color: var(--color-white);
    padding: 20px 24px;
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.3);
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

#cookie-banner.show {
    transform: translateY(0);
}

#cookie-banner p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    margin: 0;
    flex: 1;
    min-width: 200px;
}

#cookie-banner a {
    color: var(--color-accent);
}

.cookie-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.btn-cookie-accept {
    background: var(--color-accent);
    color: var(--color-charcoal);
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--trans-fast);
}

.btn-cookie-accept:hover {
    background: var(--color-accent-light);
}

.btn-cookie-decline {
    color: var(--color-gray-light);
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    text-decoration: underline;
    transition: color var(--trans-fast);
}

.btn-cookie-decline:hover {
    color: var(--color-white);
}

/* ============================================
   NAVIGATION
   ============================================ */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 24px;
    transition: all var(--trans-med);
}

#navbar.scrolled {
    background: rgba(26, 23, 20, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 12px 24px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

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

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

.nav-logo-img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    filter: brightness(1.05);
    transition: transform var(--trans-fast);
}

.nav-logo:hover .nav-logo-img {
    transform: rotate(-5deg) scale(1.05);
}

.nav-logo .logo-main {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    color: var(--color-white);
    display: block;
    line-height: 1;
}

.nav-logo .logo-sub {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-accent);
    font-weight: 500;
}

.footer-logo-img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    margin-bottom: 12px;
    opacity: 0.9;
}

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

.nav-menu a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    position: relative;
    padding-bottom: 4px;
    transition: color var(--trans-fast);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width var(--trans-med);
}

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

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

.nav-cta {
    background: var(--color-wood) !important;
    color: var(--color-white) !important;
    padding: 10px 22px;
    border-radius: var(--radius-md);
    font-weight: 600 !important;
    transition: all var(--trans-fast) !important;
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    background: var(--color-wood-dark) !important;
    transform: translateY(-1px);
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}

.nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-white);
    border-radius: 2px;
    transition: all var(--trans-med);
}

.nav-hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.nav-hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile call button */
.mobile-call-btn {
    display: none;
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 999;
    background: var(--color-wood);
    color: var(--color-white);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(139, 94, 60, 0.5);
    font-size: 1.4rem;
    transition: all var(--trans-fast);
    animation: pulse-ring 2s infinite;
}

.mobile-call-btn:hover {
    transform: scale(1.1);
}

@keyframes pulse-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(139, 94, 60, 0.5), 0 4px 20px rgba(139, 94, 60, 0.5);
    }

    70% {
        box-shadow: 0 0 0 14px rgba(139, 94, 60, 0), 0 4px 20px rgba(139, 94, 60, 0.5);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(139, 94, 60, 0), 0 4px 20px rgba(139, 94, 60, 0.5);
    }
}

/* ============================================
   HERO SECTION
   ============================================ */
#hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--color-charcoal);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('images/hero.jpg');
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    transition: transform 8s ease-out;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(26, 23, 20, 0.80) 0%,
            rgba(26, 23, 20, 0.55) 50%,
            rgba(90, 50, 20, 0.40) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 120px 24px 80px;
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(212, 168, 83, 0.2);
    border: 1px solid rgba(212, 168, 83, 0.5);
    color: var(--color-accent-light);
    padding: 8px 16px;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 24px;
    backdrop-filter: blur(8px);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease 0.2s forwards;
}

.hero-badge::before {
    content: '✦';
    color: var(--color-accent);
}

.hero-content h1 {
    color: var(--color-white);
    margin-bottom: 8px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease 0.4s forwards;
}

.hero-content h1 em {
    font-style: italic;
    color: var(--color-accent-light);
}

.hero-subtitle {
    font-family: var(--font-sans);
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 32px;
    font-weight: 300;
    letter-spacing: 0.02em;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease 0.6s forwards;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease 0.8s forwards;
}

.hero-stats {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease 1s forwards;
}

.hero-stat {
    border-left: 2px solid var(--color-accent);
    padding-left: 16px;
}

.hero-stat .stat-num {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--color-white);
    line-height: 1;
}

.hero-stat .stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 4px;
}

.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    animation: bounce 2s infinite;
}

.scroll-indicator::after {
    content: '';
    display: block;
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.6), transparent);
}

/* ============================================
   ABOUT SECTION
   ============================================ */
#about {
    padding: var(--section-padding);
    background: var(--color-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image-wrap {
    position: relative;
}

.about-image-wrap img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.about-badge {
    position: absolute;
    bottom: -24px;
    right: -24px;
    background: var(--color-wood);
    color: var(--color-white);
    padding: 24px 28px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-wood);
}

.about-badge .badge-num {
    display: block;
    font-family: var(--font-serif);
    font-size: 2.8rem;
    line-height: 1;
    color: var(--color-accent-light);
}

.about-badge .badge-txt {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.85;
    margin-top: 4px;
}

.about-content .eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-wood);
    margin-bottom: 12px;
}

.about-content h2 {
    margin-bottom: 20px;
}

.about-content p {
    margin-bottom: 16px;
}

.about-quote {
    border-left: 3px solid var(--color-accent);
    padding: 16px 20px;
    margin: 28px 0;
    background: var(--color-cream);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.about-quote p {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.05rem;
    color: var(--color-charcoal-mid);
    margin: 0;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 32px;
}

.about-stat-card {
    background: var(--color-cream);
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-cream-dark);
    text-align: center;
    transition: all var(--trans-med);
}

.about-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-wood-light);
}

.about-stat-card .num {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--color-wood);
    display: block;
}

.about-stat-card .label {
    font-size: 0.85rem;
    color: var(--color-charcoal-light);
    margin-top: 4px;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
#services {
    padding: var(--section-padding);
    background: var(--color-cream);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}

.service-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--trans-slow);
    border: 1px solid transparent;
    position: relative;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-wood), var(--color-accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--trans-med);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-cream-dark);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon-wrap {
    padding: 32px 32px 0;
    display: flex;
    align-items: center;
    gap: 16px;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-cream), var(--color-white));
    border: 2px solid var(--color-wood-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--color-wood);
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(139, 94, 60, 0.1);
    transition: all var(--trans-med);
}

.service-icon svg {
    width: 28px;
    height: 28px;
    opacity: 0.9;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    background: var(--color-wood);
    border-color: var(--color-wood);
    color: var(--color-white);
    box-shadow: var(--shadow-wood);
}

.service-card-body {
    padding: 20px 32px 32px;
}

.service-card-body h3 {
    margin-bottom: 10px;
    color: var(--color-charcoal);
}

.service-card-body p {
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.service-tag {
    background: var(--color-cream);
    color: var(--color-charcoal-light);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.03em;
}

/* ============================================
   GALLERY SECTION
   ============================================ */
#gallery {
    padding: var(--section-padding);
    background: var(--color-charcoal);
}

#gallery .section-header h2 {
    color: var(--color-white);
}

#gallery .section-header p {
    color: rgba(255, 255, 255, 0.6);
}

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 10px 24px;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all var(--trans-fast);
    background: transparent;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--color-wood);
    color: var(--color-white);
    border-color: var(--color-wood);
    box-shadow: var(--shadow-wood);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    cursor: pointer;
    aspect-ratio: 4/3;
    background: var(--color-charcoal-mid);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 23, 20, 0.85) 0%, transparent 60%);
    opacity: 0;
    transition: opacity var(--trans-med);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    pointer-events: none;
}

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

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

.gallery-item-overlay h4 {
    color: var(--color-white);
    margin-bottom: 4px;
}

.gallery-item-overlay span {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.gallery-zoom-icon {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 1rem;
    opacity: 0;
    transition: opacity var(--trans-fast);
    pointer-events: auto;
    z-index: 10;
}

.gallery-item:hover .gallery-zoom-icon {
    opacity: 1;
}

.gallery-item.hidden {
    display: none;
}

.gallery-item.mobile-hidden {
    display: none !important;
}

/* Bouton Voir plus galerie */
.gallery-more-wrap {
    display: none;
    justify-content: center;
    margin-top: 28px;
}

/* Modale de la Galerie sur Ordinateur */
.gallery-grid.gallery-modal-active {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90vw;
    max-width: 1200px;
    height: 85vh;
    background: var(--color-charcoal);
    padding: 30px;
    border-radius: var(--radius-lg);
    z-index: 10000;
    overflow-y: auto;
    box-shadow: 0 10px 50px rgba(0,0,0,0.8);
    display: grid !important; /* Force grid layout */
}

body.gallery-modal-open {
    overflow: hidden;
}

body.gallery-modal-open::after {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 9999;
}

.gallery-modal-close {
    position: fixed;
    top: 20px;
    right: 40px;
    font-size: 2.5rem;
    color: var(--color-white);
    cursor: pointer;
    z-index: 10001;
    display: none;
    transition: color 0.3s;
}

.gallery-modal-close:hover {
    color: var(--color-wood);
}

body.gallery-modal-open .gallery-modal-close {
    display: block;
}

@media (max-width: 768px) {
    .gallery-more-wrap {
        display: flex;
    }
}

/* Lightbox */
#lightbox {
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--trans-med);
    backdrop-filter: blur(8px);
}

#lightbox.open {
    opacity: 1;
    pointer-events: auto;
}

#lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
    transform: scale(0.95);
    transition: transform var(--trans-med);
}

#lightbox.open img {
    transform: scale(1);
}

#lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--color-white);
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--trans-fast);
}

#lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

#lightbox-prev,
#lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--color-white);
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--trans-fast);
}

#lightbox-prev {
    left: 20px;
}

#lightbox-next {
    right: 20px;
}

#lightbox-prev:hover,
#lightbox-next:hover {
    background: rgba(255, 255, 255, 0.25);
}

#lightbox-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
}

/* ============================================
   EXPERTISE SECTION
   ============================================ */
#expertise {
    padding: var(--section-padding);
    background: var(--color-cream-dark);
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.expertise-card {
    text-align: center;
    padding: 36px 24px;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--trans-slow);
}

.expertise-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.expertise-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--color-cream), var(--color-white));
    border: 2px solid var(--color-wood-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-wood);
    margin: 0 auto 20px;
    box-shadow: 0 8px 24px rgba(139, 94, 60, 0.15);
    transition: all var(--trans-med);
}

.expertise-icon svg {
    width: 32px;
    height: 32px;
    opacity: 0.9;
}

.expertise-card:hover .expertise-icon {
    transform: scale(1.1);
    background: var(--color-wood);
    border-color: var(--color-wood);
    color: var(--color-white);
    box-shadow: var(--shadow-wood);
}

.expertise-card h4 {
    color: var(--color-charcoal);
    margin-bottom: 8px;
}

.expertise-card p {
    font-size: 0.9rem;
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
#testimonials {
    padding: 60px 24px;
    background: var(--color-charcoal-mid);
    overflow: hidden;
}

#testimonials .section-header {
    margin-bottom: 40px;
}

#testimonials .section-header h2 {
    color: var(--color-white);
}

#testimonials .section-header p {
    color: rgba(255, 255, 255, 0.5);
}

.testimonials-track {
    display: flex;
    gap: 24px;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 32px;
    backdrop-filter: blur(8px);
    flex-shrink: 0;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.testimonial-stars {
    color: var(--color-accent);
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.testimonial-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 16px;
    line-height: 1.6;
    white-space: normal;
    word-break: break-word;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--color-wood), var(--color-accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--color-white);
    font-weight: 700;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .testimonial-card {
        padding: 24px;
    }
    .testimonial-text {
        font-size: 0.95rem;
    }
}

.testimonial-author-info .name {
    color: var(--color-white);
    font-weight: 600;
    font-size: 0.95rem;
}

.testimonial-author-info .location {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.82rem;
    margin-top: 2px;
}

.testimonials-controls {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.testimonials-controls button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-white);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--trans-fast);
}

.testimonials-controls button:hover {
    background: var(--color-wood);
}

/* ============================================
   CTA SECTION
   ============================================ */
#cta {
    padding: var(--section-padding);
    background: linear-gradient(135deg, var(--color-wood-dark) 0%, var(--color-wood) 50%, var(--color-charcoal-mid) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

#cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 168, 83, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

#cta h2 {
    color: var(--color-white);
    margin-bottom: 16px;
}

#cta p {
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 36px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.05rem;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
#contact {
    padding: var(--section-padding);
    background: var(--color-cream);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 60px;
    align-items: start;
}

.contact-info h3 {
    margin-bottom: 8px;
}

.contact-info p {
    margin-bottom: 28px;
}

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

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: var(--color-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-cream-dark);
    transition: all var(--trans-med);
}

.contact-item:hover {
    border-color: var(--color-wood-light);
    box-shadow: var(--shadow-sm);
    transform: translateX(4px);
}

.contact-item-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--color-cream), var(--color-cream-dark));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-item-text .label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-wood);
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

.contact-item-text a,
.contact-item-text span {
    color: var(--color-charcoal);
    font-size: 0.95rem;
    transition: color var(--trans-fast);
}

.contact-item-text a:hover {
    color: var(--color-wood);
}

.contact-map {
    margin-top: 20px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--color-cream-dark);
    height: 200px;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.form-honeypot {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    height: 0;
    width: 0;
    z-index: -1;
}

.contact-form-wrap {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-cream-dark);
}

.contact-form-wrap h3 {
    margin-bottom: 24px;
}

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

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

.form-group.full {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-charcoal-light);
    letter-spacing: 0.03em;
}

.form-group label .required {
    color: var(--color-wood);
    margin-left: 2px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 1.5px solid var(--color-cream-dark);
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--color-charcoal);
    background: var(--color-cream);
    transition: all var(--trans-fast);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-wood);
    background: var(--color-white);
    box-shadow: 0 0 0 3px rgba(139, 94, 60, 0.12);
}

.form-group input.error,
.form-group textarea.error {
    border-color: var(--color-error);
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

.form-group .error-msg {
    color: var(--color-error);
    font-size: 0.8rem;
    display: none;
}

.form-group .error-msg.show {
    display: block;
}

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

.form-group select {
    -webkit-appearance: auto;
    appearance: auto;
}

.form-honeypot {
    display: none !important;
}

.form-rgpd {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 16px 0;
}

.form-rgpd input {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    accent-color: var(--color-wood);
}

.form-rgpd label {
    font-size: 0.82rem;
    color: var(--color-charcoal-light);
}

.form-rgpd a {
    color: var(--color-wood);
    text-decoration: underline;
}

#form-status {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    display: none;
    margin-top: 12px;
}

#form-status.success {
    display: block;
    background: rgba(76, 175, 80, 0.1);
    color: var(--color-success);
    border: 1px solid rgba(76, 175, 80, 0.3);
}

#form-status.error {
    display: block;
    background: rgba(229, 62, 62, 0.1);
    color: var(--color-error);
    border: 1px solid rgba(229, 62, 62, 0.3);
}

/* ============================================
   FOOTER
   ============================================ */
#footer {
    background: var(--color-charcoal);
    color: rgba(255, 255, 255, 0.65);
    padding: 60px 24px 24px;
}

.footer-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 48px;
}

.footer-brand .logo-main {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--color-white);
    display: block;
    margin-bottom: 4px;
}

.footer-brand .logo-sub {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-accent);
    font-weight: 500;
    display: block;
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.9rem;
}

.footer-col h4 {
    color: var(--color-white);
    font-family: var(--font-serif);
    font-size: 1rem;
    margin-bottom: 16px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.9rem;
    transition: color var(--trans-fast);
}

.footer-col ul li a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    max-width: var(--max-width);
    margin: 0 auto;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.82rem;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.45);
    transition: color var(--trans-fast);
}

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

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.stagger-children>* {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.stagger-children.visible>*:nth-child(1) {
    opacity: 1;
    transform: none;
    transition-delay: 0s;
}

.stagger-children.visible>*:nth-child(2) {
    opacity: 1;
    transform: none;
    transition-delay: 0.1s;
}

.stagger-children.visible>*:nth-child(3) {
    opacity: 1;
    transform: none;
    transition-delay: 0.2s;
}

.stagger-children.visible>*:nth-child(4) {
    opacity: 1;
    transform: none;
    transition-delay: 0.3s;
}

.stagger-children.visible>*:nth-child(5) {
    opacity: 1;
    transform: none;
    transition-delay: 0.4s;
}

.stagger-children.visible>*:nth-child(6) {
    opacity: 1;
    transform: none;
    transition-delay: 0.5s;
}

/* --- Keyframes --- */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

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

/* ============================================
   RESPONSIVE — Tablet
   ============================================ */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px 24px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .about-image-wrap img {
        height: 380px;
    }

    .about-badge {
        bottom: -16px;
        right: -8px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .testimonial-card {
        min-width: calc(100% - 0px);
    }
}

/* ============================================
   RESPONSIVE — Mobile
   ============================================ */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px 20px;
    }

    /* Nav */
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: rgba(26, 23, 20, 0.97);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 100px 24px 40px;
        gap: 0;
        transform: translateY(-100%);
        transition: transform var(--trans-slow);
        z-index: -1;
    }

    .nav-menu.open {
        transform: translateY(0);
    }

    .nav-menu a {
        padding: 16px 0;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        width: 100%;
        text-align: center;
    }

    .nav-menu a::after {
        display: none;
    }

    .nav-cta {
        margin-top: 16px;
        padding: 14px 32px !important;
        border-radius: var(--radius-md) !important;
    }

    .nav-hamburger {
        display: flex;
    }

    /* Hero */
    .hero-stats {
        gap: 24px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    /* About */
    .about-stats {
        grid-template-columns: 1fr 1fr;
    }

    .about-badge {
        bottom: 16px;
        right: 16px;
    }

    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    /* Form */
    .form-grid {
        grid-template-columns: 1fr;
    }

    .contact-form-wrap {
        padding: 28px 20px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    /* Mobile call button */
    .mobile-call-btn {
        display: flex;
    }

    /* Cookie */
    #cookie-banner {
        flex-direction: column;
        text-align: center;
    }

    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }

    /* Testimonials */
    .testimonial-card {
        min-width: 100%;
        padding: 24px;
    }
    .testimonial-text {
        font-size: 0.95rem;
    }

    /* Expertise */
    .expertise-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* CTA */
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }

    .cta-actions .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

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

    .about-stats {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .hero-stat {
        padding-left: 12px;
    }
}

/* ============================================
   MENTIONS LÉGALES PAGE
   ============================================ */
.legal-hero {
    min-height: 260px;
    background: linear-gradient(135deg, var(--color-charcoal) 0%, var(--color-charcoal-mid) 100%);
    display: flex;
    align-items: flex-end;
    padding: 0 24px 48px;
}

.legal-hero-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
    padding-top: 100px;
}

.legal-hero h1 {
    color: var(--color-white);
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 8px;
}

.legal-hero .subtitle {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.legal-content {
    max-width: 860px;
    margin: 0 auto;
    padding: 60px 24px 100px;
}

.legal-content section {
    margin-bottom: 48px;
}

.legal-content h2 {
    font-size: 1.4rem;
    color: var(--color-charcoal);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-cream-dark);
}

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

.legal-content ul {
    list-style: disc;
    padding-left: 24px;
    margin-bottom: 12px;
}

.legal-content ul li {
    color: var(--color-charcoal-light);
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.legal-content a {
    color: var(--color-wood);
    text-decoration: underline;
}

.legal-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-wood);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 40px;
    transition: gap var(--trans-fast);
}

.legal-back:hover {
    gap: 12px;
}

/* ============================================
   COOKIE BANNER
   ============================================ */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--color-charcoal-mid);
    border-top: 2px solid var(--color-accent);
    padding: 16px 24px;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.35);
}

#cookie-banner.show {
    transform: translateY(0);
}

#cookie-banner-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

#cookie-text {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1;
    min-width: 260px;
}

#cookie-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
    margin-top: 1px;
}

#cookie-text p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.55;
    margin: 0;
}

#cookie-text a {
    color: var(--color-accent);
    text-decoration: underline;
    font-weight: 500;
    white-space: nowrap;
}

#cookie-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 10px 22px;
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cookie-btn-accept {
    background: var(--color-wood);
    color: #fff;
    border-color: var(--color-wood);
}

.cookie-btn-accept:hover {
    background: var(--color-wood-dark);
    border-color: var(--color-wood-dark);
    transform: translateY(-1px);
}

.cookie-btn-decline {
    background: transparent;
    color: rgba(255, 255, 255, 0.75);
    border-color: rgba(255, 255, 255, 0.3);
}

.cookie-btn-decline:hover {
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
}

@media (max-width: 600px) {
    #cookie-banner-inner {
        flex-direction: column;
        gap: 14px;
    }

    #cookie-actions {
        width: 100%;
        justify-content: flex-end;
    }
}