/* ================================================= */
/* KS AUTO SERVICES – PUBLIC.CSS (FINAL CLEAN)       */
/* DESIGN PRO • STABLE • SANS ANOMALIES              */
/* ================================================= */

/* ================= VARIABLES ================= */

:root {
    --orange: #f0a500;
    --orange-dark: #e69500;

    --bg: #0f0f0f;
    --bg-soft: #141414;

    --card: #1b1b1b;
    --card-soft: #242424;

    --text: #ffffff;
    --text-soft: #bdbdbd;

    --border: rgba(255,255,255,0.08);
    --radius: 16px;
}

/* ================= RESET ================= */

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

html, body {
    min-height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
                 Roboto, Ubuntu, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
}

/* ================= BASE ================= */

section {
    padding: 80px 20px;
}

img {
    max-width: 100%;
    display: block;
}

/* ================= HEADER / MENU ================= */

.site-header {
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(6px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

.header-container {
    max-width: 1200px;
    margin: auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 64px;
}

.site-nav {
    display: flex;
    gap: 30px;
}

.site-nav a {
    color: var(--orange);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    position: relative;
}

.site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--orange);
    transition: width .2s ease;
}

.site-nav a:hover::after {
    width: 100%;
}

/* ================= BURGER ================= */

.burger {
    display: none;
    background: none;
    border: none;
    font-size: 26px;
    color: var(--orange);
    cursor: pointer;
}

@media (max-width: 900px) {
    .burger { display: block; }

    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #000;
        flex-direction: column;
        display: none;
        border-bottom: 1px solid var(--border);
    }

    .site-nav.open {
        display: flex;
    }

    .site-nav a {
        padding: 16px 0;
        width: 100%;
        text-align: center;
        border-top: 1px solid var(--border);
    }
}

/* ================= HERO ================= */

.hero {
    position: relative;
    height: 85vh;
    background: url("../images/garage1.jpg") center / cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

/* Overlay visuel SEULEMENT */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.65),
        rgba(0,0,0,0.85)
    );
    z-index: 1;
    pointer-events: none;
}

/* Carte hero AU-DESSUS */
.hero-card {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 40px 24px;
    background: rgba(20,20,20,0.85);
    border-radius: var(--radius);
}

.hero-card h1 {
    font-size: 2.6rem;
    color: var(--orange);
    margin-bottom: 16px;
}

.hero-card p {
    font-size: 1.15rem;
    color: var(--text-soft);
    margin-bottom: 22px;
}

/* ================= STATUT ================= */

.open-status {
    margin-top: 10px;
    font-weight: 700;
    font-size: .95rem;
}

.open { color: #4caf50; }
.closed { color: #e53935; }

/* ================= BOUTONS ================= */

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--orange);
    color: #000;
    padding: 14px 34px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    margin-top: 18px;
    position: relative;
    z-index: 3;
}

.btn-primary:hover {
    background: var(--orange-dark);
    transform: translateY(-2px);
}

/* ================= AVIS GOOGLE ================= */

.google-rating {
    margin-top: 18px;
    font-size: .95rem;
    color: var(--orange);
}

/* ================= SECTIONS ================= */

.section-center {
    max-width: 1200px;
    margin: auto;
    text-align: center;
}

.section-center h2 {
    color: var(--orange);
    font-size: 2rem;
    margin-bottom: 50px;
}

/* ================= SERVICES ================= */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 26px;
    margin-top: 50px;
}

.service-card {
    background: linear-gradient(180deg, var(--card), var(--card-soft));
    border-radius: var(--radius);
    padding: 28px 26px;
    border: 1px solid var(--border);
    text-align: center;
    transition: transform .2s ease, box-shadow .2s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,.45);
}

.service-card img {
    height: 140px;
    margin: 0 auto 20px;
    object-fit: contain;
}

.service-card h3 {
    color: var(--orange);
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-soft);
    font-size: .95rem;
    line-height: 1.6;
}

/* ================= MARQUES ================= */

.brands-carousel {
    position: relative;
    overflow: hidden;
}

.brands-track {
    display: flex;
    gap: 60px;
    align-items: center;
    transition: transform .4s ease;
}

