/* Petits Coloriages — Complete Stylesheet */
/* Playful, professional children's coloring site */

@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;500;600;700&family=Nunito:wght@400;600;700;800;900&display=swap');

:root {
  --coral: #FF6B6B;
  --coral-dark: #e05252;
  --teal: #4ECDC4;
  --teal-dark: #3dbdb5;
  --sunny: #FFE66D;
  --sunny-dark: #f5d84d;
  --lavender: #B8A9E8;
  --mint: #A8E6CF;
  --peach: #FFCBA4;
  --sky: #89CFF0;
  --pink: #FFB3C6;
  --text: #2D2D3A;
  --text-light: #6B6B80;
  --text-muted: #9999AA;
  --border: #E8E4F0;
  --bg: #FEFCF8;
  --bg-warm: #FFF8F0;
  --bg-cool: #F0F4FF;
  --bg-card: #FFFFFF;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-sm: 0 2px 8px rgba(45,45,58,0.06);
  --shadow: 0 4px 20px rgba(45,45,58,0.08);
  --shadow-md: 0 8px 30px rgba(45,45,58,0.10);
  --shadow-lg: 0 12px 40px rgba(45,45,58,0.14);
  --shadow-color: 0 8px 30px rgba(255,107,107,0.15);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: 'Nunito', 'Quicksand', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Global link reset — NO blue underlined links anywhere */
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

img { max-width: 100%; height: auto; display: block; }

/* ═══════════════════════════════════════
   HEADER / NAVIGATION
   ═══════════════════════════════════════ */

.site-header {
  background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 30%, #FFE66D 100%);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(255,107,107,0.25);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  min-height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 900;
  color: white;
  flex-shrink: 0;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.logo:hover { color: white; }

.logo-icon {
  font-size: 32px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
  animation: wiggle 3s ease-in-out infinite;
}

@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-5deg); }
  75% { transform: rotate(5deg); }
}

.logo-text strong { color: white; }

.nav-toggle {
  display: none;
  background: rgba(255,255,255,0.25);
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 10px;
  padding: 6px 14px;
  font-size: 20px;
  cursor: pointer;
  margin-left: auto;
  color: white;
  backdrop-filter: blur(4px);
  transition: background 0.2s;
}

.nav-toggle:hover { background: rgba(255,255,255,0.35); }

.nav-cats {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  flex: 1;
  justify-content: flex-end;
}

.nav-cat {
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  white-space: nowrap;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.nav-cat:hover {
  background: rgba(255,255,255,0.25);
  color: white;
  border-color: rgba(255,255,255,0.3);
}

.nav-cat.active {
  background: white;
  color: var(--coral);
  border-color: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* ═══════════════════════════════════════
   AD SLOTS (placeholders)
   ═══════════════════════════════════════ */

.ad-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f8f6ff 0%, #f0eeff 100%);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 12px;
  font-family: 'Nunito', sans-serif;
}

.ad-header { width: 100%; height: 60px; margin-bottom: 0; }
.ad-sidebar { width: 100%; min-height: 250px; border-radius: var(--radius); }
.ad-incontent { max-width: 400px; height: 280px; margin: 32px auto; border-radius: var(--radius); }
.ad-placeholder { padding: 12px; text-align: center; }

/* ═══════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════ */

.hero {
  background:
    radial-gradient(circle at 20% 80%, rgba(78,205,196,0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(184,169,232,0.3) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(255,230,109,0.2) 0%, transparent 60%),
    linear-gradient(160deg, #FF6B6B 0%, #FF8E53 35%, #FFE66D 65%, #4ECDC4 100%);
  padding: 80px 20px 90px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Decorative floating shapes */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
  animation: float 8s ease-in-out infinite;
}

.hero::before {
  width: 200px;
  height: 200px;
  background: white;
  top: -40px;
  left: -60px;
  animation-delay: -2s;
}

.hero::after {
  width: 150px;
  height: 150px;
  background: white;
  bottom: -30px;
  right: -40px;
  animation-delay: -5s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-15px) rotate(3deg); }
  66% { transform: translateY(10px) rotate(-2deg); }
}

.hero-inner {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-family: 'Quicksand', 'Nunito', sans-serif;
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 700;
  color: white;
  margin: 0 0 16px;
  text-shadow: 0 3px 12px rgba(0,0,0,0.15);
  line-height: 1.15;
  letter-spacing: -0.5px;
}

.hero-sub {
  font-size: clamp(16px, 2.5vw, 21px);
  color: rgba(255,255,255,0.92);
  margin: 0 0 32px;
  font-weight: 600;
  line-height: 1.5;
}

.hero-cta {
  display: inline-block;
  background: white;
  color: var(--coral);
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 18px;
  padding: 16px 40px;
  border-radius: 100px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.18);
  transition: all 0.25s ease;
  letter-spacing: 0.3px;
}

.hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(0,0,0,0.22);
  color: var(--coral-dark);
}

/* ═══════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════ */

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.section { padding: 56px 0; }

.section-alt {
  background: linear-gradient(180deg, var(--bg-warm) 0%, #FFF4E8 100%);
  position: relative;
}

/* Wavy separator between sections */
.section-alt::before {
  content: '';
  position: absolute;
  top: -30px;
  left: 0;
  right: 0;
  height: 60px;
  background: inherit;
  clip-path: ellipse(55% 60% at 50% 100%);
}

.section-title {
  font-family: 'Quicksand', 'Nunito', sans-serif;
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 700;
  color: var(--text);
  margin: 0 0 36px;
  text-align: center;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--coral), var(--sunny));
  border-radius: 2px;
  margin: 12px auto 0;
}

/* ═══════════════════════════════════════
   SIDEBAR LAYOUT
   ═══════════════════════════════════════ */

.page-with-sidebar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}

@media (min-width: 900px) {
  .page-with-sidebar { grid-template-columns: 1fr 300px; }
}

.sidebar { display: flex; flex-direction: column; gap: 24px; }

.sidebar-cats {
  background: white;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.sidebar-cats h4 {
  font-family: 'Quicksand', sans-serif;
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--text);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}

.sidebar-cat-link {
  display: block;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-light);
  transition: all 0.2s ease;
  margin-bottom: 2px;
}

.sidebar-cat-link:hover {
  background: linear-gradient(135deg, #FFF0F0 0%, #FFF8F0 100%);
  color: var(--coral);
  transform: translateX(4px);
}

/* ═══════════════════════════════════════
   CATEGORY GRID (homepage)
   ═══════════════════════════════════════ */

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.cat-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  display: block;
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
}

.cat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--coral), var(--teal));
  opacity: 0;
  transition: opacity 0.3s;
}

.cat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border);
}

.cat-card:hover::before { opacity: 1; }

