/* mcreation, dispositif « chinois » : la roue des 12 signes entre deux visages.
   Jetons du thème seulement ; rayons par --rad ; tout sur l'axe central.
   Contrastes : encre sur nacre 15,1:1 ; gris sur perle 6,9:1 ; rose foncé sur perle 5,1:1, sur nacre 5,4:1. */

.chinois__chapo { margin: 1rem auto 0; max-width: 36em; color: var(--gris); }

/* ---------- Premier écran : vous, la roue, l'autre ---------- */
.vis-a-vis {
  margin: clamp(1.6rem, 3.5svh, 2.6rem) auto 0; max-width: 72rem;
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); grid-template-areas: "a roue b";
  align-items: center; column-gap: clamp(1.5rem, 4vw, 4rem);
}
.face { display: grid; gap: 0.3rem; max-width: 17rem; }
.face--a { grid-area: a; justify-self: end; justify-items: end; text-align: right; }
.face--b { grid-area: b; justify-self: start; justify-items: start; text-align: left; }
.face__qui { font-size: var(--t-s); font-weight: 500; color: var(--rose-f); }
.face__signe { font-family: var(--f-titre); font-weight: 300; font-size: var(--t-xl); line-height: 1; letter-spacing: -0.01em; }
.face__el { font-family: var(--f-titre); font-style: italic; font-weight: 300; font-size: var(--t-m); }
.face__an { margin-top: 0.4rem; font-size: var(--t-s); color: var(--gris); max-width: 14em; }
.face--a::after, .face--b::before { content: ''; display: block; width: 3rem; height: 1px; background: var(--argent-f); }
.face--a::after { margin-top: 0.9rem; }
.face--b::before { margin-bottom: 0.9rem; }

.roue { grid-area: roue; display: grid; place-items: center; }
.roue__m { --w: clamp(19rem, 33vw, 27rem); }
.roue__glace { display: grid; place-items: center; }
/* Pas d’éclat fixe sur la roue : il effaçait le nom du signe en haut à gauche. */
.roue__m .m__reflet { display: none; }
.roue__svg { width: 100%; height: 100%; overflow: visible; }
.roue__cercle { fill: none; stroke: var(--argent-f); stroke-width: 1; }
.roue__trine { fill: none; stroke: var(--argent); stroke-width: 1; transition: fill 0.5s var(--ease), stroke 0.5s var(--ease); }
.roue__trine.is-on { fill: rgb(226 180 170 / 0.28); stroke: var(--rose-f); stroke-width: 2; }
.roue__aff, .roue__opp, .roue__paire { stroke: var(--rose-f); stroke-width: 2; opacity: 0; }
.roue__opp { stroke-dasharray: 2 6; stroke-linecap: round; }
.roue__paire { stroke: var(--gris); stroke-width: 1.2; stroke-dasharray: 5 5; }
.roue__aff.is-on, .roue__opp.is-on, .roue__paire.is-on { opacity: 1; }
.roue__pt { fill: var(--nacre); stroke: var(--argent-f); stroke-width: 1.2; transform-box: fill-box; transform-origin: center; transition: transform 0.5s var(--ease), fill 0.5s var(--ease); }
.roue__nom { font-family: var(--f-titre); font-size: 15px; fill: var(--encre); }
.roue__br { font-size: 13px; fill: var(--gris); }
.roue__signe.is-a .roue__pt, .roue__signe.is-b .roue__pt { fill: var(--rose-f); stroke: var(--rose-f); transform: scale(1.5); }
.roue__signe.is-a .roue__nom, .roue__signe.is-b .roue__nom { fill: var(--rose-f); font-weight: 400; text-decoration: underline; text-underline-offset: 3px; }

.verdict { margin: clamp(1.6rem, 3vw, 2.4rem) auto 0; max-width: 38rem; display: grid; justify-items: center; gap: 0.5rem; }
.verdict__type { font-family: var(--f-titre); font-style: italic; font-weight: 300; font-size: var(--t-l); line-height: 1.1; color: var(--rose-f); }
.verdict__txt { max-width: 34em; }
.verdict__el { font-size: var(--t-s); color: var(--gris); }

