/* Nouveautés 0.1.13 : un bandeau espresso et sept tuiles, chacune avec une boucle de l'interface de Flip.
   Les boucles ne touchent que transform, opacity et quelques largeurs ; une tuile hors de l'écran se met en
   pause. Sans animation (réglage du Mac), chaque tuile montre son image la plus parlante : c'est l'état de base,
   les images clés partent de là. Le bouton « Voir en mouvement » les relance à la demande. */

.latest {
  --lav: #8b7cf6;
  --mint: #36c5a8;
  --amber: #f2a541;
  --side-top: #c9c0fa;
  --side-bottom: #ebe7f8;
  --mini-ink: #1f1d29;
  --loop: 8s;
  margin: clamp(48px, 7vw, 88px) clamp(8px, 2vw, 24px) 0;
  padding: clamp(72px, 10vw, 128px) var(--gutter) clamp(56px, 8vw, 96px);
  border-radius: clamp(28px, 4vw, 44px);
  background:
    radial-gradient(
      80% 55% at 88% 0%,
      rgba(139, 124, 246, 0.24),
      transparent 62%
    ),
    radial-gradient(
      60% 45% at 0% 100%,
      rgba(232, 135, 76, 0.2),
      transparent 60%
    ),
    var(--espresso);
  color: var(--cream);
}

.latest .eyebrow {
  color: rgba(244, 237, 226, 0.6);
}

.latest h2 em {
  color: var(--crema);
}

.latest .news-lead {
  color: rgba(244, 237, 226, 0.72);
}

/* Ton Mac réduit les animations : un bouton pour les voir quand même (retenu sur ce navigateur). */
.motion-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 36px;
  padding: 0 16px 0 12px;
  border: 1px solid rgba(244, 237, 226, 0.18);
  border-radius: 999px;
  background: rgba(244, 237, 226, 0.06);
  color: var(--cream);
  font: 500 14px/1 var(--sans);
  cursor: pointer;
  transition: background 200ms;
}

.motion-toggle[hidden] {
  display: none;
}

.motion-toggle:hover {
  background: rgba(244, 237, 226, 0.12);
}

.motion-toggle i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid var(--crema);
}

.motion-toggle[aria-pressed="true"] i {
  background: var(--crema);
}

/* ─── Grille ───────────────────────────────────────────────────────── */

.bento {
  gap: 16px;
}

.tile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 12px 26px;
  border-radius: 28px;
  background: rgba(244, 237, 226, 0.045);
  box-shadow: inset 0 0 0 1px rgba(244, 237, 226, 0.08);
}

.tile.wide {
  grid-column: span 2;
}

.tile h3 {
  margin: 14px 14px 0;
  font-size: 30px;
  line-height: 1.05;
  color: var(--cream);
}

.tile p {
  margin: 0 14px;
  font-size: 15.5px;
  color: rgba(244, 237, 226, 0.7);
  text-wrap: pretty;
}

/* La scène : à 12 px du bord de la tuile (28), des coins de 16, concentriques. */
.stage {
  position: relative;
  height: 230px;
  border-radius: 16px;
  overflow: hidden;
  background:
    radial-gradient(
      70% 90% at 80% 0%,
      rgba(139, 124, 246, 0.16),
      transparent 70%
    ),
    linear-gradient(160deg, #2a1d17, #120c0a);
  box-shadow: inset 0 0 0 1px rgba(244, 237, 226, 0.06);
}

.stage *,
.stage *::before,
.stage *::after {
  animation-duration: var(--loop);
  animation-iteration-count: infinite;
}

.tile:not(.playing) .stage *,
.tile:not(.playing) .stage *::before,
.tile:not(.playing) .stage *::after {
  animation-play-state: paused;
}

/* ─── Sidebar miniature (la même que dans Flip) ────────────────────── */

.mini-side {
  position: absolute;
  padding: 10px;
  border-radius: 14px;
  background: linear-gradient(165deg, var(--side-top), var(--side-bottom));
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.7);
  color: var(--mini-ink);
}

