:root {
  --bg0: #f7f1eb;
  --bg1: #f3e8e0;
  --bg2: #101812;
  --ink: #101812;
  --ink-soft: #3a453e;
  --accent: #8c542c;
  --accent-2: #006070;
  --leaf: #006070;
  --leaf-bright: #1a8a9a;
  --ember: #8c542c;
  --ember-deep: #6f4a2f;
  --wine: #620808;
  --banner-bg: #f7f1eb;
  --footer-bg: #372316;
  --surface: rgba(255, 252, 248, 0.9);
  --surface-solid: #fffdf9;
  --line: rgba(16, 24, 18, 0.12);
  --ok: #006070;
  --err: #842029;
  --radius: 2px;
  --font-display: "Fraunces", Georgia, serif;
  --font-brand: "Astral Sisters", "Fraunces", Georgia, serif;
  --font-body: "Figtree", sans-serif;
  --shadow: 0 12px 32px rgba(55, 35, 22, 0.1);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  color: var(--ink);
  background: var(--banner-bg);
  background-attachment: fixed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.03;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.site-header,
.main,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  min-height: 4rem;
  height: auto;
  max-width: 1180px;
  margin: 0 auto;
  z-index: 30;
  background: var(--banner-bg);
  border-bottom: none;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  display: none;
}

.brand-text {
  font-family: var(--font-brand);
  font-weight: normal;
  font-size: 1.45rem;
  letter-spacing: 0.06em;
}

.brand-sub {
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-weight: 500;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  margin-left: auto;
  padding: 0.5rem;
  border: 1px solid rgba(26, 47, 28, 0.18);
  border-radius: 2px;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle__bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav {
  display: none;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  flex-basis: 100%;
  gap: 0;
  padding: 0.35rem 0 0.5rem;
  border-top: 1px solid rgba(26, 47, 28, 0.12);
  margin-top: 0.35rem;
  order: 3;
}

.site-header.is-nav-open .nav {
  display: flex;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
  opacity: 1;
  padding: 0.75rem 0.15rem;
  border-bottom: 1px solid rgba(26, 47, 28, 0.08);
  transition: opacity 0.25s, color 0.25s;
}

.nav a:last-child {
  border-bottom: none;
}

.nav a:hover {
  opacity: 1;
  color: var(--leaf);
}

.nav-cta {
  background: var(--ember);
  color: #fff !important;
  opacity: 1 !important;
  padding: 0.75rem 0.95rem !important;
  border-radius: 2px;
  font-weight: 600 !important;
  text-align: center;
  margin-top: 0.35rem;
  border-bottom: none !important;
}

.nav-cta:hover {
  background: var(--ember-deep) !important;
  color: #fff !important;
}

@media (min-width: 901px) {
  .nav-toggle {
    display: none;
  }

  .nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: auto;
    flex-basis: auto;
    gap: 0.15rem 1.35rem;
    padding: 0;
    border-top: none;
    margin-top: 0;
    order: 0;
  }

  .site-header.is-nav-open .nav {
    display: flex;
  }

  .nav a {
    font-size: 0.92rem;
    opacity: 0.88;
    padding: 0;
    border-bottom: none;
  }

  .nav-cta {
    padding: 0.45rem 0.95rem !important;
    margin-top: 0;
    text-align: inherit;
  }
}

.main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem) 4rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: end;
  min-height: min(72vh, 640px);
  padding: 1rem 0 3rem;
}

