/* NextShard : vitrine (17/11/2026, 3e version). Références : sites d'éditeurs de jeux (Supercell, Riot) pour la place donnée au jeu,
   et le soin « matériel » des cartes (coque + noyau). Clash Display pour les titres, General Sans pour le texte, icônes Phosphor fines.
   Une couleur d'accent (orange braise), un fond presque noir, jamais de texte sur une image. */
:root {
  --fond: #07080b;
  --surface: #0f1116;
  --surface-2: #151821;
  --filet: rgba(255, 255, 255, .08);
  --texte: #f1efea;
  --texte-2: #9b9a96;
  --accent: #ff7a3d;
  --accent-2: #ffb08a;
  --titre: "Clash Display", "General Sans", system-ui, sans-serif;
  --corps: "General Sans", system-ui, sans-serif;
  --ressort: cubic-bezier(.32, .72, 0, 1);
  --large: min(1360px, calc(100% - 48px));
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--fond); color: var(--texte); font: 400 17px/1.6 var(--corps); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-family: var(--titre); font-weight: 600; letter-spacing: -.01em; line-height: 1; }
p { margin: 0; }

/* ---------------------------------------------------------------- ambiance (fixe, jamais sur ce qui défile) */
.grain { position: fixed; inset: 0; z-index: 3; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.lueurs { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.lueurs span { position: absolute; border-radius: 50%; filter: blur(120px); opacity: .22; }
.lueurs span:first-child { width: 680px; height: 680px; left: -200px; top: -240px; background: #ff6a2b; }
.lueurs span:last-child { width: 560px; height: 560px; right: -180px; top: 30vh; background: #1d6b78; opacity: .18; }
main, .pied, .nav { position: relative; z-index: 1; }

/* ---------------------------------------------------------------- coque + noyau (cartes « matérielles ») */
.coque { padding: 6px; border-radius: 32px; background: rgba(255, 255, 255, .03); border: 1px solid var(--filet); height: 100%; }
.noyau { border-radius: 26px; background: var(--surface); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07); overflow: hidden; height: 100%; }

/* ---------------------------------------------------------------- pilules (boutons) */
.pilule { display: inline-flex; align-items: center; gap: 14px; padding: 8px 8px 8px 22px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .03); color: var(--texte); font: 500 16px var(--corps); white-space: nowrap; cursor: pointer;
  transition: transform .5s var(--ressort), background-color .5s var(--ressort), border-color .5s var(--ressort); }
.pilule i { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .08); font-size: 17px;
  transition: transform .5s var(--ressort); }
.pilule:hover { border-color: rgba(255, 255, 255, .3); }
.pilule:hover i { transform: translate(2px, -1px) scale(1.06); }
.pilule:active { transform: scale(.98); }
.pilule.pleine { background: var(--accent); border-color: var(--accent); color: #1b0b03; font-weight: 600; }
.pilule.pleine i { background: rgba(27, 11, 3, .14); }
.pilule.pleine:hover { background: var(--accent-2); border-color: var(--accent-2); }
.pilule.petite { padding: 5px 5px 5px 16px; font-size: 15px; }
.pilule.petite i { width: 30px; height: 30px; font-size: 15px; }
.pilule:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }
.badge { display: inline-block; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--filet); background: rgba(255, 255, 255, .03);
  font: 500 12px var(--corps); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2); }

/* ---------------------------------------------------------------- navigation : îlot flottant */
.nav { position: sticky; top: 18px; z-index: 5; width: max-content; max-width: calc(100% - 32px); margin: 18px auto 0; display: flex; align-items: center; gap: 28px;
  padding: 8px 8px 8px 20px; border-radius: 999px; border: 1px solid var(--filet); background: rgba(12, 13, 17, .72);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); }
.logo { display: flex; align-items: center; gap: 10px; font: 600 18px var(--titre); }
.nav nav { display: flex; gap: 26px; color: var(--texte-2); font-size: 15px; }
.nav nav a { transition: color .4s var(--ressort); }
.nav nav a:hover { color: var(--texte); }

