/* ==========================================================================
   CSS - ACCUEIL / FRONT PAGE & WIDGETS PREMIUM (ULTIMATE)
   ========================================================================== */

:root {
    --bg-dark: #030406;
    --bg-black-deep: #000000;
    --primary-blue: #0066cc;
    --secondary-cyan: #00b4d8;
    --text-main: #ffffff;
    --text-muted: #8b949e;
    
    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(0, 180, 216, 0.15);
    
    --transition: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.edge-immersive-wrapper, .edge-immersive-wrapper * { box-sizing: border-box; }

.edge-immersive-wrapper {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
    width: 100vw;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================
   LIGNE DE SCROLL DIGITALE (Tech Thread)
   ========================================== */
.tech-thread-wrapper { position: fixed; top: 0; left: 2vw; width: 2px; height: 100vh; z-index: 9999; pointer-events: none; }
.tech-thread-track { width: 100%; height: 100%; background: rgba(255, 255, 255, 0.05); position: relative; }
.tech-thread-fill { position: absolute; top: 0; left: 0; width: 100%; height: 0%; background: linear-gradient(to bottom, var(--secondary-cyan), var(--primary-blue)); box-shadow: 0 0 15px var(--secondary-cyan); will-change: height; }
.tech-thread-glow { position: absolute; bottom: 0; left: 50%; transform: translate(-50%, 50%); width: 12px; height: 12px; border-radius: 50%; background: #ffffff; box-shadow: 0 0 20px 8px var(--secondary-cyan); }

/* Halos */
.ambient-glow { position: absolute; border-radius: 50%; filter: blur(150px); opacity: 0.15; pointer-events: none; mix-blend-mode: screen; z-index: 0; }
.glow-top-center { width: 70vw; height: 50vw; top: -20%; left: 15%; background: var(--primary-blue); }
.glow-center-right { width: 50vw; height: 50vw; top: 30%; right: -10%; background: var(--secondary-cyan); }
.glow-center-massive { width: 80vw; height: 80vw; top: 50%; left: 50%; transform: translate(-50%, -50%); background: var(--primary-blue); opacity: 0.1; }

/* Layout Edge-to-Edge */
.fullscreen-edge { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 8rem 0; position: relative; width: 100vw; border-bottom: 1px solid rgba(255,255,255,0.03); }
.hero-screen-front { justify-content: center; padding-top: 6rem; }
.bg-black-deep { background-color: var(--bg-black-deep); }
.edge-container { width: 100%; padding: 0 8vw; position: relative; z-index: 2; }

/* Utilitaires */
.relative { position: relative; } .z-10 { z-index: 10; } .overflow-hidden { overflow: hidden; } .p-0 { padding: 0 !important; } .flex-col { display: flex; flex-direction: column; }
.text-center { text-align: center; } .text-left { text-align: left; } .text-muted { color: var(--text-muted); } 
.text-sm { font-size: 0.85rem; } .text-md { font-size: 1.05rem; } .text-lg { font-size: 1.4rem; font-weight: 700; }
.m-0 { margin: 0; } .mx-auto { margin-left: auto; margin-right: auto; }
.justify-start { justify-content: flex-start; } .justify-center { justify-content: center; }
.mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; } .mt-5 { margin-top: 3.5rem; } .mt-6 { margin-top: 5rem; } .mt-auto { margin-top: auto; }
.mb-2 { margin-bottom: 0.5rem; } .mb-3 { margin-bottom: 1.2rem; } .mb-4 { margin-bottom: 2rem; } .mb-5 { margin-bottom: 3.5rem; } .mb-6 { margin-bottom: 5rem; }
.w-100 { width: 100%; }

/* Typographie */
.edge-title-massive { font-size: clamp(3.2rem, 7vw, 6.5rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; margin: 0; }
.edge-title-large { font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; margin: 0; }
.text-gradient-blue { background: linear-gradient(90deg, var(--secondary-cyan), var(--primary-blue)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.text-gradient-cyan { background: linear-gradient(90deg, #fff, var(--secondary-cyan)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.text-main { color: var(--text-main); }

.edge-desc { font-size: clamp(1.15rem, 1.8vw, 1.4rem); color: var(--text-muted); font-weight: 400; line-height: 1.6; }
.edge-desc strong { color: var(--text-main); font-weight: 600; }
.cyber-eyebrow { font-size: 0.95rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--secondary-cyan); display: inline-block; padding: 6px 18px; border: 1px solid var(--glass-border); border-radius: 30px; background: rgba(0, 180, 216, 0.05); }

/* Badge Live (Hero) */
.cyber-badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 20px; border-radius: 100px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255,255,255,0.1); backdrop-filter: blur(10px); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-muted); }
.live-pulse { width: 8px; height: 8px; border-radius: 50%; background: #10b981; box-shadow: 0 0 12px rgba(16, 185, 129, 0.8); animation: pulseGreen 2s infinite; }
@keyframes pulseGreen { 0% { opacity: 1; } 50% { opacity: 0.4; } 100% { opacity: 1; } }

/* Hero Trust Bar */
.hero-trust-bar { display: flex; gap: 2.5rem; justify-content: center; flex-wrap: wrap; padding-top: 3rem; border-top: 1px solid rgba(255,255,255,0.05); max-width: 900px; margin-left: auto; margin-right: auto; }
.trust-item { display: flex; align-items: center; gap: 10px; color: var(--text-muted); font-size: 0.95rem; font-weight: 600; }
.trust-item svg { filter: drop-shadow(0 0 5px rgba(0, 180, 216, 0.4)); }

/* Boutons */
.edge-btn-group { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.btn-blue-solid { display: inline-flex; justify-content: center; align-items: center; background: linear-gradient(135deg, var(--primary-blue), #004d99); color: #fff !important; padding: 1.2rem 2.8rem; border-radius: 40px; font-weight: 700; font-size: 1.1rem; text-decoration: none; border:none; box-shadow: 0 10px 30px rgba(0, 102, 204, 0.3); transition: all 0.3s ease; cursor:pointer; }
.btn-blue-solid:hover { transform: scale(1.03); box-shadow: 0 15px 40px rgba(0, 180, 216, 0.5); }
.btn-blue-outline { display: inline-flex; justify-content: center; align-items: center; background-color: transparent; color: var(--text-main) !important; border: 2px solid var(--glass-border); padding: 1.2rem 2.8rem; border-radius: 40px; font-weight: 700; font-size: 1.1rem; text-decoration: none; backdrop-filter: blur(10px); transition: all 0.3s ease; cursor:pointer; }
.btn-blue-outline:hover { border-color: var(--secondary-cyan); background: rgba(0, 180, 216, 0.1); }
.btn-link-cyan { color: var(--secondary-cyan); font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; font-size: 1.05rem; transition: var(--transition); }
.btn-link-cyan:hover { color: var(--primary-blue); transform: translateX(5px); }

/* Grilles & Split */
.split-edge { display: grid; grid-template-columns: 1fr 1fr; gap: 6vw; align-items: center; }
.features-edge-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3vw; }

/* Panels & Cards (Bento) */
.glass-card { background: var(--glass-bg); border: 1px solid rgba(255,255,255,0.05); padding: 3vw; border-radius: 24px; text-align: left; backdrop-filter: blur(20px); transition: all 0.3s ease; }
.glass-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0,0,0,0.5); border-color: rgba(255,255,255,0.15); }
.edge-glass-panel { background: var(--glass-bg); border-radius: 30px; backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.05); padding: 4vw;}
.border-cyan { border-color: var(--glass-border) !important; box-shadow: inset 0 0 40px rgba(0, 180, 216, 0.05); }
.glow-corner { position: absolute; top: -50%; right: -20%; width: 300px; height: 300px; background: var(--secondary-cyan); filter: blur(80px); opacity: 0.15; border-radius: 50%; pointer-events: none; z-index: 0; }
.flex-grow { flex-grow: 1; }

.card-icon { margin-bottom: 1.5rem; width: 48px; height: 48px; }
.card-icon svg { width: 100%; height: 100%; filter: drop-shadow(0 0 10px rgba(0, 180, 216, 0.4)); }

/* Tags Technologiques */
.tech-tags { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: auto; }
.tag { font-family: monospace; font-size: 0.85rem; font-weight: 700; color: var(--text-muted); padding: 6px 12px; border-radius: 8px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05); }
.tag.gold { color: #f59e0b; border-color: rgba(245, 158, 11, 0.3); background: rgba(245, 158, 11, 0.05); }

/* Listes */
.edge-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 1.2rem;}
.edge-list li { font-size: 1.15rem; color: var(--text-muted); position: relative; padding-left: 2rem; line-height: 1.6; }
.edge-list li::before { content: '→'; position: absolute; left: 0; color: var(--secondary-cyan); font-weight: bold; }
.edge-list strong { color: var(--text-main); }

.edge-list-simple, .edge-list-pro { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 1.2rem; }
.edge-list-simple li, .edge-list-pro li { font-size: 1.1rem; color: var(--text-muted); line-height: 1.6; position: relative; padding-left: 2rem; }
.edge-list-simple li::before { content: '✕'; position: absolute; left: 0; color: #ff4757; font-weight: bold; }
.edge-list-pro li::before { content: '✓'; position: absolute; left: 0; color: var(--secondary-cyan); font-weight: bold; }
.edge-list-pro strong { color: var(--text-main); }


/* ==========================================
   WIDGETS PORTFOLIO & B2B SIMULATOR (PREMIUM)
   ========================================== */

/* --- Effets Glassmorphism & Reflets Premium --- */
.h-100 { height: 100%; }
.premium-widget {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease, border-color 0.5s ease;
}
.premium-widget:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.7), inset 0 0 20px rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.2);
}
.glass-reflection {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to bottom right, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 40%, rgba(255,255,255,0) 100%);
    transform: rotate(30deg);
    pointer-events: none;
    z-index: 1;
}

