html,
body {
  width: 100%;
  min-width: 0;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
}

/* Respecte toujours l'attribut HTML hidden, y compris sur les boutons stylés. */
[hidden] {
  display: none !important;
}

* {
  box-sizing: border-box;
  -webkit-user-select: none;
  user-select: none;
}

/* Le défilement reste actif, mais les barres ne sont pas affichées. */
html,
body,
* {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  font-family: Tahoma, Verdana, Arial, sans-serif;
  background: #000;
  color: #111;
  max-width: 100vw;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-touch-callout: none;
}

html.home-page-root,
body.home-page {
  min-height: 100%;
  background-color: #000;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: none;
}

body.home-page {
  position: static;
}

html.fixed-xp-page-root,
body.fixed-xp-page {
  height: 100%;
  min-height: 0;
  background: #ed93b3;
  overflow: hidden;
  overscroll-behavior: none;
}

body.fixed-xp-page {
  position: fixed;
  inset: 0;
}

.fixed-xp-page .xp-desktop {
  height: 100%;
  min-height: 0;
  padding-top: 8px;
  flex-direction: column;
  align-items: center;
  background: #ed93b3;
}

.fixed-xp-page .xp-window,
.fixed-xp-page .grid-window {
  height: auto;
  min-height: 0;
  flex: 1 1 auto;
}

.fixed-xp-page .container {
  overscroll-behavior: contain;
}

/* Les pages légales reprennent exactement les bandes noires de l'accueil. */
.legal-static-page .xp-desktop {
  padding: 8px 0;
}

/* La page Essayer conserve la même bande noire en haut et en bas. */
.grid-test-page .xp-desktop {
  padding: 8px 0;
}
.grid-test-page .xp-window {
  box-shadow: inset 0 0 0 1px #ffffff;
}

/* Sur la page Contact, la fenêtre reste attachée au viewport réellement
   visible par iOS. Quand le clavier apparaît, seule sa zone de contenu
   rétrécit et défile ; le cadre XP ne peut plus être poussé vers le haut. */
.contact-page .xp-window {
  position: absolute;
  z-index: 1;
  top: calc(var(--contact-viewport-top, 0px) + 8px);
  right: 0;
  left: 0;
  width: min(920px, 100%);
  height: calc(var(--contact-viewport-height, 100svh) - 8px);
  min-height: 0;
  max-height: calc(var(--contact-viewport-height, 100svh) - 8px);
  flex: 0 0 auto;
  display: block;
  margin: 0 auto;
  padding: 0;
  transform: none;
  overflow-y: hidden;
  overflow-x: clip;
  overscroll-behavior: none;
  border-width: 2px;
  border-bottom: 0;
  border-radius: 9px 9px 0 0;
  box-shadow:
    -10px 0 18px -12px rgba(0, 0, 0, 0.7),
    10px 0 18px -12px rgba(0, 0, 0, 0.7),
    inset 1px 0 0 #ffffff,
    inset -1px 0 0 #ffffff;
}

html.contact-page-root {
  height: 100%;
  min-height: 0;
  overflow-x: clip;
  overflow-y: hidden;
}

body.contact-page {
  position: fixed;
  inset: 0;
  height: 100%;
  min-height: 0;
  overflow-x: clip;
  overflow-y: hidden;
  overscroll-behavior: none;
}

body.contact-page::before {
  content: "";
  position: fixed;
  top: calc(-1 * env(safe-area-inset-top, 0px));
  left: 50%;
  z-index: 0;
  width: min(920px, 100%);
  height: calc(env(safe-area-inset-top, 0px) + var(--contact-viewport-top, 0px) + 22px);
  background: #000;
  transform: translateX(-50%);
  pointer-events: none;
}

.contact-top-frame {
  position: fixed;
  top: calc(var(--contact-viewport-top, 0px) + 8px);
  left: 50%;
  z-index: 20;
  width: min(920px, 100%);
  box-sizing: border-box;
  border: 2px solid #1b4f9c;
  border-bottom: 0;
  border-radius: 9px 9px 0 0;
  background: #ece9d8;
  box-shadow: 0 6px 12px -8px rgba(0, 0, 0, 0.55);
  transform: translateX(-50%);
  overflow: hidden;
}

.contact-page .xp-desktop {
  height: 100%;
  min-height: 0;
  padding: 8px 0 0;
  flex-direction: column;
  align-items: center;
  background: #000;
  overflow-x: clip;
  overflow-y: visible;
}

