/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* BODY */
body {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #0f172a, #1e1b4b);
    color: white;
    line-height: 1.6;
}
body {
    overflow-x: hidden; /* empêche le scroll horizontal */
}

/* HEADER FIXE */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(2, 6, 23, 0.95);
    backdrop-filter: blur(10px);
}

/* NAV */
.nav {
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav {
    flex-wrap: nowrap;
}

/* MENU */
.nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

/* LIENS */
.nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap; /* empêche les sauts */
}

.nav a:hover {
    color: #22c55e;
}

/* MENU MOBILE */
.menu-toggle {
    display: none;
    font-size: 25px;
    cursor: pointer;
}

/* PROMO */
.promo {
    text-align: center;
    padding: 30px;
    margin: 30px auto;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(30,41,59,0.85), rgba(2,6,23,0.85));
    backdrop-filter: blur(10px);
}

.promo h2 {
    color: #facc15;
    margin-bottom: 10px;
}

.promo .code {
    font-size: 40px;
    color: #22c55e;
    margin: 10px 0;
}

/* BOUTON */
.btn {
    display: inline-block;
    padding: 10px 25px;
    background: linear-gradient(90deg, #22c55e, #3b82f6);
    color: white;
    border-radius: 25px;
    text-decoration: none;
    transition: 0.3s;
}

.btn:hover {
    transform: scale(1.05);
}

/* SECTION GLOBALE */
.section {
    padding: 40px 20px;
}

/* ========================= */
/* SECTION ACTUALITÉS */
/* ========================= */

.actualiter {
    max-width: 100%;
    margin: 40px auto;
    padding: 20px;
    text-align: center;
}

.actualiter h2 {
    font-size: 26px;
    margin-bottom: 20px;
    color: #facc15;
}

/* SCROLL HORIZONTAL */
.scroll-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 15px;
}

/* SCROLLBAR */
.scroll-container::-webkit-scrollbar {
    height: 8px;
}

.scroll-container::-webkit-scrollbar-thumb {
    background: #22c55e;
    border-radius: 10px;
}

/* CARD */
.scroll-container .card {
    flex: 0 0 280px;
    background: rgba(30, 41, 59, 0.85);
    border-radius: 15px;
    padding: 15px;
    backdrop-filter: blur(8px);
    transition: 0.4s;
    scroll-snap-align: start;
}

.scroll-container .card:hover {
    transform: translateY(-5px) scale(1.03);
}

/* IMAGE (PARFAITE) */
/* IMAGE PARFAITE ET TOUJOURS CENTRÉE */
/* CONTENEUR IMAGE */
.scroll-container .team {
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 10px;
    position: relative;
}

/* IMAGE TOUJOURS CENTRÉE */
.scroll-container .team img {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
}
.scroll-container .team img {
    transition: transform 0.5s ease;
}

/* ZOOM HOVER */
.scroll-container .card:hover img {
    transform: scale(1.1);
}

/* DETAILS */
.scroll-container .details {
    text-align: left;
}

.scroll-container .details h2.prono {
    font-size: 18px;
    color: #22c55e;
    margin: 10px 0;
}

.scroll-container .details p.cote {
    font-size: 14px;
    color: #cbd5e1;
    margin-bottom: 10px;
}

/* FOOTER */
footer {
    text-align: center;
    padding: 20px;
    font-size: 13px;
    background: rgba(2, 6, 23, 0.9);
}

/* ========================= */
/* RESPONSIVE */
/* ========================= */

@media (max-width: 700px) {

    .nav ul {
        position: fixed; /* important */
        top: 60px;
        right: 0;
        height: calc(100vh - 60px);
        width: 220px;
        background: rgba(2, 6, 23, 0.98);
        flex-direction: column;
        padding: 20px;
        gap: 15px;

        transform: translateX(100%);
        transition: transform 0.3s ease;
    }

    .nav ul.show {
        transform: translateX(0);
    }
}
/* SECTION INSCRIPTION */
.inscription {
    max-width: 900px;
    margin: 50px auto;
    padding: 30px;
    border-radius: 20px;
    background: rgba(30, 41, 59, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.5);
    text-align: center;
}

/* TITRE */
.inscription h2 {
    font-size: 26px;
    margin-bottom: 20px;
    color: #facc15;
}

/* CODE */
.inscription .code {
    font-size: 45px;
    font-weight: bold;
    color: #22c55e;
    margin: 20px 0;
    letter-spacing: 4px;
}

/* TEXTE */
.inscription p {
    font-size: 16px;
    color: #e2e8f0;
    margin-bottom: 15px;
    line-height: 1.7;
}

/* LISTES */
.inscription ul,
.inscription ol {
    text-align: left;
    max-width: 600px;
    margin: 20px auto;
    padding-left: 20px;
}

.inscription li {
    margin-bottom: 10px;
}

/* BOUTONS */
.inscription .btn,
.inscription .btn-secondary {
    margin: 10px;
}

/* BOUTON COPY */
.copy-btn {
    cursor: pointer;
}