/* ==========================================================================
   Self check-in : feuille de style unique
   Palette : encre (texte), plâtre de chaux (fond), laiton (tampon « complet »)
   Typo : Atkinson Hyperlegible, conçue pour distinguer 0/O, 1/l/I (numéros de pièce) ;
          Readex Pro pour l'arabe, dessinée elle aussi pour la facilité de lecture
   ========================================================================== */

@font-face {
  font-family: 'Atkinson Next';
  src: url('/fonts/next/atkinson-hyperlegible-next-latin-wght-normal.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Atkinson Next';
  src: url('/fonts/next/atkinson-hyperlegible-next-latin-ext-wght-normal.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Readex Arabic';
  src: url('/fonts/arabic/readex-pro-arabic-wght-normal.woff2') format('woff2');
  font-weight: 160 700;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+FB50-FDFF,
    U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: 'Atkinson Mono';
  src: url('/fonts/mono/atkinson-hyperlegible-mono-latin-wght-normal.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --ink: #102a2e;
  --ink-soft: #46595c;
  --plaster: #eef2ef;
  --sheet: #ffffff;
  --brass: #94690f;
  --brass-wash: #f6efdd;
  --rule: #d9e1dc;
  --field: #76877f;
  --ok: #2c6a4c;
  --ok-wash: #e7f2ec;
  --bad: #a3271b;
  --bad-wash: #fbecea;
  --focus: #c79a2c;

  --font: 'Atkinson Next', 'Readex Arabic', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Atkinson Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --r-field: 6px;
  --r-tab: 9px;
  --r-sheet: 16px;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--plaster);
}

h1,
h2,
h3 {
  line-height: 1.15;
  margin: 0 0 0.5rem;
  font-weight: 750;
  letter-spacing: -0.01em;
}
h1 {
  font-size: 1.9rem;
}
h2 {
  font-size: 1.25rem;
}
h3 {
  font-size: 1.05rem;
}
p {
  margin: 0 0 0.75rem;
}
a {
  color: var(--ink);
  text-underline-offset: 0.18em;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
h1:focus {
  outline: none;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.muted {
  color: var(--ink-soft);
}
.mono {
  font-family: var(--mono);
  letter-spacing: 0.02em;
}
.hint {
  color: var(--ink-soft);
  font-size: 0.93rem;
}

/* ------------------------------------------------------------------ boutons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.7rem 1.25rem;
  font: inherit;
  font-weight: 700;
  color: var(--ink);
  background: var(--sheet);
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover {
  background: #f5f8f6;
}
.btn:disabled {
  opacity: 0.55;
  cursor: progress;
}
.btn-primary {
  color: #fff;
  background: var(--ink);
}
.btn-primary:hover {
  background: #1b3e43;
}
.btn-secondary {
  background: transparent;
}
.btn-danger {
  color: #fff;
  background: var(--bad);
  border-color: var(--bad);
}
.btn-small {
  min-height: 2.25rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.93rem;
}
.link-btn {
  padding: 0;
  font: inherit;
  color: var(--ink);
  background: none;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  cursor: pointer;
}

/* ------------------------------------------------------------------ badges et notices */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.6rem;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 999px;
  white-space: nowrap;
}
.badge-ok {
  color: var(--ok);
  background: var(--ok-wash);
}
.badge-warn {
  color: #6f4d0b;
  background: var(--brass-wash);
}
.badge-bad {
  color: var(--bad);
  background: var(--bad-wash);
}
.badge-muted {
  color: var(--ink-soft);
  background: #e6ece8;
}

.notice {
  padding: 0.8rem 1rem;
  border-radius: var(--r-field);
  border-inline-start: 4px solid var(--ink-soft);
  background: #e6ece8;
}
.notice-ok {
  border-color: var(--ok);
  background: var(--ok-wash);
}
.notice-warn {
  border-color: var(--brass);
  background: var(--brass-wash);
}
.notice-bad {
  border-color: var(--bad);
  background: var(--bad-wash);
}
.notice ul {
  margin: 0.25rem 0 0;
  padding-inline-start: 1.1rem;
}

/* ==========================================================================
   Parcours voyageur
   ========================================================================== */

.guest {
  min-height: 100vh;
}
.guest.has-actions {
  padding-bottom: 6.5rem;
}

.g-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  max-width: 36rem;
  margin: 0 auto;
  padding: 1.1rem 1.25rem 0;
}
.g-place {
  display: flex;
  flex-direction: column;
}
.g-brand {
  font-weight: 750;
}
.g-property {
  color: var(--ink-soft);
  font-size: 0.93rem;
}
.g-lang {
  display: flex;
  flex-shrink: 0;
  margin: -0.45rem -0.4rem 0;
}
.g-flag {
  display: block;
  padding: 0.45rem 0.4rem;
  line-height: 0;
  border-radius: 8px;
}
.g-flag img {
  display: block;
  width: 30px;
  height: 20px;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(16, 42, 46, 0.22);
}
.g-flag.is-current img {
  box-shadow: 0 0 0 2px var(--plaster), 0 0 0 4px var(--ink);
}
a.g-flag:hover img {
  box-shadow: 0 0 0 2px var(--plaster), 0 0 0 4px var(--field);
}
a.g-flag:focus-visible {
  outline-offset: -1px;
}

.g-main {
  max-width: 36rem;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 2rem;
}

.sheet {
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: var(--r-sheet);
  padding: 1.5rem 1.25rem;
  margin-bottom: 1rem;
}
.message h1 {
  font-size: 1.5rem;
}
.entry form {
  margin-top: 1.25rem;
}
.entry .btn {
  width: 100%;
}
.entry-code {
  font-size: 1.05rem;
}

.intro {
  margin: 0.5rem 0 1.25rem;
}
.intro h1 {
  font-size: 2.15rem;
}
.stay {
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.lede {
  color: var(--ink-soft);
  max-width: 34em;
}
.role {
  color: var(--ink-soft);
  margin-top: -0.25rem;
}

/* Compteurs adultes / enfants */
.counter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--rule);
}
.counter-row:first-child {
  padding-top: 0;
}
.counter-label {
  font-weight: 650;
}
.counter {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.counter-btn {
  width: 2.75rem;
  height: 2.75rem;
  font: inherit;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--ink);
  background: var(--sheet);
  border: 1.5px solid var(--field);
  border-radius: 50%;
  cursor: pointer;
}
.counter-btn:disabled {
  opacity: 0.35;
  cursor: default;
}
.counter-value {
  min-width: 2.25rem;
  text-align: center;
  font-size: 1.35rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}
.party .hint {
  margin: 0.85rem 0 0;
}

.privacy {
  margin: 0 0 1rem;
  padding: 0 0.25rem;
}
.privacy summary {
  cursor: pointer;
  font-weight: 650;
  padding: 0.5rem 0;
}
.privacy ul {
  margin: 0.25rem 0 0;
  padding-inline-start: 1.1rem;
  color: var(--ink-soft);
  font-size: 0.93rem;
}
.privacy li {
  margin-bottom: 0.4rem;
}

/* Fiches de progression : une par adulte, tamponnée quand le bulletin est complet */
.cards {
  display: flex;
  gap: 0.5rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}
.card-tab {
  position: relative;
  flex: 1;
  max-width: 4.5rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 750;
  color: var(--ink-soft);
  background: var(--sheet);
  border: 1.5px solid var(--rule);
  border-radius: var(--r-tab);
}
.card-tab.is-current {
  color: var(--ink);
  border-color: var(--ink);
  box-shadow: inset 0 -4px 0 var(--ink);
}
.card-tab.is-done {
  color: var(--brass);
  border-color: var(--brass);
}
.stamp {
  position: absolute;
  top: -0.55rem;
  inset-inline-end: -0.45rem;
  width: 1.75rem;
  height: 1.75rem;
  display: grid;
  place-items: center;
  color: var(--brass);
  background: var(--brass-wash);
  border: 2px solid var(--brass);
  border-radius: 50%;
  transform: rotate(-12deg);
}
.stamp svg {
  width: 1.05rem;
  height: 1.05rem;
}
.stamp.is-new {
  animation: stamp-in 0.45s cubic-bezier(0.2, 0.9, 0.25, 1.15) both;
}
@keyframes stamp-in {
  0% {
    opacity: 0;
    transform: scale(2.1) rotate(-34deg);
  }
  65% {
    opacity: 1;
    transform: scale(0.9) rotate(-9deg);
  }
  100% {
    transform: scale(1) rotate(-12deg);
  }
}

/* Champs */
.traveler h1 {
  font-size: 1.6rem;
}
.field {
  margin: 0 0 1.15rem;
}
.field label,
.field .label {
  display: block;
  font-weight: 650;
  margin: 0 0 0.35rem;
}
.opt {
  font-weight: 400;
  color: var(--ink-soft);
}
.field-hint {
  margin: -0.2rem 0 0.4rem;
}
input,
select,
textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.65rem 0.8rem;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--sheet);
  border: 1.5px solid var(--field);
  border-radius: var(--r-field);
}
select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%),
    linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 1.15rem) 1.3rem, calc(100% - 0.8rem) 1.3rem;
  background-size: 0.35rem 0.35rem;
  background-repeat: no-repeat;
  padding-inline-end: 2.25rem;
}
[dir='rtl'] select {
  background-position: 0.8rem 1.3rem, 1.15rem 1.3rem;
}
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  border-color: var(--ink);
}
input.mono {
  font-family: var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.field.is-prefilled input,
.field.is-prefilled select {
  background-color: #f6f9f7;
  border-inline-start: 4px solid var(--ok);
}
/* En arabe, les champs en lettres latines sont de gauche à droite : on garde la barre du même côté pour tous */
[dir='rtl'] .field.is-prefilled input,
[dir='rtl'] .field.is-prefilled select {
  border-left: 1.5px solid var(--field);
  border-right: 4px solid var(--ok);
}
.field.has-error input,
.field.has-error select,
.field.has-error .sig-pad,
.scan.has-error {
  border-color: var(--bad);
}
.err {
  margin: 0.35rem 0 0;
  color: var(--bad);
  font-size: 0.93rem;
  font-weight: 650;
}

/* Scan de la pièce */
.scan {
  margin: 0.5rem 0 1.5rem;
  padding: 1rem;
  border: 1.5px dashed var(--field);
  border-radius: 12px;
  background: #f7f9f8;
}
.scan.is-ok {
  border-style: solid;
  border-color: var(--ok);
  background: var(--ok-wash);
}
.scan.is-fail {
  border-color: var(--brass);
  background: var(--brass-wash);
}
.btn-scan {
  width: 100%;
}
.scan.is-busy .btn-scan::after {
  content: '';
  width: 1rem;
  height: 1rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.scan-hint {
  margin: 0.6rem 0 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.scan-status:empty {
  display: none;
}
.scan-status {
  margin: 0.6rem 0 0;
  font-weight: 650;
}

/* Signature */
.sig-pad {
  position: relative;
  background: var(--sheet);
  border: 1.5px solid var(--field);
  border-radius: var(--r-field);
}
.sig-canvas {
  display: block;
  width: 100%;
  height: 11rem;
  touch-action: none;
  cursor: crosshair;
}
.sig-line {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 2.4rem;
  border-bottom: 1px dashed var(--rule);
  pointer-events: none;
}
.sig-field .link-btn {
  margin-top: 0.5rem;
}

/* Vérification */
.party-line {
  font-weight: 650;
}
.review-list {
  list-style: none;
  margin: 1rem 0;
  padding: 0;
}
.review-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--rule);
}
.review-card:last-child {
  border-bottom: 1px solid var(--rule);
}
.review-name {
  margin: 0 0 0.15rem;
  font-weight: 750;
  font-size: 1.05rem;
}
.review-meta {
  margin: 0 0 0.35rem;
  color: var(--ink-soft);
  font-size: 0.93rem;
}
.check {
  display: flex !important;
  gap: 0.75rem;
  align-items: flex-start;
  font-weight: 400 !important;
}
.couple-hint {
  margin: 0.45rem 0 0;
  padding-inline-start: 2.15rem; /* aligné sur le texte de la case */
}
.check input {
  width: 1.4rem;
  min-height: 1.4rem;
  height: 1.4rem;
  margin: 0.1rem 0 0;
  flex: none;
  accent-color: var(--ink);
}

/* Barre d'actions fixe en bas */
.actions {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  padding: 0.75rem 1.25rem calc(0.75rem + env(safe-area-inset-bottom));
  background: rgba(238, 242, 239, 0.96);
  border-top: 1px solid var(--rule);
  backdrop-filter: blur(6px);
}
.actions-inner {
  display: flex;
  gap: 0.75rem;
  max-width: 36rem;
  margin: 0 auto;
}
.actions-inner .btn-primary {
  flex: 1;
}

/* Terminé : le grand tampon */
.done {
  text-align: center;
  padding-top: 2.5rem;
}
.done .lede {
  margin-left: auto;
  margin-right: auto;
}
.done-stamp {
  width: 7rem;
  height: 7rem;
  margin: 0 auto 1.5rem;
  display: grid;
  place-items: center;
  color: var(--brass);
  background: var(--brass-wash);
  border: 3px solid var(--brass);
  border-radius: 50%;
  box-shadow: inset 0 0 0 6px var(--brass-wash), inset 0 0 0 8px var(--brass);
  transform: rotate(-12deg);
  animation: stamp-in 0.55s cubic-bezier(0.2, 0.9, 0.25, 1.15) both;
}
.done-stamp svg {
  width: 3.25rem;
  height: 3.25rem;
}

/* Code d'accès : une étiquette de clé, comme à la réception */
.key-tag {
  position: relative;
  margin: 1.5rem 0 1rem;
  padding: 1rem 1.25rem 1.15rem;
  padding-inline-start: 3.1rem;
  text-align: start;
  background: var(--brass-wash);
  border: 1.5px solid var(--brass);
  border-radius: var(--r-sheet);
}
.key-tag::before {
  content: '';
  position: absolute;
  inset-inline-start: 1.05rem;
  top: 1.3rem;
  width: 0.95rem;
  height: 0.95rem;
  border: 1.5px solid var(--brass);
  border-radius: 50%;
  background: var(--plaster);
}
.key-label {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.93rem;
  font-weight: 650;
}
.key-code {
  margin: 0.1rem 0 0;
  font-family: var(--mono);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.12em;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.key-notes {
  margin: 0.75rem 0 0;
  white-space: pre-line;
}
.key-code + .key-notes {
  padding-top: 0.75rem;
  border-top: 1px solid rgba(148, 105, 15, 0.35);
}
.stay-page .hint {
  margin-top: 1.25rem;
}

@media (min-width: 40rem) {
  .intro h1 {
    font-size: 2.6rem;
  }
  .sheet {
    padding: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stamp.is-new,
  .done-stamp,
  .scan.is-busy .btn-scan::after {
    animation: none;
  }
}

/* ==========================================================================
   Tableau de bord hôte
   ========================================================================== */

.admin {
  background: #f3f6f4;
}
.a-top {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.75rem 1.5rem;
  color: #fff;
  background: var(--ink);
  flex-wrap: wrap;
}
.a-top a,
.a-top .link-btn {
  color: #fff;
}
.a-brand {
  font-weight: 750;
  text-decoration: none;
  font-size: 1.1rem;
}
.a-nav {
  display: flex;
  gap: 1.25rem;
  flex: 1;
}
.a-nav a {
  text-decoration: none;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}
.a-nav a[aria-current='page'] {
  border-bottom-color: var(--focus);
}
.a-logout {
  margin: 0;
}
.a-main {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.5rem;
}
.a-main h1 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}
.crumb {
  margin-bottom: 0.25rem;
  font-size: 0.93rem;
}
.title-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.title-row h1 {
  margin: 0;
}
.panel {
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 1.25rem;
  margin: 0 0 1.25rem;
}
.panel h2 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
}
.count {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink-soft);
  background: #e6ece8;
  border-radius: 999px;
  padding: 0.05rem 0.55rem;
}
.empty {
  color: var(--ink-soft);
  margin: 0;
}
details.panel > summary {
  cursor: pointer;
  list-style: none;
}
details.panel > summary::-webkit-details-marker {
  display: none;
}
details.panel > summary h2 {
  margin: 0;
}
details.panel > summary h2::before {
  content: '+';
  display: inline-grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  font-size: 1.05rem;
}
details.panel[open] > summary h2::before {
  content: '−';
}
details.panel[open] > summary {
  margin-bottom: 1rem;
}

