/* Tous écrans */

#news {
  border-radius: 10px !important;
}

#news a {
  text-decoration: none;
}

#news h3 {
  margin: 0 0 10px 0;
  color: var(--txhov);
}

#news .maintenanceCard__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

#news .maintenanceCard__top h3 {
  margin: 0;
}

#news .maintenanceCard {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

#news .maintenanceCard__badge {
  width: fit-content;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2d2628;
  background: linear-gradient(135deg, #f3cd4c, #e4b43d);
  font-weight: 700;
}

#news .maintenanceCard h2 {
  margin: 0;
  font-size: 1.7rem;
  line-height: 1.15;
  color: #ffffff;
}

#news .maintenanceCard__lead {
  margin: 0;
  color: #cdc0c3;
  font-size: 1.05rem;
  line-height: 1.55;
  font-variant: normal;
  background: transparent;
}

#news .maintenanceCard__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.homePage_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  padding: 10px 16px;
  border: 1px solid rgba(243, 205, 76, 0.35);
  border-radius: 999px;
  color: #fff !important;
  background: rgba(255, 255, 255, 0.03);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    background-color 0.16s ease,
    border-color 0.16s ease;
}

.homePage_button:hover,
.homePage_button:focus {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
  border-color: rgba(243, 205, 76, 0.8);
}

#news .maintenanceCard__info {
  margin: 0;
  color: #b7abad;
  font-variant: normal;
}

#stats {
  color: var(--specol);
  font-size: 1.3em;
}

#page_jouer {
  background: var(--txhov);
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(50, 45, 46, 0.12);
  padding: 24px 10px 32px 10px;
  margin: 24px auto;
  max-width: 98vw;
  color: var(--txcol);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.jouer-step-titles {
  display: flex;
  flex-direction: row;
  gap: 10px;
  margin-bottom: 18px;
  align-items: stretch;
  width: 100%;
}
.jouer-step-titles .title {
  flex: 1 1 0;
  text-align: center;
}
.jouer-step-titles .title h1 {
  font-size: 1.2em;
  color: var(--bgcol);
  margin: 0;
  font-family: lato, sans-serif;
  letter-spacing: 1px;
  text-shadow: 0 2px 8px #0002;
  text-transform: uppercase;
}
.jouer-step-titles .title span {
  color: var(--bgcol);
  font-size: 1.3em;
  margin-right: 8px;
}
.jouer-steps {
  display: flex;
  flex-direction: row;
  gap: 18px;
  width: 100%;
  margin-bottom: 24px;
}
.jouer-steps > div {
  flex: 1 1 0;
  min-width: 0;
  background: var(--bgcol);
  border-radius: 12px;
  box-shadow: 0 2px 8px #0002;
  padding: 18px 12px;
  color: var(--txcol);
  margin-bottom: 0;
  font-size: 1em;
  transition: box-shadow 0.2s;
}
.jouer-steps > div:hover {
  box-shadow: 0 6px 24px #0003;
}
.jouer-steps a {
  color: var(--specol);
  font-weight: bold;
  text-decoration: underline;
  transition: color 0.2s;
}
.jouer-steps a:hover {
  color: var(--txhov);
}
.jouer-video {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 32px 0 16px 0;
}
.jouer-video iframe {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 16/9;
  border-radius: 10px;
  box-shadow: 0 2px 12px #0003;
  border: none;
}
.other-steps {
  background: #282425;
  border-radius: 12px;
  box-shadow: 0 2px 8px #0002;
  padding: 18px 12px;
  color: var(--txcol);
  margin-top: 18px;
  font-size: 1em;
}
.other-steps a {
  color: var(--specol);
  font-weight: bold;
  text-decoration: underline;
}
.other-steps a:hover {
  color: var(--txhov);
}

#homeDonation {
  width: 100%;
  max-width: 1164px;
  margin: 0 auto 22px auto;
  padding: 14px 18px;
  background: var(--bgcol);
  border-radius: 10px;
  color: var(--txcol);
}

#news {
  border-radius: 10px;
  overflow: hidden;
}

#video {
  border-radius: 10px;
  overflow: hidden;
}

