body {
    background-color: #FFFCF6;
}

/* FONTS */
@font-face {
    font-family: 'Barbra';
    src: url('../fonts/barbra-font/Barbra-Regular.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter/Inter-VariableFont_opsz\,wght.ttf') format('truetype');
    font-display: swap;
}

h1 {
    display: none;
}

/* TITRE */
.titre {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 20px;
}
.titre h2, 
.titre h3 {
    display: inline-block;
    vertical-align: middle;
    margin: 0;
}

.titre h2 {
    font-family: 'Inter', sans-serif;
    font-size: 3rem;
    color: #101211;
    margin-right: 10px;
}

.titre h3 {
    font-family: 'Barbra', sans-serif;
    font-size: 3rem;
    color: #49252F;
}

/* Compétences */
.section-competences {
    margin-left: 30px;
    margin-right: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.competences-category {
    background-color: #EBD3BB; 
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    opacity: 1;
    transform: none;
    transition: none;
}

.competences-category.visible {
    opacity: 1;
    transform: translateY(0);
}

.category-title {
    text-align: center;
    font-size: 1.6rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: #101211;
}

.grid-competences {
    display: grid;
    grid-template-columns: repeat(2, minmax(120px, 200px));
    justify-content: center;
    gap: 1rem 2rem;
}

.competence-card {
    background-color: #49252F;
    color: #FFFCF6;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.competence-card h4 {
    margin: 0;
    font-size: 1rem;
}

.competence-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

/* MEDIA QUERY */
/* Tablette */
@media screen and (max-width: 1024px) {
    .grid-competences {
        grid-template-columns: repeat(2, minmax(120px, 180px));
        gap: 1rem 1.5rem;
    }

    .competences-category {
        padding: 1.5rem;
    }

    .category-title {
        font-size: 1.5rem;
    }

    .competence-card h4 {
        font-size: 0.95rem;
    }
}

/* Mobile */
@media screen and (max-width: 768px) {
    .grid-competences {
        grid-template-columns: 1fr;
        gap: 1rem 0;
    }

    .competences-category {
        padding: 1.2rem;
    }

    .category-title {
        font-size: 1.4rem;
    }

    .competence-card {
        font-size: 0.9rem;
        padding: 0.7rem 1rem;
    }

    .competence-card h4 {
        font-size: 0.9rem;
    }
}

/* Petit mobile */
@media screen and (max-width: 480px) {
    .section-competences {
        padding: 0 15px;
    }

    .competences-category {
        padding: 1rem;
    }

    .category-title {
        font-size: 1.2rem;
    }

    .competence-card {
        padding: 0.6rem 0.8rem;
    }

    .competence-card h4 {
        font-size: 0.85rem;
    }
}