/*
Theme Name: Mimeya Blankslate Child
Theme URI: https://mimeyacreations.com/
Description: Thème enfant pour Blankslate, personnalisé pour Mimeya Créations.
Author: Ludivine (Mimeya Créations) & AI Assistant
Author URI: https://mimeyacreations.com/
Template: blankslate
Version: 1.0.15
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mimeya-blankslate-child
*/

:root {
    --color-primary-deep-brown: #4A3B31;
    --color-secondary-medium-brown: #7B6D63;
    --color-accent-terracotta: #B97C5B;
    --color-accent-muted-gold: #B0935B;
    --color-text-light: #FFFFFF;
    --color-text-light-alt: #FDFCFB;
    --color-text-dark: #333333;
    --color-text-heading: #4A3B31;
    --color-background-main: #FFFFFF;
    --color-background-off-white: #FAF7F4;
    --color-overlay-dark: rgba(12, 8, 5, 0.72);
    --color-overlay-start: rgba(12, 8, 5, 0.32);

    --font-display: 'Playfair Display', serif;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Montserrat', sans-serif;

    --transition-smooth: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --transition-fast: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --shadow-soft: 0px 8px 20px rgba(74, 59, 49, 0.06);
    --shadow-lifted: 0px 12px 30px rgba(74, 59, 49, 0.1);
    --border-radius-soft: 10px;
    --border-radius-card: 8px;
    --wave-height: 85px;
    --header-opaque-height: 80px; /* !!! AJUSTER CETTE VALEUR PRÉCISÉMENT (ex: 70px, 80px, 90px) !!! */
}

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

html {
    scroll-behavior: smooth;
    font-size: 100%;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-background-main);
    color: var(--color-text-dark);
    line-height: 1.7;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    font-size: 1rem;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    background: var(--color-primary-deep-brown);
    color: var(--color-text-light);
    padding: 0.6rem 1rem;
    border-radius: 0.4rem;
    z-index: 10001;
    transition: top 0.3s ease-in-out;
    text-decoration: none;
}
.skip-link:focus {
    top: 0.5rem;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--color-text-heading);
    font-weight: 700;
    line-height: 1.25;
}

h1 {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 5.5vw, 4.8rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1.8rem;
}

h2 {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    margin-bottom: 3rem;
    text-align: center;
    letter-spacing: -0.01em;
}
.page-title,
.page-wrapper-section .entry-title,
#single-post-content .entry-title,
#blog-archive-header .page-title {
    font-family: var(--font-display);
    color: var(--color-text-heading);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    line-height: 1.15;
    margin-bottom: 2rem;
    text-align: center;
}


h3 {
    font-size: clamp(1.25rem, 2.2vw, 1.6rem);
    margin-bottom: 0.8rem;
}
/* Style des titres H2 dans la grille du blog - SANS !important */
#blog-posts-list .blog-grid-item .entry-title {
    font-family: var(--font-heading);
    font-size: clamp(1.3rem, 2vw, 1.6rem);
    margin-bottom: 0.5rem;
    color: var(--color-text-heading);
    text-align: left;
    line-height: 1.3;
}
.blog-grid-item .entry-title a { color: inherit; text-decoration: none; }
.blog-grid-item .entry-title a:hover { color: var(--color-accent-terracotta); }


.h3-as-h4-style {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--color-accent-muted-gold);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

a {
    color: var(--color-accent-terracotta);
    text-decoration: none;
    transition: color var(--transition-fast);
    font-weight: 500;
}
p a { font-weight: 700; text-decoration: underline;}
p a:hover { color: var(--color-accent-muted-gold); }


a:hover {
    color: var(--color-accent-muted-gold);
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2.5px solid var(--color-accent-muted-gold);
    outline-offset: 3px;
    box-shadow: 0 0 0 5px rgba(176, 147, 91, 0.15);
}
.cta-button:focus-visible {
     box-shadow: 0 0 0 3px var(--color-background-main), 0 0 0 5.5px var(--color-accent-muted-gold);
     outline: none;
}
.main-nav ul li a:focus-visible {
    background-color: rgba(0,0,0,0.03);
    outline: 1.5px dashed var(--color-accent-muted-gold);
    outline-offset: -1.5px;
    box-shadow: none;
    border-radius: 0;
}
.main-nav ul li:last-child a:focus-visible {
    background-color: transparent;
    outline: 2px solid var(--color-accent-muted-gold);
    outline-offset: 2px;
    box-shadow: none;
}
.menu-toggle:focus-visible {
    outline: 2px solid var(--color-accent-muted-gold);
    outline-offset: 2px;
    background-color: rgba(0,0,0,0.03);
    box-shadow: none;
}

/* ==========================================================================
   Header Styles
   ========================================================================== */

.site-header {
    background-color: var(--color-background-main);
    box-shadow: var(--shadow-soft);
    padding: 15px 0;
    border-bottom: 1px solid rgba(0,0,0,0.03);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease, border-color 0.4s ease;
}

.header-content { display: flex; justify-content: space-between; align-items: center; }

.logo-area {
    display: flex; align-items: center; gap: 18px;
    text-decoration: none;
    margin-right: 30px;
    transition: margin-right 0.4s ease;
}
.logo-area .site-branding { display: flex; flex-direction: column; justify-content: center; line-height: 1.25; }
.logo-area .logo-img-wrapper {
    width: 50px; height: 50px;
    background-color: var(--color-text-light); border-radius: 50%; padding: 5px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.1);
    transition: width 0.4s ease, height 0.4s ease;
    display: flex; align-items: center; justify-content: center;
}
.logo-area .logo-img-wrapper img { width: 100%; height: 100%; object-fit: contain; }

