.homepage {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-image: url(../assets/img/background.avif);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    padding: 20px;
}

.homepage-presentation {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
}

.homepage-presentation p {
    width: 100%;
    max-width: 900px;
    text-align: center;
    font-size: clamp(1rem, 3vw, 1.3rem);
    margin: 20px 0;
}

.center-button {
    margin: 30px auto 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: fit-content;
    min-width: 200px;
    height: 55px;
    background-color: #980000;
    padding: 0 20px;
    border: none;
    transition: all 0.3s ease;
}

.center-button:hover {
    transform: scale(1.05);
}

.center-button a {
    text-decoration: none;
    color: white;
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: bold;
    padding: 10px 15px;
    display: inline-block;
}

.center-button::before,
.center-button::after {
    content: "";
    position: absolute;
    top: 0;
    width: 0;
    height: 0;
    border-top: 27.5px solid transparent;
    border-bottom: 27.5px solid transparent;
}

.center-button::before {
    left: 0;
    transform: translateX(-100%);
    border-right: 20.5px solid #980000;
}

.center-button::after {
    right: 0;
    transform: translateX(100%);
    border-left: 20.5px solid #980000;
}

.presentation,
.presentation-bottom,
.cv {
    background-color: #f7f7f7;
    padding: clamp(50px, 8vw, 100px) 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 100%;
}

.presentation h2,
.cv h2 {
    font-size: clamp(2rem, 6vw, 40px);
    color: #980000;
    text-align: center;
}

.presentation p,
.cv p {
    width: 100%;
    max-width: 700px;
    font-size: clamp(1rem, 3vw, 20px);
    margin: 15px 0;
    color: #666666;
    text-align: center;
    line-height: 1.6;
}

#presentation-paragraphe {
    text-align: left;
}

.competences {
    background-color: #ffffff;
    width: 90%;
    max-width: 190mm;
    margin: clamp(50px, 8vw, 100px) auto;
    padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 3vw, 2rem);
    border-radius: 6px;
    box-shadow: 0 2px 8px rgb(0 0 0 / 0.1);
    transition: all 0.3s ease-in-out;
}

.competences:hover {
    box-shadow: 0 6px 10px rgb(0 0 0 / 0.3);
    transform: translateY(-5px);
}

.competences h2 {
    font-size: clamp(2.5rem, 10vw, 90px);
    color: #980000;
    margin: 0 auto 0 auto;
    padding: 0;
    text-align: center;
}

.competences h3 {
    font-size: clamp(1.5rem, 4vw, 30px);
    color: #980000;
    padding: 15px 0;
    text-align: center;
}

.competences p {
    font-size: clamp(1rem, 3vw, 20px);
    color: #000000;
    margin: 15px 0;
    text-align: center;
}

.competences h4 {
    margin: 10px 0;
    font-size: clamp(1rem, 3vw, 20px);
}

.competences img {
    margin: 10px 0;
    width: auto;
    height: clamp(60px, 10vw, 100px);
    transition: transform 0.3s ease;
}

.competences img:hover {
    transform: scale(1.1);
}

.front-end,
.back-end,
.Logiciels {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 30px 0;
}

.HTML,
.CSS,
.JS,
.PHP,
.SQL,
.Lua,
.C,
.Figma,
.VisualStudioCode,
.VisualStudioCommunity,
.Laragon,
.WordPress {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 15px;
    min-width: 120px;
    padding: 15px;
    transition: all 0.3s ease;
}

.HTML:hover,
.CSS:hover,
.JS:hover,
.PHP:hover,
.SQL:hover,
.Lua:hover,
.C:hover,
.Figma:hover,
.VisualStudioCode:hover,
.VisualStudioCommunity:hover,
.Laragon:hover,
.WordPress:hover {
    transform: translateY(-5px);
}

.competences-titre,
.competences-titre2 {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 80%;
    margin: 0 auto;
    padding-bottom: 20px;
}

.competences-titre {
    border-bottom: 2px solid #980000;
}

.competences-titre2 {
    border-top: 2px solid #980000;
    margin: 30px auto 0;
}

.cv a {
    display: flex;
    justify-content: center;
    align-items: center;
}

.cv-image {
    margin: 30px;
    max-width: 50%;
    width: 100%;
    height: auto;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 8px rgb(0 0 0 / 0.1);
    border-radius: 5px;
}

.cv-image:hover {
    box-shadow: 0 6px 10px rgb(0 0 0 / 0.3);
    transform: scale(1.02);
}

@media screen and (max-width: 768px) {
    .homepage-presentation p {
        max-width: 90%;
    }

    .center-button {
        height: 50px;
    }

    .center-button::before,
    .center-button::after {
        border-top: 25px solid transparent;
        border-bottom: 25px solid transparent;
    }

    .cv p {
        max-width: 90%;
    }

    .HTML,
    .CSS,
    .JS,
    .PHP,
    .SQL,
    .Lua,
    .C,
    .Figma,
    .VisualStudioCode,
    .Laragon,
    .WordPress {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin: 0;
        min-width: 120px;
        padding: 15px;
        transition: all 0.3s ease;
    }
}

@media screen and (max-width: 480px) {
    .center-button {
        min-width: 180px;
        height: 45px;
        padding: 0 15px;
    }

    .center-button::before,
    .center-button::after {
        border-top: 22.5px solid transparent;
        border-bottom: 22.5px solid transparent;
    }

    .competences h2 {
        font-size: 2.2rem;
    }

    .cv img {
        max-width: 100%;
        height: auto;
    }
}