/*
Theme Name: Astra Child Clean
Theme URI: https://lit-cabane.fr/
Template: astra
Author: Timoté
Author URI: https://lit-cabane.fr/
Description: Thème enfant premium ultra-clean pour Lit Cabane.
Version: 1.0.0
Text Domain: astra-child-clean
*/

/* Palette de couleurs "Cocon / Maternité / Nature" */
:root {
    --elc-cream: #FAF7F2;
    --elc-sand: #EAE0D5;
    --elc-terracotta: #C87965;
    --elc-terracotta-hover: #B06450;
    --elc-sage: #8FA396;
    --elc-wood: #4A3B32;
    --elc-earth: #7A6C61;
    --elc-white: #FFFFFF;

    --elc-shadow-soft: 0 10px 30px rgba(74, 59, 50, 0.05);
    --elc-shadow-hover: 0 15px 40px rgba(74, 59, 50, 0.1);

    --elc-radius-lge: 24px;
    --elc-radius-med: 16px;

    --elc-font-headings: 'Lora', serif;
    --elc-font-body: 'Nunito', sans-serif;

    --elc-transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Base Styles (Scoped to our classes to avoid Astra conflicts) */
/* Applies only inside the Home Page (front-page.php) wrapper */
.elc-home-body {
    background-color: var(--elc-cream);
    color: var(--elc-wood);
    font-family: var(--elc-font-body);
    line-height: 1.7;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.elc-home-body h1,
.elc-home-body h2,
.elc-home-body h3,
.elc-home-body h4,
.elc-home-body h5,
.elc-home-body h6 {
    font-family: var(--elc-font-headings);
    font-weight: 500;
    color: var(--elc-wood);
    margin-top: 0;
    line-height: 1.3;
}

.elc-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

/* To prevent content from going under the fixed header on non-home pages */
.site-content {
    padding-top: 100px;
}

.home .site-content {
    padding-top: 0;
}

/* En-tête (Header) */
.elc-home-body .elc-site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(250, 247, 242, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 20px 0;
    border-bottom: 1px solid rgba(74, 59, 50, 0.05);
    transition: var(--elc-transition);
}

.elc-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.elc-logo {
    display: block;
}

.elc-logo img {
    max-height: 65px;
    display: block;
}

.elc-main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 40px;
}

.elc-main-nav a {
    text-decoration: none;
    color: var(--elc-wood);
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    transition: var(--elc-transition);
    opacity: 0.8;
}

.elc-main-nav a:hover {
    opacity: 1;
    color: var(--elc-terracotta);
}

/* Hero Section */
.elc-hero {
    padding-top: 140px;
    padding-bottom: 80px;
    background: linear-gradient(to bottom, var(--elc-cream), var(--elc-sand));
    position: relative;
    overflow: hidden;
}

.elc-hero-inner {
    display: flex;
    align-items: center;
    gap: 60px;
    min-height: 500px;
}

.elc-hero-text {
    flex: 1;
    max-width: 650px;
}

.elc-hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 30px;
    color: var(--elc-wood);
}

.elc-hero h1 i {
    color: var(--elc-terracotta);
    font-style: italic;
}

.elc-hero p {
    font-size: 1.25rem;
    color: var(--elc-earth);
    margin-bottom: 40px;
    font-weight: 300;
}

.elc-btn-primary {
    display: inline-block;
    background-color: var(--elc-terracotta);
    color: var(--elc-white);
    padding: 18px 45px;
    border-radius: 50px;
    text-decoration: none;
    font-family: var(--elc-font-body);
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--elc-transition);
    box-shadow: 0 8px 20px rgba(200, 121, 101, 0.3);
    border: none;
    cursor: pointer;
}

.elc-btn-primary:hover {
    background-color: var(--elc-terracotta-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(200, 121, 101, 0.4);
    color: var(--elc-white);
}

.elc-hero-visual {
    flex: 1;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.elc-hero-image-wrapper {
    width: 100%;
    height: 600px;
    border-radius: var(--elc-radius-lge);
    overflow: hidden;
    box-shadow: var(--elc-shadow-hover);
    background-image: url('https://lit-cabane.fr/wp-content/uploads/2025/11/Capture-decran-2025-11-04-a-16.03.32.png');
    background-size: cover;
    background-position: center;
}

/* Sélection de Lits (Produits physiques) */
.elc-section-products {
    padding: 100px 0;
    background-color: var(--elc-white);
    position: relative;
}

.elc-section-products::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to bottom, var(--elc-sand), rgba(255, 255, 255, 0));
    z-index: 0;
    pointer-events: none;
}

.elc-section-header {
    text-align: center;
    margin-bottom: 80px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.elc-section-header h2 {
    font-size: 3.2rem;
    margin-bottom: 20px;
}

.elc-section-header p {
    font-size: 1.2rem;
    color: var(--elc-earth);
}

/* Asymmetric grid for products */
.elc-products-showcase {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    grid-template-rows: auto auto;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.elc-product-card {
    background: var(--elc-cream);
    border-radius: var(--elc-radius-lge);
    overflow: hidden;
    box-shadow: var(--elc-shadow-soft);
    transition: var(--elc-transition);
    display: flex;
    text-decoration: none;
    color: inherit;
}

.elc-product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--elc-shadow-hover);
}

