/* style.css — landing KID AI.
   Look enfant 7–15 ans : joyeux, coloré, arrondi, MAIS moderne (pas « bébé »). */
:root {
  --violet: #6c5ce7;
  --violet-d: #5847d6;
  --coral: #ff7a7a;
  --sun: #ffc44d;
  --mint: #37d0a0;
  --sky: #46a8ff;
  --ink: #2a2745;
  --muted: #6d6a86;
  --card: #ffffff;
  --radius: 28px;
  --shadow: 0 18px 40px rgba(108, 92, 231, 0.12);
  font-size: 18px;
}
* { box-sizing: border-box; }
html, body { overflow-x: hidden; }
body {
  margin: 0;
  font-family: system-ui, "Segoe UI", Roboto, -apple-system, sans-serif;
  color: var(--ink);
  line-height: 1.55;
  background:
    radial-gradient(1000px 500px at 85% -5%, #fff2d9 0%, transparent 60%),
    radial-gradient(900px 500px at -5% 10%, #ffe3e3 0%, transparent 55%),
    linear-gradient(180deg, #fbf9ff 0%, #f2f6ff 100%);
  min-height: 100vh;
}

/* Bulles décoratives flottantes en fond */
.blob { position: fixed; border-radius: 50%; filter: blur(2px); opacity: .5; z-index: 0; pointer-events: none; }
.blob.b1 { width: 120px; height: 120px; background: var(--sun);  top: 18%; left: 6%; }
.blob.b2 { width: 90px;  height: 90px;  background: var(--mint); top: 62%; left: 12%; }
.blob.b3 { width: 140px; height: 140px; background: var(--coral); top: 30%; right: 8%; }
.blob.b4 { width: 80px;  height: 80px;  background: var(--sky);  top: 72%; right: 14%; }

/* Header */
header {
  position: relative; z-index: 2;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.1rem 1.6rem; max-width: 1100px; margin: 0 auto;
}
header .brand { font-weight: 900; font-size: 1.5rem; color: var(--violet); letter-spacing: -.5px; }
header .brand::before { content: "✨ "; }
nav { display: flex; align-items: center; gap: 1rem; }
nav a { text-decoration: none; color: var(--ink); font-weight: 700; }

/* Boutons pilule */
.btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--violet), #8b7bff);
  color: #fff; padding: .95rem 1.8rem; border-radius: 999px;
  text-decoration: none; font-weight: 800; font-size: 1.05rem;
  box-shadow: 0 10px 22px rgba(108, 92, 231, .35);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 14px 28px rgba(108, 92, 231, .45); }

/* Contenu */
main { position: relative; z-index: 2; }
.hero {
  text-align: center; max-width: 820px; margin: 0 auto; padding: 3rem 1.5rem 2rem;
}
.mascot {
  width: 130px; height: 130px; margin: 0 auto 1.2rem; border-radius: 50%;
  display: grid; place-items: center; font-size: 4rem;
  background: linear-gradient(135deg, #fff, #f0ecff);
  box-shadow: var(--shadow); border: 4px solid #fff;
  animation: bob 3s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.hero h1 { font-size: clamp(2.6rem, 7vw, 4rem); margin: .2rem 0; color: var(--violet); letter-spacing: -1.5px; }
.hero p.sub { font-size: 1.35rem; color: var(--muted); margin: .4rem auto 1.6rem; max-width: 620px; }

/* Grille de features */
.features {
  display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  max-width: 1000px; margin: 2rem auto; padding: 0 1.5rem;
}
.card {
  background: var(--card); border-radius: var(--radius); padding: 1.8rem 1.5rem;
  box-shadow: var(--shadow); text-align: center;
  transition: transform .15s ease;
}
.card:hover { transform: translateY(-6px); }
.card .ico {
  width: 66px; height: 66px; margin: 0 auto 1rem; border-radius: 20px;
  display: grid; place-items: center; font-size: 2rem;
}
.card:nth-child(1) .ico { background: #eafaf3; }
.card:nth-child(2) .ico { background: #eaf3ff; }
.card:nth-child(3) .ico { background: #fff3e0; }
.card h2 { font-size: 1.3rem; margin: 0 0 .4rem; }
.card p { color: var(--muted); margin: 0; font-size: 1rem; }

/* Téléchargements */
.download { max-width: 900px; margin: 2.5rem auto; padding: 2rem 1.5rem; text-align: center; }
.download h2 { font-size: 1.9rem; }
.downloads { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 1.2rem; }
.downloads a {
  flex: 0 1 260px; padding: 1.1rem 1.3rem; border-radius: 20px;
  background: #fff; border: 2px solid #eae6ff; text-decoration: none;
  color: var(--violet); font-weight: 800; box-shadow: var(--shadow);
  transition: transform .12s ease;
}
.downloads a:hover { transform: translateY(-3px); border-color: var(--violet); }

/* Footer */
footer {
  position: relative; z-index: 2; text-align: center; padding: 2.5rem 1.5rem;
  color: var(--muted);
}
footer a { color: var(--muted); margin: 0 .7rem; text-decoration: none; font-weight: 600; }
footer a:hover { color: var(--violet); }

/* Modale de contact */
.modal-backdrop {
  display: none; position: fixed; inset: 0; z-index: 50;
  background: rgba(42, 39, 69, .45); backdrop-filter: blur(3px);
  align-items: center; justify-content: center; padding: 1rem;
}
.modal {
  position: relative; background: #fff; border-radius: var(--radius);
  padding: 2rem 1.8rem; width: 100%; max-width: 460px; box-shadow: var(--shadow);
}
.modal h2 { margin: 0 0 1rem; color: var(--violet); }
.modal-close {
  position: absolute; top: 1rem; right: 1rem; border: none; background: #f2f0fb;
  width: 38px; height: 38px; border-radius: 50%; font-size: 1rem; cursor: pointer; color: var(--ink);
}
.contact-form { display: flex; flex-direction: column; gap: .8rem; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: .9rem 1rem; border: 2px solid #eae6ff; border-radius: 16px;
  font: inherit; font-size: 1rem;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--violet); }
.contact-form .btn { border: none; cursor: pointer; margin-top: .3rem; }
.contact-status { margin: .3rem 0 0; font-weight: 700; min-height: 1.2em; }

/* Pages légales */
.legal { max-width: 780px; margin: 0 auto; padding: 2rem 1.5rem; text-align: left; }
.legal h1 { color: var(--violet); }
.legal h2 { margin-top: 1.6rem; }
