/* Additional styles for BTC website */
/* Enhanced visual effects and animations */

:root {
    --primary-blue: #0A2A43;
    --primary-orange: #F9A620;
    --primary-green: #1B9C68;
    --secondary-blue: #3B82F6;
    --secondary-green: #10B981;
    --secondary-orange: #F59E0B;
    --text-dark: #1F2937;
    --text-light: #6B7280;
    --bg-light: #F9FAFB;
    --bg-white: #FFFFFF;
}

/* Enhanced animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

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

/* Fluidité/Performance: Ajout de 'will-change' pour optimiser les animations GPU */
.animate-slide-up, .animate-slide-left, .animate-slide-right, .animate-scale-in, .animate-fade-in {
    will-change: transform, opacity;
}
/* Sous menu */
.sub-link {
  @apply block
         px-4 py-2
         rounded-lg
         text-gray-700 font-medium
         border border-transparent
         bg-white
         transition-all duration-150;
}

.sub-link:hover {
  @apply bg-orange-50
         text-orange-600
         border-orange-300;
}
.sub-link:focus-visible {
  outline: none;
  @apply ring-2 ring-orange-400 ring-offset-2;
}

/* Animation classes */
.animate-slide-up {
    animation: slideInUp 0.8s ease-out forwards;
}

.animate-slide-left {
    animation: slideInLeft 0.8s ease-out forwards;
}

.animate-slide-right {
    animation: slideInRight 0.8s ease-out forwards;
}

.animate-scale-in {
    animation: scaleIn 0.6s ease-out forwards;
}

.animate-pulse-slow {
    animation: pulse 3s ease-in-out infinite;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* Enhanced hover effects */
.card-hover {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-hover:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* Gradient text enhancements */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.text-gradient::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-green));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.text-gradient:hover::after {
    transform: scaleX(1);
}

/* Enhanced buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-orange));
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(249, 166, 32, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(27, 156, 104, 0.3);
}

/* Enhanced form inputs */
.form-input {
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    padding: 16px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
}

.form-input:focus {
    border-color: var(--secondary-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

/* Enhanced cards */
.card {
    background: white;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #F3F4F6;
}

.card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

/* Hero section enhancements */
.hero-section {
    position: relative;
    overflow: hidden;
}

/* Innovation: Suppression de l'overlay CSS pour rendre l'effet Vanta.js plus visible */
/* .hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(10, 42, 67, 0.9), rgba(27, 156, 104, 0.8));
    z-index: 1;
} */

/* hero-content géré dans nav.php — z-index:5 */


/* Navigation enhancements */
.navbar {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-link {
    position: relative;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-green));
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Section styling */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Service cards */
.service-card {
    background: white;
    border-radius: 20px;
    padding: 32px;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid #F3F4F6;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Statistics */
.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-orange);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 1.125rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Footer enhancements */
.footer {
    background: linear-gradient(135deg, #1F2937, #111827);
    color: white;
    padding: 60px 0 40px;
}

.footer-link {
    color: #9CA3AF;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: var(--primary-orange);
    transform: translateX(4px);
}
/* --- NOUVEAUX STYLES FOOTER (Ajoutés) --- */
.footer-link-sub {
    color: #B4BCC8; 
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    margin-bottom: 5px; 
}

.footer-link-sub:hover {
    color: var(--primary-orange);
}

.footer-link:hover {
    color: var(--primary-orange);
    transform: none; 
}

.footer-social-icon {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
}

.footer-social-icon:hover {
    transform: scale(1.2); 
    color: var(--primary-orange); 
}

/* --- NAVIGATION ENHANCEMENTS (Nouveaux) --- */
.nav-link {
    position: relative;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-orange) !important;
}

.nav-link.active-link {
    color: var(--primary-blue) !important;
    font-weight: 600; 
}

.nav-link.active-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 100%;
    height: 3px;
    background-color: var(--primary-orange);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* --- BUTTON ENHANCEMENTS (Nouveaux) --- */
/* Primary button on hover (used for Hero and Contact form) */
.btn-primary-enhanced {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-primary-enhanced:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3); 
}

/* Secondary button on hover (used for Hero) */
.btn-secondary-enhanced {
    transition: all 0.3s ease;
}

.btn-secondary-enhanced:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-orange);
    transform: translateY(-2px);
}



