/* Tanty — site vitrine tanty.fr
   Palette reprise de la charte mobile (apps/mobile/lib/core/theme/colors.dart) */

:root {
  --primary: #1d9e75;
  --primary-dark: #0f6e56;
  --primary-light: #e1f5ee;
  --cream: #fae9be;
  --ink: #1c2520;
  --muted: #5a6862;
  --bg: #fffdf7;
  --card: #ffffff;
  --border: #e6e2d6;
  --coral: #d85a30;
  --blue: #378add;
  --max: 60rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary: #2bb98c;
    --primary-dark: #1d9e75;
    --primary-light: #123c30;
    --cream: #2a2417;
    --ink: #ecf2ee;
    --muted: #9fb0a8;
    --bg: #121715;
    --card: #1a211d;
    --border: #2b342f;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---- Header ---- */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.6rem;
}

.site-nav a {
  margin-left: 1.1rem;
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--muted);
}

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

/* ---- Hero ---- */
.hero {
  background: linear-gradient(180deg, var(--cream) 0%, var(--bg) 100%);
  text-align: center;
  padding: 4.5rem 0 3.5rem;
}

.hero img.logo {
  width: 6.5rem;
  height: 6.5rem;
  border-radius: 1.5rem;
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.12);
}

.hero h1 {
  font-size: clamp(1.9rem, 5vw, 2.9rem);
  line-height: 1.2;
  margin: 1.4rem auto 0.8rem;
  max-width: 38rem;
  font-weight: 650;
}

.hero h1 em {
  font-style: normal;
  color: var(--primary-dark);
}

.hero p.tagline {
  max-width: 36rem;
  margin: 0 auto 2rem;
  font-size: 1.15rem;
  color: var(--muted);
}

.cta-row {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  min-height: 44px;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: var(--primary-dark); color: #fff; }

.btn-ghost {
  border: 1.5px solid var(--primary);
  color: var(--primary-dark);
}

.stores-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---- Features ---- */
.features {
  padding: 3.5rem 0;
}

.features h2, .section h2 {
  text-align: center;
  font-size: 1.7rem;
  margin: 0 0 2rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.2rem;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
}

.feature-card .emoji { font-size: 1.8rem; }

.feature-card h3 {
  margin: 0.6rem 0 0.4rem;
  font-size: 1.1rem;
  color: var(--primary-dark);
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---- Generic section ---- */
.section { padding: 2.5rem 0; }

.section.alt { background: var(--primary-light); }

.section p.center {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto;
  color: var(--muted);
}

/* ---- Legal pages ---- */
.legal {
  max-width: 46rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

.legal h1 { font-size: 1.9rem; line-height: 1.25; }

.legal h2 {
  font-size: 1.25rem;
  margin-top: 2.2rem;
  color: var(--primary-dark);
}

.legal h3 { font-size: 1.05rem; margin-top: 1.5rem; }

.legal .updated {
  color: var(--muted);
  font-size: 0.9rem;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin: 1rem 0;
}

.legal th, .legal td {
  border: 1px solid var(--border);
  padding: 0.5rem 0.6rem;
  text-align: left;
  vertical-align: top;
}

.legal th { background: var(--primary-light); }

.legal .table-wrap { overflow-x: auto; }

.legal ul { padding-left: 1.3rem; }

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0 2.5rem;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

.site-footer nav a {
  color: var(--muted);
  margin-right: 1rem;
}

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

@media (max-width: 40rem) {
  .site-nav a { margin-left: 0.7rem; font-size: 0.88rem; }
  .site-footer .container { flex-direction: column; align-items: flex-start; }
}