/* ---------------------------------------------------------------- accueil */
.accueil { width: var(--large); margin: 0 auto; padding: 96px 0 120px; text-align: center; }
.accueil-texte { max-width: 900px; margin: 0 auto; }
.accueil h1 { margin-top: 28px; font-size: clamp(56px, 8.4vw, 124px); font-weight: 600; line-height: .92; }
.accueil h1 span { display: block; color: var(--accent); }
.accueil-texte p { max-width: 520px; margin: 28px auto 0; font-size: 19px; color: var(--texte-2); }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; }
.fenetre { margin-top: 80px; perspective: 1600px; }
.fenetre .coque { border-radius: 40px; padding: 8px; transform: rotateX(var(--incl, 14deg)) scale(var(--echelle, .94)); transform-origin: 50% 0;
  transition: transform .2s linear; box-shadow: 0 60px 140px -40px rgba(255, 106, 43, .25); }
.fenetre .noyau { border-radius: 32px; aspect-ratio: 16 / 9; }
.fenetre video { width: 100%; height: 100%; object-fit: cover; }

/* ---------------------------------------------------------------- titres de section */
.serveurs, .compte, .createurs { width: var(--large); margin: 0 auto; padding: 120px 0; }
.titre-section { margin-bottom: 56px; }
.titre-section h2 { font-size: clamp(40px, 5vw, 72px); }
.createurs h2 { font-size: clamp(36px, 4vw, 60px); text-wrap: balance; }
.titre-section p { margin-top: 16px; color: var(--texte-2); font-size: 19px; }

