/* ==========================================================================
   Points de ventes — "le réseau, carreau par carreau" (page-points-de-ventes.php).
   Graphite hero with the map of Morocco laid in tesserae, porcelain finder with city chips and
   distributor cards, dark head-office band. Mobile first.
   ========================================================================== */

.pdv {
	--pdv-ink: #141414;
	--pdv-graphite: #121211;
	--pdv-stone: #1d1c1a;
	--pdv-porcelain: #f4f2ee;
	--pdv-line: #e6e2da;
	--pdv-text: #4a4844;
	--pdv-muted: #8a867e;
	--pdv-gold: #c99a3f;
	--pdv-gold-soft: #e3c27a;
	--pdv-ease: cubic-bezier(0.22, 1, 0.36, 1);
	--pdv-head: "Red Hat Display", var(--o-heading, sans-serif);
	font-family: var(--o-body, Arial, sans-serif);
	color: var(--pdv-text);
	background: var(--pdv-porcelain);
}
.pdv-wrap {
	width: min(1200px, 100% - 40px);
	margin-inline: auto;
}
.pdv-kicker {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 18px;
	font-family: var(--pdv-head);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: var(--pdv-gold-soft);
}
.pdv-kicker span {
	width: 36px;
	height: 1px;
	background: currentColor;
}
.pdv-kicker--dark {
	color: var(--pdv-gold);
}
.pdv-h2 {
	margin: 0;
	font-family: var(--pdv-head);
	font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.6rem);
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: -0.01em;
	color: var(--pdv-ink);
}

