*,
*::after,
*::before {
    box-sizing: border-box;
}

*{
    -webkit-font-smoothing: antialiased;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
}

@font-face {
    font-family: 'FuturaNowHeadline';
    src: url('/font/FuturaNowHeadline.ttf') format('truetype');
    font-weight: 400; /* Correspond à Medium */
    font-style: normal;
}

@font-face {
    font-family: 'FuturaNowHeadline';
    src: url('/font/FuturaNowHeadlineMedium.ttf') format('truetype');
    font-weight: 500; /* Correspond à Medium */
    font-style: normal;
}

@font-face {
    font-family: 'FuturaNowHeadline';
    src: url('/font/FuturaNowHeadlineBold.ttf') format('truetype');
    font-weight: bold; /* Généralement équivalent à 700 mais spécifié comme "bold" ici */
    font-style: normal;
}

@font-face {
    font-family: 'FuturaNowHeadline';
    src: url('/font/FuturaNowHeadlineExtraBold.ttf') format('truetype');
    font-weight: 800; /* Correspond à ExtraBold */
    font-style: normal;
}

@font-face {
    font-family: 'FuturaNowHeadline';
    src: url('/font/FuturaNowHeadlineBlack.ttf') format('truetype');
    font-weight: 900; /* Correspond à Black */
    font-style: normal;
}

@font-face {
    font-family: 'FuturaNowHeadline';
    src: url('/font/FuturaNowHeadlineLight.ttf') format('truetype');
    font-weight: 350; /* Supposons que "Thin" correspond à 350, ce qui est atypique */
    font-style: normal;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    background-color: #fcf1c9;
    /* background-image: url(medias/grain.png); */
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    background-attachment: fixed;
    height: 100vh;
}

@media (max-width: 1000px) {
    body {
        background-attachment: scroll;
        background-repeat: repeat;
    }
}

.accueil {
    min-height: 100vh;
    display: flex;
    position: relative;
    flex-direction: column; 
    align-items: center;    
    justify-content: center;
    padding-bottom: 120px;
}

.navbar {
    text-align: center;
    padding-top: 40px;
    display: flex;
    justify-content: center;
    width: 100%; /* Assure que la navbar prend toute la largeur */
    position: absolute;
    z-index: 10;
}

.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex; /* Déjà présent, juste pour rappel */
    gap: 30px; /* Augmentez le gap si nécessaire */
    justify-content: space-around; /* Répartit l'espace autour de chaque lien */
    max-width: 1000px;
}

.nav-links a {
    text-decoration: none;
    font-size: 20px;
    color: #EC704A;
    font-weight: bold;
    letter-spacing: 1px;
    font-family: 'FuturaNowHeadline', sans-serif;
    font-weight: 350;
    font-size: 2em; /* Vous aviez deux fois la propriété font-size, gardez celle-ci */
}

.nav-links a:hover,
.nav-links a:active,
.nav-links a.active {
    text-decoration: underline;
    text-decoration-thickness: 2px;
}

.menu-btn {
    display: none; /* Caché par défaut */
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 20;
    background: none;
    border: none;
    cursor: pointer;
    height: 25px;
    width: 30px;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    padding: 0;
}

.menu-bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #EC704A;
    transition: all 0.3s ease;
}

/* Styles for when the menu is active */
.menu-active .top-bar {
    transform: rotate(45deg) translate(5px, 5px);
    background-color: #f7f6db; /* Change color to white */
}

.menu-active .middle-bar {
    opacity: 0;
}

.menu-active .bottom-bar {
    transform: rotate(-45deg) translate(8px, -6px);
    background-color: #f7f6db; /* Change color to white */
}

@media (max-width: 700px) {

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background-color: #EC704A;
        transition: transform 0.3s ease-in-out;
        transform: translateY(-100%); /* Initialement caché */
        width: 100%;
        height: 100vh;
        z-index: 15;
    }
    
    .nav-links.menu-open {
        transform: translateY(0); /* Montrer le menu */
    }
    

    .menu-btn {
        display: flex; /* Afficher le bouton menu */
        position: absolute;
        top: 20px;
        right: 20px;
        z-index: 20;
    }

    .nav-links a {
        font-size: 2em;
        color: #f7f6db; /* Couleur des liens dans le menu déroulant */
        padding: 10px;
    }
}

