/**
 * Feed Access SAS — Design System Base
 * Styles de base. Charge APRES JQM et CSS CMS existants.
 * Story 1.4 — Direction F
 */

/* === Design Tokens === */
:root {
  --fa-color-primary: #2C3E50;
  --fa-color-accent: #3D8B37;
  --fa-color-highlight: #D9C559;
  --fa-color-text: #333333;
  --fa-color-surface: #F8F9FA;
  --fa-color-secondary: #8CB83D;
  --fa-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fa-border-radius: 4px;
}

/* === Typographie === */
body {
  font-family: var(--fa-font-family);
  color: var(--fa-color-text);
}

/* === Liens texte (hors boutons JQM) === */
a:not([data-role='button']):not([class*="ui-"]) {
  color: var(--fa-color-accent);
}

/* === Header JQM — !important necessaire pour overrider JQM inline styles === */
div[data-role='header'] {
  background-color: var(--fa-color-primary) !important;
  color: #fff;
}

/* === Alternance lignes tableaux === */
tr:nth-child(even) {
  background-color: var(--fa-color-surface);
}

/* === Focus visible WCAG AA === */
*:focus-visible {
  outline: 2px solid var(--fa-color-primary);
  outline-offset: 2px;
}

/* === Composants fa-* (base pour stories futures) === */
.fa-btn-primary {
  background-color: var(--fa-color-accent);
  color: #fff;
  border: none;
  border-radius: var(--fa-border-radius);
  padding: 8px 16px;
  cursor: pointer;
  font-family: var(--fa-font-family);
  transition: background-color 0.2s;
}
.fa-btn-primary:hover {
  background-color: #2D7A2E;
}
.fa-btn-primary:active {
  background-color: #246B20;
}
.fa-btn-primary:disabled,
.fa-btn-secondary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.fa-btn-secondary {
  background-color: transparent;
  color: var(--fa-color-accent);
  border: 1px solid var(--fa-color-accent);
  border-radius: var(--fa-border-radius);
  padding: 8px 16px;
  cursor: pointer;
  font-family: var(--fa-font-family);
  transition: background-color 0.2s, color 0.2s;
}
.fa-btn-secondary:hover {
  background-color: var(--fa-color-accent);
  color: #fff;
}
.fa-btn-secondary:active {
  background-color: #2D7A2E;
  color: #fff;
}

.fa-card {
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: var(--fa-border-radius);
  padding: 16px;
}

