:root {
  --orange: #ff7426;
  --orange-soft: #fff0e8;
  --dark: #24242a;
  --gray: #777783;
  --line: #e9e9ee;
  --background: #f7f7f9;
  --green: #24965c;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--dark);
  font-family: Arial, sans-serif;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.app {
  width: min(100%, 1180px);
  min-height: 100vh;
  margin: auto;
  padding: 28px 24px 100px;
  background: white;
}

.topbar,
.account-chip,
.settings-layout,
.settings-menu,
.menu-item,
.logo-card,
.switch-row,
.bottom-nav {
  display: flex;
}

.topbar {
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--gray);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 30px;
}

.account-chip {
  align-items: center;
  gap: 10px;
  padding: 8px 12px 8px 8px;
  border: 1px solid var(--line);
  border-radius: 15px;
}

.account-chip > span,
.logo-preview {
  display: grid;
  place-items: center;
  background: var(--orange-soft);
  color: var(--orange);
  font-weight: 800;
}

.account-chip > span {
  width: 36px;
  height: 36px;
  border-radius: 11px;
}

.account-chip strong,
.account-chip small {
  display: block;
}

.account-chip strong {
  max-width: 155px;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-chip small {
  margin-top: 2px;
  color: var(--gray);
  font-size: 10px;
}

.loading {
  padding: 40px;
  color: var(--gray);
  text-align: center;
}

.settings-layout {
  align-items: flex-start;
  gap: 28px;
}

.settings-menu {
  position: sticky;
  top: 20px;
  flex: 0 0 235px;
  flex-direction: column;
  gap: 5px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fafafa;
}

.menu-item {
  align-items: center;
  gap: 11px;
  padding: 12px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--gray);
  font-size: 13px;
  font-weight: 700;
  text-align: left;
}

.menu-item span {
  width: 19px;
  color: inherit;
  font-size: 17px;
  text-align: center;
}

.menu-item:hover {
  background: white;
  color: var(--dark);
}

.menu-item.active {
  background: var(--orange-soft);
  color: #db5d18;
}

.settings-content {
  width: 100%;
  min-width: 0;
}

.settings-section {
  display: none;
}

.settings-section.active {
  display: block;
}

.section-header {
  margin-bottom: 20px;
}

.section-header h2 {
  margin-bottom: 7px;
  font-size: 23px;
}

.section-header p:last-child {
  margin-bottom: 0;
  color: var(--gray);
  font-size: 13px;
  line-height: 1.5;
}

.card {
  margin-bottom: 15px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
}

.card h3 {
  margin-bottom: 7px;
  font-size: 16px;
}

.booking-link-card {
  display: grid;
  gap: 12px;
  border-color: #ffd8c2;
  background: linear-gradient(135deg, #fffaf6, #fff);
}

.booking-link-card p {
  margin-bottom: 0;
  color: var(--gray);
  font-size: 13px;
  line-height: 1.5;
}

.booking-link-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.booking-link-row input {
  min-width: 0;
  flex: 1;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: white;
  color: var(--dark);
  font-size: 12px;
}

.booking-link-row .secondary-button {
  width: auto;
  flex: 0 0 auto;
  margin: 0;
  white-space: nowrap;
}

.booking-link-card .information {
  margin: 0;
  line-height: 1.5;
}

.logo-card {
  align-items: flex-start;
  gap: 18px;
}

.logo-preview {
  flex: 0 0 80px;
  width: 80px;
  height: 80px;
  border-radius: 20px;
  font-size: 31px;
}

.logo-card p,
.information,
.status-text {
  color: var(--gray);
  font-size: 12px;
  line-height: 1.5;
}

.profile-share-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.profile-share-card h3 { margin-bottom: 7px; }
.profile-share-card p { margin-bottom: 0; color: var(--gray); font-size: 13px; line-height: 1.5; }
.profile-share-card .save-button { width: auto; flex: 0 0 auto; }

label {
  display: block;
  margin-top: 16px;
  color: var(--dark);
  font-size: 12px;
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  margin-top: 6px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: none;
  background: white;
  color: var(--dark);
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 116, 38, .12);
}

