/**
 * Page single œuvre (LOT 3) — charte EEC.
 *
 * @package eec-child
 */

.eec-oe-single {
	--eec-oe-blue: var(--eec-blue-deep, #142c52);
	--eec-oe-blue-mid: var(--eec-blue, #1b3a6b);
	--eec-oe-gold: var(--eec-gold, var(--eec-yellow-deep, #d4af37));
	--eec-oe-gold-light: var(--eec-yellow, #f4d03f);
	--eec-oe-text: #1f2937;
	--eec-oe-muted: #6b7280;
	--eec-oe-bg: #f8fafc;
	--eec-oe-border: #e5e7eb;
	--eec-oe-radius: 10px;
	--eec-oe-shadow: 0 12px 40px rgba(10, 37, 64, 0.12);
	color: var(--eec-oe-text);
	background: #fff;
	font-family: "Lato", system-ui, sans-serif;
}

.eec-oe-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

.eec-oe-container--narrow {
	max-width: 800px;
}

.eec-oe-text-center {
	text-align: center;
}

.eec-oe-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 22px;
	font-weight: 700;
	font-size: 0.95rem;
	border-radius: 999px;
	text-decoration: none;
	border: 2px solid transparent;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
	cursor: pointer;
}

.eec-oe-btn:focus {
	outline: 2px solid var(--eec-green-deep, #3d6b26);
	outline-offset: 2px;
}

.eec-oe-btn--gold {
	background: var(--eec-oe-gold-light);
	color: var(--eec-oe-blue);
	box-shadow: 0 4px 14px rgba(212, 175, 55, 0.35);
}

.eec-oe-btn--gold:hover {
	background: var(--eec-oe-gold);
	color: #fff;
	transform: translateY(-1px);
}

.eec-oe-btn--blue {
	background: var(--eec-oe-blue-mid);
	color: #fff;
}

.eec-oe-btn--blue:hover {
	background: var(--eec-oe-blue);
}

.eec-oe-btn--blue-outline {
	background: transparent;
	border-color: var(--eec-oe-blue-mid);
	color: var(--eec-oe-blue-mid);
}

.eec-oe-btn--blue-outline:hover {
	background: var(--eec-blue-light, #e8f0f8);
}

.eec-oe-section {
	padding: 64px 0;
}

.eec-oe-section-title {
	font-family: "Playfair Display", Georgia, serif;
	font-size: clamp(1.6rem, 3vw, 2rem);
	color: var(--eec-oe-blue);
	margin: 0 0 16px;
}

.eec-oe-section-intro {
	color: var(--eec-oe-muted);
	max-width: 640px;
	margin: 0 auto 28px;
	line-height: 1.6;
}

/* Breadcrumb hero */
.eec-oe-breadcrumb {
	font-size: 0.85rem;
	margin: 0 0 16px;
	opacity: 0.9;
}

.eec-oe-breadcrumb a {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.eec-oe-breadcrumb__sep {
	margin: 0 6px;
	opacity: 0.7;
}

/* Hero — toujours visible (titre H1), fond plain ou photo */
.eec-oe-single .eec-oe-hero {
	position: relative;
	min-height: 360px;
	padding: 80px 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	color: #fff;
	overflow: hidden;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.eec-oe-single .eec-oe-hero--plain {
	background: linear-gradient(135deg, #0a2540 0%, #163961 60%, #0a2540 100%);
}

.eec-oe-single .eec-oe-hero--plain::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, transparent, #c9a961, transparent);
	z-index: 1;
}

.eec-oe-single .eec-oe-hero--photo {
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.eec-oe-single .eec-oe-hero__inner {
	max-width: 900px;
	margin: 0 auto;
	position: relative;
	z-index: 2;
	width: 100%;
	padding: 0 4px;
}

.eec-oe-single .eec-oe-hero__tags {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 16px;
}

.eec-oe-single .eec-oe-hero__tag {
	display: inline-block;
	padding: 6px 14px;
	background: rgba(201, 169, 97, 0.2);
	color: #c9a961;
	border: 1px solid #c9a961;
	border-radius: 20px;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 1px;
	font-weight: 600;
}

.eec-oe-single .eec-oe-hero__tag--departement,
.eec-oe-single .eec-oe-hero__tag--type {
	background: rgba(201, 169, 97, 0.2);
	color: #c9a961;
	border: 1px solid #c9a961;
}

.eec-oe-single .eec-oe-hero__title {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 2.5em;
	font-weight: bold;
	color: #fff;
	margin: 0 0 12px;
	line-height: 1.2;
}

.eec-oe-single .eec-oe-hero__tagline {
	font-family: Georgia, serif;
	font-size: 1.2em;
	font-style: italic;
	color: #c9a961;
	margin: 0 0 8px;
}

.eec-oe-single .eec-oe-hero__statut {
	margin: 0 0 8px;
	color: rgba(255, 255, 255, 0.92);
	font-size: 0.95rem;
}

.eec-oe-single .eec-oe-hero__since {
	font-size: 0.95em;
	color: rgba(255, 255, 255, 0.85);
	margin: 8px 0 0;
}

@media (min-width: 1024px) {
	.eec-oe-single .eec-oe-hero {
		padding: 100px 40px;
		min-height: 420px;
	}

	.eec-oe-single .eec-oe-hero__title {
		font-size: 3em;
	}
}

@media (max-width: 640px) {
	.eec-oe-single .eec-oe-hero {
		padding: 60px 20px;
		min-height: 280px;
	}

	.eec-oe-single .eec-oe-hero__title {
		font-size: 1.8em;
	}
}

/* Chiffres */
.eec-oe-chiffres {
	padding: 48px 0;
	background: linear-gradient(180deg, var(--eec-oe-blue) 0%, var(--eec-oe-blue-mid) 100%);
	color: #fff;
}

.eec-oe-chiffres__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px;
}

@media (min-width: 640px) {
	.eec-oe-chiffres__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (min-width: 1024px) {
	.eec-oe-chiffres__grid {
		grid-template-columns: repeat(5, 1fr);
	}
}

.eec-oe-chiffre {
	text-align: center;
	padding: 8px;
}

.eec-oe-chiffre__num {
	display: block;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(2rem, 4vw, 2.5rem);
	font-weight: 700;
	color: var(--eec-oe-gold-light);
	line-height: 1.1;
}

.eec-oe-chiffre__num--text {
	font-size: clamp(1.35rem, 3vw, 1.85rem);
}

.eec-oe-chiffre__label {
	display: block;
	margin-top: 8px;
	font-size: 0.82rem;
	opacity: 0.9;
	line-height: 1.35;
}

/* Prose */
.eec-oe-content {
	line-height: 1.75;
}

.eec-oe-content p {
	margin-top: 0;
	margin-bottom: 1em;
}

.eec-oe-public-servi {
	margin-top: 24px;
	padding: 20px;
	background: var(--eec-oe-bg);
	border-radius: var(--eec-oe-radius);
	border: 1px solid var(--eec-oe-border);
}

.eec-oe-public-servi h3 {
	margin-top: 0;
	font-size: 1.1rem;
	color: var(--eec-oe-blue);
}

/* Services */
.eec-oe-services-grid {
	display: grid;
	gap: 20px;
	grid-template-columns: 1fr;
}

@media (min-width: 640px) {
	.eec-oe-services-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.eec-oe-services-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.eec-oe-service-card {
	background: #fff;
	border: 1px solid var(--eec-oe-border);
	border-radius: var(--eec-oe-radius);
	padding: 22px;
	box-shadow: 0 4px 16px rgba(10, 37, 64, 0.06);
	transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.eec-oe-service-card:hover {
	box-shadow: var(--eec-oe-shadow);
	border-color: var(--eec-oe-gold);
	transform: translateY(-3px);
}

.eec-oe-service-card__icon {
	font-size: 2rem;
	line-height: 1;
	display: block;
	margin-bottom: 10px;
}

.eec-oe-service-card__title {
	font-size: 1.1rem;
	margin: 0 0 8px;
	color: var(--eec-oe-blue);
}

.eec-oe-service-card__desc {
	margin: 0;
	color: var(--eec-oe-muted);
	font-size: 0.95rem;
}

/* Direction */
.eec-oe-responsable {
	display: grid;
	gap: 24px;
	align-items: start;
	margin-bottom: 28px;
}

@media (min-width: 768px) {
	.eec-oe-responsable {
		grid-template-columns: auto 1fr;
	}
}

.eec-oe-responsable__photo-wrap {
	justify-self: center;
}

.eec-oe-responsable__photo {
	width: 180px;
	height: 180px;
	object-fit: cover;
	border-radius: 50%;
	border: 4px solid var(--eec-oe-gold);
	box-shadow: var(--eec-oe-shadow);
}

.eec-oe-responsable__name {
	font-size: 1.35rem;
	margin: 0 0 6px;
	color: var(--eec-oe-blue);
}

.eec-oe-responsable__title {
	margin: 0 0 12px;
	color: var(--eec-oe-gold);
	font-weight: 700;
}

.eec-oe-responsable__bio {
	margin: 0;
	color: var(--eec-oe-muted);
	white-space: pre-line;
}

.eec-oe-equipe-compo {
	padding: 24px;
	background: var(--eec-oe-bg);
	border-radius: var(--eec-oe-radius);
	border: 1px solid var(--eec-oe-border);
}

.eec-oe-equipe-compo h3 {
	margin-top: 0;
	color: var(--eec-oe-blue);
}

/* Réalisations */
.eec-oe-realisations-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
	max-width: 900px;
	margin: 0 auto;
}

.eec-oe-realisation {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 16px;
	align-items: start;
	padding: 16px;
	background: #fff;
	border-radius: var(--eec-oe-radius);
	border: 1px solid var(--eec-oe-border);
}

.eec-oe-realisation__annee {
	flex-shrink: 0;
	padding: 8px 12px;
	background: var(--eec-oe-blue);
	color: var(--eec-oe-gold-light);
	font-weight: 700;
	border-radius: 8px;
	font-size: 0.85rem;
}

.eec-oe-realisation__titre {
	margin: 0 0 6px;
	font-size: 1.05rem;
	color: var(--eec-oe-blue);
}

.eec-oe-realisation__desc {
	margin: 0;
	color: var(--eec-oe-muted);
	font-size: 0.95rem;
}

/* Partenaires */
.eec-oe-partenaires-grid {
	display: grid;
	gap: 20px;
	grid-template-columns: repeat(2, 1fr);
	align-items: center;
}

@media (min-width: 1024px) {
	.eec-oe-partenaires-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

.eec-oe-partenaire-card {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100px;
	padding: 16px;
	background: #fff;
	border: 1px solid var(--eec-oe-border);
	border-radius: var(--eec-oe-radius);
	text-decoration: none;
	transition: box-shadow 0.2s ease;
}

.eec-oe-partenaire-card:hover {
	box-shadow: var(--eec-oe-shadow);
}

.eec-oe-partenaire-logo {
	max-width: 120px;
	max-height: 64px;
	object-fit: contain;
	opacity: 0.75;
	transition: opacity 0.2s ease;
}

.eec-oe-partenaire-card:hover .eec-oe-partenaire-logo {
	opacity: 1;
}

.eec-oe-partenaire-placeholder {
	text-align: center;
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--eec-oe-blue);
	padding: 12px;
	line-height: 1.35;
}

/* Galerie */
.eec-oe-galerie-grid {
	display: grid;
	gap: 8px;
	grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
	.eec-oe-galerie-grid {
		grid-template-columns: repeat(4, 1fr);
		gap: 10px;
	}
}

.eec-oe-galerie-item {
	display: block;
	overflow: hidden;
	border-radius: 8px;
	aspect-ratio: 4 / 3;
}

.eec-oe-galerie-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.eec-oe-galerie-item:hover img {
	transform: scale(1.05);
}

/* Infos pratiques + carte */
.eec-oe-section--infos {
	background: #fff;
	padding: 60px 0;
}

.eec-oe-section--infos .eec-oe-section-title {
	margin-bottom: 28px;
}

.eec-oe-infos-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 32px;
	margin-bottom: 24px;
}

@media (min-width: 1024px) {
	.eec-oe-infos-grid {
		grid-template-columns: 1fr 1.2fr;
		align-items: start;
	}
}

.eec-oe-infos-text {
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 24px;
}

.eec-oe-info-row {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 12px 0;
	border-bottom: 1px solid #e5e7eb;
}

.eec-oe-info-row:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.eec-oe-info-row:first-child {
	padding-top: 0;
}

.eec-oe-info-label {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: #6b7280;
	font-weight: 600;
}

.eec-oe-info-value {
	color: #1f2937;
	font-size: 15px;
	line-height: 1.5;
}

.eec-oe-info-value a {
	color: #0a2540;
	text-decoration: underline;
	font-weight: 600;
}

.eec-oe-mini-map {
	width: 100%;
	height: 350px;
	border-radius: 8px;
	border: 1px solid #e5e7eb;
	overflow: hidden;
	z-index: 1;
}

.eec-oe-map-actions {
	text-align: center;
	margin-top: 16px;
}

.eec-oe-map-marker {
	background: transparent !important;
	border: none !important;
}

/* Leaflet focus */
.eec-oe-mini-map:focus {
	outline: 2px solid var(--eec-green-deep, #3d6b26);
	outline-offset: 2px;
}

/* Finale */
.eec-oe-soutien-cta {
	padding: 32px 24px;
	margin-bottom: 48px;
	background: linear-gradient(135deg, rgba(212, 175, 55, 0.12) 0%, rgba(27, 58, 107, 0.08) 100%);
	border: 1px solid rgba(212, 175, 55, 0.45);
	border-radius: var(--eec-oe-radius);
	text-align: center;
}

.eec-oe-soutien-cta__inner {
	max-width: 560px;
	margin: 0 auto;
}

.eec-oe-soutien-cta p {
	color: var(--eec-oe-muted);
	line-height: 1.65;
}

.eec-oe-similaires {
	margin-bottom: 40px;
}

.eec-oe-similaires-grid {
	display: grid;
	gap: 1px;
	grid-template-columns: 1fr;
	background: var(--eec-oe-border);
	border: 1px solid var(--eec-oe-border);
	border-radius: var(--eec-oe-radius);
	overflow: hidden;
}

@media (min-width: 768px) {
	.eec-oe-similaires-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.eec-oe-similaire-card {
	display: block;
	padding: 22px;
	background: #fff;
	text-decoration: none;
	color: inherit;
	transition: background 0.2s ease;
}

.eec-oe-similaire-card:hover {
	background: var(--eec-oe-bg);
}

.eec-oe-similaire-card h3 {
	margin: 0 0 8px;
	font-size: 1.05rem;
	color: var(--eec-oe-blue);
}

.eec-oe-similaire-type {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--eec-oe-gold);
	margin-bottom: 8px;
}

.eec-oe-similaire-card p {
	margin: 0 0 12px;
	color: var(--eec-oe-muted);
	font-size: 0.92rem;
}

.eec-oe-similaire-link {
	font-weight: 700;
	color: var(--eec-oe-blue-mid);
}

.eec-oe-back-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
	padding-bottom: 48px;
}

/* Lightbox + fade (JS) */
.eec-oe-lightbox {
	z-index: 100000;
}

.eec-oe-fade-pending {
	opacity: 0;
	transform: translateY(14px);
}

.eec-oe-fade-in {
	opacity: 1;
	transform: translateY(0);
	transition: opacity 0.5s ease, transform 0.5s ease;
}

@media (prefers-reduced-motion: reduce) {
	.eec-oe-fade-pending,
	.eec-oe-fade-in {
		opacity: 1;
		transform: none;
		transition: none;
	}

	.eec-oe-service-card:hover {
		transform: none;
	}
}

/* Notice import PV — fiche à compléter (LOT 4 Phase B) */
.eec-oeuvre-enrichment-notice {
	background: #faf6e8;
	border: 1px solid var(--eec-gold, #c9a961);
	border-radius: 8px;
	padding: 16px;
	margin: 24px auto;
	max-width: min(960px, calc(100% - 32px));
	display: flex;
	gap: 12px;
	align-items: flex-start;
}

.eec-oeuvre-enrichment-notice__icon {
	flex-shrink: 0;
	color: var(--eec-gold, #c9a961);
}

.eec-oeuvre-enrichment-notice__content strong {
	display: block;
	margin-bottom: 6px;
	color: var(--eec-blue, #1b3a6b);
}

.eec-oeuvre-enrichment-notice__content p {
	margin: 0;
	line-height: 1.55;
}

.eec-oeuvre-enrichment-notice__content a {
	font-weight: 600;
}
