/* ==========================================================
   BimBamBoom — ONE PAGE CSS
   Dépend de style.css (variables :root déjà définies)
   ========================================================== */

/* ── Reset léger ──────────────────────────────────────── */
*,
*::before,
*::after { box-sizing: border-box; }

/* ── Smooth scroll global ─────────────────────────────── */
html { scroll-behavior: smooth; }

/* Compense le header sticky */
:target { scroll-margin-top: calc(var(--header-height) + 16px); }

/* ── Container ────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Sections generiques ──────────────────────────────── */
.bbb-section {
    padding: 80px 0;
}

.bbb-section--white  { background: #ffffff; }
.bbb-section--light  { background: #f7f8fa; }
.bbb-section--blue   { background: var(--bbb-blue-sky); color: #fff; }
.bbb-section--dark   { background: #111; color: #fff; }
.bbb-section--red    { background: var(--bbb-red); color: #fff; }

/* Titres de section */
.section-title {
    font-size: clamp(1.6rem, 3.5vw, 2.6rem);
    font-weight: 900;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 1px;
    margin-bottom: 12px;
    line-height: 1.15;
}

.bbb-section--white .section-title,
.bbb-section--light .section-title { color: var(--bbb-red); }
.bbb-section--blue  .section-title,
.bbb-section--dark  .section-title,
.bbb-section--red   .section-title { color: #fff; }

.section-intro {
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 720px;
    margin: 0 auto 48px;
    opacity: .9;
}

/* ── Badges & décorations ─────────────────────────────── */
.section-badge {
    display: block;
    text-align: center;
    background: var(--bbb-yellow-sun);
    color: var(--bbb-black);
    font-weight: 900;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 18px;
    border-radius: 999px;
    margin-bottom: 12px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.highlight-red { color: var(--bbb-red); }

/* ── HERO ─────────────────────────────────────────────── */
.bbb-hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('https://bimbamboom.club/wp-content/uploads/2026/04/hero-groupe.jpg');
    background-size: cover;
    background-position: center 80%;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,.08) 0%, rgba(0,0,0,.18) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: max(140px, 18vh) 24px 40px;
}

.hero-logo {
    max-width: min(320px, 80vw);
    height: auto;
    filter: drop-shadow(0 4px 24px rgba(0,0,0,.5));
}

.hero-text-backdrop {
    background: rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 14px;
    padding: 22px 44px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hero-tagline {
    font-size: clamp(1.65rem, 3.75vw, 2.25rem);
    font-weight: 700;
    letter-spacing: .5px;
    margin: 0;
}

.hero-sub {
    font-size: 1.5rem;
    opacity: .9;
    margin: 0;
}

.hero-date {
    font-size: clamp(1rem, 2vw, 1.25rem);
    background: var(--bbb-yellow-sun);
    color: var(--bbb-black);
    padding: 8px 24px;
    border-radius: 999px;
    font-weight: 700;
    margin: 8px 0 0;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 8px;
}

.hero-scroll-hint {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(255,255,255,.7);
    animation: bounce 1.8s ease-in-out infinite;
    text-decoration: none;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(8px); }
}

/* ── CONCEPT ──────────────────────────────────────────── */
.concept-separator {
    width: 60px;
    height: 4px;
    background: var(--bbb-red);
    margin: 32px auto;
    border-radius: 2px;
}

.concept-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 900;
    text-transform: uppercase;
    text-align: center;
    color: var(--bbb-red);
    margin-bottom: 24px;
}

.concept-text {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 24px;
    font-size: 1.05rem;
    line-height: 1.7;
}

.concept-list {
    max-width: 720px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.concept-list li {
    padding: 16px 20px;
    background: #f7f8fa;
    border-left: 4px solid var(--bbb-blue-sky);
    border-radius: 0 8px 8px 0;
    line-height: 1.6;
}

/* ── DATE & LIEU ──────────────────────────────────────── */
.lieu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.lieu-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    box-shadow: 0 4px 24px rgba(0,0,0,.1);
}

.lieu-icon { font-size: 2.5rem; margin-bottom: 12px; }
.lieu-card h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 12px; color: var(--bbb-black); }
.lieu-card p { line-height: 1.7; margin-bottom: 20px; color: #444; }

.btn-outline-dark {
    background: transparent !important;
    color: var(--bbb-blue-sky) !important;
    border: 2px solid var(--bbb-blue-sky) !important;
    border-radius: 999px;
    padding: 10px 24px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: .85rem;
    text-decoration: none;
    transition: background .2s, color .2s;
    display: inline-block;
}
.btn-outline-dark:hover {
    background: var(--bbb-blue-sky) !important;
    color: #fff !important;
}

/* ── 4 RAISONS ────────────────────────────────────────── */
.raisons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 28px;
    margin-top: 40px;
}

.raison-card {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
    background: #fff;
    text-align: center;
    transition: transform .25s, box-shadow .25s;
}

.raison-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0,0,0,.14);
}

.raison-img-wrap {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.raison-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s;
}

.raison-card:hover .raison-img { transform: scale(1.06); }

.raison-num {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--bbb-red);
    color: #fff;
    font-weight: 900;
    font-size: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.raison-titre {
    padding: 16px;
    font-weight: 700;
    font-size: .95rem;
    line-height: 1.4;
    color: var(--bbb-black);
    margin: 0;
}

.raison-num-solo {
    background: var(--bbb-red);
    color: #fff;
    font-size: 2rem;
    font-weight: 900;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.raison-card--no-img .raison-titre {
    padding: 20px 16px;
}

/* ── COMPÉTITIONS ─────────────────────────────────────── */
.comps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 960px;
    margin: 40px auto 0;
}

.comp-card {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: transform .25s, border-color .25s;
}

.comp-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,.3); }