.grid-form {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
  gap: 0.9rem 1rem;
  align-items: end;
}
.grid-form label {
  display: block;
  font-weight: 650;
  font-size: 0.93rem;
  margin-bottom: 0.3rem;
}
.f-wide {
  grid-column: span 2;
}
.f-actions {
  display: flex;
  align-items: flex-end;
}
.f-full {
  grid-column: 1 / -1;
}
.f-hint {
  margin: -0.35rem 0 0;
  font-size: 0.9rem;
}
.grid-form input[name='access_code'] {
  font-family: var(--mono);
  letter-spacing: 0.06em;
}
.access-panel form {
  margin-top: 0.75rem;
}
.f-check label {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  min-height: 3rem;
}
.f-check input {
  width: 1.2rem;
  min-height: 1.2rem;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.table th {
  text-align: start;
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-weight: 650;
  padding: 0.5rem 0.6rem;
  border-bottom: 1.5px solid var(--rule);
}
.table td {
  padding: 0.65rem 0.6rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: middle;
}
.table td .badge {
  margin: 0.1rem 0.15rem 0.1rem 0;
}
.row-actions {
  text-align: end;
}
.row-actions form {
  margin: 0;
}
.row-actions .btn {
  white-space: nowrap;
}
.table-scroll {
  overflow-x: auto;
}
.table-dense {
  font-size: 0.85rem;
  white-space: nowrap;
}

.copy {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem 0.75rem;
  margin-bottom: 1rem;
}
.copy label {
  grid-column: 1 / -1;
  font-weight: 650;
}
.copy textarea {
  min-height: auto;
  font-size: 0.93rem;
  resize: vertical;
}
.copy .btn {
  align-self: start;
}

.checks {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}
.checks li {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  flex-wrap: wrap;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--rule);
}
.actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
.actions-row form {
  margin: 0;
}

