/* Masterclass calculatrice : la coquille (lot 1, 03.11.2026). L'accueil, « Les cahiers », « À propos » et la barre de
   retour. Se charge APRÈS mv-charte-1.4.css et mv-masterclass-1.0.css, et n'utilise que leurs jetons et leurs classes
   (charte B, décision R2). Aucune règle ici ne touche aux écrans de la v3. */

/* La barre de retour, au-dessus de chaque écran sauf l'accueil. Elle défile avec la page : l'en-tête collé de la
   masterclass garde le haut de l'écran. */
.cq-barre { max-width: 680px; margin: 0 auto; padding: var(--mv-e-2) var(--mv-e-4) 0; box-sizing: border-box; }
.mv-charte a.cq-barre__accueil:not(.mv-btn), .mv-charte a.cq-barre__masterclass:not(.mv-btn) {
  display: inline-flex; align-items: center; gap: 2px; min-height: 44px; padding-right: var(--mv-e-2);
  font-size: 16px; font-weight: 600; color: var(--mv-encre-2) !important; text-decoration: none !important;
}
.cq-chevron { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Le message des navigateurs intégrés (Facebook, Instagram). */
.cq-integre { max-width: 680px; margin: 0 auto; padding: var(--mv-e-2) var(--mv-e-4) 0; box-sizing: border-box; }
.cq-integre p { margin: 0; padding: var(--mv-e-3) var(--mv-e-4); background: var(--mv-surligneur-doux); border: 1px solid var(--mv-filet);
  border-radius: var(--mv-r-2); font-size: 15.5px; line-height: 1.45; color: var(--mv-encre); }

/* L'accueil */
.cq-tete { padding: var(--mv-e-6) 0 var(--mv-e-2); }
/* L'icône de l'app en tête (anatomie commune aux trois applis, décision de Marc du 04.11.2026) : 56 px au téléphone,
   64 à l'ordinateur, comme Douze. Décorative : le titre la suit. */
.cq-icone { display: block; width: 56px; height: 56px; border-radius: 12px; margin: 0 0 var(--mv-e-3); }
.mv-charte.mc-app .cq-tete h1 { margin-bottom: var(--mv-e-3); }
/* « TI-30 eco RS » ne se coupe jamais, pas même au trait d'union. */
.cq-tete .mv-surligne { white-space: nowrap; }
.mv-charte.mc-app .cq-sous-titre { font-family: var(--mv-police-titre); font-size: 20px; line-height: 1.4; color: var(--mv-encre-2); margin: 0; }
.cq-entrees { display: grid; gap: var(--mv-e-3); margin: var(--mv-e-5) 0 var(--mv-e-4); }
.mv-charte a.cq-entree:not(.mv-btn) {
  display: flex; align-items: center; justify-content: space-between; gap: var(--mv-e-3); min-height: 64px; box-sizing: border-box;
  padding: var(--mv-e-3) var(--mv-e-4); background: var(--mv-feuille); border: 1px solid var(--mv-filet); border-radius: var(--mv-r-2);
  box-shadow: var(--mv-ombre-feuille); color: var(--mv-encre) !important; text-decoration: none !important;
  font-family: var(--mv-police-titre); font-weight: 600; font-size: 19px; line-height: 1.3;
}
.mv-charte a.cq-entree:not(.mv-btn):hover { background: var(--mv-surligneur-doux); }
.cq-entree .cq-chevron { color: var(--mv-encre-3); }
.mv-charte.mc-app .cq-hors-ligne { margin: 0 0 var(--mv-e-4); color: var(--mv-encre-2); }
.mv-charte.mc-app .cq-hors-ligne--pret { color: var(--mv-verif); }
/* L'invitation à installer, reprise de Douze (.installer de son style.css) : l'icône, une phrase, et le bouton là
   seulement où le navigateur a un vrai dialogue. Un fond doux, sans cadre : discrète. Lot 1.2 : la croix « Ne plus
   afficher » en haut à droite, 44 px de cible ; le bouton « Installer » sous la phrase. */
.cq-installer { display: grid; grid-template-columns: auto 1fr auto; align-items: start; column-gap: var(--mv-e-3); row-gap: var(--mv-e-2);
  margin: 0 0 var(--mv-e-4); padding: var(--mv-e-3) var(--mv-e-2) var(--mv-e-3) var(--mv-e-4); border-radius: var(--mv-r-2); background: var(--mv-surligneur-doux); }
.cq-installer img { width: 32px; height: 32px; border-radius: 7px; margin-top: 2px; }
.mv-charte.mc-app .cq-installer p { margin: 0; font-size: 15px; line-height: 1.45; color: var(--mv-encre-2); }
.cq-installer strong { font-weight: 600; color: var(--mv-encre); }
.mv-charte.mc-app .cq-installer__fermer { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  margin: -10px 0 -10px 0; padding: 0; border: 0; border-radius: var(--mv-r-2); background: transparent; color: var(--mv-encre-2); cursor: pointer; }
.cq-installer__fermer svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }
.mv-charte.mc-app .cq-installer__installer { grid-column: 2; justify-self: start; min-height: 44px; padding: 0 var(--mv-e-4);
  border: 1px solid var(--mv-encre); border-radius: var(--mv-r-2); background: var(--mv-feuille); color: var(--mv-encre);
  font: inherit; font-weight: 600; cursor: pointer; }
