/* --- VARIABLES THEME JOUR / NUIT --- */
:root {
    --bg-color: #fdfdfd;
    --text-color: #111111;
    --text-muted: #666666;
    --bg-alt: #f5f5f5;
    --card-bg: #ffffff;
    --border-color: #eeeeee;
    --nav-bg: rgba(253, 253, 253, 0.95);
    --btn-bg: #111111;
    --btn-text: #ffffff;
    --lightbox-bg: rgba(255, 255, 255, 0.98);
}

[data-theme="dark"] {
    --bg-color: #121212;
    --text-color: #f0f0f0;
    --text-muted: #aaaaaa;
    --bg-alt: #1a1a1a;
    --card-bg: #222222;
    --border-color: #333333;
    --nav-bg: rgba(18, 18, 18, 0.95);
    --btn-bg: #f0f0f0;
    --btn-text: #111111;
    --lightbox-bg: rgba(0, 0, 0, 0.98);
}

/* --- STYLES GENERAUX --- */
body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    scroll-behavior: smooth;
    transition: background-color 0.4s ease, color 0.4s ease;
    overflow-x: hidden;
}

/* --- ANIMATIONS AU DEFILEMENT --- */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- NAVIGATION --- */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    box-sizing: border-box;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.4s, border-color 0.4s;
}

/* --- LOGO --- */
.logo-nav {
    height: 40px;
    mix-blend-mode: multiply;
    transition: filter 0.4s;
}
[data-theme="dark"] .logo-nav {
    filter: invert(1);
    mix-blend-mode: screen;
}

.nav-links {
    display: flex;
    align-items: center;
}
.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    margin-left: 30px;
    font-size: 0.9rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}
.nav-links a:hover { color: var(--text-color); }

.btn-client {
    border: 1px solid var(--text-color);
    padding: 8px 18px;
    border-radius: 30px;
}
.btn-client:hover {
    background: var(--btn-bg);
    color: var(--btn-text) !important;
}
.theme-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: 30px;
    padding: 5px;
}
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--text-color);
    cursor: pointer;
}

/* --- HERO SECTION --- */
.hero-section {
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 60px;
    position: relative;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('photo5.jpg');
    background-size: cover;
    background-position: center;
}
.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 7rem;
    font-weight: 600;
    line-height: 0.9;
    margin: 0 0 20px 0;
    letter-spacing: -3px;
    color: #ffffff; 
    text-shadow: 0 5px 15px rgba(0,0,0,0.6); 
}
.hero-subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    color: #eeeeee;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}

/* --- ANIMATION SOURIS --- */
.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}
.scroll-down:hover { opacity: 1; }
.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid #ffffff;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
    box-sizing: border-box;
}
.wheel {
    width: 4px;
    height: 8px;
    background-color: #ffffff;
    border-radius: 2px;
    animation: scrollWheel 2s infinite;
}
@keyframes scrollWheel {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(12px); opacity: 0; }
}

/* --- SECTIONS --- */
.section { padding: 100px 20px; text-align: center; max-width: 1400px; margin: 0 auto; }
.bg-alt { background-color: var(--bg-alt); max-width: 100%; transition: background-color 0.4s ease; }

#portfolio::before {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--text-color);
    margin: 0 auto 50px auto;
    border-radius: 2px;
    opacity: 0.15;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    margin-bottom: 20px;
    font-weight: 600;
}
.section-desc { color: var(--text-muted); margin-bottom: 50px; font-size: 1.1rem; }
.about-content { max-width: 750px; margin: 0 auto; font-size: 1.2rem; color: var(--text-color); line-height: 1.8; }

/* --- PORTFOLIO MASONRY --- */
.masonry-grid {
    column-count: 2;
    column-gap: 30px;
    padding: 20px;
}
.masonry-item {
    break-inside: avoid;
    margin-bottom: 30px;
}
.gallery-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.5s ease, filter 0.5s ease;
}
.gallery-img:hover {
    transform: scale(1.02);
    filter: brightness(1.1);
}

/* --- PRESTATIONS --- */
.services-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}
.service-card {
    background: var(--card-bg);
    padding: 50px 30px;
    border-radius: 12px;
    flex: 1;
    min-width: 300px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.4s;
    border: 1px solid var(--border-color);
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}
.service-card h3 { 
    font-size: 1.8rem; 
    margin-bottom: 20px; 
    font-family: 'Playfair Display', serif;
    margin-top: 0;
}
.service-card p { color: var(--text-muted); font-size: 1rem; }

/* --- CONTACT FORM --- */
.contact-container {
    max-width: 600px;
    margin: 0 auto;
}
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
}
.contact-form input, .contact-form textarea {
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--card-bg);
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s, background 0.4s;
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--text-color);
}

/* --- BOUTONS ET ESPACE CLIENT --- */
.btn-primary {
    padding: 15px 30px;
    background-color: var(--btn-bg);
    color: var(--btn-text);
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    cursor: pointer;
    transition: opacity 0.3s;
}
.btn-primary:hover { opacity: 0.8; }

#client-form { margin-top: 30px; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
#client-form input {
    padding: 15px 25px;
    width: 300px;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    background: var(--card-bg);
    color: var(--text-color);
    font-size: 1rem;
    outline: none;
}

/* --- LIGHTBOX --- */
.lightbox {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--lightbox-bg);
    z-index: 1000;
    display: flex; justify-content: center; align-items: center;
    transition: background-color 0.4s;
}
.lightbox.hidden { display: none; }
.lightbox-content { max-width: 90vw; max-height: 90vh; border-radius: 4px; }
.close {
    position: absolute; top: 20px; right: 40px;
    color: var(--text-color); font-size: 50px; cursor: pointer; z-index: 1001;
}

/* --- FOOTER --- */
footer { text-align: center; padding: 40px 20px; font-size: 0.9rem; color: var(--text-muted); border-top: 1px solid var(--border-color); transition: border-color 0.4s; }

/* --- RESPONSIVE DESIGN (PC & MOBILE) --- */
@media (max-width: 900px) {
    .hero-title { font-size: 4.5rem; }
}

@media (max-width: 768px) {
    .top-nav { padding: 15px 25px; }
    .menu-toggle { display: block; }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--nav-bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: left 0.3s ease;
    }
    .nav-links.active { left: 0; }
    .nav-links a { margin: 15px 0; font-size: 1.2rem; }
    .theme-btn { margin: 20px 0 0 0; font-size: 1.5rem; }
    
    .masonry-grid { column-count: 1; }
    .hero-title { font-size: 3.5rem; }
    .section { padding: 60px 15px; }
    #client-form input { width: 100%; border-radius: 30px; }
    .btn-primary { width: 100%; }
}