:root {
    --color-accompagnement: #E8703A;
    --color-accompagnement-dark: #A8501F;

    --color-espace-membre: #2E2557;
    --color-espace-membre-dark: #19143A;

    --color-coaching-business: #6B8CAE;
    --color-coaching-business-dark: #3D5A78;

    --color-connexion: #8FCBEA;
    --color-connexion-dark: #4FA0C9;

    --color-bg: #FAFAFA;
    --color-text: #1A1A1A;
    --color-text-muted: #6B6B6B;

    --font-display: 'Playfair Display', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

body {
    font-family: var(--font-body);
    color: var(--color-text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 24px;

    background-color: var(--color-bg);
    background-image: url('../img/hub-background.jpg');
    background-image: image-set(
        url('../img/hub-background.webp') type('image/webp'),
        url('../img/hub-background.jpg') type('image/jpeg')
    );
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.hub-logo {
    width: 120px;
    margin-bottom: 8px;
}

.hub-offers {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 480px;
}

.hub-offer {
    position: relative;
    display: block;
    width: 100%;
    min-height: 200px;
    border-radius: 20px;
    text-decoration: none;
    background: #FDFDFD;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.hub-offer:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.09);
}

/* La forme 3D occupe toute la carte mais s'efface en fondu vers le blanc
   côté texte : elle donne l'impression d'un fragment d'objet bien plus
   grand que la carte, jamais une vignette isolée dans un coin. */
.hub-offer-visual {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, transparent 40%, black 62%);
    mask-image: linear-gradient(to right, transparent 0%, transparent 40%, black 62%);
    transition: transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.hub-offer:hover .hub-offer-visual {
    transform: scale(1.045);
}

.hub-offer-visual picture,
.hub-offer-visual img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.hub-offer-text {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 62%;
    padding: 30px 32px;
}

.hub-offer-eyebrow {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hub-offer-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 23px;
    line-height: 1.3;
    color: var(--color-text);
}

.hub-offer--accompagnement .hub-offer-eyebrow {
    color: var(--color-accompagnement-dark);
}

.hub-offer--coaching-business .hub-offer-eyebrow {
    color: var(--color-coaching-business-dark);
}

.hub-offer--espace-membre .hub-offer-eyebrow {
    color: var(--color-espace-membre-dark);
}

.hub-offer.is-disabled {
    cursor: default;
}

.hub-offer.is-disabled:hover {
    transform: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.hub-offer.is-disabled .hub-offer-visual {
    filter: grayscale(1) brightness(0.95);
}

.hub-offer.is-disabled::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(255, 255, 255, 0.55);
}

.hub-offer.is-disabled .hub-offer-text {
    opacity: 0.6;
}

.hub-offer-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(10, 10, 9, 0.75);
    padding: 6px 14px;
    border-radius: 999px;
}

@media (max-width: 480px) {
    .hub-offer {
        min-height: 170px;
    }

    .hub-offer-visual {
        -webkit-mask-image: linear-gradient(to right, transparent 0%, transparent 52%, black 74%);
        mask-image: linear-gradient(to right, transparent 0%, transparent 52%, black 74%);
    }

    .hub-offer-text {
        max-width: 70%;
        padding: 24px 24px;
    }

    .hub-offer-title {
        font-size: 20px;
    }
}
