/*
Theme Name: SiHomeTours
Theme URI: https://sihometours.com
Author: SiHomeTours
Author URI: https://sihometours.com
Description: Magazine habitat et immobilier - Votre guide pour acheter, renover, decorer et financer votre maison. Conseils d'experts pour proprietaires et futurs acquereurs.
Version: 2.1.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sihometours
Tags: blog, real-estate, lifestyle, custom-logo, custom-menu, featured-images

SiHomeTours - L'art de vivre chez soi.
*/

/* ================================
   DESIGN TOKENS
   ================================ */
:root {
    /* Light Theme Base */
    --sh-bg-primary: #fdfcfa;
    --sh-bg-secondary: #f7f5f2;
    --sh-bg-tertiary: #f0ece6;
    --sh-bg-card: #ffffff;
    
    /* Accent Colors - Warm Natural Palette */
    --sh-accent-primary: #b07d56;
    --sh-accent-secondary: #8b9a6d;
    --sh-accent-warm: #c4a77d;
    --sh-accent-deep: #6b5344;
    
    /* Text Colors */
    --sh-text-primary: #2d2a26;
    --sh-text-secondary: #5c5650;
    --sh-text-muted: #8a847c;
    --sh-text-light: #a8a299;
    
    /* Borders & Surfaces */
    --sh-border: rgba(45, 42, 38, 0.08);
    --sh-border-strong: rgba(45, 42, 38, 0.15);
    --sh-shadow-soft: 0 4px 24px rgba(45, 42, 38, 0.06);
    --sh-shadow-medium: 0 8px 32px rgba(45, 42, 38, 0.08);
    --sh-shadow-strong: 0 16px 48px rgba(45, 42, 38, 0.12);
    
    /* Typography */
    --sh-font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --sh-font-body: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Spacing */
    --sh-container: 1180px;
    --sh-radius-sm: 6px;
    --sh-radius-md: 12px;
    --sh-radius-lg: 20px;
    --sh-radius-xl: 32px;
    --sh-radius-full: 9999px;
}

/* ================================
   RESET & BASE
   ================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 16px;
}

body {
    font-family: var(--sh-font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--sh-text-primary);
    background: var(--sh-bg-primary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s ease, opacity 0.25s ease;
}

a:hover {
    color: var(--sh-accent-primary);
}

ul, ol {
    list-style: none;
}

/* ================================
   TYPOGRAPHY
   ================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--sh-font-display);
    font-weight: 600;
    line-height: 1.25;
    color: var(--sh-text-primary);
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.35rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1.25rem;
}

p:last-child {
    margin-bottom: 0;
}

.sh-lead {
    font-size: 1.2rem;
    color: var(--sh-text-secondary);
    line-height: 1.8;
}

.sh-small {
    font-size: 0.875rem;
}

.sh-overline {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--sh-accent-primary);
}

/* ================================
   LAYOUT
   ================================ */
.sh-container {
    width: 100%;
    max-width: var(--sh-container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.sh-section {
    padding: 5rem 0;
}

.sh-section--alt {
    background: var(--sh-bg-secondary);
}

.sh-grid {
    display: grid;
    gap: 2rem;
}

.sh-grid--2 { grid-template-columns: repeat(2, 1fr); }
.sh-grid--3 { grid-template-columns: repeat(3, 1fr); }
.sh-grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
    .sh-grid--4 { grid-template-columns: repeat(2, 1fr); }
    .sh-grid--3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .sh-grid--4,
    .sh-grid--3,
    .sh-grid--2 { grid-template-columns: 1fr; }
}

/* ================================
   BUTTONS
   ================================ */
.sh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 1.75rem;
    font-family: var(--sh-font-body);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1;
    border: none;
    border-radius: var(--sh-radius-full);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.sh-btn--primary {
    background: var(--sh-accent-primary);
    color: #fff;
}

.sh-btn--primary:hover {
    background: var(--sh-accent-deep);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--sh-shadow-medium);
}

.sh-btn--secondary {
    background: transparent;
    color: var(--sh-text-primary);
    border: 2px solid var(--sh-border-strong);
}

.sh-btn--secondary:hover {
    border-color: var(--sh-accent-primary);
    color: var(--sh-accent-primary);
}

