/* site.css — Les Tranquilles */
:root {
  --bg: #f8f1e8;
  --paper: #fffaf2;
  --ink: #202018;
  --muted: #6a6256;
  --line: #dfd1bd;
  --brand: #00a2ff;
  --brand-dark: #0083d4;
  --brand-2: #d8723c;
  --brand-3: #f1c65b;
  --soft: #e9ddce;
  --shadow: 0 18px 45px rgba(49,39,24,.12);
  --radius: 22px;
  --max-w: 1180px;
  --header-h: 74px;

  /* Card presentation — overridden via JS from /api/site/config */
  --card-radius: 14px;
  --card-shadow: 0 4px 20px rgba(0,0,0,0.15);
  --card-grid-cols: repeat(4, 1fr);
  /* % de la hauteur visible du navigateur (vh), pas des pixels — lu via JS et appliqué en vh */
  --agenda-banner-height: 35;
  --agenda-banner-height-mobile: 30;

  /* Site appearance — overridden via JS from /api/site/config */
  --site-topbar-bg: var(--brand);
  --site-topbar-text: #ffffff;
  --site-header-bg: rgba(248, 241, 232, 0.94);
  --site-header-text: #202018;
  --site-header-font-family: inherit;
  --site-header-font-size: inherit;
  --site-header-font-weight: inherit;
  --site-header-font-style: normal;
  --site-body-bg: #f8f1e8;
  --site-body-text: #202018;
  --site-body-font-family: 'Albert Sans', system-ui, sans-serif;
  --site-body-font-size: 1rem;
  --site-body-font-weight: 400;
  --site-body-font-style: normal;
  --site-footer-bg: #18251e;
  --site-footer-text: rgba(255,255,255,0.72);
  --site-footer-font-family: inherit;
  --site-footer-font-size: inherit;
  --site-footer-font-weight: inherit;
  --site-footer-font-style: normal;
  --site-logo-size: 42px;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  /* Empêche le navigateur de re-proportionner automatiquement le texte
     selon la largeur de la fenêtre ("font boosting" mobile Safari/Chrome) —
     sans ça, les tailles en rem paraissent changer avec la fenêtre. */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--site-body-bg);
  color: var(--site-body-text);
  font-family: var(--site-body-font-family);
  font-size: var(--site-body-font-size);
  font-weight: var(--site-body-font-weight);
  font-style: var(--site-body-font-style);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 10px; z-index: 999; border-radius: 8px; }

.container {
  width: min(var(--max-w), calc(100% - 40px));
  margin-inline: auto;
}


/* ── Topbar ───────────────────────────────────────── */

.topbar {
  background: var(--site-topbar-bg);
  color: var(--site-topbar-text);
  font-size: 0.87rem;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 8px 0;
  flex-wrap: wrap;
}


/* ── Site header + nav ────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--site-header-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  color: var(--site-header-text);
  font-family: var(--site-header-font-family);
  font-size: var(--site-header-font-size);
  font-weight: var(--site-header-font-weight);
  font-style: var(--site-header-font-style);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
}
.brand:hover { text-decoration: none; color: var(--ink); }

.logo {
  width: var(--site-logo-size);
  height: var(--site-logo-size);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 0.85rem;
  flex-shrink: 0;
  overflow: hidden;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.site-nav a:hover { background: var(--soft); text-decoration: none; }
.site-nav a[aria-current="page"] { background: var(--soft); font-weight: 700; }

.nav-cta {
  background: var(--brand) !important;
  color: #fff !important;
  margin-left: 8px;
}
.nav-cta:hover { background: var(--brand-dark) !important; }

#nav-toggle {
  display: none;
  border: none;
  background: var(--brand);
  color: #fff;
  border-radius: 14px;
  padding: 10px 16px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}


/* ── Buttons ──────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 11px 22px;
  font-weight: 800;
  font-size: 0.92rem;
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  font-family: inherit;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.10);
}
.btn:hover { transform: translateY(-2px); text-decoration: none; box-shadow: 0 8px 20px rgba(0,0,0,0.14); }

.btn-primary {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.btn-primary:hover { color: #fff; background: var(--brand-dark); border-color: var(--brand-dark); }

.btn-secondary {
  background: var(--paper);
  color: var(--ink);
}
.btn-secondary:hover { color: var(--ink); }

.btn-orange {
  background: var(--brand-2);
  color: #fff;
  border-color: var(--brand-2);
}
.btn-orange:hover { color: #fff; }


/* ── Hero (homepage) ──────────────────────────────── */

.hero { padding: 72px 0 56px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 44px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  background: rgba(0,162,255,0.1);
  color: var(--brand);
  border-radius: 999px;
  padding: 6px 14px;
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 18px;
}

