/* =====================================================
   SECTION : COMPÉTENCES
===================================================== */
.competences {
    position: relative;
    height: 100%;
    padding: 60px 30px 40px;

    flex-direction: column;
    align-items: center;

    text-align: center;
    color: var(--text-soft);

    overflow: hidden;
}

/* =====================================================
   TITRE
===================================================== */
.competences h2 {
    position: relative;
    z-index: 2;

    margin-bottom: 45px;
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: 0.04em;

    color: var(--text-main);
}

/* =====================================================
   WRAPPER
===================================================== */
.competences-wrapper {
    position: relative;
    z-index: 2;

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;

    width: 100%;
    max-width: 1200px;
}

/* =====================================================
   CARTE COMPÉTENCE
===================================================== */
.competence-card {
    position: relative;
    padding: 26px 28px;

    display: flex;
    flex-direction: column;
    gap: 18px;

    background: linear-gradient(
        160deg,
        rgba(255, 255, 255, 0.92),
        rgba(255, 255, 255, 0.65)
    );

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, 0.45);

    text-align: left;

    box-shadow:
        0 14px 36px rgba(0, 0, 0, 0.18);

    transition:
        transform 0.4s cubic-bezier(.2,.8,.2,1),
        box-shadow 0.4s ease;
}

/* Hover */
.competence-card:hover {
    transform: translateY(-10px);

    box-shadow:
        0 32px 72px rgba(193, 18, 31, 0.35),
        inset 0 0 0 1px rgba(193, 18, 31, 0.35);
}

/* =====================================================
   TITRE CARTE
===================================================== */
.competence-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.04em;

    color: #111827;
}

/* =====================================================
   LISTES
===================================================== */
.competence-card ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.competence-card li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 10px;

    font-size: 0.98rem;
    font-weight: 500;
    line-height: 1.6;

    color: #374151;
}

/* Puce stylée */
.competence-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6em;

    width: 8px;
    height: 8px;
    border-radius: 50%;

    background: #c1121f;
    box-shadow: 0 0 0 6px rgba(193, 18, 31, 0.18);
}

/* =====================================================
   ACCENT VISUEL BAS DE CARTE
===================================================== */
.competence-card::after {
    content: "";
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);

    width: 40%;
    height: 3px;
    border-radius: 999px;

    background: linear-gradient(
        to right,
        transparent,
        #c1121f,
        transparent
    );

    opacity: 0.55;
}

/* =====================================================
   BACKGROUND SUBTIL
===================================================== */
.competences::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;

    background:
        radial-gradient(
            circle at center,
            rgba(193, 18, 31, 0.07) 0%,
            transparent 65%
        );

    animation: floatBG 30s linear infinite;
}

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 700px) {
    .competences {
        padding: 40px 20px;
    }

    .competences-wrapper {
        gap: 24px;
    }
}