.hero-kicker {
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.hero-brand {
  margin: 0;
  font-family: var(--font-brand);
  font-weight: normal;
  font-size: clamp(3.2rem, 9vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: 0.06em;
  color: var(--wine);
  animation: rise 0.8s ease-out both;
}

.hero-lead {
  margin: 1.1rem 0 1.75rem;
  max-width: 28ch;
  font-size: 1.15rem;
  color: var(--ink-soft);
  animation: rise 0.8s 0.12s ease-out both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: rise 0.8s 0.22s ease-out both;
}

.hero-visual {
  position: relative;
  width: min(100%, 420px);
  aspect-ratio: 1;
  min-height: 0;
  margin-inline: auto;
  display: grid;
  place-items: center;
  overflow: visible;
}

.orbit {
  position: relative;
  width: 68%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1.5px dashed rgba(140, 84, 44, 0.28);
  animation: spin-slow 28s linear infinite;
  z-index: 0;
}

.orb {
  position: absolute;
  border-radius: 50%;
  display: block;
  z-index: 1;
}

.orb-1 {
  width: 72px;
  height: 72px;
  background: linear-gradient(145deg, var(--ember), var(--ember-deep));
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 12px 30px rgba(140, 84, 44, 0.3);
}

.orb-2 {
  width: 42px;
  height: 42px;
  background: var(--leaf);
  right: 8px;
  bottom: 40%;
  box-shadow: 0 8px 18px rgba(0, 96, 112, 0.28);
}

.orb-3 {
  width: 28px;
  height: 28px;
  background: var(--wine);
  left: 18%;
  bottom: 12%;
  box-shadow: 0 6px 14px rgba(98, 8, 8, 0.25);
}

.hero-logo {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 2;
  width: 92%;
  max-height: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 24px rgba(55, 35, 22, 0.18));
  animation: pulse-soft 3.5s ease-in-out infinite;
  pointer-events: none;
}

.section {
  padding: 1rem 0 2rem;
}

.section-head {
  margin-bottom: 1.5rem;
}

.section-head h1,
.section-head h2 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: clamp(1.45rem, 3vw, 1.85rem);
}

.section-head p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 48ch;
}

.map-section {
  padding-top: 0.25rem;
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  margin: 0 0 0.85rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.map-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.map-dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  display: inline-block;
}

.map-dot-offre {
  background: var(--leaf);
  box-shadow: 0 0 0 2px rgba(0, 96, 112, 0.25);
}

.map-dot-demande {
  background: var(--ember);
  box-shadow: 0 0 0 2px rgba(140, 84, 44, 0.25);
}

.map-dot-festival {
  background: var(--wine);
  box-shadow: 0 0 0 2px rgba(98, 8, 8, 0.3);
}

.home-map {
  height: min(52vh, 420px);
  width: 100%;
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid rgba(55, 35, 22, 0.12);
  box-shadow: 0 10px 28px rgba(55, 35, 22, 0.08);
  background: #e8dfd4;
  z-index: 0;
}

.map-marker {
  background: transparent;
  border: none;
}

.map-marker span {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
  margin: 3px auto;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.map-marker:hover span {
  transform: scale(1.25);
}

.map-marker-offre span {
  background: var(--leaf);
}

.map-marker-demande span {
  background: var(--ember);
}

.map-marker-festival span {
  width: 12px;
  height: 12px;
  background: var(--wine);
  border-radius: 3px;
  transform: rotate(45deg);
}

.leaflet-container {
  font-family: inherit;
}

.leaflet-popup-content {
  margin: 0.65rem 0.85rem;
  font-size: 0.9rem;
  line-height: 1.35;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: end;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
}

.filters .field {
  flex: 1 1 160px;
}

.ride-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.ride {
  background: var(--surface-solid);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.ride:hover {
  transform: translateY(-2px);
  border-color: rgba(140, 84, 44, 0.45);
}

.ride-link {
  display: block;
  padding: 1.1rem 1.25rem;
  text-decoration: none;
  color: inherit;
}

.ride-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
  margin-bottom: 0.55rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.ride-route {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.65rem;
}

.arrow {
  color: var(--accent);
  font-weight: 700;
}

.ride-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.seats {
  font-weight: 600;
  color: var(--ok);
}

.seats.full,
.full {
  color: var(--err);
}

.price {
  font-weight: 600;
  color: var(--ink);
}

.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.28rem 0.55rem;
  border-radius: 2px;
  background: rgba(0, 96, 112, 0.12);
  color: var(--leaf);
}

.tag-retour {
  background: rgba(140, 84, 44, 0.14);
  color: var(--ember-deep);
}

.tag-autre {
  background: rgba(16, 24, 18, 0.08);
  color: var(--ink-soft);
}

.tag-offre {
  background: rgba(0, 96, 112, 0.12);
  color: var(--leaf);
}

.tag-demande {
  background: rgba(140, 84, 44, 0.14);
  color: var(--ember-deep);
}

.tag-pourvue {
  background: rgba(16, 24, 18, 0.08);
  color: var(--ink-soft);
}

.type-tabs {
  display: inline-flex;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
  padding: 0.25rem;
  background: rgba(55, 35, 22, 0.06);
  border-radius: 2px;
}

.type-tab {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.45rem 1.1rem;
  border-radius: 2px;
  transition: background 0.15s ease, color 0.15s ease;
}

.type-tab:hover {
  color: var(--ink);
}

.type-tab.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(55, 35, 22, 0.12);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
  padding: 0.95rem 1.6rem;
  border-radius: 2px;
  transition: transform 0.35s var(--ease), background 0.3s, color 0.3s;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn-primary {
  background: var(--ember);
  color: #fff;
}

.btn-primary:hover {
  background: var(--ember-deep);
}

.btn-secondary {
  background: var(--leaf);
  color: #fff;
}

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

.btn-ghost:hover {
  background: var(--ink);
  color: #fff;
}

.btn-danger {
  background: var(--err);
  color: #fff;
}

.btn-small {
  padding: 0.35rem 0.75rem;
  font-size: 0.82rem;
}

.form-section .form,
.manage-panel,
.code-box,
.detail-block {
  background: var(--surface-solid);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow);
}

