/*
Theme Name: Sommeil Zen
Template: astra
Version: 1.0
Text Domain: sommeil-zen
*/

/* ===== VARIABLES ===== */
:root {
    --sz-night: #1a1f3c;
    --sz-slate: #2d3561;
    --sz-cream: #faf8f5;
    --sz-warm-white: #ffffff;
    --sz-lavender: #8b7cb3;
    --sz-sage: #7da87b;
    --sz-gold: #c9a96e;
    --sz-text: #2d2d3a;
    --sz-text-light: #6b6b7b;
    --sz-max-width: 1200px;
    --sz-gap: 24px;
}

/* ===== BASE ===== */
body {
    background-color: var(--sz-cream);
    color: var(--sz-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    overflow-x: hidden;
}

/* ===== CONTAINER GLOBAL ===== */
.sz-section {
    width: 100%;
    padding: 72px 0;
    overflow-x: hidden;
}

.sz-container {
    width: min(100% - 32px, var(--sz-max-width));
    margin-inline: auto;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .sz-section {
        padding: 48px 0;
    }
    .sz-container {
        width: min(100% - 24px, var(--sz-max-width));
    }
}

@media (max-width: 480px) {
    .sz-section {
        padding: 40px 0;
    }
    .sz-container {
        width: min(100% - 16px, var(--sz-max-width));
    }
}

/* ===== HEADER ===== */
.site-header {
    background: transparent !important;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    border-bottom: none !important;
}
.site-header .main-header-bar {
    background: transparent !important;
    box-shadow: none !important;
}
.site-header .ast-builder-grid-row {
    padding-top: 16px;
    padding-bottom: 16px;
}
.site-logo-img img {
    max-height: 48px !important;
    width: auto;
}
.main-header-menu a,
.ast-nav-menu a {
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.main-header-menu a:hover {
    opacity: 0.85;
}
.ast-button-wrap .menu-toggle-icon {
    color: #ffffff !important;
}
.ast-header-button-1,
.ast-builder-button-wrap .ast-custom-button {
    display: none !important;
}
/* Hide duplicate header (mobile menu container) */
.ast-mobile-header-wrap + .ast-desktop-header,
#ast-desktop-header + #ast-mobile-header,
.site-header + .site-header,
.ast-mobile-header-wrap + .site-header {
    display: none !important;
}

/* ===== HERO ===== */
.sz-hero {
    background: linear-gradient(90deg, rgba(26,31,60,0.85) 0%, rgba(26,31,60,0.4) 60%, rgba(26,31,60,0.1) 100%),
                url('/wp-content/uploads/astra-refonte-2026/hero-chambre-lune.png');
    background-size: cover;
    background-position: center right;
    min-height: 520px;
    display: flex;
    align-items: center;
    padding: 120px 0 60px;
}
.sz-hero .sz-container {
    width: min(100% - 32px, var(--sz-max-width));
    margin-inline: auto;
}
.sz-hero-label {
    color: var(--sz-gold);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.sz-hero h1 {
    color: #ffffff;
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 400;
    line-height: 1.15;
    margin-bottom: 18px;
    font-family: Georgia, "Times New Roman", serif;
}
.sz-hero p {
    color: rgba(255,255,255,0.85);
    font-size: 1.05rem;
    line-height: 1.55;
    max-width: 480px;
    margin-bottom: 26px;
}
.sz-hero .wp-block-button__link {
    background: transparent !important;
    color: #ffffff !important;
    border: 1px solid rgba(255,255,255,0.4) !important;
    border-radius: 999px !important;
    padding: 12px 28px !important;
    font-weight: 500 !important;
    font-size: 14px !important;
}
.sz-hero .wp-block-button__link:hover {
    background: rgba(255,255,255,0.1) !important;
    border-color: rgba(255,255,255,0.7) !important;
}

/* ===== SECTION TITLES ===== */
.sz-section-title {
    text-align: center;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.5rem, 2.8vw, 2rem);
    font-weight: 400;
    color: var(--sz-text);
    margin-bottom: 8px;
}
.sz-section-subtitle {
    text-align: center;
    color: var(--sz-text-light);
    font-size: 0.9rem;
    margin-bottom: 32px;
}

/* ===== THEME CARDS ===== */
.sz-theme-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    height: 100%;
}
.sz-theme-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}
.sz-theme-card-img {
    height: 160px !important;
    min-height: 160px !important;
    background-size: cover;
    background-position: center;
    position: relative;
    display: block !important;
}
/* Category card images */
.wp-block-column:nth-child(1) .sz-theme-card .sz-theme-card-img { background-image: url('/wp-content/uploads/astra-refonte-2026/hero-chambre-lune.png') !important; }
.wp-block-column:nth-child(2) .sz-theme-card .sz-theme-card-img { background-image: url('/wp-content/uploads/astra-refonte-2026/hero-lavande-tisane.png') !important; }
.wp-block-column:nth-child(3) .sz-theme-card .sz-theme-card-img { background-image: url('/wp-content/uploads/astra-refonte-2026/fond-ondulations-douces.png') !important; }
.wp-block-column:nth-child(4) .sz-theme-card .sz-theme-card-img { background-image: url('/wp-content/uploads/astra-refonte-2026/fond-ciel-nocturne.png') !important; }