.mini-side .r {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 10px;
  border-radius: 10px;
  font: 500 12px/1 var(--sans);
  white-space: nowrap;
}

.mini-side .r + .r {
  margin-top: 2px;
}

.mini-side .fv {
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: var(--c);
}

.mini-side .r b {
  display: block;
  width: var(--w);
  height: 7px;
  border-radius: 4px;
  background: rgba(31, 29, 41, 0.22);
}

/* ─── Renommer ─────────────────────────────────────────────────────── */

.v-rename .mini-side {
  left: 50%;
  top: 28px;
  width: 232px;
  translate: -50% 0;
}

.v-rename .target {
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  animation-name: rename-row;
}

.v-rename .old {
  position: absolute;
  left: 32px;
  opacity: 0;
  color: rgba(31, 29, 41, 0.7);
  padding: 2px 3px;
  margin-left: -3px;
  border-radius: 3px;
  animation-name: rename-old;
}

/* Le nouveau nom se tape : la largeur avance par pas, le curseur de saisie suit (bordure droite). */
.v-rename .new {
  display: inline-block;
  max-width: 8em;
  overflow: hidden;
  font-weight: 600;
  border-right: 1.5px solid transparent;
  animation-name: rename-type;
}

.v-rename .caret {
  display: none;
}

.v-rename .cursor {
  position: absolute;
  left: 50%;
  top: 28px;
  width: 20px;
  height: 20px;
  fill: #fff;
  stroke: #120c0a;
  stroke-width: 1.4;
  stroke-linejoin: round;
  opacity: 0;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.4));
  animation-name: rename-cursor;
}

@keyframes rename-row {
  0%,
  28% {
    background: transparent;
    box-shadow: none;
  }
  31%,
  60% {
    background: #fff;
    box-shadow: 0 0 0 2px var(--lav);
  }
  64%,
  94% {
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  }
  100% {
    background: transparent;
    box-shadow: none;
  }
}

@keyframes rename-old {
  0%,
  29% {
    opacity: 1;
    background: transparent;
  }
  31%,
  36% {
    opacity: 1;
    background: rgba(139, 124, 246, 0.35);
  }
  38%,
  96% {
    opacity: 0;
  }
  100% {
    opacity: 1;
    background: transparent;
  }
}

@keyframes rename-type {
  0%,
  38% {
    max-width: 0;
    border-right-color: transparent;
    animation-timing-function: steps(10, end);
  }
  56% {
    max-width: 8em;
    border-right-color: var(--lav);
  }
  58%,
  62% {
    border-right-color: transparent;
  }
  60% {
    border-right-color: var(--lav);
  }
  64%,
  94% {
    max-width: 8em;
    border-right-color: transparent;
    opacity: 1;
  }
  98%,
  100% {
    max-width: 8em;
    opacity: 0;
  }
}

/* Le pointeur vient sur l'onglet, double-clique, puis s'écarte. */
@keyframes rename-cursor {
  0% {
    opacity: 0;
    transform: translate(150px, 170px);
  }
  8% {
    opacity: 1;
    transform: translate(150px, 170px);
  }
  22% {
    opacity: 1;
    transform: translate(40px, 50px) scale(1);
    animation-timing-function: steps(1);
  }
  25% {
    transform: translate(40px, 50px) scale(0.82);
    animation-timing-function: steps(1);
  }
  26.5% {
    transform: translate(40px, 50px) scale(1);
    animation-timing-function: steps(1);
  }
  28% {
    transform: translate(40px, 50px) scale(0.82);
    animation-timing-function: steps(1);
  }
  29.5%,
  62% {
    opacity: 1;
    transform: translate(40px, 50px) scale(1);
  }
  76%,
  100% {
    opacity: 0;
    transform: translate(130px, 150px);
  }
}

/* ─── Lecteur et mini-lecteur ──────────────────────────────────────── */