.sh-btn--ghost {
    background: transparent;
    color: var(--sh-accent-primary);
    padding: 0.5rem 0;
}

.sh-btn--ghost:hover {
    color: var(--sh-accent-deep);
}

.sh-btn--ghost svg {
    transition: transform 0.3s ease;
}

.sh-btn--ghost:hover svg {
    transform: translateX(4px);
}

/* ================================
   CARDS
   ================================ */
.sh-card {
    background: var(--sh-bg-card);
    border-radius: var(--sh-radius-lg);
    overflow: hidden;
    transition: all 0.35s ease;
    box-shadow: var(--sh-shadow-soft);
}

.sh-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--sh-shadow-strong);
}

.sh-card__image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.sh-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.sh-card:hover .sh-card__image img {
    transform: scale(1.05);
}

.sh-card__content {
    padding: 1.5rem;
}

.sh-card__meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
    color: var(--sh-text-muted);
}

.sh-card__category {
    font-weight: 600;
    color: var(--sh-accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.sh-card__title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.35;
}

.sh-card__title a:hover {
    color: var(--sh-accent-primary);
}

.sh-card__excerpt {
    font-size: 0.95rem;
    color: var(--sh-text-secondary);
    line-height: 1.65;
}

/* ================================
   HEADER
   ================================ */
.sh-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(253, 252, 250, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--sh-border);
    transition: all 0.3s ease;
}

.sh-header--scrolled {
    box-shadow: var(--sh-shadow-soft);
}

.sh-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 2rem;
}

.sh-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.sh-logo__icon {
    width: 40px;
    height: 40px;
}

.sh-logo__text {
    font-family: var(--sh-font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--sh-text-primary);
    letter-spacing: -0.02em;
}

.sh-logo__text span {
    color: var(--sh-accent-primary);
}

.sh-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.sh-nav__link {
    position: relative;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--sh-text-secondary);
    padding: 0.5rem 0;
    transition: color 0.25s ease;
}

.sh-nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--sh-accent-primary);
    transition: width 0.3s ease;
}

.sh-nav__link:hover {
    color: var(--sh-text-primary);
}

.sh-nav__link:hover::after,
.sh-nav__link--active::after {
    width: 100%;
}

.sh-nav__link--active {
    color: var(--sh-text-primary);
}

.sh-header__cta {
    flex-shrink: 0;
    padding: 0.65rem 1.25rem;
    font-size: 0.85rem;
}

/* Mobile Menu Toggle */
.sh-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

.sh-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--sh-text-primary);
    transition: all 0.3s ease;
}

@media (max-width: 900px) {
    .sh-header__inner {
        height: 64px;
    }
    
    .sh-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: var(--sh-bg-card);
        border-bottom: 1px solid var(--sh-border);
        box-shadow: var(--sh-shadow-medium);
    }
    
    .sh-nav--open {
        display: flex;
    }
    
    .sh-nav__link {
        display: block;
        width: 100%;
        padding: 1rem 1.5rem;
        border-bottom: 1px solid var(--sh-border);
    }
    
    .sh-nav__link::after {
        display: none;
    }
    
    .sh-menu-toggle {
        display: flex;
    }
    
    .sh-header__cta {
        display: none;
    }
}

/* ================================
   HERO SECTION
   ================================ */
.sh-hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    margin-top: 72px;
    overflow: hidden;
}

.sh-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.sh-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sh-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(253, 252, 250, 0.95) 0%, rgba(253, 252, 250, 0.7) 60%, rgba(253, 252, 250, 0.4) 100%);
}

.sh-hero__content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    padding: 3rem 0;
}

.sh-hero__badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: var(--sh-bg-card);
    border: 1px solid var(--sh-border-strong);
    border-radius: var(--sh-radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--sh-accent-primary);
    letter-spacing: 0.05em;
    margin-bottom: 1.75rem;
    box-shadow: var(--sh-shadow-soft);
}

.sh-hero__title {
    font-size: clamp(2.75rem, 6vw, 4.25rem);
    line-height: 1.08;
    margin-bottom: 1.5rem;
    color: var(--sh-text-primary);
}

.sh-hero__subtitle {
    font-size: 1.15rem;
    color: var(--sh-text-secondary);
    line-height: 1.75;
    margin-bottom: 2.25rem;
    max-width: 520px;
}

