:root {
  color-scheme: light;
  --ink: #191915;
  --muted: #68675f;
  --line: #dedbd1;
  --paper: #f6f2e9;
  --white: #fffdf8;
  --orange: #ef5b2a;
  --orange-dark: #c83d12;
  --tm-agafay: #d65b1d;
  --tm-on-agafay: #0b0d0e;
  --sage: #7d8b6a;
  --green: #16794d;
  --red: #b72d22;
  --shadow: 0 24px 80px rgba(47, 37, 21, 0.1);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); }
button, input, select, textarea { font: inherit; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.public-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 4%, rgba(239, 91, 42, 0.13), transparent 28rem),
    radial-gradient(circle at 92% 14%, rgba(125, 139, 106, 0.14), transparent 25rem),
    var(--paper);
}

.public-shell, .confirmation-shell { width: min(1240px, calc(100% - 40px)); margin: 0 auto; }
.public-header, .admin-header {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.co-branding { display: inline-flex; align-items: center; gap: 16px; color: inherit; text-decoration: none; }
.trail-maroc-logo { width: 92px; height: 52px; display: block; object-fit: contain; }
.bedouin-logo { width: 145px; height: 34px; display: block; object-fit: contain; mix-blend-mode: multiply; }
.co-brand-divider { width: 1px; height: 34px; background: rgba(25, 25, 21, .18); }

.brand { display: inline-flex; align-items: center; gap: 13px; color: var(--ink); text-decoration: none; }
.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--orange);
  border-radius: 50% 50% 48% 52% / 46% 54% 46% 54%;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: -0.04em;
  transform: rotate(-3deg);
}
.brand > span:last-child { display: grid; gap: 2px; }
.brand strong { font-size: 15px; line-height: 1; text-transform: uppercase; letter-spacing: 0.07em; }
.brand small { color: var(--muted); font-size: 12px; }
.secure-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.65);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.secure-pill::before { content: ""; width: 7px; height: 7px; background: var(--green); border-radius: 50%; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(560px, 1.22fr);
  gap: clamp(42px, 7vw, 100px);
  align-items: start;
  padding: 52px 0 90px;
}
.hero-copy { position: sticky; top: 40px; padding-top: 34px; }
.eyebrow { margin: 0 0 14px; color: var(--orange-dark); font-size: 12px; font-weight: 900; letter-spacing: 0.14em; text-transform: uppercase; }
.hero-copy h1, .confirmation-card h1, .login-card h1, .admin-main h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: -0.045em;
}
.hero-copy h1 { max-width: 560px; font-size: clamp(52px, 6vw, 82px); line-height: 0.94; }
.lead { max-width: 520px; margin: 28px 0 0; color: var(--muted); font-size: 18px; line-height: 1.65; }
.steps { display: grid; gap: 22px; margin: 52px 0 0; padding: 0; list-style: none; }
.steps li { display: flex; align-items: center; gap: 15px; }
.steps li > span { width: 35px; height: 35px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid rgba(25, 25, 21, 0.18); border-radius: 50%; font-size: 12px; font-weight: 900; }
.steps div { display: grid; gap: 3px; }
.steps strong { font-size: 14px; }
.steps small { color: var(--muted); }

