/**
 * Styles frontend — Annuaire Lieux (préfixe .se-).
 *
 * Volontairement autonome et neutre : fonctionne avec n'importe quel thème.
 * Couleurs surchargables via les variables CSS --se-*.
 *
 * @package se-lieux
 */

:root {
	--se-accent: #b3123f;
	--se-accent-dark: #8a0d30;
	--se-ink: #1c1c22;
	--se-muted: #6b6b76;
	--se-line: #e6e6ec;
	--se-bg-soft: #f7f7fa;
	--se-radius: 10px;
	--se-shadow: 0 2px 14px rgba(0, 0, 0, 0.08);
}

/* ----------------------------------------------------------------- LAYOUT */

.se-container {
	width: 100%;
	max-width: 1120px;
	margin: 0 auto;
	padding: 0 20px;
	box-sizing: border-box;
}

.se-section {
	margin: 2.5rem 0;
}

.se-section__title {
	font-size: 1.4rem;
	margin: 0 0 1rem;
	color: var(--se-ink);
}

.se-lead {
	font-size: 1.15rem;
	color: var(--se-muted);
	line-height: 1.6;
}

.se-prose {
	line-height: 1.7;
}

.se-prose img {
	max-width: 100%;
	height: auto;
}

/* ------------------------------------------------------------- BREADCRUMB */

.se-breadcrumb {
	background: var(--se-bg-soft);
	border-bottom: 1px solid var(--se-line);
	font-size: 0.85rem;
}

.se-breadcrumb__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	align-items: center;
	list-style: none;
	margin: 0;
	padding: 0.7rem 0;
}

.se-breadcrumb__list a {
	color: var(--se-muted);
	text-decoration: none;
}

.se-breadcrumb__list a:hover {
	color: var(--se-accent);
}

.se-breadcrumb__sep {
	color: var(--se-muted);
}

/* ------------------------------------------------------------------- HERO */

.se-hero {
	position: relative;
	min-height: 240px;
	display: flex;
	align-items: flex-end;
	background: #222;
	overflow: hidden;
}

.se-hero__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.se-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.75) 100%);
}

.se-hero__content {
	position: relative;
	width: 100%;
	padding: 1.6rem 0;
	color: #fff;
}

.se-hero__badge {
	display: inline-block;
	background: var(--se-accent);
	color: #fff;
	font-size: 0.8rem;
	font-weight: 600;
	padding: 0.25rem 0.7rem;
	border-radius: 999px;
	text-decoration: none;
	margin-bottom: 0.6rem;
}

.se-hero__title {
	font-size: 1.6rem;
	line-height: 1.2;
	margin: 0 0 0.6rem;
}

.se-hero__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1rem;
	align-items: center;
	font-size: 0.9rem;
}

/* ≥ tablette : hero plus haut et titre agrandi. */
@media (min-width: 768px) {
	.se-hero {
		min-height: 340px;
	}
	.se-hero__content {
		padding: 2.5rem 0;
	}
	.se-hero__title {
		font-size: 2.2rem;
		line-height: 1.15;
	}
	.se-hero__meta {
		font-size: 0.95rem;
	}
}

/* --------------------------------------------------------------- SINGLE */

.se-single {
	padding: 2rem 20px 3rem;
}

.se-single__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.8rem;
	align-items: start;
}

.se-single__aside {
	position: static;
}

/* ≥ desktop : 2 colonnes + aside collant. */
@media (min-width: 861px) {
	.se-single__grid {
		grid-template-columns: 1fr 340px;
		gap: 2.5rem;
	}
	.se-single__aside {
		position: sticky;
		top: 1.5rem;
	}
}

/* --------------------------------------------------------------- INFOCARD */

.se-infocard {
	background: #fff;
	border: 1px solid var(--se-line);
	border-radius: var(--se-radius);
	box-shadow: var(--se-shadow);
	padding: 1.4rem;
}

.se-infocard__title {
	margin: 0 0 1rem;
	font-size: 1.15rem;
}

.se-infocard__row {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	padding: 0.6rem 0;
	border-top: 1px solid var(--se-line);
}

.se-infocard__row:first-of-type {
	border-top: 0;
}

.se-infocard__label {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--se-muted);
}

.se-infocard__value a {
	color: var(--se-accent);
	text-decoration: none;
}

.se-taglist {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	list-style: none;
	margin: 0.2rem 0 0;
	padding: 0;
}

