/*
  AGEF souscription wizard — shared styles (pages/vente-terrain/*).
  Structure follows the workflow template's 5-step wizard; colours are AGEF tokens.
  Brand = AGEF green. Accent marks the current step (to be revisited with the
  green + orange palette update).
*/
:root {
  --agef-brand: #2B8E38;
  --agef-brand-hover: #1E4925;
  --agef-brand-soft: #eef7ef;
  --agef-accent: #ffc418;
  --agef-accent-hover: #e6af00;
  --agef-ink: #1f2937;
}

body.agef-wizard { font-family: "Manrope", Arial, sans-serif; }

.agef-brand { background-color: var(--agef-brand); }
.agef-brand-hover:hover { background-color: var(--agef-brand-hover); }
.agef-text { color: var(--agef-brand); }
.agef-ink { background-color: var(--agef-ink); }
.agef-ink:hover { background-color: #111827; }
.agef-accent { background-color: var(--agef-accent); color: #222; }

/* Header */
.agef-w-header { background: var(--agef-brand); box-shadow: 0 2px 10px rgba(0, 0, 0, .12); }
.agef-w-header .logo { height: 44px; background: #fff; border-radius: 6px; padding: 3px 6px; }
.agef-w-header a.nav { color: #fff; opacity: .95; }
.agef-w-header a.nav:hover { opacity: 1; text-decoration: underline; }
.agef-w-header a.cta { background: #fff; color: var(--agef-brand); }
.agef-w-header a.cta:hover { background: #f3f4f6; }

/* 5-step progress */
.agef-steps { display: flex; justify-content: center; align-items: flex-start; gap: 4px; max-width: 56rem; margin: 0 auto 2rem; }
.agef-step { display: flex; flex-direction: column; align-items: center; min-width: 56px; text-decoration: none; }
.agef-step .circle {
  width: 40px; height: 40px; border-radius: 9999px; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; box-shadow: 0 4px 10px rgba(0, 0, 0, .12); transition: transform .2s;
  background: #d1d5db; color: #4b5563;
}
.agef-step .label { margin-top: 8px; font-size: 12px; font-weight: 600; color: #6b7280; text-align: center; }
.agef-step.done .circle { background: var(--agef-brand); color: #fff; }
.agef-step.done .label, .agef-step.active .label { color: var(--agef-brand-hover); }
a.agef-step.done:hover .circle { transform: scale(1.1); }
.agef-step.active .circle { background: var(--agef-accent); color: #222; transform: scale(1.18); animation: agefPulse 1.4s ease-in-out infinite; }
.agef-step.todo .circle { cursor: not-allowed; }
.agef-connector { flex: 0 1 64px; height: 4px; border-radius: 4px; background: #d1d5db; margin-top: 18px; }
.agef-connector.done { background: var(--agef-brand); }
@keyframes agefPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 196, 24, .55); } 50% { box-shadow: 0 0 0 8px rgba(255, 196, 24, 0); } }
@media (max-width: 640px) {
  .agef-step { min-width: 44px; }
  .agef-step .circle { width: 32px; height: 32px; font-size: 12px; }
  .agef-step .label { font-size: 10px; }
  .agef-connector { flex-basis: 18px; margin-top: 14px; height: 2px; }
}

/* Page loader */
.agef-loading-screen { position: fixed; inset: 0; background: rgba(255, 255, 255, .95); display: flex; justify-content: center; align-items: center; z-index: 9999; transition: opacity .4s ease; }
.agef-loader { width: 72px; height: 72px; border: 5px solid #fde3d4; border-top-color: #ED6825; border-radius: 50%; animation: agefspin 1s linear infinite; }

/* Selection states */
.type-card { border: 2px solid #e5e7eb; transition: all .2s ease; }
.type-card:hover { border-color: var(--agef-brand); transform: translateY(-3px); }
.type-card.selected { border-color: var(--agef-brand); background: var(--agef-brand-soft); }
.type-card.selected i { color: var(--agef-brand); }

.agef-input { width: 100%; border: 1px solid #d1d5db; border-radius: 8px; padding: 10px 14px; background: #fff; }
.agef-input:focus { outline: none; border-color: var(--agef-brand); box-shadow: 0 0 0 3px rgba(43, 142, 56, .18); }

/* Payment */
.platform-card.trezor { max-width: 420px; margin: 0 auto; border: 2px solid #e5e7eb; border-radius: 16px; padding: 30px 24px; text-align: center; cursor: pointer; transition: all .2s ease; background: #fff; }
.platform-card.trezor:hover { border-color: var(--agef-brand); background: var(--agef-brand-soft); transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0, 0, 0, .10); }
.agef-modal .m-head { background: var(--agef-brand); }
.agef-timer { background: #ffc418; z-index: 3000; }
@keyframes agefspin { to { transform: rotate(360deg); } }

/* Payment method cards (modal) — compact logo tiles */
.pm-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.pm-card { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border: 2px solid #e5e7eb; border-radius: 12px; background: #fff; cursor: pointer; transition: all .15s ease; font-size: 12px; font-weight: 700; color: #374151; }
.pm-card img { width: 40px; height: 40px; object-fit: contain; border-radius: 8px; }
.pm-card i { font-size: 28px; color: var(--agef-brand); height: 40px; display: flex; align-items: center; }
.pm-card:hover { border-color: var(--agef-brand); transform: translateY(-2px); }
.pm-card.selected { border-color: var(--agef-brand); background: var(--agef-brand-soft); box-shadow: 0 0 0 3px rgba(43, 142, 56, .15); }
@media (max-width: 420px) { .pm-grid { grid-template-columns: repeat(2, 1fr); } }

.pm-chosen-logo img { width: 34px; height: 34px; object-fit: contain; border-radius: 8px; }
.pm-chosen-logo i { font-size: 24px; color: var(--agef-brand); }

/* Type scale — template sizes (titles 24/20/18px), descriptions one notch smaller because
   Manrope renders wider than the template's system font. */
.agef-wizard main h1, .agef-wizard main h2.text-2xl { font-size: 24px; }
.agef-wizard main p { font-size: 14px; line-height: 1.55; }
.agef-wizard main h3.text-xl { font-size: 18px; }
.agef-wizard main h4.text-lg, .agef-wizard main h3.text-lg { font-size: 16px; }
.agef-wizard main li { font-size: 14px; }
.agef-wizard main label { font-size: 14px; }
.agef-wizard .agef-input { font-size: 15px; padding: 9px 12px; }
.agef-wizard #recapPage .flex.justify-between span { font-size: 14px; }
.agef-wizard #recapPage .text-lg { font-size: 16px; }
@media (max-width: 640px) {
  .agef-wizard main h1, .agef-wizard main h2.text-2xl { font-size: 20px; }
  .agef-wizard main h2.text-3xl { font-size: 22px; }
}

/* ---- AGEF orange — secondary accent (highlights only; green stays the primary action colour) ---- */
:root { --agef-orange: #ED6825; --agef-orange-dark: #C9531A; --agef-orange-soft: rgba(237, 104, 37, .10); }
.agef-step.active .circle { background: var(--agef-orange); color: #fff; animation-name: agefPulseOrange; }
.agef-step.active .label { color: var(--agef-orange-dark); }
@keyframes agefPulseOrange { 0%, 100% { box-shadow: 0 0 0 0 rgba(237, 104, 37, .5); } 50% { box-shadow: 0 0 0 8px rgba(237, 104, 37, 0); } }
.agef-orange { color: var(--agef-orange) !important; }
.agef-timer { background: var(--agef-orange) !important; color: #fff !important; }
.agef-timer .text-red-600 { color: #fff !important; }
.agef-zone { background: var(--agef-orange-soft); color: var(--agef-orange-dark); }

/* Step-1 cards: compact left labels so the card stays clean */
.op-row { padding: 3px 0; }
.op-row .op-k { color: #6b7280; font-size: 13px; }
.op-row .op-v { font-size: 14px; font-weight: 600; }

/* Minimal footer on flow pages */
.agef-w-footer { margin-top: 56px; padding: 18px 16px; text-align: center; border-top: 1px solid #e5e7eb; background: #fff; }
.agef-w-footer p { margin: 0; font-size: 13px; color: #6b7280; }
