:root {
  --ink: #16232d;
  --ink-soft: #4a5a66;
  --ink-muted: #6b7a85;
  --navy: #123a4a;
  --navy-deep: #0c2833;
  --teal: #0f766e;
  --teal-dark: #0b5d57;
  --teal-soft: #e6f4f1;
  --sand: #faf7f2;
  --line: #e2e8e6;
  --white: #ffffff;
  --amber-bg: #fdf3e3;
  --amber-ink: #7a4b12;
  --red-ink: #a1281e;
  --radius: 16px;
  --radius-small: 10px;
  --shadow: 0 1px 2px rgba(18, 58, 74, 0.06), 0 12px 32px -12px rgba(18, 58, 74, 0.16);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  line-height: 1.2;
  color: var(--navy-deep);
  margin: 0 0 0.5em;
}

a {
  color: var(--teal);
}

img,
svg {
  display: block;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid #f2a33a;
  outline-offset: 2px;
}

.container {
  width: min(1140px, 100% - 40px);
  margin-inline: auto;
}

.narrow {
  width: min(780px, 100% - 40px);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  padding: 8px 14px;
  background: var(--white);
  border-radius: 8px;
}

.skip-link:focus {
  left: 8px;
}

/* Barre d'urgence & en-tête */
.emergency-bar {
  background: var(--amber-bg);
  color: var(--amber-ink);
  font-size: 14px;
  padding: 7px 0;
  text-align: center;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy-deep);
}

.brand span {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand strong {
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: -0.01em;
}

.brand img {
  width: auto;
  height: 50px;
}

.brand small {
  color: #66775a;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 10.5px;
  font-weight: 600;
}

.brand small {
  font-size: 12px;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
}

.main-nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
}

.main-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 15px;
}

.main-nav a:hover {
  color: var(--teal);
}

/* Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--radius-small);
  border: 1.5px solid transparent;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, transform 0.15s;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
}

.btn-primary:hover:not(:disabled) {
  background: var(--teal-dark);
}

.btn-ghost {
  background: var(--white);
  border-color: var(--line);
  color: var(--navy-deep);
}

.btn-ghost:hover {
  border-color: var(--teal);
}

.btn-light {
  background: var(--white);
  color: var(--navy-deep);
}

.btn-small {
  padding: 9px 16px;
  font-size: 15px;
}

.btn-block {
  width: 100%;
}

.link-btn {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 14px;
  color: var(--teal);
  text-decoration: underline;
  cursor: pointer;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Hero */
.hero {
  padding: 56px 0 72px;
  background:
    radial-gradient(ellipse at 90% 0%, rgba(15, 118, 110, 0.12), transparent 55%),
    linear-gradient(180deg, var(--white) 0%, var(--sand) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: start;
}

.hero-grid > * {
  min-width: 0;
}

.hero h1 {
  font-size: clamp(34px, 4.4vw, 52px);
  letter-spacing: -0.01em;
  margin-top: 18px;
}

.lead {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 34em;
}

.availability-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-size: 14px;
  font-weight: 600;
}

.live-dot {
  position: relative;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #16a34a;
}

.live-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #16a34a;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.8; }
  80%, 100% { transform: scale(2.4); opacity: 0; }
}

.trust-list {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  gap: 18px;
}

.trust-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.trust-list li > span:last-child {
  display: flex;
  flex-direction: column;
  font-size: 15px;
  color: var(--ink-soft);
}

.trust-list strong {
  color: var(--ink);
}

.trust-list a {
  font-size: 14px;
}

.trust-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid var(--line);
}

.trust-icon svg {
  width: 22px;
  height: 22px;
  fill: var(--teal);
}

/* Module de réservation */
.booking {
  padding: 26px;
  scroll-margin-top: 90px;
}

.booking-header h2 {
  font-size: 26px;
  margin-bottom: 2px;
}

.booking-header > p {
  margin: 0 0 18px;
  color: var(--ink-soft);
}

.stepper {
  display: flex;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  counter-reset: step;
}

.stepper li {
  flex: 1;
  counter-increment: step;
  padding-top: 10px;
  border-top: 3px solid var(--line);
  font-size: 13px;
  color: var(--ink-muted);
}

.stepper li::before {
  content: counter(step) ". ";
}

.stepper li.active,
.stepper li.done {
  border-color: var(--teal);
  color: var(--teal-dark);
  font-weight: 600;
}

.booking-error {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: var(--radius-small);
  background: #fdecea;
  color: var(--red-ink);
  font-size: 14px;
}

.step-hint {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--ink-muted);
}

.days {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 14px;
  scrollbar-width: thin;
}

.day-btn {
  flex: none;
  min-width: 78px;
  padding: 9px 10px;
  border-radius: var(--radius-small);
  border: 1.5px solid var(--line);
  background: var(--white);
  font: inherit;
  text-align: center;
  cursor: pointer;
  line-height: 1.25;
}

