/* La flamm' d'Edouard — palette issue du logo (Citroën HY) */

:root {
  --color-cream: #f9edd8;
  --color-cream-deep: #faf0e0;
  --color-parchment: #f6e9c3;
  --color-bordeaux: #71090a;
  --color-bordeaux-mid: #73090b;
  --color-bordeaux-light: #8b2325;
  --color-forest: #353615;
  --color-forest-mid: #48501a;
  --color-olive: #89973e;
  --color-ink: #21211a;
  --color-ink-soft: #4a4538;
  --font-display: "Cormorant Garamond", "Georgia", serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --shadow-soft: 0 8px 32px rgba(33, 33, 26, 0.08);
  --shadow-card: 0 4px 24px rgba(53, 54, 21, 0.12);
  --radius: 4px;
  --radius-lg: 8px;
  --frame-border: 3px solid var(--color-forest-mid);
  --max-width: 72rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height:1.65;
  color: var(--color-ink);
  background-color: var(--color-cream);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(137, 151, 62, 0.06), transparent 50%),
    linear-gradient(180deg, var(--color-cream) 0%, var(--color-cream-deep) 100%);
  min-height: 100vh;
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 999;
  padding: 0.75rem 1rem;
  background: var(--color-bordeaux);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius);
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-forest);
  letter-spacing: 0.02em;
}

h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  margin: 0 0 1rem;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 1rem;
}

h3 {
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--color-bordeaux);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-bordeaux-light);
}

/* Cadre alsacien discret (motif géométrique) */
.pattern-frame {
  position: relative;
  border: var(--frame-border);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.35) 0%, rgba(249, 237, 216, 0.9) 100%);
  box-shadow: var(--shadow-card);
}

.pattern-frame::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(72, 80, 26, 0.25);
  border-radius: calc(var(--radius-lg) - 4px);
  pointer-events: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, rgba(249, 237, 216, 0.97) 0%, rgba(249, 237, 216, 0.92) 100%);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(72, 80, 26, 0.15);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset;
}

.site-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  text-decoration: none;
  color: inherit;
}

.site-logo:hover {
  color: inherit;
}

.site-logo img {
  height: 78px;
  width: auto;
  display: block;
}

.site-logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.site-logo__name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-bordeaux);
  letter-spacing: 0.03em;
}

.site-logo__tagline {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-forest-mid);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  align-items: center;
}

.site-nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-ink-soft);
  text-decoration: none;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  color: var(--color-bordeaux);
}

.site-nav a.is-active {
  color: var(--color-bordeaux);
  border-bottom-color: var(--color-olive);
}

/* Hero accueil : vidéo en arrière-plan, texte au premier plan */
.hero--with-video {
  position: relative;
  isolation: isolate;
  margin-bottom: 2rem;
  padding: 0;
  min-height: min(58vh, 480px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero__video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--color-ink);
}

.hero__video-bg .hero__video-media {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: var(--radius-lg);
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(33, 33, 26, 0.2) 0%,
    rgba(249, 237, 216, 0.65) 50%,
    rgba(249, 237, 216, 0.92) 100%
  );
}

.hero--with-video .hero__inner {
  position: relative;
  z-index: 2;
  width: calc(100% - 2rem);
  max-width: 40rem;
  margin: 1.25rem auto;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

.hero {
  text-align: center;
  padding: 2.5rem 1.5rem 3rem;
  margin-bottom: 2rem;
}

.hero--with-video.hero {
  padding: 0;
}

.hero--framed {
  padding: 2.5rem 1.5rem;
}

.hero .lede {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-ink-soft);
  max-width: 38rem;
  margin: 0 auto 1.5rem;
}

.section-lede {
  color: var(--color-ink-soft);
  max-width: 38rem;
  margin: -0.5rem 0 1.25rem;
}

