/* pages/mentions.css — /mentions/, gabarit UTILITAIRE : aucune animation continue (STYLEGUIDE §3.6).
   « Les petites lignes ? » / « En grand. » : les mentions sont composées comme un formulaire déjà rempli —
   la question en délié côté rouge, la réponse côté violet, le numéro posé sur la couture comme un nœud.
   Le héros est inversé (violet | rouge, couture à 55 %) ; le corps revient à 45 % : la couture fait un pas,
   et le sceau de l'association scelle ce pas, à cheval sur les deux sections (débordement §9.7).
   Mouvement : intro d'une mesure (le sceau est apposé sur le 4ᵉ temps), reveal du titre, micro-interactions. */

.page-mentions { --mt-sceau: clamp(10.5rem, 6rem + 12vw, 15.5rem); --mt-pend: .62; }

/* =================================================================== LES PETITES LIGNES ? — EN GRAND. */
.mt-scene {
  position: relative; z-index: 2;     /* le sceau passe au-dessus des lignes */
  padding: clamp(1.5rem, 5vh, 3.5rem) 0 calc(var(--mt-sceau) * (1 - var(--mt-pend)) + clamp(2.5rem, 6vh, 4.5rem));
}
.mt-sur { padding-inline: var(--marge); margin-bottom: clamp(.8rem, 2vh, 1.4rem); }
.mt-titre { padding-inline: var(--marge); line-height: .86; }
.mt-titre .duo-q, .mt-titre .duo-r { overflow: clip; overflow-clip-margin: .14em; }
.mt-titre .ligne { display: block; }
.mt-titre .duo-q { font-size: clamp(3.25rem, 1rem + 6.2vw, 7rem); font-variation-settings: 'wdth' 92, 'wght' 200; padding-bottom: .04em; }
/* « En grand. » : la réponse prend toute la largeur (bord à bord), réelle et redimensionnable (rem + vw) */
.mt-titre .duo-r {
  font-size: clamp(4.75rem, .4rem + 20.2vw, 18rem); line-height: .82;
  font-variation-settings: 'wdth' 54, 'wght' 900; letter-spacing: -.01em;
  text-align: right; margin-top: .02em; padding-bottom: .04em;
}
.mt-chapeau { padding: clamp(1.4rem, 3vh, 2.25rem) var(--marge) 0; max-width: calc(var(--mesure-texte) + 2 * var(--marge)); font-size: var(--t-corps); line-height: 1.45; }
.mt-sommaire { padding: clamp(1.6rem, 4vh, 2.75rem) var(--marge) 0; }
.mt-sommaire ol { display: flex; flex-wrap: wrap; gap: .4rem .5rem; }
.mt-sommaire a {
  display: inline-flex; align-items: center; gap: .5em;
  min-height: 44px; padding: 0 1em 0 .3em;
  border: 2px solid var(--or); border-radius: 999px;
  color: var(--texte); text-decoration: none;
  font-size: var(--t-petit); font-weight: 700; white-space: nowrap;
  transition: background-color 200ms var(--elan), color 200ms var(--elan), translate 160ms var(--elan);
}
.mt-sommaire .mt-n { width: 1.9em; height: 1.9em; font-size: .8em; }
.mt-sommaire a:hover { background: var(--or); color: var(--encre); }
.mt-sommaire a:hover .mt-n { background: var(--encre); color: var(--texte); }
.mt-sommaire a:active { translate: 0 2px; }

/* le numéro : un petit nœud blanc (le y des cartes, ici un chiffre) */
.mt-n {
  display: inline-grid; place-items: center; flex: none;
  width: 1.55em; height: 1.55em; border-radius: 50%;
  background: var(--or); color: var(--encre);
  font-family: var(--f-display); font-weight: 900; font-variation-settings: var(--noeud);
  font-size: .9em; line-height: 1; font-variant-numeric: tabular-nums;
  transition: background-color 200ms var(--elan), color 200ms var(--elan), rotate 420ms var(--prise);
}

/* ---- le sceau : à cheval sur le pas de la couture (55 % → 45 %), centré à 50 % */
/* le logo en disque (charte : intact, jamais pivoté, sans ombre), à cheval sur le filet */
.mt-sceau {
  position: absolute; z-index: 3; left: 50%; bottom: calc(-1 * var(--mt-sceau) * var(--mt-pend));
  width: var(--mt-sceau); margin-left: calc(var(--mt-sceau) / -2);
}

/* ---- intro : une mesure. 1 la question monte · 2 la réponse suit · 3 le disque se pose (sans rotation) */
@media (prefers-reduced-motion: no-preference) {
  .mt-titre .duo-q .ligne { animation: mt-monte calc(var(--temps) * 1.4) var(--elan) 40ms both; }
  .mt-titre .duo-r .ligne { animation: mt-monte calc(var(--temps) * 1.5) var(--elan) var(--temps) both; }
  .mt-sceau { animation: mt-appose var(--mesure) var(--elan) both; }
}
@keyframes mt-monte { from { transform: translateY(104%); } }
@keyframes mt-appose {
  0%   { transform: translateY(-14%); opacity: 0; }
  40%  { opacity: 1; }
  100% { transform: none; opacity: 1; }
}

