/* Comptoir des Epices – reprise de la charte Bridge (Raleway, gris clairs, titres capitales) */
:root { --cde-ease: cubic-bezier(0.22, 1, 0.36, 1); }
body { -webkit-font-smoothing: antialiased; }
p { margin-top: 0; }
a { transition: color .2s ease; }
::selection { background: var(--wp--preset--color--heading); color: #fff; }
:focus-visible { outline: 2px solid var(--wp--preset--color--green); outline-offset: 2px; }

/* En-tête : blanc, 100px, menu capitales gris */
.cde-header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.06); }
.cde-header > .alignwide { min-height: 100px; align-items: center; }
.cde-header .wp-block-site-logo img { height: 48px; width: auto; display: block; }
.cde-header .wp-block-navigation .wp-block-navigation-item__content { padding: 6px 0; white-space: nowrap; }
.cde-header .wp-block-navigation .current-menu-item > .wp-block-navigation-item__content { color: var(--wp--preset--color--heading); }
.cde-header .wp-block-navigation__submenu-container { background: #fff !important; border: 0 !important; box-shadow: 0 6px 20px rgba(0,0,0,.08); padding: 10px 0 !important; min-width: 220px !important; }
.cde-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: 7px 22px; font-size: 12px; text-transform: none; letter-spacing: 0; font-weight: 500; }
.cde-header .wp-block-navigation-item.cde-shop > .wp-block-navigation-item__content { border: 1px solid rgba(50,50,50,.24); border-radius: 10px; padding: 7px 10px; color: var(--wp--preset--color--heading); }
.cde-header .wp-block-navigation__responsive-container.is-menu-open { background: #fff; }
.cde-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 18px; }
@media (max-width: 1100px) { .cde-header > .alignwide { min-height: 80px; } .cde-header .wp-block-site-logo img { height: 40px; } }