.comp-card--featured {
    border-color: var(--bbb-yellow-sun);
    background: rgba(255,237,0,.06);
}

.comp-icon { font-size: 2.5rem; margin-bottom: 12px; }

.comp-card h3 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: #fff;
    line-height: 1.3;
}

.comp-details {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: .85;
    font-size: .9rem;
}

.btn-strava {
    display: inline-block;
    background: #fc4c02;
    color: #fff;
    border-radius: 999px;
    padding: 8px 20px;
    font-weight: 700;
    font-size: .85rem;
    text-decoration: none;
    transition: filter .2s;
}
.btn-strava:hover { filter: brightness(1.1); }

/* ── PODIUMS ──────────────────────────────────────────── */
.podiums-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 960px;
    margin: 40px auto 48px;
}

.podium-block {
    background: #f7f8fa;
    border-radius: 12px;
    padding: 28px 24px;
    border-top: 4px solid var(--bbb-red);
}

.podium-sport-title {
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--bbb-red);
    margin-bottom: 16px;
    letter-spacing: .5px;
}

.podium-cats {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.podium-cats li {
    padding: 8px 12px;
    background: #fff;
    border-radius: 6px;
    font-size: .9rem;
    border-left: 3px solid var(--bbb-blue-sky);
}

.podium-lots-title {
    font-size: 1.3rem;
    font-weight: 800;
    text-align: center;
    color: var(--bbb-red);
    margin-bottom: 24px;
}

.lots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    max-width: 560px;
    margin: 0 auto;
}

.lot-card {
    background: #f7f8fa;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
}

.lot-label {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--bbb-red);
    margin-bottom: 12px;
}

.lot-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: .9rem;
    line-height: 1.5;
}

/* ── RÉCOMPENSES ÉQUIPES ──────────────────────────────── */
.recomp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    max-width: 860px;
    margin: 40px auto 0;
}

.recomp-card {
    background: #ffffff;
    border: none;
    border-radius: 16px;
    padding: 32px 28px;
    text-align: center;
    color: var(--color-text);
}

.recomp-trophy { font-size: 3rem; margin-bottom: 12px; }

.recomp-card h3 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.4;
    color: var(--bbb-red);
}

.recomp-card p {
    color: var(--color-text);
}

.recomp-card small {
    display: block;
    font-size: .8rem;
    font-weight: 400;
    color: var(--color-text-muted);
    margin-top: 4px;
}

.recomp-card ul {
    list-style: none;
    padding: 0;
    margin: 12px 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.recomp-card ul li {
    padding: 6px 16px;
    background: #f7f8fa;
    border-radius: 8px;
    font-size: .95rem;
    font-weight: 700;
    color: var(--color-text);
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,.08);
}

.recomp-bonus {
    font-size: .85rem;
    color: var(--color-text-muted);
    margin-top: 12px;
    font-style: italic;
}

