/**
 * Section Text + Cards (BLOC 02 Figma)
 * ====================================
 * Titre + description en haut, grille de cards avec CTA en bas.
 * Cards : petit trait accent + titre + description + bouton CTA.
 */

.section-text-cards__header {
    margin: 0 0 var(--space-5);
}

/* Figma : titre à ~490px pour forcer un wrap sur 2 lignes */
.section-text-cards__title {
    font-size: clamp(1.75rem, 2.6vw, 2.3125rem); /* 37px max, Figma exact */
    font-weight: var(--font-weight-bold);
    line-height: 1.15;
    margin: 0 0 var(--space-4);
    color: inherit;
    max-width: 490px;
}

.section-text-cards__title .accent,
.section-text-cards__title .green-text {
    color: var(--color-accent);
}

/* Figma : description pleine largeur, texte noir */
.section-text-cards__description {
    font-size: var(--font-size-body);
    line-height: var(--line-height-base);
    color: inherit;
    max-width: none;
}

.section-text-cards__description :first-child { margin-top: 0; }
.section-text-cards__description :last-child { margin-bottom: 0; }

/* Grille */
.section-text-cards__grid {
    display: grid;
    gap: var(--space-3);
    grid-template-columns: repeat(var(--grid-cols, 3), 1fr);
}

.section-text-cards__grid[data-columns="2"] { --grid-cols: 2; }
.section-text-cards__grid[data-columns="3"] { --grid-cols: 3; }
.section-text-cards__grid[data-columns="4"] { --grid-cols: 4; }

@media (max-width: 1024px) {
    .section-text-cards__grid[data-columns] { --grid-cols: 2; }
}

@media (max-width: 640px) {
    .section-text-cards__grid[data-columns] { --grid-cols: 1; }
}

/* Card — Figma : radius 16px, shadow spécifique, pas de gap (marges précises) */
.section-text-cards__card {
    background-color: var(--color-white);
    color: var(--color-text);
    padding: var(--space-3);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 27.7px 0 rgba(0, 12, 36, 0.1);
}

/* Figma : card title NOIR, semibold 16px, 16px sous-jacent jusqu'au separator */
.section-text-cards__card-title {
    font-size: var(--font-size-body);
    font-weight: var(--font-weight-semibold);
    line-height: 1.3;
    margin: 0 0 var(--space-2); /* 16px jusqu'au separator */
    color: var(--color-text);
}

.section-text-cards__card-separator {
    display: block;
    width: 88px;
    height: 1px;
    margin: 0 0 var(--space-2); /* 16px jusqu'à la description (compact vs Figma) */
    background-color: var(--color-primary);
    opacity: 0.5;
}

/* Figma : description NOIRE, 16px, flex-grow pour pousser le CTA en bas */
.section-text-cards__card-description {
    font-size: var(--font-size-body);
    line-height: var(--line-height-base);
    color: var(--color-text);
    margin: 0 0 var(--space-3); /* 24px jusqu'au CTA */
    flex-grow: 1;
}

/* CTA card — Figma : pill bleu, h=42, padding 8/24, icon plus simple (pas de cercle), texte uppercase bold 16px */
.section-text-cards__card-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-1);
    padding: 8px 24px;
    height: 42px;
    background-color: var(--color-primary);
    color: var(--color-white);
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-body);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    border-radius: var(--radius-pill);
    text-decoration: none;
    align-self: flex-start;
    transition: background-color var(--transition-base), transform var(--transition-fast);
}

.section-text-cards__card-cta:hover,
.section-text-cards__card-cta:focus-visible {
    background-color: var(--color-primary-dark);
    color: var(--color-white);
    transform: translateY(-1px);
}

.section-text-cards__card-cta-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}
