/* ============================================================
   French Pills — Composants partagés
   Porté verbatim depuis _projet/design-claude/project/Primitives.jsx
   Source de vérité pour : Button, Eyebrow, Tag, ColorBlock, Capsule,
   Flacon, Arrow, DottedRule, Reveal.
   ============================================================ */


/* ---------- Eyebrow (typewriter ALL CAPS) ----------
   Taille par défaut: 11px (Primitives.jsx). Variante 12px courante
   via classe .fp-eyebrow--12 si besoin.
*/
.fp-eyebrow {
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.18em;
	line-height: 1;
	text-transform: uppercase;
	color: var(--ink-3);
}
.fp-eyebrow--12 { font-size: 12px; }
.fp-eyebrow--13 { font-size: 13px; }
.fp-eyebrow--on-dark { color: rgba(244, 239, 230, 0.7); }
.fp-eyebrow--ink   { color: var(--ink); }
.fp-eyebrow--ink-2 { color: var(--ink-2); }


/* ---------- Tag / chip ---------- */
.fp-tag {
	font-family: var(--font-mono);
	font-size: 10px;
	letter-spacing: 0.16em;
	line-height: 1;
	text-transform: uppercase;
	color: var(--ink);
	border: 1px solid currentColor;
	padding: 4px 8px;
	border-radius: 2px;
	display: inline-block;
}
.fp-tag--capsule {
	padding: 4px 12px;
	border-radius: 999px;
}


/* ---------- Color block (signature label treatment) ---------- */
.fp-color-block {
	font-family: var(--font-serif);
	font-weight: 500;
	font-size: 32px;
	line-height: 1;
	text-transform: lowercase;
	display: inline-block;
	padding: 0.06em 0.3em 0.16em;
	background: var(--accent);
	color: var(--paper);
	border-radius: 2px;
}


/* ============================================================
   BUTTON — porté verbatim depuis Primitives.jsx (Button)
   Variants: primary / secondary / tertiary
   ============================================================ */

/* Note : on explicite `color` à chaque état (rest + hover + visited + focus + active)
   pour neutraliser les styles globaux du thème (GeneratePress override les a:hover). */

.fp-btn,
.fp-btn:link,
.fp-btn:visited {
	/* base */
	font-family: var(--font-mono);
	font-size: 12px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	padding: 13px 24px;
	border-radius: 4px;
	cursor: pointer;
	border: 1px solid transparent;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	transition: all 200ms cubic-bezier(.2, .7, .2, 1);
	text-decoration: none;
	/* primary at rest */
	background: var(--accent);
	color: var(--paper);
	box-shadow: var(--sh-paper);
	opacity: 1;
	transform: none;
}
.fp-btn:hover,
.fp-btn:focus,
.fp-btn:active {
	background: var(--accent-deep);
	color: var(--paper);
	border-color: transparent;
	transform: translateY(-1px);
	box-shadow: var(--sh-card);
	text-decoration: none;
}
.fp-btn:disabled,
.fp-btn[aria-disabled="true"] {
	opacity: 0.5;
	cursor: not-allowed;
	transform: none;
}

/* secondary — transparent + border ink */
.fp-btn.fp-btn--secondary,
.fp-btn.fp-btn--secondary:link,
.fp-btn.fp-btn--secondary:visited {
	background: transparent;
	color: var(--ink);
	border: 1px solid var(--ink);
	box-shadow: none;
	transform: none;
}
.fp-btn.fp-btn--secondary:hover,
.fp-btn.fp-btn--secondary:focus,
.fp-btn.fp-btn--secondary:active {
	background: var(--ink);
	color: var(--paper);
	border-color: var(--ink);
	box-shadow: none;
	transform: none;
	text-decoration: none;
}

