/*
Theme Name: Astra Child BricoExpert
Template: astra
Version: 2.1
*/

/* ================================================================
   VARIABLES
================================================================ */
:root {
    --gold:       #C49A2A;
    --gold-dark:  #B08820;
    --gold-light: #F0E6C5;
    --cream:      #FAF5E5;
    --navy:       #0F172A;
    --grey-text:  #4A4A4A;
    --grey-light: #F8F8F6;
    --white:      #FFFFFF;
    --border:     #E8E2D5;
    --shadow:     0 2px 18px rgba(15,23,42,.07);
    --shadow-h:   0 8px 36px rgba(15,23,42,.13);
    --radius:     12px;
    --font-body:  'Lora', Georgia, serif;
    --font-head:  'Lato', 'Helvetica Neue', Arial, sans-serif;
    --font-deco:  'Playfair Display', Georgia, serif;
}

/* ================================================================
   BASE TYPOGRAPHY
================================================================ */
body,
button, input, select, textarea {
    font-family: var(--font-body) !important;
    color: var(--navy);
    font-size: 17px;
    line-height: 1.75;
    background: var(--white);
}

h1, h2, h3, h4, h5, h6,
.entry-title, .site-title {
    font-family: var(--font-head) !important;
    color: var(--navy);
    font-weight: 700;
    line-height: 1.25;
}

a            { color: var(--gold); text-decoration: none; }
a:hover      { color: var(--gold-dark); }

p { margin: 0 0 1.2em; }
img { display: block; max-width: 100%; }
*, *::before, *::after { box-sizing: border-box; }

/* ================================================================
   ASTRA HEADER — transparent → cream on scroll
================================================================ */
.site-header,
#masthead,
.main-header-bar,
.ast-mobile-header-wrap {
    background: var(--white) !important;
    border-bottom: 1px solid var(--border) !important;
    box-shadow: none !important;
}

/* Logo */
.ast-site-identity .site-title a,
.ast-site-identity .site-title {
    font-family: var(--font-head) !important;
    font-weight: 900 !important;
    font-size: 1.4rem !important;
    color: var(--navy) !important;
    letter-spacing: -.3px;
}

/* Nav links */
.main-header-bar .menu-link,
.main-navigation .menu-link,
.main-header-bar .menu-item > a {
    font-family: var(--font-head) !important;
    font-weight: 700 !important;
    font-size: .9rem !important;
    color: var(--navy) !important;
    text-transform: uppercase;
    letter-spacing: .6px;
    transition: color .2s;
}

.main-header-bar .menu-link:hover,
.main-header-bar .menu-item:hover > a,
.main-navigation .current-menu-item > a {
    color: var(--gold) !important;
}

/* ================================================================
   ASTRA FOOTER
================================================================ */
.site-footer, #colophon {
    background: var(--navy) !important;
    color: rgba(255,255,255,.6) !important;
    font-family: var(--font-head) !important;
    font-size: .88rem;
    padding: 28px 0 !important;
}

.site-footer a, #colophon a {
    color: var(--gold) !important;
}

/* ================================================================
   KILL ASTRA CONTAINER CONSTRAINTS ON HOME
================================================================ */
.home #content.site-content { padding: 0 !important; }
.home .ast-container          { max-width: 100% !important; padding: 0 !important; }

/* ================================================================
   LAYOUT HELPERS
================================================================ */
.be-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 28px;
}

.be-section        { padding: 80px 0; }
.be-section--cream { background: var(--cream); }
.be-section--white { background: var(--white); }
.be-section--grey  { background: var(--grey-light); }
.be-section--navy  { background: var(--navy); }

.be-section-head {
    text-align: center;
    margin-bottom: 52px;
}

.be-section-head__tag {
    display: inline-block;
    font-family: var(--font-head);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 12px;
}

.be-section-head h2 {
    font-family: var(--font-deco) !important;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 14px;
}

.be-section-head p {
    font-size: 1.05rem;
    color: var(--grey-text);
    max-width: 560px;
    margin: 0 auto;
}

/* Divider under title */
.be-section-head__divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 16px auto 0;
    width: 120px;
}

