/* Les Carnets Tranquilles : gros textes, fort contraste, rien qui bouge. */
:root {
  --creme: #F5EFE3;
  --creme-fonce: #EAE1CF;
  --encre: #26302A;
  --encre-douce: #45504A;
  --ambre: #C4873A;
  --sauge: #56745F;
  --sauge-fonce: #3F5A47;
  --bleu: #4E6B82;
  --blanc: #FFFFFF;
  --bord: #CFC4AE;
}

* { box-sizing: border-box; }

html { font-size: 125%; } /* 20 px de base */

body {
  margin: 0;
  background: var(--creme);
  color: var(--encre);
  font-family: Verdana, "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.25;
  margin: 0 0 0.6em;
}
h1 { font-size: 1.8rem; }
h2 { font-size: 1.6rem; margin-top: 0.2em; }
h3 { font-size: 1.2rem; }
p, li { max-width: 68ch; }
a { color: var(--sauge-fonce); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--encre); }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 4px solid var(--ambre);
  outline-offset: 3px;
}

.saut { position: absolute; left: -9999px; }
.saut:focus { left: 1rem; top: 1rem; background: var(--blanc); padding: 0.6rem 1rem; z-index: 10; }

.conteneur { max-width: 1100px; margin: 0 auto; padding: 0 1rem; }

/* En-tête */
.entete { background: var(--sauge); color: var(--blanc); }
.entete .conteneur { padding-top: 0.9rem; padding-bottom: 0.9rem; }
.marque {
  display: inline-block;
  color: var(--blanc);
  text-decoration: none;
  font-weight: bold;
  letter-spacing: 0.12em;
  font-size: 1rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.marque:hover { color: var(--blanc); text-decoration: underline; }
.menu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; }
.menu a { color: var(--blanc); font-size: 1rem; display: inline-block; padding: 0.25rem 0; }
.menu a[aria-current="page"] { text-decoration-color: var(--ambre); text-decoration-thickness: 4px; }

main { padding: 2.2rem 0 3rem; }
section { margin-bottom: 3rem; }

/* Boutons */
.bouton {
  display: inline-block;
  background: var(--encre);
  color: var(--blanc);
  border: 3px solid var(--encre);
  border-radius: 10px;
  padding: 0.75rem 1.3rem;
  font-size: 1.05rem;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  min-height: 3rem;
  font-family: inherit;
}
.bouton:hover { background: var(--sauge-fonce); border-color: var(--sauge-fonce); color: var(--blanc); }
.bouton.clair { background: var(--blanc); color: var(--encre); }
.bouton.clair:hover { background: var(--creme-fonce); color: var(--encre); }
.boutons { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.2rem; }

/* Accueil */
.accroche { display: grid; gap: 2rem; align-items: center; }
.accroche p.grand { font-size: 1.15rem; }
.accroche img { width: 100%; max-width: 360px; border-radius: 8px; box-shadow: 0 4px 18px rgba(38, 48, 42, 0.18); }
.trait { width: 90px; height: 5px; background: var(--ambre); border: 0; margin: 0 0 1.2rem; }

.etapes { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; counter-reset: etape; }
.etapes li {
  background: var(--blanc);
  border: 2px solid var(--bord);
  border-radius: 12px;
  padding: 1.1rem 1.2rem 1.1rem 4.2rem;
  position: relative;
  counter-increment: etape;
}
.etapes li::before {
  content: counter(etape);
  position: absolute; left: 1.1rem; top: 1rem;
  width: 2.2rem; height: 2.2rem; border-radius: 50%;
  background: var(--ambre); color: var(--encre);
  font-weight: bold; text-align: center; line-height: 2.2rem;
}

