/* ============================================================
   OFFICEA — FISCAL PROFILE MODAL
   ============================================================ */

.fiscal-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.fiscal-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.fiscal-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 41, 66, 0.5);
  backdrop-filter: blur(4px);
}

.fiscal-modal-card {
  position: relative;
  background: #f5f1e8;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 600px;
  max-height: 92vh;
  overflow-y: auto;
  padding: 20px;
  padding-top: 28px;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
  -webkit-overflow-scrolling: touch;
}

.fiscal-modal.is-open .fiscal-modal-card {
  transform: translateY(0);
}

@media (min-width: 768px) {
  .fiscal-modal {
    align-items: center;
  }
  .fiscal-modal-card {
    border-radius: 16px;
    max-height: 85vh;
    transform: scale(0.95);
  }
  .fiscal-modal.is-open .fiscal-modal-card {
    transform: scale(1);
  }
}

.fiscal-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(26, 41, 66, 0.08);
  border: none;
  font-size: 22px;
  line-height: 1;
  color: #1a2942;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

html.fiscal-modal-open {
  overflow: hidden;
}

/* ── Head ── */
.fiscal-step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-right: 40px;
}

.fiscal-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 26px;
  font-weight: 500;
  color: #1a2942;
  margin: 0;
  line-height: 1.2;
}
.fiscal-title em {
  color: #b8843f;
  font-style: italic;
}

.fiscal-step-indicator {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a8474;
  white-space: nowrap;
}

.fiscal-intro {
  font-size: 14px;
  color: #5a6478;
  line-height: 1.5;
  margin: 0 0 16px;
}

.fiscal-recap {
  font-size: 13px;
  color: #5a6478;
  margin: 0 0 12px;
}
.fiscal-recap strong { color: #1a2942; }

/* ── Cards list ── */
.fiscal-cards-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.fiscal-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  background: white;
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 14px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s, background 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.fiscal-card:hover { background: #faf6ed; }
.fiscal-card.is-selected {
  border-color: #b8843f;
  background: #faf3e3;
}

.fiscal-card-icon {
  font-size: 24px;
  flex-shrink: 0;
  line-height: 1;
  padding-top: 2px;
}

.fiscal-card-content {
  flex: 1;
  min-width: 0;
}

.fiscal-card-title {
  font-size: 15px;
  font-weight: 600;
  color: #1a2942;
  margin-bottom: 3px;
}

.fiscal-card-desc {
  font-size: 12px;
  color: #6a6478;
  line-height: 1.4;
}

.fiscal-card-meta {
  display: inline-block;
  margin-top: 6px;
  background: #f3ead4;
  color: #b8843f;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

/* ── Actions ── */
.fiscal-actions {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-top: 16px;
}

.fiscal-btn-primary, .fiscal-btn-ghost {
  padding: 13px 22px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  flex: 1;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.15s, background 0.15s;
}

.fiscal-btn-primary {
  background: #1a2942;
  color: white;
}
.fiscal-btn-primary:hover { background: #2a3a52; }
.fiscal-btn-primary:disabled {
  background: #ccc;
  cursor: not-allowed;
  opacity: 0.5;
}

.fiscal-btn-ghost {
  background: transparent;
  color: #1a2942;
  border: 1px solid #d5cdb8;
}
.fiscal-btn-ghost:hover { background: #faf6ed; }

/* ── Récap step 4 ── */
.fiscal-summary {
  background: white;
  border-radius: 12px;
  padding: 4px 16px;
  margin: 14px 0;
}

.fiscal-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #ede5d3;
}
.fiscal-summary-row:last-child { border-bottom: none; }

.fiscal-summary-row span {
  font-size: 13px;
  color: #6a6478;
}
.fiscal-summary-row strong {
  font-size: 14px;
  color: #1a2942;
  text-align: right;
  max-width: 60%;
}

.fiscal-disclaimer {
  font-size: 12px;
  color: #8a8474;
  background: #faf6ed;
  padding: 12px 14px;
  border-radius: 8px;
  border-left: 3px solid #d4a868;
  line-height: 1.5;
  margin: 14px 0;
}
.fiscal-disclaimer strong { color: #b8843f; }
