/* Palette de référence : cuivre, sable, ivoire, anthracite, bleu nuit. */
:root {
  --sans: "Open Sans", Arial, sans-serif;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --ui: "Montserrat", "Open Sans", Arial, sans-serif;
  --ink: #2b2b2b;
  --muted: #62666a;
  --cream: #f7f3ee;
  --orange: #c97453;
  --teal: #1f2a35;
  --aqua: #e0d3c3;
  --line: #ded8d1;
}

body { font-family: var(--sans); background: linear-gradient(180deg, #eee7df 0, #eee7df 80px, var(--cream) 80px, var(--cream) 100%); }
h1, h2, h3 { font-family: var(--serif); }
h1 { font-weight: 700; }
.brand, .eyebrow, .button, .counter, .item-number, .score-name, .score-value, .home-link, .about h3 { font-family: var(--ui); }
.brand { color: var(--orange) !important; font-family: var(--ui); font-weight: 700; }
.button { min-height: 50px; border-radius: 0; padding: 14px 25px; font-family: var(--ui); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.button b { display: none; }
.button.secondary { min-height: 46px; }

.brand, .eyebrow, .counter, .item-number, .score-value { color: var(--teal); }
.eyebrow-dot, .eyebrow:before, .brand i { background: var(--orange); }
.button { background: var(--orange); }
.button:hover, .button:focus-visible { background: #a95439; }
.button b { background: var(--cream); color: var(--orange); }
.landing { align-items: start; padding-top: 82px; }
.landing h1 { max-width: 670px; font-size: clamp(48px, 5.7vw, 72px); }
.abacus-details { margin: 20px 0 0; font-size: 15px; text-align: center; }
.button-details { margin: 16px 0 0; font-weight: 700; }
.intro-copy { max-width: 590px; margin: 28px 0; color: var(--muted); font-size: 19px; line-height: 1.55; }
.intro-copy p { margin: 0 0 20px; }
.about { grid-column: 1 / -1; width: 100%; margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; font-style: italic; line-height: 1.55; }
.about h3 { display: none; }
.about p { margin: 0 0 8px; }
.button.secondary { border-color: var(--teal); color: var(--teal); }
.progress span { background: var(--orange); }
.answer:has(input:checked) { border-color: var(--teal); background: #efe5dc; box-shadow: inset 0 0 0 1px var(--teal); }
.answer strong { color: var(--teal); }
.bar span { background: var(--teal); }
.method { background: #eee7df; }
.results-abacus { position: relative; display: grid; gap: 30px; margin: 34px 0 42px; padding: 10px 28px; }
.results-abacus::before, .results-abacus::after { display: none; }
.results-abacus::before { left: 28px; }
.results-abacus::after { right: 28px; }
.results-abacus .score { position: relative; z-index: 1; padding: 0 0 15px; border: 0; border-bottom: 1px solid #e2ddd7; border-radius: 0; background: transparent; }
.results-abacus .score:last-child { padding-bottom: 0; border-bottom: 0; }
.score-top { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.score-title { display: flex; align-items: center; gap: 7px; }
.score-name { color: var(--teal); font-size: 18px; }
.score-value { white-space: nowrap; color: var(--teal); font-size: 20px; }
.score-rod { position: relative; height: 61px; margin-top: 11px; }
.score-rod::before { content: ""; position: absolute; z-index: -1; top: 30px; right: 0; left: 0; height: 2px; background: #505961; }
.score-bead { position: absolute; top: 30px; z-index: 2; width: 28px; height: 28px; border: 2px solid #17646a; border-radius: 50%; background: #8bd0cb; box-shadow: 2px 2px 0 rgba(31,42,53,.16); transform: translate(-50%, -50%); }
.score-bead::after { content: ""; position: absolute; top: -8px; bottom: -8px; left: 50%; width: 1px; background: var(--orange); transform: translateX(-50%); }
.score-ticks { position: absolute; top: 43px; right: 0; left: 0; display: grid; grid-template-columns: repeat(5, 1fr); color: #777; font: 600 12px var(--ui); }
.score-ticks span { text-align: center; }
.score-ticks span:first-child { text-align: left; }
.score-ticks span:last-child { text-align: right; }
.score-facets { display: none; }
.score-note { position: relative; }
.score-note summary { color: var(--orange); cursor: pointer; font: 700 15px var(--ui); list-style: none; }
.score-note summary::-webkit-details-marker { display: none; }
.score-note p { position: absolute; z-index: 3; top: 22px; left: 0; width: min(430px, 75vw); margin: 0; padding: 13px 15px; border: 1px solid #e4d8cc; border-radius: 8px; background: #fff; box-shadow: 0 8px 20px rgba(43,43,43,.12); color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.45; }
.results-context { margin: 0 0 30px; padding: 18px 20px; border-left: 3px solid var(--orange); background: #eee7df; color: var(--muted); font-size: 14px; line-height: 1.55; }
.results-context p { margin: 0 0 10px; }
.results-context p:last-child { margin-bottom: 0; }
.results-context strong { color: var(--teal); }
.scores-comparison { max-width: 760px; margin: 14px 0 0; color: var(--muted); font-size: 14px; font-style: italic; line-height: 1.5; }
.footnote { margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.55; }
.footnote strong { display: block; margin-bottom: 8px; color: var(--teal); font: 700 13px var(--ui); text-transform: uppercase; }
.footnote span { display: block; padding-left: 1.5em; text-indent: -1.5em; }
.method { margin-top: 24px; }
.method p { margin: 12px 0 0; }
.score-description { margin-top: 16px; }
.score-description summary { display: inline-flex; align-items: center; min-height: 38px; padding: 9px 13px; border: 1px solid #ded8d1; background: #fff; color: var(--teal); cursor: pointer; font: 700 12px var(--ui); letter-spacing: .03em; }
.score-description summary:hover, .score-description summary:focus-visible { border-color: var(--orange); color: var(--orange); }
.score-description summary:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.score-description-content { margin-top: 12px; padding: 20px; border: 1px solid #e4d8cc; background: #fff; color: var(--muted); font-size: 14px; line-height: 1.58; }
.score-description-content > p { margin: 0 0 13px; }
.description-caveat { color: #6e6258; font-size: 13px; font-style: italic; }
.facet-descriptions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 22px; margin-top: 20px; padding-top: 18px; border-top: 1px solid #e2ddd7; }
.facet-descriptions h3 { grid-column: 1 / -1; margin: 0; color: var(--teal); font-family: var(--ui); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.facet-description h4 { margin: 0 0 5px; color: var(--teal); font: 700 14px var(--ui); }
.facet-description p { margin: 0; }
.facet-items { margin-top: 11px; color: #777; font-size: 12px; line-height: 1.45; }
.facet-items > p { margin: 0 0 5px; font-style: italic; }
.facet-items ul { margin: 0; padding: 0; list-style: none; }
.facet-item { display: flex; gap: 7px; padding: 2px 0; }
.facet-item-marker { flex: 0 0 12px; color: var(--orange); font-weight: 700; }
.abacus-wrap { display: grid; place-items: center; min-height: 390px; }
.abacus { position: relative; width: min(440px, 86vw); padding: 31px 68px 31px 26px; border: 2px solid #1f2a35; border-radius: 3px; background: #f2ede7; box-shadow: 9px 9px 0 #e0d3c3; }
.abacus:before, .abacus:after { content: ""; position: absolute; left: 13px; right: 13px; height: 8px; background: #1f2a35; }
.abacus:before { top: 12px; }.abacus:after { bottom: 12px; }
.abacus-rods { display: grid; gap: 19px; }
.rod { position: relative; height: 39px; display: flex; align-items: center; }
.rod i { position: absolute; left: 0; right: 0; height: 4px; border-radius: 4px; background: #1f2a35; }
.bead { position: absolute; z-index: 1; display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; border: 3px solid #17646a; background: #8bd0cb; box-shadow: 2px 3px 0 rgba(31,42,53,.16); color: #1f2a35; font: 700 16px var(--serif); }
.p1 { left: 4%; }.p2 { left: 23%; }.p3 { left: 42%; }.p4 { left: 61%; }.p5 { left: 80%; }
.rod:nth-child(2) .bead { background: #dbe9e6; }.rod:nth-child(3) .bead { background: #78c3c3; }.rod:nth-child(4) .bead { background: #bee0db; }.rod:nth-child(5) .bead { background: #9ed5d0; }

/* Navigation secondaire introduite dans la version 1.1. */
.head-actions { display: flex; align-items: center; gap: 20px; }
.results-top { display: flex; justify-content: space-between; gap: 20px; align-items: start; }
.test-panel { margin-top: 34px; padding: 44px 48px 48px; border: 1px solid #e7ddd2; border-radius: 16px; background: #fff; box-shadow: 0 14px 32px rgba(43,43,43,.06); }
.test-panel .test-head { margin: 0 0 18px; align-items: center; }
.test-panel .eyebrow { margin: 0; }
.test-panel .item-card { margin-top: 18px; padding: 24px; border: 1px solid #e7ddd2; border-radius: 12px; background: #fff; box-shadow: 0 6px 18px rgba(43,43,43,.03); }
.test-panel .item-number { color: var(--orange); }
.test-panel .item-note { margin: -6px 0 17px; color: #7a7a7a; font-size: 13px; line-height: 1.45; }
.test-panel .nav { margin-top: 26px; }
.home-link { border: 1px solid #e4d8cc; padding: 15px 22px; background: #fff; color: var(--teal); cursor: pointer; font: 700 13px var(--ui); letter-spacing: .06em; text-decoration: none; text-transform: uppercase; }
.home-link:hover, .home-link:focus-visible { border-color: var(--orange); color: var(--orange); }
.home-link:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; }

@media (max-width: 720px) {
  .landing { padding-top: 48px; }
  .landing h1 { font-size: clamp(44px, 13vw, 62px); }
  .head-actions, .results-top { flex-direction: column; align-items: start; gap: 12px; }
  .test-panel { margin-top: 24px; padding: 28px 18px; }
  .test-panel .item-card { padding: 20px 16px; }
  .results-abacus { gap: 25px; padding-right: 20px; padding-left: 20px; }
  .results-abacus::before { left: 20px; }
  .results-abacus::after { right: 20px; }
  .score-name { font-size: 16px; }
  .score-value { font-size: 18px; }
  .facet-descriptions { grid-template-columns: 1fr; }
  .abacus-wrap { min-height: 320px; }
  .abacus { width: min(340px, 88vw); padding: 24px 70px 24px 16px; }
  .abacus-rods { gap: 14px; }
  .bead { width: 31px; height: 31px; border-width: 2px; }
  .bead { font-size: 14px; }
}
