/* Retrouvailles · page de marque
   Elle s'appuie sur /style.css (jetons, polices, composants du site) et n'ajoute que sa mise en page.
   Le seul moment fort est la table des applications, sur sapin-nuit : les objets posés comme sur la tablée. */

:root {
  --m-filet: #d9ddc9;          /* filets sur fond clair, déjà employé par la FAQ du site */
  --m-filet-sombre: rgb(251 250 243 / 0.16);
  --m-rouge: #9b2c1f;          /* croix des interdits, la couleur d'erreur du formulaire : 7,1:1 sur nappe */
  --m-voile: rgb(19 38 30 / 0.62);
  --m-voile-fort: rgb(19 38 30 / 0.85);
  --m-cadre-telephone: var(--encre);
  --m-rayon-telephone: 2.4rem;
  --m-rayon-ecran: 1.9rem;
  --m-rayon-story: 1.1rem;
  --m-objet-etroit: 19rem;     /* story et téléphone : largeur d'un vrai écran à l'échelle */

  /* couleurs volontairement hors charte, pour les seuls contre-exemples */
  --m-faux-rouge: #d64545;
  --m-faux-bleu: #2f6fde;
}

a.bouton {
  text-decoration: none;
}

/* ---------- Couverture ---------- */

.m-couverture {
  position: relative;
  min-height: max(34rem, 86svh);
  display: grid;
  align-items: end;
  background: var(--sapin-nuit);
  color: var(--nappe);
  overflow: hidden;
}
.m-couverture-photo,
.m-couverture-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.m-couverture-photo img {
  object-fit: cover;
  object-position: 50% 70%;
}
.m-couverture::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, var(--m-voile-fort) 0%, var(--m-voile) 38%, rgb(19 38 30 / 0) 70%),
    linear-gradient(180deg, rgb(19 38 30 / 0.55) 0%, rgb(19 38 30 / 0) 22%);
}
.m-couverture-texte {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: calc(var(--largeur) + 2 * var(--gouttiere));
  margin-inline: auto;
  padding: calc(var(--hauteur-entete) + var(--e-7)) var(--gouttiere) var(--e-8);
}
.m-couverture-logo {
  width: clamp(15rem, 10rem + 24vw, 36rem);
}
.m-couverture-titre {
  margin-top: var(--e-6);
  font-family: var(--police-titre);
  font-size: var(--t-h2);
  line-height: 1.05;
  max-width: 18ch;
}
.m-couverture-texte p {
  margin-top: var(--e-4);
  max-width: 34rem;
  font-size: var(--t-chapo);
  line-height: 1.45;
  color: var(--nappe);
}

/* ---------- Sommaire ---------- */

.m-sommaire {
  background: var(--sapin);
  color: var(--nappe);
  padding: var(--e-6) var(--gouttiere);
}
.m-sommaire ol {
  max-width: var(--largeur);
  margin: 0 auto;
  padding: 0;
  list-style: none;
  counter-reset: chapitre;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
  gap: var(--e-2) var(--e-6);
}
/* un li en flex ne compte plus comme élément de liste : compteur à nous */
.m-sommaire li {
  counter-increment: chapitre;
  display: flex;
  align-items: baseline;
  gap: var(--e-3);
}
.m-sommaire li::before {
  content: counter(chapitre);
  min-width: 1.2em;
  font-family: var(--police-titre);
  font-size: var(--t-h3);
  line-height: 1;
  color: var(--guirlande);
  font-variant-numeric: tabular-nums;
}
.m-sommaire a {
  display: inline-block;
  padding-block: var(--e-2);
  color: var(--nappe);
  font-weight: 600;
  text-decoration: none;
}
@media (hover: hover) and (pointer: fine) {
  .m-sommaire a:hover {
    text-decoration: underline;
    text-underline-offset: 0.2em;
  }
}

/* ---------- Chapitres : enveloppe commune ---------- */

.m-chapitre {
  padding: var(--e-9) var(--gouttiere);
}
.m-chapitre > * {
  max-width: var(--largeur);
  margin-inline: auto;
}
.m-clair {
  background: var(--nappe);
}
.m-pre {
  background: var(--pre);
}
.m-sombre {
  background: var(--sapin);
  color: var(--nappe);
}
.m-table {
  background: var(--sapin-nuit);
  color: var(--nappe);
}
.m-titre {
  display: flex;
  align-items: baseline;
  gap: var(--e-4);
  font-family: var(--police-titre);
  font-size: var(--t-h2);
  line-height: 1.05;
  color: var(--sapin);
}
.m-numero {
  color: var(--miel);
  font-variant-numeric: tabular-nums;
}
.m-sombre .m-titre,
.m-table .m-titre {
  color: var(--nappe);
}
.m-sombre .m-numero,
.m-table .m-numero {
  color: var(--guirlande);
}
.m-chapo {
  margin-top: var(--e-5);
  font-size: var(--t-chapo);
  line-height: 1.45;
  color: var(--encre-douce);
}
.m-chapitre > .m-chapo {
  margin-left: 0;
  max-width: 40rem;
}
@media (min-width: 1280px) {
  .m-chapitre > .m-chapo {
    margin-left: max(0px, calc((100% - var(--largeur)) / 2));
  }
}
.m-sombre .m-chapo,
.m-table .m-chapo {
  color: var(--mousse);
}
.m-sous-titre {
  margin-top: var(--e-8);
  margin-bottom: var(--e-5);
  font-family: var(--police-titre);
  font-size: var(--t-h3);
  line-height: 1.2;
  color: var(--sapin);
}
.m-sombre .m-sous-titre {
  color: var(--guirlande);
}
.m-legende {
  margin-top: var(--e-3);
  font-size: var(--t-petit);
  color: var(--encre-douce);
}
.m-chapitre > .m-legende {
  max-width: min(var(--largeur), 46rem);
  margin-left: max(0px, calc((100% - var(--largeur)) / 2));
}
.m-chapitre figure {
  margin: 0;
}
.m-chapitre > figure {
  margin-inline: auto;
}
.m-chapitre code {
  font-size: 0.9em;
}

