/* ============================================================
   GEORFLOW AI - STYLESHEET OPTIMISÉ
   ============================================================ */

/* ===== CSS VARIABLES ===== */
:root {
    --dark: #050816;
    --dark-2: #0b1020;
    --card: rgba(255, 255, 255, 0.08);
    --border: rgba(255, 255, 255, 0.14);
    --cyan: #00d4ff;
    --green: #00ff99;
    --text: #ffffff;
    --muted: #b9c3d6;
    
    /* Nouvelles variables pour plus de flexibilité */
    --gradient-primary: linear-gradient(135deg, var(--cyan), var(--green));
    --gradient-card: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05));
    --shadow-glow: 0 0 35px rgba(0, 212, 255, 0.35);
    --shadow-card: 0 30px 100px rgba(0, 0, 0, 0.35);
    --radius-sm: 15px;
    --radius-md: 28px;
    --radius-lg: 38px;
    --radius-full: 999px;
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background: var(--dark);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ===== BACKGROUND EFFECTS ===== */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 15% 10%, rgba(0, 212, 255, 0.22), transparent 30%),
        radial-gradient(circle at 85% 20%, rgba(0, 255, 153, 0.18), transparent 30%),
        radial-gradient(circle at 50% 100%, rgba(58, 88, 255, 0.18), transparent 35%);
    z-index: -2;
    pointer-events: none;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, black, transparent 85%);
    -webkit-mask-image: linear-gradient(to bottom, black, transparent 85%);
    z-index: -1;
    pointer-events: none;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.1;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ===== NAVBAR ===== */
.navbar {
    padding: 18px 0;
    background: rgba(5, 8, 22, 0.72);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition-base);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    text-decoration: none;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.8px;
    transition: opacity var(--transition-base);
}

.brand:hover {
    opacity: 0.85;
}

.brand-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    display: grid;
    place-items: center;
    background: var(--gradient-primary);
    color: #03101b;
    box-shadow: var(--shadow-glow);
}

.nav-link {
    color: var(--muted) !important;
    font-weight: 600;
    margin: 0 8px;
    transition: color var(--transition-base);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: all var(--transition-base);
    transform: translateX(-50%);
}

.nav-link:hover {
    color: white !important;
}

.nav-link:hover::after {
    width: 70%;
}

/* ===== BUTTONS ===== */
.btn-glow {
    border: 0;
    border-radius: var(--radius-full);
    padding: 12px 22px;
    font-weight: 800;
    color: #03101b;
    background: var(--gradient-primary);
    box-shadow: 0 15px 35px rgba(0, 212, 255, 0.22);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all var(--transition-base);
    cursor: pointer;
    will-change: transform;
}

.btn-glow:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 45px rgba(0, 212, 255, 0.35);
}

.btn-soft {
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: 12px 22px;
    font-weight: 800;
    color: white;
    background: rgba(255, 255, 255, 0.07);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all var(--transition-base);
    backdrop-filter: blur(10px);
}

.btn-soft:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(0, 212, 255, 0.5);
    transform: translateY(-2px);
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 0 70px;
}

.badge-ai {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border);
    color: var(--muted);
    font-weight: 700;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.6s ease-out;
}

.hero h1 {
    font-size: clamp(46px, 7vw, 88px);
    font-weight: 900;
    line-height: 0.98;
    letter-spacing: -4px;
    animation: fadeInUp 0.6s ease-out 0.1s backwards;
}

.hero p {
    margin-top: 26px;
    color: var(--muted);
    font-size: 19px;
    line-height: 1.8;
    max-width: 760px;
    animation: fadeInUp 0.6s ease-out 0.2s backwards;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 34px;
    animation: fadeInUp 0.6s ease-out 0.3s backwards;
}

.hero-card {
    background: var(--gradient-card);
    border: 1px solid var(--border);
    border-radius: 32px;
    padding: 24px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-card);
    animation: fadeInRight 0.7s ease-out;
}

