/* Fox Clean Auto — espace compte / auth */

.compte-body {
  min-height: 100vh;
}

.auth-main {
  padding-bottom: 3rem;
}

.auth-section__inner {
  max-width: 32rem;
  margin-inline: auto;
}

.auth-section__inner--wide {
  max-width: 56rem;
}

.auth-flash {
  max-width: 40rem;
  margin: 1rem auto 0;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-align: center;
  font-size: 0.95rem;
}

.auth-flash--success {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.35);
  color: #bbf7d0;
}

.auth-flash--error {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.35);
  color: #fecaca;
}

.auth-errors {
  margin: 0 0 1.25rem;
  padding: 0.85rem 1rem 0.85rem 1.4rem;
  border-radius: var(--radius);
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fecaca;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.auth-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.auth-label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.auth-label span em {
  font-style: normal;
  opacity: 0.75;
}

.auth-label input,
.auth-label select,
.auth-label textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card-strong);
  color: var(--text);
  font: inherit;
}

.auth-label select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #fb923c 50%),
    linear-gradient(135deg, #fb923c 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.2rem;
}

.auth-label input:focus,
.auth-label select:focus,
.auth-label textarea:focus {
  outline: 2px solid rgba(249, 115, 22, 0.45);
  outline-offset: 1px;
  border-color: rgba(249, 115, 22, 0.55);
}

.auth-label textarea {
  resize: vertical;
  min-height: 5rem;
}

.auth-switch {
  margin-top: 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.auth-switch a {
  color: var(--accent-bright);
  text-decoration: none;
  font-weight: 600;
}

.auth-switch a:hover {
  text-decoration: underline;
}

.compte-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: flex-end;
  margin-bottom: 1.5rem;
}

.compte-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.compte-card {
  padding: 1.35rem 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background:
    linear-gradient(165deg, rgba(36, 24, 16, 0.55) 0%, rgba(10, 9, 8, 0.72) 100%);
}

.compte-card--full {
  grid-column: 1 / -1;
}

.compte-card__title {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}

