:root {
  --encre: #1c2733;
  --encre-douce: #51606e;
  --bleu: #2d5b8e;
  --bleu-fonce: #1f3f63;
  --bleu-pale: #eaf1f8;
  --or: #b07b2c;
  --ambre-pale: #fbf0dd;
  --trait: #d4dce5;
  --fond: #f5f7fa;
  --blanc: #ffffff;
  --rayon: 10px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--fond);
  color: var(--encre);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.55;
}

.page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 24px 64px;
}

/* En-tête */
.entete {
  border-bottom: 3px solid var(--bleu-fonce);
  padding-bottom: 18px;
  margin-bottom: 36px;
}

.surtitre {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--or);
}

.entete h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 2.2rem;
  line-height: 1.15;
  margin: 6px 0 4px;
  color: var(--bleu-fonce);
}

.soustitre {
  margin: 0;
  color: var(--encre-douce);
  font-size: 1rem;
}

/* Cartes de choix */
.choix {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-bottom: 36px;
}

.carte-choix {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 28px 26px;
  background: var(--blanc);
  border: 1px solid var(--trait);
  border-left: 4px solid var(--bleu-fonce);
  border-radius: var(--rayon);
  text-decoration: none;
  color: var(--encre);
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.carte-choix:hover,
.carte-choix:focus-visible {
  border-color: var(--bleu);
  border-left-color: var(--or);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(31, 63, 99, 0.08);
  outline: none;
}

.carte-choix .tag {
  margin: 0;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 600;
  color: var(--or);
}

.carte-choix h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.55rem;
  color: var(--bleu-fonce);
  line-height: 1.2;
}

.carte-choix .description {
  margin: 0;
  font-size: 0.94rem;
  color: var(--encre-douce);
  line-height: 1.5;
}

.carte-choix .cta {
  display: inline-block;
  margin-top: 8px;
  padding: 10px 18px;
  align-self: flex-start;
  background: var(--bleu-fonce);
  color: var(--blanc);
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  transition: background 0.12s;
}

.carte-choix:hover .cta,
.carte-choix:focus-visible .cta {
  background: var(--bleu);
}

/* Notice : code de reprise & enregistrement */
.notice-reprise {
  margin-bottom: 32px;
}

.notice-reprise > h2 {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--bleu-fonce);
  margin: 0 0 16px;
}

.notice-grille {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.notice-bloc {
  background: var(--blanc);
  border: 1px solid var(--trait);
  border-left: 4px solid var(--bleu-fonce);
  border-radius: var(--rayon);
  padding: 22px 24px 18px;
}

.notice-bloc h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.25;
  color: var(--bleu-fonce);
}

.notice-icone {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.notice-bloc ul {
  margin: 0;
  padding-left: 1.2em;
}

.notice-bloc li {
  margin-bottom: 9px;
  font-size: 0.92rem;
  color: var(--encre-douce);
  line-height: 1.5;
}

.notice-bloc li:last-child {
  margin-bottom: 0;
}

.notice-bloc code {
  font-family: "Consolas", "Courier New", monospace;
  font-size: 0.86em;
  background: var(--bleu-pale);
  color: var(--bleu-fonce);
  padding: 1px 6px;
  border-radius: 5px;
}

/* Bloc d'alerte : absence d'enregistrement */
.notice-bloc.notice-alerte {
  background: var(--ambre-pale);
  border-color: #ecd9b4;
  border-left-color: var(--or);
}

.notice-bloc.notice-alerte h3 {
  color: #8a5e16;
}

.notice-bloc.notice-alerte li {
  color: #6b4a14;
}

/* Rappel */
.rappel {
  background: var(--ambre-pale);
  border: 1px solid #ecd9b4;
  border-radius: var(--rayon);
  padding: 18px 24px 20px;
  margin-bottom: 32px;
}

.rappel h2 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--or);
}

.rappel p {
  margin: 0;
  font-size: 0.92rem;
  color: #6b4a14;
  line-height: 1.5;
}

/* Pied */
.pied {
  padding-top: 18px;
  border-top: 1px solid var(--trait);
  font-size: 0.8rem;
  color: var(--encre-douce);
  line-height: 1.45;
}

.pied p { margin: 0; }

/* Mobile */
@media (max-width: 720px) {
  .choix,
  .notice-grille {
    grid-template-columns: 1fr;
  }
  .entete h1 {
    font-size: 1.7rem;
  }
}

/* Impression — masque la page d'accueil */
@media print {
  body { background: var(--blanc); }
  .carte-choix .cta { display: none; }
}
