/* --- VARIABLES & DESIGN SYSTEM --- */
:root {
    --bg-color: #0A192F; /* Bleu Nuit Profond */
    --bg-light: #112240; /* Bleu légèrement plus clair */
    --accent-color: #00F5FF; /* Cyan Néon */
    --whatsapp-color: #25D366; /* Vert WhatsApp */
    --facebook-color: #1877F2; /* Bleu Facebook */
    --text-primary: #CCD6F6;
    --text-secondary: #8892B0;
    --white: #FFFFFF;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --transition: all 0.3s ease-in-out;
}

/* --- RESET & BASE --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--white); font-weight: 700; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
section { padding: 80px 20px; max-width: 1200px; margin: 0 auto; }

/* --- UTILITAIRES --- */
.text-accent { color: var(--accent-color); }
.btn {
    display: inline-block; padding: 15px 30px; font-family: var(--font-heading);
    font-weight: 600; border-radius: 4px; text-transform: uppercase; letter-spacing: 1px;
    cursor: pointer; transition: var(--transition); font-size: 0.9rem; border: none;
}
.btn-primary {
    background-color: transparent; border: 1px solid var(--accent-color); color: var(--accent-color);
    box-shadow: 0 0 10px rgba(0, 245, 255, 0.1);
}
.btn-primary:hover {
    background-color: rgba(0, 245, 255, 0.1); box-shadow: 0 0 20px rgba(0, 245, 255, 0.4);
    transform: translateY(-2px);
}
.btn-secondary { border: 1px solid var(--text-primary); color: var(--text-primary); margin-left: 15px; }
.btn-secondary:hover { border-color: var(--white); color: var(--white); background-color: rgba(255, 255, 255, 0.05); }
.section-title { font-size: 2rem; margin-bottom: 50px; position: relative; display: inline-block; }
.section-title::after {
    content: ''; position: absolute; bottom: -10px; left: 0;
    width: 60px; height: 3px; background-color: var(--accent-color);
}

/* --- HEADER & NAV --- */
header {
    position: fixed; top: 0; left: 0; width: 100%; padding: 20px 50px;
    display: flex; justify-content: space-between; align-items: center;
    background-color: rgba(10, 25, 47, 0.95); backdrop-filter: blur(10px);
    z-index: 1000; box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.logo { font-family: var(--font-heading); font-weight: 800; font-size: 1.5rem; color: var(--white); letter-spacing: 1px; display: flex; align-items: center; }
.logo i { color: var(--accent-color); margin-right: 10px; }
.logo span { color: var(--accent-color); }

/* Desktop Nav */
.desktop-nav ul { display: flex; }
.desktop-nav ul li { margin-left: 30px; }
.desktop-nav ul li a { font-size: 0.9rem; font-weight: 500; }
.desktop-nav ul li a:hover { color: var(--accent-color); }
.cta-header { border: 1px solid var(--accent-color); padding: 8px 20px; border-radius: 4px; color: var(--accent-color); }

/* Mobile Burger */
.burger-menu { display: none; cursor: pointer; color: var(--white); font-size: 1.8rem; }
.mobile-nav {
    position: fixed; top: 0; right: -100%; width: 250px; height: 100vh;
    background-color: var(--bg-light); padding: 80px 20px; z-index: 999;
    transition: 0.4s ease; box-shadow: -5px 0 20px rgba(0,0,0,0.5);
}
.mobile-nav.active { right: 0; }
.mobile-nav ul { display: flex; flex-direction: column; gap: 30px; }
.mobile-nav ul li a { font-size: 1.1rem; display: block; }
.mobile-close { position: absolute; top: 20px; right: 20px; font-size: 1.5rem; cursor: pointer; color: var(--text-secondary); }

/* --- HERO SECTION --- */
#hero {
    height: 100vh; width: 100%; display: flex; flex-direction: column;
    justify-content: center; align-items: center; text-align: center;
    padding: 0 20px; position: relative; overflow: hidden;
}
#hero video {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; z-index: 0; opacity: 0.5;
}
.hero-content { position: relative; z-index: 2; }
#hero h1 { font-size: 3.5rem; line-height: 1.1; margin-bottom: 20px; max-width: 900px; }
#hero h2 { font-family: var(--font-body); font-weight: 300; font-size: 1.2rem; color: var(--text-secondary); margin-bottom: 40px; max-width: 700px; margin-left: auto; margin-right: auto; }