.lieux-columns {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 768px) {
  .lieux-columns {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

.lieux-columns__col .section-lede {
  max-width: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn--primary {
  background: var(--color-bordeaux);
  color: #fdfcfa;
  border-color: var(--color-bordeaux);
}

.btn--primary:hover {
  background: var(--color-bordeaux-mid);
  color: #fff;
}

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

.btn--outline:hover {
  background: rgba(72, 80, 26, 0.08);
  color: var(--color-bordeaux);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.section {
  margin-bottom: 3rem;
}

.section--split {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 768px) {
  .section--split {
    grid-template-columns: 1fr 1fr;
  }
}

.card-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .card-grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  padding: 1.5rem;
  border: var(--frame-border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.45);
  box-shadow: var(--shadow-soft);
}

.card h3 {
  color: var(--color-bordeaux);
}

.prestation-card {
  text-align: center;
  padding: 1.75rem 1.25rem;
}

.prestation-card .prestation-icon {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 0.75rem;
  opacity: 0.85;
}

.contact-strip {
  margin-top: 2rem;
  padding: 2rem 1.5rem;
  text-align: center;
  border: var(--frame-border);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(113, 9, 10, 0.06) 0%, rgba(137, 151, 62, 0.08) 100%);
}

.contact-strip p {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--color-bordeaux);
  margin-bottom: 1.25rem;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

.contact-links a {
  font-weight: 600;
}

.site-footer {
  margin-top: auto;
  padding: 2.5rem 1.25rem;
  background: linear-gradient(180deg, rgba(53, 54, 21, 0.06) 0%, rgba(28, 24, 14, 0.12) 100%);
  border-top: 1px solid rgba(72, 80, 26, 0.2);
}

.site-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  align-items: center;
  text-align: center;
}

.site-footer__columns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem 3rem;
  width: 100%;
}

.site-footer__col--main {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  max-width: 26rem;
}

.site-footer__col--main .social-row {
  justify-content: center;
}

.site-footer__col--logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-logo {
  display: block;
  line-height: 0;
  text-decoration: none;
  color: inherit;
  opacity: 1;
  transition: opacity 0.2s, transform 0.2s;
}

.footer-logo:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.footer-logo img {
  height: 156px;
  width: auto;
  display: block;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-bordeaux);
}

.footer-contact {
  font-size: 0.9375rem;
  color: var(--color-ink-soft);
}

.footer-contact a {
  white-space: nowrap;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.social-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: rgba(113, 9, 10, 0.08);
  color: var(--color-bordeaux);
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.social-row a:hover {
  background: rgba(113, 9, 10, 0.18);
  transform: translateY(-2px);
}

.social-row svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
}

.copyright {
  font-size: 0.8125rem;
  color: var(--color-ink-soft);
  margin: 0;
  text-align: center;
  width: 100%;
}

@media (max-width: 640px) {
  .site-footer__columns {
    flex-direction: column;
    gap: 1.75rem;
  }

  .site-footer__col--main {
    max-width: none;
  }
}

.produit-card {
  padding: 2rem;
}

.produit-card .meta-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-forest-mid);
  margin: 1.25rem 0 0.35rem;
}

.produit-card ul {
  margin: 0;
  padding-left: 1.25rem;
}

.lieu-card {
  padding: 1.5rem 1.75rem;
}

.lieu-card .lieu-dates {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--color-bordeaux);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.lieu-card .lieu-place {
  font-weight: 600;
  color: var(--color-forest);
}

.lieu-notes {
  font-size: 0.95rem;
  color: var(--color-ink-soft);
  margin-top: 0.75rem;
}

.lieux-map-wrap {
  background: transparent;
}

.lieux-map-wrap.pattern-frame {
  padding: 8px;
}

.lieux-map {
  width: 100%;
  height: min(28rem, 60vh);
  min-height: 16rem;
  z-index: 0;
  overflow: hidden;
  border-radius: calc(var(--radius-lg) - 6px);
  background: var(--color-cream-deep);
}

.lieux-map.leaflet-container {
  background: var(--color-cream-deep);
  font-family: var(--font-body);
}

.lieux-map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0.65rem 0.15rem 0.15rem;
  border-top: 1px solid rgba(53, 54, 21, 0.12);
  font-size: 0.95rem;
  color: var(--color-ink-soft);
}

.lieux-map-legend__dot {
  display: inline-block;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  margin-right: 0.4rem;
  vertical-align: middle;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(53, 54, 21, 0.15);
}

.lieux-map-legend__dot--regulier {
  background: var(--color-forest);
}

.lieux-map-legend__dot--ponctuel {
  background: var(--color-bordeaux);
}

.map-popup {
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.15;
}

.lieux-map-wrap .leaflet-popup-content-wrapper {
  border-radius: var(--radius);
  box-sizing: border-box;
}

