/* Global Styles */
body {
    background-color: #f8f9fa;
    font-family: 'Roboto', sans-serif;
}

/* Couleurs principales */
:root {
    --main-red: #d9534f; /* Rouge principal */
    --main-bg: #f8f9fa;
    --text-color: #333;
    --muted-text-color: #666;
}

/* Header Styling */
.navbar-brand {
    font-weight: bold;
    color: var(--main-red);
}

.navbar-nav .nav-link {
    font-size: 1rem;
    margin: 0 10px;
}

.navbar-nav .nav-link:hover {
    color: var(--main-red);
}

/* Section Presentation */
.presentation {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.presentation img {
    border: 5px solid var(--main-red);
}

.presentation h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--main-red); /* Texte en rouge */
}

.presentation p {
    font-size: 1.2rem;
    color: var(--muted-text-color);
}

/* Section Compétences */
.competences h2,
.projets h2,
.contact h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--main-red); /* Titres en rouge */
}

.competences i,
.competences img {
    font-size: 3rem;
    margin-bottom: 10px;
}

.competences p {
    font-size: 1.1rem;
    color: var(--text-color);
}

/* Section Projets */
.card-body h5 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
}

/* Section Contact */
.contact {
    max-width: 600px;
    margin: 0 auto;
}

.contact ul {
    padding: 0;
    list-style-type: none;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.contact a {
    color: #d9534f;
    text-decoration: none;
}

.contact a:hover {
    text-decoration: underline;
}

.social-media a {
    font-size: 1.2rem;
    color: #d9534f;
    margin: 0 10px;
}

.social-media a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: #f1f1f1;
    color: #555;
    padding: 15px;
}

/* Media Queries */

/* For larger screens */
@media (min-width: 992px) {
    .presentation {
        flex-direction: row;
        justify-content: center;
        align-items: center;
    }

    .presentation img {
        width: 200px;
        height: 200px;
    }

    .presentation h2 {
        font-size: 3.5rem;
    }

    .presentation p {
        font-size: 1.5rem;
    }

    .competences i,
    .competences img {
        font-size: 4rem;
    }

    .competences p {
        font-size: 1.3rem;
    }

    .projets .card-body h5 {
        font-size: 1.5rem;
    }

    .contact form {
        max-width: 600px;
    }
}

/* For medium screens */
@media (min-width: 768px) and (max-width: 991px) {
    .presentation img {
        width: 180px;
        height: 180px;
    }

    .presentation h2 {
        font-size: 3rem;
    }

    .presentation p {
        font-size: 1.3rem;
    }

    .competences i,
    .competences img {
        font-size: 3.5rem;
    }

    .competences p {
        font-size: 1.2rem;
    }

    .projets .card-body h5 {
        font-size: 1.3rem;
    }

    .contact form {
        max-width: 550px;
    }
}

/* For small screens (mobile) */
@media (max-width: 767px) {
    .navbar-nav {
        text-align: center;
    }

    .navbar-nav .nav-link {
        padding: 10px 0;
    }

    .presentation img {
        width: 150px;
        height: 150px;
        margin-bottom: 20px;
    }

    .presentation h2 {
        font-size: 2rem;
    }

    .presentation p {
        font-size: 1rem;
    }

    .competences i,
    .competences img {
        font-size: 2.5rem;
    }

    .competences p {
        font-size: 1rem;
    }

    .projets .card-body h5 {
        font-size: 1.1rem;
    }

    .contact form {
        width: 90%;
    }

    footer {
        padding: 10px;
    }
}
