:root {
  --violet: #8b63d6;
  --violet-deep: #5f3aa8;
  --lilac: #d9c4ff;
  --lilac-soft: #f2eaff;
  --pink: #e88ed8;
  --pink-soft: #fff0fb;
  --blue: #7fbee9;
  --green: #9bd86c;
  --green-soft: #f2ffe9;
  --gold: #ffd056;
  --gold-soft: #fff6df;
  --gray-soft: #e9e7ee;
  --cream: #fffdf7;
  --white: #ffffff;
  --ink: #342f38;
  --muted: #716a78;
  --line: #e7def5;
  --shadow: 0 22px 70px rgba(95, 58, 168, 0.16);
  --shadow-soft: 0 14px 40px rgba(95, 58, 168, 0.12);
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  background:
    radial-gradient(circle at 10% 10%, rgba(232, 142, 216, 0.18), transparent 28rem),
    radial-gradient(circle at 88% 12%, rgba(127, 190, 233, 0.18), transparent 24rem),
    linear-gradient(180deg, #fffcff 0%, #fbf6ff 42%, #fffdf7 100%);
}

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

a {
  color: var(--violet-deep);
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

p {
  margin: 0 0 1rem;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #570082;
}

h1 {
  font-size: clamp(2rem, 2vw, 4rem);
  max-width: 980px;
}

h2 {
  font-size: clamp(2rem, 2vw, 4rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  margin-bottom: 0.8rem;
}

ul {
  padding-left: 1.25rem;
  margin: 0.5rem 0 0;
}

li + li {
  margin-top: 0.45rem;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.8rem 1rem;
  color: var(--white);
  background: var(--violet-deep);
  border-radius: 999px;
  transition: top 0.2s ease;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(255, 253, 255, 0.82);
  border-bottom: 1px solid rgba(139, 99, 214, 0.12);
}

.navbar {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--violet-deep);
  font-weight: 800;
  font-size: 1.15rem;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  color: var(--white);
  background: linear-gradient(145deg, var(--violet), var(--pink));
  box-shadow: 0 10px 26px rgba(139, 99, 214, 0.25);
}

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

.nav-links a {
  padding: 0.6rem 0.8rem;
  color: var(--ink);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.94rem;
}

.nav-links a:hover,
.nav-links a:focus,
.nav-links .admin-link {
  color: var(--violet-deep);
  background: rgba(217, 196, 255, 0.35);
  text-decoration: none;
}

.hero-section {
  padding: clamp(1rem, 2.2vw, 2rem) 0 clamp(2.25rem, 4vw, 3.5rem);
  overflow: hidden;
}

.hero-media-grid {
  width: min(1080px, calc(100% - 2rem));
  margin: 0 auto clamp(1rem, 2.5vw, 2rem);
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
  align-items: center;
}

.media-card {
  position: relative;
  min-height: 0;
  margin: 0;
  padding: clamp(0.45rem, 1vw, 0.85rem);
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(139, 99, 214, 0.13);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  background:
    radial-gradient(circle at 50% 35%, rgba(217, 196, 255, 0.42), transparent 16rem),
    rgba(255, 255, 255, 0.82);
}

.media-card::before {
  content: "";
  position: absolute;
  inset: 0.45rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  pointer-events: none;
}

.poster-card {
  background: linear-gradient(145deg, rgba(155, 216, 108, 0.26), rgba(217, 196, 255, 0.46));
}

.poster-card img,
.logo-card img {
  height: clamp(220px, 26vw, 360px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.poster-card img {
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(52, 47, 56, 0.13);
}

.logo-card {
  background:
    radial-gradient(circle at 50% 45%, rgba(232, 142, 216, 0.2), transparent 13rem),
    radial-gradient(circle at 45% 42%, rgba(127, 190, 233, 0.16), transparent 11rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(242, 234, 255, 0.76));
}

.logo-card img {
  filter: drop-shadow(0 10px 22px rgba(139, 99, 214, 0.14));
}

.container,
.container-narrow {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
}

.container-narrow {
  width: min(980px, calc(100% - 2rem));
}

.hero-copy {
  text-align: center;
}

.hero-copy .eyebrow {
  font-size: clamp(1.12rem, 2vw, 1.45rem);
  letter-spacing: 0.02em;
  text-transform: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  color: var(--violet-deep);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.eyebrow::before {
  content: "";
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: conic-gradient(from 180deg, var(--violet), var(--pink), var(--blue), var(--green), var(--gold), var(--violet));
  box-shadow: 0 8px 22px rgba(139, 99, 214, 0.22);
}

.hero-lead {
  max-width: 730px;
  margin: 1.4rem auto 0;
  color: var(--muted);
  font-size: clamp(1.12rem, 2vw, 1.45rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.25rem;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  text-decoration: none;
}

.button:hover,
.button:focus {
  transform: translateY(-1px);
  text-decoration: none;
}

.button-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--violet), var(--pink));
  box-shadow: 0 18px 34px rgba(139, 99, 214, 0.28);
}

.button-secondary {
  color: var(--violet-deep);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 12px 24px rgba(95, 58, 168, 0.08);
}

.button-danger {
  color: #9d174d;
  background: #fff0f4;
  border: 1px solid rgba(157, 23, 77, 0.16);
}

.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.soft-section {
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 208, 86, 0.16), transparent 22rem),
    radial-gradient(circle at 80% 30%, rgba(155, 216, 108, 0.13), transparent 26rem),
    rgba(255, 255, 255, 0.54);
  border-block: 1px solid rgba(139, 99, 214, 0.12);
}

.section-heading {
  max-width: 740px;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-heading p:not(.eyebrow):not(.portrait-caption) {
  color: var(--muted);
  font-size: 1.08rem;
  margin-top: 1rem;
}

.profile-portrait {
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
  margin-top: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.portrait-caption {
  max-width: 320px;
  margin: 0.6rem 0 0;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--violet-deep);
  text-align: center;
}

.card-grid {
  display: grid;
  gap: 1rem;
}

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

.two-benefit-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.info-card,
.long-form-card,
.profile-card,
.booking-card,
.cancel-card,
.contact-mini-card,
.admin-card,
.login-card {
  border: 1px solid rgba(139, 99, 214, 0.12);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
}

.info-card {
  min-height: 100%;
  padding: clamp(1.25rem, 3vw, 2rem);
  overflow: hidden;
}

.benefit-card {
  display: grid;
  align-content: start;
  gap: 0.75rem;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  margin-bottom: 0.3rem;
  color: var(--violet-deep);
  border-radius: 1.1rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(217, 196, 255, 0.5));
  box-shadow: 0 12px 26px rgba(95, 58, 168, 0.12);
}

.card-icon svg,
.card-icon img {
  width: 2.45rem;
  height: 2.45rem;
}

.card-icon img {
  object-fit: contain;
}

.card-icon.image-icon {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.96);
}

