/* ============================================================
   BOURDON DU PÈLERIN — theme.css v1.6
   Design modernisé, esprit artisanal du chemin
   ============================================================ */

/* ---- GOOGLE FONTS ---- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Source+Sans+3:ital,wght@0,300;0,400;0,600;1,400&display=swap');

/* ---- VARIABLES ---- */
:root {
    --brun-fonce   : #3e2a1a;   /* Brun profond — titres, header        */
    --brun-moyen   : #7a4f2e;   /* Brun moyen — liens, boutons          */
    --ocre         : #c07b3a;   /* Ocre chaleureux — accent principal    */
    --ocre-clair   : #d9964e;   /* Ocre clair — hovers                  */
    --creme        : #faf2e6;   /* Crème chaleureuse — textes sur fond sombre */
    --gris         : #968678;   /* Gris pierre — textes secondaires      */
    --fond         : #fdfaf5;   /* Fond principal — blanc ivoire         */
    --fond-alt     : #f5efe4;   /* Fond alternatif — sections claires    */
    --texte        : #3e2e20;   /* Texte principal                       */
    --texte-light  : #7a6553;   /* Texte secondaire                      */
    --border       : #e8dece;   /* Bordures standard                     */
    --border-light : #f0ebe0;   /* Bordures légères                      */
    --max-w        : 1140px;
    --max-w-text   : 780px;
    --radius       : 3px;
    --radius-md    : 6px;
    --shadow-sm    : 0 2px 8px rgba(62,42,26,.07);
    --shadow       : 0 4px 16px rgba(62,42,26,.09);
    --shadow-hover : 0 8px 28px rgba(62,42,26,.14);
    --transition   : .22s ease;
    --font-serif   : 'Cormorant Garamond', Georgia, serif;
    --font-sans    : 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;
}

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.8;
    color: var(--texte);
    background: var(--fond);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 500;
    color: var(--brun-fonce);
    letter-spacing: .01em;
    line-height: 1.25;
    margin: 0 0 .6em;
}
h1 { font-size: clamp(1.8em, 3.5vw, 2.6em); }
h2 { font-size: clamp(1.4em, 2.8vw, 2em); }
h3 { font-size: 1.25em; }
h4 { font-size: 1.05em; }

p { margin: 0 0 1em; color: var(--texte-light); }
p:last-child { margin-bottom: 0; }

a { color: var(--brun-moyen); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--ocre); }

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

strong { font-weight: 600; color: var(--texte); }
em { font-style: italic; }

hr {
    border: none;
    border-top: 1px solid var(--border-light);
    margin: 2em 0;
}

blockquote {
    border-left: 2px solid var(--ocre);
    padding: .9em 1.5em;
    margin: 1.5em 0;
    background: rgba(184,115,51,.05);
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.1em;
    color: var(--brun-moyen);
}

/* ---- LAYOUT ---- */
.bdp-container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 2.5em;
}
.bdp-container-text {
    max-width: var(--max-w-text);
    margin: 0 auto;
    padding: 0 2em;
}
.site-content { min-height: 60vh; }

/* ---- BOUTONS ---- */
.bdp-btn {
    display: inline-block;
    padding: .65em 1.9em;
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-size: .9em;
    font-weight: 400;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all var(--transition);
    line-height: 1.4;
}
.bdp-btn:hover { transform: translateY(-2px); }

.bdp-btn-primary {
    background: var(--brun-moyen);
    color: #fff;
    border-color: var(--brun-moyen);
}
.bdp-btn-primary:hover { background: var(--ocre); border-color: var(--ocre); color: #fff; }

.bdp-btn-outline {
    background: transparent;
    color: var(--creme);
    border-color: rgba(244,237,224,.4);
}
.bdp-btn-outline:hover { background: rgba(244,237,224,.1); color: var(--creme); border-color: rgba(244,237,224,.7); }

.bdp-btn-ocre {
    background: var(--ocre);
    color: #fff;
    border-color: var(--ocre);
}
.bdp-btn-ocre:hover { background: var(--brun-moyen); border-color: var(--brun-moyen); color: #fff; }

.bdp-btn-ghost {
    background: transparent;
    color: var(--brun-moyen);
    border-color: var(--border);
}
.bdp-btn-ghost:hover { border-color: var(--ocre); color: var(--ocre); }

/* ---- FORMULAIRES ---- */
input[type="text"],
input[type="email"],
input[type="search"],
input[type="tel"],
input[type="number"],
input[type="password"],
textarea, select {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: .6em 1em;
    font-family: var(--font-sans);
    font-size: .95em;
    font-weight: 300;
    color: var(--texte);
    background: #fff;
    transition: border-color var(--transition), box-shadow var(--transition);
    width: 100%;
    line-height: 1.5;
}
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--ocre);
    box-shadow: 0 0 0 3px rgba(184,115,51,.12);
}
button[type="submit"], input[type="submit"] {
    background: var(--brun-moyen);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    padding: .65em 1.8em;
    font-family: var(--font-sans);
    font-size: .9em;
    letter-spacing: .06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background var(--transition);
}
button[type="submit"]:hover, input[type="submit"]:hover { background: var(--ocre); }