/* =================================================================== LES LIGNES : question | réponse */
.mt-lignes {
  padding: calc(var(--mt-sceau) * var(--mt-pend) + clamp(3rem, 8vw, 6.5rem)) 0 var(--pas);
}
.mt-ligne { scroll-margin-top: calc(var(--barre-h) + 1rem); }
.mt-ligne + .mt-ligne { margin-top: clamp(3.5rem, 9vw, 8rem); }
.mt-q {
  display: flex; align-items: baseline; gap: .45em;
  padding: 0 var(--marge);
  font-family: var(--f-display); font-weight: 300; font-variation-settings: 'wdth' 118, 'wght' 300;
  font-size: clamp(1.75rem, 1.05rem + 3vw, 4.25rem); line-height: 1;
}
.mt-q .mt-n { font-size: .5em; align-self: center; translate: 0 -.1em; }
/* la question monte derrière son masque en entrant dans l'écran (reveal masqué : translate seul, aucun reflux de texte) */
.mt-q-txt { display: block; overflow: clip; overflow-clip-margin: .1em; padding-bottom: .06em; margin-bottom: -.06em; }
.mt-q-l { display: block; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .mt-q-l {
      animation-name: mt-revele; animation-duration: 1ms; animation-timing-function: var(--elan); animation-fill-mode: both;
      animation-timeline: view(); animation-range: entry 10% entry 100%;
    }
  }
}
@keyframes mt-revele { from { translate: 0 105%; } }
.sans-sd .mt-q-l { transition: translate 700ms var(--elan); }
.sans-sd .mt-q:not(.vu) .mt-q-l { translate: 0 105%; }
.mt-r { padding: clamp(1.1rem, 2.4vw, 1.75rem) var(--marge) 0; min-width: 0; }
.mt-r > * + * { margin-top: 1.1rem; }
.mt-grand {
  font-family: var(--f-display); font-weight: 900; font-variation-settings: var(--plein);
  font-size: clamp(3rem, 1.4rem + 6.4vw, 8.5rem); line-height: .86; letter-spacing: -.005em;
}
.mt-grand--attente { font-size: clamp(1.75rem, 1rem + 3.2vw, 4.25rem); line-height: .95; }
.mt-grand mark.ac { vertical-align: .55em; font-size: var(--t-mini); }
.mt-sous { font-size: var(--t-corps); font-weight: 600; }
.mt-citation { max-width: 30ch; font-size: clamp(1.4rem, 1rem + 1.9vw, 2.6rem); }
.mt-faits { display: grid; gap: 0; max-width: 40rem; }
.mt-fait { display: grid; grid-template-columns: minmax(0, 1fr); gap: .15rem; padding-block: .7rem; border-top: 1px solid var(--filet); }
.mt-fait:last-child { border-bottom: 1px solid var(--filet); }
.mt-fait dt { font-size: var(--t-mini); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; line-height: 1.3; }
.mt-fait dd { margin: 0; font-size: var(--t-corps); line-height: 1.4; }
.mt-fait a, .mt-donnees a, .mt-licence a { font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: .22em; transition: text-underline-offset 240ms var(--prise); }
.mt-fait a:hover, .mt-licence a:hover { text-underline-offset: .4em; }
.mt-adresse {
  font-family: var(--f-display); font-weight: 900; font-variation-settings: 'wdth' 62, 'wght' 900;
  font-size: clamp(2rem, 1.2rem + 3.4vw, 4.5rem); line-height: .92;
}
.mt-texte { font-size: var(--t-corps); line-height: var(--interligne); }

