/* ═══════════════════════════════════════════════════════════════
   RAFALBOT v2.8.0 - AMÉLIORATIONS ESTHÉTIQUES
   Design moderne et cohérent pour toutes les pages
   ═══════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════
   HEADER AMÉLIORÉ - RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

.header {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 14, 39, 0.98) !important;
    backdrop-filter: blur(15px);
    border-bottom: 2px solid rgba(255, 140, 0, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #FF8C00, #FFD700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    white-space: nowrap;
}

.logo i {
    color: #FF8C00;
    font-size: 2rem;
}

/* Navigation */
.nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #FF8C00, #FFD700);
    transition: width 0.3s ease;
}

.nav a:hover::after {
    width: 100%;
}

/* Menu Burger */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #FF8C00;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* ═══════════════════════════════════════════════════════════════
   HERO SECTION AMÉLIORÉ
   ═══════════════════════════════════════════════════════════════ */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 2rem 4rem;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #0a0e27 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 140, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(138, 75, 175, 0.1) 0%, transparent 50%);
    z-index: 0;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(135deg, #FF8C00, #FFD700, #FF8C00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: gradient 3s ease infinite;
}

@keyframes gradient {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

.hero-text p {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: #aaa;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════════
   BUTTONS AMÉLIORÉS
   ═══════════════════════════════════════════════════════════════ */

.btn-primary, .btn-secondary {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 12px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #FF8C00, #FFD700);
    color: #000;
    box-shadow: 0 10px 30px rgba(255, 140, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 140, 0, 0.5);
}

.btn-secondary {
    background: rgba(255, 140, 0, 0.1);
    color: #FF8C00;
    border-color: rgba(255, 140, 0, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 140, 0, 0.2);
    border-color: #FF8C00;
}

/* ═══════════════════════════════════════════════════════════════
   CARDS / STATS GRIDS
   ═══════════════════════════════════════════════════════════════ */

.stats-grid, .features-grid, .plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
    padding: 0 2rem;
}

.stat-card, .feature-card, .plan-card {
    background: linear-gradient(135deg, rgba(26, 31, 46, 0.95), rgba(37, 41, 54, 0.9));
    border: 2px solid rgba(255, 140, 0, 0.3);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before, .feature-card::before, .plan-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FF8C00, #FFD700, #8A4BAF);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover, .feature-card:hover, .plan-card:hover {
    transform: translateY(-10px);
    border-color: #FF8C00;
    box-shadow: 0 20px 50px rgba(255, 140, 0, 0.3);
}

.stat-card:hover::before, .feature-card:hover::before, .plan-card:hover::before {
    opacity: 1;
}

.stat-card i, .feature-card i {
    font-size: 3rem;
    color: #FF8C00;
    margin-bottom: 1rem;
}

.stat-card h3, .feature-card h3 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #FFD700;
    margin-bottom: 0.5rem;
}

.stat-card p, .feature-card p {
    color: #aaa;
    font-size: 1rem;
}

/* ═══════════════════════════════════════════════════════════════
   TABLES RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

.table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 16px;
    background: rgba(26, 31, 46, 0.95);
    border: 2px solid rgba(255, 140, 0, 0.3);
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

thead {
    background: rgba(255, 140, 0, 0.1);
}

th {
    padding: 1.25rem 1rem;
    text-align: left;
    font-weight: 700;
    color: #FFD700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 140, 0, 0.1);
    color: #fff;
}

tr:hover {
    background: rgba(255, 140, 0, 0.05);
}

/* ═══════════════════════════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════════════════════════ */

section {
    padding: 5rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

section h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff, #FFD700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

section > p {
    text-align: center;
    color: #aaa;
    font-size: 1.2rem;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */

footer {
    background: rgba(10, 14, 39, 0.98);
    border-top: 2px solid rgba(255, 140, 0, 0.3);
    padding: 3rem 2rem 2rem;
    margin-top: 5rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-section h3 {
    color: #FFD700;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul li a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #FF8C00;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 140, 0, 0.2);
    color: #888;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE - TABLET (768px - 1023px)
   ═══════════════════════════════════════════════════════════════ */
@media screen and (max-width: 1023px) {
    .header-content {
        padding: 1rem 1.5rem;
    }
    
    .nav {
        gap: 1.5rem;
    }
    
    .stats-grid, .features-grid, .plans-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    section {
        padding: 4rem 1.5rem;
    }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE - MOBILE (< 768px)
   ═══════════════════════════════════════════════════════════════ */
@media screen and (max-width: 767px) {
    /* Header mobile */
    .header-content {
        padding: 1rem;
    }
    
    .logo {
        font-size: 1.25rem;
    }
    
    .logo i {
        font-size: 1.5rem;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .nav {
        display: none;
        width: 100%;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        background: rgba(10, 14, 39, 0.98);
        border-top: 2px solid rgba(255, 140, 0, 0.3);
        padding: 1.5rem;
        gap: 1rem;
    }
    
    .nav.active {
        display: flex;
    }
    
    .nav a {
        padding: 0.75rem;
        border-bottom: 1px solid rgba(255, 140, 0, 0.1);
    }
    
    /* Hero mobile */
    .hero {
        min-height: 90vh;
        padding: 100px 1rem 3rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        justify-content: center;
        padding: 1rem 1.5rem;
    }
    
    /* Grids mobile */
    .stats-grid, .features-grid, .plans-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    /* Sections mobile */
    section {
        padding: 3rem 1rem;
    }
    
    /* Footer mobile */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Tables mobile */
    .table-container {
        font-size: 0.85rem;
    }
    
    th, td {
        padding: 0.75rem 0.5rem;
    }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE - MOBILE SMALL (< 480px)
   ═══════════════════════════════════════════════════════════════ */
@media screen and (max-width: 480px) {
    .logo {
        font-size: 1.1rem;
    }
    
    .hero-text h1 {
        font-size: 1.75rem;
    }
    
    .stat-card, .feature-card, .plan-card {
        padding: 1.5rem;
    }
    
    .stat-card i, .feature-card i {
        font-size: 2.5rem;
    }
    
    .btn-primary, .btn-secondary {
        padding: 0.875rem 1.25rem;
        font-size: 1rem;
    }
}

/* ═══════════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════════ */

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Stagger effect pour les cards */
.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }
.feature-card:nth-child(5) { animation-delay: 0.5s; }
.feature-card:nth-child(6) { animation-delay: 0.6s; }

/* ═══════════════════════════════════════════════════════════════
   DARK MODE IMPROVEMENTS
   ═══════════════════════════════════════════════════════════════ */

@media (prefers-color-scheme: dark) {
    /* Déjà en dark mode par défaut */
}

/* ═══════════════════════════════════════════════════════════════
   PRINT STYLES
   ═══════════════════════════════════════════════════════════════ */

@media print {
    .header, .menu-toggle, .btn-primary, .btn-secondary {
        display: none;
    }
    
    .hero {
        min-height: auto;
        padding: 2rem;
    }
    
    * {
        background: white !important;
        color: black !important;
    }
}
