/* =========================================================
   RankUs Studio — Page Audit SEO
   Styles spécifiques à la page audit.html
   Hérite du design system de style.css
   ========================================================= */

/* ---------- HERO ---------- */
.audit-hero {
  padding: clamp(80px, 14vh, 140px) 0 clamp(48px, 8vh, 80px);
  position: relative;
}

.audit-hero .container {
  max-width: 920px;
  text-align: center;
}

.audit-hero .eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--emerald);
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  margin-bottom: 24px;
}

.audit-h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 6.5vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  color: var(--text);
}

.audit-h1 em {
  font-style: italic;
  background: var(--grad-em);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 500;
}

.audit-lede {
  font-size: clamp(16.5px, 1.8vw, 19px);
  line-height: 1.6;
  color: var(--text-mid);
  max-width: 680px;
  margin: 0 auto 36px;
}

.audit-lede strong {
  color: var(--text);
  font-weight: 600;
}

.audit-hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.audit-microtrust {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 14px;
  color: var(--muted);
}

.audit-microtrust li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.audit-microtrust .check {
  color: var(--emerald);
  font-weight: 700;
}

/* ---------- TARIFS AUDIT ---------- */
.section-tarifs-audit {
  padding: clamp(60px, 9vh, 100px) 0;
}

.section-tarifs-audit .section-title {
  text-align: center;
  margin-bottom: 16px;
}

.section-tarifs-audit .section-lead {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.audit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  max-width: 880px;
  margin: 0 auto 32px;
}

.audit-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.audit-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(20,30,25,0.08), 0 16px 32px rgba(20,30,25,0.06);
  border-color: var(--emerald-2);
}

.audit-card-feat {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border-color: var(--emerald);
  position: relative;
}

.audit-card-feat::before {
  content: "Recommandé";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad-em);
  color: #FBF8F2;
  font-size: 11px;
  font-family: var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 999px;
  font-weight: 500;
}

.audit-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

.audit-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  flex-wrap: wrap;
}

.audit-amount {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 500;
  color: var(--text);
  line-height: 1;
}

.audit-period {
  font-size: 13px;
  color: var(--muted);
  font-family: var(--font-mono);
}

.audit-desc {
  margin: 0;
  color: var(--text-mid);
  font-size: 15px;
  line-height: 1.55;
}

.audit-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--border-soft);
  padding-top: 20px;
}

.audit-list li {
  position: relative;
  padding-left: 22px;
  font-size: 14.5px;
  color: var(--text-mid);
  line-height: 1.5;
}

.audit-list li::before {
  content: "•";
  position: absolute;
  left: 6px;
  color: var(--emerald);
  font-weight: 700;
}

.audit-list li strong {
  color: var(--text);
  font-weight: 600;
}

.audit-card .btn {
  margin-top: auto;
}

.audit-foot {
  text-align: center;
  max-width: 640px;
  margin: 32px auto 0;
  color: var(--muted);
  font-size: 14.5px;
}

.audit-foot strong {
  color: var(--text);
}

/* ---------- COMMENT ÇA MARCHE ---------- */
.section-howto {
  padding: clamp(60px, 9vh, 100px) 0;
}

.section-howto .section-title {
  text-align: center;
  margin-bottom: 48px;
}

.howto-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
  counter-reset: howto;
}

.howto-steps li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  align-items: start;
}

.howto-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--grad-em);
  color: #FBF8F2;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.howto-steps h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
}

.howto-steps p {
  margin: 0;
  color: var(--text-mid);
  font-size: 15.5px;
  line-height: 1.6;
}

.howto-steps strong {
  color: var(--text);
}

/* ---------- TRANSPARENCE / HONESTY ---------- */
.section-honest {
  padding: clamp(60px, 9vh, 100px) 0;
}

.section-honest .section-title {
  text-align: center;
  margin-bottom: 16px;
}

.section-honest .section-lead {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px;
}

.honest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}

.honest-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-soft);
}

.honest-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--gold-2);
  font-weight: 700;
  font-size: 14px;
}

.honest-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.005em;
}

.honest-card p {
  margin: 0;
  color: var(--text-mid);
  font-size: 14.5px;
  line-height: 1.55;
}

/* ---------- FORM ---------- */
.section-audit-form {
  padding: clamp(60px, 9vh, 100px) 0;
  scroll-margin-top: 80px;
}

.section-audit-form .section-title {
  text-align: center;
}

.section-audit-form .section-lead {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 48px;
}

.audit-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-row label,
.form-row legend {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.005em;
}

.form-row .req {
  color: var(--gold);
  margin-left: 2px;
}

.form-row .opt {
  color: var(--muted);
  font-weight: 400;
  font-size: 13px;
  margin-left: 4px;
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="url"],
.form-row textarea {
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  resize: vertical;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(46, 173, 111, 0.12);
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: var(--faint);
}

/* Radio cards pour la formule */
.form-row-formule {
  border: none;
  padding: 0;
  margin: 0;
}

.form-row-formule legend {
  margin-bottom: 8px;
  padding: 0;
}

.radio-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
  margin-bottom: 10px;
  background: var(--bg);
}

.radio-card:last-child {
  margin-bottom: 0;
}

.radio-card:hover {
  border-color: var(--emerald-2);
  background: var(--surface);
}

.radio-card input[type="radio"] {
  margin-top: 3px;
  accent-color: var(--emerald);
  flex-shrink: 0;
}

.radio-card:has(input:checked) {
  border-color: var(--emerald);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(46, 173, 111, 0.12);
}

.radio-card-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.radio-card-title {
  font-weight: 600;
  color: var(--text);
  font-size: 14.5px;
}

.radio-card-desc {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.45;
}

.btn-submit {
  font-size: 16px;
  padding: 14px 28px;
  margin-top: 6px;
  position: relative;
}

.btn-submit[aria-busy="true"] .btn-label { display: none; }
.btn-submit[aria-busy="true"] .btn-loading { display: inline; }

.form-foot {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  margin: 0;
  line-height: 1.5;
}

.form-foot strong {
  color: var(--text);
}

.form-status {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  line-height: 1.5;
}

.form-status.is-success {
  background: rgba(46, 173, 111, 0.10);
  color: var(--emerald-deep);
  border: 1px solid var(--emerald);
}

.form-status.is-error {
  background: rgba(181, 138, 43, 0.10);
  color: var(--gold-2);
  border: 1px solid var(--gold);
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .audit-hero-ctas { flex-direction: column; }
  .audit-hero-ctas .btn { width: 100%; }
  .audit-microtrust { gap: 12px 18px; }
  .audit-amount { font-size: 38px; }
  .howto-steps li { grid-template-columns: 44px 1fr; gap: 14px; }
  .howto-num { width: 40px; height: 40px; font-size: 18px; }
}

/* ---------- Dark mode overrides ---------- */
[data-theme="dark"] .audit-card,
[data-theme="dark"] .honest-card,
[data-theme="dark"] .audit-form {
  background: var(--surface);
}

[data-theme="dark"] .form-row input,
[data-theme="dark"] .form-row textarea,
[data-theme="dark"] .radio-card {
  background: var(--bg-soft);
}

[data-theme="dark"] .radio-card:hover,
[data-theme="dark"] .radio-card:has(input:checked) {
  background: var(--surface-2);
}
