html {
    background-color: #191919;
    color: #ffffff;
    font-family: "League Spartan", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-size: 24px;
    scroll-behavior: smooth;
    text-align: justify;
    overflow-x: clip;
}

body {
    margin: 0;
    overflow-x: clip;; /* Prevent horizontal scrolling */
}

header {
    position: sticky;
    top: 0%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    background-color: #323232;
    padding: 1rem;
    z-index: 100;
    border-radius: 0;
    transition: top 0.3s ease, margin 0.3s ease, border-radius 0.3s ease;
}

@media (min-width: 1200px) {
    header {
        padding-left: 4rem;
        padding-right: 4rem;
    }
    
    .popover {
        top: 0.8rem;
        margin: 0.8rem;
        border-radius: 1rem;

        transition: top 0.3s ease, margin 0.3s ease, border-radius 0.3s ease;
    }
}

footer {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    column-gap: 3rem;
    row-gap: 2rem;
    padding: 1rem;
    background-color: #323232;
}

main {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

@media (max-width: 800px) {
    section {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

img {
    max-width: 100%;
    height: auto;
}

section {
    scroll-margin-top: 5rem; /* Compense pour la hauteur du header */
    padding-left: 10%;
    padding-right: 10%;
}

.section-left {
    position: relative;
    padding-right: 35%;
    text-align: left;
}

.section-left::before {
    content: "";
    position: absolute;
    left: -20%;
    top: -15%;
    width: 120%;
    height: 130%;
    background: radial-gradient(
        ellipse at left center,
        var(--gradient-color, hsla(206, 100%, 64%, 0.5)) 0%,
        rgba(91, 157, 255, 0) 60%
    );
    z-index: -1; /* Place behind content */
}

.section-left.animate {
    opacity: 0;
    transform: translateX(-10%);
    transition: transform 0.6s ease, opacity 0.6s ease;
}

.section-left.in-view {
    opacity: 1;
    transform: translateX(0);
    transition: transform 0.6s ease, opacity 0.6s ease;
}

.section-right {
    position: relative;
    padding-left: 35%;
    text-align: right;
    overflow: hidden;
}

.section-right::before {
    content: "";
    position: absolute;
    left: 20%;
    top: -15%;
    width: 120%;
    height: 130%;
    background: radial-gradient(ellipse at right center,
            var(--gradient-color, hsla(206, 100%, 64%, 0.5)) 0%,
            rgba(91, 157, 255, 0) 60%);
    z-index: -1;
}

.section-right.animate {
    opacity: 0;
    transform: translateX(10%);
    transition: transform 0.6s ease, opacity 0.6s ease;
}

.section-right.in-view {
    opacity: 1;
    transform: translateX(0);
    transition: transform 0.6s ease, opacity 0.6s ease;
}

@media (max-width: 1200px) {
    .section-left, .section-right {
        /* padding: 0; */
        padding-left: 1rem;
        padding-right: 1rem;
        text-align: justify;
    }
    
    section {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

a {
    color: #91c2ff;
    text-decoration: none;
    transition: color 0.1s ease;
}

a:hover {
    color: #91ffda;
    transition: color 0.1s ease;
}

.header-item {
    font-size: 1rem;
    margin: 0rem;
    margin-top: .1rem;
    margin-bottom: -.1rem;
}

a.header-item {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.1s ease;
}

a.header-item:hover {
    color: #91c2ff;
    transition: color 0.1s ease;
}

@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.logo {
    background: linear-gradient(45deg, #8ff0a4, #99c1f1, #d48ff0);
    background-size: 200% 200%;
    background-position: 0% 50%;
    transition: background-position 0.4s ease;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.5rem;
    display: inline-block;
}

.logo:hover {
    background-position: 100% 50%;
    transition: background-position 0.4s ease;
}

.footer-img {
    border-radius: 0;
    height: 1.5rem;
}

.flex-grow {
    flex: 1 1 0;
}

img {
    border-radius: 1rem;
}

.animate {
    opacity: 0;
    transition: opacity 0.6s ease;
}

.in-view {
    opacity: 1;
    transition: opacity 0.6s ease;
}

.subtitle {
    font-weight: 500;
    font-size: 1.4rem;
    margin: 0;
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    scroll-margin-top: 10rem;
    height: 70vh;
}

.hero-img {
    width: 55%;
}

.members {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    column-gap: 4rem;
    row-gap: 2rem;
    margin-top: 3rem;
    margin-bottom: 1rem;
}

.member {
    width: 7rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.member-photo {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    object-fit: cover;
    background-color: #d5e7ff;
    /* background-image: linear-gradient(45deg,#ccf4d6,#c8def8); */
}

.camera {
    display: flex;
    gap: 10px; /* espace entre images */
}

.pdf-export{
    display: flex;
    gap: 10px; /* espace entre images */
    width: 50%;
}

.camera img {
    width: 20%; /* 5 images = 20% chacune */
    height: auto;
}

@media (max-width: 1200px) {
    .hide-mobile {
        display: none;
    }
}

@media (min-width: 1200px) {
    .hide-desktop {
        display: none;
    }
}

.image-not-too-big {
    display: block;
    max-width: 70%;
    height: auto;
    margin: 0 auto;
}

.flag {
    width: 1.5rem;
    border-radius: .4rem
}

a>img {
    transition: filter 0.2s ease;
}

a:hover>img {
    filter: brightness(0.65);
}
@media print {
    html {
        background-color: #ffffff !important;
        color: #000000 !important;
        overflow: visible !important;
    }

    body {
        overflow: visible !important;
    }

    .animate,
    .section-left.animate,
    .section-right.animate,
    .in-view,
    .section-left.in-view,
    .section-right.in-view {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    /* Avoid decorative gradients interfering with print readability */
    .section-left::before,
    .section-right::before {
        display: none !important;
    }

    /* Keep print layout simple and readable */
    header,
    footer {
        position: static !important;
        top: auto !important;
        background: transparent !important;
        color: #000000 !important;
    }

    .logo {
        background: none !important;
        -webkit-text-fill-color: #000000 !important;
        color: #000000 !important;
    }

    a,
    a.header-item {
        color: #000000 !important;
        text-decoration: underline !important;
    }

    .hide-mobile {
        display: block !important;
    }

    .hide-desktop {
        display: none !important;
    }
}