#ytplayer {
  border-radius: 10px;
  overflow: hidden;
}

#homeDonation h3 {
  margin: 0 0 10px 0;
  color: var(--txhov);
}

#homeDonation .homeDonation__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

#homeDonation .homeDonation__header h3 {
  margin: 0;
}

#homeDonation .donationWidget__barwrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  padding: 2px;
  min-height: 20px;
  border-radius: 6px;
  background-image: linear-gradient(-180deg, #7d4825 0%, #4c301e 100%);
}

#homeDonation .donationWidget__coinpile img {
  width: 34px;
  height: auto;
  display: block;
}

#homeDonation .donationWidget__bar {
  height: 28px;
  line-height: 28px;
  border-radius: 6px;
  color: #241f20;
  font-weight: bold;
  text-align: right;
  padding-right: 8px;
  transition: width 0.4s ease;
  background: linear-gradient(135deg, #f3cd4c 0%, #dca63b 100%);
}

#homeDonation .homeDonation__next {
  margin: 10px 0 0 0;
}

#homeDonation .homeDonation__next strong {
  color: var(--specol);
}

/* Écran de pc */
@media (min-width: 1201px) {
  #mainContent #news,
  .mainContent #news {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin: 15px 0;
    margin-right: 7.5px;
    flex: 1 1 0;
  }

  #mainContent #video,
  .mainContent #video {
    flex: 1 1 0;
    margin: 15px 0;
    margin-left: 7.5px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  #mainContent,
  .mainContent {
    max-width: 1164px;
    min-width: 512px;
    min-height: 216px;
    margin: auto;
    padding-top: 26px;
    display: flex;
    align-items: stretch;
  }

  .mainContent {
    flex-direction: column;
  }
}

/* Tous écrans non-PC */
@media (max-width: 1200px) {
  body {
    max-width: 100vw !important;
  }

  #mainContent,
  .mainContent {
    max-width: 100%;
    min-width: 0;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .mainContent > div:first-child {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  menu.openable > li {
    padding: 5px 0px;
  }

  menu.openable > li menu {
    top: 30px;
    left: 0 !important;
    right: auto !important;
  }

  #video {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0 15px;
  }

  #video > div {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  #ytplayer {
    width: 100%;
  }

  #homeDonation {
    width: calc(100% - 30px);
    margin-top: 16px;
    margin-bottom: 18px;
  }
}

/* Petits écrans */
@media (max-width: 600px) {
  #news .maintenanceCard__top {
    flex-direction: column;
    align-items: flex-start;
  }

  #news .maintenanceCard {
    padding: 14px;
    gap: 10px;
  }
  #news .maintenanceCard h2 {
    font-size: 1.35rem;
  }
  #news .maintenanceCard__lead,
  #news .maintenanceCard__info {
    font-size: 0.95rem;
    line-height: 1.45;
  }
  #news .maintenanceCard__actions {
    flex-direction: column;
  }
  .homePage_button {
    width: 100%;
  }

  .jouer-step-titles {
    gap: 6px;
  }
  .jouer-step-titles .title h1 {
    font-size: 0.95em;
    line-height: 1.2;
  }
  .jouer-step-titles .title span {
    margin-right: 4px;
  }
  .jouer-steps {
    gap: 8px;
  }
  .jouer-steps > div {
    padding: 12px 8px;
    font-size: 0.92em;
    line-height: 1.35;
  }
  #mainHead {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    height: 70px;
    width: 100vw !important;
  }
  #mainLogo {
    max-width: 250px;
    height: 100%;
    padding: 0;
    display: flex;
    align-items: center;
  }
  #mainLogo a {
    display: flex;
    align-items: center;
    height: 100%;
  }
  #mainLogo img {
    display: block;
    width: auto;
    max-height: 50px;
  }
  #mainHead nav {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
  }
  nav menu.openable {
    display: none;
    background: var(--bgcol);
    position: absolute;
    top: 50px;
    left: auto;
    right: -12px;
    width: 100vw;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  }
  nav menu.openable menu {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  }
  nav.menu-open menu.openable {
    display: flex;
    flex-direction: column;
  }
  .burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 36px;
    height: 36px;
    position: static;
    margin: 0;
    cursor: pointer;
    z-index: 200;
  }
  .burger span {
    display: block;
    height: 4px;
    width: 100%;
    background: var(--txcol);
    margin: 3px 0;
    border-radius: 2px;
    transition: 0.3s;
  }

  menu.openable > li:before,
  menu.openable > li:last-child:after {
    display: none;
  }
}

