/*
Theme Name: Inspivie
Theme URI: https://inspivie.com/
Author: Jamal Zaki
Author URI: https://inspivie.com/
Description: Thème léger et rapide pour Inspivie — blog de décoration d'intérieur. Inspirez, Créez, Décorez votre intérieur.
Version: 1.0.0
License: GNU General Public License v3 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html
Tested up to: 6.9
Requires PHP: 8.0
Requires at least: 6.2
Text Domain: inspivie
Tags: blog, one-column, two-columns, right-sidebar, custom-menu, custom-logo, featured-images, translation-ready, theme-options
*/

/* ============================================
   CSS Variables
============================================ */
:root {
    --color-primary: #111111;
    --color-accent: #8224E3;
    --color-text: #333333;
    --color-text-light: #999999;
    --color-bg: #ffffff;
    --color-white: #ffffff;
    --color-border: #eeeeee;
    --color-black: #111111;
    --font-heading: 'Marcellus', Georgia, serif;
    --font-body: 'Poppins', sans-serif;
    --font-ui: 'Poppins', sans-serif;
    --max-width: 1170px;
    --sidebar-width: 320px;
    --gap: 60px;
    --radius: 0;
    --transition: 0.2s linear;
}

/* ============================================
   Reset & Base
============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6575em;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover,
a:focus {
    color: var(--color-accent);
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul,
ol {
    list-style-position: inside;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.263em;
    color: var(--color-primary);
    margin-top: 0;
}

h1 {
    font-size: 2em;
}

h2 {
    font-size: 1.6em;
}



h3 {
    font-size: 1.3em;
}

h4 {
    font-size: 1.1em;
}

/* ============================================
   Layout
============================================ */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.site-content {
    display: flex;
    gap: var(--gap);
    padding: 40px 0;
}

.content-area {
    flex: 1;
    min-width: 0;
}

.widget-area {
    width: var(--sidebar-width);
    flex-shrink: 0;
}

/* ============================================
   Header
============================================ */
.site-header {
    background: var(--color-white);
    position: relative;
    z-index: 2;
}


.search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.search-toggle svg {
    width: 18px;
    height: 18px;
    stroke: #111;
    fill: none;
    stroke-width: 2;
    transition: stroke 0.2s ease;
}

.search-toggle:hover svg {
    stroke: #8224E3;
}

/* Search modal */
.search-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.97);
    z-index: 999999;
    align-items: center;
    justify-content: flex-start;
    flex-direction: column;
    padding-top: 20vh;
    animation: searchFadeIn 0.3s ease;
}

@keyframes searchFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.search-modal.active {
    display: flex;
}

.search-modal form {
    width: 90%;
    max-width: 600px;
    text-align: center;
}

.search-modal .search-field {
    width: 100%;
    padding: 20px 0;
    font-size: 2rem;
    font-family: var(--font-heading);
    font-weight: 700;
    border: none;
    border-bottom: 2px solid #111;
    background: transparent;
    color: #111;
    outline: none;
    text-align: center;
    letter-spacing: 0.5px;
}

.search-modal .search-field::placeholder {
    color: #bbb;
    font-weight: 400;
    font-style: italic;
}

.search-modal .close-search {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    color: #111;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
    font-weight: 300;
}

.search-modal .close-search:hover {
    color: #8224E3;
}

/* Branding & Header Layout */
.header-layout {
    display: block;
}

.header-layout .menu-toggle,
.header-layout .search-toggle {
    display: none;
}

/* Mobile Slide Panel — hidden by default on desktop */
.mobile-menu-overlay {
    display: none;
}

.mobile-menu-panel {
    display: none;
}

.site-branding {
    text-align: center;
    padding: 20px 0;
}

.site-title {
    font-family: 'Playfair Display', serif;
    font-size: 60px;
    line-height: 1.05em;
    font-style: italic;
    font-weight: 700;
    margin: 0;
}

.site-title a {
    color: #111;
    text-decoration: none;
    transition: ease 0.2s;
}