/* Héros d'accueil (slider d'origine) */
.cde-hero { min-height: 650px; }
.cde-hero .wp-block-cover__background { background: rgba(0,0,0,.18) !important; opacity: 1 !important; }
.cde-hero__title { font-family: var(--wp--preset--font-family--display); font-size: var(--wp--preset--font-size--huge); font-weight: 300; letter-spacing: 1px; line-height: 1; color: #fff; text-transform: uppercase; margin: 0; }
.cde-hero__sub { font-family: var(--wp--preset--font-family--serif); font-size: 24px; line-height: 33px; color: #fff; margin: 18px 0 32px; }
.cde-hero .wp-block-button__link { color: #fff; border-color: #fff; font-size: 11px; line-height: 36px; padding: 0 16px; }
.cde-hero .wp-block-button__link:hover { background: #fff; color: var(--wp--preset--color--heading); }

/* Bandeau de titre des pages intérieures (image + titre capitales) */
.cde-title-bar { position: relative; min-height: 300px; display: flex; align-items: center; background: var(--wp--preset--color--heading) center/cover no-repeat; }
.cde-title-bar::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.25); }
.cde-title-bar .wp-block-post-title { position: relative; color: #fff; font-size: 24px; margin: 0; }
.cde-title-bar.is-light::before { background: rgba(255,255,255,.1); }
.cde-title-bar.is-light .wp-block-post-title { color: var(--wp--preset--color--heading); }

/* Titres de section : petit, capitales, centré, court filet */
.is-style-cde-section-title { text-align: center; }
.is-style-cde-section-title::after { content: ""; display: block; width: 20px; height: 2px; background: var(--wp--preset--color--heading); margin: 14px auto 0; }
.has-text-align-left.is-style-cde-section-title::after { margin-left: 0; }
.has-text-align-right.is-style-cde-section-title::after { margin-right: 0; }
.is-style-cde-section-title.has-text-align-left { text-align: left; }
.is-style-cde-section-title.has-text-align-right { text-align: right; }
.is-style-cde-lead { font-size: 17px; line-height: 1.7; font-weight: 300; }
.is-style-cde-eyebrow { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--wp--preset--color--muted); }

/* Boutons */
.wp-block-button__link { transition: background-color .25s ease, color .25s ease, border-color .25s ease; }
.wp-block-button__link::after { content: "\2192"; margin-left: 10px; font-weight: 400; }
.is-style-cde-solid .wp-block-button__link { background: var(--wp--preset--color--heading); color: #fff; }
.is-style-cde-solid .wp-block-button__link:hover { background: var(--wp--preset--color--green); border-color: var(--wp--preset--color--green); }
.is-style-cde-light .wp-block-button__link { color: #fff; border-color: #fff; }
.is-style-cde-light .wp-block-button__link:hover { background: #fff; color: var(--wp--preset--color--heading); }
.is-style-cde-small .wp-block-button__link { font-size: 11px; line-height: 30px; padding: 0 12px; border-width: 1px; }
.is-style-cde-ghost .wp-block-button__link { background: transparent; }
.is-style-cde-link .wp-block-button__link { border: 0; padding: 0; background: none; line-height: 1.6; }

/* Images : ombre (vc_box_shadow) et cercles */
.is-style-cde-shadow img { box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.is-style-cde-zoom { overflow: hidden; }
.is-style-cde-zoom img { transition: transform .8s var(--cde-ease); }
.is-style-cde-zoom:hover img, .wp-block-post:hover .is-style-cde-zoom img { transform: scale(1.03); }
.wp-block-image figcaption { text-align: center; }

/* Encadré sombre « action » (Voir nos vidéos) */
.cde-action { background: var(--wp--preset--color--dark); color: #fff; padding: 22px 30px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cde-action p { margin: 0; color: #fff; font-size: 15px; }
.cde-action a { color: #fff; }

/* Cartes d'articles et de recettes (masonry / portfolio Bridge) */
.cde-grid .wp-block-post { background: #fff; display: flex; flex-direction: column; padding-bottom: 18px; }
.cde-grid .wp-block-post-featured-image { margin: 0; }
.cde-grid .wp-block-post-featured-image img { width: 100%; height: auto; display: block; }
.cde-grid .wp-block-post-title, .cde-grid .wp-block-post-terms, .cde-grid .wp-block-post-date, .cde-grid .wp-block-post-excerpt { padding: 0 18px; }
.cde-grid .wp-block-post-title { margin: 16px 0 6px; font-size: 13px; }
.cde-grid--center .wp-block-post-title, .cde-grid--center .wp-block-post-terms { text-align: center; }
.cde-grid .wp-block-post-excerpt p { margin: 0; }
.cde-grid .wp-block-post-excerpt__more-text { display: none; }
.cde-grid--portrait .wp-block-post-featured-image { aspect-ratio: 3 / 2; overflow: hidden; }
.cde-grid--portrait .wp-block-post-featured-image img { height: 100%; object-fit: cover; }
.wp-block-post-template.is-layout-grid { gap: 20px; }

/* Journal (blog) : liste de cartes sur fond clair */
.cde-journal .wp-block-post { background: #fff; padding: 0 0 20px; }

/* Article seul */
.cde-single { background: #fff; padding: 50px 50px 60px; }
@media (max-width: 782px) { .cde-single { padding: 30px 20px; } }
.cde-single .wp-block-post-title { font-size: 20px; }

/* Recette */
.cde-recipe-meta { display: flex; flex-wrap: wrap; gap: 0 40px; border-block: 1px solid var(--wp--preset--color--line); padding: 14px 0; margin-bottom: 30px; }
.cde-recipe-meta > div { display: flex; flex-direction: column; }
.cde-recipe-meta > .wp-block-group:has(.cde-recipe-meta__value:empty) { display: none; }
.cde-recipe-meta__label { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--wp--preset--color--muted); margin: 0; }
.cde-recipe-meta__value { font-size: 15px; font-weight: 600; color: var(--wp--preset--color--heading); margin: 0; }
.is-style-cde-ingredients { list-style: none; padding-left: 0; }
.is-style-cde-ingredients li { padding: 6px 0; border-bottom: 1px dotted var(--wp--preset--color--line); }
.is-style-cde-steps { list-style: none; padding-left: 0; counter-reset: step; }
.is-style-cde-steps li { counter-increment: step; display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 8px 0; }
.is-style-cde-steps li::before { content: counter(step, decimal-leading-zero); font-weight: 700; color: var(--wp--preset--color--heading); }

/* Pied de page sombre, 4 colonnes */
.cde-footer { background: var(--wp--preset--color--dark); color: var(--wp--preset--color--text); font-size: 14px; line-height: 22px; }
.cde-footer h4 { color: #fff; font-size: 15px; margin: 0 0 18px; }
.cde-footer a { color: var(--wp--preset--color--text); }
.cde-footer a:hover { color: #fff; }
.cde-footer ul { list-style: none; padding: 0; margin: 0; }
.cde-footer li { margin: 0 0 6px; }
.cde-footer .wp-block-post-title { font-size: 13px; text-transform: none; letter-spacing: 0; font-weight: 400; margin: 0 0 12px; }
.cde-footer .wp-block-post-title a { color: var(--wp--preset--color--text); }
.cde-footer .cde-footer__bottom { background: var(--wp--preset--color--darker); font-size: 12px; padding: 18px 0; }
.cde-footer .cde-social a::before { display: inline-block; width: 18px; font-weight: 700; color: #fff; }
.cde-footer .cde-social .fb::before { content: "f"; } .cde-footer .cde-social .ig::before { content: "◎"; } .cde-footer .cde-social .tw::before { content: "t"; } .cde-footer .cde-social .pi::before { content: "p"; } .cde-footer .cde-social .yt::before { content: "▶"; }

/* Store locator */
#wpsl-wrap input[type="submit"], #wpsl-wrap .wpsl-search-btn-wrap button { background: var(--wp--preset--color--heading); color: #fff; border-radius: 4px; border: 0; padding: 8px 18px; text-transform: uppercase; letter-spacing: 1px; font-size: 12px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* Séparateur court (vc_separator Bridge) : trait de 20px sous un titre */
.wp-block-separator.is-style-cde-short { width: 20px; height: 2px; border: 0; background: var(--wp--preset--color--heading); margin: 12px auto 22px; }
.wp-block-separator.is-style-cde-short.alignleft, .cde-left > .wp-block-separator.is-style-cde-short { margin-left: 0; }
.wp-block-separator.is-style-cde-short.alignright { margin-right: 0; }

/* Cartes d'articles : même ratio d'image pour une grille régulière */
.cde-grid:not(.cde-grid--portrait) .wp-block-post-featured-image img { aspect-ratio: 4 / 3; object-fit: cover; }

/* Ninja Forms : champs et bouton dans la charte */
.nf-form-cont { font-size: 14px; }
.nf-form-cont .nf-field-label label { font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--wp--preset--color--heading); }
.nf-form-cont input[type="text"], .nf-form-cont input[type="email"], .nf-form-cont input[type="tel"], .nf-form-cont input[type="number"], .nf-form-cont input[type="date"], .nf-form-cont textarea, .nf-form-cont select, .nf-form-cont .ninja-forms-field:not([type="button"]):not([type="submit"]) { width: 100%; background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: 0; padding: 10px 14px; font-family: inherit; font-size: 14px; color: var(--wp--preset--color--heading); }
.nf-form-cont textarea { min-height: 140px; }
.nf-form-cont input:focus, .nf-form-cont textarea:focus, .nf-form-cont select:focus { outline: none; border-color: var(--wp--preset--color--heading); }
.nf-form-cont input[type="button"], .nf-form-cont input[type="submit"], .nf-form-cont button { background: transparent; color: var(--wp--preset--color--heading); border: 2px solid var(--wp--preset--color--heading); border-radius: 4px; padding: 0 18px; line-height: 40px; font-family: inherit; font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; cursor: pointer; transition: background-color .25s ease, color .25s ease; }
.nf-form-cont input[type="button"]:hover, .nf-form-cont input[type="submit"]:hover, .nf-form-cont button:hover { background: var(--wp--preset--color--heading); color: #fff; }
.nf-form-cont .nf-error .ninja-forms-field { border-color: var(--wp--preset--color--orange); }
.nf-form-cont .nf-error-msg, .nf-form-cont .nf-form-errors { color: var(--wp--preset--color--orange); font-size: 12px; }
.nf-form-cont .nf-response-msg { background: #fff; border-left: 3px solid var(--wp--preset--color--green); padding: 14px 18px; }

/* Page revendeurs : Store Locator dans la charte */
#wpsl-wrap { margin-top: 20px; }
#wpsl-search-wrap { background: #fff; border: 1px solid var(--wp--preset--color--line); padding: 16px 20px; margin-bottom: 20px; }
#wpsl-search-wrap label { font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--wp--preset--color--heading); }
#wpsl-wrap #wpsl-search-input, #wpsl-search-wrap select, #wpsl-search-wrap .wpsl-dropdown { height: 40px; border: 1px solid var(--wp--preset--color--line); border-radius: 0; font-family: inherit; font-size: 14px; }
#wpsl-wrap #wpsl-search-input { min-width: 260px; padding: 0 12px; }
#wpsl-search-wrap .wpsl-search-btn-wrap { margin-left: auto; }
#wpsl-wrap #wpsl-search-btn { background: var(--wp--preset--color--heading); color: #fff; border: 2px solid var(--wp--preset--color--heading); border-radius: 4px; height: 40px; padding: 0 20px; font-family: inherit; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; cursor: pointer; }
#wpsl-wrap #wpsl-search-btn:hover { background: var(--wp--preset--color--green); border-color: var(--wp--preset--color--green); }
#wpsl-wrap.wpsl-below_map-template #wpsl-gmap { width: 100%; height: 450px; border: 1px solid var(--wp--preset--color--line); }
#wpsl-wrap.wpsl-below_map-template #wpsl-stores { margin-top: 20px; height: auto !important; }
#wpsl-wrap.wpsl-below_map-template #wpsl-stores ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 1000px) { #wpsl-wrap.wpsl-below_map-template #wpsl-stores ul { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { #wpsl-wrap.wpsl-below_map-template #wpsl-stores ul { grid-template-columns: 1fr; } #wpsl-wrap #wpsl-search-input { min-width: 0; width: 100%; } }
#wpsl-wrap #wpsl-stores li { background: #fff; border: 1px solid var(--wp--preset--color--line); padding: 20px 22px 18px; margin: 0; line-height: 22px; }
#wpsl-wrap #wpsl-stores li:hover { border-color: var(--wp--preset--color--muted); }
#wpsl-wrap #wpsl-stores li strong, #wpsl-wrap #wpsl-stores li .wpsl-store-location strong a { display: block; font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--wp--preset--color--heading); margin-bottom: 6px; }
#wpsl-wrap #wpsl-stores li .wpsl-store-location, #wpsl-wrap #wpsl-stores li .wpsl-contact-details { font-size: 13px; }
#wpsl-wrap #wpsl-stores li .wpsl-directions { font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--wp--preset--color--heading); display: inline-block; margin-top: 8px; }
#wpsl-wrap #wpsl-stores li .wpsl-directions:hover { color: var(--wp--preset--color--green); }
#wpsl-wrap #wpsl-stores li p { margin: 0; }
#wpsl-wrap .wpsl-no-results-msg, #wpsl-wrap #wpsl-stores .wpsl-no-results-msg { background: #fff; border: 1px solid var(--wp--preset--color--line); padding: 20px; }
#wpsl-wrap .wpsl-preloader { padding: 10px 0; }
#wpsl-wrap .wpsl-info-window { font-family: inherit; font-size: 13px; }
#wpsl-wrap #wpsl-result-list { width: 100%; }
/* Store Locator v3 : conteneur de carte et barre de recherche sur une ligne */
#wpsl-wrap .wpsl-map, #wpsl-wrap .wpsl-map > div, #wpsl-wrap #wpsl-gmap { width: 100% !important; max-width: none !important; height: 450px !important; margin: 0 !important; float: none !important; }
#wpsl-wrap .wpsl-map { border: 1px solid var(--wp--preset--color--line); }
#wpsl-wrap #wpsl-search-wrap, #wpsl-wrap .wpsl-search { float: none !important; width: 100% !important; }
#wpsl-wrap #wpsl-search-wrap form, #wpsl-wrap #wpsl-search-wrap .wpsl-input, #wpsl-wrap #wpsl-search-wrap .wpsl-select-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
#wpsl-wrap #wpsl-search-wrap .wpsl-input, #wpsl-wrap #wpsl-search-wrap .wpsl-select-wrap, #wpsl-wrap #wpsl-search-wrap .wpsl-search-btn-wrap { float: none !important; margin: 0 !important; width: auto !important; }
#wpsl-wrap #wpsl-search-wrap label { width: auto !important; margin: 0 !important; }
#wpsl-wrap #wpsl-result-list { float: none !important; width: 100% !important; margin: 20px 0 0 !important; }
#wpsl-wrap #wpsl-stores, #wpsl-wrap #wpsl-direction-details { height: auto !important; }
#wpsl-wrap #wpsl-map { float: none !important; width: 100% !important; height: 450px !important; border: 1px solid var(--wp--preset--color--line); }
#wpsl-wrap #wpsl-result-list, #wpsl-wrap #wpsl-stores { width: 100% !important; float: none !important; }
#wpsl-wrap #wpsl-stores ul[class*="wpsl-v3-columns"] { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 20px !important; }
@media (max-width: 1000px) { #wpsl-wrap #wpsl-stores ul[class*="wpsl-v3-columns"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 600px) { #wpsl-wrap #wpsl-stores ul[class*="wpsl-v3-columns"] { grid-template-columns: 1fr !important; } }
#wpsl-wrap #wpsl-stores li { width: auto !important; }
#wpsl-wrap #wpsl-stores li .wpsl-store-location p, #wpsl-wrap #wpsl-stores li .wpsl-contact-details { font-size: 13px; line-height: 20px; }
#wpsl-wrap #wpsl-stores li .wpsl-contact-details strong { font-size: 11px; margin: 10px 0 2px; }
#wpsl-wrap #wpsl-stores li .wpsl-directions, #wpsl-wrap #wpsl-stores li .wpsl-directions-wrap { margin-top: 10px; }

/* Carte de la page contact : plein écran, teinte douce comme la carte stylisée d'origine */
.cde-map { width: 100%; background: #e9eef3; }
.cde-map .leaflet-tile-pane { filter: grayscale(.85) saturate(.9) brightness(1.03) sepia(.08) hue-rotate(185deg); }
.cde-map .leaflet-control-attribution { font-size: 10px; }
.cde-contact-card { background: #fff; padding: 40px; }
.cde-contact-card p { margin-bottom: 14px; }
.cde-contact-card .wp-block-social-links { margin-top: 10px; }
@media (max-width: 781px) { .cde-contact-card { padding: 24px 20px; } .wp-block-columns.alignwide, .wp-block-column { max-width: 100%; min-width: 0; } }

/* Accueil v2 : rythme des sections, tuiles de gammes, cartes */
.cde-hero .wp-block-cover__background { background: linear-gradient(180deg, rgba(0,0,0,.08) 0%, rgba(0,0,0,.22) 60%, rgba(0,0,0,.45) 100%) !important; }
.cde-hero__eyebrow { color: #fff; font-size: 12px; letter-spacing: 3px; text-transform: uppercase; margin: 0 0 6px; opacity: .9; }
.cde-hero .wp-block-buttons { gap: 14px; }
.cde-section > .is-style-cde-section-title + .wp-block-paragraph, .cde-section > .is-style-cde-section-title + p { max-width: 720px; margin-left: auto; margin-right: auto; }
.cde-section .is-style-cde-lead { max-width: 820px; margin-left: auto; margin-right: auto; }
.cde-tiles { gap: 20px !important; }
.cde-tile { min-height: 230px; margin: 0; }
.cde-tile img { transition: transform 1s var(--cde-ease); }
.cde-tile:hover img { transform: scale(1.05); }
.cde-tile .wp-block-cover__background { background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.55) 100%) !important; opacity: 1 !important; }
.cde-tile .wp-block-cover__inner-container { padding: 0 6px 6px; }
.cde-tile__title { margin: 0; font-size: 13px; }
.cde-tile__title a { color: #fff; text-decoration: none; }
.cde-tile__title a::after { content: ""; position: absolute; inset: 0; }
.cde-tile__title a::before { content: ""; display: block; width: 18px; height: 2px; background: #fff; margin-bottom: 8px; transition: width .4s var(--cde-ease); }
.cde-tile:hover .cde-tile__title a::before { width: 36px; }
@media (max-width: 1000px) { .cde-tiles { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 480px) { .cde-tiles { grid-template-columns: 1fr !important; } .cde-tile { min-height: 170px; } }
.cde-grid .wp-block-post { transition: transform .4s var(--cde-ease), box-shadow .4s var(--cde-ease); }
.cde-grid .wp-block-post:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0,0,0,.08); }
.cde-grid--center .wp-block-post-date, .cde-grid--center .wp-block-post-excerpt { text-align: center; }
.cde-imgcard { margin-bottom: 18px; }
.cde-imgcard img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.cde-section .wp-block-image.is-style-cde-shadow { margin: 0; }
.cde-action { height: 100%; flex-direction: column; justify-content: center; align-items: flex-start; text-align: left; padding: 30px; }
.cde-action p { font-size: 14px; line-height: 22px; color: rgba(255,255,255,.85); }

/* Fil d'Ariane (Yoast) */
.cde-breadcrumbs { font-size: 12px; color: var(--wp--preset--color--muted); }
.cde-breadcrumbs a { color: var(--wp--preset--color--muted); }
.cde-breadcrumbs a:hover { color: var(--wp--preset--color--heading); }
.cde-breadcrumbs .breadcrumb_last { color: var(--wp--preset--color--heading); }

/* ===== Catalogue produits (/gamme/) ===== */
.cde-title-bar--plain { min-height: 160px; background: var(--wp--preset--color--dark); }
.cde-title-bar--plain::before { display: none; }
.cde-title-bar--plain h1 { color: #fff; font-size: 24px; margin: 0; position: relative; }
.cde-gamme-menu { background: #fff; padding: 24px 22px; position: sticky; top: 120px; }
.cde-gamme-menu__title { font-size: 13px; margin: 0 0 14px; }
.cde-gamme-menu__title::after { content: ""; display: block; width: 20px; height: 2px; background: var(--wp--preset--color--heading); margin-top: 10px; }
.cde-gamme-menu ul { list-style: none; margin: 0; padding: 0; }
.cde-gamme-menu li { border-bottom: 1px solid var(--wp--preset--color--line); }
.cde-gamme-menu li:last-child { border-bottom: 0; }
.cde-gamme-menu a { display: block; padding: 8px 0; font-size: 13px; color: var(--wp--preset--color--text); }
.cde-gamme-menu a:hover { color: var(--wp--preset--color--heading); }
.cde-gamme-menu .is-active a { color: #1abc9c; font-weight: 700; }
@media (max-width: 781px) { .cde-gamme-menu { position: static; } .cde-gamme-menu ul { display: flex; flex-wrap: wrap; gap: 6px 8px; } .cde-gamme-menu li { border: 1px solid var(--wp--preset--color--line); padding: 0 10px; } }

.cde-gammes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 30px; }
@media (max-width: 1000px) { .cde-gammes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .cde-gammes { grid-template-columns: 1fr; } }
.cde-gammes__item { position: relative; display: flex; flex-direction: column; background: #fff; overflow: hidden; transition: transform .4s var(--cde-ease), box-shadow .4s var(--cde-ease); }
.cde-gammes__item:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0,0,0,.08); }
.cde-gammes__item img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; transition: transform .8s var(--cde-ease); }
.cde-gammes__item:hover img { transform: scale(1.04); }
.cde-gammes__name { padding: 16px 16px 2px; text-align: center; font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--wp--preset--color--heading); background: #fff; position: relative; }
.cde-gammes__count { padding: 0 16px 16px; text-align: center; font-size: 12px; color: var(--wp--preset--color--muted); background: #fff; position: relative; }

.cde-grid--products .wp-block-post-featured-image { background: #fff; }
.cde-grid--products .wp-block-post-featured-image img { object-fit: contain; aspect-ratio: 1; }
.cde-grid--products .wp-block-post-title { font-size: 12px; }
.cde-grid--products .wp-block-post-excerpt { font-size: 12px; line-height: 19px; }
@media (max-width: 781px) { .cde-grid--products .wp-block-post-template { grid-template-columns: repeat(2, 1fr) !important; } }

.cde-product { background: #fff; padding: 40px; }
@media (max-width: 781px) { .cde-product { padding: 24px 20px; } }
.cde-product .wp-block-post-title { font-size: 22px; }
.cde-product__image img { width: 100%; object-fit: contain; background: #fff; border: 1px solid var(--wp--preset--color--line); }
.cde-product__ingredients { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--wp--preset--color--line); }
.cde-product__ingredients strong { color: var(--wp--preset--color--heading); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; }
.cde-product__ingredients small { color: var(--wp--preset--color--muted); }
.cde-product__note { margin-top: 36px; padding-top: 30px; border-top: 1px solid var(--wp--preset--color--line); }
.cde-product__note h2 { font-size: 17px; margin: 0 0 16px; }
.cde-product__note h2::after { content: ""; display: block; width: 20px; height: 2px; background: var(--wp--preset--color--heading); margin-top: 12px; }
.cde-product__related { margin-top: 60px; }
.cde-products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 30px 0; }
@media (max-width: 781px) { .cde-products { grid-template-columns: repeat(2, 1fr); } }
.cde-products__item { background: #fff; display: flex; flex-direction: column; transition: transform .4s var(--cde-ease), box-shadow .4s var(--cde-ease); }
.cde-products__item:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0,0,0,.08); }
.cde-products__item img { width: 100%; aspect-ratio: 1; object-fit: contain; display: block; }
.cde-products__name { padding: 14px; text-align: center; font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--wp--preset--color--heading); }
.cde-gammes__item img, .cde-products__item img { height: auto; }

/* ===== Recherche ===== */
.cde-search { position: relative; display: flex; align-items: center; background: #fff; border: 1px solid var(--wp--preset--color--line); }
.cde-search input[type="search"] { flex: 1; min-width: 0; border: 0; background: transparent; padding: 10px 12px; font-family: inherit; font-size: 13px; color: var(--wp--preset--color--heading); outline: none; -webkit-appearance: none; appearance: none; }
.cde-search input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }
.cde-search:focus-within { border-color: var(--wp--preset--color--heading); }
.cde-search button { border: 0; background: none; padding: 0 12px; height: 38px; color: var(--wp--preset--color--muted); cursor: pointer; display: flex; align-items: center; }
.cde-search button:hover { color: var(--wp--preset--color--heading); }
.cde-search__results { position: absolute; z-index: 60; top: calc(100% + 6px); left: 0; right: 0; min-width: 300px; background: #fff; box-shadow: 0 14px 40px rgba(0,0,0,.14); max-height: 70vh; overflow: auto; }
.cde-search__results a { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 12px; padding: 8px 12px; border-bottom: 1px solid var(--wp--preset--color--light); color: var(--wp--preset--color--heading); font-size: 13px; line-height: 1.35; text-transform: none; letter-spacing: 0; font-weight: 500; }
.cde-search__results a:hover, .cde-search__results a:focus { background: var(--wp--preset--color--light); color: var(--wp--preset--color--heading); }
.cde-search__results img, .cde-search__noimg { width: 40px; height: 40px; object-fit: cover; background: var(--wp--preset--color--light); display: block; }
.cde-search__results .cde-search__all { display: block; text-align: center; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 12px; border-bottom: 0; }
.cde-search__empty { margin: 0; padding: 14px; font-size: 13px; }
.cde-type { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--wp--preset--color--muted); border: 1px solid var(--wp--preset--color--line); padding: 1px 7px; line-height: 18px; white-space: nowrap; }
.cde-type--produit { color: #1abc9c; border-color: #1abc9c; }
.cde-type--recette { color: var(--wp--preset--color--orange); border-color: var(--wp--preset--color--orange); }
/* Page de résultats */
.cde-search-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 22px 0 34px; }
.cde-search-tabs a { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 0 14px; line-height: 32px; border: 1px solid var(--wp--preset--color--line); background: #fff; color: var(--wp--preset--color--text); }
.cde-search-tabs a span { font-weight: 500; color: var(--wp--preset--color--muted); margin-left: 4px; }
.cde-search-tabs a:hover { color: var(--wp--preset--color--heading); border-color: var(--wp--preset--color--heading); }
.cde-search-tabs a.is-active { background: var(--wp--preset--color--heading); border-color: var(--wp--preset--color--heading); color: #fff; }
.cde-search-tabs a.is-active span { color: rgba(255,255,255,.7); }
.cde-grid--results .wp-block-post-featured-image img { object-fit: cover; }
.cde-grid--results .cde-type { margin: 14px auto 0; align-self: center; }
.cde-grid--results .wp-block-post-title { margin-top: 8px; }
.cde-gamme-menu .cde-search { margin-bottom: 22px; }
.cde-grid--results p:has(> .cde-type) { text-align: center; margin: 14px 0 0; padding: 0 18px; }
.cde-grid--results .cde-type { margin: 0; }

/* ===== Pages éditoriales : parcours en étapes (Notre métier) ===== */
.cde-steps-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0; margin: 40px auto 0; max-width: 860px; border-top: 1px solid var(--wp--preset--color--line); border-bottom: 1px solid var(--wp--preset--color--line); }
.cde-steps-nav a { flex: 1 1 25%; min-width: 150px; padding: 18px 10px; text-align: center; font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--wp--preset--color--heading); border-right: 1px solid var(--wp--preset--color--line); transition: background-color .25s ease, color .25s ease; }
.cde-steps-nav a:last-child { border-right: 0; }
.cde-steps-nav a span { display: block; font-family: var(--wp--preset--font-family--display); font-weight: 300; font-size: 26px; letter-spacing: 0; color: var(--wp--preset--color--muted); margin-bottom: 2px; transition: color .25s ease; }
.cde-steps-nav a:hover { background: var(--wp--preset--color--heading); color: #fff; }
.cde-steps-nav a:hover span { color: rgba(255,255,255,.6); }
@media (max-width: 640px) { .cde-steps-nav a { flex-basis: 50%; border-bottom: 1px solid var(--wp--preset--color--line); } .cde-steps-nav a:nth-child(2n) { border-right: 0; } .cde-steps-nav a:nth-last-child(-n+2) { border-bottom: 0; } }
.cde-step { scroll-margin-top: 100px; }
.cde-step__num { font-family: var(--wp--preset--font-family--display); font-weight: 300; font-size: 72px; line-height: 1; color: var(--wp--preset--color--line); margin: 0 0 6px; }
.cde-step .is-style-cde-section-title { font-size: 20px; margin-bottom: 22px; }
.cde-step p:not(.cde-step__num) { font-size: 15px; line-height: 28px; }
.cde-mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cde-mosaic > .wp-block-image { margin: 0; overflow: hidden; }
.cde-mosaic > .wp-block-image:first-child { grid-column: 1 / -1; }
.cde-mosaic img { width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; transition: transform 1s var(--cde-ease); }
.cde-mosaic > .wp-block-image:first-child img { aspect-ratio: 16 / 9; }
.cde-mosaic > .wp-block-image:hover img { transform: scale(1.03); }
.cde-step .wp-block-image.is-style-cde-shadow img { width: 100%; height: auto; display: block; }
@media (max-width: 781px) { .cde-step { padding-top: 50px !important; padding-bottom: 50px !important; } .cde-step__num { font-size: 54px; } .cde-step .wp-block-columns { gap: 26px; } }
.cde-label-card { background: #fff; padding: 50px; }
@media (max-width: 781px) { .cde-label-card { padding: 28px 22px; } }
.cde-cta-band { background: var(--wp--preset--color--dark); }
.cde-cta-band__text { color: #fff; font-size: 20px; line-height: 1.5; font-weight: 300; margin-bottom: 24px; }
.cde-steps-nav { display: grid; grid-template-columns: repeat(4, 1fr); }
.cde-steps-nav a { min-width: 0; }
@media (max-width: 640px) { .cde-steps-nav { grid-template-columns: repeat(2, 1fr); } }

/* ===== En-tête v2 : logo à sa taille, menu sur une ligne, recherche en panneau ===== */
.cde-header { position: sticky; }
.cde-header > .alignwide { min-height: 100px; gap: 32px; }
.cde-header .wp-block-site-logo { flex: none; margin: 0; line-height: 0; }
.cde-header .wp-block-site-logo a { display: block; }
.cde-header .wp-block-site-logo img { height: 60px; width: auto; max-width: none; display: block; }
.cde-header nav.wp-block-navigation { flex: 1 1 auto; min-width: 0; justify-content: flex-end; }
.cde-header .wp-block-navigation__container { flex-wrap: nowrap; gap: 28px; }
.cde-search-toggle { flex: none; width: 40px; height: 40px; margin-left: 4px; display: grid; place-items: center; background: none; border: 1px solid transparent; border-radius: 4px; color: var(--wp--preset--color--heading); cursor: pointer; transition: border-color .2s ease, background-color .2s ease; }
.cde-search-toggle:hover, .cde-search-toggle[aria-expanded="true"] { border-color: var(--wp--preset--color--line); background: var(--wp--preset--color--light); }
.cde-search-toggle:active { transform: translateY(1px); }
.cde-search-panel { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid var(--wp--preset--color--line); box-shadow: 0 18px 30px -18px rgba(48,48,48,.25); z-index: 49; animation: cde-panel-in .28s var(--cde-ease); }
.cde-search-panel[hidden] { display: none; }
@keyframes cde-panel-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.cde-search-panel__inner { max-width: 760px; margin: 0 auto; padding: 22px 20px; display: flex; align-items: center; gap: 16px; }
.cde-search-panel .cde-search { flex: 1; border-color: var(--wp--preset--color--line); }
.cde-search-panel .cde-search input[type="search"] { padding: 14px 16px; font-size: 16px; }
.cde-search-panel .cde-search button { height: 50px; padding: 0 16px; }
.cde-search-panel .cde-search__results { min-width: 0; }
.cde-search-panel__close { flex: none; background: none; border: 0; padding: 6px 2px; font-family: inherit; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--wp--preset--color--muted); cursor: pointer; }
.cde-search-panel__close:hover { color: var(--wp--preset--color--heading); }
/* largeurs intermédiaires : on resserre avant de passer au menu mobile */
@media (max-width: 1180px) { .cde-header > .alignwide { gap: 20px; } .cde-header .wp-block-site-logo img { height: 52px; } .cde-header .wp-block-navigation__container { gap: 18px; } .cde-header .wp-block-navigation { font-size: 12px; letter-spacing: .5px; } }
@media (max-width: 980px) { .cde-header .wp-block-site-logo img { height: 46px; } .cde-header .wp-block-navigation__container { gap: 14px; } .cde-header .wp-block-navigation { font-size: 11px; letter-spacing: .3px; } }
@media (max-width: 781px) { .cde-header > .alignwide { min-height: 76px; gap: 10px; } .cde-header .wp-block-site-logo img { height: 44px; } .cde-header nav.wp-block-navigation { flex: 0 0 auto; margin-left: auto; } .cde-search-toggle { order: 2; } .cde-search-panel__inner { padding: 14px 16px; gap: 10px; } }
@media (prefers-reduced-motion: reduce) { .cde-search-panel { animation: none; } }
/* Pas d'interstice entre l'en-tête, le contenu et le pied de page */
.wp-site-blocks > * + * { margin-block-start: 0; }
.wp-site-blocks > main > .cde-breadcrumbs:first-child { margin-top: 0; }

/* Suggestions de recherche du menu des gammes : toujours au-dessus de la grille de produits */
.cde-gamme-menu { z-index: 20; }
.wp-block-column:has(> .cde-gamme-menu), .wp-block-column:has(.cde-gamme-menu) { position: relative; z-index: 20; }
.cde-gamme-menu .cde-search__results { min-width: 340px; max-width: min(440px, 92vw); z-index: 30; }
@media (max-width: 781px) { .cde-gamme-menu { position: relative; } .cde-gamme-menu .cde-search__results { min-width: 0; max-width: none; } }

/* Pied de page : mention bio + lien vers l'agrément */
.cde-footer__bio { display: flex; align-items: flex-start; gap: 12px; margin: 0; font-size: 13px; line-height: 21px; }
.cde-footer__bio img { flex: none; width: 46px; height: auto; margin-top: 3px; }
.cde-footer .cde-footer__bio a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.cde-footer .cde-footer__bio a:hover { color: var(--wp--preset--color--green); }
.cde-footer .cde-footer__bio { font-size: 13px; line-height: 21px; }
.cde-footer .cde-footer__bio .wp-block-image { flex: none; margin: 3px 0 0; }
.cde-footer .cde-footer__bio p { margin: 0; }
