/* style.css - Design System Auraneo Modern & Pro */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Couleurs Identité Aura Néo (Général) */
    --primary: #3b82f6;    /* Bleu Vibrant */
    --primary-dark: #1d4ed8;
    --secondary: #0f172a;  /* Slate 900 */
    
    /* Palette Produits */
    --color-prix: #10b981;   /* Emerald 500 */
    --color-prix-light: #ecfdf5;
    --color-bot: #a855f7;    /* Purple 500 */
    --color-bot-light: #f3e8ff;
    --color-ia: #4f46e5;     /* Indigo 600 */
    --color-ia-light: #e0e7ff;
    --color-update: #06b6d4; /* Cyan 500 */
    --color-update-light: #ecfeff;

    /* Thème par défaut (peut être surchargé par page) */
    --theme-color: var(--primary);
    --theme-light: #eff6ff;
    --hero-bg: rgba(59, 130, 246, 0.08);

    --bg-body: #f8fafc;      /* Slate 50 */
    --bg-card: #ffffff;
    --text-main: #1e293b;    /* Slate 800 */
    --text-muted: #64748b;   /* Slate 500 */
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-body);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Utilities */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }

.text-gradient {
    background: linear-gradient(135deg, var(--theme-color) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}
@keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes slideInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes borderFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.fade-in-up {
    animation: slideInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
}
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }

/* Navigation */
nav {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}
nav .container { display: flex; justify-content: space-between; align-items: center; }

.brand { 
    font-weight: 800; 
    font-size: 1.5rem; 
    color: var(--secondary); 
    text-decoration: none; 
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -0.03em;
}
.brand span { color: var(--theme-color); } /* Utilise la couleur du thème actuel */

.brand i {
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

.brand img { height: 32px; }

.nav-actions { display: flex; gap: 1rem; align-items: center; }
.lang-selector {
    padding: 0.5rem; border-radius: 8px; border: 1px solid #cbd5e1;
    background: #f8fafc; font-family: inherit; font-size: 0.9rem;
    cursor: pointer;
}

/* Hamburger Menu */
.nav-toggle {
    display: none; /* Hidden on desktop */
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger {
    display: block;
    position: relative;
    width: 24px;
    height: 2px;
    background: var(--secondary);
    transition: all 0.2s ease-in-out;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--secondary);
    transition: all 0.2s ease-in-out;
}

.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }

/* Hero Section */
.hero {
    padding: 6rem 0 4rem;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
    text-align: center;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%; left: -20%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, var(--hero-bg) 0%, transparent 70%);
    z-index: -1;
    animation: rotate 25s linear infinite;
    opacity: 0.8;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--secondary);
    letter-spacing: -0.04em;
}
.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 2.5rem;
    font-weight: 400;
}

/* Featured App (Home) */
.featured-app {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.5);
    box-shadow: var(--shadow-lg);
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    padding: 4rem;
    align-items: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}
.featured-app:hover { transform: translateY(-5px); box-shadow: var(--shadow-xl); }
.featured-app::after {
    content: '';
    position: absolute;
    top: 0; right: 0; width: 400px; height: 400px;
    background: radial-gradient(circle, var(--color-prix-light) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}
.featured-content, .featured-image { position: relative; z-index: 1; }
.featured-content h3 { font-size: 2.5rem; margin-bottom: 1rem; }
.featured-content p { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 2rem; }

.featured-image img {
    max-width: 100%;
    width: 300px;
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s ease;
}
.featured-app:hover .featured-image img {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.05);
}

/* Apps Grid */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 5rem;
}
.app-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    border: 1px solid #f1f5f9;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    text-decoration: none;
    color: inherit;
    z-index: 1;
}
.app-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-xl); }
.card-update:hover { border-top: 4px solid var(--color-update); }
.card-bot:hover { border-top: 4px solid var(--color-bot); }
.card-ia:hover { border-top: 4px solid var(--color-ia); }
.card-prix:hover { border-top: 4px solid var(--color-prix); }
.card-game:hover { border-top: 4px solid #fbbf24; }
.card-update .app-icon { box-shadow: 0 4px 6px -1px rgba(6, 182, 212, 0.3); }
.card-bot .app-icon { box-shadow: 0 4px 6px -1px rgba(147, 51, 234, 0.3); }
.card-ia .app-icon { box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.3); }
.card-prix .app-icon { box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.3); }
.card-game .app-icon { box-shadow: 0 4px 6px -1px rgba(251, 191, 36, 0.3); }


