/* =========================
    Réinitialisation CSS minimale
   ========================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    color: #2f3a4b;
}

a {
    color: inherit;
    text-decoration: none;
}

body {
    margin: 0;
    font-family: system-ui, sans-serif;
    line-height: 1.5;
}

h1,
h2,
h3,
p {
    margin: 0;
}

/* =========================
    Styles personnalisés
   ========================= */

.header {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding-top: 1rem;
    padding-bottom: 0.5rem;
    height: 10vh;
    gap: 18rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-img {
    height: 10rem;
}

.nav-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.name {
    font-size: 2rem;
}

/* =========================
    Hero Section
   ========================= */

.hero {
    height: 90vh;
    background: linear-gradient(135deg,
            #f8fafc 0%,
            #e0f2fe 100%);
    color: #2f3a4b;
}

.hero-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
}

.link-accueil {
    color: #045cb4;
    font-weight: normal;
}

.link-contact {
    background-color: #046bd2;
    border-radius: 100px;
    color: white;
    padding: 0.5rem 0.5rem;
}

/******************* Hero Buttons *******************/
.hero-buttons {
    display: flex;
    text-align: center;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    color: white;
    font-weight: normal;
    padding-top: 1.5rem;
}

.btn-projets {
    background-color: #046bd2;
    border-radius: 100px;
    padding: 0.5rem 1rem;

}

.btn-contact {
    background-color: #046bd2;
    border-radius: 100px;
    padding: 0.5rem 1rem;
}

/******************* Hero Image *******************/
.hero-img-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-img {
    width: 800px;
    height: auto;
}

/* =========================
    About me Section
   ========================= */

#about {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
    padding: 2rem;
    border-radius: 20px;
    background: linear-gradient(135deg,
            #f8fafc 0%,
            #e0f2fe 100%);
    max-width: 1000px;
    box-shadow: 0 16px 20px #dceffc;
}

.about-content {
    display: flex;
    flex-direction: row;
    text-align: justify;
    align-items: center;
    justify-content: space-between;
    margin: 5rem auto;
    padding: 1rem;
    width: 100%;
    gap: 2rem;


}

.title-sections {
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
}

.about-img {
    width: 250px;
    height: auto;
    border-radius: 1rem;
    border-color: #e0f2fe;
    border-width: 4px;
    border-style: solid;
}

.about-text {
    display: flex;
    align-items: center;
    flex-direction: column;
    max-width: 500px;
    font-size: 1.2rem;
}

/* =========================
    Projects Section
   ========================= */

#projects {
    background: linear-gradient(135deg,
            #f8fafc 0%,
            #e0f2fe 100%);
    padding: 2rem;
}

.projects-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin-top: 2rem;
}

.project-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 600px;
    padding: 2rem;
    text-align: center;
}

.project-image {
    width: 100%;
    border-radius: 1rem;
    margin-bottom: 1rem;
}

.project-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.project-description {
    font-size: 1rem;
}

/* =========================
    Contact Section
   ========================= */

#contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    background: linear-gradient(135deg,
            #f8fafc 0%,
            #e0f2fe 100%);
}

.contact-card {
    display: flex;
    flex-direction: column;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 600px;
    padding: 2rem;
    text-align: center;
}

.contact-card form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.contact-intro {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

#name {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#email {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#message {
    width: 100%;
    height: 150px;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    resize: none;
}

/* =========================
    Mobile Responsiveness
   ========================= */

@media screen and (max-width: 768px) {

    .header {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1rem;
        height: auto;
        padding: 1rem;
    }

    .logo-img {
        height: 8rem;
    }

    .name {
        font-size: 1.5rem;
        text-align: center;
    }

    .nav-header {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .hero-header {
        font-size: 1.2rem;
        padding: 0 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-img {
        width: 100%;
        max-width: 400px;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .about-img {
        width: 200px;
    }

    .project-card {
        width: 100%;
        padding: 1.5rem;
    }
}


/* =========================
    Ipad Section
   ========================= */

@media screen and (min-width: 769px) and (max-width: 1024px) {

    .header {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        height: auto;
        padding: 1rem;
    }

    .logo-img {
        height: 9rem;
    }

    .nav-header {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
    }

    .hero-img {
        width: 600px;
    }

    .project-card {
        width: 90%;
    }
}