/* Cartes de fiches */
.grille { display: grid; gap: 1.2rem; grid-template-columns: 1fr; padding: 0; list-style: none; margin: 0; }
.carte {
  background: var(--blanc);
  border: 2px solid var(--bord);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.carte img { width: 80px; height: auto; flex: none; border: 1px solid var(--bord); background: var(--blanc); }
.carte h3 { margin-bottom: 0.3rem; }
.carte p { margin: 0 0 0.5rem; }
.carte .petit { font-size: 0.9rem; color: var(--encre-douce); }
.carte .bouton { margin-top: 0.4rem; }

.theme { border-top: 5px solid var(--sauge); padding-top: 1.2rem; }
.theme.sante { border-top-color: var(--bleu); }

/* Carnets */
.carnet { display: grid; gap: 1.5rem; background: var(--blanc); border: 2px solid var(--bord); border-radius: 14px; padding: 1.3rem; }
.carnet img { width: 100%; max-width: 300px; border-radius: 6px; box-shadow: 0 3px 12px rgba(38, 48, 42, 0.18); }
.carnet ul { padding-left: 1.3rem; }

/* Encadrés */
.encadre { background: var(--blanc); border: 3px solid var(--sauge); border-radius: 14px; padding: 1.4rem; }
.encadre.ambre { border-color: var(--ambre); }
.note { background: var(--creme-fonce); border-left: 6px solid var(--ambre); padding: 1rem 1.2rem; border-radius: 6px; }

/* Formulaire */
form label { display: block; font-weight: bold; margin-bottom: 0.4rem; }
input[type="email"] {
  width: 100%;
  max-width: 32rem;
  font-size: 1.1rem;
  padding: 0.8rem;
  border: 3px solid var(--encre);
  border-radius: 8px;
  background: var(--blanc);
  color: var(--encre);
  font-family: inherit;
}
.case { display: flex; gap: 0.8rem; align-items: flex-start; margin: 1.1rem 0; font-weight: normal; max-width: 40rem; }
.case input { width: 1.6rem; height: 1.6rem; flex: none; margin-top: 0.2rem; accent-color: var(--sauge); }
.piege { position: absolute; left: -9999px; }

/* Pied de page */
.pied { background: var(--encre); color: var(--creme); padding: 2rem 0; font-size: 0.95rem; }
.pied a { color: var(--creme); }
.pied ul { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; }
.pied p { margin: 0.4rem 0; }

.texte-legal h2 { font-size: 1.3rem; margin-top: 1.8rem; }
.a-completer { background: #FFE9B3; padding: 0 0.3rem; }

@media (min-width: 760px) {
  h1 { font-size: 2.6rem; }
  .accroche { grid-template-columns: 1.5fr 1fr; }
  .etapes { grid-template-columns: repeat(3, 1fr); }
  .grille { grid-template-columns: repeat(2, 1fr); }
  .carnet { grid-template-columns: 300px 1fr; }
  .carte img { width: 110px; }
}

@media print {
  .entete, .pied, .boutons { display: none; }
}

/* Guide anti-arnaques (couleur prune du guide) */
.guide-haut, .guide-bandeau { display: grid; gap: 1.6rem; align-items: center; }
.guide-haut img, .guide-bandeau img { width: 100%; max-width: 360px; border-radius: 8px; box-shadow: 0 6px 22px rgba(38, 48, 42, 0.22); }
.guide-bandeau { background: #F3EBF2; border: 3px solid #7A5C7A; border-radius: 14px; padding: 1.4rem; }
.guide-bandeau img { max-width: 220px; }
.guide-bandeau h2 { margin-top: 0; }
.etiquette { display: inline-block; background: var(--ambre); color: var(--encre); font-weight: bold; padding: 0.2rem 0.8rem; border-radius: 99px; margin: 0 0 0.6rem; }
.coches { list-style: none; padding: 0; }
.coches li { padding-left: 2rem; position: relative; margin-bottom: 0.6rem; }
.coches li::before { content: "✓"; position: absolute; left: 0; color: #7A5C7A; font-weight: bold; font-size: 1.2rem; }
.apercu { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.apercu img { width: 100%; height: auto; border: 2px solid var(--bord); border-radius: 6px; background: var(--blanc); }
@media (min-width: 760px) {
  .guide-haut { grid-template-columns: 360px 1fr; }
  .guide-bandeau { grid-template-columns: 220px 1fr; }
  .apercu { grid-template-columns: repeat(4, 1fr); }
}