/* ============================================================
   HEADER
   ============================================================ */

#site-header {
    position: relative;
    background-color: var(--brun-fonce);
    background-image: url('https://www.le-bourdon-du-pelerin.com/wp-content/uploads/2021/02/Base-de-bandeau-copie-1.jpg');
    background-size: cover;
    background-position: center 35%;
}

#site-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(62,42,26,.82) 0%,
        rgba(62,42,26,.62) 60%,
        rgba(62,42,26,.78) 100%
    );
    pointer-events: none;
}

.header-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1em 2.5em;
    gap: 1em;
    max-width: var(--max-w);
    margin: 0 auto;
}

/* Branding */
.site-branding {
    display: flex;
    align-items: center;
    gap: .9em;
    text-decoration: none;
    flex-shrink: 0;
}

.site-branding img.site-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    opacity: .9;
    filter: brightness(1.1) drop-shadow(0 1px 3px rgba(0,0,0,.3));
    transition: opacity var(--transition);
}
.site-branding:hover img.site-logo { opacity: 1; }

.site-branding-text .site-name {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.4em;
    font-weight: 500;
    color: var(--creme);
    letter-spacing: .06em;
    line-height: 1.1;
}
.site-branding-text .site-tagline {
    display: block;
    font-family: var(--font-sans);
    font-size: .72em;
    font-weight: 300;
    color: rgba(244,237,224,.55);
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-top: .2em;
}

/* Panier */
.header-right { display: flex; align-items: center; gap: 1.2em; position: relative; z-index: 1; }

.header-cart a {
    color: rgba(244,237,224,.75);
    font-size: .85em;
    display: flex;
    align-items: center;
    gap: .5em;
    transition: color var(--transition);
    letter-spacing: .05em;
    font-family: var(--font-sans);
    font-weight: 300;
}
.header-cart a:hover { color: var(--ocre); }
.header-cart .cart-count {
    background: var(--ocre);
    color: #fff;
    border-radius: 10px;
    padding: 0 6px;
    font-size: .72em;
    min-width: 18px;
    text-align: center;
    font-weight: 600;
}

/* ============================================================
   NAVIGATION
   ============================================================ */

#site-nav {
    background: rgba(58,38,22,.96);
    border-bottom: 1px solid rgba(192,123,58,.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    overflow: visible;
    transition: box-shadow .25s ease;
}

#site-nav.is-scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,.25);
}

.nav-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 2.5em;
}

.nav-menu, .nav-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu { display: flex; flex-wrap: wrap; }

.nav-menu > li > a {
    display: block;
    padding: .8em 1.1em;
    color: rgba(244,237,224,.78);
    font-family: var(--font-sans);
    font-size: .84em;
    font-weight: 400;
    letter-spacing: .1em;
    text-transform: uppercase;
    transition: color var(--transition), background var(--transition);
    white-space: nowrap;
    position: relative;
}

.nav-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1.1em;
    right: 1.1em;
    height: 2px;
    background: var(--ocre);
    transform: scaleX(0);
    transition: transform var(--transition);
}

.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a,
.nav-menu > li.current-menu-ancestor > a {
    color: var(--creme);
}

.nav-menu > li > a:hover::after,
.nav-menu > li.current-menu-item > a::after,
.nav-menu > li.current-menu-ancestor > a::after {
    transform: scaleX(1);
}

/* Sculptures et Photos — accentués */
.nav-menu .menu-sculptures > a,
.nav-menu .menu-photos > a {
    color: var(--ocre-clair) !important;
}

