@font-face {
  font-family: Fraunces;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/fraunces-500.woff2") format("woff2");
}
@font-face {
  font-family: Fraunces;
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/fraunces-500i.woff2") format("woff2");
}
@font-face {
  font-family: Fraunces;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/fraunces-600.woff2") format("woff2");
}
@font-face {
  font-family: Figtree;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/figtree-400.woff2") format("woff2");
}
@font-face {
  font-family: Figtree;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/figtree-500.woff2") format("woff2");
}
@font-face {
  font-family: Figtree;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/figtree-600.woff2") format("woff2");
}

:root {
  --papier: #f3efe6;
  --papier-2: #e7e0d2;
  --encre: #1c1915;
  --encre-douce: #4e4942;
  --carte: #fffdf8;
  --filet: #e0d4c4;
  --accent: #0c5c56;
  --accent-fonce: #08403c;
  --accent-doux: #e5f3f1;
  --terracotta: #8a311c;
  --vert: #0d7a32;
  --orange: #8a4b08;
  --rouge: #9f1d1d;
  --ia: #5b3a8c;
  --cite: #7a4e1d;
  --lien: #0c5c56;
  --sur-accent: #f4fffd;
  --ombre: 0 18px 40px rgba(48, 32, 16, 0.08);
  --sans: Figtree, "Segoe UI", system-ui, sans-serif;
  --serif: Fraunces, "Iowan Old Style", Palatino, Georgia, serif;
  --cadre: 1120px;
  --rayon: 18px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --papier: #141210;
  --papier-2: #221e19;
  --encre: #f4efe6;
  --encre-douce: #d0c4b4;
  --carte: #1e1b17;
  --filet: #3c342c;
  --accent: #8fd9d0;
  --accent-fonce: #d8f7f2;
  --accent-doux: #1a2e2b;
  --terracotta: #f0a48f;
  --vert: #8ddea8;
  --orange: #f0b36a;
  --rouge: #ffb4b0;
  --ia: #d2b8ff;
  --cite: #e6b98a;
  --lien: #8fd9d0;
  --sur-accent: #10211f;
  --ombre: none;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(900px 420px at 0% -10%, rgba(12, 92, 86, 0.07), transparent 55%),
    var(--papier);
  color: var(--encre);
  font: 400 1.0625rem/1.6 var(--sans);
}
:root[data-theme="dark"] body {
  background:
    radial-gradient(900px 420px at 0% -10%, rgba(143, 217, 208, 0.06), transparent 55%),
    var(--papier);
}
img { max-width: 100%; height: auto; }
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
}
h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 0 0 10px; }
h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); margin: 0 0 12px; }
h3 { font-size: 1.35rem; margin: 0 0 8px; }
p { margin: 0 0 0.8em; }
a { color: var(--lien); }
a:hover { text-decoration-thickness: 2px; }
code {
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.9em;
  background: var(--papier-2);
  padding: 0.1em 0.35em;
  border-radius: 6px;
}
.prose a, .note-methode a { overflow-wrap: anywhere; }
:focus-visible { outline: 3px solid var(--encre); outline-offset: 3px; }
::selection { background: #d5ebe7; color: #1c1915; }
[hidden] { display: none !important; }

.sr, .skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip:focus {
  position: absolute;
  left: 12px;
  top: 12px;
  width: auto;
  height: auto;
  margin: 0;
  clip: auto;
  overflow: visible;
  z-index: 50;
  background: var(--carte);
  color: var(--encre);
  padding: 8px 12px;
  border-radius: 8px;
}

.cadre {
  width: min(var(--cadre), calc(100% - 40px));
  margin-inline: auto;
}
.surtitre {
  margin: 0 0 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
:root:not([data-theme="dark"]) .surtitre { color: var(--accent); }

.masthead {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--papier) 86%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--filet) 85%, transparent);
}
.masthead-int {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
  min-height: 72px;
  padding: 10px 0;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}