/* ── PROGRAMME JOURNÉE ────────────────────────────────── */
.programme-timeline {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 760px;
    display: flex;
    flex-direction: column;
    gap: 0;
    counter-reset: none;
    position: relative;
}

.programme-timeline::before {
    content: '';
    position: absolute;
    left: 130px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e8e8e8;
}

.timeline-item {
    display: flex;
    gap: 44px;
    align-items: flex-start;
    padding: 16px 0;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 126px;
    top: 22px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--bbb-blue-sky);
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px var(--bbb-blue-sky);
}

.timeline-item--highlight::before { background: var(--bbb-red); box-shadow: 0 0 0 2px var(--bbb-red); }

.timeline-time {
    width: 118px;
    min-width: 118px;
    flex-shrink: 0;
    text-align: right;
    font-weight: 700;
    font-size: .9rem;
    color: var(--bbb-red);
    padding-top: 2px;
    white-space: nowrap;
}

.timeline-text {
    flex: 1;
    font-size: .95rem;
    line-height: 1.6;
    color: var(--color-text);
}

.timeline-item--highlight .timeline-text { font-weight: 600; }

/* ── PARTENAIRES ──────────────────────────────────────── */
/* (déjà défini dans style.css, on complète) */
.partner-name-fallback {
    display: block;
    font-weight: 700;
    font-size: .85rem;
    text-align: center;
    color: var(--bbb-black);
    padding: 20px 8px;
}

/* ── INSCRIPTION ──────────────────────────────────────── */
.inscription-soon,
.inscription-open {
    text-align: center;
}

.inscription-lead {
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 640px;
    margin: 0 auto 24px;
}

.inscription-cta-msg {
    text-align: center;
    color: var(--bbb-red);
    font-weight: 600;
    margin-bottom: 12px;
}

.inscription-contact-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 80px;
    margin: 0 auto 36px;
    font-weight: 600;
}

.inscription-contact-links a {
    color: var(--color-text);
    text-decoration: underline;
}

.inscription-contact-links a:hover { color: var(--bbb-red); }

.btn-large { padding: 18px 48px !important; font-size: 1.1rem !important; }

.inscription-photos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 48px 0;
}

.insc-photo img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

/* 2e photo (coureur) : recadrage depuis le haut pour garder la tête visible */
.insc-photo:nth-child(2) img {
    object-position: top;
}

/* Tarifs */
.tarifs { margin-top: 48px; }

.tarifs-title {
    font-size: 1.4rem;
    font-weight: 800;
    text-align: center;
    color: var(--bbb-red);
    margin-bottom: 8px;
}

.tarifs-intro {
    text-align: center;
    color: var(--color-text-muted);
    margin-bottom: 28px;
    font-size: .9rem;
}

.tarifs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
    max-width: 760px;
    margin: 0 auto;
}

.tarif-card {
    background: #f7f8fa;
    border: 2px solid #eee;
    border-radius: 14px;
    padding: 24px 16px;
    text-align: center;
    position: relative;
    transition: border-color .2s, transform .2s;
}

.tarif-card:hover { border-color: var(--bbb-red); transform: translateY(-3px); }

.tarif-card--best {
    border-color: var(--bbb-yellow-sun);
    background: #fffde7;
}

.tarif-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bbb-yellow-sun);
    color: var(--bbb-black);
    font-size: .75rem;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 999px;
    white-space: nowrap;
}

.tarif-prix {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--bbb-red);
    margin: 0 0 8px;
    line-height: 1;
}

.tarif-prix small { font-size: .85rem; font-weight: 400; color: var(--color-text-muted); }

.tarif-label {
    font-size: .85rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--color-text);
}

/* ── VIDÉOS ───────────────────────────────────────────── */
.videos-year-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
    margin-bottom: 40px;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

.videos-year-group--single {
    grid-template-columns: minmax(0, 360px);
    justify-content: center;
}

.video-item { display: flex; flex-direction: column; gap: 10px; }

.lite-yt-wrap {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 12px;
    overflow: hidden;
}

lite-youtube {
    display: block;
    width: 100%;
    height: 100%;
    background-color: #000;
    border-radius: 12px;
}

.video-title {
    font-size: .9rem;
    font-weight: 700;
    color: rgba(255,255,255,.85);
    margin: 0;
    text-align: center;
}