/* ------------------------------------------------------------ 1. Hero */
.pdv-hero {
	position: relative;
	padding: calc(var(--header-h) + 36px) 0 56px;
	overflow: hidden;
	color: #fff;
	background:
		radial-gradient(70% 90% at 78% 40%, #2b2722 0%, rgba(43, 39, 34, 0) 60%),
		linear-gradient(180deg, #0d0d0c 0%, var(--pdv-graphite) 55%, var(--pdv-stone) 100%);
	isolation: isolate;
}
/* Faint 60 × 120 joint grid. */
.pdv-hero__grain {
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image:
		linear-gradient(90deg, rgba(227, 194, 122, 0.06) 1px, transparent 1px),
		linear-gradient(0deg, rgba(227, 194, 122, 0.06) 1px, transparent 1px);
	background-size: 60px 120px;
	-webkit-mask-image: radial-gradient(80% 70% at 70% 45%, #000 10%, transparent 75%);
	mask-image: radial-gradient(80% 70% at 70% 45%, #000 10%, transparent 75%);
}
.pdv-hero__inner {
	display: grid;
	gap: 28px;
}
.pdv-hero__title {
	margin: 0;
	font-family: var(--pdv-head);
	font-size: clamp(2.6rem, 1.4rem + 6vw, 5.2rem);
	font-weight: 700;
	line-height: 0.98;
	letter-spacing: -0.025em;
	text-wrap: balance;
}
.pdv-hero__title em {
	display: block;
	font-style: normal;
	color: var(--pdv-gold-soft);
}
.pdv-hero__lead {
	max-width: 30ch;
	margin: 18px 0 0;
	font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.3rem);
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.78);
}
.pdv-hero__lead strong {
	color: #fff;
}
.pdv-figures {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin: 28px 0 0;
	border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.pdv-figures > div {
	display: flex;
	flex-direction: column-reverse;
	gap: 2px;
	padding: 16px 12px 0 0;
}
.pdv-figures > div + div {
	padding-left: 14px;
	border-left: 1px solid rgba(255, 255, 255, 0.14);
}
.pdv-figures dt {
	font-size: 13px;
	color: rgba(255, 255, 255, 0.6);
}
.pdv-figures dd {
	margin: 0;
	font-family: var(--pdv-head);
	font-size: clamp(1.9rem, 1.4rem + 2vw, 2.8rem);
	font-weight: 700;
	line-height: 1;
	font-variant-numeric: tabular-nums;
	color: #fff;
}
.pdv-figures sup {
	font-size: 0.5em;
	color: var(--pdv-gold-soft);
}
.pdv-hero__cta {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	min-height: 48px;
	margin-top: 30px;
	padding: 0 22px;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 999px;
	color: #fff;
	font-family: var(--pdv-head);
	font-weight: 600;
	text-decoration: none;
	transition: background-color 0.35s var(--pdv-ease), color 0.35s var(--pdv-ease), border-color 0.35s;
}
.pdv-hero__cta svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	transition: transform 0.35s var(--pdv-ease);
}

/* Map */
.pdv-map {
	position: relative;
	margin: 0 auto;
	width: min(560px, 100%);
}
.pdv-map__svg {
	display: block;
	width: 100%;
	height: auto;
	overflow: visible;
}
.pdv-map__land {
	fill: rgba(255, 255, 255, 0.03);
}
.pdv-map__outline {
	fill: none;
	stroke: rgba(255, 255, 255, 0.55);
	stroke-width: 0.6;
	stroke-dasharray: 1;
	stroke-dashoffset: 1;
	animation: pdv-draw 2.4s var(--pdv-ease) 0.2s forwards;
}
.pdv-tile {
	transform-box: fill-box;
	transform-origin: center;
	fill: #fff;
	opacity: 0;
	animation: pdv-tile 0.6s var(--pdv-ease) forwards;
	animation-delay: calc(0.3s + var(--r) * 1.6s);
}
.pdv-tile.is-near {
	fill: var(--pdv-gold-soft);
}
.pdv-map__hq rect {
	fill: var(--pdv-gold-soft);
	stroke: #fff;
	stroke-width: 0.8;
}
.pdv-pin {
	cursor: pointer;
	outline: none;
	opacity: 0;
	animation: pdv-pop 0.6s var(--pdv-ease) forwards;
	animation-delay: calc(1.2s + var(--k, 0) * 70ms);
}
/* Larger invisible target for fingers and pointers. */
.pdv-pin__hit {
	fill: transparent;
}
.pdv-pin__halo {
	fill: var(--pdv-gold-soft);
	opacity: 0.18;
	transform-box: fill-box;
	transform-origin: center;
	animation: pdv-pulse 2.6s ease-out infinite;
	animation-delay: calc(var(--k, 0) * 0.2s);
}
.pdv-pin__dot {
	fill: var(--pdv-gold-soft);
	stroke: var(--pdv-graphite);
	stroke-width: 0.8;
	transition: r 0.3s var(--pdv-ease), fill 0.3s;
}
.pdv-pin:hover .pdv-pin__dot,
.pdv-pin:focus-visible .pdv-pin__dot,
.pdv-pin.is-active .pdv-pin__dot {
	r: 3.4;
	fill: #fff;
}
.pdv-pin:focus-visible .pdv-pin__halo,
.pdv-pin.is-active .pdv-pin__halo {
	opacity: 0.45;
}
.pdv-pin.is-dim {
	opacity: 0.35 !important;
}
.pdv-map__legend {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 20px;
	margin-top: 10px;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.62);
}
.pdv-map__legend span {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.pdv-dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--pdv-gold-soft);
	box-shadow: 0 0 0 4px rgba(227, 194, 122, 0.18);
}
.pdv-dot--hq {
	border-radius: 1px;
	transform: rotate(45deg);
	box-shadow: none;
	outline: 1px solid #fff;
}
.pdv-map__tip {
	position: absolute;
	left: 0;
	top: 0;
	z-index: 2;
	margin: 0;
	padding: 7px 12px;
	border-radius: 8px;
	background: #fff;
	color: var(--pdv-ink);
	font-family: var(--pdv-head);
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
	pointer-events: none;
	box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.6);
	transform: translate(-50%, calc(-100% - 14px));
}
.pdv-map__tip span {
	margin-left: 6px;
	font-weight: 500;
	color: var(--pdv-muted);
}

