
/* ========================================
   DÉTAIL D'UNE ACTIVITÉ — STYLE MODERNE
   ======================================== */

.activity-detail-page {
    --detail-accent: #c62828;
    --detail-ink: #172033;
    --detail-muted: #667085;

    background:
        radial-gradient(
            ellipse at top left,
            rgba(198, 40, 40, .06),
            transparent 38%
        ),
        #f7f8fb;
    color: var(--detail-ink);
}

.activity-detail-heading {
    max-width: 780px;
    margin: 0 auto 2.5rem;
}

.activity-detail-eyebrow {
    margin-bottom: .65rem;
    color: var(--detail-accent);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.activity-detail-heading h1 {
    margin: 0;
    color: var(--detail-ink);
    font-size: clamp(2.1rem, 4vw, 3.3rem);
    font-weight: 850;
    line-height: 1.12;
    letter-spacing: -.04em;
    overflow-wrap: anywhere;
}

.activity-detail-intro {
    max-width: 600px;
    margin: 1rem auto 0;
    color: var(--detail-muted);
    font-size: 1.05rem;
    line-height: 1.75;
}

/* Carte principale */

.activity-detail-card {
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid rgba(16, 24, 40, .06);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(16, 24, 40, .09);
}

/* Image */

.activity-detail-image-wrapper {
    position: relative;
    height: clamp(250px, 42vw, 430px);
    overflow: hidden;
    background: #e9edf3;
}

.activity-detail-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.activity-detail-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(16, 24, 40, .02) 45%,
        rgba(16, 24, 40, .42) 100%
    );
    pointer-events: none;
}

.activity-detail-image-label {
    position: absolute;
    bottom: 1.4rem;
    left: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .65rem 1rem;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 999px;
    background: rgba(255, 255, 255, .16);
    color: #fff;
    font-size: .85rem;
    font-weight: 750;
    backdrop-filter: blur(10px);
}

/* Contenu */

.activity-detail-body {
    padding: clamp(1.4rem, 4vw, 3rem);
}

.activity-detail-section-title {
    display: flex;
    align-items: center;
    gap: .85rem;
    margin-bottom: 1.5rem;
}

.activity-detail-title-icon {
    display: inline-flex;
    flex: 0 0 46px;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: rgba(198, 40, 40, .08);
    color: var(--detail-accent);
    font-size: 1.25rem;
}

.activity-detail-section-title h2 {
    margin: 0;
    color: var(--detail-ink);
    font-size: clamp(1.25rem, 2.5vw, 1.65rem);
    font-weight: 800;
    line-height: 1.3;
}

.activity-detail-description {
    color: #475467;
    font-size: 1.02rem;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.activity-detail-description > :first-child {
    margin-top: 0;
}

.activity-detail-description > :last-child {
    margin-bottom: 0;
}

.activity-detail-description img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.activity-detail-description h2,
.activity-detail-description h3,
.activity-detail-description h4 {
    margin-top: 1.5rem;
    margin-bottom: .7rem;
    color: var(--detail-ink);
    font-weight: 800;
}

.activity-detail-description a {
    color: var(--detail-accent);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.activity-detail-divider {
    height: 1px;
    margin: 2rem 0;
    background: #eaecf0;
}

/* Appel à l'inscription */

.activity-detail-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.5rem;
    border: 1px solid rgba(198, 40, 40, .10);
    border-radius: 18px;
    background: linear-gradient(
        120deg,
        rgba(198, 40, 40, .055),
        #fff 75%
    );
}

.activity-detail-cta-text h3 {
    margin: 0 0 .4rem;
    color: var(--detail-ink);
    font-size: 1.15rem;
    font-weight: 800;
}

.activity-detail-cta-text p {
    margin: 0;
    color: var(--detail-muted);
    font-size: .95rem;
    line-height: 1.6;
}

.activity-detail-button {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    min-height: 48px;
    padding: .85rem 1.25rem;
    border: 1px solid var(--detail-accent);
    border-radius: 999px;
    background: var(--detail-accent);
    color: #fff;
    font-weight: 750;
    text-decoration: none;
    box-shadow: 0 7px 18px rgba(198, 40, 40, .17);
    transition:
        transform .2s ease,
        background .2s ease,
        box-shadow .2s ease;
}

.activity-detail-button:hover {
    transform: translateY(-2px);
    background: #a91f1f;
    color: #fff;
    box-shadow: 0 10px 24px rgba(198, 40, 40, .23);
}

.activity-detail-button:focus-visible {
    outline: 3px solid rgba(198, 40, 40, .35);
    outline-offset: 4px;
}

/* Mobile */

@media (max-width: 767.98px) {
    .activity-detail-page {
        padding-top: 2.5rem !important;
        padding-bottom: 3rem !important;
    }

    .activity-detail-heading {
        margin-bottom: 1.7rem;
    }

    .activity-detail-intro {
        font-size: .98rem;
    }

    .activity-detail-card {
        border-radius: 18px;
    }

    .activity-detail-image-wrapper {
        height: 250px;
    }

    .activity-detail-image-label {
        bottom: 1rem;
        left: 1rem;
    }

    .activity-detail-body {
        padding: 1.25rem;
    }

    .activity-detail-cta {
        align-items: stretch;
        flex-direction: column;
        gap: 1.2rem;
        padding: 1.2rem;
    }

    .activity-detail-button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .activity-detail-button {
        transition: none;
    }
}