.compte-dl {
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.compte-dl div {
  display: grid;
  gap: 0.15rem;
}

.compte-dl dt {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.compte-dl dd {
  margin: 0;
  color: var(--text);
}

.compte-code {
  margin: 0 0 1rem;
  font-size: 1.05rem;
}

.compte-code strong {
  color: var(--accent-bright);
  letter-spacing: 0.04em;
}

.compte-qr {
  margin: 1rem 0;
  display: flex;
  justify-content: center;
}

.compte-qr img {
  width: 220px;
  height: 220px;
  border-radius: 12px;
  background: #fff;
  padding: 0.5rem;
  box-sizing: border-box;
}

.compte-hint {
  margin: 0.75rem 0 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.compte-empty {
  margin: 0;
  color: var(--text-muted);
}

.compte-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.compte-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.compte-table th,
.compte-table td {
  padding: 0.75rem 0.65rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.compte-table th {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}

.compte-muted {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.compte-status {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  font-size: 0.8rem;
  border: 1px solid var(--border);
}

.compte-status--pending {
  background: rgba(249, 115, 22, 0.12);
  color: #fdba74;
  border-color: rgba(249, 115, 22, 0.35);
}

.compte-status--confirmed {
  background: rgba(59, 130, 246, 0.12);
  color: #93c5fd;
  border-color: rgba(59, 130, 246, 0.35);
}

.compte-status--validated,
.compte-status--completed {
  background: rgba(34, 197, 94, 0.12);
  color: #86efac;
  border-color: rgba(34, 197, 94, 0.35);
}

.compte-status--rejected,
.compte-status--cancelled {
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.3);
}

.booking-form .compte-hint {
  margin-top: 0.25rem;
}

.compte-card a {
  color: var(--accent-bright);
  text-decoration: none;
  font-weight: 600;
}

.compte-card a:hover {
  text-decoration: underline;
}

.avantage-list__item a {
  color: var(--accent-bright);
  font-weight: 600;
}

.compte-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.admin-ref-form {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 12rem;
}

.admin-ref-form input[type="text"] {
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-card-strong);
  color: var(--text);
  font: inherit;
  font-size: 0.85rem;
}

.admin-ref-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

/* Comparaison avant / après (espace client) */
.ba-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 0.75rem 0 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.ba-compare__label {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fb923c;
  font-weight: 700;
}
.ba-compare__gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.ba-compare__gallery img {
  width: 140px;
  height: 105px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: block;
}
@media (max-width: 700px) {
  .ba-compare {
    grid-template-columns: 1fr;
  }
}

.btn--danger {
  background: #7f1d1d;
  color: #fee2e2;
  border: 1px solid #f87171;
}
.btn--danger:hover {
  background: #991b1b;
}
.btn--touch {
  min-height: 2.75rem;
  padding: 0.75rem 1.15rem;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.booking-cards {
  display: grid;
  gap: 1rem;
}
.booking-card__eyebrow {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a1a1aa;
}
.booking-card__date {
  margin: 0.35rem 0 0;
  font-size: 1.35rem;
  color: #fafafa;
}
.booking-card__time {
  margin: 0.15rem 0 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fb923c;
}
.booking-card__service {
  margin: 0.25rem 0;
}
.booking-card__notice {
  margin: 0.75rem 0 0;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.35);
  color: #fdba74;
  font-size: 0.92rem;
}
.booking-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}
.booking-card__actions .btn {
  flex: 1 1 140px;
}

.badge-client-change {
  display: inline-block;
  margin: 0.25rem 0.35rem 0.25rem 0;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(249, 115, 22, 0.15);
  color: #fdba74;
  border: 1px solid rgba(249, 115, 22, 0.4);
}
.badge-client-change--cancel {
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.35);
}

/* Cloche notifications admin */
.admin-header-tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  z-index: 60;
}
.admin-bell {
  position: relative;
}
.admin-bell__btn {
  position: relative;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  width: 2.5rem;
  height: 2.5rem;
  cursor: pointer;
  color: #f5f5f5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.admin-bell__badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: #f97316;
  color: #140b08;
  font-size: 0.7rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.admin-bell__badge.is-empty {
  display: none;
}
.admin-bell__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  width: min(360px, calc(100vw - 1.5rem));
  background: #120e0b;
  border: 1px solid rgba(249,115,22,0.35);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.45);
  overflow: hidden;
}
.admin-bell__head,
.admin-bell__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.admin-bell__foot {
  border-bottom: 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.admin-bell__head a {
  color: #fb923c;
  font-size: 0.85rem;
  text-decoration: none;
}
.admin-bell__list {
  max-height: 340px;
  overflow-y: auto;
}
.admin-bell__item {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 0.75rem 0.85rem;
  color: #e4e4e7;
  cursor: pointer;
}
.admin-bell__item.is-unread {
  background: rgba(249,115,22,0.08);
}
.admin-bell__item-title {
  font-weight: 600;
  font-size: 0.9rem;
}
.admin-bell__item-msg {
  font-size: 0.82rem;
  color: #a1a1aa;
  margin-top: 0.15rem;
}
.admin-bell__item-time {
  font-size: 0.75rem;
  color: #71717a;
  margin-top: 0.25rem;
}
.admin-bell__item.admin-notif--created .admin-bell__item-title { color: #fdba74; }
.admin-bell__item.admin-notif--rescheduled .admin-bell__item-title { color: #fde68a; }
.admin-bell__item.admin-notif--cancelled .admin-bell__item-title { color: #fca5a5; }

.admin-notif-dot {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  margin-right: 0.35rem;
  background: #a1a1aa;
}
.admin-notif-dot.admin-notif--created { background: #f97316; }
.admin-notif-dot.admin-notif--rescheduled { background: #eab308; }
.admin-notif-dot.admin-notif--cancelled { background: #ef4444; }
.admin-notif-row--unread td {
  background: rgba(249,115,22,0.06);
}

@media (max-width: 900px) {
  .admin-header-tools {
    margin-left: 0;
    order: 3;
  }
  .admin-bell__panel {
    position: fixed;
    left: 0.75rem;
    right: 0.75rem;
    width: auto;
    top: 4.2rem;
  }
}

@media (max-width: 800px) {
  .auth-form__row,
  .compte-grid {
    grid-template-columns: 1fr;
  }

  .compte-table th:nth-child(4),
  .compte-table td:nth-child(4) {
    white-space: nowrap;
  }
}
