/* Thème Ruchers — ce que theme.json ne sait pas exprimer.
   Tout le reste (couleurs, polices, espacements) est dans theme.json.
   Si vous ajoutez une couleur ici, c'est probablement une erreur. */

/* ─────────────── surtitres ─────────────── */
.ruchers-eyebrow {
	font-weight: 600;
	letter-spacing: .16em;
	text-transform: uppercase;
	margin-bottom: .6rem;
}

/* ─────────────── hero ─────────────── */
.ruchers-hero { position: relative; overflow: hidden; }

.ruchers-accroche {
	font-family: var(--wp--preset--font-family--display);
	font-style: italic;
	font-weight: 500;
	line-height: 1.18;
	max-width: 16ch;
	margin: 0 0 1.3rem;
	font-variation-settings: "SOFT" 100, "WONK" 1;
}

.ruchers-bonjour {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 500;
	line-height: 1.55;
	max-width: 46ch;
}

.ruchers-signature {
	font-family: var(--wp--preset--font-family--display);
	font-style: italic;
	font-weight: 500;
	font-size: 1.5rem;
	line-height: 1;
	color: #8A6A3A;
	margin-top: 1.6rem;
	padding-left: 3.4rem;
	position: relative;
}
.ruchers-signature::before {
	content: "";
	position: absolute;
	left: 0;
	top: .5rem;
	width: 44px;
	height: 1px;
	background: var(--wp--preset--color--trait);
}
.ruchers-signature small {
	display: block;
	font-family: var(--wp--preset--font-family--body);
	font-style: normal;
	font-size: .76rem;
	letter-spacing: .04em;
	color: var(--wp--preset--color--encre-doux);
	margin-top: .35rem;
}

/* ─────────────── cadres photo : posés, pas encastrés ─────────────── */
.wp-block-image.is-style-cadre,
.wp-block-image.is-style-cadre.size-large {
	background: var(--wp--preset--color--blanc);
	padding: .7rem .7rem 0 !important;
	border-radius: 8px;
	box-shadow: 0 18px 40px -18px rgba(74, 65, 54, .45), 0 2px 6px rgba(74, 65, 54, .08);
	transform: rotate(-1.8deg);
	display: inline-block;
}
/* la photo de la section « eux » penche dans l'autre sens */
#eux .wp-block-image.is-style-cadre { transform: rotate(1.6deg); }
.wp-block-image.is-style-cadre img { border-radius: 4px; }
.wp-block-image.is-style-cadre figcaption {
	text-align: center;
	padding: .55rem .3rem .6rem;
	margin: 0;
}

/* ─────────────── carte de France ─────────────── */
.ruchers-origine { align-items: center; gap: clamp(1.25rem, 3vw, 2.25rem); }
.ruchers-origine__carte {
	position: relative;
	flex: none;
	width: 96px;
	color: var(--wp--preset--color--trait);
}
.ruchers-origine__carte svg { display: block; width: 100%; height: auto; }
.ruchers-origine__point {
	position: absolute;
	left: 79%;
	top: 75%;
	width: 11px;
	height: 11px;
	margin: -5.5px 0 0 -5.5px;
	border-radius: 50%;
	background: var(--wp--preset--color--miel-fonce);
	box-shadow: 0 0 0 3px var(--wp--preset--color--blanc);
}
.ruchers-origine__point::after {
	content: "";
	position: absolute;
	inset: -7px;
	border-radius: 50%;
	border: 1.5px solid rgba(176, 131, 52, .45);
	animation: ruchers-pulse 3.2s ease-out infinite;
}
@keyframes ruchers-pulse {
	0%   { transform: scale(.6);  opacity: .9; }
	70%, 100% { transform: scale(1.55); opacity: 0; }
}
.ruchers-origine__titre {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	font-size: 1.06rem;
	margin: 0 0 .3rem;
	font-variation-settings: "SOFT" 100, "WONK" 1;
}
@media (max-width: 620px) {
	.ruchers-origine { flex-direction: column; text-align: center; }
}

/* ─────────────── IGP ─────────────── */
.ruchers-igp { gap: 1rem; align-items: flex-start; }
.ruchers-igp__badge {
	flex: none;
	width: 54px;
	height: 54px;
	margin: 0;
	border-radius: 50%;
	background: var(--wp--preset--color--lavande);
	color: #fff;
	display: grid;
	place-items: center;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	font-size: .82rem;
}

