/*
Theme Name:  NEJMA
Template:    astra
Version:     1.13.2
Description: Thème enfant Astra de la boutique NEJMA : polices hébergées localement et ajustements de marque. Couleurs et tailles se règlent dans Apparence > Personnaliser (Astra).
Author:      NEJMA
Text Domain: nejma
*/

/* Polices hébergées localement (aucun appel à Google Fonts).
   Inter (titres) et Instrument Sans (texte) = polices d'origine du template Plant Shop ; Quicksand = boutons. */
@font-face { font-family: 'Inter'; src: url('fonts/inter-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('fonts/inter-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url('fonts/instrument-sans-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url('fonts/instrument-sans-latin-400-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url('fonts/instrument-sans-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url('fonts/instrument-sans-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Quicksand'; src: url('fonts/quicksand-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Quicksand'; src: url('fonts/quicksand-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }

:root {
	--nejma-rouille: #C13C3D;
	--nejma-lilas-clair: #F6ECF9;
}

/* Accessibilité : focus clavier toujours visible */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .button:focus-visible {
	outline: 2px solid var(--nejma-rouille);
	outline-offset: 3px;
}

/* Surtitre de section (classe « nejma-kicker » dans Elementor) : capitales espacées, comme le template */
.nejma-kicker, .nejma-kicker .elementor-heading-title, .nejma-kicker p {
	font-family: inherit;
	font-weight: 500;
	font-size: 14px;
	letter-spacing: 2px;
	text-transform: uppercase;
	line-height: 1.5;
}

/* Boutons en Quicksand (identité NEJMA) */
.woocommerce a.button, .woocommerce button.button, .elementor-button, .ast-button, .wp-element-button {
	font-family: 'Quicksand', sans-serif;
	font-weight: 600;
	letter-spacing: .02em;
}

/* ==========================================================================
   Cartes produits — UN SEUL style pour tout le site : boutique, catégories, étiquettes, recherche,
   produits similaires / associés, panier et slider « Nos coups de cœur ».
   Seul le style des cartes est défini ici : colonnes, filtres et pagination restent ceux de chaque page.
   ========================================================================== */
:root {
	--nejma-card-radius: 12px;
	--nejma-card-pad: 16px;
	--nejma-card-price: #454545;
	--nejma-card-shadow: 0 14px 26px -12px rgba(42, 19, 20, .28);
}
.woocommerce ul.products li.product { border-radius: var(--nejma-card-radius); }

/* Image : le cadre arrondi a exactement la taille de l'image, le zoom au survol reste rogné */
.woocommerce ul.products li.product .astra-shop-thumbnail-wrap { display: block; overflow: hidden; border-radius: var(--nejma-card-radius); isolation: isolate; margin-bottom: .8em; }
.woocommerce ul.products li.product .astra-shop-thumbnail-wrap img { display: block; margin-bottom: 0; }
.woocommerce ul.products li.product a img, .woocommerce div.product div.images img { border-radius: var(--nejma-card-radius); }

/* Zone de texte (nom, catégorie, prix) décollée des bords */
.woocommerce ul.products li.product .astra-shop-summary-wrap { padding: 0 var(--nejma-card-pad) var(--nejma-card-pad); }

/* Prix : gris foncé dans les cartes ; rouille sur la fiche produit */
.woocommerce ul.products li.product .price { color: var(--nejma-card-price); font-weight: 700; }
.single-product div.product p.price { color: var(--nejma-rouille); font-weight: 700; }

/* Survol (souris uniquement : rien sur écran tactile) — soulèvement, fond, ombre douce, léger zoom de l'image */
@media (hover: hover) and (pointer: fine) {
	.woocommerce ul.products li.product { transition: transform .3s ease, box-shadow .3s ease, background-color .3s ease; }
	.woocommerce ul.products li.product .astra-shop-thumbnail-wrap img { transition: transform .3s ease; }
	.woocommerce ul.products li.product:hover { transform: translateY(-4px); background-color: #fff; box-shadow: var(--nejma-card-shadow); }
	.woocommerce ul.products li.product:hover .astra-shop-thumbnail-wrap img { transform: scale(1.05); }
}
@media (prefers-reduced-motion: reduce) {
	.woocommerce ul.products li.product, .woocommerce ul.products li.product img { transition: none; }
}
/* Écrans tactiles : pas de survol, donc l'icône d'ajout au panier d'Astra reste toujours visible et cliquable */
@media (hover: none) {
	.woocommerce ul.products li.product .ast-on-card-button { opacity: 1; visibility: visible; pointer-events: auto; }
}

/* Accueil — bannière : top bar + en-tête transparent + bannière = 100 % de la hauteur visible au maximum */
.nejma-hero { height: 100vh; height: 100svh; min-height: 0 !important; }
.nejma-hero::after, .nejma-banner::after { /* léger dégradé sombre en haut : logo, menu et icônes lisibles sur la photo (accueil, bannière À propos) */
	content: ""; position: absolute; inset: 0 0 auto 0; height: 200px; z-index: 1; pointer-events: none;
	background: linear-gradient(180deg, rgba(42, 19, 20, .6) 0%, rgba(42, 19, 20, 0) 100%);
}
.nejma-hero > .e-con-inner, .nejma-banner > .e-con-inner { position: relative; z-index: 2; }
/* Mobile et tablette (≤ 921 px) : en-tête blanc au-dessus de la bannière (transparent sur desktop seulement).
   --nejma-masthead-h : top bar + en-tête, mesurés par nejma-header.js (valeur de repli avant le script). */
@media (max-width: 921px) {
	.nejma-hero {
		height: calc(100vh - var(--nejma-masthead-h, 104px) - var(--nejma-admin-h));
		height: calc(100svh - var(--nejma-masthead-h, 104px) - var(--nejma-admin-h));
		padding-top: 32px !important; /* l'en-tête ne recouvre plus la photo */
	}
	.nejma-hero::after, .nejma-banner::after { content: none; }
}
/* Ordinateur (en-tête transparent posé sur la photo) : la photo commence sous la top bar (40 px) et se cale en haut,
   pour que le haut de la photo (tête de la personne) ne soit jamais coupé ni masqué. */
@media (min-width: 922px) { .nejma-hero { background-position: center 40px !important; } }
@media (max-height: 700px) { /* petits écrans en hauteur : texte et boutons restent dans la bannière */
	.nejma-hero h1.elementor-heading-title { font-size: clamp(28px, 6.5vh, 42px); }
	.nejma-hero .elementor-widget-text-editor { font-size: 15px; }
}


/* Accueil — « Nos coups de cœur » : mêmes cartes WooCommerce, sur une ligne qui défile (flèches : nejma-slider.js) */
.nejma-slider { position: relative; --nejma-gap: 20px; --nejma-visible: 4; }
.nejma-slider .woocommerce ul.products {
	display: flex !important; gap: var(--nejma-gap); margin: 0; padding: 0;
	overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain; scrollbar-width: none;
}
.nejma-slider .woocommerce ul.products::-webkit-scrollbar { display: none; }
.nejma-slider .woocommerce ul.products::before, .nejma-slider .woocommerce ul.products::after { display: none; }
.nejma-slider .woocommerce ul.products li.product {
	flex: 0 0 calc((100% - (var(--nejma-visible) - 1) * var(--nejma-gap)) / var(--nejma-visible));
	width: auto !important; margin: 0 !important; scroll-snap-align: start; scroll-snap-stop: always;
}
@media (max-width: 1024px) { .nejma-slider { --nejma-gap: 16px; --nejma-visible: 2.5; } }
@media (max-width: 767px)  { .nejma-slider { --nejma-gap: 12px; --nejma-visible: 1.5; } }
.nejma-slider .woocommerce ul.products { touch-action: pan-y; } /* glissement horizontal géré par nejma-slider.js : une carte par geste */
.nejma-slider .woocommerce ul.products.is-dragging { scroll-snap-type: none; scroll-behavior: auto; }
@media (prefers-reduced-motion: reduce) { .nejma-slider .woocommerce ul.products { scroll-behavior: auto; } }
/* La ligne défile (overflow) : place pour le soulèvement et l'ombre des cartes au survol, mise en page inchangée */
.nejma-slider .woocommerce ul.products { padding-block: 8px 28px; margin-block: -8px -28px; }
.nejma-slider-btn {
	position: absolute; top: 38%; z-index: 3; transform: translateY(-50%);
	width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	background: #fff; color: #222; box-shadow: 0 2px 10px rgba(0, 0, 0, .15); cursor: pointer;
	transition: opacity .2s ease, background-color .2s ease;
}
.nejma-slider-btn:hover { background: var(--nejma-lilas-clair); color: #222; }
.nejma-slider-btn[disabled] { opacity: 0; pointer-events: none; }
.nejma-slider-prev { left: -14px; }
.nejma-slider-next { right: -14px; }
@media (max-width: 767px) { .nejma-slider-btn { display: none; } } /* mobile : défilement au doigt */

/* Fiche produit : seul moyen de paiement accepté */
.nejma-cod {
	margin: 1em 0 0;
	padding: .8em 1em;
	background: var(--nejma-lilas-clair);
	border-left: 3px solid var(--nejma-rouille);
	border-radius: 8px;
	font-size: .95em;
}

/* Barre d'annonce au-dessus de l'en-tête */
.ast-above-header-bar .ast-header-html, .ast-above-header-bar .ast-header-html p { font-size: 13px; font-weight: 700; letter-spacing: .08em; white-space: nowrap; }
/* Petits écrans : les messages ne tiennent pas ensemble sur une ligne → ils alternent en fondu (4 s chacun, pause au toucher).
   Les deux restent dans le DOM : les lecteurs d'écran lisent les deux. */
@media (max-width: 680px) {
	.ast-above-header-bar .ast-header-html, .ast-above-header-bar .ast-header-html p { font-size: 12px; letter-spacing: .03em; }
	.ast-above-header-bar .ast-header-html p { display: grid; justify-items: center; }
	.nejma-topbar-sep { display: none; }
	.nejma-topbar-msg { grid-area: 1 / 1; animation: nejma-topbar 8s infinite; }
	.nejma-topbar-msg + .nejma-topbar-sep + .nejma-topbar-msg { animation-delay: -4s; }
	.ast-above-header-bar .ast-header-html p:is(:hover, :active) .nejma-topbar-msg { animation-play-state: paused; }
}
@keyframes nejma-topbar { 0%, 44% { opacity: 1; } 50%, 94% { opacity: 0; } 100% { opacity: 1; } }

/* Accueil — blocs compacts : pas de marge sous le dernier paragraphe, paragraphes resserrés dans « Notre histoire » */
.home .elementor-widget-text-editor p:last-child { margin-bottom: 0; }
.nejma-compact-text .elementor-widget-text-editor p { margin-bottom: .6em; }

/* En-tête transparent (accueil, desktop uniquement) : loupe et panier en blanc sur la photo ; gris foncé #454545 partout ailleurs */
@media (min-width: 922px) {
	.ast-theme-transparent-header #masthead .ast-primary-header-bar .astra-search-icon,
	.ast-theme-transparent-header #masthead .ast-primary-header-bar .astra-search-icon svg,
	.ast-theme-transparent-header #masthead .ast-primary-header-bar .ast-site-header-cart .ast-icon svg,
	.ast-theme-transparent-header #masthead .ast-primary-header-bar .ast-site-header-cart .ast-icon svg * {
		color: #fff;
		fill: #fff;
	}
}

/* En-tête fixe sur tout le site (nejma-header.js) : seule la barre principale reste en haut, en version blanche.
   --nejma-bar-h : hauteur de la barre (mesurée en JS) ; --nejma-admin-h : barre d'administration WordPress (fixe au-dessus de 600 px). */
:root { --nejma-bar-h: 70px; --nejma-admin-h: 0px; }
.admin-bar { --nejma-admin-h: 32px; }
@media (max-width: 782px) { .admin-bar { --nejma-admin-h: 46px; } }
@media (max-width: 600px) { .admin-bar { --nejma-admin-h: 0px; } } /* la barre d'admin défile avec la page */
html { scroll-padding-top: calc(var(--nejma-bar-h) + var(--nejma-admin-h) + 16px); } /* ancres : le contenu ne passe pas sous l'en-tête */
#masthead .ast-main-header-wrap { transition: background-color .3s ease, box-shadow .3s ease; }
.nejma-sticky #masthead .ast-main-header-wrap {
	position: fixed; top: var(--nejma-admin-h); left: 0; right: 0; z-index: 999;
	background-color: #fff;
	box-shadow: 0 2px 14px rgba(42, 19, 20, .10);
}
.nejma-sticky:not(.ast-theme-transparent-header) #masthead { padding-bottom: var(--nejma-bar-h); } /* place de la barre devenue fixe : pas de saut */
@media (max-width: 921px) { .nejma-sticky #masthead { padding-bottom: var(--nejma-bar-h); } } /* en-tête jamais transparent sur mobile/tablette */

/* Menu mobile ouvert : panneau fixé sous la barre, défilement interne, page bloquée en arrière-plan */
.nejma-menu-open, .nejma-menu-open body { overflow: hidden; }
.nejma-menu-open #masthead .ast-mobile-header-content {
	position: fixed; top: var(--nejma-menu-top, var(--nejma-bar-h)); left: 0; right: 0; z-index: 998;
	max-height: calc(100vh - var(--nejma-menu-top, var(--nejma-bar-h)));
	max-height: calc(100dvh - var(--nejma-menu-top, var(--nejma-bar-h)));
	overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
	background-color: #fff; box-shadow: 0 14px 24px -14px rgba(42, 19, 20, .3);
}
.nejma-sticky.ast-theme-transparent-header #masthead .main-header-menu .menu-link,
.nejma-sticky.ast-theme-transparent-header #masthead .ast-primary-header-bar .astra-search-icon,
.nejma-sticky.ast-theme-transparent-header #masthead .ast-primary-header-bar .astra-search-icon svg,
.nejma-sticky.ast-theme-transparent-header #masthead .ast-primary-header-bar .ast-site-header-cart .ast-icon svg,
.nejma-sticky.ast-theme-transparent-header #masthead .ast-primary-header-bar .ast-site-header-cart .ast-icon svg * {
	color: #454545;
	fill: #454545;
}
.nejma-sticky.ast-theme-transparent-header #masthead .menu-toggle,
.nejma-sticky.ast-theme-transparent-header #masthead .menu-toggle .ast-mobile-svg {
	color: #454545;
	fill: #454545;
	border-color: #454545;
}
@media (max-width: 921px) { /* en-tête blanc sur mobile/tablette dès le chargement : bouton menu gris foncé */
	.ast-theme-transparent-header #masthead .menu-toggle,
	.ast-theme-transparent-header #masthead .menu-toggle .ast-mobile-svg {
		color: #454545;
		fill: #454545;
		border-color: #454545;
	}
}

