body {
    margin: 0;
    font-family: 'Roboto', system-ui, sans-serif;
    background: #f5f5f5;
    color: #222;
}

h1, h2, h3 {
    font-family: system-ui, sans-serif;
    margin-top: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

/* HEADER */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: #111;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-weight: 700;
    letter-spacing: 0.05em;
}

/* BANNIÈRE */
#banner {
    width: 100%;
    height: auto;
    overflow: visible;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000; /* optionnel */
}

#banierercbolides {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* MENU */
#menu ul {
    list-style: none;
    display: flex;
    gap: 18px;
    margin: 0;
    padding: 0;
}

#menu a {
    color: #fff;
    font-weight: 500;
}

/* BURGER */
.burger {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    z-index: 2000;
}

.burger span {
    width: 26px;
    height: 3px;
    background: #fff;
    border-radius: 3px;
    transition: 0.3s ease;
	
}

/* Animation burger ? croix */
.burger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* HERO */
.hero {
    min-height: 55vh;
    background: #333 center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 40px 20px;
}

.hero-content h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.hero-content p {
    max-width: 600px;
    margin: 0 auto 15px;
}

.btn {
    display: inline-block;
    padding: 10px 22px;
    background: #e63946;
    color: #fff;
    border-radius: 4px;
    font-weight: 600;
}

/* SECTIONS */
.section {
    padding: 50px 20px;
    background: #fff;
    text-align: center;
}

.section.alt {
    background: #ececec;
}

.section p {
    max-width: 800px;
    margin: 0 auto 15px;
}

/* TEST YOUTUBE  */
 .video-container {
    position: relative;
    width: 100%;
    max-width: 800px;   /* réduit la taille globale de la vidéo */
    margin: 0 auto;     /* centre la vidéo */
    aspect-ratio: 16 / 9;
}

.video-container iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* IMAGE DU CIRCUIT — VERSION FINALE CENTRÉE */
.circuit-img {
    display: block;
    width: 100%;
    max-width: 900px; /* taille max sur grand écran */
    height: auto;
    margin: 0 auto; /* centre l’image */
    border-radius: 8px; /* optionnel */
}


.section.alt .circuit-img {
    display: block;
    width: 100%;
    max-width: 900px;
    height: auto;
    margin-left: auto;
    margin-right: auto;
}
.section.alt {
    text-align: center;
}


/* LISTES */
.list {
    max-width: 700px;
    margin: 0 auto;
    text-align: left;
}

.list li {
    margin-bottom: 6px;
}

/* CARDS */
.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.card {
    background: #fff;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.card h3 {
    margin-bottom: 10px;
}

.link {
    color: #e63946;
    font-weight: 600;
}

/* FOOTER */
footer {
    text-align: center;
    padding: 18px;
    background: #111;
    color: #fff;
    font-size: 0.9rem;
}

 .contact-banner {
            background: url('img/logo buggy gavray.jpg') center/cover no-repeat ;
            padding: 80px 20px;
            text-align: center;
            color: #fff;
            border-bottom: 1px solid red;
        }

        .contact-banner h1 {
            font-size: 2.8rem;
            text-transform: uppercase;
            letter-spacing: 3px;
            margin: 0;
            text-shadow: 0 0 10px #000;
        }

        .contact-container {
            max-width: 1100px;
            margin: 60px auto;
            padding: 20px;
        }

        .contact-grid {
            display: grid;
            grid-template-columns: 1.2fr 1fr;
            gap: 35px;
        }

        .contact-card {
            background: #141414;
            padding: 30px;
            border-radius: 10px;
            border: 1px solid #222;
            box-shadow: 0 0 15px rgba(0,0,0,0.5);
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }

        .contact-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 0 20px rgba(255,204,0,0.3);
        }

        .contact-card h2 {
            color: #ffcc00;
            text-transform: uppercase;
            margin-top: 0;
            letter-spacing: 1px;
        }

        form.contact-form {
            display: flex;
            flex-direction: column;
            gap: 18px;
        }

        form.contact-form input,
        form.contact-form textarea {
            width: 100%;
            padding: 12px 14px;
            border-radius: 6px;
            border: 1px solid #333;
            background: #1a1a1a;
            color: #eee;
            font-size: 1rem;
            transition: border 0.2s ease, background 0.2s ease;
        }

        form.contact-form input:focus,
        form.contact-form textarea:focus {
            border-color: #ffcc00;
            background: #111;
            outline: none;
        }

        form.contact-form textarea {
            min-height: 160px;
            resize: vertical;
        }

        form.contact-form button {
            width: fit-content;
            padding: 12px 28px;
            background: #ffcc00;
            color: #000;
            border: none;
            border-radius: 6px;
            font-weight: bold;
            text-transform: uppercase;
            cursor: pointer;
            transition: background 0.2s ease, transform 0.2s ease;
        }

        form.contact-form button:hover {
            background: #e0b800;
            transform: translateY(-2px);
        }

        .success {
            background: #0f0;
            color: #000;
            padding: 15px;
            border-radius: 6px;
            margin-bottom: 20px;
            font-weight: bold;
            border-left: 5px solid #0a0;
        }

        .error {
            background: #f00;
            color: #fff;
            padding: 15px;
            border-radius: 6px;
            margin-bottom: 20px;
            font-weight: bold;
            border-left: 5px solid #900;
        }

        @media (max-width: 900px) {
            .contact-grid {
                grid-template-columns: 1fr;
            }
            .contact-banner h1 {
                font-size: 2.2rem;
            }
        }