.be-section-head__divider::before,
.be-section-head__divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gold);
    opacity: .5;
}

.be-section-head__divider span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
    display: block;
    flex-shrink: 0;
}

/* Light heading variant */
.be-section-head--light h2     { color: var(--white); }
.be-section-head--light p      { color: rgba(255,255,255,.6); }
.be-section-head--light .be-section-head__tag { color: var(--gold-light); }
.be-section-head--light .be-section-head__divider::before,
.be-section-head--light .be-section-head__divider::after { background: rgba(255,255,255,.3); }
.be-section-head--light .be-section-head__divider span { background: var(--gold); }

/* ================================================================
   BUTTONS
================================================================ */
.be-btn {
    display: inline-block;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: .92rem;
    letter-spacing: .4px;
    padding: 14px 38px;
    border-radius: 40px;
    transition: background .25s, transform .2s, box-shadow .25s;
    text-decoration: none !important;
}

.be-btn--gold {
    background: var(--gold);
    color: #000 !important;
    box-shadow: 0 4px 16px rgba(196,154,42,.35);
}

.be-btn--gold:hover {
    background: var(--gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(196,154,42,.45);
}

.be-btn--outline {
    background: transparent;
    color: var(--navy) !important;
    border: 2px solid var(--border);
}

.be-btn--outline:hover {
    border-color: var(--gold);
    color: var(--gold) !important;
}

.be-btn--outline-light {
    background: transparent;
    color: var(--white) !important;
    border: 2px solid rgba(255,255,255,.4);
}

.be-btn--outline-light:hover {
    border-color: var(--gold);
    color: var(--gold) !important;
}

/* ================================================================
   HERO
================================================================ */
.be-hero {
    position: relative;
    min-height: 580px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.be-hero__bg {
    position: absolute;
    inset: 0;
    background-image: url('https://images.unsplash.com/photo-1504148455328-c376907d081c?w=1600&q=80');
    background-size: cover;
    background-position: center;
    transform: scale(1.02);
    transition: transform 8s ease;
}

.be-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(15,23,42,.78) 0%, rgba(15,23,42,.55) 60%, rgba(15,23,42,.65) 100%);
}

.be-hero__content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    padding: 80px 28px;
}

.be-hero__tag {
    display: inline-block;
    font-family: var(--font-head);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 20px;
    background: rgba(196,154,42,.15);
    padding: 6px 16px;
    border-radius: 30px;
    border: 1px solid rgba(196,154,42,.35);
}

.be-hero__title {
    font-family: var(--font-deco) !important;
    font-size: clamp(2rem, 5vw, 3.4rem) !important;
    font-weight: 700 !important;
    color: var(--white) !important;
    line-height: 1.22 !important;
    margin: 0 0 22px !important;
    text-shadow: 0 2px 30px rgba(0,0,0,.3);
}

.be-hero__title em {
    font-style: normal;
    color: var(--gold);
}

.be-hero__subtitle {
    font-size: 1.15rem;
    color: rgba(255,255,255,.82);
    line-height: 1.75;
    margin: 0 0 38px !important;
    max-width: 580px;
    margin-left: auto !important;
    margin-right: auto !important;
}

.be-hero__divider {
    width: 56px;
    height: 2px;
    background: var(--gold);
    margin: 0 auto 32px;
    opacity: .8;
}

/* ================================================================
   CATEGORY CARDS
================================================================ */
.be-cats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.be-cat {
    position: relative;
    height: 240px;
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    box-shadow: var(--shadow);
    transition: transform .32s cubic-bezier(.22,.68,0,1.2), box-shadow .32s;
}

.be-cat:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow-h);
}

.be-cat__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}

.be-cat:hover .be-cat__img { transform: scale(1.07); }

.be-cat::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15,23,42,.82) 0%, rgba(15,23,42,.25) 50%, transparent 100%);
}

.be-cat__body {
    position: relative;
    z-index: 1;
    padding: 20px 18px;
    width: 100%;
}

.be-cat__label {
    display: inline-block;
    font-family: var(--font-head);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 5px;
}