.form fieldset {
  border: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.form legend {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 0.85rem;
  padding: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field-wide {
  grid-column: 1 / -1;
}

.field span {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.field input,
.field select,
.field textarea {
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 0.65rem 0.8rem;
  width: 100%;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid rgba(140, 84, 44, 0.35);
  border-color: var(--accent);
}

.adresse-wrap {
  position: relative;
  width: 100%;
}

.adresse-suggestions {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 40;
  margin: 0;
  padding: 0.35rem 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 2px;
  box-shadow: var(--shadow);
  max-height: 14rem;
  overflow-y: auto;
}

.adresse-suggestions button {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  font: inherit;
  font-size: 0.92rem;
  color: var(--ink);
  padding: 0.55rem 0.85rem;
  cursor: pointer;
}

.adresse-suggestions button:hover,
.adresse-suggestions button:focus {
  background: rgba(140, 84, 44, 0.1);
  outline: none;
}

.form-hint {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.field-hint {
  font-style: normal;
  font-weight: 500;
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-left: 0.25rem;
}

.date-fr-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  width: 100%;
}

.date-fr-wrap input {
  flex: 1;
  min-width: 0;
}

.date-fr-toggle {
  flex: 0 0 auto;
  width: 2.75rem;
  height: 2.75rem;
  border: 1.5px solid var(--line);
  border-radius: 2px;
  background: #fff;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0;
}

.date-fr-toggle:hover {
  border-color: var(--ember);
  background: rgba(140, 84, 44, 0.08);
}

.date-fr-panel {
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  z-index: 50;
  width: min(100%, 20rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 2px;
  box-shadow: var(--shadow);
  padding: 0.75rem;
}

.date-fr-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.date-fr-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--ink);
}

.date-fr-nav {
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #fff;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
}

.date-fr-nav:hover {
  border-color: var(--ember);
  color: var(--ember);
}

.date-fr-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.15rem;
  margin-bottom: 0.35rem;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

.date-fr-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.2rem;
}

.date-fr-empty {
  aspect-ratio: 1;
}

.date-fr-day {
  aspect-ratio: 1;
  border: 0;
  border-radius: 2px;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  color: var(--ink);
}

.date-fr-day:hover:not(:disabled) {
  background: rgba(140, 84, 44, 0.12);
}

.date-fr-day.is-today {
  box-shadow: inset 0 0 0 1.5px var(--leaf);
}

.date-fr-day.is-selected {
  background: var(--ember);
  color: #fff;
}

.date-fr-day.is-disabled,
.date-fr-day:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.date-fr-foot {
  margin-top: 0.55rem;
  text-align: center;
}

.date-fr-today {
  border: 0;
  background: transparent;
  color: var(--leaf);
  font: inherit;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  text-decoration: underline;
}

.is-hidden {
  display: none !important;
}

.form-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: end;
  margin-bottom: 1.5rem;
}

