/* =====================================================================
   BLOG SAKADO — complète style.css (mêmes variables, même nav/footer)
   Signature visuelle : la balise GR blanc/rouge + motif de courbes de niveau
   ===================================================================== */

.blog main { padding-top: 68px; } /* hauteur de la nav fixe */

.nav-links a[aria-current="page"] { opacity: 1; color: var(--blue-dark); }

/* ----- Balise GR (blanc sur rouge) ----- */
.waymark {
    display: inline-block;
    width: 44px;
    height: 18px;
    border-radius: 2px;
    background: linear-gradient(var(--white) 0 50%, var(--red) 50% 100%);
    box-shadow: 0 0 0 1px rgba(30, 30, 30, 0.08);
}

/* ----- Motif courbes de niveau (images absentes) ----- */
.card-cover-fallback {
    display: block;
    width: 100%;
    height: 100%;
    background-color: rgba(126, 172, 181, 0.16);
    background-image:
        repeating-radial-gradient(circle at 30% 70%, transparent 0 14px, rgba(90, 143, 154, 0.28) 14px 15.5px),
        repeating-radial-gradient(circle at 85% 15%, transparent 0 18px, rgba(90, 143, 154, 0.18) 18px 19.5px);
}

/* ===== EN-TÊTE DU BLOG ===== */
.blog-hero {
    padding: 72px 0 48px;
    background: linear-gradient(160deg, #fdf9f4 0%, #f5efe6 100%);
}

.blog-hero h1 {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 20px 0 16px;
}

.blog-hero p {
    max-width: 560px;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #555;
}

/* ===== LISTE ===== */
.blog-list { padding: 48px 0 100px; }

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    font-size: 0.8rem;
    color: #777;
    margin-bottom: 10px;
}

.card-category {
    color: var(--red);
    font-weight: 600;
}

.card-excerpt {
    font-size: 0.92rem;
    line-height: 1.65;
    color: #555;
}

.card-date {
    margin-top: 14px;
    font-size: 0.8rem;
    color: #888;
}

/* Article à la une */
.article-featured {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(90, 143, 154, 0.18);
    margin-bottom: 56px;
}

.featured-cover { min-height: 320px; }
.featured-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

.featured-body {
    padding: 44px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-body h2 {
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    line-height: 1.2;
    margin-bottom: 14px;
}

.article-featured:hover h2,
.article-card:hover h3 { color: var(--blue-dark); }

/* Filtres */
.blog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.filter-chip {
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 8px 18px;
    border-radius: 50px;
    border: 1.5px solid rgba(30, 30, 30, 0.14);
    background: transparent;
    color: var(--dark);
    cursor: pointer;
}

.filter-chip:hover { border-color: var(--blue); }

.filter-chip.is-active {
    background: var(--dark);
    border-color: var(--dark);
    color: var(--cream);
}

/* Grille de cartes */
.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.article-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(90, 143, 154, 0.14);
}

.article-card[hidden] { display: none; }

.card-cover { aspect-ratio: 16 / 9; }
.card-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

.card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 1.1rem; line-height: 1.35; margin-bottom: 10px; transition: color 0.2s; }
.card-body .card-date { margin-top: auto; padding-top: 14px; }

.blog-empty,
.blog-filter-empty {
    text-align: center;
    padding: 48px 0;
    color: #666;
}

.blog-empty h2 { font-size: 1.6rem; color: var(--dark); margin-bottom: 12px; }
.blog-empty p { margin-bottom: 24px; }

/* ===== PAGE ARTICLE ===== */
.post-container { max-width: 760px; }

.post-header { padding: 56px 0 32px; }

.breadcrumb {
    font-size: 0.82rem;
    color: #888;
    margin-bottom: 20px;
}

.breadcrumb a { color: #888; text-decoration: none; }
.breadcrumb a:hover { color: var(--blue-dark); }

.post-draft {
    display: inline-block;
    background: var(--yellow);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 16px;
}

.post-header h1 {
    font-size: clamp(2rem, 4.2vw, 2.9rem);
    line-height: 1.15;
    letter-spacing: -0.015em;
    margin-bottom: 18px;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 0.88rem;
    color: #777;
}

.post-cover { max-width: 1000px; margin: 0 auto 40px; }
.post-cover img { width: 100%; border-radius: 20px; display: block; }

/* Typographie du contenu */
.prose { font-size: 1.05rem; line-height: 1.8; color: #2a2a2a; }
.prose > * + * { margin-top: 1.1em; }
.prose .lead { font-size: 1.2rem; line-height: 1.7; color: #444; }
.prose h2 { font-size: 1.65rem; line-height: 1.25; margin-top: 2.2em; }
.prose h3 { font-size: 1.25rem; line-height: 1.3; margin-top: 1.8em; }
.prose a { color: var(--blue-dark); text-underline-offset: 3px; }
.prose a:hover { color: var(--red); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: 0.4em; }
.prose li::marker { color: var(--red); }
.prose img { max-width: 100%; border-radius: 14px; }
.prose figure figcaption { font-size: 0.85rem; color: #888; margin-top: 8px; text-align: center; }

.prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 10px 14px; border-bottom: 1px solid rgba(0, 0, 0, 0.08); text-align: left; }
.prose th { background: rgba(126, 172, 181, 0.12); }

.callout {
    background: rgba(126, 172, 181, 0.12);
    border-left: 4px solid var(--blue);
    border-radius: 0 12px 12px 0;
    padding: 18px 22px;
}

.callout--warning {
    background: rgba(201, 104, 104, 0.09);
    border-left-color: var(--red);
}

/* Encart d'appel à l'action */
.post-cta {
    margin: 64px 0 80px;
    padding: 40px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
    color: var(--cream);
}

.post-cta h2 { font-size: 1.5rem; margin: 18px 0 10px; }
.post-cta p { opacity: 0.85; line-height: 1.7; margin-bottom: 24px; }
.post-cta .btn-primary { background: var(--cream); color: var(--dark); box-shadow: none; }
.post-cta .btn-primary:hover { background: var(--white); }

/* Articles similaires */
.related { padding: 72px 0 100px; background: var(--white); }
.related h2 { font-size: 1.6rem; margin-bottom: 28px; }

/* Focus clavier visible */
.article-card:focus-visible,
.article-featured:focus-visible,
.filter-chip:focus-visible {
    outline: 3px solid var(--blue-dark);
    outline-offset: 3px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .article-grid { grid-template-columns: repeat(2, 1fr); }
    .article-featured { grid-template-columns: 1fr; }
    .featured-cover { min-height: 0; aspect-ratio: 16 / 9; }
    .featured-body { padding: 28px 24px 32px; }
}

@media (max-width: 600px) {
    .article-grid { grid-template-columns: 1fr; }
    .blog-hero { padding: 48px 0 32px; }
    .post-header { padding: 40px 0 24px; }
    .post-cta { padding: 28px 22px; }
}