.elc-product-card.large {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    flex-direction: column;
}

.elc-product-card.large .elc-product-img {
    height: 450px;
    background-color: var(--elc-white);
    padding: 30px;
}

.elc-product-card.small {
    grid-column: 2 / 3;
    flex-direction: row;
    align-items: stretch;
    height: 100%;
}

.elc-product-card.small .elc-product-img {
    width: 40%;
    background-color: var(--elc-white);
    padding: 20px;
}

.elc-product-img {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.elc-product-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: var(--elc-transition);
}

.elc-product-card:hover .elc-product-img img {
    transform: scale(1.05);
}

.elc-product-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--elc-terracotta);
    color: var(--elc-white);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.elc-product-badge.sage {
    background-color: var(--elc-sage);
}

.elc-product-content {
    padding: 40px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.elc-product-card.small .elc-product-content {
    padding: 30px;
    width: 60%;
}

.elc-product-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--elc-wood);
    line-height: 1.3;
}

.elc-product-card.small .elc-product-title {
    font-size: 1.3rem;
}

.elc-product-price {
    font-size: 1.6rem;
    color: var(--elc-terracotta);
    font-weight: 700;
    margin-top: auto;
    margin-bottom: 25px;
}

.elc-product-desc {
    color: var(--elc-earth);
    margin-bottom: 25px;
    font-size: 1.05rem;
    display: none;
}

.elc-product-card.large .elc-product-desc {
    display: block;
}

.elc-product-btn {
    text-align: center;
    padding: 15px 25px;
    border: 2px solid var(--elc-terracotta);
    color: var(--elc-terracotta);
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.9rem;
    transition: var(--elc-transition);
    align-self: flex-start;
}

.elc-product-card.small .elc-product-btn {
    padding: 10px 20px;
    font-size: 0.8rem;
}

.elc-product-card:hover .elc-product-btn {
    background: var(--elc-terracotta);
    color: var(--elc-white);
}

.elc-stars {
    color: #C87965;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

/* EEAT Author Box (Pattern Breaker) */
.elc-section-eeat {
    padding: 100px 0;
    background: var(--elc-sand);
    position: relative;
}

.elc-eeat-wrapper {
    background: var(--elc-white);
    border-radius: var(--elc-radius-lge);
    padding: 60px;
    display: flex;
    align-items: center;
    gap: 80px;
    box-shadow: var(--elc-shadow-hover);
}

.elc-eeat-image {
    flex: 0 0 350px;
    height: 350px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 10px 10px 0 var(--elc-terracotta);
}

.elc-eeat-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.elc-eeat-content {
    flex: 1;
}

.elc-eeat-content h2 {
    font-size: 3rem;
    color: var(--elc-terracotta);
    margin-bottom: 25px;
}

.elc-eeat-content p {
    font-size: 1.15rem;
    color: var(--elc-earth);
    line-height: 1.8;
    margin-bottom: 20px;
}

.elc-signature {
    font-family: var(--elc-font-headings);
    font-size: 2.2rem;
    font-style: italic;
    color: var(--elc-wood);
    margin-top: 40px;
}

/* Inspirations et Conseils (Le Blog) - Grille Éditoriale Complexe */
.elc-section-blog {
    padding: 120px 0;
    background-color: var(--elc-cream);
}

.elc-section-blog .elc-section-header {
    margin-bottom: 60px;
}

.elc-editorial-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 350px;
    gap: 30px;
}

.elc-article-card {
    background: var(--elc-white);
    border-radius: var(--elc-radius-med);
    overflow: hidden;
    box-shadow: var(--elc-shadow-soft);
    transition: var(--elc-transition);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    position: relative;
}

.elc-article-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--elc-shadow-hover);
}

.elc-article-img-wrapper {
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.elc-article-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.elc-article-card:hover .elc-article-img-wrapper img {
    transform: scale(1.05);
}

.elc-article-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background: var(--elc-white);
}

.elc-article-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.85rem;
}

.elc-article-cat {
    color: var(--elc-terracotta);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.elc-article-date {
    color: #A0AEC0;
}

.elc-article-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--elc-wood);
    transition: var(--elc-transition);
    line-height: 1.4;
}

.elc-article-card:hover h3 {
    color: var(--elc-terracotta);
}

