/* ========================================
   STYLES PAGE D'ACCUEIL
======================================== */

/* Réduire l'espace en haut du hero */
.hero {
    padding-top: 0;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
}

.hero-stat {
    text-align: center;
}

.hero-stat-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
}

.hero-stat-label {
    font-size: 0.9rem;
    color: var(--gray-500);
}

/* Category Sections */
.category-section {
    padding: 5rem 0;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.category-icon {
    width: 80px;
    height: 80px;
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    flex-shrink: 0;
}

.category-icon.math-icon { background: linear-gradient(135deg, #4F46E5, #6366F1); }
.category-icon.french-icon { background: linear-gradient(135deg, #8B5CF6, #A78BFA); }
.category-icon.eval-icon { background: linear-gradient(135deg, #F59E0B, #FBBF24); }
.category-icon.teacher-icon { background: linear-gradient(135deg, #10B981, #34D399); }

.category-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.category-description {
    color: var(--gray-600);
    font-size: 1.1rem;
}

/* Tools Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.tools-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.tools-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* Tool Card */
.tool-card {
    background: white;
    border-radius: 1.25rem;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.tool-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.tool-card.featured {
    border: 2px solid var(--primary);
}

.tool-card.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), #8B5CF6);
}

.tool-card-large {
    padding: 2.5rem;
}

.tool-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.35rem 0.85rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.tool-badge.free {
    background: rgba(16, 185, 129, 0.15);
    color: #064e3b;
}

.tool-badge.premium {
    background: rgba(245, 158, 11, 0.15);
    color: #78350f;
}

.tool-badge.new {
    background: rgba(139, 92, 246, 0.15);
    color: #5B21B6;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}
@media (prefers-reduced-motion: reduce) {
    .tool-badge.new { animation: none; }
}

.tool-icon {
    width: 64px;
    height: 64px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1.25rem;
}

.tool-card h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}

.tool-card p {
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.tool-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.tool-features li {
    padding: 0.35rem 0;
    color: var(--gray-700);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tool-features li i {
    color: #10B981;
    font-size: 0.8rem;
}

.tool-features-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
}

.tool-features-inline li {
    padding: 0.25rem 0;
}

.tool-card .btn {
    margin-top: auto;
}

/* Boutique */
.boutique-preview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.boutique-card {
    background: white;
    border-radius: 1.25rem;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.3s ease;
}

.boutique-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.boutique-single {
    max-width: 600px;
    margin: 3rem auto 0;
    display: block;
}

.boutique-card-large {
    padding: 3rem;
}

.boutique-card-large p {
    font-size: 1.05rem;
}

.boutique-features {
    list-style: none;
    text-align: left;
    margin: 1.5rem 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem 1rem;
}

.boutique-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-700);
    font-size: 0.95rem;
}

.boutique-features li i {
    color: #10B981;
}

.boutique-icon {
    width: 100px;
    height: 100px;
    background: var(--primary-lighter);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary);
    margin: 0 auto 1.5rem;
}

.boutique-card h3 {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.boutique-card p {
    color: var(--gray-600);
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.boutique-price {
    font-size: 2.25rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.boutique-price small {
    font-size: 1rem;
    font-weight: 500;
    color: var(--gray-500);
}

/* About */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 0 0 3rem 0;
}

.about-text h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.about-text p {
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.about-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* CTA Final */
.cta-final {
    background: linear-gradient(135deg, var(--primary), #1e40af);
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-final::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
    animation: ctaPatternMove 25s linear infinite;
}

@keyframes ctaPatternMove {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 120px 120px;
    }
}

.cta-final .container {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.cta-final .btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.cta-final .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Responsive */
@media (max-width: 1024px) {
    .tools-grid,
    .tools-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .boutique-preview {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .tools-grid,
    .tools-grid-2,
    .tools-grid-3,
    .boutique-preview {
        grid-template-columns: 1fr;
    }

    .category-header {
        flex-direction: column;
        text-align: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .about-links {
        flex-direction: column;
    }

    .cta-content h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .tool-features-inline {
        flex-direction: column;
        gap: 0.25rem;
    }

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

/* Hero mobile - corrections espacement */
@media (max-width: 992px) {
    .hero {
        padding: 0 0 1rem !important;
        margin-top: 0 !important;
    }
    .hero-content {
        gap: 0.75rem !important;
        align-items: start !important;
    }
    .hero-visual {
        margin-bottom: 0 !important;
    }
    .hero-image {
        max-width: 100% !important;
        height: auto !important;
        box-shadow: none !important;
        border-radius: 0.5rem !important;
    }
    .hero-badge {
        display: none !important;
    }
    .hero-text .section-badge {
        margin-bottom: 0.75rem !important;
    }
    .hero-text h1 {
        margin-bottom: 0.75rem !important;
        font-size: 1.75rem !important;
    }
    .hero-text p {
        margin-bottom: 1rem !important;
        font-size: 0.95rem !important;
    }
    .hero-stats {
        margin: 1rem 0 !important;
        flex-direction: row !important;
        gap: 2rem !important;
    }
    .btn-group {
        gap: 0.75rem !important;
    }
    .btn-group .btn {
        padding: 0.75rem 1.25rem !important;
        font-size: 0.95rem !important;
    }
}
