/* SOCIABET landing « affiche de jour de match » : blocs de couleur pleine largeur,
   display massif (Archivo Black), tickers de stade, téléphones inclinés à ombre dure.
   Feuille dédiée à index.html ; les pages légales/aide gardent styles.css. */

:root {
  --ink: #1A1730;
  --ink-soft: #6E667E;
  --paper: #FBE9D2;
  --pink: #FF4D97;
  --violet: #7C5CE0;
  --teal: #1FB6A6;
  --orange: #FF4116;
  --gold: #FFC931;
  --display: "Anton", system-ui, sans-serif;
  --body: "Space Grotesk", system-ui, sans-serif;
  --mono: "Space Mono", ui-monospace, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body { background: var(--paper); color: var(--ink); font-family: var(--body); line-height: 1.55; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; border-radius: 4px; }

.in { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ============ header ============ */
.top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 22px 0 10px; flex-wrap: wrap;
}
.wordmark {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--display); font-size: 22px; letter-spacing: 0.5px;
  text-decoration: none; line-height: 1;
}
.wordmark .b { background: var(--pink); color: #fff; border: 3px solid var(--ink); border-radius: 12px; padding: 4px 10px; }
.top nav { display: flex; gap: 9px; align-items: center; }
.top nav a {
  font-family: var(--mono); font-size: 13px; text-decoration: none;
  padding: 8px 14px; border: 2.5px solid var(--ink); border-radius: 999px; background: #fff;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.top nav a:hover { transform: translate(-1px, -2px); box-shadow: 3px 4px 0 var(--ink); }
.top nav a.dl { background: var(--ink); color: #fff; font-weight: 700; }

/* ============ hero ============ */
.hero { position: relative; padding: 44px 0 86px; }
.hero .in { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }
.hero-copy { flex: 1 1 340px; min-width: 0; position: relative; z-index: 2; }
.eyebrow {
  display: inline-block; font-family: var(--mono); font-size: 12px; font-weight: 700;
  letter-spacing: 1px; color: #fff; background: var(--ink);
  padding: 7px 14px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 {
  font-family: var(--display); text-transform: uppercase;
  font-size: clamp(42px, 7.2vw, 74px); line-height: 0.98; letter-spacing: -0.5px;
}
.hero h1 span { display: block; }
.hero h1 .l3 {
  color: var(--pink);
  text-shadow: 3px 3px 0 var(--ink);
}
.hero-sub { font-size: 18px; font-weight: 500; max-width: 42ch; margin: 24px 0 28px; }
.hero-note { font-family: var(--mono); font-size: 12px; color: var(--ink-soft); margin-top: 14px; }

.appstore {
  display: inline-flex; align-items: center; gap: 13px;
  background: var(--ink); color: #fff; text-decoration: none;
  padding: 14px 26px; border-radius: 18px; border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 var(--pink);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.appstore:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--pink); }
.appstore .apple { font-size: 30px; line-height: 1; }
.appstore-txt { display: flex; flex-direction: column; line-height: 1.12; font-family: var(--display); font-size: 19px; }
.appstore-txt small { font-family: var(--body); font-weight: 500; font-size: 11.5px; opacity: 0.8; }
.appstore.on-color { box-shadow: 6px 6px 0 var(--ink); background: #fff; color: var(--ink); border-color: var(--ink); }
.appstore.on-color:hover { box-shadow: 2px 2px 0 var(--ink); }

/* téléphone du hero sur son éclat rose */
.hero-stage { flex: 0 0 380px; position: relative; display: flex; justify-content: center; margin: 0 auto; }
.burst {
  position: absolute; inset: -30px; margin: auto; width: 400px; height: 400px;
  background:
    repeating-conic-gradient(from 0deg, var(--pink) 0deg 14deg, transparent 14deg 28deg);
  border-radius: 50%; opacity: 0.9; z-index: 0;
  animation: spin 46s linear infinite;
}
.burst::after {
  content: ""; position: absolute; inset: 44px; background: var(--paper);
  border: 4px solid var(--ink); border-radius: 50%;
}
.phone { position: relative; z-index: 1; width: 290px; transform: rotate(3deg); transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); }
.phone img { border: 4px solid var(--ink); border-radius: 34px; box-shadow: 12px 14px 0 rgba(26, 23, 48, 0.9); }
.phone:hover { transform: rotate(0deg) translateY(-8px); }
.ball { position: absolute; font-size: 34px; z-index: 2; filter: drop-shadow(2px 3px 0 rgba(26, 23, 48, 0.4)); }
.ball.b1 { top: -12px; left: -10px; animation: float 5.2s ease-in-out infinite; }
.ball.b2 { bottom: 30px; left: -34px; font-size: 27px; animation: float 6.4s ease-in-out infinite reverse; }
.ball.b3 { top: 40px; right: -26px; font-size: 30px; animation: float 4.6s ease-in-out 0.8s infinite; }

@keyframes float { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-16px) rotate(8deg); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ ticker de stade ============ */
.ticker {
  background: var(--ink); color: var(--paper);
  border-top: 4px solid var(--ink); border-bottom: 4px solid var(--ink);
  overflow: hidden; padding: 13px 0; position: relative; z-index: 3;
}
.ticker.gold { background: var(--gold); color: var(--ink); }
.ticker-track { display: flex; width: max-content; animation: slide 28s linear infinite; }
.ticker span {
  font-family: var(--display); text-transform: uppercase; font-size: 17px;
  letter-spacing: 1px; white-space: nowrap; padding: 0 18px; position: relative;
}
.ticker span::after { content: "✦"; position: absolute; right: -7px; opacity: 0.55; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ============ sections affiche ============ */
.block { padding: 84px 0; position: relative; }
.block.violet { background: var(--violet); color: #fff; }
.block.orange { background: var(--orange); color: #fff; }
.block.teal { background: var(--teal); color: #fff; }
.block.pink { background: var(--pink); color: #fff; }
.block.inkbg { background: var(--ink); color: var(--paper); }

.block .in { display: flex; align-items: center; gap: 54px; flex-wrap: wrap; }
.block.rev .in { flex-direction: row-reverse; }
.block-copy { flex: 1 1 320px; min-width: 0; }
.kicker {
  display: inline-block; font-family: var(--mono); font-size: 12px; font-weight: 700;
  letter-spacing: 1.5px; background: var(--ink); color: #fff;
  padding: 6px 13px; border-radius: 999px; margin-bottom: 18px;
}
.block.inkbg .kicker { background: var(--gold); color: var(--ink); }
.block h2 {
  font-family: var(--display); text-transform: uppercase;
  font-size: clamp(30px, 5vw, 46px); line-height: 1.02; letter-spacing: -0.5px;
  margin-bottom: 18px; text-wrap: balance;
}
.block p { font-size: 16.5px; font-weight: 500; max-width: 52ch; }
.block p strong { background: var(--ink); color: #fff; padding: 1px 7px; border-radius: 7px; white-space: nowrap; }
.block.inkbg p strong { background: var(--gold); color: var(--ink); }

.block .phone { width: min(270px, 74vw); margin: 0 auto; flex: 0 0 auto; }
.block .phone img { box-shadow: 12px 14px 0 rgba(26, 23, 48, 0.55); }
.block.rev .phone { transform: rotate(-3deg); }
.block.rev .phone:hover { transform: rotate(0deg) translateY(-8px); }

/* ============ comment ça marche ============ */
.how { padding: 80px 0 30px; }
.how-head { text-align: center; margin-bottom: 44px; }
.how-head h2 { font-family: var(--display); text-transform: uppercase; font-size: clamp(34px, 6vw, 56px); letter-spacing: -0.5px; }
.how-head p { font-family: var(--mono); font-size: 13px; color: var(--ink-soft); margin-top: 8px; }
.how-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.how-card {
  border: 4px solid var(--ink); border-radius: 26px; padding: 26px 22px 28px;
  color: #fff; position: relative;
  box-shadow: 8px 9px 0 rgba(26, 23, 48, 0.85);
}
.how-card.c1 { background: var(--pink); transform: rotate(-0.7deg); }
.how-card.c2 { background: var(--violet); transform: rotate(0.6deg); }
.how-card.c3 { background: var(--teal); transform: rotate(-0.5deg); }
.how-card .phone { width: min(220px, 62vw); margin: 0 auto 20px; transform: rotate(0deg); }
.how-card .phone img { box-shadow: 8px 9px 0 rgba(26, 23, 48, 0.6); }
.hnum {
  position: absolute; top: -20px; left: -14px;
  width: 52px; height: 52px; border-radius: 999px;
  background: var(--gold); color: var(--ink); border: 4px solid var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-size: 23px;
  box-shadow: 4px 4px 0 rgba(26, 23, 48, 0.7);
}
.how-card h3 { font-family: var(--display); text-transform: uppercase; font-size: 19px; margin-bottom: 8px; letter-spacing: 0.3px; }
.how-card p { font-size: 14.5px; font-weight: 500; }

/* ============ mosaïque features ============ */
.more { padding: 84px 0; background: var(--ink); color: var(--paper); }
.more h2 { font-family: var(--display); text-transform: uppercase; font-size: clamp(30px, 5vw, 46px); margin-bottom: 34px; }
.mosaic { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.tile {
  border: 4px solid var(--paper); border-radius: 22px; padding: 22px;
  color: var(--ink); transition: translate 0.16s ease, box-shadow 0.16s ease;
}
.tile:hover { translate: -2px -4px; box-shadow: 6px 8px 0 rgba(251, 233, 210, 0.35); }
.tile .emo { font-size: 30px; margin-bottom: 12px; }
.tile h3 { font-family: var(--display); text-transform: uppercase; font-size: 16px; margin-bottom: 7px; }
.tile p { font-size: 14px; font-weight: 500; }
.tile.t1 { background: var(--gold); }
.tile.t2 { background: var(--pink); color: #fff; }
.tile.t3 { background: var(--paper); }
.tile.t4 { background: var(--teal); color: #fff; }
.tile.t5 { background: var(--violet); color: #fff; }
.tile.t6 { background: var(--orange); color: #fff; }

/* ============ CTA final ============ */
.last { padding: 92px 0; text-align: center; background: var(--paper); position: relative; }
.last h2 {
  font-family: var(--display); text-transform: uppercase;
  font-size: clamp(42px, 8vw, 84px); line-height: 0.96; letter-spacing: -1px;
  margin-bottom: 16px;
}
.last h2 .accent { color: var(--pink); text-shadow: 4px 4px 0 var(--ink); }
.last p { font-size: 17px; font-weight: 500; max-width: 46ch; margin: 0 auto 30px; }

/* ============ aide + légal ============ */
.quiet { padding: 20px 0 70px; }
.quiet .card {
  border: 3px solid var(--ink); border-radius: 20px; background: #fff;
  padding: 22px 24px; margin-bottom: 16px; font-size: 15px;
}
.quiet .card .tag {
  display: inline-block; font-family: var(--mono); font-size: 11.5px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase; color: #fff; background: var(--teal);
  border: 2px solid var(--ink); padding: 4px 12px; border-radius: 999px; margin-bottom: 10px;
}
.quiet .card a { text-decoration-color: var(--pink); text-decoration-thickness: 2px; }

footer {
  background: var(--ink); color: var(--paper); padding: 26px 0 34px;
  font-family: var(--mono); font-size: 12px;
}
footer .in { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer a { color: var(--paper); opacity: 0.8; }
footer a:hover { opacity: 1; }

/* ============ reveals au scroll ============ */
html.js .rv { opacity: 0; transform: translateY(30px); }
html.js .rv.vis { opacity: 1; transform: none; transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
html.js .hero-copy > * { opacity: 0; transform: translateY(24px); animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
html.js .hero-copy > *:nth-child(2) { animation-delay: 0.08s; }
html.js .hero-copy > *:nth-child(3) { animation-delay: 0.18s; }
html.js .hero-copy > *:nth-child(4) { animation-delay: 0.28s; }
html.js .hero-copy > *:nth-child(5) { animation-delay: 0.36s; }
html.js .hero-stage { opacity: 0; transform: scale(0.92) rotate(6deg); animation: pop 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.25s forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes pop { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html.js .rv, html.js .hero-copy > *, html.js .hero-stage { opacity: 1; transform: none; animation: none; transition: none; }
  .ticker-track, .burst, .ball { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============ responsive ============ */
@media (max-width: 760px) {
  .hero { padding: 26px 0 64px; }
  .hero-stage { flex-basis: 100%; }
  .burst { width: 330px; height: 330px; inset: -10px; }
  .block { padding: 62px 0; }
  .block .in, .block.rev .in { flex-direction: column; }
  .how-card { transform: none !important; }
}

/* ---- section thèmes : deux téléphones ---- */
.duo { display: flex; gap: 0; flex: 0 0 auto; margin: 0 auto; }
.duo .phone { width: min(225px, 56vw); }
.duo .tilt-l { transform: rotate(-5deg) translateX(14px); z-index: 1; }
.duo .tilt-r { transform: rotate(5deg) translateX(-14px) translateY(22px); }
.duo .phone:hover { transform: rotate(0deg) translateY(-6px); z-index: 2; }

/* ---- responsive mobile affiné ---- */
@media (max-width: 760px) {
  .in { padding: 0 18px; }
  .hero h1 { font-size: clamp(40px, 12vw, 54px); }
  .hero-sub { font-size: 16px; }
  .block { padding: 54px 0; }
  .block h2 { font-size: clamp(27px, 7.4vw, 34px); }
  .block p { font-size: 15px; }
  .block .phone { width: min(240px, 70vw); }
  .ticker span { font-size: 14px; padding: 0 14px; }
  .ticker { padding: 10px 0; }
  .how { padding: 56px 0 20px; }
  .how-card { padding: 22px 18px 24px; }
  .more { padding: 60px 0; }
  .tile { padding: 18px; }
  .last { padding: 64px 0; }
  .duo .phone { width: min(170px, 42vw); }
  .quiet .card { padding: 18px; font-size: 14px; }
}

/* trio de thèmes */
.duo .tilt-c { transform: rotate(0deg) translateY(-10px); z-index: 2; }
@media (min-width: 761px) { .duo .phone { width: min(190px, 30vw); } }

/* la pièce à J de l'app */
.jcoin-old {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 999px;
  background: radial-gradient(circle at 34% 30%, #FFE28A, var(--gold) 58%, #E5A50A);
  border: 3px solid var(--ink);
  font-family: var(--display); font-size: 22px; color: var(--ink);
  box-shadow: inset -2px -3px 0 rgba(26, 23, 48, 0.22), 2px 3px 0 rgba(26, 23, 48, 0.35);
}

/* icônes maison */
.svgic { width: 46px; height: 46px; display: block; }
.tic { width: 1.05em; height: 1.05em; vertical-align: -0.14em; display: inline-block; }
.ball { width: 40px; height: 40px; }
.ball.b2 { width: 34px; height: 34px; }
.ball.b3 { width: 36px; height: 36px; }

/* bouton remonter */
.totop {
  position: fixed; right: 16px; bottom: 18px; z-index: 50;
  width: 52px; height: 52px; border-radius: 999px;
  background: var(--ink); color: var(--paper);
  border: 3px solid var(--paper); outline: 3px solid var(--ink);
  font-family: var(--display); font-size: 22px; cursor: pointer;
  opacity: 0; pointer-events: none; transform: translateY(14px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  box-shadow: 0 6px 18px rgba(26, 23, 48, 0.35);
}
.totop.show { opacity: 1; pointer-events: auto; transform: none; }

/* screens moins imposants sur mobile */
@media (max-width: 760px) {
  .hero .shot, .phone { width: min(230px, 62vw) !important; }
  .block .phone { width: min(200px, 56vw) !important; }
  .how-card .phone { width: min(180px, 50vw) !important; }
  .duo .phone { width: min(140px, 34vw) !important; }
  .burst { width: 280px; height: 280px; }
}

/* bloc sur papier (pause visuelle) */
.block.paper { background: var(--paper); color: var(--ink); }
.block.paper .kicker { background: var(--pink); }
.block.paper p strong { background: var(--pink); color: #fff; }

/* la flèche du bouton remonter, réellement centrée (c'est un lien, pas un bouton) */
.totop {
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; line-height: 1; padding: 0;
}

/* le reveal (.rv.vis) écrasait la transition du hover des tuiles : on déclare les deux.
   Le survol anime translate/box-shadow (0.16s), le reveal anime opacity/transform (0.7s). */
html.js .tile.rv.vis {
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              translate 0.16s ease, box-shadow 0.16s ease;
}
