/* =============================================================
   prendre-rdv.css — Public online booking page (prendre-rdv/index.php)
   Standalone page: accent colours come from the active app theme
   through --brand / --brand2 (set inline in PHP).
   ============================================================= */

:root {
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e6eaf2;
  --surface: #ffffff;
  --page: #060b18;
  --radius: 22px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.pr {
  margin: 0;
  min-height: 100vh;
  padding: clamp(20px, 3vw, 44px) 16px clamp(28px, 4vw, 56px);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  color: #e2e8f0;
  background: var(--page);
  -webkit-font-smoothing: antialiased;
}

.pr-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(1200px 640px at 6% -12%, var(--brand-soft, rgba(37, 99, 235, .38)), transparent 60%),
    radial-gradient(1000px 620px at 108% 2%, var(--brand2-soft, rgba(6, 182, 212, .30)), transparent 62%),
    radial-gradient(900px 700px at 50% 118%, var(--brand-soft2, rgba(37, 99, 235, .16)), transparent 60%),
    linear-gradient(165deg, #050a14 0%, #0a1024 54%, #07182b 100%);
}
.pr-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .018) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, .018) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(1100px 700px at 50% 0%, #000 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(1100px 700px at 50% 0%, #000 25%, transparent 78%);
}

.pr-wrap {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
}

/* ---------------- Header ---------------- */
.pr-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: clamp(18px, 2.4vw, 30px);
}

.pr-brand { display: flex; align-items: center; gap: 15px; min-width: 0; }

.pr-logo {
  width: clamp(52px, 5vw, 66px);
  height: clamp(52px, 5vw, 66px);
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 20px;
  font-size: clamp(1.3rem, 1.6vw, 1.7rem);
  color: #fff;
  background: linear-gradient(135deg, var(--brand, #2563eb), var(--brand2, #06b6d4));
  box-shadow: 0 22px 50px -20px var(--brand-soft, rgba(37, 99, 235, .95));
  position: relative;
  overflow: hidden;
}
.pr-logo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 18%, rgba(255, 255, 255, .3), transparent 55%);
}

.pr-brand h1 {
  margin: 0;
  font-size: clamp(1.25rem, 1.8vw, 1.75rem);
  font-weight: 900;
  letter-spacing: -.015em;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pr-brand__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brand2, #06b6d4);
}

