/* ============================================
   Artisan Tarifs Pro — Styles frontend
   ============================================ */

:root {
  --atp-color:  #e05a1c;
  --atp-navy:   #0e1f4d;
  --atp-gray:   #f4f6fa;
  --atp-text:   #1a2340;
  --atp-muted:  #6b7a99;
  --atp-radius: 14px;
}

.atp-wrap {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--atp-text);
  max-width: 1100px;
  margin: 0 auto;
}

/* ── En-tête ── */
.atp-header {
  text-align: center;
  margin-bottom: 32px;
}
.atp-main-title {
  font-size: 30px;
  font-weight: 800;
  color: var(--atp-navy);
  margin: 0 0 8px;
}
.atp-subtitle {
  color: var(--atp-muted);
  font-size: 14px;
  margin: 0;
}

/* ── Filtres ── */
.atp-filters {
  display: flex;
  gap: 20px;
  align-items: flex-end;
  flex-wrap: wrap;
  background: white;
  border-radius: var(--atp-radius);
  padding: 20px 24px;
  box-shadow: 0 2px 16px rgba(0,0,0,.07);
  margin-bottom: 24px;
}
.atp-filter-group {
  flex: 1;
  min-width: 200px;
}
.atp-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--atp-text);
}
.atp-select {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid #e8edf5;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  color: var(--atp-text);
  background: white;
  cursor: pointer;
  transition: border-color .2s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7a99' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.atp-select:focus {
  outline: none;
  border-color: var(--atp-color);
}

/* ── Badge coefficient ── */
.atp-coeff-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--atp-gray);
  border-radius: 12px;
  padding: 12px 20px;
  min-width: 140px;
  text-align: center;
}
.atp-coeff-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--atp-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.atp-coeff-val {
  font-size: 28px;
  font-weight: 800;
  color: var(--atp-navy);
  line-height: 1.2;
}
.atp-coeff-info {
  font-size: 12px;
  color: var(--atp-color);
  font-weight: 600;
}

/* ── Badge métier ── */
.atp-metier-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid;
  border-radius: 50px;
  padding: 6px 18px;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 16px;
}

/* ── Tableau ── */
.atp-table-wrap {
  background: white;
  border-radius: var(--atp-radius);
  box-shadow: 0 2px 16px rgba(0,0,0,.07);
  overflow: hidden;
  margin-bottom: 20px;
  padding: 24px;
}

.atp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.atp-th {
  padding: 12px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  color: var(--atp-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  background: var(--atp-gray);
  border-bottom: 2px solid #e8edf5;
}
.atp-th-prestation { width: 35%; }
.atp-th-tarif      { width: 14%; }
.atp-th-unite      { width: 12%; }
.atp-th-desc       { width: 25%; }

.atp-tr {
  border-bottom: 1px solid #f0f3f9;
  transition: background .15s;
}
.atp-tr:hover { background: #fafbff; }
.atp-tr-even  { background: white; }
.atp-tr-odd   { background: #fafbff; }

.atp-td {
  padding: 14px 16px;
  vertical-align: middle;
}
.atp-td-prestation {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.atp-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.atp-price {
  font-weight: 700;
  font-size: 15px;
}
.atp-price-min { color: #16a34a; }
.atp-price-max { color: #dc2626; }

.atp-badge-unite {
  display: inline-block;
  background: var(--atp-gray);
  color: var(--atp-muted);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.atp-desc {
  color: var(--atp-muted);
  font-size: 13px;
}

/* ── Légende ── */
.atp-legend {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #f0f3f9;
}
.atp-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--atp-muted);
}
.atp-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── Loading ── */
.atp-loading {
  text-align: center;
  padding: 40px;
  color: var(--atp-muted);
  font-size: 16px;
}

/* ── Note de bas de page ── */
.atp-footer-note {
  background: #fff8f5;
  border: 1.5px solid #fdd5c0;
  border-radius: var(--atp-radius);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.atp-footer-note p {
  margin: 0;
  font-size: 13px;
  color: var(--atp-muted);
  flex: 1;
}
.atp-cta-btn {
  display: inline-block;
  background: var(--atp-color);
  color: white !important;
  text-decoration: none !important;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  transition: all .2s;
  box-shadow: 0 4px 14px rgba(224,90,28,.3);
}
.atp-cta-btn:hover {
  background: #f06a2c;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(224,90,28,.4);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .atp-th-desc, .atp-td-desc { display: none; }
  .atp-filters { flex-direction: column; }
  .atp-footer-note { flex-direction: column; text-align: center; }
  .atp-table { font-size: 13px; }
  .atp-td { padding: 10px 10px; }
  .atp-main-title { font-size: 22px; }
  .atp-coeff-badge { display: none; }
}