/* tertiary — bordure basse, pas de fond */
.fp-btn.fp-btn--tertiary,
.fp-btn.fp-btn--tertiary:link,
.fp-btn.fp-btn--tertiary:visited {
	background: transparent;
	color: var(--ink);
	border: 1px solid transparent;
	border-bottom: 1px solid var(--ink);
	border-radius: 0;
	padding: 10px 0;
	box-shadow: none;
	transform: none;
}
.fp-btn.fp-btn--tertiary:hover,
.fp-btn.fp-btn--tertiary:focus,
.fp-btn.fp-btn--tertiary:active {
	color: var(--accent);
	border-bottom-color: var(--accent);
	background: transparent;
	box-shadow: none;
	transform: none;
	text-decoration: none;
}

/* on-dark — variante secondary inverse pour fonds sombres (Hero Cinematic) */
.fp-btn.fp-btn--on-dark,
.fp-btn.fp-btn--on-dark:link,
.fp-btn.fp-btn--on-dark:visited {
	background: transparent;
	color: var(--paper);
	border: 1px solid var(--paper);
	box-shadow: none;
	transform: none;
}
.fp-btn.fp-btn--on-dark:hover,
.fp-btn.fp-btn--on-dark:focus,
.fp-btn.fp-btn--on-dark:active {
	background: var(--paper);
	color: var(--ink);
	border-color: var(--paper);
	box-shadow: none;
	transform: translateY(-1px);
	text-decoration: none;
}

/* layout helpers */
.fp-btn--block { width: 100%; justify-content: center; }


/* ============================================================
   DOTTED RULE — apothecary style
   ============================================================ */
.fp-rule {
	border: 0;
	height: 1px;
	background: var(--rule);
	width: 100%;
	margin: 0;
}
.fp-rule--dotted {
	border: 0;
	height: 1px;
	background-image: radial-gradient(circle, var(--rule-strong) 1px, transparent 1.2px);
	background-size: 6px 1px;
	background-repeat: repeat-x;
	background-position: 0 50%;
	margin: 0;
}


/* ============================================================
   ARROW glyph — utilisé dans les CTAs avec "→"
   ============================================================ */
.fp-arrow {
	display: inline-block;
	width: 12px;
	height: 1px;
	background: currentColor;
	position: relative;
}
.fp-arrow::after {
	content: '';
	position: absolute;
	right: -1px;
	top: -3px;
	width: 6.6px;
	height: 6.6px;
	border-top: 1px solid currentColor;
	border-right: 1px solid currentColor;
	transform: rotate(45deg);
}


/* ============================================================
   SVG glyphs — wrappers pour les SVG inline (Capsule, Flacon)
   ============================================================ */
.fp-glyph {
	display: inline-block;
	vertical-align: middle;
	color: currentColor;
}
.fp-glyph svg { display: block; width: 100%; height: 100%; }


/* ============================================================
   LINK — soulignement animé (porté verbatim depuis home.css)
   .fp-link              : trait visible au repos, disparaît au hover (gauche→droite vide)
   .fp-link--reverse     : trait absent au repos, se trace au hover (gauche→droite plein)
   ============================================================ */
.fp-link,
.fp-link:link,
.fp-link:visited {
	display: inline-block;
	color: var(--ink);
	text-decoration: none;
	position: relative;
	font-family: var(--font-mono);
	font-size: 12px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	padding-bottom: 4px;
	cursor: pointer;
}
.fp-link::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 1px;
	background: currentColor;
	transform: scaleX(1);
	transform-origin: right;
	transition: transform 380ms cubic-bezier(.2, .7, .2, 1);
}
.fp-link:hover::after {
	transform: scaleX(0);
	transform-origin: left;
}
/* Reverse : trait absent au repos, se trace au hover */
.fp-link--reverse::after { transform: scaleX(0); transform-origin: left; }
.fp-link--reverse:hover::after { transform: scaleX(1); transform-origin: left; }
/* Préserver la couleur au hover (sinon GP override) */
.fp-link:hover,
.fp-link:focus,
.fp-link:active {
	text-decoration: none;
}