.elc-article-excerpt {
    color: var(--elc-earth);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* GRID VARIANTS */
.elc-article-featured-large {
    grid-column: span 2;
    grid-row: span 2;
}

.elc-article-featured-large .elc-article-img-wrapper {
    height: 60%;
}

.elc-article-featured-large h3 {
    font-size: 2rem;
}

.elc-article-tall {
    grid-column: span 1;
    grid-row: span 2;
}

.elc-article-tall .elc-article-img-wrapper {
    height: 50%;
}

.elc-article-standard {
    grid-column: span 1;
    grid-row: span 1;
}

.elc-article-standard .elc-article-img-wrapper {
    height: 45%;
}

.elc-article-standard .elc-article-content {
    padding: 20px;
}

.elc-article-standard h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.elc-article-standard .elc-article-excerpt {
    display: none;
}

.elc-article-wide {
    grid-column: span 2;
    grid-row: span 1;
    flex-direction: row;
}

.elc-article-wide .elc-article-img-wrapper {
    width: 45%;
    height: 100%;
}

.elc-article-wide .elc-article-content {
    width: 55%;
    justify-content: center;
}

/* Text Over Image Style (Full Cover) */
.elc-article-cover {
    grid-column: span 1;
    grid-row: span 1;
}

.elc-article-cover .elc-article-img-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100%;
    width: 100%;
    z-index: 1;
}

.elc-article-cover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(74, 59, 50, 0.9) 0%, rgba(74, 59, 50, 0.3) 100%);
    z-index: 2;
}

.elc-article-cover .elc-article-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    background: transparent;
    color: var(--elc-white);
}

.elc-article-cover .elc-article-meta,
.elc-article-cover .elc-article-date {
    color: var(--elc-sand);
}

.elc-article-cover .elc-article-cat {
    color: var(--elc-white);
}

.elc-article-cover h3 {
    color: var(--elc-white);
    margin-bottom: 0;
}

.elc-article-cover:hover h3 {
    color: var(--elc-sand);
}

.elc-read-more {
    display: inline-flex;
    align-items: center;
    color: var(--elc-terracotta);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: auto;
}

.elc-article-cover .elc-read-more {
    display: none;
}

/* Footer */
.elc-home-body .elc-site-footer {
    background-color: var(--elc-wood);
    color: var(--elc-sand);
    padding: 100px 0 40px;
}

.elc-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(234, 224, 213, 0.1);
}

.elc-footer-logo {
    font-family: var(--elc-font-headings);
    font-size: 2rem;
    color: var(--elc-cream);
    margin-bottom: 20px;
}

.elc-footer-logo img {
    max-height: 80px;
}

.elc-footer-desc {
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 400px;
    opacity: 0.8;
}

.elc-footer-col h4 {
    color: var(--elc-cream);
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: var(--elc-font-body);
    font-weight: 700;
}

.elc-footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.elc-footer-col li {
    margin-bottom: 15px;
}

.elc-footer-col a {
    color: var(--elc-sand);
    text-decoration: none;
    transition: var(--elc-transition);
    opacity: 0.8;
}

.elc-footer-col a:hover {
    color: var(--elc-terracotta);
    opacity: 1;
}

.elc-footer-bottom {
    text-align: center;
    opacity: 0.6;
    font-size: 0.9rem;
}

/* Responsive Breakpoints */
@media (max-width: 1200px) {
    .elc-editorial-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .elc-article-tall {
        grid-row: span 1;
    }

    .elc-article-tall .elc-article-img-wrapper {
        height: 45%;
    }

    .elc-products-showcase {
        grid-template-columns: 1fr;
    }

    .elc-product-card.large {
        grid-column: span 1;
        grid-row: span 1;
    }

    .elc-product-card.small {
        grid-column: span 1;
    }
}

@media (max-width: 900px) {
    .elc-hero-inner {
        flex-direction: column;
        text-align: center;
        padding-top: 50px;
    }

    .elc-hero-text {
        margin: 0 auto;
        max-width: 100%;
    }

    .elc-hero h1 {
        font-size: 3.2rem;
    }

    .elc-editorial-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .elc-article-wide {
        grid-column: span 2;
        flex-direction: column;
    }

    .elc-article-wide .elc-article-img-wrapper {
        width: 100%;
        height: 50%;
    }

    .elc-article-wide .elc-article-content {
        width: 100%;
    }

    .elc-eeat-wrapper {
        flex-direction: column;
        text-align: center;
        padding: 40px;
        gap: 40px;
    }

    .elc-eeat-image {
        flex: 0 0 250px;
        height: 250px;
    }

    .elc-footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .elc-hero h1 {
        font-size: 2.5rem;
    }

    .elc-editorial-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }

    .elc-article-featured-large,
    .elc-article-tall,
    .elc-article-standard,
    .elc-article-wide,
    .elc-article-cover {
        grid-column: span 1;
        grid-row: span 1;
    }

    .elc-article-featured-large .elc-article-img-wrapper,
    .elc-article-standard .elc-article-img-wrapper,
    .elc-article-wide .elc-article-img-wrapper {
        height: 250px;
    }

    .elc-article-excerpt {
        display: block;
    }

    .elc-main-nav {
        display: none;
    }

    .elc-footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .elc-product-card.small {
        flex-direction: column;
    }

    .elc-product-card.small .elc-product-img {
        width: 100%;
        height: 250px;
    }

    .elc-product-card.small .elc-product-content {
        width: 100%;
    }
}