/* Le Royaume des Échiquiers : palette bois clair / noyer / vert de feutrine */
:root {
  --paper: #f7f2e8;
  --paper-2: #efe5d2;
  --ink: #2b211a;
  --ink-soft: #5a4a3d;
  --walnut: #4a3122;
  --walnut-2: #6b4630;
  --padouk: #9c4a25;
  --felt: #2f5243;
  --line: #d9c9ac;
  --white: #fffdf8;
  --maxw: 760px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.075rem;
  line-height: 1.72;
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--padouk); text-underline-offset: 3px; }
a:hover { color: var(--walnut); }
h1, h2, h3, .footer-title, .logo-text {
  font-family: "Fraunces", Georgia, serif;
  color: var(--walnut);
  line-height: 1.2;
  font-weight: 700;
}

/* En-tête */
.site-header {
  background: var(--walnut);
  border-bottom: 6px solid transparent;
  border-image: repeating-linear-gradient(90deg, #e9d8b4 0 24px, #2b1c12 24px 48px) 6;
}
.header-inner {
  max-width: 1120px; margin: 0 auto; padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-mark {
  width: 38px; height: 38px; flex: none; border: 2px solid #e9d8b4;
  background: conic-gradient(#e9d8b4 0 25%, #2b1c12 0 50%, #e9d8b4 0 75%, #2b1c12 0) 0 0 / 50% 50%;
}
.logo-text { color: #f4e9d2; font-size: 1.15rem; font-weight: 500; line-height: 1.05; }
.logo-text small { font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; font-family: "Figtree", sans-serif; color: #e2c99a; }
.nav-toggle {
  display: none; background: none; border: 1px solid #e2c99a; color: #f4e9d2;
  font-size: 1.3rem; padding: 4px 12px; border-radius: 4px; cursor: pointer;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.site-nav a { color: #f4e9d2; text-decoration: none; font-weight: 600; font-size: .95rem; }
.site-nav a:hover { color: #ffd9a8; text-decoration: underline; }

/* Bandeau titre */
.hero { background: var(--paper-2); border-bottom: 1px solid var(--line); }
.hero-home {
  background:
    linear-gradient(90deg, var(--paper-2) 55%, rgba(239,229,210,.82)),
    repeating-conic-gradient(#d8c39b 0 25%, #efe5d2 0 50%) 100% 0 / 64px 64px;
}
.hero-inner { max-width: var(--maxw); margin: 0 auto; padding: 28px 16px 34px; }
.breadcrumb { font-size: .9rem; color: var(--ink-soft); }
.breadcrumb a { color: var(--ink-soft); }
.kicker { margin: 18px 0 6px; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--felt); font-weight: 600; }
.hero h1 { font-size: clamp(1.75rem, 5vw, 2.6rem); margin: 0 0 12px; }
.chapo { font-size: 1.15rem; color: var(--ink-soft); margin: 0; }

/* Contenu */
.content { max-width: var(--maxw); margin: 0 auto; padding: 28px 16px 40px; }
.content h2 { font-size: clamp(1.35rem, 3.6vw, 1.75rem); margin: 2.2em 0 .6em; padding-top: .4em; border-top: 1px solid var(--line); }
.content h3 { font-size: 1.18rem; margin: 1.6em 0 .4em; color: var(--walnut-2); }
.content p, .content li { color: var(--ink); }
.answer {
  background: var(--white); border-left: 5px solid var(--felt);
  padding: 16px 20px; margin: 0 0 1.6em; font-size: 1.1rem;
}
.answer p { margin: 0; }
.definition {
  background: var(--white); border: 1px solid var(--line); border-radius: 6px;
  padding: 14px 18px; margin: 1.4em 0;
}
.definition dt { font-family: "Fraunces", Georgia, serif; font-weight: 700; color: var(--padouk); }
.definition dd { margin: 4px 0 0; }
.note { font-size: .95rem; color: var(--ink-soft); background: var(--paper-2); padding: 12px 16px; border-radius: 6px; }

.table-wrap { overflow-x: auto; margin: 1.4em 0; border: 1px solid var(--line); border-radius: 6px; background: var(--white); }
table { border-collapse: collapse; width: 100%; font-size: .95rem; min-width: 520px; }
caption { text-align: left; padding: 10px 12px; font-weight: 600; color: var(--walnut); }
th, td { padding: 9px 12px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
thead th { background: var(--walnut); color: #f7ecd6; border-top: 0; }
tbody tr:nth-child(even) { background: #faf5ea; }

.cards { list-style: none; padding: 0; margin: 1.2em 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.cards li { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--padouk); border-radius: 6px; padding: 14px 16px; }
.cards a { font-family: "Fraunces", Georgia, serif; font-weight: 700; font-size: 1.05rem; text-decoration: none; }
.cards p { margin: 6px 0 0; font-size: .95rem; color: var(--ink-soft); }
.block-title { margin-bottom: .2em; }

.swatches { display: flex; flex-wrap: wrap; gap: 10px; margin: 1em 0; padding: 0; list-style: none; }
.swatches li { display: flex; align-items: center; gap: 8px; font-size: .9rem; background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 4px 12px 4px 4px; }
.swatches i { width: 24px; height: 24px; border-radius: 50%; display: inline-block; border: 1px solid rgba(0,0,0,.15); }

.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 14px 52px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 36px; height: 36px;
  background: var(--felt); color: #fff; border-radius: 50%; display: grid; place-items: center;
  font-family: "Fraunces", Georgia, serif; font-weight: 700;
}

.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 6px; margin: 10px 0; padding: 0 16px; }
.faq summary { cursor: pointer; padding: 12px 0; font-weight: 600; color: var(--walnut); }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq details p { margin: 12px 0; }

.sources { font-size: .9rem; color: var(--ink-soft); }
.sources a { color: var(--ink-soft); }

.read-more { margin-top: 3em; background: var(--walnut); color: #f4e9d2; padding: 20px 20px 10px; border-radius: 8px; }
.read-more h2 { color: #f4e9d2; border: 0; margin: 0 0 10px; padding: 0; font-size: 1.3rem; }
.read-more ul { list-style: none; margin: 0; padding: 0; }
.read-more li { padding: 8px 0 12px; border-top: 1px solid rgba(255,255,255,.18); }
.read-more a { color: #ffd9a8; font-weight: 600; }
.read-more span { display: block; font-size: .92rem; color: #e8dbc3; }

/* Pied de page */
.site-footer { background: #241811; color: #e6d7bd; margin-top: 40px; }
.footer-inner {
  max-width: 1120px; margin: 0 auto; padding: 32px 16px 12px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px;
}
.footer-title { color: #f4e9d2; font-size: 1.05rem; margin: 0 0 8px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 4px 0; }
.site-footer a { color: #f0c896; }
.site-footer p { margin: 0 0 8px; font-size: .95rem; }
.footer-bottom { max-width: 1120px; margin: 0 auto; padding: 14px 16px 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 70px; background: var(--walnut); padding: 10px 16px 16px; z-index: 10; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 10px; }
  .site-header { position: relative; }
  body { font-size: 1.02rem; }
}

/* sélecteur de langue (pbn_i18n) */
.lang-switch{max-width:1100px;margin:24px auto 0;padding:14px 20px 0;border-top:1px solid rgba(255,255,255,.12);font-size:.82rem;line-height:1.9;text-align:center;opacity:.85}
.lang-switch a{color:inherit;text-decoration:none;white-space:nowrap}
.lang-switch a:hover{text-decoration:underline}
.lang-switch a.current{font-weight:700;text-decoration:underline}