/* ------------------------------------------------------------ 2. Finder */
.pdv-finder {
	padding: 56px 0 80px;
}
.pdv-finder__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 6px 20px;
	margin-bottom: 22px;
}
.pdv-finder__result {
	margin: 0;
	font-size: 15px;
	color: var(--pdv-muted);
}
.pdv-finder__result strong {
	color: var(--pdv-ink);
}
/* Filter bar: stays under the header while the list scrolls. */
.pdv-bar {
	position: sticky;
	top: calc(var(--mh-compact, 60px) + 8px);
	z-index: 20;
	display: grid;
	gap: 10px;
	margin: 0 -20px 28px;
	padding: 10px 20px;
	background: rgba(244, 242, 238, 0.86);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	transition: box-shadow 0.3s;
}
.pdv-bar.is-stuck {
	box-shadow: 0 14px 24px -22px rgba(0, 0, 0, 0.5);
}
.pdv-chips {
	display: flex;
	gap: 8px;
	margin: 0 -20px;
	padding: 2px 20px 6px;
	overflow-x: auto;
	scroll-snap-type: x proximity;
	scrollbar-width: none;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 20px, #000 calc(100% - 28px), transparent);
	mask-image: linear-gradient(90deg, transparent, #000 20px, #000 calc(100% - 28px), transparent);
}
.pdv-chips::-webkit-scrollbar {
	display: none;
}
.pdv-chip {
	display: inline-flex;
	flex: none;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 16px;
	border: 1px solid var(--pdv-line);
	border-radius: 999px;
	background: #fff;
	color: var(--pdv-ink);
	font-family: var(--pdv-head);
	font-size: 15px;
	font-weight: 600;
	white-space: nowrap;
	scroll-snap-align: start;
	cursor: pointer;
	transition: background-color 0.3s var(--pdv-ease), border-color 0.3s, color 0.3s, transform 0.3s var(--pdv-ease);
}
.pdv-chip span {
	display: inline-grid;
	place-items: center;
	min-width: 24px;
	height: 24px;
	padding: 0 6px;
	border-radius: 999px;
	background: var(--pdv-porcelain);
	color: var(--pdv-muted);
	font-size: 12px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	transition: background-color 0.3s, color 0.3s;
}
.pdv-chip:active {
	transform: scale(0.97);
}
.pdv-chip[aria-pressed="true"] {
	border-color: var(--pdv-ink);
	background: var(--pdv-ink);
	color: #fff;
}
.pdv-chip[aria-pressed="true"] span {
	background: var(--pdv-gold);
	color: #fff;
}
.pdv-chip:focus-visible,
.pdv-search input:focus-visible,
.pdv-act:focus-visible,
.pdv-hero__cta:focus-visible {
	outline: 2px solid var(--pdv-gold);
	outline-offset: 3px;
}
.pdv-search {
	position: relative;
	display: block;
}
.pdv-search svg {
	position: absolute;
	top: 50%;
	left: 16px;
	width: 18px;
	height: 18px;
	translate: 0 -50%;
	fill: none;
	stroke: var(--pdv-muted);
	stroke-width: 2;
	pointer-events: none;
}
.pdv-search input {
	width: 100%;
	height: 48px;
	padding: 0 16px 0 44px;
	border: 1px solid var(--pdv-line);
	border-radius: 999px;
	background: #fff;
	color: var(--pdv-ink);
	font: 16px var(--o-body, Arial, sans-serif);
	transition: border-color 0.3s;
}
.pdv-search input:hover {
	border-color: #c9c3b8;
}

/* Cards */
.pdv-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.pdv-card[hidden] {
	display: none;
}
.pdv-card article {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 24px 22px 20px;
	border: 1px solid var(--pdv-line);
	border-radius: 16px;
	background: #fff;
	overflow: hidden;
	transition: transform 0.45s var(--pdv-ease), box-shadow 0.45s var(--pdv-ease), border-color 0.45s;
}
.pdv-card article::before {
	content: "";
	position: absolute;
	inset: 0 auto auto 0;
	width: 100%;
	height: 3px;
	background: linear-gradient(90deg, var(--pdv-gold), var(--pdv-gold-soft));
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.55s var(--pdv-ease);
}
.pdv-card.is-in {
	animation: pdv-rise 0.6s var(--pdv-ease) backwards;
	animation-delay: calc(var(--i, 0) * 45ms);
}
.pdv-card__city {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 10px;
	font-size: 13px;
	font-weight: 700;
	color: var(--pdv-gold);
}
.pdv-card__city::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: currentColor;
}
.pdv-card__name {
	margin: 0 0 16px;
	font-family: var(--pdv-head);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: 0.005em;
	color: var(--pdv-ink);
	text-wrap: balance;
}
.pdv-card__lines {
	display: grid;
	gap: 10px;
	margin: 0 0 18px;
}
.pdv-line {
	display: grid;
	grid-template-columns: 86px minmax(0, 1fr);
	gap: 10px;
	align-items: start;
}
.pdv-line dt {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	line-height: 22px;
	color: var(--pdv-muted);
}
.pdv-line dt svg {
	flex: none;
	width: 15px;
	height: 15px;
	fill: none;
	stroke: var(--pdv-gold);
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.pdv-line dd {
	margin: 0;
	font-size: 14px;
	line-height: 22px;
	color: var(--pdv-ink);
	overflow-wrap: anywhere;
}
.pdv-line dd a {
	color: inherit;
	text-decoration: underline;
	text-decoration-color: rgba(201, 154, 63, 0.45);
	text-underline-offset: 3px;
	transition: text-decoration-color 0.25s, color 0.25s;
}
.pdv-line dd a:hover {
	color: #000;
	text-decoration-color: var(--pdv-gold);
}
.pdv-card__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: auto;
	padding-top: 16px;
	border-top: 1px solid var(--pdv-line);
}
.pdv-act {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 16px;
	border: 1px solid var(--pdv-line);
	border-radius: 999px;
	background: #fff;
	color: var(--pdv-ink);
	font-family: var(--pdv-head);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.3s var(--pdv-ease), color 0.3s, border-color 0.3s;
}
.pdv-act svg {
	width: 16px;
	height: 16px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.pdv-act--solid {
	border-color: var(--pdv-gold);
	background: var(--pdv-gold);
	color: #fff;
}
.pdv-act--ghost {
	border-color: rgba(255, 255, 255, 0.4);
	background: transparent;
	color: #fff;
}
.pdv-empty {
	display: grid;
	justify-items: center;
	gap: 16px;
	padding: 48px 20px;
	border: 1px dashed #cfc9bd;
	border-radius: 16px;
	text-align: center;
	color: var(--pdv-ink);
}
.pdv-empty p {
	margin: 0;
	font-size: 16px;
}

/* ------------------------------------------------------------ 3. Head office */
.pdv-hq {
	padding: 56px 0;
	color: #fff;
	background: var(--pdv-graphite);
}
.pdv-hq__inner {
	display: grid;
	gap: 26px;
}
.pdv-hq .pdv-h2 {
	color: #fff;
}
.pdv-hq__address {
	margin: 12px 0 0;
	font-size: 16px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.72);
}
.pdv-hq__contacts {
	display: grid;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 16px;
}
.pdv-hq__contacts li {
	display: flex;
	align-items: center;
	gap: 12px;
}
.pdv-hq__contacts svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: var(--pdv-gold-soft);
	stroke-width: 1.8;
}
.pdv-hq__contacts a {
	color: #fff;
	text-decoration-color: rgba(227, 194, 122, 0.5);
	text-underline-offset: 4px;
}
.pdv-hq__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

