/* Réservation en ligne du cabinet du Dr Fatma Frioui — maquette « Réservez votre rendez-vous en ligne ».
   Mobile d'abord, propriétés logiques pour l'arabe (RTL). Polices hébergées sur le site (CSP font-src 'self'). */

@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap; src: url("../fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-display: swap; src: url("../fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap; src: url("../fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-display: swap; src: url("../fonts/poppins-700.woff2") format("woff2"); }
@font-face { font-family: "Caveat"; font-weight: 600; font-display: swap; src: url("../fonts/caveat-600.woff2") format("woff2"); }
@font-face { font-family: "Cairo"; font-weight: 400 700; font-display: swap; src: url("../fonts/cairo-arabic.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }

:root {
  --navy: #0d2f6e;
  --navy-deep: #0a2457;
  --ink: #0b2559;
  --primary: #1565d8;
  --primary-dark: #0f4fae;
  --sky: #e9f2fd;
  --sky-strong: #d6e6fb;
  --text: #22304d;
  --muted: #5d6b88;
  --line: #dbe5f3;
  --page: #f5f9fe;
  --surface: #ffffff;
  --success: #15803d;
  --success-bg: #e6f6ec;
  --warning: #a85a06;
  --warning-bg: #fef1de;
  --danger: #c62828;
  --danger-bg: #fdebeb;
  --radius: 22px;
  --shadow: 0 2px 4px rgba(13, 47, 110, 0.04), 0 18px 48px rgba(13, 47, 110, 0.10);
  --font: "Poppins", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font-ar: "Cairo", "Poppins", "Segoe UI", Tahoma, Arial, sans-serif;
  --script: "Caveat", "Segoe Script", cursive;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--page);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
}

html[lang="ar"] body { font-family: var(--font-ar); }

main { flex: 1 0 auto; }

[hidden] { display: none !important; }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0; text-wrap: balance; }

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

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

:focus-visible { outline: 3px solid rgba(21, 101, 216, 0.45); outline-offset: 2px; }

svg { flex: 0 0 auto; }

.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ------------------------------------------------------------------ En-tête */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--line), 0 6px 20px rgba(13, 47, 110, 0.05);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }

.brand-logo { flex: 0 0 auto; width: 48px; height: 48px; display: grid; place-items: center; }
.brand-logo img { width: 100%; height: 100%; object-fit: contain; }

.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-text strong { font-size: 18px; font-weight: 700; color: var(--ink); white-space: nowrap; letter-spacing: -0.01em; }
.brand-text span { font-size: 12.5px; color: var(--text); white-space: nowrap; }

.main-nav { display: none; align-items: center; gap: 6px; }

.main-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 10px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.main-nav a svg { width: 18px; height: 18px; fill: var(--primary); }
.main-nav a:hover, .main-nav a.is-active { color: var(--primary); }
.main-nav a.is-active::after {
  content: "";
  position: absolute;
  inset-inline: 10px;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--primary);
}

.header-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }

.lang-switch {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  min-height: 38px;
}

.lang-switch:hover { border-color: var(--primary); color: var(--primary); }

/* ------------------------------------------------------------------ Boutons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 22px;
  border-radius: 14px;
  border: 1.5px solid transparent;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.button--block { width: 100%; }
.button--primary { background: var(--primary); color: #fff; box-shadow: 0 8px 18px rgba(21, 101, 216, 0.22); }
.button--primary:hover { background: var(--primary-dark); }
.button--primary:disabled { background: #a9c4e6; box-shadow: none; cursor: not-allowed; }
.button--ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.button--ghost:hover { border-color: var(--primary); }
.button--danger { background: var(--surface); color: var(--danger); border-color: #f1b9b9; }
.button--danger:hover { background: var(--danger-bg); }
.button--small { min-height: 38px; padding: 6px 14px; font-size: 14px; background: var(--surface); border-color: var(--line); color: var(--ink); }

.button--pill {
  display: none;
  min-height: 46px;
  padding: 8px 22px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  box-shadow: 0 8px 20px rgba(13, 47, 110, 0.25);
}
.button--pill:hover { background: var(--primary); }

.button--hero {
  min-height: 56px;
  padding: 12px 26px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--navy));
  color: #fff;
  box-shadow: 0 14px 28px rgba(13, 47, 110, 0.28);
}
.button--hero:hover { transform: translateY(-1px); box-shadow: 0 18px 32px rgba(13, 47, 110, 0.32); }
html[dir="rtl"] .icon--arrow { transform: scaleX(-1); }

.link-button {
  background: none;
  border: 0;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  padding: 8px;
  min-height: 44px;
}

/* ------------------------------------------------------------------ Bandeau d'accueil */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60% 80% at 15% 20%, #ffffff 0%, rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, #f3f8fe 0%, #e4effc 100%);
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 16px 150px;
  display: grid;
}