.fa-page-corporate { max-width: 960px; margin: 0 auto; }
.fa-hero {
  text-align: center;
  padding: 32px 16px;
  background-color: var(--fa-color-primary);
  color: #fff;
  border-radius: var(--fa-border-radius);
  margin-bottom: 24px;
}
.fa-hero-title { font-size: 1.5rem; font-weight: 600; margin: 0 0 8px; color: #fff; }
.fa-hero-tagline { font-size: 1rem; opacity: .9; margin: 0 0 24px; }
.fa-stats-grid { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; }
.fa-stat-item { text-align: center; }
.fa-stat-number { display: block; font-size: 1.5rem; font-weight: 600; }
.fa-stat-label { font-size: .875rem; opacity: .8; }
.fa-section-title { color: var(--fa-color-primary); font-size: 1.25rem; font-weight: 600; margin: 0 0 12px; }
.fa-company-section { padding: 16px; margin-bottom: 16px; }
.fa-company-section p { line-height: 1.5; }
.fa-trust-signals {
  padding: 24px 16px;
  background-color: var(--fa-color-surface);
  border-radius: var(--fa-border-radius);
  text-align: center;
  margin-bottom: 24px;
}
.fa-partners-list { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; }
.fa-partner-item { font-weight: 600; color: var(--fa-color-primary); }
.fa-partners-impact { color: var(--fa-color-accent); font-weight: 600; margin: 0; }
.fa-refund-badge { display: inline-block; background-color: var(--fa-color-accent); color: #fff; padding: 8px 16px; border-radius: var(--fa-border-radius); font-weight: 600; margin-bottom: 12px; }
.fa-legal-footer { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 16px; justify-content: center; border-top: 1px solid #e0e0e0; margin-top: 24px; }
.fa-company-footer { text-align: center; padding: 16px; font-size: .875rem; color: #666; }
.fa-company-footer p { margin: 4px 0; }
.fa-page-title { color: var(--fa-color-primary); font-size: 1.5rem; font-weight: 600; padding: 0 16px; margin-bottom: 16px; }
.fa-legal-content { padding: 0 0 16px; }
.fa-legal-date { font-size: .875rem; color: #666; padding: 0 16px; }
.fa-logo-container svg { height: 32px; width: auto; }
.fa-header-inner { padding: 8px 16px; }

/* === Navigation desktop (Story 5.3) — masquee sur mobile === */
.fa-login-header { background-color: var(--fa-color-primary); }
.fa-nav-desktop { display: none; }
.fa-nav-desktop .fa-nav-link {
  color: #fff;
  text-decoration: none;
  font-size: 0.875rem;
  padding: 8px 12px;
}
.fa-nav-desktop .fa-nav-link:hover,
.fa-nav-desktop .fa-nav-link:focus-visible {
  text-decoration: underline;
  outline-offset: 2px;
}

/* === Utilitaire accessibilite === */
.fa-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* === Pricing / Upgrade (Story 3.2) === */
.fa-page-upgrade { max-width: 960px; margin: 0 auto; }

.fa-pricing-section { padding: 0 16px; margin-bottom: 24px; }
.fa-pricing-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.fa-pricing-card {
  box-sizing: border-box;
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: var(--fa-border-radius);
  padding: 24px;
  width: 100%;
  max-width: 400px;
  text-align: center;
}
.fa-pricing-card-recommended {
  border-color: var(--fa-color-accent);
}
.fa-pricing-card-current {
  background-color: var(--fa-color-surface);
}

.fa-pricing-badge {
  display: inline-block;
  background: var(--fa-color-accent);
  color: #fff;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: .75rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.fa-pricing-plan-name {
  color: var(--fa-color-primary);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 12px;
}
.fa-pricing-price { margin: 0 0 4px; }
.fa-pricing-amount {
  font-size: 2rem;
  font-weight: 700;
  color: var(--fa-color-primary);
}
.fa-pricing-currency,
.fa-pricing-period {
  font-size: .875rem;
  color: #666;
}
.fa-pricing-quarterly {
  font-size: .875rem;
  color: #666;
  margin: 0 0 4px;
}
.fa-pricing-anchor {
  font-size: .875rem;
  color: var(--fa-color-accent);
  font-weight: 600;
  margin: 0 0 16px;
}

.fa-pricing-feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  text-align: left;
}
.fa-pricing-feature-list li {
  padding: 8px 0 8px 20px;
  border-bottom: 1px solid #f0f0f0;
  font-size: .9375rem;
  position: relative;
}
.fa-pricing-feature-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--fa-color-accent);
  font-weight: 700;
}
.fa-pricing-feature-list li:last-child { border-bottom: none; }

.fa-pricing-cta {
  display: inline-block;
  min-width: 200px;
  min-height: 44px;
  line-height: 44px;
  padding: 0 24px;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border-radius: var(--fa-border-radius);
}
.fa-pricing-cta-disabled {
  opacity: .6;
  cursor: default;
  pointer-events: none;
}

.fa-checkout-pending {
  text-align: center;
  padding: 16px;
}

/* Tableau comparatif */
.fa-comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
}
.fa-comparison-table th,
.fa-comparison-table td {
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
}
.fa-comparison-table th {
  background: var(--fa-color-primary);
  color: #fff;
  font-weight: 600;
}
.fa-comparison-table th:not(:first-child),
.fa-comparison-table td:not(:first-child) {
  text-align: center;
}

/* === Compteur Free / Usage Meter (Story 3.3) === */
.fa-usage-meter {
  box-sizing: border-box;
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--fa-font-family);
  font-size: .875rem;
  padding: 0 16px;
}
.fa-usage-meter--fresh {
  background: #fff;
  color: #666;
  border-top: 1px solid #e0e0e0;
}
.fa-usage-meter--warning {
  background: #fff;
  color: #7A6E29;
  border-top: 2px solid var(--fa-color-highlight);
  font-weight: 700;
}
.fa-usage-meter--limit {
  background: var(--fa-color-highlight);
  color: var(--fa-color-text);
  font-weight: 700;
}
.fa-usage-meter--pro {
  background: #fff;
  color: var(--fa-color-accent);
  border-top: 1px solid #e0e0e0;
}
.fa-usage-meter-cta {
  min-height: 44px;
  line-height: 44px;
  padding: 0 16px;
  font-size: .875rem;
  text-decoration: none;
  display: inline-block;
}
.fa-usage-meter-link {
  color: var(--fa-color-accent);
  text-decoration: underline;
  font-size: .8125rem;
}

/* Padding conditionnel pour pages avec compteur */
.fa-has-usage-meter [data-role="content"] {
  padding-bottom: 56px;
}

