/* --- VARIABLES --- */
:root {
    --gold: #EFD8AF;
    --gold-dark: #c9b08a;
    --dark: #000000;
    --bg-alt: #0a0a0a;
    --text-white: #ffffff;
    --text-dark: #222222;
}

/* --- RESET & BASE --- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    background-color: var(--dark);
    color: var(--text-white);
    font-family: 'Inter', -apple-system, sans-serif;
    margin: 0;
    line-height: 1.7;
}

/* --- NAVBAR --- */
.navbar {
    position: fixed;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s ease;
    background: transparent;
    top: 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.navbar.scrolled {
    background: white;
    box-shadow: 0 4px 25px rgba(0,0,0,0.15);
}

.navbar.scrolled .nav-container { padding: 15px 5%; }

/* LOGO NAVBAR */
.logo img { height: 60px !important; width: auto !important; display: none !important; }
.navbar.scrolled .logo-dark { display: block !important; }

/* NAV LINKS (Desktop) */
.nav-links { display: flex; gap: 40px; }
.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 0.75rem;
    letter-spacing: 3px;
    font-weight: 600;
    text-transform: uppercase;
    transition: color 0.3s;
}
.navbar.scrolled .nav-links a { color: var(--text-dark); }
.navbar.scrolled .nav-links a:hover { color: var(--gold-dark); }

/* --- MENU BURGER --- */
.menu-burger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 2001;
}

.menu-burger span {
    width: 25px;
    height: 2px;
    background-color: white;
    transition: 0.3s;
}

.navbar.scrolled .menu-burger span {
    background-color: var(--dark);
}

/* --- HERO SECTION --- */
.hero {
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('hero.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-main-logo {
    width: 75%;
    max-width: 420px;
    height: auto;
    margin: 0 auto;
    display: block;
    filter: drop-shadow(0 0 30px rgba(0,0,0,0.4));
    will-change: transform;
    transition: transform 0.1s ease-out;
    z-index: 2;
}

/* --- STRUCTURE DES SECTIONS --- */
section {padding: 60px 0 100px 0}
.container { padding: 0 5%; max-width: 1300px; margin: 0 auto; }
.section-alt { background-color: var(--bg-alt); }

.section-title {
    color: var(--gold);
    letter-spacing: 8px;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-top: -30px;
    margin-bottom: 60px;
    text-align: center;
    font-weight: 700;
}

/* --- HARMONISATION DES ESPACES --- */

/* 1. Sous le Hero */
#approche { padding-top: 60px; padding-bottom: 80px; }

/* 2. Entre Approche et Portfolio */
#portfolio { padding-top: 80px; padding-bottom: 80px; }

/* 3. Entre Portfolio et Respiration (Empêche de coller) */
#portfolio .container { padding-bottom: 40px; }

/* 4. Entre Respiration et Contact */
#contact { padding-top: 80px; }

/* --- PORTFOLIO --- */
.portfolio-disclaimer {
    text-align: center;
    color: #888;
    font-size: 0.9rem;
    max-width: 600px;
    margin: -60px auto 50px; 
    font-style: italic;
    line-height: 1.6;
    font-weight: 300;
    padding: 0 5%;
}

.masonry-grid { 
    column-count: 4; 
    column-gap: 20px;
}

.masonry-item { break-inside: avoid; margin-bottom: 20px; }
.masonry-item img {
    width: 100%; display: block;
    transition: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}
.masonry-item img:hover { transform: scale(1.02); }

/* --- TEXTE MON APPROCHE --- */
.text-block { 
    text-align: center; 
    max-width: 800px; 
    margin: 0 auto; 
    color: #cecece;
    font-size: 1.1rem;
}

/* --- SÉPARATEUR IMAGE FIXE (Respiration) --- */
.section-separator {
    height: 200px; 
    width: 100%;
    background-image: url('separateur.jpg');
    background-size: cover;
    background-position: center;
    margin: 0; 
}

/* --- CONTACT --- */
.contact-layout { 
    display: grid; 
    grid-template-columns: 1fr 1.2fr; 
    gap: 80px; 
    align-items: start;
    margin-top: 20px;
}

.phone-block { 
    margin-top: 40px; 
    padding: 35px; 
    background: #111; 
    border-left: 4px solid var(--gold); 
}

.phone-link { 
    display: block; 
    font-size: 1.8rem; 
    color: var(--gold); 
    text-decoration: none; 
    font-weight: 800; 
    margin-top: 10px; 
}

.contact-form input, .contact-form textarea {
    width: 100%; background: transparent; border: none; border-bottom: 1px solid #333;
    padding: 15px 0; color: white; margin-bottom: 25px; outline: none; font-family: inherit;
}
.contact-form input:focus, .contact-form textarea:focus { border-bottom-color: var(--gold); }
.form-group { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; }

button {
    background: var(--gold); color: #000; border: none; padding: 22px;
    font-weight: 700; letter-spacing: 3px; cursor: pointer; width: 100%; text-transform: uppercase;
}

/* --- FOOTER --- */
footer { text-align: center; padding: 60px 0; font-size: 0.75rem; color: #444; letter-spacing: 2px; }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    section { padding: 60px 0; }
    .section-separator {height: 150px;}
    #approche, #portfolio, #contact { padding-top: 60px; }
    .hero-main-logo { width: 100%; max-width: 280px; }
    .masonry-grid { column-count: 2 !important; column-gap: 10px; }
    .contact-layout { grid-template-columns: 1fr; }
    .menu-burger { display: flex; }
    .nav-links {
        position: fixed; top: 0; right: -100%; height: 100vh; width: 100%;
        background: black; flex-direction: column; justify-content: center;
        align-items: center; gap: 40px; transition: 0.4s ease;
    }
    .nav-links.active { right: 0; }
    .nav-links.active a { color: white !important; font-size: 1.3rem; font-weight: 300; letter-spacing: 5px; }
}
/* --- SÉPARATEUR PANORAMIQUE ACTION --- */
.action-separator {
    width: 100%;
    /* Le ratio 629/3000 = 20.9% */
    aspect-ratio: 3000 / 629; 
    max-height: 450px; /* On plafonne la hauteur pour les écrans ultra-larges */
    background-image: url('photo-action.jpg');
    background-size: cover;
    background-position: center;
    margin: 0;
}

/* --- AJUSTEMENT MOBILE --- */
@media (max-width: 768px) {
    .action-separator {
        /* On garde le ratio exact pour voir l'image en entier */
        aspect-ratio: 3000 / 629; 
        height: auto; /* On laisse la hauteur se calculer toute seule */
    }
    
    .section-separator { height: 150px; }
    #approche, #portfolio, #contact { padding-top: 60px; }
    .hero-main-logo { width: 100%; max-width: 280px; }
    .masonry-grid { column-count: 2 !important; column-gap: 10px; }
    .contact-layout { grid-template-columns: 1fr; }
    .menu-burger { display: flex; }
    .nav-links {
        position: fixed; top: 0; right: -100%; height: 100vh; width: 100%;
        background: black; flex-direction: column; justify-content: center;
        align-items: center; gap: 40px; transition: 0.4s ease;
    }
    .nav-links.active { right: 0; }
    .nav-links.active a { color: white !important; font-size: 1.3rem; font-weight: 300; letter-spacing: 5px; }
}