/* Tablettes portrait */
@media (max-width: 900px) {
  .jouer-step-titles {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .jouer-step-titles .title {
    text-align: left;
  }
  .jouer-steps {
    flex-direction: column;
    gap: 12px;
  }
  .jouer-steps > div {
    width: 100%;
  }

  #mainHead {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    height: 90px;
    width: 100vw !important;
  }
  #mainLogo {
    max-width: 250px;
    height: 100%;
    padding: 0;
    display: flex;
    align-items: center;
  }
  #mainLogo a {
    display: flex;
    align-items: center;
    height: 100%;
  }
  #mainLogo img {
    display: block;
    width: auto;
    max-height: 50px;
  }
  #mainHead nav {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
  }
  nav menu.openable {
    display: none;
    background: var(--bgcol);
    position: absolute;
    top: 50px;
    left: auto;
    right: -12px;
    width: 100vw;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  }
  nav menu.openable menu {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  }
  nav.menu-open menu.openable {
    display: flex;
    flex-direction: column;
  }
  .burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 36px;
    height: 36px;
    position: static;
    margin: 0;
    cursor: pointer;
    z-index: 200;
  }
  .burger span {
    display: block;
    height: 4px;
    width: 100%;
    background: var(--txcol);
    margin: 3px 0;
    border-radius: 2px;
    transition: 0.3s;
  }

  menu.openable > li:before,
  menu.openable > li:last-child:after {
    display: none;
  }
}

/* Tablettes paysage / écrans larges (901px+) */
@media (min-width: 901px) and (max-width: 1200px) {
  #mainHead {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    height: 90px;
    width: 100vw !important;
  }
  #mainLogo {
    max-width: 250px;
    height: 100%;
    padding: 0;
    display: flex;
    align-items: center;
  }
  #mainLogo a {
    display: flex;
    align-items: center;
    height: 100%;
  }
  #mainLogo img {
    display: block;
    width: auto;
    max-height: 50px;
  }
  #mainHead nav {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
  }
  nav menu.openable {
    display: none;
    background: var(--bgcol);
    position: absolute;
    top: 50px;
    left: auto;
    right: -12px;
    width: 100vw;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  }
  nav menu.openable menu {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  }
  nav.menu-open menu.openable {
    display: flex;
    flex-direction: column;
  }
  .burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 36px;
    height: 36px;
    position: static;
    margin: 0;
    cursor: pointer;
    z-index: 200;
  }
  .burger span {
    display: block;
    height: 4px;
    width: 100%;
    background: var(--txcol);
    margin: 3px 0;
    border-radius: 2px;
    transition: 0.3s;
  }

  menu.openable > li:before,
  menu.openable > li:last-child:after {
    display: none;
  }

  #page_jouer {
    max-width: 900px;
    padding: 32px 32px 40px 32px;
  }
  .jouer-step-titles {
    flex-direction: row;
    justify-content: space-between;
    gap: 24px;
  }
  .jouer-steps {
    flex-direction: row;
    gap: 24px;
  }
  .jouer-steps > div {
    flex: 1 1 0;
    min-width: 0;
  }
  .jouer-video {
    margin: 40px 0 24px 0;
  }
  .jouer-video iframe {
    max-width: 640px;
  }
  .other-steps {
    margin-top: 32px;
  }
}

@keyframes overflown-gradient {
  0% {
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

#homeDonation .donationWidget__bar.overflow::before, #donationWidget  .donationWidget__bar.overflow::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 6px;
  background-image: linear-gradient(45deg, #1941a8 0%, #698ff0 100%);
  animation-name: overflown-gradient;
  animation-duration: 2s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}
