/* Torchons & Serviettes — site statique public.
   Zéro requête externe (pas de Google Fonts/CDN/analytics) : cohérent avec
   la politique de confidentialité. Polices système, CSS unique.
   Thème clair + sombre (prefers-color-scheme), aucune JS requise. */

:root {
  --bg: #fbf7f0;
  --surface: #ffffff;
  --surface-2: #f4eee3;
  --ink: #1f2a2e;
  --muted: #5b6b70;
  --accent: #0f766e;       /* teal "linge propre" */
  --accent-ink: #ffffff;
  --line: #e7e0d4;
  --callout-bg: #f0f6f5;
  --radius: 14px;
  --maxw: 46rem;
  --shadow: 0 1px 2px rgba(31, 42, 46, .04), 0 8px 24px rgba(31, 42, 46, .05);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #11181b;
    --surface: #182125;
    --surface-2: #1f2a2e;
    --ink: #e9efef;
    --muted: #9fb0b3;
    --accent: #2dd4bf;       /* teal plus lumineux sur fond sombre */
    --accent-ink: #08221f;
    --line: #2a373b;
    --callout-bg: #16302d;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-underline-offset: 2px; }
a:hover { text-decoration: underline; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

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

header.site {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(1.4);
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
  flex-wrap: wrap;
}
.brand {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.brand:hover { text-decoration: none; }
.brand .dot {
  width: .7rem; height: .7rem; border-radius: 50%;
  background: var(--accent); display: inline-block;
}
nav.site a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 1.1rem;
  font-size: .95rem;
}
nav.site a:hover { color: var(--accent); }

/* Sélecteur de langue (FR ↔ EN) — séparé du reste du nav par une
   marge plus large, plus petit, état actif en gras. */
.lang-switch {
  margin-left: 1.5rem;
  font-size: .85rem;
  color: var(--muted);
}
.lang-switch a {
  margin-left: 0;
  font-size: .85rem;
}
.lang-switch strong { color: var(--ink); }

main { padding: 2.5rem 0 3rem; }

h1 { font-size: 2rem; line-height: 1.22; margin: 0 0 .4rem; letter-spacing: -.01em; }
h2 { font-size: 1.3rem; margin: 2.25rem 0 .5rem; letter-spacing: -.005em; }
h3 { font-size: 1.02rem; margin: 1.4rem 0 .3rem; }
.lead { color: var(--muted); font-size: 1.08rem; margin: 0 0 1.5rem; }
p, li { color: var(--ink); }
small, .meta { color: var(--muted); font-size: .9rem; }

.hero {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.25rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
}
.hero h1 { font-size: 2.15rem; }

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  padding: .7rem 1.15rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: .98rem;
  border: 1px solid transparent;
  transition: filter .15s ease, transform .15s ease;
}
.btn:hover { filter: brightness(1.07); text-decoration: none; transform: translateY(-1px); }
.btn.ghost {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn.disabled {
  background: var(--surface-2);
  color: var(--muted);
  border-color: var(--line);
  cursor: default;
  font-weight: 600;
}
.btn.disabled:hover { filter: none; transform: none; }
.actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.25rem; align-items: center; }
.hint { color: var(--muted); font-size: .88rem; margin: .6rem 0 0; }

/* Grille de fonctionnalités (accueil) — icônes SVG inline, zéro requête. */
.features {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: .9rem;
  grid-template-columns: repeat(2, 1fr);
}
.features li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
  display: flex;
  gap: .8rem;
  align-items: flex-start;
}
.features .ico {
  flex: none;
  width: 1.5rem; height: 1.5rem;
  color: var(--accent);
  margin-top: .1rem;
}
.features b { display: block; margin-bottom: .15rem; }
.features span { color: var(--muted); font-size: .95rem; line-height: 1.5; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: .95rem;
}
th, td {
  text-align: left;
  padding: .55rem .6rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th { color: var(--muted); font-weight: 600; }

.callout {
  border-left: 3px solid var(--accent);
  background: var(--callout-bg);
  padding: .8rem 1rem;
  border-radius: 8px;
  margin: 1.25rem 0;
  font-size: .95rem;
}

footer.site {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 1.5rem 0;
  font-size: .9rem;
  color: var(--muted);
}
footer.site .wrap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
footer.site a { color: var(--muted); text-decoration: none; }
footer.site a:hover { color: var(--accent); }

@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  h1, .hero h1 { font-size: 1.65rem; }
  .hero { padding: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .btn:hover { transition: none; transform: none; }
}
