/* 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;
}

/* Même style que l'ancienne ligne « Restauration mobile » (petites capitales espacées) */
.site-logo__slogan {
  margin-top: 0.15rem;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--color-forest-mid);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.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;
}

/* Sélecteur de langue FR / DE */
.site-nav a.site-nav__langue {
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--color-forest-mid);
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.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;
}

/* Mur à colombages (page Événements) — toujours la vraie photo :
   entière dès 600 px, découpée case par case en dessous */
.mur-conteneur {
  container-type: inline-size;
}

/* Petit écran : chaque prestation sur sa propre case découpée dans la photo */
.page-events .mur.mur--photo {
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  padding: 6px;
  background: #1f1f1d;
  box-shadow: var(--shadow-card);
}

.mur--photo .mur-case.prestation-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  aspect-ratio: var(--ratio-m);
  padding: var(--marges-m);
  border: none;
  border-radius: 0;
  background: #2b2b29 var(--img-m) center / cover no-repeat;
  box-shadow: none;
  text-align: center;
}

.mur--photo .mur-case--large.prestation-card {
  grid-column: 1 / -1;
}

/* Voile clair dans la forme exacte du crépi : la texture reste visible, le texte lisible */
.mur--photo .mur-case::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(250, 245, 234, 0.74);
  clip-path: var(--forme-m);
}

/* Cases en biais : la forme couvre toute la case, le texte contourne la poutre
   (pas de flex ici, sinon pas d'habillage) */
.mur--photo .mur-case--biais.prestation-card {
  display: block;
  padding: 0;
}

.mur--photo .mur-case--biais .mur-case__texte {
  padding: var(--marges-m);
}

.mur-case__biais {
  display: none;
}

.mur--photo .mur-case__biais {
  display: block;
  width: 100%;
  height: 100%;
  shape-outside: var(--biais-m);
  shape-margin: 6px;
}

.mur--photo .mur-case__biais--gauche {
  float: left;
}

.mur--photo .mur-case__biais--droite {
  float: right;
}

.page-events .mur--photo .prestation-icon--svg {
  margin-bottom: 0.35rem;
  line-height: 0;
  color: var(--color-bordeaux);
  opacity: 1;
}

/* En ligne (pas en bloc) pour que le pictogramme contourne lui aussi la poutre */
.page-events .mur--photo .prestation-icon--svg svg {
  display: inline-block;
  width: 2.4rem;
  height: 2.4rem;
}

.mur--photo .mur-case h3 {
  margin: 0;
  font-size: 1.25rem;
}

