/* =========================================================
   AF_Reseaux v1.0.0
   Developed by Ilyas Benayad
   Isolated afn-* namespace
   ========================================================= */

.afn-section{
    --afn-orange:#ef531c;
    --afn-navy:#132038;
    --afn-text:#48566d;

    width:100%;
    margin:0;
    padding:70px 30px 78px;
    background:#fff;
    font-family:"Inter",Arial,Helvetica,sans-serif;
    overflow:hidden;
}

.afn-section *,
.afn-section *::before,
.afn-section *::after{
    box-sizing:border-box;
}

.afn-container{
    width:100%;
    max-width:1450px;
    margin:0 auto;
}

.afn-header{
    width:100%;
    text-align:center;
    margin-bottom:48px;
}

.afn-eyebrow{
    margin-bottom:20px;
    color:var(--afn-orange);
    font-size:13px;
    line-height:1;
    letter-spacing:.4px;
    font-weight:800;
    text-transform:uppercase;
}

.afn-title{
    margin:0;
    color:var(--afn-navy);
    font-size:50px;
    line-height:1.08;
    letter-spacing:-1.8px;
    font-weight:750;
    overflow-wrap:anywhere;
}

.afn-description{
    max-width:850px;
    margin:20px auto 0;
    color:var(--afn-text);
    font-size:20px;
    line-height:1.55;
    font-weight:400;
    overflow-wrap:anywhere;
}

.afn-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:20px;
    width:100%;
}

.afn-card{
    min-width:0;
    min-height:162px;
    padding:28px 22px;
    display:flex;
    align-items:center;
    justify-content:center;

    text-decoration:none!important;

    background:#fff;
    border:1px solid #e8eaed;
    border-radius:16px;

    box-shadow:
        0 14px 35px rgba(20,30,40,.035);

    overflow:hidden;
    transition:
        transform .28s ease,
        border-color .28s ease,
        box-shadow .28s ease,
        background-color .28s ease;
}

@media (hover:hover) and (pointer:fine){
    .afn-card:hover{
        transform:translateY(-4px);
        border-color:#f1b49e;
        box-shadow:0 18px 40px rgba(20,30,40,.075);
    }
}

.afn-logo{
    width:100%;
    height:100%;
    min-width:0;
    display:flex;
    align-items:center;
    justify-content:center;
}

.afn-logo img{
    display:block;
    width:auto;
    height:auto;
    max-width:170px;
    max-height:88px;
    object-fit:contain;
    object-position:center;
}

.afn-placeholder{
    width:135px;
    max-width:170px;
    height:88px;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:10px;
    background:#484848;
    color:#fff;
    font-size:16px;
    line-height:1.1;
    text-align:center;
    font-weight:700;
    letter-spacing:.5px;
    overflow:hidden;
}

/* LARGE LAPTOP */
@media(max-width:1200px){
    .afn-section{
        padding:60px 25px 68px;
    }

    .afn-title{
        font-size:44px;
    }

    .afn-description{
        font-size:18px;
    }
}

/* TABLET */
@media(max-width:900px){
    .afn-section{
        padding:50px 22px 58px;
    }

    .afn-header{
        margin-bottom:38px;
    }

    .afn-title{
        font-size:38px;
    }

    .afn-description{
        max-width:680px;
        font-size:17px;
    }

    .afn-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:16px;
    }

    .afn-card{
        min-height:150px;
    }
}

/* MOBILE */
@media(max-width:560px){
    .afn-section{
        padding:42px 15px 48px;
    }

    .afn-eyebrow{
        margin-bottom:14px;
        font-size:11px;
    }

    .afn-title{
        font-size:31px;
        letter-spacing:-1px;
    }

    .afn-description{
        margin-top:14px;
        font-size:14px;
        line-height:1.6;
    }

    .afn-header{
        margin-bottom:30px;
    }

    .afn-grid{
        grid-template-columns:1fr;
        gap:13px;
    }

    .afn-card{
        min-height:135px;
        padding:22px 18px;
    }

    .afn-logo img{
        max-width:155px;
        max-height:78px;
    }

    .afn-placeholder{
        max-width:155px;
        height:78px;
        font-size:14px;
    }
}

@media(max-width:380px){
    .afn-title{
        font-size:28px;
    }

    .afn-card{
        min-height:125px;
    }
}

/* HARD SAFETY */
.elementor-widget-af_reseaux,
.elementor-widget-af_reseaux .elementor-widget-container,
.afn-section,
.afn-container,
.afn-grid,
.afn-card,
.afn-logo{
    max-width:100%;
}

@media(prefers-reduced-motion:reduce){
    .afn-section *{
        animation:none!important;
        transition:none!important;
    }
}
