/* YooPanel : composants « Pop kiosque » (carte #509). Charge après tokens.css. Préfixe yp-. */

/* ---------- Dosage et ombres (Marqué par défaut) ---------- */
:root, [dir], [data-theme], .yp-marque {
  --yp-sx: 1;
  --yp-b: var(--bordure-3, 2.5px);
  --yp-b-cta: var(--bordure-5, 2.5px);
  --yp-sh: calc(4px * var(--yp-sx)) 4px 0 var(--ombre);
  --yp-sh-hover: calc(6px * var(--yp-sx)) 6px 0 var(--ombre);
  --yp-sh-press: calc(1px * var(--yp-sx)) 1px 0 var(--ombre);
  --yp-sh-petit: calc(3px * var(--yp-sx)) 3px 0 var(--ombre);
  --yp-move-hover: translate(calc(-2px * var(--yp-sx)), -2px);
  --yp-move-press: translate(calc(3px * var(--yp-sx)), 3px);
  --yp-cb: var(--encre);
}
[dir="rtl"] { --yp-sx: -1; }
.yp-modere, .yp-modere [dir], .yp-modere [data-theme] {
  --yp-b: var(--bordure-2, 2px);
  --yp-b-cta: var(--bordure-3, 2.5px);
  --yp-sh: 0 3px 0 var(--ombre);
  --yp-sh-hover: 0 4px 0 var(--ombre);
  --yp-sh-press: 0 1px 0 var(--ombre);
  --yp-sh-petit: 0 2px 0 var(--ombre);
  --yp-move-hover: translateY(-1px);
  --yp-move-press: translateY(2px);
}

/* ---------- Base ---------- */
.yp, .yp-base {
  font-family: var(--font-texte); font-size: 16px; line-height: 1.55;
  color: var(--texte); background: var(--fond);
  -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; overflow-wrap: anywhere;
}
.yp *, .yp *::before, .yp *::after { box-sizing: border-box; }
.yp :is(h1,h2,h3,h4) { font-family: var(--font-titre); font-weight: 800; letter-spacing: -.025em; line-height: 1.1; margin: 0; text-wrap: balance; }
.yp p { margin: 0; }
.yp ::selection { background: var(--citron); color: var(--encre); }
/* Écritures liées : jamais d'interlettrage négatif (il casse les ligatures de l'arabe) */
.yp :lang(ar), .yp [lang="ar"], .yp [lang="fa"], .yp [lang="ur"] { font-family: var(--font-arabe); line-height: 1.8; letter-spacing: 0; }
.yp [lang="ar"] :is(h1,h2,h3,h4), .yp [lang="fa"] :is(h1,h2,h3,h4), .yp [lang="ur"] :is(h1,h2,h3,h4) { font-family: var(--font-arabe); font-weight: 800; line-height: 1.4; letter-spacing: 0; }
.yp :lang(he), .yp [lang="he"] { font-family: var(--font-hebreu); letter-spacing: 0; }
.yp [lang="he"] :is(h1,h2,h3,h4) { font-family: var(--font-hebreu); letter-spacing: 0; }
.yp-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.yp-mono { font-variant-numeric: tabular-nums; }
.yp-nombre { font-variant-numeric: tabular-nums; font-weight: 700; unicode-bidi: isolate; }
.yp .yp-titre-section { margin: 0 0 24px; }
.yp-montant { font-family: var(--font-titre); font-variant-numeric: tabular-nums; font-weight: 800; color: var(--montant); direction: ltr; unicode-bidi: isolate; white-space: nowrap; }
.yp-surtitre { font: 700 12.5px/1.2 var(--font-texte); letter-spacing: .14em; text-transform: uppercase; color: var(--texte-2); }
.yp-exemple { display: inline-block; font: 600 12px/1.4 var(--font-texte); color: var(--texte-discret); border: 2px dashed currentColor; border-radius: 6px; padding: 0 6px; }
.yp :focus-visible, .yp-focus:focus-visible { outline: 3px solid var(--focus-1); outline-offset: 3px; }
.yp [tabindex="-1"]:focus { outline: none; }
.yp-picto { display: inline-flex; width: 24px; height: 24px; flex: none; color: inherit; }
.yp-picto svg { width: 100%; height: 100%; display: block; }
.yp-picto--16 { width: 16px; height: 16px; }
.yp-picto--20 { width: 20px; height: 20px; }
[dir="rtl"] .yp-picto--miroir svg { transform: scaleX(-1); }
.yp-exemple-tag::after { content: attr(data-exemple); }

