/* Avizo — site vitrine (Bento / Bentos) */
:root {
  --brand: #2563eb;
  --brand-deep: #1d4ed8;
  --brand-ink: #0b1f44;
  --teal: #0d9488;
  --bento-sky: #dcebff;
  --bento-lilac: #efe7ff;
  --bento-sand: #fff0dd;
  --bento-mint: #dff7ea;
  --bento-peach: #ffe4d6;
  --ink: #0f172a;
  --muted: #475569;
  --line: rgba(15, 23, 42, 0.08);
  --surface: #ffffff;
  --radius: 1.75rem;
  --radius-sm: 1.15rem;
  --font-display: "Syne", "Segoe UI", sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --shadow: 0 12px 40px rgba(15, 58, 120, 0.08);
  --shadow-card: 0 8px 24px rgba(15, 23, 42, 0.06);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.55;
  background:
    radial-gradient(1100px 520px at 8% -8%, rgba(220, 235, 255, 0.9), transparent 55%),
    radial-gradient(900px 480px at 96% 4%, rgba(223, 247, 234, 0.7), transparent 48%),
    linear-gradient(180deg, #f4f7fb 0%, #fbfcfe 45%, #ffffff 100%);
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--brand-deep);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

button,
input,
select {
  font: inherit;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

/* ——— Nav ——— */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(244, 247, 251, 0.82);
  border-bottom: 1px solid rgba(37, 99, 235, 0.06);
}

.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--brand-ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.brand-mark__logo {
  width: 2.15rem;
  height: 2.15rem;
  flex-shrink: 0;
  border-radius: 0.55rem;
}

.brand-mark__name {
  line-height: 1;
}

.brand-mark__dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 0.2rem;
  background: linear-gradient(135deg, var(--brand), var(--teal));
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

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

.nav-link {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0.45rem 0.7rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.92rem;
}

.nav-link:hover {
  color: var(--brand-ink);
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.15rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
}

.lang-switcher__btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.45rem;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1;
}

.lang-switcher__btn:hover {
  color: var(--brand-ink);
}

.lang-switcher__btn.is-active {
  background: var(--brand, #2563eb);
  color: #fff;
}

.user-chip {
  display: none;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.55rem 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  font-size: 0.88rem;
  font-weight: 600;
}

.user-chip.is-visible {
  display: inline-flex;
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.75rem 1.2rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

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

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, #1e40af 100%);
  color: #fff;
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.34);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.85);
  color: var(--brand-ink);
  border-color: rgba(37, 99, 235, 0.22);
}

.btn-ghost {
  background: transparent;
  color: var(--brand-ink);
  border-color: rgba(15, 23, 42, 0.12);
}

.btn-sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.88rem;
}

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

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: 0;
  display: block;
  overflow: visible;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(115deg, rgba(232, 243, 255, 0.92) 0%, rgba(232, 243, 255, 0.55) 42%, rgba(13, 148, 136, 0.08) 100%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%232563eb' fill-opacity='0.045'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(1.25rem, 2.5vw, 2.25rem);
  align-items: start;
  padding: 1.35rem 0 1.75rem;
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.hero__copy {
  max-width: 34rem;
  min-width: 0;
}

.hero__brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 7vw, 4.75rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
  color: var(--brand-ink);
  margin: 0 0 0.7rem;
  padding-bottom: 0.06em;
}

.hero__headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  line-height: 1.22;
  letter-spacing: -0.02em;
  margin: 0 0 0.85rem;
  padding-bottom: 0.08em;
  color: var(--ink);
}

.hero__lead {
  margin: 0 0 1.15rem;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 32rem;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

/* Dominant visual — agenda mosaic */
.hero-visual {
  position: relative;
  min-width: 0;
  width: 100%;
  min-height: 320px;
  border-radius: 1.5rem;
  margin: 0;
  padding: 1rem;
  background:
    linear-gradient(145deg, rgba(37, 99, 235, 0.92), rgba(13, 148, 136, 0.85)),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.25), transparent 45%);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-visual__glow {
  position: absolute;
  width: 240px;
  height: 240px;
  right: -20px;
  bottom: -40px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.35);
  filter: blur(8px);
  pointer-events: none;
}