/* Règles : la coche du site, « c'est la règle » */
.m-regles {
  list-style: none;
  margin-top: var(--e-6);
  padding: 0;
  display: grid;
  gap: var(--e-3);
}
.m-regles li {
  position: relative;
  max-width: 44rem;
  padding-left: 1.9rem;
}
.m-regles li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.3em;
  width: 0.55rem;
  height: 0.95rem;
  border: solid var(--miel);
  border-width: 0 3px 3px 0;
  transform: rotate(42deg);
}

/* Pictos fonctionnels : oui, non */
.m-croix,
.m-coche {
  position: relative;
  display: inline-block;
  flex: none;
  width: 1.1em;
  height: 1.1em;
  margin-right: var(--e-2);
  vertical-align: -0.15em;
}
.m-croix::before,
.m-croix::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1.05em;
  height: 3px;
  border-radius: 2px;
  background: var(--m-rouge);
  transform: translate(-50%, -50%) rotate(45deg);
}
.m-croix::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
.m-sombre .m-croix::before,
.m-sombre .m-croix::after {
  background: var(--guirlande);
}
.m-coche::before {
  content: "";
  position: absolute;
  left: 0.3em;
  top: 0;
  width: 0.45em;
  height: 0.85em;
  border: solid var(--sapin);
  border-width: 0 3px 3px 0;
  transform: rotate(42deg);
}

/* ---------- 1. Plateforme ---------- */

.m-plateforme {
  margin-top: var(--e-7);
  display: grid;
  gap: var(--e-6) var(--e-8);
}
.m-enonce h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--miel);
}
.m-grand {
  margin-top: var(--e-2);
  font-family: var(--police-titre);
  font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.75rem);
  line-height: 1.1;
  color: var(--sapin);
  max-width: 22ch;
}
.m-enonce-texte p {
  margin-top: var(--e-2);
  max-width: 32rem;
}
@media (min-width: 760px) {
  .m-plateforme {
    grid-template-columns: 1fr 1fr;
  }
}

.m-traits {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: grid;
  gap: var(--e-6);
}
.m-traits li {
  padding-top: var(--e-4);
  border-top: 3px solid var(--sapin);
}
.m-trait {
  font-family: var(--police-titre);
  font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem);
  line-height: 1.1;
  color: var(--sapin);
}
/* le contraire à éviter, barré : on le lit, on ne le fait pas */
.m-contraire {
  margin-top: var(--e-1);
  font-weight: 600;
  color: var(--encre-douce);
  text-decoration: line-through;
  text-decoration-color: var(--m-rouge);
  text-decoration-thickness: 2px;
}
.m-preuve {
  margin-top: var(--e-3);
  color: var(--encre-douce);
  max-width: 22rem;
}
@media (min-width: 600px) {
  .m-traits {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 1100px) {
  .m-traits {
    grid-template-columns: repeat(4, 1fr);
  }
}

.m-voix {
  margin-top: var(--e-6);
}
.m-voix-entete {
  display: none;
}
.m-voix-paires {
  margin: 0;
  display: grid;
}
.m-voix-paires div {
  display: grid;
  gap: var(--e-2);
  padding-block: var(--e-4);
  border-top: 1px solid var(--m-filet);
}
.m-voix-paires dt {
  font-family: var(--police-titre);
  font-size: var(--t-h3);
  line-height: 1.25;
  color: var(--sapin);
}
.m-voix-paires dd {
  margin: 0;
  color: var(--encre-douce);
  text-decoration: line-through;
  text-decoration-color: var(--m-rouge);
  text-decoration-thickness: 1.5px;
}
.m-voix-paires dt::before,
.m-voix-paires dd::before {
  display: block;
  margin-bottom: var(--e-1);
  font-family: var(--police-texte);
  font-size: var(--t-petit);
  font-weight: 700;
  color: var(--miel);
  text-decoration: none;
}
.m-voix-paires dt::before {
  content: "On écrit";
}
.m-voix-paires dd::before {
  content: "On n'écrit pas";
  color: var(--m-rouge);
}
@media (min-width: 760px) {
  .m-voix-entete {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--e-7);
    padding-bottom: var(--e-2);
    font-size: var(--t-petit);
    font-weight: 700;
    color: var(--miel);
  }
  .m-voix-entete span:last-child {
    color: var(--m-rouge);
  }
  .m-voix-paires div {
    grid-template-columns: 1fr 1fr;
    gap: var(--e-7);
    align-items: baseline;
  }
  .m-voix-paires dt::before,
  .m-voix-paires dd::before {
    display: none;
  }
}

/* ---------- 2. Logo ---------- */

