body{
    margin: 0;
    padding: 0;
}

section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding: 80px 5%;
    font-family: 'Alata', sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Une section sur deux → fond bleu */
section:nth-child(even) {
    background-color: #00425C;
    color: white;
}

section .Text {
    flex: 1;
    max-width: 600px;
}

section .Text h1 {
    padding-bottom: 15px;
    font-size: 2.2rem;
    margin-bottom: 10px;
}

section .Text h2 {
    padding-bottom: 15px;
    font-size: 1.2rem;
    color: #ff6600;
    margin-bottom: 20px;
}

section:nth-child(even) .Text h2 {
    color: #ffa64d;
}

section .Text p {
    font-size: 1rem;
    line-height: 1.6;
    text-align: justify;
}

section .Image {
    flex: 1.2;
    display: flex; /* <--- en ligne sur PC */
    justify-content: center;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap; /* permet de passer à la ligne si trop d'images */
}

section .Image img {
    width: 300px; /* taille fixe confortable */
    height: 300px;
    object-fit: cover;
    background-color: #d9d9d9;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

section .Image img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* === Lightbox (zoom images) === */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    flex-direction: column;
}

.lightbox-content {
    position: relative;
    text-align: center;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 75vh;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255,255,255,0.3);
}

.close {
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 40px;
    color: white;
    cursor: pointer;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 10px 15px;
}

.prev { left: -60px; }
.next { right: -60px; }

.thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    margin-top: 20px;
    padding: 10px;
    justify-content: center;
}

.thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    opacity: 0.6;
    border-radius: 6px;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
}

.thumb:hover {
    opacity: 1;
    transform: scale(1.05);
}

.thumb.active {
    opacity: 1;
    border: 2px solid #ff6600;
}


/* TABLETTES (moins de 1100px) */
@media (max-width: 1100px) {
    section {
        gap: 40px;
        padding: 60px 8%;
    }

    section .Image img {
        width: 260px;
        height: 260px;
    }

    section .Text h1 {
        font-size: 1.9rem;
    }

    section .Text h2 {
        font-size: 1.1rem;
    }
}

/* MOBILES (moins de 900px) */
@media (max-width: 900px) {
    section {
        flex-direction: column;
        text-align: center;
        padding: 60px 6%;
    }

    section .Text {
        max-width: none;
    }

    section .Image {
        flex-wrap: wrap;
        justify-content: center;
    }

    section .Image img {
        width: 220px;
        height: 220px;
    }
}

/* PETITS MOBILES (moins de 600px) */
@media (max-width: 600px) {
    section {
        padding: 50px 5%;
    }

    section .Image {
        flex-direction: column; /* empile les images */
        align-items: center;
        gap: 25px;
    }

    section .Image img {
        width: 90%;
        max-width: 360px;
        height: auto;
    }

    section .Text h1 {
        font-size: 1.6rem;
    }

    section .Text h2 {
        font-size: 1rem;
    }

    section .Text p {
        font-size: 0.95rem;
    }
}