.sh-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

@media (max-width: 900px) {
    .sh-hero {
        min-height: 80vh;
        margin-top: 64px;
    }
    
    .sh-hero__overlay {
        background: linear-gradient(180deg, rgba(253, 252, 250, 0.95) 0%, rgba(253, 252, 250, 0.85) 100%);
    }
    
    .sh-hero__content {
        text-align: center;
        max-width: 100%;
    }
    
    .sh-hero__subtitle {
        max-width: 100%;
    }
    
    .sh-hero__actions {
        justify-content: center;
        flex-direction: column;
    }
    
    .sh-hero__actions .sh-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ================================
   CATEGORIES SECTION
   ================================ */
.sh-categories {
    padding: 5rem 0;
}

.sh-categories__header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3.5rem;
}

.sh-categories__header h2 {
    margin-bottom: 1rem;
}

.sh-category-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--sh-bg-card);
    border-radius: var(--sh-radius-lg);
    overflow: hidden;
    box-shadow: var(--sh-shadow-soft);
    transition: all 0.4s ease;
}

.sh-category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--sh-shadow-strong);
}

.sh-category-card__image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.sh-category-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.sh-category-card:hover .sh-category-card__image img {
    transform: scale(1.08);
}

.sh-category-card__content {
    padding: 1.75rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.sh-category-card__title {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}

.sh-category-card__desc {
    font-size: 0.95rem;
    color: var(--sh-text-secondary);
    line-height: 1.65;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.sh-category-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--sh-accent-primary);
}

.sh-category-card__link svg {
    transition: transform 0.3s ease;
}

.sh-category-card:hover .sh-category-card__link svg {
    transform: translateX(4px);
}

/* ================================
   ARTICLES SECTION
   ================================ */
.sh-articles {
    padding: 5rem 0;
    background: var(--sh-bg-secondary);
}

.sh-articles__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2.5rem;
}

.sh-articles__header h2 {
    margin-bottom: 0.5rem;
}

.sh-articles__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 1024px) {
    .sh-articles__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .sh-articles__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .sh-articles__grid {
        grid-template-columns: 1fr;
    }
}

/* ================================
   NEWSLETTER SECTION
   ================================ */
.sh-newsletter {
    padding: 6rem 0;
    background: var(--sh-bg-tertiary);
}

.sh-newsletter__inner {
    max-width: 580px;
    margin: 0 auto;
    text-align: center;
}