.v-player {
  --loop: 9s;
}

.v-player .mini-side {
  left: 16px;
  top: 16px;
  bottom: 16px;
  width: 210px;
}

/* La surbrillance de l'onglet actif glisse d'un onglet à l'autre (on change d'onglet). */
.v-player .hl {
  position: absolute;
  z-index: 0;
  left: 10px;
  right: 10px;
  top: 10px;
  height: 30px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  animation-name: player-tab;
  animation-timing-function: var(--spring);
}

@keyframes player-tab {
  0%,
  30% {
    transform: translateY(32px);
  }
  36%,
  84% {
    transform: none;
  }
  90%,
  100% {
    transform: translateY(32px);
  }
}

.v-player .player {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 6px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(139, 124, 246, 0.22);
}

.v-player .art {
  position: relative;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--crema), var(--lav));
}

.v-player .eq {
  position: absolute;
  right: 3px;
  bottom: 3px;
  display: flex;
  align-items: flex-end;
  gap: 1.5px;
  height: 12px;
  padding: 2px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.45);
}

.v-player .eq i {
  width: 2px;
  height: 100%;
  border-radius: 1px;
  background: #fff;
  transform-origin: bottom;
  transform: scaleY(0.7);
  animation: eq 0.9s ease-in-out infinite alternate;
}

.v-player .eq i:nth-child(2) {
  animation-duration: 0.6s;
  animation-delay: -0.3s;
}

.v-player .eq i:nth-child(3) {
  animation-duration: 1.1s;
  animation-delay: -0.6s;
}

@keyframes eq {
  from {
    transform: scaleY(0.25);
  }
  to {
    transform: scaleY(1);
  }
}

.v-player .meta {
  display: grid;
  gap: 2px;
  min-width: 0;
  flex: 1;
  white-space: nowrap;
}

.v-player .meta b {
  overflow: hidden;
  text-overflow: ellipsis;
  font: 600 11px/1.2 var(--sans);
}

.v-player .meta small {
  overflow: hidden;
  text-overflow: ellipsis;
  font: 10px/1.2 var(--sans);
  color: rgba(31, 29, 41, 0.6);
}

.v-player .ctl {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-right: 4px;
}

.v-player .ctl i {
  width: 8px;
  height: 9px;
  background: var(--mini-ink);
}

.v-player .ctl .prev {
  clip-path: polygon(100% 0, 100% 100%, 0 50%);
}

.v-player .ctl .next {
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.v-player .ctl .pp {
  width: 9px;
  height: 11px;
  background: linear-gradient(
    90deg,
    var(--mini-ink) 0 35%,
    transparent 35% 65%,
    var(--mini-ink) 65%
  );
}

.v-player .prog {
  position: absolute;
  left: 50px;
  right: 10px;
  bottom: 4px;
  height: 2px;
  border-radius: 1px;
  background: rgba(31, 29, 41, 0.12);
  overflow: hidden;
}

.v-player .prog i {
  display: block;
  height: 100%;
  background: var(--lav);
  transform-origin: left;
  animation-name: grow;
  animation-timing-function: linear;
}

@keyframes grow {
  from {
    transform: scaleX(0.08);
  }
  to {
    transform: scaleX(1);
  }
}

/* La page : du texte, et une vidéo qui part en mini-lecteur dans le coin quand on change d'onglet. */
.v-player .page {
  position: absolute;
  left: 242px;
  right: 16px;
  top: 16px;
  bottom: 16px;
  border-radius: 12px;
  background: var(--paper);
}

.v-player .lines {
  display: grid;
  gap: 9px;
  width: 34%;
  padding: 20px 0 0 18px;
  animation-name: player-page;
}

.v-player .lines i {
  height: 8px;
  border-radius: 4px;
  background: #e6dccd;
}

.v-player .lines i:first-child {
  height: 14px;
  margin-bottom: 4px;
  background: #d9c9b4;
}

.v-player .lines .short {
  width: 64%;
}

@keyframes player-page {
  0%,
  31% {
    opacity: 1;
    transform: none;
  }
  33% {
    opacity: 0;
    transform: translateY(6px);
  }
  38%,
  85% {
    opacity: 1;
    transform: none;
  }
  87% {
    opacity: 0;
    transform: translateY(6px);
  }
  92%,
  100% {
    opacity: 1;
    transform: none;
  }
}

.v-player .video {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 58%;
  aspect-ratio: 16 / 9;
  max-height: calc(100% - 28px);
  border-radius: 10px;
  overflow: hidden;
  background: #1a1210;
  transform-origin: 100% 100%;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.55);
  animation-name: to-pip;
  animation-timing-function: var(--spring);
}

