:root {
  --ink: #27333a;
  --muted: #6d7a80;
  --cream: #fffaf5;
  --soft: #f5eee8;
  --rose: #c88f8b;
  --rose-dark: #a96f6c;
  --sage: #91a79b;
  --white: #ffffff;
  --border: #e8ddd6;
  --shadow: 0 18px 45px rgba(70, 49, 41, .10);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.15; }
.hero__title {
  font-size: clamp(1.55rem, 3.2vw, 2.55rem);
  max-width: 650px;
  font-weight: 700;
}
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: 1.45rem; }

.container { width: min(1160px, calc(100% - 36px)); margin: 0 auto; }
.section { padding: 88px 0; }
.section--soft { background: var(--soft); }
.section__heading { max-width: 760px; margin-bottom: 38px; }
.eyebrow { display: inline-block; text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; font-weight: 800; color: var(--rose-dark); margin-bottom: 12px; }

.hero {
  min-height: 78vh;
  position: relative;
  display: grid;
  align-items: center;
  background:
    linear-gradient(120deg, rgba(255,250,245,.98), rgba(255,250,245,.72)),
    radial-gradient(circle at 80% 30%, rgba(200,143,139,.28), transparent 32%),
    radial-gradient(circle at 70% 80%, rgba(145,167,155,.30), transparent 28%);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  border: 1px solid rgba(169,111,108,.22);
  border-radius: 50%;
  right: -80px;
  top: 80px;
}
.hero__content { position: relative; z-index: 2; padding: 90px 0; }
.hero p { max-width: 620px; font-size: 1.2rem; color: var(--muted); margin-bottom: 32px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 0;
  text-decoration: none;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.button--primary { background: var(--rose); color: var(--white); box-shadow: 0 10px 25px rgba(169,111,108,.25); }
.button--primary:hover { background: var(--rose-dark); }
.button--secondary { background: var(--white); border: 1px solid var(--border); color: var(--ink); }
.button--wide { width: 100%; margin-top: 8px; }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card__icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 18px; background: var(--soft); font-size: 1.6rem; margin-bottom: 18px; }
.card p { color: var(--muted); }
.card__meta { display: flex; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid var(--border); font-size: .92rem; font-weight: 700; }

.booking-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .7fr); gap: 26px; align-items: start; }
.panel { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.booking-form { padding: 32px; }
.summary-card { padding: 30px; position: sticky; top: 20px; }

.field-group { margin-bottom: 22px; }
.field-group label { display: block; font-weight: 800; margin-bottom: 8px; }
input, select, textarea {
  width: 100%;
  border: 1px solid #d9cec6;
  background: #fffdfb;
  color: var(--ink);
  border-radius: 14px;
  padding: 13px 14px;
  font: inherit;
}
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(200,143,139,.20); border-color: var(--rose); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 18px; }
.hint { margin-top: 7px; color: var(--muted); font-size: .92rem; }

.slots { display: flex; flex-wrap: wrap; gap: 10px; min-height: 48px; }
.slot { border: 1px solid var(--border); background: var(--white); border-radius: 12px; padding: 10px 14px; font: inherit; font-weight: 800; cursor: pointer; }
.slot:hover, .slot.is-selected { background: var(--sage); color: var(--white); border-color: var(--sage); }
.slot:disabled { opacity: .4; cursor: not-allowed; }

