* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    color: #1a1a1a;
}
img { max-width: 100%; display: block; }
h1, h2 { font-weight: 800; }

/* ===================== TOPBAR ===================== */
.topbar {
    background: #1a1a1a;
    color: #fff;
    text-align: center;
    padding: 10px 20px;
    font-size: 13px;
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    position: relative;
    z-index: 10;
}
.topbar span { display: flex; align-items: center; gap: 6px; }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar a:hover { text-decoration: underline; }
@media (max-width: 560px) {
    .topbar { flex-direction: column; gap: 6px; padding: 8px 16px; }
}

/* ===================== HERO ===================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 560px;
    overflow: hidden;
    background-image: url('../img/hero_ritmic_duo.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
.hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(88, 88, 90, 0.45);
    z-index: 1;
    color: #fff;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.hero__logo img { display: block; margin: 0 auto 30px; }
.hero__tagline { font-size: 18px; letter-spacing: .05em; margin: 30px 0 20px; }
.hero__arrow { font-size: 22px; }
.hero__social {
    position: absolute;
    bottom: 20px; right: 24px;
    display: flex; gap: 12px;
}
.hero__social a {
    width: 45px; height: 45px;
    border-radius: 50%;
    background: rgba(255,255,255,.9);
    color: #1a1a1a;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none; font-size: 16px; font-weight: 700;
}

/* ===================== INTRO ===================== */
.intro { max-width: 1200px; margin: 0 auto; padding: 60px 20px; text-align: center; }
.intro h1 { font-size: 40px; margin-bottom: 24px; }
.intro p { color: #333; line-height: 1.6; max-width: 700px; margin: 0 auto 8px; }
.intro hr { border: none; border-top: 1px solid #ddd; width: 60%; margin: 24px auto; }
.intro__cta { font-size: 15px; font-weight: bold; font-style: italic; }

.intro-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 30px;
    text-align: left;
}
.intro-grid__item { position: relative; margin: 0; }
.intro-grid__item img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.intro-grid__item--tall { grid-column: span 2; grid-row: span 2; }
.intro-grid__item figcaption {
    position: absolute; left: 14px; bottom: 12px;
    display: inline-block;
    color: #fff; font-weight: 700; font-size: 14px;
    text-shadow: 0 1px 4px rgba(0,0,0,.6);
}

/* ===================== SECTIONS CATALOGUE ===================== */
.section-catalogue { max-width: 1200px; margin: 0 auto; padding: 60px 20px; }
.section-catalogue h2 { font-size: 35px; margin-bottom: 12px; }
.section-catalogue__intro { color: #444; margin-bottom: 32px; max-width: 700px; line-height: 1.5; }

/* ===================== MARQUES ===================== */
.marques-strip { width: 100%; padding: 50px 20px 60px; text-align: center; }
.marques-strip h2 { font-size: 35px; margin-bottom: 30px; }
.marques-strip__row {
    display: flex; flex-wrap: wrap; justify-content: space-evenly;
    align-items: center; gap: 40px; max-width: 1400px; margin: 0 auto;
}
.marques-strip__logo { height: 130px; width: auto; max-width: 220px; object-fit: contain; }

/* ===================== BANDEAUX PHOTO ===================== */
.banner-2col, .banner-3col { display: grid; gap: 0; }
.banner-2col { grid-template-columns: 1fr 1fr; }
.banner-3col { grid-template-columns: 1fr 1fr 1fr; }
.banner-2col img, .banner-3col img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }

/* ===================== ACCESSOIRES SLIDER ===================== */
.accessoires-slider {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    margin-top: 48px;
}
.accessoires-slider__arrow {
    flex-shrink: 0;
    background: none;
    border: 1px solid #ccc;
    border-radius: 50%;
    width: 40px; height: 40px;
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
    transition: background .2s;
    z-index: 2;
}
.accessoires-slider__arrow:hover { background: #eee; }

.accessoires-slider__viewport {
    flex: 1;
    overflow: hidden;
    position: relative;
}
.accessoires-slider__track {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    justify-content: center;
}

.accessoires-slide {
    margin: 0;
    flex-shrink: 0;
    text-align: center;
    cursor: pointer;
    transition: width .3s, opacity .3s, transform .3s;
    overflow: hidden;
}
.accessoires-slide[data-pos="-2"],
.accessoires-slide[data-pos="2"]  { width: 260px; opacity: .45; transform: scale(.85); transform-origin: bottom center; }
.accessoires-slide[data-pos="-1"],
.accessoires-slide[data-pos="1"]  { width: 360px; opacity: .7;  transform: scale(.93); transform-origin: bottom center; }
.accessoires-slide[data-pos="0"]  { width: 520px; opacity: 1;   transform: scale(1);   transform-origin: bottom center; }

.accessoires-slide img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    background: #f7f7f7;
    border-radius: 4px;
    display: block;
}

/* Légende : état inactif */
.accessoires-slide figcaption {
    font-size: 11px;
    margin-top: 8px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: .05em;
}

/* Légende : slide central */
.accessoires-slide.is-center figcaption {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    text-transform: none;
    letter-spacing: 0;
}

/* Description */
.accessoires-slide__desc {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: #666;
    margin-top: 4px;
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.4;
}
.accessoires-slide.is-center .accessoires-slide__desc {
    font-size: 13px;
    font-weight: 400;
    color: #444;
}

/* Prix */
.accessoires-slide__prix {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #f07d1e;
    margin-top: 4px;
}

/* Dots */
.accessoires-slider__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
}
.accessoires-slider__dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    border: none;
    background: #ccc;
    cursor: pointer;
    padding: 0;
    transition: background .2s;
}
.accessoires-slider__dot.is-active { background: #1a1a1a; }

/* ===================== VÉLOS GRID ===================== */
.velo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px 30px;
}
@media (max-width: 900px) { .velo-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .velo-grid { grid-template-columns: 1fr; } }