/* ======================== */
/* Onboarding (Story 4.1)   */
/* ======================== */

.fa-onboarding-wizard {
  max-width: 600px;
  margin: 0 auto;
  padding: 24px 16px;
}

.fa-onboarding-welcome {
  text-align: center;
  margin-bottom: 32px;
}

.fa-onboarding-welcome h1 {
  color: var(--fa-color-dark);
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.fa-onboarding-welcome p {
  color: var(--fa-color-text-secondary);
  font-size: .9375rem;
}

.fa-wizard-step-indicator {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 24px;
  font-size: .875rem;
  color: var(--fa-color-text-secondary);
}

.fa-onboarding-step {
  background: var(--fa-color-bg-light);
  padding: 32px 24px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.fa-onboarding-step h2 {
  color: var(--fa-color-dark);
  font-size: 1.125rem;
  margin-bottom: 24px;
}

.fa-species-selector {
  margin-bottom: 24px;
}

.fa-species-selector .fa-label {
  display: block;
  color: var(--fa-color-dark);
  font-weight: 500;
  margin-bottom: 8px;
  font-size: .9375rem;
}

.fa-species-selector .fa-select,
.fa-country-selector .fa-select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  background: white;
  color: var(--fa-color-dark);
  transition: border-color .2s ease;
}

.fa-species-selector .fa-select:focus,
.fa-country-selector .fa-select:focus {
  outline: none;
  border-color: var(--fa-color-primary);
  box-shadow: 0 0 0 3px rgba(61, 139, 55, .1);
}

.fa-country-selector {
  margin-bottom: 24px;
}

.fa-country-detected {
  display: block;
  margin-top: 8px;
  font-size: .875rem;
  color: var(--fa-color-text-secondary);
}

.fa-onboarding-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.fa-btn-onboarding {
  background: var(--fa-color-primary);
  color: white;
  border: none;
  padding: 12px 32px;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background .2s ease;
}

.fa-btn-onboarding:hover {
  background: #2e6b29;
}

.fa-onboarding-complete {
  text-align: center;
  padding: 48px 24px;
}

.fa-onboarding-complete h1 {
  color: var(--fa-color-primary);
  font-size: 2rem;
  margin-bottom: 16px;
}

.fa-onboarding-complete p {
  color: var(--fa-color-text-secondary);
  font-size: 1.125rem;
  margin-bottom: 24px;
}

.fa-onboarding-error {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
  padding: 12px 16px;
  border-radius: 4px;
  margin-bottom: 16px;
  font-size: .875rem;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .fa-onboarding-wizard {
    padding: 16px 12px;
  }

  .fa-onboarding-step {
    padding: 24px 16px;
  }

  .fa-btn-onboarding {
    width: 100%;
  }
}

/* ================================ */
/* Formulation pré-calculée (4.2)   */
/* ================================ */

.fa-formulation-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}
.fa-formulation-table th,
.fa-formulation-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #ddd;
}
.fa-formulation-table th {
  background: var(--fa-color-surface);
  font-weight: 600;
}
.fa-formulation-table input {
  width: 100%;
  max-width: 120px;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: var(--fa-border-radius);
}

.fa-price-adapted {
  color: var(--fa-color-accent);
  font-size: 0.875rem;
}
.fa-price-reference {
  color: #6c757d;
  font-size: 0.875rem;
}

.fa-formulation-summary {
  background: #e7f3ff;
  padding: 1.5rem;
  border-radius: 8px;
  margin: 1.5rem 0;
}
.fa-formulation-summary h3 {
  margin-top: 0;
  color: #0066cc;
}

.fa-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.fa-summary-item {
  background: white;
  padding: 1rem;
  border-radius: var(--fa-border-radius);
}
.fa-summary-label {
  font-size: 0.875rem;
  color: #6c757d;
  margin-bottom: 0.25rem;
}
.fa-summary-value {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--fa-color-text);
}

.fa-generic-message {
  background: #fff3cd;
  border-left: 4px solid #ffc107;
  padding: 1rem;
  margin: 1.5rem 0;
  border-radius: var(--fa-border-radius);
}
.fa-formulation-change-species {
  margin-left: 1rem;
}

.fa-formulation-disclaimer {
  margin-top: 0.75rem;
  font-style: italic;
}
.fa-formulation-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: 1.5rem;
}

/* === Utilitaire colonnes secondaires (Story 5.2) === */
/* Usage: ajouter class="fa-col-secondary" sur <th>/<td> pour masquer sur mobile */
.fa-col-secondary { display: none; }

