/* mcreation, dispositif « genies » : les trois génies d'une naissance.
   Jetons du thème seulement ; rayons par --rad ; tout sur l'axe central.
   Contrastes : encre sur nacre 15,1:1 ; gris sur nacre 7,4:1 ; rose foncé sur nacre 5,4:1, sur rose pâle 4,8:1. */

/* ---------- Premier écran : le triptyque des miroirs ---------- */
.genies__chapo { margin: 1rem auto 0; max-width: 36em; color: var(--gris); }

.trio {
  margin: clamp(1.8rem, 4svh, 2.8rem) auto 0; max-width: 64rem;
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); grid-template-areas: "coeur corps intel";
  align-items: start; justify-items: center; column-gap: clamp(1.5rem, 4vw, 4rem);
}
.trio__item { display: grid; justify-items: center; text-align: center; gap: 0.35rem; }
.trio__item--corps { grid-area: corps; }
.trio__item--coeur { grid-area: coeur; justify-self: end; padding-top: clamp(2.5rem, 6vw, 5rem); }
.trio__item--intel { grid-area: intel; justify-self: start; padding-top: clamp(2.5rem, 6vw, 5rem); }
.trio__m { --w: clamp(10.5rem, 14vw, 13rem); margin-bottom: 1rem; }
.trio__item--corps .trio__m { --w: clamp(15rem, 25vw, 21rem); }
.trio__glace { display: grid; place-content: center; justify-items: center; gap: 0.3rem; padding: 12%; container-type: inline-size; }
.trio__n { font-family: var(--f-titre); font-weight: 300; font-size: var(--t-xl); line-height: 1; letter-spacing: 0.02em; color: var(--rose-f); font-variant-numeric: tabular-nums; }
.trio__item--corps .trio__n { font-size: var(--t-nom); }
.trio__nom { font-family: var(--f-titre); font-style: italic; font-weight: 300; font-size: var(--t-m); line-height: 1.15; max-width: 9em; overflow-wrap: anywhere; }
.trio__item--corps .trio__nom { font-size: var(--t-l); }
.trio__role { font-family: var(--f-titre); font-weight: 400; font-size: var(--t-ms); line-height: 1.2; }
.trio__regle { font-size: var(--t-s); color: var(--gris); max-width: 16em; }
.trio__resume { margin: clamp(1.6rem, 3vw, 2.4rem) auto 0; max-width: 34em; font-family: var(--f-titre); font-style: italic; font-weight: 300; font-size: var(--t-ms); line-height: 1.45; }

/* ---------- Le formulaire : deux groupes de part et d'autre de l'axe ---------- */
.naissance {
  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;
}
.naissance__groupe { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; justify-items: center; gap: 0.7rem; }
.naissance__groupe:first-of-type { justify-self: end; }
.naissance__groupe:last-of-type { justify-self: start; }
.naissance__leg { float: left; width: 100%; text-align: center; font-size: var(--t-xs); color: var(--gris); margin-bottom: 0.7rem; }
.naissance__champs { clear: both; display: flex; gap: 0.9rem; justify-content: center; }
.naissance__axe { align-self: stretch; background: linear-gradient(to bottom, transparent, var(--argent) 20%, var(--argent) 80%, transparent); }
.naissance__erreur { grid-column: 1 / -1; margin-top: 1.2rem; text-align: center; font-size: var(--t-s); color: var(--rose-f); }
.naissance__erreur[hidden] { display: none; }
.naissance__envoi { grid-column: 1 / -1; margin-top: 1.4rem; text-align: center; }

