/* Site Althea — charte de l'app (src/ui/theme/tokens.ts) et du logo (DEC-029). */

:root {
  --cream: #fbf7f1;
  --sand: #f4eadc;
  --sand-line: #e6d6bf;
  --card: #ffffff;
  --ink: #0f5e5c;
  --text: #14202b;
  --muted: #5b6875;
  --primary: #0f7c7a;
  --primary-pressed: #0b6361;
  --primary-soft: #ddf1f0;
  --on-primary: #ffffff;
  --lagoon: #4cbec1;
  --footer: #0d3d3c;
  --footer-text: #d9eeec;
  --line: rgba(15, 94, 92, 0.12);
  --shadow: 0 1px 2px rgba(80, 55, 30, 0.06), 0 12px 32px rgba(80, 55, 30, 0.08);
  --phone-shadow: drop-shadow(0 28px 36px rgba(110, 80, 50, 0.24));
  --radius: 22px;
  --wrap: 1120px;
  --gutter: 20px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --cream: #0e1216;
    --sand: #13181d;
    --sand-line: #2b333d;
    --card: #171c22;
    --ink: #8fdcd8;
    --text: #f1f4f7;
    --muted: #98a3b0;
    --primary: #3fbdb8;
    --primary-pressed: #2fa6a1;
    --primary-soft: #143a39;
    --on-primary: #06201f;
    --footer: #0a0d10;
    --footer-text: #c9d3dc;
    --line: rgba(143, 220, 216, 0.14);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.3);
    --phone-shadow: drop-shadow(0 28px 36px rgba(0, 0, 0, 0.5));
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family:
    -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
    sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--primary);
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-family:
    -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, 'Helvetica Neue',
    Arial, sans-serif;
  letter-spacing: -0.022em;
  line-height: 1.08;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 4.2vw + 1rem, 4.1rem);
  font-weight: 750;
}

h2 {
  font-size: clamp(2rem, 2.6vw + 1rem, 3rem);
  font-weight: 720;
}

h3 {
  font-size: 1.2rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

p {
  margin: 0;
  text-wrap: pretty;
}

:focus-visible {
  outline: 3px solid var(--lagoon);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--card);
  border-radius: 10px;
}

.skip:focus {
  left: 8px;
}

/* ---------- En-tête ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--sand);
  background: color-mix(in srgb, var(--sand) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.top.scrolled {
  border-bottom-color: var(--sand-line);
}

.top .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 72px;
}

.brand img {
  width: auto;
  height: 34px;
}

.nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
}

.nav a {
  color: var(--text);
  font-weight: 550;
  font-size: 0.97rem;
  text-decoration: none;
}

.nav a:hover {
  color: var(--primary);
}

.lang {
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text) 6%, transparent);
  font-size: 0.82rem;
  font-weight: 650;
}

.lang a {
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
}

.lang a[aria-current='true'] {
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 26px;
  border-radius: 16px;
  font-size: 1.05rem;
  font-weight: 650;
  text-decoration: none;
  transition:
    background 0.15s,
    transform 0.15s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
}

.btn-primary:hover {
  background: var(--primary-pressed);
}

.btn-soft {
  background: var(--primary-soft);
  color: var(--primary);
}

.btn-small {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 12px;
  font-size: 0.95rem;
}

.btn svg {
  width: 20px;
  height: 20px;
}

/* ---------- Accueil : héros ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--sand);
  padding: clamp(40px, 6vw, 84px) 0 clamp(56px, 8vw, 112px);
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 650;
  box-shadow: var(--shadow);
}

.eyebrow img {
  width: 22px;
  height: 22px;
}

.lead {
  margin-top: 22px;
  max-width: 34em;
  color: var(--muted);
  font-size: clamp(1.08rem, 0.5vw + 1rem, 1.25rem);
}

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

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.soon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  color: var(--ink);
  font-weight: 650;
}

.soon svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
}

.reassure {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.95rem;
}

.reassure li {
  display: flex;
  align-items: center;
  gap: 7px;
}

.reassure svg {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--primary);
}

.hero-visual {
  position: relative;
  min-height: 560px;
}

.hero-visual .lotus {
  position: absolute;
  inset: 4% -18% auto auto;
  width: 120%;
  max-width: none;
  opacity: 0.09;
  pointer-events: none;
}

.hero-visual .phone {
  position: absolute;
  width: min(300px, 62%);
}

.hero-visual .phone-front {
  right: 6%;
  top: 0;
  z-index: 2;
}

.hero-visual .phone-back {
  left: 0;
  top: 64px;
  width: min(250px, 52%);
  transform: rotate(-6deg);
  opacity: 0.96;
}

.phone {
  filter: var(--phone-shadow);
}

/* ---------- Une journée avec Althea ---------- */