.form-inline .field {
  flex: 1 1 180px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.detail-section .back-link {
  margin: 0 0 1rem;
}

.detail-section .ride-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
}

.detail-section .section-head p {
  margin-top: 0.35rem;
}

.detail-block h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
}

.offer-stack {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.offer-card {
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.offer-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.offer-card-name {
  font-size: 1rem;
}

.offer-card-top .statut-badge {
  margin-left: 0;
  flex-shrink: 0;
}

.offer-card-meta {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.offer-card-meta span:not(:last-child)::after {
  content: none;
}

.offer-card-msg {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

.offer-card-link {
  display: inline-block;
  margin-top: 0.55rem;
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--bg2);
  text-decoration: none;
}

.offer-card-link:hover {
  color: var(--accent);
}

.offer-stack-hint {
  margin: 0.9rem 0 0;
}

.ride-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  letter-spacing: -0.02em;
  margin: 0.5rem 0;
}

.facts {
  margin: 0;
  display: grid;
  gap: 0.85rem;
}

.facts div {
  display: grid;
  gap: 0.15rem;
}

.facts dt {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

.facts dd {
  margin: 0;
  font-weight: 600;
  font-size: 1.05rem;
}

.ride-message {
  margin: 1.25rem 0 0;
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--accent);
  background: rgba(232, 93, 4, 0.06);
  border-radius: 0 12px 12px 0;
}

.code-box {
  margin: 1rem 0;
  background: linear-gradient(135deg, #f7f1eb, #f3e8e0);
  border-color: rgba(232, 93, 4, 0.3);
  text-align: center;
}

.code-value {
  font-family: ui-monospace, monospace;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  margin: 0.4rem 0;
  color: var(--bg2);
}

.manage-panel {
  margin-top: 0.5rem;
}

.manage-panel h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  margin: 0 0 0.35rem;
}

.manage-panel h3 {
  margin: 1.5rem 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
}

.mono {
  font-family: ui-monospace, monospace;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.resa-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.resa {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.resa-with-chat {
  flex-direction: column;
}

.resa-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  align-items: start;
}

.resa-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  justify-content: flex-end;
}

.statut-badge {
  display: inline-block;
  margin-left: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  vertical-align: middle;
}

.statut-en_attente {
  background: #fff3cd;
  color: #856404;
}

.statut-accepte {
  background: rgba(0, 96, 112, 0.12);
  color: var(--leaf);
}

.statut-refuse {
  background: #f8d7da;
  color: #842029;
}

.statut-annule {
  background: #e9ecef;
  color: #495057;
}

.check-field {
  flex-direction: row !important;
  align-items: center;
  gap: 0.65rem;
}

.check-field input[type="checkbox"] {
  width: auto;
  margin: 0;
}

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

.space-tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
  padding: 0.3rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 2px;
  width: fit-content;
  max-width: 100%;
}

.space-tab {
  border: none;
  background: transparent;
  font: inherit;
  font-weight: 650;
  padding: 0.55rem 1.1rem;
  border-radius: 2px;
  cursor: pointer;
  color: var(--ink-soft);
}

.space-tab.active {
  background: var(--ember);
  color: #fff;
}

.space-panel {
  display: none;
}

.space-panel.active {
  display: block;
}

.space-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  align-items: center;
  margin-bottom: 1.25rem;
  padding: 0.85rem 1rem;
  background: var(--surface-solid);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.space-login-extra {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.contact-prefs {
  margin: 1rem 0;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.contact-prefs summary {
  cursor: pointer;
  font-weight: 650;
  color: var(--ink-soft);
}

.space-login-extra summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink-soft);
}

.space-section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  margin: 1.5rem 0 0.85rem;
  letter-spacing: -0.01em;
}

.chat {
  width: 100%;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--line);
}

.chat-title {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
}

.chat-thread {
  display: grid;
  gap: 0.55rem;
  max-height: 280px;
  overflow-y: auto;
  padding: 0.5rem;
  background: rgba(26, 47, 28, 0.04);
  border-radius: 12px;
  margin-bottom: 0.75rem;
}

