:root {
    --secondary-color: #116AAC;
    --card-bg: #EEEFEC;
    --accent-color: #2D3842;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
    background: linear-gradient(135deg, #b8bfc4, #c0dbf6, #B3CEE2, #EEEFEC);
    height: 100vh;
    width: 100vw;
}

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

.Container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr 1fr;
    gap: 10px;
    width: 100%;
    height: 100vh;
    margin: 0 auto;
}

.Container>div {
    background: rgba(230, 195, 195, 0.12);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(3.5px);
    border: 1px solid #B3CEE2;
    padding: 1em;
    color: black;
    height: auto;
}

.One {
    grid-column: 1;
    grid-row: 1;
}

.Two {
    grid-column: 2;
    grid-row: 1 / span 3;
}

.Three {
    grid-column: 3;
    grid-row: 1 / span 4;
    display: flex;
    flex-direction: row;
    gap: 15px;
    width: auto;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    backdrop-filter: none !important;
    padding: 0 !important;
}


.Four {
    grid-column: 1;
    grid-row: 2 / span 2;
}

.Eight {
    grid-column: 2;
    grid-row: 4;
}


.Five,
.Six,
.Seven {
    flex: 1;
    background: rgba(230, 195, 195, 0.12);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(3.5px);
    border: 1px solid #B3CEE2;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

.Who-Am-I-Image {
    width: 160px;
    height: 200px;
    border-radius: 10px;
}

.Who-Am-I {
    display: flex;
    flex-direction: row;
}

.Who-Am-I-Text {
    display: flex;
    flex-direction: column;
    padding-left: 20px;

}

.Text-Shadow {
    color: #116AAC;
    filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.15));
    font-size: 18px;
}

.Who-Am-I p::before {
    content: "";
    background: url("/assets/librairies/exclamation-circle.svg");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    width: 25px;
    height: 25px;
    display: inline-block;
    vertical-align: -6px;
    margin-right: 8px;
}



.Two p {
    width: fit-content;
    margin: 0 auto;
}

.Timeline {
    position: relative;
    max-width: 450px;
    height: fit-content;
    margin: 0 auto;
    padding-top: 120px;
}

/* Timeline - Ligne verticale */
.Timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: var(--secondary-color);
    top: 150px;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
    border-radius: 3px;
}

.Icone-Timeline {
    width: 25px;
    height: 25px;
}

.Timeline-Title {
    text-align: center;
    width: 450px;
    margin: 0 auto;
}


.Timeline-Title-Container {
    width: fit-content;
    padding: 15px;
    font-size: 25px;
    border-radius: 30px;
    position: absolute;
    top: 0;

}

.Timeline-Container {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.Timeline-Container::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -17px;
    background-color: var(--card-bg);
    border: 4px solid var(--accent-color);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.Timeline-Container.Left {
    left: 1%;
}

.Timeline-Container.Right {
    left: 50%;
}

.Timeline-Container.Left::after {
    right: -11px;
}

.Timeline-Container.Right::after {
    left: -13px;
}

.Timeline-Content {
    padding: 10px 15px;
    background-color: var(--card-bg);
    position: relative;
    border-radius: 6px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
}



.Projects {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    gap: 15px;
    width: 100%;
    height: 100%;
}

.Projects-Image {
    width: fit-content;
    height: 200px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
}

.Projects-Image:hover {
    transform: translateY(-10px);
    transition: all 0.4s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.55);
}