textarea {
  resize: vertical;
}

.fields {
  display: grid;
  gap: 13px;
}

.two-columns {
  grid-template-columns: 1fr 1fr;
}

.switch-row {
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 0;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.switch-row:last-child {
  border-bottom: 0;
}

.switch-row strong,
.switch-row small {
  display: block;
}

.switch-row strong {
  font-size: 13px;
}

.switch-row small {
  margin-top: 4px;
  color: var(--gray);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.4;
}

.switch-row input {
  position: absolute;
  width: 1px;
  opacity: 0;
}

.switch-row i {
  position: relative;
  display: block;
  flex: 0 0 46px;
  width: 46px;
  height: 27px;
  border-radius: 20px;
  background: #d8d8de;
  transition: .2s;
}

.switch-row i::after {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: white;
  content: "";
  transition: .2s;
}

.switch-row input:checked + i {
  background: var(--orange);
}

.switch-row input:checked + i::after {
  transform: translateX(19px);
}

.account-email {
  margin: 15px 0 0;
  font-size: 13px;
}

.secondary-button {
  width: 100%;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--orange);
  border-radius: 11px;
  background: white;
  color: var(--orange);
  font-size: 13px;
  font-weight: 800;
}

.save-area {
  position: sticky;
  bottom: 0;
  z-index: 5;
  margin-top: 20px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .06);
  backdrop-filter: blur(12px);
}

#save-message {
  min-height: 16px;
  margin: 0 0 8px;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.save-button {
  width: 100%;
  padding: 14px;
  border: 0;
  border-radius: 12px;
  background: var(--orange);
  color: white;
  font-size: 14px;
  font-weight: 800;
}

.save-button:disabled {
  background: #d5d5db;
  cursor: default;
}

.bottom-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 20;
  justify-content: center;
  gap: min(8vw, 64px);
  padding: 9px 8px calc(9px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(14px);
}

.nav-link {
  display: grid;
  min-width: 47px;
  place-items: center;
  color: #92929c;
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
}

.nav-link b {
  margin-bottom: 3px;
  font-size: 19px;
  font-weight: 400;
  line-height: 21px;
}

.nav-link.active {
  color: var(--orange);
}

