/* Mobile-first visual calibration patch.
   Reversible: remove this import from header-client.php and header-admin.php. */

:root {
  --mf-gap-xs: 0.5rem;
  --mf-gap-sm: 0.8rem;
  --mf-gap-md: 1rem;
  --mf-gap-lg: 1.35rem;
}

html,
body {
  overflow-x: hidden;
}

body {
  line-height: 1.65;
}

.site-content {
  min-height: calc(100vh - 220px);
}

.container {
  width: min(100%, var(--container));
  padding-inline: 1rem;
}

.section {
  padding-block: 1rem 2rem;
}

/* Keep paragraphs fluid by default and avoid narrow text columns on mobile. */
p,
.section p,
.hero p,
.booking-surface p,
.admin-panel p {
  max-width: none;
}

h1,
h2,
h3 {
  line-height: 1.2;
}

.small {
  display: block;
}

.surface {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: clamp(1rem, 3.5vw, 1.8rem);
  background:
    radial-gradient(900px 420px at -12% -8%, rgba(245, 197, 24, 0.12), transparent 42%),
    radial-gradient(760px 260px at 110% 0%, rgba(34, 197, 94, 0.09), transparent 38%),
    #0f131a;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.36);
}

.logo-icon {
  width: 52px;
  height: auto;
}

.site-header .container {
  min-height: 68px;
  height: auto;
  padding-block: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem 0.8rem;
  flex-wrap: wrap;
}

.main-nav {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.main-nav::-webkit-scrollbar {
  display: none;
}

.main-nav ul {
  display: flex;
  width: max-content;
  min-width: 100%;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.4rem;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.42rem 0.65rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.84rem;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
  opacity: 0.92;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  opacity: 1;
  border-color: rgba(245, 197, 24, 0.45);
  background: rgba(245, 197, 24, 0.1);
}

.brand-hero {
  padding: 0.9rem 1rem 0.4rem;
}

.brand-logo {
  width: min(430px, 88vw);
}

.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  min-height: clamp(230px, 48vw, 360px);
  padding: 1rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-size: cover;
  background-position: center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.18) 0%,
    rgba(9, 11, 16, 0.78) 74%,
    rgba(9, 11, 16, 0.95) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 44rem;
  display: grid;
  gap: 0.85rem;
}

.hero__content h1 {
  margin: 0;
  font-size: clamp(1.55rem, 6.2vw, 2.2rem);
}

.hero__content p {
  margin: 0;
  color: #dce4f3;
}

.hero__actions,
.hero-actions {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.2rem;
}

.hero__actions .btn,
.hero-actions .btn {
  width: 100%;
  margin: 0;
}

.split {
  display: grid;
  gap: var(--mf-gap-md);
  align-items: center;
  margin-top: var(--mf-gap-md);
}

.split + .split {
  margin-top: var(--mf-gap-lg);
}

.split__text,
.split__media {
  min-width: 0;
}

.split__text h2 {
  margin-bottom: 0.6rem;
}

.split__text p {
  margin: 0;
}

.split__media img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn {
  min-height: 50px;
  white-space: normal;
}

.btn + .btn {
  margin-left: 0;
  margin-top: 0;
}

.booking-surface {
  width: 100%;
  margin: 0;
  border-radius: 18px;
  padding: clamp(1rem, 3vw, 1.6rem);
}

.notice {
  margin-bottom: 0.9rem;
}

.slot-grid {
  grid-template-columns: 1fr;
  gap: 0.9rem;
  margin-block: 1rem 1.5rem;
}

.slot-card {
  padding: 0.95rem;
}

.slot-card h3 {
  margin-bottom: 0.45rem;
  font-size: 1.35rem;
}

.slot-card p {
  margin-bottom: 0.65rem;
}

.slot-card .btn {
  margin-top: 0.5rem;
}

.booking-form {
  margin-top: 0.9rem;
  grid-template-columns: 1fr;
  gap: var(--mf-gap-sm);
}

.booking-form label.full,
.booking-form .btn {
  grid-column: auto;
}

.booking-form input,
.booking-form select,
.booking-form textarea,
.admin-search input,
.admin-bulk select {
  min-height: 50px;
  padding: 0.72rem 0.84rem;
}

.booking-form textarea {
  min-height: 138px;
}

.admin-site-header__inner {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 0.6rem;
}

.admin-main-nav {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  flex-wrap: nowrap;
  justify-content: flex-start;
  padding-bottom: 0.1rem;
}

.admin-main-nav::-webkit-scrollbar {
  display: none;
}

