:root {
  --ink: #1a1236;
  --muted: #4a4560;
  --violet: #4f25ff;
  --card: #f0f0f0;
  --bg: #fff;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

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

body {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  padding: 24px 24px 0;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ---------- Carte ---------- */
.card {
  position: relative;
  flex: 1;
  min-height: 640px;
  background: var(--card);
  border-radius: 28px;
  padding: 32px 40px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

.top {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  position: relative;
  z-index: 2;
}

.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; }
.logo {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 12px;
  background: #d4f25a; font-weight: 800; font-size: 17px;
  transition: transform .5s var(--ease);
}
.brand:hover .logo { transform: rotate(-10deg) scale(1.08); }

.contact { display: flex; align-items: center; gap: 26px; font-size: 15px; font-weight: 500; }

.link { position: relative; }
.link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1.5px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease);
}
.link:hover::after { transform: scaleX(1); transform-origin: left; }

.btn {
  display: inline-block; border-radius: 10px; font-weight: 600; font-size: 15px;
  padding: 14px 22px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--violet); color: #fff; }
.btn-primary:hover { box-shadow: 0 10px 24px -10px rgba(26, 18, 54, .35); }
.btn-ghost { background: #fff; font-size: 16px; padding: 18px 28px; position: relative; z-index: 2; }
.btn-ghost:hover { box-shadow: 0 12px 28px -12px rgba(26, 18, 54, .25); }

/* ---------- Hero ---------- */
.hero {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 80px 0 60px;
  position: relative; z-index: 2;
}

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border-radius: 999px; padding: 7px 14px;
  font-size: 13.5px; font-weight: 500; margin-bottom: 30px;
  box-shadow: 0 0 0 1px rgba(26, 18, 54, .06);
}
.badge .dot { --c: #f5a300; animation: pulse 2s ease-in-out infinite; }

.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); display: inline-block; flex: none; }

h1 {
  font-size: clamp(38px, 5.2vw, 75px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
}
h1 .line { display: block; }
.accent {
  color: var(--violet);
  white-space: nowrap;
  background: linear-gradient(currentColor, currentColor) left 100% / 0 3px no-repeat;
  transition: background-size .5s var(--ease);
}
.accent:hover { background-size: 100% 3px; }

.lead { margin-top: 26px; font-size: 19px; line-height: 1.55; color: var(--muted); }

/* ---------- Pastilles flottantes ---------- */
.pills { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.pill {
  position: absolute;
  padding: 10px 20px; border-radius: 999px;
  font-weight: 700; font-size: 22px; letter-spacing: -0.01em;
  border: 1px solid rgba(26, 18, 54, .08);
  translate: var(--px, 0) var(--py, 0);
  transition: translate .8s var(--ease);
}
.pill-site   { left: 10%;  top: 21%; background: #ffe48c; rotate: -3deg; }
.pill-app    { right: 9%;  top: 20%; background: #d9f56b; rotate: 4deg; font-size: 25px; }
.pill-soon   { left: 12.5%; top: 59%; background: #ffc690; rotate: 3deg; }
.pill-photos { right: 10%; top: 57%; background: #ffbadf; rotate: 4deg; }

/* flottement doux, chaque pastille avec sa phase */
.pill { animation: float 6s ease-in-out infinite; }
.pill-app    { animation-duration: 7s; animation-delay: -2s; }
.pill-soon   { animation-duration: 6.5s; animation-delay: -4s; }
.pill-photos { animation-duration: 5.5s; animation-delay: -1s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: .3; }
}

/* ---------- Footer ---------- */
.foot {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 16px; font-size: 13.5px; font-weight: 600; flex-wrap: wrap;
}
.services { list-style: none; padding: 0; display: flex; gap: 8px 36px; flex-wrap: wrap; }
.services li { display: flex; align-items: center; gap: 8px; }
.links { display: flex; align-items: center; gap: 20px; font-size: 14px; }
.links small { font-size: 13px; font-weight: 400; color: #6b6880; }

/* ---------- Apparition au chargement ---------- */
.reveal { opacity: 0; }
.is-loaded .reveal { animation: rise .9s var(--ease) calc(var(--i, 0) * 90ms) both; }
@keyframes rise {
  from { opacity: 0; translate: 0 24px; }
  to   { opacity: 1; translate: 0 0; }
}
.pill { opacity: 0; scale: .6; }
.is-loaded .pill {
  opacity: 1; scale: 1;
  transition: opacity .8s var(--ease), scale .9s cubic-bezier(.34, 1.56, .64, 1), translate .8s var(--ease);
  transition-delay: calc(400ms + var(--i, 0) * 110ms), calc(400ms + var(--i, 0) * 110ms), 0s;
}

/* ---------- Curseur point noir ---------- */
@media (pointer: fine) {
  .has-cursor, .has-cursor * { cursor: none !important; }
  .cursor {
    position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none;
    width: 10px; height: 10px; margin: -5px 0 0 -5px;
    border-radius: 50%; background: #000;
    transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), opacity .3s;
    opacity: 0;
  }
  .cursor.is-visible { opacity: 1; }
  .cursor.is-hover { width: 44px; height: 44px; margin: -22px 0 0 -22px; background: rgba(0, 0, 0, .12); backdrop-filter: invert(1); }
}
@media (pointer: coarse) { .cursor { display: none; } }

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  body { padding: 12px 12px 0; }
  .card { padding: 20px 16px 24px; border-radius: 22px; }
  .btn-primary { padding: 11px 16px; font-size: 14px; }
  .lead { font-size: 16px; }
  .lead br { display: none; }
  .hero { flex: 0; padding: 72px 0 28px; }
  /* étiquettes sous le texte, dans le flux */
  .pills {
    position: static; order: 1; flex: 1;
    display: flex; flex-wrap: wrap; justify-content: center; align-content: flex-start;
    gap: 14px 10px; max-width: 340px; padding-bottom: 40px;
  }
  .pill { position: static; font-size: 16px !important; padding: 7px 14px; }
  .btn-ghost { order: 2; font-size: 14px; padding: 14px 18px; }
  .foot { flex-direction: column; gap: 14px; padding: 24px 8px 28px; text-align: center; }
  .services { justify-content: center; gap: 8px 20px; }
  .links { flex-wrap: wrap; justify-content: center; gap: 8px 22px; }
  .links small { flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .pill { opacity: 1; scale: 1; }
}
