/* ============================================================
   Layout columns — Icône + Titre + Texte + Lien
   CSS plat uniquement — pas de syntaxe &__ / &-- SASS
   ============================================================ */

/* ---- Tous les éléments de la section sont centrés (cf. maquette) ---- */
.columns {
    text-align: center;
}

/* ---- Bloc interne arrondi ---- */
/* Le fond est piloté par layout_settings.bg via data-color (section.builder[data-color]).
   Par défaut : fond transparent. Le client choisit la couleur dans le back-office. */
.columns .container {
    border-radius: var(--border-radius-card);
    overflow: hidden;
    padding: 48px 24px;
}

/* Quand un data-color est défini, on applique la couleur choisie sur le bloc interne */
section.columns[data-color] .container {
    background-color: attr(data-color);
}

/* Token #ECF0F4 (Gris clair — hsl(210,25%,94%)) → var(--color-light-grey) */
section.columns[data-color="#ECF0F4"] .container,
section.columns[data-color="#ecf0f4"] .container {
    background-color: var(--color-light-grey);
}

/* Token blanc */
section.columns[data-color="#ffffff"] .container,
section.columns[data-color="#FFFFFF"] .container {
    background-color: var(--white);
}

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

/* ---- Titre de section (h2 centré avec span doré) ---- */
.columns .section__title {
    text-align: center;
    margin-bottom: 0;
}

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

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

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

/* ---- Introduction / sous-titre (rendu via <p> ou wysiwyg) ---- */
.columns .section__title p {
    font-family: var(--title-font);
    font-weight: var(--medium);
    font-size: 16px;
    color: var(--color-navy-deep);
    text-align: center;
    padding-top: 16px;
    padding-bottom: 40px;
    margin: 0;
}

@media (min-width: 1024px) {
    .columns .section__title p {
        padding-bottom: 44px;
    }
}

/* ---- Grille de colonnes ---- */
.columns__list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding-bottom: 44px;
}

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

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

/* ---- Item colonne (lien ou div) ---- */
.columns__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 8px;
    text-align: center;
    text-decoration: none;
    color: inherit;
}

.columns__item:hover {
    text-decoration: none;
}

/* ---- Badge icône ---- */
.columns__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 116px;
    height: 116px;
    flex-shrink: 0;
}

/* Cercle interne — via un pseudo-wrapper natif :
   columns__icon est 116×116 ; le cercle enfant est l'image wrapper */
.columns__icon img {
    width: 33px;
    height: 33px;
    display: block;
    flex-shrink: 0;
}

/* Le cercle bleu est simulé sur le conteneur .columns__icon avec ::before */
.columns__icon::before {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: var(--color-navy);
    box-shadow: 0 0 0 8px rgba(38, 69, 100, 0.16);
    transition: width 300ms ease, height 300ms ease, background-color 300ms ease, box-shadow 300ms ease;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 0;
}

.columns__icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.columns__icon img {
    position: relative;
    z-index: 1;
}

/* Hover sur l'item parent (lien <a>) : le cercle grossit et passe en noir */
.columns__item:hover .columns__icon::before {
    width: 116px;
    height: 116px;
    background-color: var(--dark);
    box-shadow: 0 0 0 0px rgba(38, 69, 100, 0);
}

/* ---- Textes des cartes ---- */
.columns__item h3 {
    font-family: var(--title-font);
    font-weight: var(--bold);
    font-size: 18px;
    line-height: 1.2;
    color: var(--color-navy-deep);
    transition: color 300ms ease;
    margin: 0;
}

.columns__item h3 {
    margin: 15px 0 !important;
    @media (min-width: 1024px) {
        font-size: 20px;
    }
}

.columns__item p {
    font-family: var(--main-font);
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-text-grey);
    transition: color 300ms ease;
    margin: 0;
}

/* Hover : titre et texte passent en gold */
.columns__item:hover h3 {
    color: var(--color-gold);
}

.columns__item:hover p {
    color: var(--color-gold);
}

/* ---- CTA centré ---- */
.columns .section__btn {
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.columns .section__btn.text-center {
    justify-content: center;
}

.columns .section__btn .bouton {
    background-color: var(--color-gold);
    color: var(--white);
    border-radius: var(--border-radius-full);
    padding: 12px 16px;
    font-size: 14px;
    font-family: var(--main-font);
    font-weight: var(--regular);
    transition: background-color 300ms ease;
    border: none;
    gap: 8px;
}

.columns .section__btn .bouton:hover {
    background-color: var(--color-dark-gold);
    color: var(--white);
    border: none;
}

/* Picto téléphone (before) */
.columns .section__btn .bouton.has-picto.before::before {
    width: 16px;
    height: 16px;
}