.section {
  padding: clamp(64px, 9vw, 120px) 0;
}

.section-head {
  max-width: 40em;
  margin-bottom: clamp(40px, 6vw, 72px);
}

.section-head p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.12rem;
}

.kicker {
  display: block;
  margin-bottom: 14px;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.day {
  position: relative;
  display: grid;
  gap: clamp(56px, 8vw, 104px);
}

.step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}

.step:nth-child(even) .step-text {
  order: 2;
}

.step-text {
  max-width: 30em;
}

.time {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
}

.time::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--lagoon);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--lagoon) 22%, transparent);
}

.step h3 {
  font-size: clamp(1.6rem, 1.4vw + 1rem, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.step-text p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.1rem;
}

/* L'écran dépasse du cadre : on montre le haut (ou le bas) de l'écran, la page reste courte. */
.step-visual {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  height: clamp(400px, 38vw, 500px);
  padding-top: clamp(32px, 4vw, 48px);
  overflow: hidden;
  border-radius: 32px;
  background: var(--sand);
}

.step-visual.from-bottom {
  align-items: flex-end;
  padding-top: 0;
  padding-bottom: clamp(32px, 4vw, 48px);
}

.step-visual .phone {
  flex: none;
  width: min(300px, 72%);
}

/* ---------- Et tout le reste ---------- */

.more {
  background: var(--sand);
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.tile {
  padding: 24px 22px 26px;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.tile .icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--primary);
}

.tile .icon svg {
  width: 24px;
  height: 24px;
}

.tile p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.98rem;
}

/* ---------- Simple + sécurité ---------- */

.promise {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.promise-card {
  padding: clamp(28px, 4vw, 44px);
  border-radius: 28px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.promise-card h2 {
  font-size: clamp(1.7rem, 1.6vw + 1rem, 2.3rem);
}

.checks {
  display: grid;
  gap: 14px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.checks li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 12px;
  color: var(--muted);
}

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

.checks svg {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  color: var(--primary);
}

/* ---------- Tarifs ---------- */

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
}

.plan {
  display: flex;
  flex-direction: column;
  padding: 30px 28px;
  border-radius: 26px;
  background: var(--card);
  box-shadow: var(--shadow);
  border: 2px solid transparent;
}

.plan.featured {
  border-color: var(--primary);
}

.plan .badge {
  align-self: flex-start;
  margin-bottom: 14px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
}

.plan h3 {
  font-size: 1.35rem;
}

.price {
  margin-top: 14px;
  color: var(--text);
  font-size: 2.5rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1;
}

.price small {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0;
}

.plan p {
  margin-top: 14px;
  color: var(--muted);
}

.plans-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  color: var(--muted);
}

/* ---------- Questions ---------- */

.faq {
  display: grid;
  gap: 12px;
  max-width: 820px;
}

.faq details {
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 16px 22px;
  color: var(--text);
  font-weight: 620;
  font-size: 1.08rem;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '';
  flex: none;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.2s;
}

.faq details[open] summary::after {
  transform: rotate(-135deg) translateY(-3px);
}

.faq details p {
  padding: 0 22px 22px;
  color: var(--muted);
}

/* ---------- Contact ---------- */

.contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(28px, 5vw, 56px);
  border-radius: 32px;
  background: var(--primary);
  color: var(--on-primary);
}

.contact h2 {
  color: var(--on-primary);
  font-size: clamp(1.7rem, 1.8vw + 1rem, 2.4rem);
}

.contact p {
  margin-top: 10px;
  opacity: 0.9;
  font-size: 1.1rem;
}

.contact .btn {
  background: var(--card);
  color: var(--primary);
}

/* ---------- Pied de page ---------- */

.foot {
  margin-top: clamp(64px, 9vw, 120px);
  padding: 56px 0 40px;
  background: var(--footer);
  color: var(--footer-text);
  font-size: 0.95rem;
}

.foot .wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
}

.foot img {
  width: 44px;
  height: auto;
  margin-bottom: 14px;
}

