/* ================================================================
   blogstyles.css — PDF Recap Blog
   Styles partagés : grille blog, article, composants communs
   Palette : Teal (alignée sur le site principal)
   ================================================================ */

/* ── Base ────────────────────────────────────────────────────── */
body { font-family: 'Inter', sans-serif; }

/* ── Scrollbar ───────────────────────────────────────────────── */
::-webkit-scrollbar       { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background-color: #e2e8f0; border-radius: 20px; }
::-webkit-scrollbar-thumb:hover { background-color: #cbd5e1; }

/* ── Animations ──────────────────────────────────────────────── */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25%       { transform: translateX(-5px); }
    75%       { transform: translateX(5px); }
}
.animate-shake { animation: shake 0.3s ease-in-out; }

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: .5; }
}

/* ================================================================
   VARIABLES — Palette teal (alignée sur le site principal)
   ================================================================ */
:root {
    --teal:   #0891b2;   /* teal-600  */
    --teal-d: #0e7490;   /* teal-700  */
    --teal-l: #f0fdfe;   /* teal-50   */
    --ink:    #111827;
    --muted:  #6b7280;
    --border: #e5e7eb;
    --bg:     #f9fafb;
}

/* ================================================================
   HERO DU BLOG
   ================================================================ */
.blog-hero {
    background: linear-gradient(135deg, #f0fdfe 0%, #fafafa 60%, #fff 100%);
    border-bottom: 1px solid var(--border);
}

/* ================================================================
   BARRE DE CONTRÔLES (dropdown + compteur)
   ================================================================ */
.controls-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ── Dropdown catégorie ── */
.cat-select-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.cat-select-wrapper .select-icon {
    position: absolute;
    left: .85rem;
    pointer-events: none;
    color: var(--teal);
}
.cat-select-wrapper .chevron-icon {
    position: absolute;
    right: .85rem;
    pointer-events: none;
    color: var(--muted);
    transition: transform .2s;
}

#category-select {
    appearance: none;
    -webkit-appearance: none;
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: .6rem 2.75rem .6rem 2.6rem;
    font-family: 'Inter', sans-serif;
    font-size: .875rem;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
    min-width: 220px;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}
#category-select:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(8,145,178,.12);
}
#category-select:focus ~ .chevron-icon { transform: rotate(180deg); }

/* ── Compteur résultats ── */
#results-count {
    font-family: 'Inter', sans-serif;
    font-size: .8125rem;
    color: var(--muted);
    font-weight: 500;
}

/* ================================================================
   SKELETON LOADING
   ================================================================ */
.skeleton-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    animation: pulse 1.5s ease-in-out infinite;
}
.skeleton-img  { background: #e5e7eb; aspect-ratio: 16/9; }
.skeleton-body { padding: 1.5rem; }
.skeleton-line {
    background: #e5e7eb;
    border-radius: 6px;
    height: .75rem;
    margin-bottom: .75rem;
}
.skeleton-line.short  { width: 55%; }
.skeleton-line.medium { width: 80%; }
.skeleton-line.full   { width: 100%; }
.skeleton-line.title  { height: 1.1rem; width: 90%; }

/* ================================================================
   CARD ARTICLE (grille blog)
   ================================================================ */
.blog-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .25s, transform .25s;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.blog-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,.1);
    transform: translateY(-3px);
}

.blog-card-img-link {
    display: block;
    overflow: hidden;
    aspect-ratio: 16/9;
    position: relative;
}
.blog-card-img-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
    display: block;
}
.blog-card:hover .blog-card-img-link img { transform: scale(1.05); }

.blog-card-badge {
    position: absolute;
    top: .85rem;
    left: .85rem;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(6px);
    padding: .2rem .75rem;
    border-radius: 9999px;
    font-family: 'Inter', sans-serif;
    font-size: .7rem;
    font-weight: 800;
    color: var(--teal-d);
    text-transform: uppercase;
    letter-spacing: .07em;
    box-shadow: 0 1px 4px rgba(0,0,0,.1);
}

.blog-card-body {
    padding: 1.35rem 1.5rem 1.6rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-family: 'Inter', sans-serif;
    font-size: .78rem;
    color: var(--muted);
    margin-bottom: .75rem;
}
.blog-card-meta .dot {
    width: 3px; height: 3px;
    border-radius: 50%;
    background: #d1d5db;
    flex-shrink: 0;
}

.blog-card-title {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.45;
    margin-bottom: .6rem;
    transition: color .15s;
    text-decoration: none;
    display: block;
}
.blog-card:hover .blog-card-title { color: var(--teal-d); }

.blog-card-excerpt {
    font-family: 'Inter', sans-serif;
    font-size: .875rem;
    color: #4b5563;
    line-height: 1.65;
    flex-grow: 1;
    margin-bottom: 1.1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-cta {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-family: 'Inter', sans-serif;
    font-size: .8125rem;
    font-weight: 700;
    color: var(--teal);
    text-decoration: none;
    transition: gap .2s, color .15s;
}
.blog-card:hover .blog-card-cta { gap: .65rem; color: var(--teal-d); }

/* ================================================================
   PAGINATION
   ================================================================ */
.pagination {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 .85rem;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: .875rem;
    font-weight: 600;
    color: #374151;
    background: #fff;
    cursor: pointer;
    transition: all .15s;
    user-select: none;
}
.page-btn:hover:not(:disabled):not(.active) {
    border-color: var(--teal);
    color: var(--teal);
    background: var(--teal-l);
}
.page-btn.active {
    background: var(--teal);
    border-color: var(--teal);
    color: #fff;
    box-shadow: 0 2px 8px rgba(8,145,178,.3);
}
.page-btn:disabled { opacity: .4; cursor: not-allowed; }
.page-btn.nav-btn  { font-size: .8rem; padding: 0 1rem; gap: .4rem; }

.page-ellipsis {
    display: inline-flex;
    align-items: center;
    padding: 0 .35rem;
    color: var(--muted);
    font-size: .875rem;
    user-select: none;
}

/* ================================================================
   EMPTY STATE
   ================================================================ */
.empty-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4rem 1rem;
    color: var(--muted);
    font-family: 'Inter', sans-serif;
    text-align: center;
}
.empty-state p { font-size: .9375rem; }

/* ================================================================
   ARTICLE — Typographie du contenu
   ================================================================ */
.article-content h2 {
    margin-top: 2em;
    margin-bottom: 1em;
    line-height: 1.3333333;
}
.article-content p {
    margin-bottom: 1.25em;
    line-height: 1.75;
}
.article-content ul,
.article-content ol { margin-bottom: 1.25em; }
.article-content li { margin-bottom: .5em; }
.article-content strong { font-weight: 600; color: #111827; }

/* ── Filtre catégorie (ancienne logique boutons — conservé) ── */
.category-filter.active {
    box-shadow: 0 4px 14px 0 rgba(8,145,178,.3); /* teal */
}