/* --- Typographie avancée des Widgets --- */
.widget-title { font-size: 1.8rem; letter-spacing: -0.03em; line-height: 1.2; }
.widget-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Troncature propre à 2 lignes */
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
}

/* --- Grille des Métriques (Améliorée) --- */
.widget-metric-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.metric-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 12px;
    display: flex; flex-direction: column;
    position: relative; overflow: hidden;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.metric-card:hover { background: rgba(255, 255, 255, 0.05); transform: translateY(-2px); }
.metric-card.full-width {
    grid-column: span 2;
    flex-direction: row; align-items: center; justify-content: space-between;
    padding: 14px 16px;
    background: linear-gradient(90deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
}
.metric-highlight { box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); }
.metric-card.border-blue { border-left: 3px solid var(--primary-blue); }
.metric-card.border-cyan-light { border-left: 3px solid var(--secondary-cyan); }
.metric-icon { color: var(--text-muted); width: 16px; height: 16px; margin-bottom: 8px; display: inline-block; }
.metric-card.full-width .metric-icon { margin-bottom: 0; margin-right: 10px; }
.metric-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 4px; }
.metric-value { font-size: 1.1rem; font-weight: 700; }
.metric-card.full-width .metric-label { margin-bottom: 0; margin-right: auto; }

/* --- Badges Technologies --- */
.widget-tech-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tech-badge { font-size: 0.75rem; font-weight: 600; padding: 4px 10px; border-radius: 100px; white-space: nowrap; transition: 0.3s ease; }
.tech-badge.blue-badge { color: #8ab4f8; background: rgba(138, 180, 248, 0.1); border: 1px solid rgba(138, 180, 248, 0.2); }
.tech-badge.cyan-badge { color: #81e6d9; background: rgba(129, 230, 217, 0.1); border: 1px solid rgba(129, 230, 217, 0.2); }
.tech-badge:hover { filter: brightness(1.2); transform: scale(1.05); }

/* --- Mockups 3D Portfolio --- */
.browser-mockup-mini {
    width: 100%; border-radius: 12px; border: 1px solid rgba(255,255,255,0.1); background: #000;
    overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    transform: perspective(800px) rotateX(4deg) translateY(0); 
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s;
}
.widget-showcase-web:hover .browser-mockup-mini { transform: perspective(800px) rotateX(0deg) translateY(-5px); box-shadow: 0 30px 50px rgba(0,0,0,0.8), 0 10px 30px rgba(0,102,204,0.3); }
.browser-topbar { background: #1a1c23; padding: 8px 12px; display: flex; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.05); }
.browser-topbar .dot { width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; display:block;}
.browser-topbar .red { background: #ff5f56; } .browser-topbar .yellow { background: #ffbd2e; } .browser-topbar .green { background: #27c93f; }
.browser-url { margin-left: auto; font-size: 0.65rem; color: rgba(255,255,255,0.3); font-family: monospace; }
.browser-content { width: 100%; aspect-ratio: 16/10; background: #05070a; position: relative; }
.browser-content img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

.iphone-mockup-mini {
    width: 100%; max-width: 180px; aspect-ratio: 9/19.5; border: 8px solid #111; border-radius: 30px;
    overflow: hidden; background: #000; box-shadow: 0 20px 40px rgba(0,0,0,0.8);
    transform: translateY(0px); transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s;
    position: relative;
}
.iphone-notch-mini { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 45%; height: 15px; background: #111; border-bottom-left-radius: 10px; border-bottom-right-radius: 10px; z-index: 10; }
.widget-showcase-app:hover .iphone-mockup-mini { transform: translateY(-12px); box-shadow: 0 30px 60px rgba(0,0,0,0.9), -10px 0 40px rgba(0,180,216,0.4); }
.iphone-mockup-mini img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.browser-content .placeholder, .iphone-mockup-mini .placeholder {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem; font-weight: 900; font-family: monospace; letter-spacing: -2px; background: rgba(255,255,255,0.02);
}

/* --- WIDGET B2B SIMULATOR --- */
.b2b-widget-container { padding: 4vw; border-radius: 30px; }
.b2b-simulator-mockup {
    width: 100%; max-width: 280px; aspect-ratio: 9/19.5;
    border: 12px solid #111; border-radius: 40px; overflow: hidden; background: #000;
    box-shadow: 0 25px 50px rgba(0,0,0,0.6), -15px 0 40px rgba(0,102,204,0.3);
    position: relative;
}
.iphone-notch-b2b {
    position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 40%; height: 25px; background: #111; border-bottom-left-radius: 15px; border-bottom-right-radius: 15px; z-index: 10;
}
.b2b-simulator-mockup iframe {
    width: 100%; height: 100%; border: none; display: block; background: #fff;
}
.float-animation { animation: floatEdge 6s ease-in-out infinite; }
@keyframes floatEdge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }

/* Animations communes */
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.status-dot.green { background: #10b981; box-shadow: 0 0 10px rgba(16, 185, 129, 0.6); }
.pulse-anim { animation: pulseDot 2s infinite; }
@keyframes pulseDot { 0% { opacity: 1; } 50% { opacity: 0.4; } 100% { opacity: 1; } }

/* ==========================================
   PROCESS (Roadmap)
   ========================================== */
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4vw; position: relative; }
/* Ligne horizontale connectant les étapes sur desktop */
.process-grid::before { content: ''; position: absolute; top: 30px; left: 10%; width: 80%; height: 2px; background: rgba(255,255,255,0.05); z-index: 0; }
.process-step { position: relative; z-index: 1; text-align: center; }
.step-num { width: 60px; height: 60px; border-radius: 50%; background: var(--bg-black-deep); border: 2px solid var(--glass-border); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 900; margin: 0 auto 1.5rem auto; font-family: monospace; box-shadow: 0 0 20px rgba(0,180,216,0.1); }

/* ==========================================
   FAQ ACCORDION
   ========================================== */
.faq-accordion { display: flex; flex-direction: column; gap: 1rem; }
.faq-item { background: var(--glass-bg); border: 1px solid rgba(255,255,255,0.05); border-radius: 16px; overflow: hidden; transition: var(--transition); }
.faq-item:hover { border-color: rgba(255,255,255,0.15); }
.faq-question { width: 100%; background: transparent; border: none; padding: 1.5rem 2rem; font-size: 1.15rem; font-weight: 700; color: var(--text-main); text-align: left; display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-family: inherit; outline: none; }
.faq-icon { font-size: 1.5rem; color: var(--secondary-cyan); font-weight: 300; transition: transform 0.3s ease; }
.faq-question.active .faq-icon { transform: rotate(180deg); color: var(--primary-blue); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-in-out; }
.faq-answer p { padding: 0 2rem 1.5rem 2rem; margin: 0; font-size: 1.05rem; color: var(--text-muted); line-height: 1.6; }

/* Reveal */
.reveal { opacity: 0; transition: opacity var(--transition), transform var(--transition); }
.reveal-up { transform: translateY(50px); }
.reveal-left { transform: translateX(-50px); }
.reveal-right { transform: translateX(50px); }
.reveal.is-visible { opacity: 1; transform: translate(0); }
.stagger-1 { transition-delay: 0.2s; }
.stagger-2 { transition-delay: 0.4s; }

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
    .tech-thread-wrapper { display: none; }
    .edge-container { padding: 0 6vw; }

    .split-edge { grid-template-columns: 1fr; gap: 4rem; text-align: center; }
    .text-left { text-align: center; }
    .justify-start { justify-content: center; }
    
    .visual-content { order: -1; margin-bottom: 2rem; } 
    
    .features-edge-grid { grid-template-columns: 1fr; gap: 2rem; }
    .glass-card { padding: 3rem 2rem; text-align: center; }
    .tech-tags { justify-content: center; margin-top: 1.5rem; }
    
    .process-grid { grid-template-columns: 1fr; gap: 3rem; }
    .process-grid::before { display: none; }
    
    .edge-list li, .edge-list-simple li, .edge-list-pro li { text-align: left; }
    
    .fullscreen-edge { min-height: auto; padding: 7rem 0; }
    .hero-screen-front { min-height: 100vh; padding-top: 8rem; justify-content: flex-start; }
    
    .b2b-widget-container { padding: 6vw; }
    .premium-widget { padding: 1.5rem !important; }
}

@media (max-width: 768px) {
    .edge-container { padding: 0 8vw; }
    .edge-title-massive { font-size: clamp(2.5rem, 12vw, 4rem); }
    .edge-title-large { font-size: clamp(2.2rem, 10vw, 3.5rem); }
    
    .edge-btn-group { flex-direction: column; width: 100%; gap: 1rem; }
    .btn-blue-solid, .btn-blue-outline { width: 100%; text-align: center; }
    
    .hero-trust-bar { flex-direction: column; align-items: center; gap: 1rem; }
    
    .b2b-simulator-mockup { max-width: 280px; }
    .iphone-mockup-mini { max-width: 160px; }
    
    .faq-question { padding: 1.2rem; font-size: 1rem; }
    .faq-answer p { padding: 0 1.2rem 1.2rem 1.2rem; font-size: 0.95rem; }
}