/* Wherely — site vitrine.
   Palette tirée de l'icône : orange chaud + bleu-canard profond,
   sur un blanc cassé chaud. Style aéré, betterdisplay-like : peu
   d'éléments, beaucoup d'air, l'icône en héros. */

:root {
  --bg:        #fbf8f3;
  --surface:   #ffffff;
  --ink:       #21272b;
  --ink-soft:  #5d666d;
  --teal:      #1c5a72;
  --accent:    #ef8019;
  --accent-deep: #d56b08;
  --border:    #ece5da;
  --radius:    18px;
  --maxw:      720px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* ---- Nav ---------------------------------------------------------- */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1040px;
  margin: 0 auto;
  padding: 22px 24px;
}

.nav-logo {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--teal);
}

.nav-links a {
  margin-left: 22px;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
}

.nav-links a:hover { color: var(--accent-deep); }

/* ---- Hero --------------------------------------------------------- */

.hero {
  text-align: center;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 56px 24px 72px;
}

.hero-icon {
  width: 184px;
  height: 184px;
  border-radius: 40px;
  box-shadow: 0 24px 60px -20px rgba(239, 128, 25, 0.5);
  animation: heroIconIn 1s cubic-bezier(0.22, 0.68, 0.2, 1) both;
}

@keyframes heroIconIn {
  from { opacity: 0; transform: translateY(10px) scale(0.78); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

.kicker {
  margin-top: 34px;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-title {
  margin-top: 14px;
  font-size: 2.6rem;
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--teal);
}

.hero-sub {
  margin: 20px auto 0;
  max-width: 30em;
  font-size: 1.16rem;
  color: var(--ink-soft);
}

/* ---- CTA ---------------------------------------------------------- */

.cta {
  display: inline-block;
  margin-top: 32px;
  padding: 15px 30px;
  background: var(--accent);
  color: #fff;
  font-size: 1.02rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 10px 26px -10px rgba(239, 128, 25, 0.75);
  transition: transform 0.15s ease, background 0.15s ease;
}

.cta:hover { background: var(--accent-deep); transform: translateY(-1px); }

/* ---- 3-step band -------------------------------------------------- */

.steps {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px 28px;
}

.step {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--teal);
}

.step-emoji { font-size: 1.15rem; }

/* ---- Features ----------------------------------------------------- */

.features {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 36px 24px;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 30px;
  margin-bottom: 18px;
}

.feature h2 {
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  color: var(--teal);
}

.feature p {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* ---- Closing ------------------------------------------------------ */

.closing {
  text-align: center;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px 24px 84px;
}

.closing h2 {
  font-size: 1.9rem;
  letter-spacing: -0.025em;
  font-weight: 800;
  color: var(--teal);
}

/* ---- Legal pages -------------------------------------------------- */

.legal {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 32px 24px 80px;
}

.legal h1 {
  font-size: 2rem;
  letter-spacing: -0.025em;
  color: var(--teal);
  margin-bottom: 6px;
}

.legal .updated {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin-bottom: 26px;
}

.legal h2 {
  font-size: 1.2rem;
  color: var(--teal);
  margin: 30px 0 8px;
}

.legal h3 {
  font-size: 1.02rem;
  margin: 20px 0 6px;
}

.legal p, .legal li {
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.legal ul { margin: 8px 0 8px 22px; }
.legal li { margin-bottom: 5px; }

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 0.96rem;
}

.legal th, .legal td {
  border: 1px solid var(--border);
  padding: 8px 11px;
  text-align: left;
  color: var(--ink-soft);
}

.legal th { background: var(--surface); color: var(--ink); }

.legal .todo {
  background: #fff3e2;
  border: 1px dashed var(--accent);
  border-radius: 8px;
  padding: 2px 7px;
  font-size: 0.9rem;
  color: var(--accent-deep);
}

/* ---- Footer ------------------------------------------------------- */

.footer {
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 34px 24px 46px;
}

.footer-tagline { font-weight: 600; color: var(--teal); }

.footer-links {
  margin: 14px 0 10px;
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.92rem;
  color: var(--ink-soft);
  text-decoration: none;
}

.footer-links a:hover { color: var(--accent-deep); }

.footer-copy { font-size: 0.86rem; color: var(--ink-soft); }

/* ---- Responsive --------------------------------------------------- */

@media (max-width: 560px) {
  .hero { padding-top: 36px; }
  .hero-icon { width: 148px; height: 148px; border-radius: 32px; }
  .hero-title { font-size: 2rem; }
  .hero-sub { font-size: 1.06rem; }
  .nav-links a { margin-left: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-icon { animation: none; }
  .cta { transition: none; }
}

/* ---- Admin -------------------------------------------------------- */

.admin-body {
  min-height: 100vh;
  padding: 32px 20px;
}

.admin-title {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--teal);
}

/* Login card */
.admin-card {
  max-width: 360px;
  margin: 8vh auto 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 30px;
  text-align: center;
}

.admin-icon { border-radius: 15px; margin-bottom: 12px; }

.admin-card form { margin-top: 18px; text-align: left; }

/* Content editor */
.admin-shell {
  max-width: 680px;
  margin: 0 auto;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.admin-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.admin-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  cursor: pointer;
}

.admin-link:hover { color: var(--accent-deep); }
.admin-logout { color: #b3402c; }

.admin-field { margin-bottom: 18px; }

.admin-label {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 6px;
}

.admin-input,
.admin-textarea {
  width: 100%;
  font: inherit;
  font-size: 0.98rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 10px 13px;
}

.admin-textarea { resize: vertical; line-height: 1.5; }

.admin-input:focus,
.admin-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(239, 128, 25, 0.16);
}

.admin-submit { margin-top: 8px; border: none; cursor: pointer; }

.admin-error {
  background: #fdecea;
  color: #b3402c;
  border-radius: 9px;
  padding: 9px 12px;
  font-size: 0.92rem;
  margin-top: 14px;
}

.admin-saved {
  background: #e8f5ec;
  color: #1f7a3d;
  border-radius: 9px;
  padding: 9px 12px;
  font-size: 0.94rem;
  margin-bottom: 18px;
}

.admin-hint {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin-bottom: 18px;
}

/* Admin tabs */
.admin-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.admin-tab {
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
}

.admin-tab:hover { color: var(--accent-deep); }

.admin-tab.is-active {
  background: var(--teal);
  color: #fff;
}

/* Stat cards */
.stat-cards {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.stat-card {
  flex: 1 1 170px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.stat-card-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
}

.stat-card-cost {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--teal);
}

.stat-card-sub { font-size: 0.86rem; color: var(--ink-soft); }

.stat-section {
  font-size: 1.1rem;
  color: var(--teal);
  margin: 28px 0 10px;
}

/* Stat tables */
.stat-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.stat-table th,
.stat-table td {
  padding: 9px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.stat-table th {
  background: var(--bg);
  color: var(--teal);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.stat-table td { color: var(--ink-soft); }
.stat-table tr:last-child td { border-bottom: none; }
.stat-table td:not(:first-child),
.stat-table th:not(:first-child) { text-align: right; }

/* Pricing rows */
.pricing-row {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.pricing-model {
  flex: 1 1 200px;
  font-weight: 600;
  color: var(--teal);
}

.pricing-field { width: 130px; }
.pricing-field .admin-input { width: 100%; }
