/* =========================================================================
   MEETennis Game — assets/css/jeu.css
   Le grand bloc de l'accueil (index.php) et la page dédiée
   (/meetennis-game/). Tout est préfixé .jg- : rien ne déborde sur le reste
   du site. Polices et orange de MEETennis ; cadres MacBook et iPhone
   dessinés en CSS autour de VRAIES captures du jeu.
   ========================================================================= */
.jg { --o: #e15e01; --o2: #f2771f; --terre: #c8643b; --ink: #1c1814; --doux: #5f564f; --creme: #fbf4ee; --ligne: rgba(60, 40, 25, .1);
  font-family: 'Raleway', system-ui, sans-serif; color: var(--ink); }
.jg *, .jg *::before, .jg *::after { box-sizing: border-box; }
.jg h1, .jg h2, .jg h3 { font-family: 'Montserrat', system-ui, sans-serif; text-transform: none; letter-spacing: -.015em; color: var(--ink); }
.jg p { color: var(--doux); }
.jg a:focus-visible, .jg button:focus-visible { outline: 3px solid var(--o2); outline-offset: 3px; }
.jg-surtitre { margin: 0 0 10px; font: 800 12.5px 'Montserrat', sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #a33c06; }
.jg-btn, .jg-btn:visited { display: inline-flex; align-items: center; gap: 8px; padding: 15px 24px; border-radius: 14px; text-decoration: none;
  background: linear-gradient(135deg, var(--o), var(--o2)); color: #fff; font: 800 15.5px 'Montserrat', sans-serif; box-shadow: 0 12px 28px rgba(225, 94, 1, .3);
  transition: transform .15s ease, filter .15s ease; }
.jg-btn:hover, .jg-btn:focus { color: #fff; text-decoration: none; transform: translateY(-2px); filter: brightness(1.05); }
.jg-btn.ghost, .jg-btn.ghost:visited { background: #fff; color: var(--ink); box-shadow: none; border: 1.5px solid rgba(60, 40, 25, .18); }
.jg-btn.ghost:hover { color: var(--ink); border-color: var(--o2); }
.jg-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---- Appareils ---- */
.jg-scene { position: relative; padding-bottom: 4%; }
.jg-mac { position: relative; width: 88%; }
.jg-mac-ecran { background: #1a1a1c; border-radius: 18px 18px 6px 6px; padding: 2.2% 2.2% 3%; box-shadow: 0 30px 70px rgba(30, 20, 12, .25); }
.jg-mac-ecran img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 4px; background: #f5f3f1; }
.jg-mac-socle { position: relative; height: 14px; margin: 0 -8%; border-radius: 2px 2px 14px 14px; background: linear-gradient(#d8d3ce, #b9b2ab); }
.jg-mac-socle::before { content: ''; position: absolute; left: 50%; top: 0; transform: translateX(-50%); width: 15%; height: 5px; border-radius: 0 0 8px 8px; background: #a8a09a; }
.jg-iphone { position: absolute; right: 0; bottom: 0; width: 27%; aspect-ratio: 9 / 19.5; padding: 2.2%; border-radius: 13% / 6%;
  background: #111; box-shadow: 0 26px 60px rgba(30, 20, 12, .35), inset 0 0 0 2px #333; }
.jg-iphone::before { content: ''; position: absolute; z-index: 2; top: 3.6%; left: 50%; transform: translateX(-50%); width: 30%; height: 3.4%; border-radius: 99px; background: #111; }
.jg-iphone img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 11% / 5.2%; background: #f5f3f1; }
.jg-iphone.seul { position: relative; right: auto; bottom: auto; width: min(290px, 70%); margin: 0 auto; }
.jg-scene.inverse .jg-mac { margin-left: auto; }
.jg-scene.inverse .jg-iphone { right: auto; left: 0; }

/* ---- Bloc de l'accueil ---- */
.jg-bloc { padding: 84px 0; background: radial-gradient(900px 420px at 85% 0%, rgba(225, 94, 1, .12), transparent 60%), var(--creme); overflow: hidden; }
.jg-bloc-grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 48px; align-items: center; }
.jg-bloc h2 { margin: 0 0 14px; font: 900 clamp(28px, 3.4vw, 44px)/1.1 'Montserrat', sans-serif; }
.jg-bloc h2 span { color: var(--o); }
.jg-bloc .jg-lead { margin: 0 0 22px; font-size: 18px; line-height: 1.6; }
.jg-points { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 12px; }
.jg-points li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; line-height: 1.5; color: var(--doux); }
.jg-points b { color: var(--ink); }
.jg-pastille { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(225, 94, 1, .12); color: var(--o); }
.jg-pastille svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.jg-nouveau { display: inline-block; margin-bottom: 14px; padding: 6px 12px; border-radius: 99px; background: var(--ink); color: #fff; font: 800 11.5px 'Montserrat', sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.jg-mention { margin: 18px 0 0; font-size: 12.5px; color: #786d65 !important; }

/* ---- Page dédiée ---- */
.jg-page { background: #fff; }
.jg-barre { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--ligne); }
.jg-barre-in { display: flex; align-items: center; gap: 14px; max-width: 1180px; margin: 0 auto; padding: 12px 20px; }
.jg-barre-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 900 16px 'Montserrat', sans-serif; }
.jg-barre-logo img { width: 38px; height: 38px; border-radius: 10px; }
.jg-barre-logo:hover { text-decoration: none; color: var(--ink); }
.jg-barre nav { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.jg-barre nav a { color: var(--doux); text-decoration: none; font: 700 14px 'Montserrat', sans-serif; }
.jg-barre nav a:hover { color: var(--o); }
.jg-barre .jg-btn { padding: 10px 16px; font-size: 14px; color: #fff; }
.jg-wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.jg-hero { padding: 64px 0 40px; background: radial-gradient(1000px 500px at 80% -10%, rgba(225, 94, 1, .14), transparent 60%), var(--creme); }
.jg-hero-grille { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.2fr); gap: 48px; align-items: center; }
.jg-hero h1 { margin: 0 0 16px; font: 900 clamp(30px, 3.4vw, 46px)/1.08 'Montserrat', sans-serif; }
.jg-hero h1 span { color: var(--o); }
.jg-hero .jg-lead { margin: 0 0 24px; font-size: 19px; line-height: 1.6; }
.jg-chiffres { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 34px 0 0; }
.jg-chiffres div { padding: 14px; border-radius: 14px; background: #fff; border: 1px solid var(--ligne); }
.jg-chiffres b { display: block; font: 900 26px 'Montserrat', sans-serif; color: var(--o); }
.jg-chiffres span { font-size: 13px; color: var(--doux); }
.jg-sec { padding: 80px 0; }
.jg-sec.alt { background: var(--creme); }
.jg-sec-tete { max-width: 760px; margin: 0 auto 44px; text-align: center; }
.jg-sec-tete h2 { margin: 0 0 12px; font: 900 clamp(26px, 3vw, 40px)/1.15 'Montserrat', sans-serif; }
.jg-sec-tete p { margin: 0; font-size: 17.5px; line-height: 1.6; }
.jg-etape { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 52px; align-items: center; padding: 34px 0; }
.jg-etape.inverse > :first-child { order: 2; }
.jg-num { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; margin-bottom: 14px; border-radius: 14px;
  background: linear-gradient(135deg, var(--o), var(--o2)); color: #fff; font: 900 20px 'Montserrat', sans-serif; box-shadow: 0 10px 24px rgba(225, 94, 1, .3); }
.jg-etape h3 { margin: 0 0 12px; font: 900 clamp(22px, 2.4vw, 30px)/1.2 'Montserrat', sans-serif; }
.jg-etape p { font-size: 16.5px; line-height: 1.65; margin: 0 0 14px; }
.jg-cmd { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.jg-cmd li { display: flex; gap: 10px; align-items: baseline; font-size: 15px; color: var(--doux); }
.jg-touche { flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 30px; padding: 3px 9px; border-radius: 8px;
  background: #fff; border: 1px solid rgba(60, 40, 25, .2); box-shadow: 0 2px 0 rgba(60, 40, 25, .15); font: 800 12.5px 'Montserrat', sans-serif; color: var(--ink); }
.jg-court { max-width: 460px; margin: 0 auto 10px; }
.jg-court svg { display: block; width: 100%; height: auto; border-radius: 18px; box-shadow: 0 20px 50px rgba(200, 100, 59, .3); }
.jg-court .fond { fill: var(--terre); }
.jg-court .lignes { fill: none; stroke: #fff; stroke-width: 2.5; opacity: .9; }
.jg-court .filet { stroke: #1c1814; stroke-width: 3; stroke-dasharray: 3 3; }
.jg-court .joueur { fill: #fff; stroke: #1c1814; stroke-width: 2; }
.jg-court .j1 { animation: jg-j1 1.6s ease-in-out infinite alternate; }
.jg-court .j2 { animation: jg-j2 1.6s ease-in-out infinite alternate; }
.jg-court .balle { fill: #e5f24a; stroke: #6b7a12; stroke-width: 1; }
.jg-court .balle-trajet { animation: jg-balle 1.6s linear infinite alternate; }
.jg-court .ombre-balle { fill: rgba(0, 0, 0, .25); animation: jg-ombre 1.6s linear infinite alternate; }
@keyframes jg-balle { 0% { transform: translate(78px, 92px) scale(1); } 25% { transform: translate(119px, 52px) scale(1.35); } 50% { transform: translate(160px, 70px) scale(1.15); }
  62% { transform: translate(190px, 98px) scale(.95); } 80% { transform: translate(218px, 70px) scale(1.15); } 100% { transform: translate(242px, 80px) scale(1); } }
@keyframes jg-ombre { 0% { transform: translate(78px, 100px); } 100% { transform: translate(242px, 88px); } }
@keyframes jg-j1 { 100% { transform: translateY(14px); } }
@keyframes jg-j2 { 100% { transform: translateY(-10px); } }
.jg-cartes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.jg-carte { padding: 22px; border-radius: 18px; background: #fff; border: 1px solid var(--ligne); }
.jg-carte h3 { margin: 12px 0 6px; font: 800 17px 'Montserrat', sans-serif; }
.jg-carte p { margin: 0; font-size: 15px; line-height: 1.55; }
.jg-faq { max-width: 820px; margin: 0 auto; }
.jg-faq details { border-bottom: 1px solid var(--ligne); padding: 6px 0; }
.jg-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; font: 800 17px 'Montserrat', sans-serif; color: var(--ink); }
.jg-faq summary::-webkit-details-marker { display: none; }
.jg-faq summary::after { content: '+'; color: var(--o); font-size: 22px; line-height: 1; transition: transform .2s; }
.jg-faq details[open] summary::after { transform: rotate(45deg); }
.jg-faq details p { margin: 0 0 16px; font-size: 16px; line-height: 1.65; }
.jg-final { padding: 72px 0; background: linear-gradient(135deg, #1f1b18, #3a2a1f); text-align: center; }
.jg-final h2 { color: #fff; margin: 0 0 12px; font: 900 clamp(26px, 3vw, 38px)/1.2 'Montserrat', sans-serif; }
.jg-final p { color: rgba(255, 255, 255, .78); margin: 0 auto 26px; max-width: 620px; font-size: 17px; line-height: 1.6; }
.jg-final .jg-ctas { justify-content: center; }
.jg-pied { padding: 28px 0; background: #161311; color: rgba(255, 255, 255, .6); font-size: 13.5px; }
.jg-pied .jg-wrap { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; justify-content: space-between; }
.jg-pied a { color: rgba(255, 255, 255, .78); }
.jg-pied nav { display: flex; flex-wrap: wrap; gap: 16px; }

/* Apparition au défilement (si JavaScript est là ; sinon tout est visible). */
.jg-js .jg-anim { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.jg-js .jg-anim.vu { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .jg-bloc-grille, .jg-hero-grille, .jg-etape { grid-template-columns: 1fr; gap: 30px; }
  .jg-etape.inverse > :first-child { order: 0; }
  .jg-cartes { grid-template-columns: 1fr 1fr; }
  .jg-chiffres { grid-template-columns: repeat(2, 1fr); }
  .jg-barre nav a:not(.jg-btn) { display: none; }
}
@media (max-width: 600px) {
  .jg-bloc, .jg-sec { padding: 56px 0; }
  .jg-cartes { grid-template-columns: 1fr; }
  .jg-mac { width: 92%; }
  .jg-iphone { width: 30%; }
}
@media (prefers-reduced-motion: reduce) {
  .jg-court * { animation: none !important; }
  .jg-js .jg-anim { opacity: 1; transform: none; transition: none; }
  .jg-btn { transition: none; }
}