.sh-newsletter__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    background: rgba(176, 125, 86, 0.1);
    border-radius: var(--sh-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sh-newsletter__icon svg {
    color: var(--sh-accent-primary);
}

.sh-newsletter h2 {
    margin-bottom: 1rem;
}

.sh-newsletter__desc {
    font-size: 1.1rem;
    color: var(--sh-text-secondary);
    margin-bottom: 2rem;
}

.sh-newsletter__form {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.sh-newsletter__input {
    flex: 1;
    padding: 1rem 1.25rem;
    font-family: var(--sh-font-body);
    font-size: 1rem;
    color: var(--sh-text-primary);
    background: var(--sh-bg-card);
    border: 2px solid var(--sh-border);
    border-radius: var(--sh-radius-full);
    outline: none;
    transition: border-color 0.3s ease;
}

.sh-newsletter__input:focus {
    border-color: var(--sh-accent-primary);
}

.sh-newsletter__input::placeholder {
    color: var(--sh-text-light);
}

.sh-newsletter__trust {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: var(--sh-text-muted);
}

.sh-newsletter__trust span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.sh-newsletter__trust svg {
    color: var(--sh-accent-secondary);
}

@media (max-width: 640px) {
    .sh-newsletter__form {
        flex-direction: column;
    }
    
    .sh-newsletter__trust {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* ================================
   FOOTER
   ================================ */
.sh-footer {
    background: var(--sh-text-primary);
    color: rgba(255, 255, 255, 0.7);
    padding: 4rem 0 2rem;
}

.sh-footer a {
    color: rgba(255, 255, 255, 0.7);
}

.sh-footer a:hover {
    color: #fff;
}

.sh-footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sh-footer__brand {
    max-width: 320px;
}

.sh-footer__logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.sh-footer__logo-text {
    font-family: var(--sh-font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.sh-footer__logo-text span {
    color: var(--sh-accent-warm);
}

.sh-footer__tagline {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.sh-footer__social {
    display: flex;
    gap: 0.75rem;
}

.sh-footer__social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--sh-radius-md);
    transition: all 0.3s ease;
}

.sh-footer__social a:hover {
    background: var(--sh-accent-primary);
    color: #fff;
}

.sh-footer__column h4 {
    font-family: var(--sh-font-body);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #fff;
    margin-bottom: 1.25rem;
}

.sh-footer__links li {
    margin-bottom: 0.75rem;
}

.sh-footer__links a {
    font-size: 0.95rem;
}

.sh-footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .sh-footer__grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .sh-footer__bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* ================================
   SINGLE POST
   ================================ */
.sh-single {
    padding: 8rem 0 5rem;
}

.sh-single__header {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
}

.sh-single__meta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--sh-text-muted);
}

.sh-single__category {
    font-weight: 600;
    color: var(--sh-accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.sh-single__title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1.5rem;
}

.sh-single__excerpt {
    font-size: 1.2rem;
    color: var(--sh-text-secondary);
    line-height: 1.75;
}

.sh-single__featured {
    max-width: 1000px;
    margin: 0 auto 3rem;
    border-radius: var(--sh-radius-xl);
    overflow: hidden;
}

.sh-single__featured img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.sh-single__content {
    max-width: 720px;
    margin: 0 auto;
}

.sh-single__content p {
    font-size: 1.1rem;
    line-height: 1.85;
    margin-bottom: 1.75rem;
}

.sh-single__content h2 {
    margin: 2.5rem 0 1.25rem;
}

.sh-single__content h3 {
    margin: 2rem 0 1rem;
}

.sh-single__content ul,
.sh-single__content ol {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.sh-single__content li {
    margin-bottom: 0.75rem;
    list-style: disc;
}

.sh-single__content ol li {
    list-style: decimal;
}

.sh-single__content blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: var(--sh-bg-secondary);
    border-left: 4px solid var(--sh-accent-primary);
    border-radius: 0 var(--sh-radius-md) var(--sh-radius-md) 0;
    font-size: 1.15rem;
    font-style: italic;
    color: var(--sh-text-secondary);
}

/* ================================
   ARCHIVE / CATEGORY
   ================================ */
.sh-archive {
    padding: 8rem 0 5rem;
}

.sh-archive__header {
    text-align: center;
    margin-bottom: 3rem;
}

.sh-archive__title {
    margin-bottom: 1rem;
}

.sh-archive__desc {
    font-size: 1.1rem;
    color: var(--sh-text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.sh-archive__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 1024px) {
    .sh-archive__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .sh-archive__grid {
        grid-template-columns: 1fr;
    }
}

/* ================================
   PAGINATION
   ================================ */
.sh-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid var(--sh-border);
}

.sh-pagination__link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--sh-text-secondary);
    background: var(--sh-bg-card);
    border-radius: var(--sh-radius-md);
    transition: all 0.3s ease;
}

.sh-pagination__link:hover {
    color: var(--sh-text-primary);
    background: var(--sh-bg-secondary);
}

.sh-pagination__link--current {
    color: #fff;
    background: var(--sh-accent-primary);
}

.sh-pagination__link--current:hover {
    color: #fff;
    background: var(--sh-accent-deep);
}

/* ================================
   404 PAGE
   ================================ */
.sh-404 {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 1.5rem;
}

.sh-404__code {
    font-family: var(--sh-font-display);
    font-size: clamp(6rem, 20vw, 12rem);
    font-weight: 700;
    color: var(--sh-bg-tertiary);
    line-height: 1;
    margin-bottom: 1rem;
}

.sh-404__title {
    margin-bottom: 1rem;
}

.sh-404__desc {
    font-size: 1.1rem;
    color: var(--sh-text-secondary);
    margin-bottom: 2rem;
}

/* ================================
   SEARCH
   ================================ */
.sh-search-form {
    display: flex;
    gap: 0.75rem;
    max-width: 500px;
    margin: 0 auto;
}

.sh-search-form__input {
    flex: 1;
    padding: 1rem 1.25rem;
    font-family: var(--sh-font-body);
    font-size: 1rem;
    color: var(--sh-text-primary);
    background: var(--sh-bg-card);
    border: 2px solid var(--sh-border);
    border-radius: var(--sh-radius-full);
    outline: none;
    transition: border-color 0.3s ease;
}

.sh-search-form__input:focus {
    border-color: var(--sh-accent-primary);
}

/* ================================
   PAGE TEMPLATE
   ================================ */
.sh-page {
    padding: 8rem 0 5rem;
}

.sh-page__header {
    text-align: center;
    margin-bottom: 3rem;
}

.sh-page__title {
    margin-bottom: 1rem;
}

.sh-page__content {
    max-width: 800px;
    margin: 0 auto;
}

.sh-page__content p {
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

/* ================================
   UTILITIES
   ================================ */
.sh-text-center { text-align: center; }
.sh-text-left { text-align: left; }
.sh-text-right { text-align: right; }

.sh-mb-0 { margin-bottom: 0; }
.sh-mb-1 { margin-bottom: 0.5rem; }
.sh-mb-2 { margin-bottom: 1rem; }
.sh-mb-3 { margin-bottom: 1.5rem; }
.sh-mb-4 { margin-bottom: 2rem; }

.sh-mt-0 { margin-top: 0; }
.sh-mt-1 { margin-top: 0.5rem; }
.sh-mt-2 { margin-top: 1rem; }
.sh-mt-3 { margin-top: 1.5rem; }
.sh-mt-4 { margin-top: 2rem; }

.sh-hidden { display: none; }

@media (max-width: 768px) {
    .sh-hidden-mobile { display: none; }
}

@media (min-width: 769px) {
    .sh-hidden-desktop { display: none; }
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ========================================
   SINGLE POST - Footer & Tags & Share
   ======================================== */

.sh-single__footer {
    max-width: 720px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid var(--sh-border);
}

.sh-single__tags {
    margin-bottom: 1.5rem;
}

.sh-single__tags-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--sh-text-muted);
    margin-right: 0.75rem;
}

.sh-single__tag {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    margin: 0.25rem;
    font-size: 0.8rem;
    background: var(--sh-bg-secondary);
    border-radius: var(--sh-radius-full);
    color: var(--sh-text-secondary);
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.sh-single__tag:hover {
    background: var(--sh-primary);
    color: white;
}

.sh-single__share {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sh-single__share-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--sh-text-muted);
}

.sh-single__share-link {
    color: var(--sh-text-muted);
    transition: color 0.2s ease;
}

.sh-single__share-link:hover {
    color: var(--sh-primary);
}

/* Archive Hero */
.sh-archive__hero {
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    margin-bottom: 3rem;
}

.sh-archive__hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.6) 100%);
}