.lieux-map-wrap .leaflet-popup-content {
  margin: 0.4rem 0.5rem;
  line-height: 1.15;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.lieux-map-wrap .leaflet-popup {
  margin-bottom: 1px;
}

.lieux-map-wrap .leaflet-popup-tip {
  width: 10px;
  height: 10px;
}

.map-popup__scroll {
  overflow-y: visible;
  max-height: none;
}

.map-popup__scroll--many {
  max-height: min(11rem, 36vh);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.map-popup__scroll--many::-webkit-scrollbar {
  width: 4px;
}

.map-popup__scroll--many::-webkit-scrollbar-thumb {
  background: rgba(53, 54, 21, 0.25);
  border-radius: 999px;
}

.map-popup__event + .map-popup__event {
  margin-top: 0.3rem;
  padding-top: 0.3rem;
  border-top: 1px solid rgba(53, 54, 21, 0.1);
}

.map-popup__title {
  margin: 0;
  color: var(--color-forest);
  line-height: 1.15;
}

.map-popup__meta {
  margin: 0;
  color: var(--color-ink-soft);
  line-height: 1.15;
}

.map-popup__address {
  margin: 0;
  color: var(--color-ink-soft);
  line-height: 1.15;
}

.map-popup__when {
  font-family: var(--font-display);
  color: var(--color-bordeaux);
  font-weight: 600;
}

.map-popup a {
  color: var(--color-bordeaux);
  font-weight: 600;
}

[data-produits].card-grid {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

[data-produits] .empty-state {
  grid-column: 1 / -1;
}

/* Bannières pleine largeur (sous le header) */
.page-banner {
  width: 100%;
  max-height: min(52vh, 420px);
  overflow: hidden;
  border-bottom: 3px solid var(--color-forest-mid);
  position: relative;
}

.page-banner img {
  width: 100%;
  height: min(52vh, 420px);
  object-fit: cover;
  object-position: center;
  display: block;
}

.page-banner--tall {
  max-height: min(60vh, 520px);
}

.page-banner--tall img {
  height: min(60vh, 520px);
}

@media (max-width: 640px) {
  .page-banner {
    max-height: min(36vh, 220px);
  }

  .page-banner img {
    height: min(36vh, 220px);
    object-position: center 40%;
  }

  .page-banner--tall {
    max-height: min(36vh, 220px);
  }

  .page-banner--tall img {
    height: min(36vh, 220px);
    object-position: center 40%;
  }
}

.page-banner__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0;
  padding: 1rem 1.25rem 1.1rem;
  background: linear-gradient(transparent, rgba(33, 33, 26, 0.65));
  color: #fdfcfa;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* Galerie accueil */
.photo-mosaic {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

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

@media (min-width: 640px) {
  .photo-mosaic .photo-mosaic__item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-height: 420px;
  }

  .photo-mosaic .photo-mosaic__item:last-child:nth-child(odd) img {
    max-height: 380px;
    object-position: center 30%;
  }
}

.photo-mosaic__item {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid rgba(72, 80, 26, 0.35);
  box-shadow: var(--shadow-soft);
  background: rgba(255, 255, 255, 0.4);
}

.photo-mosaic__item img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
  display: block;
}

.photo-mosaic__item figcaption {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: var(--color-ink-soft);
  font-style: italic;
}

.produit-card__fig {
  margin: -0.5rem -0.5rem 1.25rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(72, 80, 26, 0.2);
}

.produit-card__fig img {
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: cover;
  display: block;
}

.produit-card__cap {
  padding: 0.5rem 0.75rem 0;
  font-size: 0.875rem;
  color: var(--color-ink-soft);
  font-style: italic;
}

.section__title-sub {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-ink-soft);
  margin-top: -0.5rem;
  margin-bottom: 1.5rem;
}

.empty-state {
  padding: 2rem;
  text-align: center;
  color: var(--color-ink-soft);
  font-style: italic;
  border: 1px dashed rgba(72, 80, 26, 0.35);
  border-radius: var(--radius-lg);
}

.data-error {
  padding: 1rem;
  background: rgba(113, 9, 10, 0.08);
  border-radius: var(--radius);
  color: var(--color-bordeaux);
  font-size: 0.9375rem;
  margin-bottom: 1rem;
}

.img-aside {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: var(--frame-border);
  box-shadow: var(--shadow-card);
}

.img-aside img {
  width: 100%;
  height: auto;
  display: block;
}

.text-block {
  max-width: 42rem;
}

.text-block + .text-block {
  margin-top: 1.5rem;
}

@media (max-width: 767px) {
  .site-nav {
    width: 100%;
    justify-content: center;
  }

  .site-header__inner {
    justify-content: center;
  }
}

/* —— Lieux editor (tools/lieux-editor.html) —— */

.lieux-editor {
  padding-bottom: 5rem;
}

.lieux-editor__header {
  background: var(--color-parchment);
  border-bottom: var(--frame-border);
  padding: 1.5rem 1.25rem;
}

.lieux-editor__header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.lieux-editor__header h1 {
  margin-bottom: 0.35rem;
}

.lieux-editor__subtitle {
  margin: 0;
  color: var(--color-ink-soft);
  font-size: 1rem;
}

.lieux-editor__main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2rem;
}

