
/* ===================================================================
   GLOBAL STYLES
=================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

header {
    background-color: var(--gray);
}

main {
    margin-bottom: 0;
    padding-bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

body {
    margin: 0;
    font-family: Arial, sans-serif; /* Ajustez selon vos préférences */
}

section {
    max-width: 90%;
}

/* ===================================================================
   CONTAINER & LAYOUT
=================================================================== */
.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 15px;
}

/* ===================================================================
   SECTIONS : ABOUT & ABOUT-2
=================================================================== */
.about,
.about-2,
.about-3 {
    padding: 25px 20px;
    text-align: center;
}

.about {
    width: 100%;
    padding: 6.5em 1em 2em 1em;
}

.about-2 {
    border-radius: 15px;
}

.about-2 .bio {
    border-radius: 15px;
}

.gris {
    color: #94addd
}

.rose {
    color:#F4B9D4;
}

.bio h1 {
    font-size: 50px;
    font-family: "houschka-pro", sans-serif;
    font-weight: 500;
    font-style: normal;
    line-height: 80px;
}

.bio {
    background-color: #f8f8f8;
    width: 100%;
    border-radius: 20px;
    padding: 20px;
    text-align: center;
}
.bio2 {
    height: 100%;
    align-items: center;
    justify-content: center;
    width: 50%;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 50px;

}
.about-2 {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    padding: 4em;
    position: relative;
}




/* ===================================================================
   CONTENT LAYOUT
=================================================================== */
.content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}


/* ===================================================================
   MEDIA QUERIES – RESPONSIVE MOBILE (max-width: 768px)
   (Ces règles sont celles d'origine pour adapter le layout sur mobile)
=================================================================== */
@media (max-width: 768px) {
    /* Empilement vertical des contenus */
    .content,
    .content-rose,
    .content-img {
        flex-direction: column;
        gap: 20px;
    }

    .content .bio {
        order: 1;
        max-width: 100%;
        text-align: center;
    }
    .content .profile-img {
        order: 2;
        width: 15em;
        height: 15em;
    }

    .bio h1 {
        font-size: 2.75em;
        line-height: 1.20em;
    }

    .bio {
        padding: 20px;
    }

    .bio2 {
        width: 95%;
    }

    .about {
        margin-top: 4em;
    }

    .about {
        padding: 20px 10px;
    }

    .about-2 {
        margin:10px 0;
        padding: 50px 0 0 0;
    }

    .about-2 .bio {
        margin:10px 0;
    }

    .bio h2 {
        font-size: 24px;
        margin-bottom: 10px;
    }
    .bio p {
        font-size: 16px;
        margin-bottom: 10px;
    }

    #MMI {
        padding: 0 1em;
    }

}

/* ===================================================================
   CARDS SECTION & CARDS
=================================================================== */
.cards-section {
    margin: 3em 4em 5em 4em;
    display: flex;
    max-width: 1300px;
    gap: 50px;
    align-content: center;
    justify-content: center;
}

.card {
    position: relative;
    background-color: rgba(239, 239, 239, 0.8);
    padding: 25px 25px 225px 25px;
    max-width: 30%;
    border-radius: 15px;
}

