/* pipalou.com : pages de coloriages (29 nov. 2026). Couleurs des pastilles ici (le site interdit style="…"). */
.cl-page { max-width: 1100px; margin: 0 auto; padding: 20px 20px 60px; }
.cl-page h1 { margin-bottom: .2em; }
.cl-lead { max-width: 46em; }
.cl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; margin: 24px 0; padding: 0; list-style: none; }
.cl-grid a { display: block; background: var(--white); border-radius: 16px; padding: 10px 10px 8px; text-decoration: none; color: var(--ink);
  font-weight: 700; text-align: center; box-shadow: 0 2px 10px rgba(62, 74, 82, .08); transition: transform .15s; }
.cl-grid a:hover { transform: translateY(-3px); }
.cl-grid img { width: 100%; height: auto; display: block; border-radius: 8px; }
.cl-grid .n { display: inline-block; min-width: 1.8em; margin-inline-end: 4px; border-radius: 999px; background: var(--sky); color: var(--mint-dark); font-size: .85rem; }
.cl-grid span { display: block; padding-top: 6px; font-size: .95rem; line-height: 1.25; }

.cl-wrap { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: 28px; align-items: start; margin-top: 18px; }
.cl-art { background: var(--white); border-radius: 18px; padding: 10px; box-shadow: 0 2px 12px rgba(62, 74, 82, .1); }
.cl-art svg { width: 100%; height: auto; display: block; cursor: pointer; touch-action: manipulation; }
.cl-tools h2 { font-size: 1.2rem; margin: 0 0 10px; }
.cl-pal { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; max-width: 360px; margin-bottom: 16px; }
.cl-pal button { aspect-ratio: 1; border-radius: 50%; border: 3px solid var(--white); box-shadow: 0 0 0 2px rgba(62, 74, 82, .25); cursor: pointer; padding: 0; }
.cl-pal button[aria-pressed="true"] { box-shadow: 0 0 0 4px var(--ink); transform: scale(1.08); }
.cl-pal .c1 { background: #F2766B; } .cl-pal .c2 { background: #F6A65A; } .cl-pal .c3 { background: #F6D85A; }
.cl-pal .c4 { background: #9CCB6A; } .cl-pal .c5 { background: #4FA36B; } .cl-pal .c6 { background: #7FC8E8; }
.cl-pal .c7 { background: #5B8FD6; } .cl-pal .c8 { background: #B39DDB; } .cl-pal .c9 { background: #F2A7C8; }
.cl-pal .c10 { background: #A9774F; } .cl-pal .c11 { background: #9AA3A8; } .cl-pal .c12 { background: #FFFFFF; }
.cl-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.cl-btns button { font: inherit; font-weight: 800; border: 0; border-radius: 999px; padding: 10px 20px; cursor: pointer; background: var(--white); color: var(--ink); box-shadow: 0 0 0 2px rgba(62, 74, 82, .15); }
.cl-btns button.main { background: var(--mint); color: var(--white); box-shadow: none; }
.cl-nav { display: flex; justify-content: space-between; gap: 10px; margin: 20px 0; }
.cl-nav a { font-weight: 800; text-decoration: none; color: var(--mint-dark); }
.cl-app { background: var(--white); border-radius: var(--radius); padding: 18px 22px; margin: 26px 0; }
noscript p { color: var(--coral-dark); }

/* lien « Coloriages » dans l'en-tête, gardé sur téléphone */
.top-r { display: flex; align-items: center; gap: 12px; }
.nav-color { font-weight: 800; text-decoration: none; color: var(--white); background: var(--coral-dark); padding: 6px 14px; border-radius: 999px; white-space: nowrap; }
.nav-color:hover { filter: brightness(1.06); }

@media (max-width: 820px) { .cl-wrap { grid-template-columns: 1fr; } }
@media print {
  @page { margin: 8mm; }
  body { background: #fff !important; }
  header.top, footer, .cl-tools, .cl-nav, .cl-app, .cl-more, .cl-page > h1, .cl-lead, .cl-page h2, .cl-grid, .no-print { display: none !important; }
  .cl-page { padding: 0; max-width: none; }
  .cl-wrap { display: block; margin: 0; }
  .cl-art { box-shadow: none; padding: 0; border-radius: 0; }
  .cl-art svg { width: auto; height: 258mm; margin: 0 auto; }
}
@media (max-width: 560px) {
  .top .wrap { flex-wrap: wrap; row-gap: 10px; }
  .top-r { width: 100%; justify-content: space-between; }
}
/* page « Coloriages » : une carte par catégorie */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; margin: 24px 0; padding: 0; list-style: none; }
.cat-card { display: block; background: var(--white); border-radius: 20px; padding: 14px; text-decoration: none; color: var(--ink);
  box-shadow: 0 2px 12px rgba(62, 74, 82, .1); transition: transform .15s; }
.cat-card:hover { transform: translateY(-3px); }
.cat-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 10px; }
.cat-thumbs img { width: 100%; height: auto; border-radius: 6px; background: var(--cream); }
.cat-card b { display: block; font-size: 1.2rem; }
.cat-card span { color: var(--ink-soft); font-size: .95rem; }
