/* =====================================================================
 * Destination : /assets/css/pages/ratgeber.css
 * Rôle        : Styles PROPRES À LA LISTE DU BLOG (/ratgeber.php)
 *               Chargé automatiquement après /assets/css/main.css
 * Version     : 2.0 – Corporate / Trust & Security
 *
 * Sommaire : 01 En-tête & recherche · 02 Catégories · 03 À la une
 *            04 Cartes · 05 Vide & pagination · 06 Encarts · 07 Responsive
 * ===================================================================== */

.text-gradient-light { background: linear-gradient(90deg, #93C5FD, #6EE7B7); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* 01. EN-TÊTE & RECHERCHE ============================================ */
.blog-hero { padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.blog-search { position: relative; display: flex; gap: .5rem; padding: .45rem; background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-xl); }
.blog-search > i { position: absolute; left: 1.2rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.blog-search input { flex: 1; min-width: 0; padding: .75rem .75rem .75rem 2.6rem; font-size: 1rem; color: var(--text); background: transparent; border: 0; outline: none; }
.blog-search input::-webkit-search-cancel-button { cursor: pointer; }
.blog-search .btn-ac { flex-shrink: 0; }

/* 02. CATÉGORIES ===================================================== */
.blog-cats-bar { position: sticky; top: var(--header-h, 76px); z-index: 80; background: rgba(255, 255, 255, .95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.blog-cats { display: flex; gap: .45rem; padding: .75rem 0; overflow-x: auto; scrollbar-width: none; }
.blog-cats::-webkit-scrollbar { display: none; }
.blog-cat { display: inline-flex; flex-shrink: 0; align-items: center; gap: .45rem; padding: .5rem .95rem; font-family: var(--font-display); font-size: .86rem; font-weight: 700; color: var(--text-2); white-space: nowrap; background: var(--bg); border: 1px solid transparent; border-radius: 100px; transition: all var(--speed) var(--ease); }
.blog-cat i { color: var(--blue); }
.blog-cat span { min-width: 22px; padding: 0 .4rem; font-size: .72rem; text-align: center; color: var(--muted); background: var(--white); border-radius: 100px; }
.blog-cat:hover { color: var(--blue); background: var(--blue-soft); border-color: var(--blue-soft-2); }
.blog-cat.is-active { color: var(--white); background: var(--navy); }
.blog-cat.is-active i { color: #6EE7B7; }
.blog-cat.is-active span { color: var(--navy); }

/* 03. À LA UNE ======================================================= */
.blog-result { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem; margin-bottom: 1.75rem; padding: .9rem 1.2rem; background: var(--blue-soft); border-radius: var(--radius); }
.blog-result p { margin: 0; color: var(--text); }
.blog-result a { font-weight: 700; }
.featured { display: grid; grid-template-columns: 1.15fr 1fr; margin-bottom: 2.5rem; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-xl); box-shadow: var(--shadow); overflow: hidden; }
.featured-media { display: block; min-height: 320px; overflow: hidden; }
.featured-media img, .featured-media .img-ph { width: 100%; height: 100%; min-height: 320px; object-fit: cover; border-radius: 0; transition: transform .6s var(--ease); }
.featured:hover .featured-media img, .featured:hover .featured-media .img-ph { transform: scale(1.04); }
.featured-body { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: .75rem; padding: clamp(1.5rem, 4vw, 2.75rem); }
.featured-badge { display: inline-flex; align-items: center; gap: .4rem; padding: .25rem .7rem; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: #92400E; background: #FEF3C7; border-radius: 100px; }
.featured-body h2 { margin: 0; font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.25; }
.featured-body h2 a { color: var(--navy); }
.featured-body h2 a:hover { color: var(--blue); }
.featured-body p { margin: 0; color: var(--text-2); }

/* 04. CARTES ========================================================= */
.post-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s; }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.post-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.post-media img, .post-media .img-ph { width: 100%; height: 100%; min-height: 0; object-fit: cover; border-radius: 0; transition: transform .6s var(--ease); }
.post-card:hover .post-media img, .post-card:hover .post-media .img-ph { transform: scale(1.06); }
.post-body { display: flex; flex-direction: column; flex: 1; padding: 1.3rem 1.4rem 1.4rem; }
.post-cat { align-self: flex-start; margin-bottom: .6rem; padding: .2rem .65rem; font-size: .74rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: var(--blue); background: var(--blue-soft); border-radius: 100px; }
.post-cat:hover { color: var(--white); background: var(--blue); }
.post-title { margin-bottom: .55rem; font-size: 1.15rem; line-height: 1.35; }
.post-title a { color: var(--navy); }
.post-title a:hover { color: var(--blue); }
.post-excerpt { flex: 1; font-size: .92rem; color: var(--text-2); }
.post-meta { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin-top: auto; font-size: .8rem; font-weight: 600; color: var(--muted); }
.post-meta i { margin-right: .25rem; }

/* 05. VIDE & PAGINATION ============================================== */
.blog-empty { max-width: 560px; margin: 0 auto; padding: 3rem 1.5rem; text-align: center; background: var(--white); border: 1px dashed var(--border-2); border-radius: var(--radius-xl); }
.blog-empty .ac-icon { margin-left: auto; margin-right: auto; }
.blog-empty p { color: var(--text-2); }
.blog-pages { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .4rem; margin-top: 3rem; }
.blog-pages a { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 .6rem; font-family: var(--font-display); font-weight: 800; color: var(--navy); background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm); transition: all var(--speed); }
.blog-pages a:hover { color: var(--blue); border-color: var(--blue); }
.blog-pages a.is-active { color: var(--white); background: var(--blue); border-color: var(--blue); }
.blog-pages .dots { padding: 0 .3rem; color: var(--muted); }

/* 06. ENCARTS ======================================================== */
.blog-promo { padding: clamp(1.5rem, 3.5vw, 2.25rem); border-radius: var(--radius-xl); }
.blog-promo .ac-icon { margin-bottom: 1rem; }
.blog-promo p { margin-bottom: 1.25rem; }
.promo-calc { color: var(--white); background: var(--grad-navy); }
.promo-calc h2 { color: var(--white); }
.promo-calc p { color: #CBD5E1; }
.promo-news { background: var(--white); border: 1px solid var(--border); }
.promo-news p { color: var(--text-2); }
.promo-form { display: flex; gap: .5rem; margin-bottom: .5rem; }
.promo-form .ac-input { flex: 1; min-width: 0; }
.promo-news small { font-size: .78rem; color: var(--muted); }

/* 07. RESPONSIVE ===================================================== */
@media (max-width: 991.98px) {
    .featured { grid-template-columns: 1fr; }
    .featured-media, .featured-media img, .featured-media .img-ph { min-height: 220px; }
}
@media (max-width: 575.98px) {
    .blog-search { flex-wrap: wrap; }
    .blog-search .btn-ac { width: 100%; }
    .blog-search > i { top: 1.6rem; }
    .promo-form { flex-direction: column; }
}