.mur--photo .mur-case__detail {
  margin: 0.25rem 0 0;
  font-size: 0.8rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

/* Case cliquable : lien étendu à toute la case */
.mur-case__lien {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.mur-case__lien:focus-visible {
  outline: 3px solid var(--color-bordeaux);
  outline-offset: -6px;
}

.mur--photo .mur-case--lien::before {
  transition: background 0.2s ease;
}

.mur--photo .mur-case--lien:hover::before {
  background: rgba(250, 245, 234, 0.9);
}

.mur-case--lien:hover h3 {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

/* Plus de 6 prestations : la photo n'a pas assez de cases, simple liste */
.page-events .mur:not(.mur--photo) .prestation-card {
  border-radius: 0;
  background: var(--color-cream-deep);
}

.page-events .mur .empty-state {
  grid-column: 1 / -1;
  background: var(--color-cream-deep);
}

/* Dès 600 px : la façade entière, une prestation par case (triangles et trapèzes compris) */
@container (min-width: 600px) {
  .page-events .mur.mur--photo {
    position: relative;
    display: block;
    aspect-ratio: 3 / 2;
    padding: 0;
    background: #2b2b29 url("../images/colombage/mur-colombage.jpg") center / 100% 100% no-repeat;
  }

  .mur--photo .mur-case.prestation-card {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: var(--l);
    height: var(--h);
    aspect-ratio: auto;
    padding: 1.2cqw;
    background: none;
  }

  .mur--photo .mur-case::before {
    clip-path: var(--forme);
  }

  .mur--photo .mur-case--biais.prestation-card {
    padding: 0;
  }

  .mur--photo .mur-case--biais .mur-case__texte {
    padding: var(--haut, 1.2cqw) 1.2cqw 0;
  }

  .mur--photo .mur-case__biais {
    shape-outside: var(--biais);
    shape-margin: 0.8cqw;
  }

  .page-events .mur--photo .prestation-icon--svg {
    margin-bottom: 0.6cqw;
  }

  .page-events .mur--photo .prestation-icon--svg svg {
    width: 4.2cqw;
    height: 4.2cqw;
  }

  .mur--photo .mur-case h3 {
    font-size: 2.2cqw;
  }

  .mur--photo .mur-case__detail {
    margin-top: 0.4cqw;
    font-size: 1.25cqw;
  }
}

/* Façade moyenne (600–819 px) : pictogramme et titre plus grands */
@container (min-width: 600px) and (max-width: 819px) {
  .mur--photo .mur-case__detail {
    display: none;
  }

  .mur--photo .mur-case h3 {
    font-size: 2.7cqw;
  }

  .page-events .mur--photo .prestation-icon--svg svg {
    width: 5cqw;
    height: 5cqw;
  }
}

/* Bannière devis : sobre, bordeaux du logo et crème du site, liens en capitales */
.devis {
  margin: 4rem 0;
  padding: clamp(3.5rem, 8vw, 6rem) 1.5rem;
  background: var(--color-bordeaux);
  color: var(--color-cream);
  text-align: center;
}

.devis__surtitre {
  margin: 0 0 1.25rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--color-parchment);
  opacity: 0.8;
}

.devis__titre {
  max-width: 34rem;
  margin: 0 auto;
  color: var(--color-cream);
  font-size: clamp(1.9rem, 4.2vw, 2.9rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

/* Filet fin entre le titre et le texte */
.devis__titre::after {
  content: "";
  display: block;
  width: 3rem;
  height: 1px;
  margin: 1.75rem auto;
  background: var(--color-parchment);
  opacity: 0.7;
}

.devis__texte {
  margin: 0 0 2.25rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--color-parchment);
}

.devis__liens {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 2.75rem;
}

.devis__liens a {
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(249, 237, 216, 0.45);
  color: var(--color-cream);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.devis__liens a:hover,
.devis__liens a:focus-visible {
  border-bottom-color: var(--color-cream);
  color: #fff;
}

@media (max-width: 480px) {
  .devis__liens {
    gap: 1rem 1.75rem;
  }
}

.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-region {
  margin-top: -1rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-forest-mid);
}

.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;
  }
}

/* Produits : l'encart tarte flambée sur toute la largeur, photo à gauche sur grand écran */
.produits-carte [data-produits].card-grid {
  grid-template-columns: 1fr;
}

@media (min-width: 860px) {
  .produits-carte .produit-card:has(.produit-card__fig) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    grid-auto-rows: min-content;
    column-gap: 2.5rem;
  }

  .produits-carte .produit-card__fig {
    grid-column: 1;
    grid-row: 1 / span 20;
    align-self: start;
    margin: 0;
  }

  .produits-carte .produit-card__fig img {
    max-height: none;
    aspect-ratio: 4 / 3;
  }

  .produits-carte .produit-card > :not(.produit-card__fig) {
    grid-column: 2;
  }
}

.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%;
  }
}

/* Où nous trouver : le fourgon est à droite de la photo, on le garde dans le cadre */
.page-banner--nuit img {
  object-position: 75% 62%;
}

/* Produits : bannière cadrée sur la tarte en cours de préparation (bas de la photo) */
.page-banner--produits img {
  object-position: 40% 88%;
}

.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 événements — carrousel */
.events-gallery {
  margin-top: 1rem;
  padding-top: 2rem;
  border-top: 2px solid rgba(72, 80, 26, 0.2);
}

.events-gallery__title {
  text-align: center;
  margin: 0 0 1.5rem;
}

.events-carousel {
  position: relative;
  width: 100%;
}

.events-carousel__shell {
  position: relative;
}

.events-carousel .empty-state {
  margin: 0;
}

.events-carousel__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 50%;
  transform: translateY(-50%);
  font-size: 1.75rem;
  line-height: 1;
  color: var(--color-forest);
  background: rgba(249, 237, 216, 0.95);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.events-carousel__nav:hover,
.events-carousel__nav:focus-visible {
  color: #fdfcfa;
  background: var(--color-bordeaux);
  box-shadow: var(--shadow-card);
  outline: none;
}

