/* =================================================================
   STYLES GÉNÉRAUX & VARIABLES
   =================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #ffffff;
    color: #333333;
    font-family: 'Noto Sans', sans-serif;
    font-weight: 300;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
}

.page-wrapper {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

/* =================================================================
   EN-TÊTE & NAVIGATION
   =================================================================== */
header {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: 55px;
    margin-bottom: 35px;
}

header h1 {
    font-size: 2.3rem;
    font-weight: 300;
    letter-spacing: 6px;
    text-align: center;
    margin-bottom: 35px;
    color: #222222;
}

nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: fit-content;
    margin: 0 auto 30px auto;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 6px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 35px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0;
}

nav ul li a,
nav ul li span {
    text-decoration: none;
    color: #333333;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: color 0.2s ease;
}

nav ul li a:hover,
nav ul li a.active-link,
nav ul li span.active-link {
    color: #777777;
    border-bottom: 1px solid #333333;
    padding-bottom: 2px;
}

.burger-menu {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #333333;
    margin-bottom: 10px;
}

/* =================================================================
   ACCUEIL & PAGES DE CONTENU
   =================================================================== */
.home-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    flex: 1;
    padding: 0 20px 40px 20px;
}

.home-main img {
    display: block;
    max-height: 68vh;
    max-width: 100%;
    object-fit: contain;
    margin: 0 auto;
}

.content,
main:not(.home-main) {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 900px;
    margin: 20px auto 60px auto;
    text-align: center;
    padding: 0 20px;
}

.content h2,
main:not(.home-main) h2,
.content h3,
main:not(.home-main) h3 {
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 25px;
    color: #333333;
    text-align: center;
    width: 100%;
}

.born {
    font-style: italic;
    margin-bottom: 25px;
    line-height: 1.7;
    font-size: 0.95rem;
    color: #444444;
    text-align: center;
    width: 100%;
}

.liste,
.content p,
main:not(.home-main) p {
    font-size: 0.92rem;
    line-height: 1.8;
    color: #444444;
    margin-bottom: 20px;
    text-align: center;
    width: 100%;
}

/* =================================================================
   CARROUSEL
   =================================================================== */
.carousel-container {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    outline: none;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px 40px 60px;
}

.carousel-slide {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
}

.carousel-slide.active {
    display: flex;
}

.carousel-slide img {
    max-height: 65vh;
    max-width: 100%;
    object-fit: contain;
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.image-caption {
    margin-top: 20px;
    font-style: italic;
    font-size: 0.95rem;
    color: #555555;
    letter-spacing: 0.5px;
    text-align: center;
    width: 100%;
}

#image-counter {
    position: absolute;
    top: 10px;
    right: 40px;
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: #666666;
    z-index: 10;
}

#prevBtn, #nextBtn {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    font-family: 'Noto Sans', sans-serif;
    font-weight: 300;
    font-size: 1.6rem;
    color: #555555;
    cursor: pointer;
    padding: 30px 20px;
    z-index: 1100;
    opacity: 0.55;
    transition: opacity 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

#prevBtn:hover, #nextBtn:hover {
    opacity: 1;
    color: #111111;
}

#prevBtn {
    left: 25px;
}

#prevBtn:hover {
    transform: translateY(-50%) translateX(-4px);
}

#nextBtn {
    right: 25px;
}

#nextBtn:hover {
    transform: translateY(-50%) translateX(4px);
}

/* =================================================================
   ZOOM & LIENS
   =================================================================== */
.carousel-slide img.zoomed {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-height: 90vh;
    max-width: 85vw;
    object-fit: contain;
    z-index: 1000;
    cursor: zoom-out;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.95);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 999;
}

.overlay.active {
    visibility: visible;
    opacity: 1;
}

a, a:link, a:visited {
    color: #333333;
    text-decoration: none;
}
a:hover {
    color: #777777;
}

/* =================================================================
   RESPONSIVE
   =================================================================== */
@media (max-width: 768px) {
    .burger-menu {
        display: block;
    }

    nav {
        border-bottom: none;
        padding-bottom: 0;
        width: 100%;
    }

    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 130px;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        border-bottom: 1px solid #e0e0e0;
        padding: 20px 0;
        text-align: center;
        gap: 20px;
        z-index: 100;
    }

    nav ul.active {
        display: flex;
    }

    .carousel-container {
        padding: 0 10px;
    }

    .content,
    main:not(.home-main) {
        width: 90%;
        padding: 10px 10px 40px 10px;
    }

    #image-counter {
        top: 10px;
        right: 20px;
    }

    #prevBtn {
        left: 5px;
    }

    #nextBtn {
        right: 5px;
    }
}