/* ---------------------------------------------------------------- serveurs */
.cartes { display: grid; grid-template-columns: 8fr 4fr; gap: 20px; }
.carte-image { overflow: hidden; aspect-ratio: 16 / 8; }
.carte-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ressort); }
.carte-serveur:hover .carte-image img { transform: scale(1.04); }
.carte-corps { padding: 28px 32px 32px; }
.carte-tete { display: flex; align-items: center; gap: 18px; }
.embleme { width: 72px; height: 72px; border-radius: 20px; object-fit: cover; box-shadow: 0 0 0 1px var(--filet); }
.carte-tete h3 { font-size: 40px; }
.carte-tete p { color: var(--texte-2); margin-top: 6px; }
.etat { margin-left: auto; align-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  background: rgba(111, 224, 138, .1); color: #8fe6a6; font-size: 13px; font-weight: 500; }
.etat::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #6fe08a; }
.carte-texte { margin: 22px 0 28px; max-width: 62ch; color: var(--texte-2); }
.carte-pied { display: flex; flex-wrap: wrap; gap: 12px; }
.ip .ip-texte { font-family: var(--titre); font-weight: 600; letter-spacing: .01em; }
.ip.copie .ip-texte::after { content: "  copiée"; font-family: var(--corps); font-weight: 500; opacity: .7; }
.carte-vide .noyau { display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; padding: 32px; min-height: 100%;
  background: radial-gradient(120% 80% at 100% 0%, rgba(255, 122, 61, .14), transparent 60%), var(--surface); }
.carte-vide .noyau > i { font-size: 40px; color: var(--accent); margin-bottom: auto; width: 64px; height: 64px; display: grid; place-items: center;
  border-radius: 20px; border: 1px dashed rgba(255, 255, 255, .2); }
.carte-vide h3 { font-size: 30px; }
.carte-vide p { color: var(--texte-2); }
.lien { display: inline-flex; align-items: center; gap: 8px; color: var(--accent-2); font-weight: 500; margin-top: 8px; }
.lien i { transition: transform .5s var(--ressort); }
.carte-vide:hover .lien i { transform: translateX(4px); }

/* ---------------------------------------------------------------- compte : bento asymétrique */
.bento { display: grid; grid-template-columns: 7fr 5fr; grid-template-rows: 1fr 1fr; gap: 20px; }
.tuile.grande { grid-row: span 2; }
.tuile .noyau { display: flex; flex-direction: column; gap: 12px; padding: 32px; }
.tuile i { font-size: 30px; color: var(--accent); }
.tuile h3 { font-size: 30px; }
.tuile p { color: var(--texte-2); max-width: 46ch; }
.tuile.grande .noyau { padding: 0; }
.tuile.grande img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.tuile-texte { padding: 28px 32px 32px; display: flex; flex-direction: column; gap: 12px; }
.tuile.chaude .noyau { background: linear-gradient(160deg, #ff8a4f, #e6551b); color: #1b0b03; justify-content: flex-end; }
.tuile.chaude i { color: #1b0b03; margin-bottom: auto; }
.tuile.chaude p { color: #3d1807; }
.tuile.commande .noyau { justify-content: flex-end; background: radial-gradient(90% 70% at 0% 0%, rgba(29, 107, 120, .35), transparent 70%), var(--surface); }
.tuile.commande code { margin-bottom: auto; font: 600 64px/1 var(--titre); color: var(--texte); }
.tuile.commande code::first-letter { color: var(--accent); }

/* ---------------------------------------------------------------- créateurs : texte collant + pile de cartes */
.createurs { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.createurs-texte { position: sticky; top: 120px; }
.createurs h2 { margin-top: 24px; }
.createurs-texte p { margin: 24px 0 36px; color: var(--texte-2); font-size: 19px; max-width: 46ch; }
.pile { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.pile .noyau { display: grid; grid-template-columns: 56px 1fr; grid-template-rows: auto auto; column-gap: 20px; row-gap: 6px; padding: 28px; }
.pile i { grid-row: span 2; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 18px; background: rgba(255, 122, 61, .12);
  color: var(--accent); font-size: 26px; }
.pile h3 { font-size: 24px; align-self: end; }
.pile p { color: var(--texte-2); }
.pile li:nth-child(odd) { transform: rotate(-.6deg); }
.pile li:nth-child(even) { transform: rotate(.5deg) translateX(18px); }

/* ---------------------------------------------------------------- pied */
.pied { width: var(--large); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 48px 0 64px;
  border-top: 1px solid var(--filet); }
.pied p { max-width: 520px; font-size: 14px; color: var(--texte-2); text-align: right; }

/* ---------------------------------------------------------------- apparition */
@media (prefers-reduced-motion: no-preference) {
  .revele { opacity: 0; transform: translateY(48px); filter: blur(8px); transition: opacity 1s var(--ressort), transform 1s var(--ressort), filter 1s var(--ressort); }
  .revele.vu { opacity: 1; transform: none; filter: none; }
  .pile li.revele.vu:nth-child(odd) { transform: rotate(-.6deg); }
  .pile li.revele.vu:nth-child(even) { transform: rotate(.5deg) translateX(18px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fenetre .coque { transform: none; }
}

/* ---------------------------------------------------------------- tablettes et téléphones */
@media (max-width: 960px) {
  .nav nav { display: none; }
  .cartes, .bento, .createurs { grid-template-columns: 1fr; }
  .tuile.grande { grid-row: auto; }
  .tuile.chaude .noyau, .tuile.commande .noyau { min-height: 260px; }
  .createurs-texte { position: static; }
  .pile li:nth-child(n), .pile li.revele.vu:nth-child(n) { transform: none; }
  .serveurs, .compte, .createurs { padding: 80px 0; }
  .accueil { padding: 64px 0 80px; }
  .fenetre { margin-top: 48px; }
  .fenetre .coque { border-radius: 28px; }
  .fenetre .noyau { border-radius: 22px; }
}
@media (max-width: 600px) {
  .carte-corps { padding: 22px; }
  .carte-tete h3 { font-size: 32px; }
  .etat { display: none; }
  .pied { flex-direction: column; align-items: flex-start; }
  .pied p { text-align: left; }
}