.site-title a:hover,
.site-title a:focus {
    color: #8224E3;
    text-decoration: none;
}

.site-description {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 12px;
    line-height: 15px;
    color: #999;
    margin: 0;
}

/* Primary Navigation */
.main-navigation {
    text-align: center;
    border-top: 1px solid transparent;
    border-bottom: 1px solid transparent;
    border-image: linear-gradient(to right, transparent 10%, #111 25%, #111 75%, transparent 90%) 1;
}

.main-navigation .container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.desktop-search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: inline-flex;
    align-items: center;
    margin-left: 20px;
}

.desktop-search-toggle svg {
    width: 16px;
    height: 16px;
    stroke: #111;
    fill: none;
    stroke-width: 2;
    transition: stroke 0.2s ease;
}

.desktop-search-toggle:hover svg {
    stroke: #8224E3;
}

.main-navigation ul {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    position: relative;
    display: inline-block;
    margin: 0 15px;
}

.main-navigation a {
    display: block;
    padding: 8px 0;
    /* Reduced padding as requested */
    font-family: var(--font-ui);
    font-size: 16px;
    color: #111;
    transition: color 0.1s linear;
    text-decoration: none;
}



.main-navigation a:hover,
.main-navigation a:focus,
.main-navigation .current-menu-item>a,
.main-navigation .current-menu-ancestor>a {
    color: #8224E3;
    text-decoration: none;
}

/* Dropdown */
.main-navigation .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    z-index: 100;
    flex-direction: column;
}

.main-navigation li:hover>.sub-menu {
    display: flex;
}

.main-navigation .sub-menu a {
    padding: 10px 20px;
    font-size: 0.75rem;
    border-bottom: 1px solid var(--color-border);
}

.main-navigation .sub-menu a:last-child {
    border-bottom: none;
}


/* ============================================
   Blog Posts — Alternating Layout
============================================ */
.post-list .post {
    display: flex;
    flex-direction: row;
    margin: 0 0 60px;
}

.post-list .post .img-holder {
    width: 435px;
    margin-right: 60px;
    flex-shrink: 0;
    overflow: hidden;
}

.post-list .post .img-holder a {
    display: block;
}

.post-list .post .img-holder img {
    width: 100%;
    height: auto;
    vertical-align: top;
}

.post-list .post .text-holder {
    flex: 1 0 0;
    align-items: flex-start;
}

/* Category badge */
.cat-links {
    display: inline-flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.cat-links a {
    font-family: var(--font-ui);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-text-light);
    transition: color var(--transition);
}

.cat-links a:hover {
    color: var(--color-primary);
}

/* Entry title */
.entry-title {
    font-family: var(--font-heading);
    font-size: 38px;
    line-height: 1.263em;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 0 26px;
}

.entry-title a {
    color: var(--color-primary);
    transition: color 0.1s linear;
}

.entry-title a:hover,
.entry-title a:focus {
    color: var(--color-accent);
    text-decoration: none;
}

/* Entry meta */
.entry-meta {
    font-family: var(--font-ui);
    font-size: 14px;
    line-height: 1.5em;
    color: #999;
    margin: 0 0 17px;
}

.entry-meta a {
    color: #666;
    transition: color 0.1s linear;
}

.entry-meta a:hover {
    color: var(--color-accent);
    text-decoration: none;
}

.entry-meta .sep {
    margin: 0 8px;
}

/* Excerpt */
.entry-summary {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: 20px;
}

/* Read more button */
.btn-readmore {
    display: inline-block;
    padding: 12px 29px 9px 32px;
    background: var(--color-primary);
    color: var(--color-white);
    font-family: var(--font-ui);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    transition: all 0.2s linear;
}

.btn-readmore:hover,
.btn-readmore:focus {
    background: #d1a7bc;
    color: var(--color-white);
    text-decoration: none;
}

/* ============================================
   Homepage — Hero Mosaic
============================================ */

/* Remove gap between header and hero on front page */
body.home .site-content {
    padding: 0;
}

