/* ======================================================================
   CARNUTIS SAS - STYLES GLOBAUX & 100% RESPONSIVE MOBILE
   Domaine : www.carnutis.com
   ====================================================================== */

:root {
    --bg-body: #F8FAFC;
    --bg-surface: #FFFFFF;
    --text-main: #152238;
    --text-muted: #475569;
    
    --carnutis-navy: #152238;
    --chartres-blue: #2563EB;
    --chartres-cyan: #06B6D4;
    --gold-accent: #C5A059;
    --gold-light: rgba(197, 160, 89, 0.12);
    
    --gradient-primary: linear-gradient(135deg, #152238 0%, #2563EB 60%, #06B6D4 100%);
    --gradient-gold: linear-gradient(135deg, #C5A059 0%, #DFB775 100%);
    
    --border-light: rgba(226, 232, 240, 0.8);
    --shadow-soft: 0 20px 40px -15px rgba(21, 34, 56, 0.07);
    --shadow-hover: 0 25px 50px -12px rgba(37, 99, 235, 0.2);
    
    --font-main: 'Plus Jakarta Sans', sans-serif;
    --font-tech: 'Space Grotesk', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-family: var(--font-main);
    background-color: var(--bg-body);
    color: var(--text-main);
    overflow-x: hidden;
}

body { line-height: 1.6; overflow-x: hidden; }

/* ----------------------------------------------------------------------
   HEADER & NAVIGATION UNIFIÉS
   ---------------------------------------------------------------------- */
header {
    position: fixed; top: 0; left: 0; width: 100%; height: 76px; z-index: 1000;
    background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-light); display: flex; align-items: center;
}

.nav-container {
    width: 100%; max-width: 1280px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center; padding: 0 2rem;
    position: relative;
}

.logo-header { height: 42px; width: auto; display: block; transition: transform 0.2s ease; }

.nav-links { display: flex; gap: 2.2rem; list-style: none; align-items: center; margin: 0; padding: 0; }
.nav-links a {
    color: var(--text-main); text-decoration: none; font-weight: 600; font-size: 0.95rem;
    padding: 0.4rem 0; border-bottom: 2px solid transparent; transition: all 0.2s ease; white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active {
    color: var(--chartres-blue); border-bottom-color: var(--chartres-blue);
}

.btn-gold {
    background: var(--gradient-gold); color: #152238 !important; padding: 0.65rem 1.6rem !important;
    border-radius: 50px; text-decoration: none !important; font-weight: 800 !important; font-size: 0.9rem !important;
    box-shadow: 0 8px 18px -4px rgba(197, 160, 89, 0.4); transition: all 0.3s ease !important;
    border: none !important; display: inline-block;
}

/* BOUTON MENUS BURGER (Masqué sur PC) */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--carnutis-navy);
    font-size: 1.6rem;
    padding: 4px 12px;
    border-radius: 10px;
    cursor: pointer;
    line-height: 1;
}

/* ----------------------------------------------------------------------
   BACKGROUND ANIMÉ
   ---------------------------------------------------------------------- */
.bg-mesh {
    position: fixed; top: 0; left: 50%; transform: translateX(-50%);
    width: 100vw; height: 100vh; z-index: -1;
    background: 
        radial-gradient(circle at 10% 15%, rgba(6, 182, 212, 0.10) 0%, transparent 40%),
        radial-gradient(circle at 90% 20%, rgba(197, 160, 89, 0.10) 0%, transparent 40%),
        radial-gradient(circle at 50% 80%, rgba(37, 99, 235, 0.08) 0%, transparent 50%);
    filter: blur(70px); pointer-events: none; animation: floatMesh 14s ease-in-out infinite alternate;
}

@keyframes floatMesh {
    0% { transform: translateX(-50%) translateY(0) scale(1); }
    100% { transform: translateX(-50%) translateY(30px) scale(1.05); }
}

/* ----------------------------------------------------------------------
   SECTIONS & HERO (TYPOGRAPHIE FLUIDE ET ADAPTATIVE)
   ---------------------------------------------------------------------- */