.checkin-card {
  padding: clamp(24px, 5vw, 58px);
  background: var(--white);
  border: 1px solid rgba(25, 25, 21, 0.1);
  border-radius: 28px;
  box-shadow: var(--shadow);
}
.form-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 27px; }
.form-heading p { margin: 0 0 3px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.form-heading h2 { margin: 0; font-size: 20px; }
.step-number { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: var(--orange-dark); background: #ffe8de; font-size: 12px; font-weight: 900; }
.fields-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; margin-bottom: 18px; }
.field label { color: #33322d; font-size: 13px; font-weight: 750; }
.field label span, .upload-box em { color: var(--orange-dark); font-style: normal; }
.field small { color: var(--muted); font-size: 11px; line-height: 1.5; }
input, select, textarea {
  width: 100%;
  min-height: 49px;
  padding: 12px 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #d8d4c9;
  border-radius: 10px;
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}
textarea { min-height: 88px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(239, 91, 42, 0.13); }
input::placeholder, textarea::placeholder { color: #aaa69a; }
.section-divider { height: 1px; margin: 38px 0; background: var(--line); }
.privacy-note { margin-bottom: 22px; padding: 17px 18px; border-left: 3px solid var(--sage); border-radius: 4px 10px 10px 4px; background: #eef0e8; }
.privacy-note strong { font-size: 13px; }
.privacy-note p { margin: 5px 0 0; color: #5c6151; font-size: 12px; line-height: 1.55; }
.upload-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 20px 0; }
.upload-box { min-height: 156px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; padding: 19px; cursor: pointer; border: 1.5px dashed #bdb8aa; border-radius: 14px; background: #faf8f2; text-align: center; transition: border-color 150ms ease, background 150ms ease, transform 150ms ease; }
.upload-box:hover { border-color: var(--orange); background: #fff5f0; transform: translateY(-1px); }
.upload-box.has-file { border-style: solid; border-color: var(--green); background: #f0f6f1; }
.upload-box input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.upload-box strong { font-size: 13px; }
.upload-box small { max-width: 220px; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.upload-icon { width: 33px; height: 33px; display: grid; place-items: center; border-radius: 50%; color: var(--orange-dark); background: #ffe8de; font-size: 18px; }
.upload-box.has-file .upload-icon { color: var(--green); background: #dcecdf; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.primary-button, .secondary-button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 13px 18px;
  color: white;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 10px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 150ms ease, background 150ms ease, opacity 150ms ease;
}
.checkin-card > .primary-button { width: 100%; }
.primary-button:hover, .secondary-button:hover { background: var(--orange-dark); border-color: var(--orange-dark); transform: translateY(-1px); }
.primary-button:disabled { cursor: wait; opacity: 0.65; transform: none; }
.primary-button.is-loading span:last-child { animation: pulse 1s infinite; }
.primary-button.compact { min-height: 45px; }
.submit-help { margin: 10px 0 0; color: var(--muted); font-size: 11px; text-align: center; }
.error-text { color: var(--red); font-weight: 700; }
.alert { margin-bottom: 24px; padding: 13px 15px; border-radius: 9px; font-size: 13px; line-height: 1.45; }
.alert-error { color: #801f1a; background: #fbe9e6; border: 1px solid #edc8c1; }
.public-footer { min-height: 86px; display: flex; justify-content: space-between; gap: 20px; align-items: center; border-top: 1px solid rgba(25,25,21,.12); color: var(--muted); font-size: 12px; }

.confirmation-shell { min-height: 100vh; }
.confirmation-card { width: min(620px, 100%); margin: 8vh auto; padding: clamp(30px, 6vw, 62px); background: var(--white); border: 1px solid rgba(25,25,21,.1); border-radius: 26px; box-shadow: var(--shadow); text-align: center; }
.confirmation-card h1 { font-size: clamp(42px, 7vw, 68px); }
.confirmation-card > p:not(.eyebrow) { max-width: 470px; margin: 20px auto; color: var(--muted); line-height: 1.65; }
.success-mark { width: 64px; height: 64px; display: grid; place-items: center; margin: 0 auto 25px; color: white; background: var(--green); border-radius: 50%; font-size: 28px; }
.trail-finish-message { display: grid; gap: 8px; margin: 30px 0 26px; padding: 22px 24px; color: var(--tm-on-agafay); background: var(--tm-agafay); text-align: left; }
.trail-finish-message span { font-size: 10px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.trail-finish-message strong { font-family: Georgia, "Times New Roman", serif; font-size: clamp(25px, 4vw, 34px); line-height: 1; letter-spacing: -.025em; }
.trail-finish-message p { margin: 2px 0 0; font-size: 13px; font-weight: 700; line-height: 1.5; }
.receipt-code { display: grid; gap: 7px; margin: 30px 0 18px; padding: 20px; background: #f0eee7; border-radius: 12px; }
.receipt-code small, .confirmation-details small { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.receipt-code strong { font-size: 22px; letter-spacing: .08em; }
.confirmation-details { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-bottom: 26px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--line); text-align: left; }
.confirmation-details div { display: grid; gap: 6px; padding: 17px; background: var(--white); }
.confirmation-details strong { font-size: 13px; }
.error-card .eyebrow { color: var(--red); }

/* Administration */
.admin-page { min-height: 100vh; background: #f2f2ee; }
.admin-header { min-height: 72px; padding: 0 max(24px, calc((100% - 1320px) / 2)); background: #191915; color: white; }
.brand-admin { color: white; }
.admin-brand-logos { display: inline-flex; align-items: center; gap: 9px; padding: 5px 10px; background: var(--white); border-radius: 10px; }
.admin-trail-logo { width: 58px; height: 34px; display: block; object-fit: contain; }
.admin-bedouin-logo { width: 88px; height: 22px; display: block; object-fit: contain; mix-blend-mode: multiply; }
.admin-brand-divider { width: 1px; height: 25px; background: rgba(25, 25, 21, .18); }
.admin-brand-copy { display: grid; gap: 2px; }
.brand-admin small { color: #aaa99f; }
.admin-header nav { display: flex; align-items: center; gap: 20px; font-size: 12px; }
.admin-header nav a { color: #c4c2b9; text-decoration: none; }
.admin-header nav form { margin: 0; }
.admin-header nav button { padding: 8px 12px; color: white; background: transparent; border: 1px solid #55544d; border-radius: 7px; cursor: pointer; }
.role-pill { display: inline-flex; align-items: center; padding: 7px 10px; color: #e7e3d8; border: 1px solid #4f4d46; border-radius: 999px; font-size: 10px; font-weight: 800; letter-spacing: .03em; }
.login-shell { min-height: calc(100vh - 72px); display: grid; place-items: center; padding: 30px 20px; }
.login-card { width: min(430px, 100%); padding: 42px; background: var(--white); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.login-card h1 { font-size: 42px; line-height: 1; }
.login-card > p:not(.eyebrow) { margin: 17px 0 28px; color: var(--muted); line-height: 1.55; }
.login-card .field { margin-bottom: 16px; }
.login-card .primary-button { width: 100%; }
.admin-main { width: min(1320px, calc(100% - 48px)); margin: 0 auto; padding: 52px 0 70px; }
.admin-title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.admin-title-row h1 { font-size: clamp(38px, 5vw, 58px); }
.admin-title-row > div > p:last-child { margin: 10px 0 0; color: var(--muted); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 32px 0 22px; }
.stat-card { display: grid; padding: 22px; background: var(--white); border: 1px solid var(--line); border-radius: 13px; }
.stat-card small { color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.stat-card strong { margin: 12px 0 2px; font-family: Georgia, serif; font-size: 39px; font-weight: 500; }
.stat-card span { color: var(--muted); font-size: 11px; }
.table-card { overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: 14px; }
.filters { display: flex; gap: 10px; align-items: center; padding: 16px; border-bottom: 1px solid var(--line); }
.filters input { flex: 1; max-width: 380px; }
.filters input, .filters select { min-height: 42px; }
.filters select { width: 200px; }
.filters button { min-height: 42px; padding: 0 17px; color: white; background: var(--ink); border: 0; border-radius: 8px; font-weight: 700; cursor: pointer; }
.filters a { margin-left: 5px; color: var(--muted); font-size: 12px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { padding: 13px 18px; color: var(--muted); background: #f7f6f1; font-size: 10px; font-weight: 900; letter-spacing: .08em; text-align: left; text-transform: uppercase; }
td { padding: 17px 18px; border-top: 1px solid #ebe8df; font-size: 13px; vertical-align: middle; }
td small, td strong { display: block; }
td small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.participant-link { text-decoration: none; }
.participant-link:hover strong { color: var(--orange-dark); }
.row-action { color: var(--orange-dark); font-size: 11px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.status-badge { display: inline-flex; align-items: center; padding: 6px 9px; border-radius: 999px; font-size: 10px; font-weight: 800; white-space: nowrap; }
.status-submitted { color: #875b16; background: #fff0cd; }
.status-verified { color: #17643f; background: #dff0e5; }
.status-arrived { color: #5c467b; background: #ece4f7; }
.empty-state { display: grid; gap: 5px; padding: 45px; text-align: center; }
.empty-state span { color: var(--muted); }
.admin-footnote { color: var(--muted); font-size: 11px; text-align: right; }
.back-link { display: inline-block; margin-bottom: 27px; color: var(--muted); font-size: 12px; text-decoration: none; }
.detail-title { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 30px; }
.detail-title h1 { font-size: clamp(42px, 5vw, 60px); }
.detail-title p:last-child { margin: 8px 0 0; color: var(--muted); }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.detail-content { display: grid; gap: 20px; }
.detail-card, .actions-card { padding: 27px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; }
.detail-card h2, .actions-card h2 { margin: 0 0 22px; font-size: 17px; }
.detail-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 0; }
.detail-list div { min-height: 76px; padding: 15px 0; border-top: 1px solid #ebe8df; }
.detail-list div:nth-child(odd) { padding-right: 25px; }
.detail-list dt { margin-bottom: 7px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.detail-list dd { margin: 0; font-size: 13px; line-height: 1.5; }
.detail-list dd a { color: var(--orange-dark); }
.preline { white-space: pre-line; }
.card-heading p { margin: -14px 0 22px; color: var(--muted); font-size: 11px; }
.identity-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.identity-grid figure { margin: 0; overflow: hidden; background: #eeece5; border: 1px solid var(--line); border-radius: 10px; }
.identity-grid figcaption { padding: 10px 12px; color: var(--muted); background: #f7f5ef; border-bottom: 1px solid var(--line); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.identity-grid a { display: block; }
.identity-grid img { width: 100%; max-height: 420px; display: block; object-fit: contain; }
.identity-grid .file-download { padding: 11px 12px; color: var(--orange-dark); background: #faf8f2; border-top: 1px solid var(--line); font-size: 10px; font-weight: 800; text-align: center; text-decoration: none; }
.actions-card { position: sticky; top: 20px; }
.actions-card .primary-button { width: 100%; }
.print-button { min-height: 48px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; padding: 0 16px; color: white; background: var(--ink); border-radius: 9px; font-size: 12px; font-weight: 900; text-decoration: none; }
.camp-access-note { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.timeline-mini { display: grid; gap: 0; margin: 28px 0; }
.timeline-mini > div { position: relative; display: grid; grid-template-columns: 15px 1fr; gap: 10px; min-height: 52px; }
.timeline-mini > div:not(:last-child)::after { content: ""; position: absolute; left: 5px; top: 12px; bottom: -3px; width: 1px; background: #d9d5ca; }
.timeline-mini > div > span { z-index: 1; width: 11px; height: 11px; margin-top: 3px; background: #d7d3c7; border: 2px solid var(--white); border-radius: 50%; box-shadow: 0 0 0 1px #d7d3c7; }
.timeline-mini > div:first-child > span, .timeline-mini > div.active > span { background: var(--green); box-shadow: 0 0 0 1px var(--green); }
.timeline-mini p { display: grid; gap: 3px; margin: 0; }
.timeline-mini strong { font-size: 11px; }
.timeline-mini small { color: var(--muted); font-size: 10px; }
.danger-zone { padding-top: 20px; border-top: 1px solid var(--line); }
.danger-zone button { padding: 0; color: var(--red); background: transparent; border: 0; font-size: 11px; font-weight: 700; cursor: pointer; }

/* Impression sécurisée du dossier d'hébergement */
.print-page { min-height: 100vh; padding: 28px; background: #e9e8e2; }
.print-toolbar { width: min(940px, 100%); display: flex; align-items: center; justify-content: space-between; margin: 0 auto 18px; }
.print-toolbar a { color: var(--ink); font-size: 12px; font-weight: 800; text-decoration: none; }
.print-toolbar button { min-height: 44px; padding: 0 20px; color: white; background: var(--ink); border: 0; border-radius: 9px; font-weight: 900; cursor: pointer; }
.print-sheet { width: min(940px, 100%); margin: 0 auto; padding: 42px; background: white; box-shadow: 0 18px 50px rgba(32,31,27,.12); }
.print-sheet > header { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.print-sheet > header > div { display: flex; align-items: center; gap: 22px; }
.print-sheet > header img:first-child { width: 105px; height: 58px; object-fit: contain; }
.print-sheet > header img:last-child { width: 155px; height: 40px; object-fit: contain; mix-blend-mode: multiply; }
.print-sheet > header p { margin: 0; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.print-person { padding: 30px 0 25px; }
.print-person h1 { margin: 0 0 22px; font-family: Georgia, serif; font-size: 42px; font-weight: 500; }
.print-person dl { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 0; }
.print-person dl div { padding: 14px 0; border-top: 1px solid var(--line); }
.print-person dt { margin-bottom: 6px; color: var(--muted); font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.print-person dd { margin: 0; font-size: 13px; }
.print-documents { display: grid; gap: 28px; }
.print-documents figure { margin: 0; break-inside: avoid; }
.print-documents figcaption { margin-bottom: 10px; color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.print-documents img { width: 100%; max-height: 590px; display: block; object-fit: contain; border: 1px solid var(--line); }
.print-sheet > footer { margin-top: 28px; padding-top: 16px; color: var(--muted); border-top: 1px solid var(--line); font-size: 9px; text-align: center; }

@keyframes pulse { 50% { opacity: .35; } }

@media (max-width: 950px) {
  .hero-grid { grid-template-columns: 1fr; padding-top: 15px; }
  .hero-copy { position: static; padding-top: 25px; }
  .hero-copy h1 { max-width: 720px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps li { align-items: flex-start; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .detail-layout { grid-template-columns: 1fr; }
  .actions-card { position: static; }
}

@media (max-width: 650px) {
  .public-shell, .confirmation-shell { width: min(100% - 24px, 1240px); }
  .public-header { min-height: 78px; }
  .secure-pill { display: none; }
  .co-branding { gap: 10px; }
  .trail-maroc-logo { width: 76px; height: 44px; }
  .bedouin-logo { width: 118px; height: 29px; }
  .co-brand-divider { height: 28px; }
  .hero-grid { gap: 34px; padding-bottom: 55px; }
  .hero-copy h1 { font-size: clamp(45px, 14vw, 66px); }
  .lead { font-size: 16px; }
  .steps { grid-template-columns: 1fr; margin-top: 35px; }
  .steps li:nth-child(n+3) { display: none; }
  .checkin-card { padding: 25px 18px; border-radius: 19px; }
  .fields-grid, .upload-grid, .confirmation-details, .identity-grid, .detail-list { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .upload-box { min-height: 130px; }
  .public-footer { flex-direction: column; justify-content: center; align-items: flex-start; }
  .admin-header { padding: 0 14px; }
  .admin-header .brand-admin { gap: 8px; }
  .admin-brand-copy { display: none; }
  .admin-brand-logos { gap: 7px; padding: 4px 8px; }
  .admin-trail-logo { width: 50px; height: 30px; }
  .admin-bedouin-logo { width: 75px; height: 19px; }
  .admin-brand-divider { height: 22px; }
  .admin-header nav > a, .role-pill { display: none; }
  .admin-main { width: min(100% - 24px, 1320px); padding-top: 30px; }
  .admin-title-row, .detail-title { align-items: flex-start; flex-direction: column; }
  .admin-title-row .primary-button { width: 100%; }
  .stats-grid { gap: 8px; }
  .stat-card { padding: 16px; }
  .stat-card strong { font-size: 32px; }
  .filters { align-items: stretch; flex-direction: column; }
  .filters input, .filters select { width: 100%; max-width: none; }
  .detail-list div:nth-child(odd) { padding-right: 0; }
  .login-card { padding: 30px 22px; }
  .confirmation-card { margin: 4vh auto; }
  .print-page { padding: 12px; }
  .print-sheet { padding: 22px 18px; }
  .print-sheet > header { align-items: flex-start; flex-direction: column; }
  .print-sheet > header img:first-child { width: 80px; }
  .print-sheet > header img:last-child { width: 120px; }
  .print-person dl { grid-template-columns: 1fr; }
}

@media print {
  @page { size: A4; margin: 12mm; }
  .admin-page, .print-page { background: white; }
  .print-page { padding: 0; }
  .print-toolbar { display: none; }
  .print-sheet { width: 100%; margin: 0; padding: 0; box-shadow: none; }
  .print-sheet > header img:first-child { width: 88px; height: 48px; }
  .print-sheet > header img:last-child { width: 132px; height: 34px; }
  .print-person { padding: 18px 0 14px; }
  .print-person h1 { margin-bottom: 14px; font-size: 30px; }
  .print-documents { gap: 12mm; }
  .print-documents figure { break-after: page; }
  .print-documents figure:last-child { break-after: auto; }
  .print-documents img { max-height: 205mm; }
}

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

/* Parcours basé sur une liste de réservations existante */
.access-shell { min-height: 100vh; }
.access-grid { min-height: calc(100vh - 178px); display: grid; grid-template-columns: 1.05fr .75fr; gap: clamp(48px, 9vw, 120px); align-items: center; padding: 42px 0 72px; }
.access-copy { position: static; padding: 0; }
.access-copy h1 { max-width: 650px; }
.short-process { display: grid; gap: 18px; margin-top: 40px; }
.short-process > div { display: flex; align-items: center; gap: 14px; }
.short-process > div > span { width: 36px; height: 36px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid rgba(25,25,21,.18); border-radius: 50%; font-size: 12px; font-weight: 900; }
.short-process p { display: grid; gap: 3px; margin: 0; }
.short-process strong { font-size: 13px; }
.short-process small { color: var(--muted); }
.access-card { padding: clamp(28px, 5vw, 48px); background: var(--white); border: 1px solid rgba(25,25,21,.1); border-radius: 24px; box-shadow: var(--shadow); }
.access-card h2 { margin: 0; font-family: Georgia, serif; font-size: 38px; line-height: 1; letter-spacing: -.035em; }
.access-card > p:not(.eyebrow) { margin: 15px 0 28px; color: var(--muted); line-height: 1.55; }
.access-card .field { margin-bottom: 17px; }
.access-card .primary-button { width: 100%; margin-top: 5px; }
.access-help { display: block; margin-top: 15px; color: var(--muted); font-size: 10px; line-height: 1.55; text-align: center; }
.identity-access-grid { grid-template-columns: .9fr 1.1fr; align-items: start; padding-top: 55px; }
.quick-identity-card { padding: clamp(26px, 4vw, 42px); }
.quick-identity-card h2 { font-size: 34px; }
.quick-identity-card > p:not(.eyebrow) { margin-bottom: 22px; }
.name-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 17px; }
.quick-identity-card .upload-grid { margin-top: 17px; }
.quick-identity-card .upload-box { min-height: 132px; }
.reservation-layout { width: min(780px, 100%); margin: 0 auto; padding: 48px 0 90px; }
.reservation-intro { margin-bottom: 30px; text-align: center; }
.reservation-intro h1 { margin: 0; font-family: Georgia, serif; font-size: clamp(46px, 8vw, 70px); font-weight: 500; letter-spacing: -.045em; }
.reservation-intro > p:last-child { margin: 15px auto 0; color: var(--muted); }
.identity-only-card { width: 100%; }
.booking-summary { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: var(--line); gap: 1px; }
.booking-summary > div { display: grid; gap: 6px; padding: 17px; background: #faf8f2; }
.booking-summary small { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.booking-summary strong { font-size: 14px; }
.wrong-info { margin: 12px 0 0; color: var(--muted); font-size: 10px; }
.success-alert { color: #185c3d; background: #e5f2e9; border: 1px solid #bdddc8; }
.status-invited { color: #6c6256; background: #e9e6de; }
.status-submitted { color: #875b16; background: #fff0cd; }
.admin-actions { display: flex; gap: 10px; align-items: center; }
.secondary-admin-button { min-height: 45px; display: inline-flex; align-items: center; padding: 0 16px; border: 1px solid #bdb9af; border-radius: 9px; color: var(--ink); background: transparent; font-size: 12px; font-weight: 800; text-decoration: none; }
.table-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding-right: 16px; border-bottom: 1px solid var(--line); }
.table-toolbar .filters { flex: 1; border-bottom: 0; }
.camp-export { color: var(--orange-dark); font-size: 11px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.import-main h1 { margin-bottom: 15px; font-size: clamp(44px, 6vw, 64px); }
.import-lead { max-width: 680px; margin: 0 0 28px; color: var(--muted); font-size: 16px; line-height: 1.6; }
.import-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.import-card, .format-card { padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; }
.import-card { display: grid; gap: 20px; }
.import-card .primary-button { width: 100%; }
.csv-drop { min-height: 160px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; cursor: pointer; border: 1.5px dashed #bdb8aa; border-radius: 13px; background: #faf8f2; text-align: center; }
.csv-drop:hover { border-color: var(--orange); background: #fff5f0; }
.csv-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.csv-drop small { color: var(--muted); }
.format-card { position: sticky; top: 20px; }
.format-card h2 { margin: 0; font-size: 20px; }
.format-card ul { display: grid; gap: 10px; margin: 22px 0; padding-left: 18px; color: var(--muted); font-size: 12px; }
.format-card li strong { color: var(--ink); }
.format-card > a { display: inline-flex; padding: 10px 12px; color: var(--orange-dark); background: #fff0e9; border-radius: 8px; font-size: 11px; font-weight: 800; text-decoration: none; }
.format-card > p:last-child { color: var(--muted); font-size: 10px; line-height: 1.5; }
.personal-link { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.personal-link input { min-width: 0; color: #4b4a44; background: #f4f2ec; font-size: 11px; }
.personal-link button { padding: 0 15px; color: white; background: var(--ink); border: 0; border-radius: 8px; font-size: 11px; font-weight: 800; cursor: pointer; }
.copy-help { margin: 10px 0 0; color: var(--muted); font-size: 10px; }
.waiting-card { padding: 38px; border-style: dashed; text-align: center; }
.waiting-card h2 { margin-bottom: 8px; }
.waiting-card p { margin: 0; color: var(--muted); }

@media (max-width: 900px) {
  .access-grid, .import-layout { grid-template-columns: 1fr; }
  .format-card { position: static; }
}

@media (max-width: 650px) {
  .access-grid { min-height: auto; gap: 35px; padding-top: 30px; }
  .access-copy h1 { font-size: clamp(45px, 14vw, 64px); }
  .access-card { padding: 28px 20px; }
  .name-grid { grid-template-columns: 1fr; }
  .booking-summary { grid-template-columns: 1fr; }
  .admin-actions { width: 100%; flex-direction: column; align-items: stretch; }
  .admin-actions a { justify-content: space-between; }
  .table-toolbar { align-items: stretch; flex-direction: column; padding: 0 16px 16px; }
  .table-toolbar .filters { padding: 16px 0 0; }
  .personal-link { grid-template-columns: 1fr; }
  .personal-link button { min-height: 42px; }
}
