/* The home page of the applications (/accueil/): dark, one card per application, each with its own colour. */
:root { --bg: #0e1018; --card: #171a26; --line: #262b3d; --text: #eef0f7; --faint: #9aa2b8; color-scheme: dark; }
* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body { background: var(--bg); color: var(--text); font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; overflow-x: hidden; }
/* (soft lights behind the page) */
body::before, body::after { content: ""; position: fixed; z-index: -1; width: 70vmax; height: 70vmax; border-radius: 50%; filter: blur(90px); opacity: .22; pointer-events: none; }
body::before { left: -25vmax; top: -30vmax; background: #7c5cff; }
body::after { right: -30vmax; bottom: -35vmax; background: #2f9bff; }
.page { max-width: 1040px; margin: 0 auto; padding: clamp(28px, 7vh, 80px) 20px 48px; }
.head { display: flex; align-items: center; gap: 16px; margin-bottom: clamp(24px, 5vh, 48px); }
.mark { border-radius: 14px; box-shadow: 0 10px 30px rgba(80, 100, 255, .35); flex: none; }
h1 { margin: 0; font-size: clamp(26px, 4.500vw, 40px); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.when { margin: 4px 0 0; color: var(--faint); font-size: 15px; }
.when::first-letter { text-transform: uppercase; }

.grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.card { --a: #7c5cff; --b: #2f9bff; grid-column: span 2; position: relative; display: flex; flex-direction: column; gap: 14px; min-height: 190px; padding: 20px; border-radius: 20px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, 0) 55%), var(--card); border: 1px solid var(--line); color: inherit; text-decoration: none; overflow: hidden;
  transition: transform .16s ease, border-color .16s, box-shadow .16s; }
/* (six cards: three and three; with five, the last two would be wider: .card:nth-child(n+4) { grid-column: span 3 }) */
.card::after { content: ""; position: absolute; right: -60px; top: -60px; width: 190px; height: 190px; border-radius: 50%; background: radial-gradient(circle, var(--a), transparent 68%); opacity: .2; transition: opacity .16s; pointer-events: none; }
.card:hover, .card:focus-visible { transform: translateY(-4px); border-color: color-mix(in srgb, var(--a) 60%, var(--line)); box-shadow: 0 18px 40px -18px var(--a); outline: 0; }
.card:hover::after, .card:focus-visible::after { opacity: .38; }
.card:focus-visible { box-shadow: 0 0 0 3px color-mix(in srgb, var(--a) 55%, transparent), 0 18px 40px -18px var(--a); }
.card:active { transform: translateY(-1px); }
.tile { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 16px; background: linear-gradient(135deg, var(--a), var(--b)); color: #fff; box-shadow: 0 8px 22px -8px var(--a); flex: none; }
.tile svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 2.600; stroke-linecap: round; stroke-linejoin: round; }
.words { display: flex; flex-direction: column; gap: 4px; margin-top: auto; padding-right: 30px; }
.words b { font-size: 21px; font-weight: 700; letter-spacing: -.01em; }
.words span { color: var(--faint); font-size: 14.500px; }
.go { position: absolute; right: 20px; bottom: 20px; font-size: 20px; color: var(--faint); transition: transform .16s, color .16s; }
.card:hover .go, .card:focus-visible .go { transform: translateX(4px); color: var(--text); }
.mix { --a: #ff5fa2; --b: #ff9a4d; }
.cine { --a: #ff5b5b; --b: #ffb238; }
.jdr { --a: #e0a23a; --b: #b8641f; }
.vocal { --a: #7c5cff; --b: #2f9bff; }
.ff14 { --a: #25c7b0; --b: #2f86ff; }
.listes { --a: #5fd068; --b: #1f9d8b; }

@media (max-width: 860px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .card { grid-column: span 1; min-height: 170px; }
  .card:last-child:nth-child(odd) { grid-column: span 2; }
}
@media (max-width: 520px) {
  .grid { grid-template-columns: 1fr; gap: 12px; }
  .card, .card:last-child:nth-child(odd) { grid-column: span 1; flex-direction: row; align-items: center; min-height: 0; padding: 14px 16px; }
  .words { margin-top: 0; }
  .go { bottom: auto; top: 50%; margin-top: -14px; right: 16px; }
  .tile { width: 52px; height: 52px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
