/* ============================================================
   PAGE — HOME
   ============================================================ */

/* --- Hero --- */
.home #header .menu {
    background-color: transparent;
}

.intro-home {
    min-height: 853px;
    flex-direction: column;
    align-items: center;
    background-color: #000000;
    padding: 0 16px;
}

.intro-home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url(../gfx/hero-2026-desktop.webp) center top / min(100%, 1920px) auto no-repeat;
    z-index: 0;
    pointer-events: none;
}

/* >1920px: fondu vers le noir aux bords de l'image pour cacher la coupure
   entre l'image et le fond de page */
@media (min-width: 1921px) {
    .intro-home::before {
        background:
            linear-gradient(to right, #000 0%, transparent 80px) center top / min(100%, 1920px) auto no-repeat,
            linear-gradient(to left,  #000 0%, transparent 80px) center top / min(100%, 1920px) auto no-repeat,
            url(../gfx/hero-2026-desktop.webp) center top / min(100%, 1920px) auto no-repeat;
    }
}

@media (min-width: 768px) {
    .intro-home::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(180deg, rgba(17, 16, 15, 0.00) 7.45%, rgba(0, 0, 0, 0.50) 41.17%);
        z-index: 0;
        pointer-events: none;
    }
}


.hero-athletes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    mix-blend-mode: screen;
    pointer-events: none;
}

.intro-home .content-top {
    position: relative;
    z-index: 1;
    flex: 1;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    margin-top: min(23.611vw, 453px);
    text-align: center;
    width: 100%;
}

.hero-title-svg {
    display: block;
    width: clamp(250px, 67vw, 465px);
    height: auto;
}

.content-top > p.hero-description {
    color: var(--color-gray-white);
    text-align: center;
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 350;
    line-height: 1.5em;
    max-width: 1016px;
}

/* Hero vote button */
.intro-home .inscription .btn {
    white-space: nowrap;
}

/* --- Deviens Égérie + Vidéo CTA --- */
.egerie-cta-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    width: 100%;
    max-width: 1136px; /* align with challengers grid: 4×260 + 3×32 */
    padding: 0 0 16px;
    justify-content: center;
    align-items: stretch;
    gap: 32px;
}

.egerie-card {
    display: flex;
    flex: 0 0 calc(50% - 16px);
    min-width: 0;
    padding: 48px 40px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background-color: var(--color-primary);
    border-radius: 24px;
}

.egerie-card-title {
    color: var(--color-near-black);
    text-align: center;
    font-family: var(--font-display-black-italic);
    font-size: 46px;
    line-height: 56px;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-left: -36px;
    margin-right: -36px;
}

.egerie-card-text {
    color: var(--color-dark);
    text-align: center;
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 325;
    line-height: 26px;
}

.egerie-video {
    display: flex;
    flex: 0 0 calc(50% - 16px);
    min-width: 0;
}

.egerie-video-wrapper {
    flex: 1;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

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


/* --- Club registration section --- */
.club-section {
    width: 100%;
    background-color: #fff;
    padding: 80px 0;
}

.club-section-inner {
    display: flex;
    max-width: 1216px; /* align with challengers: 1136px content + 2×40px padding */
    margin: 0 auto;
    padding: 0 40px;
    gap: 40px;
    align-items: flex-start;
}

.club-info {
    flex: 0 0 30%;
    min-width: 0;
}

.club-title {
    font-family: var(--font-display-black-italic);
    font-size: 46px;
    line-height: 1.1;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #000;
    margin: 0 0 24px;
}

.club-lead {
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 22px;
    line-height: 1.4;
    color: #000;
    margin: 0 0 16px;
}

.club-details {
    font-family: var(--font-sans);
    font-weight: 325;
    font-size: 14px;
    line-height: 1.6;
    color: #000;
    margin: 0;
}

/* --- Club cards Slick slider --- */
.club-cards-scroll {
    flex: 1;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    position: relative;
}

/* Single card: no slider, stretch to fill */
.club-cards-scroll > .club-card {
    width: 100%;
    max-width: 100%;
    margin: 0;
}

/* In the slider context, each .slick-slide is sized by Slick (container / slidesToShow).
   Remove the card's 374px cap so it fills its slide; margin keeps the inter-card gap. */
.club-cards-scroll.slick-initialized .slick-slide .club-card {
    max-width: none;
}

.club-cards-scroll .slick-slide {
    padding: 0;
}

.club-slider-prev,
.club-slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    color: #000;
    transition: background 0.2s;
}

.club-slider-prev:hover,
.club-slider-next:hover {
    background: #fff;
}

.club-slider-prev {
    left: 12px;
}

.club-slider-next {
    right: 12px;
}

.club-slider-prev.slick-disabled,
.club-slider-next.slick-disabled {
    opacity: 0.35;
    cursor: default;
}

.club-card {
    max-width: 374px;
    margin: 0 8px;
    min-height: 480px;
    border-radius: 16px;
    background-size: cover;
    background-position: center;
    display: flex !important;
    align-items: stretch;
    overflow: hidden;
}