.m-chapitre > .m-chapo + .m-logos {
  margin-top: var(--e-7);
}
.m-logos {
  display: grid;
  gap: var(--e-6);
}
.m-logo-carte {
  display: grid;
  align-content: start;
  gap: var(--e-3);
}
.m-logo-carte:not(.m-sur-photo) > img:first-child {
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0 14%;
  object-fit: contain;
  border-radius: var(--rayon);
}
.m-sur-nappe > img {
  background: var(--nappe);
}
.m-sur-sapin > img {
  background: var(--sapin);
}
.m-sur-guirlande > img {
  background: var(--guirlande);
}
.m-sur-photo {
  grid-template-rows: auto auto;
}
.m-sur-photo .m-logo-fond,
.m-sur-photo .m-logo-dessus,
.m-sur-photo::before {
  grid-area: 1 / 1;
}
.m-sur-photo .m-logo-fond {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--rayon);
}
.m-sur-photo::before {
  content: "";
  z-index: 1;
  border-radius: var(--rayon);
  background: var(--m-voile);
}
.m-sur-photo .m-logo-dessus {
  z-index: 2;
  align-self: center;
  justify-self: center;
  width: 72%;
}
.m-logo-carte figcaption,
.m-logo-regles figcaption,
.m-composant figcaption {
  font-size: 1rem;
  color: var(--encre-douce);
  max-width: 34rem;
}
.m-logo-carte strong,
.m-logo-regles strong,
.m-composant strong {
  color: var(--sapin);
}
@media (min-width: 760px) {
  .m-logos {
    grid-template-columns: 1fr 1fr;
  }
}

.m-logo-regles {
  margin-top: var(--e-7);
  display: grid;
  gap: var(--e-6);
}
.m-logo-regles > figure {
  display: grid;
  align-content: start;
  gap: var(--e-3);
}
.m-favicons-rangee,
.m-protection-zone,
.m-minimum-reglet {
  min-height: 10rem;
  border-radius: var(--rayon);
  background: var(--nappe);
}
.m-favicons-rangee {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: var(--e-5);
  padding: var(--e-6) var(--e-5);
}
.m-protection-zone {
  display: grid;
  place-items: center;
  padding: var(--e-6) var(--e-5);
}
/* La zone hachurée fait la moitié de la hauteur du logo, tout autour */
.m-protection-zone img {
  --largeur-logo: min(15rem, 100%);
  width: var(--largeur-logo);
  box-sizing: content-box;
  padding: calc(var(--largeur-logo) * 118 / 689 / 2);
  background:
    linear-gradient(var(--nappe), var(--nappe)) content-box,
    repeating-linear-gradient(135deg, rgb(122 79 0 / 0.22) 0 2px, transparent 2px 8px);
  outline: 1.5px dashed var(--miel);
}
.m-minimum-reglet {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: var(--e-2);
  padding: var(--e-6) var(--e-5);
}
.m-minimum-reglet img {
  width: 120px;
}
.m-minimum-reglet::after {
  content: "120 px";
  width: 120px;
  padding-top: var(--e-1);
  border-top: 1.5px solid var(--miel);
  text-align: center;
  font-size: var(--t-petit);
  font-weight: 600;
  color: var(--miel);
}
@media (min-width: 960px) {
  .m-logo-regles {
    grid-template-columns: repeat(3, 1fr);
  }
}

.m-interdits {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr));
  gap: var(--e-5);
}
.m-interdits li {
  display: grid;
  align-content: start;
  gap: var(--e-3);
}
.m-interdits p {
  display: flex;
  align-items: baseline;
  font-size: 1rem;
  color: var(--encre-douce);
}
.m-interdit-scene {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  border-radius: var(--rayon);
  background: var(--nappe);
  overflow: hidden;
}
.m-interdit-scene img {
  width: 70%;
}
.m-interdit-etire {
  transform: scale(1.3, 0.7);
}
.m-interdit-couleur {
  filter: hue-rotate(150deg) saturate(4) brightness(2.4);
}
.m-interdit-penche {
  transform: rotate(-9deg);
}
.m-interdit-ombre {
  filter: drop-shadow(0 0 6px var(--guirlande)) drop-shadow(3px 3px 0 var(--m-rouge));
}
.m-interdit-photo .m-interdit-photo-fond {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 80% 20%;
}
.m-interdit-photo .m-interdit-photo-logo {
  position: relative;
  align-self: start;
  margin-top: 12%;
}

/* ---------- 3. Couleurs ---------- */

.m-proportions {
  margin-top: var(--e-7);
  display: flex;
  height: 4.5rem;
  border-radius: var(--rayon);
  overflow: hidden;
  border: 1px solid var(--m-filet);
  font-size: var(--t-petit);
  font-weight: 600;
}
.m-proportions span {
  display: flex;
  align-items: flex-end;
  padding: var(--e-2) var(--e-3);
  min-width: 0;
  white-space: nowrap;
}
.m-part-nappe {
  flex: 55;
  background: linear-gradient(90deg, var(--nappe) 50%, var(--pre) 50%);
  color: var(--encre-douce);
}
.m-part-sapin {
  flex: 30;
  background: var(--sapin);
  color: var(--nappe);
}
.m-part-photo {
  flex: 10;
  background: url("/images/soiree-640.webp") 45% 60% / cover;
  color: var(--nappe);
}
.m-part-guirlande {
  flex: 5;
  background: var(--guirlande);
}