.Projects-Container {
    flex: 1;
    width: 100%;
    background: rgba(230, 195, 195, 0.12);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(3.5px);
    border: 1px solid #B3CEE2;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

.Projects-Title-Position {
    position: absolute;
    top: 4%;
    left: 20%;
    /*box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);*/
    padding: 5px;
    border-radius: 5px;
    font-weight: bolder;
    font-style: italic;
    text-transform: uppercase;
}

.Tooltip-Container {
    width: 425px;
    min-height: 200px;
    padding: 15px;
    font-size: 25px;
    position: absolute;
    z-index: 100;
    display: flex;
    flex-direction: column;
    opacity: 0;
    background: white !important;
}

.Tooltip-Container p {
    margin-bottom: 15px;
    font-size: 20px;
}

.fade-in {
    display: block;
    animation: fade 0.2s linear forwards;
    opacity: 1;
}

@keyframes fade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.Projects-Popup {
    width: 25px;
    height: 25px;
    border-radius: 5px;
    transition: all 0.4s ease;
    opacity: 1;
    position: absolute;
    right: 90%;
    top: 5%;
    z-index: 20;
    cursor: pointer;
    fill: white;
}

.Skills-Level {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.donut {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    position: relative;
    /* Indispensable pour superposer les éléments */

    /* Le graphique (la jauge colorée) */
    background: conic-gradient(var(--c) calc(var(--p)*1%), #e0e0e0 0);

    /* Pour centrer l'image SVG */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Le cercle blanc au milieu (l'arrière-plan de l'image) */
.donut::before {
    content: "";
    position: absolute;
    background: white;
    width: 80%;
    height: 80%;
    border-radius: 50%;
    z-index: 0;
}

.donut img {
    width: 50%;
    height: 50%;
    z-index: 1;
    position: relative;
}

.Links-Button {
    display: flex;
    position: relative;
    border: none;
    width: 70px;
    height: 70px;
    border-radius: 50px;
    justify-content: center;
    align-items: center;
    transition: all 0.4s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    margin: 0;
}

.Presentation h3 {
    font-size: 25px;
}

.Presentation-Text {
    line-height: 2;
}

.Links-Wrapper {
    grid-column: 1;
    grid-row: 4;
    display: flex;
    flex-direction: row;
    gap: 15px;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    backdrop-filter: none !important;
    padding: 0 !important;
}

.Links-Button:hover {
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.55);
    width: 230px;
}

.Links-Icone {
    position: absolute;
    width: 25px;
    height: 25px;
    border-radius: 5px;
    transition: all 0.4s ease;
    opacity: 1;
}

.Links-Text {
    position: absolute;
    opacity: 0;
    transition: all 0.4s ease;
    transform: translateY(10px);
    white-space: nowrap;
}

.Links-Button a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.Links-Button:hover .Links-Icone {
    opacity: 0;
    transform: translateY(-10px);
}

.Links-Button:hover .Links-Text {
    opacity: 1;
    transform: translateY(0px);
}

@media (max-width: 1600px) {
    .Timeline-Title {
        width: 100%;
    }

    .Timeline-Title-Container {
        max-width: 100%;
        width: 100%;
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 1505px) {
    .donut {
        width: 70px;
        height: 70px;
    }

    .Links-Button {
        width: 60px;
        height: 60px;
    }

    .Links-Icone {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 1400px) {
    .Projects-Container {

        align-content: center;
        justify-content: center;
    }

    .Projects-Image {
        width: 80%;
        height: auto;
        margin-left: 20px;
    }
}

@media (max-width: 1197px) {
    .Timeline-Title-Container {
        justify-content: center;
        text-align: center;
    }

    .Timeline-Container {
        font-size: 12px;
    }
}

@media (max-width: 1142px) {
    .donut {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 1105px) {
    body {
        height: auto;
        min-height: 100vh;
    }

    .Container {
        height: auto;
        min-height: 100vh;
        grid-template-rows: auto auto auto auto;
    }
}

@media (max-width: 1100px) {

    .Container {
        grid-template-columns: 1fr 1fr;
    }

    .Three {
        grid-column: 1 / span 2;
        grid-row: 5 / span 3;
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto auto;
        gap: 20px;
        align-items: center;
    }

    .Projects {
        grid-column: 1;
        grid-row: 1 / span 3;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .Projects-Image {
        width: 100%;
        max-width: 350px;
    }

    .Projects-Popup {
        display: none;
    }

    .Projects-Container {
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    /* Position tooltips in column 2 */
    .Tooltip-Container {
        opacity: 1;
        position: static;
        width: 100%;
        min-height: auto;
        grid-column: 2;
    }

    /* First tooltip - row 1 */
    .Tooltip-Container[data-name="projet_3"] {
        grid-row: 5;
    }

    /* Second tooltip - row 2 */
    .Tooltip-Container[data-name="projet_integration"] {
        grid-row: 6;
    }

    /* Third tooltip - row 3 */
    .Tooltip-Container[data-name="projet_cv"] {
        grid-row: 7;
    }
}