/* --- Police et couleurs globales --- */
body {
    font-family: 'Lora', serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-color: #f0f8ff;
    color: #333;
}

/* --- Disposition principale --- */
.container {
    display: flex;
    flex-wrap: wrap;
}

/* --- Menu latéral (aside) --- */
aside {
    width: 250px;
    background: #e0f7fa;
    padding: 20px;
    height: 100vh;
    position: fixed;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.menu-header {
    text-align: center;
    margin-bottom: 20px;
}

.menu-header h2 {
    font-family: 'Pacifico', cursive;
    color: #00796b;
    font-size: 2em;
}

aside nav ul {
    list-style: none;
    padding: 0;
}

aside nav ul li {
    margin: 20px 0;
}

aside nav ul li a {
    color: #333;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2em;
    transition: color 0.3s;
}

aside nav ul li a:hover {
    color: #00796b;
    background-color: rgba(0, 121, 107, 0.2);
    padding: 5px 10px;
    border-radius: 5px;
}

aside a i {
    margin-right: 10px;
}

/* --- Contenu principal --- */
main {
    margin-left: 270px;
    padding: 20px 40px;
    flex: 1;
    transition: margin-left 0.3s;
}

header h1 {
    color: #00796b;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Roboto', sans-serif;
}

#about,
#projects,
#experience,
#education {
    margin-bottom: 40px;
}

/* --- Section à propos --- */
.about-content {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}

#about img {
    border-radius: 50%;
    border: 5px solid #e0f2f1;
    width: 100px;
    height: 100px;
    object-fit: cover;
    flex-shrink: 0;
}

.about-text {
    flex: 1;
}

/* --- Section projet, expérience, éducation --- */
.project,
.experience,
.education {
    background: #e0f2f1;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* --- Pied de page --- */
footer,
#contact {
    background: #e0f7fa;
    color: #333;
    text-align: center;
    padding: 20px 0;
    border-radius: 8px;
}

#contact h2 {
    color: #00796b;
    margin-bottom: 20px;
}

#contact p {
    margin: 10px 0;
    font-size: 1.1em;
}

.colon {
    margin: 0 5px;
    text-decoration: underline;
    text-decoration-color: #00796b;
    text-decoration-thickness: 2px;
}

.custom-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.custom-link:hover {
    color: #00796b;
}

/* --- Diaporama --- */
.slideshow-container {
    max-width: 600px;
    position: relative;
    margin: auto;
}

.mySlides {
    display: none;
}

.mySlides img {
    width: 100%;
    border-radius: 8px;
    height: auto;
    max-height: 400px;
    object-fit: cover;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    user-select: none;
    background-color: rgba(0,0,0,0.4);
}

.next {
    right: 0;
}

.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
}

.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.active, .dot:hover {
    background-color: #00796b;
}

/* --- Animation fade-in --- */
.fade-in {
    opacity: 0;
    transition: opacity 1s ease-out;
}

.fade-in.visible {
    opacity: 1;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    aside {
        width: 100%;
        height: auto;
        position: relative;
        box-shadow: none;
        border-bottom: 1px solid #ccc;
        padding: 10px;
    }

    .menu-header h2 {
        font-size: 1.5em;
    }

    main {
        margin-left: 0;
        padding: 20px 10px;
    }

    #about {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    #about img {
        margin: 0 auto 15px auto;
        display: block;
    }

    .about-text {
        text-align: left;
        padding: 0 10px;
    }

    iframe {
        width: 100% !important;
        height: auto;
        aspect-ratio: 16 / 9;
        border: none;
    }

    .slideshow-container {
        max-width: 100%;
        padding: 0 10px;
    }

    .project ul {
        padding-left: 20px;
    }
}