.checkbox { display: flex; gap: 12px; align-items: flex-start; font-size: .93rem; color: var(--muted); margin-bottom: 22px; }
.checkbox input { width: auto; margin-top: 5px; }
.message { margin-top: 18px; font-weight: 700; }
.message.success { color: #497563; }
.message.error { color: #a24f4f; }

.summary-card dl { margin: 26px 0; }
.summary-card dl div { display: flex; justify-content: space-between; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.summary-card dt { color: var(--muted); }
.summary-card dd { margin: 0; font-weight: 800; text-align: right; }
.privacy-note { background: var(--soft); padding: 16px; border-radius: 14px; color: var(--muted); font-size: .9rem; }

.admin-section { padding-top: 58px; }
.admin-box { border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); overflow: hidden; }
.admin-box summary { cursor: pointer; list-style: none; padding: 24px 28px; font-weight: 900; }
.admin-content { padding: 0 28px 28px; }
.admin-toolbar { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 780px; }
th, td { padding: 14px 12px; text-align: left; border-bottom: 1px solid var(--border); }
th { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.empty { text-align: center; color: var(--muted); padding: 28px; }

footer { background: var(--ink); color: var(--white); padding: 28px 0; }
.footer-content { display: flex; justify-content: space-between; gap: 18px; }

@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .booking-layout { grid-template-columns: 1fr; }
  .summary-card { position: static; }
}

@media (max-width: 620px) {
  .section { padding: 64px 0; }
  .cards, .form-grid { grid-template-columns: 1fr; }
  .booking-form { padding: 22px; }
  .admin-toolbar, .footer-content { align-items: flex-start; flex-direction: column; }
  .hero { min-height: 68vh; }
}

.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin: 24px 0 38px; }
.admin-panel { border: 1px solid var(--border); background: var(--cream); border-radius: 18px; padding: 24px; }
.admin-panel > p { color: var(--muted); margin-bottom: 22px; }
.admin-toolbar--bookings { margin-top: 8px; }
.admin-form .button { margin-bottom: 4px; }
.admin-list { margin-top: 22px; }
.admin-list__item { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 14px 0; border-top: 1px solid var(--border); }
.admin-list__item div { display: grid; }
.admin-list__item span { color: var(--muted); font-size: .92rem; }
.icon-button { border: 0; background: transparent; color: #a24f4f; font: inherit; font-weight: 800; cursor: pointer; }
.buffer-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 15px 0; border-bottom: 1px solid var(--border); }
.buffer-row > div { display: grid; }
.buffer-row > div span { color: var(--muted); font-size: .9rem; }
.buffer-row label { display: flex; align-items: center; gap: 8px; font-size: .88rem; font-weight: 700; }
.buffer-row label span { color: var(--muted); }
.buffer-row input { width: 84px; }
.buffer-row em { font-style: normal; color: var(--muted); }
[hidden] { display: none !important; }

@media (max-width: 900px) {
  .admin-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .buffer-row, .admin-list__item { align-items: flex-start; flex-direction: column; }
  .buffer-row label { width: 100%; justify-content: space-between; }
}

/* Habillage PHP proche de la version 1.1 */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,250,245,.92); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(232,221,214,.8); }
.nav { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 900; letter-spacing: -.02em; }
.brand-mark { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--rose); color: #fff; }
.nav-links { display: flex; align-items: center; gap: 18px; }
.nav-links a { color: var(--ink); text-decoration: none; font-weight: 700; }
.nav-user { color: var(--muted); font-size: .92rem; }
.button--small { min-height: 40px; padding: 0 16px; }
.flash { margin-top: 18px; background: #edf6f1; border: 1px solid #cfe4d8; border-radius: 14px; padding: 14px 18px; }
.muted { color: var(--muted); }
.service-card { display: flex; flex-direction: column; min-height: 100%; }
.service-card .card__meta { margin-top: auto; }
.service-time { margin-top: 12px; color: var(--muted); font-size: .86rem; }
.admin-section h1 { font-size: clamp(2rem,4vw,3.2rem); }
.admin-section .card { margin-bottom: 22px; }
.admin-section .admin-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.admin-section label { display: block; margin: 12px 0 7px; font-weight: 800; }
.admin-section button, .login-card button { min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--rose); color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.admin-section button:hover, .login-card button:hover { background: var(--rose-dark); }
.admin-section .danger { background: #a65b5b; padding: 7px 12px; min-height: 34px; font-size: .84rem; }
.admin-section .grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 16px; }
.admin-section table { min-width: 680px; }
.login-card { width: min(520px,calc(100% - 36px)); margin: 80px auto; }
.login-card .card { padding: 34px; }

@media (max-width: 1000px) {
  .admin-section .admin-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav { align-items: flex-start; padding-top: 14px; padding-bottom: 14px; }
  .nav-links { flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
  .nav-user { width: 100%; text-align: right; }
  .admin-section .admin-grid, .admin-section .grid { grid-template-columns: 1fr; }
}

/* RDV_CONNECT 1.3 — règles spécifiques à l'administration */
.app-version {
  font-size: .45em;
  font-weight: 500;
  color: var(--muted);
}

.checkbox-input {
  width: auto;
}

.inline-form {
  display: inline;
}

.section-divider {
  margin: 32px 0;
  border: 0;
  border-top: 1px solid rgba(0, 0, 0, .10);
}

.password-reset-form {
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 300px;
}

.password-reset-input {
  margin: 0;
}

/* Titres des cartes d'administration volontairement plus compacts */
.admin-section .card h2 {
  font-size: clamp(1.35rem, 1.8vw, 1.9rem);
  line-height: 1.18;
  margin-bottom: 1.25rem;
}

.admin-section .card h3 {
  font-size: clamp(1.15rem, 1.4vw, 1.4rem);
}

@media (max-width: 620px) {
  .password-reset-form {
    min-width: 240px;
    flex-direction: column;
    align-items: stretch;
  }
}

/* RDV_CONNECT 1.3 */
.admin-profile-switcher { max-width: 520px; margin-bottom: 24px; }
.public-link-box { display: flex; gap: 12px; align-items: center; margin: 16px 0 22px; }
.public-link-box input { flex: 1; }
.practitioner-badge { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 18px; border-radius: 14px; background: rgba(141, 103, 117, .09); margin-bottom: 20px; }
.practitioner-badge span { color: var(--muted); }
.public-entry-card { max-width: 720px; margin: 0 auto; text-align: center; }
@media (max-width: 640px) { .public-link-box { flex-direction: column; align-items: stretch; } .practitioner-badge { align-items: flex-start; flex-direction: column; } }


/* RDV_CONNECT 1.4 — thèmes publics par profil */
.public-page {
  --public-title-font: Georgia, "Times New Roman", serif;
  --public-body-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-family: var(--public-body-font);
}

.public-page h1,
.public-page h2,
.public-page h3,
.public-page .brand {
  font-family: var(--public-title-font);
}

/* Thème 1 : rose poudré, élégant et chaleureux */
.public-page.theme-rose {
  --ink: #3d3436;
  --muted: #786c70;
  --cream: #fffaf8;
  --soft: #f8eeec;
  --rose: #c98f97;
  --rose-dark: #a96f79;
  --sage: #9dab9f;
  --white: #ffffff;
  --border: #eadbdc;
  --shadow: 0 18px 45px rgba(96, 62, 69, .10);
  --public-title-font: Georgia, "Times New Roman", serif;
  --public-body-font: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* Thème 2 : vert sauge, naturel et apaisant */
.public-page.theme-sauge {
  --ink: #2f3b37;
  --muted: #687771;
  --cream: #fbfcf8;
  --soft: #edf3ed;
  --rose: #95aa9b;
  --rose-dark: #708a79;
  --sage: #a9b9a9;
  --white: #ffffff;
  --border: #dbe5dc;
  --shadow: 0 18px 45px rgba(59, 82, 69, .10);
  --public-title-font: "Trebuchet MS", "Segoe UI", sans-serif;
  --public-body-font: Verdana, Geneva, Tahoma, sans-serif;
}

/* Thème 3 : bleu ciel, clair et contemporain */
.public-page.theme-ciel {
  --ink: #2e3945;
  --muted: #687887;
  --cream: #fafdff;
  --soft: #edf5f8;
  --rose: #8fb6c8;
  --rose-dark: #668fa3;
  --sage: #9fb9c0;
  --white: #ffffff;
  --border: #d7e5eb;
  --shadow: 0 18px 45px rgba(55, 86, 101, .10);
  --public-title-font: "Palatino Linotype", Palatino, Georgia, serif;
  --public-body-font: Arial, Helvetica, sans-serif;
}

.public-page .hero {
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--cream) 98%, transparent), color-mix(in srgb, var(--cream) 74%, transparent)),
    radial-gradient(circle at 80% 30%, color-mix(in srgb, var(--rose) 30%, transparent), transparent 32%),
    radial-gradient(circle at 70% 80%, color-mix(in srgb, var(--sage) 28%, transparent), transparent 28%);
}