.hero { padding: 150px 2rem 80px; max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 4rem; align-items: center; }
.hero-page { padding: 150px 2rem 60px; max-width: 1280px; margin: 0 auto; text-align: center; }

.hero h1, .hero-page h1 { font-size: clamp(2.1rem, 5vw, 3.8rem); font-weight: 800; line-height: 1.15; letter-spacing: -1px; margin-bottom: 1.5rem; }
.text-gradient-blue { background: linear-gradient(135deg, #152238 0%, #2563EB 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.badge-chartres { display: inline-flex; align-items: center; gap: 10px; background: #FFF; border: 1px solid var(--border-light); padding: 8px 22px; border-radius: 50px; font-size: 0.85rem; font-weight: 700; color: var(--carnutis-navy); box-shadow: var(--shadow-soft); margin-bottom: 1.8rem; }
.pulse-dot { width: 8px; height: 8px; background: var(--gold-accent); border-radius: 50%; box-shadow: 0 0 10px var(--gold-accent); animation: pulse 2s infinite; }

@keyframes pulse { 0% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(1.4); } 100% { opacity: 1; transform: scale(1); } }

.hero p, .hero-page p { font-size: 1.2rem; color: var(--text-muted); max-width: 800px; margin-bottom: 2.5rem; }
.hero-page p { margin-left: auto; margin-right: auto; }

.hero-actions { display: flex; gap: 1.2rem; margin-bottom: 3rem; }

.btn-navy { background: var(--carnutis-navy); color: #FFF; padding: 0.8rem 2rem; border-radius: 50px; text-decoration: none; font-weight: 700; font-size: 0.95rem; box-shadow: 0 10px 25px -5px rgba(21, 34, 56, 0.4); transition: all 0.3s ease; display: inline-block; }
.btn-outline { background: #FFF; border: 1px solid var(--border-light); color: var(--text-main); padding: 0.8rem 2rem; border-radius: 50px; text-decoration: none; font-weight: 700; font-size: 0.95rem; box-shadow: var(--shadow-soft); transition: all 0.3s ease; display: inline-block; }

.hero-visual-card { background: var(--bg-surface); border: 1px solid var(--border-light); border-radius: 32px; padding: 2.5rem; text-align: center; box-shadow: var(--shadow-hover); }
.hero-logo-square { max-width: 100%; height: auto; max-height: 300px; object-fit: contain; }

/* ----------------------------------------------------------------------
   METRICS & SHOWCASE
   ---------------------------------------------------------------------- */
.metrics-banner { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(20px); border: 1px solid var(--border-light); border-radius: 24px; padding: 2rem; box-shadow: var(--shadow-soft); max-width: 1280px; margin: 0 auto; }
.metric-item h3 { font-size: 2.2rem; font-weight: 800; font-family: var(--font-tech); color: var(--carnutis-navy); }
.metric-item p { font-size: 0.85rem; color: var(--text-muted); font-weight: 700; text-transform: uppercase; }

section { padding: 80px 2rem; max-width: 1280px; margin: 0 auto; }
.section-title { text-align: center; margin-bottom: 3.5rem; }
.section-title h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 800; }
.section-title p { color: var(--text-muted); font-size: 1.1rem; margin-top: 0.5rem; }

.showcase-box { background: var(--bg-surface); border: 1px solid var(--border-light); border-radius: 24px; padding: 3.5rem; box-shadow: var(--shadow-soft); }
.tab-nav { display: flex; justify-content: center; gap: 1rem; margin-bottom: 3rem; }
.tab-btn { background: var(--bg-body); border: 1px solid var(--border-light); padding: 0.9rem 2.2rem; border-radius: 50px; font-weight: 700; font-size: 1rem; cursor: pointer; color: var(--text-muted); font-family: var(--font-main); }
.tab-btn.active { background: var(--carnutis-navy); color: #FFF; border-color: transparent; }
.tab-pane { display: none; grid-template-columns: 1fr 1.2fr; gap: 3.5rem; align-items: center; }
.tab-pane.active { display: grid; }

.feature-bullets { list-style: none; margin-bottom: 2rem; }
.feature-bullets li { display: flex; align-items: center; gap: 12px; margin-bottom: 0.9rem; font-weight: 600; }
.feature-bullets li::before { content: "✓"; color: var(--chartres-blue); background: rgba(37, 99, 235, 0.12); width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; font-weight: 800; }

.saas-window-mockup { background: #152238; border-radius: 18px; padding: 1.8rem; color: #FFF; border: 1px solid rgba(255, 255, 255, 0.1); }
.window-header { display: flex; gap: 8px; margin-bottom: 1.5rem; }
.window-dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-red { background: #EF4444; } .dot-yellow { background: #F59E0B; } .dot-green { background: #10B981; }
.mock-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.mock-card { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08); padding: 1.2rem; border-radius: 12px; }
.mock-card span { font-size: 0.75rem; color: var(--gold-accent); font-weight: 700; text-transform: uppercase; }
.mock-card h4 { font-size: 1.3rem; margin-top: 0.3rem; font-family: var(--font-tech); }

/* ----------------------------------------------------------------------
   GRID FEATURES & EXPERTISE
   ---------------------------------------------------------------------- */
.cards-grid, .grid-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.card-luminous, .feature-card { background: var(--bg-surface); border: 1px solid var(--border-light); padding: 2.5rem; border-radius: 24px; box-shadow: var(--shadow-soft); transition: all 0.3s ease; }
.card-luminous:hover, .feature-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.card-icon { width: 52px; height: 52px; background: rgba(197, 160, 89, 0.12); color: var(--gold-accent); border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; margin-bottom: 1.8rem; }

.chartres-heritage { background: linear-gradient(135deg, #152238 0%, #1E293B 100%); color: #FFF; border-radius: 32px; padding: 4.5rem; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.heritage-logo-card { background: #FFFFFF; padding: 2rem 2.5rem; border-radius: 28px; display: inline-block; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25); }
.heritage-logo-card img { max-width: 100%; height: auto; max-height: 260px; object-fit: contain; }

.founders-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2rem; }
.founder-card { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); padding: 1.5rem; border-radius: 16px; }
.founder-card h4 { font-size: 1.15rem; color: #FFF; }
.founder-card p { color: var(--gold-accent); font-size: 0.85rem; font-weight: 600; }

.contact-card, .legal-container, .legal-box { background: var(--bg-surface); border: 1px solid var(--border-light); border-radius: 24px; padding: 3.5rem; box-shadow: var(--shadow-soft); max-width: 900px; margin: 0 auto; }
.contact-card { max-width: 720px; }
.legal-container, .legal-box { margin-top: 120px; margin-bottom: 60px; }

.form-control { width: 100%; padding: 1rem 1.2rem; border: 1px solid var(--border-light); background: var(--bg-body); border-radius: 12px; font-family: inherit; font-size: 1rem; margin-top: 0.4rem; }

/* ----------------------------------------------------------------------
   FOOTER
   ---------------------------------------------------------------------- */
footer { border-top: 1px solid var(--border-light); padding: 4rem 2rem 2rem; background: #FFF; font-size: 0.9rem; color: var(--text-muted); }
.footer-content { max-width: 1280px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border-light); }
.footer-logo-wrapper { background: #FFFFFF; padding: 8px 18px; border-radius: 14px; display: inline-block; border: 1px solid var(--border-light); }
.footer-logo-wrapper img { height: 38px; width: auto; display: block; }
.footer-nav-links { display: flex; gap: 1.5rem; list-style: none; flex-wrap: wrap; }
.footer-nav-links a { color: var(--text-muted); text-decoration: none; font-weight: 600; }
.footer-nav-links a:hover { color: var(--chartres-blue); }

/* ======================================================================
   RELES RESPONSIVES SPÉCIFIQUES POUR ÉCRANS MOBILES ET TABLETTES (< 900px)
   ====================================================================== */
@media (max-width: 900px) {
    header { height: 68px; }
    .nav-container { padding: 0 1.25rem; }
    .logo-header { height: 36px; }

    /* Affiche le bouton Burger */
    .mobile-menu-toggle { display: block; }

    /* Menu déroulant mobile */
    .nav-links {
        display: none; /* Masqué par défaut */
        position: absolute;
        top: 68px; left: 0; width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border-light);
        flex-direction: column;
        padding: 1.5rem 1.25rem;
        gap: 1.2rem;
        box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
    }

    .nav-links.mobile-open {
        display: flex !important;
        animation: slideDown 0.3s ease-out;
    }

    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .nav-links a { width: 100%; text-align: center; font-size: 1.05rem; padding: 0.5rem 0; }
    .btn-gold { width: 100%; text-align: center; }

    /* Adaptation des héros */
    .hero { grid-template-columns: 1fr; text-align: center; padding: 110px 1.25rem 40px; gap: 2.5rem; }
    .hero-page { padding: 110px 1.25rem 40px; }
    
    .hero-actions { flex-direction: column; gap: 0.8rem; }
    .hero-actions .btn-navy, .hero-actions .btn-outline { width: 100%; text-align: center; }

    .hero-visual-card { padding: 1.5rem; border-radius: 24px; }
    .hero-logo-square { max-height: 220px; }

    /* Banner Metrics */
    .metrics-banner { grid-template-columns: repeat(2, 1fr); gap: 1rem; padding: 1.25rem; border-radius: 20px; }
    .metric-item h3 { font-size: 1.75rem; }

    /* Conteneurs & Cartes */
    section { padding: 50px 1.25rem; }
    .showcase-box, .contact-card, .chartres-heritage, .legal-container, .legal-box { padding: 1.5rem 1.25rem; border-radius: 20px; }

    .tab-nav { flex-direction: column; gap: 0.6rem; margin-bottom: 2rem; }
    .tab-btn { width: 100%; text-align: center; padding: 0.8rem 1rem; }
    .tab-pane { grid-template-columns: 1fr; gap: 2rem; }

    .mock-grid { grid-template-columns: 1fr; }
    .chartres-heritage { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
    .founders-grid { grid-template-columns: 1fr; gap: 1rem; }

    .cards-grid, .grid-features { grid-template-columns: 1fr; gap: 1.25rem; }
    .card-luminous, .feature-card { padding: 1.5rem; border-radius: 20px; }

    .footer-content { flex-direction: column; text-align: center; align-items: center; gap: 1.5rem; }
    .footer-nav-links { justify-content: center; gap: 1rem; }

    .legal-container, .legal-box { margin-top: 90px; margin-bottom: 40px; }
}

/* ======================================================================
   SECTION HISTOIRE & FONDATEURS - DESIGN DESIGN SLEEK & MINIMAL
   ====================================================================== */

.location-badge-dark {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gold-accent);
    margin-bottom: 1.5rem;
}

.heritage-title {
    font-size: clamp(2rem, 4vw, 2.5rem) !important;
    font-weight: 800;
    color: #FFFFFF !important;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.heritage-text {
    color: #94A3B8 !important;
    font-size: 1.1rem !important;
    line-height: 1.7 !important;
    margin-bottom: 2.5rem !important;
}

/* Grille Épurée */
.founders-sleek-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.founder-card-sleek {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.8rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.founder-card-sleek:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(197, 160, 89, 0.4);
    transform: translateY(-4px);
}

.role-badge {
    font-size: 0.68rem;
    font-weight: 800;
    color: var(--gold-accent);
    letter-spacing: 0.8px;
    display: block;
    margin-bottom: 0.4rem;
}

.founder-card-sleek h4 {
    font-size: 1.2rem;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 0.2rem;
}

.role-sub {
    font-size: 0.88rem;
    color: #94A3B8;
    margin-bottom: 1.2rem;
}

.linkedin-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #38BDF8 !important;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.linkedin-link:hover {
    color: #7DD3FC !important;
    text-decoration: underline !important;
}

@media (max-width: 600px) {
    .founders-sleek-grid {
        grid-template-columns: 1fr;
    }
}