.m-nuancier {
  list-style: none;
  margin: var(--e-7) auto 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--e-3);
}
.m-pastille {
  display: grid;
  align-content: end;
  gap: var(--e-1);
  min-height: 9rem;
  padding: var(--e-4);
  border-radius: var(--rayon);
  background: var(--c);
  color: var(--t);
}
.m-pastille-grande {
  min-height: 15rem;
  padding: var(--e-5);
}
.m-pastille-bord {
  box-shadow: inset 0 0 0 1px var(--m-filet);
}
.m-pastille-nom {
  font-family: var(--police-titre);
  font-size: var(--t-h3);
  line-height: 1.1;
}
.m-pastille-hex {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.m-pastille-role {
  font-size: var(--t-petit);
  line-height: 1.4;
}
@media (min-width: 760px) {
  .m-nuancier {
    grid-template-columns: repeat(4, 1fr);
  }
}

.m-paires {
  list-style: none;
  margin: var(--e-5) auto 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
  gap: var(--e-3);
}
.m-paires li {
  display: grid;
  border-radius: var(--rayon-petit);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--m-filet);
}
.m-paire-exemple {
  padding: var(--e-5) var(--e-4);
  background: var(--f);
  color: var(--t);
  font-family: var(--police-titre);
  font-size: var(--t-h3);
  line-height: 1.15;
}
.m-paire-info {
  padding: var(--e-2) var(--e-4);
  font-size: var(--t-petit);
  color: var(--encre-douce);
}
.m-paire-info b {
  color: var(--encre);
  font-variant-numeric: tabular-nums;
}
.m-sous-titre-interdit {
  color: var(--m-rouge);
}
.m-paires-refusees .m-paire-info b {
  color: var(--m-rouge);
}

/* ---------- 4. Typographie ---------- */

.m-familles {
  margin-top: var(--e-7);
  display: grid;
  gap: var(--e-7);
}
.m-famille h3 {
  margin-top: var(--e-3);
  font-family: var(--police-titre);
  font-size: var(--t-h3);
  color: var(--sapin);
}
.m-famille > p:not(.m-specimen):not(.m-alphabet) {
  margin-top: var(--e-2);
  max-width: 32rem;
  color: var(--encre-douce);
}
.m-specimen {
  font-size: clamp(6rem, 3rem + 10vw, 11rem);
  line-height: 0.9;
  color: var(--sapin);
}
.m-specimen-titre {
  font-family: var(--police-titre);
}
.m-specimen-texte {
  font-weight: 700;
}
.m-alphabet {
  margin-top: var(--e-4);
  font-size: var(--t-h3);
  line-height: 1.35;
  color: var(--sapin);
  overflow-wrap: anywhere;
}
.m-alphabet-titre {
  font-family: var(--police-titre);
}
.m-graisses {
  list-style: none;
  margin: var(--e-4) 0 0;
  padding: 0;
  display: grid;
  gap: var(--e-2);
  font-size: var(--t-h3);
  line-height: 1.3;
  color: var(--sapin);
}
.m-g400i {
  font-style: italic;
}
.m-g600 {
  font-weight: 600;
}
.m-g700 {
  font-weight: 700;
}
@media (min-width: 960px) {
  .m-familles {
    grid-template-columns: 1fr 1fr;
    column-gap: var(--e-8);
  }
}

.m-echelle {
  list-style: none;
  margin: 0 auto;
  padding: 0;
}
.m-echelle li {
  display: grid;
  gap: var(--e-2) var(--e-6);
  padding-block: var(--e-5);
  border-top: 1px solid var(--m-filet);
}
.m-echelle-info {
  font-size: var(--t-petit);
  color: var(--encre-douce);
}
.m-echelle-info b {
  display: block;
  color: var(--sapin);
}
.m-echelle-exemple {
  color: var(--sapin);
  overflow-wrap: anywhere;
}
.m-e-geant {
  font-family: var(--police-titre);
  font-size: var(--t-geant);
  line-height: 0.95;
}
.m-e-h1 {
  font-family: var(--police-titre);
  font-size: var(--t-h1);
  line-height: var(--interligne-titre);
}
.m-e-h2 {
  font-family: var(--police-titre);
  font-size: var(--t-h2);
  line-height: 1.05;
  max-width: 20ch;
  text-wrap: balance;
}
.m-e-h3 {
  font-family: var(--police-titre);
  font-size: var(--t-h3);
  line-height: 1.2;
}
.m-e-chapo {
  font-size: var(--t-chapo);
  line-height: 1.45;
  color: var(--encre);
  max-width: 34rem;
}
.m-e-texte {
  color: var(--encre);
  max-width: var(--mesure);
}
.m-e-petit {
  font-size: var(--t-petit);
  line-height: 1.5;
  color: var(--encre-douce);
}
@media (min-width: 760px) {
  .m-echelle li {
    grid-template-columns: 15rem 1fr;
    align-items: baseline;
  }
}

/* ---------- 5. Direction photo ---------- */