.day-btn strong {
  display: block;
  font-size: 14px;
  color: var(--navy-deep);
}

.day-btn span {
  display: block;
  font-size: 12px;
  color: var(--ink-muted);
}

.day-btn small {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  color: var(--teal);
  font-weight: 600;
}

.day-btn.is-full small {
  color: var(--ink-muted);
  font-weight: 400;
}

.day-btn[aria-checked="true"] {
  background: var(--navy);
  border-color: var(--navy);
}

.day-btn[aria-checked="true"] strong,
.day-btn[aria-checked="true"] span,
.day-btn[aria-checked="true"] small {
  color: var(--white);
}

.slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
  gap: 8px;
  max-height: 232px;
  overflow-y: auto;
  margin-bottom: 18px;
}

.slot-btn {
  padding: 10px 0;
  border-radius: var(--radius-small);
  border: 1.5px solid var(--line);
  background: var(--white);
  font: inherit;
  font-weight: 600;
  color: var(--navy-deep);
  cursor: pointer;
}

.slot-btn:hover {
  border-color: var(--teal);
  background: var(--teal-soft);
}

.slot-btn[aria-checked="true"] {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
}

.slots-empty,
.slots-loading {
  margin: 0 0 18px;
  padding: 18px;
  text-align: center;
  font-size: 14px;
  color: var(--ink-muted);
  background: var(--sand);
  border-radius: var(--radius-small);
}

.recap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding: 11px 14px;
  border-radius: var(--radius-small);
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-size: 14px;
  font-weight: 600;
}

fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 16px;
}

legend,
.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.field {
  margin-bottom: 14px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

input:not([type="radio"]):not([type="checkbox"]),
textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-small);
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--white);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
}

input[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--red-ink);
}

textarea {
  resize: vertical;
}

.segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.segmented legend {
  width: 100%;
}

.segmented label {
  flex: 1;
  position: relative;
}

.segmented input,
.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.segmented span {
  display: block;
  padding: 9px 6px;
  text-align: center;
  font-size: 14px;
  border: 1.5px solid var(--line);
  background: var(--white);
  cursor: pointer;
}

.segmented label:first-of-type span {
  border-radius: var(--radius-small) 0 0 var(--radius-small);
}

.segmented label:last-of-type span {
  border-radius: 0 var(--radius-small) var(--radius-small) 0;
}

.segmented label + label span {
  border-left: 0;
}

.segmented input:checked + span {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
  font-weight: 600;
}

.segmented input:focus-visible + span,
.choice input:focus-visible + .choice-body {
  outline: 3px solid #f2a33a;
  outline-offset: 2px;
}

.choice-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.choice-group legend {
  grid-column: 1 / -1;
}

.choice {
  position: relative;
  display: block;
  cursor: pointer;
}

.choice-body {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--white);
}

.choice-body strong {
  font-size: 15px;
}

.choice-body small {
  font-size: 12.5px;
  color: var(--ink-muted);
}

.choice input:checked + .choice-body {
  border-color: var(--teal);
  background: var(--teal-soft);
  box-shadow: 0 0 0 1px var(--teal);
}

.pay-methods {
  grid-template-columns: 1fr;
}

.pay-methods .choice-body {
  display: grid;
  grid-template-columns: 52px 1fr;
  column-gap: 12px;
  align-items: center;
}

.pay-methods .choice-body small {
  grid-column: 2;
}

.pay-logo {
  grid-row: span 2;
  display: grid;
  place-items: center;
  height: 34px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 15px;
}

.pay-bit {
  background: #1fc7c1;
  color: #082b2a;
  font-family: var(--sans);
  letter-spacing: -0.02em;
}

.pay-wallet {
  background: #111;
  color: var(--white);
}

.pay-card {
  background: var(--navy);
}

.pay-card svg {
  width: 22px;
  height: 22px;
  fill: var(--white);
}

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 4px 0 18px;
  padding: 12px 14px;
  border-radius: var(--radius-small);
  background: var(--amber-bg);
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
}

.consent input {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--teal);
}

.consent.is-invalid {
  box-shadow: 0 0 0 2px var(--red-ink);
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
}

.step-actions {
  display: flex;
  gap: 10px;
}

.step-actions .btn-primary {
  flex: 1;
}

.amount {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--line);
}

.amount strong {
  font-family: var(--serif);
  font-size: 30px;
  color: var(--navy-deep);
}

.demo-note {
  margin: 0 0 12px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #eef2ff;
  color: #3730a3;
  font-size: 13px;
  text-align: center;
}

.btn-pay {
  padding: 15px 22px;
  font-size: 17px;
}

.btn-pay.is-loading {
  pointer-events: none;
  opacity: 0.75;
}

