/*
Theme Name: Le Salon Jaune
Theme URI: https://lesalonjaune.fr
Author: Le Salon Jaune
Author URI: https://lesalonjaune.fr
Description: Thème enfant Hello Elementor pour Le Salon Jaune — Blog beauté, coiffure & bien-être. Design inspiré de foodies-anglet.fr avec palette dorée.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Template: hello-elementor
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lesalonjaune
Tags: blog, custom-logo, custom-menu, featured-images, elementor, beauty, lifestyle
*/

/* =========================================
   CSS VARIABLES — Le Salon Jaune
   ========================================= */
:root {
    --lsj-primary: #FED03C;
    --lsj-primary-dark: #E0B520;
    --lsj-primary-light: #FFF3C4;
    --lsj-accent: #FCBF10;
    --lsj-bg: #FFFEFA;
    --lsj-bg-alt: #FFF9E0;
    --lsj-text: #2D2A26;
    --lsj-text-light: #6B6560;
    --lsj-text-muted: #9B958E;
    --lsj-white: #FFFFFF;
    --lsj-border: #E8E0D0;
    --lsj-overlay: rgba(45, 42, 38, 0.55);
    --lsj-font-heading: 'Playfair Display', Georgia, serif;
    --lsj-font-body: 'Lato', 'Helvetica Neue', sans-serif;
    --lsj-radius: 12px;
    --lsj-shadow-card: 0 2px 20px rgba(0,0,0,0.06);
    --lsj-shadow-hover: 0 8px 32px rgba(0,0,0,0.12);
    --lsj-transition: all 0.3s ease;
}

/* =========================================
   BASE — Override Hello Elementor defaults
   ========================================= */
body {
    font-family: var(--lsj-font-body) !important;
    color: var(--lsj-text);
    background-color: var(--lsj-bg);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--lsj-font-heading) !important;
    color: var(--lsj-text);
}

a {
    transition: var(--lsj-transition);
}

/* =========================================
   ELEMENTOR GLOBAL OVERRIDES
   ========================================= */

/* -- Buttons -- */
.elementor-button {
    font-family: var(--lsj-font-body) !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    border-radius: 8px !important;
    transition: var(--lsj-transition) !important;
}

/* -- Section backgrounds -- */
.lsj-section-alt {
    background-color: var(--lsj-bg-alt) !important;
}

/* =========================================
   HEADER — Sticky avec logo + nav
   (Construit dans Elementor Header Builder
    ou via le header.php du child theme)
   ========================================= */
.lsj-header {
    background: var(--lsj-white);
    border-bottom: 1px solid var(--lsj-border);
    box-shadow: 0 1px 8px rgba(0,0,0,0.04);
}

.lsj-header .elementor-nav-menu a {
    font-family: var(--lsj-font-body) !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.2px !important;
    color: var(--lsj-text) !important;
    position: relative;
}

.lsj-header .elementor-nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--lsj-primary);
    transition: width 0.3s ease;
}

.lsj-header .elementor-nav-menu a:hover::after {
    width: 100%;
}

.lsj-header .elementor-nav-menu a:hover {
    color: var(--lsj-primary) !important;
}

/* Logo text fallback */
.lsj-logo-text {
    font-family: var(--lsj-font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--lsj-primary);
}

.lsj-logo-text span {
    color: var(--lsj-text);
    font-weight: 400;
}

/* =========================================
   HERO SECTION
   ========================================= */
.lsj-hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(135deg, #FFF3C4 0%, #FEE577 30%, #FED03C 70%, #FCBF10 100%);
}

.lsj-hero .elementor-background-overlay {
    background: var(--lsj-overlay) !important;
}

.lsj-hero h1,
.lsj-hero .elementor-heading-title {
    font-family: var(--lsj-font-heading) !important;
    font-size: 3rem !important;
    font-weight: 700 !important;
    color: var(--lsj-white) !important;
    line-height: 1.2 !important;
    animation: lsjFadeInUp 0.8s ease-out;
}

.lsj-hero p,
.lsj-hero .elementor-text-editor p {
    font-family: var(--lsj-font-body) !important;
    font-size: 1.1rem !important;
    color: rgba(255,255,255,0.9) !important;
    line-height: 1.7 !important;
    font-weight: 300 !important;
    animation: lsjFadeInUp 0.8s ease-out 0.15s both;
}

@keyframes lsjFadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   CATEGORY BOXES (3 colonnes Elementor)
   ========================================= */
.lsj-cat-boxes {
    margin-top: -50px !important;
    position: relative;
    z-index: 3;
}

.lsj-cat-box {
    background: var(--lsj-white) !important;
    border-radius: var(--lsj-radius) !important;
    padding: 36px 24px !important;
    text-align: center;
    box-shadow: var(--lsj-shadow-card);
    transition: var(--lsj-transition);
    border: 1px solid var(--lsj-border);
}