.card-icon path {
  fill: none;
  stroke: currentColor;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.info-card h3,
.profile-card h3,
.long-form-card h3,
.admin-card h2,
.login-card h1,
.cancel-card h3 {
  color: var(--violet-deep);
}

.accent-violet {
  background: linear-gradient(180deg, rgba(242, 234, 255, 0.92), rgba(255, 255, 255, 0.9));
}

.accent-green {
  background: linear-gradient(180deg, rgba(242, 255, 233, 0.94), rgba(255, 255, 255, 0.9));
}

.accent-pink {
  background: linear-gradient(180deg, rgba(255, 240, 251, 0.94), rgba(255, 255, 255, 0.9));
}

.long-form-card {
  margin-top: 1rem;
  padding: clamp(1.5rem, 4vw, 3rem);
}

.long-form-card p,
.profile-card p,
.profile-card li,
.long-form-card li {
  color: #46404c;
}

.legal-todo {
  background: rgba(255, 208, 86, 0.4);
  color: var(--ink);
  padding: 0.05rem 0.35rem;
  border-radius: 6px;
  font-weight: 700;
}

.sitemap-list {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding-left: 1.2rem;
}

.benefit-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 1rem;
  padding-left: 0;
  list-style: none;
}

.benefit-list li {
  padding: 1rem;
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, rgba(242, 234, 255, 0.62), rgba(255, 255, 255, 0.78));
  border: 1px solid rgba(139, 99, 214, 0.1);
}

.two-col-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.35fr;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
}

.sticky-heading {
  position: sticky;
  top: 6rem;
}

.text-link {
  display: inline-flex;
  margin-top: 0.5rem;
  font-weight: 800;
}

.profile-card {
  padding: clamp(1.5rem, 4vw, 3rem);
}

.profile-card h3:not(:first-child) {
  margin-top: 2rem;
}

.location-accordion {
  margin-top: 1rem;
}

.location-accordion summary {
  cursor: pointer;
  font-weight: 700;
}

.location-accordion p {
  margin-top: 0.6rem;
}

.highlight-note {
  padding: 1rem 1.2rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(255, 208, 86, 0.28), rgba(217, 196, 255, 0.38));
  border: 1px solid rgba(139, 99, 214, 0.12);
  font-weight: 700;
}

