/* Pap’pote — chantier « First Class », lot 1 : les images du chantier (design-system/v2/fc/*) posées sur les écrans
   existants. Présentation seule : aucune donnée, aucune route, aucun texte ici (le sens est toujours porté par le texte
   HTML voisin, traduit). Couleurs : uniquement des --pp-* de design-system/v2/tokens.css (aucune couleur littérale),
   aucun !important. Mouvement : aucun (rien ne bouge, donc rien à couper sous prefers-reduced-motion).
   Images : WebP générés depuis les packs 2 à 7 (scripts du compte rendu du lot 1), alt="" quand un titre voisin
   porte le sens, dimensions explicites, chargement différé hors du premier écran. */

/* ---------- 1. États vides (pack 3) ---------- */
.fc-empty-art { display: block; width: clamp(128px, 36vw, 192px); height: auto; aspect-ratio: 1; margin-inline: auto; object-fit: contain; }
.fc-empty-art--start { margin-inline: 0; }
.fc-empty-art--sm { width: clamp(112px, 28vw, 144px); }
/* dans le disque « fq-state-art » des pages Fresque : l'illustration remplit le disque sans le déborder */
.fq-state-art .fc-empty-art { width: 86%; margin: 0; }

/* États d'erreur (lot 3) : « erreur » (souci côté serveur) et « hors-ligne » (pas de réseau) dans le disque fq-state-art
   des états fq-state--error générés par les pages V2 (progress, langues-statut, offers, app-shell, parent). Les pages
   alignent leurs états à gauche ou au centre : le disque suit, à taille fixe, sans pastille autour. */
.fq-state--error .fq-state-art { display: grid; place-items: center; width: clamp(96px, 28vw, 128px); aspect-ratio: 1; margin: 0; padding: 0; background: none; border-radius: 0; }
.fq-state--error .fq-state-art .fc-empty-art { width: 100%; margin: 0; }
/* tableau de bord parent : l'illustration hors ligne prend la place de la pastille (gabarit #db-art-offline) */
.fc-empty-art--state { width: clamp(96px, 28vw, 128px); margin-inline: 0; }

/* ---------- 2. Passeport (pack 2) : les six tampons A1 → C2, la lettre du niveau en vrai texte par-dessus ---------- */
.fc-visa { list-style: none; margin: var(--pp-s-3, 12px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--pp-s-1, 4px); }
.fc-stamp { position: relative; display: grid; place-items: center; aspect-ratio: 1; min-width: 0; container-type: inline-size; }
.fc-stamp img { display: block; width: 100%; height: 100%; object-fit: contain; }
/* la lettre : 26 % de la largeur du sceau (consigne du pack 2 : 24 à 32 %), encre sur le centre clair du tampon */
.fc-stamp__level { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none;
  font: 800 clamp(11px, 26cqi, 30px) / 1 var(--fc-stamp-font, var(--pp-font-ui)); color: var(--fc-stamp-ink, var(--pp-ink-800)); letter-spacing: -.02em; }
/* centre optique différent selon la forme du tampon (vérifié sur les PNG) */
.fc-stamp[data-level="A1"] .fc-stamp__level, .fc-stamp[data-level="B1"] .fc-stamp__level, .fc-stamp[data-level="C2"] .fc-stamp__level { padding-bottom: 5%; }
.fc-stamp[data-level="C1"] .fc-stamp__level { padding-bottom: 3%; }
.fc-stamp[data-level="B2"] .fc-stamp__level { padding-bottom: 14%; }
/* obtenu : plein ; en cours : visible, anneau pointillé ; verrouillé : estompé et désaturé (la lettre reste lisible) */
.fc-stamp.is-locked img { opacity: .32; filter: grayscale(1); }
.fc-stamp.is-locked .fc-stamp__level { color: var(--fc-stamp-ink-2, var(--pp-text-2)); }
.fc-stamp.is-current { outline: 2px dashed var(--fc-stamp-ring, var(--pp-accent)); outline-offset: -2px; border-radius: 50%; }
.fc-stamp.is-current img { opacity: .78; }
/* les pages historiques (profile.html, sans v2/tokens.css) posent --fc-stamp-ink, --fc-stamp-ink-2, --fc-stamp-ring et
   --fc-stamp-font avec leurs propres jetons (passport.css) ; obtenu et en cours : encre sombre fixe, le centre du tampon
   reste clair dans les deux thèmes ; verrouillé : texte secondaire du thème (le tampon estompé laisse voir la carte) */
/* le cadre du passeport (état vide du passeport) */
.fc-passport-frame { display: block; width: 104px; height: 104px; flex: none; object-fit: contain; }
@media (forced-colors: active) { .fc-stamp.is-current { outline-color: CanvasText; } .fc-stamp.is-locked img { opacity: .5; } }

/* ---------- 3. Fonds hublot / ciel / terminal (pack 4) : une bande décorative derrière le haut de l'écran ----------
   Le parent porte .fc-sky-host (pose position + isolation) ; la bande est un élément vide aria-hidden, sous le contenu,
   fondue vers le fond de la page, couverte d'un voile (--pp-fc-veil, v2/tokens.css) pour que le texte posé dessus garde
   son contraste (mesuré : test/fc-lot1.test.js). Clair par défaut, sombre en thème nuit (choix explicite ou système). */
