/**
 * SW Médias — Immobilier Strasbourg — main.css
 * Chargé après le critical CSS inline. Styles "below-the-fold" et raffinements.
 */

/* Layout */
.sw-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
.sw-main { padding: 2rem 0 4rem; }

/* Typography */
h1, h2, h3, h4 { color: #0F172A; line-height: 1.25; margin: 0 0 .75em; font-weight: 700; }
h1 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h2 { font-size: clamp(1.375rem, 2.4vw, 1.875rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
.sw-section-title { font-size: 1.5rem; margin-bottom: 1.5rem; padding-bottom: .5rem; border-bottom: 2px solid #E2E8F0; }

/* Breadcrumb */
.sw-breadcrumb { font-size: .875rem; color: #64748B; margin-bottom: 1.5rem; }
.sw-breadcrumb a { color: #64748B; }
.sw-breadcrumb a:hover { color: #2563EB; }
.sw-breadcrumb-sep { margin: 0 .5rem; color: #94A3B8; }

/* Article */
.sw-article { max-width: 760px; padding-top: 2rem; }
.sw-article__title { margin-bottom: 1rem; }
.sw-article__meta { display: flex; gap: 1rem; color: #64748B; font-size: .875rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.sw-article__hero { margin: 0 0 2rem; border-radius: .5rem; overflow: hidden; }
.sw-article__hero img { aspect-ratio: 16/9; object-fit: cover; }
.sw-article__content { font-size: 1.0625rem; line-height: 1.75; }
.sw-article__content img { border-radius: .375rem; margin: 1.5rem 0; }
.sw-article__content blockquote { border-left: 4px solid #2563EB; margin: 1.5rem 0; padding: .5rem 0 .5rem 1rem; color: #475569; font-style: italic; background: #F8FAFC; }
.sw-article__footer { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid #E2E8F0; }

/* Tags */
.sw-tags a { display: inline-block; background: #F1F5F9; color: #475569; padding: .25rem .625rem; border-radius: 999px; font-size: .8125rem; margin: 0 .25rem .25rem 0; }
.sw-tags a:hover { background: #E2E8F0; text-decoration: none; }

/* Cards grid */
.sw-card-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); margin: 1.5rem 0; }
.sw-card { background: #fff; border: 1px solid #E2E8F0; border-radius: .5rem; overflow: hidden; transition: transform .15s ease, box-shadow .15s ease; }
.sw-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(15, 23, 42, .08); }
.sw-card__link { display: block; color: inherit; }
.sw-card__link:hover { text-decoration: none; }
.sw-card__media img { aspect-ratio: 3/2; object-fit: cover; }
.sw-card__body { padding: 1rem 1.25rem 1.25rem; }
.sw-card__title { font-size: 1.0625rem; margin-bottom: .5rem; color: #0F172A; }
.sw-card__excerpt { color: #475569; font-size: .9375rem; margin-bottom: .75rem; }
.sw-card__date { color: #94A3B8; font-size: .8125rem; }

/* Archive */
.sw-archive__header { margin-bottom: 2rem; }
.sw-archive__title { margin-bottom: .5rem; }
.sw-archive__description { color: #475569; font-size: 1.0625rem; }
.sw-pagination { margin-top: 3rem; display: flex; justify-content: center; }
.sw-pagination .page-numbers { display: inline-block; padding: .5rem .75rem; margin: 0 .125rem; border: 1px solid #E2E8F0; border-radius: .375rem; color: #475569; }
.sw-pagination .current { background: #2563EB; color: #fff; border-color: #2563EB; }

/* Front page hero */
.sw-front__hero { text-align: center; padding: 2rem 0 3rem; }
.sw-front__title { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: .5rem; }
.sw-front__tagline { font-size: 1.125rem; color: #475569; }
.sw-front__latest { margin-top: 2rem; }

/* Empty */
.sw-empty { text-align: center; padding: 3rem 1rem; color: #64748B; }

/* Footer */
.sw-site-footer { margin-top: 4rem; padding: 2rem 0; background: #F8FAFC; border-top: 1px solid #E2E8F0; color: #475569; font-size: .9375rem; }
.sw-site-footer__inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.sw-footer-menu { list-style: none; padding: 0; margin: 0; display: flex; gap: 1rem; flex-wrap: wrap; }
.sw-footer-menu a { color: #475569; }
.sw-footer-menu a:hover { color: #0F172A; }

/* Responsive */
@media (max-width: 768px) {
	.sw-card-grid { grid-template-columns: 1fr; }
	.sw-article { padding-top: 1rem; }
	.sw-site-footer__inner { flex-direction: column; }
}

/* Focus visible accessibilité */
:focus-visible { outline: 2px solid #2563EB; outline-offset: 2px; border-radius: 2px; }