h1 {
    text-align: center;
    font-family: 'FuturaNowHeadline', sans-serif;
    font-weight: 900;
    padding: 0;
    padding-top: 35px;
    line-height: 50px;
    color: #EC704A;
    margin-top: 140px;
}

.h1-span1 {
    font-size: 4.5em;
}

.h1-span2 {
    font-size: 2.08em;
}

h2 {
    margin: 0;
    margin-top: 30px;
    font-family: 'FuturaNowHeadline', sans-serif;
    color: #EC704A;
    font-weight: 350;
    font-size: 3.8em;
}

.circle {
    position: absolute; /* Relatif à l'élément parent positionné */
    width: 190px;
    height: 190px;
    border-radius: 50%;
    transition: transform 0.5s ease;
    opacity: 0.3;
    top: 50%;
    left: 50%;
}

#circle1 {
    background-color: #EC704A; 
    animation: floatAnimation1 8s infinite ease-in-out;
}

#circle2 {
    background-color: #EC704A; 
    animation: floatAnimation2 10s infinite ease-in-out;
}

@media (max-width: 650px) {
    .h1-span1 {
        font-size: 3em;
    }

    .h1-span2 {
        font-size: 1.4em;
    }

    h1 {
        line-height: 38px;
    }

    h2 {
        font-size: 2.2em;
    }

    .circle {
        width: 140px;
        height: 140px;
    }
}

/* #circle3 {
    background-color: #EC704A; 
    animation: floatAnimation3 8s infinite ease-in-out;
    z-index: -5;
}

#circle4 {
    background-color: #EC704A; 
    animation: floatAnimation4 10s infinite ease-in-out;
    z-index: -5;
} */

@keyframes floatAnimation1 {
    0%, 100% {
        transform: translate(-140%, -65%);
    }
    25% {
        transform: translate(calc(-140% - 10px), calc(-65% + 12px));
    }
    50% {
        transform: translate(calc(-140% + 12px), calc(-65% - 10px));
    }
    75% {
        transform: translate(calc(-140% - 10px), calc(-65% + 10px));
    }
}

@keyframes floatAnimation2 {
    0%, 100% {
        transform: translate(35%, -110%);
    }
    25% {
        transform: translate(calc(35% + 12px), calc(-110% - 10px));
    }
    50% {
        transform: translate(calc(35% - 10px), calc(-110% + 10px));
    }
    75% {
        transform: translate(calc(35% + 10px), calc(-110% - 12px));
    }
}

/* @keyframes floatAnimation3 {
    0%, 100% {
        transform: translate(-355%, -160%);
    }
    25% {
        transform: translate(calc(-355% - 10px), calc(-170% + 8px));
    }
    50% {
        transform: translate(calc(-355% + 8px), calc(-170% - 10px));
    }
    75% {
        transform: translate(calc(-355% - 10px), calc(-170% + 8px));
    }
}

@keyframes floatAnimation4 {
    0%, 100% {
        transform: translate(-185%, 60%);
    }
    25% {
        transform: translate(calc(-185% - 10px), calc(60% + 8px));
    }
    50% {
        transform: translate(calc(-185% + 8px), calc(60% - 8px));
    }
    75% {
        transform: translate(calc(-185% - 10px), calc(60% + 10px));
    }
} */

.text-profile {
    margin-bottom: 0px;
    margin-top: 0px;
}

.profile-image {
    border: solid #503D42 1px;
    border-radius: 10px;
    padding: 14px;
    height: 450px;
    margin-right: 50px;
}

.profile-container {
    display: flex; 
    align-items: center;     /* Centre les éléments horizontalement */
    justify-content: center;
    padding-bottom: 130px;
    padding-top: 180px;
}

.profile-card {
    display: flex;
    flex-direction: row;
    max-width: 1250px;
    margin-left: 50px;
    margin-right: 40px;
    align-items: center;
}

h3 {
    font-family: 'FuturaNowHeadline', sans-serif;
    font-size: 4em;
    font-weight: 800;
    margin-top: 5px;
    margin-bottom: 0px;
    color: #EC704A;
}