/* Bannière : textes centrés sur la photo, ombre discrète pour la lisibilité */
.nejma-hero .elementor-heading-title, .nejma-hero .elementor-widget-text-editor { text-shadow: 0 1px 14px rgba(42, 19, 20, .45); }

/* ==========================================================================
   « Nos collections » — variantes [nejma_collections version="1…5"] (inc/collections.php)
   ========================================================================== */
.nejma-col { background: var(--nejma-lilas-clair); padding: 56px 40px; --nejma-ease: .35s ease; }
.nejma-col__inner { max-width: 1200px; margin: 0 auto; }
.nejma-col__label { display: inline-block; margin: 0 0 20px; padding: 4px 12px; border-radius: 999px; background: #fff; font-size: 13px; font-weight: 600; color: #222; }
.nejma-col__head { text-align: center; margin-bottom: 28px; }
.nejma-col .nejma-kicker { color: var(--nejma-rouille); margin: 0 0 8px; }
.nejma-col h2 { margin: 0; }
.nejma-col img.nejma-col-img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; } /* plus spécifique que « .elementor img { height: auto } » dans les pages Elementor */
.nejma-col ul { margin-left: 0; padding-left: 0; }
.nejma-col a:focus-visible { outline: 3px solid var(--nejma-rouille); outline-offset: 3px; }
.nejma-col-btn {
	display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 24px; border-radius: 50px;
	font-family: 'Quicksand', sans-serif; font-weight: 600; font-size: 15px; line-height: 1.2; text-decoration: none;
	background: var(--nejma-rouille); color: #fff; border: 2px solid var(--nejma-rouille);
	transition: background-color var(--nejma-ease), color var(--nejma-ease), border-color var(--nejma-ease);
}
a.nejma-col-btn:hover { background: #5B1C1D; border-color: #5B1C1D; color: #fff; }
.nejma-col-btn--outline { background: transparent; color: var(--nejma-rouille); }
a.nejma-col-btn--outline:hover { background: var(--nejma-rouille); border-color: var(--nejma-rouille); color: #fff; }
.nejma-col-btn--light { background: rgba(255, 255, 255, .12); border-color: #fff; color: #fff; min-height: 40px; padding: 8px 20px; font-size: 14px; }
@media (max-width: 767px) { .nejma-col { padding: 40px 16px; } }
@media (prefers-reduced-motion: reduce) { .nejma-col * { transition: none !important; animation: none !important; } }

/* V1 — Shop the look */
.nejma-look { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: 56px; align-items: center; }
.nejma-look__media { position: relative; aspect-ratio: 1 / 1; }
.nejma-look__media .nejma-col-img { border-radius: var(--nejma-card-radius); }
.nejma-look__text h2 { margin-bottom: 14px; }
.nejma-look__text > p:not(.nejma-kicker) { margin: 0; max-width: 440px; }
.nejma-look__buttons { display: none; list-style: none; margin: 20px 0 0; padding: 0; gap: 10px; flex-wrap: wrap; }
.nejma-hotspot { position: absolute; left: var(--x); top: var(--y); display: flex; align-items: center; transform: translate(-22px, -50%); text-decoration: none; z-index: 2; }
.nejma-hotspot--left { flex-direction: row-reverse; transform: translate(calc(-100% + 22px), -50%); }
.nejma-hotspot__dot { position: relative; flex: none; width: 44px; height: 44px; display: grid; place-items: center; }
.nejma-hotspot__dot::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .35), 0 1px 6px rgba(42, 19, 20, .35); }
.nejma-hotspot__dot::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; border: 1.5px solid #fff; animation: nejma-pulse 2.2s ease-out infinite; }
@keyframes nejma-pulse { from { transform: scale(1); opacity: .9; } to { transform: scale(2.6); opacity: 0; } }
.nejma-hotspot__line { width: 36px; height: 1px; background: #fff; box-shadow: 0 0 3px rgba(42, 19, 20, .35); }
.nejma-hotspot__label { padding: 6px 14px; border-radius: 999px; background: #fff; color: #222; font-size: 14px; font-weight: 600; white-space: nowrap; box-shadow: 0 2px 10px rgba(42, 19, 20, .18); transition: background-color var(--nejma-ease), color var(--nejma-ease); }
.nejma-hotspot:hover .nejma-hotspot__label, .nejma-hotspot:focus-visible .nejma-hotspot__label { background: var(--nejma-rouille); color: #fff; }
@media (max-width: 767px) {
	.nejma-look { grid-template-columns: 1fr; gap: 24px; }
	.nejma-look__buttons { display: flex; }
	.nejma-hotspot__line, .nejma-hotspot__label { display: none; } /* mobile : points seuls (44 px au doigt) + boutons sous la photo */
	.nejma-hotspot, .nejma-hotspot--left { transform: translate(-50%, -50%); }
}

/* V2 — Mosaïque éditoriale */
.nejma-mosaic { display: grid; grid-template-columns: 5fr 7fr; grid-template-rows: 292px 292px; gap: 16px; }
.nejma-tile { position: relative; display: block; overflow: hidden; border-radius: var(--nejma-card-radius); isolation: isolate; }
.nejma-tile--tall { grid-row: span 2; }
.nejma-tile .nejma-col-img { transition: transform var(--nejma-ease); }
.nejma-tile__overlay { position: absolute; inset: auto 0 0 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 48px 24px 22px; background: linear-gradient(0deg, rgba(42, 19, 20, .72) 0%, rgba(42, 19, 20, 0) 100%); }
.nejma-tile__name { color: #fff; font-family: 'Inter', sans-serif; font-weight: 500; font-size: 26px; line-height: 1.2; text-shadow: 0 1px 8px rgba(42, 19, 20, .35); }
@media (hover: hover) and (pointer: fine) {
	.nejma-tile:hover .nejma-col-img { transform: scale(1.05); }
	.nejma-tile:hover .nejma-col-btn--light { background: #fff; color: #5B1C1D; }
}
@media (max-width: 767px) {
	.nejma-mosaic { grid-template-columns: 1fr; grid-template-rows: none; }
	.nejma-tile { height: 240px; }
	.nejma-tile--tall { grid-row: auto; height: 340px; }
	.nejma-tile__name { font-size: 22px; }
}

/* V3 — Cartes produit / porté */
.nejma-v3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.nejma-v3-card { position: relative; border-radius: var(--nejma-card-radius); transition: transform var(--nejma-ease), box-shadow var(--nejma-ease), background-color var(--nejma-ease); }
.nejma-v3-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--nejma-card-radius); isolation: isolate; margin-bottom: 14px; }
.nejma-v3-media .nejma-col-img { position: absolute; inset: 0; transition: opacity .4s ease; }
.nejma-v3-alt { opacity: 0; }
.nejma-v3-card.is-alt .nejma-v3-alt { opacity: 1; }
.nejma-v3-title { margin: 0 var(--nejma-card-pad) 6px; font-size: 20px; }
.nejma-v3-phrase { margin: 0 var(--nejma-card-pad) 8px; font-size: 15px; }
.nejma-v3-more { display: inline-block; margin: 0 var(--nejma-card-pad) var(--nejma-card-pad); font-weight: 600; color: var(--nejma-rouille); text-decoration: none; }
.nejma-v3-more:hover, .nejma-v3-more:focus-visible { color: #5B1C1D; }
.nejma-row__products a:hover { color: #222; }
@media (hover: hover) and (pointer: fine) {
	.nejma-v3-more::after { content: ""; position: absolute; inset: 0; } /* carte entière cliquable à la souris */
	.nejma-v3-card:hover, .nejma-v3-card:focus-within { transform: translateY(-4px); background: #fff; box-shadow: var(--nejma-card-shadow); }
	.nejma-v3-card:hover .nejma-v3-alt, .nejma-v3-card:focus-within .nejma-v3-alt { opacity: 1; }
}
@media (max-width: 767px) { /* mobile : une ligne qui défile au doigt (~1,5 carte visible), photos 4:5 entières */
	.nejma-v3 { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
	.nejma-v3::-webkit-scrollbar { display: none; }
	.nejma-v3-card { flex: 0 0 calc((100% - 12px) / 1.5); scroll-snap-align: start; }
}

/* V4 — Panneaux en accordéon */
.nejma-accordion { display: flex; gap: 12px; height: 460px; }
.nejma-panel { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; border-radius: var(--nejma-card-radius); isolation: isolate; text-decoration: none; transition: flex-grow .4s ease; }
.nejma-panel .nejma-col-img { position: absolute; inset: 0; }
.nejma-panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(42, 19, 20, .75) 0%, rgba(42, 19, 20, 0) 60%); }
.nejma-panel__content { position: absolute; inset: auto 0 0 0; z-index: 1; padding: 24px; color: #fff; }
.nejma-panel__name { display: block; font-family: 'Inter', sans-serif; font-weight: 500; font-size: 26px; line-height: 1.2; white-space: nowrap; }
.nejma-panel__more { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .4s ease, opacity .4s ease; }
.nejma-panel__more > span { min-height: 0; overflow: hidden; }
.nejma-panel__inner { display: block; }
.nejma-panel__phrase { display: block; margin: 8px 0 14px; font-size: 15px; }
.nejma-panel:hover, .nejma-panel:focus-visible { flex-grow: 2.2; }
.nejma-panel:hover .nejma-panel__more, .nejma-panel:focus-visible .nejma-panel__more { grid-template-rows: 1fr; opacity: 1; }
@media (hover: none) { /* écrans tactiles (tablette comprise) : pas de survol, tout le contenu est affiché d'emblée */
	.nejma-panel__more { grid-template-rows: 1fr; opacity: 1; }
	.nejma-panel__name { white-space: normal; }
}
@media (max-width: 767px) {
	.nejma-accordion { flex-direction: column; height: auto; }
	.nejma-panel { flex: none; height: 260px; }
	.nejma-panel__more { grid-template-rows: 1fr; opacity: 1; }
}

/* V5 — Lignes éditoriales avec aperçu produits */
.nejma-rows { display: grid; gap: 28px; }
.nejma-row { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.nejma-row:nth-child(even) .nejma-row__media { order: 2; }
.nejma-row__media { display: block; height: clamp(260px, 50vh, 440px); overflow: hidden; border-radius: var(--nejma-card-radius); isolation: isolate; }
.nejma-row__media .nejma-col-img { transition: transform var(--nejma-ease); }
.nejma-row__name { margin: 0 0 8px; font-size: 28px; }
.nejma-row__phrase { margin: 0 0 18px; }
.nejma-row__products { display: flex; gap: 12px; list-style: none; margin: 0 0 22px; padding: 0; }
.nejma-row__products li { width: 110px; }
.nejma-row__products a { display: block; text-decoration: none; color: #222; font-size: 13px; line-height: 1.3; }
.nejma-row__products img { display: block; width: 110px; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 8px; margin-bottom: 6px; transition: transform var(--nejma-ease), box-shadow var(--nejma-ease); }
@media (hover: hover) and (pointer: fine) {
	.nejma-row:hover .nejma-row__media .nejma-col-img { transform: scale(1.04); }
	.nejma-row__products a:hover img { transform: translateY(-3px); box-shadow: var(--nejma-card-shadow); }
}
@media (max-width: 767px) {
	.nejma-row { grid-template-columns: 1fr; gap: 18px; }
	.nejma-row:nth-child(even) .nejma-row__media { order: 0; }
	.nejma-row__media { height: 240px; }
	.nejma-row__products li { flex: 1; width: auto; }
	.nejma-row__products img { width: 100%; }
}

/* Boutique et pages catégories : photo en fond (functions.php), titre en bas de la bannière pour laisser les bijoux visibles au centre */
:is(.tax-product_cat, .post-type-archive-product) .ast-archive-entry-banner { background-size: cover; background-repeat: no-repeat; justify-content: flex-end; padding-bottom: 40px; }
@media (max-width: 544px) { :is(.tax-product_cat, .post-type-archive-product) .ast-archive-entry-banner { padding-bottom: 24px; } }

/* Commande confirmée : visuel (functions.php) centré au-dessus du message sur mobile/tablette ;
   sur ordinateur, deux colonnes : informations de commande à gauche, photo à droite (reste visible au défilement) */
.nejma-merci { margin: 0 auto 1.5em; text-align: center; }
.nejma-merci img { width: 280px; max-width: 100%; height: auto; border-radius: var(--nejma-card-radius); }
@media (max-width: 544px) { .nejma-merci img { width: 200px; } }
.woocommerce-thankyou-order-received { text-align: center; }
@media (min-width: 922px) {
	.woocommerce-order:has(> .nejma-merci) { display: grid; grid-template-columns: minmax(0, 1fr) clamp(260px, 26vw, 360px); column-gap: clamp(32px, 4.5vw, 64px); align-items: start; }
	.woocommerce-order:has(> .nejma-merci) > * { grid-column: 1; }
	.woocommerce-order > .nejma-merci {
		grid-column: 2; grid-row: 1 / span 20; margin: 0;
		position: sticky; top: calc(var(--nejma-bar-h) + var(--nejma-admin-h) + 24px);
	}
	.woocommerce-order > .nejma-merci img { width: 100%; }
	.woocommerce-order:has(> .nejma-merci) .woocommerce-thankyou-order-received { text-align: left; margin-top: 0; }
}

/* À propos — « L'histoire de NEJMA » : photo entière (jamais recadrée), texte centré verticalement à côté */
.nejma-apropos-texte p:last-child { margin-bottom: 0; }
.elementor .nejma-apropos-media img { width: 100%; height: auto; }


/* Fiche produit : « Informations complémentaires » puis « Description » sous le résumé (functions.php) */
.nejma-produit-details { margin-top: 28px; border-top: 1px solid var(--ast-border-color, #E3C4ED); }
.nejma-produit-bloc { padding-top: 20px; }
.nejma-produit-bloc + .nejma-produit-bloc { margin-top: 8px; }
.nejma-produit-bloc__titre { font-size: 16px; font-weight: 600; margin: 0 0 12px; }
.nejma-produit-bloc .woocommerce-product-attributes { margin: 0; }
.nejma-produit-description p:last-child { margin-bottom: 0; }
/* Ordinateur : photo et texte sur une grille, la photo suit la hauteur du texte (recadrée sur le fond studio),
   bornée pour ne jamais couper le bijou : hauteur entre 1,2 et 1,45 × sa largeur (photo d'origine : 1,33).
   --nejma-galerie-l : largeur de la colonne photo (100cqw = largeur de la fiche produit). */
@media (min-width: 922px) {
	.single-product div.product { --nejma-galerie-l: calc((100cqw - 48px) / 2); container-type: inline-size; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 48px; align-items: stretch; }
	.single-product div.product > * { grid-column: 1 / -1; }
	.single-product div.product > .woocommerce-product-gallery { grid-column: 1; grid-row: 1; width: auto !important; float: none; margin: 0; min-height: calc(var(--nejma-galerie-l) * 1.2); }
	.single-product div.product > .summary { grid-column: 2; grid-row: 1; width: auto !important; float: none; margin: 0; }
	.single-product div.product > .woocommerce-product-gallery .woocommerce-product-gallery__wrapper { position: absolute; top: 0; left: 0; right: 0; height: 100%; max-height: calc(var(--nejma-galerie-l) * 1.45); margin: 0; }
	.single-product div.product > .woocommerce-product-gallery :is(.woocommerce-product-gallery__image, .woocommerce-product-gallery__image > a) { display: block; height: 100%; }
	.single-product div.product > .woocommerce-product-gallery .woocommerce-product-gallery__image > a img { width: 100%; height: 100%; object-fit: cover; }
	.single-product div.product > .related { margin-top: 64px; }
}

/* Pages légales : colonne de lecture étroite, hiérarchie titre > intertitres > texte (functions.php : body.nejma-page-legale) */
.nejma-page-legale :is(.entry-header, .entry-content) { max-width: 760px; margin-inline: auto; }
.nejma-page-legale .entry-header { margin-bottom: 32px; padding-bottom: 20px; border-bottom: 1px solid #E3C4ED; }
.nejma-page-legale .entry-title { font-size: 40px; line-height: 1.2; }
.nejma-page-legale .entry-content h2 { font-size: 21px; font-weight: 600; line-height: 1.3; margin: 2em 0 .6em; }
.nejma-page-legale .entry-content :is(p, li) { font-size: 16px; line-height: 1.75; color: #454545; }
.nejma-page-legale .entry-content ul { margin: 0 0 1.2em 1.2em; }
.nejma-page-legale .entry-content li + li { margin-top: .35em; }
.nejma-page-legale .entry-content code { font-size: .88em; padding: 1px 6px; border-radius: 4px; background: #F6ECF9; color: #5B1C1D; }
.nejma-page-legale .entry-content p:last-child em { font-size: 14px; color: #888; }
@media (max-width: 544px) { .nejma-page-legale .entry-title { font-size: 30px; } .nejma-page-legale .entry-content h2 { font-size: 19px; } }

/* Plein écran (F11) : barre de défilement du navigateur masquée, le défilement reste actif (nejma-header.js) */
html.nejma-plein-ecran { scrollbar-width: none; }
html.nejma-plein-ecran::-webkit-scrollbar { display: none; }
@media (display-mode: fullscreen) { html { scrollbar-width: none; } html::-webkit-scrollbar { display: none; } }

/* Bandeau cookies (functions.php, nejma-cookies.js) : carte en bas à gauche sur ordinateur, en bas sur toute la largeur sur mobile.
   Refuser et Accepter ont la même taille et la même visibilité (choix libre). */
.nejma-cookies { position: fixed; left: 24px; bottom: 24px; z-index: 10000; width: calc(100% - 48px); max-width: 410px; padding: 20px 22px; background: #fff; color: #454545; border-top: 4px solid #C13C3D; border-radius: var(--nejma-card-radius); box-shadow: 0 12px 40px rgba(42, 19, 20, .22); opacity: 0; transform: translateY(16px); transition: opacity .3s ease, transform .3s ease; }
.nejma-cookies.is-visible { opacity: 1; transform: none; }
.nejma-cookies[hidden] { display: none; }
.nejma-cookies .nejma-cookies__titre { margin: 0 0 6px; font-size: 16px; font-weight: 700; line-height: 1.3; color: #222; }
.nejma-cookies .nejma-cookies__texte { margin: 0 0 16px; font-size: 14px; line-height: 1.6; }
.nejma-cookies .nejma-cookies__texte a { color: #C13C3D; text-decoration: underline; }
.nejma-cookies .nejma-cookies__actions { display: flex; gap: 10px; }
.nejma-cookies .nejma-cookies__btn { flex: 1; min-height: 44px; margin: 0; padding: 10px 18px; border: 2px solid #C13C3D; border-radius: 50px; background: #C13C3D; color: #fff; font-family: 'Quicksand', sans-serif; font-size: 15px; font-weight: 600; line-height: 1.2; cursor: pointer; transition: background-color .2s ease, border-color .2s ease, color .2s ease; }
.nejma-cookies .nejma-cookies__btn--refuser { background: #fff; color: #C13C3D; }
.nejma-cookies .nejma-cookies__btn:hover, .nejma-cookies .nejma-cookies__btn:focus-visible { background: #5B1C1D; border-color: #5B1C1D; color: #fff; }
@media (max-width: 544px) { .nejma-cookies { left: 12px; bottom: 12px; width: calc(100% - 24px); max-width: none; padding: 16px; } }
@media (prefers-reduced-motion: reduce) { .nejma-cookies { transition: none; } }