.booking-section {
  background:
    linear-gradient(135deg, rgba(242, 234, 255, 0.74), rgba(255, 240, 251, 0.64)),
    var(--cream);
}

.booking-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.2fr;
  gap: 1rem;
  align-items: start;
}

.booking-intro {
  grid-row: span 2;
}

.contact-mini-card {
  display: grid;
  gap: 0.55rem;
  padding: 1rem;
  margin-top: 1.5rem;
  font-weight: 700;
  color: var(--violet-deep);
}

.contact-line {
  display: grid;
  grid-template-columns: 1.55rem minmax(0, 1fr);
  align-items: start;
  gap: 0.35rem;
}

.contact-icon {
  width: 1.55rem;
  line-height: 1.65;
  text-align: center;
}

.contact-text {
  display: block;
}

.contact-mini-card a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.booking-card,
.cancel-card {
  padding: clamp(1.25rem, 3vw, 2rem);
}

.form {
  display: grid;
  gap: 1rem;
}

.form-row.two-fields,
.settings-inline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 1rem;
}

label {
  display: grid;
  gap: 0.42rem;
  color: var(--ink);
  font-weight: 800;
  font-size: 0.95rem;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 0.85rem 0.95rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  font: inherit;
  font-weight: 500;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 4px rgba(139, 99, 214, 0.13);
}

.form-message {
  min-height: 1.4rem;
  font-weight: 700;
}

.form-message.success,
.alert.success {
  color: #266b32;
}

.form-message.error,
.alert.error {
  color: #9d174d;
}

.alert.warning {
  color: #92400e;
  border-color: rgba(217, 119, 6, 0.35);
  background: rgba(253, 230, 138, 0.35);
}

.alert.warning ul {
  margin: 0.5rem 0;
  padding-left: 1.2rem;
}

.field-error {
  display: block;
  min-height: 1.1rem;
  color: #9d174d;
  font-size: 0.82rem;
  font-weight: 700;
}

input.is-invalid {
  border-color: #9d174d;
  box-shadow: 0 0 0 3px rgba(157, 23, 77, 0.12);
}

.site-footer {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 2.5rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  color: var(--muted);
  border-top: 1px solid rgba(139, 99, 214, 0.16);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.admin-page {
  min-height: calc(100vh - 74px);
  padding: clamp(2rem, 5vw, 4rem) 0;
}

.admin-shell {
  width: min(1320px, calc(100% - 2rem));
  margin: 0 auto;
}

.admin-shell-wide {
  width: min(1850px, calc(100% - 2rem));
}

.login-shell {
  display: grid;
  place-items: center;
}

.login-card {
  width: min(520px, 100%);
  padding: clamp(1.5rem, 4vw, 3rem);
}

.admin-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.alert {
  padding: 0.95rem 1rem;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(139, 99, 214, 0.14);
  margin-bottom: 1rem;
  font-weight: 800;
}

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

.admin-card {
  padding: 1.25rem;
  min-width: 0;
}

.admin-card h2 {
  font-size: 1.45rem;
  margin-bottom: 1rem;
}

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

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 850px;
}