/* ─────────────── frise de ruches ─────────────── */
.ruchers-a-frise { position: relative; padding-bottom: clamp(7rem, 13vw, 11rem) !important; }
.ruchers-frise {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 0;
	display: flex;
	align-items: flex-end;
	justify-content: space-around;
	gap: 1rem;
	padding: 0 2vw;
	height: clamp(76px, 10vw, 132px);
	pointer-events: none;
	color: var(--wp--preset--color--trait);
	border-bottom: 1.4px solid currentColor;
	overflow: hidden;
}
.ruchers-frise__brin {
	display: block;
	transform-origin: 50% 100%;
	animation: ruchers-brise 7s ease-in-out infinite;
	will-change: transform;
}
.ruchers-frise__brin:nth-child(3n)   { animation-duration: 9s; }
.ruchers-frise__brin:nth-child(3n+1) { animation-duration: 11s; }
.ruchers-frise__brin svg { height: clamp(52px, 7vw, 88px); width: auto; display: block; }
@keyframes ruchers-brise {
	0%, 100% { transform: rotate(-1.3deg); }
	50%      { transform: rotate(1.5deg); }
}
.ruchers-a-frise > :not(.ruchers-frise) { position: relative; z-index: 1; }

/* ─────────────── cartes produit ─────────────── */
.ruchers-carte {
	background: var(--wp--preset--color--blanc);
	border: 1px solid #EFE9DC;
	border-radius: 28px;
	overflow: hidden;
	height: 100%;
	display: flex;
	flex-direction: column;
	transition: transform .24s ease, box-shadow .24s ease;
}
.ruchers-carte:hover {
	transform: translateY(-5px);
	box-shadow: 0 22px 44px -20px rgba(74, 65, 54, .3);
}
.ruchers-carte .wp-block-post-featured-image { margin: 0; }
.ruchers-carte .wp-block-post-featured-image img { transition: transform .6s ease; }
.ruchers-carte:hover .wp-block-post-featured-image img { transform: scale(1.05); }
.ruchers-carte__txt { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; gap: .5rem; }
.ruchers-carte__lieu {
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--encre-doux);
}
.ruchers-carte__lieu a { text-decoration: none; color: inherit; }
.ruchers-carte .wp-block-woocommerce-product-button { margin-top: auto; }

/* ─────────────── rupture : une preuve, pas une panne ─────────────── */
.ruchers-carte.outofstock .wp-block-post-featured-image img { filter: saturate(.45) opacity(.72); }

/* ─────────────── miel du moment ─────────────── */
.ruchers-moment {
	display: grid;
	grid-template-columns: .92fr 1.08fr;
	gap: clamp(1.75rem, 4vw, 3.25rem);
	align-items: center;
}
@media (max-width: 900px) { .ruchers-moment { grid-template-columns: 1fr; } }

.ruchers-moment__photo {
	background: var(--wp--preset--color--blanc);
	padding: .7rem .7rem 0;
	border-radius: 8px;
	box-shadow: 0 18px 40px -18px rgba(74, 65, 54, .45);
	transform: rotate(-1.8deg);
	margin: 0;
}
.ruchers-moment__photo img { border-radius: 4px; display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.ruchers-moment__photo figcaption {
	font-family: var(--wp--preset--font-family--display);
	font-style: italic;
	font-size: .82rem;
	color: var(--wp--preset--color--encre-doux);
	text-align: center;
	padding: .55rem .3rem .6rem;
}
.ruchers-moment__saison {
	display: inline-flex;
	align-items: center;
	gap: .55rem;
	background: var(--wp--preset--color--miel-pale);
	border-radius: 999px;
	padding: .4rem 1rem .4rem .7rem;
	font-size: .74rem;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: #7A5A17;
}
.ruchers-moment__goutte {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--wp--preset--color--miel);
	flex: none;
	animation: ruchers-pulse 2.8s ease-out infinite;
}
.ruchers-moment__titre { margin: 1rem 0 .8rem; }
.ruchers-moment__desc p {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 500;
	font-size: clamp(1.02rem, 1.5vw, 1.18rem);
	line-height: 1.55;
	max-width: 42ch;
}
.ruchers-moment__lieu {
	display: flex;
	align-items: center;
	gap: .5rem;
	font-size: .71rem;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--encre-doux);
}
.ruchers-moment__puce,
.ruchers-carte__puce {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	flex: none;
	box-shadow: 0 0 0 3px var(--wp--preset--color--blanc);
}
.ruchers-moment__prix {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	font-size: 2.1rem;
	line-height: 1;
	margin: 1.5rem 0 0;
}

/* ─────────────── nous trouver ─────────────── */
.ruchers-bloc { transition: transform .22s ease; }
.ruchers-bloc:hover { transform: translateY(-4px); }
.ruchers-tel {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	font-size: 1.28rem;
	margin: .3rem 0;
}
.ruchers-tel a { text-decoration: none; }