.logo img { width: 36px; height: 36px; display: block; }
.masthead nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}
.masthead nav a {
  color: var(--encre-douce);
  text-decoration: none;
  font-weight: 500;
}
.masthead nav a:hover,
.masthead nav a[aria-current="page"] { color: var(--encre); }
.masthead-actions {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

button, .bouton, .lien-bouton {
  font: 600 1rem/1.2 var(--sans);
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--sur-accent);
  padding: 10px 16px;
  min-height: 42px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
button.secondaire, .bouton.secondaire, .lien-bouton {
  background: transparent;
  color: var(--accent);
}
:root[data-theme="dark"] button.secondaire,
:root[data-theme="dark"] .bouton.secondaire,
:root[data-theme="dark"] .lien-bouton {
  color: var(--accent);
}
button:hover, .bouton:hover { filter: brightness(1.06); }
button.secondaire:hover, .bouton.secondaire:hover, .lien-bouton:hover {
  filter: none;
  background: var(--accent-doux);
}
button:disabled { opacity: 0.55; cursor: not-allowed; }
.lien-bouton { font-weight: 600; }

label { display: block; font-weight: 600; margin: 14px 0 6px; }
label:has(> input[type="checkbox"]) {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-weight: 500;
}
textarea, input[type="text"], input[type="password"], input[type="url"], input[type="email"], select {
  width: 100%;
  font: inherit;
  color: inherit;
  background: var(--papier);
  border: 1px solid var(--filet);
  border-radius: 12px;
  padding: 10px 12px;
}
textarea { min-height: 180px; resize: vertical; }
input[type="checkbox"] { width: 1.1rem; height: 1.1rem; margin-top: 0.2rem; accent-color: var(--accent); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 36px 48px;
  align-items: center;
  padding: 42px 0 28px;
}
.hero h1 {
  font-size: clamp(2.7rem, 6vw, 4.7rem);
  line-height: 0.98;
  font-weight: 600;
  margin: 0 0 16px;
}
.hero h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--terracotta);
}
.lede {
  font-size: 1.18rem;
  color: var(--encre-douce);
  max-width: 38rem;
}
.hero-actions, .faits {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  margin-top: 18px;
}
.faits { margin-top: 22px; padding: 0; list-style: none; color: var(--encre-douce); font-size: 0.95rem; }
.faits li { display: flex; align-items: center; gap: 8px; }
.faits li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-visuel { position: relative; }
.feuille {
  background: #fffdf8;
  color: #1c1915;
  border: 1px solid #e4d8c8;
  border-radius: 16px;
  box-shadow: var(--ombre);
  padding: 22px 22px 16px;
  transform: rotate(-0.6deg);
}
.feuille-barre {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
  font-family: var(--serif);
  font-size: 0.95rem;
}
.feuille-barre span { color: #0c5c56; font-weight: 600; }
.ligne {
  height: 10px;
  border-radius: 99px;
  background: #efe6da;
  margin: 12px 0;
}
.ligne.courte { width: 72%; }
.ligne.moy { width: 88%; }
.ligne.marque {
  background: linear-gradient(#1c1915, #1c1915) 0 7px / 100% 2px no-repeat, #ffd166;
  height: 14px;
}
.ligne.violet {
  background: linear-gradient(#5b3a8c, #5b3a8c) 0 12px / 100% 2px no-repeat, #efe6da;
  height: 14px;
}
.ligne.vague {
  height: 16px;
  background:
    radial-gradient(circle at 8px 12px, transparent 6px, #9f1d1d 7px, #9f1d1d 8px, transparent 9px) 0 0 / 16px 16px repeat-x,
    #efe6da;
  background-position: 0 4px, 0 0;
}
.feuille-legende {
  margin: 18px 0 0;
  font-size: 0.82rem;
  color: #5c564c;
}
.pastilles-demo {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
}
.pastilles-demo div {
  background: var(--carte);
  border: 1px solid var(--filet);
  border-radius: 12px;
  padding: 8px 10px;
  box-shadow: var(--ombre);
}
.pastilles-demo strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.15rem;
}
.pastilles-demo span { color: var(--encre-douce); font-size: 0.78rem; }
.visuel-note {
  margin: 10px 0 0;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--encre-douce);
}

.section { padding: 72px 0 8px; }
.section-entete { max-width: 40rem; margin-bottom: 28px; }
.section-entete p:last-child { color: var(--encre-douce); }

.lectures {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--filet);
}
.lectures li {
  padding: 26px 28px 26px 0;
  border-bottom: 1px solid var(--filet);
}
.lectures li:nth-child(odd) { padding-right: 36px; border-right: 1px solid var(--filet); }
.lectures li:nth-child(even) { padding-left: 36px; }
.num {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  color: var(--terracotta);
  margin-bottom: 6px;
}
.lectures p, .etapes p, .limites p { color: var(--encre-douce); }

.etapes {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.etapes li {
  border-top: 2px solid var(--accent);
  padding-top: 14px;
}
.etapes strong { display: block; font-family: var(--serif); font-size: 1.25rem; font-weight: 600; margin-bottom: 8px; color: var(--encre); }

.limites {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 12px;
}
.limites article {
  background: var(--carte);
  border: 1px solid var(--filet);
  border-radius: var(--rayon);
  padding: 22px 22px 8px;
}
.limites h3 { font-size: 1.25rem; }
.limites ul { margin: 0 0 16px; padding-left: 1.1rem; color: var(--encre-douce); }
.limites li { margin: 0 0 8px; }

.prive { padding: 28px 0 10px; }
.prive-grille {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 36px;
  align-items: start;
  padding: 36px 0;
  border-top: 1px solid var(--filet);
  border-bottom: 1px solid var(--filet);
}
.prive blockquote { margin: 0; }
.prive blockquote p {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0;
}
.exceptions { margin: 0; padding: 0; list-style: none; }
.exceptions li { margin: 0 0 14px; color: var(--encre-douce); }
.exceptions strong { color: var(--encre); }
.url { word-break: break-all; }

.questions { padding-bottom: 20px; }
.question {
  border-bottom: 1px solid var(--filet);
  padding: 4px 0;
}
.question summary {
  cursor: pointer;
  font-weight: 600;
  padding: 14px 0;
}
.question p { color: var(--encre-douce); max-width: 68ch; margin-top: 0; }

.cta-fin {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  padding: 56px 0 20px;
}
.cta-fin p { color: var(--encre-douce); max-width: 36rem; }

.pub { margin: 28px 0; }
.pub-cadre { min-height: 112px; }
.pub-maison, .pub-statique {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 28px;
  row-gap: 4px;
  align-items: center;
  border: 1px dashed var(--filet);
  border-radius: var(--rayon);
  padding: 16px 18px;
  background: color-mix(in srgb, var(--carte) 70%, transparent);
  color: inherit;
  text-decoration: none;
}
.pub-etiquette {
  grid-column: 1 / -1;
  margin: 0 0 4px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--encre-douce);
}
.pub-titre {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
}
.pub-texte { margin: 0; color: var(--encre-douce); }
.pub-suite {
  grid-column: 2;
  grid-row: 2 / span 2;
  margin: 0;
  font-weight: 600;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
a.pub-maison:hover .pub-titre { text-decoration: underline; text-underline-offset: 3px; }
.pub-cible .adsbygoogle { display: block; min-height: 90px; }
.outil-pub .pub-maison, .outil-pub .pub-statique {
  grid-template-columns: 1fr;
}
.outil-pub .pub-suite { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 6px; }
.outil-pub .pub { margin: 0; position: sticky; top: 16px; }

.pied {
  border-top: 1px solid var(--filet);
  margin-top: 28px;
  padding: 28px 0 40px;
  color: var(--encre-douce);
  font-size: 0.95rem;
}
.pied-grille {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 22px;
}
.pied a { color: inherit; }
.pied nav { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.pied-fin { margin: 22px 0 0; font-size: 0.88rem; }
.note-methode {
  color: var(--encre-douce);
  font-size: 0.92rem;
  max-width: 78ch;
}
.note-methode p { margin: 0 0 0.7em; }

.cookies {
  position: relative;
  z-index: 15;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 18px;
  align-items: center;
  width: min(var(--cadre), calc(100% - 40px));
  margin: 12px auto 0;
  background: var(--carte);
  color: var(--encre);
  border: 1px solid var(--filet);
  border-radius: 16px;
  padding: 12px 14px;
}
.cookies p { margin: 0; font-size: 0.92rem; }
.cookies a { white-space: nowrap; }
.cookies-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cookies-actions button { min-width: 124px; }
section[id], .question { scroll-margin-top: 84px; }

.prose { padding: 28px 0 48px; max-width: 72ch; }
.prose h1 { margin-bottom: 12px; }
.prose .chapo { color: var(--encre-douce); font-size: 1.12rem; }
.prose h2 { font-size: 1.45rem; margin-top: 1.6em; }
.prose ul { color: var(--encre-douce); padding-left: 1.15rem; }
.prose li { margin: 0 0 0.4em; }
.contact-carte {
  display: block;
  margin-top: 18px;
  padding: 18px;
  border-radius: var(--rayon);
  border: 1px solid var(--filet);
  background: var(--carte);
  text-decoration: none;
  color: inherit;
}
.contact-carte strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.4rem;
  margin-bottom: 4px;
}

@media (max-width: 900px) {
  .hero, .lectures, .etapes, .limites, .prive-grille, .pied-grille { grid-template-columns: 1fr; }
  .lectures li:nth-child(odd),
  .lectures li:nth-child(even) {
    border-right: 0;
    padding-left: 0;
    padding-right: 0;
  }
  .hero-visuel { min-height: 0; }
  .feuille { transform: none; }
  .cookies { grid-template-columns: 1fr; }
  .pub-maison, .pub-statique { grid-template-columns: 1fr; }
  .pub-suite { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 6px; }
  .outil-pub .pub { position: static; }
  .masthead-actions { margin-left: 0; }
}
@media (max-width: 560px) {
  .pastilles-demo { grid-template-columns: 1fr; }
  .cadre { width: min(var(--cadre), calc(100% - 28px)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .feuille { transform: none; }
}
@media print {
  .masthead, .cookies, .pub, .hero-visuel, .pied .lien-bouton { display: none !important; }
  body { background: #fff; color: #000; }
  a { color: #000; }
}