.m-photo-regles {
  margin: var(--e-7) auto 0;
  display: grid;
  gap: var(--e-6) var(--e-7);
}
.m-photo-regles div {
  padding-top: var(--e-4);
  border-top: 3px solid var(--guirlande);
}
.m-photo-regles dt {
  font-family: var(--police-titre);
  font-size: var(--t-h3);
  color: var(--guirlande);
}
.m-photo-regles dd {
  margin: var(--e-2) 0 0;
  color: var(--nappe);
  max-width: 30rem;
}
@media (min-width: 760px) {
  .m-photo-regles {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 1100px) {
  .m-photo-regles {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Planche : colonnes de hauteur libre, chaque photo garde son format */
.m-planche {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  columns: 3 16rem;
  column-gap: var(--e-5);
}
.m-planche li {
  break-inside: avoid;
  margin-bottom: var(--e-5);
}
.m-planche img,
.m-ecartees img {
  width: 100%;
  border-radius: var(--rayon-photo);
}
.m-planche p,
.m-ecartees p {
  margin-top: var(--e-2);
  font-size: var(--t-petit);
  color: var(--mousse);
}
.m-ecartees {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
  gap: var(--e-5);
}
.m-ecartees img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.m-ecartees p {
  display: flex;
  align-items: baseline;
  color: var(--nappe);
}

.m-formule {
  margin-top: 0;
  padding: var(--e-5);
  border-radius: var(--rayon);
  background: var(--sapin-nuit);
  font-size: 1.0625rem;
  line-height: 1.8;
}
.m-formule code {
  font-size: inherit;
}
.m-fixe {
  color: var(--nappe);
}
.m-variable {
  color: var(--guirlande);
  border-bottom: 1.5px dashed currentColor;
}
.m-sombre .m-legende {
  color: var(--mousse);
}
.m-prompts {
  margin-top: var(--e-5);
}
.m-prompts summary {
  cursor: pointer;
  padding-block: var(--e-3);
  font-weight: 700;
  color: var(--guirlande);
}
.m-prompts ol {
  margin: var(--e-2) 0 0;
  padding-left: 1.4rem;
  display: grid;
  gap: var(--e-3);
  font-size: var(--t-petit);
  color: var(--mousse);
  max-width: 60rem;
}
.m-prompts b {
  color: var(--nappe);
  margin-right: var(--e-2);
}

/* ---------- 6. Composants ---------- */

.m-composants {
  margin: var(--e-7) auto 0;
  display: grid;
  gap: var(--e-6);
}
.m-composant {
  display: grid;
  align-content: start;
  gap: var(--e-3);
}
.m-composant-scene {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--e-4);
  min-height: 11rem;
  padding: var(--e-6) var(--e-5);
  border-radius: var(--rayon);
}
.m-scene-pre {
  background: var(--pre);
}
.m-scene-nappe {
  background: var(--nappe);
  box-shadow: inset 0 0 0 1px var(--m-filet);
}
.m-scene-nuit {
  background: var(--sapin-nuit);
  color: var(--nappe);
}
.m-scene-sapin {
  background: var(--sapin);
  color: var(--nappe);
}
.m-scene-nuit .compteur {
  width: min(100%, 22rem);
}
.m-composant .question {
  margin: 0;
}
.m-composant-moment {
  margin-top: var(--e-6);
}
.m-composant-moment .m-composant-scene {
  display: block;
  padding: var(--e-6) var(--e-5);
}
.m-moment-demo {
  margin: 0;
}
@media (min-width: 760px) {
  .m-composants {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- 7. Mouvement ---------- */

.m-courbes {
  list-style: none;
  margin: var(--e-7) auto 0;
  padding: 0;
  display: grid;
  gap: var(--e-6);
}
.m-courbes li {
  display: grid;
  grid-template-columns: 7rem 1fr;
  column-gap: var(--e-5);
  align-items: start;
}
.m-courbes li > :not(svg) {
  grid-column: 2;
}
.m-courbe {
  grid-row: 1 / span 3;
  width: 7rem;
  height: 7rem;
  padding: var(--e-2);
  border-radius: var(--rayon-petit);
  background: var(--nappe);
  overflow: visible;
}
.m-courbe-axe {
  fill: none;
  stroke: var(--m-filet);
  stroke-width: 2;
}
.m-courbe-trace {
  fill: none;
  stroke: var(--sapin);
  stroke-width: 4;
  stroke-linecap: round;
}
.m-courbes h3 {
  font-family: var(--police-titre);
  font-size: var(--t-h3);
  color: var(--sapin);
}
.m-courbes p {
  margin-top: var(--e-1);
  color: var(--encre-douce);
  max-width: 26rem;
}
@media (min-width: 760px) {
  .m-courbes {
    grid-template-columns: 1fr 1fr;
  }
}

.m-durees {
  width: 100%;
  margin-top: var(--e-7);
  border-collapse: collapse;
  font-size: 1rem;
}
.m-durees th,
.m-durees td {
  padding: var(--e-3) var(--e-3) var(--e-3) 0;
  text-align: left;
  vertical-align: middle;
  border-top: 1px solid #c9cfb8;
}
.m-durees thead th {
  border-top: 0;
  font-size: var(--t-petit);
  color: var(--encre-douce);
}
.m-durees tbody th {
  font-weight: 600;
  color: var(--sapin);
  max-width: 24rem;
}
.m-durees td:nth-child(2) {
  font-family: var(--police-titre);
  font-size: 1.25rem;
  color: var(--sapin);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.m-durees td:last-child {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--e-3);
  min-height: 4.5rem;
}
.m-ville-demo label {
  display: block;
}
.m-ville-demo span {
  min-height: 2.75rem;
}
.m-rejouer {
  min-height: 2.75rem;
  padding: 0 var(--e-2);
  border: 0;
  background: none;
  color: var(--sapin);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}
.m-demo-barre {
  display: flex;
  align-items: center;
  gap: var(--e-3);
}
.m-demo-barre .trajet-barre {
  display: block;
  width: 9rem;
  height: 0.75rem;
  border-radius: 99px;
  background: var(--nappe);
  overflow: hidden;
}
.m-demo-barre .trajet-barre span {
  display: block;
  height: 100%;
  background: var(--sapin);
  transform-origin: left center;
  transform: scaleX(var(--part, 0));
  transition: transform 520ms var(--ease-out);
}
.m-demo-tiroir {
  position: relative;
  width: 5.5rem;
  height: 4.5rem;
  border-radius: var(--rayon-petit);
  background: var(--sapin);
  overflow: hidden;
}
.m-demo-tiroir-panneau {
  position: absolute;
  inset: 30% 0 0;
  border-radius: var(--rayon-petit) var(--rayon-petit) 0 0;
  background: var(--nappe);
  transform: translateY(100%);
  transition: transform var(--duree-panneau) var(--ease-drawer);
}
.m-demo-tiroir.ouvert .m-demo-tiroir-panneau {
  transform: none;
}
.m-demo-rideau {
  width: 7.5rem;
  aspect-ratio: 3 / 2;
  clip-path: inset(0 0 100% 0);
  transition: clip-path var(--duree-revele) var(--ease-out);
}
.m-demo-rideau img {
  transform: scale(1.08);
  transition: transform calc(var(--duree-revele) * 1.4) var(--ease-out);
}
.m-demo-rideau.ouvert {
  clip-path: inset(0 0 0 0);
}
.m-demo-rideau.ouvert img {
  transform: none;
}
/* /style.css ramène déjà toute transition à 1 ms ; la photo d'essai reste en plus visible sans script */
@media (prefers-reduced-motion: reduce) {
  .m-demo-rideau {
    clip-path: none;
  }
  .m-demo-rideau img {
    transform: none;
  }
}
@media (max-width: 759px) {
  .m-durees thead {
    display: none;
  }
  .m-durees,
  .m-durees tbody,
  .m-durees tr {
    display: block;
  }
  .m-durees tr {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--e-1) var(--e-4);
    padding-block: var(--e-4);
    border-top: 1px solid #c9cfb8;
  }
  .m-durees th,
  .m-durees td {
    border: 0;
    padding: 0;
  }
  .m-durees tbody th {
    grid-column: 1 / -1;
  }
  .m-durees td:last-child {
    grid-column: 1 / -1;
    min-height: 0;
  }
  .m-durees td:last-child:empty {
    display: none;
  }
}

/* ---------- 8. Applications : les objets posés sur la table ---------- */

.m-objets {
  margin-top: var(--e-8);
  display: grid;
  gap: var(--e-7) var(--e-6);
  align-items: start;
}
.m-objet {
  display: grid;
  gap: var(--e-3);
  justify-items: center;
}
.m-objet > :first-child {
  width: 100%;
}
.m-objet figcaption {
  justify-self: stretch;
  font-size: var(--t-petit);
  color: var(--mousse);
  max-width: 30rem;
}
.m-objet-story > :first-child,
.m-objet-telephone > :first-child {
  max-width: var(--m-objet-etroit);
}
@media (min-width: 760px) {
  .m-objets {
    grid-template-columns: repeat(2, 1fr);
  }
  .m-objet-carnet {
    grid-column: 1 / -1;
  }
}
@media (min-width: 1100px) {
  .m-objets {
    grid-template-columns: repeat(12, 1fr);
  }
  .m-objet-carre {
    grid-column: span 5;
  }
  .m-objet-story {
    grid-column: span 3;
  }
  .m-objet-telephone {
    grid-column: span 4;
  }
  .m-objet-carnet {
    grid-column: span 6;
  }
  .m-objet-affiche,
  .m-objet-menu {
    grid-column: span 3;
  }
}

/* Publication carrée */
.m-insta {
  container-type: inline-size;
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--rayon-photo);
  background: var(--sapin);
}
.m-insta-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 40% 50%;
}
.m-insta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--m-voile-fort) 0%, var(--m-voile) 45%, rgb(19 38 30 / 0) 75%);
}
.m-insta-texte {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  padding: 7cqi;
  display: grid;
  gap: 2.5cqi;
}
.m-insta-titre {
  font-family: var(--police-titre);
  font-size: 7.4cqi;
  line-height: 1.05;
  color: var(--nappe);
  text-wrap: balance;
}
.m-insta-detail {
  font-size: 3.6cqi;
  line-height: 1.4;
  color: var(--nappe);
  max-width: 80cqi;
}
.m-insta-logo {
  margin-top: 2cqi;
  width: 30cqi;
}