/* Sous-menus */
.nav-menu li { position: relative; }

.nav-menu ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #3a2616;
    min-width: 240px;
    border-top: 2px solid var(--ocre);
    box-shadow: 0 8px 24px rgba(0,0,0,.4);
    z-index: 99999;
    overflow: visible;
}

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

.nav-menu ul li a {
    display: block;
    padding: .6em 1.3em;
    color: rgba(212,196,176,.82);
    font-family: var(--font-sans);
    font-size: .83em;
    font-weight: 300;
    letter-spacing: .04em;
    border-bottom: 1px solid rgba(255,255,255,.04);
    transition: color var(--transition), padding var(--transition);
    white-space: nowrap;
}

.nav-menu ul li a:hover {
    color: var(--ocre);
    padding-left: 1.7em;
}

.nav-menu ul ul {
    top: 0;
    left: 100%;
    border-top: none;
    border-left: 2px solid var(--ocre);
}

.nav-menu li.menu-item-has-children > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1.1em;
    right: 1.1em;
    height: 2px;
    background: var(--ocre);
    transform: scaleX(0);
    transition: transform var(--transition);
}

/* Flèche sous-menu */
.nav-menu > li.menu-item-has-children > a > span.arrow,
.nav-menu > li.menu-item-has-children > a {
    padding-right: 1.6em;
}
.nav-menu > li.menu-item-has-children > a::before {
    content: '▾';
    position: absolute;
    right: .5em;
    top: 50%;
    transform: translateY(-50%);
    font-size: .7em;
    opacity: .6;
    pointer-events: none;
}

/* Menu mobile */
.menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid rgba(244,237,224,.25);
    color: rgba(244,237,224,.8);
    padding: .45em 1em;
    border-radius: var(--radius);
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: .85em;
    letter-spacing: .08em;
    transition: all var(--transition);
}
.menu-toggle:hover { border-color: var(--ocre); color: var(--ocre); }

/* ============================================================
   FOOTER
   ============================================================ */

#site-footer {
    background: #3a2616;
    border-top: 1px solid rgba(184,115,51,.3);
    padding: 3.5em 0 1.5em;
    margin-top: 5em;
}

.footer-widgets {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 3em;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 2.5em 2.5em;
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.footer-widgets .widget-title {
    font-family: var(--font-sans);
    font-size: .72em;
    font-weight: 600;
    color: rgba(244,237,224,.5);
    text-transform: uppercase;
    letter-spacing: .18em;
    margin: 0 0 1.1em;
    padding-bottom: .7em;
    border-bottom: 1px solid rgba(184,115,51,.3);
}

.footer-widgets p {
    color: rgba(138,126,114,.8);
    font-size: .88em;
    line-height: 1.8;
    font-weight: 300;
}

.footer-widgets a {
    color: rgba(138,126,114,.8);
    font-size: .88em;
    line-height: 1.8;
    transition: color var(--transition);
}
.footer-widgets a:hover { color: var(--ocre); }

.footer-widgets ul { list-style: none; padding: 0; margin: 0; }
.footer-widgets ul li { padding: .25em 0; border-bottom: 1px solid rgba(255,255,255,.03); }

.footer-credit {
    max-width: var(--max-w);
    margin: 1.5em auto 0;
    padding: 0 2.5em;
    font-size: .76em;
    font-family: var(--font-sans);
    font-weight: 300;
    color: rgba(107,95,82,.65);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .5em;
    letter-spacing: .04em;
}
.footer-credit a { color: rgba(184,115,51,.5); }
.footer-credit a:hover { color: var(--ocre); }

/* ============================================================
   PAGE HEADER (pages internes)
   ============================================================ */

.bdp-page-header {
    background: var(--brun-fonce);
    padding: 2.2em 2.5em;
    text-align: center;
    border-bottom: 1px solid rgba(184,115,51,.4);
    position: relative;
    overflow: hidden;
}

.bdp-page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--ocre);
}

.bdp-page-header h1 {
    font-family: var(--font-serif);
    color: var(--creme);
    font-size: clamp(1.4em, 2.8vw, 2.1em);
    font-weight: 500;
    letter-spacing: .04em;
    margin: 0;
}

.bdp-page-header .bdp-breadcrumb {
    color: rgba(244,237,224,.38);
    font-size: .78em;
    font-family: var(--font-sans);
    letter-spacing: .06em;
    margin-top: .5em;
}
.bdp-page-header .bdp-breadcrumb a { color: rgba(184,115,51,.7); }
.bdp-page-header .bdp-breadcrumb a:hover { color: var(--ocre); }