@keyframes to-pip {
  0%,
  32% {
    transform: none;
    border-radius: 10px;
  }
  42%,
  84% {
    transform: translate(4px, 4px) scale(0.42);
    border-radius: 18px;
    box-shadow: 0 24px 50px -10px rgba(0, 0, 0, 0.6);
  }
  94%,
  100% {
    transform: none;
    border-radius: 10px;
  }
}

/* L'image qui défile, comme une vidéo qui joue. */
.v-player .film {
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(
      30% 30% at 30% 40%,
      rgba(242, 165, 65, 0.9),
      transparent 70%
    ),
    radial-gradient(
      35% 35% at 70% 60%,
      rgba(139, 124, 246, 0.9),
      transparent 70%
    ),
    radial-gradient(
      25% 25% at 55% 25%,
      rgba(54, 197, 168, 0.8),
      transparent 70%
    ),
    #241a16;
  animation: film 6s ease-in-out infinite alternate;
}

@keyframes film {
  to {
    transform: rotate(40deg) scale(1.15);
  }
}

.v-player .bar {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 7px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.25);
  overflow: hidden;
}

.v-player .bar i {
  display: block;
  height: 100%;
  background: #fff;
  transform-origin: left;
  animation-name: grow;
  animation-timing-function: linear;
}

/* ─── Raccourcis ───────────────────────────────────────────────────── */

.v-keys .caps {
  position: absolute;
  left: 50%;
  top: 34px;
  display: flex;
  align-items: center;
  gap: 10px;
  translate: -50% 0;
}

.v-keys kbd {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  padding: 0;
  border-radius: 14px;
  font: 500 24px/1 var(--sans);
  color: var(--ink);
  background: linear-gradient(180deg, #fff, #ece3d6);
  box-shadow:
    inset 0 -2px 0 rgba(22, 17, 14, 0.14),
    0 4px 0 #b9ab98,
    0 10px 24px -8px rgba(0, 0, 0, 0.6);
  perspective: 300px;
  animation-name: key-press;
}

.v-keys .k2 {
  animation-delay: 0.08s;
}

/* La touche se réattribue : K bascule et devient T. */
.v-keys .k2 span {
  position: absolute;
  backface-visibility: hidden;
}

.v-keys .from {
  transform: rotateX(180deg);
  animation-name: flip-from;
}

.v-keys .to {
  animation-name: flip-to;
}

@keyframes flip-from {
  0%,
  22% {
    transform: none;
  }
  32%,
  92% {
    transform: rotateX(180deg);
  }
  100% {
    transform: none;
  }
}

@keyframes flip-to {
  0%,
  22% {
    transform: rotateX(-180deg);
  }
  32%,
  92% {
    transform: none;
  }
  100% {
    transform: rotateX(-180deg);
  }
}

@keyframes key-press {
  0%,
  40%,
  46%,
  100% {
    transform: none;
    box-shadow:
      inset 0 -2px 0 rgba(22, 17, 14, 0.14),
      0 4px 0 #b9ab98,
      0 10px 24px -8px rgba(0, 0, 0, 0.6);
  }
  43% {
    transform: translateY(4px);
    box-shadow:
      inset 0 -2px 0 rgba(22, 17, 14, 0.14),
      0 0 0 #b9ab98,
      0 4px 12px -6px rgba(0, 0, 0, 0.6);
  }
}

/* « Flip d'abord » : la barre tricolore se pose à côté de ⌘T. */
.v-keys .first {
  display: grid;
  place-items: center;
  height: 26px;
  padding: 0 12px;
  border-radius: 13px;
  font: 600 12px/1 var(--sans);
  color: #fff;
  background: linear-gradient(
    90deg,
    var(--lav) 0 33%,
    var(--mint) 33% 66%,
    var(--amber) 66%
  );
  rotate: -11deg;
  animation-name: first-in;
  animation-timing-function: var(--spring-bouncy);
}

@keyframes first-in {
  0%,
  42% {
    opacity: 0;
    transform: scale(0.4) translateX(-12px);
  }
  50%,
  92% {
    opacity: 1;
    transform: none;
  }
  100% {
    opacity: 0;
    transform: scale(0.4) translateX(-12px);
  }
}

/* Mode clavier : des lettres se posent sur les liens de la page, l'une est choisie. */
.v-keys .hints {
  position: absolute;
  left: 50%;
  bottom: 22px;
  display: grid;
  gap: 10px;
  width: 200px;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--paper);
  translate: -50% 0;
}