/* Wrapper: entourer un <table> de <div class="fa-table-wrapper"> pour scroll mobile */
.fa-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ====================================== */
/* Delta economique + Badge (Story 4.3)   */
/* ====================================== */

.fa-delta-eco {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-radius: 8px;
  border-left: 4px solid transparent;
}
.fa-delta-eco-positive {
  background: #eef7ee;
  border-left-color: #3D8B37;
}
.fa-delta-eco-negative {
  background: #fdf0ef;
  border-left-color: #C0392B;
}
.fa-delta-eco-insufficient {
  background: var(--fa-color-surface);
  border-left-color: #95A5A6;
  justify-content: center;
}

.fa-delta-eco-title {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--fa-color-primary);
  margin-bottom: 0.5rem;
}
.fa-delta-eco-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.fa-delta-eco-line {
  font-size: 0.875rem;
  color: var(--fa-color-text);
}
.fa-delta-eco-value {
  font-weight: 700;
  font-size: 1rem;
  margin-top: 0.25rem;
}
.fa-delta-eco-positive .fa-delta-eco-value {
  color: #3D8B37;
}
.fa-delta-eco-negative .fa-delta-eco-value {
  color: #C0392B;
}
.fa-delta-eco-arrow {
  display: inline-block;
  margin-right: 0.25rem;
  font-weight: 700;
}

/* Badges fiabilite */
.fa-badge-reliability {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}
.fa-badge-icon {
  font-size: 0.875rem;
  line-height: 1;
}
.fa-badge-reliable {
  background: #3D8B37;
  color: #fff;
}
.fa-badge-indicative {
  background: #C4A83D;
  color: #fff;
}
.fa-badge-insufficient {
  background: #95A5A6;
  color: #fff;
}

/* Responsive : empiler sur mobile */
@media (max-width: 480px) {
  .fa-delta-eco {
    flex-direction: column;
    align-items: stretch;
  }
  .fa-delta-eco-badge {
    margin-top: 0.5rem;
  }
}

/* ======================================== */
/* Historique formulations (Story 4.4)       */
/* ======================================== */

.fa-history-page {
  max-width: 600px;
  margin: 0 auto;
  padding: 16px;
}
.fa-history-usage {
  text-align: center;
  font-size: 0.875rem;
  color: #666;
  margin-bottom: 1rem;
}
.fa-history-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.fa-history-item {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: var(--fa-border-radius);
  padding: 16px;
}
.fa-history-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.fa-history-item-species {
  font-weight: 600;
  color: var(--fa-color-accent);
}
.fa-history-item-date {
  font-size: 0.875rem;
  color: #6c757d;
}
.fa-history-item-cost {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--fa-color-text);
  margin-bottom: 12px;
}
.fa-history-actions {
  display: flex;
  gap: 8px;
}
.fa-history-actions-bottom {
  margin-top: 1.5rem;
  justify-content: center;
}
.fa-history-btn {
  display: inline-block;
  padding: 8px 16px;
  border-radius: var(--fa-border-radius);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  min-height: 44px;
  line-height: 28px;
}
.fa-history-btn-view {
  border: 1px solid var(--fa-color-accent);
  color: var(--fa-color-accent);
  background: transparent;
}
.fa-history-btn-view:hover {
  background: var(--fa-color-accent);
  color: #fff;
}
.fa-history-btn-duplicate {
  background: var(--fa-color-accent);
  color: #fff;
  border: 1px solid var(--fa-color-accent);
}
.fa-history-btn-duplicate:hover {
  background: #2D7A2E;
  border-color: #2D7A2E;
}
.fa-history-empty {
  text-align: center;
  padding: 48px 16px;
  color: #6c757d;
}
.fa-history-empty p {
  margin-bottom: 16px;
}
.fa-history-upgrade {
  background: var(--fa-color-surface);
  padding: 16px;
  border-radius: var(--fa-border-radius);
  text-align: center;
  margin-bottom: 16px;
}
.fa-history-upgrade p {
  margin: 0 0 12px;
  color: var(--fa-color-text);
}
.fa-history-badge-date {
  display: inline-block;
  background: var(--fa-color-surface);
  color: var(--fa-color-primary);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 16px;
}

/* Responsive historique */
@media (max-width: 480px) {
  .fa-history-page {
    padding: 12px;
  }
  .fa-history-actions {
    flex-direction: column;
  }
  .fa-history-btn {
    width: 100%;
  }
}

/* ======================================== */
/* Table factures (Story 5.2)               */
/* ======================================== */
.fa-invoice-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}
.fa-invoice-table th,
.fa-invoice-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #ddd;
}
.fa-invoice-table th {
  background-color: var(--fa-color-surface);
  font-weight: 600;
}