.logo-area .site-branding .site-title {
    font-family: var(--font-display); font-size: 1.7rem; color: var(--color-text-heading);
    font-weight: 700; letter-spacing: 0.5px; text-shadow: none;
    transition: color var(--transition-fast), text-shadow var(--transition-fast), font-size 0.4s ease;
    margin: 0; line-height: 1.1;
}
.logo-area .site-branding .site-tagline {
    font-size: 0.72rem; color: var(--color-secondary-medium-brown); opacity: 1; font-weight: 400;
    text-shadow: none;
    transition: color var(--transition-fast), text-shadow var(--transition-fast), opacity var(--transition-fast), font-size 0.4s ease;
    display: block; margin: 0; line-height: 1;
}

.main-nav ul { list-style: none; display: flex; align-items: center; justify-content: flex-end; padding:0; margin:0;}
.main-nav ul li { margin-left: 30px; }
.main-nav ul li:first-child { margin-left: 0; }
.main-nav ul li a {
    color: var(--color-text-heading); font-weight: 500; font-size: 0.85rem;
    text-transform: uppercase; letter-spacing: 1px; padding: 12px 0;
    position: relative; transition: color var(--transition-fast);
    text-shadow: none; display: inline-flex;
    align-items: center; gap: 0.35em; white-space: nowrap;
}
.main-nav ul li:last-child a { padding-right: 0; gap: 0; }
.main-nav ul li:last-child a::after { display: none; }
.main-nav ul li a .cart-icon-wrapper { display: inline-flex; align-items: center; position: relative; line-height: 1;}
.main-nav ul li a .cart-icon { font-size: 1.3em; }

.main-nav ul li a::after {
    content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 1.5px;
    background-color: var(--color-accent-muted-gold);
    transition: width 0.3s ease;
}

.site-header .main-nav ul li a:hover { color: var(--color-accent-muted-gold); }
.site-header .main-nav ul li.current-menu-item > a,
.site-header .main-nav ul li.current-page-ancestor > a,
.site-header .main-nav ul li.current-menu-ancestor > a {
    color: var(--color-accent-terracotta);
}
.site-header .main-nav ul li a:hover::after { width: 100%; background-color: var(--color-accent-muted-gold); }
.site-header .main-nav ul li.current-menu-item > a::after,
.site-header .main-nav ul li.current-page-ancestor > a::after,
.site-header .main-nav ul li.current-menu-ancestor > a::after {
    width: 100%;
    background-color: var(--color-accent-terracotta);
}

.menu-toggle {
    display: none; background: none; border: none; font-size: 26px;
    cursor: pointer; color: var(--color-text-heading);
    transition: color var(--transition-fast); padding: 8px; border-radius: 4px;
    text-shadow: none;
}

body.home .site-header:not(.scrolled),
body.front-page .site-header:not(.scrolled) {
    background-color: transparent; box-shadow: none;
    padding: 25px 0; border-bottom-color: transparent;
}
body.home .site-header:not(.scrolled) .logo-area,
body.front-page .site-header:not(.scrolled) .logo-area { margin-right: 60px; }
body.home .site-header:not(.scrolled) .logo-area .logo-img-wrapper,
body.front-page .site-header:not(.scrolled) .logo-area .logo-img-wrapper { width: 70px; height: 70px; }
body.home .site-header:not(.scrolled) .logo-area .site-branding .site-title,
body.front-page .site-header:not(.scrolled) .logo-area .site-branding .site-title {
    font-size: 1.9rem; color: var(--color-text-light); text-shadow: 0 1px 5px rgba(0,0,0,0.35);
}
body.home .site-header:not(.scrolled) .logo-area .site-branding .site-tagline,
body.front-page .site-header:not(.scrolled) .logo-area .site-branding .site-tagline {
    font-size: 0.78rem; color: var(--color-text-light); opacity: 0.95; text-shadow: 0 1px 3px rgba(0,0,0,0.25);
}
body.home .site-header:not(.scrolled) .main-nav ul li a,
body.home .site-header:not(.scrolled) .menu-toggle,
body.front-page .site-header:not(.scrolled) .main-nav ul li a,
body.front-page .site-header:not(.scrolled) .menu-toggle {
    color: var(--color-text-light); text-shadow: 0 1px 5px rgba(0,0,0,0.35);
}
body.home .site-header:not(.scrolled) .main-nav ul li a:hover,
body.front-page .site-header:not(.scrolled) .main-nav ul li a:hover { color: var(--color-text-light-alt); }
body.home .site-header:not(.scrolled) .main-nav ul li.current-menu-item > a,
body.home .site-header:not(.scrolled) .main-nav ul li.current-page-ancestor > a,
body.home .site-header:not(.scrolled) .main-nav ul li.current-menu-ancestor > a,
body.front-page .site-header:not(.scrolled) .main-nav ul li.current-menu-item > a,
body.front-page .site-header:not(.scrolled) .main-nav ul li.current-page-ancestor > a,
body.front-page .site-header:not(.scrolled) .main-nav ul li.current-menu-ancestor > a {
    color: var(--color-text-light);
}
body.home .site-header:not(.scrolled) .main-nav ul li a:hover::after,
body.home .site-header:not(.scrolled) .main-nav ul li.current-menu-item > a::after,
body.home .site-header:not(.scrolled) .main-nav ul li.current-page-ancestor > a::after,
body.home .site-header:not(.scrolled) .main-nav ul li.current-menu-ancestor > a::after,
body.front-page .site-header:not(.scrolled) .main-nav ul li a:hover::after,
body.front-page .site-header:not(.scrolled) .main-nav ul li.current-menu-item > a::after,
body.front-page .site-header:not(.scrolled) .main-nav ul li.current-page-ancestor > a::after,
body.front-page .site-header:not(.scrolled) .main-nav ul li.current-menu-ancestor > a::after {
    width: 100%;
    background-color: var(--color-accent-muted-gold);
}
body.home .site-header:not(.scrolled) .main-nav ul li a:focus-visible,
body.front-page .site-header:not(.scrolled) .main-nav ul li a:focus-visible {
    background-color: rgba(255,255,255,0.05); outline: 1.5px dashed var(--color-text-light-alt);
}
body.home .site-header:not(.scrolled) .main-nav ul li:last-child a:focus-visible,
body.front-page .site-header:not(.scrolled) .main-nav ul li:last-child a:focus-visible {
    background-color: transparent; outline: 2px solid var(--color-text-light-alt);
}
body.home .site-header:not(.scrolled) .menu-toggle:focus-visible,
body.front-page .site-header:not(.scrolled) .menu-toggle:focus-visible {
    outline: 2px solid var(--color-text-light-alt); background-color: rgba(255,255,255,0.05);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
/* NOTE : La propriété 'background-image' a été retirée.
   Elle doit être définie en ligne dans le template PHP (ex: front-page.php)
   pour utiliser des URLs dynamiques et être modifiable via l'admin WP. */
.hero-section {
    padding: 150px 20px 80px 20px;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    color: var(--color-text-light);
}
.hero-section::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(180deg, var(--color-overlay-start) 0%, var(--color-overlay-dark) 100%); z-index: 1; }
.hero-content { position: relative; z-index: 2; animation: fadeInHero 1.5s ease-out 0.2s backwards; width: 100%;}
.hero-content h1 { color: var(--color-text-light); text-shadow: 0px 4px 20px rgba(0,0,0,0.45); }
.hero-content .sub-headline { font-family: var(--font-body); font-weight: 300; font-size: clamp(1.15rem, 2.2vw, 1.45rem); margin: 0 auto 3rem auto; opacity: 0.95; max-width: 720px; }
@keyframes fadeInHero { from { opacity:0; transform: translateY(30px); } to { opacity:1; transform: translateY(0); }}