/* ---- la planche-contact des crédits : 16 vignettes, une encre sur deux ; la couleur seulement au survol */
.mt-planche-cadre { margin-top: clamp(2rem, 5vw, 3.5rem); padding-inline: var(--marge); }
.mt-planche-titre { margin-bottom: .9rem; }
.mt-planche { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.4rem, 1vw, .75rem); }
.mt-photo figure { margin: 0; }
.mt-photo picture { position: relative; display: block; aspect-ratio: 1; overflow: clip; background: var(--encre); }
.mt-photo img { width: 100%; height: 100%; object-fit: cover; transition: scale 600ms var(--prise); }
.mt-photo picture::after {
  content: ""; position: absolute; inset: 0;
  background: center / cover no-repeat;
  opacity: 0; transition: opacity 420ms var(--elan);
}
.mt-photo figcaption { margin-top: .3rem; font-size: var(--t-mini); font-weight: 700; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
@media (hover: hover) and (pointer: fine) {
  .mt-photo:hover picture::after { background-image: var(--c); opacity: 1; }   /* demandée au survol seulement */
  .mt-photo:hover img { scale: 1.04; }
}

/* ---- les polices : un spécimen qui passe du délié au plein (≤ 20 glyphes, au survol seulement) */
.mt-police + .mt-police { margin-top: 1.75rem; }
.mt-police p:not(.mt-specimen) { max-width: var(--mesure-texte); font-size: var(--t-corps); }
.mt-specimen {
  font-size: clamp(3rem, 1rem + 5.6vw, 7.5rem); line-height: .9;
  transition: font-variation-settings 900ms var(--elan), font-weight 900ms var(--elan);
}
.mt-police--anybody .mt-specimen { font-family: var(--f-display); font-weight: 200; font-variation-settings: 'wdth' 150, 'wght' 200; }
.mt-police--epilogue .mt-specimen { font-family: var(--f-texte); font-weight: 200; letter-spacing: -.02em; }
@media (hover: hover) and (pointer: fine) {
  .mt-police--anybody:hover .mt-specimen { font-weight: 900; font-variation-settings: 'wdth' 50, 'wght' 900; }
  .mt-police--epilogue:hover .mt-specimen { font-weight: 900; }
}
.mt-licence { font-size: var(--t-petit); }

/* ---- les données */
.mt-donnees { display: grid; gap: .9rem; max-width: calc(var(--mesure-texte) + 4rem); }
.mt-donnees li { position: relative; padding-left: 1.6rem; font-size: var(--t-corps); line-height: 1.45; }
.mt-donnees li::before { content: ""; position: absolute; left: 0; top: .5em; width: .7rem; height: .7rem; border-radius: 50%; background: var(--or); }
.mt-donnees strong { font-weight: 800; }
.mt-attente { font-size: var(--t-petit); }

/* =================================================================== TÉLÉPHONE ET TABLETTE : une colonne, les couleurs se touchent sous le texte */
@media (max-width: 899px) {
  /* le fil blanc de la couture passerait au travers des paragraphes : sous le texte courant, les couleurs se touchent */
  .mt-scene { background: var(--fond-inverse-touche); }
  .mt-lignes { background: var(--fond-touche); }
}
@media (hover: none), (pointer: coarse) { .mt-si-survol { display: none; } }

/* =================================================================== BUREAU (≥ 900 px) : la question contre la couture, le numéro sur la couture */
@media (min-width: 900px) {
  .mt-chapeau, .mt-sommaire { margin-left: 0; }
  .mt-scene { display: grid; grid-template-columns: var(--part-guide) var(--part-suit); }
  .mt-sur, .mt-titre { grid-column: 1 / -1; }
  .mt-chapeau { grid-column: 1; padding-right: clamp(1rem, 3vw, 3rem); max-width: none; }
  .mt-chapeau p { max-width: 30rem; }
  .mt-sommaire { grid-column: 2; padding-left: clamp(1rem, 2.4vw, 2.5rem); padding-top: clamp(1.4rem, 3vh, 2.25rem); }
  .mt-ligne { display: grid; grid-template-columns: var(--part-suit) var(--part-guide); align-items: start; position: relative; }
  /* la question tient la réponse pendant qu'on la lit : elle reste à l'écran (collante) le long de sa ligne */
  .mt-q {
    grid-column: 1; grid-row: 1; justify-content: flex-end; text-align: right;
    position: sticky; top: calc(var(--barre-h) + 2rem);
    padding: .15em calc(clamp(1rem, 2.4vw, 2.5rem) + .9rem) 0 var(--marge);
  }
  /* le numéro quitte la ligne : il se pose sur la couture (bord droit de la question), comme le y des couples */
  .mt-q .mt-n { position: absolute; left: 100%; top: .45rem; margin-left: -1.3rem; width: 2.6rem; height: 2.6rem; font-size: 1.3rem; translate: none; }
  .mt-r { grid-column: 2; grid-row: 1; padding: 0 var(--marge) 0 calc(clamp(1rem, 2.4vw, 2.5rem) + .9rem); }
  .mt-planche-cadre { grid-column: 1 / -1; grid-row: 2; }
  .mt-planche { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .mt-ligne--photos .mt-planche-cadre { padding-top: .5rem; }
  /* la ligne des photos a une 2e rangée pleine largeur (la planche-contact) : Chrome borne le collant à toute la grille, pas à sa
     rangée, et la question passait par-dessus les vignettes ; ici, elle reste en tête de sa réponse */
  .mt-ligne--photos .mt-q { position: relative; top: auto; }
  .mt-ligne:hover .mt-q .mt-n { rotate: -12deg; }
}

/* PIED : le disque du logo qui roule sur la couture est dans composants.css §14 (commun à toutes les pages). */

/* très petit écran / zoom 400–500 % */
@media (max-width: 21.9rem) {
  .mt-titre .duo-q { font-size: 2.6rem; }
  .mt-titre .duo-r { font-size: 3.6rem; text-align: left; }
  .mt-grand { font-size: 2.6rem; }
  .mt-planche { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mt-sommaire a { white-space: normal; }
  .mt-specimen { font-size: 2.6rem; overflow-wrap: anywhere; }
}