.v-keys .hints i {
  position: relative;
  height: 7px;
  border-radius: 4px;
  background: #e2d6c5;
}

.v-keys .hints .short {
  width: 62%;
}

.v-keys .hints b {
  position: absolute;
  left: -6px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  border-radius: 4px;
  font: 700 10px/1 var(--mono);
  color: var(--ink);
  background: var(--amber);
  box-shadow: 0 2px 6px -2px rgba(0, 0, 0, 0.4);
  animation-name: hint;
  animation-timing-function: var(--spring-bouncy);
}

.v-keys .hints i:nth-child(2) b {
  animation-delay: 0.12s;
}

.v-keys .hints i:nth-child(3) b {
  animation-name: hint-pick;
  animation-delay: 0.24s;
}

.v-keys .hints i:nth-child(4) b {
  animation-delay: 0.36s;
}

@keyframes hint {
  0%,
  56% {
    opacity: 0;
    transform: scale(0.3);
  }
  62%,
  90% {
    opacity: 1;
    transform: none;
  }
  96%,
  100% {
    opacity: 0;
    transform: scale(0.3);
  }
}

@keyframes hint-pick {
  0%,
  56% {
    opacity: 0;
    transform: scale(0.3);
  }
  62%,
  72% {
    opacity: 1;
    transform: none;
    background: var(--amber);
  }
  76%,
  90% {
    opacity: 1;
    transform: scale(1.25);
    background: var(--lav);
    color: #fff;
  }
  96%,
  100% {
    opacity: 0;
    transform: scale(0.3);
  }
}

/* ─── Sites en apps ────────────────────────────────────────────────── */

.v-apps .dock {
  position: absolute;
  left: 50%;
  bottom: 30px;
  display: flex;
  gap: 10px;
  padding: 10px;
  border-radius: 24px;
  background: rgba(244, 237, 226, 0.12);
  box-shadow:
    inset 0 0 0 1px rgba(244, 237, 226, 0.14),
    0 20px 40px -20px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
  translate: -50% 0;
}

/* Une app : le logo du site sur la plaque crème de Flip, avec sa barre tricolore en sceau. */
.v-apps .app {
  position: relative;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 15px;
  background: linear-gradient(180deg, #fffaf2, #eadcc8);
  box-shadow: 0 6px 14px -6px rgba(0, 0, 0, 0.6);
  animation-name: app-in;
  animation-timing-function: var(--spring-bouncy);
}

.v-apps .app svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--lav);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.v-apps .app:nth-child(2) {
  animation-name: app-launch;
  animation-delay: 0.15s;
}

.v-apps .app:nth-child(2) svg {
  stroke: var(--mint);
}