/* ==========================================================================
   CTA Button
   ========================================================================== */
.cta-button {
    background-color: var(--color-accent-terracotta); color: var(--color-text-light); padding: 18px 48px;
    border-radius: 50px; font-weight: 700; font-size: 0.95rem; text-transform: uppercase;
    letter-spacing: 1.3px; transition: transform 0.3s var(--transition-smooth), box-shadow 0.3s var(--transition-smooth), background-color 0.3s var(--transition-smooth);
    box-shadow: 0px 6px 20px rgba(185, 124, 91, 0.2); display: inline-block; border:none; cursor: pointer;
}
.cta-button:hover { background-color: var(--color-accent-muted-gold); transform: translateY(-4px) scale(1.03); box-shadow: 0px 10px 30px rgba(176, 147, 91, 0.3); color: var(--color-text-light); }
.cta-button.contact-specific { background: linear-gradient(135deg, var(--color-accent-terracotta) 0%, #A86B4F 100%); color: var(--color-text-light); box-shadow: 0 4px 12px rgba(80, 50, 30, 0.28); border: 1px solid rgba(0,0,0,0.15); font-weight: 700; letter-spacing: 1.3px; padding: 17px 42px; }
.cta-button.contact-specific:hover { background: linear-gradient(135deg, #A86B4F 0%, var(--color-accent-terracotta) 100%); transform: translateY(-4px) scale(1.02); box-shadow: 0 7px 18px rgba(80, 50, 30, 0.32); }
.contact-button-wrapper { text-align: center; margin-top: 2.5rem; position: relative; z-index: 1; }

/* ==========================================================================
   Content Sections & Shape Dividers
   ========================================================================== */
.content-section { padding: 0; position: relative; overflow: hidden; }
.content-section.alt-bg { background-color: var(--color-background-off-white); }

.shape-divider { position: absolute; left: 0; width: 100%; overflow: hidden; line-height: 0; z-index: 0;}
.shape-divider svg { position: relative; display: block; width: calc(100% + 1.3px); height: var(--wave-height); }
.shape-divider.top { top: 0; }
.shape-divider.bottom { bottom: -1px; transform: rotate(180deg); }
.shape-fill { fill: var(--color-background-main); }

.content-section.alt-bg > .shape-divider.top .shape-fill { fill: var(--color-background-off-white); }
.content-section:not(.alt-bg) > .shape-divider.top .shape-fill { fill: var(--color-background-main); }
#contact.content-section.alt-bg .shape-divider.top { top: -2px; z-index: 1; }
#contact.content-section.alt-bg .shape-divider.top svg { height: calc(var(--wave-height) + 2px); }
#contact.content-section.alt-bg > .shape-divider.top .shape-fill { fill: var(--color-background-off-white); }

.content-section:not(.alt-bg):not(#contact) .shape-divider.bottom .shape-fill { fill: var(--color-background-off-white); }
.content-section.alt-bg:not(#contact) .shape-divider.bottom .shape-fill { fill: var(--color-background-main); }

#contact.content-section.alt-bg .shape-divider.bottom { transform: rotate(0deg) !important; }
body #contact.content-section.alt-bg .shape-divider.bottom .shape-fill {
    fill: var(--color-primary-deep-brown) !important;
}

body .page-footer-wave.shape-divider.bottom {
    transform: rotate(0deg) !important;
}
body .page-footer-wave.shape-divider.bottom .shape-fill {
    fill: var(--color-primary-deep-brown) !important;
}

.page-wrapper-section.content-section.alt-bg > .shape-divider.top .shape-fill { fill: var(--color-background-off-white); }
.page-wrapper-section.content-section:not(.alt-bg) > .shape-divider.top .shape-fill { fill: var(--color-background-main); }

.section-content-wrapper {
    position: relative;
    z-index: 2;
    padding: clamp(60px, 10vw, 100px) 0;
}
.page-wrapper-section > .container.section-content-wrapper {
    padding-top: calc(var(--header-opaque-height) + 60px);
    padding-bottom: 100px;
}
.page-wrapper-section:has(> .shape-divider.top) > .container.section-content-wrapper {
    padding-top: calc(var(--wave-height) + var(--header-opaque-height) + 40px);
}
#valeurs > .container.section-content-wrapper .section-title-container,
#creations > .container.section-content-wrapper .section-title-container,
#contact > .container.section-content-wrapper .section-title-container {
    padding-top: 40px;
}
#contact.content-section > .container.section-content-wrapper {
    padding-bottom: calc(var(--wave-height) + 60px);
}

.section-title-container { margin-bottom: 3.5rem; text-align: center; }
.section-title-container h2 { position: relative; display: inline-block; padding-bottom: 0.8rem; }
.section-title-container h2::after { content:''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 80px; height: 3px; background-color: var(--color-accent-muted-gold); border-radius: 2px; }

/* ==========================================================================
   Specific Section Styles (Valeurs, Creations, etc.)
   ========================================================================== */
#valeurs .lead-text { font-size: 1.08rem; line-height: 1.8; color: #454545; font-weight:400; text-align: left; }
#valeurs .lead-text p { margin-bottom: 1.5em; }
#valeurs .lead-text p:last-child { margin-bottom: 0; }
#valeurs .lead-text p:first-of-type::first-letter { font-family: var(--font-display); font-size: 3.2em; color: var(--color-accent-terracotta); float: left; line-height: 0.7; padding-right: 0.12em; padding-top: 0.08em; font-weight: 700; }
.valeurs-content-layout { display: flex; flex-wrap: wrap; gap: 60px; align-items: center; }
.valeurs-text { flex: 2; min-width: 300px; }
.valeurs-image { flex: 1; min-width: 280px; max-width: 380px; margin-left: auto; margin-right: auto; }
.valeurs-image img { border-radius: var(--border-radius-card); box-shadow: var(--shadow-lifted); width: 100%;}

#creations .lead-text, #contact .lead-text { font-family: var(--font-body); font-size: 1.15rem; color: var(--color-text-dark); max-width: 780px; margin: 0 auto 3rem auto; font-weight: 300; text-align:center; }

.grid-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 40px; }
.grid-item { background-color: var(--color-background-main); border-radius: var(--border-radius-card); text-align: left; overflow: hidden; transition: transform 0.4s var(--transition-smooth), box-shadow 0.4s var(--transition-smooth); position: relative; box-shadow: 0px 6px 18px rgba(74, 59, 49, 0.04), 0px 18px 40px rgba(74, 59, 49, 0.06); }
.grid-item:hover { transform: translateY(-10px) scale(1.015); box-shadow: 0px 10px 28px rgba(74, 59, 49, 0.07), 0px 25px 55px rgba(74, 59, 49, 0.09); }
.grid-item img { width: 100%; height: 280px; object-fit: cover; transition: transform 0.5s ease; }
.grid-item:hover img { transform: scale(1.05); }
.grid-item-content { padding: 35px; }
.grid-item-content h3 { color: var(--color-text-heading); font-size: 1.45rem; margin-bottom: 0.8rem; font-weight: 700; }
.grid-item-content p { color: #505050; font-size: 0.98rem; margin-bottom: 1.25rem; font-weight: 400; }
.grid-item-content a.details-link { color: var(--color-accent-terracotta); font-weight: 500; font-size:0.9rem; text-transform: uppercase; letter-spacing: 1px; display: inline-block; transition: var(--transition-fast); }
.grid-item-content a.details-link::after{ content: ' ›'; font-size: 1.2em; }
.grid-item-content a.details-link:hover { color: var(--color-accent-muted-gold); }

/* ==========================================================================
   Blog Index / Archive Page Styles (home.php / index.php)
   ========================================================================== */
#blog-archive-header { text-align: center; position: relative; }
#blog-archive-header .page-title { margin-top: 0; margin-bottom: 0; }
#blog-posts-list { position: relative; background-color: var(--color-background-main); }
#blog-posts-list > .shape-divider.top .shape-fill { fill: var(--color-background-off-white); }

.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; margin-bottom: 40px; }
.blog-grid-item { background-color: var(--color-background-main); border-radius: var(--border-radius-card); overflow: hidden; box-shadow: var(--shadow-soft); transition: var(--transition-smooth); display: flex; flex-direction: column; }
.blog-grid-item:hover { transform: translateY(-8px); box-shadow: var(--shadow-lifted); }
.blog-grid-item .post-thumbnail { margin-bottom: 20px; }
.blog-grid-item .post-thumbnail img { width: 100%; height: 220px; object-fit: cover; border-top-left-radius: var(--border-radius-card); border-top-right-radius: var(--border-radius-card); }
.blog-grid-item .entry-header,
.blog-grid-item .entry-summary,
.blog-grid-item .entry-footer { padding-left: 25px; padding-right: 25px; }
.blog-grid-item .entry-header { padding-top: 25px; }
.blog-grid-item .entry-meta { font-size: 0.8rem; color: var(--color-secondary-medium-brown); margin-bottom: 15px; text-align: left; }
.blog-grid-item .entry-meta a { color: var(--color-secondary-medium-brown); }
.blog-grid-item .entry-meta a:hover { color: var(--color-accent-terracotta); }
.blog-grid-item .entry-summary { font-size: 0.95rem; color: var(--color-text-dark); flex-grow: 1; padding-top:15px; padding-bottom: 15px;}
.blog-grid-item .entry-summary p:last-child { margin-bottom: 0; }
.blog-grid-item .entry-footer { padding-top:15px; padding-bottom: 25px; margin-top: auto; text-align: left; }
.blog-grid-item .read-more-link { color: var(--color-accent-terracotta); font-weight: 700; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.5px; }
.blog-grid-item .read-more-link:hover { color: var(--color-accent-muted-gold); }

.navigation.posts-navigation { margin-top: 40px; margin-bottom: 20px; text-align: center; }
.navigation.posts-navigation .nav-links { display: inline-flex; gap: 10px; align-items: center; }
.navigation.posts-navigation .nav-links .page-numbers { padding: 8px 15px; border: 1px solid var(--color-secondary-medium-brown); border-radius: 4px; color: var(--color-secondary-medium-brown); text-decoration: none; transition: var(--transition-fast); }
.navigation.posts-navigation .nav-links .page-numbers:hover,
.navigation.posts-navigation .nav-links .page-numbers.current { background-color: var(--color-accent-terracotta); color: var(--color-text-light); border-color: var(--color-accent-terracotta); }
.navigation.posts-navigation .nav-links .prev,
.navigation.posts-navigation .nav-links .next { font-weight: 700; }

#blog-archive-header.page-wrapper-section > .container.section-content-wrapper {
    padding-top: calc(var(--header-opaque-height) + 60px);
    padding-bottom: 40px;
}
#blog-posts-list.page-wrapper-section > .container.section-content-wrapper {
    padding-top: calc(var(--wave-height) + 40px);
    padding-bottom: 100px;
}
#blog-archive-header.page-wrapper-section .section-title-container { margin-bottom: 0; }
#blog-archive-header.page-wrapper-section { padding-bottom: 0; }