.brand {
    min-width: 160px;
    display: flex;
    justify-content: center;
}

.brand img {
    height: 70px;
    opacity: .85;
}

.brand img:hover {
    opacity: 1;
}

/* ================= TÉMOIGNAGES ================= */

.testimonials {
    background: var(--bg-soft);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.testimonials-container {
    max-width: 1100px;
    margin: auto;
    text-align: center;
}

.testimonials-grid {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: linear-gradient(180deg, #1b1b1b, #232323);
    padding: 32px 28px;
    border-radius: 18px;
    border: 1px solid var(--border);
}

.testimonial-text {
    font-style: italic;
    color: #ddd;
    margin-bottom: 16px;
}

.testimonial-author {
    color: var(--orange);
    font-weight: 600;
}

/* ================= FOOTER ================= */

.site-footer {
    background: #000;
    border-top: 1px solid var(--border);
}

.footer-inner {
    max-width: 1200px;
    margin: auto;
    padding: 50px 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 35px;
}

.footer-col h3 {
    color: var(--orange);
    margin-bottom: 14px;
}

.footer-col p {
    color: #ccc;
    font-size: .9rem;
    line-height: 1.7;
}

.footer-bottom {
    text-align: center;
    padding: 16px;
    font-size: 13px;
    color: #777;
    border-top: 1px solid #222;
}

/* ================= CALL STICKY ================= */

.call-sticky {
    display: none;
}

@media (max-width: 768px) {
    .call-sticky {
        display: flex;
        position: fixed;
        bottom: 15px;
        left: 50%;
        transform: translateX(-50%);
        background: var(--orange);
        color: #000;
        padding: 14px 28px;
        border-radius: 999px;
        font-weight: 700;
        z-index: 9999;
        text-decoration: none;
    }
}

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

@media (max-width: 600px) {
    .hero-card h1 { font-size: 2rem; }
    .hero-card p { font-size: 1.05rem; }
    section { padding: 60px 15px; }
}
/* Animation services */
.service-card {
    transition: transform .35s ease, box-shadow .35s ease;
    will-change: transform;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0,0,0,.15);
}

.service-card img {
    transition: transform .4s ease;
}

.service-card:hover img {
    transform: scale(1.08);
}
/* FORMULAIRE */
.form-card {
    max-width: 640px;
    margin: 40px auto 0;
    background: #1b1b1b;
    padding: 40px;
    border-radius: 18px;
    border: 1px solid #222;
    box-shadow: 0 20px 45px rgba(0,0,0,.45);
}

.form-group {
    margin-bottom: 18px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid #2a2a2a;
    background: #111;
    color: #fff;
    font-size: 15px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #aaa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #f0a500;
    box-shadow: 0 0 0 3px rgba(240,165,0,.15);
}

/* ACTIONS */
.form-actions {
    margin-top: 30px;
    text-align: center;
}
.title-highlight {
    color: #f0a500; /* orange KS */
    text-align: center;
    margin-bottom: 15px;
}

.intro-spaced {
    text-align: center;
    margin-bottom: 40px;
}
/* CONFIRMATION PAGE */
.confirmation-card {
    max-width: 520px;
    margin: auto;
    text-align: center;
}

.confirmation-logo img {
    height: 60px;
    margin-bottom: 20px;
}

.confirmation-check {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: #f0a500;
    color: #000;
    font-size: 36px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pop .4s ease;
}

@keyframes pop {
    from { transform: scale(.7); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}


.contact-card h2 {
    margin-top: 0;
}

.contact-buttons {
    display: flex;
    gap: 15px;
    margin: 20px 0;
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}
/* CONTACT – MAP LARGE */
.contact-card-wide {
    max-width: 820px;
    margin: 0 auto 60px;
}


@media (max-width: 768px) {
    .contact-map-wide iframe {
        height: 320px;
    }
}
/* BOUTONS ITINÉRAIRE – CENTRÉS */
.contact-buttons-centered {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 25px 0;
    flex-wrap: wrap;
}

/* GOOGLE MAPS – ROUGE */
.btn-maps {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 30px;
    background: #dc2626; /* rouge */
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease;
}

.btn-maps:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(220,38,38,.4);
}

/* WAZE – BLEU */
.btn-waze {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 30px;
    background: #1d9bf0; /* bleu Waze */
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease;
}

.btn-waze:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(29,155,240,.4);
}