.hero-copy { position: relative; z-index: 2; }

.hero h1 { font-size: clamp(30px, 6.2vw, 50px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.12; }

.hero h1 .accent {
  position: relative;
  color: var(--primary);
  white-space: nowrap;
}

.hero h1 .accent::after {
  content: "";
  position: absolute;
  inset-inline: 4% 0;
  bottom: -0.12em;
  height: 0.16em;
  border-radius: 50%;
  border-bottom: 3px solid var(--primary);
}

.hero-text { margin: 18px 0 0; max-width: 34em; font-size: 16px; color: var(--text); }

.hero-badges {
  list-style: none;
  margin: 22px 0 26px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 0;
}

.hero-badges li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-inline: 0 16px;
  margin-inline-end: 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.25;
  max-width: 9.5em;
}

.hero-badges li + li { border-inline-start: 1px solid var(--sky-strong); padding-inline-start: 16px; margin-inline-start: -16px; }

.badge-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 12px rgba(13, 47, 110, 0.10);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.badge-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--primary); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.badge-icon--solid svg path:first-child { fill: var(--primary); }
.badge-icon--solid svg path:last-child { stroke: #fff; stroke-width: 2.2; }

.hero-photo {
  position: absolute;
  inset-inline-end: 0;
  top: 0;
  bottom: 0;
  width: 47%;
  display: none;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% 30%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 22%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 22%);
}

html[dir="rtl"] .hero-photo img { transform: scaleX(-1); }

.hero-wave { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 110px; z-index: 1; }
.hero-wave .wave-back { fill: var(--primary); opacity: 0.9; }
.hero-wave .wave-front { fill: var(--page); }

/* ------------------------------------------------------------------ Carte de réservation */

.booking { position: relative; z-index: 3; max-width: 1200px; margin: -96px auto 0; padding: 0 16px; }

.booking-card {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 46px 16px 22px;
  margin-block-start: 26px;
  scroll-margin-top: 104px;
}

.booking-title {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  max-width: calc(100% - 24px);
  padding: 12px 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--navy));
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(13, 47, 110, 0.25);
}

.booking-title .icon { width: 22px; height: 22px; }

.stepper {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
}

.stepper li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

/* Trait entre deux étapes, du centre d'une pastille au centre de la suivante. */
.stepper li + li::before {
  content: "";
  position: absolute;
  top: 24px;
  inset-inline-end: 50%;
  width: 100%;
  height: 2px;
  background: var(--line);
  z-index: 0;
}
.stepper li.is-done + li::before, .stepper li.is-done + li.is-current::before { background: var(--primary); }

.step-dot {
  position: relative;
  z-index: 1;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--sky);
  box-shadow: 0 0 0 5px #fff;
  margin-block-end: 6px;
}