/* ==========================================================================
   Single Post Page Styles (single.php) - AMÉLIORATIONS
   ========================================================================== */
#single-post-content .entry-header { text-align: center; margin-bottom: 50px; }
#single-post-content .entry-meta { font-size: 0.85rem; color: var(--color-secondary-medium-brown); margin-top: -1.2rem; margin-bottom: 35px; line-height: 1.6; }
#single-post-content .entry-meta a { color: var(--color-secondary-medium-brown); text-decoration: none; border-bottom: 1px dotted transparent; transition: var(--transition-fast); }
#single-post-content .entry-meta a:hover { color: var(--color-accent-terracotta); border-bottom-color: var(--color-accent-terracotta); }
#single-post-content .entry-meta span { margin: 0 8px; display: inline-block; }
#single-post-content .entry-meta span:first-child { margin-left: 0; }
#single-post-content .entry-meta span:last-child { margin-right: 0; }
#single-post-content .entry-meta .meta-sep { display: none; }

#single-post-content .post-thumbnail-single { margin-bottom: 50px; text-align: center; }
#single-post-content .post-thumbnail-single img { width: 100%; height: auto; max-width: 900px; margin-left: auto; margin-right: auto; border-radius: var(--border-radius-soft); box-shadow: var(--shadow-lifted); }
#single-post-content .entry-content { max-width: 820px; margin-left: auto; margin-right: auto; font-size: 1.05rem; line-height: 1.8; color: var(--color-text-dark); }
#single-post-content .entry-content p { margin-bottom: 1.8em; }
#single-post-content .entry-content iframe,
.wp-block-embed iframe { max-width: 100%; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--border-radius-card); margin: 2em auto; display: block; box-shadow: var(--shadow-soft); }
#single-post-content .entry-content .wp-block-embed__wrapper { margin-top: 2em; margin-bottom: 2em; }

