:root {
    --font-main: 'Geist Sans', sans-serif;
    --border-color: #e4e4e7;
    --bg-light: #fafafa;
}

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

body {
    font-family: var(--font-main);
    -webkit-font-smoothing: antialiased;
    color: #09090b;
    background: white;
    overflow-x: hidden;
}

/* --- Navigation & Header --- */
header {
    position: absolute;
    top: 0; 
    width: 100%;
    padding: 15px 10%;
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    z-index: 50; 
    color: white;
}

.logo {
    font-size: 1.2rem;
    letter-spacing: -0.02em;

}

nav ul { display: flex; list-style: none; gap: 24px; align-items: center; }
nav a { color: white; text-decoration: none; font-size: 0.9rem; font-weight: 500; opacity: 0.8; transition: opacity 0.2s; }
nav a:hover { opacity: 1; }

.btn-available { border: 1px solid rgba(255,255,255,0.3); padding: 5px 12px; border-radius: 20px; font-size: 0.75rem;margin-top: 15px; display: inline-block; }
.btn-book { background: white; color: black !important; padding: 8px 18px; border-radius: 6px; font-weight: 600; }

/* --- Hero Section & Canvas --- */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    background: #050505 url('http://glwadysfayolle.com/img/unsplash_F8qcyS0oH8E.png') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    padding: 0 10%;
    color: white;
    overflow: hidden;
}

#dotCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    pointer-events: none; /* Laisse passer la souris pour le canvas */
}

.hero-content a { pointer-events: auto; } /* Rend le scroll-down cliquable */

.hero h1 { 
    font-size: clamp(3.5rem, 9vw, 6rem); 
    font-weight: 500; 
    line-height: 0.85; 
    margin-bottom: 24px; 
    letter-spacing: -0.04em; 
}

.hero p { 
    font-size: 1.3rem; 
    font-weight: 300; 
    max-width: 650px; 
    opacity: 0.8; 
}

.scroll-down { 
    position: absolute; 
    bottom: 30px; /* Distance du bord inférieur */
    left: 50%; 
    transform: translateX(-50%); 
    color: white; 
    text-decoration: none; 
    font-size: 0.7rem; 
    letter-spacing: 2px; 
    text-transform: uppercase;
    z-index: 20; /* S'assure qu'il est au-dessus du canvas */
    pointer-events: auto; /* Indispensable pour que le lien soit cliquable */
    opacity: 0.7;
    transition: opacity 0.3s ease;
    text-align: center;
}

.scroll-down:hover {
    opacity: 1;
}

/* --- Work Section --- */
.work-section { padding: 100px 10%; background: white; }
.section-title { font-size: 2.5rem; font-weight: 800; margin-bottom: 50px; }

