/* ============================================
   HERO SECTION STYLES WITH BACKGROUND IMAGE
   - Fullscreen background with adaptive overlay
   - Light mode: violet clair (bg-violet-200/50)
   - Dark mode: violet foncé (bg-violet-900/70)
   - Optimized text readability with shadows
   - Responsive adjustments for mobile
   ============================================ */

/* Hero Section Base */
#home {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

/* Background Image Container */
.hero-background-container {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-background-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Light mode image - pas de filtre */
[data-theme="light"] .hero-background-container img {
    filter: none;
}

/* Dark mode image - pas de filtre */
[data-theme="dark"] .hero-background-container img {
    filter: none;
}

/* Adaptive Overlay */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    pointer-events: none;
    transition: background-color 0.3s ease;
}

/* Light mode: overlay désactivé (géré par hero-background.css) */
[data-theme="light"] .hero-overlay {
    background-color: rgba(221, 214, 254, 0); /* Transparent - Overlay désactivé */
}

/* Dark mode: overlay désactivé (géré par hero-background.css) */
[data-theme="dark"] .hero-overlay {
    background-color: rgba(76, 29, 149, 0); /* Transparent - Overlay désactivé */
}

/* Content Layer - above overlay */
.hero-content-layer {
    position: relative;
    z-index: 20;
}

/* Text Shadows for Readability */
#home h1 {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    transition: text-shadow 0.3s ease;
}

[data-theme="dark"] #home h1 {
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

#home p {
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] #home p {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Badge and Button Styles */
#home .hero-badge {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] #home .hero-badge {
    background-color: rgba(17, 24, 39, 0.9); /* gray-900/90 */
}

#home .cta-secondary {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] #home .cta-secondary {
    background-color: rgba(17, 24, 39, 0.9);
    color: white;
}

#home .cta-secondary:hover {
    background-color: rgba(255, 255, 255, 1);
}

[data-theme="dark"] #home .cta-secondary:hover {
    background-color: rgba(31, 41, 55, 1); /* gray-800 */
}

/* Feature Card Glassmorphism */
.hero-feature-card {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .hero-feature-card {
    background-color: rgba(17, 24, 39, 0.3);
    border-color: rgba(107, 114, 128, 0.5);
}

.hero-feature-card h3 {
    color: #1f2937;
}

[data-theme="dark"] .hero-feature-card h3 {
    color: white;
}

.hero-feature-card p {
    color: #4b5563;
}

[data-theme="dark"] .hero-feature-card p {
    color: #d1d5db;
}

/* Scroll Indicator */
.scroll-indicator {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.scroll-indicator:hover {
    opacity: 1;
}

[data-theme="dark"] .scroll-indicator {
    color: white;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease-in;
}

.fade-in-right {
    animation: fadeInRight 1s ease-in;
}

/* Responsive Adjustments */
@media (max-width: 1279px) {
    #home {
        padding-top: 6rem;
        min-height: 80vh;
    }
    
    #home h1 {
        font-size: 2.5rem;
    }
    
    #home p {
        font-size: 1.125rem;
    }
}

@media (max-width: 640px) {
    #home {
        padding-top: 5rem;
        padding-bottom: 3rem;
    }
    
    #home h1 {
        font-size: 2rem;
        /* line-height géré par leading-tight dans HTML */
    }
    
    #home p {
        font-size: 1rem;
    }
    
    /* Slightly darker overlay on mobile for better text contrast */
    [data-theme="light"] .hero-overlay {
        background-color: rgba(221, 214, 254, 0.6) !important; /* bg-violet-200/60 */
    }
    
    [data-theme="dark"] .hero-overlay {
        background-color: rgba(76, 29, 149, 0.75) !important; /* bg-violet-900/75 */
    }
    
    /* Hide decorative elements on mobile */
    .hero-decorative {
        display: none;
    }
}

/* Ensure smooth theme transitions */
#home,
#home *,
.hero-overlay,
.hero-background-container img {
    transition: all 0.3s ease;
}

/* ============================================
   HERO IMAGE ANIMATION - EFFET DE MOUVEMENT
   Animation subtile avec zoom au hover
   ============================================ */

/* Container avec overflow hidden pour l'effet zoom */
.hero-image-container {
    overflow: hidden;
    border-radius: 1rem;
    transition: transform 0.3s ease;
}

/* Image avec effet de mouvement et zoom très léger */
.hero-image {
    transform: scale(1.05);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    animation: heroImageFloat 6s ease-in-out infinite;
}

/* Hover sur le container : zoom très léger */
.hero-image-container:hover .hero-image {
    transform: scale(1.08);
}

/* Animation de flottement subtil */
@keyframes heroImageFloat {
    0%, 100% {
        transform: scale(1.05) translateY(0px);
    }
    50% {
        transform: scale(1.05) translateY(-8px);
    }
}

/* Responsive : réduire l'animation sur mobile */
@media (max-width: 768px) {
    .hero-image {
        animation: heroImageFloatMobile 6s ease-in-out infinite;
    }
    
    @keyframes heroImageFloatMobile {
        0%, 100% {
            transform: scale(1.03) translateY(0px);
        }
        50% {
            transform: scale(1.03) translateY(-5px);
        }
    }
}

/* ============================================
   SCROLL INDICATOR - DESIGN MODERNE
   Style glassmorphism cohérent avec le site
   ============================================ */

.scroll-indicator {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-indicator-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.scroll-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-text {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.9;
    transition: all 0.3s ease;
}

/* Hover effects */
.scroll-indicator:hover .scroll-circle {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.scroll-indicator:hover .scroll-text {
    opacity: 1;
    color: white;
    transform: translateY(-2px);
}

/* Animation de bounce personnalisée */
@keyframes scrollBounce {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(10px);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .scroll-circle {
        width: 48px;
        height: 48px;
    }
    
    .scroll-circle svg {
        width: 20px;
        height: 20px;
    }
    
    .scroll-text {
        font-size: 0.65rem;
    }
}
