@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;700&display=swap');

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(to right, #800000, #8B0000); 
    color: #CAE0BC;
}

/* --- navigation --- */
nav {
    display: flex;
    justify-content: center;
    padding: 20px 0;
    margin-left: 850px; 
    border-bottom: 3px solid #EAFAEA; 
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 30px;
}

nav ul li {
    display: inline;
}

nav ul li a {
    text-decoration: none;
    color: #CAE0BC;
    font-size: 24px;
    font-weight: 500;
}

/* --- section hero --- */
.hero {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    height: 90vh;
    text-align: left;
    padding-left: 10%;
}

.profile-image {
    width: 150px;
    height: auto;
    margin-left: 900px;
    margin-top: 50px;
}

.content {
    max-width: 600px;
}

.bold {
    font-weight: 700;
    font-size: 80px;
}

p {
    font-size: 18px;
    line-height: 1.5;
}

/* Structure principale */
.carousel-container {
    max-width: 900px;
    margin: 90px auto;
    font-family: 'Poppins', sans-serif;
    position: relative;
}

.carousel {
    margin-bottom: 50px;
}

/* Titres BUT */
.but-title {
    font-size: 4em;
    font-weight: 600;
    color: #CAE0BC;
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(to right, rgba(128, 0, 0, 0.9), rgba(139, 0, 0, 0.9));
    border-radius: 5px;
}

.semester-menu {
    margin: 20px auto;
}

.semester-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #CAE0BC;
    padding: 20px;
    margin: 10px 0;
    background: linear-gradient(to right, rgba(128, 0, 0, 0.8), rgba(139, 0, 0, 0.8));
    border-left: 4px solid #CAE0BC;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.semester-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.semester-content.active {
    max-height: 1000px;
    transition: max-height 0.3s ease-in;
}

.work-item {
    display: block;  
    text-decoration: none;  
    padding: 15px;
    margin: 10px 0;
    background: rgba(202, 224, 188, 0.1);
    color: #CAE0BC;
    border-left: 2px solid #CAE0BC;
    font-size: 1.2rem;
    transition: all 0.2s ease;
}

.work-item:hover {
    background: rgba(202, 224, 188, 0.2);
}

/* Flèche du menu déroulant */
.arrow {
    border: solid #CAE0BC;
    border-width: 0 3px 3px 0;
    display: inline-block;
    padding: 6px;
    transform: rotate(-135deg);
    transition: all 0.3s ease;
}

.active .arrow {
    transform: rotate(45deg);
}

.nav-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.nav-button {
    padding: 10px 20px;
    background: rgba(202, 224, 188, 0.2);
    border: 2px solid #CAE0BC;
    color: #CAE0BC;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
}

.nav-button:hover {
    background: rgba(202, 224, 188, 0.3);
    transform: scale(1.05);
}

.carousel-slide {
    display: none;
}

.carousel-slide.active {
    display: block;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

