@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&display=swap');

.league-spartan-title {
  font-family: "League Spartan", sans-serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
}

.league-spartan-subtitle {
  font-family: "League Spartan", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
}

.league-spartan-body {
  font-family: "League Spartan", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}
@import url('https://fonts.googleapis.com/css2?family=League+Spartan:wght@400;500;700&display=swap');
:root {
    --white: #f9f9f9;
    --dark: black;
    --green-light: #00df5e;
    --yellow: #f7df1e;
    --gray: #828282;
    --gray-200: #333333;
    --gray-400: #212121;
    --gray-400-rgb: 33, 33, 33;
    --alpha: 0.8;
    --blue: #02216e;
  }
*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

ul{
    list-style-type: none;
}

a{
    text-decoration: none;
    color: var(--white);
}

body{
    background-color: var(--white);
    color: var(--black);
    font-size: 16px;
    font-family: 'DM Sans', sans-serif;
    display: flex;
    align-items: center;
    flex-direction: column;
    position: relative;
}
div.container{
    width: 80%;
}

header{
    display: flex;
    justify-self: center;
    width: 100%;
    height: 60px;
    margin-top: 40px;
    top: 0;
    margin-bottom: 83px;
    position: sticky;
    background-color: rgba(var(--gray-400-rgb), var(--alpha));
}
header .content{
    width: 80%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    
    
}
header .content span.logo{
    font-size: 20px;
    font-weight: 400;
    margin-left: 1%;
    margin-right: 1%;
    gap : 100% ;

}

header .content ul{
    display: flex;
    justify-content: space-between;
    gap: 80px;
    font-size: 16px;

}
header .content ul li{
    cursor: pointer;
}

main{
    display: flex;
    justify-content: space-between;
    margin-bottom: 69px;

}

main .left{
    width: 30%;
    gap: 20px;
    display: flex;
    flex-direction: column;
  
}
main .left h1{    
    font-size: 2.25rem;
    font-weight: 700;
}
main .left h2{
    font-size: 18px;
    font-weight: 500;
    color: var(--gray);
    margin-top: 18px;
    margin-bottom: 37px;
}

main button {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 20px;
}

main .btn .cv {
    width: 143px;
    height: 42px;
    
    color: var(--dark);
    background-color: var(--yellow);
    border: 0;
    margin-right: 15px;
    padding: 12px, 25px;
}
#pdf{
    color: var(--dark);
}
main .btn .contact{
    width: 160px;
    height: 42px;
    color: var(--yellow);
    background-color: var(--dark);
    border: 1px solid var(--gray-200);
    padding: 12px, 16px;
}

main .right img{
    max-width: 350px;
}


section .resume{
    display: flex;
    justify-content: center;
    align-items: flex-end;
    margin-bottom: 67px;
}

section .resume img {
    max-width: 200px;
}

section.resume h2{
    font-size: 2rem;
    font-weight: 700;
    color: var(--black);
    margin-right: 10px;
}

section.resume p{
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--gray);
    line-height: 32px;
}

section.about-me{
    display: flex;
    align-items: center;
    flex-direction: column;
}

section.about-me h2{
    font-size: 2rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 30px;
}

section.about-me p{
    max-width: 745px;
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--gray);
    line-height: 32px;
    text-align: center;

}

section.contacts{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 121px;
    margin-bottom: 67px;
    margin-top: 70px;
}

section.contacts div.contact{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 170px;
    height: 150px;
}

section.contacts div.contact div.icon{
    width: 62px;
    height: 62px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--gray-400);
    border-radius: 31px;
    margin-bottom: 20px;
}

section.contacts div.contact div.icon i{
    font-size: 32px;
    color: var(--white);
}

section.contacts span.title{
    font-size: 18px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 5px;
}

section.contacts span.title a{
    font-size: 18px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 5px;
}

section.contacts span.description{
    font-size: 16px;
    font-weight: 400;
    color: var(--gray);
}
section.contacts span.description a{
    font-size: 16px;
    font-weight: 400;
    text-decoration: underline;
    color: var(--gray);
    margin-top: 1px;
}
section.projects{
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 67px;

}
section.projects h2{
    font-size: 24px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 30px;
}
section.projects div.cards{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 45px;
}
section.projects div.card{
    width: 350px;
    height: 350px; /* 240px before */
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    align-items: center;
    background-color: var(--gray-200);
    /*border: 1px solid var(--gray-200);*/
    padding: 20px, 25px;
}