p {
    color: #503D42;
    font-size: 1.3em;
    font-family: 'FuturaNowHeadline', sans-serif;
}

@media (max-width: 1240px) {
    .profile-image {
        height: 400px;
    }

    .text-profile {
        font-size: 1.2em;
    }

    h3 {
        font-size: 3em;
    }
}

@media (max-width: 860px) {
    h3 {
        display: none; /* Cache le titre "Mila" */
    }

    .profile-card {
        flex-direction: column; /* Change la direction de flex pour empiler verticalement */
        align-items: center; /* Centre les éléments horizontalement */
        margin: 0 50px; /* Ajoute une marge pour ne pas coller aux bords */
    }

    .profile-image {
        margin-right: 0; /* Enlève la marge à droite de l'image */
        margin-bottom: 40px; /* Ajoute de l'espace entre l'image et le texte suivant */
        margin-top: 90px;
    }

    .text-content {
        max-width: 100%; /* Utilise la pleine largeur disponible */
    }

    .profile-container {
        padding-top: 10px;
        padding-bottom: 80px;
    }
}

@media (max-width: 700px) {
    .profile-image {
        height: 320px;
        margin-top: 60px;
    }

    .text-profile {
        font-size: 1em;
    }

    .profile-card {
        margin-left: 40px;
        margin-right: 30px;
    }
}


.download-link {
    color: #EC704A; /* Couleur orange du texte */
    text-decoration: none; /* Supprime le soulignement par défaut des liens */
    font-family: 'FuturaNowHeadline', sans-serif; /* Assurez-vous d'utiliser la bonne police */
    font-size: 1.3em; /* Ajustez la taille de la police selon vos besoins */
    cursor: pointer; /* Change le curseur pour indiquer qu'il s'agit d'un élément cliquable */
    font-weight: 500;
}

.download-link:hover {
    text-decoration: underline;
}

.project-info {
    border-bottom: solid #EC704A 2px;
    display: flex;
    padding-left: 20px;
    padding-right: 20px;
    transition: 0.3s;
}

.project-card {
    text-decoration: none;
}

.project-info:hover {
    background-color: rgba(236, 112, 74, 0.3);
    cursor: pointer;
}

.name-project {
    font-family: 'FuturaNowHeadline', sans-serif;
    font-size: 3.8em;
    font-weight: 800;
    color: #EC704A;
    margin: 0;
    margin-top: 50px;
    margin-bottom: 20px;
}

.id {
    margin-right: 20px;
    margin-bottom: auto;
    color: #503D42;
}

.skills {
    margin-left: auto;
    margin-top: auto;
    color: #503D42;
}

.title {
    display: flex;
    justify-content: center;
    margin: 0;
    padding-top: 120px;
}

.projects-group {
    padding-top: 120px;
    margin-bottom: 40px;
    padding-left: 30px;
    padding-right: 30px;
    max-width: 1800px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 700px) {

    .projects-group {
        padding-top: 70px;
    }
}

.container-skills {
    margin-left: auto;
    margin-right: auto;
    max-width: 1800px;
    height: fit-content;
 }

 .skills-about {
    display: flex;
    flex-direction: row;
    border-top: solid #503D42 1px;
    border-bottom: solid #503D42 1px;
    margin-left: 20px;
    margin-right: 20px;
    margin-bottom: 120px;
    height: 100%;
}

@media (max-width: 1100px) {
    .name-project {
        font-size: 3.2em;
        margin-top: 40px;
        margin-bottom: 15px;
    }

    .id {
        font-size: 1.2em;
    }
    
    .skills {
        font-size: 1.2em;
    }
}

@media (max-width: 900px) {

    .projects-group {
        padding-left: 20px;
        padding-right: 20px;
    }

    .name-project {
        font-size: 2.4em;
        margin-top: 30px;
        margin-bottom: 12px;
    }

    .id {
        font-size: 0.9em;
    }
    
    .skills {
        font-size: 0.9em;
    }
}