.chat-empty {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  text-align: center;
  padding: 0.75rem;
}

.chat-bubble {
  max-width: 90%;
  padding: 0.55rem 0.75rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
}

.chat-bubble p {
  margin: 0.2rem 0 0;
  font-size: 0.95rem;
}

.chat-bubble.mine {
  justify-self: end;
  background: #e8f5e0;
  border-color: #b7d7a8;
}

.chat-bubble.theirs {
  justify-self: start;
}

.chat-meta {
  display: block;
  font-size: 0.72rem;
  color: var(--ink-soft);
}

.chat-form {
  display: grid;
  gap: 0.5rem;
}

.danger-zone {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px dashed var(--line);
}

.empty,
.empty-inline {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--ink-soft);
}

.empty-inline {
  text-align: left;
  padding: 0.5rem 0;
}

.flash {
  margin: 0 0 1.25rem;
  padding: 0.85rem 1.1rem;
  border-radius: 12px;
  font-weight: 560;
  animation: rise 0.35s ease-out both;
}

.flash-success {
  background: rgba(0, 96, 112, 0.12);
  color: var(--leaf);
  border: 1px solid rgba(0, 96, 112, 0.25);
}

.flash-error {
  background: #f8d7da;
  color: #842029;
  border: 1px solid #f1aeb5;
}

.back-link {
  margin-top: 1.5rem;
}

.back-link a {
  color: var(--ink-soft);
  font-weight: 560;
}

.site-footer {
  max-width: none;
  margin: 0;
  padding: 2.5rem clamp(1.25rem, 4vw, 3rem) 3rem;
  border-top: none;
  background: var(--footer-bg);
  color: #eef8f3;
  font-size: 0.92rem;
  text-align: center;
}

.site-footer p {
  margin: 0.35rem 0;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
}

.site-footer a:hover {
  color: #f3e8e0;
}

.footer-note {
  opacity: 0.78;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin-slow {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse-soft {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-4px);
  }
}

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 1.25rem;
    padding: 0.5rem 0 2rem;
    align-items: start;
  }

  .hero-visual {
    order: -1;
    width: min(72vw, 300px);
    aspect-ratio: 1;
    max-height: none;
    overflow: visible;
  }

  .hero-logo {
    position: absolute;
    left: 50%;
    bottom: 0;
    z-index: 2;
    width: 92%;
    max-height: 100%;
    margin: 0;
  }

  .orbit {
    width: 70%;
  }

  .orb-1 {
    width: 48px;
    height: 48px;
    top: -12px;
  }

  .orb-2 {
    width: 28px;
    height: 28px;
  }

  .orb-3 {
    width: 18px;
    height: 18px;
  }

  .hero-brand {
    font-size: clamp(2.5rem, 11vw, 3.8rem);
  }

  .hero-lead {
    font-size: 1.05rem;
    max-width: none;
  }

  .home-map {
    height: min(42vh, 300px);
    border-radius: 0.9rem;
  }

  .detail-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .field-wide {
    grid-column: auto;
  }

  .type-tabs {
    width: 100%;
    overflow-x: auto;
  }

  .filters {
    flex-direction: column;
    align-items: stretch;
  }

  .filters .btn {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .site-header {
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.75rem;
    padding: 0.65rem 1rem;
    min-height: 3.5rem;
  }

  .brand {
    flex-wrap: wrap;
    min-width: 0;
    max-width: calc(100% - 3.5rem);
  }

  .brand-text {
    font-size: 1.25rem;
  }

  .brand-sub {
    font-size: 0.78rem;
  }

  .main {
    padding: 0.75rem 1rem 3rem;
  }
}

@media (max-width: 520px) {
  .hero-visual {
    width: min(68vw, 250px);
  }

  .hero-logo {
    width: 94%;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .resa {
    flex-direction: column;
  }

  .resa-head {
    flex-direction: column;
  }

  .resa-actions {
    justify-content: flex-start;
  }

  .space-tabs {
    width: 100%;
  }

  .space-tab {
    flex: 1;
    text-align: center;
  }
}