/* ─────────────── réassurance ─────────────── */
.ruchers-rassurance__titre {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	font-size: 1rem;
	margin: 0 0 .2rem;
	font-variation-settings: "SOFT" 100, "WONK" 1;
}

/* ─────────────── quiétude ─────────────── */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation: none !important;
		transition: none !important;
	}
	.wp-block-image.is-style-cadre,
	.ruchers-moment__photo { transform: none; }
}

/* ═══════════════════════════════════════════════════════════
   FIDÉLITÉ À LA MAQUETTE — ajouts du groupe A
   ═══════════════════════════════════════════════════════════ */

/* ─────────────── abeilles ─────────────── */
.ruchers-bee {
	position: absolute;
	pointer-events: none;
	height: auto;
	filter: drop-shadow(0 6px 10px rgba(74, 65, 54, .22));
	animation: ruchers-butine 8s ease-in-out infinite;
	will-change: transform;
}
@keyframes ruchers-butine {
	0%, 100% { transform: translate(0, 0) rotate(0); }
	20%  { transform: translate(5px, -6px) rotate(-5deg); }
	42%  { transform: translate(-4px, -10px) rotate(4deg); }
	63%  { transform: translate(-8px, -4px) rotate(-3deg); }
	85%  { transform: translate(3px, -7px) rotate(2deg); }
}
.ruchers-bee--1 { top: 16%; right: 5%;  width: clamp(48px, 4.6vw, 74px); z-index: 4; }
.ruchers-bee--2 { bottom: 30%; right: 40%; width: clamp(34px, 3.2vw, 52px); z-index: 4; }
.ruchers-bee--3 { top: 58%; left: 2%;   width: clamp(30px, 2.6vw, 42px); z-index: 4; opacity: .9; }
.ruchers-bee--fond-1 { top: 7%; right: 5%; width: clamp(34px, 3vw, 50px); z-index: 0; opacity: .9; }
@media (max-width: 900px) { .ruchers-bee--2, .ruchers-bee--3 { display: none; } }

/* ─────────────── décors au trait ─────────────── */
.ruchers-deco { position: absolute; pointer-events: none; z-index: 0; color: var(--wp--preset--color--trait); }
.ruchers-deco svg { display: block; width: 100%; height: auto; }
.ruchers-deco--1 { top: 6%;  right: 4%;  width: 74px; transform: rotate(-12deg); }
.ruchers-deco--2 { bottom: 18%; left: -2%; width: 58px; transform: rotate(14deg); }

/* ─────────────── pastille médaille ─────────────── */
.ruchers-hero__photo { position: relative; }
.ruchers-medaille {
	position: absolute;
	left: -1.25rem;
	bottom: -1.6rem;
	z-index: 5;
	display: flex;
	align-items: center;
	gap: .8rem;
	background: var(--wp--preset--color--blanc);
	border-radius: 999px;
	padding: .65rem 1.35rem .65rem .75rem;
	box-shadow: 0 12px 30px -10px rgba(74, 65, 54, .28);
}
.ruchers-medaille b { display: block; font-size: .83rem; font-weight: 600; line-height: 1.3; }
.ruchers-medaille span { display: block; font-size: .74rem; color: var(--wp--preset--color--encre-doux); }
@media (max-width: 920px) { .ruchers-medaille { left: .75rem; bottom: -1.4rem; } }

/* ─────────────── badge 7 M ─────────────── */
#eux .wp-block-column:first-child { position: relative; overflow: visible; }
#eux .ruchers-cadre { overflow: visible; }
.ruchers-chiffre {
	position: absolute;
	right: -.75rem;
	bottom: -1.5rem;
	z-index: 5;
	background: var(--wp--preset--color--blanc);
	padding: 1.1rem 1.4rem;
	border-radius: 22px;
	max-width: 190px;
	box-shadow: 0 14px 32px -14px rgba(74, 65, 54, .3);
}
.ruchers-chiffre b {
	display: block;
	font-family: var(--wp--preset--font-family--display);
	font-size: 2rem;
	font-weight: 600;
	color: var(--wp--preset--color--miel-fonce);
	line-height: 1;
}
.ruchers-chiffre span {
	font-size: .74rem;
	color: var(--wp--preset--color--encre-doux);
	line-height: 1.45;
	display: block;
	margin-top: .2rem;
}