/* ============================================================
   PAGES DE CONTENU
   ============================================================ */

.bdp-page-content {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 3.5em 2.5em 5em;
}

.bdp-cg1 { display: block; }

.bdp-cg2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5em;
    align-items: center;
}
.bdp-cg2.top { align-items: start; }

.bdp-cg3 {
    display: grid;
    grid-template-columns: minmax(160px, 210px) 1fr minmax(160px, 210px);
    gap: 4em;
    align-items: start;
}

.bdp-cs { margin-bottom: 3.5em; }
.bdp-cs:last-child { margin-bottom: 0; }

.bdp-csep {
    border: none;
    border-top: 1px solid var(--border-light);
    margin: 3em 0;
    position: relative;
    text-align: center;
}
.bdp-csep::after {
    content: '✦';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--fond);
    padding: 0 .8em;
    color: var(--border);
    font-size: .75em;
}

.bdp-ct p {
    color: var(--texte-light);
    line-height: 1.85;
    margin-bottom: 1em;
    font-weight: 300;
}
.bdp-ct p:last-child { margin-bottom: 0; }

.bdp-cq {
    border-left: 2px solid var(--ocre);
    background: rgba(184,115,51,.05);
    padding: 1em 1.5em;
    margin: 1.5em 0;
    border-radius: 0 var(--radius) var(--radius) 0;
}
.bdp-cq p {
    color: var(--brun-moyen) !important;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.05em;
    margin: 0 !important;
    line-height: 1.7;
}

.bdp-ci { margin: 0; }
.bdp-ci img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
}
.bdp-ci figcaption {
    text-align: center;
    font-family: var(--font-sans);
    font-size: .8em;
    font-weight: 300;
    color: var(--gris);
    margin-top: .6em;
    letter-spacing: .04em;
}
.bdp-ci-full img { max-height: 460px; object-fit: cover; }

.bdp-cv {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-md);
    margin: 1.5em 0;
    box-shadow: var(--shadow);
}
.bdp-cv iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

.bdp-sig {
    text-align: right;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.05em;
    color: var(--brun-moyen);
    margin-top: 1em;
}

/* ============================================================
   PAGE GÉNÉRIQUE
   ============================================================ */

.bdp-generic-page {
    max-width: var(--max-w-text);
    margin: 0 auto;
    padding: 3.5em 2em 5em;
}

.bdp-generic-page .entry-title {
    font-family: var(--font-serif);
    font-size: 2em;
    color: var(--brun-fonce);
    margin-bottom: .8em;
    padding-bottom: .6em;
    border-bottom: 1px solid var(--border-light);
    position: relative;
}
.bdp-generic-page .entry-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--ocre);
}

.bdp-generic-page .entry-content p { color: var(--texte-light); font-weight: 300; line-height: 1.85; }
.bdp-generic-page .entry-content a { color: var(--brun-moyen); border-bottom: 1px solid var(--border); }
.bdp-generic-page .entry-content a:hover { color: var(--ocre); border-color: var(--ocre); }
.bdp-generic-page .entry-content h2 { font-size: 1.5em; margin-top: 2em; color: var(--brun-fonce); }
.bdp-generic-page .entry-content h3 { font-size: 1.2em; margin-top: 1.5em; }

/* ============================================================
   HOMEPAGE
   ============================================================ */

.bdp-hero {
    position: relative;
    overflow: hidden;
    background: var(--brun-fonce);
    padding: 6em 2em 5em;
    text-align: center;
}

.bdp-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('https://www.le-bourdon-du-pelerin.com/wp-content/uploads/2021/02/atelier1-1024x768.jpg');
    background-size: cover;
    background-position: center;
    opacity: .1;
}

.bdp-hero-inner {
    position: relative;
    max-width: 680px;
    margin: 0 auto;
}

.bdp-hero-eyebrow {
    display: block;
    font-family: var(--font-sans);
    font-size: .72em;
    font-weight: 400;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--ocre);
    margin-bottom: 1em;
}

.bdp-hero h1 {
    font-family: var(--font-serif);
    color: var(--creme);
    font-size: clamp(2em, 5vw, 3.2em);
    font-weight: 500;
    letter-spacing: .04em;
    margin: 0 0 .6em;
    line-height: 1.15;
}