.agenda-board {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  height: 100%;
  animation: float-in 0.9s ease both;
}

.agenda-tile {
  border-radius: 1rem;
  padding: 0.85rem;
  min-width: 0;
  min-height: 88px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px);
  animation: rise 0.8s ease both;
}

.agenda-tile:nth-child(1) { animation-delay: 0.05s; background: #db2777; }
.agenda-tile:nth-child(2) { animation-delay: 0.12s; background: #0d9488; grid-row: span 2; min-height: 180px; }
.agenda-tile:nth-child(3) { animation-delay: 0.18s; background: #eab308; color: #1f2937; }
.agenda-tile:nth-child(4) { animation-delay: 0.24s; background: #1d4ed8; }
.agenda-tile:nth-child(5) { animation-delay: 0.3s; background: #ea580c; }
.agenda-tile:nth-child(6) { animation-delay: 0.36s; background: rgba(255, 255, 255, 0.18); }

.agenda-tile strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.agenda-tile span {
  font-size: 0.78rem;
  opacity: 0.88;
}

.agenda-tile__slots {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.8rem;
}

.agenda-tile__slot {
  height: 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
}

.agenda-tile__slot.is-busy {
  width: 72%;
  background: rgba(255, 255, 255, 0.85);
}

@keyframes float-in {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

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

@keyframes fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.hero__copy > * {
  animation: fade-up 0.7s ease both;
}

.hero__brand { animation-delay: 0.05s; }
.hero__headline { animation-delay: 0.12s; }
.hero__lead { animation-delay: 0.18s; }
.hero__ctas { animation-delay: 0.24s; }

/* ——— Sections ——— */
.section {
  padding: 4.5rem 0;
}

.section--alt {
  background:
    linear-gradient(180deg, rgba(204, 251, 241, 0.35), rgba(255, 255, 255, 0)),
    radial-gradient(700px 280px at 50% 0%, rgba(37, 99, 235, 0.08), transparent 70%);
}

.section__head {
  max-width: 38rem;
  margin-bottom: 2rem;
}

.section__eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.55rem;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  letter-spacing: -0.03em;
  line-height: 1.22;
  margin: 0 0 0.65rem;
  padding-bottom: 0.08em;
  overflow: visible;
}

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

.feature-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem 2rem;
}

.feature {
  padding-top: 1rem;
  border-top: 2px solid rgba(37, 99, 235, 0.18);
}

.feature h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0 0 0.45rem;
  padding-bottom: 0.04em;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.roles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.role {
  padding: 1.35rem 1.25rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
}

.role h3 {
  font-family: var(--font-display);
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
  line-height: 1.25;
  padding-bottom: 0.04em;
}

.role p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ——— Public agendas grid ——— */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.region-toolbar {
  align-items: stretch;
}

.region-toolbar__search {
  flex: 1 1 18rem;
}

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

.tile--directory .tile__contact--links {
  margin-top: 0.35rem;
}

.field {
  flex: 1 1 12rem;
  min-width: 0;
}

.field input,
.field select,
.auth-field input,
.auth-field select {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 0.9rem;
  padding: 0.75rem 0.95rem;
  color: var(--ink);
}

.field input:focus,
.field select:focus,
.auth-field input:focus,
.auth-field select:focus {
  outline: 2px solid rgba(37, 99, 235, 0.35);
  border-color: var(--brand);
}

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

/* Vitrine : ~2 rangées desktop (6×2), 4×3 tablette, 3×4 / 2×6 mobile */
.tiles--showcase {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

@media (max-width: 1100px) {
  .tiles--showcase {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .tiles--showcase {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .tiles--showcase {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.tile {
  min-height: 120px;
  border-radius: 1.15rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
  transition: transform 0.18s ease;
}

.tile:hover {
  transform: translateY(-2px);
}

.tile--clickable {
  cursor: pointer;
}

.tile--clickable:focus-visible {
  outline: 2px solid #0f172a;
  outline-offset: 3px;
}

.tile__rdv {
  margin: 0.45rem 0 0;
  font-size: 0.76rem;
  font-weight: 650;
  line-height: 1.35;
  opacity: 0.95;
}

.tile__rdv--empty {
  font-weight: 500;
  opacity: 0.78;
}

.tile__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0;
}

.tile__type {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  opacity: 0.88;
}

.tile__contact {
  margin: 0.45rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.74rem;
  line-height: 1.35;
  opacity: 0.92;
}

.tile__contact-addr {
  display: block;
}

.tile__contact-phone,
.tile__contact-maps {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  width: fit-content;
}

.tile__contact-phone:hover,
.tile__contact-maps:hover {
  opacity: 0.85;
}

.tile__action {
  align-self: flex-start;
  margin-top: 0.85rem;
  border: 0;
  background: rgba(255, 255, 255, 0.2);
  color: inherit;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  cursor: pointer;
}

.tile__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.85rem;
}

.tile__actions .tile__action {
  margin-top: 0;
}

.tile__action--book {
  background: rgba(15, 23, 42, 0.55);
  color: #fff;
}

.tile__action:hover {
  background: rgba(255, 255, 255, 0.32);
}

.tile__action--book:hover {
  background: rgba(15, 23, 42, 0.75);
}

.tile--directory {
  gap: 0.75rem;
}

.tile--directory .tile__badge {
  display: inline-block;
  align-self: flex-start;
  margin: 0 0 0.45rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.22);
  color: inherit;
}

.tile--directory .tile__action--claim {
  width: 100%;
  text-align: center;
  text-decoration: none;
  background: rgba(15, 23, 42, 0.22);
}

.tile--directory .tile__action--claim:hover {
  background: rgba(15, 23, 42, 0.34);
}

#region {
  scroll-margin-top: 5.5rem;
}

#my-rdv-block,
.espace-rdv-panel {
  margin-bottom: 2.25rem;
  scroll-margin-top: 5.5rem;
}

.espace-profile-panel {
  margin-bottom: 2.25rem;
  padding: 1.15rem 1.2rem 1.25rem;
  border-radius: 1.35rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.espace-profile-summary {
  margin: 0 0 1rem;
  font-size: 0.92rem;
}

.espace-profile-form .auth-field {
  margin-bottom: 0.85rem;
}

.espace-phone-row {
  display: flex;
  gap: 0.5rem;
}

.espace-phone-row select {
  flex: 0 0 7.5rem;
  max-width: 8.5rem;
}

.espace-phone-row input {
  flex: 1;
  min-width: 0;
}

#booking-modal .espace-phone-row select,
#booking-modal .espace-phone-row input {
  margin: 0;
}

.espace-profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.espace-profile-form .auth-actions {
  margin-top: 0.35rem;
}

.espace-rdv-panel {
  padding: 1.15rem 1.2rem 1.25rem;
  border-radius: 1.35rem;
  background:
    linear-gradient(135deg, rgba(13, 148, 136, 0.08), rgba(37, 99, 235, 0.06)),
    rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(13, 148, 136, 0.22);
}

.espace-rdv-title {
  font-size: 1.45rem !important;
  margin-bottom: 0.35rem !important;
}

.section__head--compact {
  margin-bottom: 1rem;
  max-width: none;
}

.espace-rdv-empty {
  margin: 0.35rem 0 0;
  padding: 0.75rem 0.9rem;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.65);
  border: 1px dashed rgba(15, 23, 42, 0.12);
}

.espace-sound-prefs {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(13, 148, 136, 0.18);
}

.espace-sound-prefs__toggle {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  cursor: pointer;
  margin-bottom: 0.65rem;
}

.espace-sound-prefs__toggle input {
  margin-top: 0.2rem;
  width: 1.1rem;
  height: 1.1rem;
  accent-color: #0d9488;
}

.espace-sound-prefs__toggle strong {
  display: block;
  font-size: 0.92rem;
}

.espace-sound-prefs__toggle .muted {
  display: block;
  font-size: 0.78rem;
  margin-top: 0.15rem;
  line-height: 1.35;
}

.espace-sound-prefs__row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.espace-sound-prefs__row select {
  flex: 1;
  border-radius: 0.85rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  padding: 0.55rem 0.75rem;
  background: #fff;
  font: inherit;
}

.rdv-row--cancelled {
  opacity: 0.72;
}

.espace-toast {
  position: fixed;
  left: 50%;
  top: 5.5rem;
  bottom: auto;
  transform: translateX(-50%) translateY(-12px);
  z-index: 200;
  max-width: min(92vw, 24rem);
  padding: 0.85rem 1.25rem;
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.95);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.32);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s ease, opacity 0.28s ease;
  text-align: center;
  border: 2px solid transparent;
}

.espace-toast.is-show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.espace-toast.toast-ok {
  background: #065f46;
  border-color: #6ee7b7;
}

.espace-toast.toast-cancel {
  background: #991b1b;
  border-color: #fca5a5;
}

.my-rdv-status-flash {
  display: none;
  margin: 0 0 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  font-weight: 700;
  font-size: 0.9rem;
  text-align: center;
  border: 1px solid transparent;
}

.my-rdv-status-flash.is-show {
  display: block;
}

.my-rdv-status-flash.is-ok {
  background: #ecfdf5;
  color: #065f46;
  border-color: #6ee7b7;
}

.my-rdv-status-flash.is-cancel {
  background: #fef2f2;
  color: #991b1b;
  border-color: #fca5a5;
}

.my-rdv-status-flash.is-mixed {
  background: #eff6ff;
  color: #1e3a8a;
  border-color: #93c5fd;
}

.rdv-loading {
  margin: 0;
  padding: 0.5rem 0;
}

.rdv-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.rdv-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.rdv-row__dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
  flex-shrink: 0;
}

.rdv-row__main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.rdv-row__shop {
  font-size: 0.98rem;
  letter-spacing: -0.01em;
}

.rdv-row__when {
  font-size: 0.84rem;
  color: var(--muted);
  text-transform: capitalize;
}

.rdv-row__status {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  color: #334155;
}

.rdv-row__status.is-ok {
  background: rgba(4, 120, 87, 0.12);
  color: #047857;
}

.rdv-row__status.is-pending {
  background: rgba(180, 83, 9, 0.12);
  color: #b45309;
}

.rdv-row__status.is-error {
  background: rgba(185, 28, 28, 0.1);
  color: #b91c1c;
}

.agenda-mine {
  margin: 0 0 0.85rem;
  padding: 0.7rem 0.85rem;
  border-radius: 0.85rem;
  background: rgba(37, 99, 235, 0.08);
  font-size: 0.9rem;
}

.agenda-hours {
  margin: 0 0 1rem;
  padding: 0.75rem 0.85rem;
  border-radius: 0.85rem;
  background: rgba(15, 23, 42, 0.03);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.agenda-hours__title,
.agenda-section-label {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}

.agenda-hours__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}

.agenda-hours__row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.86rem;
}