/* ======================================== */
/* Modale profil utilisateur (Story 4.5)     */
/* ======================================== */

.fa-profile-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.fa-profile-modal-overlay.fa-visible {
  opacity: 1;
  visibility: visible;
}

.fa-profile-modal-container {
  background: #fff;
  border-radius: var(--fa-border-radius);
  max-width: 440px;
  width: 90%;
  padding: 32px 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.fa-profile-modal-header h3 {
  color: var(--fa-color-primary);
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}
.fa-profile-modal-header p {
  color: var(--fa-color-text);
  font-size: 0.9rem;
  margin: 0 0 1.5rem;
}

.fa-profile-modal-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fa-profile-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: var(--fa-border-radius);
  cursor: pointer;
  transition: border-color 0.2s ease;
}
.fa-profile-option:hover {
  border-color: var(--fa-color-accent);
}
.fa-profile-option input[type="radio"] {
  margin: 0;
  accent-color: var(--fa-color-accent);
}
.fa-profile-option input[type="radio"]:checked ~ .fa-profile-option-label {
  font-weight: 600;
  color: var(--fa-color-accent);
}

.fa-profile-modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 1rem;
  justify-content: center;
}

.fa-profile-btn-submit {
  background: var(--fa-color-accent);
  color: #fff;
  padding: 10px 24px;
  border: none;
  border-radius: var(--fa-border-radius);
  cursor: pointer;
  font-weight: 600;
  font-family: var(--fa-font-family);
  font-size: 0.9375rem;
  min-height: 44px;
}
.fa-profile-btn-submit:hover {
  filter: brightness(0.85);
}

.fa-profile-btn-skip {
  background: transparent;
  color: var(--fa-color-text);
  padding: 10px 24px;
  border: 1px solid #ddd;
  border-radius: var(--fa-border-radius);
  cursor: pointer;
  font-family: var(--fa-font-family);
  font-size: 0.9375rem;
  min-height: 44px;
}
.fa-profile-btn-skip:hover {
  border-color: var(--fa-color-accent);
  color: var(--fa-color-accent);
}

/* Responsive modale profil */
@media (max-width: 480px) {
  .fa-profile-modal-container {
    width: 95%;
    padding: 24px 16px;
  }
  .fa-profile-modal-actions {
    flex-direction: column;
  }
  .fa-profile-btn-submit,
  .fa-profile-btn-skip {
    width: 100%;
  }
}

/* ======================================== */
/* Paywall CTA inline (Story 3.3 AC#3)      */
/* ======================================== */

.fa-paywall-cta {
  background: #fff;
  border: 2px solid var(--fa-color-highlight);
  border-radius: 8px;
  padding: 24px;
  margin: 16px 0;
  text-align: center;
}

.fa-paywall-cta-title {
  color: var(--fa-color-primary);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 8px;
}

.fa-paywall-cta-desc {
  color: var(--fa-color-text);
  font-size: 0.9375rem;
  line-height: 1.5;
  margin: 0 0 12px;
}

.fa-paywall-cta-usage {
  font-size: 0.875rem;
  color: #7A6E29;
  font-weight: 700;
  margin: 0 0 16px;
}

.fa-paywall-cta-btn {
  display: inline-block;
  min-width: 200px;
  min-height: 44px;
  line-height: 44px;
  padding: 0 24px;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}

/* Preview slots */
.fa-paywall-preview {
  margin-bottom: 16px;
  padding: 24px;
  border-radius: var(--fa-border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

.fa-paywall-preview-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.fa-paywall-preview-icon {
  font-size: 2rem;
}

.fa-paywall-preview-label {
  font-size: 0.875rem;
  font-weight: 600;
}

.fa-paywall-preview--blur {
  background: var(--fa-color-surface);
  position: relative;
  overflow: hidden;
}

.fa-paywall-preview--blur::after {
  content: '';
  position: absolute;
  inset: 0;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  background: rgba(248, 249, 250, 0.6);
}

.fa-paywall-preview--blur .fa-paywall-preview-content {
  position: relative;
  z-index: 1;
  color: var(--fa-color-primary);
}

.fa-paywall-preview--gray {
  background: var(--fa-color-surface);
  color: #95A5A6;
}

.fa-paywall-preview--gray .fa-paywall-preview-icon {
  opacity: 0.4;
}

/* Bouton duplique verrouille (historique) */
.fa-history-btn-locked {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* Lien historique sous CTA paywall */
.fa-paywall-history-link {
  text-align: center;
  margin-top: 16px;
}
