/* La Cantonnière — thème enfant Blocksy
   Identité : crème, rose poudré, vert du maquis, or et miel ; Fraunces + Karla + Parisienne ;
   abeilles et alvéoles dorées. Les pages sont faites de blocs WordPress auxquels on donne
   des classes « lc-… » (réglage « Classe(s) CSS additionnelle(s) » de chaque bloc). */

:root {
  --lc-creme: #faf6ee;
  --lc-poudre: #f6ebe5;
  --lc-poudre-fonce: #ead6cc;
  --lc-encre: #1f1a14;
  --lc-encre-douce: #5a5046;
  --lc-maquis: #2f4a33;
  --lc-maquis-fonce: #22372a;
  --lc-or: #b8892f;
  --lc-or-clair: #e6c977;
  --lc-rose: #c98b84;
  --lc-blanc: #fffdf9;
  --lc-ligne: rgba(31, 26, 20, .12);
  --lc-degrade-or: linear-gradient(120deg, #a8741a 0%, #e2c069 45%, #b8892f 75%, #d9b45a 100%);
  --lc-titre: "Fraunces", Georgia, serif;
  --lc-texte: "Karla", system-ui, sans-serif;
  --lc-manuscrite: "Parisienne", "Fraunces", cursive;
  --lc-rayon: 14px;
  --lc-ombre: 0 10px 30px -12px rgba(48, 32, 10, .25);
}

/* Palette de Blocksy remplacée : « :root:root » passe devant les réglages de Blocksy,
   et les couleurs de liens et de boutons qui en dépendent suivent. */
:root:root {
  --theme-palette-color-1: #b8892f;
  --theme-palette-color-2: #8f6a1f;
  --theme-palette-color-3: #3d342b;
  --theme-palette-color-4: #1f1a14;
  --theme-palette-color-5: #ead6cc;
  --theme-palette-color-6: #f6ebe5;
  --theme-palette-color-7: #faf6ee;
  --theme-palette-color-8: #fffdf9;
  --theme-link-initial-color: #8f6a1f;
  --theme-link-hover-color: #b8892f;
  --theme-button-background-initial-color: #b8892f;
  --theme-button-background-hover-color: #8f6a1f;
}
body {
  --theme-palette-color-1: #b8892f;
  --theme-palette-color-2: #8f6a1f;
  --theme-palette-color-3: #3d342b;
  --theme-palette-color-4: #1f1a14;
  --theme-palette-color-5: #ead6cc;
  --theme-palette-color-6: #f6ebe5;
  --theme-palette-color-7: #faf6ee;
  --theme-palette-color-8: #fffdf9;
  --theme-font-family: var(--lc-texte);
  --theme-button-border-radius: 999px;
  background: var(--lc-creme);
  color: var(--lc-encre);
  font-family: var(--lc-texte);
  font-size: 17px;
}
h1, h2, h3, h4, .site-title, .product_title, .woocommerce-loop-product__title, .entry-title {
  font-family: var(--lc-titre);
  font-weight: 500;
  letter-spacing: -.01em;
  color: var(--lc-encre);
}
.lc-page h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
.lc-page h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.woocommerce ul.products li.product .woocommerce-loop-product__title, .wc-block-grid__product-title { font-size: 1.08rem !important; line-height: 1.3; }
a { color: var(--theme-link-initial-color); }
mark.lc-a-fournir { background: none; color: inherit; }

/* Bandeau d'annonce */
.lc-annonce { background: var(--lc-maquis); color: var(--lc-creme); font-size: .85rem; text-align: center; padding: 8px 16px; }
.lc-annonce span + span::before { content: "·"; margin: 0 .8em; opacity: .6; }

/* Pied de page La Cantonnière (remplace celui de Blocksy) */
.ct-footer { display: none; }
.lc-pied { position: relative; isolation: isolate; background: var(--lc-maquis-fonce); color: rgba(250, 246, 238, .82); padding: 64px 16px 24px; font-size: .95rem; }
.lc-pied::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("../img/deco/motif-alveoles.svg") 0 0 / 52px auto repeat; opacity: .1; }
.lc-pied__grille { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.lc-pied h4 { font: 700 .78rem/1.2 var(--lc-texte); letter-spacing: .14em; text-transform: uppercase; color: var(--lc-or-clair); margin: 0 0 16px; }
.lc-pied ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lc-pied a { color: inherit; text-decoration: none; }
.lc-pied a:hover { color: var(--lc-creme); text-decoration: underline; }
.lc-pied__logo { filter: invert(1); margin-bottom: 12px; }
.lc-pied__devise { font: italic 1.1rem/1.4 var(--lc-titre); color: var(--lc-creme); }
.lc-pied__bas { max-width: 1200px; margin: 40px auto 0; padding-top: 20px; border-top: 1px solid rgba(250, 246, 238, .15); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .82rem; }
@media (max-width: 860px) { .lc-pied__grille { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .lc-pied__grille { grid-template-columns: 1fr; } }

/* Mise en page des pages « Pleine largeur » */
.lc-page { overflow-x: clip; }
.lc-page > * { margin-block: 0; }
.lc-section { padding: clamp(56px, 8vw, 96px) 16px; }
.lc-conteneur { max-width: 1200px; margin-inline: auto; }
.lc-etroit .lc-conteneur { max-width: 780px; }
.lc-poudre { background: var(--lc-poudre); }
.lc-centre { text-align: center; }
.lc-centre .wp-block-buttons { justify-content: center; }
.lc-maquis { position: relative; isolation: isolate; background: var(--lc-maquis); color: var(--lc-creme); }
.lc-maquis::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("../img/deco/motif-alveoles.svg") 0 0 / 52px auto repeat; opacity: .1; }
.lc-maquis h2, .lc-maquis > .lc-conteneur > .chapo { color: var(--lc-creme); }
.lc-maquis .wp-block-buttons { justify-content: center; }
.lc-maquis .wp-block-button.is-style-outline > .wp-block-button__link { color: var(--lc-creme); border-color: var(--lc-creme); }

/* Textes */
.surtitre { font: 700 .78rem/1.2 var(--lc-texte); text-transform: uppercase; letter-spacing: .14em; color: var(--lc-or); margin-bottom: .9rem; }
.surtitre::before { content: ""; display: inline-block; width: .95em; height: .95em; margin-right: .55em; vertical-align: -.12em; background: url("../img/deco/alveole.svg") center / contain no-repeat; }
.lc-surtitre-corse::before { width: .8em; height: 1.4em; vertical-align: -.35em; background-image: url("../img/corse-alveoles.png"); }
.chapo { font-size: 1.15rem; color: var(--lc-encre-douce); max-width: 62ch; }
.has-text-align-center.chapo { margin-inline: auto; }
.lc-maquis .chapo { color: rgba(250, 246, 238, .82); }
h2.lc-orne::after { content: ""; display: block; width: 140px; height: 20px; margin: 18px auto 0; background: url("../img/deco/ornement.svg") center / contain no-repeat; }
.lien-fleche a { font-weight: 700; text-decoration: none; color: var(--lc-encre); border-bottom: 1.5px solid var(--lc-or); padding-bottom: 2px; }
.wp-block-quote.citation { border-left: 3px solid var(--lc-or); padding-left: 20px; margin: 1.5em 0; font: italic 400 1.3rem/1.45 var(--lc-titre); }
.wp-block-quote.citation p { margin: 0; }

/* Boutons */
.wp-block-button__link { border-radius: 999px; padding: .85em 1.6em; font-weight: 700; font-family: var(--lc-texte); }
.lc-bouton-miel .wp-block-button__link { background: var(--lc-degrade-or); color: #2a1d08; border: 0; }
.lc-bouton-miel .wp-block-button__link:hover { filter: brightness(1.06); }
.wp-block-button.is-style-outline > .wp-block-button__link { background: transparent; color: var(--lc-encre); border: 1.5px solid currentColor; }

/* Héros d'accueil : écriture dorée, photo en arche, alvéoles, abeilles et pastille AOP */
.lc-heros-zone { padding: clamp(32px, 5vw, 64px) 16px clamp(48px, 7vw, 88px); }
.lc-heros { align-items: center !important; gap: clamp(32px, 5vw, 72px) !important; }
.lc-heros h1 em { font-family: var(--lc-manuscrite); font-style: normal; font-weight: 400; font-size: 1.22em; line-height: 1; padding-right: .08em; background: var(--lc-degrade-or); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lc-h1-sous { display: block; font: 400 clamp(1.15rem, 2vw, 1.5rem)/1.35 var(--lc-titre); color: var(--lc-encre-douce); margin-top: .5em; letter-spacing: 0; }
.lc-heros .wp-block-column:first-child { position: relative; }
.lc-heros .wp-block-column:first-child::before { content: ""; position: absolute; top: -48px; left: 40%; width: 50px; height: 50px; background: url("../img/deco/abeille.svg") center / contain no-repeat; transform: rotate(-18deg); animation: lc-vol 6s ease-in-out infinite; }
.lc-heros .wp-block-column:last-child { position: relative; isolation: isolate; }
.lc-heros__image { margin: 0; }
.lc-heros__image img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: 58% center; border-radius: 220px 220px var(--lc-rayon) var(--lc-rayon); box-shadow: var(--lc-ombre); }
.lc-heros .wp-block-column:last-child::before { content: ""; position: absolute; z-index: -1; top: -34px; right: -60px; width: 250px; height: 220px; background: url("../img/deco/alveoles.svg") center / contain no-repeat; }
.lc-heros .wp-block-column:last-child::after {
  content: "Miel de Corse\A Mele di Corsica\A AOP";
  white-space: pre; position: absolute; left: -34px; bottom: 44px; display: grid; place-items: center; text-align: center;
  width: 132px; height: 148px; padding-top: 4px; font: 600 1rem/1.25 var(--lc-titre); color: #2a1d08;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: var(--lc-degrade-or);
  filter: drop-shadow(0 8px 14px rgba(120, 80, 10, .25));
}
.lc-heros .wp-block-column:last-child .lc-heros__image::after { content: ""; position: absolute; top: 18%; right: -18px; width: 42px; height: 42px; background: url("../img/deco/abeille.svg") center / contain no-repeat; transform: rotate(14deg); animation: lc-vol 6s ease-in-out infinite -2s; }
@keyframes lc-vol { 0%, 100% { translate: 0 0; } 50% { translate: 6px -10px; } }
@media (prefers-reduced-motion: reduce) { .lc-heros *::before, .lc-heros *::after, .lc-heros .wp-block-column::before { animation: none; } }
@media (max-width: 781px) {
  .lc-heros .wp-block-column:last-child::before { width: 160px; height: 140px; right: -20px; top: -20px; }
  .lc-heros .wp-block-column:last-child::after { left: -6px; width: 106px; height: 120px; font-size: .85rem; }
  .lc-heros__image img { aspect-ratio: 4/3; border-radius: 160px 160px var(--lc-rayon) var(--lc-rayon); }
}

/* Bande de réassurance (liste à puces) */
.lc-bande-reassurance { padding-block: 22px; background: var(--lc-blanc); border-block: 1px solid var(--lc-ligne); }
.lc-reassurance { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.lc-reassurance li { display: flex; flex-direction: column; padding-left: 46px; position: relative; font-size: .93rem; line-height: 1.35; }
.lc-reassurance li::before { content: ""; position: absolute; left: 0; top: 2px; width: 32px; height: 32px; background: url("../img/deco/alveole.svg") center / contain no-repeat; }
@media (max-width: 860px) { .lc-reassurance { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .lc-reassurance { grid-template-columns: 1fr; } }

/* Univers : images avec légende, en grille */
.lc-univers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.lc-univers .wp-block-image { position: relative; margin: 0; border-radius: var(--lc-rayon); overflow: hidden; aspect-ratio: 4/3; background: var(--lc-encre); }
.lc-univers .wp-block-image img { width: 100%; height: 100%; object-fit: cover; opacity: .88; transition: transform .5s; }
.lc-univers .wp-block-image:hover img { transform: scale(1.05); }
.lc-univers figcaption { position: absolute; inset: auto 0 0 0; margin: 0; padding: 48px 20px 18px; background: linear-gradient(transparent, rgba(20, 14, 6, .75)); color: #fff; text-align: left; font: 500 1.3rem/1.15 var(--lc-titre); pointer-events: none; }
@media (max-width: 860px) { .lc-univers { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .lc-univers { grid-template-columns: 1fr; } }

/* Image + texte */
.lc-duo { align-items: center !important; gap: clamp(32px, 6vw, 88px) !important; }
.lc-duo .wp-block-column:first-child { position: relative; isolation: isolate; }
.lc-arrondi { margin: 0; }
.lc-arrondi img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--lc-rayon); box-shadow: var(--lc-ombre); }
.lc-photo-alveole { position: absolute; right: -20px; bottom: -36px; width: 42%; margin: 0; filter: drop-shadow(0 10px 16px rgba(48, 32, 10, .3)); }
.lc-photo-alveole img { aspect-ratio: .866; object-fit: cover; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.lc-duo .wp-block-column:first-child:has(.lc-photo-alveole)::before { content: ""; position: absolute; z-index: -1; left: -40px; top: -40px; width: 150px; height: 130px; background: url("../img/deco/alveoles.svg") center / contain no-repeat; opacity: .7; }
@media (min-width: 782px) { .lc-duo--inverse .wp-block-column:first-child { order: 2; } }

/* Cartes (crus, valeurs, lieux) */
.lc-crus { gap: 18px !important; margin-top: 32px; }
.lc-cru { height: 100%; background: var(--lc-blanc); color: var(--lc-encre); border-radius: var(--lc-rayon); padding: 24px; border-top: 6px solid var(--lc-teinte, var(--lc-or)); }
.lc-cru h3 { margin: 6px 0 10px; font-size: 1.25rem; }
.lc-cru p { font-size: .95rem; color: var(--lc-encre-douce); margin: 0 0 .5em; }
.lc-saison { font-size: .78rem !important; text-transform: uppercase; letter-spacing: .12em; color: var(--lc-encre-douce); }
.lc-cru--printemps { --lc-teinte: #f3d58f; }
.lc-cru--chataigneraie { --lc-teinte: #b8732a; }
.lc-cru--miellats { --lc-teinte: #4a2c17; }
.lc-cru--automne { --lc-teinte: #d39a3a; }

/* Bandeau aquarelle (coffrets) */
.lc-aquarelle { display: grid; place-items: center; text-align: center; min-height: 440px; padding: 48px 24px; border-radius: calc(var(--lc-rayon) * 1.5); background: #e1dbcf url("../img/aquarelle.webp") center / cover no-repeat; }
.lc-aquarelle > * { max-width: 470px; margin-inline: auto; }
.lc-aquarelle .wp-block-buttons { justify-content: center; }
@media (max-width: 760px) { .lc-aquarelle { background-size: auto 100%; } .lc-aquarelle > * { background: rgba(250, 246, 238, .9); } }

/* Avis, revendeurs, contact, mosaïque */
.wp-block-quote.lc-avis { background: var(--lc-blanc); border: 0; border-radius: var(--lc-rayon); padding: 28px; font-size: .98rem; margin: 0; }
.wp-block-quote.lc-avis::before { content: "★★★★★"; display: block; color: var(--lc-or); letter-spacing: 2px; margin-bottom: 10px; }
.lc-revendeurs { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.lc-revendeurs li { background: var(--lc-blanc); border: 1px solid var(--lc-poudre-fonce); border-radius: var(--lc-rayon); padding: 18px 20px; }
.lc-carte-contact { background: var(--lc-poudre); border-radius: var(--lc-rayon); padding: 32px; }
.lc-carte-contact p { margin: 0 0 .3em; }
.lc-carte-contact .lc-saison { margin-top: 1em; color: var(--lc-or); font-weight: 700; }
.lc-mosaique { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 12px; margin-top: 32px; }
.lc-mosaique .wp-block-image { margin: 0; }
.lc-mosaique .wp-block-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.lc-mosaique .wp-block-image:nth-child(1), .lc-mosaique .wp-block-image:nth-child(6) { grid-column: span 2; grid-row: span 2; }
@media (max-width: 720px) { .lc-mosaique { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; } }
.wp-block-details { border-bottom: 1px solid var(--lc-ligne); padding: 16px 0; }
.wp-block-details summary { font-weight: 700; cursor: pointer; }

/* WooCommerce (boutique, fiches produits) */
.woocommerce ul.products li.product figure, .ct-media-container { border-radius: var(--lc-rayon); }
.woocommerce ul.products li.product:hover .ct-media-container { box-shadow: 0 0 0 2px var(--lc-or-clair); }
.woocommerce span.onsale { background: var(--lc-degrade-or); color: #2a1d08; }
.woocommerce .price, .woocommerce-Price-amount { color: var(--lc-encre); font-weight: 700; }
.single_add_to_cart_button, .woocommerce .button.alt, .wc-block-components-button:not(.is-link) { background: var(--lc-degrade-or) !important; color: #2a1d08 !important; border-radius: 999px !important; }
