/*
Theme Name: WOODECORA
Theme URI: https://woodecora.fr
Author: WOODECORA
Description: Thème WooCommerce professionnel pour WOODECORA - Décoration intérieure, extérieure et terrarium/reptiles en liège naturel
Version: 6.0.0
Requires at least: 6.0
Tested up to: 6.9.4
Requires PHP: 8.0
License: GPL v2 or later
Text Domain: woodecora
Tags: e-commerce, one-column, custom-menu, custom-logo, featured-images
*/

/* ============================================
   VARIABLES & BASE
   ============================================ */
:root {
    --primary: #8B4513;
    --primary-light: #A0522D;
    --secondary: #2E7D32;
    --secondary-light: #43A047;
    --accent: #FF6B35;
    --accent-light: #FF8A50;
    --white: #FFFFFF;
    --cream: #FAF7F2;
    --beige: #F5EDE0;
    --beige-dark: #E8D4B8;
    --brown-dark: #5D4E37;
    --brown-light: #7B6B5B;
    --gray: #6B6B6B;
    --gray-light: #9E9E9E;
    --text-dark: #1A1A1A;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.2);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --transition: all 0.3s ease;
    --transition-slow: all 0.5s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background: var(--cream);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

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

ul {
    list-style: none;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--brown-dark);
    font-weight: 600;
    line-height: 1.3;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

/* ============================================
   LAYOUT
   ============================================ */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.125rem;
}

