/* Page d'accueil de tabeapp.com. Couleurs de la charte tabé ; police du système (aucun appel extérieur). */
:root {
  color-scheme: light dark;
  --bg: #f6f1e7;
  --text: #15171c;
  --soft: #55585f;
  --card: #ffffff;
  --line: #e2dccf;
  --protein: #2ea0d0;
  --kcal: #ea7f06;
  --kcal-text: #b25e00;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15171c;
    --text: #f6f1e7;
    --soft: #b6b3ab;
    --card: #1f2228;
    --line: #2c2e33;
    --protein: #5ccfe6;
    --kcal: #f5a64c;
    --kcal-text: #f5a64c;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
}
ul, ol { list-style: none; }
a { color: inherit; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--protein); outline-offset: 3px; }

/* Marges latérales seulement : un « padding » complet écraserait les espaces verticaux des sections. */
.wrap { max-width: 68rem; margin-left: auto; margin-right: auto; padding-left: 1.25rem; padding-right: 1.25rem; }
.narrow { max-width: 44rem; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.25rem; padding-bottom: 1.25rem; }
.logo { display: inline-block; flex: none; }
.logo img { display: block; height: 40px; width: auto; }
nav { display: flex; align-items: center; gap: 1.5rem; font-size: .95rem; }
nav a { text-decoration: none; color: var(--soft); }
nav a:hover { color: var(--text); }
nav .lang { border: 1px solid var(--line); border-radius: 999px; padding: .25rem .9rem; }

.hero { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 3rem; padding-top: 2rem; }
h1 { font-size: clamp(2.25rem, 5.4vw, 3.75rem); line-height: 1.08; letter-spacing: -.025em; }
h1 span { display: block; color: var(--kcal); }
.lead { font-size: 1.2rem; color: var(--soft); margin-top: 1.25rem; max-width: 30rem; }
.soon { display: flex; align-items: center; gap: .6rem; margin-top: 1.75rem; font-weight: 600; }
.soon::before { content: ''; width: .65rem; height: .65rem; border-radius: 50%; background: var(--protein); flex: none; }
.button {
  display: inline-block; margin-top: 1.25rem; padding: .8rem 1.5rem; border-radius: 999px;
  background: var(--text); color: var(--bg); text-decoration: none; font-weight: 600;
}

/* Téléphone : toujours le thème clair de l'app. */
.phone {
  justify-self: center; width: 300px; max-width: 100%; padding: 10px; border-radius: 44px; background: #15171c;
  border: 1px solid #3a3d44; box-shadow: 0 30px 60px -25px rgba(21, 23, 28, .45);
}
.screen {
  border-radius: 34px; overflow: hidden; color: #17211d; text-align: center; padding: 10px 14px 16px; line-height: 1.3;
  background: url(/images/appbg.jpg) center / cover; font-size: 13px;
}
.notch { width: 72px; height: 18px; margin: 0 auto 8px; border-radius: 999px; background: #15171c; }
.day { font-weight: 600; margin-bottom: 8px; }
.toggle { display: inline-flex; padding: 2px; border-radius: 999px; background: rgba(0, 0, 0, .06); font-size: 9px; text-transform: uppercase; letter-spacing: .1em; }
.toggle span { padding: 3px 9px; border-radius: 999px; color: #5c6663; }
.toggle .on { background: #fff; color: #17211d; }
.ring { position: relative; width: 160px; height: 160px; margin: 10px auto 0; display: grid; place-items: center; }
.ring svg { position: absolute; inset: 0; }
.ring div { position: relative; display: flex; flex-direction: column; }
.ring strong { font-size: 38px; line-height: 1; letter-spacing: -.02em; }
.ring span { font-size: 11px; font-weight: 600; color: #b25e00; margin-top: 4px; }
.protein { width: 170px; margin: 10px auto 0; font-size: 11px; }
.protein p { display: flex; justify-content: space-between; margin-bottom: 4px; color: #4d5754; }
.protein b { color: #14739b; }
.bar { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .55); overflow: hidden; }
.bar i { display: block; width: 67%; height: 100%; border-radius: 999px; background: #2ea0d0; }
.inputs { display: flex; align-items: center; justify-content: center; gap: 22px; margin: 14px 0; }
.inputs span { display: grid; place-items: center; border-radius: 50%; }
.inputs .mic { width: 64px; height: 64px; background: #42a97a; color: #fff; box-shadow: 0 8px 16px -6px rgba(0, 0, 0, .35); }
.inputs .small { width: 32px; height: 32px; background: #fff; color: #5c6663; }
.meals { background: #fff; border-radius: 14px; text-align: left; font-size: 11px; }
.meals li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 12px; }
.meals li + li { border-top: 1px solid #ece8df; }
.values { display: flex; flex-direction: column; text-align: right; flex: none; }
.values small { color: #6b7370; font-size: 10px; }

section { padding-top: 5rem; scroll-margin-top: 0; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.25rem); line-height: 1.2; letter-spacing: -.015em; text-align: center; margin-bottom: 2rem; }
h3 { font-size: 1.1rem; line-height: 1.35; margin-bottom: .4rem; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.card, .plan { background: var(--card); border: 1px solid var(--line); border-radius: 1.25rem; padding: 1.5rem; }
.card p { color: var(--soft); }
.icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; margin-bottom: .9rem; color: var(--kcal); background: color-mix(in srgb, var(--kcal) 14%, transparent); }
.steps .icon { color: var(--protein); background: color-mix(in srgb, var(--protein) 14%, transparent); }

.intro { text-align: center; color: var(--soft); margin: -1.25rem 0 2rem; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; max-width: 46rem; margin: 0 auto; }
.plan.featured { border: 2px solid var(--kcal); }
.price { color: var(--soft); }
.price strong { font-size: 2.25rem; color: var(--text); }
.alt { color: var(--kcal-text); font-weight: 600; font-size: .95rem; }
.plan ul { margin-top: 1rem; }
.plan li, .privacy li { display: flex; align-items: flex-start; gap: .6rem; padding: .25rem 0; }
.plan li svg, .privacy li svg { flex: none; margin-top: .22rem; color: var(--protein); }
.fineprint { max-width: 36rem; margin: 1.25rem auto 0; text-align: center; font-size: .85rem; color: var(--soft); }

.privacy { text-align: center; }
.privacy ul { display: inline-block; text-align: left; margin-bottom: 1rem; }
.privacy > a { display: block; font-weight: 600; }

details { background: var(--card); border: 1px solid var(--line); border-radius: 1rem; padding: 1rem 1.25rem; margin-bottom: .75rem; }
summary { cursor: pointer; font-weight: 600; }
details p { color: var(--soft); margin-top: .6rem; }

footer { margin-top: 5rem; padding-top: 2rem; padding-bottom: 3rem; border-top: 1px solid var(--line); text-align: center; font-size: .9rem; color: var(--soft); }
footer p { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.5rem; margin-top: 1rem; }
footer .medical { font-size: .8rem; }

@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; text-align: center; gap: 2.5rem; }
  .lead { margin-left: auto; margin-right: auto; }
  .soon { justify-content: center; }
  .grid, .plans { grid-template-columns: 1fr; }
  .section-link { display: none; }
  section { padding-top: 3.5rem; }
}