.admin-btn,
.admin-back-btn,
.admin-main-nav .admin-btn {
  width: auto;
  min-width: 0;
  min-height: 48px;
  height: auto;
  flex: 0 0 auto;
  padding: 0.55rem 0.9rem;
}

.admin-toolbar {
  flex-direction: column;
  align-items: flex-start;
}

.admin-search {
  grid-template-columns: 1fr;
}

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

.admin-grid.admin-grid--single {
  grid-template-columns: 1fr;
}

.admin-row,
.admin-row--wide,
.admin-row--contacts {
  grid-template-columns: 1fr;
  gap: 0.5rem;
  align-items: flex-start;
  padding-bottom: 0.75rem;
}

.admin-row--head {
  display: none;
}

.admin-check {
  justify-content: flex-start;
}

.admin-actions {
  width: 100%;
  gap: 0.55rem;
}

.admin-actions .btn,
.admin-actions form {
  width: 100%;
}

.admin-actions form .btn {
  width: 100%;
}

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

.admin-bulk select {
  min-width: 0;
  width: 100%;
}

.individual-date-row {
  display: grid !important;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.5rem !important;
}

.site-footer {
  margin-top: 1.8rem;
  padding: 2.2rem 0 1.2rem;
}

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

.footer-logo {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.footer-logo span {
  color: var(--brand);
}

.footer-title {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1.03rem;
}

.footer-links {
  display: grid;
  gap: 0.42rem;
}

.footer-links a {
  color: #d9dfeb;
  opacity: 0.92;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: #ffffff;
  opacity: 1;
}

.footer-bottom {
  margin-top: 1.45rem;
  padding-top: 1rem;
}

.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
}

#about-section .container {
  max-width: 1080px;
  margin-inline: auto;
}

#about-section .about-surface {
  display: grid;
  gap: 1rem;
}

#about-section .about-hero {
  min-height: clamp(260px, 46vw, 420px);
}

#about-section .about-split {
  margin-top: 0.2rem;
}

#about-section .about-inline-h1 {
  margin: 0.5rem 0 0.55rem;
  font-size: clamp(1.2rem, 3.8vw, 1.6rem);
  line-height: 1.2;
}

#about-section .about-inline-h1 + p {
  margin-top: 0.95rem;
}

#about-section .about-proof {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.1rem;
}

#about-section .about-proof__grid {
  display: grid;
  gap: 0.8rem;
}

#about-section .about-proof__card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.95rem;
}

#about-section .about-proof__card strong {
  display: block;
  margin-bottom: 0.35rem;
  color: #f7d447;
}

#about-section .about-proof__card p {
  margin: 0;
  color: #d3dbea;
}

#about-section .about-cta {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.2rem;
}

#about-section .about-cta p {
  color: #dce4f3;
}

@media (min-width: 600px) {
  .container {
    padding-inline: 1.2rem;
  }

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

  #about-section .about-proof__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 760px) {
  .section {
    padding-block: 1.2rem 2.6rem;
  }

  .hero {
    padding: 1.4rem;
  }

  .hero__actions,
  .hero-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .booking-form label.full,
  .booking-form .btn {
    grid-column: 1 / -1;
  }

  .admin-toolbar {
    flex-direction: row;
    align-items: center;
  }
}

@media (min-width: 980px) {
  .container {
    padding-inline: 1.25rem;
  }

  .site-header .container {
    flex-wrap: nowrap;
    padding-block: 0.35rem;
  }

  .main-nav {
    width: auto;
    overflow: visible;
  }

  .main-nav ul {
    width: auto;
    min-width: 0;
    gap: 1rem;
  }

  .main-nav a {
    padding: 0.3rem 0.2rem;
    border-radius: 8px;
    font-size: 0.98rem;
  }

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

  .split--reverse .split__text {
    order: 2;
  }

  .split--reverse .split__media {
    order: 1;
  }

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

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }

  .footer-bottom-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .admin-site-header__inner {
    grid-template-columns: auto 1fr;
    align-items: center;
  }

  .admin-main-nav {
    width: auto;
    overflow: visible;
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .admin-search {
    grid-template-columns: 1fr auto;
  }

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

  .admin-grid.admin-grid--single {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-row {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr) auto;
    align-items: center;
  }

  .admin-row--wide {
    grid-template-columns: 40px minmax(0, 1.2fr) minmax(0, 0.9fr) auto auto;
  }

  .admin-row--contacts {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr) minmax(0, 0.7fr) auto;
  }

  .admin-row--head {
    display: grid;
  }

  .admin-actions,
  .admin-actions .btn,
  .admin-actions form,
  .admin-actions form .btn {
    width: auto;
  }

  .admin-bulk__controls {
    flex-direction: row;
    align-items: center;
  }
}