.navigation.post-navigation { max-width: 820px; margin-left: auto; margin-right: auto; margin-top: 80px; margin-bottom: 60px; border-top: 1px solid var(--color-secondary-medium-brown); opacity: 0.6; padding-top: 30px; transition: opacity var(--transition-fast); }
.navigation.post-navigation:hover { opacity: 1; }
.navigation.post-navigation .nav-links { display: flex; justify-content: space-between; }
.navigation.post-navigation .nav-previous,
.navigation.post-navigation .nav-next { flex-basis: 48%; } /* Slightly less than 50% for small gap */
.navigation.post-navigation .nav-previous { text-align: left; }
.navigation.post-navigation .nav-next { text-align: right; }
.navigation.post-navigation .nav-links a { color: var(--color-primary-deep-brown); text-decoration: none; font-weight: 500; font-size: 0.95rem; transition: var(--transition-fast); }
.navigation.post-navigation .nav-links a:hover { color: var(--color-accent-terracotta); }
.navigation.post-navigation .nav-links .meta-nav { font-size: 1em; margin: 0 8px; color: var(--color-accent-terracotta); }
.navigation.post-navigation .nav-links .nav-text { font-size: 1rem; font-weight: 700; font-family: var(--font-heading); }

#comments { max-width: 820px; margin-left: auto; margin-right: auto; margin-top: 60px; padding-top: 40px; border-top: 1px solid var(--color-secondary-medium-brown); opacity: 0.8; transition: opacity var(--transition-fast); }
#comments:hover { opacity: 1; }
#comments .comments-title,
#comments .comment-reply-title { font-family: var(--font-display); color: var(--color-text-heading); font-size: clamp(1.8rem, 3.5vw, 2.5rem); margin-bottom: 40px; text-align: center; }
#comments .comment-list { list-style: none; padding: 0; margin: 0;}
#comments .comment { border-bottom: 1px solid rgba(0,0,0,0.05); padding: 25px 0; }
#comments .comment:last-child { border-bottom: none; }
#comments .comment .comment-author.vcard { font-weight: 700; font-family: var(--font-heading); font-size: 1.1rem; color: var(--color-text-heading); }
#comments .comment .comment-author.vcard img.avatar { border-radius: 50%; margin-right: 10px; vertical-align: middle; }
#comments .comment .commentmetadata { font-size: 0.75rem; color: var(--color-secondary-medium-brown); margin-bottom: 15px; margin-top: 5px; text-transform: uppercase; letter-spacing: 0.5px; }
#comments .comment .commentmetadata a { color: inherit; text-decoration: none;}
#comments .comment .commentmetadata a:hover { color: var(--color-accent-terracotta); }
#comments .comment .comment-content { margin-top: 10px; font-size: 1rem; line-height: 1.7; }
#comments .comment .reply { font-size: 0.85rem; margin-top: 15px; text-align: right; }
#comments .comment .reply a { color: var(--color-accent-terracotta); text-decoration: none; font-weight: 700; padding: 5px 10px; border-radius: 4px; transition: var(--transition-fast); }
#comments .comment .reply a:hover { background-color: var(--color-accent-muted-gold); color: var(--color-text-light); }

