:root {
  --bg: #f7f2ff;
  --bg-alt: #eef6ff;
  --text: #4a3860;
  --muted: #8878a0;
  --chillou: #7ab8e8;
  --pillou: #f08cb0;
  --accent-3: #ffd97a;
  --surface: #ffffff;
  --line: rgba(160, 130, 200, 0.2);
  --shadow-blue: 0 12px 32px rgba(122, 184, 232, 0.22);
  --shadow-pink: 0 12px 32px rgba(240, 140, 176, 0.22);
  --shadow: 0 14px 32px rgba(200, 160, 220, 0.18);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 8%, rgba(122,184,232,0.22), transparent 34%),
    radial-gradient(circle at 90% 85%, rgba(240,140,176,0.22), transparent 38%),
    radial-gradient(circle at 50% 100%, rgba(255,217,122,0.18), transparent 34%),
    linear-gradient(180deg, #fdf8ff 0%, #eef6ff 100%);
  font-family: "Fredoka", "Trebuchet MS", sans-serif;
  line-height: 1.55;
  position: relative;
}

/* Grain doux */
.grain {
  position: fixed; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(rgba(255,255,255,0.8) 1px, transparent 1px),
    radial-gradient(rgba(220,210,240,0.5) 1px, transparent 1px);
  background-position: 0 0, 10px 10px;
  background-size: 20px 20px;
  opacity: 0.4;
}

.container {
  width: min(1120px, calc(100% - 2.4rem));
  margin: 0 auto;
}

/* Header */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 10;
  margin-top: 0.8rem;
  background: rgba(255,255,255,0.72);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.7rem 1.4rem;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.logo {
  text-decoration: none;
  font-family: "Baloo 2", sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  background: linear-gradient(90deg, var(--chillou), var(--pillou));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav { display: flex; gap: 1.4rem; }
.nav a {
  text-decoration: none; color: var(--text);
  font-weight: 600; font-size: 0.95rem;
  transition: color 200ms;
}
.nav a:hover { color: var(--pillou); }

.cta, .btn-primary, .btn-ghost {
  text-decoration: none; display: inline-block;
  border-radius: 999px;
  transition: transform 220ms ease, box-shadow 220ms ease;
  font-family: "Fredoka", sans-serif; font-weight: 600;
}
.cta {
  padding: 0.55rem 1.1rem; font-size: 0.9rem;
  background: linear-gradient(120deg, var(--chillou), var(--pillou));
  color: #fff; border: none;
  box-shadow: 0 4px 14px rgba(180,140,210,0.3);
}

/* Hero */
.hero {
  padding: 4rem 0 3rem;
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(300px,440px);
  gap: 2rem; align-items: center;
  animation: rise 700ms ease-out both;
}

.hero-copy { max-width: 58ch; }

.tag {
  display: inline-flex; margin: 0 0 1rem;
  padding: 0.28rem 0.85rem; border-radius: 999px;
  font-size: 0.78rem; letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #b05878;
  background: rgba(240,140,176,0.15);
  border: 1px dashed rgba(240,140,176,0.4);
}

h1, h2 { margin: 0; font-family: "Baloo 2", sans-serif; line-height: 1.08; }
h1 {
  font-size: clamp(2.2rem, 6vw, 4.4rem);
  color: var(--text);
  max-width: 14ch;
}

/* Gradient sur le h1 */
h1 span.c { background: linear-gradient(90deg, var(--chillou), var(--pillou)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.intro { margin: 1.2rem 0 0; color: var(--muted); font-size: 1.05rem; }

.hero-actions { display: flex; gap: 0.8rem; margin-top: 2rem; flex-wrap: wrap; }

.btn-primary {
  padding: 0.8rem 1.5rem;
  background: linear-gradient(120deg, var(--chillou), var(--pillou));
  color: #fff;
  box-shadow: 0 6px 18px rgba(180,140,210,0.32);
}
.btn-ghost {
  padding: 0.8rem 1.5rem;
  color: var(--text);
  border: 1.5px solid var(--line);
  background: rgba(255,255,255,0.8);
}
.btn-primary:hover, .btn-ghost:hover, .cta:hover {
  transform: translateY(-3px) scale(1.02);
}

/* Mascot card */
.mascot-card {
  border: 1.5px solid var(--line);
  border-radius: 2rem;
  background: linear-gradient(160deg, #ffffff, #f0f7ff);
  box-shadow: var(--shadow-blue);
  padding: 1.2rem;
  position: relative;
  overflow: visible;
}
.mascot-card::before {
  content: '';
  position: absolute; inset: -2px;
  border-radius: 2rem;
  background: linear-gradient(135deg, rgba(122,184,232,0.18), rgba(240,140,176,0.18));
  z-index: -1;
}
.mascot { width: 100%; height: auto; display: block; border-radius: 1.4rem; }
.mascot-card:hover .mascot { transform: scale(1.02); transition: transform 300ms ease; }

/* Services */
.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1.1rem; padding: 1.4rem 0 3.2rem;
}
.services article {
  border: 1.5px solid var(--line); border-radius: 1.4rem;
  padding: 1.3rem 1.2rem;
  background: rgba(255,255,255,0.88);
  box-shadow: var(--shadow);
  animation: rise 700ms ease-out both;
  transition: transform 220ms, box-shadow 220ms;
}
.services article:hover { transform: translateY(-4px); box-shadow: var(--shadow-pink); }
.services article:nth-child(1) { border-top: 3px solid var(--chillou); }
.services article:nth-child(2) { border-top: 3px solid var(--pillou); }
.services article:nth-child(3) { border-top: 3px solid var(--accent-3); }
.services h2 { font-size: 1.15rem; color: var(--text); }
.services p { margin: 0.6rem 0 0; color: var(--muted); }

/* Highlight */
.highlight { padding: 0 0 3rem; }
.card {
  border-radius: 1.8rem;
  border: 1.5px solid var(--line);
  background: linear-gradient(150deg, #ffffff, #f5f0ff);
  padding: clamp(1.4rem, 3vw, 2.2rem);
  box-shadow: var(--shadow);
}
.card p { margin: 0.9rem 0 0; color: var(--muted); max-width: 65ch; }

/* Contact */
.contact { text-align: center; padding: 1rem 0 5rem; }
.contact h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  background: linear-gradient(90deg, var(--chillou), var(--pillou));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.contact p { margin: 0.8rem auto 1.6rem; color: var(--muted); max-width: 52ch; }
.contact .btn-primary {
  background: linear-gradient(130deg, var(--pillou), #e87ab0);
  font-size: 1rem;
}

/* Déco nuage en bas du hero */
.cloud-deco {
  width: 100%; text-align: center;
  margin: -1rem 0 1rem;
  opacity: 0.55;
  font-size: 3rem; letter-spacing: -0.5rem;
  user-select: none;
}

/* Animations */
@keyframes rise {
  from { opacity:0; transform: translateY(14px); }
  to   { opacity:1; transform: translateY(0); }
}
@keyframes floaty {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-5px); }
}
.mascot-card { animation: floaty 5s ease-in-out infinite; }

/* Responsive */
@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; gap: 1.2rem; }
  .mascot-card { max-width: 420px; margin: 0 auto; animation: none; }
  .services { grid-template-columns: 1fr; }
  .site-header { border-radius: 1rem; flex-wrap: wrap; gap: 0.6rem; }
}
@media (max-width: 620px) {
  .nav { width: 100%; justify-content: space-between; font-size: 0.9rem; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
}
