/* ================= VARIABLES & RESET ================= */
:root {
    --bg-dark: #0f172a;
    --bg-card: rgba(30, 41, 59, 0.6);
    --primary: #06b6d4;
    --primary-hover: #0891b2;
    --secondary: #0ea5e9;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --border-glow: rgba(6, 182, 212, 0.3);
    --gradient: linear-gradient(135deg, #06b6d4, #0ea5e9);
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

body.loading {
    overflow: hidden;
    height: 100vh;
}

/* Arrière-plan animé */
.bg-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    z-index: -1;
    animation: pulse 10s infinite alternate;
}
.glow-1 { top: -100px; left: -100px; background: var(--primary); }
.glow-2 { bottom: -100px; right: -100px; background: var(--secondary); }

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.15; }
    100% { transform: scale(1.2); opacity: 0.25; }
}

/* ================= NAVBAR ================= */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 15px 0;
}

header.scrolled {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-glow);
    padding: 10px 0;
}

.navbar {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo i { color: var(--primary); }

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}
.nav-links a:hover { color: var(--primary); }

.menu { display: flex; gap: 15px; align-items: center; }

.login-btn {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    padding: 10px 20px;
    transition: 0.3s;
}
.login-btn:hover { color: var(--primary); }

.signup-btn {
    background: var(--gradient);
    color: white;
    text-decoration: none;
    padding: 10px 24px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}
.signup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(6, 182, 212, 0.5);
}

.hamburger { display: none; font-size: 24px; cursor: pointer; color: var(--text-main); }

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transform: translateY(-150%);
    transition: transform 0.3s ease;
    z-index: 999;
    border-bottom: 1px solid var(--border-glow);
}
.mobile-menu.active { transform: translateY(0); }
.mobile-menu a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 18px;
    padding: 10px;
    text-align: center;
    border-radius: 8px;
}
.mobile-menu a:hover { background: rgba(6, 182, 212, 0.1); }

/* ================= HERO ================= */
.hero {
    max-width: 1200px;
    margin: auto;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    padding: 60px 20px;
}

.hero-text { flex: 1; }

.hero-text h1 {
    font-size: 52px;
    line-height: 1.15;
    margin-bottom: 20px;
    font-weight: 700;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 35px;
    max-width: 500px;
}

.hero-buttons { display: flex; gap: 15px; flex-wrap: wrap; margin-bottom: 40px; }

.primary-btn {
    background: var(--gradient);
    color: white;
    text-decoration: none;
    padding: 16px 32px;
    border-radius: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(6, 182, 212, 0.4);
}
.primary-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(6, 182, 212, 0.6); }

.secondary-btn {
    border: 2px solid rgba(6, 182, 212, 0.3);
    color: var(--text-main);
    text-decoration: none;
    padding: 16px 32px;
    border-radius: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}
.secondary-btn:hover { background: rgba(6, 182, 212, 0.1); border-color: var(--primary); }

.hero-stats {
    display: flex;
    gap: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.stat { display: flex; flex-direction: column; }
.stat-number { font-size: 28px; font-weight: 700; color: var(--primary); }
.stat-label { font-size: 14px; color: var(--text-muted); }

/* Phone Mockup CSS */
.hero-visual { flex: 1; display: flex; justify-content: center; }
.phone-mockup {
    width: 300px;
    height: 600px;
    background: #1e293b;
    border-radius: 40px;
    border: 4px solid #334155;
    position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5), 0 0 40px rgba(6, 182, 212, 0.2);
    animation: float 6s ease-in-out infinite;
    overflow: hidden;
}
.phone-notch {
    width: 120px;
    height: 25px;
    background: #0f172a;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    z-index: 10;
}
.phone-screen {
    padding: 40px 20px 20px;
    height: 100%;
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.screen-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.screen-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient);
}
.screen-name { font-weight: 600; font-size: 16px; }

.message-bubble {
    background: rgba(6, 182, 212, 0.15);
    border: 1px solid rgba(6, 182, 212, 0.3);
    padding: 15px;
    border-radius: 18px;
    border-top-left-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
    animation: slideIn 0.5s ease-out;
}
.msg-time {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 8px;
    text-align: right;
}

.typing-indicator {
    display: flex;
    gap: 5px;
    padding: 15px;
    background: rgba(255,255,255,0.05);
    border-radius: 18px;
    width: fit-content;
    margin-top: auto;
}
.typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: typing 1.4s infinite;
}
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }
@keyframes slideIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes typing { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

/* ================= SECTIONS GÉNÉRALES ================= */
.section { padding: 100px 20px; }
.container { max-width: 1200px; margin: auto; }
.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 15px;
}
.section-description {
    text-align: center;
    color: var(--text-muted);
    font-size: 18px;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Cards Grid */
.cards-grid, .feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.card, .feature-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-glow);
    border-radius: 20px;
    padding: 35px 30px;
    transition: all 0.3s ease;
}
.card:hover, .feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 10px 40px rgba(6, 182, 212, 0.15);
}

.icon-box, .feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(6, 182, 212, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 20px;
}

.card h3, .feature-card h3 { font-size: 20px; margin-bottom: 12px; }
.card p, .feature-card p { color: var(--text-muted); font-size: 15px; line-height: 1.6; }

