/* =========================================================
   FoxyAssur /blog — v2.8.21
   Reproduction dynamique de la maquette validée.
   CSS dédié, isolé sous .fb-page.
   ========================================================= */

.fb-page{
    --fb-navy:#072d5b;
    --fb-navy-deep:#061f44;
    --fb-orange:#ff6908;
    --fb-ink:#0e2b54;
    --fb-text:#385477;
    --fb-muted:#71849a;
    --fb-line:#dce7f1;
    --fb-soft:#f5f9fd;
    --fb-card:#ffffff;
    --fb-shadow:0 8px 24px rgba(7,45,91,.07);
    background:
        linear-gradient(180deg,#ffffff 0,#f9fcff 68%,#ffffff 100%);
    color:var(--fb-ink);
    overflow:hidden;
}

.fb-page *{box-sizing:border-box}

.fb-shell{
    width:min(1410px,calc(100% - 34px));
    margin-inline:auto;
}

.fb-top-grid{
    display:grid;
    grid-template-columns:minmax(0,1fr) 350px;
    gap:20px;
    padding-top:10px;
}

/* HERO */
.fb-hero{
    position:relative;
    min-height:246px;
    overflow:hidden;
    border-radius:14px;
    background:#082f61;
    box-shadow:0 10px 28px rgba(7,45,91,.11);
    isolation:isolate;
}
.fb-hero-image{
    position:absolute;
    z-index:-3;
    inset:0;
    background:url('/images/blog-foxy/blog-hero-foxy-blue.png') center 48%/cover no-repeat;
    transform:scale(1.01);
}
.fb-hero-overlay{
    position:absolute;
    z-index:-2;
    inset:0;
    background:
        linear-gradient(90deg,rgba(5,38,81,.97) 0%,rgba(7,49,103,.88) 37%,rgba(5,41,87,.18) 63%,rgba(5,33,71,.04) 100%);
}
.fb-hero-copy{
    position:relative;
    z-index:3;
    width:56%;
    padding:34px 0 25px 40px;
}
.fb-hero-pill{
    display:inline-flex;
    align-items:center;
    min-height:29px;
    padding:0 14px;
    border:1px solid rgba(255,255,255,.18);
    border-radius:999px;
    background:rgba(255,255,255,.18);
    color:#fff;
    font-size:12px;
    font-weight:600;
    backdrop-filter:blur(8px);
}
.fb-hero h1{
    margin:12px 0 0;
    color:#fff;
    font-size:clamp(36px,3.3vw,56px);
    line-height:1.03;
    letter-spacing:-.045em;
    font-weight:800;
}
.fb-hero h1 em{
    color:var(--fb-orange);
    font-style:normal;
}
.fb-hero-copy p{
    margin:11px 0 0;
    color:#fff;
    font-size:15px;
    line-height:1.52;
    font-weight:400;
}
.fb-hero-checks{
    position:absolute;
    z-index:4;
    top:48px;
    right:22px;
    width:165px;
    display:grid;
    gap:10px;
    margin:0;
    padding:0;
    list-style:none;
}
.fb-hero-checks li{
    display:grid;
    grid-template-columns:24px 1fr;
    align-items:center;
    gap:8px;
    min-height:25px;
    color:#fff;
    font-size:11px;
    font-weight:600;
}
.fb-hero-checks i{
    width:23px;
    height:23px;
    display:grid;
    place-items:center;
    border-radius:7px;
    background:linear-gradient(145deg,#399eff,#1275dd);
    box-shadow:
        0 5px 14px rgba(0,90,190,.28),
        inset 0 1px 0 rgba(255,255,255,.4);
    color:#fff;
    font-style:normal;
    font-size:13px;
    font-weight:900;
}

/* PAPA SIDEBAR */
.fb-papa-card{
    position:relative;
    min-height:246px;
    overflow:hidden;
    border:1px solid #f0e6df;
    border-radius:14px;
    background:linear-gradient(135deg,#fff5ed,#fff);
    box-shadow:0 8px 24px rgba(7,45,91,.045);
}
.fb-papa-card>img{
    position:absolute;
    left:-92px;
    bottom:-2px;
    width:292px;
    height:246px;
    object-fit:cover;
    object-position:48% 50%;
}
.fb-papa-card:after{
    content:"";
    position:absolute;
    inset:0;
    pointer-events:none;
    background:linear-gradient(90deg,rgba(255,255,255,0) 37%,rgba(255,250,247,.88) 56%,#fff9f6 100%);
}
.fb-papa-copy{
    position:relative;
    z-index:2;
    margin-left:48%;
    padding:26px 17px 18px 0;
}
.fb-papa-copy h2{
    margin:0;
    color:#0f3158;
    font-size:22px;
    line-height:1.02;
    letter-spacing:-.03em;
    font-weight:800;
}
.fb-papa-copy h2 span{color:var(--fb-orange)}
.fb-papa-copy p{
    margin:12px 0 0;
    color:#365578;
    font-size:11px;
    line-height:1.45;
}
.fb-papa-copy strong{
    display:block;
    margin-top:15px;
    color:#12365e;
    font-size:13px;
    line-height:1.15;
    font-family:cursive;
    font-style:italic;
    transform:rotate(-3deg);
}

/* LAYOUT */
.fb-content-grid{
    display:grid;
    grid-template-columns:minmax(0,1fr) 350px;
    gap:20px;
    padding-top:18px;
    padding-bottom:48px;
}
.fb-main{min-width:0}
.fb-sidebar{
    display:grid;
    align-content:start;
    gap:12px;
    min-width:0;
}

/* RESULTS */
.fb-results-head{
    display:flex;
    align-items:end;
    justify-content:space-between;
    gap:18px;
    margin:0 0 15px;
    padding:2px 2px 0;
}
.fb-results-head span{
    color:#74879b;
    font-size:10px;
    font-weight:800;
    letter-spacing:.08em;
    text-transform:uppercase;
}
.fb-results-head h2{
    margin:3px 0 0;
    color:#12375e;
    font-size:24px;
    line-height:1.15;
}
.fb-results-head>a{
    color:var(--fb-orange);
    font-size:11px;
    font-weight:700;
    text-decoration:none;
}
.fb-empty{
    min-height:320px;
    display:grid;
    place-items:center;
    align-content:center;
    gap:8px;
    padding:30px;
    border:1px dashed #cfdde9;
    border-radius:14px;
    background:#fff;
    text-align:center;
}
.fb-empty>span{font-size:45px}
.fb-empty h2{margin:0;font-size:22px}
.fb-empty p{margin:0;color:#7c8da0;font-size:13px}
.fb-empty a{
    margin-top:8px;
    color:var(--fb-orange);
    font-size:12px;
    font-weight:800;
    text-decoration:none;
}

/* ARTICLE CARDS */
.fb-article-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:17px;
}
.fb-card{
    min-width:0;
    overflow:hidden;
    border:1px solid var(--fb-line);
    border-radius:13px;
    background:var(--fb-card);
    box-shadow:0 6px 18px rgba(7,45,91,.045);
    transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}
.fb-card:hover{
    transform:translateY(-3px);
    border-color:#cbdbea;
    box-shadow:0 16px 34px rgba(7,45,91,.10);
}
.fb-card-media{
    display:block;
    width:100%;
    height:160px;
    overflow:hidden;
    background:#eaf3fb;
}
.fb-card-media img{
    width:100%;
    height:100%;
    display:block;
    object-fit:cover;
    object-position:center;
    transition:transform .4s ease;
}
.fb-card:hover .fb-card-media img{transform:scale(1.035)}
.fb-card-body{padding:9px 16px 15px}
.fb-card-meta{
    min-height:25px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
}
.fb-cat{
    max-width:70%;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    display:inline-flex;
    align-items:center;
    min-height:23px;
    padding:0 12px;
    border-radius:999px;
    color:#fff;
    font-size:10px;
    font-weight:700;
    text-decoration:none;
}
.fb-cat-auto{background:#2e7edc}
.fb-cat-habitation{background:#ff861e}
.fb-cat-sante{background:#28b97f}
.fb-cat-prevoyance{background:#8e53df}
.fb-cat-emprunteur{background:#2eb2c8}
.fb-cat-animaux{background:#f04a5c}
.fb-cat-conseils{background:#f2a316}
.fb-card-meta time{
    flex:0 0 auto;
    color:#657a92;
    font-size:9.5px;
    white-space:nowrap;
}
.fb-card h2{
    min-height:52px;
    margin:6px 0 0;
    font-size:17px;
    line-height:1.14;
    letter-spacing:-.02em;
}
.fb-card h2 a{
    color:#0d2c57;
    text-decoration:none;
}
.fb-card p{
    min-height:58px;
    margin:6px 0 0;
    color:#385777;
    font-size:12.5px;
    line-height:1.45;
}
.fb-read{
    display:inline-flex;
    align-items:center;
    gap:8px;
    margin-top:7px;
    color:#0758ce;
    font-size:12px;
    font-weight:800;
    text-decoration:none;
}
.fb-read span{
    font-size:16px;
    line-height:1;
    transition:transform .15s ease;
}
.fb-read:hover span{transform:translateX(3px)}

/* PAGINATION */
.fb-pagination{
    margin-top:25px;
}
.fb-pagination nav{
    display:flex;
    justify-content:center;
}
.fb-pagination svg{width:16px;height:16px}
.fb-pagination a,
.fb-pagination span{
    font-size:12px;
}

/* SEARCH */
.fb-search{
    display:grid;
    grid-template-columns:26px 1fr 43px;
    align-items:center;
    min-height:46px;
    border:1px solid var(--fb-line);
    border-radius:12px;
    background:#fff;
    box-shadow:0 5px 15px rgba(7,45,91,.03);
    overflow:hidden;
}
.fb-search-icon{
    display:grid;
    place-items:center;
    color:#173e68;
    font-size:19px;
}
.fb-search input{
    min-width:0;
    height:44px;
    border:0;
    outline:0;
    background:transparent;
    color:#314f71;
    font:inherit;
    font-size:12px;
}
.fb-search input::placeholder{color:#788ba1}
.fb-search button{
    width:38px;
    height:36px;
    display:grid;
    place-items:center;
    margin-right:4px;
    border:0;
    border-radius:10px;
    background:linear-gradient(145deg,#ff7617,#f25e00);
    color:#fff;
    font-size:18px;
    cursor:pointer;
    box-shadow:0 7px 16px rgba(242,94,0,.22);
}

/* SIDE BOX */
.fb-side-box{
    border:1px solid var(--fb-line);
    border-radius:13px;
    background:#fff;
    box-shadow:0 5px 18px rgba(7,45,91,.035);
}
.fb-side-box>h2{
    margin:0;
    color:#102f57;
    font-size:16px;
    line-height:1.2;
}

/* CATEGORIES */
.fb-categories{padding:14px 15px}
.fb-categories>h2{margin-bottom:8px}
.fb-categories ul{
    display:grid;
    gap:2px;
    margin:0;
    padding:0;
    list-style:none;
}
.fb-categories li>a,
.fb-categories li.is-placeholder>span{
    min-height:31px;
    display:grid;
    grid-template-columns:26px 1fr 28px;
    align-items:center;
    gap:8px;
    padding:3px 2px;
    border-radius:8px;
    color:#243f62;
    text-decoration:none;
}
.fb-categories li>a:hover,
.fb-categories li>a.is-active{background:#f5f9fd}
.fb-side-cat-icon{
    width:24px;
    height:24px;
    display:grid;
    place-items:center;
    border-radius:7px;
    color:#fff;
    font-size:11px;
    font-weight:900;
}
.fb-side-cat-auto{background:#297fe2}
.fb-side-cat-sante{background:#22b984}
.fb-side-cat-habitation{background:#ff7e25}
.fb-side-cat-prevoyance{background:#8b53df}
.fb-side-cat-emprunteur{background:#28aaca}
.fb-side-cat-animaux{background:#ef4c60}
.fb-side-cat-conseils{background:#f1a415}
.fb-side-cat-label{
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-size:11.5px;
}
.fb-categories b{
    min-width:27px;
    height:22px;
    display:grid;
    place-items:center;
    padding:0 5px;
    border-radius:8px;
    background:#eef3f7;
    color:#5c738c;
    font-size:9px;
}

/* CONTACT SIDEBAR */
.fb-contact-card{
    position:relative;
    min-height:152px;
    overflow:hidden;
    border:1px solid #f2e1d6;
    border-radius:13px;
    background:linear-gradient(100deg,#fff4eb,#fff);
    box-shadow:0 5px 18px rgba(7,45,91,.04);
}
.fb-contact-card>img{
    position:absolute;
    left:-43px;
    bottom:-17px;
    width:190px;
    height:166px;
    object-fit:cover;
    object-position:40% 50%;
}
.fb-contact-card:after{
    content:"";
    position:absolute;
    inset:0;
    pointer-events:none;
    background:linear-gradient(90deg,transparent 31%,rgba(255,250,246,.78) 46%,#fffaf7 67%);
}
.fb-contact-copy{
    position:relative;
    z-index:2;
    margin-left:42%;
    padding:14px 10px 12px 0;
}
.fb-contact-copy>small{
    display:block;
    color:#17395e;
    font-size:9px;
    font-weight:700;
}
.fb-contact-phone{
    display:flex;
    align-items:center;
    gap:6px;
    margin-top:5px;
    color:#102e57;
    text-decoration:none;
    font-size:18px;
    line-height:1;
    font-weight:900;
    letter-spacing:.01em;
}
.fb-contact-phone i{
    width:29px;
    height:29px;
    display:grid;
    place-items:center;
    border-radius:50%;
    background:var(--fb-orange);
    color:#fff;
    font-style:normal;
    font-size:14px;
}
.fb-contact-copy p{
    margin:5px 0 0;
    color:#526a82;
    font-size:8.8px;
    line-height:1.3;
}
.fb-contact-cta{
    min-height:34px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    margin-top:7px;
    padding:0 13px;
    border-radius:9px;
    background:linear-gradient(145deg,#ff7214,#f25b00);
    color:#fff;
    text-decoration:none;
    font-size:9px;
    font-weight:800;
    box-shadow:0 7px 15px rgba(242,91,0,.18);
}

/* NEWSLETTER */
.fb-newsletter{
    display:grid;
    grid-template-columns:35px 1fr;
    gap:10px;
    padding:13px 14px;
}
.fb-news-icon{
    width:34px;
    height:34px;
    display:grid;
    place-items:center;
    border-radius:50%;
    background:#fff1e7;
    color:var(--fb-orange);
    font-size:17px;
}
.fb-newsletter h2{font-size:13px}
.fb-newsletter p{
    margin:3px 0 0;
    color:#5d7590;
    font-size:8.5px;
    line-height:1.35;
}
.fb-newsletter form{
    display:grid;
    grid-template-columns:1fr 92px;
    gap:7px;
    margin-top:9px;
}
.fb-newsletter input{
    min-width:0;
    height:35px;
    padding:0 10px;
    border:1px solid #dce6ef;
    border-radius:10px;
    outline:0;
    color:#3c5775;
    font:inherit;
    font-size:10px;
}
.fb-newsletter button{
    height:35px;
    border:0;
    border-radius:10px;
    background:linear-gradient(145deg,#ff7416,#f05c00);
    color:#fff;
    font-size:10px;
    font-weight:800;
    cursor:pointer;
}

/* POPULAR */
.fb-popular{padding:13px 14px}
.fb-popular>h2{
    display:flex;
    align-items:center;
    gap:7px;
    font-size:14px;
}
.fb-popular-card{
    display:grid;
    grid-template-columns:92px 1fr 12px;
    gap:10px;
    align-items:center;
    margin-top:10px;
    color:inherit;
    text-decoration:none;
}
.fb-popular-card img{
    width:92px;
    height:62px;
    border-radius:9px;
    object-fit:cover;
}
.fb-popular-card h3{
    margin:0;
    color:#16375f;
    font-size:10px;
    line-height:1.28;
}
.fb-popular-card span{
    display:block;
    margin-top:5px;
    color:#7790a5;
    font-size:8.5px;
}
.fb-popular-card>b{
    color:#62809b;
    font-size:20px;
}

/* ACCESSIBILITY */
.fb-sr-only{
    position:absolute!important;
    width:1px!important;
    height:1px!important;
    padding:0!important;
    margin:-1px!important;
    overflow:hidden!important;
    clip:rect(0,0,0,0)!important;
    white-space:nowrap!important;
    border:0!important;
}
.fb-page :where(a,button,input):focus-visible{
    outline:3px solid rgba(255,105,8,.28);
    outline-offset:2px;
}

/* TABLET */
@media(max-width:1180px){
    .fb-top-grid,
    .fb-content-grid{
        grid-template-columns:minmax(0,1fr) 310px;
    }
    .fb-article-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
    .fb-hero-copy{width:57%;padding-left:28px}
    .fb-hero-checks{right:16px}
    .fb-papa-card>img{left:-105px}
    .fb-papa-copy{margin-left:44%}
}

/* TABLET / MOBILE */
@media(max-width:900px){
    .fb-shell{width:min(100% - 24px,760px)}
    .fb-top-grid,
    .fb-content-grid{
        grid-template-columns:1fr;
    }
    .fb-top-grid{padding-top:8px}
    .fb-hero{min-height:300px}
    .fb-hero-copy{width:62%;padding:32px 0 28px 25px}
    .fb-hero h1{font-size:42px}
    .fb-hero-copy p{font-size:14px}
    .fb-hero-checks{top:118px}
    .fb-papa-card{min-height:215px}
    .fb-papa-card>img{left:-15px;width:280px;height:215px}
    .fb-papa-copy{margin-left:48%;padding-top:28px}
    .fb-content-grid{padding-top:12px}
    .fb-sidebar{
        grid-template-columns:repeat(2,minmax(0,1fr));
        align-items:start;
    }
    .fb-search{grid-column:1/-1}
    .fb-categories{grid-row:span 2}
    .fb-contact-card{min-height:165px}
    .fb-popular{grid-column:1/-1}
}

/* PHONE */
@media(max-width:620px){
    .fb-shell{width:calc(100% - 20px)}
    .fb-top-grid{gap:10px}

    .fb-hero{
        min-height:440px;
        border-radius:13px;
    }
    .fb-hero-image{
        background-position:59% center;
    }
    .fb-hero-overlay{
        background:
            linear-gradient(
                180deg,
                rgba(5,38,81,.96) 0%,
                rgba(5,38,81,.90) 40%,
                rgba(5,38,81,.24) 70%,
                rgba(5,38,81,.08) 100%
            );
    }
    .fb-hero-copy{
        width:100%;
        padding:25px 20px 0;
    }
    .fb-hero h1{font-size:39px}
    .fb-hero-copy p{
        max-width:330px;
        font-size:13px;
        line-height:1.5;
    }
    .fb-desktop-only{display:none}
    .fb-hero-checks{
        top:auto;
        right:auto;
        left:18px;
        bottom:17px;
        width:calc(100% - 36px);
        grid-template-columns:1fr 1fr;
        gap:6px;
    }
    .fb-hero-checks li{
        min-height:31px;
        padding:3px 7px;
        border-radius:9px;
        background:rgba(4,35,75,.72);
        backdrop-filter:blur(8px);
        font-size:10px;
    }

    .fb-papa-card{min-height:195px}
    .fb-papa-card>img{
        left:-25px;
        width:230px;
        height:195px;
    }
    .fb-papa-copy{
        margin-left:43%;
        padding:21px 12px 15px 0;
    }
    .fb-papa-copy h2{font-size:19px}
    .fb-papa-copy p{font-size:10px}
    .fb-papa-copy strong{font-size:11px}

    .fb-content-grid{gap:12px;padding-bottom:32px}
    .fb-article-grid{grid-template-columns:1fr;gap:12px}
    .fb-card-media{height:174px}
    .fb-card-body{padding:9px 14px 14px}
    .fb-card h2{
        min-height:auto;
        font-size:18px;
    }
    .fb-card p{
        min-height:auto;
        font-size:13px;
    }

    .fb-results-head{
        align-items:start;
        flex-direction:column;
        gap:6px;
    }

    .fb-sidebar{grid-template-columns:1fr}
    .fb-search,
    .fb-popular{grid-column:auto}
    .fb-categories{grid-row:auto}

    .fb-contact-card{min-height:168px}
    .fb-contact-card>img{
        left:-30px;
        width:205px;
        height:176px;
    }
    .fb-contact-copy{
        margin-left:42%;
        padding-top:16px;
    }
    .fb-contact-phone{font-size:17px}
    .fb-contact-copy p{font-size:8.8px}

    .fb-newsletter form{grid-template-columns:1fr 100px}
}

@media(max-width:390px){
    .fb-hero{min-height:420px}
    .fb-hero h1{font-size:34px}
    .fb-hero-copy{padding-inline:16px}
    .fb-hero-checks{
        left:12px;
        width:calc(100% - 24px);
    }
    .fb-hero-checks li{
        grid-template-columns:21px 1fr;
        padding-inline:5px;
        font-size:9px;
    }
    .fb-hero-checks i{width:20px;height:20px}

    .fb-papa-card>img{left:-48px}
    .fb-papa-copy{margin-left:40%}
    .fb-papa-copy h2{font-size:18px}

    .fb-card-media{height:160px}
    .fb-newsletter form{grid-template-columns:1fr}
    .fb-newsletter button{width:100%}

    .fb-contact-card>img{left:-47px}
    .fb-contact-copy{margin-left:39%}
}

@media(prefers-reduced-motion:reduce){
    .fb-card,
    .fb-card-media img,
    .fb-read span{
        transition:none!important;
    }
    .fb-card:hover{transform:none}
    .fb-card:hover .fb-card-media img{transform:none}
}


/* FoxyAssur 2.8.22 — nouveau hero bleu validé */
.fb-hero-image{
    background-position:center center;
}
.fb-hero-overlay{
    background:
        linear-gradient(
            90deg,
            rgba(5,38,81,.98) 0%,
            rgba(6,45,97,.93) 38%,
            rgba(6,45,97,.32) 58%,
            rgba(3,31,72,.04) 78%,
            rgba(3,31,72,.01) 100%
        );
}
@media(max-width:620px){
    .fb-hero-image{
        background-position:58% center;
    }
}