.events-carousel__nav:disabled,
.events-carousel__nav[hidden] {
  display: none;
}

.events-carousel__nav--prev {
  left: 0.35rem;
}

.events-carousel__nav--next {
  right: 0.35rem;
}

.events-carousel__viewport {
  overflow: hidden;
  width: 100%;
  touch-action: pan-y pinch-zoom;
}

.events-carousel__track {
  display: flex;
  gap: var(--carousel-gap, 0.5rem);
  padding: 0;
  transition: transform 0.55s ease;
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .events-carousel__track {
    transition: none;
  }
}

.events-carousel__item {
  flex: 0 0 auto;
  height: var(--carousel-height, 240px);
  margin: 0;
  padding: 0;
  border: 2px solid rgba(72, 80, 26, 0.3);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: zoom-in;
  background: rgba(255, 255, 255, 0.35);
  box-shadow: var(--shadow-soft);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.events-carousel__item:hover,
.events-carousel__item:focus-visible {
  border-color: var(--color-bordeaux-light);
  box-shadow: var(--shadow-card);
  outline: none;
}

.events-carousel__item img {
  height: 100%;
  width: auto;
  max-width: none;
  object-fit: contain;
  display: block;
  pointer-events: none;
}

/* Visionneuse plein écran */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 1rem 1.5rem;
  background: rgba(33, 33, 26, 0.94);
}

.lightbox[hidden] {
  display: none;
}