.bdp-hero p {
    color: rgba(244,237,224,.55);
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: .95em;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 2.5em;
}

.bdp-hero-btns { display: flex; gap: 1em; justify-content: center; flex-wrap: wrap; }

/* Sections */
.bdp-home-section { padding: 4.5em 0; }
.bdp-home-section-alt { background: var(--fond-alt); }
.bdp-home-section-dark { background: var(--brun-fonce); }

.bdp-home-grid-3 {
    display: grid;
    grid-template-columns: minmax(160px, 210px) 1fr minmax(160px, 210px);
    gap: 4em;
    align-items: start;
}

.bdp-home-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5em;
    align-items: center;
}

.bdp-img-caption {
    font-family: var(--font-sans);
    font-size: .78em;
    font-weight: 300;
    color: var(--gris);
    text-align: center;
    margin-top: .6em;
    letter-spacing: .04em;
}

.bdp-section-title {
    font-family: var(--font-serif);
    font-size: clamp(1.5em, 2.5vw, 1.9em);
    font-weight: 500;
    color: var(--brun-fonce);
    text-align: center;
    margin: 0 0 .3em;
}

.bdp-section-sub {
    text-align: center;
    font-family: var(--font-sans);
    font-size: .78em;
    font-weight: 300;
    color: var(--gris);
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 2.5em;
}

/* Séparateur déco homepage */
.bdp-deco-sep {
    text-align: center;
    margin: 1em 0 2em;
    color: var(--border);
    letter-spacing: .5em;
    font-size: .9em;
}

/* Grille catégories */
.bdp-cats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5em;
    margin-top: 1em;
}

.bdp-cat-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform var(--transition), box-shadow var(--transition);
    display: block;
    position: relative;
}
.bdp-cat-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--ocre);
    transform: scaleX(0);
    transition: transform var(--transition);
}
.bdp-cat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); color: inherit; }
.bdp-cat-card:hover::after { transform: scaleX(1); }

.bdp-cat-card-img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
    background: var(--fond-alt);
}
.bdp-cat-card-placeholder { width: 100%; height: 140px; background: linear-gradient(135deg, var(--fond-alt), #ddd4c0); }
.bdp-cat-card-body { padding: 1em 1.2em 1.2em; }
.bdp-cat-card-body h3 {
    font-family: var(--font-serif);
    font-size: 1.1em;
    font-weight: 500;
    color: var(--brun-fonce);
    margin: 0 0 .25em;
}
.bdp-cat-card-body p {
    font-size: .8em;
    font-weight: 300;
    color: var(--gris);
    margin: 0;
    line-height: 1.5;
}

/* ============================================================
   WOOCOMMERCE — GRILLE PRODUITS
   ============================================================ */

/* 4 colonnes, images contenues */
.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 1.2em !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    clear: both;
}

.woocommerce ul.products li.product {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 0;
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

/* Image produit — taille maîtrisée */
/* ---- IMAGE PRODUIT — wrapper contrôlé via template override ---- */

/* Le wrapper injecté par woocommerce/loop/product-image.php */
.bdp-product-img-wrap {
    display: block;
    overflow: hidden;
    height: 200px;
    background: var(--fond-alt);
    flex-shrink: 0;
}

/* L'image — ses attributs HTML height/width sont ignorés */
.bdp-product-img-wrap img.bdp-product-thumb,
.bdp-product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform .4s ease;
}

.woocommerce ul.products li.product:hover .bdp-product-img-wrap img {
    transform: scale(1.05);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-family: var(--font-serif);
    font-size: .95em;
    font-weight: 500;
    color: var(--brun-fonce);
    padding: .7em .9em .2em;
    margin: 0;
    line-height: 1.3;
}

.woocommerce ul.products li.product .price {
    color: var(--brun-moyen);
    font-size: .88em;
    font-weight: 600;
    padding: 0 .9em .6em;
    display: block;
}

.woocommerce ul.products li.product .price del {
    color: var(--gris);
    font-weight: 300;
    margin-right: .3em;
}

.woocommerce ul.products li.product .button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
    background: var(--brun-moyen);
    color: #fff;
    border: none;
    border-radius: 0;
    font-family: var(--font-sans);
    font-size: .78em;
    font-weight: 400;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: .65em 1em;
    cursor: pointer;
    transition: background var(--transition);
    text-decoration: none;
    display: block;
    text-align: center;
    width: 100%;
    margin: auto 0 0;
}