.se-tag {
	background: var(--se-bg-soft);
	border: 1px solid var(--se-line);
	border-radius: 999px;
	padding: 0.15rem 0.6rem;
	font-size: 0.8rem;
}

/* --------------------------------------------------------------- HORAIRES */

.se-horaires {
	width: 100%;
	border-collapse: collapse;
}

.se-horaires th,
.se-horaires td {
	text-align: left;
	padding: 0.5rem 0.4rem;
	border-bottom: 1px solid var(--se-line);
}

.se-horaires th {
	font-weight: 600;
	width: 45%;
}

.se-horaires__closed {
	color: var(--se-muted);
}

/* ------------------------------------------------------------------ MAP */

.se-map {
	width: 100%;
	height: 280px;
	border-radius: var(--se-radius);
	overflow: hidden;
	border: 1px solid var(--se-line);
	z-index: 0;
}

.se-map--france,
.se-map--city {
	height: 340px;
	margin-bottom: 2rem;
}

/* ≥ tablette : cartes plus hautes. */
@media (min-width: 768px) {
	.se-map {
		height: 360px;
	}
	.se-map--france,
	.se-map--city {
		height: 460px;
	}
}

.se-map-popup__cat {
	color: var(--se-muted);
	font-size: 0.8rem;
}

/* ---------------------------------------------------------------- GALERIE */

.se-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 0.6rem;
}

.se-gallery__item {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: 8px;
}

.se-gallery__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.25s ease;
}

.se-gallery__item:hover img {
	transform: scale(1.05);
}

/* --------------------------------------------------------------- LIGHTBOX */

.se-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.9);
	padding: 2rem;
}

.se-lightbox.is-open {
	display: flex;
}

.se-lightbox__img {
	max-width: 92vw;
	max-height: 88vh;
	border-radius: 6px;
}

.se-lightbox__close {
	position: absolute;
	top: 1rem;
	right: 1.4rem;
	font-size: 2.4rem;
	line-height: 1;
	color: #fff;
	background: none;
	border: 0;
	cursor: pointer;
}

/* -------------------------------------------------------- GRILLE / CARTES */

.se-grid--cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 1.4rem;
}

.se-card {
	background: #fff;
	border: 1px solid var(--se-line);
	border-radius: var(--se-radius);
	overflow: hidden;
	box-shadow: var(--se-shadow);
	display: flex;
	flex-direction: column;
}

.se-card__media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	background: var(--se-bg-soft);
}

.se-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.se-card__img--placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: repeating-linear-gradient(45deg, #eee, #eee 10px, #f6f6f6 10px, #f6f6f6 20px);
}

.se-card__cat {
	position: absolute;
	left: 0.6rem;
	top: 0.6rem;
	background: rgba(0, 0, 0, 0.65);
	color: #fff;
	font-size: 0.72rem;
	padding: 0.18rem 0.55rem;
	border-radius: 999px;
}

.se-card__body {
	padding: 1rem;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.se-card__title {
	font-size: 1.05rem;
	margin: 0;
}

.se-card__title a {
	color: var(--se-ink);
	text-decoration: none;
}

.se-card__title a:hover {
	color: var(--se-accent);
}

.se-card__ville {
	margin: 0;
	color: var(--se-muted);
	font-size: 0.85rem;
}

.se-card__rating {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.8rem;
	color: var(--se-muted);
}

.se-card__excerpt {
	margin: 0;
	font-size: 0.88rem;
	color: var(--se-muted);
	line-height: 1.5;
}

/* ----------------------------------------------------------------- ÉTOILES */

.se-stars {
	display: inline-flex;
	color: #f4b400;
	letter-spacing: 0.05em;
}

.se-star--empty {
	color: #d4d4dc;
}

/* ------------------------------------------------------------ ARCHIVE HEAD */

.se-archive-head {
	padding-top: 2rem;
	padding-bottom: 1rem;
}

.se-archive-head__title {
	font-size: 1.5rem;
	margin: 0 0 0.4rem;
}

@media (min-width: 768px) {
	.se-archive-head__title {
		font-size: 2rem;
	}
}

.se-archive-head__count {
	color: var(--se-muted);
	margin: 0;
}

/* -------------------------------------------------------------- CAT NAV */

.se-cat-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin: 0 0 2rem;
}

