/* Charte de bonne conduite (charte.php) : titre et Rigolo, la charte sur une feuille scotchée, le bouton de lecture.
   Le texte de la charte (règles en pastilles) est dans base.css, car il sert aussi à l'inscription. */

.charter-page{position:relative;padding:22px 0 64px;overflow:hidden}
.charter-page::before{content:"";position:absolute;inset:0;pointer-events:none;background:
  radial-gradient(circle at 5% 18%, var(--sun) 0 6px, transparent 7px),
  radial-gradient(circle at 95% 26%, var(--teal) 0 5px, transparent 6px),
  radial-gradient(circle at 8% 88%, var(--violet) 0 5px, transparent 6px),
  radial-gradient(circle at 92% 90%, var(--tomato) 0 6px, transparent 7px)}
.charter-inner{position:relative;z-index:1;max-width:820px;display:flex;flex-direction:column;gap:22px}
.charter-head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:12px 24px}
.charter-head h1{font-size:clamp(26px,3.4vw,38px);padding-bottom:12px;background:var(--squiggle) left bottom / 40px 10px repeat-x}
.charter-head .mascot-art{width:132px}
.charter-head .mascot-says{margin-bottom:40px;max-width:20em}
.charter-page .panel{position:relative;box-shadow:8px 8px 0 var(--violet);transform:rotate(-.3deg)}
.charter-page .panel::before{content:"";position:absolute;top:-16px;left:50%;width:120px;height:30px;background:rgba(255,195,31,.8);border:2px solid rgba(31,42,92,.35);transform:translateX(-50%) rotate(3deg)}
.charter-page .charter-rule h2{font-size:20px}
.charter-done{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:12px;font-weight:800;margin:0}

@media (max-width:720px){
  .charter-page{padding-top:14px}
  .charter-page .panel{transform:none;padding:22px 18px}
  .charter-head .mascot-art{width:84px}
  .charter-head .mascot-says{margin-bottom:28px;font-size:16px}
}
