/* =========================================================
   MDES — Hub Pages
   Fichier : assets/css/hub.css
   Version : V0.1
   Pages concernées :
   - Qui sommes-nous ?
   - Notre combat
   - Notre projet de société
   - Nos luttes
   - Rot Kozé
   - International
   - Actualités
   ========================================================= */

/* ------------------------------
   Base
------------------------------ */

.mdes-hub-page,
.mdes-hub-page * {
    box-sizing: border-box;
}

.mdes-hub-page {
    background: #f4efe3;
    color: #151515;
    overflow-x: hidden;
}

.mdes-hub-page img {
    max-width: 100%;
}

.mdes-hub-page h1,
.mdes-hub-page h2,
.mdes-hub-page h3,
.mdes-hub-page p,
.mdes-hub-page li,
.mdes-hub-page a,
.mdes-hub-page span {
    overflow-wrap: break-word;
    text-wrap: pretty;
}

.mdes-hub-container {
    width: min(100% - 64px, 1040px);
    max-width: 1040px;
    margin-left: auto;
    margin-right: auto;
}

/* ------------------------------
   Hero
------------------------------ */

.mdes-hub-hero {
    position: relative;
    min-height: 560px;
    display: flex;
    align-items: center;
    background:
        radial-gradient(circle at 82% 22%, rgba(255, 210, 26, 0.18), transparent 30%),
        radial-gradient(circle at 12% 82%, rgba(212, 0, 0, 0.20), transparent 32%),
        #050505;
    color: #ffffff;
    border-bottom: 6px solid #d40000;
    overflow: hidden;
}

.mdes-hub-hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.94), rgba(0, 0, 0, 0.66)),
        linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.58));
    pointer-events: none;
}

.mdes-hub-hero__content {
    position: relative;
    z-index: 2;
    max-width: 940px;
    padding: 100px 0;
}

.mdes-hub-kicker {
    display: inline-flex;
    align-items: center;
    margin-bottom: 18px;
    color: #ffd21a;
    font-size: 0.78rem;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.mdes-hub-kicker--red {
    color: #d40000;
}

.mdes-hub-title {
    max-width: 920px;
    margin: 0 0 24px;
    color: #ffffff;
    font-size: clamp(3rem, 6.2vw, 6.4rem);
    line-height: 0.94;
    font-weight: 950;
    letter-spacing: -0.065em;
}

.mdes-hub-intro {
    max-width: 820px;
    margin: 0 0 34px;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(1.08rem, 2vw, 1.35rem);
    line-height: 1.58;
    font-weight: 500;
}

.mdes-hub-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

/* ------------------------------
   Sections
------------------------------ */

.mdes-hub-section {
    position: relative;
    padding: 88px 0;
    overflow-x: hidden;
}

.mdes-hub-section--cream {
    background: #f4efe3;
    color: #151515;
}

.mdes-hub-section--black {
    background:
        radial-gradient(circle at 0% 0%, rgba(212, 0, 0, 0.24), transparent 34%),
        radial-gradient(circle at 100% 100%, rgba(0, 90, 45, 0.22), transparent 36%),
        #050505;
    color: #ffffff;
}

.mdes-hub-section-title {
    max-width: 900px;
    margin: 0 0 22px;
    color: #d40000;
    font-size: clamp(2rem, 3.9vw, 4rem);
    line-height: 1.02;
    font-weight: 950;
    letter-spacing: -0.05em;
}

.mdes-hub-section-title::after {
    content: "";
    display: block;
    width: 56px;
    height: 5px;
    margin-top: 18px;
    background: #d40000;
}

.mdes-hub-section-title--light {
    color: #ffffff;
}

.mdes-hub-section-title--light::after {
    background: #d40000;
}

.mdes-hub-heading {
    max-width: 840px;
    margin-bottom: 42px;
}

.mdes-hub-heading p {
    max-width: 760px;
    margin: 0;
    color: inherit;
    opacity: 0.84;
    font-size: 1.05rem;
    line-height: 1.7;
    font-weight: 500;
}

/* ------------------------------
   Boutons et liens
------------------------------ */

.mdes-hub-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 14px 24px;
    border-radius: 3px;
    border: 2px solid transparent;
    font-size: 0.92rem;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.mdes-hub-btn:hover,
.mdes-hub-btn:focus {
    transform: translateY(-2px);
    text-decoration: none;
}

.mdes-hub-btn--red {
    background: #d40000;
    color: #ffffff;
}

.mdes-hub-btn--red:hover,
.mdes-hub-btn--red:focus {
    background: #a90000;
    color: #ffffff;
}

.mdes-hub-btn--yellow {
    background: #ffd21a;
    color: #050505;
}

.mdes-hub-btn--yellow:hover,
.mdes-hub-btn--yellow:focus {
    background: #ffe36b;
    color: #050505;
}

.mdes-hub-text-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #d40000;
    font-weight: 900;
    text-decoration: none;
}