.hero h1,
.page-title {
  font-size: clamp(2.2rem, 5.5vw, 4.6rem);
  line-height: 0.96;
  margin: 0 0 20px;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.65;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.visual-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 32px;
  box-shadow: var(--shadow);
  padding: 18px;
  overflow: hidden;
}

.visual-card .photo {
  min-height: 300px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 20% 20%, var(--brand-3), transparent 32%),
    radial-gradient(circle at 80% 30%, #91c7a6, transparent 32%),
    linear-gradient(135deg, #fff4d8, #dfc7aa);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 28px;
}

.visual-card .photo strong {
  font-size: 1.4rem;
  line-height: 1.3;
  display: block;
  margin-bottom: 10px;
}


/* ── Sections ─────────────────────────────────────── */

.section { padding: 56px 0; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.section-head > div { min-width: 0; }

.section h2 {
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.05;
  margin: 0 0 6px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.muted { color: var(--muted); }
.muted p { color: var(--muted); }


/* ── Grid ────────────────────────────────────────── */

.grid { display: grid; gap: 18px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }


/* ── Cards ───────────────────────────────────────── */

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 6px 20px rgba(49,39,24,.06);
}

.card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 6px 0 10px;
  letter-spacing: -0.015em;
}

.card p {
  color: var(--muted);
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
}

.card-date {
  font-weight: 900;
  color: var(--brand-2);
  margin: 0 0 4px;
  font-size: 0.88rem;
}

.card.featured {
  background: linear-gradient(135deg, #fffaf2, #f6dfc7);
}

.cards-link {
  display: block;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
  color: var(--ink);
}
.cards-link:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--ink);
}

.tag {
  display: inline-flex;
  background: rgba(0,162,255,0.1);
  color: var(--brand);
  border-radius: 999px;
  padding: 5px 11px;
  font-weight: 800;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.events-loading,
.no-events {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 24px;
  color: var(--muted);
  font-size: 1rem;
}


/* ── Agenda — grille de cartes ────────────────────── */

.month-group { margin-bottom: 40px; }

.month-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.month-nav-group { display: flex; gap: 6px; }

.month-nav-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: color 0.15s;
}

.month-nav-btn:hover { color: var(--brand); }

.event-list {
  display: grid;
  grid-template-columns: var(--card-grid-cols, repeat(auto-fill, minmax(200px, 1fr)));
  gap: 14px;
}

