.disciplines-chips {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

@media (max-width: 900px) {
    .disciplines-chips {
        justify-content: center;
    }
}

.chip {
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 8px 14px;
    border-radius: 99px;
    font-weight: 500;
    border: 1px solid var(--lidfsg-border);
    color: var(--lidfsg-muted) !important;
    background: white;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0, 40, 80, 0.22) !important;
    transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.chip:hover,
.chip.is-active {
    background: var(--lidfsg-blue);
    color: #fff !important;
    border-color: var(--lidfsg-blue);
    box-shadow: 0 4px 12px rgba(0, 114, 187, 0.35);
    transform: translateY(-1px);
}

/* ================================================
   ARCHIVE DISCIPLINES
   ================================================ */

.disc-page {
    min-height: 60vh;
}

/* Hero */
.disc-hero {
    padding: 56px 24px 24px;
}

.disc-hero__inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.disc-hero__titre {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif !important;
    font-size: 60px !important;
    font-weight: 800 !important;
    color: var(--lidfsg-blue-dark) !important;
    letter-spacing: -0.01em;
    margin: 0 0 16px;
}

.disc-hero__titre span {
    color: var(--lidfsg-blue) !important;
}

.disc-hero__titre::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--lidfsg-blue);
    margin: 14px auto 0;
    border-radius: 2px;
}

.disc-hero__desc {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-size: 20px;
    font-weight: 400;
    color: var(--lidfsg-muted);
    max-width: 600px;
    line-height: 1.7;
    margin: 0 auto;
    text-align: center;
}

/* Contenu */
.disc-contenu {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 24px 80px;
    display: flex;
    flex-direction: column;
    gap: 64px;
}

/* Catégorie */
.disc-categorie__header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.disc-categorie__label {
    font-family: var(--lidfsg-font-title);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
    background: var(--lidfsg-blue);
    padding: 7px 18px;
    border-left: 4px solid var(--lidfsg-orange);
    white-space: nowrap;
    flex-shrink: 0;
}

.disc-categorie__header::before,
.disc-categorie__header::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--lidfsg-border);
}

/* Grille */
.disc-grille {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}

/* Carte */
.disc-carte {
    flex: 0 0 calc(25% - 18px);
    max-width: 260px;
    background: #1a2e5a;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-top: 4px solid var(--lidfsg-orange);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.disc-carte:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.2);
}

/* Carte avec image */
.disc-carte--has-image {
    background-size: cover;
    background-position: center;
    border-top: none;
    aspect-ratio: 3 / 3.4; /* même ratio que les cartes du carousel de l'accueil */
    min-height: 240px;
    position: relative;
    justify-content: flex-end;
}

.disc-carte--has-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,20,60,0.92) 0%, rgba(10,20,60,0.3) 60%, transparent 100%),
                rgba(27, 58, 75, 0.25);
    border-radius: 12px;
}

.disc-carte--has-image .disc-carte__top,
.disc-carte--has-image .disc-carte__desc {
    position: relative;
    z-index: 1;
}

.disc-carte__top {
    padding: 24px 22px 16px;
}

.disc-carte--has-image .disc-carte__top {
    padding: 0 22px 12px;
}

.disc-carte__nom {
    font-family: var(--lidfsg-font-title) !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    color: #fff !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    margin: 0 0 12px !important;
    line-height: 1.3 !important;
    text-align: left !important;
}

.disc-carte__formats {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.disc-carte__format {
    font-family: var(--lidfsg-font-title);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    background: var(--lidfsg-orange);
    padding: 3px 10px;
    border-radius: 99px;
}

.disc-carte__desc {
    font-family: var(--lidfsg-font-body);
    font-size: 0.78rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.35;
    margin: 0;
    padding: 0 22px 24px;
    flex: 1;
}

.disc-carte--has-image .disc-carte__desc {
    flex: none;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding-top: 0;
    padding-bottom: 0;
    transition: max-height 0.35s ease, opacity 0.25s ease, padding-bottom 0.35s ease;
}

.disc-carte--has-image:hover .disc-carte__desc {
    max-height: 260px;
    opacity: 1;
    padding-bottom: 24px;
}

.disc-carte__credit {
    position: absolute;
    z-index: 1;
    right: 10px;
    bottom: 8px;
    font-family: var(--lidfsg-font-body);
    font-size: 0.65rem;
    color: rgba(255,255,255,0.75);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.disc-carte:hover .disc-carte__credit {
    opacity: 1;
}

/* Responsive */
@media (max-width: 960px) {
    .disc-carte {
        flex: 0 0 calc(50% - 12px);
        max-width: none;
    }
}

@media (max-width: 600px) {
    .disc-hero {
        padding: 40px 20px 36px;
    }

    .disc-contenu {
        padding: 36px 16px 56px;
        gap: 48px;
    }

    .disc-carte {
        flex: 0 0 100%;
        max-width: none;
    }
}
