/* HANDI-je : site vitrine. Grandes polices, gros boutons, fort contraste. */
:root {
  --cream: #fbf6ee;
  --paper: #fffdf8;
  --ink: #23312b;
  --muted: #56645d;
  --line: #ece1cf;
  --green: #2f9e5b;
  --green-dark: #1f7a45;
  --green-deep: #175c35;
  --green-soft: #def3e5;
  --red: #d9483b;
  --red-dark: #b33529;
  --red-soft: #fbe3df;
  --yellow: #f2b631;
  --yellow-dark: #c98f10;
  --yellow-soft: #fdf0cc;
  --blue: #3d8fca;
  --blue-soft: #e1eff9;
  --wood: #c48a52;
  --radius: 22px;
  --shadow: 0 10px 30px rgba(60, 40, 20, 0.12);
  --shadow-lg: 0 24px 60px rgba(35, 49, 43, 0.22);
  --head: 'Baloo 2', 'Atkinson Hyperlegible', system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}
body {
  margin: 0;
  font-family: 'Atkinson Hyperlegible', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: clamp(1.06rem, 1rem + 0.3vw, 1.2rem);
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  display: block;
}
h1,
h2,
h3 {
  font-family: var(--head);
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.01em;
}
h2 {
  font-size: clamp(2.1rem, 1.4rem + 3vw, 3.3rem);
}
h3 {
  font-size: clamp(1.6rem, 1.3rem + 1vw, 2rem);
}
p {
  margin: 0;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 4px solid #2b7bd6;
  outline-offset: 3px;
  border-radius: 10px;
}
.ico {
  width: 1.2em;
  height: 1.2em;
  flex: none;
}
.wrap {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 999;
  background: #fff;
  padding: 10px 16px;
  border-radius: 10px;
}
.skip:focus {
  left: 8px;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 26px;
  border-radius: 999px;
  border: 0;
  font: inherit;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    background 0.2s;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(2px);
}
.btn-sm {
  min-height: 46px;
  padding: 8px 20px;
  font-size: 1.05rem;
}
.btn-xl {
  min-height: 64px;
  padding: 14px 28px;
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.35rem);
}
.btn-play {
  color: #fff;
  background: var(--green);
  box-shadow: 0 5px 0 var(--green-dark), 0 12px 24px rgba(31, 122, 69, 0.28);
}
.btn-play:active {
  box-shadow: 0 2px 0 var(--green-dark);
}
.btn-yellow {
  color: var(--ink);
  background: var(--yellow);
  box-shadow: 0 5px 0 var(--yellow-dark), 0 12px 24px rgba(0, 0, 0, 0.2);
}
.btn-yellow:active {
  box-shadow: 0 2px 0 var(--yellow-dark);
}
.btn-ghost {
  color: var(--green-dark);
  background: #fff;
  border: 2px solid #cfe7d7;
}
.btn-ghost:hover {
  background: var(--green-soft);
}

/* ---------- En-tête ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px var(--gutter);
  background: rgba(251, 246, 238, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.topbar.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 6px 20px rgba(60, 40, 20, 0.06);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--head);
  font-weight: 800;
  font-size: 1.75rem;
  letter-spacing: 0.01em;
  line-height: 1;
}
.brand b {
  color: var(--green);
}
.nav {
  display: flex;
  gap: 6px;
  margin-left: auto;
}
.nav a {
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  color: var(--muted);
  transition: background 0.2s, color 0.2s;
}
.nav a:hover {
  background: #fff;
  color: var(--ink);
}

/* ---------- Accueil ---------- */
.hero {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 70px) var(--gutter) clamp(50px, 7vw, 100px);
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: clamp(30px, 4vw, 60px);
}
.hero-text {
  animation: rise 0.7s ease both;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
}
.eyebrow {
  display: inline-block;
  font-weight: 700;
  color: var(--green-dark);
  background: var(--green-soft);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2.6rem, 1.6rem + 4.4vw, 4.6rem);
}
.mark {
  position: relative;
  white-space: nowrap;
  z-index: 0;
}
.mark::after {
  content: '';
  position: absolute;
  left: -4px;
  right: -4px;
  bottom: 0.08em;
  height: 0.36em;
  border-radius: 8px;
  z-index: -1;
}
.mark-green {
  color: var(--green-dark);
}
.mark-green::after {
  background: #bfe6cd;
}
.mark-yellow::after {
  background: #fbdc8d;
}
.lead {
  margin-top: 22px;
  font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.45rem);
  color: var(--muted);
  max-width: 34ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}
.ticks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  font-weight: 700;
}
.ticks li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ticks .ico {
  color: var(--green);
}

.hero-visual {
  position: relative;
  aspect-ratio: 1 / 0.92;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}
