:root {
  --rd-bleu: #0062B5;
  --rd-vermillon: #C30000;
  --rd-gris: #CACACA;
  --rd-gris-clair: #F7F7F7;
  --rd-gris-texte: #6E6E6E;
  --rd-noir: #1A1A1A;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--rd-noir);
  background: var(--rd-gris-clair);
  line-height: 1.5;
}

h1, h2, h3 {
  font-family: 'Lora', Georgia, serif;
  line-height: 1.25;
}

a {
  color: var(--rd-bleu);
}

.rd-hidden {
  display: none !important;
}

header.rd-topbar {
  background: #fff;
  border-bottom: 1px solid var(--rd-gris);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
}

header.rd-topbar .rd-brand {
  font-family: 'Lora', Georgia, serif;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--rd-noir);
  text-decoration: none;
}

header.rd-topbar nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.9375rem;
}

header.rd-topbar nav a {
  color: var(--rd-noir);
  text-decoration: none;
}

header.rd-topbar nav a:hover,
header.rd-topbar nav a.rd-active {
  color: var(--rd-bleu);
  text-decoration: underline;
}

main {
  max-width: 640px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.rd-card {
  background: #fff;
  border: 1px solid var(--rd-gris);
  border-radius: 8px;
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}

.rd-card h1 {
  margin-top: 0;
  font-size: 1.5rem;
}

.rd-card h2 {
  font-size: 1.125rem;
}

.rd-lede {
  color: var(--rd-gris-texte);
  font-size: 0.9375rem;
}

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin: 1rem 0 0.25rem;
}

input[type="text"],
input[type="email"],
input[type="url"],
textarea,
select {
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--rd-gris);
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--rd-noir);
  background: #fff;
}

textarea {
  resize: vertical;
  min-height: 5rem;
}

button.rd-btn {
  display: inline-block;
  margin-top: 1.25rem;
  padding: 0.65rem 1.5rem;
  border: none;
  border-radius: 6px;
  background: var(--rd-bleu);
  color: #fff;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
}

button.rd-btn:hover {
  background: #004a8c;
}

button.rd-btn:disabled {
  background: var(--rd-gris);
  cursor: not-allowed;
}

button.rd-btn-danger {
  background: var(--rd-vermillon);
}

button.rd-btn-danger:hover {
  background: #960000;
}

button.rd-btn-secondary {
  background: #fff;
  color: var(--rd-bleu);
  border: 1px solid var(--rd-bleu);
}

button.rd-btn-secondary:hover {
  background: var(--rd-gris-clair);
}

.rd-message {
  margin-top: 1rem;
  font-size: 0.9375rem;
}

.rd-message.rd-message-error {
  color: var(--rd-vermillon);
}

.rd-message.rd-message-success {
  color: #1a7a1a;
}

.rd-copy-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.75rem;
}

.rd-copy-row input {
  flex: 1 1 16rem;
  background: var(--rd-gris-clair);
}

.rd-progress {
  margin-top: 1rem;
}

.rd-progress-bar {
  height: 0.5rem;
  border-radius: 999px;
  background: var(--rd-gris);
  overflow: hidden;
}

.rd-progress-bar > span {
  display: block;
  height: 100%;
  background: var(--rd-bleu);
}

.rd-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  border-top: 1px solid var(--rd-gris-clair);
}

.rd-list li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--rd-gris-clair);
  font-size: 0.9375rem;
}

.rd-badge {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--rd-gris-clair);
  color: var(--rd-gris-texte);
}

.rd-badge-active {
  background: #e6f0fa;
  color: var(--rd-bleu);
}

.rd-empty {
  color: var(--rd-gris-texte);
  font-size: 0.9375rem;
}

.cf-turnstile {
  margin-top: 1rem;
}

.rd-loading {
  color: var(--rd-gris-texte);
  font-size: 0.9375rem;
}
