/* ========================================
   SKILLS - STYLE ÉDITORIAL & LOGOS
   ======================================== */

.container {
    padding-top: 8rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 3rem;
    padding-left: 2rem;
    border-left: 2px solid var(--accent);
}

/* ========================================
   1. EXPERTISE (Liste avec Sous-domaines)
   ======================================== */
.skills-section {
    margin-bottom: 8rem;
}

.expertise-list {
    list-style: none;
    padding: 0;
}

.expertise-item {
    border-top: 1px solid var(--border-color);
    padding: 3rem 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    transition: all 0.4s ease;
    position: relative;
}

.expertise-item:last-child {
    border-bottom: 1px solid var(--border-color);
}

.exp-content {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

/* Numéro décoratif (01, 02...) */
.exp-number {
    font-family: 'Space Mono', monospace;
    font-size: 1.2rem;
    color: var(--text-muted);
    opacity: 0.5;
    padding-top: 0.5rem;
}

.exp-text {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Gros Titre du domaine */
.exp-name {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-main);
    text-transform: uppercase;
    line-height: 1;
    margin: 0;
    transition: color 0.3s ease;
}

/* Liste des sous-domaines */
.exp-sublist {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.5rem;
}

.exp-sublist span {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.4rem 1rem;
    border-radius: 50px; /* Forme de pilule */
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.exp-arrow {
    font-size: 2rem;
    color: var(--accent);
    opacity: 0.5;
    transition: all 0.4s ease;
    padding-right: 1rem;
}

/* --- INTERACTION HOVER --- */
.expertise-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.expertise-item:hover .exp-name {
    color: var(--accent);
}

.expertise-item:hover .exp-sublist span {
    border-color: var(--accent);
    color: var(--text-main);
}

.expertise-item:hover .exp-arrow {
    opacity: 1;
    transform: rotate(-45deg);
    color: var(--accent);
}

/* ========================================
   2. TOOLKIT (Marquee Logos)
   ======================================== */
.tech-marquee-section {
    margin-bottom: 8rem;
    overflow: hidden;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 4rem 0;
    background: rgba(0, 0, 0, 0.2);
    position: relative;
}

/* Dégradé sur les bords pour l'effet de fondu */
.tech-marquee-section::before,
.tech-marquee-section::after {
    content: "";
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.tech-marquee-section::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-color), transparent);
}

.tech-marquee-section::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-color), transparent);
}

.marquee-container {
    width: 100%;
    display: flex;
    white-space: nowrap;
}

.marquee-content {
    display: flex;
    align-items: center;
    gap: 6rem; /* Espace entre les logos */
    animation: scrollLogos 30s linear infinite;
    padding-left: 6rem;
}

/* Style des Icônes Devicon */
.marquee-content i {
    font-size: 5rem; /* Taille des logos */
    color: var(--text-muted); /* Gris par défaut */
    transition: all 0.3s ease;
    filter: grayscale(100%); /* Noir et blanc par défaut */
    opacity: 0.7;
}

/* Hover sur le bandeau : les logos s'allument */
.marquee-container:hover .marquee-content i {
    filter: grayscale(0%);
    opacity: 1;
    color: inherit; /* Récupère la couleur originale de l'icône si dispo */
    transform: scale(1.1);
}

/* Animation infinie */
@keyframes scrollLogos {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ========================================
   3. EXPÉRIENCE
   ======================================== */
.experience-section {
    margin-bottom: 4rem;
}

.timeline-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    border-top: 1px solid var(--border-color);
    padding: 2.5rem 0;
    transition: background 0.3s ease;
}

.timeline-row:last-child {
    border-bottom: 1px solid var(--border-color);
}

.timeline-date {
    font-family: 'Space Mono', monospace;
    font-size: 1.1rem;
    color: var(--accent);
    opacity: 0.8;
}

.timeline-info h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.timeline-info p {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--text-muted);
}

.timeline-row:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .expertise-item {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .exp-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .exp-name {
        font-size: 2.2rem;
    }
    
    .exp-arrow {
        align-self: flex-end;
    }

    .marquee-content {
        gap: 4rem;
        padding-left: 4rem;
    }
    
    .marquee-content i {
        font-size: 3.5rem;
    }

    .timeline-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}