/* Rupture avant les événements passés du mois affiché (voir renderEvents) */
.event-list-break {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0 2px;
  font-size: 0.73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.event-list-break::before,
.event-list-break::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* Vignette "mois suivant" en fin de grille (voir renderNextMonthTile) */
.event-tile-next-month {
  position: relative;
  border-radius: var(--card-radius, 14px);
  box-shadow: var(--card-shadow, 0 4px 20px rgba(0,0,0,0.15));
  aspect-ratio: 1 / 1;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.event-tile-next-month:hover {
  transform: translateY(-4px) scale(1.015);
  box-shadow: 0 14px 40px rgba(0,0,0,0.28);
}
/* Titre et flèche positionnés en % (left/top réglés en JS) — réglables et
   glissables/déposables dans le widget "Agenda". */
.event-tile-next-month-label {
  position: absolute;
  transform: translate(-50%, -50%) rotate(-90deg);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.event-tile-next-month-arrow {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 16px solid #fff;
}

/* ── Carte événement (image + overlay) ────────────── */

.event-card {
  position: relative;
  border-radius: var(--card-radius, 14px);
  box-shadow: var(--card-shadow, 0 4px 20px rgba(0,0,0,0.15));
  overflow: hidden;
  aspect-ratio: 1 / 1;
  cursor: pointer;
  display: block;
  transition: transform 0.2s, box-shadow 0.2s;
}
.event-card--past {
  opacity: 0.45;
}

.event-card:hover {
  transform: translateY(-4px) scale(1.015);
  box-shadow: 0 14px 40px rgba(0,0,0,0.28);
}

.event-card:hover .event-card-bg { transform: scale(1.05); }

.event-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.35s ease;
}

.event-card-overlay { position: absolute; inset: 0; }

.event-card-content {
  position: absolute;
  inset: 0;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.event-card[data-title-pos="center"] .event-card-content {
  justify-content: center;
  align-items: center;
  text-align: center;
}
.event-card[data-title-pos="center"] .event-card-bottom {
  margin-top: 14px;
  align-items: center;
}
.event-card[data-title-pos="bottom"] .event-card-content { justify-content: flex-end; }
.event-card[data-title-pos="bottom"] .event-card-title { margin-bottom: 10px; }

.event-card-title {
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.2;
  color: white;
  text-shadow: 0 1px 8px rgba(0,0,0,0.35);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event-card-bottom {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.event-card-date {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: white;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
  line-height: 1.5;
}

.event-card-link-btn {
  padding: 6px 18px;
  background: var(--brand-2, #d8723c);
  color: white;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  transition: transform 0.15s, filter 0.15s;
}
.event-card-link-btn:hover {
  color: white;
  text-decoration: none;
  transform: scale(1.06);
  filter: brightness(1.1);
}

/* ── Status ribbon (diagonal corner stamp) ─────────── */
.event-status-ribbon {
  position: absolute;
  top: 18px;
  right: -32px;
  width: 120px;
  padding: 5px 0;
  text-align: center;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #fff;
  transform: rotate(45deg);
  transform-origin: center;
  pointer-events: none;
  z-index: 10;
}
.event-status-ribbon[data-status="annule"]  { background: #dc2626; }
.event-status-ribbon[data-status="decale"]  { background: #d97706; }
.event-status-ribbon[data-status="flash"]   { background: #ea580c; }

/* Status badge on event detail page */
.ev-status-badge {
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #fff;
  margin-bottom: 10px;
}
.ev-status-badge[data-status="annule"] { background: #dc2626; }
.ev-status-badge[data-status="decale"] { background: #d97706; }
.ev-status-badge[data-status="flash"]  { background: #ea580c; }

.event-cat {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}


/* ── Agenda filters ───────────────────────────────── */

.filters {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 18px;
  border-radius: var(--radius);
  margin-bottom: 28px;
}

.filters--agenda {
  grid-template-columns: 2fr 1fr 1fr;
  padding: 12px 14px;
  margin-bottom: 14px;
  gap: 10px;
}

.filters label {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filters--agenda label {
  font-size: 0.78rem;
  gap: 4px;
}

.filters input,
.filters select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.15s;
}

.filters--agenda input,
.filters--agenda select {
  padding: 7px 10px;
  font-size: 0.85rem;
  border-radius: 8px;
}

.filters input:focus,
.filters select:focus {
  border-color: var(--brand);
}

/* ── Bloc "Recherche avancée" repliable (agenda) ────── */

.agenda-filters-toggle {
  margin-bottom: 14px;
}

.agenda-filters-toggle > summary {
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--ink);
  padding: 9px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  user-select: none;
  transition: border-color 0.15s;
}

.agenda-filters-toggle > summary::-webkit-details-marker { display: none; }

.agenda-filters-toggle > summary::after {
  content: '';
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s;
  margin-top: -3px;
}

.agenda-filters-toggle[open] > summary::after {
  transform: rotate(-135deg);
  margin-top: 3px;
}

.agenda-filters-toggle > summary:hover {
  border-color: var(--brand);
}

.agenda-filters-toggle .filters--agenda {
  margin-top: 10px;
}

/* ── Agenda year navigator ────────────────────────── */

.agenda-year-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 10px;
}

.agenda-year-nav__btn {
  background: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 1rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s;
}

.agenda-year-nav__btn:hover:not(:disabled) {
  background: var(--paper);
  border-color: var(--brand);
  color: var(--brand);
}

.agenda-year-nav__btn:disabled {
  opacity: 0.25;
  cursor: default;
}

.agenda-year-nav__year {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  min-width: 60px;
  text-align: center;
}

/* ── Agenda month bar ─────────────────────────────── */

.agenda-month-bar {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 4px;
  margin-bottom: 24px;
}

.agenda-month-bar__btn {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 2px;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  color: var(--ink);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.agenda-month-bar__btn:hover:not(:disabled) {
  border-color: var(--brand);
  color: var(--brand);
}

.agenda-month-bar__btn--active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.agenda-month-bar__btn:disabled {
  opacity: 0.35;
  cursor: default;
  color: var(--muted);
}


/* ── Page header (subpages) ───────────────────────── */

.page-header { padding: 52px 0 32px; }
.page-header--agenda { padding: 36px 0 14px; }

.breadcrumb {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.86rem;
  margin-bottom: 14px;
}

.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }

.page-title {
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 0.96;
  margin: 0 0 16px;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.page-title--agenda {
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  margin-bottom: 8px;
}

.lead--agenda {
  font-size: 0.92rem;
  margin-bottom: 0;
}

.section--agenda { padding-top: 16px; }


/* ── Layout (content + aside) ─────────────────────── */

.layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
}

.aside {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  align-self: start;
}


/* ── Hero mini ────────────────────────────────────── */

.hero-mini {
  padding: 36px;
  border-radius: 28px;
  background: linear-gradient(135deg, #216149, #d8723c);
  color: #fff;
}

.hero-mini .eyebrow { background: rgba(255,255,255,0.18); color: #fff; }
.hero-mini h2 { font-size: 1.7rem; font-weight: 800; margin: 12px 0 14px; letter-spacing: -0.02em; color: #fff; }
.hero-mini .lead { color: rgba(255,255,255,0.9); max-width: none; }


/* ── Info blocks (contact) ────────────────────────── */

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 36px;
}

.info-block h4 {
  font-size: 0.73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 0 0 10px;
}

.info-block p {
  margin: 0;
  color: var(--ink);
  line-height: 1.75;
  font-size: 0.94rem;
}

.info-block a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.info-block a:hover { color: var(--brand); }


/* ── Spaces grid (lieu) ───────────────────────────── */

.spaces-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
}

.space-card {
  background: var(--paper);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 24px;
  transition: box-shadow 0.15s, transform 0.15s;
}
.space-card:hover {
  box-shadow: 0 8px 28px rgba(49,39,24,.09);
  transform: translateY(-2px);
}
.space-icon { font-size: 2rem; margin-bottom: 14px; display: block; }
.space-card h3 { font-size: 1rem; font-weight: 700; margin: 0 0 8px; }
.space-card p { font-size: 0.875rem; color: var(--muted); margin: 0; line-height: 1.6; }


/* ── Association / projet ─────────────────────────── */

.section-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.section-two-col p { color: var(--muted); margin: 0 0 14px; }

.involve-title {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
  margin: 0 0 12px;
}

.involve-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.involve-list li {
  padding: 10px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 0.9rem;
  color: var(--ink);
}

.link-cta { font-weight: 700; color: var(--brand); text-decoration: none; }
.link-cta:hover { text-decoration: underline; }

.section-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}

.section-desc { color: var(--muted); margin: 0; }


/* ── Bannière prévisualisation brouillon ──────────── */

.ev-preview-banner {
  background: #fef3c7;
  border-bottom: 2px solid #f59e0b;
  color: #78350f;
  padding: 10px 0;
  font-size: 0.875rem;
  font-weight: 600;
}

.ev-preview-banner-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ev-preview-close {
  color: #78350f;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid #f59e0b;
  border-radius: 5px;
  padding: 2px 10px;
  font-size: 0.8rem;
  white-space: nowrap;
}

.ev-preview-close:hover {
  background: #f59e0b;
  color: #fff;
}

/* ── Page détail événement ────────────────────────── */

.ev-banner {
  width: 100%;
  height: 35vh;
  object-fit: cover;
  display: block;
}

.ev-banner-color {
  width: 100%;
  height: 12px;
}

.ev-card-hero {
  position: relative;
  width: 100%;
  height: 35vh;
  overflow: hidden;
}

.ev-card-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.ev-card-hero-overlay {
  position: absolute;
  inset: 0;
}

.ev-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 44px 24px 72px;
}

.ev-breadcrumb {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.86rem;
  margin-bottom: 20px;
}
.ev-breadcrumb a { color: var(--muted); }
.ev-breadcrumb a:hover { color: var(--ink); text-decoration: underline; }

.ev-cat {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 13px;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
  color: #fff;
}

.ev-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0 0 20px;
  color: var(--ink);
}

.ev-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.ev-meta span { display: flex; align-items: center; gap: 6px; }
.ev-meta .ev-recurrence { flex-basis: 100%; }

.ev-desc {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ink);
  margin: 0 0 36px;
}
.ev-desc p { margin: 0 0 0.6em; }
.ev-desc p:last-child { margin-bottom: 0; }
.ev-desc h1, .ev-desc h2, .ev-desc h3 { margin: 1.2em 0 0.3em; font-weight: 700; }
.ev-desc h1:first-child, .ev-desc h2:first-child, .ev-desc h3:first-child { margin-top: 0; }
.ev-desc h1 { font-size: 1.4rem; }
.ev-desc h2 { font-size: 1.15rem; }
.ev-desc h3 { font-size: 1rem; }
.ev-desc ul, .ev-desc ol { margin: 0 0 0.6em; padding-left: 1.4em; }
.ev-desc li { margin-bottom: 0.2em; }
.ev-desc a { color: var(--accent); text-decoration: underline; }
.ev-desc strong { font-weight: 700; }
.ev-desc em { font-style: italic; }
.ev-desc s { text-decoration: line-through; opacity: 0.65; }

.ev-more-link a {
  font-weight: 700;
  color: var(--brand);
  text-decoration: none;
}
.ev-more-link a:hover { text-decoration: underline; }

.ev-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Event modal ──────────────────────────────────── */

.event-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(32,32,24,0.55);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(4px);
  animation: modal-fade 0.18s ease;
}

@keyframes modal-fade { from { opacity: 0; } to { opacity: 1; } }

.event-modal {
  background: var(--paper);
  border-radius: 28px;
  max-width: 660px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 28px 72px rgba(32,32,24,0.28);
  position: relative;
  animation: modal-slide 0.2s ease;
}

@keyframes modal-slide {
  from { transform: translateY(16px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

.event-modal-banner {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  display: block;
  border-radius: 28px 28px 0 0;
}

.event-modal-banner-placeholder {
  width: 100%;
  height: 8px;
  background: var(--brand);
  border-radius: 28px 28px 0 0;
}

.event-modal-body { padding: 28px 32px; }

.event-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(32,32,24,0.2);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  transition: background 0.15s;
}
.event-modal-close:hover { background: rgba(32,32,24,0.38); }

.event-modal-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 8px 0 12px;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
}

.event-modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 16px;
}

.event-modal-desc {
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0 0 20px;
  white-space: pre-wrap;
  color: var(--ink);
}

.event-cat {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}


/* ── Footer ───────────────────────────────────────── */

.site-footer {
  background: var(--site-footer-bg);
  color: var(--site-footer-text);
  font-family: var(--site-footer-font-family);
  font-size: var(--site-footer-font-size);
  font-weight: var(--site-footer-font-weight);
  font-style: var(--site-footer-font-style);
  margin-top: 60px;
  padding: 52px 0;
}

.site-footer .grid { align-items: start; }

.site-footer h2 {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 14px;
}

.site-footer p {
  font-size: 0.88rem;
  margin: 0 0 6px;
  line-height: 1.65;
}

.site-footer a { color: rgba(255,255,255,0.72); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }

.footer-legal {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 36px;
  padding-top: 20px;
  color: rgba(255,255,255,0.38);
  font-size: 0.82rem;
}


/* ── Responsive ───────────────────────────────────── */

@media (max-width: 900px) {
  .hero-grid,
  .layout,
  .grid.cols-2,
  .grid.cols-3,
  .grid.cols-4,
  .section-two-col {
    grid-template-columns: 1fr;
  }

  .filters { grid-template-columns: 1fr; }
  .filters--agenda { grid-template-columns: 1fr; }
  .agenda-month-bar { grid-template-columns: repeat(6, 1fr); }

  /* Cartes de l'agenda : 2 colonnes quel que soit le nombre choisi dans
     l'admin (grid-3 à grid-6), pour rester lisibles sur mobile. */
  #events-container .event-list { grid-template-columns: repeat(2, 1fr); }

  .section-head { display: block; }
  .section-head .btn { margin-top: 16px; }

  .site-nav {
    display: none;
    position: absolute;
    left: 20px;
    right: 20px;
    top: var(--header-h);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 18px;
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    z-index: 100;
  }

  .site-nav.open { display: flex; }
  .site-nav a { width: 100%; padding: 12px 16px; border-radius: 12px; }
  .nav-cta { margin-left: 0 !important; width: 100%; text-align: center; }

  #nav-toggle { display: block; }

  .visual-card .photo { min-height: 200px; }

  .event-item {
    grid-template-columns: 90px 1fr;
    grid-template-rows: 1fr auto;
  }
  .event-item .btn {
    grid-column: 2;
    align-self: flex-start;
    width: fit-content;
  }

  .section-two-col { gap: 40px; }
  .hero { padding: 44px 0 32px; }
}

@media (max-width: 480px) {
  .hero h1, .page-title { font-size: 2rem; }
  .spaces-grid { grid-template-columns: 1fr 1fr; }
  .event-modal-overlay { padding: 12px; }
  .event-modal-body { padding: 18px; }
  .event-modal-title { font-size: 1.2rem; }
  .topbar .container { display: block; }
  .event-item { grid-template-columns: 1fr; }
  .event-item .btn { grid-column: 1; }
}

@media print {
  .site-header, .topbar, .site-footer, .actions, .filters, .agenda-filters-toggle { display: none; }
  .card, .event-item { box-shadow: none; }
}

/* ── Café menu ───────────────────────────────────────────────────────────────── */
.cafe-menu {
  display: flex;
  flex-direction: column;
  gap: 48px;
  max-width: 680px;
}
.cafe-category-header {
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--line);
}
.cafe-category-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cafe-badge-special {
  font-size: 0.7rem;
  font-weight: 600;
  background: var(--brand);
  color: #fff;
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.cafe-product-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cafe-product {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.cafe-product-name {
  font-size: 1rem;
  color: var(--ink);
  white-space: nowrap;
}
.cafe-product-dots {
  flex: 1;
  border-bottom: 2px dotted var(--line);
  margin-bottom: 4px;
}
.cafe-product-price {
  font-size: 1rem;
  font-weight: 600;
  color: var(--brand-dark, var(--ink));
  white-space: nowrap;
}
.cafe-product-empty {
  font-style: italic;
  font-size: 0.9rem;
}
.cafe-product-variants { display:flex; flex-wrap:wrap; gap:0 6px; align-items:baseline; }
.cafe-variant { white-space:nowrap; font-size:0.95rem; }
.cafe-variant-unit { font-weight:400; color:var(--muted,#666); font-size:0.85rem; }
.cafe-variant-price { font-weight:700; color:var(--brand-dark,var(--ink)); }
.cafe-variant-sep { color:var(--muted,#999); font-weight:400; }

/* ── Café menu — panier de commande (widget) ──────────────────────────── */
.cafe-order-start-btn {
  margin: 4px 0 0;
  padding: 11px 20px;
  border: none;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  font-family: inherit;
  cursor: pointer;
}
.cafe-menu-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: start;
}
@media (max-width: 900px) {
  .cafe-menu-layout { grid-template-columns: 1fr; gap: 28px; }
  /* Panier empilé sous le menu : pas de sticky, sinon il peut se figer
     à mi-écran pendant qu'on lit une longue carte au-dessus. */
  .cafe-cart { position: static; }
}
/* Avant clic sur « Faire ma commande » : le menu n'affiche pas encore les +/-.
   On utilise visibility (pas display:none) car chaque <li class="cafe-row">
   est en display:contents — masquer un enfant avec display:none le retire
   de la grille et décale les colonnes des lignes suivantes. */
.cafe-menu-layout.cafe-cart-hidden .cafe-qty { visibility: hidden; }
.cafe-cart {
  position: sticky;
  top: 90px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  background: var(--paper);
}
.cafe-cart h3 { margin: 0 0 10px; font-size: 1.05rem; }
.cafe-cart-empty { font-size: 0.85rem; margin: 0 0 12px; }
.cafe-cart-lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 4px;
}
.cafe-cart-line { display: flex; align-items: baseline; gap: 6px; font-size: 0.9rem; }
.cafe-cart-line-qty { font-weight: 700; flex-shrink: 0; }
.cafe-cart-line-name { flex: 1; }
.cafe-cart-line-total { font-weight: 600; white-space: nowrap; }
.cafe-cart-note { font-size: 0.72rem; margin: 8px 0 0; }
.cafe-cart-total {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  padding-top: 10px;
  margin-top: 10px;
  border-top: 2px solid var(--line);
  margin-bottom: 14px;
}
.cafe-cart-actions { display: flex; gap: 8px; }
.cafe-cart-actions button {
  flex: 1;
  font-size: 0.85rem;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
}
.cafe-cart-close { background: var(--brand); color: #fff; border: none; }
.cafe-cart-clear { background: transparent; border: 1px solid var(--line); color: var(--ink); }

.cafe-qty { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.cafe-qty-btn {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  font-weight: 700;
  line-height: 1;
  font-family: inherit;
}
.cafe-qty-val { min-width: 16px; text-align: center; font-weight: 600; }

/* Liste de produits en mode panier : grille commune à toute la catégorie
   (name / unité / prix / stepper) pour que les prix s'alignent sur une même
   colonne à droite, quelle que soit la longueur des noms ou des unités. */
.cafe-product-list--cart {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content max-content max-content;
  align-items: center;
  row-gap: 10px;
  column-gap: 14px;
}
.cafe-product-list--cart .cafe-row { display: contents; }
.cafe-row-name { font-size: 1rem; color: var(--ink); white-space: nowrap; }
.cafe-row-unit { font-size: 0.85rem; color: var(--muted); white-space: nowrap; }
.cafe-row-price {
  font-size: 1rem;
  font-weight: 600;
  color: var(--brand-dark, var(--ink));
  text-align: right;
  white-space: nowrap;
}

@media (max-width: 640px) {
  /* Les noms longs (ex. certains vins) passent à la ligne au lieu de
     déborder ou d'écraser les colonnes prix/stepper, qui restent fixes. */
  .cafe-product-name,
  .cafe-row-name { white-space: normal; }
  .cafe-product-list--cart {
    column-gap: 8px;
    row-gap: 12px;
  }
  .cafe-row-unit { font-size: 0.78rem; }
  .cafe-qty { gap: 4px; }
  .cafe-qty-btn { width: 28px; height: 28px; font-size: 0.95rem; }
  .cafe-cart {
    padding: 16px;
    border-radius: 10px;
  }
  .cafe-cart-actions button { padding: 10px; font-size: 0.88rem; }
  .cafe-order-start-btn { width: 100%; text-align: center; }
}

/* ── Actualités ──────────────────────────────────────────────────────────── */
.actu-grid {
  display: grid;
  grid-template-columns: repeat(var(--actu-cols, 3), 1fr);
  gap: 28px;
  padding: 8px 0 40px;
}
/* Le nombre de colonnes réglé dans le widget (--actu-cols, 2 à 6) ne
   s'applique qu'à partir d'un écran assez large ; en dessous on réduit
   progressivement, quel que soit le réglage, pour éviter des colonnes trop
   étroites. */
@media (max-width: 1000px) {
  .actu-grid { grid-template-columns: repeat(min(2, var(--actu-cols, 3)), 1fr); }
}
@media (max-width: 600px) {
  .actu-grid { grid-template-columns: 1fr; }
}

.actu-card {
  background: var(--surface, #fff);
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.18s, transform 0.18s;
}

.actu-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.10);
  transform: translateY(-2px);
}

.actu-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.actu-card-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.actu-card-meta time {
  font-size: 0.82rem;
  color: var(--muted, #6b7280);
}

.actu-card-lieu {
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--surface-soft, #f3f4f6);
  color: var(--muted, #6b7280);
  padding: 2px 8px;
  border-radius: 99px;
}

.actu-card-body .actu-card-title {
  font-size: var(--actu-title-size, 1.15rem);
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
}

.actu-card-title a {
  color: inherit;
  text-decoration: none;
}

.actu-card-title a:hover {
  color: var(--brand, #2563eb);
}

.actu-card-summary {
  font-size: 0.92rem;
  color: var(--muted, #6b7280);
  line-height: 1.55;
  margin: 0;
  flex: 1;
}

.actu-card-read {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand, #2563eb);
  text-decoration: none;
  margin-top: auto;
}

.actu-card-read:hover { text-decoration: underline; }

/* Article page */
.actu-article-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--muted, #6b7280);
}

.actu-article-summary {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--muted, #6b7280);
  border-left: 3px solid var(--brand, #2563eb);
  padding-left: 16px;
  margin-bottom: 28px;
}

.actu-article-content {
  font-size: 1rem;
  line-height: 1.75;
  max-width: 720px;
}

.actu-article-content h1,
.actu-article-content h2,
.actu-article-content h3 { margin: 1.4em 0 0.5em; }

.actu-article-content p { margin: 0 0 1em; }

.actu-article-content img { max-width: 100%; border-radius: 8px; display: inline-block; }

.actu-article-content table { border-collapse: collapse; width: 100%; margin: 1em 0; font-size: 0.95rem; }
.actu-article-content th,
.actu-article-content td { border: 1px solid var(--border, #e5e7eb); padding: 8px 12px; text-align: left; }
.actu-article-content th { background: var(--surface-alt, #f9fafb); font-weight: 600; }
.actu-article-content tr:nth-child(even) td { background: var(--surface-alt, #f9fafb); }

.actu-article-back { margin-top: 40px; padding-bottom: 40px; }

.loading-note {
  color: var(--muted, #9ca3af);
  font-style: italic;
  padding: 20px 0;
}

/* ── Carte postale widget ─────────────────────────────────────── */
.section--carte-postale {
  padding: 56px 0;
}

/* ── Menu du café widget ──────────────────────────────────────── */
.section--cafe-menu {
  padding: 56px 0;
}

.carte-postale {
  display: flex;
  gap: 40px;
  align-items: center;
}

.carte-postale--droite {
  flex-direction: row-reverse;
}

.carte-postale--gauche {
  flex-direction: row;
}

.carte-postale--dessus {
  flex-direction: column;
  text-align: center;
}

.carte-postale__img {
  flex: 0 0 42%;
}

.carte-postale--dessus .carte-postale__img {
  flex: none;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}

.carte-postale__img img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  display: block;
}

.carte-postale__text {
  flex: 1;
}

.carte-postale__text h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 16px;
  line-height: 1.2;
}

.carte-postale__text p,
.carte-postale__desc p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted, #6b7280);
  margin: 0 0 24px;
}

.carte-postale__desc { margin-bottom: 24px; }
.carte-postale__desc strong { font-weight: 700; color: var(--ink, #111827); }
.carte-postale__desc em { font-style: italic; }

.carte-postale__link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand, #2563eb);
  text-decoration: none;
}

.carte-postale__link:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .carte-postale,
  .carte-postale--droite,
  .carte-postale--gauche {
    flex-direction: column;
  }
  .carte-postale__img {
    flex: none;
    width: 100%;
  }
}

/* ── Widget Map ──────────────────────────────────────────────── */
.section--map {
  padding: 56px 0;
}

.map-widget {
  background: var(--surface, #fff);
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 16px;
  overflow: hidden;
}

.map-widget__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  gap: 12px;
}

.map-widget__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  color: var(--ink, #111827);
}

.map-widget__maps-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand, #2563eb);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.map-widget__maps-link:hover {
  text-decoration: underline;
}

.map-widget__map iframe {
  display: block;
  width: 100%;
  border: none;
  border-top: 1px solid var(--line, #e5e7eb);
}

.map-widget__empty {
  padding: 40px 24px;
  text-align: center;
  color: var(--muted, #6b7280);
  font-size: 0.9rem;
  border-top: 1px solid var(--line, #e5e7eb);
}

.map-widget__info {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding: 20px 24px;
  border-top: 1px solid var(--line, #e5e7eb);
}

.map-info__item {
  font-size: 0.9rem;
  color: var(--muted, #6b7280);
  line-height: 1.6;
}

.map-info__item--phone,
.map-info__item--email,
.map-info__item--url {
  color: var(--brand, #2563eb);
  text-decoration: none;
}

.map-info__item--phone:hover,
.map-info__item--email:hover,
.map-info__item--url:hover {
  text-decoration: underline;
}

.map-info__item--transit {
  width: 100%;
  color: var(--muted, #6b7280);
  font-size: 0.88rem;
}

@media (max-width: 640px) {
  .map-widget__header {
    padding: 16px 16px 14px;
  }
  .map-widget__info {
    padding: 16px;
  }
  .map-widget__map iframe {
    height: 280px;
  }
}

/* ── Hero Carrousel ──────────────────────────────────────────── */
.section--hcarr { padding: 0; }

.hcarr { background: var(--surface-alt, #f3f4f6); }

.hcarr__viewport {
  overflow: hidden;
  width: 100%;
  touch-action: pan-y;
}

.hcarr__track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  touch-action: pan-y;
}

.hcarr__track.is-dragging {
  transition: none;
}

.hcarr__slide {
  flex: 0 0 100%;
  width: 100%;
  position: relative;
}

.hcarr__inner {
  display: block;
  position: relative;
  text-decoration: none;
  color: inherit;
}

.hcarr__img {
  display: block;
  width: 100%;
  height: clamp(260px, 52vw, 560px);
  object-fit: cover;
}

.hcarr__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 80px 20px 36px 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 100%);
}

.hcarr__title {
  font-size: clamp(1.3rem, 4vw, 2.4rem);
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.15;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}

.hcarr__auto-info {
  position: absolute;
  top: 20px;
  left: 20px;
  max-width: min(85%, 420px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  text-align: left;
}

.hcarr__auto-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  min-width: 0;
}

.hcarr__badge {
  position: relative;
  top: 5px;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--accent, #2563eb);
  color: #fff;
  font-size: clamp(0.78rem, 1.86vw, 0.98rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
  flex-shrink: 0;
}

.hcarr__auto-title {
  margin: 0;
  color: #fff;
  font-weight: 700;
  font-size: clamp(3.32rem, 7.7vw, 4.02rem);
  line-height: 1.15;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
  white-space: nowrap;
}

.hcarr__auto-cat {
  padding: 3px 11px;
  border-radius: 999px;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(2px);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  border: 1px solid var(--cat-color, rgba(255,255,255,0.55));
}

@media (max-width: 640px) {
  .hcarr__auto-info { top: 20px; left: 20px; max-width: 80%; gap: 5px; }
  .hcarr__auto-head { gap: 6px; }
  .hcarr__badge { padding: 4px 9px; font-size: 0.73rem; }
  .hcarr__auto-title { font-size: 3.22rem; }
  .hcarr__auto-cat { padding: 2px 9px; font-size: 0.68rem; }
}

.hcarr__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 10px 0;
}

.hcarr__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line, #d0d0cc);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
  flex-shrink: 0;
}

.hcarr__dot.is-active {
  background: var(--accent, #2563eb);
  transform: scale(1.35);
}

@media (max-width: 640px) {
  .hcarr__caption { padding: 48px 14px 28px 20px; }
}

/* ── Survol depuis l'admin (aperçu de page) ──────────────────────
   Appliqué par le portail sur l'élément [data-pb-index] correspondant
   quand la souris survole le widget dans "Widgets de la page". */
[data-pb-index].pb-preview-highlight {
  outline: 3px solid var(--accent, #2563eb);
  outline-offset: -3px;
  transition: outline-color 0.1s;
}
