/* pages2026.css (v17) - Habillage commun des pages redessinees en v17 (pages publiques, classements, anciens jeux,
   petites pages de confirmation). Prefixe .pg : aucun effet sur les autres pages. */
.pg { text-align: left; font-size: 15px; line-height: 1.5; color: #3B2A32; }
.pg h1, .pg h2, .pg h3 { font-family: var(--tc-titre, Fredoka, Nunito, Arial, sans-serif); font-weight: 600; margin: 0; }
.pg p { margin: 0 0 8px; }
.pg a:not(.pg-btn) { color: #9E1F6A; font-weight: 700; }

/* En-tete illustre */
.pg-hero { position: relative; border-radius: 26px; overflow: hidden; min-height: 220px; display: flex; align-items: flex-end; margin: 6px 0 16px;
  background: #3B2A55 var(--pg-img, none) center var(--pg-y, 45%) / cover no-repeat; box-shadow: 0 14px 34px rgba(60,20,80,.25); }
.pg-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,10,40,0) 30%, rgba(20,10,40,.8) 100%); }
.pg-hero-txt { position: relative; padding: 52px 22px 18px; color: #fff; width: 100%; display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; box-sizing: border-box; }
.pg-hero-txt > div:first-child { flex: 1 1 320px; }
.pg-hero h1 { font-size: 38px; line-height: 1.05; color: #fff; text-shadow: 0 3px 0 rgba(142,31,94,.85), 0 6px 18px rgba(0,0,0,.45); }
.pg-hero p { margin: 6px 0 0; font-weight: 700; opacity: .96; max-width: 600px; text-shadow: 0 1px 4px rgba(0,0,0,.45); }
.pg-hero .pg-sur { display: inline-block; margin-bottom: 6px; padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.4); font: 800 11.5px Nunito, sans-serif; letter-spacing: .06em; text-transform: uppercase; }
.pg-hero-stat { text-align: center; background: rgba(255,255,255,.15); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.35); border-radius: 18px; padding: 8px 16px; }
.pg-hero-stat b { display: block; font: 600 32px/1 var(--tc-titre, Fredoka, sans-serif); color: #FFE45C; }
.pg-hero-stat small { font-weight: 800; font-size: 11.5px; text-transform: uppercase; letter-spacing: .6px; }
.pg-hero-liens { position: absolute; top: 12px; right: 14px; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; z-index: 1; }
.pg-hero-liens a { background: rgba(255,255,255,.92); color: #660099 !important; font-weight: 800; font-size: 12.5px; padding: 5px 11px; border-radius: 999px; text-decoration: none; }
.pg-hero-liens a:hover { background: #fff; color: #C03284 !important; }
.pg-hero.court { min-height: 150px; }

/* Cartes et grilles */
.pg-carte { background: #FFFCF3; border: 1px solid #F1D9B2; border-radius: 22px; padding: 16px 18px; box-shadow: 0 6px 18px rgba(120,70,40,.1); margin-bottom: 16px; }
.pg-carte > h2 { font-size: 21px; color: #660099; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pg-carte > h2 small { margin-left: auto; font: 800 12px Nunito, sans-serif; color: #7B6670; }
.pg-carte.centre { text-align: center; }
.pg-grille { display: grid; gap: 14px; grid-template-columns: repeat(var(--pg-col, 2), minmax(0, 1fr)); margin-bottom: 16px; }
.pg-grille > .pg-carte { margin-bottom: 0; }
.pg-2col { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px; align-items: center; }
.pg-2col.vign { grid-template-columns: 130px minmax(0, 1fr); align-items: center; }
.pg-2col.vign > img { width: 130px; height: 130px; object-fit: cover; border-radius: 22px; box-shadow: 0 6px 16px rgba(80,40,120,.2); }
.pg-illu { width: 100%; height: auto; border-radius: 18px; box-shadow: 0 8px 20px rgba(80,40,20,.18); display: block; }
.pg-liste { margin: 0; padding-left: 20px; }
.pg-liste li { margin: 4px 0; }
.pg-note { font-size: 13px; color: #7B6670; text-align: center; margin: 4px 0 16px; }
.pg-intro { font-size: 15.5px; }
.pg-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.pg-chips span { background: #FFF1D6; border: 1px solid #F1D9B2; color: #8A5A10; font-weight: 800; font-size: 12.5px; border-radius: 999px; padding: 3px 10px; }

/* Boutons */
.pg-btn, body.tc .pg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 999px; padding: 10px 20px; font: 700 15.5px/1.1 var(--tc-titre, Fredoka, Nunito, sans-serif);
  color: #fff !important; background: linear-gradient(180deg, #E85A9F 0, #C03284 100%); box-shadow: 0 4px 0 #8E1F5E, 0 8px 18px rgba(192,50,132,.25); cursor: pointer; text-decoration: none !important; transition: transform .12s, filter .12s; }
.pg-btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.pg-btn:active { transform: translateY(2px); box-shadow: 0 2px 0 #8E1F5E; }
.pg-btn.doux, body.tc .pg-btn.doux { background: #fff; color: #9E1F6A !important; box-shadow: 0 2px 0 #F1D9B2; border: 1px solid #F1D9B2; }
.pg-btn.vert { background: linear-gradient(180deg, #4DC25A 0, #2F8F2F 100%); box-shadow: 0 4px 0 #1F6B1F, 0 8px 18px rgba(47,143,47,.25); }
.pg-btn.or { background: linear-gradient(180deg, #FFCE4A 0, #E89A0C 100%); color: #5A3500 !important; box-shadow: 0 4px 0 #B06E00; }
.pg-btn.petit { padding: 6px 13px; font-size: 13.5px; }
.pg-btn[disabled] { opacity: .5; pointer-events: none; }
.pg-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 12px 0 4px; }

/* Classements */
.pg-table { width: 100%; border-collapse: separate; border-spacing: 0 6px; font-size: 14.5px; }
.pg-table th { text-align: left; font: 800 11.5px Nunito, sans-serif; text-transform: uppercase; letter-spacing: .05em; color: #8A7A80; padding: 2px 10px; }
.pg-table td { background: #fff; padding: 9px 10px; border-top: 1px solid #F3E4C8; border-bottom: 1px solid #F3E4C8; }
.pg-table td:first-child { border-left: 1px solid #F3E4C8; border-radius: 14px 0 0 14px; }
.pg-table td:last-child { border-right: 1px solid #F3E4C8; border-radius: 0 14px 14px 0; }
.pg-table .num, .pg-table th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pg-table tr.moi td { background: #FFF4D6; border-color: #F3C98C; }
.pg-rang { display: inline-flex; width: 28px; height: 28px; border-radius: 50%; align-items: center; justify-content: center; font: 700 14px var(--tc-titre, Fredoka, sans-serif); background: #F4EEF8; color: #660099; }
.pg-rang.r1 { background: linear-gradient(180deg, #FFE27A, #F5B301); color: #5A3B00; box-shadow: 0 2px 6px rgba(245,179,1,.45); }
.pg-rang.r2 { background: linear-gradient(180deg, #F1F1F6, #C9CBD6); color: #3E4050; }
.pg-rang.r3 { background: linear-gradient(180deg, #F5C9A0, #D9894A); color: #4A2400; }
.pg-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: end; margin-bottom: 14px; }
.pg-podium > div { text-align: center; background: #fff; border: 1px solid #F1D9B2; border-radius: 20px; padding: 12px 8px; box-shadow: 0 6px 14px rgba(120,70,40,.08); }
.pg-podium > div.p1 { order: 2; padding-top: 22px; background: linear-gradient(180deg, #FFF6D6, #fff); border-color: #F3C98C; }
.pg-podium > div.p2 { order: 1; } .pg-podium > div.p3 { order: 3; }
.pg-podium b { display: block; font: 600 17px var(--tc-titre, Fredoka, sans-serif); color: #3B2A55; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pg-podium small { display: block; color: #7B6670; font-weight: 700; font-size: 12.5px; }
.pg-podium .pg-med { font-size: 30px; line-height: 1; }

/* Etapes (visite) */
.pg-etapes { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin: 0 0 14px; }
.pg-etapes a, .pg-etapes span { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font: 700 15px var(--tc-titre, Fredoka, sans-serif); text-decoration: none !important; background: #fff; border: 2px solid #F1D9B2; color: #9E1F6A !important; }
.pg-etapes span.ici { background: #C03284; border-color: #C03284; color: #fff !important; }
.pg-vignettes { display: grid; grid-template-columns: repeat(var(--pg-col, 4), minmax(0, 1fr)); gap: 10px; }
.pg-vignettes figure { margin: 0; text-align: center; background: #fff; border: 1px solid #F3E4C8; border-radius: 16px; padding: 8px; }
.pg-vignettes img { width: 100%; height: auto; aspect-ratio: var(--pg-ratio, 1); object-fit: cover; border-radius: 12px; display: block; }
.pg-vignettes.contenir img { object-fit: contain; background: #FFF8EA; }
.pg-vignettes figcaption { font: 700 13px/1.25 Nunito, sans-serif; color: #5A4A50; margin-top: 6px; }

/* Musee : cadres anciens */
.pg-musee .pg-vignettes figure { background: linear-gradient(180deg, #FFF8EA, #FBEBCB); border: 6px solid #E8C98A; box-shadow: inset 0 0 0 2px #fff, 0 6px 14px rgba(120,70,40,.18); border-radius: 10px; }
.pg-musee .pg-vignettes img { border-radius: 4px; image-rendering: auto; }
.pg-frise { position: relative; padding-left: 26px; }
.pg-frise::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 4px; border-radius: 4px; background: linear-gradient(180deg, #F5B301, #C03284, #660099); }
.pg-frise > .pg-carte { position: relative; }
.pg-frise > .pg-carte::before { content: ""; position: absolute; left: -24px; top: 22px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 4px solid #C03284; }
.pg-an { display: inline-block; font: 700 13px var(--tc-titre, Fredoka, sans-serif); color: #fff; background: #C03284; border-radius: 999px; padding: 2px 10px; margin-right: 6px; }

/* Message seul (pages de confirmation) */
.pg-seul { max-width: 640px; margin: 18px auto; }

/* FAQ */
.pg-faq details { background: #fff; border: 1px solid #F3E4C8; border-radius: 14px; padding: 10px 14px; margin: 8px 0; }
.pg-faq summary { cursor: pointer; font-weight: 800; color: #4A2A55; }
.pg-faq details p { margin: 8px 0 0; }

/* Formulaires simples */
.pg-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; }
.pg-form input[type="text"], .pg-form input[type="number"], .pg-form input[type="password"], .pg-form input[type="email"], .pg-form select {
  font: 700 15px Nunito, sans-serif; padding: 9px 12px; border-radius: 12px; border: 1px solid #E8D2AE; background: #fff; color: #3B2A32; min-width: 0; }

@media (max-width: 720px) {
  .pg-hero { min-height: 170px; border-radius: 20px; }
  .pg-hero h1 { font-size: 28px; }
  .pg-hero-liens { position: relative; top: auto; right: auto; padding: 10px 12px 0; justify-content: flex-start; }
  .pg-hero { flex-direction: column; align-items: stretch; justify-content: space-between; }
  .pg-grille { grid-template-columns: minmax(0, 1fr); }
  .pg-2col { grid-template-columns: minmax(0, 1fr); }
  .pg-2col.vign { grid-template-columns: 84px minmax(0, 1fr); gap: 12px; }
  .pg-2col.vign > img { width: 84px; height: 84px; border-radius: 16px; }
  .pg-vignettes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pg-table { font-size: 13.5px; }
  .pg-table td, .pg-table th { padding: 7px 6px; }
  .pg-table .pg-cache-mob { display: none; }
  .pg-podium b { font-size: 15px; }
}
@media (max-width: 420px) { .pg-vignettes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* v17 : pages de depart des jeux classiques (Chien Cambrioleur, Cartes Magiques, Chien Sadique, Totems, Chance Time) */
.jc-tete { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 18px; align-items: center; }
.jc-tete > img { width: 210px; height: 210px; object-fit: cover; border-radius: 24px; box-shadow: 0 10px 24px rgba(102,0,153,.2); }
.jc-tete h1 { font-size: 32px; color: #660099; margin-bottom: 6px; }
.jc-tete p { font-size: 15.5px; }
.jc-infos { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.jc-infos li { background: #fff; border: 1px solid #F1D9B2; border-radius: 14px; padding: 6px 12px; font-size: 13.5px; font-weight: 700; color: #5A4A50; }
.jc-infos li b { color: #660099; }
.jc-infos li.reste { background: linear-gradient(180deg, #F3FFEF, #fff); border-color: #BFE3B5; }
.jc-infos li.reste b { color: #2F8F2F; font-size: 16px; }
.jc-infos li.zero { background: #FFF1F1; border-color: #F3C4C4; }
.jc-infos li.zero b { color: #B3122E; }
.jc-choix { display: grid; grid-template-columns: repeat(var(--jc-n, 4), minmax(0, 1fr)); gap: 14px; }
.jc-choix a { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none !important; color: #3B2A32 !important; text-align: center; padding: 10px 8px 12px; border-radius: 20px; background: #fff; border: 2px solid #F3E4C8; transition: transform .15s, border-color .15s, box-shadow .15s; }
.jc-choix a img { width: 100%; max-width: 170px; height: auto; max-height: 380px; object-fit: contain; border-radius: 14px; animation: jc-hesite 4s ease-in-out infinite; }
.jc-choix a:nth-child(2) img { animation-delay: .7s; } .jc-choix a:nth-child(3) img { animation-delay: 1.4s; } .jc-choix a:nth-child(4) img { animation-delay: 2.1s; } .jc-choix a:nth-child(5) img { animation-delay: 2.8s; }
.jc-choix a:hover { transform: translateY(-6px) rotate(-1deg); border-color: #C03284; box-shadow: 0 14px 26px rgba(102,0,153,.2); }
.jc-choix a b { font: 600 17px var(--tc-titre, Fredoka, sans-serif); color: #660099; }
.jc-choix a small { font-size: 12.5px; line-height: 1.35; color: #6E5A66; }
.jc-choix.bloque a { pointer-events: none; filter: grayscale(.6); opacity: .55; }
@keyframes jc-hesite { 0%, 84%, 100% { transform: none; } 89% { transform: translateY(-5px) rotate(-1.5deg); } 94% { transform: translateY(0) rotate(1deg); } }
.jc-lots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 14px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.jc-lots li { display: flex; justify-content: space-between; gap: 8px; padding: 5px 10px; border-radius: 10px; background: #FFF8EA; }
.jc-lots li span { color: #8A7A80; font-weight: 700; white-space: nowrap; }
.jc-lots li.gros { background: linear-gradient(90deg, #FFF1C4, #FFE27A); font-weight: 800; }
.jc-roue { display: block; max-width: 440px; margin: 0 auto; }
.jc-roue img { width: 100%; height: auto; border-radius: 24px; box-shadow: 0 10px 24px rgba(102,0,153,.2); animation: jc-brille 2.4s ease-in-out infinite; transition: transform .2s; }
.jc-roue:hover img { transform: scale(1.02) rotate(-1deg); }
@keyframes jc-brille { 50% { filter: drop-shadow(0 0 14px rgba(255,210,74,.9)) saturate(1.15); } }
@media (prefers-reduced-motion: reduce) { .jc-choix a img, .jc-roue img { animation: none; } }
@media (max-width: 720px) {
  .jc-tete { grid-template-columns: 96px minmax(0, 1fr); gap: 12px; }
  .jc-tete > img { width: 96px; height: 96px; border-radius: 18px; }
  .jc-tete h1 { font-size: 24px; }
  .jc-choix { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jc-lots { grid-template-columns: minmax(0, 1fr); }
}