.sh-archive--with-hero .sh-section {
    padding-top: 0;
}

.sh-archive__empty {
    text-align: center;
    padding: 3rem;
    color: var(--sh-text-muted);
}

/* 404 Actions */
.sh-404__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* ========================================
   BREADCRUMBS - Fil d'Ariane
   ======================================== */

.sh-breadcrumbs {
    background: var(--sh-bg-secondary);
    padding: 0.75rem 0;
    margin-top: 72px;
    border-bottom: 1px solid var(--sh-border);
}

.sh-breadcrumbs__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.85rem;
}

.sh-breadcrumbs__item {
    display: flex;
    align-items: center;
    color: var(--sh-text-muted);
}

.sh-breadcrumbs__item:not(:last-child)::after {
    content: '›';
    margin-left: 0.5rem;
    color: var(--sh-text-muted);
    opacity: 0.5;
}

.sh-breadcrumbs__item a {
    color: var(--sh-text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.sh-breadcrumbs__item a:hover {
    color: var(--sh-primary);
}

.sh-breadcrumbs__item--current {
    color: var(--sh-text);
    font-weight: 500;
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Ajustement archive avec breadcrumbs */
.sh-archive {
    padding-top: 3rem;
}

.sh-archive--with-hero {
    padding-top: 0;
}

/* Ajustement single avec breadcrumbs */
.sh-breadcrumbs + .sh-single {
    padding-top: 3rem;
}

.sh-breadcrumbs + .sh-single .sh-single__header {
    padding-top: 0;
}

@media (max-width: 768px) {
    .sh-breadcrumbs__item--current {
        max-width: 200px;
    }
}
