/*
Theme Name: Astra Child - Parfumerie Niche
Template: astra
Version: 2.0.0
*/

/* === 2.1 VARIABLES CSS === */
:root {
    --noir-profond: #1a1a1a;
    --noir-soft: #333333;
    --gris-fonce: #555555;
    --gris-moyen: #888888;
    --gris-clair: #e8e4df;
    --gris-tres-clair: #f5f5f3;
    --blanc-casse: #fafafa;
    --blanc: #ffffff;
    --or: #c9a959;
    --or-clair: #d4c4a0;
    --or-fonce: #a68a3a;

    /* Espacements */
    --space-xs: 4px;
    --space-sm: 8px;
    /* Typographie */
    --font-heading: "Playfair Display", Georgia, serif;
    --font-body: "Inter", -apple-system, sans-serif;
    --font-size-h1: clamp(2rem, 4vw, 3rem);
    --font-size-h2: clamp(1.5rem, 3vw, 2.2rem);
    --font-size-h3: clamp(1.2rem, 2.5vw, 1.6rem);
    --font-size-body: 1rem;
    --font-size-large: 1.125rem;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 40px;
    --space-2xl: 64px;
    --space-3xl: 100px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.08);
    --shadow-hover: 0 12px 40px rgba(0,0,0,0.12);
}

/* === 2.2 RESET & BASE === */
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Inter:wght@300;400;500;600&family=Cormorant+Garamond:ital,wght@0,400;0,500;1,400&display=swap");

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", -apple-system, sans-serif;
    font-size: 17px;
    line-height: 1.7;
    color: var(--noir-soft);
    background-color: var(--blanc-casse);
    -webkit-font-smoothing: antialiased;
}

/* === 2.3 TYPOGRAPHIE === */
h1, h2, h3, h4, .entry-title, .page-title, .ast-archive-title {
    font-family: "Playfair Display", Georgia, serif;
    color: var(--noir-profond);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

h1, .entry-title { font-size: 48px; }
h2 { font-size: 36px; }
h3 { font-size: 28px; font-weight: 500; }
h4 { font-size: 22px; font-weight: 500; }
h5 { font-family: "Inter", sans-serif; font-size: 18px; font-weight: 600; }
h6 { font-family: "Inter", sans-serif; font-size: 16px; font-weight: 600; }

p {
    margin-bottom: 1.5em;
}

/* Liens */
a {
    color: var(--noir-profond);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--or);
}

.entry-content a {
    color: var(--or);
    text-decoration-style: dotted;
}

.entry-content a:hover {
    color: var(--or-fonce);
    text-decoration-style: solid;
}

/* Citations */
blockquote {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 24px;
    font-style: italic;
    color: var(--gris-fonce);
    border-left: 3px solid var(--or);
    padding-left: var(--space-lg);
    margin: var(--space-xl) 0;
}

/* Listes */
ul, ol {
    padding-left: 1.5em;
    margin-bottom: 1.5em;
}

li {
    margin-bottom: 0.5em;
}

/* === 2.4 COMPOSANTS UI === */

/* Boutons - Base */
.btn, button, input[type="submit"], .wp-block-button__link, 
.ast-button, .button {
    display: inline-block;
    font-family: "Inter", sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 14px 32px;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
}

/* Bouton Primary (noir) */
.btn-primary, input[type="submit"], .wp-block-button__link {
    background-color: var(--noir-profond);
    color: var(--blanc) !important;
}

.btn-primary:hover, input[type="submit"]:hover, 
.wp-block-button__link:hover {
    background-color: var(--or);
    color: var(--noir-profond) !important;
}

/* Bouton Secondary (outline) */
.btn-secondary {
    background: transparent;
    color: var(--noir-profond);
    border: 1px solid var(--noir-profond);
}

.btn-secondary:hover {
    background: var(--noir-profond);
    color: var(--blanc);
}

/* Bouton Gold */
.btn-gold {
    background-color: var(--or);
    color: var(--noir-profond) !important;
}

.btn-gold:hover {
    background-color: var(--or-fonce);
}

/* Formulaires */
input[type="text"], input[type="email"], input[type="search"],
input[type="password"], textarea, select {
    font-family: "Inter", sans-serif;
    font-size: 15px;
    padding: 12px 16px;
    border: 1px solid var(--gris-clair);
    border-radius: 0;
    background: var(--blanc);
    transition: all var(--transition-fast);
    width: 100%;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--or);
    box-shadow: 0 0 0 3px rgba(201,169,89,0.1);
}