.theme-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 18px;
}

.theme-swatch {
  min-height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  padding: 8px;
  font-size: .82rem;
  font-weight: 800;
  border: 1px solid transparent;
}

.theme-swatch--rose {
  background: #f8eeec;
  color: #7e565f;
  border-color: #eadbdc;
  font-family: Georgia, "Times New Roman", serif;
}

.theme-swatch--sauge {
  background: #edf3ed;
  color: #55705f;
  border-color: #dbe5dc;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

.theme-swatch--ciel {
  background: #edf5f8;
  color: #55778a;
  border-color: #d7e5eb;
  font-family: "Palatino Linotype", Palatino, Georgia, serif;
}

@media (max-width: 620px) {
  .theme-preview-grid { grid-template-columns: 1fr; }
}

/* RDV_CONNECT v1.6 — planning hebdomadaire */
.weekly-hours-card {
  overflow: hidden;
}
.weekly-hours-table {
  display: grid;
  gap: .75rem;
  margin-top: 1.25rem;
}
.weekly-hours-row {
  display: grid;
  grid-template-columns: minmax(150px, .8fr) minmax(260px, 1.25fr) minmax(290px, 1.35fr);
  gap: 1rem;
  align-items: center;
  padding: .9rem 1rem;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  background: rgba(255,255,255,.58);
}
.weekly-day {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
}
.closed-toggle {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin: 0;
  font-size: .9rem;
  font-weight: 500;
  white-space: nowrap;
}
.closed-toggle input {
  width: auto;
  margin: 0;
}
.period-block {
  display: grid;
  grid-template-columns: auto minmax(88px,1fr) auto minmax(88px,1fr);
  gap: .5rem;
  align-items: center;
}
.period-block > span:first-child {
  min-width: 82px;
  font-weight: 600;
}
.period-block input {
  margin: 0;
  min-width: 0;
}
@media (max-width: 980px) {
  .weekly-hours-row {
    grid-template-columns: 1fr;
  }
  .weekly-day {
    justify-content: flex-start;
  }
}
@media (max-width: 580px) {
  .period-block {
    grid-template-columns: 1fr 1fr;
  }
  .period-block > span:first-child {
    grid-column: 1 / -1;
  }
  .period-block > span:nth-child(3) {
    display: none;
  }
}

/* Page d'accueil générale : contenu regroupé pour tenir dans l'écran */
.home-hero {
  min-height: 52vh;
}

.home-hero .hero__content {
  padding: 48px 0 36px;
}

.home-hero .eyebrow {
  margin-bottom: 8px;
}

.home-hero .hero__title {
  margin-bottom: 14px;
}

.home-hero p {
  margin-bottom: 0;
  font-size: 1.08rem;
  line-height: 1.55;
}

.home-professional-section {
  padding: 34px 0 44px;
}

.home-professional-section .public-entry-card {
  padding: 24px 28px;
}

.home-professional-section h2 {
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  margin-bottom: 10px;
}

.home-professional-section p {
  margin-bottom: 18px;
}

@media (max-width: 620px) {
  .home-hero {
    min-height: auto;
  }

  .home-hero .hero__content {
    padding: 52px 0 42px;
  }

  .home-professional-section {
    padding: 26px 0 36px;
  }
}

/* Administration compacte — numéro de version inchangé */
.admin-section {
  padding-top: 34px;
  padding-bottom: 48px;
}

.admin-section .section__heading {
  margin-bottom: 22px;
}

.admin-section .section__heading h1 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  margin-bottom: .45rem;
}

