/* ========================================= */
/* === CONFIGURATION CHARTE PA DESIGN === */
/* ========================================= */
:root {
    /* --- VOTRE PALETTE EXACTE --- */
    --color-sand: #E0C097;      /* Beige/Or */
    --color-teal: #6BA292;      /* Vert Agence */
    --color-dark: #3B2F2F;      /* Brun Profond (Fond principal) */
    --color-light: #DDEBE6;     /* Vert d'eau très pâle (Texte/Fonds clairs) */

    /* --- MAPPING DU THÈME --- */
    --bg-main: var(--color-dark);
    --bg-secondary: #4A3B3B; /* Une variante légèrement plus claire du brun */
    
    --text-main: var(--color-light);
    --text-secondary: rgba(221, 235, 230, 0.7); /* Votre vert clair avec transparence */
    --text-muted: rgba(221, 235, 230, 0.5);

    --accent-primary: var(--color-teal);
    --accent-secondary: var(--color-sand);

    /* --- TYPOGRAPHIE --- */
    /* J'utilise Syne pour rappeler le côté "Display/Graphique" de votre Parity Sans */
    --font-display: 'Syne', sans-serif; 
    --font-body: 'Inter', sans-serif;

    /* --- PARAMÈTRES GLOBAUX --- */
    --container-width: 1300px;
    --border-radius: 12px;
    --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ========================================= */
/* === BASE & RESET === */
/* ========================================= */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Texture Papier/Grain pour le côté "Organique" de votre charte */
.bg-grain {
    position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.07;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}

/* Mesh Background aux couleurs PA Design */
.mesh-background { position: fixed; inset: 0; z-index: -2; overflow: hidden; }
.mesh-layer {
    position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.4; /* Opacité un peu plus forte pour que vos couleurs ressortent */
    will-change: transform;
}
.layer-1 {
    width: 60vw; height: 60vw; top: -10%; left: -10%;
    background: radial-gradient(circle, var(--color-teal), transparent 70%);
    animation: float 20s infinite alternate ease-in-out;
}
.layer-2 {
    width: 50vw; height: 50vw; bottom: -10%; right: -10%;
    background: radial-gradient(circle, var(--color-sand), transparent 70%);
    animation: float 25s infinite alternate-reverse ease-in-out;
}
@keyframes float { 0% { transform: translate(0,0); } 100% { transform: translate(60px, 40px); } }

/* ========================================= */
/* === TYPOGRAPHIE & STYLE === */
/* ========================================= */
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; line-height: 1.1; color: var(--color-sand); }
h1 { color: var(--color-sand); /* Titre principal en Beige */ }
h2 { color: var(--text-main); }
.accent-text { color: var(--color-teal); }

.container { max-width: var(--container-width); margin: 0 auto; padding: 0 2rem; }
.section { padding: clamp(5rem, 12vh, 10rem) 0; }

/* ========================================= */
/* === NAVIGATION === */
/* ========================================= */
.navbar {
    position: fixed; top: 0; width: 100%; padding: 1.5rem 0; z-index: 100;
    transition: all 0.4s var(--ease-smooth);
}
.navbar.scrolled {
    background: rgba(59, 47, 47, 0.9); /* Brun foncé semi-transparent */
    backdrop-filter: blur(12px); padding: 1rem 0;
    border-bottom: 1px solid rgba(221, 235, 230, 0.05);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }

/* Votre Logo Stylisé */
.nav-logo { 
    font-family: var(--font-display); font-weight: 800; font-size: 1.8rem; 
    text-decoration: none; color: var(--color-sand); 
    display: flex; flex-direction: column; line-height: 1;
}
.nav-logo span { font-size: 0.9rem; letter-spacing: 0.2em; color: var(--color-teal); text-transform: uppercase;}

.nav-menu { display: flex; list-style: none; gap: 3rem; }
.nav-link { 
    text-decoration: none; color: var(--text-main); font-weight: 500; font-size: 1rem; 
    text-transform: uppercase; letter-spacing: 1px; font-size: 0.85rem;
    transition: color 0.3s; 
}
.nav-link:hover { color: var(--color-sand); }

/* ========================================= */
/* === BOUTONS (Style PA Design) === */
/* ========================================= */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 1rem 2.5rem; border-radius: 50px; text-decoration: none; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px; font-size: 0.85rem;
    transition: transform 0.2s, background 0.3s, box-shadow 0.3s;
}