.lieux-editor__help {
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}

.lieux-editor__help ol {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
}

.lieux-editor__help li + li {
  margin-top: 0.35rem;
}

.lieux-editor__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.lieux-editor__file-label {
  cursor: pointer;
  margin: 0;
}

.lieux-editor__load-status {
  font-size: 0.9375rem;
  color: var(--color-ink-soft);
}

.lieux-editor__tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid rgba(72, 80, 26, 0.2);
}

.lieux-editor__tab {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.65rem 1rem;
  border: none;
  background: transparent;
  color: var(--color-ink-soft);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.lieux-editor__tab.is-active {
  color: var(--color-forest);
  border-bottom-color: var(--color-bordeaux);
}

.lieux-editor__tab-count {
  font-size: 0.8125rem;
  font-weight: 600;
  background: rgba(72, 80, 26, 0.12);
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
}

.lieux-editor__panel {
  display: none;
}

.lieux-editor__panel.is-active {
  display: block;
}

.lieux-editor__panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.lieux-editor__panel-head .section-lede {
  margin: 0;
  flex: 1 1 14rem;
}

.lieux-editor__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.lieux-editor__item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: #fdfcfa;
  border: 2px solid rgba(72, 80, 26, 0.2);
  border-radius: var(--radius-lg);
}

.lieux-editor__item-body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.lieux-editor__item-meta {
  font-size: 0.9375rem;
  color: var(--color-ink-soft);
}

.lieux-editor__item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.lieux-editor__btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.875rem;
}

.lieux-editor__btn-danger:hover {
  border-color: var(--color-bordeaux);
  color: var(--color-bordeaux);
}

.lieux-editor__empty {
  padding: 2rem;
  text-align: center;
  color: var(--color-ink-soft);
  font-style: italic;
  border: 1px dashed rgba(72, 80, 26, 0.35);
  border-radius: var(--radius-lg);
}

.lieux-editor__validation {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  background: #fdfcfa;
  border: var(--frame-border);
  border-radius: var(--radius-lg);
}

.lieux-editor__validation-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
}

.lieux-editor__validation-list li {
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.35rem;
  border-radius: var(--radius);
  font-size: 0.9375rem;
}

.lieux-editor__validation-ok {
  background: rgba(137, 151, 62, 0.15);
  color: var(--color-forest);
}

.lieux-editor__validation-err {
  background: rgba(113, 9, 10, 0.08);
  color: var(--color-bordeaux);
}

.lieux-editor__validation-warn {
  background: rgba(200, 140, 40, 0.12);
  color: #6b4a10;
}

.lieux-editor__footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  background: var(--color-parchment);
  border-top: var(--frame-border);
  box-shadow: 0 -4px 20px rgba(33, 33, 26, 0.08);
}

.lieux-editor__footer .btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.lieux-editor__dialog {
  border: var(--frame-border);
  border-radius: var(--radius-lg);
  padding: 0;
  max-width: 40rem;
  width: calc(100% - 2rem);
  box-shadow: var(--shadow-soft);
}

.lieux-editor__dialog::backdrop {
  background: rgba(33, 33, 26, 0.45);
}

.lieux-editor__dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 2px solid rgba(72, 80, 26, 0.15);
  background: var(--color-parchment);
}

.lieux-editor__dialog-header h2 {
  margin: 0;
  font-size: 1.35rem;
}

.lieux-editor__dialog-close {
  font-size: 1.75rem;
  line-height: 1;
  border: none;
  background: transparent;
  color: var(--color-ink-soft);
  cursor: pointer;
  padding: 0 0.25rem;
}

.lieux-editor__dialog-close:hover {
  color: var(--color-bordeaux);
}

.lieux-editor__dialog-body {
  padding: 1.25rem;
  max-height: min(70vh, 32rem);
  overflow-y: auto;
}