#respond { margin-top: 50px; padding-top: 40px; border-top: 1px solid var(--color-secondary-medium-brown); background-color: var(--color-background-off-white); padding: 40px; border-radius: var(--border-radius-soft); box-shadow: var(--shadow-soft); }
#respond #reply-title small { font-size: 0.7em; margin-left: 10px; }
#respond label { display: block; margin-bottom: 8px; font-weight: 500; font-size: 0.9rem; color: var(--color-text-heading);}
#respond input[type="text"],
#respond input[type="email"],
#respond input[type="url"],
#respond textarea { display: block; width: 100%; padding: 15px; margin-bottom: 25px; border: 1px solid #D8D8D8; border-radius: var(--border-radius-card); font-size: 1rem; font-family: var(--font-body); background-color: var(--color-background-main); transition: border-color var(--transition-fast), box-shadow var(--transition-fast); }
#respond input[type="text"]:focus,
#respond input[type="email"]:focus,
#respond input[type="url"]:focus,
#respond textarea:focus { outline: none; border-color: var(--color-accent-muted-gold); box-shadow: 0 0 0 3px rgba(176, 147, 91, 0.15); }
#respond .comment-form-cookies-consent { font-size: 0.85rem; font-weight: normal; color: var(--color-text-dark);}
#respond .comment-form-cookies-consent input[type="checkbox"] { width: auto; margin-right: 8px; vertical-align: middle; }
#respond .comment-form-cookies-consent label { font-weight: normal; }
#respond .form-submit .submit { background-color: var(--color-accent-terracotta); color: var(--color-text-light); padding: 16px 40px; border-radius: 50px; font-weight: 700; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1.3px; transition: transform 0.3s var(--transition-smooth), box-shadow 0.3s var(--transition-smooth), background-color 0.3s var(--transition-smooth); box-shadow: 0px 6px 20px rgba(185, 124, 91, 0.2); border: none; cursor: pointer; display: inline-block; }
#respond .form-submit .submit:hover { background-color: var(--color-accent-muted-gold); transform: translateY(-4px) scale(1.03); box-shadow: 0px 10px 30px rgba(176, 147, 91, 0.3); color: var(--color-text-light); }
#respond .form-submit .submit:focus-visible { box-shadow: 0 0 0 3px var(--color-background-main), 0 0 0 5.5px var(--color-accent-muted-gold); outline: none; }