/* ---------- Les deux dates, de part et d'autre de l'axe ---------- */
.deux-dates {
  margin: clamp(1.6rem, 3svh, 2.4rem) auto 0; max-width: 46rem;
  display: grid; grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr); column-gap: clamp(1.4rem, 4vw, 3rem); align-items: end;
}
.deux-dates__groupe { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; justify-items: center; }
.deux-dates__groupe:first-of-type { justify-self: end; }
.deux-dates__groupe:last-of-type { justify-self: start; }
.deux-dates__leg { float: left; width: 100%; text-align: center; font-size: var(--t-xs); color: var(--gris); margin-bottom: 0.7rem; }
.deux-dates__champs { clear: both; display: flex; gap: 0.9rem; justify-content: center; }
.deux-dates__axe { align-self: stretch; background: linear-gradient(to bottom, transparent, var(--argent) 20%, var(--argent) 80%, transparent); }
.deux-dates__erreur { grid-column: 1 / -1; margin-top: 1.2rem; text-align: center; font-size: var(--t-s); color: var(--rose-f); }
.deux-dates__erreur[hidden] { display: none; }
.deux-dates__envoi { grid-column: 1 / -1; margin-top: 1.4rem; text-align: center; }

/* ---------- Le Nouvel An, décennie par décennie ---------- */
.nouvel-an { padding: var(--sec) var(--gout); background: var(--nacre); border-block: 1px solid var(--filet); }
.nouvel-an__decennies { margin: clamp(2.2rem, 4vw, 3rem) auto 0; max-width: 34rem; display: grid; }
.decennie { border-bottom: 1px solid var(--filet); }
.decennie:first-child { border-top: 1px solid var(--filet); }
.decennie__t {
  display: flex; justify-content: center; align-items: center; gap: 0.8rem; min-height: 3.2rem; cursor: pointer; list-style: none;
  font-family: var(--f-titre); font-weight: 300; font-size: var(--t-m);
}
.decennie__t::-webkit-details-marker { display: none; }
.decennie__t::after {
  --rad: var(--r-rond);
  content: '+'; display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: var(--rad);
  border: 1px solid var(--argent-f); font-family: var(--f-texte); font-size: var(--t-s); line-height: 1; transition: rotate 0.4s var(--ease);
}
.decennie[open] .decennie__t::after { rotate: 45deg; }
@media (hover: hover) { .decennie__t:hover { color: var(--rose-f); } }
.decennie__table { margin: 0.4rem auto 1.4rem; border-collapse: collapse; font-size: var(--t-s); }
.decennie__table thead th { padding: 0 0.9rem 0.5rem; font-weight: 400; font-size: var(--t-xs); color: var(--gris); text-align: center; }
.decennie__table td, .decennie__table tbody th { padding: 0.4rem 0.9rem; text-align: center; }
.decennie__table tbody th { font-family: var(--f-titre); font-weight: 400; font-size: var(--t-ms); font-variant-numeric: tabular-nums; }
.decennie__table tbody tr:nth-child(even) { background: var(--perle); }
.nouvel-an__note { margin: clamp(2rem, 4vw, 2.6rem) auto 0; max-width: 38em; text-align: center; font-size: var(--t-s); color: var(--gris); }

/* ---------- Les trois liens ---------- */
.liens-trad { padding: var(--sec) var(--gout); }
.trines { margin: clamp(2.5rem, 4.5vw, 3.5rem) auto 0; max-width: 44rem; display: grid; justify-items: center; text-align: center; gap: 0.5rem; }
.trines__t, .paires-trad__t, .cinq__t { font-family: var(--f-titre); font-weight: 300; font-size: var(--t-l); line-height: 1.1; }
.trines__sous, .paires-trad__sous { font-size: var(--t-s); color: var(--gris); }
.trines__liste { margin-top: 1rem; max-width: 34rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; }
.trines__item {
  --rad: var(--r-pilule);
  padding: 0.6rem 1.3rem; border-radius: var(--rad); background: var(--nacre);
  box-shadow: inset 0 0 0 1px var(--argent), 0 0 0 4px var(--perle), 0 0 0 5px rgb(200 204 209 / 0.5);
  font-family: var(--f-titre); font-style: italic; font-weight: 300; font-size: var(--t-ms);
}
.paires-trad { margin: clamp(3rem, 5vw, 4rem) auto 0; max-width: 52rem; display: grid; grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr); column-gap: clamp(1.5rem, 4vw, 3.5rem); }
.paires-trad__axe { background: linear-gradient(to bottom, transparent, var(--argent) 15%, var(--argent) 85%, transparent); }
.paires-trad__col { display: grid; justify-items: center; text-align: center; gap: 0.4rem; align-content: start; }
.paires-trad__liste { margin-top: 0.9rem; display: grid; gap: 0.45rem; font-size: var(--t-corps); }
.cinq { margin: clamp(3rem, 5vw, 4rem) auto 0; max-width: 40rem; display: grid; justify-items: center; text-align: center; gap: 0.8rem; }
.cinq p { color: var(--gris); }

