/* YooPanel, site public (www) « Pop kiosque » (maquette index.html, carte #509, lot 4) : coque publique (en-tête collant,
   menu mobile, pied encre, barre de lecture), vitrine (héros et question 1, Le principe, La vitrine du jour, Pourquoi nous,
   5 façons d'être payé, Questions, appel final, bouton collant), choix communs à la page d'inscription.
   Charge après yp.css et yp-app.css. Propriétés logiques seulement, ombres retournées par --yp-sx, aucune animation en boucle. */
.yp [hidden] { display: none !important; }
dialog.yp-boite:not([open]) { display: none; }
.s-centre { text-align: center; }
.yp-site main { overflow-x: clip; }

/* Passage animé vitrine vers inscription (même origine) : la carte « Question 1 » devient la carte d'étape */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: .25s var(--courbe-tiroir) both s-vt-sort; }
::view-transition-new(root) { animation: .4s var(--courbe-tiroir) both s-vt-entre; }
::view-transition-group(carte-etape) { animation-duration: .45s; animation-timing-function: var(--courbe-tiroir); }
@keyframes s-vt-sort { to { opacity: 0; transform: translateY(-10px); } }
@keyframes s-vt-entre { from { opacity: 0; transform: translateY(16px); } }

/* ---------- Barre de lecture (défilement de la page, sans boucle) ---------- */
.s-lecture { position: fixed; inset: 0 0 auto; z-index: 60; height: 4px; background: var(--tomate); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }
[dir="rtl"] .s-lecture { transform-origin: 100% 50%; }
@supports (animation-timeline: scroll()) {
  .s-lecture { animation: s-lecture linear both; animation-timeline: scroll(root); }
}
@keyframes s-lecture { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- En-tête ---------- */
.s-haut { position: sticky; top: 0; z-index: 50; background: rgba(251, 243, 228, .85); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 2px solid var(--ligne); }
.s-haut__rangee { display: flex; align-items: center; gap: 16px; max-width: var(--largeur); height: 64px; margin-inline: auto; padding-inline: 16px; }
.s-marque { display: inline-flex; align-items: center; flex: none; color: var(--encre); text-decoration: none; }
.s-nav { display: none; align-items: center; gap: 4px; margin-inline-start: auto; }
.s-nav__lien { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 13px; font: 700 15px/1.2 var(--font-texte); color: var(--encre); text-decoration: none; background: none; border: 0; border-radius: 11px; cursor: pointer; transition: background-color .2s; }
.s-nav__lien:hover { background: rgba(30, 25, 21, .06); }
.s-haut__droite { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.s-haut__connexion, .s-haut__langue { display: none !important; }
.s-haut__menu { margin-inline-end: -8px; color: var(--encre); }
.s-menu { display: grid; gap: 4px; padding: 12px 16px; background: var(--creme); border-top: 2px solid var(--ligne); }
.s-menu__langue { justify-content: flex-start; text-align: start; }
@media (min-width: 640px) { .s-haut__connexion { display: inline-flex !important; } }
@media (min-width: 768px) {
  .s-nav { display: flex; }
  .s-haut__droite { margin-inline-start: 8px; }
  .s-haut__langue { display: inline-grid !important; }
  .s-haut__menu, .s-menu { display: none !important; }
}

/* ---------- Pied ---------- */
.s-pied { background: var(--encre); color: var(--creme); }
.s-pied__grille { display: grid; gap: 40px; max-width: var(--largeur); margin-inline: auto; padding: 56px 16px; }
@media (min-width: 768px) { .s-pied__grille { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); } }
.s-pied .s-marque { color: var(--creme); }
.yp .s-pied__slogan { margin-top: 12px; max-width: 20rem; color: rgba(251, 243, 228, .75); }
.yp .s-pied__titre { margin-bottom: 12px; font-weight: 700; }
.s-pied__liste { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.s-pied__liste a { color: rgba(251, 243, 228, .8); text-decoration: none; }
.s-pied__liste a:hover { color: var(--creme); text-decoration: underline; }
.s-pied__droits { padding: 20px 16px; text-align: center; font-size: 14px; color: rgba(251, 243, 228, .6); border-top: 1px solid rgba(251, 243, 228, .15); }

/* ---------- Communs ---------- */
.s-section { max-width: var(--largeur); margin-inline: auto; padding: 64px 16px; }
@media (min-width: 768px) { .s-section { padding-block: 96px; } }
.s-bande { background: var(--papier); border-block: 2px solid var(--ligne); }
@media (min-width: 768px) { .s-bande > .s-section { padding-block: 80px; } }
.s-surtitre { margin: 0; font: 700 12.8px/1 var(--font-texte); letter-spacing: .12em; text-transform: uppercase; color: var(--tomate-profonde); }
.s-surtitre--citron { color: var(--citron); }
.yp .s-h2 { margin-top: 8px; font: 800 36px/1.05 var(--font-titre); letter-spacing: -.025em; text-wrap: balance; }
@media (min-width: 640px) { .yp .s-h2 { font-size: 48px; } }
.s-h2--etroit { max-width: 42rem; }
.s-h2--large { max-width: 48rem; }
.yp .s-h3 { margin-top: 12px; font: 800 24px/1.15 var(--font-titre); letter-spacing: -.025em; }
.yp .s-intro { margin-top: 16px; font-size: 18px; color: var(--texte-2); }
.yp .s-intro b { color: var(--encre); }
.yp .s-note { margin-top: 12px; font-size: 12px; color: var(--texte-2); }
.s-carte { background: var(--papier); border: 2.5px solid var(--encre); border-radius: var(--rayon-grand); box-shadow: var(--yp-sh); }
.s-btn-grand { min-height: 56px; padding-inline: 28px; font-size: 20px; }
.s-lien-fort { font-weight: 700; color: var(--encre); text-decoration: underline; text-decoration-color: var(--tomate); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.s-surligne { background: linear-gradient(transparent 62%, var(--citron) 62% 92%, transparent 92%); padding: 0 .1em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.s-point { display: inline-block; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--citron-profond); }
.yp-site .yp-sticker { gap: 6px; padding: 5px 12px; font-size: 12.8px; font-weight: 700; }
[dir="rtl"] .yp-site svg.yp-fleche { scale: -1 1; }

/* ---------- Héros ---------- */
.s-hero { position: relative; overflow: hidden; }
.s-hero__rond { position: absolute; border-radius: 50%; pointer-events: none; }
.s-hero__rond--peche { top: -96px; inset-inline-end: -96px; width: 28rem; height: 28rem; background: rgba(252, 203, 166, .7); }
.s-hero__rond--citron { top: 60%; inset-inline-start: -80px; width: 14rem; height: 14rem; background: rgba(214, 241, 90, .6); }
.s-hero__grille { position: relative; display: grid; gap: 40px; align-items: center; max-width: var(--largeur); margin-inline: auto; padding: 32px 16px 56px; }
@media (min-width: 768px) { .s-hero__grille { padding-block: 64px 80px; } }
@media (min-width: 1024px) { .s-hero__grille { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; } }
.s-hero__texte { min-width: 0; }
.yp .s-hero__sticker { margin-bottom: 20px; white-space: normal; }
.yp .s-hero__titre { font: 800 42.4px/.98 var(--font-titre); letter-spacing: -.025em; text-wrap: balance; }
@media (min-width: 640px) { .yp .s-hero__titre { font-size: 60px; } }
@media (min-width: 1024px) { .yp .s-hero__titre { font-size: 72px; } }
.s-hero__vif { display: block; color: var(--tomate); }
.yp .s-hero__chapeau { max-width: 36rem; margin-top: 20px; font-size: 18px; line-height: 1.45; color: var(--texte-2); text-wrap: pretty; }
.yp .s-hero__chapeau b { color: var(--encre); }
@media (min-width: 640px) { .yp .s-hero__chapeau { font-size: 20px; } }
.s-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 28px; }
.s-stickers { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; padding: 0; list-style: none; }
.s-hero__question { position: relative; min-width: 0; }
.s-question__sticker { position: absolute; top: -16px; inset-inline-start: -8px; z-index: 1; }
.s-question { padding: 20px; view-transition-name: carte-etape; }
@media (min-width: 640px) { .s-question { padding: 24px; } }
.s-question__tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.s-question__barres { display: flex; gap: 4px; }
.s-question__barres i { display: block; width: 32px; height: 8px; border-radius: 99px; background: var(--ligne); }
.s-question__barres i.is-active { background: var(--tomate); }
.s-question__groupe { min-width: 0; margin: 0; padding: 0; border: 0; }
.s-question__titre { margin-bottom: 16px; padding: 0; font: 800 24px/1.2 var(--font-titre); letter-spacing: -.025em; text-wrap: balance; }
@media (min-width: 640px) { .s-question__titre { font-size: 27px; } }
.yp .s-question__aide { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 14px; color: var(--texte-2); }
.yp .s-question__aide svg { flex: none; color: var(--tomate); }
.yp .s-question__aide b { color: var(--encre); }
.s-question__continuer { margin-top: 16px; }
.s-moyens { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 24px; font-size: 14px; font-weight: 600; }
.s-moyens__intro { margin-inline-end: 4px; color: var(--texte-2); }

/* ---------- Choix (question 1 de la vitrine, étapes Sujet et Rythme de l'inscription) ---------- */
.s-choix-grille { display: grid; gap: 10px; }
.s-choix-grille--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .s-choix-grille--2-sm { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.s-choix { position: relative; display: flex; align-items: center; gap: 10px; min-width: 0; padding: 13px 14px; font-weight: 600; overflow-wrap: break-word; hyphens: manual; text-align: start; background: var(--papier); border: 2px solid var(--encre); border-radius: 14px; cursor: pointer; transition: transform .2s var(--courbe-tampon), background-color .2s, box-shadow .2s; }
.s-choix:hover { transform: translateY(-2px) rotate(calc(-.6deg * var(--yp-sx))); box-shadow: var(--yp-sh-petit); }
.s-choix:has(input:checked) { background: var(--citron); box-shadow: var(--yp-sh-petit); }
.s-choix:has(input:focus-visible) { outline: 3px solid var(--tomate); outline-offset: 3px; }
@media (max-width: 639px) { .s-choix-grille--2 .s-choix { gap: 8px; padding: 12px; } }
.s-choix__ico { display: grid; place-items: center; flex: none; width: 34px; height: 34px; background: var(--creme); border: 1.5px solid var(--encre); border-radius: 10px; }
.s-choix__fort { display: block; font-weight: 700; }
.s-choix__aide { display: block; font-size: 14px; font-weight: 500; color: var(--texte-2); }

/* ---------- Le principe ---------- */
.s-gestes { display: grid; gap: 20px; margin: 40px 0 0; padding: 0; list-style: none; }
@media (min-width: 768px) {
  .s-gestes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .s-geste:nth-child(2) { translate: 0 24px; }
  .s-geste:nth-child(3) { translate: 0 48px; }
}
.s-geste { padding: 24px; }
.s-geste__num { display: block; font: 800 60px/1 var(--font-titre); color: var(--tomate); }
.yp .s-geste__texte { margin-top: 8px; color: var(--texte-2); }
.s-geste--citron { background: var(--citron); }
.s-geste--citron .s-geste__num, .s-geste--citron .s-geste__texte { color: var(--encre); }

/* ---------- La vitrine du jour ---------- */
.s-vitrine { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1024px) { .s-vitrine { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); } }
.s-vitrine__cta { margin-top: 28px; }
.s-tickets { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .s-tickets { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.s-ticket { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 13px; align-items: center; padding: 16px 18px; background: var(--papier); border: 2px solid var(--encre); border-radius: 16px; }
.s-ticket::before, .s-ticket::after { content: ""; position: absolute; top: 50%; width: 14px; height: 14px; margin-top: -7px; background: var(--creme); border: 2px solid var(--encre); border-radius: 50%; }
.s-ticket::before { inset-inline-start: -8px; clip-path: inset(0 0 0 50%); }
.s-ticket::after { inset-inline-end: -8px; clip-path: inset(0 50% 0 0); }
[dir="rtl"] .s-ticket::before { clip-path: inset(0 50% 0 0); }
[dir="rtl"] .s-ticket::after { clip-path: inset(0 0 0 50%); }
.s-ticket__titre { font-weight: 700; }
.s-ticket__duree { display: flex; align-items: center; gap: 4px; font-size: 14px; color: var(--texte-2); }
.s-ticket__duree svg { flex: none; }

/* ---------- Pourquoi nous (bloc encre, tuiles en bento) ---------- */
.s-encre { background: var(--encre); color: var(--creme); }
.s-bento { display: grid; gap: 16px; margin-top: 40px; color: var(--encre); }
.s-bento__case { min-width: 0; container-type: inline-size; }
@media (min-width: 640px) {
  .s-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .s-bento__case--6 { grid-column: span 2; }
}
@media (min-width: 1024px) {
  .s-bento { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .s-bento__case--4 { grid-column: span 4; }
  .s-bento__case--2 { grid-column: span 2; }
  .s-bento__case--6 { grid-column: span 6; }
}
.s-tuile { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 22px; color: var(--encre); border-color: var(--encre); box-shadow: none; }
@container (min-width: 26rem) {
  .s-tuile { flex-direction: row; align-items: flex-start; gap: 19px; }
  .s-tuile .s-tuile__ico { width: 56px; height: 56px; }
}
.s-tuile--citron { background: var(--citron); }
.s-tuile--peche { background: var(--peche); }
.s-tuile__ico { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border: 2px solid var(--encre); border-radius: 14px; }
.s-tuile__ico--papier { background: var(--papier); }
.s-tuile__ico--peche { background: var(--peche); }
.s-tuile__ico--ciel { background: var(--ciel); }
.s-tuile__ico--citron { background: var(--citron); }
.s-tuile__ico--tomate { background: var(--tomate-douce); }
.yp .s-tuile__titre { font: 800 20px/1.2 var(--font-titre); letter-spacing: -.025em; }
.yp .s-tuile__titre--grand { font-size: 24px; }
.yp .s-tuile__texte { margin-top: 4px; }
.s-tuile__texte--doux { color: var(--texte-2); }

/* ---------- 5 façons d'être payé ---------- */
.s-paiements__tete { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.s-paiements__delai { font-size: 14px; }
.s-paiements { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 40px 0 0; padding: 0; list-style: none; }
@media (min-width: 768px) { .s-paiements { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.s-paiement { min-width: 0; padding: 20px; }
.s-paiement--citron { grid-column: span 2; background: var(--citron); }
@media (min-width: 768px) { .s-paiement--citron { grid-column: auto; } }
.s-paiement__ico { display: block; color: var(--tomate); }
.s-paiement--citron .s-paiement__ico { color: var(--encre); }
.yp .s-paiement__nom { margin-top: 12px; font: 800 20px/1.2 var(--font-titre); letter-spacing: -.02em; }
.s-paiement__texte { font-size: 14px; color: var(--texte-2); }
.s-paiement--citron .s-paiement__texte { color: var(--encre); }

/* ---------- Questions (accordéon exclusif) ---------- */
.s-faq-zone { max-width: 48rem; }
.s-faq { margin-top: 40px; interpolate-size: allow-keywords; }
.s-faq details { border-bottom: 2px solid var(--ligne); }
.s-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; font: 700 16.8px/1.35 var(--font-texte); list-style: none; cursor: pointer; }
.s-faq summary::-webkit-details-marker { display: none; }
.s-faq__plus { display: grid; place-items: center; flex: none; width: 30px; height: 30px; font-weight: 700; line-height: 1; border: 2px solid var(--encre); border-radius: 50%; transition: transform .3s var(--courbe-tampon), background-color .2s; }
.s-faq details[open] .s-faq__plus { transform: rotate(45deg); background: var(--citron); }
.s-faq__reponse { padding-bottom: 19px; line-height: 1.65; color: var(--texte-2); }
.s-faq details::details-content { block-size: 0; overflow: clip; transition: block-size .35s var(--courbe-tiroir), content-visibility .35s allow-discrete; }
.s-faq details[open]::details-content { block-size: auto; }

/* ---------- Appel final ---------- */
.s-final-zone { padding: 0 16px 80px; }
.s-final { max-width: 64rem; margin-inline: auto; padding: 32px; text-align: center; color: var(--blanc); background: var(--tomate); border: 2.5px solid var(--encre); border-radius: var(--rayon-grand); box-shadow: calc(7px * var(--yp-sx)) 7px 0 var(--encre); }
@media (min-width: 640px) { .s-final { padding: 56px; } }
.yp .s-final__titre { font: 800 36px/1.05 var(--font-titre); letter-spacing: -.025em; color: var(--blanc); text-wrap: balance; }
@media (min-width: 640px) { .yp .s-final__titre { font-size: 60px; } }
.yp .s-final__texte { max-width: 36rem; margin: 16px auto 0; font-size: 18px; }
@media (min-width: 640px) { .yp .s-final__texte { font-size: 20px; } }
.s-final__bouton { margin-top: 32px; padding-inline: 32px; }

/* ---------- Bouton collant (mobile) ---------- */
.s-collant { position: fixed; inset-inline: 12px; bottom: 12px; z-index: 40; padding-bottom: env(safe-area-inset-bottom); transform: translateY(150%); transition: transform .3s; }
.s-collant.is-visible { transform: none; }
@media (min-width: 768px) { .s-collant { display: none; } }

/* ---------- Écritures liées (arabe, persan, ourdou, hébreu) : pas d'interlettrage, interlignage plus large ---------- */
[lang="ar"] :is(.s-hero__titre, .s-question__titre, .s-geste__num, .s-paiement__nom), [lang="fa"] :is(.s-hero__titre, .s-question__titre, .s-paiement__nom), [lang="ur"] :is(.s-hero__titre, .s-question__titre, .s-paiement__nom) { font-family: var(--font-arabe); line-height: 1.3; letter-spacing: 0; }
[lang="he"] :is(.s-hero__titre, .s-question__titre, .s-paiement__nom) { font-family: var(--font-hebreu); line-height: 1.15; letter-spacing: 0; }
[dir="rtl"] .s-surtitre { letter-spacing: 0; }

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  .s-lecture { display: none; }
  .s-collant, .s-faq details::details-content { transition: none; }
}