/* ICÔNES */
.contact-buttons-centered .icon {
    font-size: 18px;
}
/* MAP EN HAUT */
.contact-map-top {
    max-width: 1100px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
}

.contact-map-top iframe {
    width: 100%;
    height: 420px;
    border: none;
}

/* FORMULAIRE SUPERPOSÉ */
.contact-form-overlay {
    max-width: 820px;
    margin: -120px auto 0; /* chevauche la map */
    position: relative;
    z-index: 5;
    padding: 40px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .contact-map-top iframe {
        height: 300px;
    }

    .contact-form-overlay {
        margin-top: -60px;
        padding: 25px;
    }
}
/* ================================================= */
/* CONTACT – MAP FULL WIDTH + FORM OVERLAY (FIX)     */
/* ================================================= */

/* MAP PLEINE LARGEUR, COLLÉE AU MENU */
.contact-map-full {
    width: 100%;
    height: 560px; /* grande hauteur */
    position: relative;
    margin: 0;
}

.contact-map-full iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* FORMULAIRE QUI CHEVAUCHE LA MAP */
.contact-form-overlay {
    max-width: 860px;
    margin: -180px auto 80px;
    position: relative;
    z-index: 10;
    padding: 45px;
    background: linear-gradient(180deg, var(--card), var(--card-soft));
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: 0 30px 60px rgba(0,0,0,.6);
}

/* BOUTONS ITINÉRAIRE CENTRÉS */
.contact-buttons-centered {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 25px 0 35px;
    flex-wrap: wrap;
}

/* GOOGLE MAPS */
.btn-maps {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.btn-maps:hover {
    background: #b91c1c;
}

/* WAZE */
.btn-waze {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 999px;
    background: #1d9bf0;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.btn-waze:hover {
    background: #0284c7;
}

/* MOBILE */
@media (max-width: 768px) {
    .contact-map-full {
        height: 360px;
    }

    .contact-form-overlay {
        margin-top: -90px;
        padding: 28px;
    }
}
@media (max-width: 768px) {

    .contact-form-overlay {
        position: relative;
        margin: -60px 16px 40px;
        padding: 24px;
    }

    .contact-map-full iframe {
        height: 260px;
    }

    .contact-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .contact-form textarea {
        min-height: 120px;
    }
}
/* ================= PRELOADER ================= */

#preloader {
    position: fixed;
    inset: 0;
    background: #0f0f0f;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity .4s ease;
}

/* CONTENU */
.animation-preloader {
    text-align: center;
}

/* SPINNER */
.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255,255,255,.2);
    border-top-color: #f0a500;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

/* TEXTE */
.txt-loading {
    display: flex;
    gap: 2px;
    justify-content: center;
}

.letters-loading {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    animation: letters 1.6s infinite ease-in-out;
}

/* DÉCALAGE DES LETTRES */
.letters-loading:nth-child(1)  { animation-delay: 0s; }
.letters-loading:nth-child(2)  { animation-delay: .1s; }
.letters-loading:nth-child(3)  { animation-delay: .2s; }
.letters-loading:nth-child(4)  { animation-delay: .3s; }
.letters-loading:nth-child(5)  { animation-delay: .4s; }
.letters-loading:nth-child(6)  { animation-delay: .5s; }
.letters-loading:nth-child(7)  { animation-delay: .6s; }
.letters-loading:nth-child(8)  { animation-delay: .7s; }
.letters-loading:nth-child(9)  { animation-delay: .8s; }
.letters-loading:nth-child(10) { animation-delay: .9s; }
.letters-loading:nth-child(11) { animation-delay: 1s; }
.letters-loading:nth-child(12) { animation-delay: 1.1s; }
.letters-loading:nth-child(13) { animation-delay: 1.2s; }
.letters-loading:nth-child(14) { animation-delay: 1.3s; }

/* ANIMATIONS */
@keyframes spin {
    from { transform: rotate(0); }
    to   { transform: rotate(360deg); }
}