.fc-sky-host { position: relative; isolation: isolate; }
.fc-sky { position: absolute; inset: 0 0 auto; z-index: -1; height: clamp(200px, 34vh, 360px); pointer-events: none;
  background-color: var(--pp-bg);
  background-image: linear-gradient(var(--pp-fc-veil), var(--pp-fc-veil)), var(--fc-sky-img);
  background-size: cover; background-position: var(--fc-sky-pos, center 40%); background-repeat: no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, var(--pp-black) 45%, var(--pp-clear));
  mask-image: linear-gradient(to bottom, var(--pp-black) 45%, var(--pp-clear)); }
.fc-sky--hublot { --fc-sky-img: url("/design-system/v2/fc/ciels/hublot-aube-clair-960.webp"); }
.fc-sky--ciel { --fc-sky-img: url("/design-system/v2/fc/ciels/ciel-nuages-clair-960.webp"); }
.fc-sky--terminal { --fc-sky-img: url("/design-system/v2/fc/ciels/terminal-clair-960.webp"); }
@media (min-width: 1000px) {
  .fc-sky--hublot { --fc-sky-img: url("/design-system/v2/fc/ciels/hublot-aube-clair-1920.webp"); }
  .fc-sky--ciel { --fc-sky-img: url("/design-system/v2/fc/ciels/ciel-nuages-clair-1920.webp"); }
  .fc-sky--terminal { --fc-sky-img: url("/design-system/v2/fc/ciels/terminal-clair-1920.webp"); }
}
[data-theme="dark"] .fc-sky--hublot { --fc-sky-img: url("/design-system/v2/fc/ciels/hublot-aube-sombre-960.webp"); }
[data-theme="dark"] .fc-sky--ciel { --fc-sky-img: url("/design-system/v2/fc/ciels/ciel-nuages-sombre-960.webp"); }
[data-theme="dark"] .fc-sky--terminal { --fc-sky-img: url("/design-system/v2/fc/ciels/terminal-sombre-960.webp"); }
@media (min-width: 1000px) {
  [data-theme="dark"] .fc-sky--hublot { --fc-sky-img: url("/design-system/v2/fc/ciels/hublot-aube-sombre-1920.webp"); }
  [data-theme="dark"] .fc-sky--ciel { --fc-sky-img: url("/design-system/v2/fc/ciels/ciel-nuages-sombre-1920.webp"); }
  [data-theme="dark"] .fc-sky--terminal { --fc-sky-img: url("/design-system/v2/fc/ciels/terminal-sombre-1920.webp"); }
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .fc-sky--hublot { --fc-sky-img: url("/design-system/v2/fc/ciels/hublot-aube-sombre-960.webp"); }
  :root:not([data-theme="light"]) .fc-sky--ciel { --fc-sky-img: url("/design-system/v2/fc/ciels/ciel-nuages-sombre-960.webp"); }
  :root:not([data-theme="light"]) .fc-sky--terminal { --fc-sky-img: url("/design-system/v2/fc/ciels/terminal-sombre-960.webp"); }
}
@media (prefers-color-scheme: dark) and (min-width: 1000px) {
  :root:not([data-theme="light"]) .fc-sky--hublot { --fc-sky-img: url("/design-system/v2/fc/ciels/hublot-aube-sombre-1920.webp"); }
  :root:not([data-theme="light"]) .fc-sky--ciel { --fc-sky-img: url("/design-system/v2/fc/ciels/ciel-nuages-sombre-1920.webp"); }
  :root:not([data-theme="light"]) .fc-sky--terminal { --fc-sky-img: url("/design-system/v2/fc/ciels/terminal-sombre-1920.webp"); }
}
/* Variante « fond » (lot 2, hub de app.html) : la même bande peinte comme fond du conteneur lui-même, sans élément
   ajouté ni contexte d'empilement (le hub a des menus et des feuilles qui doivent passer au-dessus de tout). Trois
   couches : le fondu vers --pp-bg (opaque sous la bande, il recouvre le reste de l'image), le voile, puis l'image
   (16:9, toujours plus haute que la bande). */
.fc-sky-bg { --fc-sky-h: clamp(200px, 34vh, 360px);
  background-image: linear-gradient(to bottom, var(--pp-clear) calc(var(--fc-sky-h) * .45), var(--pp-bg) var(--fc-sky-h)), linear-gradient(var(--pp-fc-veil), var(--pp-fc-veil)), var(--fc-sky-img);
  background-size: 100% 100%, 100% var(--fc-sky-h), max(100%, calc(var(--fc-sky-h) * 16 / 9)) auto;
  background-position: center top; /* la bande part du haut du conteneur */
  background-repeat: no-repeat; }
.kids-mode .fc-sky-bg { background-image: none; }

/* Confort (texte agrandi) et contraste forcé : décor minimal, la bande disparaît ; impression : rien */
[data-a11y="large"] .fc-sky { display: none; }
[data-a11y="large"] .fc-sky-bg { background-image: none; }
@media (forced-colors: active), print { .fc-sky { display: none; } .fc-sky-bg { background-image: none; } }

/* ---------- 4. Favoris (favoris.html) : l'état vide centré sous son illustration ---------- */
.fav-empty { text-align: center; }
