/* playvivarena.com : la page d'accueil de Vivarena.
   Même identité que le jeu (« coffret du collectionneur », règles en tête de src/style.css) :
   nuit de l'arène, vinyle crème cerné d'encre, ombres pleines, or pour l'action, jamais de flou ni de verre dépoli. */
@font-face { font-family: "Titan One"; src: url(/fonts/titan-one-latin-400-normal.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Baloo 2"; src: url(/fonts/baloo-2-latin-500-normal.woff2) format("woff2"); font-weight: 400 500; font-display: swap; }
@font-face { font-family: "Baloo 2"; src: url(/fonts/baloo-2-latin-700-normal.woff2) format("woff2"); font-weight: 600 800; font-display: swap; }
:root {
  --ink: #1a1336; --night: #141030; --night2: #1e1946; --night3: #2a2360;
  --cream: #f4efe2; --cream2: #e9e1cc; --paper-mute: #6f6688; --mute: #b3abd6;
  --gold: #ffc63f; --gold-lo: #e7951b; --feu: #ff8a2a; --eau: #3aa8ff; --plante: #5ad66d; --ally: #45d2ff; --foe: #ff4d7a;
  --display: "Titan One", "Arial Rounded MT Bold", "Arial Black", system-ui, sans-serif;
  --body: "Baloo 2", "Nunito", "Segoe UI", system-ui, sans-serif;
  --outline: 0 3px 0 var(--ink), 3px 0 0 var(--ink), -3px 0 0 var(--ink), 0 -3px 0 var(--ink), 2px 2px 0 var(--ink), -2px 2px 0 var(--ink), 2px -2px 0 var(--ink), -2px -2px 0 var(--ink), 0 6px 0 var(--ink);
  --m-grid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44'%3E%3Cpath d='M22 5 39 22 22 39 5 22z' fill='none' stroke='white' stroke-opacity='.045' stroke-width='2'/%3E%3Ccircle cx='22' cy='22' r='2' fill='white' fill-opacity='.05'/%3E%3C/svg%3E");
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--m-grid), radial-gradient(1200px 700px at 30% 0%, #261f5c 0%, var(--night) 62%); background-color: var(--night); color: var(--cream); font-family: var(--body); font-size: 18px; line-height: 1.45; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: .01em; margin: 0; line-height: 1.08; text-wrap: balance; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 22px; }

/* En-tête */
.top { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.marque { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-size: 24px; text-shadow: 0 2px 0 var(--ink); }
.marque img { width: 40px; height: 40px; border-radius: 10px; border: 2px solid var(--ink); box-shadow: 0 3px 0 var(--ink); }
.langue { font-weight: 700; font-size: 15px; text-decoration: none; background: var(--night2); border: 2px solid var(--ink); box-shadow: 0 3px 0 var(--ink); border-radius: 999px; padding: 4px 14px; }
.langue:hover { background: var(--night3); }

/* Ouverture */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 56px; align-items: center; padding: 28px 0 64px; }
.hero h1 { font-size: clamp(42px, 6vw, 66px); color: var(--cream); text-shadow: var(--outline); }
.hero h1 .or { color: var(--gold); }
.accroche { font-size: 21px; color: var(--mute); margin: 22px 0 28px; max-width: 34ch; }
.badges { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.badges a { display: block; line-height: 0; border-radius: 10px; }
.badges .apple { height: 54px; width: auto; }
.badges .google { height: 80px; width: auto; margin: -13px -12px; } /* le badge de Google porte sa propre marge */
.mention { font-size: 14px; color: var(--mute); margin-top: 14px; }

.telephone { width: 300px; aspect-ratio: 9 / 16; border-radius: 38px; border: 9px solid #07061a; background: #07061a; overflow: hidden; box-shadow: 0 0 0 3px var(--ink), 10px 14px 0 var(--ink); transform: rotate(2deg); }
.telephone img, .telephone video { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }

/* Les trois piliers */
.piliers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; padding-bottom: 72px; }
.carte { background: var(--cream); color: var(--ink); border: 3px solid var(--ink); border-radius: 22px; box-shadow: 0 7px 0 var(--ink); padding: 24px 24px 26px; position: relative; }
.carte::before { content: ""; position: absolute; left: 24px; top: -3px; width: 56px; height: 8px; border-radius: 0 0 6px 6px; background: var(--c, var(--gold)); border: 3px solid var(--ink); border-top: 0; }
.carte h2 { font-size: 25px; margin: 8px 0 10px; }
.carte p { margin: 0; color: #463d63; font-size: 17px; }
.carte.feu { --c: var(--feu); } .carte.eau { --c: var(--eau); } .carte.plante { --c: var(--plante); }

/* Captures */
.captures h2, .fin h2 { font-size: clamp(30px, 4vw, 42px); text-shadow: var(--outline); text-align: center; }
.defile { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 34px 22px 30px; margin: 0 -22px; scrollbar-width: none; }
.defile::-webkit-scrollbar { display: none; }
.defile figure { margin: 0; flex: 0 0 220px; scroll-snap-align: center; text-align: center; }
.defile img { width: 220px; aspect-ratio: 1290 / 2370; border-radius: 22px; border: 3px solid var(--ink); box-shadow: 0 7px 0 var(--ink); display: block; background: var(--night2); }
.defile figcaption { font-weight: 700; margin-top: 14px; font-size: 16px; }

/* Dernier appel */
.fin { text-align: center; padding: 60px 0 76px; }
.fin p { color: var(--mute); margin: 14px auto 26px; max-width: 46ch; }
.fin .badges { justify-content: center; }

/* Pied de page */
footer { border-top: 2px solid var(--night3); padding: 26px 0 40px; font-size: 15px; color: var(--mute); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer a { text-decoration: none; } footer a:hover { color: var(--cream); text-decoration: underline; }

@media (max-width: 860px) {
  body { font-size: 17px; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 40px; text-align: center; padding-top: 12px; }
  .accroche { margin-left: auto; margin-right: auto; }
  .hero .badges { justify-content: center; }
  .telephone { width: 250px; margin: 0 auto; }
  .piliers { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .badges { gap: 10px; }
  .badges .apple { height: 44px; }
  .badges .google { height: 65px; margin: -10.5px -10px; }
}
html, body { overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { .telephone { transform: none; } }