.woocommerce ul.products li.product .button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover {
    background: var(--ocre);
    color: #fff;
}

.woocommerce a.button.alt,
.woocommerce #respond input#submit.alt { background: var(--ocre); }
.woocommerce a.button.alt:hover { background: var(--brun-moyen); }

/* Onsale badge */
.woocommerce span.onsale {
    background: var(--ocre);
    border-radius: var(--radius);
    font-size: .72em;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .2em .6em;
    min-height: auto;
    min-width: auto;
    line-height: 1.6;
}

/* Breadcrumb WooCommerce */
.woocommerce-breadcrumb {
    color: var(--gris);
    font-family: var(--font-sans);
    font-size: .8em;
    font-weight: 300;
    margin-bottom: 1.5em;
    letter-spacing: .04em;
}
.woocommerce-breadcrumb a { color: var(--brun-moyen); }
.woocommerce-breadcrumb a:hover { color: var(--ocre); }

/* Notices */
.woocommerce-message { border-top-color: var(--ocre); background: rgba(184,115,51,.05); }
.woocommerce-info { border-top-color: var(--brun-moyen); }

/* ============================================================
   PAGE 404
   ============================================================ */

.bdp-404 {
    text-align: center;
    padding: 7em 2em;
    max-width: 500px;
    margin: 0 auto;
}
.bdp-404 h1 {
    font-family: var(--font-serif);
    font-size: 7em;
    color: var(--border);
    line-height: 1;
    margin-bottom: .1em;
}
.bdp-404 h2 { font-size: 1.4em; color: var(--brun-fonce); margin-bottom: .5em; }
.bdp-404 p { color: var(--gris); font-weight: 300; margin-bottom: 1.5em; }

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


/* ============================================================
   SLIDESHOW CATÉGORIES (homepage)
   ============================================================ */

.bdp-cat-slide { position: relative; text-decoration: none; display: block; }

.bdp-cat-slide-wrap {
    position: relative;
    height: 200px;
    min-height: 200px;
    overflow: hidden;
    background: var(--fond-alt);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

/* Chaque slide : superposé, invisible par défaut */
.bdp-slide {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    opacity: 0;
    transition: opacity .8s ease;
    pointer-events: none;
}

.bdp-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

/* Image dans le slide */
.bdp-slide img {
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    transition: transform .5s ease;
}

.bdp-cat-slide:hover .bdp-slide.is-active img { transform: scale(1.04); }

/* Placeholder vide */
.bdp-slide-empty {
    background: linear-gradient(135deg, var(--fond-alt), #ddd4c0);
    width: 100%;
    height: 100%;
}

/* Points de navigation */
.bdp-slide-dots {
    position: absolute;
    bottom: .6em;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: .4em;
    z-index: 10;
}

.bdp-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,.4);
    transition: background .3s, transform .3s;
    display: block;
}

