@font-face {
  font-family: Nunito;
  src: url("site/nunito-latin.woff") format("woff");
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
}

:root { font-family: Nunito, sans-serif; color: #fff; background: #073df4; font-synthesis: none; }
* { box-sizing: border-box; }
body {
  margin: 0;
  position: relative;
  isolation: isolate;
  background: radial-gradient(ellipse at 47% 76%, #278cff80, transparent 67%),
    linear-gradient(#073df4, #1561fe 57%, #063ef3);
  font-weight: 500;
}
body::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 900px; z-index: -1;
  background: url("site/background.webp") center top / max(100%, 971px) 900px no-repeat;
  mask-image: linear-gradient(#000 68%, transparent);
  pointer-events: none;
}
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid #fed220; outline-offset: 5px; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
.container { width: calc(100% - 76px); max-width: 895px; margin-inline: auto; }
.site-header { height: 100px; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding-top: 18px; }
.brand { width: 300px; margin-left: 14px; flex-shrink: 0; }
.site-nav { display: flex; align-items: center; gap: 42px; padding-top: 8px; font-size: 16px; font-weight: 800; }
.download-link {
  display: inline-flex; justify-content: center; align-items: center;
  min-height: 40px; padding: 6px 25px; border-radius: 24px; color: #0635b3;
  border: 2px solid #fff6a1; background: linear-gradient(#fff78e, #fed220 40%, #ffbb00);
  box-shadow: inset 0 2px 2px #fff, 0 0 13px #ffe73d99, 0 3px 0 #ffad00;
}
.hero { overflow-x: clip; }
.hero-inner { position: relative; height: 542px; padding: 83px 0 0 18px; }
.hero-copy { position: relative; z-index: 1; width: 550px; }
h1 { margin: 0; font-size: 58px; line-height: 1.08; letter-spacing: -2px; font-weight: 900; text-shadow: 0 3px 0 #b6dcff, 0 6px 9px #0436b955; }
.highlight { color: #ffdf13; background: linear-gradient(#ffff72, #ffd719 55%, #ffb600); background-clip: text; -webkit-text-fill-color: transparent; text-shadow: none; filter: drop-shadow(0 3px 0 #f5a700); }
.headline-end { display: block; font-size: 51px; }
.hero-description { margin: 18px 0 28px; width: 475px; font-size: 23px; line-height: 1.3; font-weight: 500; }
.store-links { display: flex; align-items: center; gap: 12px; }
.store-links a { display: block; flex-shrink: 0; }
.store-links img { height: 63px; width: auto; }
.platforms { margin: 10px 0 0; font-size: 18px; font-weight: 500; }
.phone { position: absolute; z-index: 0; width: 540px; aspect-ratio: 1080 / 1136; right: -37px; top: -22px; }
.phone img { width: 100%; height: 100%; }
.screen-label { position: absolute; transform: translate(-50%, -50%) rotate(5deg); white-space: nowrap; font-weight: 800; line-height: 1; }
.screen-level { left: 54.5%; top: 12.3%; font-size: 13px; }
.screen-model { left: 51.8%; top: 29.5%; font-size: 9px; color: #1325bd; }
.screen-count { left: 46%; top: 69%; font-size: 12px; }
.screen-hint { left: 43.7%; top: 89.5%; font-size: 11px; }
h2 { margin: 0; font-size: 46px; font-weight: 900; letter-spacing: -1.3px; line-height: 1.2; }
.section-title { text-align: center; text-shadow: 0 3px 0 #c1e0ff, 0 5px 9px #0038b866; }
.glass { border: 2px solid #e4f8ff; border-radius: 25px; background: linear-gradient(115deg, #c4e6fff5, #b4d7fcf5 52%, #c7e4fef5); box-shadow: inset 0 0 0 3px #ffffff50, inset 0 1px 9px #fff9, 0 5px 16px #0040d838; color: #0524a6; }
.game-cards { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr) minmax(0, 1.04fr); gap: 14px; margin-top: 9px; }
.game-card { min-height: 292px; text-align: center; padding: 15px 10px 18px; }
.card-art { height: 162px; display: flex; justify-content: center; align-items: center; margin-bottom: 8px; }
.rotation-art { width: 200px; }
.collection-art { width: 260px; }
.cat-art { width: 156px; height: 148px; }
h3 { margin: 0; font-size: 24px; font-weight: 900; letter-spacing: -0.9px; line-height: 1.2; }
.game-card p { margin: 6px 0 0; font-size: 20px; line-height: 1.25; font-weight: 500; }
.questions { margin-top: 16px; }
.questions .section-title { font-size: 43px; }
.question-list { margin-top: 7px; padding: 0 24px; }
.question-row { min-height: 82px; display: grid; grid-template-columns: 113px 1fr; align-items: center; padding: 12px 0; }
.question-row + .question-row { border-top: 1px solid #ffffffb3; }
.question-icon { width: 70px; height: 58px; filter: drop-shadow(0 3px 2px #3187d64d); }
.question-icon text { font-family: Nunito, sans-serif; font-weight: 900; font-size: 45px; }
.question-row h3 { font-size: 21px; letter-spacing: -0.5px; }
.question-row p { margin: 2px 0 0; font-size: 18px; line-height: 1.35; font-weight: 500; }
.download-panel { margin-top: 18px; min-height: 204px; display: flex; align-items: center; gap: 42px; padding: 16px 60px 16px 92px; }
.app-icon { width: 170px; height: 170px; border-radius: 35px; flex-shrink: 0; box-shadow: 0 4px 9px #2381e06b; }
.download-panel h2 { font-size: 54px; line-height: 1.12; letter-spacing: -1.6px; }
.download-panel p { margin: 3px 0 12px; font-size: 20px; line-height: 1.2; white-space: nowrap; font-weight: 500; }
.download-panel .store-links img { height: 58px; }
.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 20px 6px 30px; font-size: 16px; font-weight: 500; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.footer-links a + a { border-left: 1px solid #c2e4ff; padding-left: 24px; }
.language-hint { display: flex; justify-content: center; align-items: center; gap: 10px; margin: 0; padding: 8px 16px; background: #0524a6; font-size: 15px; font-weight: 700; }
.language-hint[hidden] { display: none; }
.language-hint a { text-decoration: underline; text-underline-offset: 3px; }
.language-hint button { border: 0; padding: 0 4px; background: none; color: inherit; font: inherit; font-size: 22px; line-height: 1; cursor: pointer; }
.language-menu { position: relative; }
.language-menu summary { display: flex; align-items: center; gap: 7px; cursor: pointer; list-style: none; }
.language-menu summary::-webkit-details-marker { display: none; }
.language-menu summary::after { content: ""; width: 6px; height: 6px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); }
.language-menu summary:focus-visible { outline: 3px solid #fed220; outline-offset: 5px; border-radius: 4px; }
.language-menu ul { position: absolute; z-index: 3; top: calc(100% + 12px); right: -16px; margin: 0; padding: 6px; list-style: none; min-width: 150px; border-radius: 18px; }
.language-menu ul a { display: block; padding: 8px 14px; border-radius: 12px; font-size: 16px; }
.language-menu ul a:hover, .language-menu ul a[aria-current] { background: #ffffffa6; }

/* Grands écrans : la maquette (971 px) est agrandie en bloc plutôt que recomposée. */
@media (min-width: 1280px) { body { zoom: 1.15; } }
@media (min-width: 1500px) { body { zoom: 1.3; } }
@media (min-width: 1700px) { body { zoom: 1.45; } }
@media (min-width: 1900px) { body { zoom: 1.6; } }
@media (min-width: 2300px) { body { zoom: 1.85; } }

@media (max-width: 970px) and (min-width: 761px) {
  .site-nav { gap: 24px; }
  .brand { width: 260px; }
  h1 { font-size: 51px; }
  .headline-end { font-size: 45px; }
  .hero-description { font-size: 22px; width: 420px; }
  .hero-copy { width: 480px; }
  .phone { width: 480px; right: -30px; }
  h2 { font-size: 42px; }
  h3 { font-size: 21px; }
  .game-card p { font-size: 18px; }
  .download-panel { padding-inline: 36px; gap: 30px; }
  .download-panel h2 { font-size: 46px; }
  .download-panel p { font-size: 17px; white-space: normal; }
  .download-panel .store-links img { height: 50px; }
}

@media (max-width: 760px) {
  body::before { height: 1060px; background-size: auto 1060px; }
  .container { width: calc(100% - 32px); }
  .site-header { height: auto; min-height: 126px; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; padding-top: 18px; }
  .brand { width: 240px; margin: 0; }
  .site-nav { justify-content: center; flex-wrap: wrap; padding: 0; gap: 18px; font-size: 15px; }
  .download-link { min-height: 40px; padding-inline: 18px; }
  .hero-inner { height: auto; padding: 38px 0 0; }
  .hero-copy { width: auto; }
  h1 { font-size: clamp(31px, 8.7vw, 54px); line-height: 1.1; letter-spacing: -1px; }
  .headline-end { font-size: 0.86em; margin-top: 5px; }
  .hero-description { width: auto; margin: 20px 0 24px; font-size: 20px; line-height: 1.4; }
  .hero-description br { display: none; }
  .store-links { gap: 10px; flex-wrap: wrap; }
  .store-links a { max-width: calc(50% - 5px); }
  .store-links img { height: clamp(40px, 11vw, 50px); width: auto; }
  .platforms { font-size: 16px; }
  .phone { position: relative; top: auto; right: auto; width: 100%; height: auto; max-width: 520px; margin: 12px auto 0; }
  .phone img { height: auto; }
  .screen-level { font-size: clamp(9px, 2.6vw, 13px); }
  .screen-model { font-size: clamp(6px, 1.8vw, 9px); }
  .screen-count { font-size: clamp(8px, 2.4vw, 12px); }
  .screen-hint { font-size: clamp(7px, 2.1vw, 11px); }
  h2 { font-size: 34px; letter-spacing: -0.8px; }
  .game-cards { grid-template-columns: 1fr; gap: 16px; margin-top: 18px; }
  .game-card { min-height: 280px; padding: 18px; }
  .card-art { height: 160px; }
  h3 { font-size: 25px; }
  .game-card p { font-size: 20px; }
  .questions { margin-top: 28px; }
  .questions .section-title { font-size: 34px; }
  .question-list { padding-inline: 16px; margin-top: 18px; }
  .question-row { grid-template-columns: 50px 1fr; gap: 10px; padding-block: 18px; }
  .question-icon { width: 48px; height: 45px; }
  .question-row h3 { font-size: 19px; }
  .question-row p { margin-top: 6px; font-size: 16px; }
  .download-panel { margin-top: 20px; flex-direction: column; gap: 18px; padding: 24px 18px; text-align: center; }
  .app-icon { width: 140px; height: 140px; border-radius: 29px; }
  .download-panel h2 { font-size: 38px; }
  .download-panel p { font-size: 18px; line-height: 1.4; white-space: normal; margin: 8px 0 18px; }
  .download-panel .store-links { justify-content: center; }
  .download-panel .store-links img { height: clamp(40px, 11vw, 50px); }
  .site-footer { flex-direction: column; gap: 14px; padding: 22px 0 28px; font-size: 14px; }
  .footer-links { justify-content: center; gap: 14px; }
  .footer-links a + a { padding-left: 14px; }
}