.hero-mosaic {
    background: #fff;
    padding: 0;
}

/* Intro text */
.mosaic-text {
    text-align: center;
    padding: 45px 20px 35px;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.mosaic-text::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: linear-gradient(to right, transparent, #8224E3, transparent);
    margin: 30px auto 0;
}

.hero-tagline {
    display: inline-block;
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: #8224E3;
    margin-bottom: 15px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 60px;
    font-weight: 700;
    line-height: 1.15;
    color: #111;
    margin: 0 0 14px;
    text-wrap: balance;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 15px;
    color: #888;
    font-style: italic;
    margin: 0;
}

/* Categories heading */
.mosaic-categories-heading {
    text-align: center;
    padding: 15px 20px 25px;
}

.section-heading {
    font-family: var(--font-heading);
    font-size: 30px;
    font-weight: 700;
    color: #111;
    margin: 0 0 5px;
}

.section-subheading {
    font-family: var(--font-body);
    font-size: 14px;
    font-style: italic;
    color: #999;
    margin: 0;
}

/* Category Mosaic Grid */
.mosaic-grid {
    display: flex;
    height: 400px;
    gap: 2px;
}

.mosaic-item {
    display: block;
    flex: 1;
    overflow: hidden;
    position: relative;
    text-decoration: none;
    transition: flex 0.5s ease;
}

.mosaic-item:hover {
    flex: 1.4;
}

.mosaic-slideshow {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.mosaic-img {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: translateX(100%);
    animation: mosaicSlideCarousel 9s infinite cubic-bezier(0.77, 0, 0.175, 1);
    animation-fill-mode: both;
    transition: scale 0.6s ease;
}

/* Catalog Slide-Over animation for 3 images (9s total duration) */
@keyframes mosaicSlideCarousel {

    /* 1. Enter from Right */
    0% {
        transform: translateX(100%);
        z-index: 2;
        opacity: 1;
    }

    5% {
        transform: translateX(0);
        z-index: 2;
        opacity: 1;
    }

    /* 2. Stay visible and active */
    33.33% {
        transform: translateX(0);
        z-index: 1;
        opacity: 1;
    }

    /* 3. Sit still while the next image slides over it */
    38.33% {
        transform: translateX(0);
        z-index: 1;
        opacity: 1;
    }

    /* 4. Hide instantly and reset to Right */
    38.34% {
        transform: translateX(100%);
        z-index: 0;
        opacity: 0;
    }

    95% {
        transform: translateX(100%);
        z-index: 0;
        opacity: 0;
    }

    100% {
        transform: translateX(100%);
        z-index: 0;
        opacity: 1;
    }
}

.mosaic-item:hover .mosaic-img {
    scale: 1.06;
}

.mosaic-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.45) 100%);
    transition: background 0.4s ease;
}

.mosaic-item:hover .mosaic-overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.55) 100%);
}



.mosaic-label {
    position: absolute;
    bottom: 25px;
    left: 0;
    right: 0;
    text-align: center;
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    z-index: 2;
    transition: transform 0.3s ease;
}

.mosaic-item:hover .mosaic-label {
    transform: translateY(-5px);
}

/* Homepage — Latest Articles */
.home-articles {
    padding: 80px 0 90px;
    background-color: #fcfbfa;
    /* Very subtle warm elegant cream to separate from white */
}

.home-articles .section-heading,
.home-articles .section-subheading {
    text-align: center;
}

.home-articles .section-subheading {
    margin-bottom: 40px;
}

/* Homepage Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 44px;
    }

    .mosaic-grid {
        display: grid;
        height: auto;
        grid-template-columns: repeat(3, 1fr);
        gap: 3px;
    }

    .mosaic-item {
        aspect-ratio: 3/4;
    }

    .mosaic-label {
        font-size: 16px;
    }

    .back-to-top {
        display: none !important;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 34px;
    }

    .mosaic-text {
        padding: 30px 15px 20px;
    }

    .mosaic-grid {
        display: grid;
        height: auto;
        grid-template-columns: repeat(3, 1fr);
        gap: 2px;
    }

    .mosaic-item {
        aspect-ratio: 3/4;
    }

    .mosaic-label {
        font-size: 14px;
        bottom: 15px;
    }

    .back-to-top {
        display: none !important;
    }
}

/* ============================================
   Archive Page
============================================ */
.archive-header {
    text-align: center;
    margin: 15px 0 30px;
}