/* ------------------------------------------------------------ Motion */
@keyframes pdv-draw {
	to {
		stroke-dashoffset: 0;
	}
}
@keyframes pdv-tile {
	from {
		opacity: 0;
		transform: scale(0.4);
	}
	to {
		opacity: var(--o, 0.32);
		transform: none;
	}
}
/* Pins keep their SVG position attribute: they only fade in (their dot grows). */
@keyframes pdv-pop {
	to {
		opacity: 1;
	}
}
@keyframes pdv-pulse {
	0% {
		transform: scale(0.6);
		opacity: 0.45;
	}
	100% {
		transform: scale(2.2);
		opacity: 0;
	}
}
@keyframes pdv-rise {
	from {
		opacity: 0;
		transform: translateY(18px);
	}
}


/* Hover effects only where a pointer can hover (no sticky states on touch screens). */
@media (hover: hover) {
	.pdv-act:hover {
		border-color: var(--pdv-ink);
		background: var(--pdv-ink);
		color: #fff;
	}
	.pdv-act--solid:hover {
		border-color: #fff;
		background: #fff;
		color: var(--pdv-ink);
	}
	.pdv-act--ghost:hover {
		border-color: #fff;
		background: #fff;
		color: var(--pdv-ink);
	}
	.pdv-chip:hover {
		border-color: var(--pdv-ink);
	}
	.pdv-hero__cta:hover {
		border-color: #fff;
		background: #fff;
		color: var(--pdv-ink);
	}
	.pdv-hero__cta:hover svg {
		transform: translateY(3px);
	}
	.pdv-empty .pdv-act--solid:hover {
		border-color: var(--pdv-ink);
		background: var(--pdv-ink);
		color: #fff;
	}
}