@keyframes letters {
    0%   { opacity: .3; transform: translateY(0); }
    50%  { opacity: 1; transform: translateY(-6px); }
    100% { opacity: .3; transform: translateY(0); }
}
/* ESPACES ENTRE LES MOTS DU PRELOADER */
.txt-loading {
    display: flex;
    align-items: center;
}

/* espace normal entre lettres */
.letters-loading {
    margin: 0 2px;
}

/* espace PLUS LARGE entre KS / AUTO / SERVICES */
.letters-loading:nth-child(2),
.letters-loading:nth-child(6) {
    margin-right: 14px;
}
.letters-loading:nth-child(2),
.letters-loading:nth-child(6) {
    margin-right: 22px;
}

/* TERMES */
.legal-accordion details {
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 12px 0;
}

.legal-accordion summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--orange);
    list-style: none;
}

.legal-accordion summary::marker {
    display: none;
}

.legal-accordion summary::after {
    content: "▾";
    float: right;
    transition: transform .2s ease;
}

.legal-accordion details[open] summary::after {
    transform: rotate(180deg);
}

.legal-accordion p,
.legal-accordion ul {
    margin-top: 12px;
    text-align: left;
}

.legal-text,
.legal-list {
    text-align: left;
}
/* SOMMAIRE */
.legal-toc ul {
    list-style: none;
    padding: 0;
    margin: 20px auto 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.legal-toc a {
    color: var(--orange);
    font-weight: 600;
    text-decoration: none;
}

.legal-toc a:hover {
    text-decoration: underline;
}

/* ACCORDION */
.legal-accordion details {
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 14px 0;
}

.legal-accordion summary {
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--orange);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.legal-accordion summary::-webkit-details-marker {
    display: none;
}

.toggle-icon {
    font-size: 22px;
    transition: transform .25s ease;
}

.legal-accordion details[open] .toggle-icon {
    transform: rotate(180deg);
}

.legal-accordion p,
.legal-accordion ul {
    margin-top: 14px;
    text-align: left;
    animation: fadeSlide .35s ease;
}

/* ANIMATION DOUCE */
@keyframes fadeSlide {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* MOBILE */
@media (max-width: 768px) {
    .legal-toc ul {
        flex-direction: column;
        align-items: center;
    }
}
/* SOMMAIRE STICKY */
.legal-toc-sticky {
    position: sticky;
    top: 90px;
    z-index: 10;
}

/* ACCORDION PREMIUM */
.legal-accordion.premium summary {
    padding: 14px 0;
}

.summary-title {
    font-size: 1.05rem;
}

.accordion-content {
    padding: 10px 0 18px;
    animation: fadeSlide .35s ease;
}

.toggle-icon {
    font-size: 22px;
    transition: transform .3s ease;
}
/* ================= MARQUES ================= */

#marques {
    padding: 80px 20px;
    background: var(--bg-soft);
    text-align: center;
    overflow: hidden;
}

.brands-text {
    max-width: 760px;
    margin: 0 auto 40px;
    color: var(--text-soft);
    font-size: 1.05rem;
    line-height: 1.6;
}

/* CONTENEUR */
.brands-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
}

/* PISTE – LA CLÉ */
.brands-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 70px;
    animation: marques-scroll 40s linear infinite;
    will-change: transform;
}

/* PAUSE AU SURVOL */
.brands-slider:hover .brands-track {
    animation-play-state: paused;
}

/* LOGOS */
.brands-track img {
    height: 65px;
    flex-shrink: 0;
    opacity: 0.75;
    filter: grayscale(100%);
    transition: opacity 0.3s ease,
                transform 0.3s ease,
                filter 0.3s ease;
}

.brands-track img:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.12);
}

/* ANIMATION RÉELLE ET STABLE */
@keyframes marques-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* MOBILE */
@media (max-width: 768px) {
    .brands-track {
        animation-duration: 55s;
        gap: 40px;
    }

    .brands-track img {
        height: 48px;
    }
}
/* Motion accentuée sur marques sport */
.brands-track img[src*="amg"],
.brands-track img[src*="rs"],
.brands-track img[src*="bmw-m"],
.brands-track img[src*="thp"],
.brands-track img[src*="r."] {
    animation-duration: 4.5s;
}
/* TITRE MARQUES EN JAUNE */
#marques h2 {
    color: var(--orange);
}
/* ================ GALERIE SPORT ============ */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.6s ease-out;
}

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