/* ---------- La réserve : un miroir en arche ---------- */
.reserve-c { padding: 0 var(--gout) var(--sec); }
.reserve-c__miroir {
  --rad: 50% 50% 3px 3px / 10rem 10rem 3px 3px;
  margin-inline: auto; width: min(40rem, 100%); padding: clamp(4rem, 8vw, 5.5rem) clamp(1.6rem, 5vw, 3.5rem) clamp(2.2rem, 4vw, 3rem);
  display: grid; justify-items: center; text-align: center; gap: 0.9rem;
  border: 1px solid var(--argent); border-radius: var(--rad);
  background: radial-gradient(80% 60% at 50% 20%, var(--blanc), var(--rose-pale));
  box-shadow: 0 0 0 7px var(--perle), 0 0 0 8px rgb(200 204 209 / 0.6), var(--ombre-l);
}
.reserve-c__t { font-family: var(--f-titre); font-weight: 300; font-size: var(--t-l); line-height: 1.1; }
.reserve-c__miroir p { max-width: 32em; }

/* ---------- Pour aller plus loin ---------- */
.suite-c { padding: var(--sec) var(--gout); background: var(--nacre); border-top: 1px solid var(--filet); text-align: center; }
.suite-c__t { font-family: var(--f-titre); font-weight: 300; font-size: var(--t-l); line-height: 1.1; }
.suite-c__liste { margin: clamp(2rem, 4vw, 3rem) auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(2rem, 6vw, 5rem); }
.suite-c__item { width: min(17rem, 100%); }
.suite-c__lien { display: grid; justify-items: center; gap: 1rem; }
.suite-c__m { --w: 10rem; transition: translate 0.7s var(--ease); }
.suite-c__texte { display: grid; gap: 0.25rem; }
.suite-c__quoi { font-size: var(--t-xs); color: var(--gris); }
.suite-c__titre { font-family: var(--f-titre); font-size: var(--t-ms); line-height: 1.3; background: linear-gradient(currentColor 0 0) center bottom / 0 1px no-repeat; transition: background-size 0.45s var(--ease); }
@media (hover: hover) {
  .suite-c__lien:hover .suite-c__m { translate: 0 -0.4rem; }
  .suite-c__lien:hover .suite-c__titre { background-size: 100% 1px; }
  .suite-c__lien:hover .m__reflet::before { translate: 220% 0; }
}
.suite-c__lien:focus-visible .suite-c__titre { background-size: 100% 1px; }

/* ---------- Sources ---------- */
.biblio-c { padding: clamp(2.5rem, 5vw, 4rem) var(--gout) var(--sec); text-align: center; }
.biblio-c__t { font-family: var(--f-titre); font-weight: 300; font-size: var(--t-m); }
.biblio-c__liste { margin: 1.2rem auto 0; max-width: 46em; display: grid; gap: 0.6rem; font-size: var(--t-s); color: var(--gris); }
.biblio-c__date { margin-top: 1.2rem; font-size: var(--t-xs); color: var(--gris); }

/* ---------- Tablette et téléphone ---------- */
@media (max-width: 899px) {
  /* La règle mobile de .outil réordonne ses enfants en colonne : ici l'ordre du document suffit. */
  .outil.chinois { display: block; }
  .vis-a-vis { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "roue roue" "a b"; row-gap: 1.8rem; column-gap: 1.2rem; }
  .face--a, .face--b { justify-self: center; justify-items: center; text-align: center; }
  .face--a::after, .face--b::before { display: none; }
  .face__signe { font-size: var(--t-l); }
  .face__el { font-size: var(--t-ms); }
  .face__an { font-size: var(--t-xs); }
  .roue__m { --w: min(23rem, 88vw); }
}
@media (max-width: 599px) {
  .deux-dates { grid-template-columns: 1fr; row-gap: 1.6rem; }
  .deux-dates__groupe:first-of-type, .deux-dates__groupe:last-of-type { justify-self: center; }
  .deux-dates__axe { width: 4rem; height: 1px; justify-self: center; background: var(--argent); }
  .paires-trad { grid-template-columns: 1fr; row-gap: 2.4rem; }
  .paires-trad__axe { display: none; }
  .roue__nom { font-size: 17px; }
}