/* ================= SÉCURITÉ ================= */
.security-container {
    display: flex;
    align-items: center;
    gap: 60px;
    background: var(--bg-card);
    border: 1px solid var(--border-glow);
    border-radius: 24px;
    padding: 60px;
}
.security-content { flex: 1; }
.security-content h2 { font-size: 32px; margin-bottom: 20px; }
.security-content p { color: var(--text-muted); margin-bottom: 25px; line-height: 1.7; }
.security-list { list-style: none; display: flex; flex-direction: column; gap: 15px; }
.security-list li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.security-list li i { color: #10b981; font-size: 20px; }

.security-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}
.security-visual i {
    font-size: 150px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 30px rgba(6, 182, 212, 0.4));
    animation: float 5s ease-in-out infinite;
}

/* ================= CTA ================= */
.cta-section {
    padding: 100px 20px;
    text-align: center;
    background: linear-gradient(180deg, transparent 0%, rgba(6, 182, 212, 0.1) 100%);
}
.cta-section h2 { font-size: 36px; margin-bottom: 15px; }
.cta-section p { color: var(--text-muted); font-size: 18px; margin-bottom: 35px; }
.large-btn { padding: 18px 40px; font-size: 18px; }

/* ================= TÉMOIGNAGES / RÉACTIONS ================= */
.reactions-section {
    background: rgba(255, 255, 255, 0.02);
}

.reactions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.reaction-card {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--border-glow);
}

.reaction-card img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 20px;
}

.reaction-card p {
    font-style: italic;
    color: var(--text-muted);
}

/* ================= FOOTER ================= */
.simple-footer {
    background: #020617;
    padding: 45px 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-left {
    max-width: 1200px;
    margin: auto;
    text-align: left;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 12px;
}

.footer-logo i { color: var(--primary); }
.footer-left p { color: var(--text-muted); margin-bottom: 25px; }

.footer-links {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
}
.footer-links a:hover { color: var(--primary); }

.footer-social-simple {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
}

.footer-social-simple a {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    color: var(--text-muted);
    text-decoration: none;
    transition: 0.3s;
}

.footer-social-simple a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.footer-copy {
    color: #64748b;
    font-size: 13px;
}

/* ================= BANNIÈRE COOKIES ================= */
.cookie-banner {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border-glow);
    padding: 20px;
    z-index: 9999;
    transition: bottom 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
}

.cookie-banner.show { bottom: 0; }

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cookie-icon { font-size: 32px; flex-shrink: 0; }
.cookie-content p { color: var(--text-muted); font-size: 14px; line-height: 1.5; flex: 1; }

.cookie-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.small-btn { padding: 10px 24px; font-size: 14px; border-radius: 10px; }

.cookie-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: 0.3s;
}
.cookie-link:hover { color: var(--secondary); text-decoration: underline; }

/* ================= BOUTON AUTH DYNAMIQUE ================= */
.auth-btn { transition: all 0.3s ease; }
.auth-btn.is-authenticated {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
}
.auth-btn.is-authenticated:hover { box-shadow: 0 8px 30px rgba(16, 185, 129, 0.6); }

/* ================= BOUTON MESSAGE PDG ================= */
.ceo-message-btn {
    display: flex;
    width: fit-content;
    margin: 15px auto 0;
    padding: 8px 20px;
    background: rgba(6, 182, 212, 0.12);
    border: 1px solid rgba(6, 182, 212, 0.4);
    border-radius: 50px;
    color: var(--primary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: 0.3s ease;
}
.ceo-message-btn i { font-size: 12px; transition: 0.3s; }
.ceo-message-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}
.ceo-message-btn:hover i { transform: translateX(4px); }

/* ================= LOADER ================= */
.page-loader {
    position: fixed;
    inset: 0;
    background: #0f172a;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: 0.45s ease;
}
.page-loader.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.loader-content { text-align: center; }
.loader-logo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, #06b6d4, #0ea5e9);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: auto;
    animation: logoFloat 1.5s infinite ease-in-out;
    box-shadow: 0 0 35px rgba(6,182,212,0.45);
}
.loader-logo i { font-size: 42px; color: white; }
.loader-spinner {
    width: 70px;
    height: 70px;
    margin: 22px auto 0;
    border: 4px solid rgba(255,255,255,0.1);
    border-top: 4px solid #06b6d4;
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ================= BOUTON INSTALLATION PWA ================= */
.install-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glow);
    color: var(--text-main);
    padding: 14px 24px;
    border-radius: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
}
.install-btn:hover {
    background: rgba(6, 182, 212, 0.15);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.2);
}
.install-btn i { color: var(--primary); }

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

/* ================= ANIMATIONS AU SCROLL ================= */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
    .hero { flex-direction: column; text-align: center; padding-top: 40px; min-height: auto; }
    .hero-text h1 { font-size: 36px; }
    .hero-text p { margin: 0 auto 30px; }
    .hero-buttons { justify-content: center; }
    .hero-stats { justify-content: center; }
    .nav-links, .menu { display: none; }
    .hamburger { display: block; }
    .security-container { flex-direction: column; text-align: center; padding: 40px 20px; }
    .security-list li { justify-content: center; }
}

@media (max-width: 768px) {
    .cookie-content { flex-direction: column; text-align: center; gap: 15px; }
    .cookie-actions { flex-direction: column; width: 100%; gap: 10px; }
    .small-btn, .cookie-link { width: 100%; text-align: center; justify-content: center; }
}

@media (max-width: 600px) {
    .footer-links { gap: 15px; }
    .footer-left { text-align: center; }
    .footer-logo { justify-content: center; }
    .footer-social-simple { justify-content: center; }
    .ceo-message-btn { font-size: 13px; padding: 8px 16px; }
}