.cq-pied { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--mv-e-2) var(--mv-e-4); margin-top: var(--mv-e-6);
  padding-top: var(--mv-e-4); border-top: 1px solid var(--mv-filet); font-size: 15px; color: var(--mv-encre-2); }
.mv-charte.mc-app .cq-pied p { margin: 0; }

/* Les cahiers */
.cq-page { padding-top: var(--mv-e-3); }
.cq-groupe { margin: var(--mv-e-5) 0 0; }
.mv-charte.mc-app .cq-groupe h2 { font-size: 21px; }
.mv-charte a.cq-cahier:not(.mv-btn) {
  display: flex; align-items: center; justify-content: space-between; gap: var(--mv-e-3); box-sizing: border-box;
  padding: var(--mv-e-3) var(--mv-e-4); margin: 0 0 var(--mv-e-2); background: var(--mv-feuille); border: 1px solid var(--mv-filet);
  border-radius: var(--mv-r-2); box-shadow: var(--mv-ombre-feuille); color: var(--mv-encre) !important; text-decoration: none !important;
}
.mv-charte a.cq-cahier:not(.mv-btn):hover { background: var(--mv-surligneur-doux); }
.mv-charte a.cq-cahier--vise:not(.mv-btn) { border: 2px solid var(--mv-encre); background: var(--mv-surligneur-doux); }
.cq-cahier__texte { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cq-cahier__nom { font-weight: 700; font-size: 17px; line-height: 1.3; }
.cq-cahier__sous { font-size: 15px; line-height: 1.4; color: var(--mv-encre-2); }
.cq-cahier__marques { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }

/* À propos */
.mv-charte.mc-app .cq-a-propos h2 { font-size: 21px; margin-top: var(--mv-e-5); }
.cq-a-propos ul { margin: 0 0 var(--mv-e-3); padding-left: 1.2em; }
.cq-a-propos li { margin: 0 0 var(--mv-e-2); }
.mv-charte.mc-app .cq-signature { margin-top: var(--mv-e-5); color: var(--mv-encre-2); }
/* Pour les enseignants (lot 2, 21.11.2026) : une carte à part, sous celle de l'à-propos, à son ancre. */
.mv-charte.mc-app .cq-vers-enseignants { margin: var(--mv-e-5) 0 0; font-size: 15px; color: var(--mv-encre-2); }
.mv-charte.mc-app .cq-enseignants { margin-top: var(--mv-e-4); scroll-margin-top: var(--mv-e-6); }
.mv-charte.mc-app .cq-enseignants h2 { font-size: 21px; margin-top: 0; }
.mv-charte.mc-app .cq-enseignants h3 { font-size: 18px; margin: var(--mv-e-4) 0 var(--mv-e-2); }
.cq-enseignants ul { margin: 0 0 var(--mv-e-3); padding-left: 1.2em; }
.cq-enseignants li { margin: 0 0 var(--mv-e-2); }
.mv-charte.mc-app .cq-version { text-align: center; color: var(--mv-encre-3); margin-top: var(--mv-e-4); }

/* La barre de retour et le message des navigateurs intégrés ont 16 px de marge à toutes les largeurs (04.11.2026),
   comme le contenu (.mv-charte.mc-app de mv-masterclass-1.0.css). */
@media (max-width: 400px) {
  .cq-tete { padding-top: var(--mv-e-5); }
  .mv-charte a.cq-entree:not(.mv-btn) { font-size: 18px; }
}
@media (min-width: 900px) and (min-height: 520px) { .cq-icone { width: 64px; height: 64px; border-radius: 14px; } }

/* Finitions du 05.11.2026 (prompt Cowork de 13 h 50). */

/* F1 : les chiffres à segments de l'afficheur (DSEG7 Classic, gras, licence OFL 1.1 : licences/LICENCE-DSEG-OFL.txt).
   « block » : un écran sans chiffres un instant plutôt que des chiffres qui changent de police sous les yeux. */
@font-face { font-family: "DSEG7 Classic"; font-style: normal; font-weight: 700; font-display: block;
  src: url("DSEG7Classic-Bold.ec2e7499.woff2") format("woff2"); }

/* F9 : l'action principale de l'accueil, entre la phrase et les portes (anatomie commune du 04.11.2026). */
.mv-charte.mc-app .cq-action { margin: var(--mv-e-5) 0 0; }
.mv-charte a.cq-action__bouton { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px;
  box-sizing: border-box; text-align: center; text-decoration: none !important; font-size: 18px; line-height: 1.3; }
/* Lot B bis (23.11.2026) : un titre long passe à la ligne (mv-btn ne coupe pas, mv-charte-1.4) ; à 390 px, « Reprendre
   « Le trait de fraction cache des parenthèses (en bas) » » sortait du bouton (426 px de texte pour 358). Vaut pour les
   deux boutons de reprise (l'accueil de l'app, /masterclass) et eux seuls ; un libellé court reste sur une ligne. */
.mv-charte a.cq-action__bouton { white-space: normal; }
/* Lot B bis (23.11.2026) : le même bouton en tête de /masterclass, avant la première carte, à son rythme. */
.mv-charte.mc-app .cq-action--masterclass { margin: 0 0 var(--mv-e-3); }
.cq-entrees.cq-entrees { margin-top: var(--mv-e-4); }
/* Sous chaque porte, une ligne : ce qu'elle contient, en nombres tirés des données. */
.cq-entree__texte { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cq-entree__ligne { font-family: var(--mv-police-texte, inherit); font-weight: 400; font-size: 15px; line-height: 1.4; color: var(--mv-encre-2); }

/* Le pied commun : « Un outil MathVaud » à gauche, « Nouveautés » et « À propos » à droite, même rang. */
.mv-charte.mc-app .cq-pied__liens { display: flex; gap: var(--mv-e-4); }

/* La page « Nouveautés » : une entrée par paragraphe, sa date en gras. */
.mv-charte.mc-app .cq-nouveautes__chapeau { color: var(--mv-encre-2); }
.mv-charte.mc-app .cq-nouveaute { margin: var(--mv-e-4) 0 0; }
.cq-nouveaute strong { font-weight: 700; }

/* ── LA CALCULATRICE LIBRE, /libre (lot A2, 22.11.2026 ; src/coquille/libre.js) ─────────────────────────────────── */
.lb-page .lb-acces { margin: var(--mv-e-2) 0 0; }
.lb-scene { display: flex; flex-direction: column; gap: var(--mv-e-3); }
.lb-scene__calc { margin: 0; }
.lb-scene__ruban h2 { margin: 0 0 var(--mv-e-2); }
.lb-ruban__ligne { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0 0 6px; padding: 0; }
.lb-ruban__ligne--avant { opacity: .55; }
.lb-ruban__el { margin: 0; padding: 0; }
.lb-ruban__el .mc-touche { cursor: pointer; min-height: 30px; min-width: 30px; }
.lb-ruban__el .mc-touche.lb-choisie { outline: 3px solid var(--mv-focus); outline-offset: 1px; }
.lb-ruban__vide { margin: 0; }
.lb-ruban__actions { margin-top: var(--mv-e-2); }
.lb-repli { display: block; width: 100%; box-sizing: border-box; margin-top: var(--mv-e-2); font: 700 15px/1.4 "Courier New", monospace; }
.lb-fiche { margin: 0; }
.lb-fiche > summary { cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-height: 44px; }
.lb-fiche__titre { font-weight: 700; }
.lb-fiche__derniere { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.lb-fiche__hors { color: var(--mv-encre-2); font-size: 15px; }
/* La mention à la ligne (« Pas au programme… ») prend une ligne à elle ; la sonde mesure la forme à la suite
   (« · pas au programme… »), invisible, sans place ni débord (bloc de largeur nulle qui la coupe). */
.lb-fiche__hors--ligne { flex-basis: 100%; }
.lb-fiche > summary { position: relative; }
.lb-fiche__sonde { position: absolute; left: 0; top: 0; width: 0; height: 0; overflow: hidden; visibility: hidden; pointer-events: none; }
.lb-fiche__sonde .lb-fiche__hors { white-space: nowrap; }
.lb-agrandir { margin-top: var(--mv-e-3); }
.lb-annonce { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.lb-evitement { font-weight: 700; }
/* Sur ordinateur (dès 1000 px) : la calculatrice à gauche, la liste et la fiche à droite (storyboard § 2). */
@media (min-width: 1000px) {
  .lb-scene:not(.lb-scene--agrandie) { display: grid; grid-template-columns: 340px 1fr; grid-template-rows: auto 1fr; gap: var(--mv-e-3) var(--mv-e-5); align-items: start; }
  .lb-scene:not(.lb-scene--agrandie) .lb-scene__calc { grid-row: 1 / span 2; position: sticky; top: 12px; }
}

/* L'AGRANDISSEMENT POUR LA CLASSE : toute la fenêtre, fond du boîtier ; en paysage, la calculatrice à gauche et la
   liste en grandes pastilles à droite ; en portrait, la calculatrice en haut et deux lignes de liste au moins. */
.lb-scene--agrandie { position: fixed; inset: 0; z-index: 50; background: #0E0F10; padding: 8px 12px; box-sizing: border-box;
  display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); grid-template-areas: "calc barre" "calc ruban";
  gap: 8px 16px; overflow: hidden; }
.lb-scene--agrandie .lb-scene__barre { grid-area: barre; display: flex; justify-content: flex-end; }
.lb-scene--agrandie .lb-scene__calc { grid-area: calc; }
.lb-scene--agrandie .lb-scene__ruban { grid-area: ruban; }
.lb-scene--agrandie .lb-scene__calc { min-height: 0; min-width: 0; height: 100%; display: flex; align-items: center; justify-content: center; }
.lb-scene--agrandie .mc-machine .ti30-ecran { position: static; }
.lb-scene--agrandie .lb-scene__ruban { min-height: 0; overflow: auto; margin: 0; }
.lb-ruban--grand .mc-touche { font-size: 34px; padding: 4px 14px; }
.lb-ruban--grand .lb-ruban__ligne { gap: 8px; margin-bottom: 10px; }
@media (orientation: portrait) {
  .lb-scene--agrandie { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; grid-template-areas: "barre" "calc" "ruban"; }
  .lb-scene--agrandie .lb-scene__ruban { max-height: none; min-height: 132px; }
  .lb-ruban--grand .mc-touche { font-size: 26px; padding: 2px 10px; }
}

/* ── LE LOT A2 AILLEURS (22.11.2026) ─────────────────────────────────────────────────────────────────────────────── */
/* Les pastilles prennent la couleur de leur touche dessinée, assombrie pour le texte de 14 px (4,5:1, bancs/contrastes.js) :
   noires pour les fonctions, bleues pour les chiffres, le point, +/− et 2nd, grises pour ÷ × − + =, et, pour une
   fonction de 2nd (la liste tapée de /libre), le bleu clair de la sérigraphie sur le noir du boîtier. La pastille faite
   (vert) et la pastille à taper (surligneur) gardent leurs couleurs. */
.mc-touche.mc-touche--fn:not(.mc-touche--fait):not(.mc-touche--ici) { background: #2C2E31; color: #FFFFFF; }
.mc-touche.mc-touche--num:not(.mc-touche--fait):not(.mc-touche--ici),
.mc-touche.mc-touche--2nd:not(.mc-touche--fait):not(.mc-touche--ici) { background: #0B76C4; color: #FFFFFF; }
.mc-touche.mc-touche--op:not(.mc-touche--fait):not(.mc-touche--ici) { background: #666C6C; color: #FFFFFF; }
.mc-touche.mc-touche--deuxieme:not(.mc-touche--fait):not(.mc-touche--ici) { background: #1F2124; color: #3BB9E8; }
/* Un seul titre de niveau 1 par écran (D-P2-2) : le titre d'une mission, d'une mise en situation, de la vérification,
   du quiz et du bilan devient un h1, à la taille qu'il avait en h2. */
.mv-charte.mc-app h1.mc-titre-ecran { font-size: 23px; line-height: 1.25; margin: var(--mv-e-2) 0 var(--mv-e-2); }
/* L'accès direct à la calculatrice, visible au focus, là où une calculatrice est affichée. */
.mc-evitement { position: absolute; left: 8px; top: 4px; z-index: 30; padding: 8px 12px; background: #FFFFFF; color: var(--mv-encre); font-weight: 700;
  border: 2px solid var(--mv-focus); border-radius: 6px; }
/* Sans le focus, rien ne s'en voit (retouches du lot A2, 22.11.2026, trouvé sur les captures en fenêtre, corrigé sur
   décision de Marc) : translateY(-200%) ne le sortait pas de la page, son bloc parent (l'en-tête de la masterclass)
   commence 52 px plus bas, et le bas du cadre dépassait de 9,6 px au-dessus d'« Accueil ». Toujours atteint par Tab,
   toujours lu ; au focus, il paraît où il paraissait. Contrôle : bancs/ecrans_a2.js, avec son témoin. */
.mc-evitement:not(:focus) { clip-path: inset(50%); opacity: 0; pointer-events: none; }
html:not(.mc-vue-machine) .mc-evitement { display: none; }
/* La fiche : comment sortir du mode, en tête. */
.mc-fiche__sortir { background: var(--mv-surligneur-doux); border-left: 4px solid var(--mv-encre); padding: 6px 10px; margin: 0 0 var(--mv-e-2); }
.mc-vers-libre { margin: var(--mv-e-2) 0 0; }
/* « +/− » ne se coupe jamais en fin de ligne (retouches du lot A2, 22.11.2026, point 1) : le span posé au rendu par
   typographie.js. Contrôle : bancs/insecable.js, dont le témoin éteint cette règle. */
.mv-insecable { white-space: nowrap; }

/* ── LOT B (23.11.2026, storyboard v1.0) ──────────────────────────────────────────────────────────────────────────
   « Toutes les missions, par thème » sur /masterclass (§ 3), repliée ; la même liste est dans le HTML initial. */
.mc-toutes { margin-top: var(--mv-e-4); }
.mv-charte.mc-app .mc-toutes__titre { cursor: pointer; font-family: var(--mv-police-titre); font-size: 19px; font-weight: 700; line-height: 1.35; padding: 4px 0; }
.mv-charte.mc-app .mc-toutes__theme h3 { font-size: 16.5px; margin: var(--mv-e-4) 0 var(--mv-e-1); }
.mc-toutes ul { margin: 0; padding-left: 1.2em; }
.mc-toutes li { margin: 0 0 6px; line-height: 1.4; }
.mc-toutes__annees, .mc-sommaire__annees { color: var(--mv-encre-2); font-size: 14.5px; white-space: nowrap; }
/* Le premier écran fabriqué (§ 2.2), avant que l'app ne démarre : la place de la barre de retour, et rien qui bouge. */
.cq-prerendu { padding-top: 52px; }
.cq-prerendu .mc-option { cursor: default; }
/* L'arrivée par un lien (§ 2.1) : l'année proposée, sous l'en-tête ; la machine, au défi. Discrètes. */
.mv-charte.mc-app .mc-annee-proposee { margin: 0 0 var(--mv-e-2); color: var(--mv-encre-2); }
.mv-charte.mc-app .mc-rappel-machine { margin: var(--mv-e-2) 0 var(--mv-e-3); color: var(--mv-encre-2); }
/* « Partager » (§ 2.4) : sous la ligne du cahier, un bouton secondaire ; l'état dessous. */
.mc-partage { margin: var(--mv-e-3) 0 var(--mv-e-4); }
.mv-charte.mc-app .mc-partage__etat { margin: 6px 0 0; min-height: 1.4em; color: var(--mv-encre-2); }
.mc-partage__lien { display: block; box-sizing: border-box; width: 100%; margin-top: 4px; font: inherit; font-size: 15px; padding: 6px 8px;
  border: 1px solid var(--mv-filet); border-radius: var(--mv-r-2); background: var(--mv-feuille); color: var(--mv-encre); resize: none; }
/* « Ses missions » sous un cahier (§ 7). */
.cq-cahier-bloc { margin: 0 0 var(--mv-e-3); }
.mv-charte a.cq-cahier-bloc > .cq-cahier, .cq-cahier-bloc > a.cq-cahier { margin-bottom: 0; }
.cq-cahier__missions { padding: var(--mv-e-2) var(--mv-e-4) 0; font-size: 15px; line-height: 1.4; }
.mv-charte.mc-app .cq-cahier__missions-titre { margin: 0 0 2px; color: var(--mv-encre-2); font-size: 14.5px; }
.cq-cahier__missions ul { margin: 0; padding-left: 1.2em; }
.cq-cahier__missions li { margin: 0 0 4px; }

/* /enseignants (§ 5) : la ligne des parties, le choix d'année, la liste par thème. */
.mv-charte.mc-app .cq-enseignants h1 { margin-top: 0; }
.cq-parties ul { list-style: none; padding: 0; margin: var(--mv-e-3) 0 0; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 15px; }
.cq-parties li { margin: 0; }
.mv-charte.mc-app .cq-enseignants h2[tabindex] { scroll-margin-top: var(--mv-e-6); }
.cq-annees-ens { margin: var(--mv-e-3) 0 var(--mv-e-2); grid-template-columns: repeat(5, minmax(0, 1fr)); }
.mv-charte.mc-app .cq-theme-ens h3 { font-size: 17px; margin: var(--mv-e-4) 0 var(--mv-e-2); }
.cq-enseignants ul.cq-pages-ens { list-style: none; padding: 0; margin: 0; }
.cq-enseignants li.cq-page-ens { margin: 0 0 var(--mv-e-3); padding: var(--mv-e-3) 0 0; border-top: 1px solid var(--mv-filet); }
.mv-charte.mc-app .cq-page-ens__titre { margin: 0; font-weight: 600; line-height: 1.35; }
.cq-page-ens__annees { font-weight: 400; color: var(--mv-encre-2); font-size: 14.5px; white-space: nowrap; }
.mv-charte.mc-app .cq-page-ens__adresse { margin: 2px 0 6px; font-size: 14.5px; color: var(--mv-encre-2); overflow-wrap: anywhere; }
.cq-page-ens__actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; }
.cq-page-ens__actions .mc-partage { margin: 0; }
.cq-page-ens__actions .mc-partage__etat:empty { display: none; }
.mv-charte.mc-app .cq-imprimer { margin: var(--mv-e-4) 0 0; }

/* La boîte « Code QR » (§ 6) : le code aussi grand que l'écran le permet, sur blanc, le titre et l'adresse dessous. */
.cq-qr-voile { position: fixed; inset: 0; z-index: 60; background: rgba(16, 42, 67, .55); display: flex; align-items: center; justify-content: center; padding: 12px; }
.cq-qr-boite { box-sizing: border-box; max-width: 100%; max-height: 100%; overflow: auto; background: #FFFFFF; border-radius: var(--mv-r-2);
  padding: 12px 16px 16px; display: flex; flex-direction: column; align-items: center; text-align: center; color: var(--mv-encre); }
.cq-qr-image { display: block; width: min(86vw, calc(100vh - 230px)); height: auto; min-width: 160px; image-rendering: pixelated; }
.mv-charte.mc-app .cq-qr-titre, .cq-qr-titre { margin: 8px 0 0; font-family: var(--mv-police-titre); font-weight: 700; font-size: clamp(19px, 3.2vw, 34px); line-height: 1.25; }
.mv-charte.mc-app .cq-qr-adresse, .cq-qr-adresse { margin: 4px 0 12px; font-size: clamp(16px, 2.6vw, 28px); overflow-wrap: anywhere; }

/* La feuille des codes QR (§ 6) : cachée à l'écran ; imprimée seule, sous html.cq-imprime-qr. Huit cartes par page A4
   (deux colonnes, quatre rangées), le code de 4 cm, des traits de coupe en tirets ; une page par groupe de huit. */
.cq-feuille-qr { display: none; }
@page { size: A4; margin: 10mm; }
@media print {
  html.cq-imprime-qr body > *:not(.cq-feuille-qr) { display: none !important; }
  html.cq-imprime-qr body { background: #FFFFFF !important; margin: 0; }
  html.cq-imprime-qr .cq-feuille-qr { display: block; color: #000000; font-family: "Source Sans Pro", Arial, sans-serif; }
  .cq-feuille-qr__page { display: grid; grid-template-columns: 95mm 95mm; grid-auto-rows: 69mm; width: 190mm; break-after: page; page-break-after: always; }
  .cq-feuille-qr__page:last-child { break-after: auto; page-break-after: auto; }
  .cq-carte-qr { box-sizing: border-box; border: 0.3mm dashed #777777; padding: 4mm 5mm; break-inside: avoid; overflow: hidden;
    display: grid; grid-template-columns: 40mm 1fr; grid-template-rows: auto 40mm auto; column-gap: 4mm; row-gap: 1.5mm; align-content: start; }
  .cq-carte-qr p { margin: 0; }
  .cq-carte-qr__titre { grid-column: 1 / -1; font-weight: 700; font-size: 11pt; line-height: 1.2; }
  .cq-carte-qr__code { grid-column: 1; grid-row: 2; width: 40mm; height: 40mm; }
  .cq-carte-qr__annees { grid-column: 2; grid-row: 2; align-self: center; font-size: 10pt; line-height: 1.4; color: #333333; }
  .cq-carte-qr__adresse { grid-column: 1 / -1; font-size: 8pt; line-height: 1.25; }
}
