/* =====================================
   HERO BLOG PREMIUM
   ===================================== */

#banner-blog{
    position: relative;
    min-height: 700px;
    padding: 150px 0;

    background:
        url("../../blog/images/banner-blog.png")
        center center / cover
        no-repeat !important;

    display: flex;
    align-items: center;
}

#banner-blog::before,
#banner-blog::after{
    display: none !important;
    content: none !important;
}

#banner-blog .inner{
    position: relative;
    z-index: 10;

    max-width: 750px;

    padding: 2rem;

    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(4px);

    border-radius: 18px;
}

/* Couleurs générales */

#banner-blog h2,
#banner-blog p,
#banner-blog .badge-blog{
    color: #1F7EA8;
}

/* Titre principal */

#banner-blog h2{
    background: linear-gradient(
        90deg,
        #0F5C7D 0%,
        #1F7EA8 50%,
        #2BB7A8 100%
    );

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;

    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.15;
    text-transform: uppercase;

    margin-bottom: 1rem;
}

/* Sous-titre */

#banner-blog p{
    color: #2B5D73;
    font-size: 1.15rem;
    line-height: 1.7;
    font-weight: 500;
}

/* Badge */

#banner-blog .badge-blog{
    display: inline-block;

    margin-bottom: 1rem;

    color: #2BB7A8;

    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;

    border-bottom: 2px solid #2BB7A8;

    padding-bottom: 5px;
}

/* Mobile */

@media screen and (max-width: 980px){

    #banner-blog{
        min-height: 550px;
        padding: 100px 20px;
    }

    #banner-blog .inner{
        max-width: 100%;
        padding: 1.5rem;
    }

    #banner-blog h2{
        font-size: 2rem;
    }

    #banner-blog p{
        font-size: 1rem;
    }
}



.blog-layout {
    display: grid;
    grid-template-columns: 2fr 340px;
    gap: 3rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(300px,1fr));
    gap: 2rem;
}

.blog-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,.08);
}

.blog-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.blog-card-content {
    padding: 1.5rem;
}

.blog-sidebar .widget {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 8px 30px rgba(0,0,0,.08);
}

.profile-image {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto 1rem;
}

.blog-categories {
    margin: 1.5rem 0 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Boutons catégories */
.blog-categories a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 5px 10px;   /* plus petit */
    font-size: 13px;     /* plus fin */
    border-radius: 999px;

    background: #f3f4f6;
    color: #333;
    text-decoration: none;

    border: 1px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
}

/* Hover */
.blog-categories a:hover {
    background: #e7f3fb;
    color: #1F7EA8;
    border-color: #cfe8f3;
    transform: translateY(-1px);
}

/* Catégorie active */
.blog-categories .active {
    background: #1F7EA8;
    color: #fff;
    border-color: #1F7EA8;
}
.search-form input {
    width: 100%;
}

@media screen and (max-width: 980px) {

    .blog-layout {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        margin-top: 2rem;
    }

}
.blog-search {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    max-width: 500px;
}

/* input */
.search-form input,
.search-form input[type="text"],
.search-form input[type="search"]{
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    color: #000 !important;

    border-radius: 999px;
    border: 1px solid #e5e7eb;
    outline: none;

    background: #f9fafb;
    transition: all 0.2s ease;

    box-shadow: inset 0 1px 2px rgba(0,0,0,0.03);
}

/* focus */
.search-form input:focus {
    border-color: #1F7EA8;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(31, 126, 168, 0.15);
}


/* ===============================
   BLOG CARD STYLES
   =============================== */

.blog-card {
    position: relative;
    overflow: hidden;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.blog-card img {
    display: block;
    width: 100%;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

/* Content wrapper */
.blog-card-content {
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
}

/* Badge catégorie */
.blog-card-content .category {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
    margin-bottom: 10px;
}

/* Palette médicale premium */

.blog-card-content .category.soins {
    background: #D7ECF8;
    color: #1F7EA8;
}

.blog-card-content .category.prevention {
    background: #DDF5EF;
    color: #2BB7A8;
}

.blog-card-content .category.quotidien {
    background: #EEE6FF;
    color: #7353BA;
}

.blog-card-content .category.conseils {
    background: #FFF0D8;
    color: #D18A00;
}

.blog-card-content .category.urgence {
    background: #FFE3E0;
    color: #D94841;
}

/* Titres */
.blog-card h3 {
    font-size: 1rem;
    line-height: 1.3;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.blog-card h3 a {
    text-decoration: none;
    color: #111;
    transition: color 0.2s ease;
}

.blog-card h3 a:hover {
    color: #2563eb;
}

/* Texte descriptif */
.blog-card p {
    font-size: 0.85rem;
    line-height: 1.5;
    color: #555;
    margin: 0;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .blog-card-content {
        padding: 12px 15px;
    }

    .blog-card-content .category {
        font-size: 0.7rem;
        padding: 5px 10px;
    }

    .blog-card h3 {
        font-size: 0.95rem;
    }

    .blog-card p {
        font-size: 0.8rem;
    }
}

/* HEADER BLOG COMPACT */

.header-blog{
    background:#2f3d4d;

    height:60px;
    min-height:60px;

    display:flex;
    align-items:center;
    justify-content:space-between;

    padding:0 25px;

    border-bottom:none;
    box-shadow:none;
}

.header-blog h1{
    margin:0;
    line-height:1;
}

.header-blog h1 a{
    color:#1F7EA8;
    font-size:1.05rem;
    font-weight:700;
    letter-spacing:3px;
    text-decoration:none;
    text-transform:uppercase;
}

/* HEADER MOBILE */

@media screen and (max-width:736px){

    #header.header-blog{
        display:flex;
        justify-content:space-between;
        align-items:center;

        flex-direction:row;

        height:55px !important;
        min-height:55px !important;

        padding:0 12px !important;
    }

    #header.header-blog h1{
        margin:0;
        width:auto;
    }

    #header.header-blog h1 a{
        font-size:0.7rem !important;
        letter-spacing:1px !important;
        white-space:nowrap;
    }

    #header.header-blog #nav{
        width:auto;
    }

    #header.header-blog #nav ul{
        margin:0;
        padding:0;
    }

    #header.header-blog .button-header{
        padding:6px 10px;
        font-size:0.65rem;
        border-radius:20px;
        white-space:nowrap;
    }
}
/* ===================================
   WIDGET ARTICLES POPULAIRES
=================================== */