.velo-card { display: flex; flex-direction: column; }
.velo-card__media {
    position: relative;
    background: #fff;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 10px;
}
.velo-card__media img { width: 100%; height: 100%; object-fit: contain; }
.velo-card__placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: #f2f2f2; color: #999; font-size: 13px;
}
.velo-card__badge {
    position: absolute;
    top: 10px; right: 10px;
    background: #f07d1e;
    color: #fff;
    font-size: 11px; font-weight: 700;
    letter-spacing: .04em;
    padding: 5px 12px;
    border-radius: 2px;
    text-transform: uppercase;
    z-index: 2;
}
.velo-card__badge--soldes   { background: #f07d1e; }
.velo-card__badge--nouveaute { background: #f07d1e; }
.velo-card__nom { font-size: 15px; font-weight: 700; margin: 0 0 4px; }
.velo-card__highlight {
    display: inline-block;
    padding: 8px 24px 10px 20px;
    margin: 2px 0 8px -4px;
    clip-path: polygon(6% 0%, 100% 0%, 94% 100%, 0% 100%);
}
.velo-card__marque { font-size: 12px; font-weight: 600; color: #1a1a1a; line-height: 1.4; }
.velo-card__prix { font-size: 14px; font-weight: 700; color: #1a1a1a; }
.velo-card__prix-barre { text-decoration: line-through; font-weight: 400; color: #888; margin-right: 8px; }
.velo-card__prix-solde { color: #1a1a1a; }

/* ===================== POURQUOI VENIR ===================== */
.pourquoi { max-width: 1000px; margin: 0 auto; padding: 60px 20px; }
.pourquoi h2 { font-size: 38px; font-weight: 800; text-align: center; margin-bottom: 40px; }
.pourquoi ul { list-style: none; padding: 0; margin: 0; }
.pourquoi li { padding: 28px 0 28px 80px; border-top: 1px solid #e0e0e0; font-weight: 700; font-size: 16px; }
.pourquoi ul li:last-child { border-bottom: 1px solid #e0e0e0; }
.pourquoi__baseline { text-align: center; margin-top: 30px; color: #444; font-style: italic; font-size: 15px; }

/* ===================== ESPRIT VILLE ET VÉLOS ===================== */
.esprit {
    background: #1a1a1a; color: #fff;
    display: grid; grid-template-columns: 1fr 1fr;
    align-items: center; gap: 60px;
    padding: 80px 100px;
}
.esprit__img-wrap { display: flex; justify-content: flex-end; align-items: center; }
.esprit__img-wrap img {
    width: 100%; max-width: 420px;
    aspect-ratio: 1 / 1; object-fit: cover;
    border-radius: 6px; display: block;
}
.esprit__text h2 { font-size: 32px; font-weight: 800; margin-bottom: 24px; color: #fff; }
.esprit__text p { line-height: 1.7; margin-bottom: 14px; color: #ccc; font-size: 15px; }

/* ===================== CONTACT ===================== */
.contact {
    max-width: 1100px; margin: 0 auto; padding: 60px 20px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
}
.contact h2 { font-size: 30px; margin-bottom: 16px; }
.contact p { line-height: 1.6; margin: 0 0 10px; font-size: 16px; }
.contact__map-wrapper { margin-top: 16px; border-radius: 6px; overflow: hidden; }
.contact__map-wrapper iframe { width: 100%; aspect-ratio: 5 / 3; display: block; border: 0; }
.contact__form { display: flex; flex-direction: column; gap: 20px; }
.contact__form label { font-size: 14px; color: #555; display: flex; flex-direction: column; gap: 6px; }
.contact__form input, .contact__form textarea {
    border: none; border-bottom: 1px solid #999;
    padding: 6px 2px; font-size: 14px;
    font-family: inherit; resize: vertical;
}
.contact__form input:focus, .contact__form textarea:focus { outline: none; border-color: #1a1a1a; }
.contact__form-hint { font-size: 12px; color: #888; margin: 0; }
.contact__form button {
    align-self: flex-start; border: 1px solid #1a1a1a; background: none;
    padding: 10px 28px; border-radius: 30px; cursor: pointer; font-size: 14px;
}
.contact__feedback { padding: 10px 14px; border-radius: 6px; font-size: 14px; margin: 0; }
.contact__feedback--ok  { background: #eafaf1; color: #1e8449; }
.contact__feedback--err { background: #fdecea; color: #c0392b; }

/* ===================== FOOTER ===================== */
.site-footer { text-align: center; padding: 40px 20px; }
.site-footer__logo { font-family: 'Poppins', sans-serif; font-size: 20px; margin-bottom: 20px; }
.site-footer__logo span { display: block; font-family: Arial, sans-serif; font-size: 10px; letter-spacing: .3em; }
.site-footer__legal { font-size: 13px; margin-bottom: 10px; }
.site-footer__legal a { color: #1a1a1a; text-decoration: underline; }
.site-footer__copy { font-size: 12px; color: #888; margin-bottom: 16px; }
.site-footer__social { display: flex; justify-content: center; gap: 14px; }
.site-footer__social a {
    width: 45px; height: 45px;
    border-radius: 50%;
    background: #1a1a1a; color: #fff;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none; font-size: 16px;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 800px) {
    .intro-grid { grid-template-columns: 1fr 1fr; }
    .intro-grid__item--tall { grid-column: span 2; }
    .banner-2col, .banner-3col { grid-template-columns: 1fr; }
    .esprit, .contact { grid-template-columns: 1fr; }
}