.lsj-cat-box:hover {
    transform: translateY(-6px);
    box-shadow: var(--lsj-shadow-hover);
    border-color: var(--lsj-primary);
}

.lsj-cat-box .elementor-icon {
    font-size: 1.5rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--lsj-bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.lsj-cat-box h3 {
    font-family: var(--lsj-font-heading) !important;
    font-size: 1.25rem !important;
    font-weight: 600 !important;
}

.lsj-cat-box a.lsj-cat-link {
    display: inline-block;
    margin-top: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--lsj-primary);
    border-bottom: 2px solid var(--lsj-primary);
    padding-bottom: 2px;
}

.lsj-cat-box a.lsj-cat-link:hover {
    color: var(--lsj-primary-dark);
    border-color: var(--lsj-primary-dark);
}

/* =========================================
   ARTICLES GRID (Elementor Posts Widget)
   ========================================= */
.lsj-articles-section {
    padding: 80px 0 !important;
}

.lsj-articles-section .elementor-heading-title {
    font-family: var(--lsj-font-heading) !important;
    font-size: 2rem !important;
    font-weight: 700 !important;
    text-align: center !important;
    position: relative;
    padding-bottom: 20px;
}

.lsj-articles-section .elementor-heading-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--lsj-primary);
    margin: 16px auto 0;
    border-radius: 2px;
}

/* Posts widget card styling */
.lsj-posts .elementor-post {
    background: var(--lsj-white) !important;
    border-radius: var(--lsj-radius) !important;
    overflow: hidden;
    box-shadow: var(--lsj-shadow-card) !important;
    transition: var(--lsj-transition) !important;
    border: 1px solid var(--lsj-border);
}

.lsj-posts .elementor-post:hover {
    transform: translateY(-4px);
    box-shadow: var(--lsj-shadow-hover) !important;
}

.lsj-posts .elementor-post__thumbnail {
    overflow: hidden;
}

.lsj-posts .elementor-post__thumbnail img {
    transition: transform 0.5s ease !important;
    aspect-ratio: 16/10;
    object-fit: cover;
}

.lsj-posts .elementor-post:hover .elementor-post__thumbnail img {
    transform: scale(1.05);
}

/* Category badge */
.lsj-posts .elementor-post__badge {
    background: var(--lsj-primary) !important;
    color: var(--lsj-white) !important;
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.2px !important;
    padding: 5px 14px !important;
    border-radius: 20px !important;
    position: absolute;
    top: 14px;
    left: 14px;
}

/* Post title */
.lsj-posts .elementor-post__title {
    font-family: var(--lsj-font-heading) !important;
    font-size: 1.08rem !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    color: var(--lsj-text) !important;
}

.lsj-posts .elementor-post__title a:hover {
    color: var(--lsj-primary) !important;
}

/* Post meta (author, date) */
.lsj-posts .elementor-post__meta-data {
    font-size: 0.82rem !important;
    color: var(--lsj-text-muted) !important;
}

.lsj-posts .elementor-post__text {
    padding: 20px 22px 24px !important;
}

/* =========================================
   FOOTER
   ========================================= */
.lsj-footer {
    background: var(--lsj-text) !important;
    color: rgba(255,255,255,0.7) !important;
}

.lsj-footer h4,
.lsj-footer .elementor-heading-title {
    font-family: var(--lsj-font-heading) !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    color: var(--lsj-white) !important;
    margin-bottom: 20px !important;
}

.lsj-footer p,
.lsj-footer .elementor-text-editor {
    color: rgba(255,255,255,0.7) !important;
    font-size: 0.9rem !important;
    line-height: 1.7 !important;
}

.lsj-footer a {
    color: rgba(255,255,255,0.7) !important;
}

.lsj-footer a:hover {
    color: var(--lsj-primary) !important;
}

.lsj-footer-logo {
    font-family: var(--lsj-font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--lsj-primary);
}

.lsj-footer-logo span {
    color: var(--lsj-white);
    font-weight: 400;
}

.lsj-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1) !important;
    text-align: center;
    font-size: 0.82rem !important;
    color: rgba(255,255,255,0.4) !important;
    padding-top: 24px !important;
}

/* =========================================
   ARCHIVE / BLOG PAGE (non-Elementor)
   Fallback si certaines pages n'utilisent
   pas Elementor
   ========================================= */
.lsj-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px;
}

.lsj-card {
    background: var(--lsj-white);
    border-radius: var(--lsj-radius);
    overflow: hidden;
    box-shadow: var(--lsj-shadow-card);
    transition: var(--lsj-transition);
    border: 1px solid var(--lsj-border);
}