.admin-section .section__heading p {
  margin-bottom: 0;
}

.admin-section .card {
  padding: 20px;
  margin-bottom: 16px;
}

.admin-section .admin-grid {
  gap: 16px;
  margin: 16px 0 24px;
}

.admin-section .card h2 {
  font-size: clamp(1.18rem, 1.45vw, 1.55rem);
  line-height: 1.15;
  margin-bottom: .85rem;
}

.admin-section .card h3 {
  font-size: clamp(1.02rem, 1.2vw, 1.22rem);
  margin-bottom: .7rem;
}

.admin-section label {
  margin: 8px 0 5px;
  font-size: .9rem;
}

.admin-section input,
.admin-section select,
.admin-section textarea {
  padding: 9px 11px;
  border-radius: 11px;
  font-size: .94rem;
}

.admin-section textarea {
  min-height: 86px;
}

.admin-section button {
  min-height: 38px;
  padding: 0 15px;
  font-size: .9rem;
}

.admin-section .danger {
  min-height: 30px;
  padding: 5px 10px;
  font-size: .78rem;
}

.admin-section th,
.admin-section td {
  padding: 9px 9px;
}

.admin-section th {
  font-size: .72rem;
}

.admin-section td {
  font-size: .9rem;
}

.admin-profile-switcher {
  margin-bottom: 16px;
}

.public-link-box {
  margin: 10px 0 16px;
}