.blob-yellow {
  width: 62%;
  aspect-ratio: 1;
  right: -4%;
  top: -4%;
  background: var(--yellow-soft);
}
.blob-green {
  width: 54%;
  aspect-ratio: 1;
  left: -2%;
  bottom: -2%;
  background: var(--green-soft);
}
.tablet {
  position: absolute;
  left: 6%;
  top: 14%;
  width: 84%;
  padding: 12px;
  border: 0;
  border-radius: 28px;
  background: #23312b;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  rotate: -3deg;
  transition: rotate 0.4s, transform 0.4s;
}
.tablet:hover {
  rotate: -1deg;
  transform: scale(1.02);
}
.tablet img {
  border-radius: 17px;
  width: 100%;
  height: auto;
}
.tablet-play {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 2.2rem;
  background: var(--green);
  box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.7), 0 10px 30px rgba(0, 0, 0, 0.3);
  animation: pulse 2.4s ease-in-out infinite;
}
.tablet-play .ico {
  margin-left: 6px;
}
@keyframes pulse {
  50% {
    box-shadow: 0 0 0 18px rgba(255, 255, 255, 0.35), 0 10px 30px rgba(0, 0, 0, 0.3);
  }
}

/* Cartes du jeu (vraies images) */
.card-red,
.card-green {
  background: #fff;
  border-radius: 12px;
  padding: 6%;
  object-fit: contain;
  aspect-ratio: 0.72;
  box-shadow: 0 10px 24px rgba(60, 40, 20, 0.22);
}
.card-red {
  border: 4px solid var(--red);
}
.card-green {
  border: 4px solid var(--green);
}
.float-card {
  position: absolute;
  width: 23%;
  animation: float 6s ease-in-out infinite;
}
.fc-1 {
  left: -3%;
  top: 2%;
  rotate: -12deg;
}
.fc-2 {
  right: -2%;
  top: 0;
  rotate: 10deg;
  animation-delay: -2s;
}
.fc-3 {
  right: 4%;
  bottom: 0;
  rotate: -6deg;
  width: 20%;
  animation-delay: -4s;
}
@keyframes float {
  50% {
    translate: 0 -14px;
  }
}

/* ---------- Le jeu en ligne ---------- */
.game {
  position: relative;
  color: #fff;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.08) 0 120px, transparent 121px),
    radial-gradient(circle at 90% 85%, rgba(255, 255, 255, 0.06) 0 180px, transparent 181px),
    linear-gradient(160deg, var(--green-dark), var(--green-deep));
  padding: clamp(60px, 8vw, 110px) 0;
  border-radius: clamp(28px, 4vw, 56px);
  margin-inline: clamp(0px, 1.5vw, 24px);
}
.game-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: clamp(30px, 5vw, 70px);
}
.badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 16px;
}
.game-lead {
  margin-top: 16px;
  font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.45rem);
}
.game-lead .red {
  color: #ffb3aa;
}
.game-lead .green {
  color: #a8ecc2;
}
.steps {
  list-style: none;
  padding: 0;
  margin: 28px 0 32px;
  display: grid;
  gap: 12px;
}
.steps li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 16px 10px 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  font-weight: 700;
  font-size: 1.15rem;
}
.steps b {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-right: 8px;
  border-radius: 50%;
  background: #fff;
  color: var(--green-dark);
}
.step-cards {
  flex: none;
  width: 52px;
  height: 64px;
  display: grid;
  place-items: center;
}
.mini {
  width: 46px;
  border-width: 3px;
  border-radius: 8px;
  padding: 3px;
}
.step-ok {
  border-radius: 14px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 1.7rem;
}
.perks {
  list-style: none;
  padding: 0;
  margin: 30px 0 0;
  display: grid;
  gap: 10px;
  color: #d5f0df;
}
.perks li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.preview {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  font: inherit;
  transition: transform 0.4s;
}
.preview:hover {
  transform: translateY(-6px) rotate(0.5deg);
}
.preview-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  background: #f1ebe0;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.95rem;
}
.preview-bar i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #e0d4c1;
}
.preview-bar i:first-child {
  background: #ec8f86;
}
.preview-bar i:nth-child(2) {
  background: #f2cd6b;
}
.preview-bar i:nth-child(3) {
  background: #8fd2a6;
}
.preview-bar span {
  margin-left: 10px;
}
.preview img {
  width: 100%;
  height: auto;
}
.preview-play {
  position: absolute;
  inset: 44px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #fff;
  font-family: var(--head);
  font-weight: 800;
  font-size: 1.8rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  background: rgba(23, 92, 53, 0.25);
  transition: background 0.3s;
}
.preview:hover .preview-play {
  background: rgba(23, 92, 53, 0.4);
}
.play-circle {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--yellow);
  color: var(--ink);
  font-size: 2.6rem;
  box-shadow: 0 0 0 12px rgba(255, 255, 255, 0.45);
  animation: pulse 2.4s ease-in-out infinite;
}
.play-circle .ico {
  margin-left: 8px;
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(60px, 8vw, 110px) 0;
}
.section-tint {
  background: var(--paper);
  border-block: 1px solid var(--line);
}
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(34px, 5vw, 56px);
}
.section-head p {
  margin-top: 14px;
  font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.35rem);
  color: var(--muted);
}

