/* ====================================================
   STYLES MODERNES POUR LA PAGE D'ACCUEIL
   ==================================================== */

.home-container {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #F8FAFC 0%, #E2E8F0 100%);
}

.hero-section {
    max-width: 1400px;
    width: 100%;
    text-align: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
    border-radius: 24px;
    padding: 80px 60px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    animation: fadeInUp 0.8s ease-out;
}

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

.logo-container {
    margin-bottom: 40px;
    animation: zoomIn 0.6s ease-out;
}

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

.app-logo {
    max-width: 140px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.3);
    transition: transform 0.3s ease;
}

.app-logo:hover {
    transform: scale(1.05) rotate(2deg);
}

.app-title {
    font-size: 4.5rem;
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #4F46E5 0%, #06B6D4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -2px;
    animation: fadeIn 0.8s ease-out 0.2s backwards;
}

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

.app-subtitle {
    font-size: 1.5rem;
    color: #64748B;
    margin-bottom: 60px;
    font-weight: 400;
    letter-spacing: 0.5px;
    animation: fadeIn 0.8s ease-out 0.4s backwards;
}

.description-section {
    margin: 60px 0;
    text-align: left;
    animation: fadeIn 0.8s ease-out 0.6s backwards;
}

.description-section h2 {
    color: #0F172A;
    font-size: 2.75rem;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 700;
    position: relative;
    padding-bottom: 20px;
}

.description-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #4F46E5, #06B6D4);
    border-radius: 2px;
}

.main-description {
    font-size: 1.2rem;
    line-height: 2;
    color: #475569;
    margin-bottom: 50px;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin: 50px 0;
}

.feature-item {
    background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 100%);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4F46E5, #06B6D4);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.feature-item:hover::before {
    transform: scaleX(1);
}

.feature-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(79, 70, 229, 0.2);
    border-color: rgba(79, 70, 229, 0.2);
}

.feature-item h3 {
    color: #0F172A;
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-item p {
    color: #64748B;
    line-height: 1.8;
    margin: 0;
    font-size: 1.05rem;
}

.cta-section {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    animation: fadeIn 0.8s ease-out 0.8s backwards;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 40px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 1.125rem;
    border: none;
    cursor: pointer;
    min-width: 200px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, #4F46E5 0%, #3730A3 100%);
    color: white;
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.4);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(79, 70, 229, 0.5);
    background: linear-gradient(135deg, #4338CA 0%, #312E81 100%);
    color: white;
}

.btn-secondary {
    background: white;
    color: #4F46E5;
    border: 3px solid #4F46E5;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    transform: translateY(-4px);
    background: #4F46E5;
    color: white;
    box-shadow: 0 15px 40px rgba(79, 70, 229, 0.3);
}

.user-welcome {
    color: currentColor;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.05) 0%, rgba(6, 182, 212, 0.05) 100%);
    border-radius: 20px;
    border: 2px solid rgba(79, 70, 229, 0.1);
    margin-top: 40px;
    animation: fadeIn 0.8s ease-out 1s backwards;
}

.user-welcome h3 {
    margin-bottom: 15px;
    font-size: 1.75rem;
    color: #0F172A;
    font-weight: 700;
}

.user-welcome p {
    margin: 0;
    opacity: 0.85;
    color: #475569;
    font-size: 1.1rem;
}

/* ====================================================
   RESPONSIVE DESIGN MODERNE
   ==================================================== */

@media (max-width: 1024px) {
    .hero-section {
        padding: 60px 40px;
    }

    .app-title {
        font-size: 3.5rem;
    }

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

@media (max-width: 768px) {
    .hero-section {
        padding: 50px 30px;
        border-radius: 16px;
    }

    .app-title {
        font-size: 3rem;
        letter-spacing: -1px;
    }

    .app-subtitle {
        font-size: 1.2rem;
        margin-bottom: 40px;
    }

    .description-section h2 {
        font-size: 2.2rem;
    }

    .main-description {
        font-size: 1.05rem;
    }

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

    .feature-item {
        padding: 30px;
    }

    .cta-section {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .btn {
        width: 100%;
        max-width: 320px;
    }
}

@media (max-width: 480px) {
    .home-container {
        padding: 20px 10px;
    }

    .hero-section {
        padding: 40px 20px;
    }

    .app-logo {
        max-width: 100px;
    }

    .app-title {
        font-size: 2.25rem;
        letter-spacing: -0.5px;
    }

    .app-subtitle {
        font-size: 1rem;
    }

    .description-section h2 {
        font-size: 1.75rem;
    }

    .main-description {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .feature-item {
        padding: 24px;
    }

    .feature-item h3 {
        font-size: 1.25rem;
    }

    .feature-item p {
        font-size: 0.95rem;
    }

    .btn {
        padding: 14px 30px;
        font-size: 1rem;
    }
}

/* ====================================================
   ANIMATIONS AVANCÉES
   ==================================================== */

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

.app-logo {
    animation: float 3s ease-in-out infinite;
}

/* Effet de parallaxe léger */
@media (prefers-reduced-motion: no-preference) {
    .feature-item {
        animation: fadeInUp 0.6s ease-out backwards;
    }

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