.sz-theme-card-icon {
    position: absolute;
    bottom: -16px;
    left: 16px;
    width: 36px;
    height: 36px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.sz-theme-card-body {
    padding: 24px 18px 18px;
}
.sz-theme-card-body h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--sz-text);
    margin-bottom: 6px;
}
.sz-theme-card-body p {
    font-size: 0.85rem;
    color: var(--sz-text-light);
    line-height: 1.5;
    margin-bottom: 14px;
}
.sz-theme-card-body a {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--sz-slate);
    text-decoration: none;
}
.sz-theme-card-body a:hover {
    color: var(--sz-night);
}

/* ===== ARTICLES GRID ===== */
.sz-articles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
@media (max-width: 768px) {
    .sz-articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 480px) {
    .sz-articles-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== ARTICLE CARDS ===== */
.sz-article-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.sz-article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.sz-article-card-img {
    height: 160px;
    background-size: cover;
    background-position: center;
    position: relative;
}
.sz-article-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(26,31,60,0.75);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 10px;
    border-radius: 4px;
}
.sz-article-card-body {
    padding: 18px;
}
.sz-article-card-body h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--sz-text);
    margin-bottom: 6px;
    line-height: 1.35;
}
.sz-article-card-body h4 a {
    color: inherit;
    text-decoration: none;
}
.sz-article-card-body p {
    font-size: 0.82rem;
    color: var(--sz-text-light);
    line-height: 1.5;
    margin-bottom: 10px;
}
.sz-article-meta {
    font-size: 0.75rem;
    color: #999;
}

/* ===== NEWSLETTER ===== */
.sz-newsletter {
    background: linear-gradient(135deg, #2d3561 0%, #4a3f6b 50%, #7a6b9e 100%);
    position: relative;
    overflow: hidden;
}
.sz-newsletter::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
}
.sz-newsletter h2 {
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.6rem;
    font-weight: 400;
    margin-bottom: 8px;
}
.sz-newsletter p {
    color: rgba(255,255,255,0.75);
    font-size: 0.88rem;
}
.sz-newsletter input[type="email"] {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 999px;
    padding: 12px 20px;
    color: #fff;
    font-size: 14px;
    width: 100%;
    max-width: 320px;
}
.sz-newsletter input[type="email"]::placeholder {
    color: rgba(255,255,255,0.5);
}
.sz-newsletter button {
    background: var(--sz-gold) !important;
    color: #1a1f3c !important;
    border: none !important;
    border-radius: 999px !important;
    padding: 12px 28px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    cursor: pointer;
}

/* ===== CUSTOM FOOTER ===== */
.site-footer { display: none !important; }
.sz-custom-footer {
    background: #1a1f3c;
    color: rgba(255,255,255,0.7);
    padding: 60px 0 30px;
    font-size: 0.9rem;
}
.sz-footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: var(--sz-max-width);
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}
.sz-custom-footer h3 {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
}
.sz-custom-footer a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    line-height: 2;
}
.sz-custom-footer a:hover {
    color: #fff;
}
.sz-custom-footer p {
    color: rgba(255,255,255,0.6);
    line-height: 1.6;
}
.sz-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    margin-top: 40px;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    max-width: var(--sz-max-width);
    margin-inline: auto;
    padding-inline: 24px;
}
@media (max-width: 768px) {
    .sz-footer-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 20px;
    }
}
@media (max-width: 480px) {
    .sz-footer-grid {
        grid-template-columns: 1fr;
        padding: 0 16px;
    }
    .sz-footer-bottom {
        padding-inline: 16px;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .sz-hero {
        min-height: 440px;
        padding-top: 100px;
        background-position: center;
    }
    .sz-hero h1 {
        font-size: 1.8rem;
    }
}
