:root {
    --primary-color: #0A2342; /* Deep Navy */
    --secondary-color: #FF6600; /* Vibrant Orange for CTA */
    --accent-color: #1B4D89; /* Lighter Blue */
    --text-color: #2D3748;
    --light-bg: #F7FAFC;
    --white: #FFFFFF;
    --grey-border: #E2E8F0;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--white);
}

body > div:first-of-type {
    position: sticky;
    top: 0;
    z-index: 1002;
}


h1, h2, h3, h4 {
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.2;
}

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

.fade-in {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    transform: translateY(20px);
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.3);
}

.btn-primary:hover {
    background-color: #E65C00;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 102, 0, 0.4);
}

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

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

/* Section Common */
section {
    padding: 100px 20px;
}

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

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

/* Hero Section */
.hero {
    height: 90vh;
    background: linear-gradient(rgba(10, 35, 66, 0.7), rgba(10, 35, 66, 0.7)), url('image/hero.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 4rem;
    color: var(--white);
    margin-bottom: 25px;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btns {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

@media (max-width: 768px) {
    .hero {
        height: auto !important;
        min-height: 50vh;
        padding: 60px 20px;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-content p {
        font-size: 1.1rem;
    }
    section {
        padding: 60px 20px;
    }
    .header-mobile-center {
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }
    .header-mobile-center > div {
        align-items: center !important;
    }
    
    body > div:first-of-type .container {
        justify-content: center !important;
    }
    body > div:first-of-type .container > div:last-child {
        display: none !important;
    }
    body > div:first-of-type .container > div:first-child {
        text-align: center;
        width: 100%;
    }
    body > div:first-of-type .container > div:first-child span {
        display: inline-block;
        margin: 0 10px !important;
    }
}

/* Avant / Après Section */
.ba-section {
    background-color: var(--light-bg);
}

.ba-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.ba-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: var(--transition);
    border: 1px solid var(--grey-border);
}

.ba-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

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

.ba-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.ba-card:hover .ba-image {
    transform: scale(1.05);
}

.ba-content {
    padding: 20px;
    text-align: center;
}

.ba-tag {
    display: inline-block;
    background: var(--secondary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ba-title {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin: 10px 0;
}


@media (max-width: 480px) {
    .ba-image-container {
        height: 300px;
    }
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    padding: 20px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 35, 66, 0.95);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.lightbox.active {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    max-width: 95%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

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

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    z-index: 2001;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: var(--transition);
}

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

.ba-image-container {
    cursor: pointer;
    position: relative;
}

.ba-image-container::before,
.ba-image-container::after {
    position: absolute;
    left: 15px;
    padding: 5px 12px;
    color: white;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    z-index: 10;
    border-radius: 5px;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.ba-image-container::before {
    content: 'AVANT';
    top: 15px;
    background: #e74c3c; /* Red for before */
}

.ba-image-container::after {
    content: 'APRÈS';
    bottom: 15px;
    background: #2ecc71; /* Green for after */
}


