/* ==========================================================================
   LA PEAU DU SITE (5 nov. 2026) - inc/peau-site.php
   Vianney : « on a validé la 1re page du site, aligne les autres pages sur ce thème / structure : le même panneau
   flottant ainsi que la typo ». Toutes les pages sauf l'accueil « Nouveau » et le guide (qui l'ont déjà) prennent :
   l'en-tête en PILULE blanche qui flotte et se range au défilement, la police HANKEN GROTESK (« Flowly V3 Texte »),
   les titres en graisse 500 serrés, le fond pervenche très pâle, des cartes blanches aux coins doux, des boutons
   pervenche à texte encre, un pied de page blanc aux coins arrondis.
   Palette de Léa et rien d'autre : #7B8CF6 #D7C5F3 #FFABB3 #D9B7D1 #F7D1C0 #F4EEEE + blanc, leurs éclaircissements ;
   l'encre #2D2F52 pour le texte, les icônes et les traits fins (jamais en fond).
   Chargée après flowly.css et theme-atelier.css : elle ne fait que REMPLACER des jetons et quelques règles ; retirer
   la ligne de flowly-design.php remet tout comme avant.
   ========================================================================== */

/* ---------- 0. Les jetons : les mêmes valeurs que sur l'accueil ---------- */
body.fl-v3-site {
	--v3-peri: #7B8CF6;
	--v3-lav: #D7C5F3;
	--v3-rose: #FFABB3;
	--v3-mauve: #D9B7D1;
	--v3-peche: #F7D1C0;
	--v3-warm: #F4EEEE;
	--v3-encre: #2D2F52;
	--v3-encre-doux: color-mix(in srgb, #2D2F52 80%, #FFFFFF);
	--v3-texte: 'Flowly V3 Texte', 'Nunito', system-ui, sans-serif;
	--v3-entete: 92px;
	--v3-lent: cubic-bezier(.2, .7, .2, 1);
	--v3-arrondi: 22px;
	--v3-trait-fin: rgba(45, 47, 82, .14);
	--v3-trait-net: rgba(45, 47, 82, .22);
	/* 9 nov. 2026 (Vianney : « remets un fond crème qui suit avec ma palette ») : le crème = la pêche de Léa (#F7D1C0)
	   éclaircie vers le blanc (≈ #FDF5F1), au lieu du pervenche très pâle ; l'accueil garde le sien (accueil-v3-edito.css) */
	--nu-fond: color-mix(in srgb, #F7D1C0 22%, #FFFFFF);
	--v3-peri-plein: color-mix(in srgb, #7B8CF6 85%, #FFFFFF);  /* boutons : l'encre dessus 5,1:1 */
	--t-bouton: color-mix(in srgb, #7B8CF6 58%, #FFFFFF);       /* bouton doux : l'encre dessus 6,7:1 */
	--t-lav: color-mix(in srgb, #D7C5F3 48%, #FFFFFF);
	--t-peche: color-mix(in srgb, #F7D1C0 60%, #FFFFFF);

	/* les jetons du reste du site (flowly.css, theme-atelier.css) suivent : mille règles changent d'un coup */
	--fl-font: var(--v3-texte);
	--fl-font-titre: var(--v3-texte);
	--fl-font-mono: var(--v3-texte);
	--fl-ink: var(--v3-encre);
	--fl-body: var(--v3-encre);
	--fl-muted: var(--v3-encre-doux);
	--fl-bg: var(--nu-fond);
	--fl-bg-card: #FFFFFF;
	--fl-bg-soft: var(--t-lav);
	--fl-bg-tint: var(--t-lav);
	--fl-line: var(--v3-trait-fin);
	--fl-line-soft: rgba(45, 47, 82, .09);
	--fl-entete: transparent;
	--fl-r-sm: 14px;
	--fl-r-lg: var(--v3-arrondi);
	--fl-bandeau: color-mix(in srgb, #D7C5F3 62%, #FFFFFF);
	--fl-sh-1: 0 1px 2px rgba(45, 47, 82, .04), 0 10px 30px -22px rgba(45, 47, 82, .35);
	--fl-sh-2: 0 18px 40px -26px rgba(45, 47, 82, .45);
	--fl-sh-3: 0 24px 44px -24px rgba(45, 47, 82, .55);
	background: var(--nu-fond) !important;
	color: var(--v3-encre);
}

/* ---------- 1. La typo : Hanken partout, titres en 500 serrés comme les titres de l'accueil ---------- */
body.fl-v3-site,
body.fl-v3-site :is(input, button, select, textarea, .button) { font-family: var(--v3-texte); }
body.fl-v3-site { font-size: 1.02rem; line-height: 1.6; }
/* `html body.fl-v3-site` + :is() : plus fort que `body.fl-theme-atelier :is(h1,…)` de theme-atelier.css (0,2,1). */
html body.fl-v3-site :is(h1, h2, h3, h4, h5, h6, .entry-title, .page-title, .product_title, .wp-block-heading, .fl-h2, .fl-accroche__titre, .fl-histoire__titre, .fl-avant__titre, .fl-gestes__titre, legend) {
	font-family: var(--v3-texte) !important;
	font-weight: 500 !important;
	letter-spacing: -.04em;
	line-height: 1.04;
	color: var(--v3-encre) !important;
	text-wrap: balance;
}
html body.fl-v3-site :is(h1, .entry-title, .page-title, .product_title) { font-size: clamp(2.1rem, 3.6vw, 3.4rem) !important; letter-spacing: -.05em; line-height: .98; }
/* la fiche produit : flowly.css (§ fiche) impose 700 et une taille plus petite au nom de l'objet ; même titre que les autres pages */
html body.fl-v3-site.single-product div.product .product_title { font-size: clamp(2rem, 3.2vw, 3rem) !important; font-weight: 500 !important; letter-spacing: -.045em; line-height: 1 !important; }
html body.fl-v3-site :is(h2, .fl-h2) { font-size: clamp(1.5rem, 2.4vw, 2.2rem) !important; }
html body.fl-v3-site :is(h3) { font-size: 1.22rem !important; font-weight: 600 !important; letter-spacing: -.02em; }
html body.fl-v3-site :is(h4, h5, h6, legend) { font-weight: 600 !important; letter-spacing: -.015em; }
/* « Mes adresses » : les deux titres en capitales (ADRESSE DE FACTURATION) prenaient la taille d'un grand titre */
html body.fl-v3-site .woocommerce-Address-title h2, html body.fl-v3-site .woocommerce-Address-title h3 { font-size: .9rem !important; font-weight: 700 !important; letter-spacing: .12em; line-height: 1.3; }
/* les noms des objets sur les cartes et les petits titres de rubrique restent gras (comme sur l'accueil) */
html body.fl-v3-site :is(.woocommerce-loop-product__title, .fl-carr__nom, .fl-eyebrow, summary, .fl-faq__q, .fl-pied__titre, .fl-plus__titre) { font-weight: 700 !important; letter-spacing: 0; line-height: 1.3; }
html body.fl-v3-site :is(.fl-eyebrow, .fl-pied__titre) { letter-spacing: .14em; color: var(--v3-encre-doux); }
/* le mot mis en avant en pervenche profonde (theme-atelier §18) : trop vif à côté du reste, encre comme sur l'accueil */
html body.fl-v3-site :is(h1, h2) :is(em, strong, b, .fl-mot) { color: var(--v3-encre) !important; }
html body.fl-v3-site :is(p, li, td, th, label, .woocommerce-breadcrumb) { font-variant-numeric: proportional-nums; }

/* ---------- 2. L'en-tête : la pilule blanche qui flotte (copie des règles de l'accueil, accueil-v3.css) ---------- */
body.fl-v3-site .fl-annonce { background: var(--fl-bandeau) !important; color: var(--v3-encre) !important; }
body.fl-v3-site #masthead {
	position: sticky !important;
	top: calc(var(--wp-admin--admin-bar--height, 0px) + 12px);
	z-index: 90;
	padding-inline: max(12px, 2vw);
	background: transparent !important;
	box-shadow: none !important;
	transition: transform .7s var(--v3-lent), opacity .7s ease;
	pointer-events: none;
}
body.fl-v3-site #masthead > * { pointer-events: auto; }
body.fl-v3-site #masthead .main-header-bar-wrap { padding-top: 12px; }
body.fl-v3-site #masthead .main-header-bar,
body.fl-v3-site #masthead .ast-primary-header-bar,
html.fl-defile body.fl-v3-site #masthead .ast-primary-header-bar,
body.fl-v3-site #masthead #ast-mobile-header .ast-primary-header-bar.main-header-bar {
	max-width: 1328px;
	margin-inline: auto;
	border-radius: 999px;
	border: 1px solid #FFFFFF !important;
	border-bottom: 1px solid #FFFFFF !important;
	background: rgba(255, 255, 255, .92) !important;
	-webkit-backdrop-filter: blur(16px) saturate(1.2);
	backdrop-filter: blur(16px) saturate(1.2);
	box-shadow: 0 18px 40px -26px rgba(45, 47, 82, .55) !important;
	padding-top: .3rem !important;
	padding-bottom: .3rem !important;
}
/* Téléphone et tablette : Astra (et flowly.css) peignent un fond plein sur l'enveloppe, la pilule doit se détacher */
body.fl-v3-site #masthead .ast-mobile-header-wrap,
body.fl-v3-site #masthead .site-primary-header-wrap,
body.fl-v3-site #masthead .ast-builder-grid-row,
html.fl-defile body.fl-v3-site #masthead .ast-mobile-header-wrap { background: transparent !important; box-shadow: none !important; }
body.fl-v3-site #masthead .site-primary-header-wrap { padding-inline: 18px 10px; }
@media (max-width: 921px) {
	body.fl-v3-site .site-header, body.fl-v3-site .site-header .ast-mobile-header-wrap { background: transparent !important; }
	body.fl-v3-site #masthead #ast-mobile-header .ast-primary-header-bar.main-header-bar { padding-inline: 8px 6px; }
}
/* se range quand on descend, revient quand on remonte (peau-site.js) */
body.fl-v3-site.fl-v3-entete-cache #masthead { transform: translateY(calc(-100% - 24px)); opacity: 0; }
@media (prefers-reduced-motion: reduce) { body.fl-v3-site #masthead { transition: none; } }
/* un peu d'air entre la pilule et la page */
body.fl-v3-site #content { padding-top: 8px; }

/* ---------- 3. Boutons : pervenche à texte encre, en pilule (la règle de la palette ; comme « Voir la boutique ») ---------- */
body.fl-v3-site :is(.fl-btn, .fl-bouton, .fl-buybar__btn, .fl-cta:not(.fl-cta--ghost), .wp-block-button__link,
	.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt,
	.woocommerce .wc-proceed-to-checkout a.checkout-button, .woocommerce #place_order,
	.woocommerce-account form button[type=submit], .woocommerce .return-to-shop a.button,
	.woocommerce div.product form.cart button.single_add_to_cart_button, .fl-bulle-panier__commander, .fl-favoris__panier:not(.fl-favoris__panier--voir), .fl-favoris__boutique) {
	background: var(--v3-peri-plein) !important;
	background-image: none !important;
	color: var(--v3-encre) !important;
	border: 0 !important;
	border-radius: 999px !important;
	font-family: var(--v3-texte) !important;
	font-weight: 700 !important;
	letter-spacing: .01em;
}
@media (hover: hover) {
	body.fl-v3-site :is(.fl-btn, .fl-bouton, .fl-buybar__btn, .fl-cta:not(.fl-cta--ghost), .wp-block-button__link,
		.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt,
		.woocommerce .wc-proceed-to-checkout a.checkout-button, .woocommerce #place_order,
		.woocommerce-account form button[type=submit], .woocommerce .return-to-shop a.button,
		.woocommerce div.product form.cart button.single_add_to_cart_button, .fl-bulle-panier__commander):hover {
		background: #7B8CF6 !important;
		color: var(--v3-encre) !important;
		box-shadow: 0 0 0 4px rgba(123, 140, 246, .2) !important;
	}
}
/* les boutons « doux » (contour) : blanc translucide et trait encre, comme sur l'accueil */
body.fl-v3-site :is(.fl-cta--ghost, .fl-cart-continue, .fl-btn--ghost) {
	background: rgba(255, 255, 255, .7) !important;
	color: var(--v3-encre) !important;
	border-radius: 999px !important;
	box-shadow: inset 0 0 0 1.5px var(--v3-encre) !important;
	border: 0 !important;
}
body.fl-v3-site :focus-visible { outline: 3px solid var(--v3-encre); outline-offset: 3px; }

/* ---------- 4. Cartes, champs, encadrés : blancs, coins doux, trait fin ---------- */
body.fl-v3-site :is(.woocommerce ul.products li.product, .fl-carr__item, .fl-filters, .fl-faq__item, details.fl-plus, .fl-card, .woocommerce-MyAccount-navigation, .woocommerce-MyAccount-content, .fl-contact__form, .fl-cadeau__carte, .fl-empty, .woocommerce-cart .cart-collaterals .cart_totals) {
	background: #FFFFFF;
	border-color: var(--v3-trait-fin);
}
body.fl-v3-site :is(.woocommerce ul.products li.product, .fl-carr__item) { box-shadow: none; }
@media (hover: hover) {
	body.fl-v3-site :is(.woocommerce ul.products li.product, .fl-carr__item):hover { border-color: var(--v3-trait-net) !important; box-shadow: var(--fl-sh-2); }
}
body.fl-v3-site :is(input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=search], textarea, select, .select2-container .select2-selection--single) {
	background: #FFFFFF;
	border-color: var(--v3-trait-net);
	color: var(--v3-encre);
	font-family: var(--v3-texte);
}
body.fl-v3-site :is(input, textarea, select):focus { border-color: var(--v3-peri); box-shadow: 0 0 0 3px rgba(123, 140, 246, .2); }

/* Panier et commande (5 nov., contrôle du panier garni) : le titre « Total panier » reste un petit titre, sans bloc gris ;
   « Continuer mes achats » garde la hauteur d'un vrai bouton ; la colonne de gauche de la commande reste transparente
   (un fond blanc y faisait un grand bloc derrière « Payer en un geste »). */
html body.fl-v3-site .cart_totals > h2 { font-size: 1.3rem !important; font-weight: 600 !important; letter-spacing: -.02em; background: transparent !important; padding: 0 0 14px !important; margin: 0 !important; }
body.fl-v3-site a.fl-cart-continue { display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 20px !important; font-weight: 700; text-decoration: none !important; }

/* ---------- 5. Liens et petits textes ---------- */
body.fl-v3-site :is(.entry-content, .woocommerce) a:not(.button, .fl-btn, .fl-cta, .fl-bouton, [class*="fl-v3"], .woocommerce-loop-product__link, .fl-carr__lien, .fl-favori) { color: var(--v3-encre); text-decoration-color: var(--v3-peri); text-underline-offset: 4px; }
body.fl-v3-site .woocommerce-breadcrumb, body.fl-v3-site .woocommerce-breadcrumb a { color: var(--v3-encre-doux); font-size: .92rem; }
body.fl-v3-site .price, body.fl-v3-site .woocommerce-Price-amount { color: var(--v3-encre); font-weight: 700; }

/* ---------- 6. Le pied de page : blanc, posé sur la page aux coins arrondis (comme sur l'accueil) ---------- */
body.fl-v3-site .site-footer {
	background: #FFFFFF !important;
	border-top-left-radius: clamp(28px, 4vw, 56px);
	border-top-right-radius: clamp(28px, 4vw, 56px);
	box-shadow: none;
	margin-top: clamp(2.5rem, 6vw, 4.5rem);
}
body.fl-v3-site .site-footer, body.fl-v3-site .site-footer a { color: var(--v3-encre); }
body.fl-v3-site .site-footer .ast-footer-copyright .fl-pied .fl-pied__titre { color: var(--v3-encre-doux); }

/* ---------- 7. Téléphone ---------- */
@media (max-width: 760px) {
	body.fl-v3-site { --v3-entete: 76px; }
	html body.fl-v3-site :is(h1, .entry-title, .page-title, .product_title) { font-size: clamp(1.9rem, 8vw, 2.4rem) !important; }
}