/* ---------- Trois règles : une colonne sur l'axe, un repère rond entre chaque ---------- */
.horloges { padding: var(--sec) var(--gout); }
.horloges__liste { margin: clamp(2.5rem, 4.5vw, 3.5rem) auto 0; max-width: 40rem; display: grid; }
.horloge { position: relative; display: grid; justify-items: center; text-align: center; gap: 0.7rem; padding-block: clamp(2rem, 4vw, 3rem); }
.horloge + .horloge::before {
  --rad: var(--r-rond);
  content: ''; position: absolute; top: -0.5rem; left: 50%; width: 1rem; height: 1rem; translate: -50% 0;
  border-radius: var(--rad); background: var(--verre); box-shadow: 0 0 0 1px var(--argent-f), 0 0 0 5px var(--perle), 0 0 0 6px var(--argent);
}
.horloge + .horloge { border-top: 1px solid var(--filet); }
.horloge__quoi { font-size: var(--t-s); color: var(--rose-f); font-weight: 500; }
.horloge__t { font-family: var(--f-titre); font-weight: 300; font-size: var(--t-l); line-height: 1.1; }
.horloge p:not([class]) { max-width: 34em; color: var(--gris); }
.horloge__ex {
  --rad: var(--r-pilule);
  margin-top: 0.4rem; padding: 0.55rem 1.2rem; max-width: 34em;
  border-radius: var(--rad); background: var(--rose-pale); color: var(--encre);
  font-family: var(--f-titre); font-style: italic; font-weight: 300; font-size: var(--t-corps); line-height: 1.4;
}
.horloge__ex sup { font-size: 0.6em; }

/* ---------- La table des 72 ---------- */
.registre { padding: var(--sec) var(--gout); background: var(--nacre); border-block: 1px solid var(--filet); }
.registre__filtres { margin: 2.2rem auto 0; max-width: 56rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.45rem; }
.registre__filtres[hidden] { display: none; }
.registre__cadre { margin: clamp(2rem, 4vw, 3rem) auto 0; max-width: 62rem; }
.registre__table { width: 100%; border-collapse: collapse; font-size: var(--t-s); line-height: 1.45; }
.registre__table thead th { padding: 0 0.8rem 0.8rem; font-weight: 400; font-size: var(--t-xs); color: var(--gris); text-align: left; border-bottom: 1px solid var(--encre); }
.registre__table td, .registre__table tbody th { padding: 0.75rem 0.8rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--filet); }
.registre__table tr[hidden] { display: none; }
.registre__n { width: 3rem; color: var(--gris); font-variant-numeric: tabular-nums; }
.registre__nom { font-family: var(--f-titre); font-weight: 400; font-size: var(--t-ms); white-space: nowrap; }
.registre__table td:nth-child(3), .registre__table td:nth-child(5) { white-space: nowrap; }
.registre__lib { display: none; }
.registre__table tr.is-vous td, .registre__table tr.is-vous th { background: var(--rose-pale); }
.registre__table tr.is-vous .registre__nom { color: var(--rose-f); }

/* ---------- Les variantes : deux colonnes autour de l'axe ---------- */
.variantes { padding: var(--sec) var(--gout); }
.variantes__paire { margin: clamp(2.5rem, 4.5vw, 3.5rem) auto 0; max-width: 60rem; display: grid; grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr); column-gap: clamp(1.5rem, 4vw, 3.5rem); }
.variantes__axe { background: linear-gradient(to bottom, transparent, var(--argent) 12%, var(--argent) 88%, transparent); }
.variantes__col { display: grid; gap: clamp(2rem, 3.5vw, 2.8rem); align-content: start; }
.variantes__col--d { padding-top: clamp(2.5rem, 5vw, 4rem); }
.variante { display: grid; justify-items: center; text-align: center; gap: 0.5rem; }
.variante::before {
  --rad: var(--r-ovale);
  content: ''; width: 1.6rem; aspect-ratio: 10 / 13; border-radius: var(--rad); margin-bottom: 0.3rem;
  background: var(--verre); box-shadow: 0 0 0 1px var(--argent-f), 0 6px 12px -8px rgb(31 35 39 / 0.4);
}
.variante__t { font-family: var(--f-titre); font-style: italic; font-weight: 300; font-size: var(--t-m); line-height: 1.2; }
.variante p { max-width: 30em; color: var(--gris); font-size: var(--t-s); }

