/*
 * Avocats Wilson Béziers
 * Home — cartes des expertises
 * A4-R12
 *
 * Ce fichier gère exclusivement les cartes.
 * Aucun changement du portrait ni du hero.
 */

.awb-hero__services {
    align-items: stretch;
}

/* Dimensions et alignement identiques */
.awb-hero__service {
    display: grid;
    grid-template-rows: 46px auto;
    align-content: center;
    min-width: 0;
    padding: 14px 12px;
}

/* Icône et titre sur un axe commun */
.awb-hero__service-heading {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    align-items: center;
    column-gap: 8px;
    min-height: 46px;
}

.awb-hero__service-heading svg {
    display: block;
    width: 32px;
    height: 32px;
    flex: none;
}

/* Titres uniformes sur ordinateur */
.awb-hero__service-heading h2 {
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 40px;

    margin: 0;
    padding: 0 0 0 10px;

    border-left: 2px solid var(--rust);

    font-family: Georgia, serif;
    font-size: clamp(13px, 1.1vw, 18px);
    font-weight: 700;
    line-height: 1.16;
    letter-spacing: -.025em;
    white-space: nowrap;
}

/* Descriptions alignées sur le texte des titres */
.awb-hero__service p {
    margin: 8px 0 0;
    padding-left: 52px;

    font-size: clamp(11px, .85vw, 14px);
    line-height: 1.35;
    text-align: left;
}

/* Tablettes : 2 cartes par ligne pour
   préserver la lisibilité des intitulés. */
@media (min-width: 761px) and (max-width: 1099px) {
    .awb-hero__services {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .awb-hero__service-heading h2 {
        font-size: 17px;
    }

    .awb-hero__service p {
        font-size: 13px;
    }
}

/* Smartphones : les longs titres peuvent revenir
   à la ligne sans déborder de leur carte. */
/* AWB_MOBILE_R21
   Titres d'expertise sur une ligne.
   Deux colonnes conservées sur téléphone.
*/

/* AWB_A6_R3_MOBILE_DESCRIPTIONS */
.awb-hero__service .awb-service-copy--mobile {
    display: none;
}

@media (max-width: 760px) {

    .awb-hero__service {
        display: grid;
        grid-template-rows: minmax(66px, auto) auto;
        align-content: start;
        min-height: 130px;
        padding: 12px 10px;
    }

    .awb-hero__service-heading {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 5px;
        min-height: 66px;
    }

    .awb-hero__service-heading svg {
        flex: 0 0 auto;
        width: 23px;
        height: 23px;
    }

    .awb-hero__service-heading h2 {
        display: block;
        width: 100%;
        min-height: 0;
        margin: 0;
        padding: 0;
        border-left: 0;

        font-family: Georgia, serif;
        font-size: clamp(11px, 2.9vw, 16px);
        font-weight: 700;
        line-height: 1.15;
        letter-spacing: -.04em;
        white-space: nowrap;
    }

    .awb-hero__service p {
        margin: 8px 0 0;
        padding-left: 0;
        text-align: left;
        font-size: 11px;
        line-height: 1.35;
    }

    /* Descriptions courtes sur téléphone */
    .awb-hero__service .awb-service-copy--desktop {
        display: none;
    }

    .awb-hero__service .awb-service-copy--mobile {
        display: inline;
        font-size: clamp(10px, 2.7vw, 11px);
        line-height: 1.35;
        white-space: normal;
    }

}

/* Très petits écrans :
   une colonne plutôt que couper les titres. */
@media (max-width: 350px) {

    .awb-hero__services {
        grid-template-columns: minmax(0, 1fr);
    }

    .awb-hero__service {
        grid-template-rows: auto auto;
        min-height: 90px;
        padding: 12px;
    }

    .awb-hero__service-heading {
        display: grid;
        grid-template-columns: 25px minmax(0, 1fr);
        align-items: center;
        gap: 9px;
        min-height: 30px;
    }

    .awb-hero__service-heading h2 {
        font-size: 15px;
    }

    .awb-hero__service p {
        padding-left: 34px;
        font-size: 12px;
    }
}