/* Mobile optimizations */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .card {
        padding: 20px;
    }
    
    .service-card {
        padding: 24px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --text-dark: #F9FAFB;
        --text-light: #D1D5DB;
        --bg-light: #1F2937;
        --bg-white: #111827;
    }
    
    .card, .service-card {
        background: var(--bg-white);
        border-color: #374151;
    }
    
    .form-input {
        background: var(--bg-white);
        border-color: #374151;
        color: var(--text-dark);
    }
}

/* Loading animations */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Accessibility improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus indicators */
*:focus {
    outline: 2px solid var(--secondary-blue);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .navbar, .footer, .btn, button {
        display: none !important;
    }
    
    .section {
        padding: 20px 0 !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #F1F5F9;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-green));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--secondary-orange), var(--secondary-green));
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .text-gradient {
        background: none;
        color: var(--text-dark);
        text-decoration: underline;
    }
    
    .card, .service-card {
        border: 2px solid var(--text-dark);
    }
}


/* ═══════════════════════════════════════════════════════════
   AMÉLIORATIONS FRONTEND PROFESSIONNELLES — BTC
   ═══════════════════════════════════════════════════════════ */

/* ── Scroll Reveal ── */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity .65s cubic-bezier(.4,0,.2,1),
                transform .65s cubic-bezier(.4,0,.2,1);
}
.reveal.visible {
    opacity: 1;
    transform: none;
}
.reveal-left {
    opacity: 0;
    transform: translateX(-36px);
    transition: opacity .65s cubic-bezier(.4,0,.2,1),
                transform .65s cubic-bezier(.4,0,.2,1);
}
.reveal-left.visible { opacity: 1; transform: none; }
.reveal-right {
    opacity: 0;
    transform: translateX(36px);
    transition: opacity .65s cubic-bezier(.4,0,.2,1),
                transform .65s cubic-bezier(.4,0,.2,1);
}
.reveal-right.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }
.reveal-delay-5 { transition-delay: .5s; }

/* ── Cards premium ── */
.card-premium {
    background: #fff;
    border-radius: 20px;
    border: 1px solid rgba(0,0,0,.06);
    box-shadow: 0 1px 3px rgba(0,0,0,.04), 0 4px 12px rgba(0,0,0,.04);
    transition: box-shadow .3s cubic-bezier(.4,0,.2,1),
                transform .3s cubic-bezier(.4,0,.2,1);
}
.card-premium:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,.10), 0 24px 48px rgba(0,0,0,.06);
    transform: translateY(-4px);
}

/* ── Buttons premium ── */
.btn-btc-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #0A84FF, #0055cc);
    color: #fff;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-size: .9rem;
    letter-spacing: .02em;
    transition: all .25s cubic-bezier(.4,0,.2,1);
    box-shadow: 0 4px 14px rgba(10,132,255,.35);
    position: relative;
    overflow: hidden;
}
.btn-btc-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0);
    transition: background .2s;
}
.btn-btc-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(10,132,255,.45);
}
.btn-btc-primary:hover::after { background: rgba(255,255,255,.08); }
.btn-btc-primary:active { transform: translateY(0); }

.btn-btc-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: #fff;
    font-weight: 700;
    padding: 13px 28px;
    border-radius: 12px;
    border: 2px solid rgba(255,255,255,.55);
    cursor: pointer;
    text-decoration: none;
    font-size: .9rem;
    transition: all .25s cubic-bezier(.4,0,.2,1);
    backdrop-filter: blur(8px);
}
.btn-btc-secondary:hover {
    background: rgba(255,255,255,.15);
    border-color: rgba(255,255,255,.8);
    transform: translateY(-2px);
}

