/* ===== AVENTURES - DESIGN ULTRA MODERNE 2026 ===== */
/* ===== ANIMATIONS IMMÉDIATES EN CASCADE ===== */

/* Variables */
:root {
    --primary: #0066ff;
    --primary-light: #3385ff;
    --primary-dark: #0044cc;
    --accent: #00e5ff;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --bg-glass: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.1);
    --shadow-sm: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 30px 60px -15px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 40px rgba(0, 102, 255, 0.2);
    --transition-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ===== ANIMATIONS ===== */
@keyframes flyInFromBottom {
    0% {
        opacity: 0;
        transform: translateZ(-200px) translateY(100px) rotateX(-10deg);
        filter: blur(10px);
    }
    40% {
        opacity: 0.5;
        filter: blur(5px);
    }
    100% {
        opacity: 1;
        transform: translateZ(0) translateY(0) rotateX(0);
        filter: blur(0);
    }
}

@keyframes textReveal {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
        filter: blur(4px);
    }
    100% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
}

@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-80px);
        filter: blur(5px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
        filter: blur(0);
    }
}

/* ===== BODY ===== */
body {
    background-color: var(--bg-color, #ffffff);
    color: var(--text-primary);
    transition: background-color 0.4s var(--transition-smooth), color 0.4s var(--transition-smooth);
}

/* ===== HEADER - Animation immédiate ===== */
header {
    opacity: 0;
    animation: flyInFromBottom 0.8s var(--transition-smooth) forwards;
}

header h1 {
    opacity: 0;
    animation: textReveal 0.6s var(--transition-smooth) forwards;
    animation-delay: 0.1s;
}

header p {
    opacity: 0;
    animation: textReveal 0.6s var(--transition-smooth) forwards;
    animation-delay: 0.25s;
}

/* ===== SECTION - Visible immédiatement avec animations en cascade ===== */
section {
    opacity: 0;
    background: rgba(255, 255, 255, 0.95) !important;
    border-radius: 24px !important;
    padding: 2.5rem !important;
    margin: 2rem auto !important;
    box-shadow: var(--shadow-lg) !important;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-light);
    transition: all 0.4s var(--transition-smooth);
    transform-style: preserve-3d;
    perspective: 1000px;
    animation: scaleIn 0.8s var(--transition-smooth) forwards;
    animation-delay: 0.3s;
}

section:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg), var(--shadow-glow) !important;
}

/* ===== IMAGE DE PROFIL ===== */
.profile-img {
    max-width: 220px;
    border-radius: 50%;
    border: 4px solid rgba(0, 102, 255, 0.1);
    box-shadow: var(--shadow-lg);
    transition: all 0.5s var(--transition-smooth);
    opacity: 0;
    animation: slideInLeft 0.7s var(--transition-smooth) forwards;
    animation-delay: 0.5s;
}

.profile-img:hover {
    transform: scale(1.05) !important;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    border-color: var(--primary);
}

/* ===== TITRES ===== */
h2 {
    color: var(--text-primary) !important;
    position: relative;
    padding-bottom: 15px;
    opacity: 0;
    animation: textReveal 0.6s var(--transition-smooth) forwards;
    animation-delay: 0.6s;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 3px;
    transition: width 0.8s var(--transition-smooth);
}

section h2::after {
    animation: expandLine 0.8s var(--transition-smooth) forwards;
    animation-delay: 1s;
}

@keyframes expandLine {
    0% { width: 0; }
    100% { width: 80px; }
}

section:hover h2::after {
    width: 120px;
}

/* ===== PARAGRAPHES - Cascade ===== */
p {
    line-height: 1.8;
    margin-bottom: 1.2rem;
    color: var(--text-secondary);
    opacity: 0;
}

section p:nth-of-type(1) {
    animation: textReveal 0.6s var(--transition-smooth) forwards;
    animation-delay: 0.7s;
}

section p:nth-of-type(2) {
    animation: textReveal 0.6s var(--transition-smooth) forwards;
    animation-delay: 0.85s;
}

section p:nth-of-type(3) {
    animation: textReveal 0.6s var(--transition-smooth) forwards;
    animation-delay: 1s;
}

p:last-child {
    margin-bottom: 0;
}

/* ===== EFFETS DE TEXTE ===== */
p strong {
    color: var(--primary);
    font-weight: 700;
}

/* ===== MODE NUIT ===== */
[data-bs-theme="dark"] {
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --bg-glass: rgba(255, 255, 255, 0.03);
    --border-light: rgba(255, 255, 255, 0.08);
}

[data-bs-theme="dark"] section {
    background: rgba(20, 20, 30, 0.8) !important;
    backdrop-filter: blur(20px);
    border-color: rgba(255, 255, 255, 0.05);
}

[data-bs-theme="dark"] h2 {
    color: #ffffff !important;
}

[data-bs-theme="dark"] p {
    color: #cbd5e1;
}

[data-bs-theme="dark"] .profile-img {
    border-color: rgba(0, 102, 255, 0.3);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    section {
        padding: 1.8rem !important;
        margin: 1.5rem auto !important;
    }
    
    .profile-img {
        max-width: 180px;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    p {
        font-size: 0.95rem;
        line-height: 1.7;
    }
}

@media (max-width: 480px) {
    section {
        padding: 1.5rem !important;
    }
    
    .profile-img {
        max-width: 150px;
    }
    
    h2 {
        font-size: 1.4rem;
    }
}