.contact-scroll-area {
  position: absolute;
  top: 70.5px;
  right: 0;
  bottom: 0;
  left: 0;
  display: block;
  min-height: 0;
  padding-top: 0;
  overflow-x: clip;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.contact-page .contact-top-frame .xp-titlebar,
.contact-page .contact-top-frame .xp-menu-bar {
  position: static;
  width: 100%;
  transform: none;
}

.contact-page .contact-top-frame .xp-titlebar {
  height: 36px;
  min-height: 36px;
  max-height: 36px;
}

.contact-page .container {
  flex: 0 0 auto;
  overflow: visible;
}

.home-page .xp-desktop {
  height: auto;
  min-height: 100svh;
  padding: 8px 0 0;
  flex-direction: column;
  align-items: center;
  background: #000;
}

.home-page .xp-window {
  position: absolute;
  top: calc(var(--home-viewport-top, 0px) + 8px);
  right: 0;
  left: 0;
  width: min(920px, 100%);
  height: calc(var(--home-viewport-height, 100svh) - 8px);
  min-height: 0;
  max-height: calc(var(--home-viewport-height, 100svh) - 8px);
  margin: 0 auto;
  padding: 0;
  transform: none;
  overflow: hidden;
  border-bottom: 0;
  border-radius: 9px 9px 0 0;
}

.home-top-frame {
  position: fixed;
  top: calc(var(--home-viewport-top, 0px) + 8px);
  left: 50%;
  z-index: 20;
  width: min(920px, 100%);
  box-sizing: border-box;
  border: 2px solid #1b4f9c;
  border-bottom: 0;
  border-radius: 9px 9px 0 0;
  background: #ece9d8;
  box-shadow: 0 6px 12px -8px rgba(0, 0, 0, 0.55);
  transform: translateX(-50%);
  overflow: hidden;
}

.home-top-frame .xp-titlebar,
.home-top-frame .xp-menu-bar {
  position: static;
  width: 100%;
  transform: none;
}

.home-scroll-area {
  position: absolute;
  top: 70.5px;
  right: 0;
  bottom: 0;
  left: 0;
  display: block;
  min-height: 0;
  overflow-x: clip;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.home-page .container {
  flex: 0 0 auto;
  overflow: visible;
  margin-top: 6px;
  overscroll-behavior: contain;
}

.contact-page .contact-page-header {
  margin-top: 6px;
}

.xp-desktop {
  min-height: 100vh;
  min-height: 100svh;
  box-sizing: border-box;
  width: 100%;
  overflow-x: hidden;
  padding: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.xp-window {
  width: min(920px, 100%);
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  height: calc(100svh - 2px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 2px solid #1b4f9c;
  border-radius: 9px 9px 5px 5px;
  background: #ece9d8;
  box-shadow:
    0 22px 45px rgba(0, 0, 0, 0.35),
    inset 0 0 0 1px #ffffff;
  transform-origin: center;
}

.xp-titlebar {
  height: 36px;
  flex: 0 0 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px 0 8px;
  color: #fff;
  background: linear-gradient(to bottom, #4091ff 0%, #054ad1 50%, #00309e 100%);
  box-shadow: none;
  font-weight: bold;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.55);
  min-width: 0;
  overflow: hidden;
}

.xp-title {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 19px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
}

.xp-title .site-name {
  margin: 0;
  font: inherit;
  color: inherit;
  white-space: inherit;
}

.xp-title .site-name::after {
  content: ".exe";
}

.xp-window-buttons {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.xp-window-buttons button {
  width: 24px;
  height: 24px;
  min-width: 24px;
  max-width: 24px;
  min-height: 24px;
  max-height: 24px;
  flex: 0 0 24px;
  padding: 0;
  border: 1px solid #ffffff;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  color: transparent;
  font-family: Tahoma, Verdana, Arial, sans-serif;
  font-size: 0;
  font-weight: bold;
  line-height: 0;
  background: linear-gradient(to bottom, #7ab8ff, #054ad1);
  box-shadow: none;
  cursor: default;
}

.xp-window-buttons button:first-child::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 11px;
  height: 2px;
  background: #fff;
  transform: translateX(-50%);
}

.xp-window-buttons button:nth-child(2)::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border: 2px solid #fff;
  transform: translate(-50%, -50%);
}

.xp-window-buttons button:last-child {
  height: 24px;
  background: linear-gradient(to bottom, rgba(255, 165, 0, 0.95), #ff0000);
}

.xp-window-buttons button:last-child::before,
.xp-window-buttons button:last-child::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 17px;
  height: 3px;
  background: #fff;
  transform-origin: center;
}

.xp-window-buttons button:last-child::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.xp-window-buttons button:last-child::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.xp-menu-bar {
  display: flex;
  flex: 0 0 auto;
  gap: 22px;
  padding: 7px 12px;
  background: #ece9d8;
  border-bottom: 1px solid #c9c5b4;
  color: #222;
  font-size: 0.9rem;
  align-items: center;
  min-width: 0;
  overflow: hidden;
}

body:not(.contact-page) .xp-menu-bar {
  position: relative;
  z-index: 10;
  box-shadow: 0 6px 12px -8px rgba(0, 0, 0, 0.55);
}

.xp-menu-bar a,
.xp-menu-bar a:visited,
.xp-menu-bar a:hover,
.xp-menu-bar a:active,
.menu-contact,
.menu-contact:visited,
.menu-contact:hover,
.menu-contact:active,
.menu-link,
.menu-link:visited,
.menu-link:hover,
.menu-link:active {
  color: inherit;
  text-decoration: none;
}

.xp-menu-bar a::first-letter,
.xp-menu-bar span::first-letter,
.menu-contact::first-letter,
.menu-link::first-letter,
.site-footer a::first-letter {
  text-decoration: underline;
}

.xp-menu-bar a:last-child {
  margin-left: 0;
}

.menu-contact {
  margin-left: 0;
}

.xp-menu-bar .menu-contact {
  margin-left: auto !important;
}

.grid-test-page .grid-test-menu-bar {
  position: static;
  background: #ece9d8;
  box-shadow: none;
  font-family: "Pliant", system-ui, sans-serif;
}

.grid-test-page .grid-test-menu-bar .menu-contact {
  margin-left: auto !important;
}

.xp-header {
  height: 0;
  padding: 0;
  text-align: center;
  min-width: 0;
  overflow: hidden;
}

.main-logo {
  display: flex;
  flex-direction: column;
  width: min(320px, 80%);
  height: auto;
  margin: 0 auto;
}

.app-promo-card {
  display: grid;
  /* La galerie doit utiliser uniquement l'espace disponible dans la carte.
     L'ancienne borne de 430 px élargissait la grille au-delà de la fenêtre. */
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  grid-template-rows: 300px;
  align-items: stretch;
  gap: 24px;
  margin-top: 18px;
  margin-bottom: 0;
  padding: 18px;
  border: 2px solid #7f9db9;
  background: #fffef5;
  box-shadow: none;
}

.instagram-feed-card {
  width: calc(100% - 6px);
  max-width: calc(100% - 6px);
  box-sizing: border-box;
  margin: 8px auto 4px;
  padding: 18px;
  border: 2px solid #7f9db9;
  background: #fffef5;
  box-shadow: none;
}

.container > .instagram-feed-card {
  width: calc(100% - 6px);
  max-width: calc(100% - 6px);
}

.instagram-feed-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.instagram-feed-card h2 {
  margin: 0;
  color: #111;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  font-size: 1.45rem;
  font-weight: 900;
  font-style: italic;
  line-height: 1.1;
  letter-spacing: -0.04em;
  text-shadow: none;
  text-transform: uppercase;
}
.instagram-feed-social-icons { display: flex; align-items: center; gap: 10px; }
.instagram-feed-icon { display: grid; place-items: center; width: 25px; height: 25px; color: #c4adf3; }
.instagram-feed-icon svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.instagram-feed-icon img { display: block; width: 25px; height: 25px; }
.tiktok-feed-icon { width: 25px; height: 25px; }
.tiktok-feed-icon img { width: 18px; height: 18px; object-fit: contain; }
.instagram-carousel { width: 100%; min-width: 0; margin-top: 15px; overflow-x: auto; scrollbar-width: none; cursor: grab; user-select: none; }
.instagram-carousel:active { cursor: grabbing; }
.instagram-carousel.is-dragging { cursor: grabbing; scroll-behavior: auto; }
.instagram-carousel-track { display: flex; align-items: flex-start; gap: 10px; width: max-content; height: 185px; }
.instagram-carousel-slide { position: relative; display: block; width: 139px; height: 185px; flex: 0 0 auto; color: inherit; text-decoration: none; overflow: hidden; border-radius: 9px; }
.instagram-carousel-slide img { display: block; width: 139px; height: 185px; aspect-ratio: 3 / 4; border-radius: 9px; object-fit: cover; background: #c4adf3; user-select: none; -webkit-user-drag: none; }
.instagram-carousel-slide.is-tiktok { width: 139px; }
.instagram-carousel-slide.is-tiktok img { width: 139px; aspect-ratio: 3 / 4; }
.instagram-carousel-hover-icon { position: absolute; inset: 0; display: grid; place-items: center; background: rgb(0 0 0 / 0%); opacity: 0; transition: background-color .16s ease, opacity .16s ease; pointer-events: none; }
.instagram-carousel-hover-icon svg, .instagram-carousel-hover-icon img { width: 42px; height: 42px; background: transparent; object-fit: contain; }
.instagram-carousel-slide.is-tiktok .instagram-carousel-hover-icon img { width: 31px; height: 31px; background: transparent; filter: brightness(0) invert(1); }
.instagram-carousel-hover-icon svg { color: #fff; fill: none; stroke: #fff; stroke-width: 1.8; }
.instagram-carousel-slide:hover .instagram-carousel-hover-icon, .instagram-carousel-slide:focus-visible .instagram-carousel-hover-icon { background: rgb(0 0 0 / 32%); opacity: 1; }
.instagram-carousel-status { margin: 8px 0 0; color: #555; font-size: .85rem; text-align: left; }

.home-newsletter-card {
  width: calc(100% - 6px);
  max-width: calc(100% - 6px);
  box-sizing: border-box;
  margin: 8px auto 4px;
  padding: 18px;
  border: 2px solid #7f9db9;
  background: #fffef5;
  box-shadow: none;
}

.home-newsletter-card h2 {
  margin: 0;
  color: #111;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  font-size: 1.45rem;
  font-weight: 900;
  font-style: italic;
  line-height: 1.1;
  letter-spacing: -0.04em;
  text-shadow: none;
  text-transform: uppercase;
}

.home-newsletter-card > p {
  margin: 10px 0 0;
  color: #222;
  font-size: 1.03rem;
  line-height: 1.45;
}

.home-newsletter-card .home-newsletter-form {
  margin-top: 15px;
}

.home-newsletter-card .home-newsletter-form > label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 640px) {
  .instagram-feed-heading { align-items: flex-start; }
}

/* Le bloc d'attente conserve la même hauteur que la carte de présentation. */
.home-coming-soon-card {
  box-sizing: border-box;
  flex: 0 0 auto;
  align-self: stretch;
  width: calc(100% - 6px);
  max-width: calc(100% - 6px);
  height: auto;
  padding: 0 18px;
  border: 2px solid #7f9db9;
  background: #fffef5;
  min-height: 0;
  overflow: visible;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  box-shadow: none;
}

.home-coming-soon-card + .home-coming-soon-card {
  margin-top: 8px;
}

.container > .app-promo-card {
  margin-top: 8px;
}

.home-promo-grid-card {
  grid-template-columns: minmax(0, 1fr) auto;
}

.promo-grid-card .home-coming-soon-copy {
  align-self: start;
  padding-top: 0;
}

.promo-grid-card {
  align-items: start;
}

.wizz-card {
  grid-template-columns: minmax(0, 1fr);
}

.home-promo-grid-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-top: 10px;
}

.home-promo-grid-cta p {
  flex: 1 1 auto;
  margin-left: 0 !important;
  font-size: 1.03rem;
  line-height: 1.45;
}

.home-promo-grid-cta p.wizz-counter {
  width: auto;
  max-width: none;
  margin: 0;
  color: #222;
  font-size: 1.03rem;
  line-height: 1.45;
  text-align: left;
}

.home-promo-grid-cta .xp-button {
  flex: 0 0 auto;
  align-self: center;
  height: 38px;
  margin: 0;
  text-align: center;
  text-decoration: none;
}

.promo-grid-photo {
  display: block;
  grid-column: 2;
  grid-row: 1;
  margin: 18px 0;
  width: 139px;
  height: 139px;
  border-radius: 9px;
  object-fit: cover;
}

.home-promo-grid-cta #wizz-button {
  width: 38px;
  min-width: 38px;
  padding: 0;
  margin-left: auto;
}

.wizz-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}

.wizz-title-row h2 {
  min-width: 0;
}

#wizz-title {
  margin-bottom: 18px !important;
}

.wizz-count-label {
  color: #4f4f4f;
  font-size: 0.48em;
  font-weight: normal;
  white-space: nowrap;
}

.wizz-title-row #wizz-button {
  flex: 0 0 38px;
  width: 38px;
  min-width: 38px;
  height: 38px;
  margin: 0;
  margin-right: 0;
  padding: 0;
}

.home-coming-soon-copy {
  min-width: 0;
  text-align: left;
}

.home-coming-soon-actions {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 130px;
}

.home-coming-soon-card:not(.home-promo-grid-card) .home-coming-soon-actions {
  align-items: flex-end;
}

.home-coming-soon-card h2,
.home-coming-soon-card p,
.home-coming-soon-card .xp-button,
.home-coming-soon-card .wizz-counter {
  margin: 0;
}

.home-coming-soon-card h2 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif !important;
  font-size: 1.45rem !important;
  font-weight: 900 !important;
  font-style: italic;
  line-height: 1.1;
  color: #111 !important;
  letter-spacing: -0.04em;
  text-shadow: none;
  text-transform: uppercase;
}

.home-coming-soon-card > p {
  line-height: 1.2;
}

.home-coming-soon-card .wizz-button {
  margin: 4px 0 0;
  font-size: 1.8rem;
}

.home-coming-soon-card .wizz-counter {
  margin-top: 0;
}

.home-coming-soon-card .home-coming-soon-copy p.wizz-counter {
  color: #222;
  font-size: 1.03rem;
  line-height: 1.45;
}

.app-promo-left {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.app-promo-icon {
  display: block;
  width: 84px;
  height: 84px;
  flex: 0 0 auto;
  border-radius: 23px;
  overflow: hidden;
  line-height: 0;
}

.app-promo-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.app-promo-main {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
}

.app-promo-copy {
  min-width: 0;
  flex: 0 1 250px;
}

.app-promo-details {
  width: 100%;
}

.app-promo-download {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
}

.app-promo-details p {
  margin: 0;
  color: #222;
  font-size: 1.03rem;
  line-height: 1.45;
}

.app-promo-eyebrow {
  margin: 0 0 5px;
  color: #555;
  font-size: 0.88rem;
  font-weight: bold;
}

.app-promo-card h2 {
  margin: 0;
  color: #111;
  font-size: 1.45rem;
}

.app-promo-card p:not(.app-promo-eyebrow) {
  margin: 0 0 16px;
  line-height: 1.4;
}

.app-promo-card .app-promo-details p {
  margin: 0;
}

.app-store-badge {
  display: block;
  width: 155px;
  height: auto;
  margin: 0 auto;
  margin-bottom: 8px;
  line-height: 0;
  text-decoration: none;
}

.google-play-badge {
  position: relative;
  container-type: inline-size;
  width: auto;
  height: auto;
  margin: 0;
}

.app-promo-download .app-store-badge {
  display: inline-block;
  width: auto;
  flex: 3.1585 1 0;
  min-width: 0;
  margin: 0 0 8px;
}

.app-promo-download .google-play-badge {
  flex-grow: 3.3715;
}

.app-store-badge img { display: block; width: 100%; height: auto; }

.app-store-badge--disabled {
  filter: grayscale(1);
  opacity: 0.35;
  cursor: default;
  user-select: none;
}

.google-play-badge.app-store-badge--disabled {
  filter: grayscale(1);
  opacity: 0.62;
}

.google-play-coming-soon {
  position: absolute;
  top: 14%;
  left: 30.5%;
  color: #fff;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 6.7cqi;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.app-promo-previews {
  display: flex;
  align-items: center;
  align-self: start;
  gap: 10px;
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  min-width: 0;
  height: 300px;
  overflow-x: auto;
  /* La carte fournit la même marge tout autour des aperçus. */
  padding: 0 2px;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
}

.app-promo-previews.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

.app-promo-previews img {
  display: block;
  width: auto;
  height: 100%;
  aspect-ratio: 1284 / 2778;
  flex: 0 0 auto;
  border-radius: 9px;
  object-fit: cover;
  object-position: top;
  background: #c4adf3;
}

/* La colonne de l'image reprend exactement sa largeur affichée. */
@container (max-width: 483px) {
  .promo-grid-card {
    grid-template-columns: minmax(0, 1fr) 139px;
    grid-template-rows: auto auto;
    column-gap: 18px;
    row-gap: 0;
    align-items: center;
  }

  .promo-grid-card .home-coming-soon-copy {
    display: contents;
  }

  .promo-grid-card h2 {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: start;
    text-align: left;
    margin-top: 18px !important;
  }

  .promo-grid-card .home-promo-grid-cta {
    grid-column: 1;
    grid-row: 2;
    align-self: center;
    align-items: center;
    justify-content: space-between;
    height: 150px;
    min-width: 0;
    margin-top: 0;
  }

  .promo-grid-card .home-promo-grid-cta .xp-button {
    max-width: 100%;
    box-sizing: border-box;
    margin-bottom: 18px;
  }

  .promo-grid-card .promo-grid-photo {
    grid-column: 2;
    grid-row: 2;
    margin: 0 0 18px;
  }

  .app-promo-card {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 300px 300px;
    row-gap: 42px;
    column-gap: 24px;
    padding: 18px;
  }
  .app-promo-left {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    height: 300px;
  }
  .app-promo-icon { width: 84px; height: 84px; border-radius: 23px; }
  .app-promo-main {
    width: 100%;
  }
  .app-promo-card h2 { font-size: 1.45rem; }
  .app-promo-copy { flex: 0 1 250px; }
  .app-promo-details p { margin-bottom: 0; }
  .app-promo-previews {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    height: 300px;
    margin-top: 0;
    justify-content: flex-start;
    padding: 2px 2px 8px;
  }
}


.xp-header h1 {
  margin: 0;
  font-size: 3.2rem;
  color: #123d8f;
  letter-spacing: -0.04em;
  text-shadow: 2px 2px 0 #fff;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
}

.legal-page-header h1 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  color: #111;
  text-shadow: none;
}

.legal-page-header {
  height: auto;
  margin-top: 10px;
  margin-bottom: 10px;
  padding: 18px 16px 10px;
  overflow: visible;
}

.legal-page-header h1 {
  font-size: 2.2rem;
  white-space: normal;
  overflow: visible;
  line-height: 1.15;
  padding-right: 0.08em;
}

.contact-page-header {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: calc(100% - 16px);
  height: 144px;
  min-height: 144px;
  flex: 0 0 144px;
  margin: 8px;
  text-align: left;
  padding: 14px 118px 12px 12px;
  border: 2px solid #7f9db9;
  background: #fffef5;
  overflow: visible;
}

.contact-intro-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: max-content;
  align-items: start;
  gap: 14px;
  width: calc(100% - 16px);
  margin: 0 auto 8px;
}

