/* ===== Ideon landing — Apple-style, thème vert de l'app ===== */
:root {
  --green: #16a34a;
  --green-d: #15803d;
  --green-l: #22c55e;
  --green-04: rgba(22, 163, 74, 0.06);
  --ink: #0c0f0d;
  --ink-2: #51635a;
  --bg: #ffffff;
  --bg-2: #f5f8f6;
  --line: #e6ece8;
  --radius: 16px;
  --shadow: 0 24px 60px -24px rgba(12, 30, 20, 0.28);
  --maxw: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI",
    Inter, Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
.logo-dot {
  width: 13px; height: 13px; border-radius: 50%;
  background: linear-gradient(135deg, var(--green-l), var(--green-d));
  display: inline-block; box-shadow: 0 0 12px rgba(22, 163, 74, 0.5);
}
.logo-img {
  width: 28px; height: 28px; object-fit: contain; display: inline-block;
  vertical-align: middle; border-radius: 7px;
}

/* ----- Buttons ----- */
.btn {
  --c: var(--green);
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--c); color: #fff; font-weight: 600; font-size: 15px;
  padding: 12px 22px; border-radius: 999px; border: 0; cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.25s, background 0.2s; white-space: nowrap;
  box-shadow: 0 10px 24px -10px rgba(22, 163, 74, 0.7);
}
.btn:hover { transform: translateY(-2px) scale(1.02); background: var(--green-d); box-shadow: 0 16px 30px -10px rgba(22, 163, 74, 0.8); }
.btn:active { transform: translateY(0) scale(0.99); }
.btn--lg { padding: 16px 30px; font-size: 17px; }
.btn--sm { padding: 9px 18px; font-size: 14px; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: none; border: 1px solid var(--line); }
.btn--ghost:hover { background: var(--green-04); color: var(--green-d); border-color: var(--green); }
.btn--white { background: #fff; color: var(--green-d); box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.4); }
.btn--white:hover { background: #f3fff8; }
.ic { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ----- Nav ----- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 14px clamp(16px, 5vw, 48px);
  backdrop-filter: saturate(180%) blur(20px);
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid transparent; transition: border-color 0.3s, background 0.3s;
}
.nav.is-scrolled { border-color: var(--line); }
.nav__brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 19px; letter-spacing: -0.02em; }
.nav__links { display: flex; gap: 26px; margin-left: auto; font-size: 14px; color: var(--ink-2); }
.nav__links a { transition: color 0.2s; }
.nav__links a:hover { color: var(--green); }
.nav .btn { margin-left: 8px; }

/* ----- Hero ----- */
.hero { position: relative; padding: 150px clamp(16px, 5vw, 48px) 60px; overflow: hidden; }
.hero__inner { max-width: var(--maxw); margin: 0 auto; text-align: center; position: relative; z-index: 2; }
.hero__orbs { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.55; animation: float 14s ease-in-out infinite; }
.orb--1 { width: 420px; height: 420px; background: var(--green-l); top: -80px; left: -60px; }
.orb--2 { width: 360px; height: 360px; background: #7bdcab; top: 40px; right: -40px; animation-delay: -4s; }
.orb--3 { width: 300px; height: 300px; background: #c6f6d5; bottom: -120px; left: 40%; animation-delay: -8s; }
@keyframes float { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(30px, -28px) scale(1.06); } 66% { transform: translate(-24px, 18px) scale(0.96); } }
.eyebrow { color: var(--green); font-weight: 600; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 16px; }
.hero__title { font-size: clamp(40px, 7vw, 76px); line-height: 1.04; letter-spacing: -0.03em; font-weight: 700; }
.grad { background: linear-gradient(120deg, var(--green-l), var(--green-d)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__sub { max-width: 620px; margin: 22px auto 0; font-size: clamp(16px, 2vw, 20px); color: var(--ink-2); }
.hero__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }

/* hero window mockup */
.hero__shot { margin-top: 64px; perspective: 1600px; }
.window {
  max-width: 940px; margin: 0 auto; border-radius: 18px; overflow: hidden;
  background: var(--bg); border: 1px solid var(--line); box-shadow: var(--shadow);
  transform: rotateX(8deg); transform-origin: center top; transition: transform 0.6s;
}
.hero__shot:hover .window { transform: rotateX(0deg); }
.window__bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: var(--bg-2); border-bottom: 1px solid var(--line); position: relative; }
.window__bar span { width: 12px; height: 12px; border-radius: 50%; background: #d8dedb; }
.window__bar span:nth-child(1) { background: #ff6058; } .window__bar span:nth-child(2) { background: #ffbd2e; } .window__bar span:nth-child(3) { background: #28c93f; }
.window__title { position: absolute; left: 50%; transform: translateX(-50%); font-size: 13px; color: var(--ink-2); font-weight: 600; }
.window__body { display: grid; grid-template-columns: 220px 1fr; min-height: 340px; text-align: left; }
.mini-side { background: var(--bg-2); border-right: 1px solid var(--line); padding: 16px 12px; font-size: 13.5px; }
.mini-side__item { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 8px; color: var(--ink-2); }
.mini-side__item i { width: 14px; height: 14px; border-radius: 4px; background: #cdd8d2; }
.mini-side__item.is-active { background: var(--green-04); color: var(--green-d); font-weight: 600; }
.mini-side__item.is-active i { background: var(--green); }
.mini-side__sep { height: 1px; background: var(--line); margin: 10px 6px; }
.mini-side__updater { margin-top: 18px; font-size: 12px; color: var(--green-d); background: var(--green-04); border: 1px solid #c6ead4; padding: 8px 10px; border-radius: 8px; text-align: center; }
.mini-main { padding: 28px 30px; }
.mini-doc-title { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 18px; }
.mini-line { height: 11px; border-radius: 6px; background: #eef2f0; margin: 11px 0; }
.w80 { width: 80%; } .w95 { width: 95%; } .w60 { width: 60%; } .w70 { width: 70%; }
.mini-check { display: flex; align-items: center; gap: 10px; margin: 14px 0; color: var(--ink-2); }
.mini-check b { width: 18px; height: 18px; border-radius: 5px; border: 2px solid #cdd8d2; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.mini-check.done b { background: var(--green); border-color: var(--green); color: #fff; }
.mini-check.done { text-decoration: line-through; }

/* ----- Sections ----- */
.sec { padding: clamp(70px, 10vw, 130px) clamp(16px, 5vw, 48px); }
.sec--alt { background: var(--bg-2); }
.sec__head { max-width: 720px; margin: 0 auto 50px; text-align: center; }
.sec__head h2 { font-size: clamp(30px, 4.5vw, 50px); letter-spacing: -0.03em; line-height: 1.08; margin-top: 10px; }
.sec__sub { margin-top: 16px; font-size: clamp(15px, 1.8vw, 19px); color: var(--ink-2); }
.hint { text-align: center; font-size: 13px; color: var(--ink-2); margin-top: 14px; }

/* reveal animation */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ----- Démo éditeur ----- */
.demo { max-width: 820px; margin: 0 auto; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.demo__toolbar { display: flex; align-items: center; gap: 4px; padding: 10px 12px; background: var(--bg-2); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.demo__toolbar button { background: transparent; border: 1px solid transparent; border-radius: 8px; padding: 7px 11px; font-size: 14px; cursor: pointer; color: var(--ink); transition: all 0.15s; }
.demo__toolbar button:hover { background: var(--green-04); color: var(--green-d); border-color: #c6ead4; }
.demo__toolbar button:active, .demo__toolbar button.on { background: var(--green); color: #fff; }
.demo__div { width: 1px; height: 22px; background: var(--line); margin: 0 6px; }
.demo__editor { padding: 28px 32px; min-height: 250px; outline: none; font-size: 16px; }
.demo__editor h1 { font-size: 28px; letter-spacing: -0.02em; margin: 6px 0 12px; }
.demo__editor h2 { font-size: 21px; margin: 14px 0 8px; }
.demo__editor p { margin: 9px 0; }
.demo__editor ul { padding-left: 22px; margin: 9px 0; }
.demo__editor .todo { display: flex; align-items: center; gap: 10px; margin: 9px 0; }
.demo__editor .todo__box { width: 19px; height: 19px; border-radius: 6px; border: 2px solid #cdd8d2; cursor: pointer; flex: none; transition: all 0.15s; }
.demo__editor .todo.done .todo__box { background: var(--green); border-color: var(--green); position: relative; }
.demo__editor .todo.done .todo__box::after { content: "✓"; color: #fff; font-size: 13px; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.demo__editor .todo.done span:last-child { text-decoration: line-through; color: var(--ink-2); }

/* ----- Classics ----- */
.classics { max-width: 760px; margin: 0 auto; }
.classics__tabs { display: flex; gap: 8px; justify-content: center; margin-bottom: 22px; flex-wrap: wrap; }
.cl-tab { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 16px; font-size: 14px; font-weight: 600; cursor: pointer; color: var(--ink-2); transition: all 0.18s; }
.cl-tab:hover { background: var(--green-04); border-color: var(--green); color: var(--green-d); }
.cl-tab.is-active { background: var(--green); border-color: var(--green); color: #fff; }
.classics__panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); min-height: 320px; }
.cl-view { display: none; animation: fade 0.4s; }
.cl-view.is-active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
/* calendar */
.cal__head { text-align: center; font-weight: 700; font-size: 18px; margin-bottom: 16px; }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal__dow { text-align: center; font-size: 11px; color: var(--ink-2); font-weight: 600; padding-bottom: 4px; }
.cal__day { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border-radius: 9px; font-size: 14px; cursor: pointer; transition: all 0.15s; color: var(--ink); }
.cal__day:hover { background: var(--green-04); }
.cal__day.empty { cursor: default; }
.cal__day.today { border: 1.5px solid var(--green); font-weight: 700; color: var(--green-d); }
.cal__day.sel { background: var(--green); color: #fff; font-weight: 700; }
/* habits */
.hab__row { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.hab__row:last-child { border-bottom: 0; }
.hab__name { flex: 1; font-weight: 600; font-size: 15px; }
.hab__name small { display: block; color: var(--ink-2); font-weight: 400; font-size: 12px; }
.hab__days { display: flex; gap: 6px; }
.hab__dot { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); cursor: pointer; transition: all 0.15s; display: flex; align-items: center; justify-content: center; font-size: 11px; color: transparent; }
.hab__dot:hover { border-color: var(--green-l); }
.hab__dot.on { background: var(--green); border-color: var(--green); color: #fff; transform: scale(1.06); }
/* timetable */
.tt__row { display: grid; grid-template-columns: 64px 1fr; gap: 14px; padding: 12px 4px; border-left: 3px solid var(--green); margin-bottom: 10px; background: var(--green-04); border-radius: 0 10px 10px 0; }
.tt__time { font-weight: 700; color: var(--green-d); font-size: 14px; padding-left: 10px; }
.tt__what { font-size: 15px; }
.tt__what small { display: block; color: var(--ink-2); font-size: 12px; }

/* ----- Canvas ----- */
.canvas { position: relative; max-width: 920px; height: 380px; margin: 0 auto; border: 1px solid var(--line); border-radius: var(--radius); background: radial-gradient(circle at 1px 1px, #e3ebe6 1px, transparent 0) 0 0 / 22px 22px, #fff; overflow: hidden; box-shadow: var(--shadow); }
.canvas__hint { position: absolute; top: 12px; left: 16px; font-size: 12px; color: var(--ink-2); }
.note { position: absolute; width: 140px; min-height: 70px; padding: 14px; border-radius: 12px; font-size: 14px; font-weight: 600; cursor: grab; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.25); user-select: none; transition: box-shadow 0.2s, transform 0.05s; }
.note:active { cursor: grabbing; box-shadow: 0 18px 36px -10px rgba(0, 0, 0, 0.35); z-index: 5; }
.note--green { background: #d7f5e3; color: #14532d; }
.note--yellow { background: #fef3c7; color: #713f12; }
.note--blue { background: #dbeafe; color: #1e3a8a; }
.note--pink { background: #fce7f3; color: #831843; }

/* ----- Sync ----- */
.sync { display: flex; align-items: center; justify-content: center; gap: clamp(8px, 3vw, 36px); max-width: 900px; margin: 0 auto; flex-wrap: wrap; }
.sync__dev { text-align: center; font-size: 13px; color: var(--ink-2); }
.sync__screen { width: 120px; height: 80px; border-radius: 10px; background: linear-gradient(135deg, #fff, var(--bg-2)); border: 2px solid var(--green); margin-bottom: 8px; box-shadow: var(--shadow); }
.sync__dev--laptop .sync__screen { width: 150px; }
.sync__cloud { font-size: 46px; text-align: center; color: var(--green); }
.sync__cloud span { display: block; font-size: 13px; color: var(--green-d); font-weight: 600; }
.sync__beam { display: flex; gap: 6px; }
.sync__beam i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); opacity: 0.3; animation: beam 1.4s infinite; }
.sync__beam i:nth-child(2) { animation-delay: 0.2s; } .sync__beam i:nth-child(3) { animation-delay: 0.4s; }
.sync__beam--r i { animation-direction: reverse; }
@keyframes beam { 0%, 100% { opacity: 0.25; transform: scale(0.8); } 50% { opacity: 1; transform: scale(1.2); } }

/* ----- Download ----- */
.download { padding: clamp(80px, 12vw, 150px) clamp(16px, 5vw, 48px); background: linear-gradient(135deg, var(--green-d), var(--green)); color: #fff; text-align: center; }
.download__inner { max-width: 640px; margin: 0 auto; }
.download h2 { font-size: clamp(30px, 5vw, 52px); letter-spacing: -0.03em; }
.download p { margin-top: 14px; font-size: 18px; opacity: 0.92; }
.download__btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.btn--ghost-w { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.55); box-shadow: none; }
.btn--ghost-w:hover { background: rgba(255, 255, 255, 0.14); border-color: #fff; transform: translateY(-2px); }
.ver { opacity: 0.7; font-weight: 500; }
.download__note { margin-top: 18px; font-size: 13px; opacity: 0.8; }
.download__alt { margin-top: 10px; font-size: 14px; opacity: 0.95; }
.download__alt a { text-decoration: underline; font-weight: 600; }
.btn.is-disabled { opacity: 0.55; cursor: not-allowed; pointer-events: none; box-shadow: none; }

/* ----- Footer ----- */
.foot { padding: 40px clamp(16px, 5vw, 48px); display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 14px; flex-wrap: wrap; gap: 12px; }
.foot__brand { display: flex; align-items: center; gap: 9px; font-weight: 700; color: var(--ink); }

@media (max-width: 720px) {
  .nav__links { display: none; }
  .window__body { grid-template-columns: 1fr; }
  .mini-side { display: none; }
  .hero { padding-top: 120px; }
}
@media (prefers-reduced-motion: reduce) {
  .orb, .sync__beam i { animation: none; }
  .reveal { transition: none; opacity: 1; transform: none; }
}