.archive-header .page-title {
    font-family: var(--font-heading);
    font-size: 38px;
    font-weight: 700;
    margin: 0;
    color: #111;
}

.archive-description {
    font-family: var(--font-body);
    font-size: 14px;
    font-style: italic;
    line-height: 1.7;
    color: #777;
    max-width: 700px;
    margin: 12px auto 0;
    text-align: center;
}

/* Archive Grid */
.archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 columns instead of 4 */
    gap: 40px;
}

@media (max-width: 992px) {
    .archive-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}



.archive-grid .post {
    display: flex !important;
    flex-direction: column;
    height: 100%;
    margin-bottom: 0 !important;
    border: 1px solid #111;
    background: #fff;
    transition: box-shadow 0.3s ease;
}

.archive-grid .post:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.archive-grid .post .img-holder {
    width: 100% !important;
    margin: 0 !important;
    overflow: hidden;
}

.archive-grid .post .img-holder img {
    width: 100%;
    display: block;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.archive-grid .post:hover .img-holder img {
    transform: scale(1.05);
}

.archive-grid .post .text-holder {
    padding: 12px 15px 10px;
    text-align: left;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.archive-grid .post .cat-links {
    margin-bottom: 0;
}

.archive-grid .post .entry-title {
    font-size: 22px;
    line-height: 1.3em;
    margin: 5px 0 5px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.archive-grid .post .entry-meta {
    margin-bottom: 0;
    margin-top: auto;
}

.archive-grid .post .btn-readmore,
.archive-grid .post .entry-summary,
.archive-grid .post .entry-meta .posted-on,
.archive-grid .post .entry-meta .sep {
    display: none !important;
}

@media (max-width: 576px) {
    .archive-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .archive-grid .post {
        flex-direction: row !important;
        height: auto !important;
        align-items: stretch !important;
    }

    .archive-grid .post .img-holder {
        width: 40% !important;
        flex-shrink: 0;
        display: flex;
    }

    .archive-grid .post .img-holder a {
        display: flex;
        width: 100%;
    }

    .archive-grid .post .img-holder img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .archive-grid .post .text-holder {
        width: 60%;
        padding: 12px 15px;
        justify-content: center;
    }

    .archive-grid .post .entry-title {
        font-size: 20px;
        margin: 5px 0 8px;
        line-height: 1.3;
        display: block;
        -webkit-line-clamp: unset;
    }

    .archive-grid .post .cat-links a {
        font-size: 12px;
        letter-spacing: 0.5px;
        line-height: 1.4;
        display: block;
    }

    .archive-grid .post .entry-meta,
    .archive-grid .post .entry-meta a {
        font-size: 13px;
        margin-top: 0;
    }
}

/* ============================================
   Single Post
============================================ */
/* Center the post and remove sidebar space */
body.single .site-content {
    display: block;
}

body.single .content-area {
    max-width: 720px;
    margin: 0 auto;
}

body.single .widget-area {
    display: none !important;
}

.single .entry-header {
    margin-bottom: 25px;
}

.single .entry-title {
    font-family: 'Marcellus', serif;
    font-size: 40px;
    font-weight: 700;
    line-height: 48px;
    color: #111111;
    margin: 0 0 26px;
}

.single .entry-content {
    font-size: 16px;
    line-height: 1.6575em;
}

.single .entry-content p {
    margin-bottom: 1.5em;
}

.single .entry-content h2,
.single .entry-content h3,
.single .entry-content h4 {
    font-family: 'Marcellus', serif;
    font-size: 28px;
    font-weight: 700;
    color: #111111;
    line-height: 38px;
    margin: 0.8em 0 0.4em;
}

.single .entry-content h3 {
    font-size: 26px;
    /* Slightly smaller for hierarchy if they use h3 inside h2 */
    line-height: 34px;
}

.single .entry-content img {
    width: 100%;
    height: auto;
    margin: 1.5em 0;
    border-radius: 2px;
}

.single .entry-content ul,
.single .entry-content ol {
    margin: 1em 0 1.5em 1.5em;
}

.single .entry-content li {
    margin-bottom: 0.5em;
}

.single .entry-content blockquote {
    border-left: 3px solid var(--color-accent);
    padding: 15px 25px;
    margin: 1.5em 0;
    font-style: italic;
    background: var(--color-bg);
}

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

/* Author box */
.author-box {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: var(--color-bg);
    margin: 40px 0;
}

.author-box .avatar {
    border-radius: 50%;
    width: 80px;
    height: 80px;
}

.author-box .author-name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

/* Post navigation */
.post-navigation {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 40px 0;
    padding: 20px 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.post-navigation a {
    font-family: var(--font-ui);
    font-size: 0.85rem;
}

.post-navigation .nav-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-light);
    display: block;
    margin-bottom: 4px;
}

/* Related posts */
.related-posts {
    margin: 40px 0;
}

.related-posts h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 20px;
    text-align: center;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.related-post-card img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.related-post-card .entry-title {
    font-size: 0.95rem;
    margin-top: 10px;
}

/* ============================================
   Page
============================================ */
.page .entry-content {
    font-size: 1rem;
    line-height: 1.9;
}

.page .entry-content p {
    margin-bottom: 1.5em;
}

/* ============================================
   Archive / Category
============================================ */
.page-header {
    margin-bottom: 30px;
}

.page-header .page-title {
    font-size: 1.8rem;
    text-align: center;
}

.archive-description {
    text-align: center;
    color: var(--color-text-light);
    margin-top: 8px;
}

/* ============================================
   Sidebar / Widgets
============================================ */
.widget {
    margin-bottom: 30px;
    padding: 25px;
    background: var(--color-white);
}

.widget-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--color-border);
}

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