.section-divider {
  margin: 20px 0;
}

.password-reset-form {
  gap: 6px;
  min-width: 260px;
}

@media (max-width: 620px) {
  .admin-section {
    padding-top: 24px;
    padding-bottom: 36px;
  }

  .admin-section .card {
    padding: 16px;
  }

  .admin-section th,
  .admin-section td {
    padding: 8px 7px;
  }
}


/* Choix du type de réservation : enfant ou carte cadeau */
.booking-purpose { margin: 0 0 22px; padding: 0; border: 0; }
.booking-purpose legend { margin-bottom: 10px; font-weight: 800; }
.purpose-option { display: flex; align-items: flex-start; gap: 12px; padding: 13px 15px; margin-bottom: 10px; border: 1px solid var(--border); border-radius: 14px; background: var(--white); cursor: pointer; }
.purpose-option:hover { border-color: var(--rose); background: var(--soft); }
.purpose-option input { width: auto; margin: 4px 0 0; accent-color: var(--rose-dark); }
.purpose-option span { display: grid; gap: 2px; }
.purpose-option small { color: var(--muted); line-height: 1.4; }

/* Profils praticiens et affichage public */
.profile-edit-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.profile-photo-column {
  display: grid;
  gap: 10px;
}
.profile-image-preview,
.profile-image-placeholder {
  width: 180px;
  height: 180px;
  border-radius: 22px;
  object-fit: cover;
  border: 1px solid var(--border);
  background: var(--soft);
  box-shadow: var(--shadow);
}
.profile-image-placeholder {
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  font-weight: 800;
}
.remove-image {
  display: flex !important;
  align-items: center;
  gap: 8px;
  font-weight: 600 !important;
}
.grid-full { grid-column: 1 / -1; }
.admin-info-card { border-style: dashed; }
.practitioner-intro-section { padding-top: 42px; padding-bottom: 24px; }
.practitioner-intro {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}
.practitioner-public-image {
  width: 150px;
  height: 150px;
  border-radius: 22px;
  object-fit: cover;
  border: 1px solid var(--border);
  background: var(--soft);
}
.practitioner-intro h2 { margin-bottom: 8px; }
.profile-contact { margin-bottom: 6px; }
.profile-public-info { margin-top: 14px; color: var(--muted); }

@media (max-width: 720px) {
  .profile-edit-layout,
  .practitioner-intro {
    grid-template-columns: 1fr;
  }
  .profile-image-preview,
  .profile-image-placeholder,
  .practitioner-public-image {
    width: 130px;
    height: 130px;
  }
}


/* Page publique compacte — version 1.8 */
.public-page .hero { min-height: 46vh; }
.public-page .hero__content { padding: 44px 0 38px; }
.public-page .hero__title { font-size: clamp(1.65rem, 3vw, 2.45rem); margin-bottom: 12px; max-width: 760px; }
.public-page .hero p { font-size: 1.02rem; line-height: 1.5; margin-bottom: 20px; }
.public-page .section { padding: 46px 0; }
.public-page .section__heading { margin-bottom: 22px; }
.public-page .section__heading h2 { font-size: clamp(1.55rem, 2.5vw, 2.2rem); margin-bottom: 8px; }
.public-page .eyebrow { margin-bottom: 7px; font-size: .72rem; }
.public-page .cards { gap: 14px; }
.public-page .card { padding: 20px; }
.public-page .service-card h3 { font-size: 1.18rem; margin-bottom: 8px; }
.public-page .service-card p { font-size: .92rem; line-height: 1.45; margin-bottom: 14px; }
.public-page .card__icon { width: 44px; height: 44px; margin-bottom: 12px; border-radius: 14px; }
.public-page .card__meta { padding-top: 11px; font-size: .84rem; }
.public-page .service-time { margin-top: 8px; font-size: .8rem; }
.public-page .practitioner-intro-section { padding-top: 28px; padding-bottom: 18px; }
.public-page .practitioner-intro { gap: 18px; }
.public-page .practitioner-public-image { width: 115px; height: 115px; }
.public-page .practitioner-intro h2 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); }
.public-page .booking-layout { gap: 18px; }
.public-page .booking-form, .public-page .summary-card { padding: 22px; }
.public-page .field-group { margin-bottom: 14px; }
.public-page .field-group label, .public-page .booking-purpose legend { margin-bottom: 5px; font-size: .9rem; }
.public-page input, .public-page select, .public-page textarea { padding: 9px 11px; border-radius: 11px; font-size: .93rem; }
.public-page textarea { min-height: 82px; }
.public-page .practitioner-badge { padding: 10px 14px; margin-bottom: 14px; }
.public-page .booking-purpose { margin-bottom: 14px; }
.public-page .purpose-option { padding: 9px 11px; margin-bottom: 7px; border-radius: 11px; }
.public-page .purpose-option small { font-size: .8rem; }
.public-page .summary-card dl { margin: 16px 0; }
.public-page .summary-card dl div { padding: 9px 0; }
.public-page .privacy-note { padding: 12px; font-size: .84rem; }
.public-page .button { min-height: 42px; padding: 0 18px; }
@media (max-width: 620px) {
  .public-page .hero { min-height: auto; }
  .public-page .hero__content { padding: 38px 0 32px; }
  .public-page .section { padding: 34px 0; }
  .public-page .booking-form, .public-page .summary-card, .public-page .card { padding: 16px; }
  .public-page .practitioner-public-image { width: 96px; height: 96px; }
}

