/* =========================================================================
   Languedoc Céramique — Page « Partenaires » (maquette Figma node 1:7)
   Structure : 1) Nos partenaires poteries (image + liste distributeurs
   + boutique) — 2) Ils nous font confiance (intro + logos) — 3) bande
   terracotta festonnée « Nous contacter » + plan.
   Les tokens et classes globales proviennent de theme.css.
   ========================================================================= */

/* =====================================================================
   1. NOS PARTENAIRES POTERIES
   ===================================================================== */
.part-poteries {
	background: var(--lc-cream);
	padding-block: clamp(48px, 7vw, 110px);
}
.part-poteries__title {
	margin-bottom: clamp(28px, 3.5vw, 60px);
}
.part-poteries__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(32px, 8vw, 150px);
	align-items: start;
}

/* --- Colonne gauche : image carrée + bloc boutique --- */
.part-poteries__aside {
	display: flex;
	flex-direction: column;
	gap: clamp(28px, 3.5vw, 56px);
}
.part-poteries__figure {
	margin: 0;
}
.part-poteries__img,
.part-poteries__placeholder {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}
.part-poteries__placeholder { background: var(--lc-placeholder); }

/* Bloc « Ou directement dans notre boutique » (centré sous l'image) */
.part-boutique {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: clamp(18px, 2vw, 30px);
	margin-top: clamp(20px, 3vw, 44px);
}
.part-boutique__title {
	font-family: var(--font-display);
	font-weight: 300;
	font-size: clamp(1.35rem, 1.9vw, 1.9rem);
	line-height: 1.2;
	text-transform: uppercase;
	margin: 0;
	max-width: 25ch;
	color: var(--lc-dark);
}
/* Bouton contour (transparent, bord sombre) — « S'y rendre » */
.part-boutique__button {
	display: inline-block;
	font-family: var(--font-ui);
	font-size: clamp(1.0625rem, 1.25vw, 1.2rem);
	letter-spacing: -1px;
	color: var(--lc-dark);
	background: transparent;
	border: 1px solid var(--lc-dark);
	border-radius: 0;
	padding: 10px 24px;
	text-decoration: none;
	transition: background-color .2s ease, color .2s ease;
}
.part-boutique__button:hover {
	background: var(--lc-dark);
	color: var(--lc-cream);
}

/* --- Colonne droite : liste des distributeurs par département --- */
.part-poteries__list {
	display: flex;
	flex-direction: column;
	gap: clamp(24px, 2.6vw, 40px);
}
.part-dept__title {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: clamp(1.05rem, 1.3vw, 1.3rem);
	margin: 0 0 clamp(6px, 0.7vw, 12px);
	color: var(--lc-dark);
}
.part-dept__list {
	list-style: disc;
	margin: 0;
	padding-left: 1.25em;
	font-size: clamp(0.95rem, 1.05vw, 1rem);
	line-height: 1.2;
	color: var(--lc-dark);
}
.part-dept__list li { margin: 0 0 0.3em; }
.part-dept__list li:last-child { margin-bottom: 0; }

/* =====================================================================
   2. ILS NOUS FONT CONFIANCE (logos)
   ===================================================================== */
.part-logos {
	background: var(--lc-cream);
	padding-block: clamp(48px, 7vw, 110px);
}
.part-logos__title {
	text-align: center;
}
.part-logos__intro {
	max-width: 70ch;
	margin: clamp(16px, 2vw, 28px) auto clamp(36px, 4.5vw, 72px);
	text-align: center;
}
.part-logos__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: clamp(16px, 2.2vw, 42px);
}
.part-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1 / 1;
	padding: clamp(18px, 2.2vw, 40px);
	background: var(--lc-white);
}
.part-logo__link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}
.part-logo__img {
	max-width: 100%;
	max-height: 60%;
	width: auto;
	object-fit: contain;
}
.part-logo__fallback {
	font-family: var(--font-ui);
	text-transform: uppercase;
	font-size: clamp(0.85rem, 1vw, 1.05rem);
	text-align: center;
	color: var(--lc-text-muted);
	background: var(--lc-placeholder);
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 14px;
}

/* =====================================================================
   3. BANDE « NOUS CONTACTER » (terracotta festonnée) + PLAN
   ===================================================================== */
.part-plan {
	background: var(--lc-cream);
}

/* Bande terracotta festonnée (même feston que la section « Notre histoire ») */
.part-plan__cta {
	position: relative;
	background: var(--lc-terracotta-deep);
	color: var(--lc-cream);
	isolation: isolate;
	margin-top: clamp(48px, 7vw, 110px);
}
.part-plan__cta::before,
.part-plan__cta::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	height: 11px;
	background: url("../images/wave-scallop.svg") repeat-x;
	background-size: 21px 11px;
	pointer-events: none;
	z-index: 1;
}
.part-plan__cta::before { top: -10px; transform: scaleY(-1); }
.part-plan__cta::after  { bottom: -10px; }

.part-plan__cta-inner {
	position: relative;
	z-index: 2;
	padding-block: clamp(56px, 8vw, 130px);
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: clamp(24px, 3vw, 44px);
}
.part-plan__text {
	max-width: 52ch;
}

/* Bloc « Plan » : pleine largeur, fond beige (emplacement de la carte). */
.part-plan__map {
	position: relative;
	width: 100%;
	min-height: clamp(420px, 45vw, 640px);
	background: var(--lc-beige);
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}
.part-plan__map iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}
.part-plan__label {
	font-family: var(--font-display);
	font-weight: 600;
	text-transform: uppercase;
	font-size: clamp(1.4rem, 2vw, 2rem);
	color: var(--lc-dark);
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 900px) {
	.part-poteries__grid {
		grid-template-columns: 1fr;
	}
	/* Ordre mobile : image, puis la liste des distributeurs (long texte),
	   puis « Ou directement dans notre boutique » + son CTA en dernier. */
	.part-poteries__aside {
		display: contents;
	}
	.part-poteries__figure { order: 1; }
	.part-poteries__list { order: 2; }
	.part-boutique { order: 3; }
	.part-logos__grid {
		grid-template-columns: 1fr 1fr;
	}
	.part-plan__map { min-height: clamp(280px, 60vw, 420px); }
}

@media (max-width: 480px) {
	.part-logos__grid { grid-template-columns: 1fr 1fr; }
}