/* Bouton Vert (votre CTA principal) */
.btn--primary { 
    background: var(--color-teal); color: white; 
    box-shadow: 0 10px 30px rgba(107, 162, 146, 0.3);
}
.btn--primary:hover { 
    background: #5a8c7d; /* Vert un peu plus foncé */
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(107, 162, 146, 0.4);
}

/* Bouton Outline (Beige) */
.btn--outline { 
    border: 2px solid var(--color-sand); color: var(--color-sand); 
    background: transparent;
}
.btn--outline:hover { 
    background: var(--color-sand); color: var(--color-dark);
}

/* ========================================= */
/* === HERO SECTION === */
/* ========================================= */
.hero { min-height: 90vh; display: flex; align-items: center; padding-top: 80px; position: relative; }
.hero-content { max-width: 900px; }

.hero-title { 
    font-size: clamp(2.5rem, 6vw, 5.5rem); 
    text-transform: uppercase; 
    margin-bottom: 1.5rem;
    color: var(--color-sand); /* Titre en Beige comme sur votre maquette */
}
.hero-subtitle { 
    font-size: 1.2rem; color: var(--text-main); max-width: 650px; margin-bottom: 3rem; 
    border-left: 3px solid var(--color-teal); padding-left: 1.5rem; /* Petit détail graphique */
}

/* ========================================= */
/* === PROJETS (Cards) === */
/* ========================================= */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 3rem; }

.project-card { 
    display: block; text-decoration: none; group: project; 
}
.project-image-wrapper {
    width: 100%; height: 500px; background: var(--bg-secondary);
    border-radius: var(--border-radius); overflow: hidden; position: relative;
    border: 1px solid rgba(224, 192, 151, 0.1); /* Bordure beige subtile */
    transition: transform 0.6s var(--ease-smooth);
}
.project-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s; opacity: 0.8;}

.project-card:hover .project-image-wrapper { transform: translateY(-10px); border-color: var(--color-teal); }
.project-card:hover .project-img { transform: scale(1.05); opacity: 1; }

.project-info { margin-top: 1.5rem; }
.project-info h3 { font-size: 1.8rem; margin-bottom: 0.5rem; color: var(--text-main); }
.project-tags { color: var(--color-teal); font-weight: 600; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 1px; }

/* ========================================= */
/* === FOOTER === */
/* ========================================= */
.footer { 
    background: var(--bg-secondary); padding: 5rem 0; text-align: center; margin-top: 5rem;
    border-top: 4px solid var(--color-teal);
}
.footer h2 { color: var(--color-sand); margin-bottom: 2rem; font-size: 2.5rem; }

/* ANIMATIONS UTILITAIRES */
.reveal-text, .reveal-up { opacity: 0; transform: translateY(30px); transition: all 0.8s var(--ease-smooth); }
.is-visible { opacity: 1; transform: translateY(0); }

/* RESPONSIVE */
@media (max-width: 768px) {
    .nav-menu { display: none; }
    .hero-title { font-size: 3rem; }
    .projects-grid { grid-template-columns: 1fr; }
}

/* --- 1. RENDRE LA SECTION 1 RESPONSIVE --- */
.hero-title {
    /* clamp(taille_min, taille_flexible, taille_max) */
    font-size: clamp(2.2rem, 10vw, 2.5rem); 
    line-height: 1.1;
    text-transform: uppercase;
    color: var(--color-sand); /* #E0C097 */
    word-wrap: break-word;
    max-width: 100%;
}

@media (max-width: 768px) {
    .hero {
        padding-top: 120px; /* Plus d'espace pour éviter que le logo cache le titre */
        text-align: left;
    }
}

/* --- 2. STYLE DU BOUTON HAMBURGER --- */
.hamburger {
    display: none; /* Caché sur ordinateur */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 2000;
}

.hamburger span {
    width: 100%;
    height: 2px;
    background: var(--color-sand); /* #E0C097 */
    transition: 0.3s;
}

/* Affichage du hamburger uniquement sur mobile */
@media (max-width: 768px) {
    .nav-menu { display: none; } /* Cache le menu texte habituel */
    .hamburger { display: flex; } /* Affiche les 3 barres */
}

/* --- 3. STYLE DE L'OVERLAY MOBILE --- */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--color-dark); /* #3B2F2F */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1500;
    transform: translateX(100%); /* Caché à droite par défaut */
    transition: transform 0.5s ease;
}

.mobile-menu-overlay.active {
    transform: translateX(0); /* Apparaît au clic */
}