body {
    margin: 0;
    font-family: 'bub', sans-serif;
    background: #EEE;
    text-align: center;
    color: #000000; /* Ceci rend le texte blanc */
}

@font-face {
    font-family: 'bub';
    src: url('/fonts/BubCyrilic_b.woff2') format('woff2'),
    url('/fonts/BubCyrilic_b.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

p {
    font-size: 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: bold;
    font-family: 'bub', Arial, sans-serif;
}

.logo-icon {
    height: 48px;
    width: auto;
    display: block;
}

.page {
    max-width: 1300px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
    margin: auto;
    background: linear-gradient(
            to bottom,
            #60ffec,
            #ffffff 5%,
            #cdfdf9 10%,
            #ffffff 20%,
            #cdfdf9 30%,
            #ffffff 40%,
            #cdfdf9 60%,
            #ffffff 70%,
            #ffffff
    );
}

.conteneur {
    width: 100%;
    margin: 0 auto;
}

/* TITRE PRINCIPAL – H1 */
h1 {
    font-family: 'bub', sans-serif;
    font-size: clamp(3.2rem, 5vw, 3.5rem);
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: -33px;
    letter-spacing: 0.1em;
    position: relative;
    display: block;
    z-index: 1;
    background: -webkit-linear-gradient(bottom, #ff16bd, #ffcaea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter:
            drop-shadow(1px 0px 0px #b30197)
            drop-shadow(-1px 0px 0px #ff00c3)
            drop-shadow(0px 1px 0px #b30197)
            drop-shadow(0px -1px 0px #ff00c3)
            drop-shadow(0px 2px 0px #c800a1)
            drop-shadow(2px 3px 1px #00000075);
}

/* SOUS-TITRE – H2 */
h2 {
    font-family: 'bub', sans-serif;
    font-size: clamp(2rem, 5vw, 2.1rem);
    font-weight: bold;
    line-height: 1.2;
    margin top: 0;
    margin-bottom: -12px;
    letter-spacing: 0.1em;
    position: relative;
    display: block;
    z-index: 1;
    /* color: #ffe000; */
    background: -webkit-linear-gradient(bottom, #ffc400, #fbf141);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter:
            drop-shadow(1px 0px 0px #d16b00)
            drop-shadow(-1px 0px 0px #ff8800)
            drop-shadow(0px 1px 0px #d16b00)
            drop-shadow(0px -1px 0px #ff8800)
            drop-shadow(0px 1px 0px #ff7300)
            drop-shadow(2px 2px 1px #00000075);
}

h3 {
    font-family: Arial, sans-serif;
    font-size: 18px;
    font-weight: bold;
    margin-top: -18px;
    margin-bottom: 30px;
    letter-spacing: 0.1em;
    position: relative;
    display: block;
    z-index: 1;
    color: #000000;
}
h4 {
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: bold;
    margin-top: -18px;
    margin-bottom: 30px;
    letter-spacing: 0.1em;
    position: relative;
    display: block;
    z-index: 1;
    color: #000000;
}

/* Mobile : moins de 768px de large */
@media (max-width: 768px) {
    h1 {
        font-size: 2.9rem;
        margin-bottom: -21px;
    }

    h2 {
        font-size: 1.6rem;
        margin-bottom: -12px;
    }
    h3 {
        font-size: 14px;
    }
    h4 {
        font-size: 12px;
    }
    p {
        font-size: 25px;
    }
}

/* Mobile : moins de 440px de large */
@media (max-width: 440px) {
    h1 {
        font-size: 2.3rem;
        margin-bottom: -15px;
    }

    h2 {
        font-size: 1.2rem;
        margin-bottom: -11px;
    }
    h3 {
        font-size: 10px;
    }
    h4 {
        font-size: 8px;
    }
    p {
        font-size: 20px;
    }
}

section {
    padding: 3px 5px;
    max-width: 1300px;
    margin: 0 auto;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: #f5f5f5;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav ul {
    display: flex;
    gap: 15px;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
}

nav ul li a {
    text-decoration: none;
    color: #000;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #ff3d9e;
    text-decoration: underline;
}

nav ul li select {
    padding: 6px 10px;
    font-size: 14px;
    border-radius: 5px;
    border: 1px solid #ccc;
    background-color: #fff;
}

/* Menu toggle pour mobile */
.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
    user-select: none;
}

/* Menu responsive */
@media (max-width: 999px) {
    nav ul {
        display: none;
        flex-direction: column;
        background: #f5f5f5;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        padding: 20px 0;
        border-top: 1px solid #ccc;
        gap: 15px;
        z-index: 1001;
    }

    nav ul.show {
        display: flex;
    }

    nav ul li a {
        font-size: 18px;
    }

    nav ul li select {
        font-size: 16px;
        padding: 8px 12px;
    }

    .menu-toggle {
        display: block;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
        margin-top: 250px;
    }

    .cta-buttons .btn {
        width: 80%;
    }

    .carousel-item {
        min-width: 140px;
        font-size: 0.8rem;
        padding: 6px;
    }

    .carousel-item img {
        border-radius: 8px;
    }

    .video-placeholder {
        aspect-ratio: 16 / 9;
        height: auto !important;
        width: 90%;
        max-width: 100%;
        margin: 20px auto;
    }
}

.feature-image {
    width: 85%;
    max-width: 600px;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 25px;
    border: 6px solid #fed518;
    box-shadow: 0 0 10px #00000080;
}

@media (min-width: 1000px) {
    .menu-toggle {
        display: none;
    }
}

.hero {
    position: relative;
    max-width: 1300px; /* limite sur desktop */
    width: 100%;        /* autorise la réduction sur mobile */
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-img {
    width: 100%;
    display: block;
}

.cta-buttons {
    position: absolute;
    top: 75%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 20px;
    flex-direction: row; /* ✅ côte à côte par défaut */
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}


.store-badge {
    height: 80px;
    max-height: 10%;
    display: block;
}

@media (max-width: 1200px) {
    .cta-buttons {
        flex-direction: row;
        gap: 12px;
        position: static; /* annule le positionnement absolu */
        transform: none;
        margin-top: -131px;
    }

    .store-badge {
        height: 70px;
        max-width: 300px;
    }

    .hero {
        padding-bottom: 55px;
    }
}


@media (max-width: 1000px) {
    .cta-buttons {
        flex-direction: row;
        gap: 12px;
        position: static; /* annule le positionnement absolu */
        transform: none;
        margin-top: -120px;
    }

    .store-badge {
        height: 60px;
        max-width: 300px;
    }

    .hero {
        padding-bottom: 50px;
    }
}

@media (max-width: 800px) {
    .cta-buttons {
        flex-direction: row;
        gap: 12px;
        position: static; /* annule le positionnement absolu */
        transform: none;
        margin-top: -88px;
    }

    .store-badge {
        height: 50px;
        max-width: 300px;
    }

    .hero {
        padding-bottom: 30px;
    }
}


@media (max-width: 600px) {
    .cta-buttons {
        flex-direction: row;
        gap: 12px;
        position: static; /* annule le positionnement absolu */
        transform: none;
        margin-top: -69px;
    }

    .store-badge {
        height: 40px;
        max-width: 300px;
    }

    .hero {
        padding-bottom: 30px;
    }
}


@media (max-width: 500px) {
    .cta-buttons {
        flex-direction: row;
        gap: 12px;
        position: static; /* annule le positionnement absolu */
        transform: none;
        margin-top: -62px;
    }

    .store-badge {
        height: 35px;
        max-width: 300px;
    }

    .hero {
        padding-bottom: 30px;
    }
}

@media (max-width: 400px) {
    .cta-buttons {
        flex-direction: row;
        gap: 12px;
        position: static; /* annule le positionnement absolu */
        transform: none;
        margin-top: -50px;
    }

    .store-badge {
        height: 28px;
        max-width: 300px;
    }

    .hero {
        padding-bottom: 30px;
    }
}

.btn {
    padding: 10px 20px;
    margin: 5px;
    text-decoration: none;
    background-color: #ff69b4;
    color: white;
    border-radius: 5px;
}

.video-placeholder {
    width: 90%;
    max-width: 600px;
    height: auto;
    aspect-ratio: 16 / 9;
    margin: 20px auto;
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-style: italic;
    color: #666;
}

.carousel {
    padding: 40px 0;
   /*  background-color: #fffdb0; */
    overflow: hidden;
   /* border-radius: 10px; */
}

.carousel h2 {
    margin-bottom: 10px;
}

.carousel p {
    margin-bottom: 30px;
    font-size: 1rem;
    color: #ffffff;
}

.carousel-track {
    display: flex;
    width: max-content;
    animation: scrollCarousel 40s linear infinite;
}

@keyframes scrollCarousel {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.carousel-item {
    min-width: 120px;
    background-color: #303030;
    padding: 10px;
    border-radius: 10px;
    text-align: center;
    flex: none;
    margin: 0 10px;
    color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.carousel-item-photo {
    width: 280px;
    height: auto;
    border-radius: 10px;
}

.flag-container {
    display: inline-block;
    width: 24px;
    height: 16px;
    overflow: hidden;
    vertical-align: middle;
    border-radius: 0 !important; /* 🔒 verrouillage visuel */
}

.carousel-item-flag {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0 !important; /* 🔒 empêche tout arrondi du SVG */
    clip-path: none !important;  /* au cas où un masque visuel serait appliqué */
    mask: none !important;
}

@media (max-width: 950px) {
    .carousel-item-photo {
        width: 240px;
        height: auto;
        border-radius: 8px;
    }
}

@media (max-width: 700px) {
    .carousel-item-photo {
        width: 180px;
        height: auto;
        border-radius: 6px;
    }
}

@media (max-width: 450px) {
    .carousel-item-photo {
        width: 100px;
        height: auto;
        border-radius: 4px;
    }
}

.carousel-prize-name {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #ffe6f2;
    font-size: 12px;
    font-weight: bold;
}


footer form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    max-width: 400px;
    margin: 0 auto 30px;
}

footer input[type="email"],
footer textarea {
    width: 80%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

footer button {
    padding: 10px 20px;
    background-color: #ff69b4;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.image-button-reglement {
    display: inline-block;
    position: relative;
    text-align: center;
    width: fit-content;
    cursor: pointer;
    text-decoration: none;
}

.image-button-reglement img {
    display: block;
    width: 280px;
    max-width: 80%;
    height: auto;
    min-height: 90px;
    margin: 0 auto;
}

.image-button-reglement span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: Arial, sans-serif;
    font-size: 0.95rem;
    color: #333;
    font-weight: normal;
    /* padding: -10px; */
    font-family: 'bub', sans-serif;
    pointer-events: none; /* le clic passe à travers jusqu'au lien */
}

.legal {
    padding: 10px 0;
    background-color: #f4f4f4;
    width: 90%;
    max-width: 600px;
    margin: 20px auto;
    border-radius: 8px;

    border: #a8a8a8 solid 1px;
}

.legal-text {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    font-weight: bold;
    color: #333;
    text-align: center;
}

.custom-select-lang {
    position: relative;
    cursor: pointer;
    user-select: none;
    width: 150px;
    margin-top: 5px;
}

.custom-select-lang .selected {
    background: #fff;
    border: 1px solid #ccc;
    padding: 6px 10px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.custom-select-lang .lang-options {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 2000;
    background: #fff;
    border: 1px solid #ccc;
    width: max-content;
    min-width: 150px;
    max-height: 400px;
    overflow-y: auto; /* <-- important */
    overflow-x: hidden;
}

.custom-select-lang.open .lang-options {
    display: block;
}

.custom-select-lang .lang-options li {
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.custom-select-lang .lang-options li:hover {
    background-color: #eee;
}

.custom-select-lang img {
    width: 25px;
    height: auto;
    max-height: 18px;
    object-fit: contain;
}

.custom-select-lang .selected img,
.custom-select-lang .lang-options img {
    display: inline-block;
    vertical-align: middle;
}

.custom-select-lang .lang-options {
    transition: max-height 0.2s ease-in-out;
}