/* Reset et variables */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --text-color: #333;
    --text-light: #7f8c8d;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f9f9f9;
}

/* En-tête */
header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
}

.logo-container {
    text-align: center;
    margin-bottom: 0.5rem;
}

.logo {
    max-width: 150px;
    height: auto;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

header h1 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

nav {
    text-align: center;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: background-color 0.3s;
    border-radius: 4px;
}

nav ul li a:hover {
    background-color: var(--secondary-color);
}

/* Contenu principal */
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.hero {
    background-color: var(--secondary-color);
    color: white;
    padding: 2rem;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-overlay {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 2rem;
    border-radius: 8px;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.content {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.content p {
    margin-bottom: 1rem;
}

.content-with-image {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: center;
}

.content-image {
    flex: 1;
}

.content-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.content-text {
    flex: 1;
}

@media (max-width: 768px) {
    .content-with-image {
        flex-direction: column;
    }
}

/* Formulaire */
form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

form label {
    font-weight: 600;
    color: var(--primary-color);
}

form input,
form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

form textarea {
    resize: vertical;
    min-height: 100px;
}

form button {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 0.8rem;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

form button:hover {
    background-color: var(--accent-color);
}

/* Pied de page */
footer {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }

    .hero h2 {
        font-size: 2rem;
    }
}

/* Bandeau jeux winnovation */
.jeux {
    background-color: #13233F;
    border-radius: 20px;
    padding: 2.6rem 2.2rem 2.4rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.jeux-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.8rem;
}

.jeux-intro {
    flex: 1 1 320px;
}

.jeux-eyebrow {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #7FD8FF;
    margin-bottom: 0.55rem;
}

.jeux h2 {
    font-family: 'Baloo 2', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 700;
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    line-height: 1.1;
    color: #fff;
    margin-bottom: 0.6rem;
}

.jeux-pitch {
    color: #C7D6EC;
    max-width: 58ch;
}

.jeux-badge {
    display: inline-block;
    transition: transform 0.25s;
}

.jeux-badge img {
    display: block;
    height: 60px;
    width: auto;
    border-radius: 8px;
}

.jeux-badge:hover {
    transform: translateY(-2px);
}

.jeux-badge:focus-visible {
    outline: 3px solid #7FD8FF;
    outline-offset: 3px;
}

.jeux-band {
    overflow: hidden;
    display: grid;
    gap: 14px;
    padding-block: 6px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.jeux-track {
    display: flex;
    width: max-content;
    animation: jeux-scroll 64s linear infinite;
}

.jeux-track--rev {
    animation-direction: reverse;
}

.jeux-band:hover .jeux-track,
.jeux-band:focus-within .jeux-track {
    animation-play-state: paused;
}

.jeux-row {
    display: flex;
    gap: 14px;
    padding-right: 14px;
}

.jeux-card {
    flex: 0 0 auto;
    width: 136px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 16px 12px 14px;
    background-color: #1D3357;
    border-radius: 16px;
    text-align: center;
    text-decoration: none;
    transition: transform 0.25s, background-color 0.25s, box-shadow 0.25s;
}

.jeux-card:hover,
.jeux-card:focus-visible {
    background-color: #24406E;
    transform: translateY(-5px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.4);
}

.jeux-card:focus-visible {
    outline: 3px solid #7FD8FF;
    outline-offset: 3px;
}

.jeux-icon {
    width: 84px;
    height: 84px;
    border-radius: 18px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
    transition: transform 0.25s;
}

.jeux-card:hover .jeux-icon {
    transform: scale(1.06);
}

.jeux-name {
    font-family: 'Baloo 2', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.25;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.jeux-dl {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7FD8FF;
    opacity: 0.55;
    transition: opacity 0.25s;
}

.jeux-card:hover .jeux-dl,
.jeux-card:focus-visible .jeux-dl {
    opacity: 1;
}

@keyframes jeux-scroll {
    to {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .jeux-track {
        animation: none;
        width: auto;
        flex-wrap: wrap;
    }

    .jeux-track--rev {
        animation: none;
    }

    .jeux-row--copy {
        display: none;
    }

    .jeux-band {
        overflow: visible;
        -webkit-mask-image: none;
        mask-image: none;
    }

    .jeux-card,
    .jeux-badge,
    .jeux-icon {
        transition: none;
    }
}

@media (max-width: 640px) {
    .jeux {
        padding: 1.9rem 1.1rem 1.7rem;
    }

    .jeux-badge img {
        height: 52px;
    }

    .jeux-card {
        width: 118px;
    }

    .jeux-icon {
        width: 70px;
        height: 70px;
    }
}