:root {
  --bg: #f4f1ea;
  --surface: #ffffff;
  --surface-soft: #efe6da;
  --surface-strong: #e0cdb6;
  --text: #1f1a17;
  --muted: #665a50;
  --line: #dacdc0;
  --primary: #a5522b;
  --primary-deep: #7f3b1d;
  --accent: #d2a66b;
  --success: #476a44;
  --shadow: 0 24px 70px rgba(16, 35, 61, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(165, 82, 43, 0.14), transparent 30%),
    linear-gradient(180deg, #faf6f0 0%, var(--bg) 100%);
}

body.modal-open {
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

a {
  color: inherit;
}

.hero {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(246, 238, 228, 0.95)),
    linear-gradient(160deg, #ffffff, #f0e7da);
  border: 1px solid rgba(218, 205, 192, 0.8);
  border-radius: 36px;
  box-shadow: var(--shadow);
  padding: 28px;
  overflow: hidden;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -70px -70px auto;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(210, 166, 107, 0.3), transparent 65%);
}

.topbar,
.hero-grid,
.trust-strip,
.booking-layout,
.summary-list div,
.hero-points,
.brand,
.section-head,
.schedule-header {
  display: flex;
}

.topbar,
.schedule-header,
.summary-list div,
.section-head {
  justify-content: space-between;
  align-items: center;
}

.hero-grid,
.booking-layout {
  gap: 24px;
}

.topbar {
  margin-bottom: 42px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.brand {
  gap: 14px;
  align-items: center;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary-deep), #ba6a3c);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
}

.brand-kicker {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
}

.eyebrow,
.badge,
.card-kicker,
.schedule-pill,
.service-index {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  font-size: 0.83rem;
  font-weight: 700;
}

.eyebrow {
  color: var(--primary);
  margin: 0 0 8px;
}

.badge,
.schedule-pill,
.card-kicker {
  padding: 8px 12px;
}

.badge {
  background: rgba(165, 82, 43, 0.1);
  color: var(--primary);
}

.card-kicker {
  background: rgba(210, 166, 107, 0.22);
  color: var(--primary-deep);
  width: fit-content;
}

.brand-name {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.95;
  color: var(--text);
}

.brand-name span:last-child {
  color: var(--primary);
}

.brand-tagline {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
}

.schedule-pill {
  background: rgba(71, 106, 68, 0.12);
  color: var(--success);
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 4.1rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  max-width: 12ch;
  margin-bottom: 18px;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

h3 {
  margin-bottom: 12px;
}

.lead {
  max-width: 58ch;
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.04rem;
}

.ghost-link,
.primary-link,
.secondary-link,
.primary-button {
  text-decoration: none;
  font-weight: 700;
  transition: 180ms ease;
}

.ghost-link {
  color: var(--text);
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--line);
}

.ghost-link i {
  margin-right: 8px;
}

.primary-link,
.secondary-link,
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border-radius: 16px;
  padding: 14px 18px;
  border: 0;
  cursor: pointer;
}

.primary-link,
.primary-button {
  color: #fff7f2;
  background: linear-gradient(135deg, var(--primary), #c27042);
  box-shadow: 0 16px 30px rgba(127, 59, 29, 0.24);
}

.secondary-link {
  color: var(--text);
  background: rgba(255, 255, 255, 0.9);
  margin-top: 12px;
}

.hero-grid {
  align-items: stretch;
}

.hero-points {
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero-points div,
.service-item,
.faq-grid article,
.summary-list div {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px;
}

.hero-points div {
  flex: 1 1 220px;
}

.hero-points strong {
  display: block;
  margin-bottom: 8px;
}

.hero-points span,
.summary-list span,
.trust-strip span,
.faq-grid p,
.service-item p,
.section-head > p,
.confirmation-note {
  color: var(--muted);
  line-height: 1.7;
}

.hero-card,
.booking-card,
.schedule-card,
.content-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero-card,
.booking-card,
.schedule-card,
.content-card,
.admin-auth-card,
.admin-section-nav {
  padding: 24px;
}

.hero-visual {
  margin: -24px -24px 18px;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
  max-height: 230px;
}

.hero-visual img,
.gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.trust-strip {
  margin-top: 24px;
  gap: 16px;
}

.trust-strip article {
  flex: 1;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.76);
}

.booking-section,
.split-card,
.faq-card,
.gallery-card {
  margin-top: 24px;
}

.section-head {
  gap: 24px;
  align-items: end;
  margin-bottom: 22px;
}

.section-head > div,
.section-head > p {
  flex: 1;
}

.booking-card {
  flex: 1.1;
}

.schedule-card {
  flex: 0.9;
}

.service-list,
.faq-grid {
  display: grid;
  gap: 16px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 16px;
}

.gallery-item {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
}

.gallery-item img {
  aspect-ratio: 4 / 3;
}

.gallery-item-large img {
  aspect-ratio: 4 / 4;
}

.gallery-item figcaption {
  padding: 14px 16px 16px;
  color: var(--muted);
  font-weight: 600;
}

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

.service-extra-list {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.74);
}

.service-extra-list h3 {
  margin-bottom: 10px;
}

.service-extra-list p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.service-index {
  color: var(--primary);
  padding: 0;
  margin-bottom: 12px;
}