/* Story 9:16 */
.m-story {
  container-type: inline-size;
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: var(--m-rayon-story);
  background: var(--sapin);
}
.m-story-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 50%;
}
.m-story::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgb(19 38 30 / 0.6) 0%, rgb(19 38 30 / 0) 22%),
    linear-gradient(0deg, var(--m-voile-fort) 0%, var(--m-voile) 50%, rgb(19 38 30 / 0) 72%);
}
.m-story-texte {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  padding: 8cqi 7cqi;
  color: var(--nappe);
}
.m-story-logo {
  width: 42cqi;
}
.m-story-titre {
  margin-top: auto;
  font-family: var(--police-titre);
  font-size: 10cqi;
  line-height: 1.02;
  text-wrap: balance;
}
.m-story-trajets {
  list-style: none;
  margin: 6cqi 0 0;
  padding: 0;
  display: grid;
  gap: 2.6cqi;
  font-size: 4cqi;
  font-weight: 600;
}
.m-story-trajets li {
  display: grid;
  grid-template-columns: 19cqi 1fr 15cqi;
  align-items: center;
  gap: 2.5cqi;
}
.m-story-trajets li span:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.m-story-barre {
  height: 2.4cqi;
  border-radius: 99px;
  background: rgb(251 250 243 / 0.22);
  overflow: hidden;
}
.m-story-barre::after {
  content: "";
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--guirlande);
  transform-origin: left center;
  transform: scaleX(var(--part));
}
.m-story-lien {
  align-self: center;
  margin-top: 8cqi;
  padding: 3cqi 6cqi;
  border-radius: var(--rayon-petit);
  background: var(--guirlande);
  color: var(--sapin);
  font-size: 4.4cqi;
  font-weight: 700;
}

