/* Ouri — nuit feutrée et laiton doré */
@font-face { font-family: "Cormorant"; src: url("../fonts/cormorant-garamond.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("../fonts/cormorant-garamond-italic.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }

:root {
  --nuit: #14110f;
  --nuit-2: #1c1815;
  --nuit-3: #26201b;
  --or: #c9a45c;
  --or-clair: #e4cd97;
  --creme: #f3ead8;
  --texte: #e8dfcf;
  --doux: #a99e8c;
  --trait: rgba(201, 164, 92, .28);
  --serif: "Cormorant", "Cormorant Garamond", "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif CJK SC", "Songti SC", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Hiragino Sans", "Yu Gothic", "PingFang SC", "Microsoft YaHei", sans-serif;
  --r: 4px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--nuit); color: var(--texte); font: 400 1.0625rem/1.7 var(--sans); }
img { max-width: 100%; height: auto; }
a { color: var(--or-clair); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--creme); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--creme); line-height: 1.15; margin: 0 0 .5em; letter-spacing: .01em; }
h1 { font-size: clamp(2.6rem, 8vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 5vw, 2.7rem); }
h3 { font-size: 1.45rem; }
em { font-style: italic; color: var(--or); }
:lang(ja) h1, :lang(zh) h1 { font-size: clamp(2.2rem, 7vw, 3.8rem); }
.evitement { position: absolute; left: -999px; }
.evitement:focus { left: 1rem; top: 1rem; z-index: 99; background: var(--or); color: var(--nuit); padding: .4rem .8rem; }
.conteneur { width: min(1120px, 100% - 32px); margin-inline: auto; }
.etroit { width: min(760px, 100% - 32px); }
.centre { text-align: center; }
.petit { font-size: .9rem; color: var(--doux); }
.cache { display: none; }
.surtitre { font-family: var(--sans); font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--or); margin: 0 0 .9rem; }
:lang(ja) .surtitre, :lang(zh) .surtitre { letter-spacing: .1em; }
.ornement { width: 160px; color: var(--or); margin: 1.4rem auto; display: block; }
.illus { display: block; width: 100%; height: auto; }

/* Boutons */
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .85rem 1.6rem; border: 1px solid var(--or); background: var(--or); color: var(--nuit); font: 600 .82rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; border-radius: var(--r); cursor: pointer; transition: background .2s, color .2s; }
.bouton:hover { background: var(--or-clair); color: var(--nuit); }
.bouton--contour { background: transparent; color: var(--or-clair); }
.bouton--contour:hover { background: var(--or); color: var(--nuit); }
.bouton--petit { padding: .6rem 1rem; font-size: .72rem; }
.bouton[aria-pressed="true"] { background: var(--or-clair); }
.bouton[aria-pressed="false"] { background: transparent; color: var(--or-clair); }
.section { padding: clamp(3.5rem, 9vw, 6rem) 0; }
.section--haut { padding-top: 2rem; }
.page-tete { padding: clamp(3rem, 8vw, 5rem) 0 1rem; }
.page-tete__intro { font-family: var(--serif); font-style: italic; font-size: 1.35rem; color: var(--or-clair); }
.page-tete__illus { display: block; width: 72px; margin: 1.5rem auto 0; color: var(--or); }
.texte h2 { margin-top: 2.2rem; font-size: 2rem; }
.texte h3 { margin-top: 1.6rem; }
.texte ul { padding-left: 1.2rem; }
.texte li::marker { color: var(--or); }
.texte blockquote { margin: 1.5rem 0; padding-left: 1.2rem; border-left: 2px solid var(--or); font-family: var(--serif); font-size: 1.3rem; font-style: italic; color: var(--creme); }