.card-inner {
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.card img {
    height: 200px;
    object-fit: cover;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    position: absolute;
    bottom:0;
    right: 0;
    left: 0;
    width: 100%;
}

.card h3 {
    margin-bottom: 10px;
    text-align: left;
    text-transform: none;
    font-family: "houschka-pro", sans-serif;
    font-weight: 500;
    font-style: normal;
    font-size: 18px;
}

.card p {
    font-size: 15px;
}

/* ===================================================================
   CONTENT FLEX & INFOS
=================================================================== */
.content-flex {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: center;
    align-items: center;
    gap: 10px;
}

.infos {
    display: flex;
    justify-content: space-between;
    align-content: space-between;
    gap: 50px;
    padding: 20px;
    min-width: 200px;
}

.info {
    margin: 10px 0;
    gap: 10px;
}

.bio {
    padding: 40px 4em;
    text-align: center;
}

.bio i {
    margin-bottom: 10px;
    font-size: 30px;
}

/* ===================================================================
   AJOUTS POUR UNE MEILLEURE RESPONSIVITÉ
   (Ces règles supplémentaires n'altèrent pas l'apparence sur desktop)
=================================================================== */
@media (max-width: 768px) {
    /* Pour la section "infos", empiler les éléments verticalement */
    .infos {
        align-items: center;
        flex-wrap: nowrap;
    }

    /* Pour la section des cartes, passage en colonne pour éviter le débordement */
    .cards-section {
        flex-direction: column;
        gap: 30px;
    }

    .card {
        max-width: 100%;
    }
}




.about-2 .bio {
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    margin: 0 3em;
}


.about-2,
.content,
.about-2 .bio {
    box-sizing: border-box;
    width: 100%;
}

/* Vue bureau (large écrans) */
@media (min-width: 1024px) {
    /* Par exemple, agencer about-2 en deux colonnes */
    .about-2 {
        display: flex;
        flex-direction: row;
    }
    .about-2 .bio {
        flex: 1;
    }

}

/* Vue tablette (écrans moyens) */
@media (min-width: 768px) and (max-width: 1023px) {
    .about-2 {
        display: flex;
        flex-direction: column;
    }
    .about-2 .bio {
        margin-bottom: 20px;
    }
    .content {
        padding: 20px;
    }
}

/* Vue mobile (petits écrans) */
@media (max-width: 767px) {
    .about-2,
    .content,
    .about-2 .bio {
        padding: 10px;
    }
    /* Passage en affichage bloc si nécessaire */
    .about-2 {
        display: block;
    }
}



/* Pour les petits écrans */
@media (max-width: 768px) {
    .about-2 {
        padding: 4em 2em 3em 2em; /* Réduire l'espace sur les petits écrans */
    }

    .about-2 .bio {
        margin: 0 2em; /* Réduire les marges sur les petits écrans */
        padding: 15px; /* Ajuster le padding pour ne pas trop encombrer l'écran */
        max-width: 95%; /* Laisser un peu plus d'espace pour la bio sur les petits écrans */
    }
}

/* Pour les très petits écrans (mobiles en portrait) */
@media (max-width: 480px) {
    .about-2 {
        padding: 3em 1.5em 2.5em 1.5em; /* Réduire davantage le padding */
    }

    .about-2 .bio {
        margin: 0 1em; /* Marges encore plus petites */
        padding: 10px; /* Moins de padding pour s'ajuster à l'écran */
        max-width: 100%; /* S'assurer que la bio prend toute la largeur possible */
    }
}


.ligne {
    padding: 20px;
    width: 100%;
    align-items: flex-start;
    justify-content: right;
    display: flex;
}

.right-side {
    text-align: left;
    width: 50%;
    display: flex;
    flex-direction: column;
}

.left-side {
    width: 50%;
    text-align: left;
    display: flex;
    flex-direction: column;
}


/* === CASES (projets, cv, à propos) === */
.cases {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
}

#case2, #case3 {
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    border-radius: 20px;
    padding: 1em 2em;
    background-repeat: no-repeat;
    background-size: cover;
    color: #333;
}

#case2 {
    background-color: #d1e0f4;;
    height: 100%;
}

#case3 {
    height: 100%;
    background-color: #f8dde8;
}


#case2 h3, #case3 h3 {
    text-align: left;
    margin-bottom: 10px;
    font-size: 30px;
    margin-top: 1em;
    line-height: 30px;
}

#case2 p, #case3 p {
    font-size: 14px;
    max-width: 80%;
}

/* === ICONES FLECHES === */
.cases i {
    position: absolute;
    right: 20px;
    bottom: 20px;
    background-color: rgba(255, 255, 255, 0.78);
    padding: 10px 15px;
    border-radius: 50px;
    font-size: 30px;
    transform: rotate(45deg);
}

h2 {
    font-size: 40px;
}

.white {
    background-color: #f8f8f8;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    margin-top: 4em;

}

.moi-container {
    padding: 2em 4em 4em 4em;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;

}

.moi {
    margin-top: 40px;
    gap: 70px;
    display: flex;
}

.moi h3 {
    margin-bottom: 15px;
}

.moi div p {
    font-size: 15px;
}

.moi div i {
    margin-bottom: 10px;
    font-size: 40px;
}

.moi div {
    width: 25%;
}