.bdp-dot.is-active { background: #fff; transform: scale(1.35); }

/* ============================================================
   FIX IMAGES PRODUITS WOOCOMMERCE
   ============================================================ */

/* Wrapper image — hauteur fixe via template override */
.bdp-product-img-wrap {
    display: block;
    overflow: hidden;
    height: 200px;
    min-height: 200px;
    background: var(--fond-alt);
    flex-shrink: 0;
}

/* L'image remplit le wrapper */
.bdp-product-img-wrap img,
.bdp-product-img-wrap img.bdp-product-thumb {
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center top !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    transition: transform .4s ease;
}

.woocommerce ul.products li.product:hover .bdp-product-img-wrap img {
    transform: scale(1.05);
}

@media (max-width: 1024px) {
    .bdp-cats-grid { grid-template-columns: repeat(2, 1fr); }
    .woocommerce ul.products { grid-template-columns: repeat(3, 1fr) !important; }
    .footer-widgets { grid-template-columns: 1fr 1fr; }
    .footer-widgets > :last-child { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
    .bdp-home-grid-3, .bdp-cg3 {
        grid-template-columns: 1fr;
        gap: 2em;
    }
    .bdp-home-grid-3 > figure,
    .bdp-cg3 > figure { max-width: 320px; margin: 0 auto; }
    .woocommerce ul.products { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 768px) {
    .bdp-home-grid-2, .bdp-cg2 { grid-template-columns: 1fr; gap: 2em; }
    .bdp-container, .bdp-container-text { padding: 0 1.5em; }
    .header-inner { padding: .9em 1.5em; }
    .nav-inner { padding: 0 1.5em; }
    .bdp-page-content { padding: 2.5em 1.5em 4em; }
    .bdp-generic-page { padding: 2.5em 1.5em 4em; }
    .footer-widgets { grid-template-columns: 1fr; padding: 0 1.5em 2em; }
    .footer-credit { padding: 0 1.5em; }

    /* Menu mobile */
    .menu-toggle { display: block; }
    .nav-menu { display: none; flex-direction: column; padding: .5em 0; }
    .nav-menu.is-open { display: flex; }
    .nav-menu > li > a { padding: .65em 1.5em; }
    .nav-menu > li > a::after { display: none; }
    .nav-menu > li > a::before { display: none; }
    .nav-menu ul {
        position: static;
        display: block;
        box-shadow: none;
        border: none;
        border-left: 2px solid rgba(184,115,51,.4);
        margin-left: 1.5em;
        min-width: auto;
        background: transparent;
    }
    .nav-menu ul li a { padding: .4em 1em; color: rgba(212,196,176,.7); }
    .nav-menu ul li a:hover { padding-left: 1.4em; }
}

@media (max-width: 540px) {
    .bdp-cats-grid { grid-template-columns: 1fr 1fr; gap: 1em; }
    .bdp-hero { padding: 4em 1.5em 3.5em; }
    .bdp-hero-btns { flex-direction: column; align-items: center; }
    .woocommerce ul.products { grid-template-columns: repeat(2, 1fr) !important; gap: .8em !important; }
    .woocommerce ul.products li.product img { height: 160px !important; }
    .site-branding-text .site-name { font-size: 1.1em; }
    .site-branding img.site-logo { width: 40px; height: 40px; }
}

/* ============================================================
   PRODUITS SIMILAIRES (related) — généré par WooCommerce
   Hors de notre conteneur, on cible la structure native
   ============================================================ */

.related.products,
section.related {
    margin-top: 3em;
    padding-top: 2.5em;
    border-top: 1px solid var(--border-light);
    clear: both;
}

.related.products > h2,
section.related > h2 {
    font-family: var(--font-serif);
    font-size: 1.5em;
    font-weight: 500;
    color: var(--brun-fonce);
    margin-bottom: 1.2em;
}

/* Grille 4 colonnes */
.related.products ul.products,
section.related ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 1.2em !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Cartes */
.related.products ul.products li.product,
section.related ul.products li.product {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .2s, box-shadow .2s;
}
.related.products ul.products li.product:hover,
section.related ul.products li.product:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

/* IMAGES — hauteur fixe, peu importe le wrapper */
.related.products ul.products li.product .bdp-product-img-wrap,
section.related ul.products li.product .bdp-product-img-wrap {
    height: 180px !important;
    min-height: 180px !important;
    overflow: hidden !important;
    background: var(--fond-alt);
}
.related.products ul.products li.product img,
section.related ul.products li.product img,
.related.products .bdp-product-img-wrap img,
section.related .bdp-product-img-wrap img {
    width: 100% !important;
    height: 180px !important;
    max-height: 180px !important;
    object-fit: cover !important;
    object-position: center top !important;
    display: block !important;
}

/* Titre + prix + bouton */
.related.products ul.products li.product .woocommerce-loop-product__title,
section.related ul.products li.product .woocommerce-loop-product__title {
    font-family: var(--font-serif);
    font-size: .92em;
    color: var(--brun-fonce);
    padding: .6em .8em .2em;
    margin: 0;
}
.related.products ul.products li.product .price,
section.related ul.products li.product .price {
    color: var(--brun-moyen);
    font-size: .85em;
    font-weight: 600;
    padding: 0 .8em .6em;
}
.related.products ul.products li.product .button,
section.related ul.products li.product .button {
    margin-top: auto !important;
    border-radius: 0 !important;
    width: 100% !important;
}

@media (max-width: 900px) {
    .related.products ul.products,
    section.related ul.products { grid-template-columns: repeat(2,1fr) !important; }
}
@media (max-width: 540px) {
    .related.products ul.products li.product img,
    section.related ul.products li.product img { height: 150px !important; }
}
