/* ============================================
   LICENCE INFORMATIQUE STYLESHEET
   Thème : IA / Machine Learning / Python
   ============================================ */

:root {
    --primary-purple: #7c3aed;
    --dark-purple: #5b21b6;
    --light-purple: #f3e8ff;
    --accent-pink: #ec4899;
    --accent-cyan: #06b6d4;
    --dark-bg: #0f0a1e;
    --darker-bg: #050208;
    --text-dark: #1a1a1a;
    --text-gray: #666;
    --border-light: #e0e0e0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #ffffff;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
    color: white;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 4rem 0;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(124, 58, 237, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(236, 72, 153, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(236, 72, 153, 0.2));
    border: 1px solid rgba(124, 58, 237, 0.4);
    padding: 0.7rem 1.8rem;
    border-radius: 50px;
    font-size: 0.95rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #c084fc 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.3rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 3rem;
}

.hero-highlights {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.highlight-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.highlight-item i {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--primary-purple), var(--accent-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.highlight-item span {
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.btn-primary-ai {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: linear-gradient(135deg, var(--primary-purple), var(--accent-pink));
    color: white;
    padding: 1.3rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.4s ease;
    box-shadow: 0 10px 40px rgba(124, 58, 237, 0.4);
    margin-top: 2rem;
}

.btn-primary-ai:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(124, 58, 237, 0.5);
    color: white;
}

/* ============================================
   SECTIONS COMMUNES
   ============================================ */

section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-badge {
    display: inline-block;
    padding: 0.5rem 1.3rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.section-badge.ai {
    background: linear-gradient(135deg, var(--primary-purple), var(--accent-pink));
    color: white;
}

.section-badge.python {
    background: linear-gradient(135deg, #3776ab, #ffd43b);
    color: white;
}

.section-badge.scratch {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
}

.section-header h2 {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.15rem;
    color: var(--text-gray);
    max-width: 750px;
    margin: 0 auto;
}

/* ============================================
   VISION SECTION
   ============================================ */

.section-vision {
    background: var(--light-purple);
}

.vision-card {
    background: white;
    border-radius: 30px;
    padding: 4rem;
    box-shadow: 0 20px 60px rgba(124, 58, 237, 0.1);
    max-width: 1100px;
    margin: 0 auto;
}

.vision-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--primary-purple), var(--accent-pink));
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    margin: 0 auto 2rem;
}

.vision-card h2 {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.vision-lead {
    font-size: 1.25rem;
    text-align: center;
    color: var(--text-gray);
    margin-bottom: 3rem;
    line-height: 1.8;
}

.vision-points {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.vision-point {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.vision-point i {
    font-size: 1.8rem;
    color: var(--primary-purple);
    margin-top: 0.3rem;
}

.vision-point strong {
    display: block;
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.vision-point p {
    color: var(--text-gray);
    line-height: 1.8;
    margin: 0;
}

/* ============================================
   PROJETS IA
   ============================================ */

.section-ai-projects {
    background: white;
}

.ai-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2.5rem;
}

.ai-project-card {
    background: linear-gradient(135deg, #ffffff 0%, #faf5ff 100%);
    border: 2px solid var(--border-light);
    border-radius: 25px;
    padding: 3rem;
    transition: all 0.4s ease;
    position: relative;
}

.ai-project-card:hover {
    border-color: var(--primary-purple);
    box-shadow: 0 20px 50px rgba(124, 58, 237, 0.15);
    transform: translateY(-10px);
}

.ai-project-card.featured {
    border-width: 3px;
    border-color: var(--accent-pink);
    background: linear-gradient(135deg, #fef3f7 0%, #f3e8ff 100%);
}

.featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent-pink);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.ai-project-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.ai-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-purple), var(--accent-pink));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    flex-shrink: 0;
}

.ai-project-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
}

.project-year {
    font-size: 0.9rem;
    color: var(--text-gray);
    font-weight: 600;
}

.ai-project-desc {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.ai-tech-stack {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.ai-tech-stack span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(124, 58, 237, 0.1);
    color: var(--primary-purple);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.ai-features {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.feature-tag {
    background: white;
    border: 1px solid var(--primary-purple);
    color: var(--primary-purple);
    padding: 0.4rem 1rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ============================================
   PYTHON AVANCÉ
   ============================================ */

.section-python {
    background: linear-gradient(135deg, #1e3a8a 0%, #3730a3 100%);
    color: white;
}

.section-python .section-header h2,
.section-python .section-header p {
    color: white;
}

.python-skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.python-skill-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.python-skill-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-10px);
}

.skill-number {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 3rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.1);
}

.python-skill-card i {
    font-size: 2.5rem;
    color: #ffd43b;
    margin-bottom: 1.5rem;
    display: block;
}

.python-skill-card h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.python-skill-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.skill-progress {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.skill-bar {
    height: 100%;
    background: linear-gradient(90deg, #ffd43b, #3776ab);
    border-radius: 10px;
    transition: width 1s ease;
}

.github-showcase {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 3rem;
    border-radius: 25px;
    margin-top: 4rem;
}

.github-showcase i {
    font-size: 4rem;
    color: white;
}

.github-showcase h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.github-showcase p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
}

.github-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffd43b;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.github-link:hover {
    color: white;
    transform: translateX(5px);
}

/* ============================================
   SCRATCH EVOLUTION
   ============================================ */

.section-scratch {
    background: linear-gradient(135deg, #fef3f7 0%, #fff5e6 100%);
}

.evolution-timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.evolution-timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary-purple), var(--accent-pink));
}

.evolution-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.evo-year {
    min-width: 90px;
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--primary-purple), var(--accent-pink));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
    font-weight: 800;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.3);
    z-index: 2;
    position: relative;
    text-align: center;
    line-height: 1.3;
    padding: 0.3rem;
    word-break: break-word;
}