th,
td {
  padding: 0.8rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  color: var(--violet-deep);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

small {
  color: var(--muted);
}

.actions-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.small-button {
  min-height: 2.2rem;
  padding: 0.45rem 0.7rem;
  border: 0;
  border-radius: 999px;
  color: var(--violet-deep);
  background: var(--lilac-soft);
  font-weight: 800;
  cursor: pointer;
}

.small-button.danger {
  color: #9d174d;
  background: #fff0f4;
}

.small-button:disabled {
  color: var(--text-muted, #6b7280);
  background: #e5e7eb;
  cursor: not-allowed;
}

.status-pill {
  display: inline-flex;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.status-confirmed {
  color: #266b32;
  background: rgba(155, 216, 108, 0.24);
}

.status-cancelled {
  color: #9d174d;
  background: rgba(232, 142, 216, 0.18);
}

.status-done {
  color: #1c5f85;
  background: rgba(127, 190, 233, 0.24);
}

/* Codes couleur du tableau "Rendez-vous" dans Gestion de l'agenda : vert pastel pour une séance
   Reiki (1h), rose pastel pour une séance Magnétisme (30 min). Les jours/lignes sans rendez-vous
   restent blancs (aucune classe appliquée). */
.appointment-row-reiki {
  background: var(--green-soft);
}

.appointment-row-magnetisme {
  background: var(--pink-soft);
}

/* Repos de MAGNETISME_BUFFER_MINUTES après une séance de Magnétisme, pendant lequel aucun nouveau
   rendez-vous ne peut être pris (voir conflict_exists() dans includes/helpers.php). */
.buffer-badge {
  display: inline-block;
  margin-top: 0.3rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: var(--gold-soft);
  color: #8a6a00;
  font-size: 0.78rem;
  font-weight: 800;
}

.compact-form {
  gap: 0.8rem;
}

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

.block-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.75rem;
  border-radius: 14px;
  background: var(--gray-soft);
}

.settings-form {
  display: grid;
  gap: 1rem;
}

.slots-link-card p {
  margin-bottom: 1rem;
}

.month-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.month-nav h2 {
  font-size: 1.45rem;
  text-align: center;
}

.slots-table {
  min-width: 1400px;
}

.slots-table th {
  text-align: center;
}

.week-actions-col {
  width: 1%;
  white-space: nowrap;
}

.slot-day {
  vertical-align: top;
  min-width: 210px;
}

.slot-day.is-outside {
  background: rgba(113, 106, 120, 0.05);
}

.slot-day.is-blocked {
  background: rgba(113, 106, 120, 0.1);
}

.slot-day.is-blocked input[type="time"],
.slot-day.is-blocked .icon-button {
  opacity: 0.5;
  cursor: not-allowed;
}

.slot-day-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.slot-daynum {
  font-weight: 900;
  color: var(--violet-deep);
  /* Aligne le texte avec celui des champs "début" en dessous (padding du .slot-pair + de l'input). */
  padding-left: 1.15rem;
}

.slot-day-actions {
  display: flex;
  gap: 0.3rem;
}

.icon-button {
  width: 1.7rem;
  height: 1.7rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: var(--lilac-soft);
  color: var(--violet-deep);
  font-size: 0.9rem;
  line-height: 1;
  cursor: pointer;
}

.icon-button:hover,
.icon-button:focus-visible {
  background: var(--lilac);
}

.icon-button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: var(--lilac-soft);
}

.form-field {
  display: grid;
  gap: 0.42rem;
}

.field-label {
  color: var(--ink);
  font-weight: 800;
  font-size: 0.95rem;
}

.field-hint {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0;
}

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

.radio-option {
  display: flex;
  align-items: center;
  flex: 1 1 0;
  gap: 0.45rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.92);
  font-weight: 700;
  font-size: 0.86rem;
  line-height: 1.25;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.radio-option:has(input:checked) {
  border-color: var(--violet);
  box-shadow: 0 0 0 4px rgba(139, 99, 214, 0.13);
}

.radio-option input[type="radio"] {
  width: auto;
  flex-shrink: 0;
  margin: 0;
  accent-color: var(--violet);
}

.service-duration {
  display: block;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.78rem;
}

.date-picker {
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.92);
}

.date-picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
  font-weight: 800;
  color: var(--violet-deep);
}

.date-picker-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

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

.date-picker-day {
  aspect-ratio: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  background: rgba(155, 216, 108, 0.18);
  color: var(--ink);
  font-weight: 700;
  font: inherit;
  padding: 0;
  cursor: pointer;
}

.date-picker-day:hover:not(:disabled) {
  background: rgba(155, 216, 108, 0.32);
}

.date-picker-day.is-outside {
  visibility: hidden;
}

.date-picker-day.is-unavailable {
  background: rgba(113, 106, 120, 0.1);
  color: var(--muted);
  cursor: not-allowed;
}

.date-picker-day.is-selected {
  background: linear-gradient(135deg, var(--violet), var(--pink));
  color: var(--white);
}

.slot-pair {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.4rem;
  padding: 0.2rem;
  border-radius: 8px;
}

.slot-pair.is-filled {
  background: rgba(155, 216, 108, 0.24);
}

.slot-block-info {
  background: rgba(113, 106, 120, 0.14);
  border-radius: 8px;
  padding: 0.35rem 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.78rem;
  line-height: 1.3;
}

.slot-block-info strong {
  display: block;
  color: var(--muted);
}

.slot-pair input[type="time"] {
  min-width: 0;
  flex: 1;
}

.slot-pair input[type="time"]::-webkit-clear-button,
.slot-pair input[type="time"]::-webkit-inner-spin-button {
  display: none;
}