/* --- TRUST BAR --- */
#partners { padding: 40px 20px; border-bottom: 1px solid rgba(255,255,255,0.05); background-color: var(--bg-color); position: relative; z-index: 2;}
.trust-title { text-align: center; font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 20px; text-transform: uppercase; letter-spacing: 2px; }
.logos-container { display: flex; justify-content: center; flex-wrap: wrap; gap: 40px; opacity: 0.7; }
.partner-logo { font-family: var(--font-heading); font-weight: 700; font-size: 1.2rem; color: var(--text-secondary); display: flex; align-items: center; }
.partner-logo i { margin-right: 8px; font-size: 1.5rem; }

/* --- SECTION 3: TECHNOLOGIE --- */
#technology { background-color: var(--bg-light); position: relative; }

.pano-container {
    width: 100%; height: 400px; overflow: hidden; border-radius: 8px;
    margin-bottom: 50px; border: 1px solid rgba(255,255,255,0.1);
    position: relative;
}
.pano-container img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 10s ease;
}
.pano-container:hover img { transform: scale(1.1); }
.pano-label {
    position: absolute; bottom: 20px; right: 20px;
    background: rgba(0,0,0,0.7); padding: 5px 10px; border-radius: 4px;
    font-size: 0.8rem; color: var(--accent-color); border: 1px solid var(--accent-color);
}

.tech-split-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.tech-text h3 { font-size: 2rem; margin-bottom: 20px; color: var(--white); }
.tech-text p { color: var(--text-secondary); margin-bottom: 20px; }