.gallery-item figcaption {
    padding: 10px;
    background: #fff;
    font-size: 0.9rem;
    text-align: center;
    border-top: 1px solid #eee;
}

/* Effet d'apparition au scroll */
.gallery-item.visible {
    transform: translateY(0);
    opacity: 1;
}
/* ================= GALERIE SPORT AGRESSIVE ================= */

.hero-sport {
    background:
        linear-gradient(120deg, rgba(0,0,0,0.85), rgba(0,0,0,0.6)),
        url("/images/galerie/hero-sport.jpg") center / cover no-repeat;
}

/* TITRE */
.galerie-sport h2 {
    color: var(--orange);
    text-shadow: 0 0 14px rgba(240,165,0,0.4);
}

/* INTRO */
.gallery-intro {
    max-width: 760px;
    margin: 0 auto 50px;
    color: var(--text-soft);
}

/* GRID */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
}

/* CARTE */
.gallery-item {
    background: var(--card);
    border-radius: 16px;
    overflow: hidden;
    transform: translateY(40px) scale(0.96);
    opacity: 0;
    transition: all 0.6s ease;
}

/* APPARITION */
.gallery-item.visible {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* IMAGE */
.gallery-item img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

/* HOVER SPORT */
.gallery-item.sport:hover img {
    transform: scale(1.08);
}

/* TEXTE */
.gallery-item figcaption {
    padding: 16px;
    font-weight: 600;
    color: var(--text);
    background: linear-gradient(0deg, rgba(0,0,0,0.85), transparent);
}

/* ACCENT SPORT */
.gallery-item.sport {
    box-shadow: 0 0 0 rgba(0,0,0,0);
}

.gallery-item.sport:hover {
    box-shadow:
        0 0 18px rgba(240,165,0,0.45),
        0 0 40px rgba(240,165,0,0.2);
}
/* ================= GALERIE – TAILLES IMAGES ================= */

/* Grille */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
}

/* Carte galerie */
.gallery-item {
    background: var(--card);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* CONTENEUR IMAGE (TAILLE FIXE) */
.gallery-item img {
    width: 100%;
    height: 260px;              /* 🔥 HAUTEUR UNIFORME DES PHOTOS */
    object-fit: cover;          /* ❌ pas d’étirement */
    object-position: center;    /* 🎯 centrage intelligent */
    display: block;
    transition: transform 0.5s ease;
}

/* Hover sport */
.gallery-item.sport:hover img {
    transform: scale(1.08);
}

/* Texte */
.gallery-item figcaption {
    padding: 16px;
    font-weight: 600;
    color: var(--text);
    background: linear-gradient(
        180deg,
        rgba(0,0,0,0.85),
        rgba(0,0,0,0.65)
    );
}

/* MOBILE */
@media (max-width: 768px) {
    .gallery-item img {
        height: 200px;
    }
}

/* TRÈS GRAND ÉCRAN */
@media (min-width: 1400px) {
    .gallery-item img {
        height: 300px;
    }
}

/* ================= BANDE D'ANNONCE ================= */

.announcement-bar {
    width: 100%;
    background: linear-gradient(
        90deg,
        #ff0000,
        #ff7a00,
        #ffd000
    );
    color: #000;
    text-align: center;
    font-weight: 900;
    font-size: 1.05rem;
    padding: 14px 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-bottom: 3px solid #000;
    box-shadow: 0 6px 20px rgba(0,0,0,.5);
    animation: pulse-annonce 1.8s infinite;
    z-index: 2000;
}

/* Animation qui attire l’œil */
@keyframes pulse-annonce {
    0%   { filter: brightness(1); }
    50%  { filter: brightness(1.25); }
    100% { filter: brightness(1); }
}

/* Mobile */
@media (max-width: 768px) {
    .announcement-bar {
        font-size: 0.95rem;
        padding: 12px 14px;
    }
}


