/* Styles globaux */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    color: #333;
    background: linear-gradient(120deg, #F1F1D3, #82af8b);
}

a {
    text-decoration: none !important;
}

/* Entête */
header {
    background-color: #333;
    color: white;
    padding: 10px 20px;
    text-align: left;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
}

/* Pied de page */
#footer {
    text-align: center;
    padding: 1em 0 1em 0;
    background-color: #333;
    color: beige !important;
}

#footer a{
    color: beige !important;
}

#footer a:hover {
    text-decoration: underline !important;
}

.footer-section {
    padding-bottom: 1em;   
}

h1 {
    text-transform: uppercase;
    letter-spacing: 3px;
    transition: transform 0.3s ease-in-out;
}

/* Arrière-plan dynamique avec des formes géométriques */
.background-shapes {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.circle {
    width: 120px;
    height: 120px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    position: absolute;
    animation: moveCircle 8s infinite alternate;
}

.triangle {
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 80px solid rgba(255, 255, 255, 0.2);
    position: absolute;
    top: 10%;
    left: 10%;
    animation: moveTriangle 6s infinite alternate;
}

@keyframes moveCircle {
    0% {
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
    }
}

@keyframes moveTriangle {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(30%, 30%);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@media (min-width:768px){
    .section {
        height: 100vh;
        box-shadow: 5em 0 5em 0 #fff;
    }

    .header-content p {
        font-size: 1.2em;
        margin: 0;
    }

    /* Section Présentation */
    #presentation {
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
        padding: 0 10%;
    }

    #content-presentation {
        display: flex;
    }

    #content-presentation .left{
        align-items: center;
    }

    .left {
        flex: 60%;
        display: flex;
        justify-content: center;
    }

    h1 {
        font-size: 3.5em;
        text-transform: uppercase;
        letter-spacing: 3px;
        transition: transform 0.3s ease-in-out;
    }

    .left h1:hover {
        transform: scale(1.05);
    }

    /* Partie droite (40%) */
    .right {
        flex: 40%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        text-align: left;
        padding: 0 20px;
        border-left: 1px solid #333;
    }

    .right p {
        margin-bottom: 15px;
        line-height: 1.5;
        opacity: 0;
        animation: fadeIn 1s forwards;
        animation-delay: 0.3s;
    }

    #curriculum {   
        width: 90vw;
        display: flex;
        margin: 5em 0 2em 0;
    }

    #curriculum .left{
        flex: 50%;
        flex-direction: column;
    }

    #curriculum .right{
        flex: 50%;
    }

    #parcours h2 {
        padding-bottom: 1em;
    }

    #parcours h3 {
        padding-bottom: 1em;
    }

    #curriculum p{
        margin-bottom: 15px;
        line-height: 1.5;
        opacity: 0;
        animation: fadeIn 1s forwards;
        animation-delay: 0.3s;
    }

    #parcours {
        justify-content: center;
        padding: 5em 2em 0 2em;
    }
}
/* Responsivité */
@media (max-width: 768px) {
    h1, h2, h3 {
        font-size: smaller;
    }

    p {
        font-size: xx-small;
    }

    .section {
        height: max-content;
        display: block;
        padding: 0;
    }

    .container {
        width: 100vw;
    }

    .background-shapes .circle {
        display: none;
    }

    .background-shapes .triangle {
        display: none;
    }

    #curriculum, #presentation, #parcours, #content-presentation {   
        width: 95vw;
        display: block;
        padding: 1em 1em 1em 1em;
        position: relative;
    }

    .left {
        position: relative;
        padding: 0;
    }

    .left h1{
        padding-top: 2em;
        padding-bottom: 1em;
        font-size: x-small;
        text-align: center;
    }

    .right {
        position: relative;
        padding: 0;
    }

    .header-content{
        font-size: smaller;
    }
    
    #footer{
        position: relative;
        display: block;
        text-align: center;
        font-size: smaller;
        margin-top: 2em;
    }

    #content-presentation .left{
        align-items: baseline;
    }
}
