/* Landing page after sign-in (#/cover): cards on the dark blue page, one per project: text on the left, the jigsaw piece on the right.
   Then the Downloads page. Tokens only; no italics. */
body:has(.cover) { background: var(--encre-bleue); }
body:has(.cover) main#view { background: transparent; }
body:has(.cover) .footer { background: transparent; border-top-color: rgb(255 255 255 / 0.12); color: rgb(255 255 255 / 0.55); }
.cover { --cv-ink: var(--white); --cv-soft: rgb(255 255 255 / 0.66); --cv-tile: #2A3358;
  max-width: 1180px; margin: 0 auto; padding: clamp(20px, 4vw, 48px) 0 clamp(32px, 6vw, 72px); color: var(--cv-ink); }
.cv-head { margin-bottom: clamp(20px, 3vw, 32px); }
.cv-hello { margin: 0 0 6px; font-size: 14px; color: var(--cv-soft); letter-spacing: 0.01em; }
.cover .cv-head h1 { margin: 0; font-size: clamp(26px, 3vw, 34px); font-weight: 500; letter-spacing: -0.015em; color: var(--cv-ink); }
.cv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.cv-grid.is-one { grid-template-columns: minmax(0, 620px); }
.cv-empty { color: var(--cv-soft); }

.cv-card { display: grid; grid-template-columns: minmax(0, 1fr) clamp(96px, 34%, 200px); min-height: 200px; min-width: 0;
  border-radius: 14px; overflow: hidden; text-decoration: none; color: inherit;
  background: rgb(255 255 255 / 0.04); outline: 1px solid rgb(255 255 255 / 0.08); outline-offset: -1px;
  animation: cv-rise 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: calc(var(--i, 0) * 80ms + 60ms);
  transition: transform 0.18s ease, background-color 0.14s ease, outline-color 0.14s ease; }
.cv-body { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 18px 20px; min-width: 0; }
.cv-role { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; line-height: 1.3; color: var(--white); background: rgb(255 255 255 / 0.12); }
.cv-name { display: flex; align-items: baseline; gap: 10px; margin-top: 4px; font-size: clamp(18px, 1.6vw, 21px); font-weight: 500; letter-spacing: -0.01em; color: var(--cv-ink); }
.cv-go { font-size: 17px; opacity: 0; transform: translateX(-6px); transition: opacity 0.18s ease, transform 0.18s ease; }
.cv-line { font-size: 14px; line-height: 1.45; color: var(--cv-soft); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cv-foot { display: grid; gap: 2px; margin-top: auto; padding-top: 6px; }
.cv-stats { display: flex; flex-wrap: wrap; gap: 0 8px; font-size: 13px; color: var(--cv-soft); }
.cv-dot { opacity: 0.6; }
.cv-when { font-size: 12.5px; color: rgb(255 255 255 / 0.5); }
.cv-when:empty { display: none; }
/* The right-hand panel: only the jigsaw piece. */
.cv-piece { position: relative; background: var(--cv-tile); border-left: 1px solid rgb(255 255 255 / 0.06); transition: background-color 0.14s ease; }
.cv-piece::before { content: ''; position: absolute; inset: 0; margin: auto; width: 46%; max-width: 84px; aspect-ratio: 1; opacity: 0.9;
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%27100%20100%20312%20312%27%3E%3Cpath%20fill%3D%27white%27%20d%3D%27M110%20167L194.96%20167C209.12%20167%20176.08%20110.36%20228%20110.36C279.92%20110.36%20246.88%20167%20261.04%20167L346%20167L346%20251.96C346%20266.12%20402.64%20233.08%20402.64%20285C402.64%20336.92%20346%20303.88%20346%20318.04L346%20403L261.04%20403C246.88%20403%20279.92%20346.36%20228%20346.36C176.08%20346.36%20209.12%20403%20194.96%20403L110%20403L110%20318.04C110%20303.88%20166.64%20336.92%20166.64%20285C166.64%20233.08%20110%20266.12%20110%20251.96L110%20167Z%27/%3E%3C/svg%3E") center / contain no-repeat; transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1); }

@media (hover: hover) {
  .cv-card:hover { background: var(--burnt); outline-color: var(--burnt); transform: translateY(-2px); }
  .cv-card:hover .cv-piece { background: rgb(0 0 0 / 0.12); }
  .cv-card:hover .cv-piece::before { transform: rotate(-8deg) scale(1.06); }
  .cv-card:hover :is(.cv-line, .cv-stats, .cv-when) { color: var(--white); }
  .cv-card:hover .cv-role { background: rgb(255 255 255 / 0.22); }
  .cv-card:hover .cv-go { opacity: 1; transform: none; }
}
.cv-card:active { background: var(--burnt-press); outline-color: var(--burnt-press); transform: translateY(-1px); }
.cv-card:active :is(.cv-line, .cv-stats, .cv-when) { color: var(--white); }
.cv-card:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
@keyframes cv-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (max-width: 720px) {
  .cover { padding-top: 8px; }
  .cv-card { min-height: 150px; grid-template-columns: minmax(0, 1fr) 92px; }
  .cv-body { padding: 14px 14px 16px; }
  .cv-go { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cv-card, .cv-go, .cv-piece::before { animation: none; transition: none; }
  .cv-card:hover, .cv-card:hover .cv-piece::before { transform: none; }
}

.dl { max-width: 880px; margin: 0 auto; }
.dl-head h1 { margin: 6px 0 0; }
.dl-lead { max-width: 68ch; color: var(--ink-60); margin: 12px 0 28px; }
.dl-section { margin-bottom: 32px; }
.dl-card { margin-bottom: 14px; }
.dl-card-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.dl-items { list-style: none; margin: 8px 0; padding: 0; border-top: 1px solid var(--line); }
.dl-items li { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.dl-items li a { margin-right: auto; }
.dl-send { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.dl-send textarea { width: 100%; }