.widget li {
    padding: 6px 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.9rem;
}

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

/* ============================================
   Footer
============================================ */
.site-footer {
    background: #fff;
    color: #333333;
    padding-top: 80px;
    border-top: 1px solid #eaeaea;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 27px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 50px;
    margin-bottom: 60px;
}

.footer-widgets .widget {
    background: transparent;
    padding: 0;
    margin: 0;
}

.footer-widgets .widget-title {
    color: #111;
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-style: italic;
    font-weight: 700;
    margin-bottom: 25px;
    border: none !important;
    text-transform: none;
    letter-spacing: 0;
}

.footer-widgets .widget-title:empty {
    display: none !important;
}

.footer-widgets .footer-title,
#footer-categories-widget .footer-title,
#footer-categories-widget .footer-title::after {
    display: none !important;
}

#footer-categories-widget .footer-list {
    margin: 0 !important;
}

#footer-categories-widget .footer-list a {
    font-family: 'Poppins', sans-serif !important;
    color: #333333 !important;
    transition: all 0.3s ease !important;
}

#footer-categories-widget .footer-list a:hover {
    color: #8224E3 !important;
    transform: translateX(5px) !important;
}

.footer-widgets hr {
    display: none !important;
}

.footer-widgets a,
.footer-widgets p,
.footer-widgets span,
.footer-widgets div,
.footer-widgets li {
    color: #333333;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 27px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none !important;
    box-shadow: none !important;
}

.footer-widgets a {
    display: inline-block;
}

.footer-widgets a:hover {
    color: #8224E3;
    transform: translateX(5px);
}

.footer-widgets .widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
    border: none !important;
}

.footer-widgets .widget li {
    padding: 0 0 14px 0;
    margin: 0;
}

.footer-widgets .widget li:last-child {
    padding-bottom: 0;
}

.site-info {
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid #eaeaea !important;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #333333;
    line-height: 27px;
}