.foot p {
  max-width: 26em;
  opacity: 0.85;
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  justify-content: flex-end;
  gap: 12px 24px;
}

.foot a {
  color: var(--footer-text);
  text-decoration: none;
  font-weight: 550;
}

.foot a:hover {
  text-decoration: underline;
}

.fine {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  opacity: 0.7;
  font-size: 0.86rem;
}

/* ---------- Téléphone ---------- */

@media (max-width: 960px) {
  .nav {
    display: none;
  }

  .lang {
    margin-left: auto;
  }

  .hero .wrap,
  .step,
  .promise {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 0;
    height: clamp(380px, 92vw, 560px);
    max-width: 520px;
    width: 100%;
    margin-inline: auto;
  }

  .step:nth-child(even) .step-text {
    order: 0;
  }

  .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .plans {
    grid-template-columns: 1fr;
    max-width: 520px;
  }

  .foot .wrap {
    grid-template-columns: 1fr;
  }

  .foot nav {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .top .wrap {
    gap: 12px;
    height: 64px;
  }

  .brand img {
    height: 28px;
  }

  .top .btn-small {
    display: none;
  }

  .actions .btn {
    width: 100%;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .tile {
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 4px 16px;
    padding: 20px;
  }

  .tile .icon {
    grid-row: span 2;
    margin: 0;
  }

  .tile p {
    margin: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}

/* ---------- Pages intérieures ---------- */

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.narrow {
  width: min(100% - 2 * var(--gutter), 760px);
}

.page-head {
  background: var(--sand);
  padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 6vw, 72px);
}

.page-head .lead {
  margin-top: 18px;
}

.page-head-center {
  text-align: center;
}

.page-head-center .lead {
  margin-inline: auto;
}

.page-mark {
  width: 72px;
  height: auto;
  margin: 0 auto 24px;
}

.actions-center {
  justify-content: center;
}

.small {
  margin-top: 28px;
  color: var(--muted);
  font-size: 0.95rem;
}

.section-tight {
  padding: clamp(40px, 6vw, 72px) 0 0;
}

.notice {
  display: none;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--ink);
  font-weight: 600;
}

.notice svg,
.in-app-note svg {
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--primary);
}

.from-app .from-app-only {
  display: flex;
}

.in-app-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 24px;
  color: var(--muted);
}

.in-app-note strong {
  color: var(--text);
}

.from-app .in-app-note {
  display: none;
}

.plan-name {
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}

.plan .checks {
  margin: 20px 0 26px;
  gap: 10px;
  font-size: 0.98rem;
}

.plan .checks svg {
  width: 20px;
  height: 20px;
}

.plan-cta {
  margin-top: auto;
}

.table-title {
  margin-bottom: 24px;
  font-size: clamp(1.6rem, 1.4vw + 1rem, 2.1rem);
}

.compare-scroll {
  overflow-x: auto;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.compare {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.98rem;
}

.compare th,
.compare td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.compare tbody tr:last-child th,
.compare tbody tr:last-child td {
  border-bottom: 0;
}

.compare thead th {
  color: var(--ink);
  font-weight: 700;
}

.compare tbody th {
  text-align: left;
  font-weight: 550;
}

.compare td {
  color: var(--muted);
  white-space: nowrap;
}

.compare svg {
  width: 20px;
  height: 20px;
  vertical-align: middle;
}

.compare .yes svg {
  color: var(--primary);
}

.compare .no svg {
  color: var(--sand-line);
}

.prose h2 {
  margin: 36px 0 12px;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin: 22px 0 8px;
  font-size: 1.08rem;
}

.prose p,
.prose li {
  color: var(--muted);
}

.prose p + p,
.prose ul + p,
.prose table + p {
  margin-top: 12px;
}

.prose ul {
  margin: 10px 0 0;
  padding-left: 1.2em;
}

.prose li + li {
  margin-top: 6px;
}

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

.prose table {
  width: 100%;
  margin-top: 14px;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.prose th,
.prose td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.prose th {
  color: var(--ink);
}

.prose td {
  color: var(--muted);
}

.updated {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 560px) {
  .prose thead {
    display: none;
  }

  .prose tr {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }

  .prose td {
    display: block;
    padding: 2px 0;
    border: 0;
  }

  .prose td:first-child {
    color: var(--ink);
    font-weight: 650;
  }
}
