/* =========================================================================
   annuler.css : page « Annuler un rendez-vous ». Mobile d'abord.
   S'appuie sur tokens.css ; mêmes boutons et même verre que site.css.
   ========================================================================= */

body {
  min-height: 100svh;
  background:
    radial-gradient(60% 40% at 50% 0%, rgba(227, 200, 140, 0.14), rgba(227, 200, 140, 0) 70%), /* taste-skill-ignore : halo de lampe, comme le site */
    var(--bg);
}
.cx { width: min(100%, 560px); margin: 0 auto; padding: max(24px, env(safe-area-inset-top)) 16px max(32px, env(safe-area-inset-bottom)); display: grid; gap: 20px; }

/* En-tête : logo + nom du salon */
.cx-head { display: flex; justify-content: center; }
.cx-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.cx-brand img { width: 56px; height: 56px; border-radius: 14px; }
.cx-name { font-family: var(--font-display); font-size: 30px; line-height: 1; letter-spacing: 0.02em; overflow-wrap: anywhere; }

/* Verre et boutons : comme site.css (pilule, couleur unie, pas d'ombre) */
.glass {
  background: rgba(20, 20, 23, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.14); /* taste-skill-ignore : bordure claire du verre demandée par le client */
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--r-lg);
}
.btn { min-height: 48px; padding: 0 22px; font-size: 16px; font-weight: 700; letter-spacing: 0; text-align: center; transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast) var(--ease-out); }
.btn-gold, .btn-gold:hover { background: var(--gold); color: #17120A; box-shadow: none; } /* taste-skill-ignore : annule l ombre de tokens.css */
.btn-gold:hover { background: var(--gold-2); }
.btn-ghost { background: var(--bg-3); border: 0; color: var(--ink); backdrop-filter: none; } /* taste-skill-ignore : annule le flou de tokens.css */
.btn-ghost:hover { background: #26262b; border: 0; }
.btn-danger { background: var(--red); color: #fff; border: 0; }          /* blanc 5:1 */
.btn-danger:hover { background: #A9362F; }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.7; cursor: progress; }

/* Carte principale */
.cx-card { padding: 24px 18px; display: grid; gap: 14px; }
.cx-card[data-tone="warn"] { box-shadow: 0 0 0 1px rgba(233, 162, 59, 0.45) inset; }
.cx-card[data-tone="done"] { box-shadow: 0 0 0 1px rgba(200, 164, 100, 0.45) inset; }
.cx-kicker { margin: 0; font-size: 14px; font-weight: 700; color: var(--gold-2); text-transform: uppercase; letter-spacing: 0.06em; }
.cx-card[data-tone="warn"] .cx-kicker { color: #F3C27A; }
.cx-title { margin: 0; font-size: clamp(24px, 6vw, 30px); font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; }
.cx-title:focus { outline: none; }
.cx-lead { margin: 0; color: var(--ink-2); }

.cx-recap { margin: 4px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.cx-recap div { padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.06); min-width: 0; }
.cx-recap .wide { grid-column: 1 / -1; } /* la date, souvent longue */
.cx-recap dt { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.cx-recap dd { margin: 2px 0 0; font-weight: 700; overflow-wrap: anywhere; }
.cx-recap.is-muted dd { color: var(--ink-2); }

.cx-alert { padding: 12px 14px; border-radius: 12px; font-size: 14px; font-weight: 700; color: #FFE1DE; background: rgba(224, 87, 79, 0.24); }
.cx-actions { display: grid; gap: 10px; margin-top: 6px; }
.cx-actions:empty { display: none; }
.cx-confirm { margin: 0; font-weight: 700; }

.spinner { display: inline-block; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: #fff; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Pied : appeler + retour */
.cx-foot { display: grid; gap: 8px; justify-items: center; }
.cx-foot .btn { width: 100%; }
.cx-foot .btn[hidden] { display: none; }
.cx-back { min-height: 44px; display: inline-flex; align-items: center; color: var(--gold-2); font-weight: 700; text-underline-offset: 4px; }
.cx-back:hover { color: var(--ink); }

@media (min-width: 600px) {
  .cx { padding-top: 56px; }
  .cx-card { padding: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .btn:active { transform: none; }
  .spinner { animation: none; border-top-color: rgba(255, 255, 255, 0.35); }
}