/* test contact */
/* Petit style local, à fusionner avec ton CSS global si tu préfères */
        .contact-wrapper {
            max-width: 900px;
            margin: 80px auto 40px;
            padding: 20px;
        }
        .contact-grid {
            display: grid;
            grid-template-columns: 2fr 1.5fr;
            gap: 30px;
        }
        .contact-card {
            background: #111;
            color: #f5f5f5;
            padding: 20px 24px;
            border-radius: 8px;
            box-shadow: 0 0 12px rgba(0,0,0,0.4);
        }
        .contact-card h1,
        .contact-card h2 {
            margin-top: 0;
            text-transform: uppercase;
            letter-spacing: 1px;
        }
        .contact-card p {
            line-height: 1.6;
        }
        .contact-info-item {
            margin-bottom: 12px;
        }
        .contact-info-item span {
            display: block;
            font-size: 0.9rem;
            opacity: 0.8;
        }
        .contact-info-item strong {
            font-size: 1rem;
        }
        .contact-info-item a {
            color: #ffcc00;
            text-decoration: none;
        }
        .contact-info-item a:hover {
            text-decoration: underline;
        }
        form.contact-form {
            display: flex;
            flex-direction: column;
            gap: 14px;
        }
        form.contact-form label {
            font-size: 0.9rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        form.contact-form input,
        form.contact-form textarea {
            width: 100%;
            padding: 10px 12px;
            border-radius: 4px;
            border: 1px solid #444;
            background: #1a1a1a;
            color: #f5f5f5;
            font-size: 0.95rem;
        }
        form.contact-form textarea {
            min-height: 140px;
            resize: vertical;
        }
        form.contact-form button {
            align-self: flex-start;
            padding: 10px 22px;
            border-radius: 4px;
            border: none;
            background: #ffcc00;
            color: #000;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            cursor: pointer;
            transition: background 0.2s ease, transform 0.1s ease;
        }
        form.contact-form button:hover {
            background: #e0b800;
            transform: translateY(-1px);
        }
        @media (max-width: 768px) {
            .contact-wrapper {
                margin-top: 60px;
                padding: 15px;
            }
            .contact-grid {
                grid-template-columns: 1fr;
            }
        }








/* RESPONSIVE */
@media (max-width: 900px) {
    .cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {

    .burger {
        display: flex;
    }

    #menu {
        position: absolute;
        top: 52px;
        right: 0;
        width: 100%;
        background: #111;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
    }

    #menu ul {
        flex-direction: column;
        text-align: center;
        padding: 10px 0;
    }

    #menu li {
        padding: 10px 0;
    }

    #menu.open {
        max-height: none;
    }

    .hero {
        min-height: 45vh;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    #banner {
        padding: 10px 0;
    }

    #banierercbolides {
        width: 100%;
        height: auto;
    }
}


/* Centre tout le contenu de la page catégories */
.container {
    max-width: 1100px;
    margin: 0 auto;      /* centre horizontalement */
    text-align: center;  /* centre les titres et paragraphes */
}

/* Pour que le texte des blocs reste aligné à gauche */
.category-block .cat-text {
    text-align: left;
}

/* Centre les images dans leur colonne */
.category-block .cat-img {
    display: flex;
    justify-content: center;
    align-items: center;
}