/* Téléphone : le lien de paiement d'un foyer */
.m-telephone {
  padding: 0.55rem;
  border-radius: var(--m-rayon-telephone);
  background: var(--m-cadre-telephone);
  box-shadow: inset 0 0 0 1px var(--m-filet-sombre);
}
.m-ecran {
  container-type: inline-size;
  aspect-ratio: 9 / 18.5;
  display: flex;
  flex-direction: column;
  padding: 11% 7% 7%; /* en %, pas en cqi : le cqi du conteneur lui-même se lirait sur l'écran entier */
  border-radius: var(--m-rayon-ecran);
  background: var(--nappe);
  color: var(--encre);
  overflow: hidden;
}
.m-ecran-logo {
  width: 40cqi;
}
.m-ecran-titre {
  margin-top: 8cqi;
  font-family: var(--police-titre);
  font-size: 8.6cqi;
  line-height: 1.05;
  color: var(--sapin);
}
.m-ecran-lieu {
  margin-top: 2cqi;
  font-size: 4.4cqi;
  line-height: 1.4;
  color: var(--encre-douce);
}
.m-ecran-lignes {
  margin: 6cqi 0 0;
  font-size: 4.4cqi;
}
.m-ecran-lignes div {
  display: flex;
  justify-content: space-between;
  gap: 3cqi;
  padding-block: 2.4cqi;
  border-top: 1px solid var(--m-filet);
}
.m-ecran-lignes dd {
  margin: 0;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.m-ecran-total dt,
.m-ecran-total dd {
  font-family: var(--police-titre);
  font-weight: 400;
  font-size: 6cqi;
  color: var(--sapin);
}
.m-ecran-bouton {
  margin-top: auto;
  padding: 3.6cqi;
  border-radius: var(--rayon-petit);
  background: var(--guirlande);
  box-shadow: var(--ombre-bouton);
  color: var(--sapin);
  font-size: 4.8cqi;
  font-weight: 700;
  text-align: center;
}
.m-ecran-note {
  margin-top: 4cqi;
  font-size: 3.4cqi;
  line-height: 1.4;
  color: var(--encre-douce);
}

/* Carnet d'accueil : A5 ouvert */
.m-carnet {
  display: grid;
  border-radius: var(--rayon-petit);
  overflow: hidden;
  background: var(--nappe);
  color: var(--encre);
}
.m-carnet-page {
  container-type: inline-size;
  aspect-ratio: 148 / 210;
  display: flex;
  flex-direction: column;
  padding: 9%;
}
.m-carnet-gauche {
  padding: 0 0 9%;
  background: var(--pre);
}
.m-carnet-gauche img {
  width: 100%;
  height: 62%;
  object-fit: cover;
}
.m-carnet-maison {
  margin: 7cqi 9cqi 0;
  font-family: var(--police-titre);
  font-size: 12cqi;
  line-height: 1;
  color: var(--sapin);
}
.m-carnet-bienvenue {
  margin: 3cqi 9cqi 0;
  font-size: 5.4cqi;
  line-height: 1.35;
  color: var(--encre-douce);
}
.m-carnet-droite {
  border-top: 1px solid var(--m-filet);
}
.m-carnet-titre {
  font-family: var(--police-titre);
  font-size: 8.5cqi;
  line-height: 1.05;
  color: var(--sapin);
}
.m-carnet-programme {
  margin: 5cqi 0 0;
  display: grid;
  gap: 3.6cqi;
}
.m-carnet-programme dt {
  font-family: var(--police-titre);
  font-size: 4.8cqi;
  color: var(--miel);
}
.m-carnet-programme dd {
  margin: 0.6cqi 0 0;
  font-size: 4.4cqi;
  line-height: 1.35;
}
.m-carnet-pratique {
  margin-top: auto;
  padding-top: 4cqi;
  border-top: 1px solid var(--m-filet);
  font-size: 4cqi;
  line-height: 1.4;
  color: var(--encre-douce);
}
.m-carnet-logo {
  margin-top: 4cqi;
  width: 34cqi;
}
@media (min-width: 600px) {
  .m-carnet {
    grid-template-columns: 1fr 1fr;
  }
  .m-carnet-droite {
    border-top: 0;
    border-left: 1px solid var(--m-filet);
  }
}

/* Affichette de gare : A4 portrait */
.m-affiche {
  container-type: inline-size;
  aspect-ratio: 210 / 297;
  display: flex;
  flex-direction: column;
  padding: 9%;
  border-radius: var(--rayon-petit);
  background: var(--sapin);
  color: var(--nappe);
  box-shadow: inset 0 0 0 1px var(--m-filet-sombre);
}
.m-affiche-logo {
  width: 52cqi;
}
.m-affiche-titre {
  margin-top: auto;
  font-family: var(--police-titre);
  font-size: 15cqi;
  line-height: 0.98;
  color: var(--guirlande);
}
.m-affiche-pour {
  margin-top: 4cqi;
  font-size: 5.2cqi;
  line-height: 1.3;
}
.m-affiche-horaires {
  margin-top: 7cqi;
  width: 100%;
  border-collapse: collapse;
}
.m-affiche-horaires th,
.m-affiche-horaires td {
  padding: 2.4cqi 2cqi 2.4cqi 0;
  border-top: 1px solid var(--sapin-clair);
  text-align: left;
  vertical-align: baseline;
}
.m-affiche-horaires th {
  font-size: 4.2cqi;
  font-weight: 700;
  color: var(--mousse);
}
.m-affiche-horaires td {
  font-family: var(--police-titre);
  font-size: 6.4cqi;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.m-affiche-horaires td[colspan] {
  font-family: var(--police-texte);
  font-size: 4.4cqi;
  white-space: normal;
}
.m-affiche-note {
  margin-top: 6cqi;
  font-size: 4.4cqi;
  line-height: 1.35;
  color: var(--mousse);
}

/* Menu du samedi */
.m-menu {
  container-type: inline-size;
  aspect-ratio: 210 / 297;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10% 9% 8%;
  border-radius: var(--rayon-petit);
  background: var(--nappe);
  color: var(--encre);
  text-align: center;
}
.m-menu-titre {
  font-family: var(--police-titre);
  font-size: 10.5cqi;
  line-height: 1;
  color: var(--sapin);
}
.m-menu-lieu {
  margin-top: 2.4cqi;
  font-size: 4.4cqi;
  font-weight: 600;
  color: var(--miel);
}
.m-menu-plats {
  margin: 7cqi 0 0;
  display: grid;
  gap: 4cqi;
}
.m-menu-plats dt {
  font-size: 3.6cqi;
  font-weight: 700;
  color: var(--miel);
}
.m-menu-plats dd {
  margin: 0.8cqi 0 0;
  font-family: var(--police-titre);
  font-size: 5cqi;
  line-height: 1.15;
  color: var(--sapin);
}
.m-menu-note {
  margin-top: auto;
  font-size: 3.6cqi;
  line-height: 1.4;
  color: var(--encre-douce);
}
.m-menu-logo {
  margin-top: 4cqi;
  width: 11cqi;
}

/* ---------- 9. À faire, à éviter ---------- */

.m-duels {
  list-style: none;
  margin: var(--e-7) auto 0;
  padding: 0;
  display: grid;
  gap: var(--e-6) var(--e-7);
}
.m-duel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--e-3);
}
.m-duel figure {
  display: grid;
  align-content: start;
  gap: var(--e-2);
}
.m-duel figcaption {
  display: flex;
  align-items: baseline;
  font-size: var(--t-petit);
  line-height: 1.4;
  color: var(--encre-douce);
}
.m-duel-scene {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  padding: var(--e-4);
  border-radius: var(--rayon-petit);
  overflow: hidden;
  container-type: inline-size;
}
.m-oui .m-duel-scene {
  box-shadow: inset 0 0 0 3px var(--sapin);
}
.m-non .m-duel-scene {
  box-shadow: inset 0 0 0 3px var(--m-rouge);
}
.m-duel-photo {
  padding: 0;
}
.m-duel-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.m-duel-photo p {
  position: absolute;
  z-index: 1;
  top: 8cqi;
  max-width: 50cqi;
  font-family: var(--police-titre);
  font-size: 8.5cqi;
  line-height: 1.02;
  color: var(--nappe);
}
.m-duel-photo-voile p {
  left: 7cqi;
}
.m-duel-photo-voile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--m-voile-fort) 0%, var(--m-voile) 40%, rgb(19 38 30 / 0) 65%);
}
.m-duel-photo-nu img {
  object-position: 85% 50%;
}
.m-duel-photo-nu p {
  right: 6cqi;
  text-align: right;
}
.m-duel-boutons {
  gap: var(--e-2);
  align-content: center;
}
.m-duel-boutons .bouton {
  font-size: 1rem;
  padding-inline: var(--e-4);
}
.m-faux-bouton {
  padding: var(--e-2) var(--e-3);
  border-radius: 999px;
  font-size: var(--t-petit);
  font-weight: 700;
}
.m-faux-rouge {
  background: var(--m-faux-rouge);
  color: var(--nappe);
}
.m-faux-bleu {
  background: var(--m-faux-bleu);
  color: var(--nappe);
}
.m-faux-contour {
  box-shadow: inset 0 0 0 2px var(--encre-douce);
  color: var(--encre-douce);
}
.m-duel-texte {
  align-content: center;
  justify-items: start;
  gap: var(--e-2);
  text-align: left;
}
/* :where() garde ce réglage de base sous les classes qui suivent */
.m-duel-texte :where(p) {
  font-size: 4.6cqi;
  line-height: 1.35;
}
.m-duel-chiffre {
  font-family: var(--police-titre);
  font-size: 8cqi;
  line-height: 1.05;
  color: var(--guirlande);
}
.m-duel-titre {
  font-family: var(--police-titre);
  font-size: 8cqi;
  line-height: 1.05;
  color: var(--sapin);
}
.m-duel-courant {
  color: var(--encre-douce);
}
.m-duel-capitales {
  font-weight: 700;
  font-size: 5cqi;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--sapin);
}
.m-duel-paragraphe {
  font-family: var(--police-titre);
  color: var(--sapin);
}
.m-duel-prix {
  font-family: var(--police-titre);
  font-size: 18cqi;
  line-height: 1;
  color: var(--guirlande);
}
.m-scene-nappe .m-duel-prix-pale {
  color: var(--guirlande);
}
.m-duels .m-scene-pre,
.m-duels .m-scene-nappe,
.m-duels .m-scene-sapin {
  min-height: 0;
}
@media (min-width: 960px) {
  .m-duels {
    grid-template-columns: 1fr 1fr;
  }
}