section.projects div.cards div.card div.img-project {
    margin-top: 20px;
    width: 300px;
    height: 200px; /* 130px before */
    background-color: var(--white);
    margin-bottom: 23px;
    border: 1px solid var(--gray-400);
    display: flex;
    justify-content: center;
    align-items: center;
}

section.projects div.cards div.card div.img-project img {
    max-width: 100%;
    max-height: 100%;
    margin: auto;
    object-fit: contain;
    
}

section.projects div.cards div.card div.description-project{
    width: 300px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

section.projects div.cards div.card div.description-project span.title-project{
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--white);
}

section.projects div.cards div.card span.tag-project {
    font-size: 14px;
    font-weight: 400;
    color: var(--gray);
  }

section.skills{
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 185px;
}
section.skills h2{
    font-size: 24px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 35px;

}
section.skills div.cards-skills {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 51px;
  }
  
section.skills div.cards-skills div.card-skill {
    width: 100px;
    height: 100px;
    background-color: var(--gray-400);
    border: 1px solid var(--gray-200);
    border-radius: 100%;       /* Adjust this number: 8px for subtle, 20px for very round */
    display: flex;
    justify-content: center;
    align-items: center;
  }

section.skills div.cards-skills div.card-skill i {
    font-size: 5rem;
    color: var(--white);
}

section.skills div.cards-skills div.card-skill img {
    width: 70%;
    height: auto;
    object-fit: cover;
}
footer{
    width: 100%;
    height: 60px;
    display: flex;
    justify-self: center;
    align-items: center;
    background-color: var(--gray-400);

}

footer span{
    font-size: 16px;
    font-weight: 700;
    color: var(--white);
    margin-left: 45%;
}

footer span a{
    color: var(--yellow);
}

.card-serve i{
    color: var(--gray);
}
div.goto-top{
    display: flex;
    justify-self: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 25px;
    background-color: var(--gray-400);
    position: fixed;
    bottom: 60px;
    left: 0;
}
div.goto-top i {
    font-size: 32px;
    color: var(--yellow);
    margin-left: 10px;
  }

.target::before {
    content: '';
    display: block;
    height: 60px; /* fixed header height*/
}

@media screen and (max-width: 900px) {
    header{
        margin-bottom: 30px;
    }
    header .content ul{
        display: none;
    }
    main{
        flex-direction: column-reverse;
        align-items: center;
        margin-bottom: 30px;
    }
    main .left{
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    main .right{
        margin-bottom: 30px;
        display: flex;
        align-items: normal ;
        flex-direction: column;
    }
 
    main .left h1{
        font-size: 1.5rem;
        font-weight: 700;
    }
    main .left h2{
        font-size: 1rem;
        font-weight: 700;
    }
section.about-me {
    margin-bottom: 30px;
    gap: 100px;
  }

section.contacts {
    gap: 0px;
    margin-bottom: 30px;
  }

section.projects {
    margin-bottom: 30px;
  }
  section.skills {
    margin-bottom: 30px;
  }

  .target::before {
    content: '';
    display: block;
    height: 0px; /* fixed header height*/
  }

  section.skills div.cards-skills {
    gap: 25px;
  }

  section.skills div.cards-skills div.card-skill {
    width: 85px;
    height: 75px;
  }

  section.skills div.cards-skills div.card-skill i {
    font-size: 3rem;
  }

}

/* =========================================
   PUBLICATIONS INTEGRATION (style_pub.css)
   ========================================= */

ul#publications-list {
    list-style: none;
    padding: 0;
    width: 100%;
    max-width: 800px; /* Aligned with container logic */
}

ul#publications-list li {
    margin-bottom: 20px;
    padding: 20px;
    background-color: var(--white);
    border: 1px solid var(--gray-200); /* Consistent with project cards */
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    display: flow-root; /* Fixes float wrapping */
    transition: transform 0.3s ease;
    border-radius: 12px;       /* Adjust this number: 8px for subtle, 20px for very round */
    overflow: hidden;          /* Ensures content doesn't "leak" out of the corners */
}

ul#publications-list li:hover {
   
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);

}

.publication-image img {
    max-width: 150px;
    height: auto;
    float: left;
    margin-right: 20px;
    border-radius: 5px;
    border: 1px solid var(--gray-400);
}

.publication-title {
    display: block;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--gray-400);
    margin-bottom: 8px;
    line-height: 1.4;
}

.publication-authors {
    font-size: 0.95em;
    color: var(--gray);
    margin-bottom: 5px;
}

.publication-doi {
    display: block;
    font-size: 0.85em;
    color: var(--dark);
    margin-top: 10px;
}