.comparison-table {
    background-color: var(--bg-color); padding: 30px; border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.05);
}
.table-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,0.05);
}
.table-row:last-child { border-bottom: none; }
.col-feature { flex: 2; font-weight: 500; }
.col-classic { flex: 1; text-align: center; color: #FF5555; font-size: 0.95rem; }
.col-arkedia { flex: 1; text-align: center; color: var(--accent-color); font-size: 0.95rem; }
.table-header { font-size: 0.75rem; text-transform: uppercase; color: var(--text-secondary); margin-bottom: 10px; letter-spacing: 1px; }

/* --- SOLUTIONS --- */
#solutions { text-align: center; }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-top: 50px; }
.card {
    background-color: var(--bg-light); padding: 30px; border-radius: 6px; text-align: left;
    transition: var(--transition); border: 1px solid transparent;
}
.card:hover { transform: translateY(-10px); border-color: var(--accent-color); box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.card-icon { font-size: 2.5rem; color: var(--accent-color); margin-bottom: 20px; }
.card h4 { margin-bottom: 15px; font-size: 1.2rem; }
.card p { color: var(--text-secondary); font-size: 0.9rem; }

/* --- PORTFOLIO --- */
#portfolio { text-align: center; }
.portfolio-slider { display: grid; grid-template-columns: repeat(auto-fit, minmax(450px, 1fr)); gap: 30px; margin-top: 50px; }
.portfolio-item {
    position: relative; aspect-ratio: 4/3; background-color: #000; border-radius: 8px;
    overflow: hidden; border: 1px solid rgba(255,255,255,0.1);
}
.portfolio-item iframe { width: 100%; height: 100%; border: none; }
.portfolio-label {
    position: absolute; bottom: 20px; left: 20px; background-color: rgba(10, 25, 47, 0.9);
    padding: 5px 15px; border-radius: 4px; font-size: 0.8rem;
    color: var(--accent-color); border: 1px solid var(--accent-color); pointer-events: none;
}

/* --- TRUST SECTION --- */
#trust { background-color: var(--bg-light); text-align: center; overflow: hidden; padding-bottom: 60px; }
.scrolling-wrapper { width: 100%; overflow: hidden; white-space: nowrap; position: relative; margin-top: 40px; }
.scrolling-content { display: inline-block; animation: scroll 30s linear infinite; }
.testimonial-card {
    display: inline-block; width: 350px; background-color: var(--bg-color); padding: 30px; margin-right: 30px;
    border-radius: 8px; vertical-align: top; white-space: normal; text-align: left; position: relative;
    border: 1px solid rgba(255,255,255,0.05);
}
.testimonial-card i { font-size: 1.5rem; color: var(--accent-color); opacity: 0.5; margin-bottom: 15px; display: block; }
.client-info { display: flex; align-items: center; margin-top: 20px; }
.client-avatar { width: 40px; height: 40px; background: #333; border-radius: 50%; margin-right: 15px; flex-shrink: 0; }
.client-name h5 { margin: 0; color: var(--white); font-size: 0.95rem; }
.client-name span { font-size: 0.75rem; color: var(--text-secondary); }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* --- ABOUT (Image Team) --- */
#about { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-img img { width: 100%; border-radius: 8px; filter: grayscale(100%); transition: var(--transition); }
.about-img:hover img { filter: grayscale(0%); }

/* --- CONTACT --- */
#contact { background-color: var(--bg-light); max-width: 800px; margin: 80px auto; border-radius: 8px; padding: 50px; text-align: center; }
form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 30px; text-align: left; }
.full-width { grid-column: span 2; }
label { display: block; margin-bottom: 8px; color: var(--text-primary); font-size: 0.9rem; }
input, select, textarea {
    width: 100%; padding: 12px; background: var(--bg-color); border: 1px solid rgba(255,255,255,0.1);
    color: white; border-radius: 4px; font-family: var(--font-body);
}
.contact-btn { background: var(--accent-color); color: var(--bg-color); width: 100%; padding: 15px; font-weight: bold; border: none; cursor: pointer; transition: 0.3s; }
.contact-btn:hover { background-color: #7dfdfd; box-shadow: 0 0 15px var(--accent-color); }

/* --- FLOATING BUTTONS --- */
.floating-container {
    position: fixed; bottom: 30px; right: 30px; z-index: 1000;
    display: flex; flex-direction: column; gap: 15px; align-items: center;
}
/* TAILLE DES BOUTONS (PC) */
.ai-fab-btn, .whatsapp-fab-btn {
    width: 50px; height: 50px; border-radius: 50%; display: flex; justify-content: center;
    align-items: center; box-shadow: 0 0 20px rgba(0,0,0,0.5); cursor: pointer; transition: 0.3s;
}
.ai-fab-btn { background-color: var(--accent-color); }
.ai-fab-btn i { color: var(--bg-color); font-size: 1.5rem; }
.whatsapp-fab-btn { background-color: var(--whatsapp-color); text-decoration: none; }
.whatsapp-fab-btn i { color: white; font-size: 1.8rem; }
.ai-fab-btn:hover, .whatsapp-fab-btn:hover { transform: scale(1.1); }

/* AI Popup Widget */
.ai-widget-container {
    position: fixed; bottom: 160px; right: 30px; width: 350px;
    background-color: var(--bg-light); border: 1px solid var(--accent-color);
    border-radius: 12px; padding: 20px; box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    display: none; z-index: 999;
}
.ai-input { width: 100%; padding: 10px; background: var(--bg-color); border: 1px solid #333; color: white; border-radius: 4px; margin-bottom: 10px; }
.ai-result { margin-top: 15px; padding: 10px; background: rgba(0, 245, 255, 0.05); border-left: 2px solid var(--accent-color); display: none; font-size: 0.85rem; }

/* --- FOOTER --- */
footer { background-color: #020c1b; padding: 50px 20px; color: var(--text-secondary); font-size: 0.9rem; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; max-width: 1200px; margin: 0 auto; }
.footer-logo { font-size: 1.5rem; color: var(--white); font-weight: 700; margin-bottom: 15px; display: block; }
.footer-logo span { color: var(--accent-color); }
.footer-col h4 { margin-bottom: 20px; color: var(--white); }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a:hover { color: var(--accent-color); }
.social-links a { font-size: 1.2rem; margin-right: 15px; transition: 0.3s; }
.social-links a:hover { color: var(--accent-color); }
.social-links a .fa-facebook:hover { color: var(--facebook-color); }
.copyright { text-align: center; margin-top: 50px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    header { padding: 20px; }
    .desktop-nav { display: none; }
    .burger-menu { display: block; }
    #hero h1 { font-size: 2.2rem; }
    .tech-split-layout { grid-template-columns: 1fr; }
    #about { grid-template-columns: 1fr; }
    form { grid-template-columns: 1fr; }
    .full-width { grid-column: span 1; }
    .ai-widget-container { width: 90%; right: 5%; bottom: 140px; }
    
    /* BOUTONS MOBILE PLUS PETITS (45px) */
    .ai-fab-btn, .whatsapp-fab-btn { width: 45px; height: 45px; }
    .ai-fab-btn i { font-size: 1.3rem; }
    .whatsapp-fab-btn i { font-size: 1.5rem; }
    .floating-container { bottom: 20px; right: 20px; gap: 10px; }
}