/* ------------------------------------------------------------ Larger screens */
@media (hover: hover) {
	.pdv-card article:hover {
		transform: translateY(-6px);
		border-color: transparent;
		box-shadow: 0 28px 50px -30px rgba(20, 20, 20, 0.45);
	}
	.pdv-card article:hover::before {
		transform: none;
	}
}
@media (min-width: 640px) {
	.pdv-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 20px;
	}
	.pdv-bar {
		grid-template-columns: minmax(0, 1fr) 260px;
		align-items: center;
	}
}
@media (min-width: 1000px) {
	.pdv-hero {
		padding-bottom: 70px;
	}
	.pdv-hero__inner {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
		align-items: center;
		gap: 40px;
		min-height: min(620px, calc(100svh - var(--header-h) - 110px));
	}
	.pdv-map {
		width: min(600px, 100%);
		margin-right: 0;
	}
	/* The whole map stays within the first screen. */
	.pdv-map__svg {
		width: auto;
		max-width: 100%;
		max-height: calc(100svh - var(--header-h) - 120px);
		margin-inline: auto;
	}
	.pdv-hero {
		padding-top: calc(var(--header-h) + 24px);
		padding-bottom: 48px;
	}
	.pdv-finder {
		padding: 84px 0 110px;
	}
	.pdv-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 22px;
	}
	.pdv-bar {
		margin-inline: 0;
		padding: 12px;
		border: 1px solid var(--pdv-line);
		border-radius: 999px;
		background: rgba(255, 255, 255, 0.82);
	}
	.pdv-chips {
		margin: 0;
		padding: 0 6px 0 0;
	}
	.pdv-hq {
		padding: 72px 0;
	}
	.pdv-hq__inner {
		grid-template-columns: 1.2fr 1fr auto;
		align-items: center;
		gap: 48px;
	}
}
@media (max-width: 639px) {
	.pdv-figures dt {
		font-size: 12px;
	}
	.pdv-line {
		grid-template-columns: 74px minmax(0, 1fr);
	}
	/* Small screens: the filter scrolls with the page (no tall sticky bar). */
	.pdv-bar {
		position: static;
		margin-bottom: 20px;
		padding-block: 0;
		background: none;
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
	}
	.pdv-card__actions {
		flex-wrap: nowrap;
		gap: 6px;
	}
	.pdv-card__actions .pdv-act {
		flex: 1 1 0;
		min-width: 0;
		padding: 0 8px;
		font-size: 13px;
		gap: 6px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pdv-map__outline {
		animation: none;
		stroke-dashoffset: 0;
	}
	.pdv-tile,
	.pdv-pin {
		animation: none;
		opacity: var(--o, 0.32);
	}
	.pdv-pin {
		opacity: 1;
	}
	.pdv-pin__halo {
		animation: none;
	}
	.pdv-card.is-in {
		animation: none;
	}
	.pdv-card article,
	.pdv-card article::before,
	.pdv-chip,
	.pdv-act {
		transition: none;
	}
}

.pdv-finder {
	scroll-margin-top: calc(var(--mh-compact, 60px) + 8px);
}
