:root {
    --bg-deep: #0f1c15; 
    --text-main: #1a2e22; 
    --primary: #2d6a4f; 
    --neon-green: #4ade80; 
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(255, 255, 255, 0.9);
    --font-heading: 'Satoshi', sans-serif;
    --font-body: 'Manrope', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html.lenis { height: auto; } 
.lenis.lenis-smooth { scroll-behavior: auto; } 

body {
    background-color: #f0fdf4;
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;/* Curseur caché pour laisser place au custom */
}


/* --- BACKGROUND & CURSOR --- */
.leaf-bg {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    z-index: -1; pointer-events: none; opacity: 0.1;
    background-image: url('https://images.unsplash.com/photo-1518531933037-91b2f5f229cc?q=80&w=2000&auto=format&fit=crop');
    background-size: cover; background-position: center;
    filter: saturate(0) contrast(1.2);
}

/* --- NAVIGATION --- */
nav {
    position: fixed; top: 0; left: 0; width: 100%;
    padding: 20px 5%; z-index: 1000;
    transition: 0.3s ease;
}
nav.scrolled {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 15px 5%;
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.nav-logo-text { font-family: var(--font-heading); font-weight: 900; font-size: 1.6rem; color: var(--primary); }
.nav-links { display: flex; gap: 40px; list-style: none; }
.nav-links a { 
    text-transform: uppercase; font-weight: 700; font-size: 0.85rem; 
    letter-spacing: 1px; text-decoration: none; color: var(--text-main); 
    position: relative; transition: color 0.3s;
}
.nav-links a:hover { color: var(--neon-green); }

/* --- HERO SECTION (CORRECTION) --- */
.hero {
    min-height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center; /* Centre verticalement */
    justify-content: center;
    padding-top: 80px; /* Pour compenser le menu fixe */
}

/* Les feuilles flottantes en arriere plan */
.floating-leaf { position: absolute; font-size: 4rem; z-index: 0; opacity: 0.6; }
.leaf-1 { top: 15%; left: 10%; animation: float 6s ease-in-out infinite; }
.leaf-2 { bottom: 20%; right: 10%; animation: float 8s ease-in-out infinite reverse; }

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(0, 20px) rotate(5deg); }
}

.hero-center-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 1000px;
}

/* Le Logo */
.logo-hero-container {
    width: 250px; /* Taille contrôlée */
    height: 250px;
    margin-bottom: 60px;
}
#main-logo-hero {
    width: 100%; height: 100%; object-fit: contain;
}

/* Le Titre */
.hero-title-overlay {
    font-family: var(--font-heading);
    font-size: clamp(3.5rem, 8vw, 8rem);
    line-height: 0.9;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-main);
    opacity: 0.8;
    max-width: 500px;
    margin: 0 auto 3rem auto;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute; bottom: 30px; left: 50%;
    transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    opacity: 0.6; font-size: 0.8rem; letter-spacing: 2px; text-transform: uppercase;
}
.mouse { width: 26px; height: 40px; border: 2px solid var(--text-main); border-radius: 20px; position: relative; }
.mouse::after { 
    content: ''; position: absolute; top: 5px; left: 50%; transform: translateX(-50%);
    width: 4px; height: 4px; background: var(--text-main); border-radius: 50%;
    animation: scrollWheel 2s infinite;
}
@keyframes scrollWheel { 0% { top: 5px; opacity: 1; } 100% { top: 20px; opacity: 0; } }

/* --- SECTIONS STANDARDS --- */
section { padding: 100px 0; position: relative; z-index: 1; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.section-header { margin-bottom: 60px; }
.section-tag { 
    font-family: 'Courier New', monospace; color: var(--primary); 
    background: rgba(74, 222, 128, 0.1); padding: 5px 10px; border-radius: 4px;
    font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px;
}
.section-title { 
    font-family: var(--font-heading); font-size: clamp(2.5rem, 5vw, 4rem); 
    color: var(--text-main); margin-top: 15px; line-height: 1.1; 
}

/* --- CARDS --- */
.glass-card {
    background: rgba(255,255,255, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255, 0.8);
    padding: 40px; border-radius: 20px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    margin-bottom: 80px;
    box-shadow: #88ffbf 0px 10px 10px -5px;
}
.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    background: rgba(255,255,255, 0.8);
}

/* --- BOUTONS --- */
.btn {
    display: inline-block; padding: 16px 32px;
    background: var(--primary); color: white;
    text-decoration: none; border-radius: 50px;
    font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
    transition: 0.3s; border: 1px solid var(--primary);
    box-shadow: #0f1c15 0px 10px 30px -5px;
}
.btn:hover { background: var(--neon-green); color: var(--text-main); border-color: var(--neon-green); }

/* --- MARQUEE --- */
.marquee {
    background: var(--primary); color: var(--neon-green);
    padding: 20px 0; overflow: hidden; white-space: nowrap;
    transform: rotate(-2deg) scale(1.05); /* Rotation stylée */
    margin: 50px 0;
}
.marquee-inner { display: inline-block; font-family: var(--font-heading); font-size: 2rem; font-weight: 900; text-transform: uppercase; }

/* --- FOOTER --- */
footer { background: var(--primary); color: var(--white); padding: 80px 0 30px; margin-top: 50px; border-radius: 40px 40px 0 0; }