.v-apps .app:nth-child(3) {
  animation-delay: 0.3s;
}

.v-apps .app:nth-child(3) svg {
  stroke: var(--crema);
}

.v-apps .app:nth-child(4) {
  animation-delay: 0.45s;
}

.v-apps .app:nth-child(4) svg {
  stroke: #e46fbe;
}

.v-apps .seal {
  position: absolute;
  right: 6px;
  bottom: 9px;
  width: 18px;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(
    90deg,
    var(--lav) 0 33%,
    var(--mint) 33% 66%,
    var(--amber) 66%
  );
  rotate: -11deg;
}

/* Le point sous l'app ouverte. */
.v-apps .app:nth-child(2)::after {
  content: "";
  position: absolute;
  bottom: -7px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cream);
  animation-name: app-dot;
}

@keyframes app-in {
  0%,
  6% {
    opacity: 0;
    transform: translateY(40px) scale(0.4);
  }
  16%,
  90% {
    opacity: 1;
    transform: none;
  }
  98%,
  100% {
    opacity: 0;
    transform: translateY(20px) scale(0.6);
  }
}

/* L'app se lance : deux rebonds, comme dans le Dock. */
@keyframes app-launch {
  0%,
  6% {
    opacity: 0;
    transform: translateY(40px) scale(0.4);
  }
  16%,
  40% {
    opacity: 1;
    transform: none;
  }
  46% {
    transform: translateY(-22px);
  }
  52% {
    transform: none;
  }
  58% {
    transform: translateY(-14px);
  }
  64%,
  90% {
    opacity: 1;
    transform: none;
  }
  98%,
  100% {
    opacity: 0;
    transform: translateY(20px) scale(0.6);
  }
}

@keyframes app-dot {
  0%,
  60% {
    opacity: 0;
  }
  66%,
  90% {
    opacity: 1;
  }
  96%,
  100% {
    opacity: 0;
  }
}

/* ─── Proportions ──────────────────────────────────────────────────── */

.v-shape .shapes {
  position: absolute;
  left: 50%;
  top: 46px;
  display: grid;
  grid-template-columns: repeat(3, 64px);
  gap: 12px;
  translate: -50% 0;
}

