/* Coloriage Cozy : charte de Jérémy (02/11/2026, logo maison crayon).
   Crème, aubergine, terre cuite et miel. Titres Fredoka, texte Poppins. */
@font-face { font-family: "Fredoka"; src: url("/assets/fonts/fredoka-var.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/assets/fonts/poppins-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/assets/fonts/poppins-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/assets/fonts/poppins-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --bg: #FEF8F0;
  --paper: #FFFFFF;
  --ink: #463243;
  --ink-soft: #6F5D6A;
  --line: #EFE3D4;
  --clay: #B65C43;
  --clay-dark: #9C4B35;
  --clay-logo: #C16C52;
  --honey: #F3D287;
  --honey-soft: #FBEBC6;
  --cream: #FAEEDC;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(70, 50, 67, .06), 0 8px 22px -14px rgba(70, 50, 67, .35);
  --font: "Poppins", "Segoe UI", system-ui, sans-serif;
  --title: "Fredoka", "Poppins", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.65 var(--font); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.ic { flex: none; }
h1, h2, h3 { font-family: var(--title); font-weight: 700; line-height: 1.12; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.3rem); margin: .15em 0 .35em; }
h2 { font-size: clamp(1.3rem, 2.8vw, 1.7rem); margin: 0 0 .6em; }
.h-big { font-size: clamp(1.6rem, 3.8vw, 2.4rem); }
h2 a { text-decoration: none; }
h2 a:hover { color: var(--clay); }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
main.wrap { padding-bottom: 56px; }
section { margin: 0 0 52px; }

/* boutons, pastilles, liens */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; border: 2px solid var(--clay); border-radius: 999px; padding: 10px 22px; background: var(--clay); color: #fff; cursor: pointer; text-decoration: none; line-height: 1.2; transition: background .15s, border-color .15s; }
.btn:hover { background: var(--clay-dark); border-color: var(--clay-dark); }
.btn-big { font-size: 1.2rem; padding: 15px 30px; }
.btn-sm { font-size: .85rem; padding: 7px 12px; gap: 6px; }
.btn-line { background: var(--paper); color: var(--clay); }
.btn-line:hover { background: var(--cream); color: var(--clay-dark); }
.badge { display: inline-block; margin: 0; background: var(--honey-soft); border-radius: 999px; padding: 4px 14px; font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.badge-leaf { text-transform: none; letter-spacing: 0; font-size: .95rem; font-weight: 400; padding: 5px 16px; margin: -6px 0 16px; }
.link-u { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--clay); text-decoration: underline; text-underline-offset: 4px; }
.link-u:hover { color: var(--clay-dark); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 28px; }
.chip-f { font: inherit; font-size: .92rem; font-weight: 600; text-decoration: none; color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); border-radius: 999px; padding: 7px 18px; cursor: pointer; }
.chip-f:hover { border-color: var(--clay-logo); }
.chip-f.on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* en-tête */
.top { background: var(--bg); }
.top-in { display: flex; align-items: center; gap: 12px 36px; min-height: 84px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.logo { display: block; flex: none; }
.logo img { height: 60px; width: auto; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 28px; font-size: 1rem; margin-right: auto; }
.nav a { text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current] { border-color: var(--clay-logo); }
.tools { display: flex; align-items: center; gap: 18px; }
.tool-search { display: flex; padding: 4px; }
.tool-search:hover { color: var(--clay); }
.lang { display: inline-flex; align-items: center; gap: 2px; border: 1.5px solid var(--line); border-radius: 999px; padding: 3px; background: var(--paper); font-size: .9rem; }
.lang b, .lang a { display: inline-block; min-width: 34px; text-align: center; border-radius: 999px; padding: 2px 8px; text-decoration: none; }
.lang b { background: var(--honey-soft); color: var(--clay); }
.lang a:hover { color: var(--clay); }
@media (max-width: 900px) {
  .top-in { gap: 8px 16px; }
  .logo img { height: 42px; }
  .tools { margin-left: auto; }
  .nav { order: 3; width: 100%; margin: 0; gap: 0 20px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; font-size: .95rem; padding-bottom: 2px; }
  .nav a { white-space: nowrap; }
}

.crumbs { font-size: .85rem; color: var(--ink-soft); padding-top: 4px; padding-bottom: 6px; display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--clay); text-decoration: underline; }