.site-info a {
    color: #333333;
    transition: color 0.3s ease;
}

.site-info a:hover {
    color: #8224E3;
}

/* ============================================
   Breadcrumb
============================================ */
.breadcrumb-wrapper {
    padding: 15px 0;
    font-family: var(--font-ui);
    font-size: 0.78rem;
    color: var(--color-text-light);
}

.breadcrumb-wrapper a {
    color: var(--color-text-light);
}

.breadcrumb-wrapper .separator {
    margin: 0 8px;
}

/* ============================================
   Pagination
============================================ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 50px 0;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 10px;
    border: none;
    border-radius: 50%;
    font-family: var(--font-ui);
    font-size: 0.9rem;
    font-weight: 500;
    color: #555;
    background: transparent;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pagination .page-numbers:hover {
    color: #8224E3;
    background: rgba(130, 36, 227, 0.08);
}

.pagination .page-numbers.current {
    color: #fff;
    background: #111;
    font-weight: 600;
}

/* ============================================
   Comments
============================================ */
.comments-area {
    margin-top: 40px;
}

.comments-title {
    font-size: 1.3rem;
    margin-bottom: 25px;
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment-body {
    padding: 20px 0;
    border-bottom: 1px solid var(--color-border);
}

.comment-meta {
    margin-bottom: 10px;
    font-size: 0.85rem;
}

.comment-author .avatar {
    border-radius: 50%;
    margin-right: 10px;
    vertical-align: middle;
}

.comment-respond {
    margin-top: 30px;
}

.comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--color-border);
    font-family: var(--font-body);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.comment-form .submit {
    padding: 12px 30px;
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: opacity var(--transition);
}

.comment-form .submit:hover {
    opacity: 0.85;
}

/* ============================================
   404 Page
============================================ */
.error-404 {
    text-align: center;
    padding: 80px 20px;
}

.error-404 h1 {
    font-size: 6rem;
    color: var(--color-border);
}

.error-404 p {
    font-size: 1.1rem;
    margin: 20px 0;
}

/* ============================================
   Search Results
============================================ */
.search-results .post {
    padding: 20px;
    background: var(--color-white);
    margin-bottom: 15px;
}

/* ============================================
   Back to Top
============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--color-white);
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.back-to-top svg {
    transition: transform 0.3s ease;
}

.back-to-top.visible {
    display: flex;
}

.back-to-top:hover {
    background: var(--color-accent);
    color: var(--color-white);
    border-color: var(--color-accent);
    transform: translateY(-3px);
}

.back-to-top:hover svg {
    transform: translateY(-2px);
}

/* ============================================
   Accessibility
============================================ */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.skip-link {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 8px 16px;
    position: fixed;
    top: -100%;
    left: 10px;
    z-index: 100000;
    font-family: var(--font-ui);
    font-size: 0.85rem;
}

.skip-link:focus {
    top: 10px;
}

/* ============================================
   Responsive — Tablet
============================================ */
@media (max-width: 1024px) {
    .site-content {
        flex-direction: column;
    }

    .widget-area {
        width: 100%;
    }

    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
    }

    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   Responsive — Mobile
