/* ============================================================
   EGB Photographie — Bloc "Atouts (icônes)"
   Fichier dédié au bloc Wagtail
   `streams/templates/streams/blocks/block_icon_features.html`.

   La taille d'icône est paramétrable côté admin (`icon_size`).
   Elle est exposée via la custom property `--egb-icon-size`
   posée en `style=""` sur l'élément `.egb-icon-features`,
   pour rester scopé au bloc et fonctionner sans recharger la page.
   ============================================================ */

.egb-icon-features {
    /* Rythme vertical unifié — voir aussi block_editorial_quote,
       block_featured_photos et block_title_and_text. */
    padding: clamp(56px, 6vw, 80px) 0;
}
.egb-icon-features .egb-feature-item {
    text-align: center;
    padding: 20px 15px;
}
.egb-icon-features .egb-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--egb-icon-size, 80px);
    height: var(--egb-icon-size, 80px);
    margin-bottom: 22px;
}
.egb-icon-features .egb-feature-icon img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    display: block;
}
.egb-icon-features .egb-feature-title {
    color: #111;
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 1px;
    line-height: 1.35;
    margin: 0 0 12px;
    text-transform: none;
}
.egb-icon-features .egb-feature-text {
    color: #555;
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.55;
    margin: 0 auto;
    max-width: 320px;
}

@media (max-width: 768px) {
    .egb-icon-features { padding: clamp(40px, 5vw, 56px) 0; }
    .egb-icon-features .egb-feature-item { padding: 16px 10px; }
    .egb-icon-features .egb-feature-title { font-size: 1rem; }
    .egb-icon-features .egb-feature-text  { font-size: 0.9rem; }
}