/* ---------- Boutons ---------- */
.yp-btn {
  --b: var(--yp-b);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; min-width: 44px; padding: 12px 22px;
  font: 700 17px/1.15 var(--font-titre); text-align: center; text-decoration: none; white-space: normal;
  color: var(--texte); background: var(--surface);
  border: var(--b) solid var(--bordure); border-radius: var(--rayon-bouton);
  box-shadow: var(--yp-sh); cursor: pointer; user-select: none;
  transition: transform var(--duree-appui) var(--courbe-tampon), box-shadow var(--duree-appui) var(--courbe-tampon), background-color .2s;
}
.yp-btn:hover { transform: var(--yp-move-hover); box-shadow: var(--yp-sh-hover); }
.yp-btn:active, .yp-btn.is-appui { transform: var(--yp-move-press); box-shadow: var(--yp-sh-press); }
.yp-btn--primaire { --b: var(--yp-b-cta); background: var(--cta); color: var(--cta-texte); border-color: var(--encre); }
.yp-btn--primaire:hover { background: var(--cta-survol); }
.yp-btn--secondaire { background: var(--papier); color: var(--encre); border-color: var(--encre); }
.yp-btn--citron { background: var(--citron); color: var(--encre); border-color: var(--encre); }
.yp-btn--danger { background: var(--rouge); color: var(--blanc); border-color: var(--encre); }
.yp-btn--sur-encre { background: var(--citron); color: var(--encre); border-color: var(--citron); box-shadow: none; }
.yp-btn--sur-encre:hover, .yp-btn--sur-encre:active { box-shadow: none; }
.yp-btn--petit { min-height: 40px; padding: 8px 16px; font-size: 15px; border-width: 2px; border-radius: 13px; box-shadow: var(--yp-sh-petit); }
.yp-btn:disabled, .yp-btn[aria-disabled="true"] {
  background: var(--papier); color: var(--texte-3); border-style: dashed; border-color: rgba(30, 25, 21, .28);
  box-shadow: none; transform: none; cursor: not-allowed;
}
.yp-btn[aria-busy="true"] { cursor: progress; transform: none; box-shadow: var(--yp-sh-press); }
.yp-btn--bloc { display: flex; width: 100%; }
.yp-btn .yp-fleche { transition: transform .25s var(--courbe-tampon); }
.yp-btn:hover .yp-fleche { transform: translateX(calc(4px * var(--yp-sx))); }
[dir="rtl"] .yp-btn .yp-fleche svg { transform: scaleX(-1); }
/* Flèche posée sur le <svg> lui-même (gabarits « Pop kiosque », carte #509) : miroir par `scale`, qui laisse libre le `transform` du survol. */
[dir="rtl"] svg.yp-fleche { scale: -1 1; }
.yp-lien { color: var(--texte); font-weight: 700; text-decoration: underline; text-decoration-color: var(--tomate); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.yp-lien:hover { background: linear-gradient(transparent 62%, var(--citron) 62% 92%, transparent 92%); }

/* ---------- Champs ---------- */
.yp-champ { display: grid; gap: 6px; max-width: 100%; }
.yp-label { font: 700 16px/1.35 var(--font-texte); color: var(--texte); }
.yp-label .yp-opt { font-weight: 400; color: var(--texte-discret); }
.yp-aide { font-size: 14px; line-height: 1.5; color: var(--texte-discret); }
.yp-input-cadre { position: relative; display: flex; align-items: center; }
.yp-input, .yp-select {
  width: 100%; min-height: 52px; padding: 12px 16px;
  font: 500 16.5px/1.4 var(--font-texte); color: var(--texte);
  background: var(--surface); border: 2px solid var(--bordure); border-radius: var(--rayon);
  appearance: none;
}
.yp-input::placeholder { color: var(--texte-discret); }
.yp-input:focus-visible, .yp-select:focus-visible { outline: none; box-shadow: calc(4px * var(--yp-sx)) 4px 0 var(--tomate); }
.yp-select { padding-inline-end: 44px; cursor: pointer; }
.yp-input-cadre .yp-picto { position: absolute; inset-inline-end: 12px; pointer-events: none; }
.yp-input-cadre:has(.yp-picto) .yp-input { padding-inline-end: 44px; }
.yp-champ.is-rempli .yp-input { background: var(--surface); }
.yp-champ.is-erreur .yp-input, .yp-champ.is-erreur .yp-select { border-color: var(--erreur); }
.yp-champ.is-erreur .yp-input-cadre .yp-picto { color: var(--erreur); }
.yp-msg-erreur { display: flex; gap: 6px; align-items: flex-start; font-size: 14px; font-weight: 600; color: var(--erreur); }
.yp-champ.is-valide .yp-input { border-color: var(--montant); }
.yp-champ.is-valide .yp-input-cadre .yp-picto { color: var(--montant); }
.yp-input:disabled, .yp-select:disabled { background: var(--papier-2); color: var(--texte-3); border-style: dashed; border-color: var(--texte-3); cursor: not-allowed; }
.yp-champ.is-verrouille .yp-input { background: var(--papier-2); border-style: dashed; color: var(--texte-2); }
.yp-champ.is-verrouille .yp-input-cadre .yp-picto { color: var(--texte-2); }

/* Case, radio, bascule */
.yp-choix { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; padding: 10px 0; cursor: pointer; font-size: 16px; }
.yp-choix input { appearance: none; margin: 0; flex: none; width: 24px; height: 24px; border: 2px solid var(--bordure); background: var(--surface); border-radius: 7px; display: grid; place-content: center; cursor: pointer; }
.yp-choix input[type="radio"] { border-radius: 50%; }
.yp-choix input:checked { background: var(--citron); box-shadow: calc(2px * var(--yp-sx)) 2px 0 var(--encre); }
.yp-choix input[type="checkbox"]:checked::after { content: ""; width: 12px; height: 7px; border: solid var(--encre); border-width: 0 0 3px 3px; transform: translateY(-2px) rotate(-45deg); }
.yp-choix input[type="radio"]:checked::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--encre); }
.yp-choix input:focus-visible { outline: 3px solid var(--focus-1); outline-offset: 3px; }
.yp-choix.is-erreur input { border-color: var(--erreur); border-width: 3px; }
.yp-choix input:disabled { border-style: dashed; border-color: var(--texte-3); background: var(--papier-2); cursor: not-allowed; }
.yp-choix:has(input:disabled) { color: var(--texte-3); cursor: not-allowed; }
.yp-bascule input { width: 52px; height: 30px; border-radius: 999px; border-width: 2px; place-content: center start; padding: 3px; }
.yp-bascule input::after { content: ""; width: 20px; height: 20px; border-radius: 50%; background: var(--encre); transition: transform var(--duree-appui); }
.yp-bascule input:checked { background: var(--jaune); }
.yp-bascule input:checked::after { transform: translateX(calc(22px * var(--yp-sx))); width: 20px; height: 20px; border: 0; border-radius: 50%; }
.yp-bascule input:disabled::after { background: var(--texte-3); }