.app-icon {
    width: 72px; height: 72px;
    border-radius: 18px;
    margin-bottom: 1.5rem;
    object-fit: cover;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}
.app-card h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.75rem; color: var(--secondary); }
.app-card p { color: var(--text-muted); margin-bottom: 2rem; flex-grow: 1; }
.card-footer { margin-top: auto; width: 100%; }

/* Vision Section (Integrated) */
.vision-section {
    padding: 4rem 0;
    max-width: 900px;
    margin: 0 auto;
}
.vision-block {
    background: var(--bg-card);
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vision-block:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.vision-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px; /* Slightly thicker for visibility */
    height: 100%;
    /* Noir et Bleu animation */
    background: linear-gradient(180deg, var(--secondary), var(--primary), var(--secondary));
    background-size: 100% 200%;
    animation: borderFlow 3s ease infinite;
}

.vision-block h2 {
    color: var(--secondary);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    font-weight: 800;
}

.vision-block h3 {
    color: var(--theme-color);
    font-size: 1.4rem;
    margin: 1.5rem 0 1rem;
    font-weight: 700;
}

.vision-block p {
    line-height: 1.8;
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.vision-block ul {
    list-style-type: none;
    padding-left: 0;
}

.vision-block ul li {
    position: relative;
    padding-left: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-main);
    font-size: 1.1rem;
}

.vision-block ul li::before {
    content: "\f058"; /* FontAwesome check-circle */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--theme-color);
    position: absolute;
    left: 0;
    top: 2px;
}

.highlight {
    color: var(--theme-color);
    font-weight: 800;
    background: linear-gradient(120deg, var(--theme-light) 0%, transparent 100%);
    padding: 0 4px;
    border-radius: 4px;
}

/* Vision Gold Highlight (Last Block) */
.game-highlight {
    background: linear-gradient(135deg, #fdfbf7 0%, #fff 100%);
    border: 1px solid #fcd34d;
}
.game-highlight::before {
     /* Gold animation */
     background: linear-gradient(180deg, #fbbf24, #d97706, #fbbf24);
     background-size: 100% 200%;
     animation: borderFlow 3s ease infinite;
}

/* Features Grid (Product Pages) */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}
.feature-card {
    background: var(--bg-card);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid #f8fafc;
    transition: var(--transition);
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--theme-color); }
.feature-icon-wrapper {
    width: 70px; height: 70px;
    background: var(--theme-light);
    color: var(--theme-color);
    border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto 1.5rem;
    transition: var(--transition);
}
.feature-card:hover .feature-icon-wrapper { transform: scale(1.1) rotate(10deg); }

/* Forms */
.contact-section {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    max-width: 700px;
    margin: 0 auto 4rem;
    border: 1px solid #e2e8f0;
    border-top: 4px solid var(--theme-color);
}
.contact-title { margin-bottom: 2rem; }
.form-label { font-weight: 600; color: var(--secondary); margin-bottom: 0.5rem; display: block; }
.form-input, .form-select, .form-textarea {
    width: 100%; padding: 0.8rem 1rem;
    border: 1px solid #cbd5e1; border-radius: var(--radius-sm);
    font-family: inherit; font-size: 1rem;
    background: #f8fafc; transition: var(--transition);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none; border-color: var(--theme-color);
    background: #fff; box-shadow: 0 0 0 3px var(--theme-light);
}
.form-textarea { min-height: 120px; resize: vertical; }
.form-hint { font-size: 0.8rem; color: var(--text-muted); text-align: center; margin-top: 1rem; }