.filter-btn {
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    background: #F5F5F5;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn.active { background: black; color: white; border-color: black; }
.filter-btn:hover:not(.active) { background-color: #E8E8E8; }

/* Grid 3 Colonnes */
.work-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 40px; 
}

@media (max-width: 1100px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .work-grid { grid-template-columns: 1fr; } }

/* Work Cards & Hover */
.work-card { 
    text-decoration: none; 
    color: inherit; 
    display: block;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}

.work-card:hover { transform: translateY(-10px); }

.image-container { 
    position: relative; 
    background: #f4f4f5; 
    border: 1px solid var(--border-color); 
    border-radius: 12px; 
    overflow: hidden; 
    margin-bottom: 20px; 
}

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

.work-card:hover .image-container img { transform: scale(1.05); }

.category-tag { 
    position: absolute; top: 12px; right: 12px; 
    background: white; padding: 4px 10px; 
    font-size: 0.6rem; font-weight: 700;  border-radius:8px;
}

.project-label { 
    position: absolute; bottom: 12px; left: 12px; 
    background: black; color: white; padding: 2px 7px; 
    font-size: 0.7rem; font-weight: 600; border-radius: 8px;
}

.work-card p { color: #222; font-size: 0.79rem; }
.work-card p b { color: #222; display: block; margin-bottom: -14px; font-size: 0.79rem; }

/* --- About Section --- */
.about-section { padding: 120px 10%; background: var(--bg-light);  }

.about-content h2 { font-size: 2.5rem; font-weight: 800; margin-bottom: 30px; }
.about-content h3 { font-size: 1.75rem;  margin-bottom: 30px; }
.about-content p { font-size: 0.9rem; line-height: 1.7; color: #737373; margin-bottom: 20px; }

.cta-group { gap: 16px; margin-top: 50px; }
.btn-primary { background: black; color: white; padding: 7px 13px; border-radius: 8px; border:1px solid black;text-decoration: none; font-weight: 600; font-size: 0.8rem; transition: all 0.3s ease;}
.btn-secondary { background: #EEEEEE; padding: 7px 13px; border-radius: 8px; text-decoration: none; color: black; border:1px solid #EEEEEE; font-weight: 600; font-size: 0.8rem;transition: all 0.3s ease;}
.btn-primary:hover, .btn-secondary:hover{background: white; border:1px solid #222; color: black}


    /* Scope des styles pour ne pas casser le reste du site */
    .case-study header {border-bottom: 1px solid #e5e7eb;background: white;}
.case-study header *{color: black !important; }
.case-study header .btn-book{background: #F5F5F5;}
.case-study header .btn-book:hover;{background: #eeeeee;}

    .case-study .case-study-container {
        --cs-text: #09090b;
        --cs-muted: #71717a;
        --cs-border: #e4e4e7;
        font-family: 'Montserrat', sans-serif; /* Utilise la police de votre thème */
        color: var(--cs-text);
        line-height: 1.7;
        margin: 0 auto;
        padding: 40px 10%;
    }

    .case-study .cs-hero-project h1 {
        font-size: clamp(2.2rem, 5vw, 3.8rem);
        padding: 0 40px;
        text-align: center;
        margin-bottom: -50px;
    }

    .case-study .cs-main-visual {
        width: 100%;
    }

    .case-study .twocolsec{ display:flex; padding: 35px 0; border-bottom: 1px solid #e5e7eb;}
    .case-study .twocolsec h2{ min-width:400px; max-width:400px; padding-right:100px; }

    .case-study .cs-meta-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 20px;
        background: #f9f9fb;
        padding: 30px;
        border-radius: 12px;
        margin-bottom: 60px;
    }

    .case-study .cs-meta-item label {
        display: block;
        font-size: 0.75rem;
        text-transform: uppercase;
        font-weight: 700;
        color: var(--cs-muted);
        margin-bottom: 5px;
    }

    .case-study .cs-content section {
        border-bottom:1px solid #e5e7eb;
        padding: 70px 0;
    }
        .case-study .cs-content section:last-child{border: none;}
        .case-study .seconddiv section:first-child{padding-top:0 !important;}

    .case-study .cs-content h2 {
        font-size: 1.6rem;
        font-weight: 700;
        display: flex;
        align-items: center;
        margin-bottom: 35px;
    }

    .case-study .cs-impact-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 25px;
    }

    .case-study .cs-stat-card {
        padding: 0 0 15px 0px;
        border: 1px solid var(--cs-border);
        border-radius: 20px;
        text-align: center;
        background: #fff;
    }

    .case-study .cs-stat-number {
        font-size: 2.5rem;
        font-weight: 800;
        color: #000;
        display: block;
            margin-bottom: -15px;
    }

    .case-study .cs-stat-desc {
        color: var(--cs-muted);
        font-size: 0.95rem;
    }

    @media (max-width: 768px) {
        .case-study .cs-hero h1 { font-size: 2rem; }
        .case-study .twocolsec{display: block;}
        .case-study .twocolsec h2{width: 100%;}
    }

/* SLIDER and images  */

.visual-assets-grid {display: flex;text-align: center;}
.visual-assets-grid img{width: 50%}
.troiscolg img{ width:33.33% ; }

@media (max-width: 768px) {
    .visual-assets-grid {display: block;}
    .visual-assets-grid img{width: 100%}

}

    .slider-container {
    position: relative;
    max-width: 100%;
    margin: 40px 0;
    overflow: hidden;
}

.slider-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

.slide {
    /* 50% sur desktop pour voir 2 images */
    flex: 0 0 50%; 
    padding: 0 10px;
    box-sizing: border-box;
}

.slide img {
    width: 100%;
    height: auto;
    display: block;
}

/* Dots Navigation */
.dots-container {
    text-align: center;
    padding: 20px 0;
}

.dot {
    cursor: pointer;
    height: 8px;
    width: 8px;
    margin: 0 5px;
    background-color:#E0E0E0;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s, width 0.3s;
}

.dot.active {
    background-color: black;
    width: 24px; /* Effet pilule pour le point actif */
    border-radius: 10px;
}

/* Mobile : On passe à 1 image visible */
@media (max-width: 768px) {
    .slide {
        flex: 0 0 100%;
    }
}