.lightbox__figure {
  margin: 0;
  max-width: min(96vw, 72rem);
  max-height: calc(100vh - 5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox__img {
  max-width: 100%;
  max-height: calc(100vh - 7rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.45);
}

.lightbox__caption {
  margin-top: 0.75rem;
  color: #f6e9c3;
  font-size: 0.9375rem;
  text-align: center;
  font-style: italic;
}

.lightbox__caption:empty {
  display: none;
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  color: #fdfcfa;
  background: rgba(53, 54, 21, 0.75);
  transition: background 0.2s ease;
}

.lightbox__close:hover,
.lightbox__close:focus-visible,
.lightbox__nav:hover,
.lightbox__nav:focus-visible {
  background: var(--color-bordeaux);
  outline: none;
}

.lightbox__close {
  top: 1rem;
  right: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  font-size: 1.75rem;
  line-height: 1;
}

.lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  font-size: 2rem;
  line-height: 1;
}

.lightbox__nav--prev {
  left: max(0.5rem, env(safe-area-inset-left));
}

.lightbox__nav--next {
  right: max(0.5rem, env(safe-area-inset-right));
}

@media (max-width: 640px) {
  .events-gallery {
    padding-top: 1.5rem;
  }

  .events-carousel__nav {
    width: 2.15rem;
    height: 2.15rem;
    font-size: 1.5rem;
  }

  .events-carousel__nav--prev {
    left: 0.15rem;
  }

  .events-carousel__nav--next {
    right: 0.15rem;
  }

  .lightbox__nav {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.65rem;
  }
}

/* Accueil : section « Le projet » */
.projet__photo {
  margin: 0 0 1.75rem;
  overflow: hidden;
  border: var(--frame-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

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

.projet__texte {
  display: grid;
  gap: 0 2.5rem;
}

@media (min-width: 900px) {
  .projet__texte {
    grid-template-columns: repeat(3, 1fr);
  }
}

.projet__carte {
  margin: 1.25rem 0 0;
  text-align: center;
}

/* Accueil : logo Alsace entier, avec « Tradition alsacienne » dessous, après la phrase */
.marque-alsace {
  margin-bottom: 0.75rem;
}

.marque-alsace__bloc {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
}

.marque-alsace__logo {
  display: block;
  width: 9rem;
  height: auto;
}

.marque-alsace__legende {
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-forest-mid);
}

/* Notre univers : mur à colombages (vraie photo, deux étages, le second en miroir).
   Chaque photo est rognée dans la forme de sa case ; les cases restantes gardent leur torchis. */
.mur-univers {
  container-type: inline-size;
  box-shadow: var(--shadow-card);
}

.mur-univers__etage {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.mur-univers__etage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #2b2b29 url("../images/colombage/mur-colombage.jpg") center / 100% 100% no-repeat;
}

.mur-univers__etage--miroir::before {
  transform: scaleX(-1);
}

/* Étages suivants : sans la rangée d'aérations du haut (58 px sur 800) */
.mur-univers__etage--suite {
  aspect-ratio: 1200 / 742;
}

.mur-univers__etage--suite::before {
  background-size: 100% calc(800 / 742 * 100%);
  background-position: center bottom;
}

.mur-univers__case {
  position: absolute;
  margin: 0;
}

.mur-univers__case img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

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

/* Tuiles de même proportion ; la 1re et la dernière photo en large (dès 2 colonnes) */
@media (min-width: 1000px) {
  .photo-mosaic {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Colonne : la photo remplit la tuile */
.photo-mosaic__item {
  display: flex;
  flex-direction: column;
  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 {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
  display: block;
}

.photo-mosaic__item > img {
  aspect-ratio: 4 / 5;
}

/* Téléphone : la dernière photo (le four et Édouard) entière */
.photo-mosaic .photo-mosaic__item:last-child > img {
  aspect-ratio: auto;
}

@media (min-width: 640px) {
  .photo-mosaic .photo-mosaic__item:first-child,
  .photo-mosaic .photo-mosaic__item:last-child {
    grid-column: span 2;
  }

  .photo-mosaic .photo-mosaic__item:first-child > img {
    aspect-ratio: auto;
  }
}

/* Fourgon en festival : on garde le nez du Citroën HY (à gauche de la photo) */
/* Fourgon en festival : photo entière sur tous les écrans, pour voir tout l'avant du camion */
.photo-mosaic .photo-mosaic__item > img.photo-mosaic__img--nez {
  aspect-ratio: auto;
  height: auto;
  min-height: 0;
  object-fit: contain;
}

/* Notre univers : même colombage que le mur de la page Événements —
   poutres épaisses (bois de la photo du mur), liseré de chaux blanc autour de chaque case.
   Les proportions suivent la largeur de l'écran pour que le mur garde le même aspect sur téléphone. */
.photo-mosaic {
  --beam: clamp(14px, 4.4vw, 48px);
  --chaux: clamp(4px, 0.6vw, 7px);
  gap: var(--beam);
  padding: var(--beam);
  background:
    url("../images/colombage/sabliere.jpg") center top / 100% var(--beam) no-repeat,
    url("../images/colombage/sabliere.jpg") center bottom / 100% var(--beam) no-repeat,
    #2b2b29 url("../images/colombage/poteau.jpg") 0 0 / auto 280px repeat;
  box-shadow: var(--shadow-card);
}

.photo-mosaic .photo-mosaic__item {
  padding: var(--chaux);
  border: none;
  border-radius: 0;
  background: #f4f1ea;
  box-shadow: inset 0 0 0 1px rgba(33, 33, 26, 0.12);
}

/* Fourgon dans le jardin : on cadre sur la cabine plutôt que sur le centre */
.photo-mosaic__item > img.photo-mosaic__img--cabine {
  object-position: 18% center;
}

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

/* Produits : galerie des tartes flambées, vignettes de même taille (2 rangées de 3 sur grand écran) */
.tartes-galerie {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

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

@media (min-width: 1000px) {
  .tartes-galerie {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

.tartes-galerie__item img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Produits : formulaire « Faites-en chez vous » */
.chez-vous__intro {
  max-width: 42rem;
}

/* Produits : encart tarte flambée et encart « Faites-en chez vous » côte à côte */
.produits-duo {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}

/* Côte à côte dès la tablette ; le formulaire adapte ses colonnes à la largeur de son encart */
@media (min-width: 700px) {
  .produits-duo {
    grid-template-columns: 1fr 1fr;
  }
}

.chez-vous {
  container-type: inline-size;
}

.chez-vous--page.card {
  max-width: 50rem;
  margin: 0 auto;
}

.chez-vous.card {
  padding: 2rem clamp(1rem, 4vw, 2rem);
}

.chez-vous h2 {
  margin-bottom: 0.75rem;
}

.chez-vous__grille {
  display: grid;
  gap: 1rem 1.25rem;
}

@container (min-width: 440px) {
  .chez-vous__grille {
    grid-template-columns: 1fr 1fr;
  }

  .chez-vous__champ--large {
    grid-column: 1 / -1;
  }
}

.chez-vous__champ {
  margin: 0;
  min-width: 0;
}

fieldset.chez-vous__champ {
  border: 0;
  padding: 0;
}

.chez-vous__champ > label,
.chez-vous__champ legend {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-forest);
}

.chez-vous__champ input:not([type="radio"]):not([type="checkbox"]),
.chez-vous__champ textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 2px solid rgba(72, 80, 26, 0.25);
  border-radius: var(--radius);
  background: #fff;
  color: var(--color-ink);
  font: inherit;
  font-size: 1rem;
}

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

.chez-vous__champ input[aria-invalid="true"] {
  border-color: var(--color-bordeaux);
}

.chez-vous__choix {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.chez-vous__facultatif {
  font-weight: 400;
  color: var(--color-ink-soft);
}

.chez-vous__piege {
  position: absolute;
  left: -9999px;
}

.chez-vous__consentement {
  margin: 1.5rem 0 0.5rem;
  font-size: 0.95rem;
}

.chez-vous__consentement input {
  margin-right: 0.4rem;
}

.chez-vous__mention {
  font-size: 0.85rem;
  color: var(--color-ink-soft);
}

.chez-vous__actions {
  margin: 1.25rem 0 0;
}

.chez-vous__statut:empty {
  display: none;
}

.chez-vous__statut {
  margin: 1rem 0 0;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  background: rgba(137, 151, 62, 0.15);
  color: var(--color-forest);
}

.chez-vous__statut.is-erreur {
  background: rgba(113, 9, 10, 0.08);
  color: var(--color-bordeaux);
}

/* Page Réseaux */
/* « Suivez-nous » sur la photo du fourgon, voile sombre pour la lisibilité */
.hero--reseaux {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(4rem, 12vw, 7.5rem) 1.5rem;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(25, 22, 16, 0.55) 0%, rgba(25, 22, 16, 0.45) 55%, rgba(25, 22, 16, 0.65) 100%),
    #3a3a30 url("../images/fourgon-reseaux.jpg") 45% 55% / cover no-repeat;
  box-shadow: var(--shadow-card);
}

.hero--reseaux h1 {
  color: var(--color-cream);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.hero--reseaux .lede {
  color: var(--color-parchment);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.hero--reseaux .btn--outline {
  border-color: var(--color-cream);
  background: rgba(25, 22, 16, 0.25);
  color: var(--color-cream);
}

.hero--reseaux .btn--outline:hover {
  background: var(--color-cream);
  color: var(--color-bordeaux);
}

.reseaux__note {
  max-width: 42rem;
  margin: 0 auto 1.5rem;
  font-size: 0.9rem;
  text-align: center;
  color: var(--color-ink-soft);
}

.reseaux__grille {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
}

.reseaux__grille .empty-state {
  grid-column: 1 / -1;
}

.reseaux__post iframe,
.reseaux__charger {
  display: block;
  width: 100%;
  height: 34rem;
  border: var(--frame-border);
  border-radius: var(--radius-lg);
  background: #fff;
}

.reseaux__charger {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 20rem;
  background: var(--color-cream-deep);
  color: var(--color-bordeaux);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

.reseaux__charger:hover,
.reseaux__charger:focus-visible {
  background: #fff;
}

.reseaux__charger-titre {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--color-forest);
}

/* Page politique de confidentialité */
.legal {
  max-width: 46rem;
}

.legal h2 {
  margin-top: 2rem;
  font-size: 1.4rem;
}

.legal__maj {
  margin-top: 2.5rem;
  font-size: 0.875rem;
  color: var(--color-ink-soft);
}

.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);
}

/* Accueil : photo de « L'Alsace sur la route » et marque Alsace dessous, pour équilibrer */
.split-media .img-aside {
  margin: 0;
}

.split-media .tradition-mark {
  margin-top: 1.5rem;
}

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

.tradition-mark {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  margin: 1.75rem 0 0;
}

.tradition-mark img {
  width: min(100%, 9rem);
  height: auto;
  display: block;
}

.tradition-mark figcaption,
.tradition-mark > span {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-forest-mid);
}

.tradition-mark--center {
  align-items: center;
  margin-left: auto;
  margin-right: auto;
}

.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;
}