.evo-content {
    flex: 1;
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
}

.evo-content:hover {
    transform: translateX(10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.evolution-item.highlight .evo-content {
    border: 3px solid var(--primary-purple);
    background: linear-gradient(135deg, #ffffff 0%, #f3e8ff 100%);
}

.evo-content i {
    font-size: 2.5rem;
    color: var(--primary-purple);
    margin-bottom: 1rem;
    display: block;
}

.evo-content h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.evo-content p {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.evo-skills {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.evo-skills span {
    background: var(--light-purple);
    color: var(--primary-purple);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ============================================
   MÉDIATION
   ============================================ */

.section-mediation {
    background: white;
}

.mediation-card {
    background: linear-gradient(135deg, #f0fdfa 0%, #f3e8ff 100%);
    border-radius: 30px;
    padding: 4rem;
    border: 2px solid var(--primary-purple);
}

.mediation-icon-large {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--primary-purple));
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: white;
    margin-bottom: 2rem;
}

.mediation-card h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.mediation-lead {
    font-size: 1.15rem;
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.mediation-stats {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.med-stat {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: white;
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-purple), var(--accent-pink));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
}

.stat-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-dark);
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-gray);
}

.mediation-content h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.mediation-list {
    list-style: none;
    padding: 0;
}

.mediation-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    line-height: 1.7;
}

.mediation-list i {
    color: var(--accent-cyan);
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

/* ============================================
   CTA SECTION
   ============================================ */

.section-cta {
    background: linear-gradient(135deg, var(--dark-bg) 0%, #1e1b4b 100%);
    position: relative;
    overflow: hidden;
}

.cta-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.3) 0%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
}

.cta-card {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1.5rem;
}

.cta-content p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 3rem;
    line-height: 1.8;
}

.btn-cta-main {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, var(--primary-purple), var(--accent-pink));
    color: white;
    padding: 1.5rem 3.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.3rem;
    transition: all 0.4s ease;
    box-shadow: 0 15px 40px rgba(124, 58, 237, 0.4);
}

.btn-cta-main:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 60px rgba(124, 58, 237, 0.5);
    color: white;
}

.cta-contact {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.cta-contact a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.cta-contact a:hover {
    color: white;
    transform: translateY(-3px);
}

.cta-contact i {
    font-size: 1.5rem;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
    background: var(--darker-bg);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

footer p {
    margin: 0;
    opacity: 0.8;
    font-size: 0.95rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-highlights {
        flex-direction: column;
        gap: 1.5rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .vision-card {
        padding: 2rem;
    }

    .ai-projects-grid {
        grid-template-columns: 1fr;
    }

    .python-skills-grid {
        grid-template-columns: 1fr;
    }

    .github-showcase {
        flex-direction: column;
        text-align: center;
    }

    .mediation-card {
        padding: 2rem;
    }

    .mediation-stats {
        gap: 1rem;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .cta-contact {
        flex-direction: column;
        gap: 1rem;
    }
}