/* Doorpass — feuille partagée du parcours compte.
   Chargée par inscription.html, tableau.php, ouvrir.php et resilies.php.
   La page de vente garde son CSS embarqué, qui porte ses animations. */

:root {
  --bg: #F3EEE6;
  --surface: #FAF6F0;
  --field: #FFFFFF;
  --fg: #1C1915;
  --muted: #5C554B;
  --line: #E3DCD1;
  --field-border: #8F806B;
  --accent: #7E5732;
  --accent-hover: #6F4C2B;
  --accent-soft: #EFE5D8;
  --ok: #1E6B45;
  --ok-soft: #E7F0E9;
  --no: #8A3E2F;
  --no-soft: #F5E7E2;
  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Outfit', 'Avenir Next', 'Segoe UI', sans-serif;
  --container: 1120px;
  --gutter: clamp(20px, 4vw, 36px);
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(28, 25, 21, 0.05), 0 10px 28px -20px rgba(28, 25, 21, 0.4);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3 { margin: 0; text-wrap: balance; overflow-wrap: break-word; }

::selection { background: var(--accent); color: var(--bg); }

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 16px;
  top: 8px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--fg);
  color: var(--bg);
  border-radius: 999px;
  font-size: 14px;
  transform: translateY(-180%);
  transition: transform 0.15s ease;
}
.skip:focus { transform: translateY(0); color: var(--bg); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Typographie ---------- */

h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.6vw, 50px);
  font-weight: 560;
  line-height: 1.04;
  letter-spacing: -0.022em;
  font-optical-sizing: auto;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 560;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 560;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.lead {
  margin-top: 16px;
  max-width: 46ch;
  color: var(--muted);
}

.muted { color: var(--muted); }

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

.site-head {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 72px;
}

.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 28px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}
.nav-links a {
  padding-block: 6px;
  border-bottom: 1px solid transparent;
  font-size: 14px;
  color: var(--muted);
  transition: color 0.15s ease, border-color 0.15s ease;
}
.nav-links a:hover { color: var(--fg); border-bottom-color: var(--fg); }

.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav-links + .nav-actions { margin-left: 0; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.06s ease;
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

.btn-primary {
  background: var(--accent);
  color: var(--surface);
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--surface); }

.btn-quiet {
  background: transparent;
  border-color: var(--field-border);
  color: var(--fg);
}
.btn-quiet:hover { background: var(--fg); border-color: var(--fg); color: var(--bg); }

.btn-danger {
  background: transparent;
  border-color: var(--no);
  color: var(--no);
}
.btn-danger:hover { background: var(--no); border-color: var(--no); color: var(--surface); }

.btn-plain {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
  padding-inline: 8px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.btn-plain:hover { color: var(--fg); }

.btn-small { min-height: 44px; padding: 10px 16px; font-size: 13.5px; }
.btn-large { min-height: 54px; padding: 16px 28px; font-size: 16.5px; }
.btn-block { width: 100%; }

/* ---------- Champs ---------- */

.field { display: flex; flex-direction: column; gap: 6px; margin: 0 0 18px; min-width: 0; }

.field label {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--fg);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  background: var(--field);
  border: 1px solid var(--field-border);
  border-radius: var(--radius-sm);
  color: var(--fg);
  font-size: 16px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { height: auto; min-height: 96px; padding: 12px 14px; }

.field input::placeholder,
.field textarea::placeholder { color: var(--muted); opacity: 1; }

.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--fg); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--no);
  background: var(--no-soft);
}

.field-help { margin: 0; font-size: 13px; line-height: 1.45; color: var(--muted); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.form-grid .field { margin-bottom: 16px; }
.field-full { grid-column: 1 / -1; }

.field-error {
  display: flex;
  gap: 7px;
  margin: 0;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--no);
}
.field-error::before { content: "!"; flex: none; font-weight: 700; }
.field-error[hidden] { display: none; }

/* Champ mot de passe avec bouton afficher */

.input-with-action { position: relative; display: flex; }
.input-with-action input { padding-right: 96px; }