.be-cat__body h3 {
    font-family: var(--font-head) !important;
    font-size: 1.12rem !important;
    font-weight: 700 !important;
    color: var(--white) !important;
    margin: 0 0 3px !important;
    line-height: 1.3;
}

.be-cat__body span {
    font-size: .8rem;
    color: rgba(255,255,255,.65);
    font-family: var(--font-body);
    font-style: italic;
}

/* ================================================================
   ARTICLE CARDS  (style espritbrico — épuré, éditorial)
================================================================ */
.be-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.be-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .28s, box-shadow .28s;
    color: var(--navy) !important;
    text-decoration: none !important;
}

.be-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-h);
}

/* Image */
.be-card__img {
    position: relative;
    overflow: hidden;
    height: 210px;
    flex-shrink: 0;
}

.be-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .55s ease;
}

.be-card:hover .be-card__img img { transform: scale(1.06); }

/* Body */
.be-card__body {
    padding: 22px 22px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Category — small gold text, no background */
.be-card__cat {
    font-family: var(--font-head);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 9px;
    display: block;
}

/* Title */
.be-card__title {
    font-family: var(--font-head) !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: var(--navy) !important;
    line-height: 1.42 !important;
    margin: 0 0 10px !important;
}

/* Date */
.be-card__meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .8rem;
    color: #9CA3AF;
    font-family: var(--font-head);
    margin-bottom: 10px;
}

.be-card__meta svg { flex-shrink: 0; opacity: .7; }

/* Excerpt */
.be-card__excerpt {
    font-size: .92rem !important;
    color: var(--grey-text) !important;
    line-height: 1.65 !important;
    margin: 0 0 18px !important;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Read more */
.be-card__link {
    font-family: var(--font-head);
    font-size: .85rem;
    font-weight: 700;
    color: var(--gold) !important;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: auto;
    transition: gap .2s;
    text-decoration: none !important;
}

.be-card:hover .be-card__link { gap: 9px; }

/* Separator line */
.be-card__sep {
    width: 36px;
    height: 2px;
    background: var(--gold);
    margin: 0 0 14px;
    opacity: .6;
}

/* ================================================================
   FEATURED ARTICLE (full-width highlight)
================================================================ */
.be-featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-h);
    text-decoration: none !important;
    color: var(--navy) !important;
    transition: box-shadow .3s;
    margin-bottom: 50px;
}

.be-featured:hover { box-shadow: 0 16px 50px rgba(15,23,42,.18); }

.be-featured__img {
    position: relative;
    overflow: hidden;
    min-height: 360px;
}

.be-featured__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s;
}

.be-featured:hover .be-featured__img img { transform: scale(1.04); }

.be-featured__body {
    background: var(--white);
    padding: 44px 42px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.be-featured__cat {
    font-family: var(--font-head);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 14px;
}

.be-featured__title {
    font-family: var(--font-deco) !important;
    font-size: clamp(1.4rem, 2.5vw, 2rem) !important;
    font-weight: 700 !important;
    color: var(--navy) !important;
    line-height: 1.3 !important;
    margin: 0 0 16px !important;
}

.be-featured__sep {
    width: 40px;
    height: 2px;
    background: var(--gold);
    margin: 0 0 16px;
}

.be-featured__excerpt {
    font-size: 1rem;
    color: var(--grey-text);
    line-height: 1.7;
    margin: 0 0 28px;
}

/* ================================================================
   INSPIRATION GRID
================================================================ */
.be-inspi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.be-inspi {
    position: relative;
    height: 240px;
    border-radius: var(--radius);
    overflow: hidden;
    display: block;
    box-shadow: var(--shadow);
    transition: transform .3s, box-shadow .3s;
}

.be-inspi:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-h);
}

.be-inspi img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .55s ease;
}

.be-inspi:hover img { transform: scale(1.08); }

.be-inspi::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15,23,42,.7) 0%, transparent 60%);
}

.be-inspi__label {
    position: absolute;
    bottom: 16px;
    left: 18px;
    z-index: 1;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: .95rem;
    color: var(--white);
}