/* ============================================================
   IMAGE HOVER — zoom subtle 1 → 1.04
   ============================================================ */
.fp-img-hover {
	overflow: hidden;
}
.fp-img-hover img {
	transition: transform 720ms cubic-bezier(.2, .7, .2, 1);
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.fp-img-hover:hover img,
.fp-img-hover:focus-within img {
	transform: scale(1.04);
}


/* ============================================================
   TYPOGRAPHY UTILITIES
   ============================================================ */
.fp-display-xl {
	font-family: var(--font-serif);
	font-weight: 500;
	font-size: clamp(2.8rem, 8vw, 7.5rem);
	line-height: 0.95;
	letter-spacing: -0.02em;
	text-transform: lowercase;
	text-wrap: balance;
	color: var(--ink);
}
.fp-display-l {
	font-family: var(--font-serif);
	font-weight: 500;
	font-size: clamp(2rem, 5.5vw, 4.5rem);
	line-height: 1.02;
	letter-spacing: -0.015em;
	text-transform: lowercase;
	text-wrap: balance;
	color: var(--ink);
}


/* ============================================================
   SECTION MARKER — pointillé d'intro (apothicaire)
   ============================================================ */
.fp-section-marker {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 48px;
}
.fp-section-marker::before {
	content: '';
	flex: 0 0 24px;
	height: 1px;
	background-image: radial-gradient(circle, var(--rule-strong) 1px, transparent 1.2px);
	background-size: 6px 1px;
	background-repeat: repeat-x;
}
@media (max-width: 720px) {
	.fp-section-marker { margin-bottom: 32px; }
}


/* ============================================================
   HERO ENTRY ANIMATION — char by char rise
   ============================================================ */
@keyframes fp-rise {
	from { opacity: 0; transform: translateY(36px); }
	to   { opacity: 1; transform: translateY(0); }
}
.fp-rise > * {
	display: inline-block;
	opacity: 0;
	animation: fp-rise 1100ms cubic-bezier(.2, .7, .2, 1) forwards;
}


/* ============================================================
   RESPONSIVE HELPERS — show/hide on mobile
   ============================================================ */
.fp-show-on-mobile { display: none; }
@media (max-width: 720px) {
	.fp-hide-on-mobile { display: none !important; }
	.fp-show-on-mobile { display: inline-flex; }
}


/* ============================================================
   SCROLLBARS — hide on horizontal carousels
   ============================================================ */
.fp-no-scrollbar::-webkit-scrollbar { display: none; }
.fp-no-scrollbar { scrollbar-width: none; }

/* ============================================================
   PRIX — affichage avec gestion remise (sale_price + barré + badge)
   Port _projet/design-claude/project/components/ProduitHero.jsx (lignes 110-137).
   Helper PHP : inc/wc-price-display.php → fp_price_html()
   ============================================================ */
.fp-price {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
/* WooCommerce produit son propre <span class="woocommerce-Price-amount"> :
   on neutralise pour qu'il hérite des styles parents. */
.fp-price .woocommerce-Price-amount {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  text-decoration: inherit;
}
.fp-price ins,
.fp-price del {
  background: none;
}
.fp-price ins {
  text-decoration: none;
}
/* Variante promo : sale en accent, regular barré, badge optionnel */
.fp-price--promo .fp-price__sale {
  color: var(--accent);
}
.fp-price__regular {
  font-family: var(--font-serif);
  font-size: 0.78em;
  color: var(--ink-3);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--ink-3);
  line-height: 1;
}
.fp-price__badge {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--accent);
  padding: 3px 8px;
  border-radius: 2px;
  line-height: 1.4;
  white-space: nowrap;
}
/* Variante "ordre inversé" : badge / regular / sale (de gauche à droite). */
.fp-price--reverse .fp-price__badge   { order: 1; }
.fp-price--reverse .fp-price__regular { order: 2; }
.fp-price--reverse .fp-price__sale    { order: 3; }