.v-shape .shapes i {
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(180deg, #fffaf2, #eadcc8);
  animation-name: tidy-1;
  animation-timing-function: var(--spring);
}

.v-shape .shapes i:nth-child(n + 4) {
  height: 28px;
  margin-top: 8px;
  border-radius: 8px;
  background: var(--side-top);
  animation-name: tidy-2;
}

.v-shape .shapes i:nth-child(2) {
  --dx: 9px;
  --dy: -10px;
  --rot: 7deg;
  --r: 3px;
}

.v-shape .shapes i:nth-child(1) {
  --dx: -8px;
  --dy: 6px;
  --rot: -9deg;
  --r: 22px;
}

.v-shape .shapes i:nth-child(3) {
  --dx: 4px;
  --dy: 12px;
  --rot: 12deg;
  --r: 6px;
}

.v-shape .shapes i:nth-child(4) {
  --dx: 10px;
  --dy: -4px;
  --rot: 6deg;
  --r: 2px;
}

.v-shape .shapes i:nth-child(5) {
  --dx: -6px;
  --dy: 9px;
  --rot: -5deg;
  --r: 14px;
}

.v-shape .shapes i:nth-child(6) {
  --dx: -12px;
  --dy: -8px;
  --rot: -11deg;
  --r: 4px;
}

@keyframes tidy-1 {
  0%,
  14% {
    transform: translate(var(--dx), var(--dy)) rotate(var(--rot)) scale(0.88);
    border-radius: var(--r);
  }
  30%,
  86% {
    transform: none;
    border-radius: 12px;
  }
  100% {
    transform: translate(var(--dx), var(--dy)) rotate(var(--rot)) scale(0.88);
    border-radius: var(--r);
  }
}

@keyframes tidy-2 {
  0%,
  14% {
    transform: translate(var(--dx), var(--dy)) rotate(var(--rot))
      scale(1.1, 0.8);
    border-radius: var(--r);
  }
  30%,
  86% {
    transform: none;
    border-radius: 8px;
  }
  100% {
    transform: translate(var(--dx), var(--dy)) rotate(var(--rot))
      scale(1.1, 0.8);
    border-radius: var(--r);
  }
}

.v-shape .ruler {
  position: absolute;
  left: 50%;
  bottom: 26px;
  display: flex;
  gap: 18px;
  font: 500 12px/1 var(--mono);
  color: rgba(244, 237, 226, 0.6);
  translate: -50% 0;
  animation-name: ruler-in;
}

.v-shape .ruler span {
  padding: 5px 8px;
  border-radius: 6px;
  background: rgba(244, 237, 226, 0.08);
}

@keyframes ruler-in {
  0%,
  24% {
    opacity: 0;
    transform: translateY(8px);
  }
  34%,
  86% {
    opacity: 1;
    transform: none;
  }
  96%,
  100% {
    opacity: 0;
    transform: translateY(8px);
  }
}

/* ─── Synchro entre Macs ───────────────────────────────────────────── */

.v-sync {
  --loop: 7s;
  container-type: inline-size;
}

/* Un plan fixe de 520 × 190, centré (et réduit sur un petit écran) : les paquets suivent un chemin en pixels. */
.v-sync .sync-canvas {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 520px;
  height: 190px;
  translate: -50% -50%;
}

@container (max-width: 560px) {
  .v-sync .sync-canvas {
    scale: 0.62;
  }
}

.v-sync .mac {
  position: absolute;
  top: 38px;
  display: grid;
  justify-items: center;
}

.v-sync .m1 {
  left: 28px;
}

.v-sync .m2 {
  right: 28px;
}

.v-sync .scr {
  display: grid;
  align-content: start;
  gap: 7px;
  width: 152px;
  height: 100px;
  padding: 10px 12px;
  border: 5px solid #2e2520;
  border-radius: 10px;
  background: linear-gradient(165deg, var(--side-top), var(--side-bottom));
}

.v-sync .dots {
  display: flex;
  gap: 5px;
  margin-bottom: 2px;
}

.v-sync .dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--c);
}

.v-sync .row {
  height: 8px;
  border-radius: 4px;
  background: rgba(31, 29, 41, 0.22);
}

.v-sync .row.short {
  width: 60%;
}

.v-sync .base {
  width: 186px;
  height: 9px;
  border-radius: 0 0 9px 9px;
  background: linear-gradient(180deg, #4a3d35, #2e2520);
}

/* Ce qui arrive sur l'autre Mac : à sa place à la fin de la boucle (état de base), absent au début. */
.v-sync .late {
  transform-origin: left center;
  animation-name: arrive;
  animation-timing-function: var(--spring-bouncy);
}

.v-sync .dots .late:nth-child(3),
.v-sync .row.late:last-child {
  animation-delay: 0.2s;
}

@keyframes arrive {
  0%,
  44% {
    opacity: 0;
    transform: scale(0.2);
  }
  54%,
  92% {
    opacity: 1;
    transform: none;
  }
  100% {
    opacity: 0;
    transform: scale(0.2);
  }
}

.v-sync .sync-arc {
  position: absolute;
  inset: 0;
  width: 520px;
  height: 190px;
  overflow: visible;
}

.v-sync .sync-arc path {
  fill: none;
  stroke: rgba(244, 237, 226, 0.28);
  stroke-width: 2;
  stroke-dasharray: 4 7;
  animation: flow 1.2s linear infinite;
}

@keyframes flow {
  to {
    stroke-dashoffset: -22;
  }
}

.v-sync .cloud {
  position: absolute;
  left: 236px;
  top: 2px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(244, 237, 226, 0.08);
  box-shadow: inset 0 0 0 1px rgba(244, 237, 226, 0.14);
}

.v-sync .cloud svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--cream);
  stroke-width: 1.8;
  stroke-linejoin: round;
}