/* ---------- Afficheur LED ---------- */
/* Le compteur de la cagnotte : carte papier, chiffre en Bricolage (l'ancien afficheur à segments est retiré). */
.yp-led {
  --taille: 30px; --n: 6;
  position: relative; display: block; container-type: inline-size;
  padding: 14px 18px; border-radius: var(--rayon-grand);
  background: var(--papier); border: var(--yp-b) solid var(--encre); box-shadow: var(--yp-sh);
  color: var(--encre); font-family: var(--font-titre); font-weight: 800;
  font-variant-numeric: tabular-nums; line-height: 1.05; text-align: start;
  unicode-bidi: isolate; overflow: hidden;
}
.yp-led__ecran { position: relative; display: block; }
.yp-led__val { position: relative; display: inline-block; direction: ltr; white-space: nowrap; font-size: min(var(--taille), calc(100cqi / (var(--n) * 0.62))); }
.yp-led__fantome, .yp-led__vis { display: none; }
.yp-led--page { --taille: clamp(1.8rem, 5vw, 2.6rem); }
.yp-led--landing { --taille: 48px; padding: 18px 24px; }
.yp-led__chargement { display: flex; gap: 6px; height: var(--taille); align-items: center; }
.yp-led__chargement i { width: 0.5em; height: 0.8em; font-size: var(--taille); background: var(--segment-eteint); border-radius: 4px; }
.yp-led__libelle { display: block; font: 700 13px/1.3 var(--font-texte); color: var(--texte-2); text-align: start; margin-bottom: 6px; }
/* Palette de chiffres : chaque caractère dans un .yp-chiffre */
.yp-chiffre { display: inline-block; }
.yp-chiffre.is-bascule { animation: yp-bascule var(--duree-palette, 320ms) var(--courbe-tiroir, ease-out) 1 both; transform-origin: 50% 0; }
@keyframes yp-bascule { 0% { transform: translateY(-40%); opacity: .2; } 100% { transform: none; opacity: 1; } }
.yp-balayage { position: relative; }
/* Voyant unique */
.yp-voyant { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--tomate); border: 2px solid var(--encre); }
@media (min-width: 768px) { .yp-voyant.is-clignote { animation: yp-clignote 600ms steps(2) 1; } }
@keyframes yp-clignote { 50% { opacity: .25; } }