============================================ */
@media (max-width: 768px) {
    h1 {
        font-size: 1.6rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    .site-title {
        font-size: 2.4rem;
    }

    /* Mobile Header Inline Layout */
    .header-layout {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 15px 0;
    }

    .site-branding {
        padding: 0;
        text-align: center;
        flex: 1;
    }

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

    .header-layout .menu-toggle,
    .header-layout .search-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        color: #111;
        padding: 5px;
        cursor: pointer;
        width: auto;
        margin-top: 4px;
    }

    .header-layout .menu-toggle svg,
    .header-layout .search-toggle svg {
        width: 28px;
        height: 28px;
        stroke: #111;
        margin: 0;
    }

    /* Hide desktop nav on mobile */
    .desktop-nav {
        display: none !important;
    }

    /* ---- Mobile Slide Panel ---- */
    .mobile-menu-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 99998;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .mobile-menu-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }

    .mobile-menu-panel {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 80%;
        max-width: 320px;
        height: 100%;
        background: #fff;
        z-index: 99999;
        transform: translateX(-100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
    }

    .mobile-menu-panel.active {
        transform: translateX(0);
    }

    .mobile-menu-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 25px 25px 20px;
    }

    .mobile-menu-logo {
        font-family: 'Playfair Display', serif !important;
        font-style: italic !important;
        font-size: 28px !important;
        margin: 0 !important;
    }

    .mobile-menu-close {
        background: none;
        border: none;
        cursor: pointer;
        padding: 5px;
    }

    .mobile-menu-close svg {
        width: 24px;
        height: 24px;
        stroke: #111;
    }

    .mobile-menu-nav ul {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
    }

    .mobile-menu-nav li {
        margin: 0;
    }

    .mobile-menu-nav a {
        display: block;
        padding: 16px 25px;
        font-family: var(--font-ui);
        font-size: 14px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: #111;
        text-decoration: none;
        border-bottom: 1px solid #eee;
        transition: color 0.2s ease;
    }

    .mobile-menu-nav a:hover,
    .mobile-menu-nav .current-menu-item>a {
        color: #8224E3;
        text-decoration: none;
    }

    .mobile-menu-nav .sub-menu {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .mobile-menu-nav .sub-menu a {
        padding-left: 45px;
        font-size: 13px;
        font-weight: 400;
    }

    /* Posts */
    .post-list .post {
        flex-direction: column !important;
        padding: 20px;
    }

    .post-list .post .img-holder {
        flex: none;
        width: 100%;
    }

    /* Archive grid: undo .post-list overrides so it matches homepage */
    .post-list.archive-grid .post {
        padding: 0 !important;
    }

    .post-list.archive-grid .post .img-holder {
        flex: initial;
    }


    .entry-title {
        font-size: 1.3rem;
    }

    /* Footer */
    .footer-widgets {
        grid-template-columns: 1fr;
    }

    .related-posts-grid {
        grid-template-columns: 1fr;
    }

    .post-navigation {
        flex-direction: column;
    }

    .single .entry-title {
        font-size: 32px;
        line-height: 40px;
    }
}

/* Archive/Category mobile — exact same as homepage Dernières Inspirations */
@media (max-width: 576px) {
    .post-list.archive-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .post-list.archive-grid .post {
        flex-direction: row !important;
        height: auto !important;
        align-items: stretch !important;
        padding: 0 !important;
    }

    .post-list.archive-grid .post .img-holder {
        width: 40% !important;
        flex: 0 0 40%;
        display: flex;
    }

    .post-list.archive-grid .post .img-holder a {
        display: flex;
        width: 100%;
    }

    .post-list.archive-grid .post .img-holder img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .post-list.archive-grid .post .text-holder {
        width: 60%;
        padding: 12px 15px;
        justify-content: center;
    }

    .post-list.archive-grid .post .entry-title {
        font-size: 20px;
        margin: 5px 0 8px;
        line-height: 1.3;
        display: block;
        -webkit-line-clamp: unset;
    }

    .post-list.archive-grid .post .cat-links a {
        font-size: 12px;
        letter-spacing: 0.5px;
        line-height: 1.4;
        display: block;
    }

    .post-list.archive-grid .post .entry-meta,
    .post-list.archive-grid .post .entry-meta a {
        font-size: 13px;
        margin-top: 0;
    }
}

/* ============================================
   Print
============================================ */
@media print {

    .site-header,
    .site-footer,
    .widget-area,
    .main-navigation,
    .back-to-top,
    .pagination,
    .post-navigation,
    .related-posts,
    .comments-area {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
        font-size: 12pt;
    }
}

/* ============================
   404 Page — Premium Design
   ============================ */
.error-404-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    padding: 60px 20px;
    text-align: center;
}

.error-404-content {
    max-width: 600px;
}

.error-404-label {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #8224E3;
    margin-bottom: 10px;
}