/* ---------- La réserve : un grand miroir ovale couché ---------- */
.reserve { padding: 0 var(--gout) var(--sec); }
.reserve__miroir {
  --rad: 999px / 50%;
  margin-inline: auto; width: min(46rem, 100%); padding: clamp(2.4rem, 5vw, 3.6rem) clamp(1.6rem, 6vw, 5rem);
  display: grid; justify-items: center; text-align: center; gap: 0.9rem;
  border: 1px solid var(--argent); border-radius: var(--rad);
  background: radial-gradient(70% 80% at 50% 25%, var(--blanc), var(--rose-pale));
  box-shadow: 0 0 0 8px var(--perle), 0 0 0 9px rgb(200 204 209 / 0.6), var(--ombre-l);
}
.reserve__t { font-family: var(--f-titre); font-weight: 300; font-size: var(--t-l); line-height: 1.1; }
.reserve__miroir p { max-width: 34em; }

/* ---------- Pour aller plus loin ---------- */
.suite { padding: var(--sec) var(--gout); background: var(--nacre); border-top: 1px solid var(--filet); text-align: center; }
.suite__t { font-family: var(--f-titre); font-weight: 300; font-size: var(--t-l); line-height: 1.1; }
.suite__liste { margin: clamp(2rem, 4vw, 3rem) auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(2rem, 6vw, 5rem); }
.suite__item { width: min(17rem, 100%); }
.suite__lien { display: grid; justify-items: center; gap: 1rem; }
.suite__m { --w: 8.5rem; transition: translate 0.7s var(--ease); }
.suite__glace { display: grid; place-items: center; }
.suite__emb { font-family: var(--f-titre); font-weight: 300; font-size: var(--t-m); }
.suite__texte { display: grid; gap: 0.25rem; }
.suite__quoi { font-size: var(--t-xs); color: var(--gris); }
.suite__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__lien:hover .suite__m { translate: 0 -0.4rem; }
  .suite__lien:hover .suite__titre { background-size: 100% 1px; }
  .suite__lien:hover .m__reflet::before { translate: 220% 0; }
}
.suite__lien:focus-visible .suite__titre { background-size: 100% 1px; }

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

/* ---------- 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.genies { display: block; }
}
@media (max-width: 699px) {
  .trio { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "corps corps" "coeur intel"; row-gap: 1.6rem; column-gap: 1rem; }
  .trio__item--coeur, .trio__item--intel { justify-self: center; padding-top: 0; }
  .trio__m { --w: min(9.5rem, 40vw); }
  .trio__item--corps .trio__m { --w: min(15.5rem, 70vw); }
  .trio__n { font-size: var(--t-l); }
  .trio__nom { font-size: var(--t-ms); }
  .naissance { grid-template-columns: 1fr; row-gap: 1.6rem; }
  .naissance__groupe:first-of-type, .naissance__groupe:last-of-type { justify-self: center; }
  .naissance__axe { width: 4rem; height: 1px; justify-self: center; background: var(--argent); }
  .variantes__paire { grid-template-columns: 1fr; row-gap: 2.2rem; }
  .variantes__axe { display: none; }
  .variantes__col--d { padding-top: 0; }
  .registre__table thead { display: none; }
  .registre__table, .registre__table tbody { display: block; }
  .registre__table tr { display: grid; grid-template-columns: auto 1fr; column-gap: 0.8rem; padding: 1rem 0.2rem; border-bottom: 1px solid var(--filet); }
  .registre__table tr[hidden] { display: none; }
  .registre__table td, .registre__table tbody th { padding: 0.15rem 0; border: 0; }
  .registre__n { grid-row: 1; width: auto; align-self: baseline; }
  .registre__nom { grid-row: 1; align-self: baseline; }
  .registre__table td:nth-child(n+3) { grid-column: 1 / -1; white-space: normal; display: grid; grid-template-columns: 6.2rem minmax(0, 1fr); column-gap: 0.5rem; }
  .registre__lib { display: block; color: var(--gris); font-size: var(--t-xs); padding-top: 0.15rem; }
  .registre__table tr.is-vous { background: var(--rose-pale); }
  .registre__table tr.is-vous td, .registre__table tr.is-vous th { background: none; }
}