.club-card-content {
    flex: 1;
    align-self: stretch;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background:
        linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0) 55%),
        linear-gradient(132deg, rgba(0, 0, 0, 0.70) 13.55%, rgba(0, 0, 0, 0.00) 59.02%);
    color: #fff;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
    position: relative;
}

/* Guest photo medallion — inline in the guest row on all viewports */
.club-card-guest-photo {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
    margin-left: auto;
    flex-shrink: 0;
}

@media (max-width: 968px) {
    .club-card-guest-photo {
        width: 64px;
        height: 64px;
        border-width: 2px;
    }
}

.club-card-city {
    font-family: var(--font-display-black-italic);
    font-size: 76px;
    line-height: 76px;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin: 0 0 8px;
}

.club-card-date {
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 16px;
    line-height: 22px;
    margin: 0 0 4px;
    text-transform: uppercase;
}

.club-card-hours {
    display: inline-block;
    margin-left: 4px;
    opacity: 0.85;
}

.club-card-hours::before {
    content: '· ';
}

.club-card-guest {
    font-family: var(--font-sans);
    font-weight: 325;
    font-size: 14px;
    line-height: 18px;
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.club-card-guest a {
    color: #fff;
    text-decoration: underline;
}

.club-card-club {
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 14px;
    line-height: 22px;
    margin: 0 0 2px;
}

.club-card-address {
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 14px;
    line-height: 22px;
    margin: 0 0 16px;
}

/* Visual-only overrides on top of .btn .btn-tertiary */
.club-card-agenda {
    font-family: var(--font-sans) !important;
    font-size: 14px !important;
    font-weight: 350;
    text-shadow: none;
    line-height: 22px;
    letter-spacing: unset;
    text-transform: none;
}

/* --- Club section mobile --- */
@media (max-width: 968px) {
    .club-section {
        padding: 48px 0;
    }

    .club-section-inner {
        flex-direction: column;
        padding: 0 24px;
        gap: 32px;
    }

    .club-info {
        flex: none;
        width: 100%;
    }

    .club-title {
        font-size: 36px;
    }

    .club-card {
        min-height: 400px;
    }
}

/* --- Home challengers section --- */
.home-challengers {
    width: 100%;
    background: var(--color-gray-light);
    padding: 80px 0;
}

/* Inner wrapper: content width matches the 4-card grid (4×260 + 3×32 = 1136px).
   Adding 2×40px padding on each side → max-width 1216px. */
.home-challengers-inner {
    max-width: 1216px;
    margin: 0 auto;
    padding: 0 40px;
}

.home-challengers-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.section-title {
    font-family: var(--font-display-black-italic);
    font-size: 46px;
    line-height: 1.1;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #000;
    margin: 0;
}

/* Outlined pill — visual-only overrides on top of .btn .btn-tertiary */
.btn-pill {
    border: 1px solid #000;
    background: transparent;
    color: #000;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 350;
    line-height: 22px;
    letter-spacing: normal;
    text-transform: none;
}

.home-challengers-subtitle {
    color: var(--color-grey-grey18);
    font-family: var(--font-sans);
    font-size: 18px;
    font-weight: 325;
    line-height: 26px;
    margin: 0 0 32px;
}


.home-challengers-cta {
    display: flex;
    gap: 16px;
    margin-top: 48px;
}

@media (max-width: 968px) {
    .home-challengers {
        padding: 48px 0;
    }

    .home-challengers-inner {
        padding: 0 24px;
    }

    .section-title {
        font-size: 32px;
    }

    .home-challengers-cta {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .home-challengers-inner {
        display: flex;
        flex-direction: column;
    }

    .home-challengers-header {
        display: contents;
    }

    .home-challengers-header .section-title {
        order: 1;
    }

    .home-challengers-subtitle {
        order: 2;
        margin-bottom: 8px;
    }

    .home-challengers-header .btn-pill {
        order: 3;
        align-self: flex-start;
        margin-bottom: 24px;
    }

    .home-challengers-inner .challengers-grid {
        order: 4;
    }

    .home-challengers-cta {
        order: 5;
    }
}

/* --- Home form errors --- */
.bloc .inside form input.error {
    background-image: url("../gfx/error.png");
    background-position: calc(100% - 20px) center;
    background-repeat: no-repeat;
}

.bloc .inside form input.error {
    color: var(--color-error);
}

#form_register input[type='checkbox'].error {
    border-color: var(--color-error);
}

#form_register input[type='submit'] {
    margin: 1em 0;
}

#home .selectize-control {
    width: 100%;
}

/* --- Form hints --- */
#register_participate_password + p.form-hint,
#description + p.form-hint,
.label-upload + p.form-hint,
.popup p.form-hint {
    margin-top: -1em;
    margin-bottom: 1em;
    font-size: 0.8em;
    color: unset;
}

.popup p.form-hint {
    margin-top: 0;
    margin-left: 0;
    padding: 0;
    text-align: left;
}