@media (max-width: 980px) {
  .three-columns,
  .two-benefit-columns,
  .two-col-layout,
  .booking-grid,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .sticky-heading,
  .booking-intro {
    position: static;
    grid-row: auto;
  }

  .benefit-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .navbar,
  .site-footer,
  .admin-topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero-media-grid {
    grid-template-columns: 1fr;
  }

  .media-card {
    padding: 0.75rem;
  }

  .poster-card img,
  .logo-card img {
    height: clamp(200px, 46vw, 320px);
  }

  .form-row.two-fields,
  .settings-inline {
    grid-template-columns: 1fr;
  }
}

/* Compatibilité mobile Android / iOS */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-width: 320px;
  overflow-x: hidden;
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: rgba(139, 99, 214, 0.18);
}

button,
.button,
.small-button,
.nav-links a,
input,
select,
textarea {
  min-height: 44px;
}

input,
select,
textarea {
  font-size: 16px;
}

section[id] {
  scroll-margin-top: 5.5rem;
}

@media (max-width: 860px) {
  .site-header {
    position: sticky;
  }

  .navbar {
    min-height: auto;
    padding: 0.65rem 0;
    gap: 0.75rem;
  }

  .nav-links {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.4rem;
  }

  .nav-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 0.7rem;
    text-align: center;
  }

  .hero-section {
    padding-top: 0.65rem;
  }

  .hero-media-grid {
    width: min(660px, calc(100% - 1rem));
    grid-template-columns: 1fr;
    gap: 0.65rem;
    margin-bottom: 1rem;
  }

  .media-card {
    padding: 0.45rem;
    border-radius: 18px;
  }

  .media-card::before {
    display: none;
  }

  .poster-card img,
  .logo-card img {
    height: clamp(170px, 42vw, 300px);
  }

  .hero-actions .button {
    min-width: min(100%, 18rem);
  }

  .booking-grid,
  .admin-grid {
    gap: 0.85rem;
  }
}

@media (max-width: 560px) {
  :root {
    --radius-xl: 22px;
    --radius-lg: 18px;
    --radius-md: 14px;
  }

  .navbar,
  .container,
  .container-narrow,
  .site-footer,
  .admin-shell {
    width: min(var(--max), calc(100% - 1rem));
  }

  .brand {
    font-size: 1.05rem;
  }

  .brand-mark {
    width: 2rem;
    height: 2rem;
  }

  .nav-links a {
    font-size: 0.9rem;
    padding-inline: 0.5rem;
  }

  h1,
  h2 {
    font-size: clamp(1.75rem, 9vw, 2.55rem);
    letter-spacing: -0.04em;
  }

  h3 {
    font-size: clamp(1.15rem, 5.5vw, 1.45rem);
  }

  .hero-copy .eyebrow,
  .hero-lead {
    font-size: clamp(1.05rem, 5vw, 1.25rem);
  }

  .eyebrow {
    margin-bottom: 0.75rem;
  }

  .eyebrow::before {
    width: 1rem;
    height: 1rem;
    flex: 0 0 auto;
  }

  .hero-actions {
    margin-top: 1.2rem;
    gap: 0.6rem;
  }

  .hero-actions .button,
  .booking-card .button,
  .cancel-card .button,
  .login-card .button,
  .settings-form .button,
  .compact-form .button {
    width: 100%;
  }

  .poster-card img,
  .logo-card img {
    height: clamp(150px, 45vw, 230px);
  }

  .section {
    padding: 2.75rem 0;
  }

  .section-heading {
    margin-bottom: 1.4rem;
  }

  .info-card,
  .long-form-card,
  .profile-card,
  .booking-card,
  .cancel-card,
  .admin-card,
  .login-card {
    padding: 1.1rem;
  }

  .benefit-card {
    gap: 0.6rem;
  }

  .card-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
  }

  .card-icon svg,
  .card-icon img {
    width: 2.15rem;
    height: 2.15rem;
  }

  .benefit-list li {
    padding: 0.85rem;
  }

  .contact-mini-card {
    padding: 0.85rem;
  }

  .contact-line {
    grid-template-columns: 1.45rem minmax(0, 1fr);
  }

  .form {
    gap: 0.85rem;
  }

  input,
  select,
  textarea {
    padding: 0.78rem 0.85rem;
  }

  .block-list li {
    flex-direction: column;
    align-items: stretch;
  }

  .small-button {
    width: 100%;
  }

  table {
    min-width: 720px;
  }
}

@media (max-width: 380px) {
  .nav-links {
    grid-template-columns: 1fr;
  }

  .poster-card img,
  .logo-card img {
    height: 145px;
  }
}

@media (hover: none) {
  .button:hover,
  .button:focus {
    transform: none;
  }
}