.lieux-editor__dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-top: 2px solid rgba(72, 80, 26, 0.15);
  background: var(--color-cream);
}

.lieux-editor__field {
  margin-bottom: 1rem;
}

.lieux-editor__field label {
  display: block;
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 0.35rem;
  color: var(--color-forest);
}

.lieux-editor__field input,
.lieux-editor__field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.55rem 0.75rem;
  border: 2px solid rgba(72, 80, 26, 0.25);
  border-radius: var(--radius);
  background: #fff;
  color: var(--color-ink);
}

.lieux-editor__field input:focus,
.lieux-editor__field textarea:focus {
  outline: none;
  border-color: var(--color-forest-mid);
  box-shadow: 0 0 0 3px rgba(137, 151, 62, 0.2);
}

.lieux-editor__field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.lieux-editor__field--ponctuel[hidden],
.lieux-editor__field--regulier[hidden] {
  display: none !important;
}

@media (max-width: 480px) {
  .lieux-editor__field-row {
    grid-template-columns: 1fr;
  }
}

.lieux-editor__fieldset {
  border: 2px solid rgba(72, 80, 26, 0.2);
  border-radius: var(--radius-lg);
  padding: 1rem;
  margin: 0 0 1rem;
}

.lieux-editor__fieldset legend {
  font-weight: 600;
  color: var(--color-forest);
  padding: 0 0.35rem;
}

.lieux-editor__import-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.lieux-editor__import-row input {
  flex: 1 1 12rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  padding: 0.55rem 0.75rem;
  border: 2px solid rgba(72, 80, 26, 0.25);
  border-radius: var(--radius);
}

.lieux-editor__import-status {
  margin: 0.5rem 0 0;
  font-size: 0.9375rem;
  min-height: 1.4em;
}

.lieux-editor__import-status.is-ok {
  color: var(--color-forest-mid);
}

.lieux-editor__import-status.is-warn {
  color: #8a5a00;
}

.lieux-editor__import-status.is-err {
  color: var(--color-bordeaux);
}

.lieux-editor__import-row input.is-invalid {
  border-color: var(--color-bordeaux);
  background: rgba(113, 9, 10, 0.04);
}

.lieux-editor__short-link-help {
  background: rgba(113, 9, 10, 0.08);
  border: 1px solid var(--color-bordeaux-light);
  border-radius: var(--radius);
  padding: 0.65rem 0.75rem;
  margin-top: 0.5rem;
  font-size: 0.92rem;
}

.lieux-editor__or-divider {
  text-align: center;
  color: var(--color-ink-soft);
  font-size: 0.9375rem;
  margin: 1rem 0;
}

.lieux-editor__map-block {
  margin-top: 0;
}

.lieux-editor__map-block h3 {
  font-size: 1.1rem;
  margin: 0 0 0.35rem;
}

.lieux-editor__hint {
  font-size: 0.9rem;
  color: var(--color-ink-soft);
  margin: 0.35rem 0;
}

#pick-map {
  height: 220px;
  width: 100%;
  margin-top: 0.5rem;
  border: 2px solid rgba(72, 80, 26, 0.2);
  border-radius: var(--radius);
}

.lieux-editor__advanced {
  margin-top: 0.5rem;
  font-size: 0.9375rem;
}

.lieux-editor__advanced summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--color-forest);
  padding: 0.35rem 0;
}

.lieux-editor__preview {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 2px solid rgba(72, 80, 26, 0.15);
}

.lieux-editor__preview h3 {
  font-size: 1.15rem;
  margin: 0 0 0.35rem;
}

.lieux-editor__preview-card {
  margin-top: 0.75rem;
}

.lieux-editor__preview-card .card {
  margin: 0;
}

.lieux-editor__preview-empty {
  margin: 0;
  padding: 1.5rem;
  text-align: center;
  color: var(--color-ink-soft);
  font-style: italic;
  border: 1px dashed rgba(72, 80, 26, 0.35);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.5);
}

.lieu-dates .lieux-editor__preview-placeholder {
  opacity: 0.55;
  font-style: italic;
  font-weight: 500;
}

.lieux-editor__toast {
  position: fixed;
  bottom: 5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  padding: 0.65rem 1.25rem;
  background: var(--color-forest);
  color: #fdfcfa;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  box-shadow: var(--shadow-card);
  max-width: calc(100% - 2rem);
  text-align: center;
}