.booking-service-row, .booking-day-row { display: grid; align-items: end; gap: 10px; margin: 12px 0; }
.booking-service-row { grid-template-columns: minmax(150px, 2fr) repeat(2, minmax(100px, 1fr)) auto; padding: 14px; border: 1px solid var(--line); border-radius: 12px; }
.booking-day-row { grid-template-columns: minmax(110px, 1fr) minmax(95px, 1fr) auto minmax(95px, 1fr); }
.booking-service-row label, .booking-day-row label { margin: 0; }
.booking-service-row input, .booking-service-row select, .booking-day-row input[type="time"] { width: 100%; margin-top: 6px; }
.booking-day-row label { display: flex; align-items: center; gap: 8px; }
.booking-day-row label input { width: auto; }
.booking-service-row button { padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: white; color: #a52d27; cursor: pointer; }
#booking-primary-color { width: 90px; height: 44px; padding: 4px; }

.booking-wizard-progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0 0 18px; padding: 8px; border: 1px solid var(--line); border-radius: 16px; background: #fafafa; }
.booking-step-indicator { display: flex; min-width: 0; align-items: center; gap: 9px; padding: 10px; border: 0; border-radius: 11px; background: transparent; color: var(--gray); text-align: left; }
.booking-step-indicator span { display: grid; flex: 0 0 28px; width: 28px; height: 28px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: white; font-size: 12px; font-weight: 800; }
.booking-step-indicator b { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.booking-step-indicator.active { background: white; color: #db5d18; box-shadow: 0 2px 10px #24242a0d; }
.booking-step-indicator.active span, .booking-step-indicator.complete span { border-color: var(--orange); background: var(--orange); color: white; }
.booking-wizard-step[hidden] { display: none; }
.booking-wizard-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 0 28px; }
.booking-wizard-controls .save-button { width: auto; min-width: 150px; }
.booking-wizard-controls > span { color: var(--gray); font-size: 12px; }
.qr-share-card { display: flex; align-items: center; gap: 24px; }
.qr-share-card h3 { margin-bottom: 8px; }
.qr-share-card p { color: var(--gray); font-size: 13px; line-height: 1.55; }
.qr-frame { position: relative; flex: 0 0 216px; width: 216px; height: 216px; padding: 9px; border: 1px solid var(--line); border-radius: 18px; background: white; }
.qr-frame canvas { display: block; width: 196px; height: 196px; }
.qr-frame img { position: absolute; top: 50%; left: 50%; width: 48px; height: 48px; transform: translate(-50%, -50%); border: 4px solid white; border-radius: 11px; background: white; object-fit: contain; }
.qr-frame img[hidden] { display: none; }
.online-bookings-button[hidden] { display: none; }

@media (max-width: 550px) {
  .booking-wizard-progress { gap: 3px; padding: 5px; }
  .booking-step-indicator { justify-content: center; padding: 7px 3px; }
  .booking-step-indicator b { display: none; }
  .qr-share-card { align-items: flex-start; flex-direction: column; }
  .qr-frame { flex-basis: 216px; }
  .booking-wizard-controls .save-button { min-width: 125px; }
}

@media (max-width: 620px) {
  .booking-service-row { grid-template-columns: 1fr 1fr; }
  .booking-day-row { grid-template-columns: 1fr 1fr auto 1fr; gap: 6px; }
}

@media (max-width: 760px) {
  .app {
    padding: 22px 16px 95px;
  }

  .topbar {
    align-items: flex-start;
  }

  .account-chip div {
    display: none;
  }

  .settings-layout {
    display: block;
  }

  .settings-menu {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    gap: 7px;
    margin-bottom: 21px;
    padding: 0 0 10px;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .menu-item {
    flex: 0 0 auto;
    padding: 10px 12px;
    border: 1px solid var(--line);
    background: white;
    font-size: 11px;
  }

  .menu-item span {
    display: none;
  }

  .card {
    padding: 18px;
  }

  .profile-share-card { align-items: stretch; flex-direction: column; }
  .profile-share-card .save-button { width: 100%; }
}

@media (max-width: 450px) {
  .two-columns {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .logo-card {
    display: block;
  }

  .logo-preview {
    margin-bottom: 15px;
  }

  .bottom-nav {
    gap: 4vw;
  }
}

/* MonRdv · langage visuel premium, net et généreux. */
:root {
  --orange: #e85b0b;
  --orange-soft: #fff1e8;
  --dark: #1b1a18;
  --gray: #77746f;
  --line: #ebe8e4;
  --background: #f6f5f2;
  --green: #18845e;
}

body {
  min-height: 100vh;
  background: radial-gradient(ellipse at 18% 0%, #fffaf5 0, transparent 35%), var(--background);
  color: var(--dark);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: -.012em;
}

button, input, textarea, select { font-family: inherit; }
.app { width: min(100%, 1380px); padding: 32px 46px 110px; background: transparent; }
.topbar { min-height: 76px; margin-bottom: 32px; }
.brand-heading { display: flex; align-items: center; gap: 23px; }
.brand-logo { display: block; width: 118px; height: 76px; object-fit: contain; border-radius: 13px; }
.topbar .eyebrow { color: var(--orange); letter-spacing: .13em; }
h1 { font-size: 29px; font-weight: 700; letter-spacing: -.055em; }
.account-chip { gap: 11px; padding: 8px 14px 8px 8px; border-color: #ebe7e2; border-radius: 999px; background: #ffffffc7; box-shadow: 0 5px 18px #211b1608; }
.account-chip > span { border-radius: 50%; background: #fff0e6; color: #bd4b0c; }
.account-chip small { color: #918d87; }
.settings-layout { align-items: flex-start; gap: 32px; }
.settings-menu { top: 24px; flex-basis: 248px; gap: 5px; padding: 10px; border: 1px solid #ebe8e4; border-radius: 20px; background: #ffffffb8; box-shadow: 0 12px 34px #30241a08; backdrop-filter: blur(16px); }
.channel-badge { align-self: flex-start; flex: 0 0 auto; margin: 0; padding: 7px 10px; border: 1px solid #f5dfd1; border-radius: 99px; background: #fff7f1; color: #c34c10; font-size: 10px; font-weight: 750; letter-spacing: .02em; }
.menu-item { min-height: 47px; gap: 12px; padding: 12px 13px; border-radius: 13px; color: #77736d; font-size: 13px; font-weight: 600; transition: background .18s ease, color .18s ease, transform .18s ease; }
.menu-item span { display: grid; width: 25px; height: 25px; flex: 0 0 25px; place-items: center; border-radius: 8px; background: #f5f2ee; color: #817c75; font-size: 13px; }
.menu-item:hover { background: #faf8f5; color: #292622; }
.menu-item.active { background: var(--orange-soft); color: #ca4d0b; }
.menu-item.active span { background: #ffe2d1; color: #d9530c; }
.settings-content { max-width: 850px; }
.section-header { margin: 2px 0 21px; }
.settings-section#notifications .section-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.section-header .eyebrow { color: var(--orange); letter-spacing: .14em; }
.section-header h2 { margin: 0 0 8px; font-size: 28px; font-weight: 700; letter-spacing: -.055em; }
.section-header p:last-child { color: #77736e; font-size: 13px; line-height: 1.55; }
.card { margin-bottom: 16px; padding: 23px 25px; border: 1px solid #ebe8e4; border-radius: 20px; background: #fff; box-shadow: 0 10px 32px #34251808; }
.card h3 { margin-bottom: 15px; font-size: 15px; font-weight: 700; letter-spacing: -.025em; }
.card p { color: #77736e; line-height: 1.6; }
label { color: #45413c; font-size: 11px; font-weight: 650; }
input:not([type="checkbox"]):not([type="color"]), textarea, select { min-height: 43px; margin-top: 7px; padding: 11px 12px; border: 1px solid #e9e5e0; border-radius: 11px; background: #fff; color: #272522; font-size: 13px; transition: border-color .18s ease, box-shadow .18s ease; }
input:focus, textarea:focus, select:focus { outline: 0; border-color: #f2a57d; box-shadow: 0 0 0 4px #e85b0b14; }
textarea { line-height: 1.5; }
.logo-card { align-items: center; gap: 20px; padding: 18px 21px; background: linear-gradient(115deg, #fffaf6, #fff); }
.logo-preview { width: 92px; height: 74px; flex: 0 0 92px; overflow: hidden; border: 1px solid #f1e5dc; border-radius: 15px; background-color: #fff; color: var(--orange); }
.logo-card h3 { margin-bottom: 5px; }
.logo-card p { margin-bottom: 9px; font-size: 11px; }
.logo-card label { max-width: 490px; }
.switch-row { min-height: 57px; padding: 11px 0; border-bottom: 1px solid #f0eeeb; }
.switch-row:last-child { border-bottom: 0; }
.switch-row strong { color: #24221f; font-size: 12px; }
.switch-row small { margin-top: 4px; color: #85817b; font-size: 10px; line-height: 1.5; }
.switch-row i { width: 36px; height: 21px; border-radius: 20px; background: #dedbd7; transition: background .18s ease; }
.switch-row i::after { width: 15px; height: 15px; top: 3px; left: 3px; box-shadow: 0 1px 4px #0002; }
.switch-row input:checked + i { background: var(--orange); }
.switch-row input:checked + i::after { left: 18px; }
.booking-wizard-progress { gap: 5px; padding: 7px; border-color: #ebe8e4; border-radius: 16px; background: #f2f0ed; }
.booking-step-indicator { min-height: 46px; border-radius: 12px; color: #77736d; }
.booking-step-indicator span { border-color: #e8e4df; background: #fff; color: #77736d; }
.booking-step-indicator.active { background: #fff; color: #c94c0c; box-shadow: 0 3px 12px #211b160b; }
.booking-step-indicator.active span, .booking-step-indicator.complete span { border-color: var(--orange); background: var(--orange); }
.secondary-button, .save-button { min-height: 42px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.secondary-button { padding: 11px 17px; border: 1px solid #e7e3de; background: #fff; color: #393530; }
.secondary-button:hover { border-color: #e7b79b; background: #fffaf7; }
.save-button { padding: 12px 20px; background: var(--orange); box-shadow: 0 7px 17px #e85b0b25; }
.save-button:hover { background: #d94f06; }
.booking-service-row { display: grid; grid-template-columns: 1fr; gap: 13px; padding: 18px; border-color: #ece8e3; border-radius: 16px; background: #fdfcfb; }
.service-row-top { display: grid; grid-template-columns: minmax(180px, 1.5fr) minmax(130px, .8fr) minmax(120px, .8fr) auto; align-items: end; gap: 12px; }
.service-row-bottom { display: grid; grid-template-columns: minmax(180px, 1.5fr) minmax(135px, .8fr) minmax(130px, .8fr); align-items: end; gap: 12px; }
.booking-service-row textarea { width: 100%; }
.booking-service-row button { min-height: 42px; padding: 10px 14px; border-color: #f0dcd0; border-radius: 999px; color: #b34716; background: #fff8f3; font-size: 11px; }
.booking-day-row { margin: 9px 0; padding: 10px 0; border-bottom: 1px solid #f0eeeb; }
.booking-link-card { background: linear-gradient(135deg,#fffaf6,#fff); }
.booking-link-row input { background: #f9f7f4 !important; }
.information { color: #88837d; font-size: 11px; line-height: 1.6; }
.qr-share-card { gap: 28px; }
.qr-frame { border-color: #ebe7e2; border-radius: 19px; box-shadow: 0 9px 26px #3e28120a; }
.save-area { background: #ffffffdc; border-color: #ece8e3; border-radius: 18px; box-shadow: 0 10px 32px #271d160d; }
#save-message { color: #217a4d; }
.bottom-nav { border-color: #ebe8e4; background: #ffffffed; box-shadow: 0 -9px 28px #30241a08; }
.nav-link { color: #918c86; }
.nav-link.active { color: var(--orange); }

@media (max-width: 900px) {
  .app { padding-right: 24px; padding-left: 24px; }
  .settings-layout { gap: 20px; }
  .settings-menu { flex-basis: 216px; }
}

.service-row-top label, .service-row-bottom label { margin: 0; }
.service-row-top input, .service-row-top select, .service-row-bottom input, .service-row-bottom select { width: 100%; }
.service-row-top .remove-service { white-space: nowrap; }
#deposit-bank-fields[hidden], #deposit-cash-note[hidden] { display: none; }
@media (max-width: 760px) {
  .app { padding: 19px 15px 96px; }
  .topbar { align-items: center; margin-bottom: 24px; }
  .brand-heading { gap: 11px; }
  .brand-logo { width: 72px; height: 53px; }
  h1 { font-size: 24px; }
  .settings-menu { gap: 7px; padding-bottom: 11px; }
  .menu-item { min-height: 40px; }
  .card { padding: 18px; border-radius: 17px; }
  .section-header h2 { font-size: 24px; }
  .service-row-top { grid-template-columns: 1fr 1fr; }
  .service-row-bottom { grid-template-columns: 1fr 1fr; }
  .service-row-bottom label:first-child { grid-column: 1 / -1; }
}
@media (max-width: 450px) {
  .brand-logo { width: 60px; height: 44px; }
  .account-chip { padding-right: 9px; }
  .booking-wizard-controls .save-button { min-width: 120px; }
  .service-row-top, .service-row-bottom { grid-template-columns: 1fr; }
  .service-row-bottom label:first-child { grid-column: auto; }
  .logo-card { display: flex; }
  .logo-preview { margin: 0; }
}
