/* Tadacolor : charte du 30/09/2026 (logo, Poppins, couleurs du crayon). */
@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 {
  /* couleurs du logo */
  --red: #FF4B4B;
  --yellow: #FFD93D;
  --green: #7ED321;
  --blue: #3DB2FF;
  --orange: #FF8A3C;
  --violet: #A78BFA;
  --pink: #FF70A6;
  --sky: #8DD3FF;
  /* neutres */
  --bg: #FFF8EF;
  --paper: #FFFFFF;
  --ink: #2D2A3A;
  --ink-soft: #6B7280;
  --line: #EADFCF;
  /* pastels des tuiles */
  --pink-soft: #FFE4EF;
  --sun-soft: #FFF3CC;
  --mint-soft: #E3F8D5;
  --sky-soft: #DDF1FF;
  --lilac-soft: #EEE8FF;
  --peach-soft: #FFE8D6;
  --radius: 22px;
  --shadow: 0 6px 20px rgba(45, 42, 58, .08);
  --font: "Poppins", ui-rounded, "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.65 var(--font); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2 { line-height: 1.2; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(1.8rem, 4.5vw, 2.7rem); margin: .2em 0 .4em; }
h2 { font-size: clamp(1.25rem, 3vw, 1.6rem); margin: 1.8em 0 .8em; }
h2 a { text-decoration: none; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }

/* En-tête */
.top { background: var(--paper); border-bottom: 2px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; flex-wrap: wrap; padding: 6px 16px; }
.logo img { height: 64px; width: auto; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.nav a { text-decoration: none; font-weight: 600; font-size: .95rem; padding: 8px 12px; border-radius: 999px; }
.nav a:hover { background: var(--pink-soft); }
.nav .lang { border: 2px solid var(--line); margin-left: 4px; }

/* Fil d'Ariane */
.crumbs { font-size: .88rem; color: var(--ink-soft); padding-top: 14px; display: flex; gap: 6px; flex-wrap: wrap; }
.crumbs a { color: var(--ink-soft); }

/* Accueil */
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 32px; align-items: center; padding: 40px 0 16px; }
.hero h1 { font-size: clamp(2.1rem, 5.5vw, 3.4rem); margin-top: 0; }
.tada-title { line-height: 1.05; }
.tada { display: block; font-size: clamp(2.1rem, 10.5vw, 4.6rem); letter-spacing: -.02em; white-space: nowrap; }
.tada i { font-style: normal; display: inline-block; -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; animation: tada-hop 2.4s ease-in-out infinite; animation-delay: calc(var(--i) * .12s); }
.a-red { color: var(--red); --i: 0; } .a-yellow { color: var(--yellow); --i: 1; } .a-green { color: var(--green); --i: 2; }
.a-blue { color: var(--blue); --i: 3; } .a-orange { color: var(--orange); --i: 4; } .a-violet { color: var(--violet); --i: 5; } .a-pink { color: var(--pink); --i: 6; }
.tada-sub { display: block; font-size: clamp(1.8rem, 4.6vw, 2.9rem); margin-top: .15em; }
.tada-sub em { font-style: normal; color: var(--pink); white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@keyframes tada-hop { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-.18em) rotate(-6deg); } }
@media (prefers-reduced-motion: reduce) { .tada i { animation: none; } }
.hero p { color: var(--ink-soft); font-size: 1.05rem; max-width: 520px; }
.hero-art { position: relative; display: block; background: var(--sun-soft); border-radius: 48% 52% 44% 56% / 50% 44% 56% 50%; padding: 24px; }
.hero-art img { border-radius: 24px; background: #fff; transform: rotate(-3deg); box-shadow: var(--shadow); }
.deco { position: absolute; font-size: 2.2rem; line-height: 1; z-index: 1; }
.deco-heart { color: var(--pink); top: 4%; left: 6%; }
.deco-star { color: var(--yellow); top: 10%; right: 4%; -webkit-text-stroke: 1.5px var(--ink); }
.deco-star2 { color: var(--yellow); bottom: 8%; right: 12%; font-size: 1.6rem; -webkit-text-stroke: 1.5px var(--ink); }

/* Recherche */
.search { display: flex; gap: 8px; margin: 22px 0 6px; max-width: 560px; }
.search input { flex: 1; min-width: 0; font: 500 1rem var(--font); padding: 13px 18px; border: 2px solid var(--pink); border-radius: 999px; background: #fff; color: var(--ink); }
.search input:focus { outline: 3px solid var(--pink-soft); }
.search button { font: 700 1rem var(--font); padding: 0 20px; border: 0; border-radius: 999px; background: var(--pink); color: #fff; cursor: pointer; }

/* Tuiles univers et familles */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; margin: 20px 0; }
.tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; text-decoration: none; font-weight: 700; padding: 18px 10px; border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); transition: transform .15s ease; }
.tile:hover { transform: translateY(-3px); }
.tile-picto { font-size: 2.4rem; line-height: 1; }
.tile small { color: var(--ink-soft); font-weight: 600; }
.tile-pink { background: var(--pink-soft); }
.tile-lilac { background: var(--lilac-soft); }
.tile-sky { background: var(--sky-soft); }
.tile-sun { background: var(--sun-soft); }
.tile-mint { background: var(--mint-soft); }