@media (max-width: 650px) {

    .projects-group {
        padding-left: 10px;
        padding-right: 10px;
    }

    .project-info {
        padding-left: 10px;
        padding-right: 10px;
        border-bottom: solid #EC704A 1px;
    }

    .name-project {
        font-size: 1.2em;
        margin-top: 30px;
        margin-bottom: 12px;
    }

    .id {
        font-size: 0.7em;
        margin-right: 10px;
    }
    
    .skills {
        font-size: 0.7em;
    }
}

.separator {
    width: 1px; /* Largeur de la ligne verticale */
    background-color: #503D42; /* Couleur de la ligne */
    height: auto; /* S'ajuste à la hauteur du conteneur parent */
    align-self: stretch; /* S'étire pour remplir la hauteur disponible si dans un flex container */
    margin-top: 20px;
    margin-bottom: 20px;
    margin-left: 30px;
    flex-grow: 0;
    flex-shrink: 0;
}

.dev, .crea {
    flex-grow: 1;  /* Assure que les deux divs prennent l'espace disponible */
    flex-basis: 0; /* Permet de répartir équitablement l'espace sans base prédéfinie */
    margin-left: 40px;
    height: 100%;
}

.title-skills,
.recommand-name {
    font-weight: 500;
    font-size: 1.4em;
}

.recommand-pro {
    font-weight: 400;
    font-size: 0.8em;
}

.recommand-p {
    font-weight: 400;
    font-size: 1.1em;
}

@media (max-width: 1000px) {

    .skills-about {
        flex-direction: column;
    }

    .dev {
        border-bottom: #503D42 solid 1px;
    }

    .dev, .crea {
        margin-left: 0;
    }

    .title-skills,
    .p-skills {
        margin-left: 20px;
    }

    .separator {
        display: none;
    }
}

@media (max-width: 860px) {

    .skills-about {
        margin-bottom: 80px;
     }
}

.title-about {
    font-family: 'FuturaNowHeadline', sans-serif;
    font-size: 3.4em;
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 10px;
    color: #EC704A;
    display: flex;
    margin-left: 50px;
}

.rec {
    margin-left: 0;
}

.container-recommand {
    margin-bottom: 40px;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 40px;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
    overflow-x: auto;  /* Maintient le défilement horizontal */
}

.container-recommand::-webkit-scrollbar {
    display: none;  /* Chrome, Safari, and Opera */
}

.recommand {
    flex: 1;
    border: solid #503D42 1.5px;
    border-radius: 10px;
    width: 10%;
    flex: 0 0 480px;
    scroll-snap-align: start;
}

.width {
    display: flex;
    flex-direction: column; /* Organise les enfants en colonne */
    max-width: 1800px;
    margin-left: auto;
    margin-right: auto; /* Centre le conteneur sur la page */
    padding: 0 50px; /* Padding horizontal pour alignement */
}

@media (max-width: 1240px) {
    .recommand-name {
        font-size: 1.2em;
    }

    .recommand-p {
        font-size: 1.2em;
    }

    .p-skills {
        font-size: 1.2em;
    }

    .title-skills {
        font-size: 1.2em;
    }
}

@media (max-width: 900px) {
    
    .title-about {
        font-size: 3em;
    }
}

@media (max-width: 700px) {
    
    .title-about {
        font-size: 1.6em;
        margin-left: 20px;
    }

    .rec {
        margin-left: -10px;
    }

    .recommand-name {
        font-size: 1em;
    }

    .recommand-p {
        font-size: 1em;
    }

    .width {
        padding: 0 30px;
    }

    .download-link {
        font-size: 1em;
    }

    .container-recommand {
        gap: 30px;
    }
}

@media (max-width: 700px) {
    .title-skills,
    .p-skills {
        font-size: 1em;
    }

}

.recommand-name, 
.recommand-p {
    padding-left: 30px;
    padding-right: 30px;
}

/* Pour les mobiles, recommandations */
@media (max-width: 600px) {
    .recommand {
        flex: 0 0 100%;
    }
}

.separator2 {
    width: 88%; /* Largeur de la ligne verticale */
    background-color: #503D42; /* Couleur de la ligne */
    height: 1px; /* S'ajuste à la hauteur du conteneur parent */
    margin-top: 8px;
    margin-bottom: 20px;
    margin-left: auto; /* Centrer horizontalement */
    margin-right: auto; /* Centrer horizontalement */
    flex-grow: 0;
    flex-shrink: 0;
}