/* Alternate category card top-bar colors */
.cat-card:nth-child(1)::before { background: linear-gradient(90deg, #FF6B6B, #FF8E53); }
.cat-card:nth-child(2)::before { background: linear-gradient(90deg, #B8A9E8, #FFB3C6); }
.cat-card:nth-child(3)::before { background: linear-gradient(90deg, #4ECDC4, #89CFF0); }
.cat-card:nth-child(4)::before { background: linear-gradient(90deg, #FFE66D, #FF8E53); }
.cat-card:nth-child(5)::before { background: linear-gradient(90deg, #A8E6CF, #89CFF0); }
.cat-card:nth-child(6)::before { background: linear-gradient(90deg, #FFB3C6, #B8A9E8); }
.cat-card:nth-child(7)::before { background: linear-gradient(90deg, #89CFF0, #4ECDC4); }
.cat-card:nth-child(8)::before { background: linear-gradient(90deg, #FFCBA4, #FFE66D); }

.cat-emoji {
  font-size: 48px;
  display: block;
  margin-bottom: 14px;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.1));
  transition: transform 0.3s ease;
}

.cat-card:hover .cat-emoji { transform: scale(1.15) rotate(-5deg); }

.cat-name {
  font-family: 'Quicksand', sans-serif;
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text);
}

.cat-desc {
  font-size: 13px;
  color: var(--text-light);
  margin: 0;
  line-height: 1.6;
}

/* ═══════════════════════════════════════
   COLORIAGE CARDS (grid items)
   ═══════════════════════════════════════ */

.coloriage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.coloriage-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.coloriage-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--coral);
}

.coloriage-card a { display: block; }

.card-img-wrap {
  aspect-ratio: 1;
  overflow: hidden;
  background:
    linear-gradient(135deg, #FAFAFA 0%, #F5F5F5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  position: relative;
}

/* Subtle pattern background for empty/loading state */
.card-img-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, #eee 1px, transparent 1px);
  background-size: 16px 16px;
  opacity: 0.5;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
  position: relative;
  z-index: 1;
  /* Ensure SVG coloring pages are visible with proper line art */
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.05));
}

.coloriage-card:hover .card-img-wrap img { transform: scale(1.08); }

.card-body {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid #f0f0f0;
}

.card-title {
  font-family: 'Quicksand', sans-serif;
  font-size: 14px;
  font-weight: 700;
  margin: 0;
  color: var(--text);
  line-height: 1.3;
  flex: 1;
}

.card-difficulty {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  text-transform: capitalize;
  white-space: nowrap;
  flex-shrink: 0;
}

.diff-facile { background: #E8F8F0; color: #0D7A46; }
.diff-moyen { background: #FFF6E0; color: #9A6E00; }
.diff-difficile { background: #FFE8EB; color: #C4314B; }

/* ═══════════════════════════════════════
   CATEGORY PAGE HERO
   ═══════════════════════════════════════ */

.cat-hero {
  text-align: center;
  padding: 40px 0 32px;
  position: relative;
}

.cat-hero-emoji {
  font-size: 64px;
  display: block;
  margin-bottom: 16px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.page-title {
  font-family: 'Quicksand', sans-serif;
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 700;
  margin: 8px 0 12px;
  color: var(--text);
}

.page-desc {
  font-size: 16px;
  color: var(--text-light);
  margin: 0 auto;
  max-width: 600px;
  line-height: 1.7;
}

/* ═══════════════════════════════════════
   COLORIAGE DETAIL PAGE
   ═══════════════════════════════════════ */

.coloriage-detail { padding: 20px 0 56px; }

/* Print CTA — bold and inviting */
.print-cta {
  text-align: center;
  padding: 24px;
  background: linear-gradient(135deg, var(--coral) 0%, #FF8E53 100%);
  border-radius: var(--radius-xl);
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 30px rgba(255,107,107,0.3);
  position: relative;
  overflow: hidden;
}

.print-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
  animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { transform: translateX(-30%) translateY(-30%); }
  50% { transform: translateX(10%) translateY(10%); }
}

.btn-print {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: white;
  color: var(--coral);
  border: none;
  font-family: 'Nunito', sans-serif;
  font-size: clamp(18px, 3vw, 24px);
  font-weight: 900;
  padding: 16px 44px;
  border-radius: 100px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  transition: all 0.25s ease;
  letter-spacing: 0.3px;
  position: relative;
  z-index: 1;
}

.btn-print:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 28px rgba(0,0,0,0.2);
}

.btn-print-secondary {
  display: block;
  width: 100%;
  margin-top: 16px;
  font-size: 16px;
  background: linear-gradient(135deg, var(--coral) 0%, #FF8E53 100%);
  color: white;
  border: 2px solid rgba(255,255,255,0.2);
}

.btn-print-secondary:hover {
  background: linear-gradient(135deg, var(--coral-dark) 0%, #e87548 100%);
}

.print-hint {
  font-size: 14px;
  color: rgba(255,255,255,0.9);
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-bottom: 36px;
}

@media (min-width: 768px) {
  .detail-layout { grid-template-columns: 1fr 300px; }
}

.detail-image-wrap {
  background: white;
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #f0f0f0;
}

.coloriage-image {
  max-width: 100%;
  max-height: 600px;
  object-fit: contain;
}

.detail-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.detail-title {
  font-family: 'Quicksand', sans-serif;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  margin: 0;
  color: var(--text);
}

.detail-desc {
  font-size: 15px;
  color: var(--text-light);
  margin: 0;
  line-height: 1.7;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.meta-tag {
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  background: linear-gradient(135deg, #F8F4FF 0%, #FFF0F5 100%);
  color: var(--text-light);
  border: 1px solid var(--border);
}

.tag-small {
  font-size: 12px;
  font-weight: 600;
  background: #F5F5F8;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════
   BREADCRUMB
   ═══════════════════════════════════════ */

.breadcrumb {
  list-style: none;
  padding: 18px 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
}

.breadcrumb li a {
  color: var(--coral);
  font-weight: 700;
  transition: color 0.2s;
}

.breadcrumb li a:hover { color: var(--coral-dark); }

.bc-sep { color: #ddd; font-size: 12px; }

/* ═══════════════════════════════════════
   SIMILAR SECTION
   ═══════════════════════════════════════ */

.similar-section {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 2px solid var(--border);
}

/* ═══════════════════════════════════════
   STATIC PAGES (À propos, Contact, etc.)
   ═══════════════════════════════════════ */

.static-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 0 64px;
}

.static-page h1 {
  font-family: 'Quicksand', sans-serif;
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 28px;
  color: var(--text);
}

.static-page h2 {
  font-family: 'Quicksand', sans-serif;
  font-size: 22px;
  font-weight: 700;
  margin-top: 36px;
  margin-bottom: 10px;
  color: var(--coral);
}

.static-page p {
  margin-bottom: 18px;
  line-height: 1.8;
  color: var(--text-light);
}

.static-page a {
  color: var(--coral);
  font-weight: 700;
  border-bottom: 2px solid rgba(255,107,107,0.3);
  transition: all 0.2s;
}

.static-page a:hover {
  color: var(--coral-dark);
  border-bottom-color: var(--coral);
}

/* ═══════════════════════════════════════
   CONTACT FORM
   ═══════════════════════════════════════ */

.contact-form {
  max-width: 500px;
  margin-top: 28px;
}

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: 14px;
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  outline: none;
  transition: all 0.25s ease;
  background: white;
  color: var(--text);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--coral);
  box-shadow: 0 0 0 4px rgba(255,107,107,0.12);
}

.btn-submit {
  background: linear-gradient(135deg, var(--coral) 0%, #FF8E53 100%);
  color: white;
  border: none;
  padding: 16px 36px;
  border-radius: 100px;
  font-family: 'Nunito', sans-serif;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px rgba(255,107,107,0.3);
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,107,107,0.35);
}

/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */

.site-footer {
  background: linear-gradient(180deg, #2D2D3A 0%, #1A1A26 100%);
  color: rgba(255,255,255,0.7);
  padding: 48px 20px 32px;
  margin-top: 0;
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: -40px;
  left: 0;
  right: 0;
  height: 80px;
  background: inherit;
  clip-path: ellipse(55% 60% at 50% 100%);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-cats {
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.footer-cats a {
  color: rgba(255,255,255,0.65);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  transition: all 0.2s ease;
  border: 1px solid rgba(255,255,255,0.1);
}

.footer-cats a:hover {
  color: white;
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
}

.footer-links {
  margin-bottom: 20px;
  font-size: 13px;
}

.footer-links a {
  color: rgba(255,255,255,0.45);
  transition: color 0.2s;
  padding: 0 4px;
}

.footer-links a:hover { color: rgba(255,255,255,0.85); }

.footer-copy {
  font-size: 12px;
  margin: 0;
  color: rgba(255,255,255,0.3);
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* ═══════════════════════════════════════
   EMPTY STATE
   ═══════════════════════════════════════ */

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  font-size: 17px;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */

@media (max-width: 768px) {
  .hero { padding: 60px 16px 70px; }

  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cat-card { padding: 20px 14px; }
  .cat-emoji { font-size: 36px; }
  .cat-name { font-size: 15px; }

  .coloriage-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card-img-wrap { padding: 10px; }
  .card-body { padding: 10px 12px; }
  .card-title { font-size: 13px; }

  .detail-layout { grid-template-columns: 1fr !important; }

  .print-cta { padding: 20px 16px; }
  .btn-print { padding: 14px 32px; }
}

@media (max-width: 640px) {
  .nav-toggle { display: block; }

  .nav-cats {
    display: none;
    flex-direction: column;
    width: 100%;
    padding: 12px 0 4px;
    gap: 2px;
  }

  .nav-cats.open { display: flex; }

  .nav-cat {
    padding: 10px 16px;
    font-size: 14px;
    border-radius: 12px;
  }

  .nav-cat:hover {
    background: rgba(255,255,255,0.15);
  }

  .ad-sidebar { width: 100%; }
  .ad-incontent { max-width: 100%; }

  .section { padding: 40px 0; }
  .section-title { margin-bottom: 24px; }

  .hero { padding: 48px 16px 56px; }
  .hero-title { font-size: 28px; }
  .hero-sub { font-size: 15px; }
  .hero-cta { font-size: 16px; padding: 14px 28px; }

  .cat-hero-emoji { font-size: 48px; }
  .page-title { font-size: 24px; }

  .footer-cats { gap: 4px; }
  .footer-cats a { font-size: 12px; padding: 4px 10px; }
}

/* ═══════════════════════════════════════
   PRINT STYLES
   ═══════════════════════════════════════ */

@media print {
  .site-header, .site-footer, .breadcrumb, .print-cta,
  .btn-print, .ad-slot, .detail-info, .similar-section,
  .sidebar { display: none !important; }
  .detail-layout { display: block !important; }
  .detail-image-wrap {
    width: 100% !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
  }
  .coloriage-image {
    width: 100% !important;
    max-width: 100% !important;
    page-break-inside: avoid;
  }
  body { margin: 0; padding: 0; background: white; }
  main, .container, .coloriage-detail { padding: 0 !important; margin: 0 !important; }
}