/* RDV_CONNECT 1.8 — âge enfant et fiches de rendez-vous dépliables */
.birth-age-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.age-badge,
.age-inline {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 7px 12px;
  border-radius: 11px;
  background: var(--soft);
  color: var(--ink);
  font-size: .88rem;
  font-weight: 800;
  white-space: nowrap;
}

.booking-list {
  display: grid;
  gap: 8px;
}

.booking-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--white);
  overflow: hidden;
}

.booking-summary {
  display: grid;
  grid-template-columns: 1.1fr 1fr .9fr .85fr 1.35fr 28px;
  gap: 14px;
  align-items: center;
  padding: 13px 15px;
  cursor: pointer;
  list-style: none;
  font-size: .9rem;
}

.booking-summary::-webkit-details-marker {
  display: none;
}

.booking-summary:hover {
  background: color-mix(in srgb, var(--soft) 70%, white);
}

.booking-summary__name {
  font-weight: 900;
}

.booking-summary__arrow {
  font-size: 1.55rem;
  line-height: 1;
  transition: transform .18s ease;
}

.booking-item[open] .booking-summary__arrow {
  transform: rotate(90deg);
}

.booking-details {
  padding: 16px;
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--soft) 38%, white);
}

.booking-edit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 14px;
}

.booking-edit-grid label {
  margin-top: 0;
}

.booking-edit-full {
  grid-column: 1 / -1;
}

.booking-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-top: 14px;
}

.booking-actions .inline-form {
  display: inline-flex;
}

.mail-button {
  background: var(--sage) !important;
  color: white !important;
}

.mail-button:hover {
  filter: brightness(.94);
}

@media (max-width: 980px) {
  .booking-summary {
    grid-template-columns: 1fr 1fr 1fr 28px;
  }

  .booking-summary span:nth-child(4),
  .booking-summary span:nth-child(5) {
    display: none;
  }

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

@media (max-width: 620px) {
  .birth-age-row {
    grid-template-columns: 1fr;
  }

  .age-badge {
    justify-content: center;
  }

  .booking-summary {
    grid-template-columns: 1fr auto;
    gap: 6px 12px;
  }

  .booking-summary span:not(.booking-summary__name):not(.booking-summary__arrow) {
    grid-column: 1;
  }

  .booking-summary__arrow {
    grid-column: 2;
    grid-row: 1 / span 3;
  }

  .booking-edit-grid {
    grid-template-columns: 1fr;
  }

  .booking-edit-full {
    grid-column: auto;
  }

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

  .booking-actions form,
  .booking-actions button {
    width: 100%;
  }
}

/* RDV_CONNECT 1.8 — lien Google Maps sur la fiche publique */
.profile-address-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.profile-address-row .profile-contact {
  margin-bottom: 0;
}

.maps-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 6px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--soft);
  color: var(--ink);
  font-size: .86rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.maps-link:hover {
  background: var(--rose);
  border-color: var(--rose);
  color: var(--white);
}

.maps-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex: 0 0 auto;
}