.step-dot svg { width: 24px; height: 24px; fill: none; stroke: var(--primary); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.step-num { font-size: 15px; font-weight: 700; color: var(--ink); }
.step-label { color: var(--text); line-height: 1.25; }

.stepper li.is-current .step-dot { background: var(--primary); box-shadow: 0 0 0 5px #fff, 0 8px 18px rgba(21, 101, 216, 0.35); }
.stepper li.is-current .step-dot svg { stroke: #fff; }
.stepper li.is-current .step-label { color: var(--ink); font-weight: 600; }
.stepper li.is-done .step-dot { background: var(--sky-strong); }

/* minmax(0, …) : la bande des jours défile dans la carte au lieu de l'élargir. */
.booking-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }

.step-title { font-size: 18px; font-weight: 600; margin-block-end: 14px; }

/* Étape 1 : liste des motifs + illustration */
.step--service { display: grid; gap: 18px; }

.service-list { display: grid; gap: 10px; margin-block-end: 16px; }

.service-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 56px;
  padding: 8px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  text-align: start;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(13, 47, 110, 0.04);
  transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
}

.service-item:hover { border-color: #9cc0ef; }

.service-item .service-icon { width: 30px; height: 30px; fill: none; stroke: var(--primary); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.service-item .service-name { flex: 1 1 auto; }

.service-item .service-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  display: none;
  place-items: center;
}
.service-item .service-check svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

.service-item.is-selected {
  border-color: var(--primary);
  background: var(--sky);
  color: var(--primary);
  box-shadow: 0 6px 16px rgba(21, 101, 216, 0.14);
}
.service-item.is-selected .service-check { display: grid; }

.service-art { display: none; text-align: center; align-self: center; }
.service-art img { width: 100%; max-width: 250px; height: auto; }

.script-line {
  margin: 4px 0 0;
  font-family: var(--script);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.05;
  color: var(--navy);
  transform: rotate(-4deg);
}

html[lang="ar"] .script-line { font-family: var(--font-ar); font-size: 22px; transform: none; }

.script-swash { width: 170px; height: 18px; fill: none; stroke: var(--primary); stroke-width: 3; stroke-linecap: round; transform: rotate(-4deg); }

/* Pourquoi nous choisir */
.why {
  border-block-start: 1px solid var(--line);
  padding-block-start: 20px;
}

.why h3 { font-size: 20px; font-weight: 600; margin-block-end: 16px; }
.why ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.why li { display: flex; align-items: center; gap: 16px; font-size: 14.5px; font-weight: 500; color: var(--ink); }

.why-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--sky);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.why-icon svg { width: 30px; height: 30px; fill: none; stroke: var(--primary); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ------------------------------------------------------------------ Jours et horaires */

.empty-state {
  margin: 0 0 12px;
  padding: 16px;
  border-radius: 12px;
  background: var(--sky);
  color: var(--ink);
  font-weight: 600;
}

.day-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 12px;
  margin-block-end: 18px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.day-chip {
  flex: 0 0 76px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 10px 4px;
  border-radius: 14px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}

.day-chip:hover:not(:disabled) { border-color: var(--primary); }

.day-week { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: capitalize; }
.day-num { font-size: 22px; font-weight: 700; color: var(--ink); line-height: 1.15; font-variant-numeric: tabular-nums; }
.day-month { font-size: 12px; color: var(--muted); text-transform: capitalize; }
.day-status { margin-block-start: 4px; font-size: 11px; font-weight: 600; color: var(--success); white-space: nowrap; }

.day-chip.is-off { background: var(--page); cursor: not-allowed; }
.day-chip.is-off .day-num, .day-chip.is-off .day-week, .day-chip.is-off .day-month, .day-chip.is-off .day-status { color: #a7b2c6; }

.day-chip.is-selected { background: var(--primary); border-color: var(--primary); box-shadow: 0 8px 18px rgba(21, 101, 216, 0.25); }
.day-chip.is-selected .day-week, .day-chip.is-selected .day-num,
.day-chip.is-selected .day-month, .day-chip.is-selected .day-status { color: #fff; }

.time-group { font-size: 12.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin: 14px 0 8px; }
.time-group:first-child { margin-block-start: 0; }

.time-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }

.time-slot {
  min-height: 46px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  font-variant-numeric: tabular-nums;
}

.time-slot:hover { border-color: var(--primary); }
.time-slot.is-selected { background: var(--primary); border-color: var(--primary); color: #fff; }

.card-actions { margin-block-start: 18px; }
.card-actions--split { display: grid; gap: 10px; }

/* ------------------------------------------------------------------ Formulaire */

.slot-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  margin-block-end: 18px;
  border-radius: 14px;
  background: var(--sky);
  border: 1px solid var(--sky-strong);
}

.slot-summary-label { display: block; font-size: 12.5px; color: var(--muted); }
.slot-summary strong { color: var(--ink); font-weight: 600; }

.field-row { display: grid; gap: 0 16px; }
.field { margin-block-end: 16px; }
.field label { display: block; font-weight: 600; font-size: 14px; color: var(--ink); margin-block-end: 6px; }

.field input {
  width: 100%;
  min-height: 50px;
  padding: 10px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  font-size: 16px;
}

.field input:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 4px rgba(21, 101, 216, 0.14); }
.field [aria-invalid="true"] { border-color: var(--danger); }
html[dir="rtl"] .field input[dir="ltr"] { text-align: right; }

.input-code { text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; }

.field-hint { margin: 6px 0 0; font-size: 12.5px; color: var(--muted); }
.field-error { margin: 6px 0 8px; font-size: 13.5px; font-weight: 600; color: var(--danger); }

/* Champ piège : hors de l'écran, ignoré par les lecteurs d'écran. */
.trap { position: absolute; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }

.privacy { margin: 6px 0 16px; padding: 14px 16px; border-radius: 14px; background: var(--sky); border: 1px solid var(--sky-strong); }
.privacy h4 { font-size: 14.5px; margin-block-end: 6px; }
.privacy p { margin: 0 0 12px; font-size: 13px; color: var(--muted); }

.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; font-size: 14px; color: var(--ink); cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; flex: 0 0 auto; accent-color: var(--primary); }

.captcha { min-height: 65px; margin-block-end: 6px; }

.notice {
  margin: 12px 0 14px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--warning-bg);
  color: var(--warning);
  font-size: 13.5px;
  font-weight: 600;
}

