/* ============================================
   BAC PRO CIEL - Page d'accueil REDESIGN
   Design noir & blanc impressionnant avec Dark Mode
   ============================================ */

/* Hero Section avec effet moderne */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
}

[data-theme="light"] .hero {
    background: #000000;
    color: #ffffff;
}

[data-theme="dark"] .hero {
    background: #0a0a0a;
    color: #ffffff;
}

/* Effet de grille animée en arrière-plan */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: 100px 100px;
    animation: gridMove 20s linear infinite;
}

[data-theme="light"] .hero::before {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

[data-theme="dark"] .hero::before {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(100px, 100px); }
}

/* Cercles décoratifs */
.hero::after {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    animation: rotate 30s linear infinite;
}

[data-theme="light"] .hero::after {
    border: 2px solid rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .hero::after {
    border: 2px solid rgba(255, 255, 255, 0.08);
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hero-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    font-size: clamp(3.5rem, 10vw, 7rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 1.5rem;
    letter-spacing: -4px;
    color: #ffffff;
    position: relative;
}

.hero-highlight {
    display: inline-block;
    padding: 0.1em 0.5em;
    border-radius: 12px;
    letter-spacing: -3px;
    position: relative;
    animation: pulse 2s ease-in-out infinite;
}

[data-theme="light"] .hero-highlight {
    background: #ffffff;
    color: #000000;
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .hero-highlight {
    background: #ffffff;
    color: #0a0a0a;
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.3);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.hero-description {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    margin-bottom: 3rem;
    line-height: 1.6;
    font-weight: 400;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

[data-theme="light"] .hero-description {
    color: #b3b3b3;
}

[data-theme="dark"] .hero-description {
    color: #d4d4d4;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero {
    padding: 1.25rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 220px;
    position: relative;
    overflow: hidden;
}

.btn-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-hero:hover::before {
    left: 100%;
}

.btn-hero.btn-primary {
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

[data-theme="light"] .btn-hero.btn-primary {
    color: #000000;
}

[data-theme="dark"] .btn-hero.btn-primary {
    color: #0a0a0a;
}

.btn-hero.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.3);
}

.btn-hero.btn-secondary {
    background: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
}

.btn-hero.btn-secondary:hover {
    background: #ffffff;
    transform: translateY(-3px);
}

[data-theme="light"] .btn-hero.btn-secondary:hover {
    color: #000000;
}

[data-theme="dark"] .btn-hero.btn-secondary:hover {
    color: #0a0a0a;
}

/* Features Section */
.features-section {
    padding: 8rem 2rem;
    position: relative;
}

[data-theme="light"] .features-section {
    background: #ffffff;
}

[data-theme="dark"] .features-section {
    background: #1a1a1a;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    margin-bottom: 1rem;
    letter-spacing: -3px;
}

[data-theme="light"] .section-title {
    color: #000000;
}

[data-theme="dark"] .section-title {
    color: #ffffff;
}

.section-description {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
}

[data-theme="light"] .section-description {
    color: #666666;
}

[data-theme="dark"] .section-description {
    color: #b3b3b3;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    border: 2px solid;
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

[data-theme="light"] .feature-card {
    background: #ffffff;
    border-color: #e5e5e5;
}

[data-theme="dark"] .feature-card {
    background: #262626;
    border-color: #333333;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

[data-theme="light"] .feature-card::before {
    background: #000000;
}

[data-theme="dark"] .feature-card::before {
    background: #ffffff;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-8px);
}

[data-theme="light"] .feature-card:hover {
    border-color: #000000;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .feature-card:hover {
    border-color: #ffffff;
    box-shadow: 0 20px 40px rgba(255, 255, 255, 0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: all 0.3s ease;
}

[data-theme="light"] .feature-icon {
    background: #000000;
    color: #ffffff;
}

[data-theme="dark"] .feature-icon {
    background: #ffffff;
    color: #0a0a0a;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(-5deg);
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
}

[data-theme="light"] .feature-title {
    color: #000000;
}

[data-theme="dark"] .feature-title {
    color: #ffffff;
}

.feature-description {
    line-height: 1.7;
    margin: 0;
}

[data-theme="light"] .feature-description {
    color: #666666;
}

[data-theme="dark"] .feature-description {
    color: #b3b3b3;
}

/* Subjects Section */
.subjects-section {
    padding: 8rem 2rem;
    position: relative;
}

[data-theme="light"] .subjects-section {
    background: #000000;
}

[data-theme="dark"] .subjects-section {
    background: #0a0a0a;
}

.subjects-section .section-title {
    color: #ffffff;
}

[data-theme="light"] .subjects-section .section-description {
    color: #b3b3b3;
}

[data-theme="dark"] .subjects-section .section-description {
    color: #d4d4d4;
}

.subjects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.subject-card {
    border: 2px solid;
    border-radius: 16px;
    padding: 2.5rem;
    text-decoration: none;
    color: inherit;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

[data-theme="light"] .subject-card {
    background: #1a1a1a;
    border-color: #333333;
}

[data-theme="dark"] .subject-card {
    background: #1a1a1a;
    border-color: #333333;
}

.subject-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #ffffff;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.subject-card:hover::before {
    transform: scaleY(1);
}

.subject-card:hover {
    transform: translateX(8px);
    border-color: #ffffff;
}

[data-theme="light"] .subject-card:hover {
    background: #262626;
}

[data-theme="dark"] .subject-card:hover {
    background: #262626;
}

.subject-icon {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

[data-theme="light"] .subject-icon {
    color: #000000;
}

[data-theme="dark"] .subject-icon {
    color: #0a0a0a;
}

.subject-card:hover .subject-icon {
    transform: scale(1.1) rotate(5deg);
}

.subject-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.subject-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.8rem 0;
    color: #ffffff;
}

.subject-description {
    font-size: 0.95rem;
    margin: 0 0 1.5rem 0;
    line-height: 1.6;
    flex: 1;
}

[data-theme="light"] .subject-description {
    color: #b3b3b3;
}

[data-theme="dark"] .subject-description {
    color: #d4d4d4;
}

.subject-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #333333;
    color: #d4d4d4;
}

.subject-meta i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.subject-card:hover .subject-meta i {
    transform: translateX(5px);
}

.course-count {
    font-weight: 600;
    color: #ffffff;
}

/* Stats Section */
.stats-section {
    padding: 6rem 2rem;
}

[data-theme="light"] .stats-section {
    background: #f5f5f5;
}

[data-theme="dark"] .stats-section {
    background: #1a1a1a;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    border-radius: 16px;
    border: 2px solid;
    transition: all 0.3s ease;
}

[data-theme="light"] .stat-card {
    background: #ffffff;
    border-color: #e5e5e5;
}

[data-theme="dark"] .stat-card {
    background: #262626;
    border-color: #333333;
}

.stat-card:hover {
    transform: translateY(-5px);
}

[data-theme="light"] .stat-card:hover {
    border-color: #000000;
}

[data-theme="dark"] .stat-card:hover {
    border-color: #ffffff;
}

.stat-number {
    font-size: 4rem;
    font-weight: 900;
    margin: 0 0 0.5rem 0;
    letter-spacing: -2px;
}

[data-theme="light"] .stat-number {
    color: #000000;
}

[data-theme="dark"] .stat-number {
    color: #ffffff;
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

[data-theme="light"] .stat-label {
    color: #666666;
}

[data-theme="dark"] .stat-label {
    color: #b3b3b3;
}

/* CTA Section */
.cta-section {
    padding: 8rem 2rem;
    color: #ffffff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

[data-theme="light"] .cta-section {
    background: #000000;
}

[data-theme="dark"] .cta-section {
    background: #0a0a0a;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulse-ring 3s ease-out infinite;
}

[data-theme="light"] .cta-section::before {
    border: 2px solid rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .cta-section::before {
    border: 2px solid rgba(255, 255, 255, 0.08);
}

@keyframes pulse-ring {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0;
    }
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.cta-content .hero-title {
    margin-bottom: 1.5rem;
}

.cta-description {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    line-height: 1.6;
}

[data-theme="light"] .cta-description {
    color: #b3b3b3;
}

[data-theme="dark"] .cta-description {
    color: #d4d4d4;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.5rem 3.5rem;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.2);
}

[data-theme="light"] .btn-cta {
    color: #000000;
}

[data-theme="dark"] .btn-cta {
    color: #0a0a0a;
}

.btn-cta:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(255, 255, 255, 0.3);
}

.btn-cta i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.btn-cta:hover i {
    transform: translateX(5px);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        min-height: 80vh;
        padding: 3rem 1.5rem;
    }

    .hero-title {
        font-size: 2.8rem;
        letter-spacing: -2px;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-hero {
        width: 100%;
    }

    .features-section,
    .subjects-section,
    .cta-section {
        padding: 4rem 1.5rem;
    }

    .section-header {
        margin-bottom: 3rem;
    }

    .features-grid,
    .subjects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .subject-card {
        padding: 2rem;
    }

    .section-title {
        font-size: 2.5rem;
        letter-spacing: -2px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: auto;
        padding: 2.5rem 1rem;
    }

    .hero-title {
        font-size: 2.2rem;
        letter-spacing: -1px;
    }

    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }

    .subject-card {
        flex-direction: column;
        gap: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}