@media (max-width: 620px) {
  .profile-address-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

/* RDV_CONNECT 1.8 — carte cadeau sans date ni horaire */
.booking-purpose-first {
  margin-bottom: 18px;
}

.date-field-group.is-disabled,
.time-field-group.is-disabled {
  opacity: .58;
}

.date-field-group.is-disabled input,
.time-field-group.is-disabled select {
  cursor: not-allowed;
  background: color-mix(in srgb, var(--soft) 78%, white);
}

.gift-date-note {
  margin: 9px 0 0;
  padding: 10px 12px;
  border-radius: 11px;
  background: var(--soft);
  color: var(--muted);
  font-size: .9rem;
  font-weight: 700;
}

/* RDV_CONNECT 1.8 — mentions légales et confidentialité */
.footer-links {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--white);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-section {
  padding-top: 44px;
}

.legal-container {
  width: min(920px, calc(100% - 36px));
}

.legal-container .section__heading {
  margin-bottom: 22px;
}

.legal-container .section__heading h1 {
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  margin-bottom: 10px;
}

.legal-card {
  margin-bottom: 16px;
  padding: 22px 24px;
}

.legal-card h2 {
  font-size: clamp(1.2rem, 1.8vw, 1.55rem);
  margin-bottom: 12px;
}

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

.legal-disclaimer {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--soft);
  color: var(--muted);
  font-size: .9rem;
}

@media (max-width: 620px) {
  .footer-links {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .legal-section {
    padding-top: 28px;
  }

  .legal-card {
    padding: 17px;
  }
}

/* RDV_CONNECT 2.0 — accès au module cartes cadeaux */
.hero-actions{display:flex;gap:12px;flex-wrap:wrap;align-items:center}.gift-module-link{display:inline-flex;margin-top:12px;padding:10px 15px;border-radius:999px;background:var(--sage);color:#fff;font-weight:900;text-decoration:none}.gift-module-link:hover{filter:brightness(.95)}@media(max-width:620px){.hero-actions{align-items:stretch;flex-direction:column}.hero-actions .button{width:100%}}

/* RDV_CONNECT 2.0 — gestion des prestations existantes */
.service-admin-list {
  display: grid;
  gap: 9px;
}

.service-admin-item {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--white);
}

.service-admin-summary {
  display: grid;
  grid-template-columns: minmax(180px, 1.5fr) .65fr .55fr .65fr 28px;
  gap: 14px;
  align-items: center;
  padding: 13px 15px;
  cursor: pointer;
  list-style: none;
}

.service-admin-summary::-webkit-details-marker {
  display: none;
}

.service-admin-summary:hover {
  background: color-mix(in srgb, var(--soft) 68%, white);
}

.service-admin-name {
  font-weight: 900;
}

.service-admin-arrow {
  font-size: 1.55rem;
  line-height: 1;
  transition: transform .18s ease;
}

.service-admin-item[open] .service-admin-arrow {
  transform: rotate(90deg);
}

.service-status {
  display: inline-flex;
  justify-content: center;
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 900;
}

.service-status.is-active {
  background: color-mix(in srgb, var(--sage) 22%, white);
}

.service-status.is-inactive {
  background: color-mix(in srgb, var(--rose) 26%, white);
}

.service-admin-details {
  padding: 16px;
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--soft) 36%, white);
}

.service-edit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 14px;
}

.service-edit-grid label {
  margin-top: 0;
}

.service-edit-full {
  grid-column: 1 / -1;
}

.service-active-field {
  display: flex;
  align-items: end;
  padding-bottom: 10px;
}

.service-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-top: 14px;
}

.service-admin-actions .inline-form {
  display: inline-flex;
}

@media (max-width: 900px) {
  .service-admin-summary {
    grid-template-columns: 1fr .7fr .7fr 28px;
  }

  .service-admin-summary .service-status {
    display: none;
  }

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

@media (max-width: 620px) {
  .service-admin-summary {
    grid-template-columns: 1fr auto;
    gap: 6px 12px;
  }

  .service-admin-summary > span:not(.service-admin-name):not(.service-admin-arrow) {
    grid-column: 1;
  }

  .service-admin-arrow {
    grid-column: 2;
    grid-row: 1 / span 3;
  }

  .service-edit-grid {
    grid-template-columns: 1fr;
  }

  .service-edit-full {
    grid-column: auto;
  }

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

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


/* RDV_CONNECT 2.0d — référence de carte cadeau reçue */
.gift-reference-field {
  margin-top: 12px;
}
.gift-reference-field input {
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 800;
}