.bulletin {
  border-top: 1px solid var(--rule);
  padding: 1rem 0 0.5rem;
}
.bulletin:first-of-type {
  border-top: 0;
  padding-top: 0;
}
.bulletin-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.bulletin-head h3 {
  margin: 0;
}
.fields {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 0.6rem 1.5rem;
  margin: 0 0 1rem;
}
.fields dt {
  font-size: 0.82rem;
  color: var(--ink-soft);
}
.fields dd {
  margin: 0;
  font-weight: 650;
}
.signature {
  margin: 0 0 1rem;
}
.signature img {
  max-width: 18rem;
  border: 1px solid var(--rule);
  border-radius: var(--r-field);
  background: #fff;
}
.signature figcaption {
  font-size: 0.82rem;
  color: var(--ink-soft);
}
.events {
  margin: 0;
  padding-inline-start: 1.2rem;
}
.events li {
  margin-bottom: 0.3rem;
}
.confirm {
  margin-bottom: 0.75rem;
}
.confirm summary {
  cursor: pointer;
  font-weight: 650;
}
.confirm p {
  margin: 0.5rem 0;
}
.inline-form {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.inline-form input {
  width: auto;
}
.property-row {
  border-top: 1px solid var(--rule);
  padding: 1rem 0;
}
.property-row:first-of-type {
  border-top: 0;
  padding-top: 0;
}
.property-row.is-archived {
  opacity: 0.6;
}
.lede {
  max-width: 48rem;
}

.admin-login {
  display: grid;
  place-items: center;
  min-height: 100vh;
}
.login {
  width: min(24rem, 92vw);
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: var(--r-sheet);
  padding: 2rem;
}
.stack {
  display: grid;
  gap: 0.6rem;
}
.stack label {
  font-weight: 650;
}

@media (max-width: 48rem) {
  .a-main {
    padding: 1rem;
  }
  .f-wide {
    grid-column: auto;
  }
  .table-stack thead {
    display: none;
  }
  .table-stack tr {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--rule);
  }
  .table-stack td {
    display: block;
    border: 0;
    padding: 0.15rem 0;
  }
  .table-stack td[data-label]::before {
    content: attr(data-label) ' : ';
    color: var(--ink-soft);
    font-size: 0.85rem;
  }
  .row-actions {
    text-align: start;
    padding-top: 0.5rem !important;
  }
}