.contact-intro-card {
  align-self: start;
  min-height: 0;
  height: var(--contact-intro-card-height, auto);
  padding: 36px 28px;
  border: 2px solid #111;
  box-shadow: 1px 1px 0 #111;
  color: #111;
}

.contact-intro-card-purple { background: #b99de8; }
.contact-intro-card-yellow { background: #f5df87; }

.contact-intro-card h2 {
  margin: 0 0 12px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  font-size: 1.45rem;
  font-weight: 900;
  font-style: italic;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.contact-intro-card p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.25;
}

.contact-page-header .contact-kicker {
  margin: 0 0 10px;
  color: #111;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  font-size: 1rem;
  font-weight: 900;
  font-style: italic;
  letter-spacing: 0.02em;
  line-height: 1;
}

.contact-page-header h1 {
  display: inline-block;
}

.contact-header-logo {
  position: absolute;
  top: 50%;
  right: 18px;
  width: 82px;
  height: 82px;
  object-fit: contain;
  transform: translateY(-50%);
  box-shadow: 4px 4px 0 #111;
}

.contact-cursor {
  display: inline-block;
  margin-left: 0.08em;
  color: #9668d9;
  font-style: normal;
  animation: contact-cursor-blink 1s steps(1, end) infinite;
}

@keyframes contact-cursor-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .contact-cursor { animation: none; }
}

.container {
  container-type: inline-size;
  flex: 1;
  width: min(720px, calc(100% - 32px));
  margin: 8px auto 12px;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
}

.container > .card,
.container > .app-promo-card {
  width: calc(100% - 6px);
  max-width: calc(100% - 6px);
}

.legal-container {
  width: calc(100% - 16px);
  max-width: none;
  min-height: 0;
  align-items: flex-start;
  justify-content: flex-start;
  overflow-y: auto;
  scrollbar-gutter: auto;
  -webkit-overflow-scrolling: touch;
  padding: 8px 0 16px;
}

.legal-card {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  box-shadow: none;
}

.legal-container > .card,
.legal-container > .app-promo-card {
  width: 100%;
  max-width: none;
  box-shadow: none;
}

/* Les pages légales reprennent exactement les 8 px latéraux de grilletest. */
.container.legal-container {
  width: calc(100% - 28px);
  max-width: none;
  box-sizing: border-box;
  padding-left: 8px;
  padding-right: 8px;
}

.card {
  padding: 18px;
  text-align: center;
  background: #fffef5;
  border: 2px solid #7f9db9;
  box-shadow: 4px 4px 0 rgba(172, 169, 153, 0.45);
  max-width: 100%;
  min-width: 0;
}

.home-coming-soon-card {
  box-shadow: none !important;
  padding: 0 18px !important;
  width: calc(100% - 6px);
  max-width: calc(100% - 6px);
  margin-left: auto;
  margin-right: auto;
}

.app-promo-card {
  width: calc(100% - 6px);
  max-width: calc(100% - 6px);
  margin-left: auto;
  margin-right: auto;
}

.card h2 {
  margin: 18px 0 10px;
  color: #0b4fb3;
  font-size: 1.55rem;
  line-height: 1.1;
}

.card p {
  width: 100%;
  max-width: 560px;
  margin: 0 auto 18px;
  color: #222;
  font-size: 1.03rem;
  line-height: 1.45;
}

.wizz-counter {
  margin: 8px 0 0;
  color: #9a9a9a;
  font-size: 0.8rem;
  font-weight: normal;
}

.card p.wizz-counter {
  display: block;
  width: 100%;
  margin: 8px auto 0;
  color: #ababab;
  font-size: 0.8rem;
  font-weight: normal;
  text-align: center;
}

.contact-container form > label {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  font-weight: 900;
  font-style: italic;
  color: #000;
}

.xp-button {
  margin-top: 16px;
  padding: 8px 28px;
  min-width: 130px;
  border: 1px solid #003c74;
  border-radius: 3px;
  color: #111;
  font-family: Tahoma, Verdana, Arial, sans-serif;
  font-size: 1rem;
  background: linear-gradient(to bottom, #ffffff 0%, #f4f1e6 45%, #d8d2bd 100%);
  box-shadow:
    inset 1px 1px 0 #ffffff,
    inset -1px -1px 0 #8b8878;
  cursor: pointer;
}

.xp-button:hover {
  background: linear-gradient(to bottom, #fff7d7 0%, #f1dc8b 50%, #d6b84e 100%);
}

.xp-button:active {
  box-shadow: inset 2px 2px 2px rgba(0, 0, 0, 0.25);
  transform: translate(1px, 1px);
}

.wizz-button {
  width: 38px;
  height: 38px;
  min-width: 38px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  border: 1px solid #7f9db9;
  border-radius: 4px;
  background: linear-gradient(to bottom, #ffffff 0%, #ece9d8 100%);
  box-shadow:
    inset 1px 1px 0 #ffffff,
    inset -1px -1px 0 #aca899;
  margin-left: auto;
  margin-right: auto;
}

.grid-window {
  height: calc(100svh - 2px);
  container-type: inline-size;
}

.grid-header {
  padding-bottom: 8px;
}

.grid-page {
  flex: 1;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 8px 0 0;
  display: flex;
  justify-content: center;
  align-items: stretch;
  overflow-x: hidden;
  overflow-y: hidden;
}

.grid-meta-card {
  position: sticky;
  top: 0;
  isolation: isolate;
  z-index: 700;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 0;
  padding: 10px 0 10px 12px;
  display: block;
  background: #fffef5 !important;
  border: 2px solid #7f9db9 !important;
  outline: 2px solid #7f9db9;
  outline-offset: -2px;
  box-shadow: none;
  text-align: left;
}

.grid-meta-card h1 {
  margin: 0;
  color: #111;
  text-transform: uppercase;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif !important;
  font-size: 22px;
  font-weight: 900 !important;
  font-style: italic !important;
  line-height: 1.1;
}

.grid-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.grid-replay-button {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #123d8f;
  font: 700 19px/21px Tahoma, Verdana, Arial, sans-serif;
  cursor: pointer;
}

.grid-replay-button:hover,
.grid-replay-button:focus-visible {
  background: transparent;
  outline: none;
}

.grid-meta-subtitle {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 2px;
  font-family: 'Inter', Arial, sans-serif !important;
}

.grid-meta-card p {
  flex: 1 1 auto;
  margin: 0;
  color: #555;
  font-family: Tahoma, Verdana, Arial, sans-serif !important;
  font-size: 13px;
  font-weight: 400 !important;
  font-style: normal !important;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.grid-meta-subtitle .grid-completion-count {
  flex: 0 0 auto;
  margin-right: 12px;
  color: #123d8f;
  font-weight: 800 !important;
  text-align: right;
}

.grid-completion-emoji {
  display: inline-block;
  transform: translateY(-1px);
}

.grid-back-button {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.5);
  border-radius: 0;
  background: #ece9d8;
  color: rgba(0, 0, 0, 0.78);
  font: 700 24px Tahoma, Verdana, Arial, sans-serif;
  line-height: 30px;
  box-shadow: none;
  cursor: pointer;
}

.grid-action-bar {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin-top: 0;
  padding: 0;
  flex-shrink: 0;
  background: transparent;
  border: 0;
}

.game-controls-dock {
  position: sticky;
  bottom: 0;
  z-index: 800;
  flex-shrink: 0;
  margin-top: 0;
  padding-top: 0;
  padding-bottom: 8px;
  background: #ece9d8;
}

.active-definition {
  flex: 1 1 auto;
  height: auto;
  min-height: 48px;
  padding: 5px 8px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  background: #fffef5;
  border: 2px solid #7f9db9;
  color: #111;
  font-size: 0.68rem;
  font-weight: 400;
  line-height: 1.15;
  text-transform: uppercase;
  text-align: left;
}

.active-definition.active-definition-hidden {
  display: none;
}

.grid-action-buttons {
  display: flex;
  flex: 0 0 auto;
  align-items: stretch;
  gap: 8px;
  margin-left: auto;
}

.grid-action-buttons .xp-button {
  width: 50px;
  height: 48px;
  min-width: 50px;
  min-height: 48px;
  box-sizing: border-box;
  margin-top: 0;
  padding: 2px 4px;
  border: 2px solid #7f9db9;
  border-radius: 0;
  background: #fffef5;
  box-shadow: none;
  color: #333;
  font-size: 1rem;
}

.grid-action-buttons .xp-button:hover,
.grid-action-buttons .xp-button:active {
  border-radius: 0;
  background: #fffef5;
  box-shadow: none;
}

body.grid-load-error .active-definition,
body.grid-load-error .grid-action-buttons .xp-button {
  color: #999 !important;
  background: #e2e0d7 !important;
  border-color: #b8b6ae !important;
  cursor: not-allowed;
  opacity: 0.72;
}

body.grid-load-error .grid-action-buttons .xp-button:disabled {
  pointer-events: none;
}

body.grid-load-error .web-keyboard {
  display: none !important;
}

.grid-page .card,
.grid-page .grid-meta-card {
  box-shadow: none;
}

.grid-action-buttons .xp-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
}

.grid-action-buttons .xp-button > span:not(.grid-hint-icon) {
  display: block;
  width: 100%;
  font-size: 0.68rem;
  line-height: 1.15;
  font-family: Tahoma, Verdana, Arial, sans-serif;
  font-weight: 400;
  text-align: center;
  white-space: nowrap;
}

.grid-hint-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  font-size: 1.1rem;
  line-height: 1;
}

@media (max-width: 640px) {
  .container {
    width: calc(100% - 16px);
    margin-top: 8px;
    margin-bottom: 8px;
    gap: 8px;
  }

  .container.legal-container {
    width: calc(100% - 16px);
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 8px;
  }

  .container > .card,
  .container > .app-promo-card,
  .container > .instagram-feed-card,
  .container > .home-newsletter-card,
  .home-coming-soon-card,
  .app-promo-card,
  .instagram-feed-card,
  .home-newsletter-card {
    width: 100%;
    max-width: 100%;
    margin-top: 0;
    margin-bottom: 0;
  }

  .container > .home-coming-soon-card + .home-coming-soon-card {
    margin-top: 0;
  }

  .grid-action-bar {
    gap: 8px;
  }

  .active-definition {
    min-width: 0;
    padding: 5px 8px;
    font-size: 0.72rem;
  }

  .grid-action-buttons {
    flex: 0 0 auto;
    min-width: 0;
    gap: 8px;
    margin-left: auto;
  }

  .grid-action-buttons .xp-button {
    flex: 0 0 50px;
    width: 50px;
    min-width: 50px;
    height: 48px;
    min-height: 48px;
    padding: 2px 3px;
  }

  .grid-tool-icon {
    width: 20px;
    height: 20px;
  }

  .grid-check-icon {
    width: 22px;
  }
}

.grid-tool-icon {
  display: block;
  width: 20px;
  flex: 0 0 22px;
  height: 22px;
  margin: 0 auto;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.grid-check-icon {
  width: 22px;
  fill: none;
}

.crossword-wrap,
.crossword-wrapper {
  flex: 1 1 auto;
  width: 100%;
  max-width: calc(100% - 16px);
  height: auto;
  max-height: none;
  box-sizing: border-box;
  padding: 0;
  background: transparent;
  border: none;
  overflow: visible;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.crossword-grid {
  display: grid;
  touch-action: manipulation;
  gap: 0;
  background: #7f9db9;
  border: none;
  padding: 0;
  width: 100%;
  margin: 8px auto;
  height: auto;
  overflow: hidden;
  grid-auto-rows: auto;
  aspect-ratio: auto;
}

.grid-scroll-frame {
  flex: 1 1 auto;
  touch-action: manipulation;
  width: 100%;
  max-height: none;
  min-height: 0;
  box-sizing: border-box;
  margin: 8px auto;
  padding: 0;
  overflow: auto;
  background: #fffef5;
  border: 2px solid #7f9db9;
}

.crossword-grid:has(.grid-error) {
  background: #fffef5;
}

.grid-scroll-frame .crossword-grid {
  margin: 0;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.grid-scroll-frame:has(.grid-error) {
  display: flex;
  align-items: center;
  justify-content: center;
}

.grid-scroll-frame.keyboard-hidden {
  height: auto;
  max-height: none;
  min-height: 0;
  flex: 1 1 0;
}

.grid-scroll-frame.keyboard-hidden + .game-controls-dock {
  padding-bottom: 8px;
}

.grid-cell {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  box-sizing: border-box;
  border: 0.5px solid #111 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.grid-cell.definition-cell {
  overflow: visible !important;
  z-index: 10;
}

.empty-cell,
.letter-cell {
  background: #ffffff;
  border: 0.5px solid #111 !important;
}

.grid-cell-edge-left {
  border-left: 0 !important;
}

.grid-cell-edge-right {
  border-right: 0 !important;
}

.grid-cell-edge-top {
  border-top: 0 !important;
}

.grid-cell-edge-bottom {
  border-bottom: 0 !important;
}

.letter-cell {
  color: #111;
  font-size: clamp(1.15rem, 3.1vw, 2.4rem);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  position: relative;
}

.letter-input {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #111;
  font: inherit;
  text-align: center;
  text-transform: uppercase;
  -webkit-user-select: text;
  user-select: text;
  pointer-events: none;
}

.cell-input-disabled {
  pointer-events: none;
}

.keyboard-selected {
  background: #b9f3ad !important;
}

.web-keyboard {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
  flex-shrink: 0;
  margin: 8px 0 0;
  padding: 0;
  background: transparent;
  border: 0;
}

.web-keyboard.keyboard-visible {
  display: block;
}

.web-keyboard.keyboard-hidden {
  display: none;
}

.web-keyboard-row {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.web-keyboard-row:first-child {
  margin-top: 0;
}

.web-keyboard button {
  touch-action: manipulation;
  width: 100%;
  min-width: 0;
  height: 50px;
  min-height: 50px;
  box-sizing: border-box;
  padding: 0;
  border: 2px solid #7f9db9;
  border-radius: 0;
  background: #fffef5;
  color: #111;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif !important;
  font-size: 1rem;
  font-weight: 800 !important;
  -webkit-text-stroke: 0.2px currentColor;
  box-shadow: none;
}

.web-keyboard .web-keyboard-delete {
  grid-column: 8 / span 3;
  margin-left: 0;
  padding: 0 2px;
  font-size: 1rem;
  font-family: inherit;
  font-weight: inherit;
}

.web-keyboard-row:nth-child(3) {
  padding-left: 0;
}

.web-keyboard-row:nth-child(3) button:nth-child(1) { grid-column: 1; }
.web-keyboard-row:nth-child(3) button:nth-child(2) { grid-column: 2; }
.web-keyboard-row:nth-child(3) button:nth-child(3) { grid-column: 3; }
.web-keyboard-row:nth-child(3) button:nth-child(4) { grid-column: 4; }
.web-keyboard-row:nth-child(3) button:nth-child(5) { grid-column: 5; }
.web-keyboard-row:nth-child(3) button:nth-child(6) { grid-column: 6; }
.web-keyboard-row:nth-child(3) button:nth-child(7) { grid-column: 7; }

.web-keyboard-hide {
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 0 10px 10px !important;
  background: #b9a5eb !important;
  color: #111;
  font-size: 1.8rem !important;
  line-height: 1;
}

.web-keyboard-hide span {
  display: block;
  line-height: 1;
  transform: translateY(-2px);
}
}

.web-keyboard button:active {
  background: #c4adf3;
}



.word-highlighted,
.word-highlighted .letter-input {
  background: #f3e7ad !important;
}

.letter-input.keyboard-selected {
  background: #b9f3ad !important;
}

.letter-cell:has(.letter-input:focus) {
  background: #b9f3ad;
}

.letter-cell:has(.letter-input:focus) .letter-input {
  background: transparent !important;
}

.letter-cell.letter-incorrect {
  background: #f4caca;
}

.letter-cell.letter-incorrect .letter-input {
  background: #f4caca !important;
}

.separator-right {
  position: relative;
  z-index: 100;
  overflow: visible;
}

.card label {
    font-weight: bold;
}
.legal-card {
    text-align: left;
}

.legal-card h2 {
    text-align: center;
    text-transform: uppercase;
    color: #111;
}
.legal-card ul {
    margin: 0 0 20px 0;
    padding-left: 30px;
}

.legal-card p {
    max-width: none;
    margin: 0 0 20px;
}

.legal-card li {
    margin-bottom: 6px;
}

/* Le bloc de contenu des pages Contact et légales occupe presque toute la fenêtre. */
.legal-container {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 8px;
  box-sizing: border-box;
}

.legal-container > .legal-card {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 8px;
  box-sizing: border-box;
}

/* Contact reprend les marges latérales réduites de la page Essayer,
   tout en conservant les 8 px de padding interne du bloc. */
.contact-container {
  width: calc(100% - 16px);
  max-width: none;
  padding: 8px;
  box-sizing: border-box;
}

.container.legal-container.contact-container {
  width: calc(100% - 16px);
  max-width: none;
  padding: 0;
  margin: 8px;
}
.separator-right::after {
  content: "";
  position: absolute;
  top: 0;
  right: -2px;
  width: 2px;
  height: 100%;
  background-image: repeating-linear-gradient(
    to bottom,
    rgb(0, 0, 0) 0,
    rgb(0, 0, 0) 8px,
    #fffef5 8px,
    #fffef5 14px
  );
  background-size: 2px 100%;
  background-position: right top;
  background-repeat: no-repeat;
  z-index: 200;
  pointer-events: none;
}

.separator-bottom {
  position: relative;
  z-index: 100;
  overflow: visible;
}

.separator-bottom::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background-image: repeating-linear-gradient(
    to right,
    rgb(0, 0, 0) 0,
    rgb(0, 0, 0) 8px,
    #fffef5 8px,
    #fffef5 14px
  );
  background-size: 100% 2px;
  background-position: left bottom;
  background-repeat: no-repeat;
  z-index: 200;
  pointer-events: none;
}

.definition-cell {
  position: relative;
  flex-direction: column;
  align-items: stretch;
  justify-content: stretch;
  background: #c4adf3;
  color: #111;
  font-size: clamp(0.4rem, 1.1cqw, 1.05rem);
  line-height: 1.05;
  text-align: center;
  text-transform: uppercase;
  z-index: 0;
}

.definition-item {
  position: relative;
  flex: 1;
  min-height: 0;
  width: 100%;
  padding: 0;
  box-sizing: border-box;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 0;
  font: inherit;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.definition-item.definition-right {
  padding-top: 0;
  padding-bottom: 0;
}

.definition-item.definition-corner-down-right,
.definition-item.definition-down {
  padding-top: 0;
  padding-bottom: 0;
}

.definition-item + .definition-item {
  border-top: 0.5px solid #111 !important;
}

.definition-cell:has(.definition-item.definition-selected) .definition-item + .definition-item {
  border-top-color: #111;
}

.definition-number {
  position: absolute;
  top: 2px;
  left: 3px;
  z-index: 3;
  color: #111;
  font-size: 0.72em;
  font-weight: bold;
  line-height: 1;
}

.definition-item.definition-selected {
  background: #f3e7ad !important;
  color: #111 !important;
}


.definition-item.definition-selected .definition-text {
  color: #111 !important;
}

.definition-item:not(.definition-selected) {
  background: transparent !important;
  color: #111 !important;
}

.definition-item:not(.definition-selected) .definition-text {
  color: #111 !important;
}

.definition-text {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: none;
  overflow: visible;
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0;
  box-sizing: border-box;
  text-transform: uppercase;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", sans-serif;
  font-weight: 700;
  font-variant-ligatures: none;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  display: flex;
  margin: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  white-space: normal;
  line-height: 1.12;
}

.double-definition-cell .definition-text {
  font-size: 0.72em;
  line-height: 1.18;
  transform: translateY(1px);
}

.double-definition-cell .definition-text.definition-long {
  font-size: 0.68em;
}

.double-definition-cell .definition-text.definition-very-long {
  font-size: 0.44em;
}

.definition-arrow {
  position: absolute;
  /* C = largeur d'une case de la grille. */
  --arrow-head-length: var(--grid-arrow-head-length, 5.6px);
  --arrow-shaft-length: var(--grid-arrow-shaft-length, 3.36px);
  --arrow-total-length: var(--grid-arrow-total-length, 8.96px);
  --arrow-head-half-width: var(--grid-arrow-head-half-width, 2.52px);
  width: var(--arrow-total-length);
  height: var(--arrow-total-length);
  z-index: 30;
  pointer-events: none;
}

.definition-arrow::before,
.definition-arrow::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
}

.definition-arrow.arrow-right {
  left: 100%;
  top: 50%;
  transform: translate(0, -50%);
}

.definition-arrow.arrow-right::before {
  left: 0px;
  top: calc(50% - 0.55px);
  width: var(--arrow-shaft-length);
  height: 1.1px;
  background: #111;
}

.definition-arrow.arrow-right::after {
  right: 0.5px;
  top: calc(50% - var(--arrow-head-half-width));
  width: 0;
  height: 0;
  border-top: var(--arrow-head-half-width) solid transparent;
  border-bottom: var(--arrow-head-half-width) solid transparent;
  border-left: var(--arrow-head-length) solid #111;
}

.definition-arrow.arrow-down {
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
}

.definition-arrow.arrow-down::before {
  left: calc(50% - 0.55px);
  top: 0;
  width: 1.1px;
  height: var(--arrow-shaft-length);
  background: #111;
}

.definition-arrow.arrow-down::after {
  left: calc(50% - var(--arrow-head-half-width));
  bottom: 0.5px;
  width: 0;
  height: 0;
  border-left: var(--arrow-head-half-width) solid transparent;
  border-right: var(--arrow-head-half-width) solid transparent;
  border-top: var(--arrow-head-length) solid #111;
}

.definition-arrow.arrow-corner-down-right {
  left: 100%;
  top: 50%;
  transform: translateY(-1px);
}

.definition-arrow.arrow-corner-down-right::before {
  left: 0;
  top: 0;
  width: var(--arrow-head-length);
  height: var(--arrow-shaft-length);
  border-top: 1.1px solid #111;
  border-right: 1.1px solid #111;
}

.definition-arrow.arrow-corner-down-right::after {
  left: calc(var(--arrow-head-length) - var(--arrow-head-half-width) - 0.5px);
  top: calc(var(--arrow-shaft-length) - 0.5px);
  width: 0;
  height: 0;
  border-left: var(--arrow-head-half-width) solid transparent;
  border-right: var(--arrow-head-half-width) solid transparent;
  border-top: var(--arrow-head-length) solid #111;
}

.definition-arrow.arrow-corner-right-down {
  left: 50%;
  top: 100%;
  transform: translateX(-1px);
}

.definition-arrow.arrow-corner-right-down::before {
  left: 0;
  top: 0;
  width: var(--arrow-shaft-length);
  height: var(--arrow-head-length);
  border-left: 1.1px solid #111;
  border-bottom: 1.1px solid #111;
}

.definition-arrow.arrow-corner-right-down::after {
  left: calc(var(--arrow-shaft-length) - 0.5px);
  top: calc(var(--arrow-head-length) - var(--arrow-head-half-width));
  width: 0;
  height: 0;
  border-top: var(--arrow-head-half-width) solid transparent;
  border-bottom: var(--arrow-head-half-width) solid transparent;
  border-left: var(--arrow-head-length) solid #111;
}

.grid-error {
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  box-sizing: border-box;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: transparent;
  color: #111;
  font-family: Tahoma, Verdana, Arial, sans-serif;
}

.site-footer {
  margin-top: auto;
  padding: 8px 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid #c9c5b4;
  background: #ece9d8;
  color: rgba(0, 0, 0, 0.62);
  font-family: Tahoma, Verdana, Arial, sans-serif;
  font-size: 12.5px;
  line-height: normal;
  white-space: nowrap;
}

/* La fenêtre Contact se ferme avec son contenu, juste après le footer. */
.contact-page .site-footer {
  border-bottom: 0;
}

body.keyboard-open .site-footer {
  display: none;
}

body.keyboard-open .grid-page {
  padding-bottom: 0;
}

/* L'e-mail de l'écran de fin ouvre le clavier natif. La fenêtre XP reste
   alors ancrée comme avant l'ouverture et seule sa zone centrale se réduit. */
body.keyboard-open .grid-window {
  position: fixed;
  top: calc(var(--grid-viewport-top, 0px) + 8px);
  left: 50%;
  width: min(920px, 100%);
  height: calc(100svh - 16px);
  max-height: none;
  flex: 0 0 auto;
  transform: translateX(-50%);
}

body.keyboard-open .completion-start-panel h2 {
  display: none;
}

/* Pendant l'animation du clavier iOS, le panneau reste physiquement ancré
   sous la carte titre. Il ne dépend ainsi plus des coordonnées instables du
   viewport visuel et ne peut jamais recouvrir le titre. */
body.keyboard-open .game-start-panel.completion-start-panel {
  position: absolute !important;
  top: var(--completion-panel-local-top, 0px) !important;
  left: 0 !important;
  width: 100% !important;
}

.site-footer > span:first-child {
  margin-right: auto;
}

.site-footer > a[href="/mentions-legales.html"] {
  margin-left: auto;
}

.site-footer a,
.site-footer a:visited,
.site-footer a:hover,
.site-footer a:active {
  color: inherit;
  text-decoration: none;
}

.site-footer .footer-cookie-link {
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  font: inherit;
  cursor: pointer;
}

.cookie-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(8, 9, 10, 0.18);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.cookie-banner {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  width: min(370px, calc(100% - 32px));
  padding: 22px;
  color: #08090a;
  background: #ed93b3;
  border: 2px solid #08090a;
  box-shadow: 7px 7px 0 #08090a;
  font-family: "Pliant", system-ui, sans-serif;
}

.cookie-kicker {
  margin: 0 0 10px;
  font-family: "Press Start 2P", monospace;
  font-size: 0.68rem;
  line-height: 1.5;
}

.cookie-banner > p:not(.cookie-kicker) {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.45;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px 12px;
  margin-top: 18px;
}

.cookie-actions button {
  padding: 9px 13px;
  color: #f7f0e8;
  background: #08090a;
  border: 1px solid #08090a;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.cookie-actions button:nth-child(2) {
  color: #08090a;
  background: transparent;
}

.cookie-actions button:hover,
.cookie-actions button:focus-visible {
  color: #08090a;
  background: #f7f0e8;
}

.cookie-actions a {
  color: #08090a;
  font-size: 0.72rem;
  font-weight: 700;
}

.wizzing .xp-desktop {
  animation: wizz-shake 0.6s linear !important;
  will-change: transform;
}

@keyframes wizz-shake {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); }
  10% { transform: translate3d(-12px, 5px, 0) rotate(-1.2deg); }
  20% { transform: translate3d(12px, -5px, 0) rotate(1.2deg); }
  30% { transform: translate3d(-14px, 4px, 0) rotate(-1deg); }
  40% { transform: translate3d(14px, -4px, 0) rotate(1deg); }
  50% { transform: translate3d(-10px, 6px, 0) rotate(-0.8deg); }
  60% { transform: translate3d(10px, -6px, 0) rotate(0.8deg); }
  70% { transform: translate3d(-6px, 3px, 0) rotate(-0.5deg); }
  80% { transform: translate3d(6px, -3px, 0) rotate(0.5deg); }
  90% { transform: translate3d(-2px, 1px, 0) rotate(-0.2deg); }
  100% { transform: translate3d(0, 0, 0) rotate(0deg); }
}

@media (max-width: 640px) {
  .home-top-frame {
    left: 0;
    width: 100%;
    transform: none;
  }

  .contact-top-frame {
    left: 0;
    width: 100%;
    border-width: 2px;
    border-bottom: 0;
    transform: none;
  }

  .home-page .xp-window,
  .contact-page .xp-window {
    left: 0;
    transform: none;
  }

  body.keyboard-open .grid-window {
    left: 0;
    transform: none;
  }

  .xp-desktop {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 100svh;
    padding: 0;
    align-items: flex-start;
    overflow-x: hidden;
  }

  .xp-window {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 100svh;
    box-sizing: border-box;
    border-width: 2px;
    border-radius: 9px 9px 5px 5px;
  }

  .xp-menu-bar {
    gap: 22px;
    padding: 7px 12px;
    font-size: 0.9rem;
  }

  .xp-header {
    height: 0;
    padding: 0;
  }

  .main-logo {
    width: min(240px, 82%);
  }

  .xp-header h1 {
    font-size: 2.2rem;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
  }

  .xp-header {
    overflow: hidden;
  }

  .legal-page-header {
    min-height: 0;
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 18px 16px 10px;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Le titre Contact doit rester visible sur mobile : la règle générale
     des headers compacts ne s'applique pas à ce bloc à deux lignes. */
  .contact-page .contact-page-header {
    height: 144px;
    min-height: 144px;
    flex: 0 0 144px;
    margin: 6px 8px 8px;
    align-items: flex-start;
    justify-content: center;
    padding: 14px 100px 12px 12px;
    overflow: visible;
  }

  .contact-page .contact-page-header h1 {
    display: block;
    height: auto;
    max-width: 100%;
    overflow: visible;
    white-space: nowrap;
    line-height: 1.15;
  }

  .contact-intro-cards {
    grid-template-columns: 1fr;
    gap: 8px;
    width: calc(100% - 16px);
  }

  .contact-intro-card {
    min-height: 0;
    height: var(--contact-intro-card-height, auto);
    padding: 36px 18px;
  }

  .contact-header-logo {
    right: 14px;
    box-shadow: 3px 3px 0 #111;
  }

  .card {
    width: min(430px, calc(100% - 24px));
    max-width: calc(100% - 24px);
  }

  .container {
    margin: 8px auto 12px;
  }

  .card {
    padding: 18px;
  }

  .card h2 {
    font-size: 1.55rem;
  }

  .card p {
    font-size: 1.03rem;
    line-height: 1.45;
  }

  .wizz-counter {
    margin-top: 12px;
  }

  .xp-button {
    margin-top: 16px;
    padding: 8px 28px;
    font-size: 1rem;
  }

  .wizz-button {
    width: 38px;
    height: 38px;
    min-width: 38px;
    padding: 0;
    font-size: 1.2rem;
    flex: 0 0 70px;
  }

  .site-footer {
    font-size: 11.5px;
    padding: 8px 6px;
    display: flex;
    justify-content: space-between;
    gap: 8px;
    text-align: left;
    white-space: nowrap;
  }

  .site-footer > span:first-child {
    margin-right: auto;
  }

  .site-footer > a[href="/mentions-legales.html"] {
    margin-left: auto;
  }

  .definition-item {
    padding: 0 2px;
  }

  .definition-cell {
    font-size: clamp(0.28rem, 1.25vw, 0.62rem);
  }

  .definition-text {
    line-height: 1.18;
    transform: translateY(1px);
  }

  .double-definition-cell .definition-text {
    font-size: 0.66em;
    line-height: 1.22;
    transform: translateY(1px);
  }
}

/* Les demi-cases doivent toujours afficher leur définition entière. */
.double-definition-cell .definition-item {
  overflow: visible;
}

.double-definition-cell .definition-text {
  max-height: none;
  overflow: visible;
  font-size: inherit !important;
  line-height: 1;
}

/* --- Crossword Game Start Overlay Styles --- */
.crossword-wrap,
.crossword-wrapper {
  position: relative;
  overflow: visible;
}

.game-start-panel {
  position: fixed !important;
  left: 50%;
  top: 50vh;
  transform: translate(-50%, -50%);
  z-index: 1000;
  width: min(420px, calc(100% - 32px));
  padding: 18px;
  text-align: center;
  background: #fffef5;
  border: 2px solid #7f9db9;
  box-shadow:
    inset 1px 1px 0 #ffffff,
    inset -1px -1px 0 #aca899,
    4px 4px 0 rgba(0, 0, 0, 0.16);
}

.game-start-hidden {
  display: none !important;
}

.game-blurred {
  filter: blur(8px);
  transform: none;
  pointer-events: none;
  user-select: none;
  box-shadow: none;
}

.game-start-panel {
  display: block !important;
}

.game-start-panel.game-start-hidden {
  display: none !important;
}

/* L’écran de fin prend la place du bloc grille. Il ne défile que si son
   contenu dépasse la hauteur réellement disponible dans cette zone. */
.game-start-panel.completion-start-panel {
  top: var(--completion-panel-top, 50vh);
  height: auto;
  min-height: 0;
  max-height: calc(100dvh - 24px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  transform: none;
}

.grid-fill-button {
  min-width: 0;
  padding: 4px 8px;
  font-size: 11px;
}

.grid-fill-button .replay-icon {
  display: inline-block;
  margin-right: 4px;
  font-size: 1.25em;
  line-height: 1;
  vertical-align: -0.08em;
}

.game-start-panel h2 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  font-size: 22px !important;
  font-weight: 900 !important;
  font-style: italic !important;
  line-height: 1.1;
  text-transform: uppercase;
  color: #111 !important;
  text-shadow: none;
}

.grid-how-to-play {
  margin: 12px 0 16px;
  padding: 0;
  text-align: left;
  color: #243447;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  font-size: 13px;
  line-height: 1.35;
}

.grid-help-visual {
  display: flex;
  flex-direction: column;
  margin: 12px 0 10px;
  padding: 10px;
  text-align: left;
  background: #fffef5 !important;
  border: 0;
  border-radius: 0;
}

.grid-help-crossword-example {
  display: flex;
  align-items: flex-start;
  width: 100%;
  max-width: 384px;
  margin: 0 auto;
}

.grid-help-clue {
  display: grid;
  place-items: center;
  flex: 0 0 calc(100% / 8);
  width: calc(100% / 8);
  height: auto;
  aspect-ratio: 1 / 1;
  box-sizing: border-box;
  min-height: 0;
  padding: 0;
  color: #182536;
  background: #c4adf3;
  border: 1px solid #7f9db9;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", sans-serif;
  font-size: 8px;
  line-height: 1.05;
  font-weight: 700;
  font-variant-ligatures: none;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  letter-spacing: .03em;
  text-transform: uppercase;
  text-align: center;
}

.grid-help-answer {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  flex: 1 1 auto;
  min-width: 0;
  aspect-ratio: 7 / 1;
  gap: 0;
  align-items: stretch;
  padding-left: 0;
  background: transparent;
}

.grid-help-cell {
  display: grid;
  place-items: center;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  min-width: 0;
  min-height: 0;
  padding: 0;
  margin: 0;
  color: #14243a;
  background: #fff;
  border: 1px solid #7f9db9;
  border-left: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", sans-serif;
  font-size: clamp(1.15rem, 3.1vw, 2.4rem);
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
}

.grid-help-clue,
.grid-help-cell {
  transition: background-color 180ms ease;
}

.grid-help-clue-selected,
.grid-help-cell-selected-word {
  background: #f3e7ad;
}

.grid-help-cell-active {
  color: #fff;
  background: #b9f3ad !important;
  border-color: #7f9db9;
}

.grid-help-cell-block {
  background: #c8c8c0;
  border-color: #aaa99f;
}

.grid-help-example-content {
  min-width: 0;
  font: 12px/1.3 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.grid-help-controls-example {
  display: flex;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  margin-top: 8px;
}

.grid-help-definition-bar {
  flex: 1 1 auto;
  height: 48px;
  min-height: 48px;
  box-sizing: border-box;
  display: none;
  align-items: center;
  padding: 7px 8px;
  color: #111;
  background: #fffef5;
  border: 2px solid #7f9db9;
  font-family: Tahoma, Verdana, Arial, sans-serif;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 400;
  line-height: 1.15;
  text-transform: uppercase;
  text-align: left;
}

.grid-help-definition-bar.grid-help-definition-visible {
  display: flex;
}

.grid-help-definition {
  padding: 5px 7px;
  color: #143b61;
  background: #dcecff;
  border: 1px solid #8eb4d8;
  border-radius: 3px;
}

.grid-help-example-actions {
  display: flex;
  justify-content: flex-start;
  gap: 5px;
  margin-top: 0;
  margin-left: auto;
}

.grid-help-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  width: 50px;
  height: 48px;
  box-sizing: border-box;
  padding: 2px 4px;
  color: #333;
  background: #fffef5;
  border: 2px solid #7f9db9;
  border-radius: 0;
  font-size: 10px;
  text-align: center;
}

.grid-help-hint-icon,
.grid-help-check-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  font-size: 18px;
  line-height: 1;
}

.grid-help-check-icon {
  font-size: 22px;
}

.game-start-panel .grid-how-to-intro,
.grid-how-to-steps li {
  width: auto;
  max-width: none;
  color: #243447;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  font-size: 13px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.35;
}

.game-start-panel .grid-how-to-intro {
  margin: 0 0 8px;
}

.grid-how-to-steps {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.grid-how-to-steps li + li {
  margin-top: 5px;
}

.grid-how-to-steps strong {
  color: #102f53;
}

.game-start-panel.completion-start-panel h2 {
  margin: 0 0 12px;
}

.finish-close-button {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #111;
  font: 32px/24px Arial, sans-serif;
  cursor: pointer;
}

.finish-close-button:hover,
.finish-close-button:focus-visible {
  color: #1557b0;
}

#completion-news-email {
  margin-bottom: 0 !important;
}

.completion-news-form {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 8px;
  width: min(100%, 360px);
  margin: 18px auto 0;
  text-align: left;
}

.completion-news-form > label:first-child {
  flex: 0 0 100%;
  font-weight: 700;
  display: block;

  text-align: center;

  margin-bottom: 12px;
  font-size: 1rem;
  line-height: normal;
}

.completion-news-follow .completion-news-label {
  flex: 0 0 100%;
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 700;
  line-height: normal;
  text-align: center;
}

.completion-news-follow .completion-news-controls {
  justify-content: center;
}

/* Le formulaire garde un écart horizontal entre les icônes, mais aucun
   écart de ligne supplémentaire : la marge du libellé définit le rythme. */
.completion-news-follow {
  row-gap: 0;
}

.completion-news-controls {
  display: flex;
  flex: 1 1 100%;
  align-items: stretch;
  gap: 8px;
  min-width: 0;
}

.completion-social-links {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.completion-social-link {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  box-sizing: border-box;
  border: 2px solid #7f9db9;
  background: #fffef5;
  text-decoration: none;
}

.completion-social-link img {
  display: block;
  width: 24px;
  height: 24px;
}

.completion-news-form input[type="email"] {
  box-sizing: border-box;
  flex: 1 1 0;
  width: auto;
  height: 38px;
  min-height: 38px;
  padding: 8px 10px;
  border: 2px solid #7f9db9;
  background: #fffef5;
  color: #111;
  font: inherit;
}

.completion-news-form .xp-button {
  box-sizing: border-box;
  flex: 0 0 38px;
  min-width: 38px;
  width: 38px;
  height: 38px;
  min-height: 38px;
  margin-top: 0;
  padding: 0;
  border: 2px solid #7f9db9;
  border-radius: 0;
  background: #fffef5;
  box-shadow: none;
}

.completion-news-form .completion-news-submit {
  display: grid;
  place-items: center;
  font-size: 24px;
  line-height: 1;
}

.completion-news-form .completion-news-submit img {
  display: block;
  width: 24px;
  height: auto;
}

.completion-news-form .completion-news-submit:hover,
.completion-news-form .completion-news-submit:focus-visible {
  background: #fffef5;
}

.completion-news-status {
  flex: 0 0 100%;
  min-height: 1.2em;
  color: #1557b0;
  font-size: 0.82rem;
  text-align: center;
}

.completion-news-status:empty {
  display: none;
}

.completion-news-form.is-subscribed {
  justify-content: center;
}

.completion-news-form.is-subscribed .completion-news-controls {
  justify-content: center;
}

.completion-news-form.is-subscribed input[type="email"],
.completion-news-form.is-subscribed .completion-news-submit,
.completion-news-form.is-subscribed .completion-social-links {
  display: none;
}

.completion-news-form.is-subscribed .completion-news-status {
  display: flex;
  flex: 0 1 auto;
  align-items: center;
  color: #ed93b3;
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
}

.game-start-panel .app-store-badge {
  margin-top: 12px;
}

.game-start-panel.completion-start-panel .app-store-badge {
  margin-top: 0;
  margin-bottom: 8px;
}

.completion-store-badges {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  width: min(100%, 338px);
  margin: 0 auto 8px;
}

.game-start-panel.completion-start-panel .completion-store-badges .app-store-badge {
  display: inline-block;
  width: auto;
  min-width: 0;
  flex: 3.1585 1 0;
  margin: 0;
}

.game-start-panel.completion-start-panel .completion-store-badges .google-play-badge {
  flex-grow: 3.3715;
}

.completion-app-invite {
   

    max-width: 320px;

    display: block;

      width: 100%;

      text-align: center;

      margin: 0 auto 16px;
 
  font-weight: 700;
  font-size: 1rem !important;
  line-height: normal !important;
  text-align: left;
 
}

/* Titres promotionnels de l'accueil : style commun à « ENVOYEZ UN WIZZ ! ». */
.container > .card h2,
#app-promo-title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif !important;
  color: #111 !important;
  font-size: 1.55rem !important;
  font-weight: 900 !important;
  font-style: italic !important;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.finish-menu-link {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.finish-menu-link[hidden] {
  display: none;
}

.xp-title .titlebar-icon {
  width: 21px;
  height: 21px;
  object-fit: contain;
  flex-shrink: 0;
  image-rendering: pixelated;
  filter: drop-shadow(2px 2px 0 rgba(0, 0, 0, 0.28)) !important;
}

.game-start-panel.completion-start-panel .completion-app-invite {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0 auto 12px;
  text-align: center !important;
}

.game-start-panel.completion-start-panel .completion-news-form > label {
  display: block;
  width: 100%;
  text-align: center !important;
}

.game-start-panel.completion-start-panel .completion-news-form {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.game-start-panel.completion-start-panel .completion-store-badges {
  margin-bottom: 12px;
}

.game-start-panel.completion-start-panel .completion-news-follow .completion-news-label {
  margin-bottom: 12px;
}

.game-start-panel.completion-start-panel #completion-news-email {
  margin: 0 !important;
}
.game-start-panel.completion-start-panel .completion-news-form > label {
  margin: 0 !important;
}
