:root {
    --primary-color: #002b60;
    --secondary-color: #f4d7e6;
    --black-color: #1e1e1e;
    --white-color: #ffff;
}


*,
*:after,
*:before {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/*******COMMUNS********/
body {
    background-color: #f4d7e6;
    font-family: "Lora", sans-serif;
    color: #002b60;

}



/* BURGER ICON */
.burger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-around;
    height: 20px;
    width: 30px;
    margin-left: 1rem;
}

.burger span {
    height: 3px;
    width: 100%;
    background: #002b60;
    border-radius: 10px;
    transition: all 0.3s ease;
}

/* MENU RESPONSIVE */
@media screen and (max-width: 768px) {
    #liste_menu {
        display: none;
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 2rem;
    }

    #menu.active #liste_menu {
        display: flex;
    }


    #menu {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        position: relative;
    }
}



header {
    padding: 2rem;
}

.h2 {
    font-size: 3rem;
    text-align: center;
    font-family: "Alice", serif;
    margin: 2rem;

}

#h1 {
    font-family: "Alice", serif;
    text-align: center;

}

/*******HEADER - MENU********/

#liste_menu {
    display: flex;
    justify-content: space-around;
    list-style: none;
}

.lien {
    position: relative;
    text-decoration: none;
    color: #002b60;
    font-family: "Lora", serif;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.lien::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background-color: #002b60;
    transition: width 0.3s ease;
}

.lien:hover::after {
    width: 100%;
}

.lien:hover {
    color: white;
}

#menu {
    background: linear-gradient(135deg, #f8e8ef, #f4d7e6, #e6b8c8, #d4a5b5);
    border-radius: 20px;
    padding: 1.2rem 2rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8px);
}



#menu {
    animation: fadeIn 1.2s ease forwards;
    opacity: 0;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/******* PRESENTATION CARD *******/

#presentation {
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 2rem;
    padding: 2rem;
    max-width: 800px;
    margin: 3rem auto;
    background: linear-gradient(135deg, #f4d7e6, #fef6fa);
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}


@media screen and (max-width: 768px) {
    #presentation {
        flex-direction: column;
        /* colonne sur mobile */
        align-items: center;
        /* centrer horizontalement */
        justify-content: center;
        /* centrer verticalement */
        text-align: center;
        /* centrer le texte */
        gap: 1.5rem;
        padding: 1.5rem;
        max-width: 100%;

    }

    #contenu_presentation {
        width: 100%;
    }

    #contenu_presentation h1 {
        font-size: 1.3rem;
    }

    #contenu_presentation p {
        font-size: 0.95rem;
        padding: 0 1rem;
    }
}


#presentation:hover {
    transform: translateY(-5px);
}

.photo {
    height: 180px;
    width: 180px;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid #002b60;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    object-position: center top;
}

#contenu_presentation {
    flex: 1;
}

#contenu_presentation h1 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #002b60;
}

#contenu_presentation p {
    font-size: 1rem;
    color: #333;
    line-height: 1.6;
}

/**** TEXT BIENVENUE ***/

@media screen and (max-width: 768px) {
    #about {
        padding: 2rem 1rem;
        text-align: center;
    }

    .h2.about {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }

    .accroche {
        font-size: 1rem;
        line-height: 1.6;
        padding: 0 0.5rem;
    }
}

.about {
    margin: 0;
}

.accroche {
    animation: flotter 3s ease-in-out infinite;
    text-align: center;
    margin-bottom: 3rem;
}

@keyframes flotter {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/******** MES PROJETS *******/
#projects {
    padding: 4rem 2rem;
    background-color: #fff;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}


@media screen and (max-width: 768px) {
    #projects {
        flex-wrap: wrap;
    }
}

#projects .h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
}

#projects .project {
    background: linear-gradient(135deg, #fdf5f9, #f4d7e6);
    border: 1px solid #e6b8c8;
    border-radius: 15px;
    padding: 2rem;
    width: 220px;
    margin: 1rem;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

#projects .project:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

#projects .project img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 0.5rem;
}