.mdes-hub-text-link::after {
    content: "→";
    font-weight: 900;
    transition: transform 0.2s ease;
}

.mdes-hub-text-link:hover,
.mdes-hub-text-link:focus {
    text-decoration: underline;
}

.mdes-hub-text-link:hover::after,
.mdes-hub-text-link:focus::after {
    transform: translateX(4px);
}

/* ------------------------------
   Split introduction
------------------------------ */

.mdes-hub-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.86fr);
    gap: 58px;
    align-items: start;
}

.mdes-hub-split__content {
    min-width: 0;
}

.mdes-hub-split__content p {
    max-width: 720px;
    margin: 0 0 18px;
    color: rgba(21, 21, 21, 0.82);
    font-size: 1.05rem;
    line-height: 1.75;
    font-weight: 500;
}

.mdes-hub-split__panel {
    min-width: 0;
    padding: 34px 32px;
    background: #050505;
    color: #ffffff;
    border-top: 6px solid #d40000;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.mdes-hub-split__panel h3 {
    margin: 0 0 20px;
    color: #ffd21a;
    font-size: 1.45rem;
    line-height: 1.15;
    font-weight: 950;
}

.mdes-hub-split__panel ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.mdes-hub-split__panel li {
    position: relative;
    padding: 14px 0 14px 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.13);
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.55;
    font-weight: 500;
}

.mdes-hub-split__panel li:last-child {
    border-bottom: 0;
}

.mdes-hub-split__panel li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 21px;
    width: 11px;
    height: 11px;
    background: #d40000;
}

/* ------------------------------
   Cards hub
------------------------------ */

.mdes-hub-card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    width: 100%;
    max-width: 100%;
}

.mdes-hub-card {
    position: relative;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    padding: 30px 28px;
    background: #151515;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-top: 6px solid #d40000;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.30);
}

.mdes-hub-card--highlight {
    background:
        radial-gradient(circle at 95% 10%, rgba(255, 210, 26, 0.15), transparent 30%),
        #151515;
}

.mdes-hub-card__number {
    display: inline-flex;
    margin-bottom: 18px;
    color: #ffd21a;
    font-size: 0.82rem;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mdes-hub-card h3 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 1.35rem;
    line-height: 1.18;
    font-weight: 950;
}

.mdes-hub-card p {
    max-width: 860px;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.98rem;
    line-height: 1.65;
    font-weight: 500;
}

.mdes-hub-card a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #ffd21a;
    font-weight: 900;
    text-decoration: none;
}

.mdes-hub-card a::after {
    content: "→";
    transition: transform 0.2s ease;
}

.mdes-hub-card a:hover,
.mdes-hub-card a:focus {
    text-decoration: underline;
}

.mdes-hub-card a:hover::after,
.mdes-hub-card a:focus::after {
    transform: translateX(4px);
}

/* ------------------------------
   Timeline
------------------------------ */

.mdes-hub-timeline {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    width: 100%;
    max-width: 100%;
}

.mdes-hub-timeline__item {
    position: relative;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    padding: 30px 28px;
    background: #ffffff;
    border-left: 6px solid #d40000;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.08);
}