/* ── CONTACT ──────────────────────────────────────────── */
.contact-wrap {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 48px;
    align-items: start;
    max-width: 860px;
    margin: 0 auto;
}

.contact-info h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--bbb-red);
    margin-bottom: 16px;
}

.contact-info address {
    font-style: normal;
    line-height: 1.9;
    font-size: .95rem;
}

.contact-info a { color: var(--bbb-red); font-weight: 600; }

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

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-group label {
    font-weight: 700;
    font-size: .9rem;
    color: var(--color-text);
}

.form-group label span { color: var(--bbb-red); }

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: .95rem;
    font-family: inherit;
    transition: border-color .2s;
    background: #fff;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--bbb-red);
}

.cf-feedback {
    font-size: .9rem;
    padding: 8px 0;
    min-height: 24px;
}

.cf-feedback.success { color: #16a34a; font-weight: 600; }
.cf-feedback.error   { color: var(--bbb-red); font-weight: 600; }

/* ── BOUTONS ──────────────────────────────────────────── */
.btn {
    display: inline-block;
    border-radius: 999px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    padding: 12px 28px;
    font-size: .9rem;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s, background .2s, color .2s;
    cursor: pointer;
    border: none;
    line-height: 1.2;
}

.btn-primary {
    background: var(--bbb-red);
    color: #fff;
}

.btn-primary:hover {
    background: #c00510;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(227,6,19,.35);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-outline:hover {
    background: #fff;
    color: var(--bbb-red);
}

/* ── SCROLLSPY — nav active ───────────────────────────── */
#site-navigation li.is-active > a {
    color: var(--bbb-red) !important;
    border-bottom-color: var(--bbb-red) !important;
}

/* ── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 768px) {
    .bbb-section { padding: 56px 0; }

    .comps-grid { grid-template-columns: 1fr; }
    .podiums-grid { grid-template-columns: 1fr; }

    .programme-timeline::before { left: 102px; }
    .timeline-item::before { left: 98px; }
    .timeline-time { width: 90px; min-width: 90px; font-size: .82rem; }

    .contact-wrap { grid-template-columns: 1fr; gap: 32px; }

    .inscription-photos { grid-template-columns: repeat(2, 1fr); }

    .tarifs-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .hero-ctas { flex-direction: column; align-items: center; }
    .inscription-photos { grid-template-columns: 1fr 1fr; }
    .programme-timeline::before { display: none; }
    .timeline-item { flex-direction: column; gap: 4px; padding: 12px 0; }
    .timeline-item::before { display: none; }
    .timeline-time { text-align: left; min-width: auto; }
}

/* ── LITE-YOUTUBE (self-hosted fallback) ──────────────── */
lite-youtube {
    background-color: #000;
    position: relative;
    display: block;
    contain: content;
    background-position: center center;
    background-size: cover;
    cursor: pointer;
}

lite-youtube > .lty-playbtn {
    width: 68px;
    height: 48px;
    position: absolute;
    cursor: pointer;
    transform: translate3d(-50%, -50%, 0);
    top: 50%;
    left: 50%;
    z-index: 1;
    border: 0;
    background-color: transparent;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 68 48'%3E%3Cpath d='M66.52 7.74c-.78-2.93-2.49-5.41-5.42-6.19C55.79.13 34 0 34 0S12.21.13 6.9 1.55c-2.93.78-4.63 3.26-5.42 6.19C.06 13.05 0 24 0 24s.06 10.95 1.48 16.26c.78 2.93 2.49 5.41 5.42 6.19C12.21 47.87 34 48 34 48s21.79-.13 27.1-1.55c2.93-.78 4.64-3.26 5.42-6.19C67.94 34.95 68 24 68 24s-.06-10.95-1.48-16.26z' fill='%23f00'/%3E%3Cpath d='M45 24 27 14v20' fill='%23fff'/%3E%3C/svg%3E");
    filter: grayscale(100%);
    transition: filter .1s cubic-bezier(0,0,.2,1);
    border: none;
}

lite-youtube:hover > .lty-playbtn,
lite-youtube .lty-playbtn:focus { filter: none; }

lite-youtube.lyt-activated { cursor: unset; }
lite-youtube.lyt-activated::before,
lite-youtube.lyt-activated > .lty-playbtn { opacity: 0; pointer-events: none; }

lite-youtube > iframe {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    border: 0;
}
