/* Quietools — feuille de style commune
   Palette partagée avec la barre latérale du module, pour une marque cohérente. */
:root {
  --ink: #1D2633;
  --muted: #5B6676;
  --line: #D7DDE5;
  --mist: #F5F7FA;
  --action: #2B4C7E;
  --action-dark: #22406B;
  --action-ink: #FFFFFF;
  --ok-wash: #E4F1EA;
  --warn: #A15C07;
  --radius: 6px;
  --measure: 66ch;
}

@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2");
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: #FFFFFF;
}

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

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.prose { max-width: var(--measure); }

/* En-tête */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand svg { width: 34px; height: 20px; flex: none; }
.site-header { flex-wrap: wrap; }
.site-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.95rem; }
.site-nav a { white-space: nowrap; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover { color: var(--ink); }

/* Titres */
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.015em; margin: 0; }
h1 { font-size: clamp(2.3rem, 5vw, 3.25rem); }
h2 { font-size: 1.65rem; margin-bottom: 14px; }
h3 { font-size: 1.15rem; margin-bottom: 6px; }
p { margin: 0 0 14px; }

.lead { font-size: 1.3rem; line-height: 1.45; margin: 14px 0 18px; max-width: 34ch; }

/* Sections */
.band { padding: 56px 0; border-top: 1px solid var(--line); }
.band.first { border-top: 0; padding-top: 24px; }

/* Boutons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.btn {
  display: inline-block;
  padding: 11px 18px;
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--action);
}
.btn-primary { background: var(--action); color: var(--action-ink); }
.btn-primary:hover { background: var(--action-dark); }
.btn-secondary { background: #FFFFFF; color: var(--action); }

/* Héros du module : texte + démonstration */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 48px;
  align-items: center;
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 32px; }
}

/* Démonstration : le tableur et le formulaire reliés */
.demo { margin: 0; }
.demo-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1fr);
  align-items: center;
  padding: 22px;
  background: var(--mist);
  border-radius: 10px;
}
.demo-sheet, .demo-form {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
  min-height: 232px;
}
.sheet-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 68px;
  border-bottom: 1px solid var(--line);
  transition: background-color .4s ease, opacity .4s ease;
}
.sheet-row span { padding: 7px 8px; }
.sheet-row .rn { color: var(--muted); background: var(--mist); text-align: center; border-right: 1px solid var(--line); }
.sheet-row .num { text-align: right; border-left: 1px solid var(--line); }
.sheet-row.head span { color: var(--muted); font-weight: 700; }
.sheet-row.is-new { background: var(--ok-wash); }
.sheet-row.is-full { opacity: .5; }
.sheet-row.is-full .num { color: var(--warn); font-weight: 700; }

.demo-link { height: 2px; background: var(--muted); position: relative; margin: 0 4px; }
.demo-link::after {
  content: "";
  position: absolute;
  right: -2px;
  top: -4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--muted);
}

.demo-form { padding: 14px 14px 10px; }
.form-q { font-weight: 700; margin: 0 0 10px; }
.form-opts { list-style: none; margin: 0; padding: 0; }
.form-opts li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 4px;
  border-radius: 4px;
  transition: background-color .4s ease, opacity .4s ease, transform .4s ease;
}
.form-opts .dot {
  width: 15px; height: 15px; border-radius: 50%;
  border: 2px solid var(--muted); flex: none;
}
.form-opts li.is-new { background: var(--ok-wash); }
.form-opts li.is-leaving { opacity: 0; transform: translateX(8px); }

.demo-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin-top: 12px; }
.demo figcaption { color: var(--muted); font-size: 0.95rem; max-width: 46ch; }
.demo-replay {
  font: inherit;
  font-size: 0.95rem;
  background: none;
  border: 0;
  padding: 0;
  color: var(--action);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

@media (max-width: 520px) {
  .demo-stage { grid-template-columns: 1fr; padding: 14px; }
  .demo-link { width: 2px; height: 26px; margin: 4px auto; }
  .demo-link::after { right: -4px; top: auto; bottom: -2px; }
  .demo-sheet, .demo-form { min-height: 0; }
}

/* Étapes (une vraie séquence) */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; max-width: var(--measure); }
.steps li { counter-increment: step; display: grid; grid-template-columns: 36px 1fr; gap: 14px; }
.steps li::before {
  content: counter(step);
  width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid var(--ink);
  display: grid; place-items: center;
  font-weight: 700; font-size: 0.95rem;
}

/* Liste simple */
.plain { padding-left: 1.2em; margin: 0 0 14px; max-width: var(--measure); }
.plain li { margin-bottom: 8px; }

/* Permissions */
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; max-width: 860px; font-size: 0.98rem; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 700; }
td:first-child { width: 46%; font-weight: 700; }
@media (max-width: 600px) {
  table, thead, tbody, tr, th, td { display: block; }
  thead { display: none; }
  tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  td { border: 0; padding: 0 0 4px; }
  td:first-child { width: auto; }
}

/* Tarifs : gratuit / version complète */
.plans { display: grid; grid-template-columns: 1fr 1fr; max-width: 860px; border: 1px solid var(--line); border-radius: 10px; }
.plan { padding: 24px; }
.plan + .plan { border-left: 1px solid var(--line); }
.plan h3 { font-size: 1.3rem; }
.plan .price { color: var(--muted); margin-bottom: 14px; }
.plan ul { padding-left: 1.2em; margin: 0 0 16px; }
.plan li { margin-bottom: 6px; }
.plan .offers { list-style: none; padding: 0; margin: 0 0 18px; }
.offers li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.offers li span:last-child { font-weight: 700; white-space: nowrap; }
.fine { color: var(--muted); font-size: 0.92rem; }
@media (max-width: 720px) {
  .plans { grid-template-columns: 1fr; }
  .plan + .plan { border-left: 0; border-top: 1px solid var(--line); }
}

/* Questions fréquentes */
.faq { max-width: var(--measure); }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq details p { margin: 10px 0 0; }

/* Pages de texte (confidentialité, conditions…) */
.doc { padding: 24px 0 64px; }
.doc h1 { font-size: clamp(2rem, 4vw, 2.6rem); margin-bottom: 8px; }
.doc .updated { color: var(--muted); margin-bottom: 32px; }
.doc h2 { font-size: 1.3rem; margin: 34px 0 10px; }
.doc .prose ul, .doc .prose ol { padding-left: 1.2em; }
.doc .prose li { margin-bottom: 6px; }
.placeholder { background: #FFF4DC; padding: 0 4px; border-radius: 3px; }

/* Accueil de la marque */
.tool { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end; max-width: 860px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.tool h3 { font-size: 1.35rem; }
.tool p { margin: 6px 0 0; color: var(--muted); max-width: 58ch; }
@media (max-width: 640px) { .tool { grid-template-columns: 1fr; } }

/* Pied de page */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 0.92rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 12px; }
.site-footer a { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