.summary-list {
  display: grid;
  gap: 16px;
}

.summary-list div {
  gap: 16px;
  align-items: flex-start;
}

.summary-list strong {
  min-width: 140px;
}

.booking-form {
  display: grid;
  gap: 14px;
}

.field-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

.field-group input,
.field-group select,
.field-group textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fffdfa;
  color: var(--text);
  padding: 14px 15px;
}

.field-help {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.photo-previews,
.lead-attachments {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.photo-preview,
.lead-attachment {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.82);
}

.photo-preview img,
.lead-attachment img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.photo-preview figcaption,
.lead-attachment figcaption {
  padding: 10px 12px;
  color: var(--muted);
  font-size: 0.86rem;
}

.field-invalid {
  border-color: #c44747 !important;
  box-shadow: 0 0 0 3px rgba(196, 71, 71, 0.12);
}

.field-group input.field-invalid,
.field-group select.field-invalid,
.field-group textarea.field-invalid {
  background: #fff4f4;
}

.confirmation-note.success {
  color: var(--success);
}

.confirmation-note.error {
  color: #c44747;
}

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

.admin-hero {
  margin-bottom: 24px;
}

.admin-main {
  display: grid;
  gap: 24px;
}

.admin-auth-card,
.admin-section-nav {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.admin-auth-row {
  display: flex;
  gap: 12px;
}

.admin-auth-row input {
  flex: 1;
  border-radius: 14px;
  border: 1px solid var(--line);
  padding: 14px 15px;
}

.admin-section-nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-section-tab {
  border: 1px solid var(--line);
  background: #fffdfa;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
}

.admin-section-tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.admin-grid {
  display: grid;
  gap: 24px;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.admin-bookings {
  display: grid;
  gap: 16px;
}

.booking-item {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px;
}

.booking-item-row,
.admin-booking-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.booking-status {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.booking-status--nouveau {
  background: rgba(165, 82, 43, 0.12);
  color: var(--primary);
}

.booking-status--traite {
  background: rgba(71, 106, 68, 0.12);
  color: var(--success);
}

.admin-booking-filter {
  margin-bottom: 18px;
}

.admin-booking-filter label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

.admin-booking-filter select {
  width: 220px;
  max-width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fffdfa;
  padding: 12px 14px;
}

.booking-modal[hidden] {
  display: none;
}

.booking-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 20px;
}

.booking-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(29, 20, 14, 0.56);
  backdrop-filter: blur(10px);
}

.booking-modal__dialog {
  position: relative;
  width: min(100%, 560px);
  padding: 22px;
  border-radius: 28px;
  border: 1px solid rgba(218, 205, 192, 0.9);
  background:
    radial-gradient(circle at top right, rgba(210, 166, 107, 0.18), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 242, 234, 0.99));
  box-shadow: 0 32px 80px rgba(31, 18, 11, 0.3);
}

.booking-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.4rem;
}

.booking-modal__media {
  margin: -22px -22px 20px;
  height: 220px;
  border-radius: 28px 28px 0 0;
  overflow: hidden;
}

.booking-modal__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.booking-modal__eyebrow {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.booking-modal__lead {
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 22px;
  max-width: 42ch;
}

.booking-modal__details {
  margin: 0 0 22px;
  padding: 0;
}

.booking-modal__details div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.booking-modal__details dt {
  color: var(--muted);
}

.booking-modal__details dd {
  margin: 0;
  text-align: right;
  font-weight: 700;
}

.booking-modal__button {
  width: 100%;
  justify-content: center;
}

.booking-modal__secondary {
  width: 100%;
  justify-content: center;
}

.empty-state {
  color: var(--muted);
}

.client-main {
  display: grid;
  gap: 24px;
  margin-top: 24px;
}

.client-search-card,
.client-results-card {
  padding: 24px;
}

.client-access-form {
  display: grid;
  gap: 14px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-footer a {
  font-weight: 700;
  text-decoration: none;
}

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

.legal-layout {
  display: grid;
  gap: 24px;
  margin-top: 24px;
}

.legal-card {
  padding: 24px;
}

.legal-card p:last-child {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .topbar,
  .hero-grid,
  .booking-layout,
  .trust-strip,
  .section-head,
  .summary-list div,
  .admin-auth-row,
  .site-footer,
  .footer-links {
    flex-direction: column;
  }

  .topbar,
  .section-head {
    align-items: flex-start;
  }

  .topbar-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .booking-item-row,
  .admin-booking-actions,
  .booking-modal__details div {
    flex-direction: column;
    align-items: flex-start;
  }

  .service-list,
  .faq-grid,
  .admin-stats-grid,
  .photo-previews,
  .lead-attachments {
    grid-template-columns: 1fr;
  }

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

  h1 {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 18px, 1180px);
    padding-top: 10px;
  }

  .hero {
    border-radius: 24px;
    padding: 20px;
  }

  .hero-card,
  .booking-card,
  .schedule-card,
  .content-card,
  .admin-auth-card,
  .admin-section-nav {
    padding: 18px;
  }

  .booking-modal__dialog {
    padding: 18px;
  }

  .booking-modal__media {
    margin: -18px -18px 18px;
    height: 180px;
  }
}