@media (max-width: 767px) {
  .admin-page .surface.booking-surface {
    padding: 1rem;
  }

  .admin-page .admin-panel,
  .admin-page .admin-slot-row {
    padding: 0.9rem;
    border-radius: 14px;
  }

  .admin-page .admin-bulk__controls .btn,
  .admin-page .admin-type .btn,
  .admin-page .admin-search .btn {
    width: 100%;
  }

  .admin-page .admin-reservations-wrap,
  .admin-page .admin-table {
    overflow: visible;
  }

  .admin-page .admin-reservations,
  .admin-page .admin-table table {
    width: 100%;
    table-layout: fixed;
  }

  .admin-page .admin-reservations thead,
  .admin-page .admin-table table thead {
    display: none;
  }

  .admin-page .admin-reservations tbody,
  .admin-page .admin-table table tbody {
    display: grid;
    gap: 0.75rem;
  }

  .admin-page .admin-reservations tbody tr,
  .admin-page .admin-table table tbody tr {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
  }

  .admin-page .admin-reservations tbody td,
  .admin-page .admin-table table tbody td {
    display: block;
    padding: 0;
    border: 0 !important;
    white-space: normal;
    word-break: break-word;
  }

  .admin-page .admin-reservations tbody td::before,
  .admin-page .admin-table table tbody td::before {
    display: block;
    margin-bottom: 0.2rem;
    color: #9aa7bd;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
  }

  .admin-page .admin-reservations tbody tr td:first-child:nth-last-child(5)::before {
    content: "Client";
  }

  .admin-page .admin-reservations tbody tr td:first-child:nth-last-child(5) + td::before {
    content: "Numéro";
  }

  .admin-page .admin-reservations tbody tr td:first-child:nth-last-child(5) + td + td::before {
    content: "Mail";
  }

  .admin-page .admin-reservations tbody tr td:first-child:nth-last-child(5) + td + td + td::before {
    content: "Statut";
  }

  .admin-page .admin-reservations tbody tr td:first-child:nth-last-child(5) + td + td + td + td::before {
    content: "Actions";
  }

  .admin-page .admin-reservations.admin-reservations--with-select tbody tr td:first-child:nth-last-child(5)::before {
    content: "Select";
  }

  .admin-page .admin-reservations.admin-reservations--with-select tbody tr td:first-child:nth-last-child(5) + td::before {
    content: "Client";
  }

  .admin-page .admin-reservations.admin-reservations--with-select tbody tr td:first-child:nth-last-child(5) + td + td::before {
    content: "Email";
  }

  .admin-page .admin-reservations.admin-reservations--with-select tbody tr td:first-child:nth-last-child(5) + td + td + td::before {
    content: "Status";
  }

  .admin-page .admin-reservations.admin-reservations--with-select tbody tr td:first-child:nth-last-child(5) + td + td + td + td::before {
    content: "Actions";
  }

  .admin-page .admin-reservations tbody tr td:first-child:nth-last-child(4)::before {
    content: "Horaire";
  }

  .admin-page .admin-reservations tbody tr td:first-child:nth-last-child(4) + td::before {
    content: "Client";
  }

  .admin-page .admin-reservations tbody tr td:first-child:nth-last-child(4) + td + td::before {
    content: "Mail";
  }

  .admin-page .admin-reservations tbody tr td:first-child:nth-last-child(4) + td + td + td::before {
    content: "Statut";
  }

  .admin-page .admin-reservations tbody tr td:first-child:nth-last-child(7)::before {
    content: "Client";
  }

  .admin-page .admin-reservations tbody tr td:first-child:nth-last-child(7) + td::before {
    content: "Numéro";
  }

  .admin-page .admin-reservations tbody tr td:first-child:nth-last-child(7) + td + td::before {
    content: "Mail";
  }

  .admin-page .admin-reservations tbody tr td:first-child:nth-last-child(7) + td + td + td::before {
    content: "Mon objectif";
  }

  .admin-page .admin-reservations tbody tr td:first-child:nth-last-child(7) + td + td + td + td::before {
    content: "Message";
  }

  .admin-page .admin-reservations tbody tr td:first-child:nth-last-child(7) + td + td + td + td + td::before {
    content: "Statut";
  }

  .admin-page .admin-reservations tbody tr td:first-child:nth-last-child(7) + td + td + td + td + td + td::before {
    content: "Actions";
  }

  .admin-page .admin-reservations td form,
  .admin-page .admin-table table td form {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin: 0;
    width: 100%;
  }

  .admin-page .admin-reservations td .btn,
  .admin-page .admin-table table td .btn {
    width: 100%;
  }
}