.mdes-hub-timeline__item span {
    display: inline-flex;
    margin-bottom: 16px;
    color: #d40000;
    font-size: 0.88rem;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mdes-hub-timeline__item h3 {
    margin: 0 0 12px;
    color: #151515;
    font-size: 1.3rem;
    line-height: 1.2;
    font-weight: 950;
}

.mdes-hub-timeline__item p {
    margin: 0;
    color: rgba(21, 21, 21, 0.82);
    font-size: 0.98rem;
    line-height: 1.65;
    font-weight: 500;
}

/* ------------------------------
   CTA final
------------------------------ */

.mdes-hub-cta {
    position: relative;
    min-height: 430px;
    display: flex;
    align-items: center;
    background:
        radial-gradient(circle at 84% 16%, rgba(255, 210, 26, 0.18), transparent 28%),
        radial-gradient(circle at 8% 86%, rgba(0, 90, 45, 0.22), transparent 34%),
        #050505;
    color: #ffffff;
    border-top: 6px solid #d40000;
    overflow: hidden;
}

.mdes-hub-cta__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.62)),
        linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.74));
    pointer-events: none;
}

.mdes-hub-cta__content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 95px 0;
}

.mdes-hub-cta h2 {
    max-width: 820px;
    margin: 0 0 22px;
    color: #ffffff;
    font-size: clamp(2.4rem, 5vw, 5rem);
    line-height: 0.98;
    font-weight: 950;
    letter-spacing: -0.06em;
}

.mdes-hub-cta h2::after {
    content: "";
    display: block;
    width: 56px;
    height: 5px;
    margin-top: 18px;
    background: #d40000;
}

.mdes-hub-cta p {
    max-width: 760px;
    margin: 0 0 30px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.08rem;
    line-height: 1.7;
    font-weight: 500;
}

/* ------------------------------
   Variantes futures possibles
------------------------------ */

.mdes-hub-page--combat .mdes-hub-hero,
.mdes-hub-page--luttes .mdes-hub-hero,
.mdes-hub-page--international .mdes-hub-hero,
.mdes-hub-page--rot-koze .mdes-hub-hero,
.mdes-hub-page--actualites .mdes-hub-hero {
    background:
        radial-gradient(circle at 82% 22%, rgba(255, 210, 26, 0.18), transparent 30%),
        radial-gradient(circle at 12% 82%, rgba(212, 0, 0, 0.20), transparent 32%),
        #050505;
}

/* ------------------------------
   Responsive
------------------------------ */

@media (max-width: 1040px) {
    .mdes-hub-container {
        width: min(100% - 44px, 1040px);
    }

    .mdes-hub-split {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .mdes-hub-split__panel {
        padding: 30px 26px;
    }
}

@media (max-width: 760px) {
    .mdes-hub-container {
        width: min(100% - 28px, 1040px);
    }

    .mdes-hub-hero {
        min-height: 500px;
        align-items: flex-end;
    }

    .mdes-hub-hero__content {
        padding: 86px 0 66px;
    }

    .mdes-hub-title {
        font-size: clamp(2.6rem, 13vw, 4.2rem);
        line-height: 0.98;
        letter-spacing: -0.05em;
    }

    .mdes-hub-intro {
        font-size: 1.02rem;
    }

    .mdes-hub-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .mdes-hub-btn {
        width: 100%;
    }

    .mdes-hub-section {
        padding: 62px 0;
    }

    .mdes-hub-section-title {
        font-size: clamp(2rem, 10vw, 3.2rem);
        line-height: 1.02;
        letter-spacing: -0.04em;
    }

    .mdes-hub-card,
    .mdes-hub-timeline__item {
        padding: 26px 22px;
    }

    .mdes-hub-cta {
        min-height: 400px;
    }

    .mdes-hub-cta__content {
        padding: 72px 0;
    }

    .mdes-hub-cta h2 {
        font-size: clamp(2.2rem, 11vw, 3.6rem);
    }
}

@media (max-width: 440px) {
    .mdes-hub-container {
        width: min(100% - 22px, 1040px);
    }

    .mdes-hub-hero {
        min-height: 470px;
    }

    .mdes-hub-hero__content {
        padding: 74px 0 58px;
    }

    .mdes-hub-title {
        font-size: clamp(2.3rem, 14vw, 3.5rem);
    }

    .mdes-hub-kicker {
        font-size: 0.68rem;
    }

    .mdes-hub-section {
        padding: 54px 0;
    }

    .mdes-hub-split__panel,
    .mdes-hub-card,
    .mdes-hub-timeline__item {
        padding: 24px 20px;
    }

    .mdes-hub-cta__content {
        padding: 64px 0;
    }
}

