:root {
  --bg: #f6f3ee;
  --surface: #fffdf9;
  --ink: #202124;
  --text: #34363a;
  --muted: #686c72;
  --primary: #274c4a;
  --accent: #d57b53;
  --sage: #dce7dc;
  --line: rgba(32, 33, 36, 0.11);
  --shadow: 0 24px 70px rgba(35, 42, 45, 0.12);
  --radius: 8px;
  --container: min(920px, calc(100% - 40px));
  --font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-heading: "Cormorant Garamond", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: linear-gradient(115deg, rgba(220, 231, 220, 0.95), rgba(246, 243, 238, 0) 34%), var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.container {
  width: var(--container);
  margin: 0 auto;
}

.topbar {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  background: rgba(246, 243, 238, 0.86);
  backdrop-filter: blur(16px);
}

.nav {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  width: 220px;
  height: 120px;
  object-fit: contain;
  margin-block: -38px;
}

.back-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid rgba(39, 76, 74, 0.2);
  border-radius: 999px;
  color: var(--primary);
  background: rgba(255, 253, 249, 0.8);
  font-weight: 800;
  text-decoration: none;
}

.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 800 0.94rem/1 var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(39, 76, 74, 0.18);
}

.btn-secondary {
  color: var(--primary);
  border-color: rgba(39, 76, 74, 0.22);
  background: rgba(255, 253, 249, 0.78);
}

.lecture-contenu {
  position: fixed;
  top: 112px;
  right: 20px;
  z-index: 35;
  display: flex;
  justify-content: flex-end;
  width: auto;
  margin: 0;
  pointer-events: none;
}

.lecture-contenu-bouton {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: #fff;
  background: var(--accent);
  box-shadow: 0 2px 10px rgba(213, 123, 83, 0.28);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.lecture-contenu-bouton[aria-pressed="true"] {
  color: white;
  border-color: #c06a42;
  background: #c06a42;
}

.lecture-contenu-bouton:hover {
  background: #c06a42;
  border-color: #c06a42;
  box-shadow: 0 8px 18px rgba(213, 123, 83, 0.24);
}

.lecture-contenu-icone {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}

.lecture-contenu-icone svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

main {
  padding: 72px 0;
}

.hero {
  margin-bottom: 34px;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

h1 {
  margin: 0 0 16px;
  font-size: 3.3rem;
  font-weight: 600;
}

h2 {
  margin: 0 0 16px;
  font-size: 1.85rem;
  font-weight: 600;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  font-weight: 600;
}

p {
  margin-top: 0;
  color: var(--muted);
}

.card {
  margin-bottom: 18px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 249, 0.86);
  box-shadow: var(--shadow);
}

.list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.list li { margin-bottom: 8px; }

.notice {
  border-left: 4px solid var(--accent);
  padding: 16px 18px;
  border-radius: var(--radius);
  background: #fff7f1;
  color: var(--text);
}

footer {
  padding: 34px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255, 253, 249, 0.54);
}

@media (max-width: 680px) {
  :root { --container: min(100% - 28px, 920px); }

  .nav {
    align-items: center;
    flex-direction: column;
  }

  .logo {
    width: 210px;
    height: 116px;
  }

  main {
    padding: 52px 0;
  }

  .lecture-contenu {
    top: 122px;
    right: 10px;
  }

  .lecture-contenu-bouton {
    font-size: 0.8rem;
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
    padding: 0;
    justify-content: center;
  }

  .lecture-contenu-bouton > span:not(.lecture-contenu-icone) {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .lecture-contenu-icone,
  .lecture-contenu-icone svg {
    width: 19px;
    height: 19px;
  }

  h1 {
    font-size: 2.45rem;
  }

  .card {
    padding: 22px;
  }
}