/* ---------- Animations ---------- */
.anims {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 36px);
}
.anim {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 30px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.anim-visual {
  position: relative;
  height: 250px;
  display: grid;
  place-items: center;
}
.anim-visual-ok {
  background:
    repeating-linear-gradient(92deg, rgba(255, 255, 255, 0.06) 0 3px, transparent 3px 12px),
    linear-gradient(180deg, #d29a62, #b97c43);
}
.anim-visual-loto {
  background: linear-gradient(160deg, #cfe5f6, #9ccaee);
}
.fan {
  position: absolute;
  width: 112px;
  transition: rotate 0.4s, translate 0.4s;
}
.fan-1 {
  rotate: -14deg;
  translate: -88px 10px;
}
.fan-2 {
  rotate: 0deg;
  z-index: 2;
}
.fan-3 {
  rotate: 14deg;
  translate: 88px 10px;
}
.anim:hover .fan-1 {
  rotate: -20deg;
  translate: -106px 14px;
}
.anim:hover .fan-3 {
  rotate: 20deg;
  translate: 106px 14px;
}
.anim:hover .fan-2 {
  translate: 0 -10px;
}

.loto {
  position: relative;
  width: 300px;
  padding: 16px 16px 18px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 14px 30px rgba(30, 70, 110, 0.25);
  rotate: -3deg;
  transition: rotate 0.4s;
}
.anim:hover .loto {
  rotate: 0deg;
}
.loto-title {
  display: block;
  text-align: center;
  font-family: var(--head);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--blue);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.loto-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.loto-cell {
  aspect-ratio: 1;
  border-radius: 12px;
  background: var(--blue-soft);
  display: grid;
  place-items: center;
  padding: 12px;
}
.token {
  position: absolute;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 5px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25), inset 0 -4px 0 rgba(0, 0, 0, 0.15);
}
.token-1 {
  background: var(--red);
  left: 34px;
  bottom: 30px;
}
.token-2 {
  background: var(--yellow);
  right: 34px;
  bottom: 40px;
}

.anim-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(22px, 3vw, 34px);
  flex: 1;
}
.facts {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.facts li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--cream);
  font-weight: 700;
  line-height: 1.25;
}
.facts .ico {
  color: var(--green);
}
.bonus {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--yellow-soft);
  font-weight: 700;
}
.bonus .ico {
  margin-top: 2px;
  color: var(--yellow-dark);
}
.bonus-blue {
  background: var(--blue-soft);
}
.bonus-blue .ico {
  color: var(--blue);
}
.anim-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
  padding-top: 6px;
}

/* ---------- Pourquoi le jeu ---------- */
.values {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 3vw, 30px);
}
.value {
  text-align: center;
  padding: 34px 26px;
  background: #fff;
  border-radius: 26px;
  border: 1px solid var(--line);
}
.value-ico {
  width: 88px;
  height: 88px;
  margin: 0 auto 18px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  font-size: 2.6rem;
  rotate: -4deg;
}
.v-green {
  background: var(--green-soft);
  color: var(--green-dark);
}
.v-yellow {
  background: var(--yellow-soft);
  color: var(--yellow-dark);
  rotate: 4deg;
}
.v-red {
  background: var(--red-soft);
  color: var(--red-dark);
}
.value p {
  margin-top: 10px;
  color: var(--muted);
}

/* ---------- Qui suis-je ---------- */
.regis {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: clamp(30px, 6vw, 80px);
  max-width: 980px;
}
.regis-photo {
  position: relative;
  width: clamp(200px, 26vw, 300px);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.5), transparent 50%),
    linear-gradient(150deg, var(--green), var(--green-deep));
  box-shadow: 0 0 0 12px var(--green-soft), var(--shadow-lg);
}
.regis-initials {
  font-family: var(--head);
  font-weight: 800;
  font-size: clamp(4rem, 8vw, 6rem);
  color: #fff;
  letter-spacing: 0.04em;
}
.regis-tag {
  position: absolute;
  right: -14px;
  bottom: 6%;
  padding: 12px 18px;
  border-radius: 20px;
  background: var(--yellow);
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  rotate: 6deg;
  box-shadow: var(--shadow);
}
.regis-role {
  margin: 6px 0 18px;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--green-dark);
}
.regis-text > p:not(.eyebrow, .regis-role) {
  font-size: clamp(1.12rem, 1.05rem + 0.35vw, 1.3rem);
}
.regis-place {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--muted);
  font-weight: 700;
}

