:root {
    --bg-color: #000000; /* Noir pur */
    --text-color: #ffffff; /* Blanc pur */
    --text-muted: #888888;
    --font-main: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header & Nav */
header {
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 30px 40px;
    background: rgba(5, 5, 5, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center; /* Centre parfaitement le menu */
    align-items: center;
}
.header-logo {
    position: absolute;
    left: 40px;
    display: flex;
    align-items: center;
}
.header-logo img {
    height: 95px; /* Légèrement plus grand (était à 80px) */
    width: auto;
    object-fit: contain;
}
.header-social {
    position: absolute;
    right: 80px; /* Moins à droite (était à 40px) */
    display: flex;
    align-items: center;
}
.header-social svg {
    width: 30px; /* Taille très légèrement plus petite */
    height: 30px;
}
.header-social a {
    color: var(--text-color);
    transition: opacity 0.3s ease;
    display: flex;
}
.header-social a:hover {
    opacity: 0.6;
}
nav {
    display: block;
}

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

nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover, nav a.active {
    color: var(--text-color);
}

/* Masonry Grid */
main {
    flex: 1;
    padding: 0 40px 100px 40px;
}

.masonry-grid {
    column-count: 3;
    column-gap: 10px; /* Grille plus resserrée */
    margin: 0 auto;
    max-width: 100%; /* Pleine largeur */
    padding: 0 10px;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 10px; /* Grille plus resserrée */
    overflow: hidden;

    opacity: 0; /* for IntersectionObserver fade-in */
    transform: translateY(30px);
    transition: opacity 1.2s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.masonry-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Images & Hover Effects */
.masonry-item img {
    width: 100%;
    display: block;
    object-fit: cover;
    transition: transform 1.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 1.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform, filter;
}

.masonry-item:hover img {
    transform: scale(1.02);
    filter: brightness(0.7);
}

/* Responsive Breakpoints */
@media (max-width: 1200px) {
    header {
        justify-content: space-between; /* Empêche la superposition du menu et du logo */
    }
    .header-logo {
        position: static;
    }
    .header-social {
        position: static;
    }
}

@media (max-width: 1024px) {
    .masonry-grid {
        column-count: 2;
        column-gap: 20px;
    }
    .masonry-item {
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 10px 15px 30px 15px; /* Plus d'espace en bas */
        gap: 10px;
    }
    .header-logo {
        position: static;
        width: auto;
        justify-content: center;
        margin: 0;
    }
    .header-logo img {
        height: 50px; /* Un peu plus petit sur mobile pour gagner de la place */
    }
    .header-social {
        position: absolute;
        top: 15px;
        right: 15px;
        margin: 0;
    }
    .header-social svg {
        width: 22px;
        height: 22px;
    }
    nav ul {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    nav a {
        font-size: 10px;
        letter-spacing: 0.15em;
    }
    main {
        padding: 0 15px 50px 15px;
    }
    .masonry-grid {
        column-count: 1;
    }
    .modal-prev, .modal-next {
        font-size: 30px;
        padding: 10px;
    }
    .modal-prev { left: 0px; }
    .modal-next { right: 0px; }
    .modal-close {
        top: 15px;
        right: 15px;
        font-size: 30px;
    }
}

/* --- NEW HERO STYLES --- */
.hero {
    position: relative;
    width: 100%;
    margin: 0 auto 20px auto;
    height: 85vh;
    overflow: hidden;
}
.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Plus d'effet de transition ou de scale */
}
/* REMOVED: .hero:hover img { transform: scale(1.02); } */
.hero-overlay {
    position: absolute;
    bottom: 50px;
    left: 50px;
    z-index: 2;
}
.hero-overlay h1, .hero-overlay h2 {
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 24px;
    letter-spacing: 0em;
    margin-bottom: 25px;
    text-transform: none;
}
.scroll-down {
    color: var(--text-color);
    text-decoration: none;
    border-bottom: 1px solid var(--text-muted);
    padding-bottom: 5px;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.25em;
    transition: border-color 0.4s ease;
}
.scroll-down:hover {
    border-bottom: 1px solid var(--text-color);
}

/* --- SPLIT LAYOUT (ABOUT / CONTACT) --- */
.split-layout {
    display: flex;
    max-width: 1600px; /* Increased from 1200px to make it larger */
    margin: 40px auto 0 auto; /* Espace équilibré par rapport au header (identique au h1) */
    gap: 100px;
    padding: 0 60px;
    align-items: center;
    min-height: 80vh;
}
.split-layout .image-side {
    flex: 1.2;
    overflow: hidden;
}
.split-layout .image-side img {
    width: 100%;
    height: auto;
    max-height: 90vh; /* Increased from 80vh */
    object-fit: cover;
    object-position: center;
}
.split-layout .text-side {
    flex: 1;
    text-align: left;
}
.split-layout .text-side h1 {
    font-family: var(--font-main);
    font-weight: 500;
    font-size: 24px;
    letter-spacing: 0em;
    margin-bottom: 40px;
    text-transform: none;
}
.split-layout .text-side p {
    color: var(--text-muted);
    line-height: 2;
    margin-bottom: 20px;
    font-size: 14px;
}

@media (max-width: 768px) {
    .split-layout {
        flex-direction: column;
        padding: 20px 15px;
        gap: 30px;
    }
    .split-layout .image-side {
        width: 100%;
    }
    .split-layout .image-side img {
        height: auto;
        max-height: 50vh;
    }
    .split-layout .text-side {
        padding: 0; /* Aligné avec la photo */
    }
    .hero {
        width: 100%;
        margin: 0 0 40px 0;
        height: 60vh;
    }
    .hero-overlay {
        bottom: 30px;
        left: 20px;
    }
    .hero-overlay h1, .hero-overlay h2 {
        font-size: 20px;
    }
}
.contact-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: var(--text-color);
    color: var(--bg-color);
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.25em;
    font-size: 11px;
    transition: background-color 0.4s ease, color 0.4s ease;
    margin-top: 10px;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
}
.contact-button:hover {
    background-color: #333;
    color: #fff;
}

/* --- ABOUT LAYOUT FIX --- */
.about-layout {
    align-items: center; /* S'assurer que les deux blocs sont centrés verticalement */
}
.about-layout .image-side {
    flex: 0.8; /* Moins d'espace pour l'image */
    text-align: center; /* Centrer l'image horizontalement */
}
.about-layout .image-side img {
    max-height: 55vh; /* Image beaucoup plus petite */
    width: auto;
    max-width: 100%;
    object-position: center top; 
    margin: 0 auto;
    display: inline-block; /* Pour le centrage avec text-align */
}

/* --- MODAL (LIGHTBOX) --- */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.4s ease;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.modal.show {
    display: flex;
    opacity: 1;
}
.modal-content {
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    transform: scale(0.95);
    transition: transform 0.4s ease;
}
.modal.show .modal-content {
    transform: scale(1);
}

/* --- SEO BLOCKS --- */
.seo-block {
    max-width: 800px;
    margin: 100px auto 40px auto;
    text-align: center;
    padding: 0 20px;
}
.seo-block h2 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
    color: var(--text-color);
}
.seo-block p {
    font-size: 12px;
    line-height: 1.8;
    color: var(--text-muted);
}
.seo-hidden {
    font-size: 10px;
    color: #151515; /* Extrêmement discret sur fond #000, évite la pénalité Google "texte invisible" */
    line-height: 1.5;
    margin-top: 100px;
    text-align: justify;
    user-select: none;
}

.modal-desc {
    margin-top: 20px;
    color: var(--text-color);
    font-family: var(--font-main);
    font-weight: 400;
    font-size: 14px;
    letter-spacing: 0em;
    text-align: center;
    max-width: 80%;
}
.modal-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    font-weight: 100;
    cursor: pointer;
    transition: opacity 0.3s ease;
    z-index: 1001;
}
.modal-prev, .modal-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 40px;
    font-weight: 100;
    cursor: pointer;
    transition: opacity 0.3s ease;
    padding: 20px;
    user-select: none;
    z-index: 1001;
}
.modal-prev { left: 20px; }
.modal-next { right: 20px; }
.modal-prev:hover, .modal-next:hover, .modal-close:hover {
    opacity: 0.6;
}
.masonry-item img {
    cursor: pointer;
}