/* Jeu : ouri */
.ouri { text-align: center; margin-bottom: 3rem; }
.ouri__modes { display: flex; justify-content: center; gap: .6rem; margin-bottom: 1rem; }
.ouri__options { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .6rem 1.4rem; margin-bottom: 1.4rem; font-size: .9rem; color: var(--doux); }
.ouri__options label { display: inline-flex; align-items: center; gap: .45rem; cursor: pointer; }
.ouri__options input { width: 1.1rem; height: 1.1rem; accent-color: var(--or); }
.ouri__score { font-family: var(--serif); font-size: 1.3rem; color: var(--doux); margin: .6rem 0; }
.ouri__score b { color: var(--or); font-weight: 500; font-size: 1.6rem; }
.ouri__table { position: relative; max-width: 700px; margin: 0 auto; padding: clamp(18px, 4vw, 30px); transition: transform .6s ease; }
.ouri__sens { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--or); opacity: .55; pointer-events: none; }
.ouri__fleche { position: absolute; color: var(--or); font-size: clamp(1rem, 3.5vw, 1.4rem); line-height: 1; background: var(--nuit); padding: 0 .3rem; pointer-events: none; }
.ouri__fleche--bas { bottom: 0; left: 50%; transform: translate(-50%, 45%); }
.ouri__fleche--haut { top: 0; left: 50%; transform: translate(-50%, -45%); }
.ouri__fleche--droite { right: 0; top: 50%; transform: translate(45%, -50%); }
.ouri__fleche--gauche { left: 0; top: 50%; transform: translate(-45%, -50%); }
.ouri__sens-texte { font-size: .88rem; color: var(--doux); max-width: 520px; margin: .2rem auto 1rem; }
.ouri__plateau { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(6px, 2vw, 14px); padding: clamp(10px, 3vw, 22px); background: linear-gradient(160deg, #5a3a1d, #3b2412); border-radius: 60px; border: 2px solid #7a5a26; box-shadow: inset 0 2px 10px rgba(0,0,0,.6), 0 10px 30px rgba(0,0,0,.4); }
.trou { position: relative; aspect-ratio: 1; border-radius: 50%; border: 0; background: radial-gradient(circle at 50% 40%, #2a180b, #1a0f07 70%); box-shadow: inset 0 4px 10px rgba(0,0,0,.8); cursor: pointer; padding: 0; color: var(--creme); transition: box-shadow .2s, transform .2s; }
.trou[aria-disabled="true"] { cursor: default; }
.trou--jouable { box-shadow: inset 0 4px 10px rgba(0,0,0,.8), 0 0 0 2px var(--or); }
.trou--choisi, .trou--depart { box-shadow: inset 0 4px 10px rgba(0,0,0,.8), 0 0 0 3px #f1e2bd; transform: translateY(-2px); }
.trou--actif { box-shadow: inset 0 0 18px rgba(228,205,151,.6), 0 0 0 3px var(--or-clair); transform: scale(1.06); }
.trou--cible { box-shadow: inset 0 4px 10px rgba(0,0,0,.8), 0 0 0 3px #7ec8e3, 0 0 16px rgba(126,200,227,.6); }
.trou--prise { box-shadow: inset 0 4px 10px rgba(0,0,0,.8), 0 0 0 3px #e8705a, 0 0 18px rgba(232,112,90,.7); animation: pulse .5s ease-in-out infinite alternate; }
@keyframes pulse { to { transform: scale(1.08); } }
.trou__graines { position: absolute; inset: 18%; display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 2px; }
.trou__graines i { width: 22%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #f1e2bd, #b08a4a 60%, #6b4d1f); }
.trou b { position: absolute; bottom: -4px; right: -2px; font: 600 .75rem/1 var(--sans); background: var(--nuit); color: var(--or-clair); border: 1px solid var(--trait); border-radius: 10px; padding: 2px 6px; }
.trou small { position: absolute; top: -2px; left: -2px; font: 500 .62rem/1 var(--sans); color: var(--doux); background: var(--nuit-2); border-radius: 50%; width: 1.3em; height: 1.3em; display: grid; place-items: center; }
.ouri__msg { font-family: var(--serif); font-size: 1.3rem; font-style: italic; color: var(--or-clair); min-height: 3.2em; max-width: 640px; margin: .4rem auto; line-height: 1.4; }
.ouri__journal-bloc { max-width: 640px; margin: 0 auto; text-align: left; font-size: .88rem; color: var(--doux); }
.ouri__journal-bloc summary { cursor: pointer; color: var(--or); text-align: center; }
.ouri__journal { padding-left: 1.2rem; }
.ouri__journal li { margin: .3rem 0; }
.ouri--duo.ouri--tour1 .ouri__table { transform: rotate(180deg); }
.ouri--duo.ouri--tour1 .trou b, .ouri--duo.ouri--tour1 .trou small, .ouri--duo.ouri--tour1 .ouri__fleche { rotate: 180deg; }

.pied { text-align: center; padding: 1rem 0 2rem; font-size: .85rem; color: var(--doux); }
