/* =====================================================================
   ACCUEIL — motion design (CSS + JS léger, compatible CSP stricte)
   Chargé uniquement sur la page d'accueil.
   ===================================================================== */
.home { overflow-x: clip; }  /* clip (et non hidden) : n'empêche pas les éléments collants (en-tête, navigation) */
.home .section { padding: clamp(56px, 9vw, 104px) 0; }
.home h2 { font-size: clamp(1.6rem, 4.2vw, 2.5rem); }
.home .section-head p { font-size: 1.05rem; line-height: 1.65; }

/* Révélation au défilement (le JS ne masque que ce qui est hors écran : pas de clignotement) */
[data-reveal="pending"] { opacity: 0; transform: translateY(28px); }
[data-reveal="shown"] { opacity: 1; transform: none;
  transition: opacity .75s ease, transform .75s cubic-bezier(.2,.7,.2,1); transition-delay: var(--reveal-delay, 0ms); }

/* Boutons animés */
.btn-pulse { position: relative; }
.btn-pulse::before { content: ""; position: absolute; inset: -4px; border-radius: inherit; border: 2px solid #2bd46d; opacity: 0;
  animation: pulse-ring 2.4s ease-out infinite; pointer-events: none; }
@keyframes pulse-ring { 0% { transform: scale(.94); opacity: .9; } 100% { transform: scale(1.16); opacity: 0; } }