.agenda-hours__row.is-closed {
  color: #94a3b8;
}

.agenda-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  max-height: min(50vh, 22rem);
  overflow: auto;
}

.agenda-list__item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.75rem;
  background: rgba(15, 23, 42, 0.04);
}

.agenda-list__item.is-busy {
  background: rgba(100, 116, 139, 0.12);
}

.agenda-list__item.is-public {
  background: rgba(16, 185, 129, 0.1);
}

.agenda-list__when {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: capitalize;
}

.agenda-list__what {
  font-size: 0.88rem;
  color: var(--muted);
}

.search-row__actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.book-step {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.book-choices {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.book-choice {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  text-align: left;
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 1rem;
  padding: 0.85rem 1rem;
  cursor: pointer;
  font: inherit;
}

.book-choice strong {
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.book-deposit {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #0f766e;
  background: #ccfbf1;
  border: 1px solid #99f6e4;
  border-radius: 999px;
  padding: 0.15rem 0.45rem 0.15rem 0.3rem;
  line-height: 1.2;
  white-space: nowrap;
}

.book-deposit__icon {
  width: 0.95rem;
  height: 0.95rem;
  flex-shrink: 0;
}

.book-choice span {
  color: var(--muted);
  font-size: 0.85rem;
  white-space: nowrap;
}

.book-choice.is-active {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent);
}

.book-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  max-height: 220px;
  overflow: auto;
  margin-bottom: 1rem;
}

.book-slot {
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 0.75rem;
  padding: 0.45rem 0.75rem;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}

.book-slot.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.book-nav {
  display: flex;
  gap: 0.5rem;
}

.book-nav .btn {
  flex: 1;
}

.search-list {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1.5rem;
}

.search-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  border-radius: 1rem;
}