/* === 2.5 HEADER === */
.site-header, .ast-primary-header-bar {
    background: var(--blanc) !important;
    border-bottom: 1px solid var(--gris-clair) !important;
    box-shadow: none !important;
}

.ast-primary-header-bar {
    padding: 15px 0 !important;
}

/* Logo */
.custom-logo, .site-logo-img .custom-logo-link img {
    max-height: 60px !important;
    width: auto !important;
}

.site-title, .site-description {
    display: none !important;
}

/* Navigation Menu */
.main-header-menu > .menu-item > a,
.ast-header-sections-navigation a {
    font-family: "Inter", sans-serif !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.15em !important;
    color: var(--noir-profond) !important;
    padding: 10px 16px !important;
    transition: color var(--transition-fast) !important;
}

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

.main-header-menu > .menu-item.current-menu-item > a {
    border-bottom: 2px solid var(--or);
}

/* === 2.6 FOOTER === */
.site-footer {
    background: var(--noir-profond) !important;
    color: var(--gris-clair) !important;
    padding: 60px 0 30px !important;
}

.site-footer a {
    color: var(--or) !important;
    text-decoration: none !important;
}

.site-footer a:hover {
    color: var(--or-clair) !important;
}

.ast-footer-copyright {
    border-top: 1px solid #333 !important;
    padding-top: 20px !important;
    margin-top: 40px !important;
    text-align: center !important;
    font-size: 14px !important;
}

/* Masquer credit Astra */
.ast-footer-copyright a[href*="developer.wordpress"] {
    display: none !important;
}

/* === 2.7 PAGES & CONTENU === */

/* Page accueil - Hero */
.home .entry-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.home .ast-article-single {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Cacher titre Accueil */
.home .entry-title,
.home .page-title {
    display: none !important;
}

/* Section titres avec ligne doree */
.section-title {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.section-title::after {
    content: "";
    display: flex; align-items: center; justify-content: center;
    width: 60px;
    height: 2px;
    background: var(--or);
    margin: 20px auto 0;
}

/* Cards Articles */
.ast-article-post, article.post {
    background: var(--blanc);
    border: 1px solid var(--gris-clair);
    border-radius: 0;
    overflow: hidden;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.ast-article-post:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.ast-article-post .entry-title {
    font-size: 22px;
    margin-bottom: 10px;
}

.ast-article-post .entry-title a {
    color: var(--noir-profond);
    text-decoration: none;
}

.ast-article-post .entry-title a:hover {
    color: var(--or);
}

/* Categories et meta */
.cat-links a, .entry-meta a, .ast-blog-single-element a {
    color: var(--or) !important;
    text-decoration: none;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.entry-meta {
    color: var(--gris-moyen);
    font-size: 14px;
}

/* Single Article */
.ast-single-post .entry-title {
    font-size: 42px;
    margin-bottom: 15px;
}

.ast-single-post .entry-content {
    max-width: 750px;
    margin: 0 auto;
    font-size: 17px;
    line-height: 1.8;
}

/* === 2.8 SIDEBAR & WIDGETS === */
.widget {
    margin-bottom: var(--space-xl);
}

.widget-title, .wp-block-heading {
    font-family: "Inter", sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    color: var(--noir-profond) !important;
    border-bottom: 2px solid var(--or) !important;
    padding-bottom: 15px !important;
    margin-bottom: 20px !important;
}

.widget ul {
    list-style: none;
    padding: 0;
}

.widget li {
    padding: 8px 0;
    border-bottom: 1px solid var(--gris-clair);
}

.widget li:last-child {
    border-bottom: none;
}

/* === 2.10 RESPONSIVE === */

/* Tablet */
@media (max-width: 992px) {
    h1, .entry-title { font-size: 36px; }
    h2 { font-size: 28px; }
    h3 { font-size: 24px; }
    
    .ast-single-post .entry-title {
        font-size: 32px;
    }
    
    .site-footer {
        padding: 40px 0 20px !important;
    }
}

/* Mobile */
@media (max-width: 576px) {
    body {
        font-size: 16px;
    }
    
    h1, .entry-title { font-size: 28px; }
    h2 { font-size: 24px; }
    h3 { font-size: 20px; }
    
    .ast-single-post .entry-title {
        font-size: 26px;
    }
    
    .ast-single-post .entry-content {
        font-size: 16px;
    }
    
    blockquote {
        font-size: 20px;
        padding-left: var(--space-md);
    }
    
    .satellites-links {
        padding: 20px;
    }
}

/* === 2.11 FINITIONS === */

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Selection */
::selection {
    background: var(--or);
    color: var(--noir-profond);
}

/* Scrollbar custom */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gris-tres-clair);
}

::-webkit-scrollbar-thumb {
    background: var(--gris-moyen);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--or);
}

/* === OVERRIDES ASTRA === */

/* Reset couleurs Astra */
:root {
    --ast-global-color-0: var(--noir-profond) !important;
    --ast-global-color-1: var(--or) !important;
}

/* Container */
.ast-container {
    max-width: 1200px;
}

/* Breadcrumbs */
.ast-breadcrumbs {
    font-size: 12px;
    color: var(--gris-moyen);
    margin-bottom: var(--space-lg);
}

.ast-breadcrumbs a {
    color: var(--gris-fonce);
}

.ast-breadcrumbs a:hover {
    color: var(--or);
}

/* Images */
img {
    max-width: 100%;
    height: auto;
}

.wp-block-image img {
    border-radius: 0;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: var(--space-lg);
}

th, td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--gris-clair);
    text-align: left;
}