/* ---------- HERO ---------- */
.h-hero { position: relative; overflow: hidden; color: #fff; background: #050f24; isolation: isolate; }
.h-hero__bg { position: absolute; inset: 0; z-index: -1; }
.h-hero__bg::before { content: ""; position: absolute; inset: -4%;
  background: url("../img/banners/player-football-mobile.webp") 78% 30% / cover no-repeat;
  opacity: .5; filter: saturate(1.25) blur(1.5px); animation: kenburns 26s ease-in-out infinite alternate; }
.h-hero__bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, #050f24 0%, rgba(5,15,36,.94) 34%, rgba(5,15,36,.6) 64%, rgba(5,15,36,.82) 100%),
              linear-gradient(0deg, #050f24 0%, transparent 30%); }
@media (max-width: 959px) {
  .h-hero__bg::after { background: linear-gradient(180deg, rgba(5,15,36,.86), rgba(5,15,36,.94) 55%, #050f24); }
}
@keyframes kenburns { from { transform: scale(1.04); } to { transform: scale(1.14) translate3d(-2%, -2%, 0); } }
.h-pitch { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.h-pitch * { fill: none; stroke: rgba(255,255,255,.07); stroke-width: 2; stroke-dasharray: 2400; stroke-dashoffset: 2400;
  animation: draw 3.2s ease forwards .3s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.h-orb { position: absolute; z-index: 1; border-radius: 50%; filter: blur(60px); opacity: .55; animation: float-orb 14s ease-in-out infinite alternate; }
.h-orb--a { width: 420px; height: 420px; background: #1a6fd6; top: -120px; left: -120px; }
.h-orb--b { width: 320px; height: 320px; background: #f5c400; bottom: -140px; right: 8%; opacity: .22; animation-duration: 18s; }
@keyframes float-orb { to { transform: translate3d(60px, 40px, 0) scale(1.15); } }
.h-beam { position: absolute; z-index: 1; top: -20%; width: 180px; height: 140%;
  background: linear-gradient(180deg, rgba(255,255,255,.12), transparent 70%); filter: blur(8px);
  transform-origin: top center; animation: sweep 9s ease-in-out infinite alternate; }
.h-beam--1 { left: 18%; transform: rotate(18deg); }
.h-beam--2 { right: 12%; transform: rotate(-22deg); animation-delay: -4s; }
@keyframes sweep { from { opacity: .25; } to { opacity: .7; } }

.h-hero__inner { position: relative; z-index: 2; display: grid; gap: clamp(36px, 6vw, 64px); align-items: center;
  padding-top: clamp(48px, 9vw, 104px); padding-bottom: clamp(72px, 10vw, 120px); }
@media (min-width: 960px) { .h-hero__inner { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); } }
.h-hero h1 { color: #fff; font-size: clamp(2.05rem, 6.2vw, 3.6rem); line-height: 1.08; letter-spacing: -.02em; margin-bottom: .6em; }
.h-shimmer { background: linear-gradient(100deg, #f5c400 0%, #fff1a8 25%, #f5c400 50%, #ffdd33 75%, #f5c400 100%);
  background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 5s linear infinite; }
@keyframes shimmer { to { background-position: -220% 0; } }
.h-lead { font-size: clamp(1rem, 2.2vw, 1.15rem); line-height: 1.7; color: rgba(255,255,255,.86); max-width: 36em; }
.h-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.h-cta .btn { min-height: 52px; padding: .85rem 1.5rem; font-size: 1rem; }
.h-cta--center { justify-content: center; }
@media (max-width: 480px) { .h-cta .btn { width: 100%; } }
.h-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; margin: 2.2rem 0 0; }
@media (min-width: 640px) { .h-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.h-stats div { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.13); border-radius: 14px; padding: .9rem 1rem;
  backdrop-filter: blur(6px); min-width: 0; }
.h-stats dt { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.68); font-weight: 700; }
.h-stats dd { margin: .25rem 0 0; font-family: var(--display); font-weight: 900; font-size: 1.7rem; color: #fff; font-variant-numeric: tabular-nums; }

/* entrée du hero (au-dessus de la ligne de flottaison : animation CSS, sans JS) */
.h-hero__copy > * { animation: h-rise .9s cubic-bezier(.2,.7,.2,1) both; }
.h-hero__copy > :nth-child(2) { animation-delay: .1s; }
.h-hero__copy > :nth-child(3) { animation-delay: .2s; }
.h-hero__copy > :nth-child(4) { animation-delay: .3s; }
.h-hero__copy > :nth-child(5) { animation-delay: .4s; }
@keyframes h-rise { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }

.h-hero__media { position: relative; justify-self: center; width: min(100%, 370px); padding: 30px 34px;
  animation: h-rise 1s cubic-bezier(.2,.7,.2,1) .35s both; }
.h-phone { border-radius: 30px; padding: 10px; background: linear-gradient(160deg, #1f4a8f, #040b1c);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.1), 0 0 60px -10px rgba(26,111,214,.6);
  animation: bob 6s ease-in-out infinite; }
.h-phone video { width: 100%; aspect-ratio: 9 / 16; border-radius: 22px; background: #000; object-fit: cover; display: block; }
@keyframes bob { 50% { transform: translateY(-10px); } }
.h-float { position: absolute; z-index: 3; background: rgba(255,255,255,.97); color: var(--ink); border-radius: 14px; padding: .55rem .8rem;
  box-shadow: 0 18px 40px -16px rgba(0,0,0,.6); font-weight: 800; font-size: .85rem; white-space: nowrap; animation: bob 5s ease-in-out infinite; }
.h-float--code { top: 12%; left: 0; display: grid; gap: 2px; border: 2px solid var(--gold); background: linear-gradient(180deg, #fffbe6, #fff1b3); }
.h-float__label { font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-deep); }
.h-typing { font-family: var(--display); font-weight: 900; font-size: 1.35rem; color: var(--bordeaux); letter-spacing: .06em; min-width: 4.5ch; }
.h-typing::after { content: "|"; margin-left: 2px; color: var(--bordeaux); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.h-float--player { bottom: 24%; right: 0; animation-delay: -1.5s; }
.h-float--player span { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: #1f9d55; color: #fff; margin-right: .35rem; }
.h-float--rate { bottom: 5%; left: 4%; animation-delay: -3s; background: var(--bordeaux); color: #fff; }
.h-float--rate strong { color: #ffe14d; }
@media (max-width: 420px) {
  .h-hero__media { padding: 26px 16px; }
  .h-float { font-size: .74rem; padding: .45rem .6rem; }
  .h-typing { font-size: 1.1rem; }
}
.h-scroll { position: absolute; z-index: 3; left: 50%; bottom: 22px; width: 26px; height: 42px; margin-left: -13px;
  border: 2px solid rgba(255,255,255,.5); border-radius: 14px; }
.h-scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff;
  animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(14px); } }
@media (max-width: 959px) { .h-scroll { display: none; } }

/* ---------- Réseau animé ---------- */
.h-mini-steps { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: .7rem; }
.h-mini-steps li { display: flex; gap: .9rem; align-items: center; background: var(--paper); border: 1px solid var(--line);
  border-radius: 14px; padding: .9rem 1rem; box-shadow: var(--shadow); }
.h-mini-steps b { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: var(--bordeaux); color: #fff; font-family: var(--display); }
.h-network { position: relative; max-width: 460px; width: 100%; justify-self: center; }
.h-network svg { width: 100%; height: auto; overflow: visible; display: block; }
.h-links line { stroke: #9fc3f0; stroke-width: 2.5; stroke-dasharray: 6 8; animation: flow 1.6s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -28; } }
.h-nodes circle { fill: #fff; stroke: var(--bordeaux); stroke-width: 3; transform-box: fill-box; transform-origin: center;
  animation: node 2.8s ease-in-out infinite; }
.h-nodes circle:nth-child(2) { animation-delay: .4s; }
.h-nodes circle:nth-child(3) { animation-delay: .8s; }
.h-nodes circle:nth-child(4) { animation-delay: 1.2s; }
.h-nodes circle:nth-child(5) { animation-delay: 1.6s; }
.h-nodes circle:nth-child(6) { animation-delay: 2s; }
@keyframes node { 50% { transform: scale(1.18); fill: #dbeafe; } }
.h-core rect { fill: var(--bordeaux-ink); stroke: var(--gold); stroke-width: 2.5; }
.h-core text { fill: #fff; font-family: var(--display); font-weight: 900; font-size: 15px; letter-spacing: .08em; text-anchor: middle; }
.h-bubble { position: absolute; font-weight: 900; font-size: .85rem; color: #fff; background: #1f9d55; border-radius: 999px;
  padding: .2rem .55rem; opacity: 0; animation: bubble 3.6s ease-out infinite; }
.h-bubble--1 { left: 12%; top: 8%; }
.h-bubble--2 { right: 8%; top: 50%; animation-delay: 1.2s; }
.h-bubble--3 { left: 28%; bottom: 2%; animation-delay: 2.4s; }
@keyframes bubble { 0% { opacity: 0; transform: translateY(10px) scale(.8); } 20% { opacity: 1; transform: none; }
  70% { opacity: 1; } 100% { opacity: 0; transform: translateY(-26px); } }

/* ---------- Tuiles sur fond image ---------- */
.h-tiles { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .h-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .h-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.h-tile { position: relative; overflow: hidden; isolation: isolate; min-height: 300px; border-radius: 20px; padding: 1.5rem;
  display: flex; flex-direction: column; justify-content: flex-end; color: #fff;
  box-shadow: 0 24px 48px -28px rgba(10,31,68,.7); transition: transform .35s ease, box-shadow .35s ease; }
.h-tile::before { content: ""; position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center;
  transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.h-tile::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(5,15,36,.97) 0%, rgba(5,15,36,.84) 45%, rgba(5,15,36,.2) 100%); }
.h-tile:hover { transform: translateY(-6px); box-shadow: 0 34px 60px -30px rgba(10,31,68,.85); }
.h-tile:hover::before { transform: scale(1.08); }
.h-tile--code::before { background-image: url("../img/home/tile-code.webp"); }
.h-tile--prono::before { background-image: url("../img/home/tile-pronostics.webp"); }
.h-tile--visuals::before { background-image: url("../img/home/tile-visuels.webp"); }
.h-tile--stats::before { background-image: url("../img/home/tile-stats.webp"); }
.h-tile__icon { width: 76px; height: 76px; margin-bottom: auto; display: block; filter: drop-shadow(0 12px 16px rgba(0,0,0,.45));
  animation: icon-float 5s ease-in-out infinite; }
.h-tile:nth-child(2) .h-tile__icon { animation-delay: -1.2s; }
.h-tile:nth-child(3) .h-tile__icon { animation-delay: -2.4s; }
.h-tile:nth-child(4) .h-tile__icon { animation-delay: -3.6s; }
.h-tile__icon .icon3d { width: 100%; height: 100%; }
.h-tile:hover .h-tile__icon { animation-play-state: paused; transform: translateY(-6px) rotate(-6deg) scale(1.08); transition: transform .35s ease; }
@keyframes icon-float { 50% { transform: translateY(-8px) rotate(3deg); } }
.h-mini-icon { flex: none; width: 52px; height: 52px; filter: drop-shadow(0 6px 8px rgba(10,31,68,.25)); }
.h-tile h3 { color: #fff; font-size: 1.2rem; margin: 1.4rem 0 .4rem; }
.h-tile p { color: rgba(255,255,255,.84); margin: 0; font-size: .95rem; line-height: 1.55; }

/* ---------- Carrousel (fondu enchaîné, jamais deux images empilées) ---------- */
.h-carousel { position: relative; width: 100%; max-width: 560px; justify-self: center; aspect-ratio: 5 / 3; border-radius: 20px;
  overflow: hidden; box-shadow: 0 30px 60px -30px rgba(10,31,68,.7); background: #dfe8f5; }
.h-carousel__slide { position: absolute; inset: 0; animation: xfade 12s ease-in-out infinite; }
.h-carousel__slide:nth-child(2) { animation-delay: -6s; }
.h-carousel__slide picture, .h-carousel__slide .visual { display: block; width: 100%; height: 100%; }
.h-carousel__slide .visual { object-fit: cover; border-radius: 0; box-shadow: none; }
@keyframes xfade { 0%, 42% { opacity: 1; transform: scale(1); } 50%, 92% { opacity: 0; transform: scale(1.04); } 100% { opacity: 1; } }

/* ---------- Frise des étapes ---------- */
.h-timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.4rem; position: relative; }
.h-timeline::before { content: ""; position: absolute; left: 23px; top: 10px; bottom: 10px; width: 3px; border-radius: 3px;
  background: linear-gradient(var(--bordeaux), var(--gold)); transform-origin: top; transform: scaleY(1);
  transition: transform 1.4s cubic-bezier(.2,.7,.2,1) .2s; }
.h-timeline[data-reveal="pending"]::before { transform: scaleY(0); }
.h-timeline li { position: relative; padding-left: 70px; min-height: 48px; }
.h-timeline b { position: absolute; left: 0; top: 0; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; z-index: 1;
  font-family: var(--display); background: var(--bordeaux); color: #fff; box-shadow: 0 0 0 6px var(--paper), 0 10px 20px -8px rgba(26,111,214,.8); }
.h-timeline li.final b { background: #1f9d55; }
.h-timeline strong { display: block; font-family: var(--display); font-size: 1.05rem; margin-bottom: .2rem; }
.h-timeline span { color: var(--muted); font-size: .95rem; line-height: 1.55; }
@media (min-width: 900px) {
  .h-timeline { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.8rem; }
  .h-timeline::before { left: 24px; right: 24px; top: 23px; bottom: auto; width: auto; height: 3px; transform-origin: left;
    transform: scaleX(1); background: linear-gradient(90deg, var(--bordeaux), var(--gold)); }
  .h-timeline[data-reveal="pending"]::before { transform: scaleX(0); }
  .h-timeline li { padding: 70px 0 0; }
}

/* ---------- Défilement continu des partenaires ---------- */
.h-marquee { overflow: hidden; padding: .5rem 0 1.6rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.h-marquee__track { display: flex; gap: 1rem; width: max-content; animation: marquee 38s linear infinite; padding-left: 1rem; }
.h-marquee:hover .h-marquee__track, .h-marquee:focus-within .h-marquee__track { animation-play-state: paused; }
.h-marquee__item { width: 280px; flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- CTA final sur fond image ---------- */
.h-final { position: relative; isolation: isolate; overflow: hidden; color: #fff; padding: clamp(72px, 11vw, 128px) 0; }
.h-final::before { content: ""; position: absolute; inset: -5%; z-index: -2;
  background: url("../img/banners/partners-become-40.webp") center / cover no-repeat; filter: blur(3px) saturate(1.2);
  animation: kenburns 30s ease-in-out infinite alternate; }
.h-final::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(circle at 50% 40%, rgba(10,31,68,.8), rgba(5,15,36,.96) 70%); }
.h-final h2 { color: #fff; font-size: clamp(2rem, 5.5vw, 3.2rem); }
.h-final p { color: rgba(255,255,255,.84); }
.h-phone-number { font-family: var(--display); font-weight: 900; font-size: clamp(1.3rem, 4vw, 1.8rem); color: #fff; margin-top: 1rem; letter-spacing: .03em; }
.h-final .disclaimer { max-width: 680px; margin: 1.6rem auto 0; color: rgba(255,255,255,.62); }

/* =====================================================================
   ACCUEIL — visuels dédiés (img/home/*.webp), sans texte ni logo
   Sélecteurs « .theme-1x.accueil » : priment sur theme-night.css (chargé après).
   ===================================================================== */

/* Haut de page : le joueur occupe la droite, le titre la moitié gauche (zone sombre du visuel) */
/* visuel calé à droite, un peu moins large que l'écran : le ballon ne passe jamais sous le titre */
.theme-1x.accueil .h-hero__bg::before { inset: -3%; background: url("../img/home/hero-desktop.webp") right top / max(86%, 1100px) auto no-repeat;
  opacity: 1; filter: saturate(1.08) contrast(1.04); }
@media (min-width: 960px) { .accueil .h-hero__copy { max-width: 620px; } }
.theme-1x.accueil .h-hero__bg::after {
  background:
    linear-gradient(90deg, #050d1f 0%, rgba(5, 13, 31, .82) 30%, rgba(5, 13, 31, .18) 56%, rgba(5, 13, 31, 0) 100%),
    linear-gradient(0deg, #050d1f 0%, rgba(5, 13, 31, 0) 26%); }
.theme-1x.accueil .h-orb--a { opacity: .35; }
.theme-1x.accueil .h-pitch { display: none; }

/* Scène (colonne droite) : pastilles animées autour du joueur */
.h-hero__stage { position: relative; width: 100%; min-height: 440px; pointer-events: none; }
.h-hero__stage .h-float { pointer-events: auto; }
.h-hero__stage .h-float--code { top: auto; bottom: 22%; left: 0; }
.h-hero__stage .h-float--player { top: 64%; right: -2%; bottom: auto; }
.h-hero__stage .h-float--rate { bottom: 2%; left: 30%; }
/* pastille « Exemple de code promo » : verre nuit, liseré or, code en jaune 1xBet (couleur réservée aux codes) */
.theme-1x.accueil .h-float--code { background: linear-gradient(160deg, rgba(14, 32, 72, .94), rgba(5, 13, 31, .94));
  border: 1.5px solid rgba(255, 210, 31, .75); color: #fff; padding: .6rem .95rem .55rem; backdrop-filter: blur(8px);
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .75), 0 0 26px -6px rgba(255, 210, 31, .45); }
.theme-1x.accueil .h-float__label { color: #9fc2f5; font-weight: 800; }
.theme-1x.accueil .h-typing { color: #ffd21f; text-shadow: 0 0 16px rgba(255, 210, 31, .5); font-size: 1.45rem; }
.theme-1x.accueil .h-typing::after { color: #ffd21f; }
/* pastille « +1 joueur inscrit » : verre sombre lisible (le texte clair du thème nuit était invisible sur fond blanc) */
.theme-1x.accueil .h-float--player { background: rgba(8, 22, 52, .9); color: #fff; border: 1px solid rgba(140, 180, 255, .35);
  backdrop-filter: blur(6px); }

@media (max-width: 959px) {
  /* Mobile / tablette : visuel net en haut, la scène se place dessus, le texte suit sur la partie sombre */
  .theme-1x.accueil .h-hero__bg::before { inset: 0 0 auto 0; height: 56.25vw; animation: none; transform: none;
    background: url("../img/home/hero-desktop.webp") center top / 100% auto no-repeat; }
  .theme-1x.accueil .h-hero__bg::after {
    background: linear-gradient(180deg, rgba(5, 13, 31, 0) 0, rgba(5, 13, 31, 0) 30vw, rgba(5, 13, 31, .75) 46vw, #050d1f 56vw, #050d1f 100%); }
  .theme-1x.accueil .h-hero__inner { padding-top: 0; gap: 8px; }
  .h-hero__stage { order: -1; min-height: 44vw; max-width: none; }
  .h-hero__stage .h-float--code { top: 14%; bottom: auto; left: 0; }
  .h-hero__stage .h-float--player { top: auto; bottom: 6%; right: 0; }
  .h-hero__stage .h-float--rate { display: none; }
}
@media (max-width: 599px) {
  .theme-1x.accueil .h-hero__bg::before { height: 125vw; background-image: url("../img/home/hero-mobile.webp"); }
  .theme-1x.accueil .h-hero__bg::after {
    background: linear-gradient(180deg, rgba(5, 13, 31, 0) 0, rgba(5, 13, 31, 0) 58vw, rgba(5, 13, 31, .8) 92vw, #050d1f 124vw, #050d1f 100%); }
  .h-hero__stage { min-height: 84vw; }
  .h-hero__stage .h-float--code { top: auto; bottom: 4%; left: 0; }
  .h-hero__stage .h-float--player { bottom: 22%; }
}

/* Vidéo de présentation (déplacée hors du haut de page pour laisser le visuel respirer) */
.h-video__media { justify-self: center; width: min(100%, 330px); }
@media (min-width: 900px) { .h-video .split { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); } }

/* Tuiles : le sujet en haut, le texte sur le tiers bas (zone sombre prévue dans les visuels) */
.accueil .h-tile { min-height: 420px; }
@media (min-width: 1100px) { .accueil .h-tile { min-height: 400px; } }
.accueil .h-tile::before { background-position: center 12%; }
.accueil .h-tile::after {
  background: linear-gradient(0deg, rgba(5, 13, 31, .97) 0%, rgba(5, 13, 31, .86) 28%, rgba(5, 13, 31, .2) 58%, rgba(5, 13, 31, 0) 100%); }
.accueil .h-tile__icon { width: 58px; height: 58px; margin-bottom: 0; }
.accueil .h-tile h3 { margin-top: .7rem; }

/* Appel final : ballon et trophée sur les bords, centre sombre pour le titre */
.accueil .h-final::before { background: url("../img/home/cta.webp") center 60% / cover no-repeat; filter: saturate(1.08); }
.accueil .h-final::after {
  background: radial-gradient(ellipse 46% 62% at 50% 48%, rgba(5, 13, 31, .9), rgba(5, 13, 31, .5) 70%, rgba(5, 13, 31, .2) 100%),
              linear-gradient(0deg, rgba(5, 13, 31, .9) 0%, rgba(5, 13, 31, 0) 30%); }

/* Accessibilité : aucun mouvement si l'utilisateur le demande */
@media (prefers-reduced-motion: reduce) {
  .home *, .home *::before, .home *::after { animation: none !important; transition: none !important; }
  [data-reveal="pending"] { opacity: 1; transform: none; }
  .h-pitch * { stroke-dashoffset: 0; }
  .h-carousel__slide:nth-child(2) { display: none; }
}

/* ---------- Tuiles « visuel + code incrusté » (code promo sur l'écran du téléphone) ---------- */
.h-tile--media::before { background-image: none !important; }
.h-tile__media { position: absolute; z-index: -2; top: 0; left: 0; width: 100%; aspect-ratio: 3 / 4; pointer-events: none;
  transform-origin: 50% 30%; transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.h-tile__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.h-tile:hover .h-tile__media { transform: scale(1.06); }
.h-tile--media { background: #050d1f; }

/* Calque SVG du code promo (même repère que l'image) */
.code-layer { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.code-media { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; }
.code-media .visual { display: block; width: 100%; height: 100%; object-fit: cover; }

/* « screen » : code écrit sur le ticket du téléphone (machine à écrire en boucle, via data-typing) */
.code-layer__screen { font-family: var(--display); font-weight: 900; letter-spacing: .04em; fill: #2b1a00;
  paint-order: stroke; stroke: rgba(255, 244, 196, .55); stroke-width: 1.2px; animation: code-ink 2.6s ease-in-out infinite; }
@keyframes code-ink { 50% { fill: #4a2c00; } }

/* « badge » : ticket doré flottant — lévitation, reflet qui balaie, halo qui pulse */
.code-badge { transform-box: fill-box; transform-origin: center; animation: badge-float 4.2s ease-in-out infinite; }
.code-badge--d1 { animation-delay: -1.4s; }
.code-badge--d2 { animation-delay: -2.8s; }
@keyframes badge-float { 0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
  50% { transform: translateY(-4%) rotate(-1.5deg) scale(1.04); } }
.code-badge__glow { fill: #ffc400; opacity: .55; animation: badge-glow 2.1s ease-in-out infinite; }
@keyframes badge-glow { 50% { opacity: .95; } }
.code-badge__body { stroke: #fff6c2; stroke-width: 3; }
.code-badge__shine { fill: rgba(255, 255, 255, .55); transform-box: fill-box; transform: skewX(-20deg) translateX(0);
  animation: badge-shine 3.4s cubic-bezier(.4, 0, .2, 1) infinite; }
.code-badge--d1 .code-badge__shine { animation-delay: -1.1s; }
.code-badge--d2 .code-badge__shine { animation-delay: -2.2s; }
@keyframes badge-shine { 0% { transform: skewX(-20deg) translateX(0); } 55%, 100% { transform: skewX(-20deg) translateX(560%); } }
.code-badge__label { font-family: var(--display); font-weight: 800; letter-spacing: .18em; fill: #6b4a00; }
.code-badge__code { font-family: var(--display); font-weight: 900; letter-spacing: .04em; fill: #2b1a00; }

@media (prefers-reduced-motion: reduce) {
  .code-layer__screen, .code-badge, .code-badge__glow, .code-badge__shine { animation: none; }
}
