/* ============================================
   BLOG ISOMAPS
   S'appuie sur design-system.css (Roboto, teal #4e8b87, texte #2c3e3c)
   et sur Bootstrap 5.3. Aucune dependance supplementaire.
   ============================================ */

/* ---------- Entete ---------- */
.blog-hero { padding: 40px 0 24px; }
.blog-hero h1 { margin-bottom: 8px; }
.blog-hero .subtitle { margin-bottom: 24px; }

/* ---------- Navigation des categories ---------- */
.blog-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.blog-cats a {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid #d6e0df;
    border-radius: 999px;
    font-size: 15px;
    color: #3b706c;
    text-decoration: none;
    transition: background .15s ease, border-color .15s ease;
}
.blog-cats a:hover { background: #f1f6f5; border-color: #4e8b87; }
.blog-cats a.active { background: #3b706c; border-color: #3b706c; color: #fff; }

/* ---------- Carte article ---------- */
.blog-card { height: 100%; display: flex; flex-direction: column; }
.blog-card .thumb {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 10px;
    background: #eef2f1;
}
.blog-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.blog-card:hover .thumb img { transform: scale(1.03); }
.blog-card .cat { font-size: 13px; color: #4e8b87; text-transform: uppercase; letter-spacing: .04em; margin: 12px 0 4px; }
.blog-card h2, .blog-card h3 { font-size: 20px; line-height: 1.3; margin-bottom: 8px; }
.blog-card h2 a, .blog-card h3 a { color: #111; text-decoration: none; }
.blog-card h2 a:hover, .blog-card h3 a:hover { color: #3b706c; }
.blog-card p { font-size: 16px; color: #5b6b69; margin-bottom: 8px; }
.blog-card .meta { font-size: 13px; color: #6e6e6e; margin-top: auto; }

/* ---------- Article ---------- */
.blog-article { max-width: 46rem; }
.blog-article h1 { font-size: 38px; margin-bottom: 12px; }
.blog-article .article-meta { font-size: 14px; color: #6e6e6e; margin-bottom: 24px; }
.blog-article .article-meta .updated { color: #3b706c; font-weight: 600; }

.blog-cover figure { margin: 0 0 28px; }
.blog-cover img { width: 100%; height: auto; border-radius: 12px; display: block; }
.blog-cover figcaption { font-size: 13px; color: #6e6e6e; margin-top: 6px; }

/* Les titres portent l'id : on les decale pour qu'un lien d'ancre ne les
   glisse pas sous l'entete fixe. */
.blog-body h2, .blog-body h3 { scroll-margin-top: 90px; }
.blog-body h2 { margin-top: 40px; }
.blog-body h3 { font-size: 21px; margin-top: 28px; }
.blog-body img { max-width: 100%; height: auto; border-radius: 10px; }
.blog-body ul, .blog-body ol { margin-bottom: 20px; }
.blog-body blockquote {
    border-left: 3px solid #4e8b87;
    padding: 4px 0 4px 18px;
    margin: 24px 0;
    color: #4a5c5a;
    font-style: italic;
}
.blog-body .blog-anchor { opacity: 0; margin-left: .4em; color: #b9c7c5; text-decoration: none; font-weight: 400; }
.blog-body h2:hover .blog-anchor, .blog-body h3:hover .blog-anchor { opacity: 1; }
.blog-table-wrap { overflow-x: auto; margin: 24px 0; }
.blog-table-wrap table { width: 100%; border-collapse: collapse; font-size: 16px; }
.blog-table-wrap th, .blog-table-wrap td { border: 1px solid #e3eae9; padding: 8px 12px; text-align: left; }
.blog-table-wrap th { background: #f5f9f8; font-weight: 700; }

/* ---------- Sommaire ---------- */
.blog-toc {
    border: 1px solid #e3eae9;
    background: #f8fbfa;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 32px;
}
.blog-toc p { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: #6e6e6e; margin-bottom: 8px; }
.blog-toc ol { margin: 0; padding-left: 20px; }
.blog-toc li { font-size: 16px; margin-bottom: 4px; }
.blog-toc a { color: #3b706c; text-decoration: none; }
.blog-toc a:hover { text-decoration: underline; }

/* ---------- Encarts Markdown ---------- */
.blog-callout {
    display: flex;
    gap: 14px;
    border-radius: 10px;
    padding: 16px 18px;
    margin: 28px 0;
    font-size: 17px;
}
.blog-callout .icon { flex: 0 0 auto; font-size: 20px; line-height: 1.4; }
.blog-callout p:last-child { margin-bottom: 0; }
.blog-callout--warning { background: #fdf3ef; border: 1px solid #f4c9b8; color: #7a3418; }
.blog-callout--warning .icon { color: #e5491f; }
.blog-callout--tip { background: #f1f6f5; border: 1px solid #cfe0de; color: #2c4a47; }
.blog-callout--tip .icon { color: #4e8b87; }

.blog-route-card {
    border: 1px solid #dde7e6;
    border-radius: 12px;
    padding: 18px 20px;
    margin: 28px 0;
    background: #fff;
}
.blog-route-card h4 { font-size: 19px; margin-bottom: 12px; color: #3b706c; }
.blog-route-card dl { display: flex; flex-wrap: wrap; gap: 18px 28px; margin: 0 0 14px; }
.blog-route-card dt { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: #6e6e6e; margin: 0; font-weight: 600; }
.blog-route-card dd { font-size: 18px; font-weight: 700; color: #2c3e3c; margin: 0; }

.blog-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 28px 0; }
.blog-gallery figure { margin: 0; }
.blog-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; display: block; }
.blog-gallery figcaption { font-size: 13px; color: #6e6e6e; margin-top: 4px; }

.blog-map { margin: 28px 0; }
.blog-map a { position: relative; display: block; border-radius: 12px; overflow: hidden; }
.blog-map img { width: 100%; height: auto; display: block; }
.blog-map .overlay {
    position: absolute;
    right: 12px;
    bottom: 12px;
    background: rgba(255, 255, 255, .92);
    color: #3b706c;
    font-size: 14px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 999px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .18);
}
.blog-map a:hover .overlay { background: #3b706c; color: #fff; }
.blog-map figcaption { font-size: 13px; color: #6e6e6e; margin-top: 6px; }

/* ---------- Meteo de course ---------- */
.blog-weather { margin: 36px 0; }
.blog-weather .updated { font-size: 13px; color: #6e6e6e; margin-bottom: 12px; }
.blog-weather table { width: 100%; border-collapse: collapse; font-size: 16px; }
.blog-weather th, .blog-weather td { border-bottom: 1px solid #e9efee; padding: 10px 12px; text-align: left; }
.blog-weather th { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: #6e6e6e; font-weight: 600; }
.blog-weather .cp { font-weight: 700; color: #2c3e3c; }
.blog-weather .km { color: #6e6e6e; font-size: 14px; }

/* ---------- Blocs de fin d'article ---------- */
.blog-linked-routes { margin: 40px 0; }
.blog-linked-routes .item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid #eef2f1;
}
.blog-linked-routes .item:first-of-type { border-top: 1px solid #eef2f1; }
.blog-linked-routes .name { font-weight: 700; color: #2c3e3c; text-decoration: none; }
.blog-linked-routes .name:hover { color: #3b706c; }
.blog-linked-routes .stats { font-size: 14px; color: #6e6e6e; }

.blog-cta {
    background: #f1f6f5;
    border-radius: 12px;
    padding: 28px;
    margin: 44px 0;
    text-align: center;
}
.blog-cta h3 { font-size: 22px; color: #3b706c; margin-bottom: 8px; }
.blog-cta p { font-size: 17px; color: #4a5c5a; margin-bottom: 18px; }

.blog-preview-banner {
    background: #fdf3ef;
    border-bottom: 2px solid #e5491f;
    color: #7a3418;
    padding: 10px 0;
    font-size: 15px;
}

@media (max-width: 767px) {
    .blog-article h1 { font-size: 30px; }
}