.recommand-name {
    margin-bottom: 0;
}

.bold {
    font-weight: 500;
}

footer {
    border-top: solid #503D42 1px;
    width: 100%;
    padding: 20px 0; /* Ajustez le padding selon vos besoins */
    text-align: center; /* Centre tout le contenu horizontalement */
}

.footer-content {
    display: inline-block; /* Utilisez inline-block pour alignement facile */
    font-size: 20px;
    font-family: 'FuturaNowHeadline', sans-serif;
    margin-top: auto;
}

.footer-icon {
    width: 20px; /* Taille des icônes */
    height: 20px; /* Hauteur cohérente avec la largeur */
    margin-left: 10px; /* Espace entre le texte et l'icône */
    text-decoration: none; /* Supprime le soulignement des liens */
    color: inherit; /* Hérite la couleur du texte parent */
    text-decoration: underline;
}

.content-wrapper {
    flex: 1; /* Prend tout l'espace disponible, poussant ainsi le footer vers le bas */
    display: flex;
    flex-direction: column;
}

@media (max-width: 600px) {
    .footer-content {
        font-size: 0.9em; /* Taille de police réduite pour les petits écrans */
    }
    
    .footer-icon {
        font-size: 0.9em; /* Ajustez également la taille de la police pour les liens si nécessaire */
    }
}

.title-project {
    margin-top: 120px;
}

.pro {
    color: #EC704A;
    font-size: 2em;
    font-weight: 800;
    margin-top: 30px;
    margin-bottom: 0;
}

.project-competences, 
.project-year,
.project-description {
    margin-top: 10px;
}

.project-competences,
.project-year {
    margin-bottom: 0;
}

.project-description {
    margin-bottom: 30px;
}

.project-link-title {
    margin-bottom: 8px;
}

.right {
    text-align: right;
    margin-right: 40px;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    height: 100%;
    margin-left: 40px;
}

.project-link {
    margin-top: auto; /* Pousse tout ce qui est à l'intérieur vers le bas */
    margin-bottom: 30px;
    padding-top: 0;
}

.all-desc {
    margin-bottom: 40px;
}

@media (max-width: 1000px) {
    .project-description-title,
    .project-description {
        margin-left: 40px;
    }

    .project-link-title {
        padding-top: 30px;
    }

}

@media (max-width: 700px) {
    .right {
        margin-right: 5px;
    }

    .pro {
        font-size: 1.2em;
    }

    .project-description-title,
    .project-description {
        margin-left: 5px;
    }

    .project-description,
    .project-competences,
    .project-year {
        font-size: 1em;
    }

    .title-project {
        margin-top: 70px;
    }

    .project-link {
        margin-bottom: 20px;
    }

    .all-desc {
        margin-bottom: 30px;
    }
}

.lien {
    flex-grow: 1;  /* Assure que les deux divs prennent l'espace disponible */
    flex-basis: 0;
}

.project-link-title {
    margin-top: 0;
}

.full-width-image {
    width: 100%;
    display: block;
    margin-top: 20px;
    margin-bottom: 10px;
}

.half-width-image {
    width: 50%; /* Un peu moins que la moitié pour prendre en compte la marge */
    display: inline-block;
    margin-bottom: 10px;
    vertical-align: top;
}

.image-1 {
    margin-right: 5px;
}

.image-2 {
    margin-left: 5px;
}

.media-container {
    display: flex;
    justify-content: space-between; /* Espacer équitablement les deux images */
}

.full-width-video {
    width: 100%;
    display: block;
    margin-bottom: 40px;
}

.images {
    padding-left: 20px;
    padding-right: 20px;
}

/* Assurez-vous que les images et la vidéo sont responsives */
@media (max-width: 1000px) {

    .half-width-image {
        width: 100%; /* Empile les images en colonne sur les petits écrans */
    }

    .media-container {
        flex-direction: column;
    }

    .image-1 {
        margin-right: 0px;
    }
    
    .image-2 {
        margin-left: 0px;
    }
}
