﻿/* ============================================
   Eldrath2 - Home Page Advanced Styles
   ============================================ */

:root {
    --primary-color: #0ea5e9;
    --primary-light: #38bdf8;
    --primary-dark: #0369a1;
    --secondary-color: #1e293b;
    --accent-color: #06b6d4;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --dark-bg: #030712;
    --glass-bg: rgba(15, 23, 42, 0.75);
    --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ============================================
   Animations Avancées
   ============================================ */

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

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

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

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(14, 165, 233, 0.5);
    }
    50% {
        box-shadow: 0 0 40px rgba(14, 165, 233, 0.8);
    }
}

@keyframes pulse-border {
    0%, 100% {
        border-color: rgba(14, 165, 233, 0.3);
    }
    50% {
        border-color: rgba(14, 165, 233, 0.8);
    }
}

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

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

/* ============================================
   Classes Utilitaires d'Animation
   ============================================ */

[data-animate] {
    opacity: 0;
    transform: translateY(60px);
    transition: all var(--transition);
}

[data-animate].animate-in {
    opacity: 1;
    transform: translateY(0);
}

[data-animate*="left"] {
    transform: translateX(-60px);
}

[data-animate*="left"].animate-in {
    transform: translateX(0);
}

[data-animate*="right"] {
    transform: translateX(60px);
}

[data-animate*="right"].animate-in {
    transform: translateX(0);
}

/* Délais d'animation */
[data-animate]:nth-child(1) { transition-delay: 0s; }
[data-animate]:nth-child(2) { transition-delay: 0.1s; }
[data-animate]:nth-child(3) { transition-delay: 0.2s; }
[data-animate]:nth-child(4) { transition-delay: 0.3s; }
[data-animate]:nth-child(5) { transition-delay: 0.4s; }

/* ============================================
   Éléments Interactifs
   ============================================ */

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple 0.6s ease-out;
    pointer-events: none;
}

.btn-interactive {
    position: relative;
    overflow: hidden;
    transition: all var(--transition);
}

.btn-interactive:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.3);
}

.btn-interactive:active {
    transform: translateY(0);
}

.btn-interactive.downloading {
    pointer-events: none;
    opacity: 0.8;
}

/* ============================================
   Sections
   ============================================ */

.section-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.section-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse at 50% 50%,
        rgba(14, 165, 233, 0.15) 0%,
        transparent 70%
    );
    pointer-events: none;
}

.section-dark {
    background: linear-gradient(
        135deg,
        rgba(3, 7, 18, 1),
        rgba(15, 23, 42, 0.5)
    );
}

.section-features {
    position: relative;
    padding: 80px 0;
}

/* ============================================
   Cartes et Containers
   ============================================ */

.card-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: 12px;
    transition: all var(--transition);
}

.card-glass:hover {
    border-color: rgba(14, 165, 233, 0.5);
    box-shadow: 0 8px 32px rgba(14, 165, 233, 0.15);
    transform: translateY(-4px);
}

.card-glow {
    position: relative;
}

.card-glow::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at top right,
        rgba(14, 165, 233, 0.1),
        transparent
    );
    border-radius: 12px;
    pointer-events: none;
}

/* ============================================
   Textes et Typographie
   ============================================ */

.text-glow {
    text-shadow: 0 0 10px rgba(14, 165, 233, 0.5);
}

.text-gradient {
    background: linear-gradient(
        135deg,
        #0ea5e9,
        #06b6d4
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text {
    background: linear-gradient(
        to right,
        #0ea5e9,
        #06b6d4,
        #0ea5e9
    );
    background-size: 200% 100%;
    animation: shimmer 3s infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   Badges et Tags
   ============================================ */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(14, 165, 233, 0.15);
    border: 1px solid rgba(14, 165, 233, 0.3);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #0ea5e9;
    transition: all var(--transition);
}

.badge:hover {
    background: rgba(14, 165, 233, 0.25);
    border-color: rgba(14, 165, 233, 0.6);
}

.badge-success {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.badge-warning {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.3);
    color: #f59e0b;
}

/* ============================================
   Dividers
   ============================================ */

.divider {
    height: 1px;
    background: linear-gradient(
        to right,
        transparent,
        rgba(14, 165, 233, 0.5),
        transparent
    );
    margin: 40px 0;
}

/* ============================================
   Carousel / Slider
   ============================================ */

.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

[data-slide] {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

[data-slide].active {
    display: block;
}

.carousel-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carousel-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all var(--transition);
}

.carousel-btn.active {
    background: rgba(14, 165, 233, 0.8);
    border-color: #0ea5e9;
}

/* ============================================
   Modales
   ============================================ */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background: var(--glass-bg);
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: 16px;
    padding: 40px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideInUp 0.4s ease-out;
}

/* ============================================
   Grilles de Fonctionnalités
   ============================================ */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.feature-card {
    padding: 24px;
    border-radius: 12px;
    text-align: center;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
    .section-hero {
        min-height: auto;
        padding: 60px 20px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        padding: 24px;
    }
}

/* ============================================
   Préférences Système
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (prefers-color-scheme: dark) {
    :root {
        --secondary-color: #0f172a;
    }
}