.secure-note {
  display: flex;
  gap: 8px;
  margin: 12px 0 0;
  font-size: 12.5px;
  color: var(--ink-muted);
}

.secure-note svg {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  fill: var(--teal);
}

.confirmation {
  text-align: center;
}

.check-circle {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 4px auto 14px;
  border-radius: 50%;
  background: var(--teal-soft);
}

.check-circle svg {
  width: 34px;
  height: 34px;
  fill: var(--teal);
}

.confirmation h3 {
  font-size: 24px;
}

.confirm-slot {
  font-size: 17px;
  font-weight: 600;
  color: var(--navy-deep);
}

.calendar-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.calendar-actions .btn {
  padding: 11px 10px;
  font-size: 14px;
}

.confirm-ref {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--ink-muted);
}

/* Sections */
.section {
  padding: 80px 0;
}

.section-tint {
  background: var(--white);
  border-block: 1px solid var(--line);
}

.section-title {
  font-size: clamp(28px, 3vw, 38px);
  text-align: center;
}

.section-title.left {
  text-align: left;
  margin-bottom: 4px;
}

.section-sub {
  text-align: center;
  color: var(--ink-soft);
  margin: -6px 0 40px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.step-card {
  padding: 28px;
}

.step-card h3 {
  font-size: 21px;
}

.step-card p {
  margin: 0;
  color: var(--ink-soft);
}

.step-num {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
}

.two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.info-card {
  padding: 32px;
}

.info-card h2 {
  font-size: 26px;
}

.warning-card {
  background: #fffaf3;
  border-color: #f3dfbf;
}

.check-list,
.alert-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.check-list li,
.alert-list li {
  position: relative;
  padding-left: 30px;
}

.check-list li::before,
.alert-list li::before {
  position: absolute;
  left: 0;
  top: 2px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
}

.check-list li::before {
  content: "✓";
  background: var(--teal-soft);
  color: var(--teal);
}

.alert-list li::before {
  content: "!";
  background: #fbe3d0;
  color: var(--red-ink);
}

.price-card {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 40px;
  align-items: center;
  padding: 44px;
}

.price {
  margin: 0;
  font-family: var(--serif);
  font-size: 64px;
  line-height: 1;
  color: var(--navy-deep);
}

.price small {
  font-size: 20px;
  color: var(--ink-muted);
}

.price-sub {
  color: var(--ink-soft);
  margin: 10px 0 22px;
}

.doctor-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 52px;
  align-items: center;
}

.doctor-photo {
  aspect-ratio: 4 / 5;
  border-radius: 24px;
  background: linear-gradient(160deg, var(--teal-soft), #cfe3df);
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(15, 60, 55, 0.12);
}

.doctor-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.doctor-role {
  color: var(--teal-dark);
  font-weight: 600;
  margin: 0 0 22px;
}

.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 24px;
  margin: 0 0 22px;
}

.facts dt {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
}

.facts dd {
  margin: 2px 0 0;
  font-weight: 600;
}

.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  margin-bottom: 10px;
}

.faq summary {
  padding: 18px 48px 18px 20px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  position: relative;
}

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

.faq summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: var(--teal);
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--ink-soft);
}

.cta-band {
  background: linear-gradient(120deg, var(--navy-deep), var(--teal-dark));
  color: var(--white);
  padding: 56px 0;
}

.cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.cta-band h2 {
  color: var(--white);
  font-size: 30px;
  margin-bottom: 4px;
}

.cta-band p {
  margin: 0;
  opacity: 0.85;
}

.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  padding: 52px 0 24px;
}

.site-footer strong {
  color: var(--white);
}

.site-footer a {
  color: rgba(255, 255, 255, 0.85);
}

.site-footer p {
  margin: 6px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}

.footer-bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}

/* Pages légales */
.legal {
  padding: 56px 0 80px;
}

.legal h1 {
  font-size: 38px;
}

.legal-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}

.legal-toc a {
  display: inline-block;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  text-decoration: none;
  font-size: 14px;
}

.legal section {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 22px;
}

.legal h2 {
  font-size: 26px;
}

.legal h3 {
  font-size: 18px;
  margin-top: 22px;
}

.legal p,
.legal li {
  color: var(--ink-soft);
}

.legal-updated {
  color: var(--ink-muted);
  font-size: 14px;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid,
  .two-cols,
  .price-card,
  .doctor-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 36px;
  }

  .doctor-photo {
    max-width: 240px;
  }

  .main-nav {
    display: none;
  }

  .header-inner .btn {
    margin-left: auto;
  }
}

@media (max-width: 640px) {
  .steps-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .field-row,
  .choice-group,
  .facts {
    grid-template-columns: 1fr;
  }

  .booking {
    padding: 20px;
  }

  .price-card,
  .info-card {
    padding: 26px;
  }

  .section {
    padding: 56px 0;
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand small {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .live-dot::after {
    animation: none;
  }
}