/* ================================================================
   CTA BAND
================================================================ */
.be-cta {
    background: var(--cream);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 72px 0;
    text-align: center;
}

.be-cta__tag {
    font-family: var(--font-head);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    display: block;
    margin-bottom: 16px;
}

.be-cta h2 {
    font-family: var(--font-deco) !important;
    font-size: clamp(1.6rem, 3vw, 2.3rem) !important;
    color: var(--navy) !important;
    margin: 0 0 14px !important;
}

.be-cta p {
    font-size: 1.05rem;
    color: var(--grey-text);
    margin: 0 0 34px;
}

/* ================================================================
   BLOG / ARCHIVE PAGE (pages internes)
================================================================ */
.blog body,
.archive body,
.category body {
    background: var(--white);
}

.blog .ast-container,
.archive .ast-container,
.category .ast-container {
    max-width: 1180px !important;
}

/* Astra native blog cards */
.blog .ast-article-post,
.archive .ast-article-post,
.category .ast-article-post {
    background: var(--white) !important;
    border-radius: var(--radius) !important;
    box-shadow: var(--shadow) !important;
    overflow: hidden;
    transition: transform .28s, box-shadow .28s;
}

.blog .ast-article-post:hover,
.archive .ast-article-post:hover {
    transform: translateY(-4px) !important;
    box-shadow: var(--shadow-h) !important;
}

.blog .entry-title a,
.archive .entry-title a {
    font-family: var(--font-head) !important;
    color: var(--navy) !important;
    font-weight: 700;
}

.blog .entry-title a:hover,
.archive .entry-title a:hover {
    color: var(--gold) !important;
}

.blog .category-style-1 a,
.archive .category-style-1 a,
.ast-blog-single-element.ast-taxonomy-container a {
    color: var(--gold) !important;
    font-family: var(--font-head) !important;
    font-size: .75rem !important;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700 !important;
}

/* ================================================================
   SINGLE POST
================================================================ */
.single body { background: var(--white); }

.single .entry-title {
    font-family: var(--font-deco) !important;
    font-size: clamp(1.8rem, 4vw, 2.8rem) !important;
    font-weight: 700 !important;
    color: var(--navy) !important;
    line-height: 1.3 !important;
    margin-bottom: 20px !important;
}

.single .post-thumbnail {
    margin-bottom: 36px;
}

.single .post-thumbnail img {
    border-radius: var(--radius);
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    box-shadow: var(--shadow);
}

.single .entry-content {
    font-family: var(--font-body);
    font-size: 1.07rem;
    line-height: 1.82;
    color: #374151;
}

.single .entry-content h2,
.single .entry-content h3,
.single .entry-content h4 {
    font-family: var(--font-head) !important;
    color: var(--navy) !important;
    font-weight: 700;
    margin-top: 2.2em;
    margin-bottom: .5em;
}

.single .ast-blog-single-element.ast-taxonomy-container a {
    color: var(--gold) !important;
    font-size: .78rem !important;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    font-family: var(--font-head) !important;
}

.single .ast-blog-meta .posted-on a,
.single .ast-blog-meta .byline a {
    color: #9CA3AF !important;
    font-size: .82rem;
}

/* ================================================================
   RESPONSIVE
================================================================ */
@media (max-width: 1024px) {
    .be-cats-grid  { grid-template-columns: repeat(2, 1fr); }
    .be-inspi-grid { grid-template-columns: repeat(2, 1fr); }
    .be-posts-grid { grid-template-columns: repeat(2, 1fr); }
    .be-featured   { grid-template-columns: 1fr; }
    .be-featured__img { min-height: 260px; }
}

@media (max-width: 768px) {
    .be-section { padding: 56px 0; }
    .be-hero { min-height: 440px; }
    .be-hero__content { padding: 60px 24px; }
    .be-posts-grid { grid-template-columns: 1fr; gap: 22px; }
    .be-section-head { margin-bottom: 36px; }
}

@media (max-width: 520px) {
    .be-cats-grid  { grid-template-columns: 1fr; }
    .be-inspi-grid { grid-template-columns: repeat(2, 1fr); }
    .be-inspi      { height: 160px; }
}
