/* --------------------------------------- DESKTOP --------------------------------------- */

/* --------------------------------------- page --------------------------------------- */

body {
    font-family: 'Raleway';
    margin: 5vh 15vw 5vh 15vw;
}

p {
    margin-bottom: 0%;
    line-height: 1.04;
}

strong {
    color: #64745d;
}

/* --------------------------------------- header --------------------------------------- */

.header {
    display: flex;
    gap: 4vw;
    width:100%;
    height: 12rem;
    margin-bottom: 15vh;

}

.photo {
    height: 100%;
}

.intro {
    display: flex;
    flex-direction: column;
    height: auto;
    width: 100vw;
    align-items: flex-start;
}

.name {
    font-size: clamp(4rem, 4rem, 8rem);
    margin: 1vh 0 1vh 0;
    font-weight: bold;
    color: #74876c;
    text-shadow: 2px 2px 0px rgb(168, 180, 164);
}

.text-intro {
    font-size: clamp(1rem, 3vh, 4rem);
    filter: opacity(70%);
    font-style: italic;
    line-height: 1;
}

.contact-list {
    display: flex;
    flex-direction: column;
    padding: 0rem;
    list-style: none;
    justify-content: space-around;
}

.contact-logo {
    transition: transform 0.3s ease, filter 0.3s ease;
    width: clamp(3rem, 3rem, 4rem);
}

.contact-logo:hover,
.contact-logo:focus {
    transform: scale(1.25);
}



/* --------------------------------------- title --------------------------------------- */

.section-title {
    display:flex;
    font-size: clamp(2.5rem, 3.5rem, 6rem);
    font-weight: bold;
    color: #74876c;
    text-shadow: 2px 2px 0px rgb(168, 180, 164);
    margin-bottom: 6rem;
}

/* --------------------------------------- group section --------------------------------------- */

/* modify each group section */

.group {
    display: grid;
    grid-template-columns: 5dvw 40dvw auto;
    grid-template-rows: auto auto;
    row-gap: 2rem;
    column-gap: 3dvw;
    margin-bottom: 3rem;
}

.group-logo {
    display: block;
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    transition: transform 0.6s ease, filter 0.3s ease;
    filter: grayscale(100%);
}

.group-logo:hover,
.group-logo:focus {
    filter: none;
    transform:scale(1.05);
}

.group-info {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    padding: 0.5rem;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 12px;
    font-size: clamp(1.5rem, 1.5rem, 3.5rem);
    transition: transform 0.6s ease, padding 0.3s;
}

.group-info:hover {
    background-color: rgb(204, 216, 200);
    border-radius: 12px;
    padding-left: 1rem;
}

.group-name {
    font-weight: bold;
    color: #64745d;
}

.group-contract {
    font-style: normal;
}

.group-time {
    font-style: italic;
    filter: opacity(70%);
}

.group-container {
    grid-column: 3;
    grid-row: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toggle-group-projects {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
}

.toggle-group-projects img {
    transition: transform 0.3s ease;
    width: 24px;
    height: 24px;
}

.toggle-group-projects.collapsed img {
    transform: rotate(-90deg); /* Flèche vers la droite quand collapsed */
}

.toggle-group-projects:not(.collapsed) img {
    transform: rotate(0deg); /* Flèche vers le bas quand ouvert */
}

.group-projects {
    grid-column: 2 / 4;
    grid-row: 2;
    max-height: 5000px;
    opacity: 1;
    background: transparent;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.5s ease;
}

.group-projects.collapsed {
    max-height: 0;
    opacity: 0;
    pointer-events: none;
}

/* modify each project of the group sections */

.project {
    display: grid;
    grid-template-columns: 17% 80%;
    grid-template-rows: auto auto;
    row-gap: 2vh;
    column-gap: 3%;
    margin-bottom: 2rem;
    overflow: visible;
}

.project-logo {
    display: block;
    grid-column: 1;
    grid-row: 1;
    border-radius: 8px;
    width: 100%;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: grayscale(100%);
}

.project-info {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: clamp(1.25rem, 1.25rem, 3.25rem);
    filter: grayscale;
}

.project-name {
    font-weight: bold;
}

.project-participation {
    font-style: normal;
}

.project-time {
    font-style: italic;
    filter: opacity(70%);
}

.project-expertise {
    grid-column: 1 / 3;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: clamp(0.8rem, 0.8rem, 2rem);
}

.project-pipeline,
.project-software,
.project-skill {
    padding: 0.5rem;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 2px solid;
    border-color: #74876c;
}

.project-pipeline {
    background-color: rgb(204, 216, 200);
}

.project-skill {
    border: 1px solid;
    border-color: #74876c;
}

.project-pipeline:hover,
.project-software:hover,
.project-skill:hover,
.active-filter {
    background: #74876c;
    color: #fff;
    font-weight: bold;
    outline: none;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.project:hover .project-logo {
    filter: none;
}

.project:hover .project-name {
    color: #64745d;
}

/* back to top button */
.button--back-to-top {
    position:fixed;
    bottom:2rem;
    right:2rem;
    background: #74876c;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    opacity: 0.8;
    transition: opacity 0.2s;
}
.button--back-to-top:hover {
    opacity: 1;
}

/* --------------------------------------- MOBILE --------------------------------------- */

@media screen and (max-width:1250px) {

    /* --------------------------------------- header --------------------------------------- */
    
    .header {
        flex-direction: column;
        align-items: center;
        gap: 4vh;
        height: auto;
    }

    .photo {
        max-width: 60dvw;
    }

    .intro {
        display:flex;
        flex-direction: column;
        width: 100%;
        height: auto;
        align-items: center;
        text-align: center;
    }

    .contact-list {
        flex-direction: row;
        width: auto;
        gap:1rem;
    }

/* --------------------------------------- title --------------------------------------- */

.section-title {
    justify-content: center;
}

/* --------------------------------------- group section --------------------------------------- */

/* modify each group section */

.group {
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 2px solid #64745d;
    border-radius: 12px;
    padding:2rem;
    text-align: center;
}

.group-logo {
    width: 25dvw;
    filter:none;
}

.group-info:hover {
    padding: 0.5rem;
}

/* modify each project of the group sections */

.project {
    display:flex;
    align-items: center;
    flex-direction: column;
    margin-bottom: 2rem;
    
}

.project-logo {
    width: 100%;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: none;
}

.project-info {
    filter: none;
}

.project-name {
    color: #64745d;
}

.project-expertise {
    display:none;
}

/* back to top button */
.button--back-to-top {
    right:0.7rem;
    bottom:0.7rem;
}

}