/* ===== MOCK WINDOW ===== */
.mock-window {
    border-radius: 26px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: #080d1c;
}

.mock-top {
    padding: 14px;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.2);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot:nth-child(1) { background: #ff5f57; }
.dot:nth-child(2) { background: #febc2e; }
.dot:nth-child(3) { background: #28c840; }

.mock-body {
    padding: 22px;
}

.chat-line {
    padding: 15px;
    border-radius: 18px;
    margin-bottom: 14px;
    color: #dfe8ff;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.08);
    animation: fadeInUp 0.5s ease-out backwards;
}

.chat-line:nth-child(1) { animation-delay: 0.1s; }
.chat-line:nth-child(2) { animation-delay: 0.3s; }

.chat-line.user {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(0, 255, 153, 0.12));
}

.mini-map {
    height: 210px;
    border-radius: 22px;
    margin-top: 18px;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(90deg, transparent 48%, rgba(0, 212, 255, 0.3) 49%, rgba(0, 212, 255, 0.3) 51%, transparent 52%),
        linear-gradient(0deg, transparent 48%, rgba(0, 255, 153, 0.25) 49%, rgba(0, 255, 153, 0.25) 51%, transparent 52%),
        radial-gradient(circle at 30% 40%, rgba(0, 212, 255, 0.4), transparent 10%),
        radial-gradient(circle at 70% 60%, rgba(0, 255, 153, 0.35), transparent 10%),
        #10182b;
}

.route {
    position: absolute;
    inset: 35px;
    border: 3px dashed var(--green);
    border-radius: 45%;
    animation: pulse 2s ease-in-out infinite;
    will-change: transform, opacity;
}

/* ===== ANIMATIONS ===== */
@keyframes pulse {
    0% { 
        opacity: 0.3; 
        transform: scale(0.98); 
    }
    50% { 
        opacity: 1; 
        transform: scale(1); 
    }
    100% { 
        opacity: 0.3; 
        transform: scale(0.98); 
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== SECTIONS ===== */
section {
    padding: 95px 0;
    position: relative;
}

.section-heading {
    text-align: center;
    margin-bottom: 55px;
}

.section-heading span {
    color: var(--green);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 13px;
}

.section-heading h2 {
    font-size: clamp(34px, 5vw, 58px);
    font-weight: 900;
    letter-spacing: -2px;
    margin-top: 10px;
}

.section-heading p {
    color: var(--muted);
    max-width: 760px;
    margin: 18px auto 0;
    line-height: 1.8;
}

/* ===== CARDS ===== */
.feature-card,
.tech-card,
.step-card,
.stat-card {
    height: 100%;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 30px;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: var(--transition-base);
    will-change: transform;
}

.feature-card:hover,
.tech-card:hover,
.step-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 212, 255, 0.5);
    box-shadow: 0 25px 65px rgba(0, 0, 0, 0.3);
}

.icon-box {
    width: 62px;
    height: 62px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    margin-bottom: 22px;
    color: #03101b;
    background: var(--gradient-primary);
    font-size: 26px;
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.2);
}

.feature-card h4,
.tech-card h4,
.step-card h4 {
    font-weight: 900;
    margin-bottom: 14px;
    font-size: 1.25rem;
}

.feature-card p,
.tech-card p,
.step-card p {
    color: var(--muted);
    line-height: 1.75;
}

/* ===== STATS ===== */
.stats-strip {
    margin-top: 40px;
}

.stat-card {
    text-align: center;
}

.stat-card h3 {
    font-size: 44px;
    font-weight: 900;
    color: var(--green);
    margin-bottom: 8px;
}

.stat-card p {
    color: var(--muted);
    margin: 0;
}

/* ===== ARCHITECTURE SECTION ===== */
.architecture {
    background: rgba(255, 255, 255, 0.035);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.flow-box {
    padding: 18px 20px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border);
    font-weight: 800;
    text-align: center;
    margin-bottom: 14px;
    transition: var(--transition-base);
}

.flow-box:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(0, 212, 255, 0.4);
}