.search-row--clickable {
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.search-row--clickable:hover,
.search-row--clickable:focus-visible {
  border-color: rgba(15, 118, 110, 0.35);
  background: #fff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
  outline: none;
}

.search-row__meta {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.search-row__dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.search-row__text {
  min-width: 0;
}

.search-row__text strong {
  display: block;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-row__loc {
  display: inline !important;
  font-weight: 600;
  color: var(--muted);
  font-size: 0.86em;
}

.search-row__text > span {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
}

.search-row__contact {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.74rem;
  color: var(--muted);
  line-height: 1.4;
}

.search-row__contact-phone,
.search-row__contact-maps {
  color: var(--brand, #0f766e);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.modal__panel--commerce {
  width: min(420px, 100%);
}

.commerce-detail__head {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.commerce-detail__dot {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  margin-top: 0.35rem;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.06);
}

.commerce-detail__type,
.commerce-detail__loc {
  margin: 0.15rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.commerce-detail__type {
  margin-top: 0;
  font-weight: 700;
  color: var(--brand-ink);
}

.commerce-detail__meta {
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.commerce-detail__meta > div {
  padding: 0.7rem 0.85rem;
  background: var(--sand, #f5f1ea);
  border-radius: 0.85rem;
}

.commerce-detail__meta dt {
  margin: 0 0 0.2rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.commerce-detail__meta dd {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--brand-ink);
}

.commerce-detail__meta a {
  color: var(--brand, #0f766e);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.commerce-detail__hours {
  margin: 0.85rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.commerce-detail__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.15rem;
}

.commerce-detail__actions .btn {
  flex: 1 1 auto;
  min-width: 8.5rem;
}

.commerce-detail__hint {
  margin: 0.85rem 0 0;
  font-size: 0.82rem;
}

.muted {
  color: var(--muted);
  font-size: 0.95rem;
}

.status-msg {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
}

.status-msg.is-error {
  color: #b91c1c;
}

.status-msg.is-ok {
  color: #047857;
}

/* ——— Viewer panel ——— */
.viewer-panel {
  display: none;
  padding: 1.75rem 0 1rem;
  scroll-margin-top: 5rem;
}

.viewer-panel.is-visible,
.viewer-panel.viewer-panel--page {
  display: block;
}

.page-espace .espace-main {
  padding-top: 1.5rem;
  padding-bottom: 3rem;
}

.page-espace .viewer-panel--page.hidden,
.espace-gate.hidden {
  display: none !important;
}

.espace-gate {
  margin: 1.5rem 0;
}

.viewer-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.4rem;
  border-radius: 1.35rem;
  background:
    linear-gradient(120deg, rgba(37, 99, 235, 0.1), rgba(13, 148, 136, 0.12)),
    #fff;
  border: 1px solid rgba(37, 99, 235, 0.15);
  margin-bottom: 1.5rem;
}

.viewer-banner h2 {
  font-family: var(--font-display);
  margin: 0 0 0.25rem;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
  padding-bottom: 0.06em;
}

.viewer-banner p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.merchant-cta {
  display: none;
  margin-top: 0.75rem;
}

.merchant-cta.is-visible {
  display: block;
}

/* ——— Modal ——— */
.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

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

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 31, 68, 0.45);
  backdrop-filter: blur(4px);
}

.modal__panel {
  position: relative;
  width: min(440px, 100%);
  max-height: min(90vh, 720px);
  overflow: auto;
  background: #fff;
  border-radius: 1.35rem;
  padding: 1.4rem 1.35rem 1.5rem;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
  animation: fade-up 0.25s ease both;
}

.modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  border: 0;
  background: transparent;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
  padding: 0.25rem 0.45rem;
}

.auth-tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1.1rem;
  padding: 0.25rem;
  background: var(--sand);
  border-radius: 999px;
}

.auth-tab {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 0.55rem;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  color: var(--muted);
}

.auth-tab.is-active {
  background: #fff;
  color: var(--brand-ink);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.auth-panel {
  display: none;
}

.auth-panel.is-active {
  display: block;
}

.auth-field {
  margin-bottom: 0.75rem;
}

.auth-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: var(--muted);
}

.kind-choices {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}

.kind-choice {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  cursor: pointer;
  background: #fff;
}

.kind-choice:has(input:checked) {
  border-color: rgba(37, 99, 235, 0.45);
  background: rgba(37, 99, 235, 0.05);
}

.kind-choice strong {
  display: block;
  font-size: 0.92rem;
}

.kind-choice span {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
}

.auth-actions {
  margin-top: 1rem;
}

/* ——— Footer ——— */
.site-footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  justify-content: space-between;
  align-items: flex-start;
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-width: min(100%, 18rem);
}

.site-footer__copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  align-items: center;
}

.site-footer__nav a {
  color: var(--brand-ink);
  font-weight: 650;
  text-decoration: none;
}

.site-footer__nav a:hover {
  text-decoration: underline;
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.85rem;
  margin: 0;
  font-size: 0.8rem;
}

.site-footer__legal a {
  color: #64748b;
  font-weight: 500;
  text-decoration: none;
}

.site-footer__legal a:hover {
  color: var(--brand-ink);
  text-decoration: underline;
}

.hidden {
  display: none !important;
}

/* ——— Responsive ——— */
@media (max-width: 920px) {
  .hero__grid {
    grid-template-columns: 1fr;
    padding-top: 1.1rem;
    padding-bottom: 1.35rem;
  }

  .hero-visual {
    min-height: 260px;
    padding: 0.85rem;
    border-radius: 1.35rem;
  }

  .feature-row,
  .roles {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .hero__brand {
    font-size: 2.65rem;
  }

  .agenda-board {
    grid-template-columns: repeat(2, 1fr);
  }

  .agenda-tile:nth-child(2) {
    grid-row: auto;
    min-height: 88px;
  }

  .agenda-tile:nth-child(6) {
    display: none;
  }

  .nav-link[data-scroll]:not(.nav-mes-agendas) {
    display: none;
  }

  .page-espace .espace-main {
    padding-top: 1rem;
  }

  .espace-rdv-panel {
    margin-bottom: 1.75rem;
    padding: 1rem 0.95rem 1.1rem;
  }

  .espace-profile-panel {
    margin-bottom: 1.75rem;
    padding: 1rem 0.95rem 1.1rem;
  }

  .espace-profile-grid {
    grid-template-columns: 1fr;
  }

  .espace-rdv-title {
    font-size: 1.35rem !important;
  }

  .rdv-row {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.55rem 0.75rem;
  }

  .rdv-row__status {
    margin-left: auto;
  }

  .page-espace .section__head {
    margin-bottom: 1.15rem;
  }

  .page-espace .toolbar {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ========== Bento / Bentos (landing) ========== */
.hero {
  position: relative;
  padding: 1.25rem 0 0.35rem;
  overflow: visible;
  isolation: isolate;
}
.hero::before { display: none; }

.bento {
  display: grid;
  gap: 1rem;
}
.bento--hero {
  grid-template-columns: 1.35fr 1fr 1fr;
  grid-template-areas:
    "brand lilac sand"
    "brand lilac mint";
  padding: 0.35rem 0 1.5rem;
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
  animation: bentoIn .55s ease both;
}
.bento-panel--hero-brand { grid-area: brand; }
.bento--hero .bento-panel--lilac { grid-area: lilac; }
.bento--hero .bento-panel--sand { grid-area: sand; }
.bento--hero .bento-panel--mint { grid-area: mint; }

.bento--features { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bento--features .bento-panel--wide { grid-column: span 2; }
.bento--roles { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.bento-panel {
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  border: 1px solid rgba(255,255,255,.6);
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.bento-panel:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 44px rgba(15, 58, 120, .1);
}
.bento-panel--sky { background: var(--bento-sky); }
.bento-panel--lilac { background: var(--bento-lilac); }
.bento-panel--sand { background: var(--bento-sand); }
.bento-panel--mint { background: var(--bento-mint); }
.bento-panel--peach { background: var(--bento-peach); }

.bento-panel--hero-brand .hero__brand {
  font-size: clamp(2.6rem, 6vw, 4.25rem);
  margin-bottom: .5rem;
}
.bento-panel--hero-brand .hero__headline {
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  max-width: 22ch;
}
.bento-panel--hero-brand .hero__lead { margin-bottom: 1rem; }

.bento-panel__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.18rem;
  letter-spacing: -.02em;
  margin: 0;
  color: var(--brand-ink);
}
.bento-panel__lead {
  margin: 0;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.45;
}
.bento-card {
  background: #fff;
  border-radius: var(--radius-sm);
  padding: .95rem 1rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.bento-card--amber {
  background: #fff9ef;
  border: 1px solid #fde68a;
}
.bento-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  font-size: .88rem;
  color: var(--muted);
}
.bento-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: .15rem .55rem;
  font-size: .72rem;
  font-weight: 700;
  background: #e2e8f0;
  color: #334155;
}
.bento-pill--ok { background: #d1fae5; color: #047857; }
.bento-icon {
  display: inline-flex;
  color: #b45309;
}
.bento-icon svg { display: block; }
.bento-progress {
  height: .45rem;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
  margin-top: .2rem;
}
.bento-progress > i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--teal));
}
.bento-slots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .35rem;
}
.bento-slots > i {
  height: 2.1rem;
  border-radius: .65rem;
  background: #e2e8f0;
}
.bento-slots > i.is-busy {
  background: color-mix(in srgb, var(--brand) 55%, #93c5fd);
}
@keyframes bentoIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@media (max-width: 960px) {
  .bento--hero {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "brand brand"
      "lilac sand"
      "lilac mint";
  }
  .bento--features, .bento--roles { grid-template-columns: 1fr 1fr; }
  .bento--features .bento-panel--wide { grid-column: span 2; }
}
@media (max-width: 640px) {
  .bento--hero, .bento--features, .bento--roles {
    grid-template-columns: 1fr;
    grid-template-areas: none;
  }
  .bento-panel--hero-brand,
  .bento--hero .bento-panel--lilac,
  .bento--hero .bento-panel--sand,
  .bento--hero .bento-panel--mint { grid-area: auto; }
  .bento--features .bento-panel--wide { grid-column: auto; }
  .bento-panel--hero-brand .hero__headline { max-width: none; }
}

/* ========== Mon espace — Bento total ========== */
.page-espace .espace-main {
  padding-top: 1.25rem;
  padding-bottom: 2.5rem;
}
.page-espace .espace-bento {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}
.page-espace .espace-hero-banner,
.page-espace .espace-gate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0;
}
.page-espace .espace-rdv-panel {
  margin-bottom: 0;
  background: var(--bento-mint);
  border: 1px solid rgba(255,255,255,.55);
  box-shadow: var(--shadow);
}
.page-espace .espace-sound-prefs {
  border-top: 0;
  margin-top: .75rem;
  padding: .85rem 1rem;
}
.page-espace .rdv-list {
  display: grid;
  gap: .65rem;
}
.page-espace .rdv-row,
.page-espace .rdv-card {
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(15, 23, 42, 0.05);
  padding: .9rem 1rem;
}
.page-espace .tiles .tile,
.page-espace .tiles--showcase .tile {
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  min-height: 132px;
}
.page-espace .search-list > * {
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(15, 23, 42, 0.05);
  margin-bottom: .55rem;
}
.page-espace .modal__panel {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.7);
}
@media (min-width: 900px) {
  .page-espace .espace-bento {
    grid-template-columns: 1.15fr 1fr;
    grid-template-areas:
      "rdv subs"
      "browse browse";
  }
  .page-espace #my-rdv-block { grid-area: rdv; }
  .page-espace #subs-block { grid-area: subs; }
  .page-espace #browse-block { grid-area: browse; }
}
