/* ===== Variables & reset ===== */
:root {
  --orange: #ff7a1a;
  --orange-dark: #e8620a;
  --pink: #ff4d8d;
  --purple: #7b2ff7;
  --yellow: #ffcf3f;
  --ink: #2a1f3d;
  --muted: #6b6280;
  --bg: #fffaf3;
  --white: #ffffff;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 18px 40px -18px rgba(80, 40, 120, 0.35);
  --shadow-sm: 0 8px 24px -12px rgba(80, 40, 120, 0.3);
  --grad: linear-gradient(135deg, var(--orange) 0%, var(--pink) 55%, var(--purple) 100%);
  --font-head: "Fredoka", "Nunito", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 12px 26px -10px rgba(255, 77, 141, 0.6);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.75);
  color: var(--ink);
  border-color: rgba(123, 47, 247, 0.2);
}
.btn-outline {
  background: transparent;
  color: var(--orange-dark);
  border-color: var(--orange);
}
.btn-outline:hover { background: var(--orange); color: #fff; }
.btn-block { width: 100%; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 250, 243, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(123, 47, 247, 0.08);
  transition: box-shadow 0.2s ease;
}
.site-header.scrolled { box-shadow: 0 6px 20px -12px rgba(80, 40, 120, 0.4); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 600;
}
.logo-emoji { font-size: 1.5rem; }
.logo-text strong { color: var(--orange-dark); }
.nav { display: flex; align-items: center; gap: 6px; }
.nav-link {
  font-family: var(--font-head);
  font-weight: 500;
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--ink);
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-link:hover { background: rgba(255, 122, 26, 0.12); color: var(--orange-dark); }
.nav-cta {
  background: var(--grad);
  color: #fff !important;
  margin-left: 6px;
}
.nav-cta:hover { opacity: 0.92; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.burger span {
  width: 26px;
  height: 3px;
  background: var(--ink);
  border-radius: 3px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 96px;
  text-align: center;
}
.hero-blobs { position: absolute; inset: 0; z-index: 0; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.5;
}
.blob-1 { width: 320px; height: 320px; background: var(--orange); top: -80px; left: -60px; }
.blob-2 { width: 300px; height: 300px; background: var(--pink); top: 40px; right: -70px; }
.blob-3 { width: 260px; height: 260px; background: var(--purple); bottom: -100px; left: 40%; }
.hero-inner { position: relative; z-index: 1; }
.hero-kicker {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--purple);
  background: rgba(123, 47, 247, 0.1);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.5px;
}
.hero-title span {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-subtitle {
  max-width: 620px;
  margin: 22px auto 0;
  font-size: 1.15rem;
  color: var(--muted);
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 34px;
}
.hero-badges {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
}
.badge {
  background: var(--white);
  border: 1px solid rgba(123, 47, 247, 0.12);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: var(--shadow-sm);
}

/* ===== Sections ===== */
.section { padding: 84px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-kicker {
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.85rem;
  color: var(--pink);
  margin-bottom: 10px;
}
.section-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1.1;
}
.section-lead { margin-top: 14px; color: var(--muted); font-size: 1.1rem; }

/* ===== Machines cards ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(123, 47, 247, 0.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 26px 50px -20px rgba(80, 40, 120, 0.45); }
.card-visual {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.card:hover .card-visual img { transform: scale(1.05); }
.card-visual--popcorn { background: linear-gradient(135deg, #fff0d6, #ffd59e); }
.card-visual--candy { background: linear-gradient(135deg, #ffe0ef, #ffb3d4); }
.card-visual--photo { background: linear-gradient(135deg, #e9defc, #c4a9fb); }
.card-emoji { font-size: 4.6rem; filter: drop-shadow(0 8px 10px rgba(0,0,0,0.12)); }
.card-body { padding: 26px 24px 28px; display: flex; flex-direction: column; flex: 1; }
.card-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.35rem;
  margin-bottom: 10px;
}
.card-text { color: var(--muted); margin-bottom: 16px; }
.card-list { margin-bottom: 22px; display: grid; gap: 8px; }
.card-list li { position: relative; padding-left: 26px; font-weight: 600; font-size: 0.95rem; }
.card-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #fff;
  background: var(--grad);
  width: 18px; height: 18px;
  border-radius: 50%;
  font-size: 0.7rem;
  display: flex; align-items: center; justify-content: center;
  top: 4px;
}
.card .btn { margin-top: auto; }

/* ===== Pourquoi / features ===== */
.pourquoi { background: linear-gradient(180deg, #fff, #fef3ff); }
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.feature {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(123, 47, 247, 0.06);
  transition: transform 0.2s ease;
}
.feature:hover { transform: translateY(-4px); }
.feature-icon {
  font-size: 2.4rem;
  display: inline-block;
  margin-bottom: 12px;
}
.feature h3 { font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 0.95rem; }

/* ===== Steps ===== */
.steps-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 30px 22px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(123, 47, 247, 0.06);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 16px;
  box-shadow: 0 10px 20px -10px rgba(255, 77, 141, 0.7);
}
.step h3 { font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 0.95rem; }

/* ===== Zones desservies ===== */
.zones { background: linear-gradient(180deg, #fff, #fff6ec); }
.container--narrow { max-width: 820px; }
.zones-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.zones-list li {
  background: var(--white);
  border: 1px solid rgba(123, 47, 247, 0.12);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
}
.zones-list li::before { content: "📍 "; }

/* ===== FAQ ===== */
.faq-list { display: grid; gap: 14px; }
.faq-item {
  background: var(--white);
  border: 1px solid rgba(123, 47, 247, 0.08);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 18px 22px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--purple);
  transition: transform 0.2s ease;
  line-height: 1;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 22px 20px; color: var(--muted); }
.faq-item a { color: var(--orange-dark); font-weight: 700; }

/* ===== Contact ===== */
.contact { background: linear-gradient(180deg, #fef3ff, #fff6ec); }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: start;
}
.contact-info .section-title { text-align: left; }
.contact-info .section-kicker { text-align: left; }
.contact-lead { color: var(--muted); font-size: 1.1rem; margin-top: 14px; }
.contact-list { margin-top: 26px; display: grid; gap: 14px; }
.contact-list li { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.contact-list span { font-size: 1.3rem; }
.contact-list a:hover { color: var(--orange-dark); }

.contact-form {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(123, 47, 247, 0.06);
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-family: var(--font-head);
  font-weight: 500;
  margin-bottom: 6px;
  font-size: 0.95rem;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 2px solid #eee4f2;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  background: #fdfbff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(123, 47, 247, 0.12);
}
.field textarea { resize: vertical; }
.form-note { margin-top: 14px; font-weight: 600; text-align: center; min-height: 1.4em; }
.form-note.success { color: #1a9e5f; }
.form-note.error { color: #d63b3b; }

/* ===== Footer ===== */
.site-footer {
  background: var(--ink);
  color: #efe9f7;
  padding: 48px 0 30px;
  text-align: center;
}
.footer-inner { display: grid; gap: 16px; justify-items: center; }
.logo--footer { color: #fff; }
.logo--footer .logo-text strong { color: var(--yellow); }
.footer-tagline { color: #c6bcd8; max-width: 460px; }
.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; }
.footer-nav a { color: #d9d0ea; font-weight: 600; transition: color 0.2s ease; }
.footer-nav a:hover { color: var(--yellow); }
.footer-copy { color: #9d92b4; font-size: 0.9rem; margin-top: 8px; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .features, .steps-list { grid-template-columns: 1fr 1fr; }
  .contact-inner { grid-template-columns: 1fr; }
  .contact-info .section-title, .contact-info .section-kicker { text-align: center; }
  .contact-info { text-align: center; }
  .contact-list { justify-items: center; }
}

@media (max-width: 720px) {
  .nav {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    gap: 4px;
    background: var(--bg);
    padding: 16px 24px 24px;
    border-bottom: 1px solid rgba(123, 47, 247, 0.1);
    box-shadow: var(--shadow);
    transform: translateY(-140%);
    transition: transform 0.3s ease;
  }
  .nav.open { transform: translateY(0); }
  .nav-link { width: 100%; }
  .nav-cta { margin-left: 0; }
  .burger { display: flex; }
}

@media (max-width: 560px) {
  .cards, .features, .steps-list { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .hero { padding: 60px 0 72px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .btn:hover, .card:hover, .feature:hover, .step:hover { transform: none; }
}
