/* ---------------------------------------------------------
   Page Points de vente — page-pdv.css
   --------------------------------------------------------- */

/* ── En-tête ───────────────────────────────────────────── */

.pdv-main {
    min-height: calc(100vh - var(--header-top-height) - var(--header-nav-height));
    background-color: white;
}

.pdv-header {
    padding: 8rem 3rem 2rem;
    margin-inline: 4px;
    background-color: var(--light-pink);
}

.pdv-title {
    font-size: 10rem;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1;
}

.pdv-intro {
    margin-top: 1.5rem;
    max-width: 84rem;
    text-transform: uppercase;
    font-weight: 500;
    line-height: 1.5;
}

.pdv-empty {
    padding: 6rem 4rem;
    font-size: 1.6rem;
    color: var(--text-light);
}

/* ── Barre de filtres pays ────────────────────────────────── */

.pdv-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 7rem;
}

.pdv-filter-btn {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--border);
    background: transparent;
        background-color: transparent;
    border: 1px solid var(--border);
    padding: 10px 16px;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.pdv-filter-btn:hover {
    color: black;
    border-color: black;
}

.pdv-filter-btn.is-active {
    color: var(--light-pink);
    background-color: black;
    border-color: black;
}

/* ── Layout liste + carte ──────────────────────────────── */

.pdv-list-map {
	display: grid;
	grid-template-columns: 500px 1fr;
	align-items: start;
	border: 4px solid white;
}

/* ── Liste ─────────────────────────────────────────────── */

.pdv-list {
	overflow-y: auto;
	border-right: 4px solid white;
	background-color: var(--light-pink);
}

.pdv-card {
	padding: 4rem 3rem;
	border-bottom: 4px solid white;
	cursor: pointer;
	transition: background-color 0.2s;
	background-color: transparent;
    position: relative;
}

.pdv-card:last-child {
    border-bottom: none;
}

.pdv-card__country {
	text-transform: uppercase;
	font-weight: 500;
	font-size: 1rem;
	background-color: var(--border);
	padding: 0.7rem 1rem;
    width: fit-content;
    margin-bottom: 2rem;
}

.pdv-card:hover,
.pdv-card--active,
.pdv-card--active {
    background-color: #f7f1ed;
}

.pdv-card__name {
	font-size: 2.4rem;
	font-weight: 700;
	margin-bottom: 1rem;
	line-height: 1.3;
	text-transform: uppercase;
    letter-spacing: 0;
}

.pdv-card__address {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	margin-bottom: 1.2rem;
	text-transform: uppercase;
}

.pdv-card__links {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	padding: 2rem 0;
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
}

.pdv-card__link {
	display: flex;
	align-items: center;
	gap: 1rem;
	font-size: 1.2rem;
	text-decoration: none;
	line-height: 1.4;
	transition: color 0.15s;
    text-transform: uppercase;
    width: fit-content;
    max-width: 100%;
}

.pdv-card__link-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.pdv-card__link:hover {
    color: var(--blue);
}

.pdv-card__icon {
	width: 1.4rem;
	height: 1.4rem;
	flex-shrink: 0;
	position: relative;
	top: 0.5px;
	stroke: var(--blue);
}

.pdv-card__icon-wrap {
	border: 1px solid var(--blue);
	width: 3.2rem;
	height: 3.2rem;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Bouton « Voir sur la carte » */

.pdv-card__map-btn {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1.4rem;
    margin-left: auto;
    padding: 0;
    background: none;
    border: none;
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--blue);
    cursor: pointer;
    transition: gap 0.2s;
}

.pdv-card__map-btn svg {
    width: 1.4rem;
    height: 1.4rem;
    flex-shrink: 0;
    transition: transform 0.2s;
    position: relative;
    bottom: 0.5px;
}

.pdv-card__map-btn:hover svg {
    transform: translateX(4px);
}

/* ── Carte ─────────────────────────────────────────────── */

.pdv-map-wrap {
    position: sticky;
    top: 60px;
}

#pdv-map {
	width: 100%;
	height: calc(100vh - 60px);
	position: relative;
	z-index: 0;
    /* filter: grayscale(1) sepia(0.2) hue-rotate(360deg) saturate(0.9) brightness(1.01) */
}

/* Attribution personnalisée (remplace le widget Leaflet natif) */

.pdv-map-attribution {
	position: absolute;
	bottom: 0;
	right: 0;
	z-index: 1000;
	padding: 8px 12px;
	background: rgba(255,255,255,0.75);
	font-size: 1rem;
	line-height: 1.4;
	pointer-events: auto;
	text-transform: uppercase;
	font-weight: 500;
	color: black;
}

.pdv-map-attribution a {
    text-decoration: none;
}

.pdv-map-attribution a:hover {
    text-decoration: underline;
}

/* ── Marqueur Leaflet ──────────────────────────────────── */

.pdv-marker {
    background: transparent;
    border: none;
}

.pdv-marker svg {
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25));
}

/* ── Popup Leaflet ─────────────────────────────────────── */

.pdv-popup {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-family: var(--font-sans);
    font-size: 1.3rem;
}

.pdv-popup__name {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.pdv-popup__address {
	display: flex;
	align-items: center;
	gap: 2px;
	font-size: 1.2rem;
}

.pdv-popup__link {
    color: var(--blue);
    text-decoration: none;
    font-size: 1.2rem;
}

.pdv-popup__link:hover {
    text-decoration: underline;
}

#pdv-map .leaflet-bar {
	border: 1px solid black;
    border-radius: 0;
    background-color: white;
}

#pdv-map .leaflet-bar a:first-child {
	border-top-left-radius: 0;
	border-top-right-radius: 0;
}

#pdv-map .leaflet-bar a {
	line-height: 30px;
}

#pdv-map .leaflet-bar a {
	color: black;
	border-bottom: 1px solid black;
}

#pdv-map .leaflet-bar a {
	background-color: var(--color-white);
}

#pdv-map .leaflet-control-zoom-in, #pdv-map .leaflet-control-zoom-out {
	font-family: var(--font-sans);
	font-weight: 300;
}

#pdv-map .leaflet-bar a:last-child {
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
}

#pdv-map .leaflet-bar a:last-child {
	border-bottom: none;
}

#pdv-map .leaflet-control-zoom-out.leaflet-disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

#pdv-map .leaflet-popup-content-wrapper {
	padding: 1px;
	text-align: left;
	border-radius: 0;
    box-shadow: none;
}

#pdv-map .leaflet-popup-content {
	margin: 20px 20px 22px 20px;
	font-family: var(--font-sans);
}



/* ── Responsive ────────────────────────────────────────── */

@media (max-width: 900px) {
    .pdv-list-map {
        grid-template-columns: 1fr;
        grid-template-rows: auto 400px;
        height: auto;
    }

    .pdv-list {
        border-right: none;
        border-bottom: 1px solid var(--border);
        max-height: 50vh;
    }

    .pdv-header {
        padding: 4rem 2rem 3rem;
    }
}