.arrow {
    text-align: center;
    color: var(--green);
    font-size: 22px;
    margin-bottom: 14px;
}

/* ===== CTA SECTION ===== */
.cta {
    padding: 90px 0;
}

.cta-box {
    border-radius: var(--radius-lg);
    padding: 55px;
    background:
        linear-gradient(135deg, rgba(0, 212, 255, 0.18), rgba(0, 255, 153, 0.15)),
        rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    text-align: center;
    backdrop-filter: blur(20px);
}

.cta-box h2 {
    font-size: clamp(34px, 5vw, 60px);
    font-weight: 900;
    letter-spacing: -2px;
}

/* ===== CEO CARD (AMÉLIORÉ) ===== */
.ceo-card {
    position: relative;
    overflow: hidden;
    text-align: center;
    height: 100%;
}

.ceo-card::before {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    background: rgba(0, 212, 255, 0.15);
    border-radius: 50%;
    top: -80px;
    right: -80px;
    filter: blur(20px);
    animation: floatEffect 6s ease-in-out infinite;
}

.ceo-card::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    background: rgba(0, 255, 153, 0.1);
    border-radius: 50%;
    bottom: -60px;
    left: -60px;
    filter: blur(20px);
    animation: floatEffect 8s ease-in-out 1s infinite reverse;
}

@keyframes floatEffect {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(15px, -15px); }
}

.ceo-image-box {
    position: relative;
    width: 230px;
    height: 230px;
    margin: 0 auto 25px;
    border-radius: 50%;
    padding: 6px;
    background: var(--gradient-primary);
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.35);
    transition: var(--transition-base);
}

.ceo-image-box:hover {
    transform: scale(1.05);
    box-shadow: 0 0 60px rgba(0, 212, 255, 0.5);
}

.ceo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #08101f;
}

.ceo-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border);
    color: var(--green);
    font-weight: 700;
    margin-bottom: 18px;
    backdrop-filter: blur(10px);
}

.ceo-name {
    font-size: 38px;
    font-weight: 900;
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.ceo-role {
    color: var(--cyan);
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 18px;
}

.ceo-description {
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 30px;
}

.ceo-infos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.info-item {
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #dfe8ff;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition-base);
}

.info-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.3);
}

.info-item i {
    display: block;
    margin-bottom: 10px;
    font-size: 20px;
    color: var(--green);
}

.ceo-socials {
    display: flex;
    justify-content: center;
    gap: 14px;
}

.social-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border);
    color: white;
    text-decoration: none;
    transition: var(--transition-base);
}

.social-btn:hover {
    transform: translateY(-5px);
    background: var(--gradient-primary);
    color: #03101b;
    box-shadow: var(--shadow-glow);
}

/* ===== FOOTER ===== */
.footer {
    padding: 35px 0;
    border-top: 1px solid var(--border);
    color: var(--muted);
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .hero {
        padding: 120px 0 50px;
        text-align: center;
    }
    
    .hero h1 {
        letter-spacing: -2px;
    }
    
    .hero p {
        max-width: 100%;
    }
    
    .hero-card {
        margin-top: 45px;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .cta-box {
        padding: 35px 25px;
    }
    
    section {
        padding: 65px 0;
    }
}

@media (max-width: 576px) {
    .ceo-name {
        font-size: 28px;
    }
    
    .ceo-infos {
        grid-template-columns: 1fr;
    }
    
    .ceo-image-box {
        width: 190px;
        height: 190px;
    }
    
    .hero h1 {
        letter-spacing: -1px;
    }
    
    .brand {
        font-size: 20px;
    }
    
    .stat-card h3 {
        font-size: 32px;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    body::before,
    body::after {
        display: none;
    }
    
    .navbar,
    .footer {
        position: static;
    }
}