.input-action {
  position: absolute;
  top: 50%;
  right: 4px;
  transform: translateY(-50%);
  min-height: 44px;
  min-width: 44px;
  padding: 0 12px;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.input-action:hover { color: var(--fg); background: var(--accent-soft); }

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

/* ---------- Panneaux et cartes ---------- */

.panel {
  padding: clamp(22px, 2.6vw, 30px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.section-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.section-head h2 { flex: 1 1 auto; }

/* ---------- Messages ---------- */

.notice {
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--muted);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 15px;
  line-height: 1.5;
}
.notice + .notice { margin-top: 10px; }
.notice-ok { border-left-color: var(--ok); background: var(--ok-soft); }
.notice-warn { border-left-color: var(--accent); background: var(--accent-soft); }
.notice-error { border-left-color: var(--no); background: var(--no-soft); color: var(--no); }
.notice strong { font-weight: 600; }

.notice-stack { margin: 20px 0 0; display: grid; gap: 10px; }
.notice-stack .notice { margin: 0; }

/* ---------- Pastilles ---------- */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}
.pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.pill-ok { color: var(--ok); border-color: color-mix(in oklch, var(--ok) 40%, var(--line)); background: var(--ok-soft); }
.pill-off { color: var(--no); border-color: color-mix(in oklch, var(--no) 40%, var(--line)); background: var(--no-soft); }
.pill-wait { color: var(--accent); border-color: color-mix(in oklch, var(--accent) 40%, var(--line)); background: var(--accent-soft); }

/* ---------- Onglets segmentés ---------- */

.segmented {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 4px;
  padding: 4px;
  margin-bottom: 24px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.segmented button {
  min-height: 44px;
  padding: 8px 14px;
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.segmented button:hover { color: var(--fg); }
.segmented button[aria-selected="true"] {
  background: var(--surface);
  color: var(--fg);
  box-shadow: 0 1px 2px rgba(28, 25, 21, 0.12);
}

/* ---------- Blocs repliables ---------- */

.fold {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 16px;
}
.fold > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  cursor: pointer;
  list-style: none;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--fg);
}
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::after {
  content: "+";
  margin-left: auto;
  font-size: 18px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1;
}
.fold[open] > summary::after { content: "−"; }
.fold > summary:hover { color: var(--accent); }
.fold-body { padding-top: 4px; }

/* ---------- Listes ---------- */

.plain-list { margin: 0; padding: 0; list-style: none; }
.plain-list li {
  padding: 9px 0;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--muted);
}
.plain-list li:first-child { border-top: 0; padding-top: 0; }
.plain-list strong { color: var(--fg); font-weight: 500; }

.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li {
  position: relative;
  padding: 0 0 14px 34px;
  counter-increment: step;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--muted);
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent);
}
.steps li:last-child { padding-bottom: 0; }
.steps strong { color: var(--fg); font-weight: 500; }

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

.pagefoot {
  margin-top: clamp(48px, 6vw, 80px);
  padding-block: 36px 44px;
  border-top: 1px solid var(--line);
}

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px 40px;
}

.foot-brand { display: flex; flex-direction: column; gap: 10px; }
.foot-brand .brand img { height: 22px; }

.foot-links { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14px; }
.foot-links a { color: var(--muted); border-bottom: 1px solid transparent; }
.foot-links a:hover { color: var(--fg); border-bottom-color: var(--fg); }

.foot-domain, .foot-legal { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.foot-legal { max-width: 56ch; flex-basis: 100%; }

/* ---------- Page de compte ---------- */

.account { padding-block: clamp(36px, 5vw, 64px) clamp(24px, 3vw, 40px); }

.account-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.account-aside { position: sticky; top: 96px; }
.account-aside h1 { max-width: 14ch; }
.account-aside .lead { max-width: 34ch; }

.aside-block { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }

.aside-facts {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.aside-facts li { display: flex; gap: 12px; font-size: 14.5px; line-height: 1.5; }
.aside-facts .mark {
  flex: none;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--field-border);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  margin-top: 1px;
}
.aside-facts strong { font-weight: 500; }
.aside-facts span { color: var(--muted); }

.price-line {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 560;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.price-line .cur { font-size: 0.78em; }
.price-note { margin-top: 8px; font-size: 14px; color: var(--muted); }

.form-head { margin-bottom: 20px; }
.form-head h2 { font-size: clamp(24px, 3vw, 30px); }
.form-head p { margin-top: 8px; font-size: 14.5px; color: var(--muted); }

.form-actions { display: flex; flex-direction: column; gap: 14px; margin-top: 4px; }

.form-note {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  text-align: center;
}

.form-aside-link {
  font-size: 13.5px;
  color: var(--muted);
  text-align: center;
}
.form-aside-link a {
  color: var(--fg);
  border-bottom: 1px solid var(--field-border);
  padding-bottom: 1px;
}
.form-aside-link a:hover { border-bottom-color: var(--fg); }

.form-success h2 { margin-bottom: 6px; }
.form-success .success-copy { color: var(--muted); font-size: 15px; margin-bottom: 20px; }
.form-success .btn { width: 100%; }
.form-success .logout-wrap { margin-top: 14px; text-align: center; }

/* ---------- Tableau de bord ---------- */

.dash { padding-block: clamp(32px, 4.5vw, 56px) clamp(24px, 3vw, 40px); }

.page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.page-head h1 { font-size: clamp(32px, 4vw, 44px); }
.page-head .head-meta {
  display: flex;
  align-items: center;
  gap: 10px 16px;
  flex-wrap: wrap;
}

.dash-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(24px, 3vw, 44px);
  align-items: start;
  margin-top: 28px;
}

.dash-main { min-width: 0; }
.dash-aside { position: sticky; top: 96px; display: grid; gap: 16px; }

.card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 12px;
}
.card-head h2 { font-size: 21px; }
.card-head .pill { margin-left: auto; }