/* accueil */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; padding: 28px 0 8px; margin-bottom: 20px; }
.hero h1 { font-size: clamp(2.3rem, 5.6vw, 3.9rem); margin-top: .3em; }
.lead { font-size: 1.07rem; max-width: 34em; }
.lead p { margin: 0 0 .6em; }
.hero-cta { margin: 26px 0 14px; }
.hero-art { position: relative; height: 480px; }
.sheet-fan { position: absolute; display: block; background: var(--paper); padding: 10px; border-radius: 6px; box-shadow: 0 10px 28px -14px rgba(70, 50, 67, .55); transition: transform .2s; }
.sheet-fan img { border-radius: 2px; }
.sf-1 { width: 50%; left: 8%; top: 0; transform: rotate(-4deg); z-index: 2; }
.sf-2 { width: 36%; left: 0; top: 40%; transform: rotate(3deg); z-index: 3; }
.sf-3 { width: 40%; right: 4%; top: 24%; transform: rotate(5deg); z-index: 1; }
.sheet-fan:hover { transform: rotate(0) scale(1.02); z-index: 4; }
.pencils { position: absolute; width: 130px; right: 0; top: 0; }
.heart { position: absolute; width: 34px; left: 64%; top: 2%; transform: rotate(12deg); }
.stats { list-style: none; margin: 0 0 56px; padding: 18px 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats li { display: flex; align-items: center; justify-content: center; gap: 12px; font-weight: 600; font-size: .95rem; padding: 4px 12px; text-align: left; }
.stats li + li { border-left: 1px solid var(--line); }
.envies { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.envie { display: flex; flex-direction: column; align-items: center; gap: 12px; text-decoration: none; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 10px 18px; transition: transform .15s; }
.envie:hover { transform: translateY(-3px); }
.envie-ic { display: grid; place-items: center; width: 92px; height: 78px; background: radial-gradient(closest-side, var(--honey-soft) 70%, transparent 100%); }
.envie-t { display: flex; align-items: center; gap: 8px; font-weight: 600; text-align: center; }
.go { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--honey-soft); color: var(--clay); }
.banner { display: flex; align-items: center; gap: 24px; background: var(--honey-soft); border-radius: 24px; padding: 22px 32px; }
.banner-pencil { width: 120px; flex: none; }
.banner-t { flex: 1; }
.banner-t p { margin: 0; }
.banner-h { font-family: var(--title); font-weight: 700; font-size: clamp(1.3rem, 2.6vw, 1.8rem); line-height: 1.2; margin-bottom: 4px !important; }

/* catégories */
.cat-head { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: center; padding: 6px 0 24px; }
.cat-head .lead { max-width: 40em; }
.fan { position: relative; height: 300px; }
.fan span { position: absolute; display: block; width: 170px; background: var(--paper); padding: 7px; border-radius: 5px; box-shadow: 0 10px 24px -14px rgba(70, 50, 67, .55); }
.fan .fan-1 { left: 30px; top: 6px; transform: rotate(-5deg); z-index: 2; }
.fan .fan-2 { left: 140px; top: 40px; transform: rotate(6deg); }
.fan-n1 .fan-1 { left: 70px; }
.grid-h { font-size: clamp(1.3rem, 2.6vw, 1.7rem); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; margin-bottom: 4px; }
.section-head .link-u { font-size: .92rem; }
.explore { background: var(--paper); border-radius: 24px; padding: 28px 32px 8px; box-shadow: var(--shadow); }
.explore-txt { max-width: 820px; }
.explore-txt p { margin: 0 0 1em; }
.explore-h { font-family: var(--title); font-weight: 700; font-size: 1.3rem; margin: 6px 0 12px; }
.more { text-align: center; margin-top: 22px; }
.count { color: var(--ink-soft); font-size: .92rem; margin: 0 0 1em; }
.intro { max-width: 820px; padding-top: 10px; }
@media (max-width: 760px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 8px; padding-top: 12px; }
  .hero-art { height: 340px; max-width: 420px; width: 100%; margin: 0 auto; }
  .pencils { width: 90px; }
  .stats { grid-template-columns: 1fr; padding: 8px 0; }
  .stats li { justify-content: flex-start; padding: 8px 4px; }
  .stats li + li { border-left: 0; border-top: 1px solid var(--line); }
  .envies { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .envie:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .banner { flex-direction: column; text-align: center; padding: 22px 20px; gap: 14px; }
  .banner-pencil { width: 90px; }
  .cat-head { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .fan { display: none; }
  .explore { padding: 22px 18px 6px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: -16px; margin-right: -16px; padding: 0 16px 4px; }
  .chips .chip-f { white-space: nowrap; }
  .explore .chips { flex-wrap: wrap; margin: 0 0 22px; padding: 0; }
}

/* grilles et vignettes */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-series { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.card-box { display: flex; flex-direction: column; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px 10px 14px; }
.card-box[hidden] { display: none; }
.card { display: block; text-decoration: none; flex: 1; }
.card-img { display: block; overflow: hidden; border-radius: 8px; }
.card img { aspect-ratio: 1 / 1; object-fit: contain; width: 100%; transition: transform .2s; }
.card:hover img { transform: scale(1.03); }
.card-t { display: block; font-weight: 600; font-size: .9rem; line-height: 1.35; margin: 10px 2px 2px; }
.card-l { display: block; color: var(--ink-soft); font-size: .8rem; margin: 0 2px; }
.card-act { display: flex; gap: 8px; justify-content: center; margin-top: 12px; }
.card-act .btn { flex: 1 1 auto; max-width: 150px; }
.card-serie { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px 10px 14px; transition: transform .15s; }
.card-serie:hover { transform: translateY(-2px); }
.card-serie .card-t { font-family: var(--title); font-size: 1.05rem; }
@media (max-width: 900px) { .grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .grid, .grid-4, .grid-series { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card-box, .card-serie { padding: 7px 7px 10px; }
  .card-t { font-size: .82rem; }
  .card-act { flex-direction: column; gap: 6px; }
  .card-act .btn { max-width: none; }
}

/* fiche coloriage */
.sheet { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; padding-top: 8px; margin-bottom: 52px; }
.sheet-img { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.sheet-side h1 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); }
.sheet-side .badge { margin-bottom: 4px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-block; text-decoration: none; font-size: .88rem; font-weight: 600; padding: 5px 14px; border-radius: 999px; background: var(--paper); border: 1.5px solid var(--line); }
.chip-soft { background: var(--honey-soft); border-color: var(--honey-soft); }
.chip:hover { border-color: var(--clay-logo); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0; }
.btn-print { font-size: 1.1rem; padding: 13px 28px; }
.pager { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 14px; font-size: .92rem; }
.pager a { text-decoration: none; font-weight: 600; }
.pager a:hover { color: var(--clay); }
@media (max-width: 760px) { .sheet { grid-template-columns: minmax(0, 1fr); gap: 18px; } }

/* recherche */
.search { display: flex; gap: 8px; margin: 18px 0 0; max-width: 520px; }
.search input { flex: 1; min-width: 0; font: inherit; padding: 10px 16px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper); }
.search input:focus { outline: 2px solid var(--honey); border-color: var(--honey); }
.search button { font: inherit; font-weight: 600; border: 0; border-radius: 999px; padding: 10px 20px; background: var(--clay); color: #fff; cursor: pointer; }

/* mentions */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.4em; }

/* pied de page */
.foot { border-top: 1px solid var(--line); padding: 36px 0 18px; font-size: .9rem; }
.foot-in { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 20px; }
.foot-h { font-family: var(--title); font-weight: 700; font-size: 1.05rem; margin: 0 0 6px; }
.foot-h a { text-decoration: none; color: var(--ink); }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li a { text-decoration: none; color: var(--ink-soft); line-height: 1.9; }
.foot li a:hover { color: var(--clay); text-decoration: underline; }
.foot-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-top: 1px solid var(--line); margin-top: 28px; padding-top: 18px; }
.foot-bottom .logo img { height: 42px; }
.foot-legal { color: var(--ink-soft); margin: 0; font-size: .85rem; }

/* impression : feuille A4 avec Prénom et Date, visible seulement sur papier */
#print-sheet { display: none; }
@media print {
  @page { size: A4; margin: 0; }
  body > *:not(#print-sheet) { display: none !important; }
  body { background: #fff; }
  #print-sheet { display: flex !important; flex-direction: column; justify-content: center; gap: 11mm; width: 210mm; height: 296mm; padding: 0 13mm; box-sizing: border-box; font-family: var(--title); color: #000; }
  .ps-fields { display: flex; gap: 5mm; }
  .ps-field { display: flex; align-items: center; gap: 3mm; border: .6mm solid #000; border-radius: 5mm; padding: 0 5mm; height: 19mm; font-size: 15pt; font-weight: 600; }
  .ps-field:first-child { flex: 1.6; }
  .ps-field:last-child { flex: 1; }
  .ps-field i { flex: 1; border-bottom: .45mm solid #000; height: 0; margin-top: 6mm; }
  #print-sheet img { width: 184mm; height: 184mm; }
}