/* ─────────────── vignette « c'est Olivier » ─────────────── */
.ruchers-qui-repond { display: flex; align-items: center; gap: .7rem; margin-top: .7rem; }
.ruchers-qui-repond__rond {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	flex: none;
	background: var(--wp--preset--color--miel-pale) url("https://lesruchersdarielleetolivier.fr/wp-content/uploads/2024/04/344760047_226609880000573_4301993277681554015_n.jpg") center/cover;
}
.ruchers-qui-repond span:last-child {
	font-size: .79rem;
	color: var(--wp--preset--color--encre-doux);
	line-height: 1.4;
}

/* ─────────────── mur de photos ─────────────── */
.ruchers-galerie {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 1.4rem;
}
.ruchers-galerie .wp-block-image { margin: 0; transition: transform .3s ease; }
.ruchers-galerie .wp-block-image:hover { transform: rotate(0) translateY(-5px) scale(1.02); z-index: 2; }
.ruchers-galerie__g1 { grid-column: 1 / 4; transform: rotate(-1.5deg); }
.ruchers-galerie__g2 { grid-column: 4 / 7; margin-top: 2.2rem !important; transform: rotate(1.2deg); }
.ruchers-galerie__g3 { grid-column: 1 / 3; transform: rotate(1.8deg); }
.ruchers-galerie__g4 { grid-column: 3 / 5; margin-top: -1rem !important; transform: rotate(-1deg); }
.ruchers-galerie__g5 { grid-column: 5 / 7; margin-top: 1.2rem !important; transform: rotate(2deg); }
@media (max-width: 760px) {
	.ruchers-galerie { grid-template-columns: 1fr; gap: 1.8rem; }
	.ruchers-galerie .wp-block-image { grid-column: 1 / -1 !important; margin-top: 0 !important; }
}

/* ─────────────── franco ─────────────── */
.ruchers-franco { color: #6B5730; }

/* Le hero et les sections à décor doivent contenir leurs absolus. */
/* Les abeilles décoratives sont clippées ; mais #eux laisse déborder le badge « 7 M ». */
.ruchers-hero, .ruchers-miels, #trouver { position: relative; overflow: hidden; }
#eux { position: relative; overflow: visible; }
#eux .wp-block-columns { overflow: visible; }

/* ═══════════════════════════════════════════════════════════
   FICHE PRODUIT
   ═══════════════════════════════════════════════════════════ */

.ruchers-fiche__galerie .wp-block-woocommerce-product-image-gallery img { border-radius: 12px; }
.ruchers-fiche__infos { align-self: start; }

/* bandeau de halte, en tête de fiche */
.ruchers-halte-produit {
	display: inline-flex;
	align-items: center;
	gap: .55rem;
	font-size: .72rem;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--encre-doux);
	margin: 0 0 .75rem;
}
.ruchers-halte-produit__fleur { display: inline-flex; }
.ruchers-halte-produit__fleur svg { height: 26px; width: auto; }
.ruchers-halte-produit__puce {
	width: 11px; height: 11px; border-radius: 50%;
	box-shadow: 0 0 0 3px var(--wp--preset--color--blanc);
}

.ruchers-fiche__accroche {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 500;
	line-height: 1.5;
	color: var(--wp--preset--color--encre);
	margin: 1rem 0 1.5rem;
}

/* prix en Fraunces (déjà réglé via theme.json, on ajuste la taille sur la fiche) */
.ruchers-fiche__infos .wp-block-woocommerce-product-price { margin-bottom: 1.25rem; }

/* onglets description : sobres, pas les boîtes Woo par défaut */
.ruchers-fiche__details .wc-tabs { border: 0; padding: 0; margin: 0 0 1.5rem; }
.ruchers-fiche__details .wc-tab h2 { margin-top: 0; }
.ruchers-fiche__details .wc-tab p {
	max-width: 68ch;
	color: var(--wp--preset--color--encre);
}

/* halte surlignée dans le carnet (fiche produit) */
.ruchers-carnet__halte:not(.est-actif) { opacity: .5; transition: opacity .3s ease; }
.ruchers-carnet__halte.est-actif .ruchers-carnet__point { r: 11; }
.ruchers-carnet__halte.est-actif .ruchers-carnet__nom { font-weight: 700; }
.ruchers-carnet:has(.est-actif) .ruchers-carnet__halte:hover { opacity: 1; }

/* produits liés : réutilisent les cartes de la boutique */
.wc-block-grid__product,
.wp-block-woocommerce-related-products li {
	background: var(--wp--preset--color--blanc);
	border: 1px solid #EFE9DC;
	border-radius: 20px;
	overflow: hidden;
	transition: transform .24s ease, box-shadow .24s ease;
}
.wc-block-grid__product:hover,
.wp-block-woocommerce-related-products li:hover {
	transform: translateY(-4px);
	box-shadow: 0 20px 40px -18px rgba(74, 65, 54, .28);
}
