body {
    background-color: var(--jaune);
    margin: 0px;
}

#presentation {
    background: radial-gradient(50% 50% at 50% 50%, var(--rose, #FA9DBC) 40%, var(--jaune, #FEFFDD) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 155px 0 100px;
}

#presentation h1 {
    -webkit-text-stroke: 3px var(--jaune);
    max-width: 75%;
}

#presentation span {
    color: var(--jaune);
}

.homepage-cv-btn {
    display: inline-block;
    margin-top: 40px;
    padding: 12px 24px;
    background-color: var(--jaune);
    color: var(--rose);
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease;
    font-style: italic;
}

.homepage-cv-btn:hover {
    background-color: var(--rose);
    color: var(--jaune);
    font-style: italic;
}

#propos {
    padding: 100px 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#propos h1 {
    -webkit-text-stroke: 3px var(--bleu);
}

/* Cards Container */
.cards-container {
    position: relative;
    width: 85%;
    max-width: 1000px;
    height: 350px;
    margin: 40px auto;
    perspective: 1000px;
    user-select: none;
}

/* Card Styling */
.card {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 40px;
    overflow: hidden;
    cursor: grab; /* Indique que l'élément est "attrapable" */
    transition: transform 0.5s ease, box-shadow 0.3s;
    transform-origin: center;
    touch-action: none; /* Important pour les appareils tactiles */
}

.card:active {
    cursor: grabbing; /* Change le curseur quand on "attrape" */
}

.card-content {
    padding: 25px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-sizing: border-box;
}

.card h3 {
    margin-top: 0;
    margin-bottom: 20px;
}

.card ul {
    list-style: none;
    padding-left: 5px;
    margin-top: 0;
}

.card li {
    margin: 16px 0;
}

.card a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dotted;
}


#card-info {
    background-color: var(--bleu);
    color: var(--jaune);
    z-index: 3;
}

#card-passions {
    background-color: var(--noir);
    color: var(--jaune);
    z-index: 2;
}

#card-langues {
    background-color: var(--rose);
    color: var(--noir);
    z-index: 1;
}

/* Card Navigation Dots */
.cards-nav {
    position: absolute;
    bottom: -40px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.nav-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--bleu);
    cursor: pointer;
    transition: background 0.3s;
}

.nav-dot.active {
    background: var(--noir);
}

/* Card Animation States */
.card.transition {
    transition: transform 0.5s ease, z-index 0s linear 0.25s;
}

/* Styles pour la section parcours */
#parcours {
    padding: 100px 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#parcours h1 {
    -webkit-text-stroke: 3px var(--bleu);
}

#parcours h3 {
    margin-bottom: 0;
    color: var(--bleu);
}
#parcours h4 {
    margin: 0 0 20px;
    color: var(--bleu);

}
#parcours h6 {
    margin: 10px 0 0;
}
#parcours p {
    margin: 0;
}

/* Styles des conteneurs SVG */
.parcours-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: -10px; /* Un peu d'espace entre les éléments pour éviter confusion */
    max-width: 1000px;
    position: relative;
}

.parcours-item:first-child {
    margin-right: -37px; /* Rapproche vers la droite */
}

.parcours-item:last-child {
    margin-left: -37px; /* Rapproche vers la gauche */
}

.parcours-text {
    display: none; /* Hide the original separate text section */
}

.parcours-item-text {
    position: absolute;
    top: 30px;
    left: 40px;
    width: 260px;
    z-index: 10;
    pointer-events: none; /* Allows clicks to pass through to the SVG element */
}



/* Position first text element (left SVG) */
.parcours-item:first-child .parcours-item-text {
    top: 0;
    left: 40px;
}

/* Position second text element (right SVG) */
.parcours-item:last-child .parcours-item-text {
    top: 0;
    left: 380px; /* Adjusted for the different SVG width */
}



@media (max-width: 768px) {

    #presentation {
        padding: 100px 20px;
    }

    #parcours h1 {
        -webkit-text-stroke: 1px var(--bleu) !important;
        text-align: center;
    }

     #presentation {
        padding: 100px 20px;
    }

    #presentation h1 {
        -webkit-text-stroke: 1px var(--jaune) !important;
        text-align: center;
    }

    /* For mobile, stack items vertically */
    .parcours-container {
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding-top: 50px;
    }

    /* Reset margins for mobile */
    .parcours-item:first-child {
        margin: 0;
    }
    .parcours-item:last-child {
        margin: -36px 0 0;
    }

    /* Rotate SVGs 90 degrees on mobile */
    .parcours-svg {
        transform: rotate(90deg);
        transition: transform 0.3s ease;
    }

    /* Keep text in original orientation and adjust positioning */
    .parcours-item-text {
        position: absolute;
        width: 250px;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
        z-index: 10;
    }

    /* Reset specific positioning for both items on mobile */
    .parcours-item:first-child .parcours-item-text,
    .parcours-item:last-child .parcours-item-text {
        left: 50%;
        top: 40%;
        transform: translate(-50%, -50%);
    }

    /* Adjust parcours item container for mobile */
    .parcours-item {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 30px;
    }

}