.error-404-number {
    font-family: 'Playfair Display', serif;
    font-size: clamp(100px, 20vw, 200px);
    font-weight: 900;
    font-style: italic;
    line-height: 1;
    margin: 0;
    background: linear-gradient(135deg, #111 0%, #8224E3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.error-404-message {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    color: #777;
    line-height: 1.7;
    margin: 20px auto 35px;
    max-width: 450px;
}

.error-404-btn {
    display: inline-block;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
    background: #111;
    padding: 14px 40px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.error-404-btn:hover {
    background: #8224E3;
}

.error-404-search {
    margin-top: 50px;
}

.error-404-search-hint {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    color: #aaa;
    margin-bottom: 15px;
}

.error-404-search-form {
    display: flex;
    max-width: 400px;
    margin: 0 auto;
    border-bottom: 2px solid #111;
}

.error-404-search-form .search-field {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 0;
    font-family: 'Marcellus', serif;
    font-size: 1.1rem;
    background: transparent;
    color: #111;
}

.error-404-search-form .search-field::placeholder {
    color: #ccc;
    font-style: italic;
}

.error-404-search-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 4px;
    display: flex;
    align-items: center;
}

.error-404-search-btn svg {
    width: 18px;
    height: 18px;
    stroke: #111;
    transition: stroke 0.2s ease;
}

.error-404-search-btn:hover svg {
    stroke: #8224E3;
}

/* Infinite Scroll Rich Separator */
.auto-next-rich-sep {
    margin: 60px auto 40px;
    max-width: 600px;
    text-align: center;
}

.pinterest-promo {
    margin-bottom: 50px;
}

.pinterest-promo-title {
    font-family: 'Marcellus', serif;
    font-weight: 700;
    font-size: 19px;
    color: #111;
    margin-bottom: 15px;
}

.btn-pinterest {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background-color: #bd081c;
    /* Pinterest Red */
    color: #ffffff !important;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 24px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(189, 8, 28, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-pinterest:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(189, 8, 28, 0.4);
    color: #ffffff !important;
}

.next-article-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: #333;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.5px;
    margin-bottom: 25px;
}

.next-article-divider::before,
.next-article-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #eaeaea;
}

.next-article-divider::before {
    margin-right: 15px;
}

.next-article-divider::after {
    margin-left: 15px;
}

.next-article-arrow {
    color: #bd081c;
    font-size: 20px;
    line-height: 1;
    animation: bounce 1.2s ease-in-out infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(8px);
    }
}


/* Top Share Bar */
.article-top-share {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
}

.article-top-share .share-text {
    font-family: 'Marcellus', serif;
    font-size: 15px;
    font-weight: 700;
    color: #111;
    letter-spacing: 0.5px;
    margin-right: 5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.article-top-share .share-arrow {
    display: inline-block;
    animation: nudge-right 1.5s ease-in-out infinite;
}

@keyframes nudge-right {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(5px);
    }
}

.article-top-share .share-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none !important;
    transition: transform 0.2s ease, opacity 0.2s ease;
    overflow: hidden;
    line-height: 0;
    font-size: 0;
    padding: 0;
}

.article-top-share .share-icon svg {
    fill: #ffffff;
    flex-shrink: 0;
    display: block;
    pointer-events: none;
}

.article-top-share .share-icon:hover {
    transform: translateY(-2px);
    opacity: 0.9;
    color: #fff;
    text-decoration: none !important;
}

.share-icon.facebook {
    background-color: #1877F2;
}

.share-icon.x-twitter {
    background-color: #000000;
}

.share-icon.pinterest {
    background-color: #E60023;
}

/* Image Pin Button — Decovya style */
.pinnable-image {
    position: relative;
    overflow: hidden;
}

.pinnable-image .pin-overlay {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #E60023;
    color: white;
    border: none;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pinnable-image .pin-overlay:hover {
    transform: scale(1.12);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    text-decoration: none;
    color: white;
}

.pinnable-image .pin-overlay svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    fill: white;
}