.lsj-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--lsj-shadow-hover);
}

.lsj-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.lsj-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.lsj-card:hover .lsj-card-image img {
    transform: scale(1.05);
}

.lsj-card-category {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--lsj-primary);
    color: var(--lsj-white);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 5px 14px;
    border-radius: 20px;
}

.lsj-card-category a { color: var(--lsj-white); }

.lsj-card-body {
    padding: 20px 22px 24px;
}

.lsj-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.lsj-card-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
}

.lsj-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lsj-card-author {
    font-size: 0.82rem;
    color: var(--lsj-text-light);
}

.lsj-card-title {
    font-family: var(--lsj-font-heading);
    font-size: 1.08rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.lsj-card-title a:hover { color: var(--lsj-primary); }

.lsj-card-date {
    font-size: 0.78rem;
    color: var(--lsj-text-muted);
}

/* Pagination */
.lsj-pagination {
    text-align: center;
    padding: 20px 0 60px;
}

.lsj-pagination .page-numbers {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 4px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--lsj-text);
    border: 1px solid var(--lsj-border);
    transition: var(--lsj-transition);
}

.lsj-pagination .page-numbers.current,
.lsj-pagination .page-numbers:hover {
    background: var(--lsj-primary);
    color: var(--lsj-white);
    border-color: var(--lsj-primary);
}

/* Single post */
.lsj-single-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 24px;
}

.lsj-single-content .entry-title {
    font-family: var(--lsj-font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 16px;
}

.lsj-single-content .entry-meta {
    font-size: 0.88rem;
    color: var(--lsj-text-muted);
    margin-bottom: 32px;
}

.lsj-single-content .entry-content {
    font-size: 1.05rem;
    line-height: 1.8;
}

.lsj-single-content .entry-content h2 {
    font-size: 1.6rem;
    margin: 40px 0 16px;
}

.lsj-single-content .entry-content h3 {
    font-size: 1.3rem;
    margin: 32px 0 12px;
}

.lsj-single-content .entry-content p {
    margin-bottom: 20px;
}

.lsj-single-content .entry-content img {
    border-radius: var(--lsj-radius);
    margin: 24px 0;
}

.lsj-single-content .entry-content a {
    color: var(--lsj-primary);
    border-bottom: 1px solid var(--lsj-primary-light);
}

.lsj-single-content .entry-content a:hover {
    border-color: var(--lsj-primary);
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 900px) {
    .lsj-archive-grid { grid-template-columns: repeat(2, 1fr); }
    .lsj-hero h1,
    .lsj-hero .elementor-heading-title { font-size: 2.2rem !important; }
}

@media (max-width: 680px) {
    .lsj-archive-grid { grid-template-columns: 1fr; padding: 60px 16px; }
    .lsj-hero h1,
    .lsj-hero .elementor-heading-title { font-size: 1.8rem !important; }
    .lsj-hero { min-height: 400px; }
}

/* === ARTICLE — Hero image + titre overlay === */
body.single .page-header { display: none !important; }
.lsj-article-hero { position: relative; width: 100%; overflow: hidden; max-height: 520px; }
.lsj-hero-image img { width: 100%; max-height: 520px; object-fit: cover; display: block; }
.lsj-hero-no-image { min-height: 300px; background: #FED03C; }
.lsj-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.75) 40%, transparent 80%); }
.lsj-hero-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 28px 60px; z-index: 2; }
.lsj-cat-badge { background: #FED03C; color: #2D2A26; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; padding: 5px 14px; border-radius: 20px; text-decoration: none; display: inline-block; margin-bottom: 14px; }
.lsj-hero-title { color: #fff !important; font-family: 'Playfair Display', serif !important; font-size: 2rem !important; font-weight: 700 !important; text-transform: uppercase; line-height: 1.2; margin: 0 0 12px !important; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.lsj-hero-meta { display: flex; gap: 24px; color: rgba(255,255,255,0.85); font-size: 0.85rem; }

/* === CONTENU ARTICLE === */
.lsj-article-wrap { max-width: 860px; margin: 48px auto; padding: 0 24px; }
.lsj-article-content { font-family: 'Lato', sans-serif; font-size: 1.05rem; line-height: 1.85; color: #2D2A26; }
.lsj-article-content h2 { font-family: 'Playfair Display', serif; font-size: 1.65rem; color: #2D2A26; margin: 40px 0 16px; border-left: 4px solid #FED03C; padding-left: 16px; }
.lsj-article-content h3 { font-family: 'Playfair Display', serif; font-size: 1.25rem; color: #2D2A26; margin: 28px 0 12px; }
.lsj-article-content a { color: #2D2A26; text-decoration: underline; }