/* ------------------------------------------------------------------ Confirmation et suivi */

.step--done { text-align: center; }
.step--done h3 { font-size: 22px; margin-block-start: 10px; }
.step--done > p { color: var(--muted); }

.done-icon { width: 60px; height: 60px; margin: 0 auto; border-radius: 50%; background: var(--success-bg); display: grid; place-items: center; }
.done-icon svg { width: 32px; height: 32px; fill: none; stroke: var(--success); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

.ref-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 12px 0 16px;
  padding: 14px;
  border-radius: 14px;
  border: 2px dashed #9fc0ea;
  background: var(--sky);
}

.ref-code { font-size: 32px; font-weight: 700; letter-spacing: 0.12em; color: var(--ink); font-variant-numeric: tabular-nums; }

.done-details { margin: 0 0 12px; text-align: start; }
.done-details dt { font-size: 12.5px; color: var(--muted); }
.done-details dd { margin: 2px 0 10px; font-weight: 600; color: var(--ink); }
.done-details dd.proposed { color: var(--warning); }

.result-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-block-end: 10px; }
.result-code { font-weight: 700; letter-spacing: 0.1em; color: var(--muted); }
.status-text { margin: 0 0 14px; color: var(--text); }

.pill { display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 600; }
.pill--info { background: #e4effc; color: #1e63b8; }
.pill--success { background: var(--success-bg); color: var(--success); }
.pill--warning { background: var(--warning-bg); color: var(--warning); }
.pill--danger { background: var(--danger-bg); color: var(--danger); }
.pill--neutral { background: #edf0f5; color: #526079; }

.clinic-message { margin: 0 0 12px; padding: 12px 14px; border-radius: 12px; background: var(--sky); border-inline-start: 4px solid var(--primary); }
.clinic-message span { font-size: 12.5px; color: var(--muted); }
.clinic-message p { margin: 4px 0 0; color: var(--ink); white-space: pre-line; }

.confirm-box { margin-block-start: 14px; padding: 14px; border-radius: 12px; background: var(--danger-bg); }
.confirm-box p { margin: 0; font-weight: 700; color: var(--danger); }

/* ------------------------------------------------------------------ Bandeaux */

.banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 12px; margin-block-end: 16px; font-weight: 600; }
.banner p { margin: 0; flex: 1 1 220px; }
.banner--error { background: var(--danger-bg); color: var(--danger); border: 1px solid #f1b9b9; }
.banner--warning { background: var(--warning-bg); color: var(--warning); border: 1px solid #f3cf9c; }
.banner--success { background: var(--success-bg); color: var(--success); border: 1px solid #b7e2c5; }

.urgent { margin: 14px 0 0; font-size: 13.5px; color: var(--muted); text-align: center; }

/* ------------------------------------------------------------------ Engagements */

.features { max-width: 1200px; margin: 28px auto 0; padding: 0 16px; display: grid; gap: 14px; }

.feature {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(13, 47, 110, 0.07);
}

.feature-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--sky); display: grid; place-items: center; flex: 0 0 auto; }
.feature-icon svg { width: 34px; height: 34px; fill: none; stroke: var(--navy); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.feature-icon .dot { stroke-width: 2.6; }
.feature h3 { font-size: 17px; font-weight: 600; }
.feature p { margin: 4px 0 0; font-size: 13.5px; color: var(--muted); }

/* ------------------------------------------------------------------ À propos et questions */

.about {
  max-width: 1200px;
  margin: 40px auto 0;
  padding: 0 16px;
  display: grid;
  gap: 20px;
  align-items: center;
}

.about-logo { justify-self: center; width: 150px; padding: 18px; border-radius: 28px; background: var(--surface); box-shadow: 0 10px 30px rgba(13, 47, 110, 0.07); }
.about-logo img { width: 100%; height: auto; display: block; }

.eyebrow { margin: 0 0 6px; font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--primary); }
.about h2 { font-size: 24px; font-weight: 700; }
.about-text > p:not(.eyebrow) { margin: 10px 0 0; max-width: 62ch; color: var(--text); }

.about-facts { margin: 18px 0 0; display: grid; gap: 14px; }
.about-facts dt { font-size: 12.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.about-facts dd { margin: 3px 0 0; font-weight: 500; color: var(--ink); }
.about-facts a { color: var(--primary); font-weight: 600; text-decoration: none; }

.hours-row { display: flex; justify-content: space-between; gap: 16px; padding: 2px 0; max-width: 360px; }
.hours-row span:first-child { text-transform: capitalize; }
.hours-row span:last-child { font-variant-numeric: tabular-nums; }

.faq { max-width: 860px; margin: 44px auto 0; padding: 0 16px; }
.faq h2 { font-size: 24px; font-weight: 700; margin-block-end: 14px; text-align: center; }

.faq details {
  background: var(--surface);
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(13, 47, 110, 0.05);
  margin-block-end: 10px;
  padding: 0 18px;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 0;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--primary); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0; padding: 0 0 16px; color: var(--text); }

/* ------------------------------------------------------------------ Pied de page */

.site-footer { position: relative; margin-block-start: 56px; background: var(--navy); color: #d7e3f8; }

.footer-wave { position: absolute; left: 0; right: 0; bottom: 100%; width: 100%; height: 70px; }
.footer-wave path { fill: var(--navy); }
.footer-wave .wave-light { fill: var(--primary); }

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 26px 16px 22px;
  display: grid;
  gap: 26px;
}

.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.footer-brand strong { font-size: 24px; font-weight: 700; color: #fff; }
.footer-brand span { font-size: 14px; }

.footer-logo { width: 74px; height: 74px; border-radius: 20px; background: #fff; display: grid; place-items: center; padding: 8px; margin-block-end: 6px; }
.footer-logo img { width: 100%; height: 100%; object-fit: contain; }

.footer-col h2 { font-size: 16px; font-weight: 600; color: #fff; margin-block-end: 14px; }

.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14px; }
.contact-list li { display: flex; align-items: flex-start; gap: 10px; }

.site-footer svg:not(.footer-wave) { width: 18px; height: 18px; margin-block-start: 2px; fill: none; stroke: #8fb6f2; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.site-footer a { color: #d7e3f8; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }

.people { display: grid; gap: 18px; }
.person { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.person strong { color: #fff; font-weight: 600; font-size: 15px; }
.person a { display: inline-flex; align-items: center; gap: 10px; width: max-content; max-width: 100%; overflow-wrap: anywhere; }
html[dir="rtl"] .person a { flex-direction: row-reverse; justify-content: flex-end; }

.footer-bottom {
  border-block-start: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--navy-deep);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 20px;
  padding: 14px max(16px, calc((100% - 1168px) / 2));
  font-size: 12.5px;
  color: #a9bfe6;
}
.footer-bottom p { margin: 0; }

/* ------------------------------------------------------------------ Page de suivi */

.track-page { max-width: 720px; margin: -96px auto 0; padding: 0 16px; position: relative; z-index: 3; }
.track-page .booking-card { margin-block-start: 0; padding: 26px 20px; }
.track-page .booking-card + .booking-card { margin-block-start: 16px; }
.track-page .banner { box-shadow: var(--shadow); }
.hero--compact .hero-inner { padding-block-end: 130px; }
.hero--compact h1 { font-size: clamp(28px, 5vw, 40px); }

/* ------------------------------------------------------------------ Écrans plus larges */

@media (min-width: 600px) {
  .time-grid { grid-template-columns: repeat(5, 1fr); }
  .card-actions--split { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr 1fr; }
  .booking-card { padding: 52px 28px 28px; }
  .stepper li { font-size: 14px; }
  .features { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .about { grid-template-columns: 180px 1fr; }
  .about-logo { width: 180px; }
  .about-facts { grid-template-columns: 1fr 1fr; }
  .about-hours { grid-column: 1 / -1; }
}

@media (min-width: 760px) {
  .step--service { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
  .service-art { display: block; }
  .hero-photo { display: block; }
  .hero-copy { max-width: 56%; }
  .hero-inner { padding-block: 44px 150px; }
  .people { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1000px) {
  .header-inner { padding-block: 12px; }
  .brand-logo { width: 56px; height: 56px; }
  .brand-text strong { font-size: 21px; }
  .button--pill { display: inline-flex; }
  .booking-body { grid-template-columns: minmax(0, 1fr) 300px; gap: 0; }
  .booking-main { padding-inline-end: 28px; }
  .why { border-block-start: 0; border-inline-start: 1px solid var(--line); padding: 4px 0 4px 28px; }
  html[dir="rtl"] .why { padding: 4px 28px 4px 0; }
  .booking-card { padding: 56px 36px 34px; }
  .footer-inner { grid-template-columns: 1fr 1fr 1.6fr; padding-block: 34px 28px; }
  .footer-inner > * + * { border-inline-start: 1px solid rgba(255, 255, 255, 0.14); padding-inline-start: 28px; }
  .hero h1 { max-width: 12em; }
}

@media (min-width: 1180px) {
  .main-nav { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