/* Buttons & Badges */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.875rem 1.75rem;
    font-weight: 600; font-size: 1rem;
    border-radius: 12px; border: none;
    cursor: pointer; transition: var(--transition);
    text-decoration: none; gap: 0.6rem;
    background: var(--secondary); color: white;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.btn:active { transform: scale(0.98); }

.btn-primary { background: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 8px 15px rgba(59, 130, 246, 0.3); }

.btn-prix { background: var(--color-prix); color: white; }
.btn-prix:hover { background: #059669; box-shadow: 0 8px 15px rgba(16, 185, 129, 0.3); }

.btn-full { width: 100%; }
.btn-card { width: 100%; justify-content: center; }
.btn-update { background-color: var(--color-update-light); color: var(--color-update); }
.btn-bot { background-color: var(--color-bot-light); color: var(--color-bot); }
.btn-ia { background-color: var(--color-ia-light); color: var(--color-ia); }
.btn-prix { background-color: var(--color-prix-light); color: var(--color-prix); }
.btn-game { background-color: #fef3c7; color: #d97706; }

/* Le bouton theme s'adapte à la page */
.btn-theme { background: var(--theme-color); color: white; }
.btn-theme:hover { filter: brightness(110%); box-shadow: 0 8px 15px var(--hero-bg); }

.btn-store { background: #1e293b; font-size: 0.9rem; padding: 0.75rem 1.25rem; }
.btn-store:hover { background: #000; }

.badge {
    display: inline-flex; align-items: center; padding: 0.4rem 0.8rem;
    border-radius: 100px; font-size: 0.75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 1rem;
}
.badge-new { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.badge-beta { background: #e0f2fe; color: #0369a1; border: 1px solid #bae6fd; }
.badge-dev { background: #f3e8ff; color: #7e22ce; border: 1px solid #e9d5ff; }
.badge-ia-dev { background: var(--color-ia-light); color: var(--color-ia); }

/* Section Title */
.section-title { text-align: center; margin-bottom: 3rem; }
.section-title h2 { font-size: 2.5rem; font-weight: 700; color: var(--secondary); margin-bottom: 1rem; }
.section-title p { color: var(--text-muted); font-size: 1.1rem; }

/* Footer */
footer {
    background: var(--bg-card); border-top: 1px solid #e2e8f0;
    padding: 4rem 0; margin-top: 6rem; text-align: center;
}
.footer-top { margin-bottom: 1.5rem; }
footer .brand { justify-content: center; margin-bottom: 1rem; }
.footer-links { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; }
.footer-links a { color: inherit; text-decoration: none; transition: 0.2s; }
.footer-links a:hover { color: var(--theme-color); }
.footer-copyright { margin-top: 2rem; font-size: 0.8rem; }

/* Responsive */
@media (max-width: 768px) {
    /* Hamburger Menu Active State */
    .nav-toggle.is-active .hamburger {
        background: transparent;
    }
    .nav-toggle.is-active .hamburger::before {
        transform: rotate(45deg) translate(5px, 6px);
        background: var(--secondary);
    }
    .nav-toggle.is-active .hamburger::after {
        transform: rotate(-45deg) translate(5px, -6px);
        background: var(--secondary);
    }

    .nav-toggle {
        display: block; /* Show on mobile */
    }

    .nav-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(248, 250, 252, 0.98); /* --bg-body with opacity */
        backdrop-filter: blur(5px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 1000;
    }

    .nav-menu.is-active {
        display: flex;
    }
    .nav-actions { flex-direction: column; gap: 2rem; }

    .hero h1 { font-size: 2.8rem; }
    .section-title h2 { font-size: 2.2rem; }

    .featured-app { grid-template-columns: 1fr; padding: 2.5rem; text-align: center; gap: 2rem; }
    .featured-app .btn-group { justify-content: center; }
    .featured-image img { transform: none; width: 250px; }

    .contact-section { padding: 2rem; margin: 2rem auto; }

    .footer-links { flex-direction: column; gap: 1rem; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1.1rem; }
    .apps-grid { grid-template-columns: 1fr; } /* Force une seule colonne */
    .app-card { padding: 2rem; }
    .btn { padding: 0.8rem 1.5rem; font-size: 0.9rem; }
}