.se-cat-nav__item {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	background: var(--se-bg-soft);
	border: 1px solid var(--se-line);
	border-radius: 999px;
	padding: 0.4rem 0.9rem;
	text-decoration: none;
	color: var(--se-ink);
	font-size: 0.9rem;
}

.se-cat-nav__item span {
	color: var(--se-muted);
	font-size: 0.8rem;
}

.se-cat-nav__item:hover {
	border-color: var(--se-accent);
	color: var(--se-accent);
}

/* ------------------------------------------------------------- VILLE LIST */

.se-ville-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 0.4rem;
}

.se-ville-list a {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0.6rem 0.8rem;
	border: 1px solid var(--se-line);
	border-radius: 8px;
	text-decoration: none;
	color: var(--se-ink);
}

.se-ville-list a:hover {
	border-color: var(--se-accent);
	color: var(--se-accent);
}

.se-ville-list__count {
	background: var(--se-bg-soft);
	border-radius: 999px;
	font-size: 0.75rem;
	padding: 0.1rem 0.5rem;
	color: var(--se-muted);
}

/* ----------------------------------------------------------------- AVIS */

.se-rating-summary {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	color: #fff;
}

.se-rating-summary__score {
	font-size: 1.4rem;
	font-weight: 700;
}

.se-rating-summary__score span {
	font-size: 0.9rem;
	opacity: 0.8;
}

.se-rating-summary__count {
	font-size: 0.9rem;
	opacity: 0.9;
}

.se-avis-list {
	list-style: none;
	margin: 0 0 1.5rem;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.se-avis {
	border: 1px solid var(--se-line);
	border-radius: var(--se-radius);
	padding: 1rem 1.2rem;
}

.se-avis__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6rem;
	margin-bottom: 0.4rem;
}

.se-avis__author {
	font-weight: 600;
}

.se-avis__date {
	color: var(--se-muted);
	font-size: 0.82rem;
	margin-left: auto;
}

.se-avis__body {
	line-height: 1.6;
}

.se-avis-pagination {
	display: flex;
	gap: 1rem;
	align-items: center;
	margin-bottom: 1.5rem;
}

.se-avis-pagination__link {
	color: var(--se-accent);
	text-decoration: none;
}

.se-avis-pagination__info {
	color: var(--se-muted);
	font-size: 0.85rem;
}

/* ------------------------------------------------------------ FORM AVIS */

.se-avis-form {
	background: var(--se-bg-soft);
	border: 1px solid var(--se-line);
	border-radius: var(--se-radius);
	padding: 1.5rem;
	margin-top: 1rem;
}

.se-avis-form__title {
	margin: 0 0 1rem;
	font-size: 1.2rem;
}

.se-field {
	margin-bottom: 1rem;
}

.se-field label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.3rem;
	font-size: 0.9rem;
}

.se-field__hint {
	font-weight: 400;
	color: var(--se-muted);
	font-size: 0.82rem;
}

.se-field input[type="text"],
.se-field input[type="email"],
.se-field select,
.se-field textarea {
	width: 100%;
	padding: 0.6rem 0.7rem;
	border: 1px solid var(--se-line);
	border-radius: 8px;
	font: inherit;
	box-sizing: border-box;
	background: #fff;
}

.se-avis-form__note {
	font-size: 0.82rem;
	color: var(--se-muted);
	margin: 0.6rem 0 0;
}

/* Honeypot — masqué aux humains. */
.se-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Étoiles cliquables du formulaire. */
.se-star-input {
	display: inline-flex;
	gap: 0.15rem;
	font-size: 1.8rem;
	line-height: 1;
}

.se-star-input__btn {
	background: none;
	border: 0;
	cursor: pointer;
	color: #d4d4dc;
	padding: 0;
}

.se-star-input__btn.is-active {
	color: #f4b400;
}

/* --------------------------------------------------------------- BOUTONS */

.se-btn {
	display: inline-block;
	border: 0;
	border-radius: 8px;
	padding: 0.7rem 1.2rem;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	text-align: center;
	transition: background 0.15s ease, color 0.15s ease;
}

.se-btn--accent {
	background: var(--se-accent);
	color: #fff;
}

.se-btn--accent:hover {
	background: var(--se-accent-dark);
}

.se-btn--ghost {
	background: transparent;
	border: 1px solid var(--se-line);
	color: var(--se-ink);
}

