/* --- VARIABLES --- */
:root {
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-tertiary: #1c1c1e;
    
    --text-main: #f5f5f7;
    --text-muted: #86868b;
    
    --accent: #2997ff; /* Apple Blue */
    --border: rgba(255, 255, 255, 0.1);
    
    --radius-card: 24px;
    --radius-btn: 980px;
    
    --font-stack: -apple-system, BlinkMacSystemFont, "Roboto", "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    font-family: var(--font-stack);
    overflow-x: hidden;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* --- TYPOGRAPHIE --- */
h1, h2, h3 { font-weight: 700; letter-spacing: -0.01em; }

h1 { 
    font-size: clamp(2.5rem, 6vw, 5rem); 
    line-height: 1.08; 
    margin-bottom: 20px;
    /* Dégradé Apple */
    background: linear-gradient(180deg, #ffffff 0%, #b8b8c2 100%); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
    background-clip: text;
}

h2 { 
    font-size: clamp(2rem, 4vw, 3.5rem); 
    margin-bottom: 20px; 
    background: linear-gradient(180deg, #ffffff 0%, #a1a1a6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h3 { font-size: 1.3rem; margin-bottom: 10px; color: var(--text-main); }

p { 
    font-size: 1.125rem; color: var(--text-muted); font-weight: 400; 
    margin: 0 auto; line-height: 1.6; 
}

.hero-sub { 
    font-size: clamp(1.1rem, 2vw, 1.5rem); 
    margin-bottom: 40px; 
    color: var(--text-muted);
    max-width: 850px; 
}

/* --- UTILS --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 25px; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.section-padding { padding: 140px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* --- BOUTONS --- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 14px 32px; border-radius: var(--radius-btn);
    font-size: 1.05rem; font-weight: 600; cursor: pointer;
    transition: all 0.3s ease; white-space: nowrap; 
}
.btn-primary {
    background: #fff; color: #000;
    box-shadow: 0 4px 20px rgba(255,255,255,0.15);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(255,255,255,0.25); }

.btn-outline {
    background: transparent; border: 1px solid rgba(255,255,255,0.3); color: #fff;
}
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.05); }

/* --- NAVIGATION --- */
nav {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    background: rgba(0, 0, 0, 0.7); 
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 12px 0;
}
.nav-content { display: flex; justify-content: space-between; align-items: center; }

.logo-container { display: flex; align-items: center; gap: 10px; }
.logo-text { 
    font-weight: 700; font-size: 1.2rem; letter-spacing: -0.5px;
    background: linear-gradient(to right, #fff, #aaa);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.nav-links { display: flex; gap: 30px; font-size: 0.9rem; font-weight: 500; color: var(--text-muted); }
.nav-links a:hover { color: var(--text-main); }

.lang-switch { display: flex; gap: 10px; align-items: center; margin-right: 15px; border-left: 1px solid rgba(255,255,255,0.15); padding-left: 15px; }
.lang-btn { font-size: 0.85rem; font-weight: 700; color: var(--text-muted); opacity: 0.6; }
.lang-btn.active { opacity: 1; color: var(--text-main); }
.lang-btn:hover { color: #fff; opacity: 1; }

.nav-right { display: flex; align-items: center; }

/* --- HERO --- */
.hero {
    position: relative;
    min-height: 100vh; 
    padding-top: 160px; 
    display: flex; flex-direction: column; align-items: center; text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -1;
    /* CORRECTION ICI : Ajout de ../ pour remonter chercher l'image à la racine */
    background: 
        linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.95) 80%, #000 100%),
        url('../fond.jpg') center/cover no-repeat;
}

.hero-glow {
    position: absolute; top: -20%; left: 50%; transform: translateX(-50%);
    width: 80vw; height: 80vh;
    background: radial-gradient(circle, rgba(41, 151, 255, 0.12) 0%, rgba(0,0,0,0) 60%);
    pointer-events: none; z-index: -1;
}

.mockup-container { 
    margin: 60px auto 0; 
    position: relative; 
    width: 90%; 
    max-width: 1080px; 
    perspective: 2000px; 
    z-index: 10; 
}

.browser-mockup { 
    border-radius: 14px; 
    overflow: hidden; 
    box-shadow: 0 0 0 1px rgba(255,255,255,0.1), 0 50px 100px -30px rgba(0,0,0,0.8), 0 0 80px -20px rgba(41, 151, 255, 0.15);
    transform: rotateX(5deg) translateY(20px); 
    transform-origin: center top; 
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); 
    background: #000; 
}
.browser-mockup:hover { transform: rotateX(0deg) translateY(0) scale(1.02); }

.mockup-img { width: 100%; height: auto; display: block; }

/* --- FEATURES --- */
.feature-split { display: grid; grid-template-columns: 45% 50%; gap: 5%; align-items: center; }
.feature-split.reverse { grid-template-columns: 50% 45%; }
.feature-split.reverse .feature-text { order: 2; }
.feature-split.reverse .feature-image-wrapper { order: 1; }

.feature-text ul { margin-top: 30px; text-align: left;}
.feature-text li { 
    margin-bottom: 15px; display: flex; align-items: flex-start; gap: 12px; 
    color: var(--text-muted); font-size: 1.05rem; 
}
.feature-text li::before { content: "✓"; color: var(--accent); font-weight: 700; margin-top: 2px; }

.feature-image-wrapper { position: relative; perspective: 1000px; }

.feature-img-styled { 
    width: 100%; border-radius: 20px; 
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7); 
    border: 1px solid rgba(255, 255, 255, 0.1); 
    transition: transform 0.5s; 
}
.feature-image-wrapper:hover .feature-img-styled { transform: scale(1.02); }

/* --- BENTO GRID (REDESIGN) --- */
.bento-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 24px; 
    margin-top: 50px;
}

.bento-card { 
    background: linear-gradient(145deg, var(--bg-tertiary), #252525);
    border: 1px solid var(--border); 
    border-radius: var(--radius-card); 
    padding: 30px 25px; 
    display: flex; flex-direction: column; 
    justify-content: flex-start; /* Alignement haut */
    align-items: flex-start; /* Alignement gauche */
    position: relative; overflow: hidden; 
    min-height: 320px; 
    transition: all 0.3s ease;
}
.bento-card:hover { transform: translateY(-8px); border-color: rgba(255,255,255,0.2); box-shadow: 0 10px 30px rgba(0,0,0,0.5); }

/* NOUVEAUX STYLES D'ICONES */
.icon-box {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
}

.icon-payout { background: linear-gradient(135deg, #30d158, #1c7c35); color: #fff; }
.icon-users { background: linear-gradient(135deg, #ffd60a, #d4af37); color: #000; }
.icon-paint { background: linear-gradient(135deg, #bf5af2, #5e5ce6); color: #fff; }
.icon-web { background: linear-gradient(135deg, #0a84ff, #0040dd); color: #fff; }

.bento-content { width: 100%; text-align: left; }
.bento-content h3 { color: #fff; font-size: 1.25rem; margin-bottom: 12px; font-weight: 700; }
.bento-content p { margin-left: 0; color: #a1a1a6; font-size: 0.95rem; line-height: 1.5; }

/* --- IA SECTION --- */
.ia-glow {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 150px; height: 150px; background: var(--accent); opacity: 0.15; filter: blur(60px);
    border-radius: 50%; z-index: 0; pointer-events: none;
}

/* --- FORMULAIRE --- */
.form-input { 
    width: 100%; padding: 16px; border-radius: 12px; 
    border: 1px solid var(--border); background: #1c1c1e; 
    color: #fff; font-size: 1rem; transition: 0.3s; 
}
.form-input:focus { outline: none; border-color: var(--accent); background: #2c2c2e; }

/* --- FOOTER --- */
footer { border-top: 1px solid var(--border); padding: 60px 0; color: var(--text-muted); font-size: 0.9rem; background: var(--bg-secondary); }

/* --- RESPONSIVE --- */
@media (max-width: 1100px) {
    .bento-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
    .nav-links { display: none; }
    /* HIDE BUTTON ON MOBILE */
    .nav-right .btn { display: none; }
    
    .feature-split, .feature-split.reverse { grid-template-columns: 1fr; display: flex; flex-direction: column; gap: 50px; }
    h1 { font-size: 2.8rem; margin-bottom: 15px; }
    .hero { padding-top: 120px; min-height: auto; padding-bottom: 60px; }
    .lang-switch { border: none; padding-left: 0; margin-right: 0; }
    .bento-grid { grid-template-columns: 1fr; }
    .bento-card { min-height: auto; }
    .hero-sub { padding: 0 15px; }
}

/* Ajout pour le Blog */
.blog-thumb {
    width: 100%;
    height: 180px;
    object-fit: cover; /* L'image remplit la zone sans être déformée */
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.bento-card.blog-card {
    padding: 0; /* On enlève le padding pour que l'image touche les bords */
    overflow: hidden; /* Important pour les coins arrondis */
    display: flex;
    flex-direction: column;
}
.blog-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
/* --- FIX MOBILE SPÉCIFIQUE --- */
@media (max-width: 768px) {
    /* 1. On force 1 seule colonne */
    .bento-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    /* 2. On arrête d'étirer les cartes en hauteur */
    .bento-card {
        min-height: auto !important; /* La hauteur s'adapte au contenu */
    }

    /* 3. On donne une belle taille à l'image */
    .blog-thumb {
        height: 200px; /* Suffisant pour bien voir l'image */
    }

    /* 4. On ajuste le texte pour qu'il respire */
    .blog-content {
        padding: 20px;
    }
    
    .bento-content h3 {
        font-size: 1.3rem; /* Titre plus lisible */
    }
}