/* ============================================================================
   QUANTIK - Design System Cybersécurité
   Thème sombre professionnel - PME/PMI & Startups
   Version : 3.2 | Outil Gratuit PQC intégré
   ============================================================================ */

:root {
    --cyan-500: #00d4aa;
    --cyan-600: #00b894;
    --dark-bg: #0a0e17;
    --dark-surface: #111827;
    --dark-surface-2: #1f2937;
    --text-primary: #f9fafb;
    --text-secondary: #b0b8c1;
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    --bs-body-bg: var(--dark-bg);
    --bs-body-color: var(--text-primary);
    --bs-secondary-color: var(--text-secondary);
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
}

.bg-dark-glass {
    background: rgba(17, 24, 39, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* 🔹 Fond plus sombre pour meilleur contraste */
.bg-darker {
    background: var(--dark-surface);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* 🔹 Cards sur fond sombre */
.bg-card {
    background: var(--dark-surface-2) !important;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* 🔹 Card outil PQC */
.pqc-tool-card {
    background: linear-gradient(135deg, rgba(0,212,170,0.1) 0%, rgba(102,126,234,0.1) 100%) !important;
    border: 1px solid rgba(0, 212, 170, 0.3) !important;
    transition: var(--transition);
}
.pqc-tool-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg) !important;
}

/* Hero Section */
.hero-section {
    min-height: 90vh;
    padding-top: 5rem;
    background:
        radial-gradient(ellipse at top, rgba(0, 212, 170, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at bottom, rgba(102, 126, 234, 0.1) 0%, transparent 50%);
}

.text-gradient-cyan {
    background: linear-gradient(135deg, var(--cyan-500), #667eea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cyber-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 212, 170, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 170, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: gridMove 20s linear infinite;
    opacity: 0.6;
}

@keyframes gridMove {
    0% { transform: perspective(500px) rotateX(60deg) translateY(0); }
    100% { transform: perspective(500px) rotateX(60deg) translateY(40px); }
}

.shield-animation {
    position: relative;
    z-index: 2;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.floating-badge {
    position: absolute;
    background: var(--dark-surface-2);
    border: 1px solid var(--cyan-500);
    border-radius: 12px;
    padding: 8px 16px;
    font-size: 0.85rem;
    animation: floatBadge 8s ease-in-out infinite;
    box-shadow: 0 8px 32px rgba(0, 212, 170, 0.2);
}

.floating-badge.badge-1 { top: 10%; right: 10%; animation-delay: 0s; }
.floating-badge.badge-2 { bottom: 15%; left: 5%; animation-delay: -4s; }
.floating-badge.badge-3 { top: 50%; left: -5%; animation-delay: -2s; }

@keyframes floatBadge {
    0%, 100% { transform: translateY(0) translateX(0); }
    25% { transform: translateY(-10px) translateX(5px); }
    75% { transform: translateY(10px) translateX(-5px); }
}

/* Cards & Hover */
.hover-lift {
    transition: var(--transition);
}
.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg) !important;
}

.service-icon {
    transition: var(--transition);
}
.hover-lift:hover .service-icon {
    background: var(--cyan-600) !important;
    color: white !important;
    transform: scale(1.1);
}

/* Boutons */
.btn-primary {
    --bs-btn-bg: var(--cyan-600);
    --bs-btn-border-color: var(--cyan-600);
    --bs-btn-hover-bg: var(--cyan-500);
    --bs-btn-hover-border-color: var(--cyan-500);
    --bs-btn-active-bg: var(--cyan-600);
}

.btn-outline-cyan {
    --bs-btn-color: var(--cyan-500);
    --bs-btn-border-color: var(--cyan-500);
    --bs-btn-hover-bg: var(--cyan-500);
    --bs-btn-hover-color: white;
}

/* Formulaire */
.form-control {
    background: var(--dark-surface-2);
    border-color: #374151;
    color: var(--text-primary);
}
.form-control:focus {
    background: var(--dark-surface);
    border-color: var(--cyan-500);
    box-shadow: 0 0 0 0.25rem rgba(0, 212, 170, 0.25);
}

/* Alertes mieux visibles */
.alert-info {
    background: rgba(0, 212, 170, 0.1) !important;
    border: 1px solid var(--cyan-500) !important;
    color: var(--text-primary) !important;
}

.alert-success {
    background: rgba(0, 212, 170, 0.15) !important;
    border: 1px solid var(--cyan-600) !important;
    color: var(--text-primary) !important;
}

.alert-warning {
    background: rgba(255, 193, 7, 0.1) !important;
    border: 1px solid #ffc107 !important;
    color: var(--text-primary) !important;
}

.alert-dark {
    background: var(--dark-surface-2) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: var(--text-primary) !important;
}

/* Footer */
.footer {
    background: var(--dark-surface);
}

/* Utilities */
.py-6 { padding: 5rem 0; }
.bg-gradient-cyan {
    background: linear-gradient(135deg, var(--cyan-600), #667eea);
}

/* 🔹 Liens dans les badges */
.badge a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}
.badge a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* 🔹 Lien cyan dans le menu */
.nav-link.text-cyan {
    color: var(--cyan-500) !important;
    font-weight: 500;
}
.nav-link.text-cyan:hover {
    color: var(--cyan-600) !important;
}

/* 🔹 Amélioration contraste texte secondaire */
.text-secondary {
    color: var(--text-secondary) !important;
}

/* 🔹 Tableaux */
.table-dark {
    --bs-table-bg: transparent;
    --bs-table-color: var(--text-primary);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding: 4rem 0;
        text-align: center;
    }
    .hero-content { order: 2; }
    .hero-visual { order: 1; margin-bottom: 2rem; }
    .floating-badge { display: none; }

    /* Section PQC sur mobile */
    .pqc-tool-card .row.g-0 {
        flex-direction: column;
    }
    .pqc-tool-card .col-lg-5 {
        display: none !important;
    }
}

/* Accessibilité */
.visually-hidden-focusable:focus {
    clip: auto !important;
    height: auto !important;
    width: auto !important;
    position: static !important;
}
