/* Nod Isle — le Mac de démonstration et l'île, reproduite d'après l'app (tailles en points macOS).
   L'écran virtuel fait 1180 × 760 pt et se met à l'échelle de la maquette (--k). */

.mac { position: relative; width: min(1060px, 94vw); margin: 0 auto; }
.mac::after {
  content: ""; position: absolute; z-index: 6; left: -4px; right: -4px; bottom: -2px; height: 44%;
  background: linear-gradient(to bottom, rgba(10, 10, 10, 0), var(--bg) 88%);
  pointer-events: none;
}
.mac-frame {
  position: relative;
  padding: clamp(5px, 1vw, 12px) clamp(5px, 1vw, 12px) 0;
  border-radius: clamp(14px, 2.4vw, 28px) clamp(14px, 2.4vw, 28px) 0 0;
  background: linear-gradient(180deg, #222226, #0d0d10 18%, #09090b);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07), 0 0 0 1.5px #2e2e33, 0 -30px 90px -50px rgba(110, 110, 255, 0.35);
}
.mac-screen {
  position: relative; overflow: hidden;
  aspect-ratio: 1180 / 470;
  border-radius: clamp(8px, 1.4vw, 15px) clamp(8px, 1.4vw, 15px) 0 0;
  background: #000;
  container-type: inline-size;
}
.vscreen {
  position: absolute; left: 50%; top: 0;
  width: var(--vw, 1180px); height: 760px;
  transform-origin: 50% 0;
  transform: translateX(-50%) scale(var(--k, 0.85));
  font-family: var(--sf);
  color: #fff;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  user-select: none;
}
.wallpaper {
  position: absolute; inset: -10% -5% 0;
  background:
    radial-gradient(46% 62% at 86% 58%, #f4a650 0%, rgba(244, 166, 80, 0) 70%),
    radial-gradient(44% 64% at 8% 52%, #6d28d9 0%, rgba(109, 40, 217, 0) 70%),
    radial-gradient(40% 52% at 52% 64%, #b5179e 0%, rgba(181, 23, 158, 0) 70%),
    radial-gradient(70% 40% at 50% -6%, #1b1446 0%, rgba(27, 20, 70, 0) 80%),
    linear-gradient(176deg, #160d38 0%, #2c1260 38%, #571b72 62%, #8d3a52 100%);
}
.wallpaper::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 70% at 50% 120%, rgba(10, 6, 24, 0.55), transparent 60%);
}

/* Barre des menus */
.menubar {
  position: absolute; inset: 0 0 auto; height: 32px; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px 0 20px;
  font-size: 13.5px; font-weight: 500; color: rgba(255, 255, 255, 0.92);
  background: rgba(10, 8, 20, 0.18);
}
.menubar .left, .menubar .right { display: flex; align-items: center; gap: 19px; white-space: nowrap; }
.menubar .left b { font-weight: 700; }
.menubar svg { width: 15px; height: 15px; }
.menubar .apple { width: 14px; height: 17px; margin-top: -2px; }
.menubar .right { gap: 15px; }
.menubar .clock { font-variant-numeric: tabular-nums; }
.vscreen.narrow .menubar .opt { display: none; }

/* Bureau : un fichier à glisser vers l'encoche */
.desk-file {
  position: absolute; left: 150px; top: 300px; z-index: 4;
  width: 86px; display: grid; justify-items: center; gap: 4px;
  font-size: 11.5px; font-weight: 500; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  transition: transform 1.25s cubic-bezier(0.45, 0, 0.2, 1), opacity 0.4s;
  will-change: transform;
  opacity: 0; /* n'apparaît qu'à l'étape « Zones de dépôt » */
}
.desk-file .doc { width: 54px; height: 68px; }
.desk-file span { padding: 1px 6px; border-radius: 4px; }
.desk-file.is-picked span { background: #2b5fd9; }
.cursor { position: absolute; left: 186px; top: 330px; z-index: 5; width: 17px; height: 25px; transition: transform 1.25s cubic-bezier(0.45, 0, 0.2, 1), opacity 0.3s; opacity: 0; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.5)); }
.cursor.is-on { opacity: 1; }

/* ——— L'île ——— */
.isl {
  --w: 179px; --h: 32px; --r: 10px; --ear: 7px;
  position: absolute; left: 50%; top: 0; z-index: 3;
  width: var(--w); height: var(--h);
  transform: translateX(-50%);
  background: #000;
  border-radius: 0 0 var(--r) var(--r);
  transition: width 0.62s var(--spring, var(--ease-spring)), height 0.62s var(--spring, var(--ease-spring)), border-radius 0.62s var(--spring, var(--ease-spring));
  cursor: default;
}
.isl::before, .isl::after { content: ""; position: absolute; top: 0; width: var(--ear); height: var(--ear); }
.isl::before { left: calc(var(--ear) * -1 + 0.5px); background: radial-gradient(circle at 0 100%, transparent calc(var(--ear) - 0.5px), #000 var(--ear)); }
.isl::after { right: calc(var(--ear) * -1 + 0.5px); background: radial-gradient(circle at 100% 100%, transparent calc(var(--ear) - 0.5px), #000 var(--ear)); }

.layer {
  position: absolute; left: 50%; top: 0;
  width: var(--cw); height: var(--ch);
  transform: translateX(-50%);
  opacity: 0; filter: blur(7px);
}
.layer.is-shown {
  opacity: 1; filter: blur(0);
  transition: opacity 0.38s ease 0.12s, filter 0.42s ease 0.1s, transform 0.55s var(--spring, var(--ease-spring)) 0.05s;
}
.layer.is-leaving { opacity: 0; filter: blur(5px); transform: translateX(-50%) scale(0.96); transition: opacity 0.16s ease, filter 0.18s ease, transform 0.22s ease; }
.layer.is-entering { transform: translateX(-50%) scale(0.94); }

.isl .abs { position: absolute; }
.isl .t15 { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }
.isl .t13 { font-size: 13px; color: rgba(255, 255, 255, 0.5); white-space: nowrap; }
.isl .t11 { font-size: 11px; font-weight: 600; color: rgba(255, 255, 255, 0.45); font-variant-numeric: tabular-nums; }
.isl .ell { overflow: hidden; text-overflow: ellipsis; }
.isl svg { display: block; }

/* Bandeau d'en-tête des pages ouvertes */
.hdr { position: absolute; top: 0; height: 32px; display: flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; }
.hdr.l { left: 11px; }
.hdr.r { right: 12px; gap: 14px; color: rgba(255, 255, 255, 0.55); }
.hdr svg { width: 17px; height: 17px; }
.hdr .batt { display: flex; align-items: center; gap: 5px; color: #30d158; font-weight: 600; font-size: 12.5px; }
.hdr .batt svg { width: 25px; height: 12px; }

.dots { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); display: flex; gap: 5px; align-items: center; }
.dots i { width: 5px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.28); transition: width 0.4s var(--ease-spring), background-color 0.3s; }
.dots i.on { width: 14px; background: rgba(255, 255, 255, 0.92); }

/* Musique */
.art { border-radius: 14px; overflow: hidden; background: #222; }
.art svg, .art img { width: 100%; height: 100%; }
.bars { display: flex; align-items: center; gap: 2.5px; height: 18px; }
.bars i { width: 3px; height: 100%; border-radius: 2px; background: var(--bar, #f4a55b); transform-origin: 50% 50%; animation: bar 0.9s ease-in-out infinite alternate; }
.bars i:nth-child(2) { animation-duration: 0.63s; animation-delay: -0.2s; }
.bars i:nth-child(3) { animation-duration: 0.78s; animation-delay: -0.5s; }
.bars i:nth-child(4) { animation-duration: 0.55s; animation-delay: -0.1s; }
.paused .bars i { animation-play-state: paused; transform: scaleY(0.25); transition: transform 0.3s; }
@keyframes bar { 0% { transform: scaleY(0.22); } 45% { transform: scaleY(0.9); } 70% { transform: scaleY(0.45); } 100% { transform: scaleY(1); } }
.track { position: absolute; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.18); overflow: hidden; }
.track i { display: block; height: 100%; border-radius: 3px; background: #fff; width: var(--p, 40%); transition: width 0.9s linear; }
.ctrl { position: absolute; display: grid; place-items: center; color: #fff; border-radius: 50%; transition: transform 0.3s var(--ease-spring), background-color 0.2s; }
.ctrl:hover { background: rgba(255, 255, 255, 0.08); }
.ctrl:active { transform: scale(0.88); }
.ctrl svg { width: 100%; height: 100%; }
.try-hint { position: absolute; left: 50%; top: calc(100% + 14px); transform: translateX(-50%); white-space: nowrap; font: 500 12.5px/1 var(--font); color: rgba(255, 255, 255, 0.75); padding: 7px 11px; border-radius: 999px; background: rgba(10, 10, 14, 0.62); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); animation: hint 2.4s ease-in-out infinite; }
@keyframes hint { 50% { transform: translateX(-50%) translateY(3px); } }
.try-hint { top: 200px; z-index: 4; opacity: 0; transition: opacity 0.5s; }
.try-hint.is-visible { opacity: 1; }
.try-hint.is-visible.is-done { opacity: 0; }

/* Agenda */
.cal-day { color: #ff453a; font-size: 12px; font-weight: 700; letter-spacing: 0.02em; }
.cal-num { font-size: 50px; font-weight: 300; line-height: 1; letter-spacing: -0.03em; }
.ev { position: absolute; left: 102px; display: flex; gap: 10px; }
.ev i { width: 3.5px; border-radius: 2px; background: var(--c); align-self: stretch; }

/* Anneaux */
.ring-svg circle { fill: none; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; }
.ring-svg .bg { stroke: rgba(255, 255, 255, 0.14); }
.ring-svg .fg { transition: stroke-dashoffset 1.2s var(--ease-out) 0.15s; }

/* Zones de dépôt */
.zones { position: absolute; inset: 38px 20px 14px; display: flex; gap: 10px; color: #0a84ff; }
.zone { position: relative; flex: 1; display: grid; place-content: center; justify-items: center; gap: 7px; border-radius: 16px; background: rgba(10, 132, 255, 0.09); box-shadow: inset 0 0 0 1.5px rgba(10, 132, 255, 0.0); font-size: 12px; font-weight: 600; transition: background-color 0.3s, transform 0.35s var(--ease-spring); }
.zone::before { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 1.5px dashed rgba(10, 132, 255, 0.55); transition: border-color 0.3s; }
.zone.air { flex: none; width: 128px; }
.zone svg { width: 26px; height: 26px; }
.zone.is-hot { background: rgba(10, 132, 255, 0.24); transform: scale(1.03); }
.zone.is-hot::before { border-style: solid; border-color: rgba(10, 132, 255, 0.95); }
.badge { position: absolute; display: grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #ff453a; color: #fff; font-size: 10.5px; font-weight: 700; }

/* Météo */
.wx { position: absolute; inset: 34px 10px 22px; border-radius: 16px; overflow: hidden; background: linear-gradient(120deg, #3b74bd 0%, #5d93cf 55%, #86ade0 100%); }
.wx .city { position: absolute; left: 14px; top: 11px; display: flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 600; }
.wx .temp { position: absolute; left: 12px; top: 27px; font-size: 42px; font-weight: 300; letter-spacing: -0.02em; }
.wx .cond { position: absolute; right: 14px; top: 10px; text-align: right; font-size: 13px; font-weight: 600; display: grid; justify-items: end; gap: 1px; }
.wx .cond small { font-size: 12px; font-weight: 500; color: rgba(255, 255, 255, 0.85); }
.wx .hours { position: absolute; left: 0; right: 0; bottom: 9px; display: grid; grid-template-columns: repeat(6, 1fr); text-align: center; font-size: 11.5px; font-weight: 600; }
.wx .hours div { display: grid; justify-items: center; gap: 4px; }
.wx .hours svg { width: 20px; height: 20px; }

/* Bandeaux */
.ban-ico { position: absolute; left: 16px; top: 42px; width: 30px; height: 30px; }
.ban-title { position: absolute; left: 58px; top: 41px; right: 90px; }
.ban-sub { position: absolute; left: 58px; top: 61px; right: 70px; }

/* Flow */
.flow-c { color: #0a84ff; }

/* Petites flèches de mise à l'échelle sur mobile */
@media (max-width: 640px) {
  .mac-screen { aspect-ratio: 560 / 330; }
}
