:root {
  color-scheme: light;
  --ink: #1b2b35;
  --muted: #5b6b70;
  --paper: #f7f5ef;
  --line: #dedfd8;
  --accent: #bd714d;
  --deep: #203c3d;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.65;
}

a { color: inherit; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.container { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
}
.wordmark, .footer-name {
  font: 700 1.45rem Georgia, serif;
  letter-spacing: -.04em;
  text-decoration: none;
}
.wordmark span, .footer-name span, .daily-heading h2 span { color: var(--accent); }
nav { display: flex; flex-wrap: wrap; gap: 32px; }
nav a { font-size: .82rem; font-weight: 600; text-decoration: none; }
nav a:hover, .hero-link:hover { text-decoration: underline; }

.hero {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  align-items: center;
  gap: 64px;
  padding-top: 86px;
  padding-bottom: 90px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  color: #825139;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.eyebrow span { width: 25px; height: 1px; background: var(--accent); }
h1, h2, h3, p { margin-top: 0; }
.hero h1 {
  margin-bottom: 24px;
  font: 400 clamp(2.8rem, 5.3vw, 5rem)/1.08 Georgia, serif;
  letter-spacing: -.045em;
}
.hero h1 em { color: #47706a; font-weight: 400; }
.hero-intro { max-width: 470px; margin-bottom: 28px; color: var(--muted); font-size: 1.05rem; }
.hero-link { color: var(--deep); font-size: .88rem; font-weight: 700; text-decoration: none; }
.hero-link span { display: inline-block; margin-left: 8px; color: var(--accent); font-size: 1.15rem; }
.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 330px;
  overflow: hidden;
  background: var(--deep);
  color: #f5efe2;
}
.art-orbit { position: absolute; width: 225px; height: 225px; border: 1px solid #79918a; border-radius: 50%; }
.orbit-one { transform: rotate(-35deg) scaleX(1.35); }
.orbit-two { transform: rotate(35deg) scaleX(1.35); }
.art-symbol { font: 400 8rem/1 Georgia, serif; color: #e4cbb0; }
.art-caption { position: absolute; right: 24px; bottom: 22px; color: #bed0c4; font-size: .6rem; letter-spacing: .18em; line-height: 1.6; }

.links-section { padding-bottom: 100px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-heading .eyebrow { margin-bottom: 10px; }
.section-heading h2, .daily-heading h2 { margin-bottom: 0; font: 400 clamp(2rem, 3vw, 2.8rem)/1.15 Georgia, serif; letter-spacing: -.035em; }
.section-heading > p { margin-bottom: 4px; color: var(--muted); font-size: .85rem; }
.link-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.link-card {
  display: block;
  min-height: 220px;
  padding: 27px;
  border: 1px solid var(--line);
  background: #fffefa;
  text-decoration: none;
  transition: border-color .2s, transform .2s;
}
.link-card:hover { border-color: #9eada4; transform: translateY(-3px); }
.card-number { color: #825139; font-size: .65rem; font-weight: 700; letter-spacing: .13em; }
.link-card h3 { display: flex; justify-content: space-between; gap: 12px; margin: 29px 0 10px; font: 400 1.25rem/1.3 Georgia, serif; }
.link-card h3 span { color: var(--accent); }
.link-card p { margin-bottom: 0; color: var(--muted); font-size: .86rem; }

.daily-section { padding: 82px 0 96px; background: #e9eee8; }
.daily-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.daily-heading .eyebrow { margin-bottom: 10px; }
.daily-heading > div > p:last-child { margin: 12px 0 0; color: var(--muted); }
.proof-card { padding: clamp(24px, 5vw, 58px); background: #fffefa; border: 1px solid #dbe1d8; box-shadow: 0 12px 30px rgba(34, 55, 48, .04); }
.proof-card + .proof-card { margin-top: 20px; }
.proof-card-title { margin: 0; color: var(--deep); font: 400 1.8rem/1.2 Georgia, serif; }
#statut-preuve:empty { display: none; }
.proof-content { max-width: 880px; color: #29383c; overflow-wrap: anywhere; }
.proof-content h1 { margin: 0 0 14px; color: var(--deep); font: 400 2rem/1.2 Georgia, serif; }
.proof-content h2 { margin: 26px 0 12px; color: var(--deep); font: 400 1.25rem/1.35 Georgia, serif; }
.proof-content h3 { margin: 38px 0 18px; padding-top: 30px; border-top: 1px solid var(--line); color: var(--deep); font: 400 1.55rem/1.35 Georgia, serif; }
.proof-content p, .proof-content li { font-size: .96rem; line-height: 1.85; }
.proof-content p { margin-bottom: 16px; }
.proof-content li { margin-bottom: 12px; padding-left: 5px; }
.proof-content strong { color: #294d48; }
.proof-content mjx-container[display="true"] { max-width: 100%; overflow-x: auto; overflow-y: hidden; padding: 8px 0; }

.site-footer { padding: 32px 0; background: #203c3d; color: #f5efe2; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-inner p { margin: 0; }
.footer-inner p:last-child { color: #d3ded7; font-size: .8rem; text-align: right; }

@media (max-width: 700px) {
  .container { width: min(100% - 36px, 1120px); }
  .header-inner { align-items: flex-start; flex-direction: column; gap: 12px; padding: 20px 0; }
  nav { gap: 18px; }
  .hero { grid-template-columns: 1fr; gap: 35px; padding-top: 55px; padding-bottom: 60px; }
  .hero-art { min-height: 250px; }
  .art-orbit { width: 175px; height: 175px; }
  .art-symbol { font-size: 6rem; }
  .links-section { padding-bottom: 65px; }
  .section-heading, .daily-heading { align-items: flex-start; flex-direction: column; }
  .link-grid { grid-template-columns: 1fr; }
  .link-card { min-height: 0; }
  .link-card h3 { margin-top: 20px; }
  .daily-section { padding: 60px 0; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .footer-inner p:last-child { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .link-card { transition: none; }
}
