/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, Arial, sans-serif;
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    background-color: #3d5a6c;
    height: 60px;
    width: 100%;
}

/* CONTAINER PRINCIPAL */
.container {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 40px;
    gap: 50px;
}

/* LEFT SECTION */
.left-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 300px;
}

/* LOGO */
.logo {
    font-size: 60px;
    font-weight: 800;
    color: #3d5a6c;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

/* TITRES */
.left-section > h1:not(.logo) {
    font-size: 38px;
    font-weight: 700;
    color: #222;
    margin-bottom: 15px;
    animation: fadeInUp 0.8s ease forwards;
}

.left-section .small {
    font-size: 22px;
    color: #3d5a6c;
    font-weight: 500;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease forwards;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* TEXT BOX */
.text-box {
    background: #ffffff;
    padding: 30px 35px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-left: 5px solid #3d5a6c;
    margin-bottom: 40px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.text-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    background: #f7fbfc;
}

/* START BUTTON */
.start-btn {
    background: linear-gradient(135deg,#3d5a6c,#5a7a8c);
    color: white;
    border: none;
    padding: 20px 50px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 20px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(61, 90, 108, 0.6);
    text-align: center;
    display: inline-block;
    width: fit-content;
}

.start-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 20px 40px rgba(61, 90, 108, 0.8); 
    background: linear-gradient(135deg,#5a7a8c,#3d5a6c);
    text-decoration: none;
}

/* RIGHT SECTION / CAROUSEL */
.right-section {
    flex: 1;
    min-width: 300px;
    max-width: 550px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.carousel-container {
    width: 100%;
    height: 800px;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    position: relative;
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: contain; 
    display: block;
    margin: 0 auto;
    border-radius: 20px;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(61, 90, 108, 0.7);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background-color 0.3s;
}

.carousel-arrow:hover {
    background-color: rgba(61, 90, 108, 0.9);
}

.carousel-arrow.left {
    left: 10px;
}

.carousel-arrow.right {
    right: 10px;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .container {
        flex-direction: column-reverse;
        padding: 40px 20px;
        gap: 30px;
    }
    .right-section {
        max-width: 100%;
    }
    .carousel-container {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 40px;
    }
    .left-section > h1:not(.logo) {
        font-size: 28px;
    }
    .left-section .small {
        font-size: 18px;
    }
    .carousel-container {
        height: 200px;
    }
}