/* En-tête de section avec lien « voir tout » */
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.more-link { font-weight: 600; color: var(--blue); text-decoration: none; }
.more-link:hover { text-decoration: underline; }

/* Bandeau Tada */
.banner { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 48px; padding: 28px 32px; border-radius: var(--radius); background: linear-gradient(100deg, var(--sun-soft), var(--pink-soft)); }
.banner-title { font-size: 2.4rem; font-weight: 700; margin: 0; line-height: 1.1; }
.banner-sub { font-size: 1.4rem; font-weight: 700; margin: 0 0 8px; }
.banner img { width: 150px; border-radius: 8px; box-shadow: var(--shadow); transform: rotate(4deg); background: #fff; }

/* Intro thème, famille, univers, style */
.intro { max-width: 820px; }
.intro-hero { max-width: 880px; }
.intro.center { text-align: center; margin: 60px auto; }
.count { font-weight: 700; color: var(--pink); margin: 0 0 .6em; }
.outro { max-width: 820px; background: var(--sky-soft); border-radius: var(--radius); padding: 4px 24px 12px; margin-top: 30px; }
.outro h2 { margin-top: 1em; }

/* Pastilles */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.chip { display: inline-block; padding: 7px 14px; border-radius: 999px; background: var(--paper); border: 2px solid var(--line); text-decoration: none; font-weight: 600; font-size: .92rem; }
.chip small { opacity: .6; margin-left: 2px; }
.chip-kawaii { background: var(--pink-soft); border-color: var(--pink-soft); }
.chip-cute { background: var(--sun-soft); border-color: var(--sun-soft); }
.chip-friend, .chip-pattern { background: var(--mint-soft); border-color: var(--mint-soft); }
.chip-scene, .chip-party { background: var(--sky-soft); border-color: var(--sky-soft); }
.chip-mandala { background: var(--lilac-soft); border-color: var(--lilac-soft); }
a.chip:hover { border-color: var(--ink); }
.chip-age { background: var(--mint-soft); border-color: var(--mint-soft); }
.chip-level { background: var(--peach-soft); border-color: var(--peach-soft); }

/* Grilles de vignettes */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; }
.card { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px 10px 14px; text-decoration: none; display: flex; flex-direction: column; gap: 8px; transition: transform .15s ease; }
.card:hover { transform: translateY(-3px) rotate(-.4deg); }
.card img { border-radius: 14px; aspect-ratio: 1; object-fit: contain; background: #fff; }
.card span { font-weight: 600; font-size: .92rem; line-height: 1.35; padding: 0 4px; }
.card small { color: var(--pink); font-weight: 700; padding: 0 4px; }
.card-theme span { font-size: 1.05rem; text-align: center; }
.card-theme small { text-align: center; }
.card-box { display: flex; flex-direction: column; gap: 8px; }
.card-box .card { flex: 1; }
.card-print { font: 700 .9rem var(--font); border: 2px solid var(--pink); color: var(--ink); background: var(--paper); border-radius: 999px; padding: 8px 12px; cursor: pointer; }
.card-print:hover { background: var(--pink-soft); }

/* Page coloriage */
.sheet { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; margin-top: 18px; align-items: start; }
.sheet-img { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; }
.thumbs { display: flex; gap: 10px; margin-top: 14px; overflow-x: auto; }
.thumb { flex: 0 0 auto; width: 84px; border: 2px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.thumb.is-current { border-color: var(--pink); }
.sheet-side h1 { font-size: clamp(1.5rem, 3.3vw, 2.2rem); }
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.actions { display: flex; flex-direction: column; gap: 12px; margin: 22px 0 8px; }
.btn { display: inline-block; text-align: center; font: 700 1.05rem var(--font); padding: 14px 22px; border-radius: 999px; border: 0; cursor: pointer; text-decoration: none; background: var(--ink); color: #fff; }
.btn-print { background: var(--pink); }
.btn-pdf { background: var(--blue); }
.btn:hover { filter: brightness(1.05); transform: translateY(-1px); }
.muted { color: var(--ink-soft); font-size: .92rem; }
.pager { display: flex; justify-content: space-between; margin-top: 24px; font-weight: 600; }
.more { text-align: center; margin-top: 24px; }
.sheet-preview { display: flex; gap: 14px; align-items: center; margin: 20px 0 0; }
.sheet-preview img { width: 104px; border-radius: 8px; box-shadow: var(--shadow); background: #fff; }
.sheet-preview figcaption { color: var(--ink-soft); font-size: .92rem; }
.item-text { margin-top: 30px; }
.item-text h2 { font-size: 1.25rem; margin: 1.2em 0 .4em; }
.tip { background: var(--sun-soft); border-radius: var(--radius); padding: 6px 22px 10px; margin: 18px 0; }
.tip h2 { margin-top: .8em; }
.plus-link { font-weight: 600; color: var(--blue); text-decoration: none; }
.plus-link:hover { text-decoration: underline; }

/* Inscription aux coloriages du mois */
.newsletter { margin-top: 48px; padding: 26px 28px; border-radius: var(--radius); background: var(--lilac-soft); display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; scroll-margin-top: 20px; }
.newsletter-compact { margin-top: 36px; padding: 20px 24px; }
.nl-title { font-size: 1.3rem; font-weight: 700; margin: 0; }
.nl-text p { margin: 0 0 4px; }
.nl-form { display: grid; gap: 12px; }
.nl-ages { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.nl-ages legend { font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.nl-ages label { display: inline-flex; align-items: center; gap: 6px; background: #fff; border-radius: 999px; padding: 6px 14px; font-weight: 600; cursor: pointer; }
.nl-ages input { width: 18px; height: 18px; accent-color: var(--pink); }
.nl-row { display: flex; gap: 8px; max-width: 560px; }
.nl-row input { flex: 1; min-width: 0; font: 500 1rem var(--font); padding: 12px 18px; border: 2px solid var(--violet); border-radius: 999px; }
.nl-row button { font: 700 1rem var(--font); padding: 0 20px; border: 0; border-radius: 999px; background: var(--violet); color: #fff; cursor: pointer; }
.nl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.nl-legal { font-size: .8rem; color: var(--ink-soft); margin: 0; }
.nl-msg { margin: 0; padding: 10px 16px; border-radius: 14px; background: #fff; font-weight: 600; }
.nl-sent, .nl-confirmed { border-left: 5px solid var(--green); }
.nl-invalid, .nl-wait, .nl-error { border-left: 5px solid var(--red); }
#nl-nudge { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 50; display: flex; align-items: center; gap: 12px; background: var(--ink); color: #fff; padding: 12px 16px 12px 20px; border-radius: 999px; box-shadow: var(--shadow); font-weight: 600; max-width: calc(100% - 32px); }
#nl-nudge a { background: var(--pink); color: #fff; text-decoration: none; padding: 6px 14px; border-radius: 999px; white-space: nowrap; }
#nl-nudge button { background: none; border: 0; color: #fff; font-size: 1.3rem; cursor: pointer; }

/* Texte long */
.prose { max-width: 780px; }
.prose h2 { font-size: 1.2rem; margin-top: 1.6em; }

/* Pied de page */
.foot { margin-top: 70px; background: var(--paper); border-top: 2px solid var(--line); padding: 30px 0; }
.foot-slogan { font-weight: 700; font-size: 1.25rem; margin: 0 0 12px; }
.foot-themes { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 14px; }
.foot-themes a, .foot-legal { color: var(--ink-soft); font-size: .92rem; }

@media (max-width: 760px) {
  body { font-size: 15.5px; }
  .hero { grid-template-columns: minmax(0, 1fr); padding-top: 24px; gap: 20px; }
  .hero-art { max-width: 340px; margin: 0 auto; }
  .sheet { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .tile { padding: 14px 6px; font-size: .88rem; }
  .card { padding: 8px 8px 12px; border-radius: 16px; }
  .logo img { height: 48px; }
  .nav a { padding: 6px 9px; font-size: .88rem; }
  .banner { flex-direction: column; text-align: center; padding: 22px; }
  .search button { padding: 0 14px; }
  .newsletter { padding: 20px 16px; }
  .nl-row { flex-direction: column; }
  .nl-row button { padding: 12px 20px; }
}

/* Blog (articles du Planning, data/blog/) */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; margin-top: 10px; }
.post-card { display: flex; flex-direction: column; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; text-decoration: none; transition: transform .15s ease; }
.post-card:hover { transform: translateY(-3px) rotate(-.4deg); }
.post-card img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; background: #fff; }
.post-card-txt { display: flex; flex-direction: column; gap: 6px; padding: 14px 18px 18px; }
.post-card-txt time { font-size: .82rem; font-weight: 600; color: var(--pink); }
.post-card-txt strong { font-size: 1.08rem; line-height: 1.3; }
.post-card-txt span { color: var(--ink-soft); font-size: .92rem; }
.post-empty { max-width: 780px; background: var(--sky-soft); border-radius: var(--radius); padding: 16px 22px; }
.post-empty a, .post-body a { color: var(--blue); font-weight: 600; }
.post { max-width: 820px; margin: 0 auto; }
.post-head { margin-top: 18px; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; color: var(--ink-soft); font-size: .9rem; font-weight: 600; }
.post-meta .chip { font-size: .85rem; padding: 4px 12px; color: var(--ink); }
.post-chapo { font-size: 1.12rem; color: var(--ink-soft); margin: 0 0 1.2em; }
.post-une { margin: 0 0 26px; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px; }
.post-une img { width: 100%; border-radius: 14px; }
.post-body { max-width: none; font-size: 1.04rem; }
.post-body h2 { font-size: clamp(1.25rem, 3vw, 1.5rem); margin: 1.7em 0 .5em; }
.post-body h3 { font-size: 1.1rem; margin: 1.4em 0 .4em; }
.post-body figure { margin: 26px 0; }
.post-body figure img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); background: #fff; }
.post-body figcaption { color: var(--ink-soft); font-size: .88rem; margin-top: 8px; text-align: center; }
.post-body table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 22px 0; background: var(--paper); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); font-size: .95rem; }
.post-body th, .post-body td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.post-body th { background: var(--sun-soft); }

/* Blocs utiles des articles (classes jv- du Planning), aux couleurs du crayon */
.post-body .jv-encadre { margin: 26px 0; padding: 16px 22px; background: var(--sun-soft); border-radius: var(--radius); position: relative; }
.post-body .jv-encadre::before { content: "★"; position: absolute; top: -14px; right: 18px; font-size: 1.7rem; line-height: 1; color: var(--yellow); -webkit-text-stroke: 1.5px var(--ink); }
.post-body .jv-encadre > :last-child { margin-bottom: 0; }
.post-body .jv-encadre-titre { font-weight: 700; margin: 0 0 6px; }
.post-body .jv-etapes { counter-reset: jv; list-style: none; padding: 0; margin: 24px 0; }
.post-body .jv-etapes > li { counter-increment: jv; position: relative; padding: 4px 0 14px 50px; }
.post-body .jv-etapes > li::before { content: counter(jv); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--ink); background: var(--pink); color: #fff; font-weight: 700; display: grid; place-items: center; }
.post-body .jv-etapes > li:nth-child(5n+2)::before { background: var(--blue); }
.post-body .jv-etapes > li:nth-child(5n+3)::before { background: var(--yellow); color: var(--ink); }
.post-body .jv-etapes > li:nth-child(5n+4)::before { background: var(--green); color: var(--ink); }
.post-body .jv-etapes > li:nth-child(5n+5)::before { background: var(--violet); }
.post-body .jv-checklist { list-style: none; padding: 16px 22px; margin: 24px 0; background: var(--mint-soft); border-radius: var(--radius); }
.post-body .jv-checklist > li { position: relative; padding: 4px 0 4px 34px; }
.post-body .jv-checklist > li::before { content: "✓"; position: absolute; left: 0; top: 6px; width: 22px; height: 22px; border-radius: 7px; background: #fff; border: 2px solid var(--green); color: var(--green); font-weight: 700; font-size: .85rem; line-height: 18px; text-align: center; }
.post-body .jv-chiffres { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); margin: 26px 0; }
.post-body .jv-chiffres > p { margin: 0; padding: 16px 18px; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--ink-soft); font-size: .95rem; }
.post-body .jv-chiffres strong { display: block; font-size: 1.7rem; line-height: 1.15; color: var(--pink); }
.post-body .jv-chiffres > p:nth-child(3n+2) strong { color: var(--blue); }
.post-body .jv-chiffres > p:nth-child(3n+3) strong { color: var(--orange); }
.post-body .jv-graphique { margin: 26px 0; padding: 16px; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); }
.post-body .jv-graphique svg { width: 100%; height: auto; display: block; }
.post-body .jv-outil { margin: 26px 0; padding: 18px 22px; background: var(--lilac-soft); border-radius: var(--radius); }
.post-body .jv-outil-titre { font-weight: 700; margin: 0 0 4px; }
.post-body .jv-outil a { display: inline-block; margin-top: 6px; padding: 10px 20px; background: var(--pink); color: #fff; border-radius: 999px; text-decoration: none; font-weight: 700; }
.post-body .jv-outil a:hover { filter: brightness(1.05); }
@media (max-width: 760px) {
  .post-body { font-size: 1rem; }
  .post-une { padding: 6px; }
  .post-body .jv-encadre, .post-body .jv-checklist, .post-body .jv-outil { padding: 14px 16px; }
}

/* Impression : seulement la fiche A4 chargée par le bouton Imprimer */
#print-sheet { display: none; }
@media print {
  @page { size: A4; margin: 6mm; }
  body { background: #fff; }
  body > *:not(#print-sheet) { display: none !important; }
  #print-sheet { display: block; width: auto; max-width: 100%; max-height: 284mm; margin: 0 auto; }
}