.publication-journal {
    font-size: 0.95em;
    color: var(--blue); /* Highlighted journal info */
    font-style: italic;
    font-weight: 500;
}
/* This forces links in the publication list to be dark/blue instead of white */
#publications-list li a {
    display: block;
    font-size: 0.85em;
    color: var(--gray);
    margin-top: 10px;
    text-decoration: underline; /* Good for accessibility so people know it's a link */
}


/* =========================================
   END OF PUBLICATIONS INTEGRATION
   ========================================= */




/* =========================================
   RÉSUMÉ INTEGRATION (style_resume.css)
   ========================================= */

ul#role-list {
    list-style: none;
    padding: 0;
    width: 100%;
    max-width: 900px; /* Aligned with container logic */
    
}

ul#role-list li {

    margin-bottom: 20px;
    padding: 20px;
    background-color: var(--white);

    /* --- NEW COLUMN LOGIC --- */
    display: flex;          /* This creates the two columns */
    align-items: flex-start; /* Keeps image and text at the top */
    gap: 20px;              /* Space between the image and the text column */
}



.role-image img {
width: 150px;           /* Fixed width for the image column */
    height: auto;
    border-radius: 5px;
    flex-shrink: 0;         /* Prevents the image from being squeezed */

}
/* Create a container for all text to keep it aligned */
.role-details {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.role-authors {
    font-size: 0.95em;
    color: var(--gray);
    margin-bottom: 5px;
}



.role-role {
    font-size: 0.95em;
    color: var(--gray-200); /* Highlighted journal info */
    font-style: italic;
    font-weight: 500;
    margin-bottom: 8px;
}

.role-thesistopic {
    font-size: 0.95em;
    color: var(--blue); /* Highlighted journal info */
    font-style: italic;
    justify-content: flex-start; /* Keeps them together on the left */

    font-weight: 500;
}   
/* This forces links in the publication list to be dark/blue instead of white */
#role-list li a {
    display: block;
    font-size: 0.85em;
    color: var(--gray);
    margin-top: 0px;
    text-decoration: underline; /* Good for accessibility so people know it's a link */
}

.role-header {
    display: flex;
    justify-content: flex-start; /* Keeps them together on the left */
    align-items: baseline;          /* Aligns text bottoms perfectly */
    margin-bottom: 8px;
}

/* Update your existing classes to remove conflicting margins */
.role-title {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--gray-400);
    margin-bottom: 0; /* Margin is now handled by the header container */
    line-height: 1.4;
    
}

.role-period {
    font-size: 0.85em;
    color: var(--gray); /* Usually looks better slightly lighter than the title */
    font-weight: 500;
}
/* =========================================
   END OF RESùmè INTEGRATION
   ========================================= */
/*   @media screen and (max-width: 900px) {
    header .content ul { display: none; }
    
    .publication-image img {
        float: none;
        display: block;
        margin: 0 auto 15px auto;
        max-width: 100%;
    }
        header .content span.logo {
        text-align: center;
        font-size: 16px;      /* Shrink logo text slightly */ /*
    }
    
    ul#publications-list li {
        text-align: center;
        padding: 15px;
    }
    
    div.container { width: 90%; }
} */
@media screen and (max-width: 900px) {
    /* 1. Header Adjustments */
    header {
        height: auto;          /* Allow header to grow to fit menu */
        margin-top: 0;         /* Save screen space on mobile */
        margin-bottom: 20px;
        padding: 10px 0;
    }

    header .content {
        flex-direction: column; /* Stack logo on top, menu below */
        gap: 10px;
        width: 95%;            /* Use more width on small screens */
    }

    header .content ul {
        display: flex;         /* Show the menu */
        justify-content: center;
        flex-wrap: wrap;       /* Wrap links if they are too wide for one line */
        gap: 20px;             /* Smaller gap for mobile */
        font-size: 14px;
    }

    header .content span.logo {
        text-align: center;
        font-size: 16px;
        margin-bottom: 5px;
    }

    /* 2. Publication/Resume Adjustments */
    .publication-image img, .role-image img {
        float: none;
        display: block;
        margin: 0 auto 15px auto;
        max-width: 120px;      /* Smaller images on mobile */
    }

    ul#publications-list li, ul#role-list li {
        flex-direction: column; /* Stack image and text vertically */
        align-items: center;
        text-align: center;
        padding: 15px;
    }

    .role-header {
        justify-content: center; /* Center the title and date */
        flex-wrap: wrap;
    }

    /* 3. Main Content Adjustments */
    main {
        flex-direction: column-reverse;
        align-items: center;
        margin-bottom: 30px;
    }
    
    div.container { width: 95%; }
}