/* ========================================
   SECTION COMPÉTENCES - STYLE ÉDITORIAL
   ======================================== */

/* Section principale */
#competences {
    position: relative;
    padding: 8rem 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(245, 245, 220, 0.008) 0%, transparent 35%),
        radial-gradient(circle at 80% 70%, rgba(212, 184, 150, 0.005) 0%, transparent 40%);
    overflow: hidden;
}

/* Titre principal */
.section-title {
    font-family: 'Gloock', serif;
    font-size: clamp(4rem, 8vw, 8rem);
    font-weight: 800;
    color: transparent;
    background: linear-gradient(135deg, #f5f5dc 0%, #e8e5e0 50%, #d4b896 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    text-align: center;
    margin-bottom: 5rem;
    position: relative;
    line-height: 0.9;
}

/* Filet décoratif sous le titre */
.section-title::after {
    content: '';
    position: absolute;
    bottom: -1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--color-accent-primary) 50%, transparent 100%);
}

/* Container principal */
.skills-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    align-items: start;
}

/* Panneau de compétences */
.skill-group {
    position: relative;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.98) 0%, rgba(16, 16, 16, 0.99) 100%);
    border: 2px solid rgba(245, 245, 220, 0.12);
    border-radius: var(--radius-xl);
    padding: 3rem 2.5rem;
    min-height: 500px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all var(--transition-slow);
    overflow: hidden;
    opacity: 0;
    transform: translateY(50px);
}

/* Numéros de filigrane */
.skill-group:nth-child(1)::before {
    content: '01';
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-family: 'Gloock', serif;
    font-size: 6rem;
    font-weight: 800;
    color: rgba(245, 245, 220, 0.04);
    z-index: 1;
    pointer-events: none;
    transform: rotate(-5deg);
}

.skill-group:nth-child(2)::before {
    content: '02';
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-family: 'Gloock', serif;
    font-size: 6rem;
    font-weight: 800;
    color: rgba(245, 245, 220, 0.04);
    z-index: 1;
    pointer-events: none;
    transform: rotate(3deg);
}

.skill-group:nth-child(3)::before {
    content: '03';
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-family: 'Gloock', serif;
    font-size: 6rem;
    font-weight: 800;
    color: rgba(245, 245, 220, 0.04);
    z-index: 1;
    pointer-events: none;
    transform: rotate(-3deg);
}

/* Animations d'entrée */
.skill-group:nth-child(1) { animation: panelAppear 0.8s ease-out 0.3s forwards; }
.skill-group:nth-child(2) { animation: panelAppear 0.8s ease-out 0.6s forwards; }
.skill-group:nth-child(3) { animation: panelAppear 0.8s ease-out 0.9s forwards; }

@keyframes panelAppear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Titre de chaque panneau */
.skill-group h3 {
    font-family: 'Gloock', serif;
    font-size: clamp(1.8rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--color-cream);
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 2;
    line-height: 1.1;
}

/* Liste des compétences */
.skill-list {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Item de compétence */
.skill-item {
    position: relative;
    padding-left: 1.5rem;
    border-left: 1px solid rgba(212, 184, 150, 0.2);
    padding-bottom: 1.5rem;
}

.skill-item:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        rgba(212, 184, 150, 0.3) 0%, 
        rgba(212, 184, 150, 0.1) 50%, 
        transparent 100%);
}

/* Nom de la compétence */
.skill-name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-cream);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 0.8rem;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

/* Bullet personnalisé */
.skill-bullet {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d4b896 0%, #f5f5dc 100%);
    box-shadow: 0 0 8px rgba(212, 184, 150, 0.4);
    flex-shrink: 0;
    margin-left: -1.8rem;
}

/* Détails des compétences */
.skill-details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 0.5rem;
}

.skill-detail {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--color-grey-warm);
    background: rgba(245, 245, 220, 0.08);
    border: 1px solid rgba(245, 245, 220, 0.15);
    border-radius: 20px;
    padding: 0.4rem 0.9rem;
    transition: all var(--transition-base);
    font-weight: 400;
    line-height: 1.2;
}

.skill-detail:hover {
    background: rgba(212, 184, 150, 0.15);
    border-color: rgba(212, 184, 150, 0.3);
    color: var(--color-cream);
    transform: translateY(-1px);
}

/* Effets hover sur les panneaux */
.skill-group:hover {
    transform: translateY(-8px);
    border-color: rgba(245, 245, 220, 0.2);
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.4),
        0 10px 30px rgba(212, 184, 150, 0.1);
}

.skill-group:hover::before {
    color: rgba(245, 245, 220, 0.08);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1024px) {
    .skills-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
        max-width: 900px;
    }
    
    .skill-group:nth-child(3) {
        grid-column: 1 / -1;
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    #competences {
        padding: 6rem 0;
    }
    
    .section-title {
        font-size: clamp(2.5rem, 10vw, 4rem);
        margin-bottom: 3rem;
    }
    
    .section-title::after {
        width: 250px;
    }
    
    .skills-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 0 1.5rem;
    }
    
    .skill-group {
        padding: 2.5rem 2rem;
        min-height: auto;
    }
    
    .skill-group:nth-child(3) {
        grid-column: auto;
        max-width: none;
    }
    
    .skill-group::before {
        font-size: 4rem;
        top: 1rem;
        right: 1.5rem;
    }
    
    .skill-group h3 {
        font-size: clamp(1.4rem, 4vw, 1.8rem);
        margin-bottom: 2rem;
    }
    
    .skill-list {
        gap: 1.5rem;
    }
    
    .skill-item {
        padding-bottom: 1.2rem;
    }
    
    .skill-name {
        font-size: 1rem;
    }
    
    .skill-detail {
        font-size: 0.8rem;
        padding: 0.3rem 0.7rem;
    }
    
    /* Désactiver les animations hover sur mobile */
    .skill-group:hover {
        transform: none;
        box-shadow: none;
    }
    
    .skill-detail:hover {
        transform: none;
    }
}

@media (max-width: 480px) {
    .skills-container {
        padding: 0 1rem;
    }
    
    .skill-group {
        padding: 2rem 1.5rem;
    }
    
    .section-title {
        margin-bottom: 2.5rem;
    }
    
    .skill-details {
        gap: 0.6rem;
    }
    
    .skill-detail {
        font-size: 0.75rem;
        padding: 0.25rem 0.6rem;
    }
}

/* ========================================
   ACCESSIBILITÉ
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    .skill-group {
        animation: none;
        opacity: 1;
        transform: none;
    }
    
    .skill-group:hover {
        transform: none;
    }
    
    .skill-detail:hover {
        transform: none;
    }
}

.skill-group:focus-within {
    outline: 2px solid rgba(212, 184, 150, 0.5);
    outline-offset: 3px;
}

/* Amélioration du contraste pour l'accessibilité */
@media (prefers-contrast: high) {
    .skill-detail {
        background: rgba(245, 245, 220, 0.15);
        border-color: rgba(245, 245, 220, 0.3);
    }
    
    .skill-group {
        border-color: rgba(245, 245, 220, 0.2);
    }
}