.homes { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }

.home {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.home.is-paused { border-color: color-mix(in oklch, var(--no) 30%, var(--line)); }

.home-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px 16px;
}
.home-title { min-width: 0; }
.home-title strong {
  display: block;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 560;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.home-title span { display: block; margin-top: 3px; font-size: 13.5px; color: var(--muted); }

.home-head .pill { margin-left: auto; }

.home-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.home-actions form { margin: 0; }

.copy-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 16px;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.copy-row .label { font-size: 11.5px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.copy-row code {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.copy-row .btn { margin-left: auto; }

.syndic-card code {
  display: block;
  margin-top: 4px;
  font-family: var(--font-body);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.syndic-card .btn { margin-top: 12px; width: 100%; }

.history { margin: 0; padding: 0; list-style: none; }
.history li {
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--muted);
}
.history li:first-child { border-top: 0; }

.empty-state {
  padding: 28px 24px;
  border: 1px dashed var(--field-border);
  border-radius: var(--radius);
  text-align: center;
  background: color-mix(in oklch, var(--surface) 60%, var(--bg));
}
.empty-state p { color: var(--muted); font-size: 15px; }
.empty-state .btn { margin-top: 16px; }

.aside-links { display: grid; gap: 2px; }
.aside-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
}
.aside-links a:first-child { border-top: 0; }
.aside-links a:hover { color: var(--accent); }
.aside-links .count { color: var(--muted); font-size: 13px; }

/* ---------- Dialogues ---------- */

dialog.sheet {
  width: min(560px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--fg);
  box-shadow: 0 24px 60px -24px rgba(28, 25, 21, 0.45);
}
dialog.sheet::backdrop { background: rgba(28, 25, 21, 0.42); }

.sheet-body { padding: 24px; }
.sheet-body h2 { margin-bottom: 10px; }
.sheet-copy { margin: 0; max-width: 44ch; font-size: 15px; line-height: 1.55; color: var(--muted); }
.sheet-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

.sheet-mail {
  margin: 12px 0 0;
  padding: 14px 16px;
  max-height: 42vh;
  overflow: auto;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  white-space: pre-wrap;
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.55;
}
.sheet-subject { margin: 0 0 10px; font-size: 14px; font-weight: 500; }

/* ---------- Page voyageur ---------- */

.guest {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.guest-head {
  padding-block: 20px;
  border-bottom: 1px solid var(--line);
}
.guest-head .brand img { height: 24px; }

.guest-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: clamp(28px, 6vw, 56px);
}

.guest-card {
  width: min(30rem, 100%);
  padding: clamp(24px, 5vw, 36px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}

.guest-card h1 {
  font-size: clamp(30px, 7vw, 40px);
  margin-top: 4px;
}

.guest-lead { margin-top: 8px; color: var(--muted); font-size: 15px; }

/* Anneau du compte à rebours */

.ring {
  position: relative;
  width: 172px;
  height: 172px;
  margin: clamp(20px, 4vw, 28px) auto clamp(16px, 3vw, 22px);
}
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .track { fill: none; stroke: var(--line); stroke-width: 6; }
.ring .bar {
  fill: none;
  stroke: var(--ok);
  stroke-width: 6;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s linear;
}
.ring.is-over .bar { stroke: var(--no); }

.ring-time {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 560;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.guest-invite {
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
}
.guest-invite strong { font-weight: 600; }

.guest-rules {
  margin: 22px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
  text-align: left;
}

.guest-state { margin-top: 18px; }

.guest-refus { text-align: left; }
.guest-refus h1 { font-size: clamp(28px, 5vw, 36px); }
.guest-refus .guest-lead { margin-top: 10px; }

.guest-causes { margin: 20px 0 0; padding: 0; list-style: none; }
.guest-causes li {
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--muted);
}
.guest-causes strong { color: var(--fg); font-weight: 500; }

.guest-foot {
  padding-block: 20px 28px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
}

/* ---------- Page voyageur — droit de passage ---------- */

.guest-pass {
  width: min(26rem, 100%);
  text-align: center;
  animation: dp-rise 0.5s ease both;
}

h1.guest-pass__welcome {
  font-family: var(--font-display);
  font-size: clamp(38px, 11vw, 52px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.guest-pass__status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 14px auto 0;
  font-size: 15.5px;
  line-height: 1.4;
  color: var(--muted);
}

.guest-pass__dot {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ok);
  animation: dp-pulse 2.6s ease-out infinite;
}

.guest-pass .ring {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 26px auto 6px;
}

.guest-pass .ring::before {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(30, 107, 69, 0.14), transparent 70%);
  animation: dp-breathe 3.4s ease-in-out infinite;
}

.guest-pass .track { stroke: var(--line); stroke-width: 7; }
.guest-pass .bar { stroke: var(--ok); stroke-width: 7; }
.guest-pass .ring-time { font-size: 46px; }
.guest-pass__ring-label {
  margin: 0;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.guest-pass__action { margin-top: 24px; }

.guest-pass__action-label {
  margin: 0 0 8px;
  font-size: 13.5px;
  color: var(--muted);
}

.guest-pass__name {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(26px, 8vw, 34px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fg);
}

.guest-pass__name::after {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  margin: 12px auto 0;
  border-radius: 3px;
  background: var(--ok);
}

.guest-pass__note {
  margin: 22px auto 0;
  max-width: 34ch;
  padding: 16px 18px;
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  line-height: 1.45;
  color: var(--fg);
}

.guest-pass__steps {
  margin: 26px auto 0;
  max-width: 32ch;
  text-align: left;
}

.guest-pass__steps .steps li { font-size: 15px; color: var(--fg); }

.guest-pass__over {
  display: none;
  margin-top: 24px;
}

.guest-pass.is-over { border-color: var(--no); }
.guest-pass.is-over .bar { stroke: var(--no); }
.guest-pass.is-over .ring::before {
  animation: none;
  background: radial-gradient(circle at center, rgba(138, 62, 47, 0.12), transparent 70%);
}
.guest-pass.is-over .guest-pass__dot { background: var(--no); animation: none; }
.guest-pass.is-over .guest-pass__over { display: block; animation: dp-rise 0.4s ease both; }
.guest-pass.is-over .guest-pass__action,
.guest-pass.is-over .guest-pass__note,
.guest-pass.is-over .guest-pass__steps { display: none; }

@keyframes dp-rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@keyframes dp-pulse {
  0% { box-shadow: 0 0 0 0 rgba(30, 107, 69, 0.35); }
  70% { box-shadow: 0 0 0 10px rgba(30, 107, 69, 0); }
  100% { box-shadow: 0 0 0 0 rgba(30, 107, 69, 0); }
}

@keyframes dp-breathe {
  0%, 100% { transform: scale(0.96); opacity: 0.7; }
  50% { transform: scale(1.04); opacity: 1; }
}

/* ---------- Adaptation ---------- */

@media (max-width: 980px) {
  .dash-grid { grid-template-columns: minmax(0, 1fr); }
  .dash-aside { position: static; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}

@media (max-width: 860px) {
  .account-grid { grid-template-columns: minmax(0, 1fr); }
  .account-aside { position: static; }
  .account-aside h1 { max-width: none; }
  /* Le formulaire est le but de la page : l'essentiel de l'intro reste, les rappels passent dessous. */
  .account-aside .aside-steps,
  .account-aside .aside-price { display: none; }
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .page-head h1 { font-size: clamp(30px, 8vw, 36px); }
  .home-head .pill { margin-left: 0; }
  .copy-row .btn { margin-left: 0; width: 100%; }
  .foot { flex-direction: column; }
  .sheet-actions .btn { flex: 1 1 auto; }
  .guest-card { text-align: left; }
  .guest-card .ring { margin-inline: 0; }
  .guest-pass { text-align: center; }
  .guest-pass .ring { margin-inline: auto; }
  .ring { width: 148px; height: 148px; }
  .ring-time { font-size: 34px; }
  .form-grid { grid-template-columns: 1fr; }
  .field-full { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