/* Les spaces voyagent d'un Mac à l'autre en suivant l'arc. */
.v-sync .pkt {
  position: absolute;
  left: 0;
  top: 0;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 14px var(--c);
  offset-path: path("M118 112C190 6 330 6 402 112");
  offset-rotate: 0deg;
  opacity: 0;
  animation-name: travel;
  animation-timing-function: var(--ease-out);
}

.v-sync .pkt:nth-of-type(2) {
  animation-delay: 0.3s;
}

.v-sync .pkt:nth-of-type(3) {
  animation-delay: 0.6s;
}

@keyframes travel {
  0%,
  10% {
    offset-distance: 0%;
    opacity: 0;
  }
  14% {
    opacity: 1;
  }
  46% {
    offset-distance: 100%;
    opacity: 1;
  }
  52%,
  100% {
    offset-distance: 100%;
    opacity: 0;
  }
}

/* ─── Aussi depuis la semaine dernière ─────────────────────────────── */

.tile.also {
  padding: 26px;
  gap: 14px;
}

.tile.also h3 {
  margin: 0;
}

.tile.also ul {
  display: grid;
  gap: 14px;
  padding: 0;
  list-style: none;
}

.tile.also li {
  display: grid;
  grid-template-columns: 32px 1fr;
  align-items: start;
  gap: 12px;
  font-size: 15px;
  line-height: 1.45;
  color: rgba(244, 237, 226, 0.78);
}

.tile.also li > span:first-child {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(244, 237, 226, 0.07);
}

.also svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--cream);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Téléchargement : l'anneau de progression de la sidebar. */
.also .ring circle {
  stroke: rgba(244, 237, 226, 0.18);
}

.also .ring .bar {
  stroke: var(--mint);
  stroke-dasharray: 56.5;
  stroke-dashoffset: 12;
  transform: rotate(-90deg);
  transform-origin: center;
  animation: ring 3.2s var(--ease-out) infinite;
}

@keyframes ring {
  from {
    stroke-dashoffset: 56.5;
  }
  80%,
  to {
    stroke-dashoffset: 0;
  }
}

/* Visio : le point rouge de la caméra, qui bat. */
.also .live i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff6b5b;
  box-shadow: 0 0 0 0 rgba(255, 107, 91, 0.6);
  animation: live 1.8s ease-out infinite;
}

@keyframes live {
  to {
    box-shadow: 0 0 0 10px rgba(255, 107, 91, 0);
  }
}

.also .win {
  grid-template-columns: repeat(2, 7px);
  gap: 2px;
}

.also .win i {
  width: 7px;
  height: 7px;
  border-radius: 1.5px;
  background: var(--cream);
  animation: win 2.4s ease-in-out infinite;
}

.also .win i:nth-child(2) {
  animation-delay: 0.15s;
}

.also .win i:nth-child(3) {
  animation-delay: 0.3s;
}

.also .win i:nth-child(4) {
  animation-delay: 0.45s;
}

@keyframes win {
  0%,
  100% {
    opacity: 0.35;
  }
  30% {
    opacity: 1;
  }
}

.also .hist svg {
  animation: hist 2.6s var(--spring) infinite;
}

@keyframes hist {
  0%,
  100% {
    transform: none;
  }
  40% {
    transform: translateX(-3px);
  }
  70% {
    transform: translateX(3px);
  }
}

/* ─── Petits écrans ────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .tile.wide {
    grid-column: auto;
  }

  .v-player .mini-side {
    width: 168px;
  }

  .v-player .page {
    left: 196px;
  }

  .v-player .lines {
    width: 50%;
  }

  .v-player .video {
    width: 72%;
  }
}

@media (max-width: 520px) {
  .v-player .meta {
    display: none;
  }

  .tile h3 {
    font-size: 26px;
  }
}
