/* ============================================================
   Layout cartes — Industry Leaders (4 cartes dégradé navy)
   CSS plat uniquement — pas de syntaxe &__ / &-- SASS
   ============================================================ */

/* ---- Section : pas de padding sur la section elle-même (géré par le bloc interne) ---- */
section.builder.cartes {
    padding: 0;
}

/* ---- Bloc interne arrondi avec dégradé ---- */
.cartes__inner {
    margin: 0 auto;
    max-width: 1440px;
    padding: 40px 24px;
}

@media (min-width: 1024px) {
    .cartes__inner {
        padding: 64px 80px;
    }
}

.cartes__inner > .section__title + .cartes__grid,
.cartes__inner > .cartes__grid {
    /* rien ici — le décalage est géré par gap du flex parent */
}

/* Le fond dégradé navy est appliqué sur le bloc interne arrondi */
.cartes__bloc {
    background: linear-gradient(to bottom, var(--color-navy), var(--color-navy-deep));
    border-radius: var(--border-radius-card);
    overflow: hidden;
    padding: 48px 24px;
}

@media (min-width: 1024px) {
    .cartes__bloc {
        padding: 80px;
    }
}

/* ---- Titre de section ---- */
.cartes__inner .section__title {
    text-align: center;
    margin-bottom: 0;
}

.cartes__inner .section__title h2,
.cartes__inner .section__title .h2_like {
    font-family: var(--title-font);
    font-weight: var(--medium);
    font-size: 32px;
    line-height: 1.2;
    text-align: center;
}

@media (min-width: 1024px) {
    .cartes__inner .section__title h2,
    .cartes__inner .section__title .h2_like {
        font-size: 48px;
        line-height: 52px;
        margin-bottom: 0;
    }
}

/* Mot accentué doré dans le h2 */
.cartes__inner .section__title h2 .text-gold,
.cartes__inner .section__title .h2_like .text-gold {
    color: var(--color-gold);
}

/* Sous-titre / introduction */
.cartes__inner .section__title * {
    font-family: var(--title-font);
    text-align: center;
    margin: 0;

    &:not(li, .bouton, .link-title) {
        padding: 10px 0;
    }
}

/* ---- Grille de cartes ---- */
.cartes__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 576px) {
    .cartes__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .cartes__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ---- Carte individuelle ---- */
.carte {
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-radius: var(--border-radius);
    background-color: rgba(38, 69, 100, 0.5);
    padding: 32px;
    text-decoration: none;
    color: inherit;
    transition: background-color 200ms ease;
    cursor: pointer;
}

.cartes__bloc .section__title {
    *:not(.bouton) {
        color: var(--white);
    }
}

.carte:hover {
    background-color: var(--white);
    text-decoration: none;
}

/* ---- Numéro de carte ---- */
.carte__number {
    display: flex;
    align-items: center;
    padding-bottom: 16px;
    font-family: var(--title-font);
    font-size: 20px;
    line-height: 1.25;
    color: var(--color-gold);
}

.carte__slash {
    color: var(--color-gold);
    margin-right: 2px;
}

/* ---- Image de carte (si présente) ---- */
.carte__image {
    width: 100%;
    overflow: hidden;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.carte__image img {
    width: 100%;
    max-height: 240px;
    object-fit: cover;
    display: block;
}

/* ---- Contenu texte ---- */
.carte__content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.carte__titre {
    font-family: var(--title-font);
    font-size: 24px;
    font-weight: var(--bold);
    line-height: 2rem;
    color: var(--white);
    transition: color 200ms ease;
    margin: 0;
}

.carte:hover .carte__titre {
    color: var(--dark);
}

.carte__texte {
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-light-grey);
    transition: color 200ms ease;
    margin: 0;
}

.carte:hover .carte__texte {
    color: var(--color-navy);
}