/* --- PAGE CONTACT SPECIFIQUE --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px; }
.contact-info h3 { font-size: 1.5rem; margin-bottom: 10px; color: var(--neon-green); }
.contact-info p { margin-bottom: 30px; opacity: 0.8; }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 0.9rem; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 15px;
    background: rgba(255,255,255,0.5); border: 1px solid rgba(0,0,0,0.1);
    border-radius: 10px; font-family: inherit; font-size: 1rem;
    transition: 0.3s;
}
.form-group input:focus, .form-group textarea:focus {
    background: white; border-color: var(--primary); outline: none;
}

/* MOBILE */
@media (max-width: 768px) {
    .nav-links { display: none; } /* Faudrait un burger menu ici idealement */
    .hero-title-overlay { font-size: 3.5rem; }
    .contact-grid { grid-template-columns: 1fr; }
}
/* Empêche les débordements pendant les animations de slide */
section {
    overflow: hidden;
}

/* Optionnel : ajoute une transition douce sur les images du portfolio */
/* Le conteneur doit toujours cacher le débordement */
/* --- LE CADRE (CONTAINER) --- */
.project-image-wrapper {
    width: 100%;
    /* C'est ici que la magie opère pour le format 16:9 */
    aspect-ratio: 16 / 9; 
}

/* --- L'IMAGE (Celle qui bouge) --- */
/* Dans style.css */

/* Dans style.css */

.parallax-img {
    width: 100%;
    height: 100%;       /* Prend exactement la taille du cadre, pas plus */
    object-fit: cover;  /* Remplit le cadre sans déformer l'image */
    display: block;     /* Évite les petits espaces blancs fantômes sous les images */
    
    /* On annule les positions de l'effet précédent */
    position: static;   
    transform: none !important; /* Force l'annulation de tout mouvement */
}
.avantcroissance {
    width: 100%;
    height: 500px;
}
/* --- LOADER --- */
.loader {
    position: fixed;
    inset: 0;
    background: #f0fdf4;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

/* Cercle organique */
.loader-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    border-top-color: var(--neon-green);
}

/* Texte */
.loader-text {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    color: var(--primary);
}

html, body {
    width: 100%;
    overflow-x: hidden;
}
/* --- Section Différenciation --- */
.diff-section {
    padding: 120px 0;
}

.diff-header {
    text-align: center;
    margin-bottom: 60px;
}

.diff-lead {
    font-size: 1.5rem;
    margin-top: 20px;
    opacity: 0.9;
    max-width: 700px;
    margin-inline: auto;
}

.diff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.diff-card {
    background: var(--primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 30px;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    box-shadow: #88ffbf 0px 10px 5px -5px;
}


.diff-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.diff-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--white);
}

.diff-card p {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.7;
    color:white;
}

.diff-footer-box {
    text-align: center;
    background: var(--white); /* Ou une couleur contrastée */
    padding: 30px;
    border-radius: 20px;
    
}

.diff-footer-box p {
    font-size: 1.3rem;
    color: black;
}

.diff-footer-box strong {
    color: var(--neon-green);
    text-transform: uppercase;
}
/* --- AJOUTS PAGE ABOUT --- */
/* --- AJOUTS FINAUX (Coller en bas du fichier) --- */

/* Tech Pills (Les bulles de compétences) */
.tech-pill {
    padding: 15px 30px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    cursor: default;
}
.tech-pill:hover {
    background: white; color: var(--primary); transform: translateY(-5px);
}

/* Responsive pour la page About */
@media (max-width: 900px) {
    .about-hero { grid-template-columns: 1fr !important; gap: 40px !important; }
    .project-image-wrapper { height: 300px !important; }
    /* Force les grilles 2 colonnes à devenir 1 colonne sur mobile */
    section div[style*="grid-template-columns: 1fr 1fr"] { grid-template-columns: 1fr !important; }
    section div[style*="background: white"] { grid-template-columns: 1fr !important; }
}

/* --- GESTION DES IMAGES (Code Final) --- */

/* Pour les images d'illustration (Wok, Paysage, Portrait, Abstract) */
.project-image-wrapper img, 
.project-preview img,
.parallax-img,
.project-item img {
    width: 100%;
    height: 100%;
    object-fit: cover !important; /* On remplit le cadre, c'est plus beau pour des photos */
    display: block;
}

/* On garde les coins arrondis et on cache ce qui dépasse */
.project-image-wrapper,

.project-item > div:first-child {
    overflow: hidden;
    position: relative;
    background: #e1f2e6; /* Petit fond vert pendant le chargement */
}
/* Correction pour que l'image soit "normale" et remplisse son bloc */
.project-image-wrapper img {
    width: 100%;        /* Prend toute la largeur du container */
    height: auto;       /* Garde ses proportions d'origine */
    object-fit: cover;  /* Remplit l'espace sans laisser de vide */
    display: block;
}

/* On s'assure qu'aucun fond n'est appliqué aux conteneurs de la page About */
.project-image-wrapper {
    background: transparent !important;
}

.growth-image {
    aspect-ratio: auto;
}

.growth-image img {
    width: 100%;
    height: 450px;
    object-fit: contain !important;
}