/* ---------- Barre de seuil ---------- */
.yp-seuil { display: grid; gap: 6px; }
.yp-seuil__blocs { display: flex; height: 18px; background: var(--papier); border: 2px solid var(--encre); border-radius: var(--rayon-pastille); overflow: hidden; }
.yp-seuil__blocs i { flex: 1; }
.yp-seuil__blocs i.is-on { background: repeating-linear-gradient(-45deg, var(--tomate) 0 8px, #ec6446 8px 16px); }
.yp-seuil.is-atteint .yp-seuil__blocs i { background: var(--citron); }
.yp-seuil__texte { font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--texte-2); }
.yp-seuil__texte b { font-variant-numeric: tabular-nums; color: var(--texte); font-weight: 800; unicode-bidi: isolate; }
.yp-seuil--papier .yp-seuil__texte { color: var(--texte-discret); }
.yp-seuil--papier .yp-seuil__texte b { color: var(--texte); }

/* ---------- Perforations, code-barres, déchirure ---------- */
.yp-trous { height: 12px; background: radial-gradient(circle, #1e1915 4px, transparent 4.5px) 0 0 / 16px 12px repeat-x; }
.yp-trous--papier { background-image: radial-gradient(circle, #fbf3e4 4px, transparent 4.5px); }
.yp-code-barres { height: 14px; background: repeating-linear-gradient(90deg, var(--yp-cb) 0 1px, transparent 1px 3px, var(--yp-cb) 3px 5px, transparent 5px 8px, var(--yp-cb) 8px 9px, transparent 9px 12px); }
.yp-code-barres--encre { --yp-cb: var(--encre); }
.yp-dechirure { position: relative; height: 24px; background: var(--fond); }
.yp-dechirure::before { content: ""; position: absolute; inset: 6px 0 auto; height: 12px; background: radial-gradient(circle, var(--encre) 4px, transparent 4.5px) 8px 0 / 16px 12px repeat-x; }
.yp-dechirure::after { content: ""; position: absolute; inset: 11px 0 auto; border-top: 3px dashed var(--encre); box-shadow: 0 5px 0 rgba(30,25,21,.0); }
.yp-dechirure--ombre { box-shadow: 0 5px 0 var(--encre); }

/* ---------- Tampon ---------- */
.yp-tampon {
  --c: var(--tomate-profonde);
  display: inline-block; max-width: 100%; padding: 4px 12px;
  font: 800 18px/1.1 var(--font-tampon); text-align: center;
  color: var(--c); border: 2.5px solid var(--c); border-radius: var(--rayon-pastille);
  transform: rotate(-6deg); background: var(--papier); white-space: normal; overflow-wrap: anywhere;
}
.yp-tampon--petit { font-size: 13px; padding: 2px 9px; border-width: 2px; }
.yp-tampon--papier-2 { --c: var(--rouge-papier-2); }
.yp-tampon--citron { --c: var(--encre); background: var(--citron); }
.yp-sur-encre .yp-tampon, [data-theme="encre"] .yp-tampon { --c: var(--encre); background: var(--citron); }
.yp-tampon.is-pose { animation: yp-tampon var(--duree-tampon, 250ms) var(--courbe-tampon, ease-out) 1 both; }
@keyframes yp-tampon { 0% { transform: scale(1.8) rotate(-2deg); opacity: 0; } 100% { transform: scale(1) rotate(-6deg); opacity: 1; } }
[dir="rtl"] .yp-tampon { transform: rotate(6deg); }

/* ---------- Pastille ---------- */
.yp-pastille {
  display: inline-grid; place-items: center; min-width: 21px; height: 21px; padding: 0 5px;
  font: 800 11.5px/1 var(--font-texte); font-variant-numeric: tabular-nums; color: var(--blanc); background: var(--tomate);
  border-radius: var(--rayon-pastille); direction: ltr; unicode-bidi: isolate;
}
.yp-pastille[hidden] { display: none; }
.yp-pastille.is-secoue { animation: yp-secoue 360ms var(--courbe-tampon) 1; }
@keyframes yp-secoue { 30% { transform: scale(1.25); } 100% { transform: scale(1); } }

/* ---------- Statut ---------- */
.yp-statut { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px 2px 8px; font: 800 12.5px/1.3 var(--font-texte); border: 2px solid var(--encre); border-radius: var(--rayon-pastille); }
.yp-statut .yp-picto { width: 15px; height: 15px; }
.yp-statut--paye { color: var(--statut-paye-texte); background: var(--statut-paye-fond); }
.yp-statut--attente { color: var(--statut-attente-texte); background: var(--statut-attente-fond); }
.yp-statut--erreur { color: var(--statut-erreur-texte); background: var(--statut-erreur-fond); border-color: var(--rouge); }
.yp-statut--demande { color: var(--statut-demande-texte); background: var(--statut-demande-fond); }

/* ---------- Sticker (pastille de mention : Express, Top sondage, durée…) ---------- */
.yp-sticker { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; font: 800 12px/1.25 var(--font-texte); color: var(--encre); background: var(--citron); border: 2px solid var(--encre); border-radius: 999px; white-space: nowrap; }
.yp-sticker:empty { display: none; }
.yp-sticker svg { flex: none; }
.yp-sticker--tomate { background: var(--tomate); color: var(--blanc); }
.yp-sticker--papier { background: var(--papier); }
.yp-sticker--peche { background: var(--peche); }
.yp-sticker--ciel { background: var(--ciel); }
.yp-sticker--incline { transform: rotate(calc(-4deg * var(--yp-sx))); }

/* ---------- Pastilles de choix (filtres, boutons à aria-pressed) ---------- */
.yp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.yp-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 7px 15px; font: 700 14.5px/1.2 var(--font-texte); color: var(--encre); background: var(--papier); border: 2px solid var(--encre); border-radius: 999px; cursor: pointer; white-space: nowrap; text-decoration: none; transition: background-color .15s, transform var(--duree-appui) var(--courbe-tampon); }
.yp-chip:hover { background: var(--papier-2); }
.yp-chip[aria-pressed="true"] { background: var(--encre); color: var(--creme); }
.yp-chip:active { transform: translateY(1px); }
.yp-chip svg { flex: none; }
@media (max-width: 767px) {
  .yp-chips--defile { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding: 2px 16px 4px; }
  .yp-chips--defile::-webkit-scrollbar { display: none; }
}

/* ---------- Reçu (base) ---------- */
.yp-recu {
  position: relative; background: var(--surface); color: var(--texte);
  border: var(--yp-b) dashed var(--bordure); border-radius: var(--rayon);
  box-shadow: var(--yp-sh); padding: 20px 24px;
}
.yp-recu::before, .yp-recu::after { content: ""; position: absolute; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: var(--yp-encoche, var(--fond)); border: var(--yp-b) solid var(--bordure); clip-path: inset(0 0 0 50%); }
.yp-recu::before { inset-inline-start: -14px; }
.yp-recu::after { inset-inline-end: -14px; clip-path: inset(0 50% 0 0); }
[dir="rtl"] .yp-recu::before { clip-path: inset(0 50% 0 0); }
[dir="rtl"] .yp-recu::after { clip-path: inset(0 0 0 50%); }
.yp-recu--plein { border-style: solid; }
.yp-recu__ligne { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 2px dotted var(--filet); flex-wrap: wrap; }
.yp-recu__ligne:last-of-type { border-bottom: 0; }
.yp-recu__num { font: 500 13px/1.4 var(--font-mono); color: var(--accent-texte); }

/* ---------- Reçu de sondage (talon + corps) ---------- */
.yp-rs {
  position: relative; display: grid; grid-template-columns: minmax(104px, 30%) 1fr; color: var(--texte);
  background: var(--surface); border: var(--yp-b) solid var(--bordure); border-radius: var(--rayon);
  box-shadow: var(--yp-sh); transition: transform var(--duree-appui) ease-out; text-decoration: none;
}
a.yp-rs:hover, .yp-rs.is-survol { transform: var(--yp-move-hover); box-shadow: var(--yp-sh-hover); }
a.yp-rs:active { transform: var(--yp-move-press); box-shadow: var(--yp-sh-press); }
.yp-rs:focus-visible { outline: 3px solid var(--focus-1); outline-offset: 3px; box-shadow: var(--yp-sh), 0 0 0 3px var(--focus-2); }
.yp-rs__talon {
  position: relative; display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 16px 14px;
  background: var(--jaune); color: var(--encre); border-start-start-radius: 1px; border-end-start-radius: 1px;
  border-inline-end: 2px dashed var(--encre);
}
.yp-rs__talon::before, .yp-rs__talon::after { content: ""; position: absolute; inset-inline-end: -7px; width: 12px; height: 12px; border-radius: 50%; background: var(--fond); border: 2px solid var(--encre); }
.yp-rs__talon::before { top: -9px; } .yp-rs__talon::after { bottom: -9px; }
.yp-rs__talon { container-type: inline-size; }
.yp-rs__montant { white-space: nowrap; font: 500 min(34px, 24cqi)/1 var(--font-afficheur); font-variant-numeric: tabular-nums; unicode-bidi: isolate; overflow-wrap: anywhere; }
.yp-rs__talon .yp-code-barres { --yp-cb: var(--encre); margin-top: auto; }
.yp-rs__corps { display: grid; gap: 8px; padding: 16px 18px; align-content: start; min-width: 0; }
.yp-rs__titre { font: 400 20px/1.2 var(--font-titre); }
.yp-rs__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font: 500 14px/1.4 var(--font-mono); color: var(--texte-discret); }
.yp-rs__meta span { display: inline-flex; gap: 4px; align-items: center; }
.yp-rs__action { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; margin-top: 4px; }
.yp-rs__tampon { position: absolute; inset-inline-end: 18px; top: 14px; }
.yp-rs.is-indisponible { border-style: dashed; box-shadow: none; }
.yp-rs.is-indisponible .yp-rs__talon { background: var(--papier-2); }
.yp-rs.is-indisponible .yp-rs__titre { color: var(--texte-2); }
.yp-rs.is-non-retenu .yp-rs__talon { background: var(--papier-2); }
.yp-rs.is-non-retenu .yp-rs__montant { text-decoration: line-through 3px; color: var(--texte-2); }
.yp-rs.is-chargement { box-shadow: none; border-style: dashed; }
.yp-rs.is-chargement .yp-rs__talon { background: var(--papier-2); }
.yp-silhouette { display: block; height: 14px; border-radius: 2px; background: repeating-linear-gradient(45deg, var(--papier-2) 0 6px, var(--jaune-pale) 6px 12px); border: 2px solid var(--papier-2); }
.yp-rs--heros { grid-template-columns: minmax(140px, 34%) 1fr; }
.yp-rs--heros .yp-rs__montant { font-size: min(54px, 26cqi); }
.yp-rs--heros .yp-rs__titre { font-size: 26px; }
@media (min-width: 1024px) { .yp-rs--incline { transform: rotate(-2deg); } }
@container (max-width: 360px) { .yp-rs { grid-template-columns: 1fr; } .yp-rs__talon { border-inline-end: 0; border-bottom: 2px dashed var(--encre); flex-direction: row; align-items: center; justify-content: space-between; } .yp-rs__talon::before, .yp-rs__talon::after { display: none; } .yp-rs__talon .yp-code-barres { width: 60px; margin: 0; } }
.yp-cq { container-type: inline-size; }

/* ---------- Bordereau en 3 temps ---------- */
.yp-bordereau { display: grid; gap: 16px; }
.yp-bordereau__etapes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; list-style: none; padding: 0; margin: 0; counter-reset: etape; }
.yp-bordereau__etape { position: relative; display: grid; gap: 4px; justify-items: start; padding: 10px 12px; border: 2px solid var(--bordure); margin-inline-start: -2px; background: var(--surface); font-size: 14px; font-weight: 600; color: var(--texte-discret); }
.yp-bordereau__etape:first-child { margin-inline-start: 0; border-start-start-radius: var(--rayon); border-end-start-radius: var(--rayon); }
.yp-bordereau__etape:last-child { border-start-end-radius: var(--rayon); border-end-end-radius: var(--rayon); }
.yp-bordereau__etape b { font: 700 13px/1 var(--font-mono); display: inline-grid; place-content: center; width: 26px; height: 26px; border: 2px solid currentColor; border-radius: var(--rayon); }
.yp-bordereau__etape.is-active { background: var(--jaune); color: var(--encre); z-index: 1; box-shadow: var(--yp-sh-petit); }
.yp-bordereau__etape.is-faite { color: var(--texte); background: var(--papier-2); }
.yp-bordereau__etape.is-faite b { background: var(--encre); color: var(--papier); border-color: var(--encre); }
.yp-bordereau__etape.is-a-venir { border-style: dashed; }
.yp-verrou { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 2px dashed var(--texte-2); border-radius: var(--rayon); background: var(--papier-2); color: var(--texte); }

/* ---------- Reçu de retrait ---------- */
.yp-rr { display: grid; gap: 12px; }
.yp-rr__tete { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.yp-rr__montant { font: 700 28px/1 var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: -.03em; word-spacing: -.3em; unicode-bidi: isolate; }
.yp-rr__explication { font-size: 14px; color: var(--texte-doux); }
.yp-rr .yp-code-barres { --yp-cb: var(--encre); }

/* ---------- Marque ---------- */
/* La coque (barre haute, onglets, feuille « Mon compte ») est dans yp-app.css. Restent ici la marque et le bouton-icône. */
.yp-logo { --logo-h: 34px; display: inline-flex; align-items: center; gap: calc(var(--logo-h) * .24); color: var(--encre); direction: ltr; unicode-bidi: isolate; white-space: nowrap; text-decoration: none; }
.yp-logo__symbole { display: block; flex: none; width: var(--logo-h); height: var(--logo-h); }
.yp-logo__nom { font: 800 calc(var(--logo-h) * .6)/1 var(--font-marque); letter-spacing: -.03em; color: inherit; }
.yp-logo--clair { color: var(--creme); }
.yp-btn-icone { display: inline-grid; place-content: center; width: 44px; height: 44px; color: inherit; background: none; border: 2px solid transparent; border-radius: 12px; cursor: pointer; transition: background-color .15s; }
.yp-btn-icone:hover { background: rgba(30, 25, 21, .06); }

/* ---------- Onglets de classeur ---------- */
.yp-onglets__liste { display: flex; flex-wrap: wrap; gap: 4px; padding-inline-start: 8px; margin-bottom: -3px; position: relative; }
.yp-onglet { min-height: 44px; padding: 8px 16px; font: 700 15px/1.25 var(--font-texte); color: var(--texte-doux); background: var(--papier-2); border: 3px solid var(--bordure); border-bottom-width: 0; border-radius: 10px 10px 0 0; cursor: pointer; transform: translateY(4px); }
.yp-onglet[aria-selected="true"] { background: var(--surface); color: var(--texte); transform: none; position: relative; z-index: 1; padding-bottom: 11px; }
.yp-onglet:hover:not([aria-selected="true"]) { background: var(--jaune-pale); }
.yp-onglets__panneau { position: relative; padding: 18px 20px; background: var(--surface); border: 3px solid var(--bordure); border-radius: 0 var(--rayon) var(--rayon) var(--rayon); box-shadow: var(--yp-sh); }

/* ---------- Mur de tampons ---------- */
.yp-mur { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; padding: 0; margin: 0; list-style: none; }
.yp-mur__case { display: grid; place-items: center; gap: 8px; min-height: 140px; padding: 14px 10px; text-align: center; background: var(--surface); border: 2px solid var(--bordure); border-radius: var(--rayon); font-size: 14px; }
.yp-mur__case.is-vide { border-style: dashed; color: var(--texte-discret); background: var(--fond); }
.yp-mur__empreinte { width: 76px; height: 46px; border: 2px dashed var(--filet); border-radius: var(--rayon); transform: rotate(-12deg); }

/* ---------- Checklist en reçu ---------- */
.yp-checklist { list-style: none; margin: 0; padding: 0; display: grid; }
.yp-checklist li { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-bottom: 2px dotted var(--filet); }
.yp-checklist li:last-child { border-bottom: 0; }
.yp-checklist .yp-case { flex: none; display: grid; place-content: center; width: 24px; height: 24px; border: 2px solid var(--bordure); border-radius: var(--rayon); background: var(--surface); }
.yp-checklist li.is-fait .yp-case { background: var(--encre); color: var(--jaune); }
.yp-checklist li.is-fait .yp-checklist__txt { color: var(--texte-doux); text-decoration: line-through 2px; }
.yp-checklist__fin { display: flex; justify-content: space-between; gap: 8px; padding-top: 10px; border-top: 3px double var(--encre); font-weight: 700; }

/* ---------- Note d'aide et illustration ---------- */
/* Note d'aide (ex-bulle de Jordy, retiré par l'arbitrage A1) : encadré pointillé, pictogramme dans une pastille. */
.yp-jordy { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 2px dashed rgba(30, 25, 21, .3); border-radius: var(--rayon); background: rgba(255, 252, 247, .6); }
.yp-jordy__visage { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border: 2px solid var(--encre); border-radius: 12px; background: var(--citron); color: var(--encre); }
.yp-jordy__visage > svg, .yp-jordy__visage > .yp-picto { width: 22px; height: 22px; }
.yp-jordy__visage .yp-illus { width: 100% !important; height: 100% !important; border: 0; border-radius: 0; background: none; box-shadow: none; transform: none; }
.yp-jordy__visage .yp-illus .yp-picto { width: 22px; height: 22px; }
.yp-jordy__bulle { flex: 1; min-width: 0; font-size: 16px; line-height: 1.5; color: var(--texte); }
.yp-jordy__nom { display: none; }
.yp-illus { display: inline-grid; place-items: center; flex: none; border: var(--yp-b) solid var(--encre); border-radius: 24%; background: var(--citron); color: var(--encre); box-shadow: var(--yp-sh); transform: rotate(-4deg); }
.yp-illus .yp-picto { width: 46%; height: 46%; }
.yp-illus--peche { background: var(--peche); }
.yp-illus--tomate { background: var(--tomate); color: var(--blanc); }
.yp-illus--ciel { background: var(--ciel); }

/* ---------- États ---------- */
.yp-etat { display: grid; justify-items: center; gap: 12px; padding: 32px 20px; text-align: center; border: 3px dashed var(--bordure); border-radius: var(--rayon-grand); background: var(--fond); }
.yp-etat .yp-picto { width: 48px; height: 48px; }
.yp-etat__titre { font: 800 22px/1.2 var(--font-titre); letter-spacing: -.02em; }
.yp-etat--erreur { border-style: solid; border-color: var(--erreur); }
.yp-etat--erreur .yp-picto { color: var(--erreur); }

/* ---------- Toast ---------- */
.yp-toast { display: flex; align-items: flex-start; gap: 12px; max-width: 420px; padding: 12px 12px 12px 16px; background: var(--encre); color: var(--papier); border: 3px solid var(--encre); border-radius: var(--rayon); box-shadow: calc(5px * var(--yp-sx)) 5px 0 var(--jaune); }
.yp-toast__texte { flex: 1; min-width: 0; font-size: 15px; }
.yp-toast .yp-montant { color: var(--argent-sombre); }
.yp-toast .yp-btn-icone { width: 44px; height: 44px; color: var(--nav-repos); border-color: transparent; margin: -8px -4px -8px 0; }

/* ---------- Boîte de confirmation ---------- */
.yp-boite { width: min(440px, 100%); display: grid; gap: 14px; padding: 22px; background: var(--surface); color: var(--texte); border: var(--yp-b) solid var(--bordure); border-radius: var(--rayon-grand); box-shadow: var(--yp-sh); }
.yp-boite__titre { font: 400 22px/1.2 var(--font-titre); }
.yp-boite__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
dialog.yp-boite::backdrop { background: rgba(30,25,21,.6); }

/* ---------- Sélecteur de langue ---------- */
.yp-langues { display: grid; gap: 2px; max-height: 320px; overflow: auto; padding: 4px; list-style: none; margin: 0; background: var(--surface); border: 2px solid var(--bordure); border-radius: var(--rayon); }
.yp-langue { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; padding: 8px 12px; border-radius: var(--rayon); cursor: pointer; }
.yp-langue[aria-selected="true"] { background: var(--jaune); font-weight: 700; color: var(--encre); }
.yp-langue:hover:not([aria-selected="true"]) { background: var(--jaune-pale); }
.yp-langue small { font: 500 12px/1 var(--font-mono); color: var(--texte-discret); }
.yp-langue[aria-selected="true"] small { color: var(--encre); }

/* ---------- FAQ en classeur ---------- */
.yp-faq { display: grid; gap: 10px; }
.yp-faq details { background: var(--surface); border: 3px solid var(--bordure); border-radius: var(--rayon); }
.yp-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 10px 16px; font: 700 17px/1.35 var(--font-texte); cursor: pointer; list-style: none; }
.yp-faq summary::-webkit-details-marker { display: none; }
.yp-faq details[open] { box-shadow: var(--yp-sh); }
.yp-faq details[open] summary { background: var(--jaune); color: var(--encre); border-bottom: 3px solid var(--encre); }
.yp-faq details[open] summary .yp-picto { transform: rotate(180deg); }
.yp-faq__reponse { padding: 14px 16px 16px; color: var(--texte); }

/* ---------- Pagination ---------- */
.yp-pagination { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; list-style: none; padding: 0; margin: 0; }
.yp-page { display: inline-grid; place-content: center; min-width: 44px; height: 44px; padding: 0 10px; font: 700 15px/1 var(--font-mono); color: var(--texte); background: var(--surface); border: 2px solid var(--bordure); border-radius: var(--rayon); text-decoration: none; }
.yp-page[aria-current="page"] { background: var(--jaune); color: var(--encre); box-shadow: var(--yp-sh-petit); }
.yp-page[aria-disabled="true"] { border-style: dashed; color: var(--texte-3); border-color: var(--texte-3); }

/* ---------- Emplacement publicitaire ---------- */
.yp-pub { position: relative; display: grid; gap: 6px; padding: 26px 12px 12px; border: 2px dashed rgba(30, 25, 21, .35); border-radius: 16px; background: rgba(255, 252, 247, .7); }
.yp-pub__mention { position: absolute; top: 8px; inset-inline-start: 13px; font: 600 10.5px/1 var(--font-texte); letter-spacing: .08em; text-transform: uppercase; color: var(--texte-2); }
.yp-pub__zone { display: grid; place-content: center; min-height: 90px; border-radius: 11px; background: repeating-linear-gradient(-45deg, #ede4d2 0 10px, #f4ecdd 10px 20px); color: var(--texte-2); font-size: 14px; text-align: center; }

/* ---------- Surfaces, extrudé, surligneur, bande ---------- */
.yp-surface-jaune { background: linear-gradient(90deg, rgba(30,25,21,.04) 0 1px, transparent 1px 8px) 0 0 / 8px 100%, var(--jaune); color: var(--encre); }
.yp-bandes { background: repeating-linear-gradient(45deg, #fbf3e4, #fbf3e4 12px, #f3e8d4 12px, #f3e8d4 24px); }
.yp-extrude { font: 400 clamp(3.6rem, 11vw, 6.8rem)/0.9 var(--font-titre); color: var(--jaune); -webkit-text-stroke: 3px var(--encre); paint-order: stroke fill; text-shadow: calc(4px * var(--yp-sx)) 4px 0 var(--encre); unicode-bidi: isolate; }
.yp-modere .yp-extrude { color: var(--encre); -webkit-text-stroke: 0; text-shadow: none; }
.yp-surligne { display: inline; background: linear-gradient(180deg, transparent 55%, var(--jaune) 55%); padding: 0 .1em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.yp-surligne--incline { display: inline-block; transform: rotate(-1deg); }
.yp-bande { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 8px 0 16px; background: var(--encre); color: var(--nav-repos); border-block: 3px solid var(--jaune); overflow: hidden; }
.yp-bande__piste { flex: 1; min-width: 0; overflow: hidden; }
.yp-bande__texte { display: inline-block; white-space: nowrap; font: 500 14px/1.4 var(--font-mono); font-variant-numeric: tabular-nums; }
.yp-bande__texte b { color: var(--argent-sombre); font-weight: 700; }
@media (min-width: 1024px) { .yp-bande.is-defile .yp-bande__texte { animation: yp-bande 9s linear 1 forwards; } .yp-bande.is-pause .yp-bande__texte { animation-play-state: paused; } }
@keyframes yp-bande { from { transform: translateX(calc(40% * var(--yp-sx))); } to { transform: translateX(0); } }
.yp-bande .yp-btn-icone { width: 36px; height: 36px; border-color: var(--nav-2); }
@media (max-width: 1023px) { .yp-bande__pause { display: none; } }
.yp-modere .yp-bande__pause { display: none; }

/* ---------- Gabarits ---------- */
/* Une seule colonne de contenu centrée (la colonne de menu du Guichet est retirée). */
.yp-panel { display: block; min-height: 100svh; background: var(--fond); }
.yp-panel__contenu { display: grid; grid-template-rows: auto 1fr auto; min-width: 0; }
.yp-panel__entete { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 28px 16px 8px; flex-wrap: wrap; width: 100%; max-width: var(--largeur); margin-inline: auto; }
.yp-panel__grille { display: grid; grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr); gap: 28px; padding: 24px 16px 40px; align-items: start; width: 100%; max-width: var(--largeur); margin-inline: auto; }
.yp-panel__pied { width: 100%; max-width: var(--largeur); margin-inline: auto; padding: 16px 16px 40px; font-size: 14px; color: var(--texte-discret); }
.yp-panel__pied a { color: var(--texte-doux); }
@media (max-width: 1023px) { .yp-panel__grille { grid-template-columns: 1fr; gap: 22px; padding-top: 16px; } .yp-panel__entete { padding-top: 20px; } }
.yp-pile { display: grid; gap: 16px; }
.yp-pile--24 { gap: 24px; }
.yp-ligne { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  .yp *, .yp *::before, .yp *::after { animation: none !important; transition: none !important; }
  .yp-btn:hover, .yp-btn:active, a.yp-rs:hover, a.yp-rs:active { transform: none; }
}