.section-tag {
    display: inline-block;
    background: var(--beige);
    color: var(--primary);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-white {
    background: white;
    color: var(--brown-dark);
    border-color: white;
}

.btn-white:hover {
    background: var(--cream);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-dark {
    background: var(--brown-dark);
    color: white;
    border-color: var(--brown-dark);
}

.btn-dark:hover {
    background: var(--brown-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-light {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-outline-light:hover {
    background: white;
    color: var(--brown-dark);
}

.btn-outline-white {
    background: transparent;
    color: white;
    border-color: rgba(255,255,255,0.5);
}

.btn-outline-white:hover {
    background: white;
    color: var(--brown-dark);
    border-color: white;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1rem;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: white;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-top {
    background: var(--brown-dark);
    color: var(--cream);
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

.header-top-content {
    display: flex;
    justify-content: space-between;
}

.header-top-left {
    display: flex;
    gap: 2rem;
}

.header-main {
    padding: 1rem 0;
}

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

.site-logo a {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
}

.site-logo a span {
    color: var(--secondary);
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-menu a {
    font-weight: 500;
    color: var(--brown-dark);
    transition: var(--transition);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--primary);
}

.nav-menu a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    gap: 1rem;
}

.header-action-btn {
    width: 44px;
    height: 44px;
    background: var(--beige);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brown-dark);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.header-action-btn:hover {
    background: var(--primary);
    color: white;
}

/* ============================================
   HERO HOME
   ============================================ */
.hero-home {
    min-height: clamp(520px, 85vh, 820px);
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--brown-dark) 0%, #6B4423 50%, var(--primary) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    padding-right: 2rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255,255,255,0.2);
}

.hero-badge .wd-icon {
    color: #4CAF50;
}

.hero-text h1 {
    color: white;
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-text h1 .highlight {
    color: #F4A460;
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.hero-features {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    opacity: 0.9;
}

.hero-feature .wd-icon {
    color: #4CAF50;
}

.hero-visual {
    display: flex;
    justify-content: center;
}

.hero-image-wrapper {
    position: relative;
}

.hero-image-frame {
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
}

.hero-logo {
    max-width: 80%;
    max-height: 80%;
    border-radius: 20px;
}

.hero-logo-placeholder {
    text-align: center;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: white;
}

.logo-text .accent {
    color: #4CAF50;
}

.hero-badge-float {
    position: absolute;
    background: white;
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-lg);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--brown-dark);
    animation: float 3s ease-in-out infinite;
}

.hero-badge-float .wd-icon {
    color: var(--primary);
}

.badge-1 {
    top: 20%;
    left: -30px;
    animation-delay: 0s;
}

.badge-2 {
    bottom: 20%;
    right: -30px;
    animation-delay: 1.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    line-height: 0;
}

.hero-wave svg {
    width: 100%;
    height: auto;
}

/* ============================================
   INFO BAR
   ============================================ */
.info-bar-home {
    background: white;
    padding: 2rem 0;
    border-bottom: 1px solid var(--beige);
}

.info-bar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.info-item:hover {
    background: var(--beige);
}

.info-icon {
    width: 50px;
    height: 50px;
    background: var(--cream);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--primary);
}

.info-text strong {
    display: block;
    color: var(--brown-dark);
    font-size: 0.9375rem;
}

.info-text span {
    font-size: 0.8125rem;
    color: var(--gray);
}

/* ============================================
   CATEGORIES SHOWCASE
   ============================================ */
.univers-section {
    background: var(--cream);
}

.categories-showcase {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.category-card-home {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: white;
    transition: var(--transition);
}

.category-card-home:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.category-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transition: var(--transition-slow);
}

.category-card-home:hover .category-card-bg {
    transform: scale(1.05);
}

.category-card-content {
    position: relative;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
    z-index: 1;
}

.category-icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.category-card-home h3 {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.category-card-home p {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.category-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.feature-tag {
    background: rgba(255,255,255,0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
}

.category-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: var(--transition);
}

.category-link .wd-icon {
    transition: var(--transition);
}

.category-card-home:hover .category-link .wd-icon {
    transform: translateX(5px);
}

.section-cta {
    text-align: center;
}

/* ============================================
   CORK SECTION
   ============================================ */
.cork-section {
    background: white;
}

.cork-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.cork-text .section-tag {
    margin-bottom: 0.75rem;
}

.cork-text h2 {
    margin-bottom: 1.5rem;
}

.cork-text .highlight {
    color: var(--primary);
}

.cork-text .lead {
    font-size: 1.125rem;
    color: var(--gray);
    line-height: 1.9;
    margin-bottom: 2.5rem;
}

.cork-features {
    display: grid;
    gap: 1.5rem;
}

.cork-feature {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.cork-feature-icon {
    width: 56px;
    height: 56px;
    background: var(--cream);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--primary);
    flex-shrink: 0;
}

.cork-feature-text h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.cork-feature-text p {
    font-size: 0.9375rem;
    color: var(--gray);
    line-height: 1.6;
}

.cork-visual {
    display: flex;
    justify-content: center;
}

.cork-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 450px;
}

.cork-image-main {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    color: white;
    box-shadow: var(--shadow-xl);
}

.cork-stat {
    position: absolute;
    background: white;
    padding: 1.25rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    text-align: center;
    animation: float 3s ease-in-out infinite;
}

.cork-stat-1 {
    top: 10%;
    left: -20px;
    animation-delay: 0s;
}

.cork-stat-2 {
    bottom: 15%;
    right: -20px;
    animation-delay: 1.5s;
}

.stat-number {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    font-family: 'Playfair Display', serif;
}

.stat-label {
    font-size: 0.8125rem;
    color: var(--gray);
}

/* ============================================
   ADVANTAGES SECTION
   ============================================ */
.advantages-section {
    background: var(--cream);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.advantage-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

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

.advantage-icon {
    width: 80px;
    height: 80px;
    background: var(--cream);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary);
    margin: 0 auto 1.5rem;
    transition: var(--transition);
}

.advantage-card:hover .advantage-icon {
    background: var(--primary);
    color: white;
}

.advantage-card h3 {
    margin-bottom: 0.75rem;
}

.advantage-card p {
    color: var(--gray);
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
.testimonials-section {
    background: white;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testimonial-card {
    background: var(--cream);
    padding: 2rem;
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.testimonial-card.featured {
    background: var(--brown-dark);
    color: white;
}

.testimonial-card.featured h4,
.testimonial-card.featured strong {
    color: white;
}

.testimonial-card.featured .author-avatar {
    background: rgba(255,255,255,0.2);
}

.testimonial-stars {
    color: #F9A825;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.author-info strong {
    display: block;
    font-size: 0.9375rem;
}

.author-info span {
    font-size: 0.8125rem;
    color: var(--gray);
}

.testimonial-card.featured .author-info span {
    color: rgba(255,255,255,0.7);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    color: white;
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-text h2 {
    color: white;
    margin-bottom: 1rem;
}

.cta-text p {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ============================================
   BOUTIQUE PAGE
   ============================================ */

/* ============================================
   PRODUCTS GRID
   ============================================ */

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--brown-dark);
    color: var(--cream);
}

.footer-main {
    padding: 5rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
}

.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.footer-column h3 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    opacity: 0.8;
    transition: var(--transition);
    font-size: 0.9375rem;
}

.footer-links a:hover {
    opacity: 1;
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.5rem 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
    .categories-showcase {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text {
        padding-right: 0;
    }

    .hero-visual {
        display: none;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-features {
        justify-content: center;
    }

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

    .cork-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .cork-visual {
        order: -1;
    }

    .cork-image-wrapper {
        max-width: 350px;
    }

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

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-grid .testimonial-card.featured {
        order: -1;
    }

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

@media (max-width: 768px) {
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.75rem; }

    .header-top {
        display: none;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .info-bar-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .categories-showcase {
        grid-template-columns: 1fr;
    }

    .category-card-home {
        min-height: 300px;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .section {
        padding: 3rem 0;
    }

    .hero-home {
        min-height: auto;
        padding: 3rem 0;
    }

    .hero-features {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .cork-feature {
        flex-direction: column;
        text-align: center;
    }

    .cork-feature-icon {
        margin: 0 auto;
    }
}

/* ==========================================================================
   V5.9 - AJOUTS
   Mise en page en classes (plus de styles inline), menu mobile, pages
   standard, accessibilité. Les styles WooCommerce sont dans
   assets/css/woocommerce.css, ceux du portail boutique dans assets/css/shop.css.
   ========================================================================== */
:root {
    --header-h: 112px;
}

/* --- Structure : en-tête fixe compensé une seule fois, ici --- */
.site-main {
    display: block;
    padding-top: var(--header-h);
    min-height: 50vh;
}

[id] {
    scroll-margin-top: calc(var(--header-h) + 16px);
}

.admin-bar .site-header {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}

@media (max-width: 600px) {
    .admin-bar .site-header {
        top: 0;
    }
}

.container-narrow {
    max-width: 960px;
}

.section-white {
    background: white;
}

.h3 { font-size: 1.5rem; }
.h4 { font-size: 1.25rem; }

/* --- Accessibilité --- */
.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -100px;
    z-index: 2000;
    background: var(--brown-dark);
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.skip-link:focus {
    top: 1rem;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* --- En-tête --- */
.header-top-content {
    align-items: center;
    gap: 1rem;
}

.header-top a:hover {
    text-decoration: underline;
}

.header-main-content {
    gap: 1.5rem;
}

.site-logo img,
.site-logo .custom-logo {
    max-height: 56px;
    width: auto;
}

.site-logo .custom-logo-link {
    display: block;
}

.nav-menu li {
    position: relative;
}

.nav-menu .current-menu-item > a,
.nav-menu .current-menu-ancestor > a,
.nav-menu .current_page_item > a {
    color: var(--primary);
}

.nav-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: -1rem;
    min-width: 220px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem 1rem;
    z-index: 10;
}

.nav-menu li:hover > .sub-menu,
.nav-menu li:focus-within > .sub-menu {
    display: block;
}

.nav-menu .sub-menu a {
    display: block;
    padding: 0.5rem 0;
}

.nav-menu .sub-menu a::after {
    display: none;
}

.header-actions {
    align-items: center;
    flex-shrink: 0;
}

.header-cart {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 10px;
    background: var(--secondary);
    color: white;
    font-size: 0.6875rem;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
}

.cart-count.is-empty {
    display: none;
}

.menu-toggle {
    display: none;
    font-size: 1.125rem;
}

@media (max-width: 960px) {
    .menu-toggle {
        display: flex;
    }

    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        border-top: 1px solid var(--beige);
        box-shadow: var(--shadow-lg);
        max-height: calc(100vh - var(--header-h));
        overflow-y: auto;
    }

    body.nav-open .site-nav {
        display: block;
    }

    .nav-menu {
        flex-direction: column;
        gap: 0;
        padding: 0.5rem 1.5rem 1rem;
    }

    .nav-menu a {
        display: block;
        padding: 0.875rem 0.25rem;
        border-bottom: 1px solid var(--beige);
    }

    .nav-menu a::after {
        display: none;
    }

    .nav-menu .sub-menu {
        display: block;
        position: static;
        box-shadow: none;
        padding: 0 0 0 1rem;
        min-width: 0;
    }

    .nav-menu .sub-menu a {
        padding: 0.75rem 0.25rem;
    }
}

@media (max-width: 480px) {
    .header-main {
        padding: 0.75rem 0;
    }

    .header-main-content {
        gap: 0.5rem;
    }

    .header-actions {
        gap: 0.5rem;
    }

    .site-logo a {
        font-size: 1.375rem;
    }

    .site-logo img,
    .site-logo .custom-logo {
        max-height: 44px;
    }
}

/* --- Bandeau de titre des pages --- */
.page-hero {
    background: linear-gradient(135deg, var(--brown-dark), var(--primary));
    color: white;
    padding: 4.5rem 0;
    text-align: center;
}

.page-hero h1 {
    color: white;
}

.page-hero p {
    opacity: 0.9;
    margin-top: 0.5rem;
}

.page-hero .term-description {
    max-width: 640px;
    margin: 1rem auto 0;
}

.page-hero .woocommerce-breadcrumb {
    margin: 1.5rem 0 0;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.85);
}

.page-hero .woocommerce-breadcrumb a {
    color: white;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .page-hero {
        padding: 3rem 0;
    }
}

/* --- Contenu saisi dans l'éditeur --- */
.content-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
}

.entry-content > * + * {
    margin-top: 1.25rem;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin-top: 2rem;
}

.entry-content h2 { font-size: 1.75rem; }
.entry-content h3 { font-size: 1.375rem; }

.entry-content > :first-child {
    margin-top: 0;
}

.entry-content ul,
.entry-content ol {
    padding-left: 1.5rem;
}

.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }

.entry-content li + li {
    margin-top: 0.375rem;
}

.entry-content a:not(.btn):not(.button):not(.wp-block-button__link):not(.wc-block-components-button) {
    color: var(--primary);
    text-decoration: underline;
}

.entry-content img {
    border-radius: var(--radius-md);
}

.entry-content blockquote {
    border-left: 4px solid var(--beige-dark);
    padding-left: 1.25rem;
    color: var(--gray);
    font-style: italic;
}

.entry-content table {
    width: 100%;
    border-collapse: collapse;
}

.entry-content th,
.entry-content td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--beige);
    text-align: left;
}

.entry-content .alignwide,
.entry-content .alignfull {
    max-width: 100%;
}

.entry-thumb {
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 2rem;
}

.page-hero-meta {
    font-size: 0.9375rem;
}

.page-links {
    margin-top: 2rem;
    font-weight: 600;
}

/* --- Listes d'articles, recherche, 404 --- */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.post-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
}

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

.post-card-body {
    padding: 1.5rem;
}

.post-card-title {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.post-card-body p {
    color: var(--gray);
    font-size: 0.9375rem;
    margin-bottom: 1rem;
}

.post-card-more {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
}

.pagination,
.post-navigation {
    margin-top: 3rem;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 0.5rem 0.9rem;
    border-radius: var(--radius-sm);
    background: white;
    font-weight: 500;
}

.pagination .page-numbers.current {
    background: var(--primary);
    color: white;
}

.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-weight: 600;
    color: var(--primary);
}

.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    background: white;
    border-radius: var(--radius-lg);
}

.empty-state > * + * {
    margin-top: 1.25rem;
}

.empty-state p {
    color: var(--gray);
}

.empty-state-icon {
    font-size: 3rem;
    color: var(--beige-dark);
    display: block;
}

.empty-state-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.search-box {
    max-width: 560px;
    margin: 0 auto 2.5rem;
}

.empty-state .search-box {
    margin-bottom: 0;
}

.search-form {
    display: flex;
    gap: 0.5rem;
}

.search-form .search-field {
    flex: 1;
    min-width: 0;
    padding: 0.875rem 1rem;
    border: 1px solid var(--beige-dark);
    border-radius: var(--radius-sm);
    font: inherit;
    background: white;
}

/* --- Page Contact --- */
.contact-intro {
    margin-bottom: 2.5rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-info {
    background: var(--brown-dark);
    color: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
}

.contact-info h2 {
    color: white;
    margin-bottom: 2rem;
    font-size: 1.75rem;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-list li + li {
    margin-top: 1.25rem;
}

.contact-list a {
    color: white;
    text-decoration: underline;
    overflow-wrap: anywhere;
}

.contact-icon {
    flex: 0 0 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-form-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.contact-form-card h2 {
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
}

.form-field {
    margin-bottom: 1rem;
}

.form-field label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 0.875rem;
    background: var(--cream);
    border: 1px solid var(--beige-dark);
    border-radius: 10px;
    font: inherit;
    color: inherit;
}

.form-field textarea {
    min-height: 140px;
    resize: vertical;
}

.form-field-hp {
    position: absolute !important;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-legal {
    font-size: 0.8125rem;
    color: var(--gray);
    margin-bottom: 1.25rem;
}

.form-legal a {
    text-decoration: underline;
}

.btn-block {
    width: 100%;
}

.form-notice {
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
}

.form-notice-success {
    background: #d4edda;
    color: #155724;
}

.form-notice-error {
    background: #f8d7da;
    color: #721c24;
}

/* --- Page À propos --- */
.about-hero {
    background: var(--beige);
    padding: 5rem 0;
}

.about-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-hero-grid.no-image {
    grid-template-columns: 1fr;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-hero-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-hero-image img {
    width: 100%;
}

.about-hero h1 {
    margin-bottom: 1.5rem;
}

.about-hero p {
    color: var(--gray);
    line-height: 1.9;
    margin-bottom: 1rem;
}

.about-hero .about-tagline {
    color: var(--secondary);
    font-weight: 600;
}

.about-story {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: var(--gray);
    font-size: 1.125rem;
    line-height: 1.9;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.value-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
}

.value-card p {
    color: var(--gray);
    font-size: 0.9375rem;
    margin-top: 0.5rem;
}

.value-icon {
    width: 80px;
    height: 80px;
    background: var(--beige);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
}

/* --- Page FAQ --- */
.faq-intro {
    margin-bottom: 2rem;
}

.faq-group {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
}

.faq-group-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
}

.faq-group-icon {
    flex: 0 0 50px;
    height: 50px;
    background: var(--beige);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.25rem;
}

.faq-item + .faq-item {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--beige);
}

.faq-item h3 {
    margin-bottom: 0.75rem;
}

.faq-item p {
    color: var(--gray);
}

.faq-cta {
    background: linear-gradient(135deg, var(--brown-dark), var(--primary));
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    text-align: center;
    color: white;
}

.faq-cta h2 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.75rem;
}

.faq-cta p {
    opacity: 0.9;
    margin-bottom: 2rem;
}

.faq-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* --- Avis clients (vrais avis WooCommerce) --- */
.testimonials-count-1 {
    grid-template-columns: minmax(0, 520px);
    justify-content: center;
}

.testimonials-count-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.author-info a {
    text-decoration: underline;
}

/* --- Pied de page --- */
.footer-logo span {
    color: #4CAF50;
}

.footer-about {
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-social a:hover {
    background: var(--primary-light);
}

.footer-title {
    font-family: 'Playfair Display', Georgia, serif;
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.footer-contact li {
    font-size: 0.9375rem;
    overflow-wrap: anywhere;
}

.footer-contact .wd-icon {
    margin-right: 0.5rem;
    color: #F4A460;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem 2rem;
    font-size: 0.9375rem;
    color: rgba(250, 247, 242, 0.8);
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 2rem;
}

.footer-legal a:hover {
    color: white;
    text-decoration: underline;
}

/* --- Responsive des nouvelles mises en page --- */
@media (max-width: 900px) {
    .contact-grid,
    .about-hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .testimonials-count-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .values-grid {
        grid-template-columns: 1fr;
    }

    .content-card,
    .contact-info,
    .contact-form-card,
    .faq-group,
    .faq-cta {
        padding: 1.5rem;
    }

    .about-hero {
        padding: 3rem 0;
    }

    .faq-group-title,
    .contact-info h2,
    .contact-form-card h2,
    .faq-cta h2 {
        font-size: 1.375rem;
    }

    .search-form {
        flex-direction: column;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-legal {
        justify-content: center;
    }
}

/* Champs à compléter dans les pages légales (visibles seulement tant qu'ils ne sont pas remplis) */
.entry-content mark {
    background: #FFF3CD;
    padding: 0 0.25rem;
}

/* ==========================================================================
   V6.0 - Icônes SVG intégrées (plus de police d'icônes)
   ========================================================================== */
.wd-icon {
    display: inline-block;
    vertical-align: -0.125em;
    flex-shrink: 0;
    overflow: visible;
}

.icon-primary { color: var(--primary); }
.icon-secondary { color: var(--secondary); }
.icon-accent { color: var(--accent); }

.menu-toggle .icon-close,
.menu-toggle[aria-expanded="true"] .icon-open {
    display: none;
}

.menu-toggle[aria-expanded="true"] .icon-close {
    display: inline-block;
}

/* ==========================================================================
   V6.0 - Recherche, photos, accueil mobile compact, devis
   ========================================================================== */

/* --- En-tête : recherche + compte --- */
.header-action-btn {
    flex-shrink: 0;
}

.site-search {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--beige);
    box-shadow: var(--shadow-lg);
    padding: 1rem 0;
}

.site-search[hidden] {
    display: none;
}

.site-search .search-form {
    max-width: 720px;
    margin: 0 auto;
}

.nav-account {
    display: none;
}

@media (max-width: 960px) {
    .nav-account {
        display: flex;
        align-items: center;
        gap: 0.625rem;
        margin: 0 1.5rem 1rem;
        padding: 0.875rem 0.25rem;
        font-weight: 600;
        color: var(--primary);
    }

    .header-account {
        display: none;
    }
}

@media (max-width: 768px) {
    .site-search .search-form {
        flex-direction: row;
    }

    .site-search .btn span {
        display: none;
    }

    .site-search .btn {
        padding: 0.875rem 1.125rem;
    }
}

/* --- Hero : photo choisie dans le Personnaliseur --- */
.hero-image-frame.has-photo {
    background: none;
    border: 0;
    box-shadow: var(--shadow-xl);
}

.hero-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 1024px) {
    .hero-visual.has-photo {
        display: flex;
        margin-top: 2.5rem;
    }

    .hero-visual.has-photo .hero-image-frame {
        width: min(100%, 420px);
        height: auto;
        aspect-ratio: 4 / 3;
    }

    .hero-visual.has-photo .hero-badge-float {
        display: none;
    }
}

/* --- Cartes catégories : photo de la catégorie WooCommerce --- */
.category-card-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card-home:hover .category-card-photo,
.boutique-category-card:hover .category-card-photo {
    transform: scale(1.05);
}

.category-card-home.has-photo {
    justify-content: stretch;
}

.category-card-home.has-photo .category-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.5) 55%, rgba(0,0,0,0.05) 100%);
}

.category-card-home.has-photo .category-icon-wrapper,
.boutique-category-card.has-photo .category-card-icon {
    display: none;
}

/* --- Accueil : blocs produits --- */
.home-products .woocommerce {
    margin-bottom: 1rem;
}

.home-products .section-cta {
    margin-top: 2rem;
}

/* --- Accueil mobile : catégories en 2 colonnes compactes --- */
@media (max-width: 768px) {
    .categories-showcase {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .category-card-home {
        min-height: 170px;
    }

    .category-card-content {
        padding: 1rem;
    }

    .category-card-home p,
    .category-features {
        display: none;
    }

    .category-icon-wrapper {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin-bottom: 0.625rem;
    }

    .category-card-home h3 {
        font-size: 1rem;
        margin-bottom: 0.375rem;
        overflow-wrap: anywhere;
    }

    .category-link {
        font-size: 0.8125rem;
    }
}

/* --- Page Devis --- */
.quote-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
    gap: 3rem;
    align-items: start;
}

.quote-steps {
    background: var(--brown-dark);
    color: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
}

.quote-steps h2 {
    color: white;
    font-size: 1.75rem;
    margin-bottom: 2rem;
}

.quote-steps li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    font-size: 0.9375rem;
}

.quote-steps li + li {
    margin-top: 1.5rem;
}

.quote-step-icon {
    flex: 0 0 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
}

.quote-contact {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.quote-contact a {
    font-weight: 600;
    text-decoration: underline;
}

.form-row-2,
.form-row-3 {
    display: grid;
    gap: 0 1rem;
}

.form-row-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.form-field select {
    width: 100%;
    padding: 0.875rem;
    background: var(--cream);
    border: 1px solid var(--beige-dark);
    border-radius: 10px;
    font: inherit;
    color: inherit;
}

.form-field input[type="file"] {
    padding: 0.625rem;
    font-size: 0.875rem;
}

.form-fieldset {
    border: 0;
    margin-bottom: 0;
}

.form-fieldset legend {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-fieldset .form-field label {
    font-weight: 400;
    font-size: 0.875rem;
}

.form-help {
    display: block;
    font-size: 0.8125rem;
    color: var(--gray);
    margin-top: 0.375rem;
}

@media (max-width: 900px) {
    .quote-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .quote-steps {
        padding: 1.5rem;
    }

    .quote-steps h2 {
        font-size: 1.375rem;
    }

    .form-row-2 {
        grid-template-columns: 1fr;
    }
}

/* --- Accueil mobile : blocs d'arguments en 2 colonnes --- */
@media (max-width: 768px) {
    .info-bar-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }

    .advantages-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .advantage-card {
        padding: 1.25rem 1rem;
    }

    .advantage-card h3 {
        font-size: 1rem;
    }

    .advantage-card p {
        font-size: 0.8125rem;
        line-height: 1.5;
    }

    .cork-features {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.25rem 0.75rem;
    }

    .cork-feature {
        flex-direction: column;
        text-align: center;
        margin: 0;
    }

    .cork-feature-icon {
        margin: 0 auto;
    }

    .cork-feature-text p {
        font-size: 0.8125rem;
    }
}