#projects .project h3 {
    font-size: 1.1rem;
    font-family: "Alice", serif;
    color: var(--primary-color);
    margin: 0.5rem 0;
}

#projects .project p {
    font-size: 0.85rem;
    color: #333;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

#projects .project a {
    text-decoration: none;
    background-color: var(--primary-color);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    transition: background-color 0.3s ease;
}

#projects .project a:hover {
    background-color: #001f44;
}

/* Conteneur en ligne */
#projects .project-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

/* Animation fadeInUp */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/***** MES COMPETENCES *******/


@media screen and (max-width: 768px) {
    #skills-timeline {
        padding: 2rem 1rem;
        text-align: center;
    }

    #skills-timeline h2 {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }

    .timeline {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    .timeline-item {
        background-color: #fff;
        padding: 1.5rem;
        border-radius: 15px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
        text-align: center;
    }

    .timeline-item h3 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    .timeline-item ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .timeline-item li {
        margin: 0.5rem 0;
        font-size: 1rem;
    }

    .timeline-item i {
        margin-right: 0.5rem;
        color: #002b60;
    }
}


#skills-timeline {
    padding: 4rem 2rem;
    background-color: #fef6fa;
    text-align: center;
}

#skills-timeline h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
    font-family: "Alice", serif;
}

.timeline {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 1rem;
    scroll-snap-type: x mandatory;
}

.timeline-item {
    min-width: 280px;
    flex: 0 0 auto;
    background: white;
    border-radius: 16px;
    padding: 2rem;
    border: 2px solid #e6b8c8;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    scroll-snap-align: start;
    transition: transform 0.3s ease;
}

.timeline-item:hover {
    transform: translateY(-5px);
}

.timeline-item h3 {
    font-family: "Lora", serif;
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.timeline-item ul {
    list-style: none;
    padding: 0;
}



.timeline-item li i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.timeline-item h3 i {
    margin-right: 0.6rem;
    color: #d089b3;
}


/**** CONTACT *****/


@media screen and (max-width: 768px) {
    #contact {
        padding: 2rem 1rem;
        background-color: #fef6fa;
        text-align: center;
    }

    .contact-wrapper {
        max-width: 600px;
        margin: 0 auto;
    }

    .contact-title h2 {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
        color: #002b60;
    }

    .contact-info {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .info-item {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.8rem;
        font-size: 1rem;
    }

    .info-item i {
        color: #002b60;
        font-size: 1.2rem;
    }

    .info-item a {
        text-decoration: none;
        color: #333;
        word-break: break-word;
    }

    .info-item a:hover {
        text-decoration: underline;
        color: #002b60;
    }
}

#contact {
    background: #fff;
    padding: 4rem 2rem;
    display: flex;
    justify-content: center;
}

.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    background: linear-gradient(120deg, #f8e8ef, #fef6fa);
    border-radius: 20px;
    padding: 2.5rem 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    gap: 2rem;
    max-width: 900px;
    width: 100%;
}

.contact-title {
    flex: 1 1 300px;
}

.contact-title h2 {
    font-family: "Alice", serif;
    font-size: 2.5rem;
    color: #002b60;
    margin-bottom: 0.5rem;
}

.contact-title p {
    font-size: 1.1rem;
    color: #444;
    line-height: 1.6;
}

.contact-info {
    flex: 1 1 300px;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.info-item {
    display: flex;
    align-items: center;
    font-size: 1rem;
}

.info-item i {
    color: #002b60;
    font-size: 1.3rem;
    margin-right: 1rem;
}

.info-item a {
    color: #002b60;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.info-item a:hover {
    color: #c0709c;
}


#btnScrollTop {
    display: none;
    position: fixed;
    bottom: 40px;
    right: 30px;
    z-index: 100;
    background-color: var(--primary-color);
    color: white;
    border: none;
    outline: none;
    padding: 12px 16px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s ease;
}

#btnScrollTop:hover {
    background-color: #001e44;
}