.pr-top__actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.pr-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(148, 163, 184, .22);
  font-size: .78rem;
  font-weight: 700;
  color: #dbe4f6;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s, border-color .2s;
}
.pr-chip i { color: var(--brand2, #06b6d4); }
.pr-chip:hover { background: rgba(255, 255, 255, .12); border-color: rgba(148, 163, 184, .4); color: #fff; }
.pr-chip--solid {
  background: linear-gradient(135deg, var(--brand, #2563eb), var(--brand2, #06b6d4));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 14px 30px -16px var(--brand-soft, rgba(37, 99, 235, .9));
}
.pr-chip--solid i { color: #fff; }
.pr-chip--solid:hover { color: #fff; filter: brightness(1.05); }

/* ---------------- Layout ---------------- */
.pr-layout {
  display: grid;
  grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
  gap: clamp(16px, 2vw, 26px);
  align-items: start;
}

/* ---------------- Aside ---------------- */
.pr-aside { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 14px; }

.pr-hero {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  padding: clamp(22px, 2.4vw, 32px);
  background: linear-gradient(150deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .035));
  border: 1px solid rgba(148, 163, 184, .24);
  box-shadow: 0 40px 90px -60px rgba(0, 0, 0, .95);
  backdrop-filter: blur(10px);
}
.pr-hero::before {
  content: '';
  position: absolute;
  inset: -30% -20% auto auto;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, var(--brand-soft, rgba(37, 99, 235, .35)), transparent 66%);
  pointer-events: none;
}
.pr-hero > * { position: relative; }

.pr-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--brand-soft2, rgba(37, 99, 235, .16));
  border: 1px solid var(--brand-line, rgba(37, 99, 235, .4));
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
}
.pr-hero__eyebrow i { color: var(--brand2, #06b6d4); }

.pr-hero h2 {
  margin: 14px 0 8px;
  font-size: clamp(1.45rem, 2vw, 1.95rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -.02em;
  color: #fff;
}
.pr-hero p { margin: 0; color: #b9c6df; font-size: .93rem; font-weight: 500; line-height: 1.55; }

.pr-steps { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.pr-step { display: flex; gap: 12px; align-items: flex-start; }
.pr-step__num {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-size: .82rem;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, var(--brand, #2563eb), var(--brand2, #06b6d4));
  box-shadow: 0 10px 22px -14px var(--brand-soft, rgba(37, 99, 235, .9));
}
.pr-step__body strong { display: block; font-size: .88rem; font-weight: 800; color: #f1f5ff; }
.pr-step__body span { display: block; margin-top: 2px; font-size: .8rem; color: #a7b5cf; line-height: 1.45; }

.pr-trust { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.pr-trust span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(148, 163, 184, .2);
  font-size: .72rem;
  font-weight: 700;
  color: #cfd9ec;
}
.pr-trust i { color: #34d399; }

.pr-contact {
  border-radius: 20px;
  padding: 8px;
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(148, 163, 184, .2);
  backdrop-filter: blur(8px);
}
.pr-contact__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 14px;
  color: #dbe4f6;
  text-decoration: none;
  font-size: .86rem;
  font-weight: 600;
}
.pr-contact__item + .pr-contact__item { border-top: 1px solid rgba(148, 163, 184, .12); }
a.pr-contact__item:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.pr-contact__ic {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 11px;
  font-size: .88rem;
  color: var(--brand2, #06b6d4);
  background: var(--brand-soft2, rgba(37, 99, 235, .16));
  border: 1px solid var(--brand-line, rgba(37, 99, 235, .35));
}
.pr-contact__text strong { display: block; font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #94a3b8; }
.pr-contact__text span { display: block; margin-top: 1px; color: #e8eefc; font-weight: 700; word-break: break-word; }

/* ---------------- Form card ---------------- */
.pr-card {
  border-radius: 26px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 50px 110px -60px rgba(2, 6, 23, .95);
  overflow: hidden;
}

.pr-card__head {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: clamp(22px, 2.4vw, 32px) clamp(20px, 2.6vw, 36px);
  background: linear-gradient(120deg, #0b1220 0%, #101a36 55%, #0f2f3d 100%);
  color: #fff;
}
.pr-card__head::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(420px 220px at 86% 6%, var(--brand2-soft, rgba(6, 182, 212, .3)), transparent 62%),
    radial-gradient(380px 220px at 12% 122%, var(--brand-soft, rgba(37, 99, 235, .35)), transparent 62%);
}
.pr-card__head > * { position: relative; }

.pr-card__title { display: flex; align-items: center; gap: 14px; min-width: 0; }
.pr-card__icon {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 16px;
  font-size: 1.35rem;
  color: #fff;
  background: linear-gradient(135deg, var(--brand, #2563eb), var(--brand2, #06b6d4));
  box-shadow: 0 18px 38px -18px var(--brand-soft, rgba(37, 99, 235, .95));
}
.pr-card__title h2 { margin: 0; font-size: clamp(1.15rem, 1.5vw, 1.4rem); font-weight: 900; letter-spacing: -.01em; }
.pr-card__title p { margin: 4px 0 0; font-size: .84rem; color: rgba(226, 232, 240, .78); font-weight: 500; }

.pr-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .2);
  font-size: .72rem;
  font-weight: 800;
  color: #e8eefc;
  white-space: nowrap;
}
.pr-pill i { color: #6ee7b7; }

/* ---------------- Form ---------------- */
.pr-form { padding: clamp(20px, 2.6vw, 34px); }

.pr-section + .pr-section { margin-top: clamp(18px, 2vw, 26px); padding-top: clamp(18px, 2vw, 26px); border-top: 1px dashed var(--line); }

.pr-section__head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.pr-section__num {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 9px;
  font-size: .72rem;
  font-weight: 900;
  color: var(--brand, #2563eb);
  background: var(--brand-soft2, rgba(37, 99, 235, .12));
  border: 1px solid var(--brand-line, rgba(37, 99, 235, .3));
}
.pr-section__title { margin: 0; font-size: .78rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: #475569; }
.pr-section__hint { margin-left: auto; font-size: .74rem; font-weight: 600; color: var(--muted); }

.pr-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px 16px; }

.pr-field { grid-column: span 12; display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.pr-field--half { grid-column: span 6; }
.pr-field--third { grid-column: span 4; }

.pr-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  font-weight: 800;
  color: #1e293b;
}
.pr-label i { color: var(--brand, #2563eb); font-size: .86em; }
.pr-req { color: #dc2626; font-weight: 900; }
.pr-opt { color: #94a3b8; font-weight: 600; font-size: .76rem; }

.pr-control { position: relative; }
.pr-control input,
.pr-control select,
.pr-control textarea {
  width: 100%;
  min-height: 50px;
  padding: .78rem 1rem;
  border-radius: 14px;
  border: 1.6px solid #e2e8f0;
  background: #fbfcff;
  color: var(--ink);
  font-family: inherit;
  font-size: .95rem;
  font-weight: 500;
  transition: border-color .18s, box-shadow .18s, background .18s;
  appearance: none;
}
.pr-control textarea { min-height: 132px; resize: vertical; line-height: 1.5; }
.pr-control input::placeholder,
.pr-control textarea::placeholder { color: #a8b3c7; }
.pr-control input:hover,
.pr-control select:hover,
.pr-control textarea:hover { border-color: #cbd5e1; }
.pr-control input:focus,
.pr-control select:focus,
.pr-control textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--brand, #2563eb);
  box-shadow: 0 0 0 4px var(--brand-soft2, rgba(37, 99, 235, .12));
}
.pr-control select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.pr-control input[readonly] {
  background: #f1f5f9;
  color: #475569;
  font-weight: 600;
  cursor: default;
}
.pr-hint { font-size: .74rem; font-weight: 600; color: var(--muted); }

.pr-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: clamp(18px, 2vw, 26px);
  padding-top: clamp(16px, 2vw, 22px);
  border-top: 1px solid var(--line);
}
.pr-note { display: flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 600; color: var(--muted); }
.pr-note i { color: #dc2626; font-size: .7em; }

.pr-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border: 0;
  border-radius: 999px;
  font-family: inherit;
  font-size: .95rem;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, var(--brand, #2563eb), var(--brand2, #06b6d4));
  box-shadow: 0 24px 48px -24px var(--brand-soft, rgba(37, 99, 235, .95));
  cursor: pointer;
  transition: transform .2s, filter .2s, box-shadow .2s;
}
.pr-submit:hover { transform: translateY(-2px); filter: brightness(1.04); color: #fff; }
.pr-submit:active { transform: translateY(0); }
.pr-submit:focus-visible { outline: 3px solid var(--brand-line, rgba(37, 99, 235, .45)); outline-offset: 3px; }

/* ---------------- Alerts ---------------- */
.pr-alert {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border-radius: 16px;
  padding: 15px 18px;
  margin: 0 clamp(20px, 2.6vw, 34px) 0;
  font-size: .88rem;
  font-weight: 600;
  line-height: 1.5;
}
.pr-alert i { margin-top: 2px; }
.pr-alert strong { display: block; font-weight: 900; margin-bottom: 3px; }
.pr-alert ul { margin: 6px 0 0; padding-left: 18px; }
.pr-alert li + li { margin-top: 3px; }

.pr-alert--err { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.pr-alert--err i { color: #dc2626; }
.pr-alert--ok { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.pr-alert--ok i { color: #059669; }

.pr-form > .pr-alert { margin: 0 0 18px; }

/* ---------------- Success / disabled states ---------------- */
.pr-state { padding: clamp(24px, 3vw, 40px); text-align: center; }
.pr-state__icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-size: 1.9rem;
  color: #fff;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  box-shadow: 0 26px 60px -22px rgba(34, 197, 94, .85);
}
.pr-state__icon--off { background: linear-gradient(135deg, #f59e0b, #f97316); box-shadow: 0 26px 60px -22px rgba(245, 158, 11, .8); }
.pr-state h3 { margin: 0 0 8px; font-size: clamp(1.25rem, 1.8vw, 1.6rem); font-weight: 900; color: #0f172a; letter-spacing: -.01em; }
.pr-state p { margin: 0 auto; max-width: 560px; color: #475569; font-size: .94rem; font-weight: 500; line-height: 1.6; }
.pr-state__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 22px; }

.pr-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin: 22px 0 0;
  text-align: left;
}
.pr-summary__item {
  padding: 12px 14px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e8eef6;
}
.pr-summary__item strong { display: block; font-size: .66rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: #94a3b8; }
.pr-summary__item span { display: block; margin-top: 3px; font-size: .9rem; font-weight: 800; color: #0f172a; }

.pr-linkbtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: .86rem;
  font-weight: 800;
  text-decoration: none;
  color: #0f172a;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  transition: background .18s, border-color .18s;
}
.pr-linkbtn:hover { background: #e8eef7; border-color: #cbd5e1; color: #0f172a; }
.pr-linkbtn--brand {
  color: #fff;
  background: linear-gradient(135deg, var(--brand, #2563eb), var(--brand2, #06b6d4));
  border-color: transparent;
  box-shadow: 0 18px 38px -20px var(--brand-soft, rgba(37, 99, 235, .9));
}
.pr-linkbtn--brand:hover { color: #fff; filter: brightness(1.04); }

/* ---------------- Footer ---------------- */
.pr-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: clamp(20px, 3vw, 34px);
  padding: 0 4px;
  font-size: .76rem;
  font-weight: 600;
  color: #8fa0bd;
}
.pr-foot span { display: inline-flex; align-items: center; gap: 7px; }
.pr-foot i { color: var(--brand2, #06b6d4); }

/* ---------------- Responsive ---------------- */
@media (max-width: 980px) {
  .pr-layout { grid-template-columns: minmax(0, 1fr); }
  .pr-aside { position: static; }
}
@media (max-width: 720px) {
  .pr-field--half, .pr-field--third { grid-column: span 12; }
  .pr-card__head { padding: 20px; }
  .pr-actions { flex-direction: column-reverse; align-items: stretch; }
  .pr-submit { width: 100%; }
  .pr-note { justify-content: center; }
  .pr-section__hint { display: none; }
  .pr-brand h1 { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pr-submit, .pr-chip, .pr-linkbtn { transition: none; }
}