th {
    font-weight: 600;
    background: var(--gris-tres-clair);
}



/* ===========================================
   HARMONISATION TYPOGRAPHIE GLOBALE
   =========================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--or);
    line-height: 1.2;
}
h1 { font-size: var(--font-size-h1); font-weight: 700; }
h2 { font-size: var(--font-size-h2); font-weight: 600; }
h3 { font-size: var(--font-size-h3); font-weight: 600; }
h4 { font-size: 1.25rem; font-weight: 600; }

body, p, li, td, th {
    font-family: var(--font-body);
    font-size: var(--font-size-body);
    line-height: 1.7;
    color: #333;
}
.intro-text, .lead {
    font-size: var(--font-size-large);
    line-height: 1.8;
    color: #555;
}
.entry-content p, .page-content p {
    font-size: var(--font-size-body);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}
.entry-content h2, .page-content h2 {
    margin-top: 2.5rem;
    border-bottom: 2px solid var(--or);
    padding-bottom: 0.5rem;
}

/* Guide Niche - Fond blanc */
.container { max-width: 900px; margin: 0 auto; padding: 40px 20px; }
.container header { text-align: center; margin-bottom: 40px; }
.container h1 { font-family: 'Playfair Display', serif; font-size: 36px; color: #1a1a1a; margin-bottom: 15px; }
.container h2 { font-family: 'Playfair Display', serif; font-size: 28px; color: #1a1a1a; margin: 40px 0 20px; border-bottom: 2px solid #c9a959; padding-bottom: 10px; }
.container h3 { font-family: 'Playfair Display', serif; font-size: 22px; color: #1a1a1a; margin: 25px 0 15px; }
.container p { font-size: 16px; line-height: 1.8; color: #444; margin-bottom: 15px; }
.container .intro { font-size: 18px; color: #555; }
.highlight-box { background: #fff; border-left: 4px solid #c9a959; padding: 20px 25px; margin: 20px 0; }
.highlight-box p { margin: 0; color: #333; }
.cta-box { background: #f5f5f5; border-top: 3px solid #c9a959; padding: 30px; text-align: center; margin-top: 40px; }
.cta-box h3 { color: #1a1a1a; margin-bottom: 15px; }
.cta-box p { color: #555; margin: 0; }
.comparison-grid { display: flex; gap: 30px; margin: 25px 0; flex-wrap: wrap; }
.comparison-item { flex: 1 1 280px; background: #fff; padding: 25px; border-top: 3px solid #c9a959; }
.comparison-item h4 { color: #c9a959; font-size: 18px; margin-bottom: 15px; }
.comparison-item ul { padding-left: 20px; }
.comparison-item li { color: #444; margin-bottom: 8px; font-size: 15px; }
.maisons-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; margin: 25px 0; }
.maison-card { background: #fff; padding: 20px; text-align: center; border-top: 2px solid #c9a959; }
.maison-card strong { color: #1a1a1a; font-size: 16px; display: block; margin-bottom: 8px; }
.maison-card p { color: #666; font-size: 14px; margin: 0; }

/* Pages standards - Fond blanc */
.contact-page, .legal-page, .privacy-page { max-width: 800px; margin: 0 auto; padding: 40px 20px; }
.contact-page h2, .legal-page h2, .privacy-page h2 { font-family: 'Playfair Display', serif; font-size: 28px; color: #1a1a1a; margin-bottom: 20px; border-bottom: 2px solid #c9a959; padding-bottom: 10px; }
.contact-page p, .legal-page p, .privacy-page p { font-size: 16px; line-height: 1.8; color: #444; margin-bottom: 15px; }

/* === PAGES CATEGORIES === */
.archive.category .ast-archive-description {
    background: #fff;
    padding: 30px;
    border-left: 4px solid #c9a959;
    margin-bottom: 30px;
}
.archive.category .ast-archive-description .ast-archive-title {
    display: none; /* Masqué car affiché dans le header image */
}
.archive.category .ast-archive-description p {
    color: #444;
    font-size: 16px;
    line-height: 1.8;
    margin: 0;
}
.archive.category .entry-title a {
    color: #1a1a1a;
}
.archive.category .entry-title a:hover {
    color: #c9a959;
}

/* Message pas de contenu */
.no-results .page-content {
    text-align: center;
    padding: 40px;
    background: #fff;
    border-radius: 8px;
}
.no-results .page-content p {
    color: #555;
    font-size: 16px;
}
.search-form {
    max-width: 400px;
    margin: 20px auto;
}
.search-form .search-field {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

/* Header image catégorie */
.category-header-image {
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
}

/* Pages légales - fond blanc forcé */
.page-id-36, .page-id-11, .page-id-9 {
    background: #fff !important;
}
.page-id-36 .entry-content,
.page-id-11 .entry-content,
.page-id-9 .entry-content {
    background: #fff;
    color: #333;
}
.legal-page h2, .privacy-page h2, .contact-page h2 {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    color: #1a1a1a;
    margin: 30px 0 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #c9a959;
}
.legal-page h2:first-child, .privacy-page h2:first-child, .contact-page h2:first-child {
    margin-top: 0;
}

/* Responsive accueil */
@media (max-width: 1024px) {
    section > div[style*="display:flex"] {
        flex-wrap: wrap;
    }
    section > div[style*="display:flex"] > div {
        min-width: 280px;
    }
}
@media (max-width: 768px) {
    section > div[style*="grid-template-columns:repeat(3"] {
        grid-template-columns: 1fr !important;
    }
}

/* Page accueil pleine largeur */

/* ========================================
   PAGE ACCUEIL - PLEINE LARGEUR
   ======================================== */
body.page-id-40 {
    overflow-x: hidden;
}
body.page-id-40 .ast-container,
body.page-id-40 #primary,
body.page-id-40 .site-main,
body.page-id-40 .site-content,
body.page-id-40 article.page,
body.page-id-40 .entry-content {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}
body.page-id-40 .ast-separate-container .ast-article-single {
    padding: 0 !important;
    background: transparent !important;
}

/* ACCUEIL - SECTIONS PLEINE LARGEUR */
body.page-id-40 .entry-content > section {
    width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
}
body.page-id-40 .entry-content {
    overflow-x: hidden;
}

/* HEADER - Marges logo et menu */
.site-header .ast-container {
    padding-left: 100px !important;
    padding-right: 100px !important;
}
.site-header .site-branding {
    margin-left: 0;
}
.site-header .main-navigation {
    margin-right: 0;
}

/* HEADER - Marges 100px desktop FORCE */
@media (min-width: 1024px) {
    .ast-primary-header-bar .site-primary-header-wrap,
    .ast-primary-header-bar .ast-builder-grid-row-container {
        padding-left: 100px !important;
        padding-right: 100px !important;
        max-width: 100% !important;
    }
    .main-header-bar-wrap .ast-container {
        padding-left: 100px !important;
        padding-right: 100px !important;
    }
}

/* MENU - Harmonisation polices menu/sous-menu */
.main-header-menu .sub-menu .menu-link,
.ast-builder-menu-1 .sub-menu .menu-link {
    font-family: inherit !important;
    text-transform: uppercase !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    letter-spacing: 0.5px !important;
}
.main-header-menu .sub-menu,
.ast-builder-menu-1 .sub-menu {
    min-width: 200px;
}

/* FOOTER - Simplifié */
.site-footer .site-below-footer-wrap {
    border-top: 1px solid #e0e0e0;
    background: #fff;
    padding: 20px 0;
}
.site-footer .ast-footer-copyright p {
    margin: 0;
    text-align: center;
    font-size: 14px;
    color: #666;
}
/* Masquer le lien Astra si présent */
.site-footer .ast-footer-copyright a {
    display: none;
}
.site-footer .ast-footer-copyright p::after {
    content: none;
}

/* FOOTER - Reset complet */
.site-footer {
    background: #fff !important;
}
.site-footer > *:not(.site-below-footer-wrap) {
    display: none !important;
}
.site-footer .site-below-footer-wrap {
    background: #fff !important;
    border: none !important;
    padding: 0 !important;
    min-height: auto !important;
}
.site-footer .site-below-footer-wrap::before {
    content: "";
    display: flex; align-items: center; justify-content: center;
    width: 80%;
    max-width: 1200px;
    height: 1px;
    background: #e0e0e0;
    margin: 0 auto 20px auto;
}
.site-footer .ast-builder-grid-row-container-inner,
.site-footer .ast-builder-footer-grid-columns {
    background: transparent !important;
}
.site-footer .ast-footer-copyright {
    padding: 20px 0 30px 0 !important;
}
.site-footer .ast-footer-copyright p {
    margin: 0 !important;
    font-size: 14px !important;
    color: #666 !important;
}

/* FOOTER - Masquer bande grise */
.site-footer,
.site-footer *,
#colophon,
#colophon * {
    background-color: #fff !important;
    background: #fff !important;
}
.ast-above-footer-wrap,
.ast-primary-footer-wrap,
.site-primary-footer-wrap,
.site-above-footer-wrap {
    display: none !important;
}
.site-below-footer-wrap[data-section="section-below-footer-builder"] {
    border-top: none !important;
    min-height: auto !important;
}

/* FOOTER FINAL */
.site-footer .site-below-footer-wrap::before,
.site-footer hr {
    display: none !important;
}
.site-footer .ast-footer-copyright {
    padding: 15px 0 20px 0 !important;
    border-top: 1px solid #e0e0e0 !important;
    max-width: 80%;
    margin: 0 auto !important;
}
.site-footer *:not(.ast-footer-copyright) {
    border: none !important;
}
.site-footer .site-below-footer-wrap {
    padding: 0 !important;
}

/* DERNIERS ARTICLES - 2 colonnes mobile */
@media (max-width: 768px) {
    .entry-content [style*="grid-template-columns:repeat(4"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* CATEGORIES - Hero */
.cat-hero {
    padding: 80px 20px;
    text-align: center;
    background-size: cover;
    background-position: center;
}
.cat-hero h1 {
    font-family: Playfair Display, serif;
    font-size: 42px;
    color: #fff;
    margin: 0 0 15px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.cat-hero p {
    font-size: 16px;
    color: #fff;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

/* CATEGORIES - Articles grid */
.cat-articles {
    padding: 60px 40px;
    background: #f5f5f5;
}
.cat-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

/* CATEGORIES - Cards */
.cat-card {
    background: #fff;
    overflow: hidden;
    border-top: 3px solid #c9a959;
}
.cat-card-img {
    display: flex; align-items: center; justify-content: center;
    aspect-ratio: 1/1;
    background: #fff;
}
.cat-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cat-card-content {
    padding: 20px;
}
.cat-card-content h4 {
    font-family: Playfair Display, serif;
    font-size: 16px;
    margin: 0 0 8px;
    line-height: 1.3;
}
.cat-card-content h4 a {
    color: #1a1a1a;
    text-decoration: none;
}
.cat-card-content p {
    font-size: 13px;
    color: #888;
    margin: 0;
}

/* CATEGORIES - Pagination */
.cat-pagination {
    text-align: center;
    margin-top: 50px;
}
.cat-pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 10px;
}
.cat-pagination a, .cat-pagination span {
    padding: 10px 15px;
    background: #fff;
    color: #333;
    text-decoration: none;
    border: 1px solid #ddd;
}
.cat-pagination .current {
    background: #c9a959;
    color: #fff;
    border-color: #c9a959;
}

/* CATEGORIES - Mobile 2 colonnes */
@media (max-width: 768px) {
    .cat-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px;
    }
    .cat-hero h1 {
        font-size: 28px;
    }
    .cat-articles {
        padding: 40px 20px;
    }
}

/* CATEGORIES - Masquer hero Astra */
.archive.category .ast-archive-description,
.archive.category .cat-hero {
    display: none !important;
}

/* CATEGORIES - Nouveau Hero */
.cat-hero-wrap {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px;
    background: #fff;
}
.cat-hero-img {
    width: 100%;
    max-width: 400px;
}
.cat-hero-img img {
    width: 100%;
    height: auto;
    display: flex; align-items: center; justify-content: center;
}

.cat-hero-text {
    margin-top: 25px;
}
.cat-hero-text h1 {
    font-family: Playfair Display, serif;
    font-size: 36px;
    color: #1a1a1a;
    margin: 0 0 15px;
}
.cat-hero-text p {
    font-size: 16px;
    color: #555;
    line-height: 1.7;
    margin: 0;
}

/* CATEGORIES - Forcer pleine largeur */
.archive.category #primary {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
}
.archive.category #secondary {
    display: none !important;
}
.archive.category .ast-container {
    max-width: 100% !important;
    padding: 0 !important;
}
.archive.category .site-content {
    overflow-x: hidden;
}
.archive.category .ast-separate-container #primary {
    margin: 0 !important;
    padding: 0 !important;
}

/* === PAGES CATEGORIES CUSTOM === */
/* Masquer hero Astra */
.archive.category .ast-archive-description {
    display: none !important;
}
/* Hero bannière */
.pn-cat-hero {
    width: 100%;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pn-cat-hero h1 {
    font-family: Playfair Display, serif;
    font-size: 42px;
    color: #fff;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

/* Description catégorie */
.pn-cat-desc {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}
.pn-cat-desc p {
    font-size: 16px;
    color: #555;
    line-height: 1.8;
    margin: 0;
}
/* Section articles */
.pn-cat-articles {
    background: #f5f5f5;
    padding: 60px 40px;
}

/* Grille articles */
.pn-cat-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}
/* Cartes */
.pn-cat-card {
    background: #fff;
    overflow: hidden;
    border-top: 3px solid #c9a959;
}
.pn-card-img {
    display: flex; align-items: center; justify-content: center;
    aspect-ratio: 1/1;
    background: #fff;
}
.pn-card-img img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.pn-card-txt {
    padding: 20px;
}
.pn-card-txt h4 {
    font-family: Playfair Display, serif;
    font-size: 16px;
    margin: 0 0 8px;
    line-height: 1.3;
}
.pn-card-txt h4 a {
    color: #1a1a1a;
    text-decoration: none;
}
.pn-card-txt span {
    font-size: 13px;
    color: #888;
}
/* Pagination */
.pn-cat-pag {
    text-align: center;
    margin-top: 50px;
}

/* Mobile 2 colonnes */
@media (max-width: 768px) {
    .pn-cat-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .pn-cat-hero h1 {
        font-size: 28px;
    }
    .pn-cat-articles {
        padding: 40px 20px;
    }
}

/* CATEGORIES - Forcer empilement vertical desktop */
.archive.category .site-content .ast-container {
    display: block !important;
    flex-direction: column !important;
}
.archive.category #primary {
    width: 100% !important;
    display: block !important;
}
.archive.category #secondary {
    display: none !important;
}
.pn-cat-hero,
.pn-cat-desc,
.pn-cat-articles {
    display: block !important;
    width: 100% !important;
    clear: both !important;
}

/* Hero - Centrer titre */
.pn-cat-hero {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}
.pn-cat-hero h1 {
    text-align: center !important;
    width: 100% !important;
}

/* Sous-titre catégorie Maisons */
.pn-cat-subtitle {
    display: flex; align-items: center; justify-content: center;
    font-family: Playfair Display, serif;
    font-size: 20px;
    color: #fff;
    margin-top: 5px;
    font-style: italic;
    opacity: 0.9;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
@media (max-width: 768px) {
    .pn-cat-subtitle {
        font-size: 16px;
    }
}

/* Hero - Forcer empilement vertical titre + sous-titre */
.pn-cat-hero {
    flex-direction: column !important;
}
.pn-cat-hero h1 {
    margin-bottom: 0 !important;
}
.pn-cat-subtitle {
    margin-top: 10px !important;
}

/* Logo - Grossir 15% sur desktop */
@media (min-width: 922px) {
    .site-logo-img img,
    .custom-logo,
    .ast-site-identity .custom-logo-link img {
        transform: scale(1.30);
        transform-origin: left center;
    }
}

/* Articles - Largeur desktop */
@media (min-width: 922px) {
    .single-post .site-content > .ast-container {
        max-width: 900px;
    }
    .single-post .entry-content {
        max-width: 100%;
    }
}

/* Carrousel images article */
.pn-carousel-wrap {
    position: relative;
    max-width: 100%;
    margin: 30px 0;
    overflow: hidden;
}
.pn-carousel {
    display: flex;
    transition: transform 0.4s ease;
}
.pn-carousel-slide {
    min-width: 100%;
    box-sizing: border-box;
}
.pn-carousel-slide img {
    width: 100%;
    height: auto; aspect-ratio: 1/1;
    object-fit: contain;
    background: #fff;
}
.pn-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    width: 45px;
    height: 45px;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    border-radius: 4px;
}
.pn-carousel-btn:hover {
    background: #c9a959;
}
.pn-carousel-prev { left: 15px; }
.pn-carousel-next { right: 15px; }
.pn-carousel-dots {
    text-align: center;
    padding: 15px 0;
}
.pn-carousel-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 5px;
    background: #ddd;
    border-radius: 4px;
    cursor: pointer;
}
.pn-carousel-dot.active { background: #c9a959; }
@media (max-width: 768px) {
    .pn-carousel-slide img { height: auto; aspect-ratio: 1/1; }
    .pn-carousel-btn { width: 35px; height: 35px; font-size: 18px; }
}

/* Bio auteur sous nom */
.ast-author-details .author-bio {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin-top: 5px;
}
/* Fond carré flèches carrousel */
.pn-carousel-btn {
    background: rgba(255,255,255,0.9) !important;
    color: #333 !important;
    border: 1px solid #ddd !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.pn-carousel-btn:hover {
    background: #c9a959 !important;
    color: #fff !important;
    border-color: #c9a959 !important;
}

/* Enlever fond bleu articles */
.single-post .ast-article-single,
.single-post .ast-separate-container .ast-article-single,
.single-post #primary,
.single-post .site-content,
.ast-separate-container {
    background-color: #fff !important;
}
.single-post .entry-content {
    background: transparent !important;
}

/* Bio auteur inline */
.author-bio-inline {
    font-size: 12px !important;
    color: #777 !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    margin: 8px 0 0 0 !important;
    max-width: 600px;
}
.entry-meta .author-bio-inline {
    display: flex; align-items: center; justify-content: center;
}

/* Bloc auteur article */
.pn-author-box {
    margin-top: 40px;
    padding: 25px;
    background: #fff;
    border-left: 3px solid #c9a959;
}
.pn-author-label {
    display: flex; align-items: center; justify-content: center;
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}
.pn-author-name {
    font-family: Playfair Display, serif;
    font-size: 18px;
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 600;
}
.pn-author-name:hover {
    color: #c9a959;
}
.pn-author-bio {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin: 10px 0 0 0;
}

/* Fond blanc global */
body, .ast-separate-container, #page, .site-content {
    background-color: #fff !important;
}

/* Enlever lien sur auteur dans meta */
.entry-meta .posted-by a,
.entry-meta .author a,
.entry-meta .vcard a {
    pointer-events: none;
    color: inherit !important;
    text-decoration: none !important;
}

/* Images featured non croppées */
.ast-article-single .post-thumb-img-content img,
.single-post .post-thumb-img-content img,
.entry-header img,
article .post-thumbnail img {
    object-fit: contain !important;
    aspect-ratio: auto !important;
    max-height: 500px;
    width: auto !important;
    margin: 0 auto;
    display: flex; align-items: center; justify-content: center;
}
.post-thumb-img-content,
.ast-featured-image-contain {
    aspect-ratio: auto !important;
    text-align: center;
}