/* ==========================================================================
   Impression des bulletins
   ========================================================================== */

.print-page {
  background: #fff;
}
.print-bar {
  display: flex;
  gap: 0.75rem;
  padding: 1rem;
}
.print-sheet {
  max-width: 44rem;
  margin: 0 auto 2rem;
  padding: 1.5rem;
  border: 1px solid var(--rule);
}
.print-sheet h1 {
  font-size: 1.4rem;
  text-align: center;
}
.print-meta {
  text-align: center;
  color: var(--ink-soft);
}
.print-fields {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}
.print-fields th,
.print-fields td {
  text-align: start;
  padding: 0.4rem 0.5rem;
  border-bottom: 1px solid var(--rule);
}
.print-fields th {
  width: 45%;
  font-weight: 600;
  color: var(--ink-soft);
}
.print-sign img {
  max-width: 16rem;
  border: 1px solid var(--rule);
}
.print-foot {
  font-size: 0.82rem;
  color: var(--ink-soft);
}

@media print {
  .no-print,
  .a-top,
  .print-bar,
  .actions-row,
  .inline-form {
    display: none !important;
  }
  body,
  .admin {
    background: #fff;
  }
  .panel {
    border: 0;
    padding: 0;
  }
  .print-sheet {
    border: 0;
    page-break-after: always;
    margin: 0;
  }
}

/* Emails Airbnb reçus */
.sync h2 {
  margin-bottom: 0.35rem;
}
.inbox {
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.93rem;
}
.inbox li {
  padding: 0.3rem 0;
  border-top: 1px solid var(--rule);
}
.inline-form select {
  width: auto;
  max-width: 100%;
}

/* ------------------------------------------------------------------ arabe */

[lang='ar'] body {
  line-height: 1.7;
}
[lang='ar'] h1,
[lang='ar'] h2,
[lang='ar'] h3 {
  line-height: 1.4;
  letter-spacing: 0;
}
