/* FS Motos — blog (blog.php) : liste des articles et article.
   Chargé après css/tailwind.css et css/catalogue.css (couleurs, police Inter, cartes, fil d'Ariane). */

/* ---------- Liste ---------- */
.blog-intro { margin: 0 0 24px; max-width: 70ch; color: var(--texte-2); font-size: 17px; }
.blog-carte .carte-photos img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-carte .carte-corps { gap: 10px; }
.blog-date { margin: 0; font-size: 12px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--rouge); }
.blog-carte h2 { margin: 0; font-size: 21px; font-weight: 900; line-height: 1.15; text-transform: uppercase; overflow-wrap: anywhere; }
.blog-carte h2 a:hover { color: var(--rouge); }
.blog-carte p.resume { margin: 0; color: var(--texte-2); font-size: 15px; }
.blog-lire { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--bordure); display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--rouge); }

/* ---------- Article ---------- */
.blog-article { max-width: 780px; margin: 0 auto; padding-bottom: 32px; }
.blog-entete { padding: 6px 0 20px; }
.blog-entete h1 { margin: 8px 0 0; font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; font-size: clamp(30px, 5.4vw, 48px); line-height: 1.02; overflow-wrap: anywhere; }
.blog-chapo { margin: 18px 0 0; font-size: 19px; line-height: 1.5; color: var(--texte); font-weight: 700; }
.blog-couverture { margin: 0 0 28px; }
.blog-couverture img { width: 100%; height: auto; display: block; border-radius: var(--rayon); background: var(--surface-2); }
@media (max-width: 639px) { .blog-couverture { margin: 0 -16px 24px; } .blog-couverture img { border-radius: 0; } }

.blog-texte { font-size: 17px; line-height: 1.7; color: var(--texte); }
.blog-texte p { margin: 0 0 1.1em; }
.blog-texte h2 { margin: 1.8em 0 .6em; font-weight: 900; text-transform: uppercase; font-size: 24px; line-height: 1.15; letter-spacing: -.01em; }
.blog-texte ul, .blog-texte ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.blog-texte li { margin-bottom: .4em; }
.blog-texte ul li::marker { color: var(--rouge); }
.blog-texte ol li::marker { color: var(--rouge); font-weight: 900; }
.blog-texte a { color: var(--rouge); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.blog-texte a:hover { color: var(--rouge-fonce); }
.blog-texte strong { font-weight: 900; }
.blog-photo { margin: 1.6em 0; }
/* Photo en hauteur (prise au téléphone) : limitée en hauteur et centrée, pour ne pas occuper plusieurs écrans */
.blog-photo img { display: block; width: auto; max-width: 100%; height: auto; max-height: min(80vh, 720px); margin: 0 auto; border-radius: var(--rayon); background: var(--surface-2); }
.blog-photo figcaption { margin-top: 8px; font-size: 14px; color: var(--texte-3); text-align: center; }

/* Aperçu admin : photo encore à prendre */
.blog-photo-manquante { margin: 1.6em 0; padding: 22px; border: 2px dashed var(--bordure-forte); border-radius: var(--rayon); background: var(--surface-2); display: flex; flex-direction: column; gap: 4px; font-size: 15px; color: var(--texte-2); }
.blog-photo-manquante b { color: var(--texte); text-transform: uppercase; font-weight: 900; font-size: 13px; letter-spacing: .06em; }

/* Encadré de fin : passer au magasin */
.blog-contact { margin: 32px 0 0; padding: 24px; background: var(--anthracite); color: #fff; border-radius: var(--rayon); }
.blog-contact h2 { margin: 0 0 8px; font-weight: 900; text-transform: uppercase; font-size: 20px; line-height: 1.15; }
.blog-contact p { margin: 0 0 16px; color: #d1d5db; }
.blog-contact .boutons { display: flex; flex-wrap: wrap; gap: 10px; }
.blog-contact .btn-contour { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .4); }
.blog-contact .btn-contour:hover { border-color: #fff; }

.blog-autres { margin: 40px 0 0; }
.blog-autres .grille { padding-bottom: 16px; }

.blog-apercu { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 50; background: #facc15; color: #000; font-size: 14px; font-weight: 700; padding: 12px 20px; border-radius: 8px; box-shadow: var(--ombre-forte); max-width: calc(100% - 32px); }
