/* partager.info, page publique à tickets.
   Le fond vient de la variable --rf-fond, posée sur .rf-page par le rendu.
   Encre #15173A ; tickets : jaune #FFCF33, corail #FF7A59, menthe #38D39F, lilas #B79CFF, ciel #6FD3FF. */
/* Police Archivo servie par le site lui-même : aucune requête vers un tiers. */
@font-face { font-family: 'Archivo'; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%; src: url('/assets/polices/archivo-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Archivo'; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%; src: url('/assets/polices/archivo-latin.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

.rf-page {
  background-color: var(--rf-fond, #2F3BE4);
  background-image: radial-gradient(rgba(255,255,255,0.14) 1.5px, rgba(255,255,255,0) 1.6px);
  background-size: 22px 22px;
  color: #15173A;
  font-family: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  font-stretch: 100%;
  padding: 30px 16px 64px;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
.rf-page * { box-sizing: border-box; }
.rf-page p, .rf-page h1, .rf-page h2, .rf-page ul { margin: 0; padding: 0; }
.rf-wrap { max-width: 700px; margin: 0 auto; }

/* En-tête */
.rf-head { display: flex; align-items: center; gap: 12px; }
.rf-avatar {
  flex: 0 0 auto;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: #FFCF33;
  border: 3px solid #15173A;
  box-shadow: 3px 3px 0 #15173A;
  color: #15173A;
  font-weight: 900;
  font-size: 22px;
  line-height: 46px;
  text-align: center;
  overflow: hidden;
}
.rf-avatar img { display: block; width: 46px; height: 46px; object-fit: cover; }
.rf-channel { color: #FFFFFF; font-size: 17px; font-weight: 700; }
.rf-h1 {
  margin-top: 20px !important;
  color: #FFFFFF;
  font-size: 50px;
  line-height: 0.98;
  font-weight: 900;
  font-stretch: 118%;
  letter-spacing: -0.02em;
  text-shadow: 4px 4px 0 #15173A;
}
.rf-lead { margin-top: 16px !important; color: #FFFFFF; font-size: 18px; line-height: 1.45; font-weight: 500; }

/* Clavier des numéros */
.rf-nums { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.rf-num, .rf-rand {
  position: relative;
  display: block;
  height: 60px;
  border-radius: 14px;
  border: 3px solid #15173A !important;
  box-shadow: 4px 4px 0 #15173A;
  color: #15173A !important;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.rf-num { width: 60px; font-size: 38px; line-height: 54px; font-weight: 900; font-stretch: 62%; }
.rf-rand { padding: 0 16px; font-family: inherit; font-size: 16px; font-weight: 800; line-height: 1; background: #FFFFFF !important; }
.rf-rand:before {
  content: '';
  display: inline-block;
  vertical-align: -5px;
  width: 22px; height: 22px;
  margin-right: 9px;
  border-radius: 6px;
  background-color: #15173A;
  background-image:
    radial-gradient(circle at 27% 27%, #FFFFFF 2px, rgba(255,255,255,0) 2.6px),
    radial-gradient(circle at 73% 27%, #FFFFFF 2px, rgba(255,255,255,0) 2.6px),
    radial-gradient(circle at 50% 50%, #FFFFFF 2px, rgba(255,255,255,0) 2.6px),
    radial-gradient(circle at 27% 73%, #FFFFFF 2px, rgba(255,255,255,0) 2.6px),
    radial-gradient(circle at 73% 73%, #FFFFFF 2px, rgba(255,255,255,0) 2.6px);
  transform: rotate(-10deg);
  transition: transform 0.3s ease;
}
.rf-rand:hover:before { transform: rotate(80deg); }
.rf-k1 { background: #FFCF33; }
.rf-k2 { background: #FF7A59; }
.rf-k3 { background: #38D39F; }
.rf-k4 { background: #B79CFF; }
.rf-k5 { background: #6FD3FF; }
.rf-num:hover, .rf-rand:hover { transform: translate(1px, 1px); box-shadow: 3px 3px 0 #15173A; }
.rf-num.rf-cur { transform: translate(2px, 2px); box-shadow: 2px 2px 0 #15173A; }
.rf-num:active, .rf-rand:active { transform: translate(4px, 4px); box-shadow: 0 0 0 #15173A; }
.rf-num.rf-lit { transform: translate(-2px, -4px) rotate(-4deg); box-shadow: 6px 8px 0 #15173A; }
/* Ticket déjà ouvert : la touche est poinçonnée */
.rf-num.rf-seen:after {
  content: '';
  position: absolute; top: 4px; right: 4px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--rf-fond, #2F3BE4);
  border: 2px solid #15173A;
}

/* Mention légale */
.rf-legal {
  margin-top: 24px !important;
  padding: 11px 14px !important;
  background: #FFFFFF;
  border: 2px solid #15173A;
  border-radius: 12px;
  font-size: 15px;
  line-height: 1.4;
}

/* Tickets */
.rf-list { margin-top: 22px; counter-reset: rf-n; }
.rf-item {
  counter-increment: rf-n;
  margin-top: 16px;
  -webkit-filter: drop-shadow(5px 5px 0 #15173A);
  filter: drop-shadow(5px 5px 0 #15173A);
  scroll-margin-top: 14px;
  transition: transform 0.3s ease;
}
.rf-tk {
  display: grid;
  grid-template-columns: 76px 1fr;
  background: #FFFFFF;
  border-radius: 16px;
  overflow: hidden;
  -webkit-mask:
    radial-gradient(circle 11px at 76px 0, rgba(0,0,0,0) 97%, #000 100%) top / 100% 51% no-repeat,
    radial-gradient(circle 11px at 76px 100%, rgba(0,0,0,0) 97%, #000 100%) bottom / 100% 51% no-repeat;
  mask:
    radial-gradient(circle 11px at 76px 0, rgba(0,0,0,0) 97%, #000 100%) top / 100% 51% no-repeat,
    radial-gradient(circle 11px at 76px 100%, rgba(0,0,0,0) 97%, #000 100%) bottom / 100% 51% no-repeat;
}
.rf-stub {
  display: flex; flex-direction: column; align-items: center;
  padding: 16px 0 14px;
  border-right: 3px dashed #15173A;
  cursor: pointer;
}
.rf-item:nth-child(5n+1) .rf-stub { background: #FFCF33; }
.rf-item:nth-child(5n+2) .rf-stub { background: #FF7A59; }
.rf-item:nth-child(5n+3) .rf-stub { background: #38D39F; }
.rf-item:nth-child(5n+4) .rf-stub { background: #B79CFF; }
.rf-item:nth-child(5n+5) .rf-stub { background: #6FD3FF; }
.rf-no { font-size: 13px; line-height: 1; font-weight: 800; }
.rf-big { display: block; margin-top: 4px; font-size: 74px; line-height: 0.84; font-weight: 900; font-stretch: 62%; letter-spacing: -0.02em; }
.rf-big:before { content: counter(rf-n); }
.rf-bar {
  margin-top: auto;
  width: 46px; height: 38px;
  background: repeating-linear-gradient(90deg, #15173A 0, #15173A 2px, rgba(0,0,0,0) 2px, rgba(0,0,0,0) 4px, #15173A 4px, #15173A 7px, rgba(0,0,0,0) 7px, rgba(0,0,0,0) 9px, #15173A 9px, #15173A 10px, rgba(0,0,0,0) 10px, rgba(0,0,0,0) 13px);
}

.rf-main { min-width: 0; }
.rf-top {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  min-height: 104px;
  margin: 0;
  padding: 14px 14px 14px 16px;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  background: none !important;
  border: 0 !important;
  color: #15173A !important;
}
.rf-tt { flex: 1 1 auto; min-width: 0; }
.rf-cat { display: block; font-size: 14px; line-height: 1.3; font-weight: 700; color: #5A5F85; }
.rf-name { display: block; margin-top: 2px; font-size: 21px; line-height: 1.14; font-weight: 800; font-stretch: 88%; }
.rf-plus {
  display: none;
  position: relative;
  flex: 0 0 auto;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 3px solid #15173A;
  transition: transform 0.3s ease, background 0.3s ease;
}
.rf-plus:before, .rf-plus:after {
  content: '';
  position: absolute; left: 50%; top: 50%;
  width: 14px; height: 3px;
  margin: -1.5px 0 0 -7px;
  background: #15173A;
  border-radius: 2px;
}
.rf-plus:after { transform: rotate(90deg); }

.rf-in { padding: 0 16px 22px 16px; }
.rf-sum { font-size: 17px; }

.rf-tag {
  display: inline-block;
  margin-top: 14px !important;
  padding: 4px 11px !important;
  border: 2px solid #15173A;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 800;
  transform: rotate(-2deg);
}
.rf-item:nth-child(5n+1) .rf-tag { background: #FFCF33; }
.rf-item:nth-child(5n+2) .rf-tag { background: #FF7A59; }
.rf-item:nth-child(5n+3) .rf-tag { background: #38D39F; }
.rf-item:nth-child(5n+4) .rf-tag { background: #B79CFF; }
.rf-item:nth-child(5n+5) .rf-tag { background: #6FD3FF; }

.rf-code {
  position: relative;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
  margin-top: 16px;
  padding: 10px 12px;
  border: 3px dashed #15173A;
  border-radius: 12px;
}
.rf-code-t { font-size: 15px; font-weight: 700; color: #5A5F85; }
.rf-code-v { flex: 1 1 auto; font-size: 22px; font-weight: 900; font-stretch: 88%; letter-spacing: 0.04em; }
.rf-copy {
  flex: 1 1 100%;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  padding: 9px 12px;
  border-radius: 10px;
  cursor: pointer;
  background: #FFFFFF !important;
  color: #15173A !important;
  border: 3px solid #15173A !important;
  box-shadow: 3px 3px 0 #15173A;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.rf-copy:active { transform: translate(3px, 3px); box-shadow: 0 0 0 #15173A; }
.rf-cf { position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; border-radius: 2px; pointer-events: none; transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.3, 1), opacity 0.7s ease; }

.rf-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 20px; }
.rf-btn {
  display: block;
  flex: 1 1 100%;
  text-align: center;
  padding: 15px 22px;
  border-radius: 14px;
  font-size: 19px;
  font-weight: 900;
  text-decoration: none;
  color: #15173A !important;
  border: 3px solid #15173A !important;
  box-shadow: 4px 4px 0 #15173A;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.rf-item:nth-child(5n+1) .rf-btn { background: #FFCF33 !important; }
.rf-item:nth-child(5n+2) .rf-btn { background: #FF7A59 !important; }
.rf-item:nth-child(5n+3) .rf-btn { background: #38D39F !important; }
.rf-item:nth-child(5n+4) .rf-btn { background: #B79CFF !important; }
.rf-item:nth-child(5n+5) .rf-btn { background: #6FD3FF !important; }
.rf-btn:hover { transform: translate(1px, 1px); box-shadow: 3px 3px 0 #15173A; }
.rf-btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 #15173A; }
.rf-link { display: inline-flex; align-items: center; gap: 8px; color: #15173A; font-weight: 800; font-size: 16px; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; }
.rf-link:before { content: ''; flex: 0 0 auto; width: 0; height: 0; border-left: 11px solid #15173A; border-top: 7px solid rgba(0,0,0,0); border-bottom: 7px solid rgba(0,0,0,0); }

.rf-fit { list-style: none; margin-top: 20px !important; border-top: 2px solid #15173A; }
.rf-fit li { padding: 10px 0 !important; border-bottom: 1px solid #D8DAE8; font-size: 16px; line-height: 1.42; }
.rf-fit li:last-child { border-bottom: 0; padding-bottom: 0 !important; }
.rf-yes, .rf-no2 { font-weight: 800; }
.rf-no2 { color: #5A5F85; }

.rf-page a:focus-visible, .rf-page button:focus-visible { outline: 3px solid #FFFFFF; outline-offset: 3px; }
.rf-tk a:focus-visible, .rf-tk button:focus-visible { outline-color: #15173A; }

.rf-foot { margin-top: 34px; font-size: 15px; line-height: 1.5; color: #FFFFFF; }
.rf-foot p + p { margin-top: 4px !important; }

/* Quand le script tourne : les tickets sont fermés et s'ouvrent au toucher */
.rf-js .rf-item:nth-child(odd) { transform: rotate(-0.8deg); }
.rf-js .rf-item:nth-child(even) { transform: rotate(0.7deg); }
.rf-js .rf-item.rf-open { transform: rotate(0deg); }
.rf-js .rf-plus { display: block; }
.rf-js .rf-open .rf-top { min-height: 0; padding-bottom: 12px; }
.rf-js .rf-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.38s ease; }
.rf-js .rf-open .rf-body { grid-template-rows: 1fr; }
.rf-js .rf-in { min-height: 0; overflow: hidden; visibility: hidden; padding-bottom: 0; transition: visibility 0s linear 0.38s, padding-bottom 0.38s ease; }
.rf-js .rf-open .rf-in { visibility: visible; padding-bottom: 22px; transition: visibility 0s linear 0s, padding-bottom 0.38s ease; }
.rf-js .rf-bar { display: none; }
.rf-js .rf-open .rf-bar { display: block; }
.rf-open .rf-plus { transform: rotate(45deg); }
.rf-item:nth-child(5n+1).rf-open .rf-plus { background: #FFCF33; }
.rf-item:nth-child(5n+2).rf-open .rf-plus { background: #FF7A59; }
.rf-item:nth-child(5n+3).rf-open .rf-plus { background: #38D39F; }
.rf-item:nth-child(5n+4).rf-open .rf-plus { background: #B79CFF; }
.rf-item:nth-child(5n+5).rf-open .rf-plus { background: #6FD3FF; }
.rf-pop .rf-big { animation: rf-pop 0.5s ease; }
@keyframes rf-pop {
  0% { transform: scale(1) rotate(0deg); }
  35% { transform: scale(1.28) rotate(-9deg); }
  70% { transform: scale(0.94) rotate(3deg); }
  100% { transform: scale(1) rotate(0deg); }
}

/* Grand écran */
@media (min-width: 760px) {
  .rf-page { padding: 60px 24px 90px; font-size: 18px; }
  .rf-avatar { width: 60px; height: 60px; line-height: 54px; font-size: 25px; }
  .rf-avatar img { width: 54px; height: 54px; }
  .rf-h1 { font-size: 92px; text-shadow: 6px 6px 0 #15173A; margin-top: 26px !important; }
  .rf-lead { font-size: 21px; }
  .rf-num, .rf-rand { height: 70px; }
  .rf-num { width: 70px; font-size: 44px; line-height: 64px; }
  .rf-rand { font-size: 18px; padding: 0 22px; }
  .rf-item { margin-top: 20px; -webkit-filter: drop-shadow(7px 7px 0 #15173A); filter: drop-shadow(7px 7px 0 #15173A); }
  .rf-js .rf-item:nth-child(odd) { transform: rotate(-0.35deg); }
  .rf-js .rf-item:nth-child(even) { transform: rotate(0.3deg); }
  .rf-js .rf-item.rf-open { transform: rotate(0deg); }
  .rf-tk {
    grid-template-columns: 112px 1fr;
    -webkit-mask:
      radial-gradient(circle 13px at 112px 0, rgba(0,0,0,0) 97%, #000 100%) top / 100% 51% no-repeat,
      radial-gradient(circle 13px at 112px 100%, rgba(0,0,0,0) 97%, #000 100%) bottom / 100% 51% no-repeat;
    mask:
      radial-gradient(circle 13px at 112px 0, rgba(0,0,0,0) 97%, #000 100%) top / 100% 51% no-repeat,
      radial-gradient(circle 13px at 112px 100%, rgba(0,0,0,0) 97%, #000 100%) bottom / 100% 51% no-repeat;
  }
  .rf-stub { padding: 20px 0 18px; }
  .rf-no { font-size: 15px; }
  .rf-big { font-size: 104px; }
  .rf-bar { width: 64px; height: 46px; }
  .rf-top { min-height: 134px; padding: 18px 24px 18px 26px; }
  .rf-cat { font-size: 16px; }
  .rf-name { font-size: 28px; }
  .rf-in { padding: 0 26px 28px 26px; }
  .rf-js .rf-open .rf-in { padding-bottom: 28px; }
  .rf-btn { display: inline-block; flex: 0 0 auto; padding: 16px 30px; }
  .rf-copy { flex: 0 0 auto; }
  .rf-fit li { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  .rf-num, .rf-rand, .rf-item, .rf-btn, .rf-copy, .rf-plus, .rf-js .rf-body, .rf-js .rf-in { transition: none; }
  .rf-pop .rf-big { animation: none; }
}

/* Lien discret du pied de page */
.rf-flink { color: #FFFFFF; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* Pages de texte : mentions légales */
.rf-h1.rf-h1-doc { font-size: 44px; text-shadow: 3px 3px 0 #15173A; }
.rf-doc {
  margin-top: 26px;
  padding: 22px 20px 26px;
  background: #FFFFFF;
  border: 3px solid #15173A;
  border-radius: 18px;
  box-shadow: 6px 6px 0 #15173A;
  font-size: 16px;
  line-height: 1.5;
}
.rf-doc h2 { margin-top: 26px !important; margin-bottom: 6px !important; font-size: 20px; line-height: 1.2; font-weight: 800; font-stretch: 88%; }
.rf-doc h2:first-child { margin-top: 0 !important; }
.rf-doc p + p { margin-top: 6px !important; }
.rf-doc-n { font-weight: 800; }
.rf-doc-n:after { content: ' :'; }
.rf-dlink { color: #15173A; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.rf-doc a:focus-visible, .rf-doc button:focus-visible, .rf-doc input:focus-visible, .rf-doc textarea:focus-visible, .rf-doc select:focus-visible { outline: 3px solid #2F3BE4; outline-offset: 2px; }

/* Formulaire de signalement */
.rf-form { margin-top: 14px; }
.rf-champ { display: block; margin-top: 12px; }
.rf-champ span { display: block; margin-bottom: 5px; font-size: 15px; font-weight: 700; }
.rf-champ input, .rf-champ textarea, .rf-champ select {
  width: 100%;
  padding: 11px 12px;
  border: 2px solid #15173A;
  border-radius: 10px;
  background: #FFFFFF;
  color: #15173A;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.4;
}
.rf-champ textarea { resize: vertical; min-height: 96px; }
.rf-piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rf-envoi {
  margin-top: 16px;
  padding: 13px 22px;
  border: 3px solid #15173A;
  border-radius: 12px;
  background: #FFCF33;
  color: #15173A;
  font-family: inherit;
  font-size: 17px;
  font-weight: 800;
  box-shadow: 4px 4px 0 #15173A;
  cursor: pointer;
}
.rf-envoi:active { transform: translate(4px, 4px); box-shadow: 0 0 0 #15173A; }
.rf-envoi[disabled] { background: #E4E6F2; box-shadow: none; cursor: default; }
.rf-retour { margin-top: 12px !important; font-weight: 700; min-height: 22px; }
@media (min-width: 760px) {
  .rf-h1.rf-h1-doc { font-size: 64px; text-shadow: 4px 4px 0 #15173A; }
  .rf-doc { padding: 30px 32px 34px; font-size: 17px; }
}