.se-btn--ghost:hover {
	border-color: var(--se-accent);
	color: var(--se-accent);
}

.se-btn--block {
	display: block;
	width: 100%;
	margin-top: 1rem;
	box-sizing: border-box;
}

/* ----------------------------------------------------------- DISCLAIMER */

.se-disclaimer {
	font-size: 0.78rem;
	color: var(--se-muted);
	border-top: 1px solid var(--se-line);
	padding-top: 1rem;
	margin-top: 2rem;
	line-height: 1.5;
}

/* --------------------------------------------------------- SIGNALEMENT */

.se-report-btn {
	background: none;
	border: 0;
	color: var(--se-muted);
	font-size: 0.82rem;
	text-decoration: underline;
	cursor: pointer;
	padding: 0;
	margin-top: 0.6rem;
}

.se-report-btn:hover {
	color: var(--se-accent);
}

.se-modal {
	position: fixed;
	inset: 0;
	z-index: 100001;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
}

.se-modal.is-open {
	display: flex;
}

.se-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
}

.se-modal__box {
	position: relative;
	background: #fff;
	border-radius: var(--se-radius);
	padding: 1.8rem;
	width: 100%;
	max-width: 460px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.se-modal__close {
	position: absolute;
	top: 0.7rem;
	right: 0.9rem;
	font-size: 1.6rem;
	line-height: 1;
	background: none;
	border: 0;
	cursor: pointer;
	color: var(--se-muted);
}

.se-modal__title {
	margin: 0 0 1.2rem;
	font-size: 1.25rem;
}

.se-signaler-form__msg {
	margin: 0.6rem 0 0;
	font-size: 0.88rem;
}

.se-signaler-form__msg.is-success {
	color: #1a7f37;
}

.se-signaler-form__msg.is-error {
	color: var(--se-accent);
}

/* ----------------------------------------------------------- BANDEAU 18+ */

/* Masqué par défaut (SEO-safe) ; révélé en JS si le cookie est absent. */
.se-age-gate {
	position: fixed;
	inset: 0;
	z-index: 100002;
	display: none;
	align-items: center;
	justify-content: center;
	background: rgba(10, 10, 14, 0.96);
	padding: 1.5rem;
}

.se-age-gate.is-visible {
	display: flex;
}

.se-age-locked {
	overflow: hidden;
}

.se-age-gate__box {
	background: #fff;
	border-radius: var(--se-radius);
	padding: 2.2rem;
	max-width: 480px;
	text-align: center;
}

.se-age-gate__title {
	margin: 0 0 1rem;
	font-size: 1.5rem;
}

.se-age-gate__text {
	color: var(--se-muted);
	line-height: 1.6;
}

.se-age-gate__actions {
	display: flex;
	flex-direction: column;
	gap: 0.7rem;
	margin: 1.5rem 0 1rem;
}

.se-age-gate__legal {
	font-size: 0.78rem;
	color: var(--se-muted);
	margin: 0;
}

/* -------------------------------------------------------------- DIVERS */

.se-pagination ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	list-style: none;
	padding: 0;
	margin: 2rem 0;
	justify-content: center;
}

.se-pagination a,
.se-pagination span {
	display: inline-block;
	padding: 0.45rem 0.8rem;
	border: 1px solid var(--se-line);
	border-radius: 8px;
	text-decoration: none;
	color: var(--se-ink);
}

.se-pagination .current {
	background: var(--se-accent);
	color: #fff;
	border-color: var(--se-accent);
}

.se-linklist {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.se-linklist a {
	color: var(--se-accent);
	text-decoration: none;
}

.se-empty {
	color: var(--se-muted);
	padding: 2rem 0;
}

.se-section--maillage {
	background: var(--se-bg-soft);
	border-radius: var(--se-radius);
	padding: 1.5rem;
}

/* ------------------------------------------------------- FOOTER LÉGAL */

.se-footer-legal {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1rem;
	align-items: center;
	justify-content: center;
	padding: 1rem 20px;
	border-top: 1px solid var(--se-line);
	font-size: 0.78rem;
	color: var(--se-muted);
}

.se-footer-legal__age {
	font-weight: 600;
}

.se-footer-legal__links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.8rem;
}

.se-footer-legal__links a {
	color: var(--se-muted);
	text-decoration: none;
}

.se-footer-legal__links a:hover {
	color: var(--se-accent);
	text-decoration: underline;
}
