:root {
  --ink: #1e293b;      /* texte courant : slate-800, comme le site */
  --ink-strong: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --ground: #f8fafc;
  --mint: #f0fdfa;
  --teal: #0f766e;
  --teal-light: #14b8a6;
  --amber: #f59e0b;
  --danger: #b91c1c;
  --radius: 12px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Atkinson Hyperlegible Next', Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--ground);
  line-height: 1.6;
}

a { color: var(--teal); }
a:hover { color: #115e59; }

h1, h2, h3 { font-weight: 700; line-height: 1.25; color: var(--ink-strong); }

.cs-header {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #f1f5f9;
  position: sticky;
  top: 0;
  z-index: 100;
}

.cs-header-inner, .cs-main, .cs-footer-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
}

.cs-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.cs-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.cs-brand img { width: 40px; height: 40px; }
.cs-brand > span { display: flex; flex-direction: column; line-height: 1.1; }
.cs-brand b { display: block; font-size: 16px; color: var(--ink); }
.cs-brand span span { display: block; font-size: 11.5px; font-weight: 600; color: var(--teal); }

.cs-main { padding-top: 32px; padding-bottom: 48px; }

.cs-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  max-width: 520px;
  margin: 0 auto;
}

.cs-card.wide { max-width: none; }

label { display: block; font-weight: 700; margin: 16px 0 6px; }

input[type=email], input[type=text], input[type=password], textarea, select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font: inherit;
  background: #fff;
}

input:focus-visible, button:focus-visible, a:focus-visible {
  outline: 3px solid var(--teal-light);
  outline-offset: 2px;
}

.cs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  margin-top: 16px;
  border: 0;
  border-radius: 10px;
  background: var(--amber);
  color: var(--ink-strong);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.cs-btn.secondary {
  background: #fff;
  color: var(--teal);
  border: 2px solid var(--teal);
}

.cs-link-btn {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--teal);
  text-decoration: underline;
  cursor: pointer;
}

.cs-notice {
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 16px;
  background: var(--mint);
  border: 1px solid #99f6e4;
}

.cs-notice.error { background: #fef2f2; border-color: #fca5a5; color: var(--danger); }

.cs-muted { color: var(--muted); font-size: 0.95rem; }

.cs-footer {
  border-top: 1px solid var(--line);
  background: #fff;
  font-size: 0.875rem;
  color: var(--muted);
}

.cs-footer-inner { padding-top: 20px; padding-bottom: 20px; }

textarea { resize: vertical; font: inherit; }
.cs-nav { margin-left: auto; margin-right: 16px; }
.cs-nav a { font-weight: 600; text-decoration: none; color: var(--muted); }
.cs-nav a:hover { color: var(--teal); }
.cs-article p { margin: 0 0 12px; line-height: 1.6; }
.cs-article ul, .cs-article ol { margin: 0 0 12px; padding-left: 22px; }

/* Notes de module : 5 étoiles sans script (boutons radio), et questions-réponses. */
.cs-stars { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; border: 0; padding: 0; margin: 4px 0 0; }
.cs-stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cs-stars label { display: inline-block; margin: 0; font-size: 30px; line-height: 1; min-width: 40px; min-height: 40px; text-align: center; color: #cbd5e1; cursor: pointer; font-weight: 400; }
.cs-stars input:checked ~ label, .cs-stars label:hover, .cs-stars label:hover ~ label { color: #f59e0b; }
.cs-stars input:focus-visible + label { outline: 3px solid #14b8a6; outline-offset: 1px; border-radius: 6px; }
.cs-stars-static { color: #f59e0b; letter-spacing: 1px; }
.cs-stars-static .off { color: #cbd5e1; }
.cs-rate { margin-top: 10px; padding: 12px 14px; border-radius: 10px; background: #f8fafc; border: 1px solid #e2e8f0; }
.cs-rate summary { cursor: pointer; font-weight: 700; color: var(--teal); }
.cs-rate .cs-btn { margin-top: 10px; min-height: 40px; }
.cs-qa-item { display: block; padding: 14px 16px; margin: 10px 0; border: 1px solid #e2e8f0; border-radius: 10px; text-decoration: none; color: inherit; }
.cs-qa-item:hover { border-color: #14b8a6; background: #f0fdfa; }
.cs-qa-item strong { display: block; color: var(--ink-strong); }
.cs-tag { display: inline-block; padding: 2px 8px; border-radius: 50px; font-size: 12.5px; font-weight: 700; background: #f1f5f9; color: #334155; margin-right: 4px; }
.cs-tag.team { background: #ccfbf1; color: #0f766e; }
.cs-tag.pin { background: #fef3c7; color: #92400e; }
.cs-msg { margin: 12px 0; padding: 12px 16px; border-radius: 8px; background: #f8fafc; }
.cs-msg.team { background: #f0fdfa; border-left: 4px solid #14b8a6; }
.cs-msg .who { margin-bottom: 4px; }
.cs-msg .txt { white-space: pre-line; }
