/* =========================================================
   CRÉA-KID — Design system
   Pastels chaleureux + fond crème + arcs-en-ciel
   Mobile-first, accueillant, lisible
   ========================================================= */

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

:root {
  /* Palette — pastels chaleureux */
  --peach:        #F5A56C;
  --peach-soft:   #FBD9BD;
  --peach-deep:   #E8884A;
  --coral:        #F5B5B0;
  --coral-soft:   #FBE0DD;
  --coral-deep:   #E8918B;
  --mint:         #9FE0B7;
  --mint-soft:    #D9F2E2;
  --mint-deep:    #6FC68E;
  --gold:         #F8CC7A;
  --gold-soft:    #FCE8C0;
  --gold-deep:    #E8B355;

  /* Neutrals — fond crème chaud */
  --cream:        #FBF6EE;
  --cream-warm:   #F5EEE0;
  --paper:        #FFFFFF;
  --ink:          #3D2E2A;       /* texte principal — brun chaud */
  --ink-soft:     #6B5650;       /* secondaire */
  --ink-mute:     #9C857F;       /* tertiaire */
  --line:         #EADFCC;

  /* Effects */
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 40px;
  --shadow-sm: 0 2px 6px rgba(61,46,42,0.06);
  --shadow-md: 0 6px 20px rgba(61,46,42,0.08);
  --shadow-warm: 0 10px 30px rgba(232,136,74,0.18);

  /* Type */
  --font-display: 'Fredoka', system-ui, sans-serif;
  --font-script: 'Caveat', cursive;
  --font-body: 'Nunito', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  /* Quadrillage subtil */
  background-image:
    linear-gradient(to right, rgba(232,179,85,0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(232,179,85,0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--peach-deep); text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2rem, 6vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 4.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.5rem); }
p  { text-wrap: pretty; }

.script {
  font-family: var(--font-script);
  font-weight: 600;
  color: var(--peach-deep);
}

/* =========================================================
   Layout
   ========================================================= */
.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 20px;
}

section { padding-block: clamp(48px, 8vw, 96px); }

/* =========================================================
   Topbar
   ========================================================= */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--cream) 92%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  max-width: 1180px;
  margin-inline: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { text-decoration: none; }

.brand-mark {
  width: 42px;
  height: 30px;
  flex-shrink: 0;
}

.nav-links {
  display: none;
  gap: 4px;
  align-items: center;
}

.nav-links a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.18s, color 0.18s;
}
.nav-links a:hover { background: var(--peach-soft); color: var(--peach-deep); }
.nav-links a.active { background: var(--peach); color: white; }
.nav-links a.active:hover { background: var(--peach-deep); color: white; }

.nav-cta {
  display: none;
}

/* Tablette : bouton CTA visible, poussé à droite beside le hamburger */
@media (min-width: 768px) {
  .nav-cta { display: inline-flex; margin-left: auto; }
}

.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 999px;
  cursor: pointer;
  color: var(--ink);
}

@media (min-width: 860px) {
  .nav-links { display: flex; }
  .menu-btn { display: none; }
  .nav-cta { margin-left: 0; }
}

/* Mobile drawer */
.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--paper);
  padding: 14px 20px 22px;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.mobile-nav a:hover, .mobile-nav a.active { background: var(--peach-soft); color: var(--peach-deep); }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s, background 0.2s;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--peach);
  color: white;
  box-shadow: 0 6px 0 var(--peach-deep);
}
.btn-primary:hover { background: var(--peach-deep); box-shadow: 0 4px 0 var(--peach-deep); }

.btn-mint {
  background: var(--mint);
  color: #1a4a2e;
  box-shadow: 0 6px 0 var(--mint-deep);
}
.btn-mint:hover { background: var(--mint-deep); color: white; box-shadow: 0 4px 0 #4ea672; }

.btn-ghost {
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--line);
  box-shadow: 0 4px 0 var(--line);
}
.btn-ghost:hover { border-color: var(--peach); color: var(--peach-deep); box-shadow: 0 4px 0 var(--peach); }

.btn-sm { padding: 10px 18px; font-size: 0.9rem; box-shadow: 0 4px 0 var(--peach-deep); }
.btn-sm.btn-mint { box-shadow: 0 4px 0 var(--mint-deep); }
.btn-sm.btn-ghost { box-shadow: 0 4px 0 var(--line); }

/* =========================================================
   Cards & badges
   ========================================================= */
.card {
  background: var(--paper);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-script);
  font-size: 1.5rem;
  color: var(--peach-deep);
  font-weight: 700;
}
.eyebrow::before, .eyebrow::after {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  opacity: 0.5;
}

.tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: var(--font-display);
  background: var(--coral-soft);
  color: var(--coral-deep);
  letter-spacing: 0.02em;
}
.tag.tag-mint { background: var(--mint-soft); color: var(--mint-deep); }
.tag.tag-gold { background: var(--gold-soft); color: var(--gold-deep); }
.tag.tag-peach { background: var(--peach-soft); color: var(--peach-deep); }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  margin-top: 60px;
  background: linear-gradient(180deg, var(--cream-warm), #F0E5CE);
  padding: 56px 0 28px;
  border-top: 1px dashed var(--peach);
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0; right: 0;
  height: 12px;
  background:
    radial-gradient(circle at 6px 12px, var(--peach) 6px, transparent 6px) 0 0/24px 24px;
  opacity: 0.5;
}

.footer-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

.footer-grid h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0 0 14px;
  color: var(--ink);
}
.footer-grid p, .footer-grid li, .footer-grid a {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.65;
}
.footer-grid ul { padding: 0; margin: 0; list-style: none; }
.footer-grid li { padding: 4px 0; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: var(--peach-deep); text-decoration: underline; }

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.footer-brand-mark { width: 70px; height: 50px; }
.footer-brand strong {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--ink);
}

.socials {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
  text-decoration: none;
}
.social-pill:hover { border-color: var(--peach); color: var(--peach-deep); text-decoration: none; }

.footer-base {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px dashed var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--ink-mute);
}
.footer-base .heart { color: var(--coral-deep); }

/* =========================================================
   Decorative SVGs (used as ::before/::after via inline)
   ========================================================= */
.deco-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 10px 0 18px;
}

/* Page section header */
.section-head {
  text-align: center;
  margin-bottom: 40px;
}
.section-head .eyebrow { margin-bottom: 8px; }

/* =========================================================
   Generic helpers
   ========================================================= */
.text-center { text-align: center; }
.flow > * + * { margin-top: 1em; }
.muted { color: var(--ink-soft); }

/* Placeholder image — striped */
.ph {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  background:
    repeating-linear-gradient(45deg,
      var(--cream-warm) 0 14px,
      var(--paper) 14px 28px);
  border: 1px dashed var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.78rem;
  color: var(--ink-mute);
  padding: 20px;
}

/* Page hero spacer */
.page-hero {
  padding-top: clamp(40px, 6vw, 70px);
  padding-bottom: clamp(28px, 5vw, 50px);
  text-align: center;
}
.page-hero h1 { margin-bottom: 8px; }
.page-hero .subtitle {
  color: var(--ink-soft);
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  max-width: 640px;
  margin: 0 auto;
}

/* Inline rainbow header decoration */
.mini-rainbow {
  display: inline-block;
  height: 22px;
}

/* =========================================================
   Home gallery carousel wrap (index.html)
   ========================================================= */
.home-carousel-wrap {
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 16/9;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  margin-top: 28px;
}

/* =========================================================
   Section avis — Trustindex widget (index.html)
   ========================================================= */
.section-avis {
  background: var(--paper);
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
}

.avis-widget {
  max-width: 1200px;
  margin: 32px auto 0;
  min-height: 56px;
  position: relative;
}

.avis-loading {
  text-align: center;
  color: var(--ink-mute);
  font-size: 0.9rem;
  padding: 20px 0 4px;
  margin: 0;
}

.avis-fallback {
  text-align: center;
  padding: 12px 0 4px;
}
.avis-fallback p {
  color: var(--ink-soft);
  margin: 0 0 16px;
}

/* =========================================================
   Carousel — Aire de Jeux (concept.html)
   ========================================================= */
.carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.42s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
}

.carousel-slide picture,
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(234, 223, 204, 0.7);
  box-shadow: 0 3px 10px rgba(61, 46, 42, 0.14);
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--ink);
  transition: background 0.18s, transform 0.2s, box-shadow 0.18s, color 0.18s;
  z-index: 2;
  padding: 0;
}
.carousel-btn:hover {
  background: var(--peach-soft);
  color: var(--peach-deep);
  box-shadow: 0 4px 14px rgba(232, 136, 74, 0.28);
  transform: translateY(-50%) scale(1.1);
}
.carousel-btn:active { transform: translateY(-50%) scale(0.95); }
.carousel-btn:focus-visible {
  outline: 2px solid var(--peach);
  outline-offset: 2px;
}

.carousel-prev { left: 10px; }
.carousel-next { right: 10px; }

.carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 2;
  padding: 0;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: 0;
  cursor: pointer;
  padding: 0;
  transition: background 0.22s, transform 0.22s;
  flex-shrink: 0;
}
.carousel-dot.active,
.carousel-dot[aria-selected="true"] {
  background: var(--peach);
  transform: scale(1.35);
}
.carousel-dot:hover:not(.active) { background: rgba(255, 255, 255, 0.82); }
.carousel-dot:focus-visible {
  outline: 2px solid var(--peach);
  outline-offset: 2px;
}