.popular-widget {
    margin-top: 1rem;
}

.popular-widget h3 {
    color: #1F7EA8;
    font-size: 1.15rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

/* Liste */
.popular-widget ul.alt {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Cartes */
.popular-widget ul.alt li {
    background: #f8fafc;
    border: 1px solid #e8edf2;
    border-radius: 12px;
    margin-bottom: 10px;
    padding: 12px 14px;

    transition: all 0.25s ease;
}

/* Animation */
.popular-widget ul.alt li:hover {
    background: #eef8fd;
    border-color: #1F7EA8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(31, 126, 168, 0.12);
}

/* Liens */
.popular-widget ul.alt li a {
    display: block;
    text-decoration: none;
    color: #333;
    font-size: 0.95rem;
    line-height: 1.45;
    font-weight: 500;
}

/* Hover lien */
.popular-widget ul.alt li a:hover {
    color: #1F7EA8;
}

/* Mobile */
@media screen and (max-width: 736px) {

    .popular-widget ul.alt li {
        padding: 10px 12px;
    }

    .popular-widget ul.alt li a {
        font-size: 0.9rem;
    }

}
/* Widgets */
.widget,
.cta-widget {
    background: #fff;
    border: 1px solid #e8edf2;
    border-radius: 12px;
    font-size: 0.80rem !important;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* Titres */
.widget h3,
.cta-widget h3 {
    color: #1F7EA8;
    font-size: 1.15rem;
    margin-bottom: 1rem;
    font-weight: 700;
}
/* =========================
   ARTICLE BLOG SANTÉ
   ========================= */

/* Supprime la bannière automatique du thème Spectral */
#main > header {
    background-image:
        linear-gradient(rgba(0,0,0,.45), rgba(0,0,0,.45)),
        url("../blog/images/plaie-suturable.png") !important;

    background-size: cover !important;
    background-position: center !important;
    padding: 8em 2em !important;
}

#main > header h1,
#main > header p {
    color: white !important;
}
/* Image de l'article */
.image.fit {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.image.fit img {
    border-radius: 12px;
    display: block;
    width: 100%;
    height: auto;
}

/* Header du blog */
#header {
    background: rgba(31, 126, 168, 0.95) !important;
}

#header h1 a {
    color: #fff !important;
    font-weight: 700;
}

#header nav a {
    color: #fff !important;
}

/* Corrige certains effets Spectral qui cachent le texte */
body.is-preload #main > header h1,
body.is-preload #main > header p {
    opacity: 1 !important;
    transform: none !important;
}
/* Force la bannière sur tous les appareils */

#main > header {
    background-image: none !important;
}

@media screen and (max-width: 980px) {
    #main > header {
        background-image: none !important;
    }
}

@media screen and (max-width: 736px) {
    #main > header {
        background-image: none !important;
    }
}
/* Désactive toute image Spectral */

#main > header,
#main > header:before,
#main > header:after {
    background-image: none !important;
}

@media screen and (max-width: 1680px),
screen and (max-width: 1280px),
screen and (max-width: 980px),
screen and (max-width: 736px),
screen and (max-width: 480px) {

    #main > header,
    #main > header:before,
    #main > header:after {
        background-image: none !important;
    }
}
/* ARTICLE PLAIES SUTURABLES */

article#main > header,
article#main > header:before,
article#main > header:after {
    background: none !important;
    background-image: none !important;
}

/* Mobile */
@media screen and (max-width: 1680px) {
    article#main > header,
    article#main > header:before,
    article#main > header:after {
        background-image: none !important;
    }
}

@media screen and (max-width: 1280px) {
    article#main > header,
    article#main > header:before,
    article#main > header:after {
        background-image: none !important;
    }
}

@media screen and (max-width: 980px) {
    article#main > header,
    article#main > header:before,
    article#main > header:after {
        background-image: none !important;
    }
}

@media screen and (max-width: 736px) {
    article#main > header,
    article#main > header:before,
    article#main > header:after {
        background-image: none !important;
    }
}
.article-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #21b2a6; /* bleu/vert du thème Spectral */
    text-align: center;
    line-height: 1.2;
    margin: 2rem 0 1rem 0;
}

.article-intro {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}