.btn-btc-green {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #1B9C68, #0d7a50);
    color: #fff;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-size: .9rem;
    transition: all .25s;
    box-shadow: 0 4px 14px rgba(27,156,104,.35);
}
.btn-btc-green:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(27,156,104,.45);
}

/* ── Section headers améliorés ── */
.section-eyebrow {
    display: inline-block;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #0A84FF;
    background: rgba(10,132,255,.08);
    padding: 6px 14px;
    border-radius: 99px;
    margin-bottom: 14px;
    border: 1px solid rgba(10,132,255,.15);
}
.section-title-pro {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 800;
    line-height: 1.2;
    color: #0a1628;
    letter-spacing: -.02em;
}
.section-subtitle-pro {
    font-size: 1.05rem;
    color: #64748b;
    line-height: 1.7;
    max-width: 580px;
    margin: 0 auto;
}

/* ── Stat counters ── */
.stat-counter {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    letter-spacing: -.04em;
    line-height: 1;
}

/* ── Badge pill ── */
.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .72rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 99px;
}

/* ── Gradients décoratifs ── */
.gradient-btc {
    background: linear-gradient(135deg, #0A84FF 0%, #1B9C68 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.gradient-bg-btc {
    background: linear-gradient(135deg, #001f3f 0%, #003d20 100%);
}

/* ── Séparateur décoratif ── */
.section-divider {
    width: 48px;
    height: 4px;
    background: linear-gradient(90deg, #0A84FF, #1B9C68);
    border-radius: 99px;
    margin: 12px auto 0;
}
.section-divider-left {
    margin-left: 0;
}

/* ── Inputs améliorés ── */
.input-pro {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: .9rem;
    color: #0f172a;
    background: #f8fafc;
    outline: none;
    transition: border-color .2s, box-shadow .2s, background .2s;
    font-family: inherit;
}
.input-pro:focus {
    border-color: #0A84FF;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(10,132,255,.12);
}
.input-pro::placeholder { color: #94a3b8; }

/* ── Image placeholders ── */
.img-fallback {
    background: linear-gradient(135deg, #e0f2fe, #dcfce7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 2rem;
}

/* ── Loader skeleton ── */
@keyframes shimmer {
    0%   { background-position: -600px 0; }
    100% { background-position: 600px 0; }
}
.skeleton {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 600px 100%;
    animation: shimmer 1.4s infinite;
    border-radius: 8px;
}

/* ── Nav glassmorphism au scroll ── */
.navbar-scrolled {
    background: rgba(255,255,255,.96) !important;
    backdrop-filter: blur(16px) !important;
    box-shadow: 0 1px 20px rgba(0,0,0,.08) !important;
}

/* ── Progress bar de lecture ── */
#reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #0A84FF, #1B9C68);
    z-index: 9999;
    transition: width .1s;
    width: 0;
}

/* ── Toast notifications ── */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #0f172a;
    color: #fff;
    padding: 14px 20px;
    border-radius: 14px;
    font-size: .875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 32px rgba(0,0,0,.25);
    z-index: 9998;
    transform: translateY(80px);
    opacity: 0;
    transition: all .35s cubic-bezier(.4,0,.2,1);
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast-success { border-left: 4px solid #22c55e; }
.toast-error   { border-left: 4px solid #ef4444; }
.toast-info    { border-left: 4px solid #0A84FF; }

/* ── Back to top ── */
#back-to-top {
    position: fixed;
    bottom: 80px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #0A84FF, #1B9C68);
    color: #fff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(10,132,255,.35);
    z-index: 9997;
    opacity: 0;
    transform: translateY(16px) scale(.9);
    transition: all .3s cubic-bezier(.4,0,.2,1);
    pointer-events: none;
}
#back-to-top.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
#back-to-top:hover { transform: translateY(-3px) scale(1.05); }

/* ── Responsive ── */
@media (max-width: 768px) {
    .section-title-pro { font-size: 1.7rem; }
    .stat-counter { font-size: 2rem; }
    .toast { left: 16px; right: 16px; bottom: 16px; }
    #back-to-top { bottom: 70px; right: 16px; }
}