/* ---------- Contact ---------- */
.contact {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: start;
}
.contact-intro p {
  margin-top: 16px;
  font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.35rem);
  color: var(--muted);
}
.contact-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 10px;
  font-weight: 700;
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.contact-list .ico {
  color: var(--green);
}
.form {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 3vw, 36px);
  background: #fff;
  border-radius: 28px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.form label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}
.form input,
.form textarea {
  width: 100%;
  font: inherit;
  font-size: 1.1rem;
  padding: 14px 16px;
  border-radius: 14px;
  border: 2px solid #e2d6c3;
  background: var(--cream);
  color: var(--ink);
  transition: border-color 0.2s, background 0.2s;
}
.form textarea {
  resize: vertical;
  min-height: 130px;
}
.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--green);
  background: #fff;
}
.form .is-invalid {
  border-color: var(--red);
  background: var(--red-soft);
}
.form-error {
  color: var(--red-dark);
  font-weight: 700;
}
.form-ok {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-weight: 700;
}
.form-ok[hidden],
.form-error[hidden] {
  display: none;
}
.form .btn {
  justify-self: start;
}

/* ---------- Pied de page ---------- */
.footer {
  padding: 34px 0 40px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
}
.brand-small {
  font-size: 1.4rem;
  color: var(--ink);
}

/* ---------- Bouton flottant (téléphone) ---------- */
.fab {
  display: none;
}

/* ---------- Le jeu en plein écran ---------- */
.game-dialog {
  width: min(1240px, calc(100vw - 32px));
  height: calc(100dvh - 32px);
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  border-radius: 26px;
  background: var(--cream);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
/* le navigateur impose une largeur max aux fenêtres modales : on la retire */
.game-dialog:modal {
  max-width: none;
  max-height: none;
}
.game-dialog[open] {
  display: flex;
  flex-direction: column;
  animation: pop 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.game-dialog::backdrop {
  background: rgba(23, 49, 35, 0.7);
  backdrop-filter: blur(4px);
}
@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(20px);
  }
}
.dialog-bar {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px 8px 18px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.dialog-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--head);
  font-weight: 800;
  font-size: 1.3rem;
}
.game-dialog iframe {
  flex: 1;
  width: 100%;
  border: 0;
  display: block;
  background: var(--cream);
}

/* ---------- Apparition au défilement ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.no-js .reveal {
  opacity: 1;
  transform: none;
}

/* ---------- Tablette ---------- */
@media (max-width: 960px) {
  .nav {
    display: none;
  }
  .topbar .btn {
    margin-left: auto;
  }
  .hero,
  .game-inner,
  .contact {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    max-width: 560px;
    width: 100%;
    margin: 0 auto;
  }
  .anims {
    grid-template-columns: 1fr;
    max-width: 640px;
    margin: 0 auto;
  }
  .regis {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .regis-place {
    justify-content: center;
  }
}

/* ---------- Téléphone ---------- */
@media (max-width: 640px) {
  .brand {
    font-size: 1.5rem;
  }
  .brand img {
    width: 38px;
    height: 38px;
  }
  .hero-actions .btn {
    flex: 1 1 100%;
  }
  .values {
    grid-template-columns: 1fr;
  }
  .facts {
    grid-template-columns: 1fr;
  }
  .anim-visual {
    height: 210px;
  }
  .fan {
    width: 92px;
  }
  .fan-1 {
    translate: -72px 8px;
  }
  .fan-3 {
    translate: 72px 8px;
  }
  .loto {
    width: 250px;
  }
  .game .btn-xl {
    width: 100%;
  }
  .form .btn {
    justify-self: stretch;
  }
  .play-circle {
    width: 84px;
    height: 84px;
    font-size: 2.1rem;
  }
  .tablet-play {
    width: 66px;
    height: 66px;
    font-size: 1.7rem;
  }
  .footer {
    padding-bottom: 110px;
  }
  .fab {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: calc(14px + env(safe-area-inset-bottom));
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 60px;
    border: 0;
    border-radius: 999px;
    font: inherit;
    font-weight: 700;
    font-size: 1.2rem;
    color: #fff;
    background: var(--green);
    box-shadow: 0 5px 0 var(--green-dark), 0 14px 30px rgba(23, 92, 53, 0.4);
    cursor: pointer;
    transform: translateY(160%);
    transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.2);
  }
  .fab.is-shown {
    transform: none;
  }
  .game-dialog {
    width: 100vw;
    height: 100dvh;
    border-radius: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