/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background-color: var(--color-primary-deep-brown); color: var(--color-text-light-alt); padding-top: 60px; padding-bottom: 30px; position: relative; z-index: 0; }
.footer-main-content { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 30px; margin-bottom: 40px; position: relative; z-index: 2; }
.footer-block { flex: 1; min-width: 220px; margin-bottom: 30px;}
.footer-block ul { list-style: none; padding:0; margin:0;}
.footer-block ul li { margin-bottom: 10px;}
.footer-block ul li a, .footer-block p, .footer-block address, .footer-block address a { color: #D8D8D8; font-size: 0.88rem; font-weight: 400; font-style: normal; transition: var(--transition-fast); }
.footer-block ul li a:hover, .footer-block address a:hover { color: var(--color-text-light); }
.footer-socials { margin-top: 15px; display:flex; align-items: center; justify-content: flex-start; gap: 20px; }
.footer-socials a { margin-right: 0; display: inline-flex; align-items:center; justify-content:center; transition: var(--transition-fast), transform var(--transition-fast); }
.footer-socials a img, .footer-socials a svg { width: 20px; height: 20px; fill: #D8D8D8; object-fit: contain; border-radius: 3px; transition: var(--transition-fast); }
.footer-socials a:hover svg { fill: var(--color-accent-muted-gold); }
.footer-socials a:hover { transform: translateY(-2px); }
.footer-socials a:hover img { opacity: 0.8; }
.labels-section { margin-top: 20px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.artisan-label img { max-width: 120px; height: auto; display: block; }
.region-label img { max-width: 90px; height: auto; display: block; background-color: #fff; padding: 3px; border: 1px solid #ddd; box-sizing: border-box; }
.footer-bottom { font-size: 0.8rem; color: #B0B0B0; text-align: center; border-top: 1px solid rgba(255,255,255,0.08); padding-top: 25px; margin-top: 30px; position: relative; z-index: 2; }

/* ==========================================================================
   Utilities (Reveal on Scroll, Accessibility)
   ========================================================================== */
.reveal-on-scroll { opacity: 0; transform: translateY(30px); transition: opacity 0.8s var(--transition-smooth), transform 0.8s var(--transition-smooth); }
.reveal-on-scroll.delay-1 { transition-delay: 0.1s; }
.reveal-on-scroll.delay-2 { transition-delay: 0.2s; }
.reveal-on-scroll.delay-3 { transition-delay: 0.3s; }
.reveal-on-scroll.revealed { opacity: 1; transform: translateY(0); }

/* Bloque le défilement de la page lorsque le menu mobile est ouvert */
body.mobile-menu-active {
    overflow: hidden;
}

.visually-hidden,
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    -webkit-clip-path: inset(50%);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}
.screen-reader-text:focus,
.skip-link:focus {
    background-color: var(--color-primary-deep-brown) !important;
    color: var(--color-text-light) !important;
    padding: 0.6rem 1rem !important;
    border-radius: 0.4rem !important;
    clip: auto !important;
    -webkit-clip-path: none;
    clip-path: none;
    display: block;
    font-size: 0.875rem;
    font-weight: bold;
    height: auto;
    left: 0.5rem;
    line-height: normal;
    text-decoration: none;
    top: 0.5rem;
    width: auto;
    z-index: 100001 !important;
    outline: 2.5px solid var(--color-accent-muted-gold);
    outline-offset: 3px;
    box-shadow: 0 0 0 5px rgba(176, 147, 91, 0.15);
}

/* ==========================================================================
   WordPress Generated Content Styles / Page Template Styles
   ========================================================================== */
.page-wrapper-section .page-article-content .entry-content {
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}
.page-wrapper-section .page-article-content .entry-content p { margin-bottom: 1.5em; }
.page-wrapper-section .page-article-content .entry-content img { margin-top: 1.5em; margin-bottom: 1.5em; border-radius: var(--border-radius-soft); }

.aligncenter { display: block; margin-left: auto; margin-right: auto; text-align: center; }
.alignleft { float: left; margin-right: 1.5em; margin-bottom: 1em; }
.alignright { float: right; margin-left: 1.5em; margin-bottom: 1em; }
img.aligncenter { margin-bottom: 1em; }
img.alignleft, img.alignright { margin-bottom: 0.5em; }
.wp-caption { max-width: 100%; background: #f9f9f9; border: 1px solid #ddd; padding: 0.5em; margin-bottom: 1.5em; }
.wp-caption img { margin-bottom: 0.5em; display: block; margin-left: auto; margin-right: auto; }
.wp-caption-text { font-size: 0.9em; color: #555; text-align: center; line-height: 1.4; }
.gallery { margin-bottom: 1.5em; }
.gallery-item { display: inline-block; text-align: center; vertical-align: top; width: 100%; }
.gallery-columns-2 .gallery-item { width: 50%; }
.gallery-columns-3 .gallery-item { width: 33.33%; }
.gallery-columns-4 .gallery-item { width: 25%; }
.gallery-columns-5 .gallery-item { width: 20%; }
.gallery-caption { display: block; font-size: 0.9em; color: #555; padding: 0.5em 0; }

/* ==========================================================================
   Media Queries
   ========================================================================== */
@media (max-width: 900px) {
    .main-nav {
        position: fixed; top: 0; right: -100%; width: min(75vw, 320px); height: 100vh;
        background-color: rgba(50, 35, 25, 0.98);
        backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
        box-shadow: -8px 0 25px rgba(0,0,0,0.15);
        padding-top: 90px; transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        overflow-y: auto; z-index: 9999;
    }
    .main-nav.active { right: 0; }
    .main-nav ul { flex-direction: column; width: 100%; align-items: stretch; }
    .main-nav ul li { margin-left: 0; }
    .main-nav ul li a {
        padding: 20px 30px; display: block; width: 100%;
        color: var(--color-text-light-alt) !important;
        font-size: 1.05rem; text-transform: none; letter-spacing: 0.3px;
        text-shadow: none !important;
        align-items: center; white-space: normal; font-weight: 700;
    }
    .main-nav ul li a .cart-icon-wrapper { top: 0; }
    .main-nav ul li:last-child a { padding-left: 30px; padding-right: 30px; }
    .main-nav ul li a::after { display: none; }
    .main-nav ul li a:hover {
        background-color: rgba(255,255,255,0.03);
        color: var(--color-accent-muted-gold) !important;
    }
    .menu-toggle { display: flex; align-items: center; justify-content: center; z-index: 10000; }
    .hero-content h1 { font-size: clamp(2.2rem, 7vw, 3.2rem); }
    h2, .page-title, #blog-archive-header .page-title, #single-post-content .entry-title { font-size: clamp(1.8rem, 4.5vw, 2.5rem); }
    
    .page-wrapper-section > .container.section-content-wrapper,
    #blog-archive-header.page-wrapper-section > .container.section-content-wrapper,
    #blog-posts-list.page-wrapper-section > .container.section-content-wrapper,
    #single-post-content.page-wrapper-section > .container.section-content-wrapper {
        padding-top: calc(var(--header-opaque-height) + 40px);
        padding-bottom: 80px;
    }
    .page-wrapper-section:has(> .shape-divider.top) > .container.section-content-wrapper,
    #blog-posts-list.page-wrapper-section:has(> .shape-divider.top) > .container.section-content-wrapper {
        padding-top: calc(var(--wave-height) + var(--header-opaque-height) + 30px);
    }
    #contact.content-section > .container.section-content-wrapper { padding-bottom: calc(var(--wave-height) + 40px); }

    .footer-main-content { flex-direction: column; align-items: center; text-align: center;}
    .footer-block { text-align: center; }
    .footer-block ul {text-align: center;}
    .footer-socials { justify-content: center; }
    .labels-section { justify-content: center; }
    .logo-area { margin-right: 20px; }
    .valeurs-content-layout { flex-direction: column; align-items: center; }
    .valeurs-text { order: 2; margin-top: 30px; text-align: left; }
    #valeurs .lead-text p:first-of-type::first-letter { font-size: 2.8em; line-height: 0.7; }
    .valeurs-image { order: 1; max-width: 300px; padding-top:0;}
    #valeurs .lead-text { font-size: 1rem; }
     /* Single Post Mobile */
    #single-post-content .entry-header { text-align: left; margin-bottom: 30px; }
    #single-post-content .entry-meta { text-align: left; }
    #single-post-content .post-thumbnail-single { margin-bottom: 30px; }
    .navigation.post-navigation { margin-top: 40px; margin-bottom: 30px;}
    #comments { margin-top: 30px; }
    #comments .comments-title, #comments .comment-reply-title { font-size: clamp(1.4rem, 4vw, 1.8rem); margin-bottom: 20px;}
    #respond { margin-top: 30px; padding-top: 20px;}
}

@media (max-width: 600px) {
    :root { --wave-height: 60px; --header-opaque-height: 70px; }
    .page-title, #blog-archive-header .page-title, #single-post-content .entry-title { font-size: clamp(1.8rem, 6vw, 2.5rem); }
    h2 { font-size: clamp(1.6rem, 5vw, 2.2rem); }
    /* Titres plus petits pour les cartes d'articles sur mobile - SANS !important */
    #blog-posts-list .blog-grid-item .entry-title { 
        font-size: clamp(1.1rem, 1.8vw, 1.3rem);
    }


    .page-wrapper-section > .container.section-content-wrapper,
    #blog-archive-header.page-wrapper-section > .container.section-content-wrapper,
    #blog-posts-list.page-wrapper-section > .container.section-content-wrapper,
    #single-post-content.page-wrapper-section > .container.section-content-wrapper {
        padding-top: calc(var(--header-opaque-height) + 30px);
        padding-bottom: 60px;
    }
    .page-wrapper-section:has(> .shape-divider.top) > .container.section-content-wrapper,
    #blog-posts-list.page-wrapper-section:has(> .shape-divider.top) > .container.section-content-wrapper {
        padding-top: calc(var(--wave-height) + var(--header-opaque-height) + 20px);
    }
    #contact.content-section > .container.section-content-wrapper { padding-bottom: calc(var(--wave-height) + 30px); }

    .site-footer { padding-top: 40px; }
    .cta-button, .cta-button.contact-specific { padding: 16px 35px; font-size: 0.85rem; letter-spacing: 1px;}
    .hero-content .sub-headline { padding: 0 10px;}
    .grid-item { clip-path: none; border-radius: var(--border-radius-soft); }
    .logo-area { margin-right: 10px; gap: 12px; }
    .logo-area .logo-img-wrapper { width: 55px; height: 55px; }
    .site-header .logo-area .logo-img-wrapper { width: 45px; height: 45px; }
    body.home .site-header:not(.scrolled) .logo-area .logo-img-wrapper,
    body.front-page .site-header:not(.scrolled) .logo-area .logo-img-wrapper { width: 55px; height: 55px; }
    .logo-area .site-branding .site-title { font-size: 1.4rem; }
    body.home .site-header:not(.scrolled) .logo-area .site-branding .site-title,
    body.front-page .site-header:not(.scrolled) .logo-area .site-branding .site-title { font-size: 1.55rem; }
    .logo-area .site-branding .site-tagline { font-size: 0.62rem; }
    body.home .site-header:not(.scrolled) .logo-area .site-branding .site-tagline,
    body.front-page .site-header:not(.scrolled) .logo-area .site-branding .site-tagline { font-size: 0.68rem; }
     #valeurs .lead-text { text-align: center; }
     #valeurs .lead-text p:first-of-type::first-letter { float: none; display: block; text-align: center; font-size: 2.5em; line-height: 1; padding-right: 0; margin-bottom: 0.1em;}
    .blog-grid { grid-template-columns: 1fr; gap: 30px; }
    /* Single Post Mobile */
    #single-post-content .entry-header { margin-bottom: 20px; }
    #single-post-content .entry-meta { font-size: 0.8rem; margin-bottom: 15px;} /* Encore un peu plus petit pour mobile */
    #single-post-content .post-thumbnail-single { margin-bottom: 20px; }
    .navigation.post-navigation { margin-top: 30px; margin-bottom: 20px; flex-direction: column; gap: 15px;}
    .navigation.post-navigation .nav-previous, .navigation.post-navigation .nav-next { text-align: center; flex-basis:auto; }
    #comments { margin-top: 20px;}
    #comments .comments-title, #comments .comment-reply-title { font-size: clamp(1.3rem, 5vw, 1.6rem); margin-bottom: 15px;}
    #comments .comment { padding: 15px 0;}
    #respond { margin-top: 20px; padding: 20px;} /* Moins de padding sur mobile */
    #respond input[type="text"], #respond input[type="email"], #respond input[type="url"], #respond textarea { padding: 12px; margin-bottom: 15px; }
    #respond .form-submit .submit { padding: 14px 30px; font-size: 0.85rem;}
}