/* Accueil public et membre : presentation commune, logique metier preservee. */

/*
 * La colonne publicitaire reste dans le flux pendant tout le defilement.
 * Les declarations !important neutralisent les styles inline poses par
 * l'ancien gestionnaire stickAds(), qui changeaient la hauteur de la page.
 */
#IDasideHome {
  position: -webkit-sticky;
  position: sticky;
  top: 4px;
}

#stickyHome {
  position: static !important;
  top: auto !important;
  margin-top: 0 !important;
}

body[data-user-connected="0"] .accountMessagesLink {
  display: none;
}

body[data-user-connected="0"] #navBox .guestAccountLink {
  margin: 13px 8px;
  padding: 12px 18px;
  color: #fff;
  font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .08em;
  background: #356b43;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  text-shadow: none;
  transition: background-color .18s ease, transform .18s ease;
}

body[data-user-connected="0"] #navBox .guestAccountLink:hover,
body[data-user-connected="0"] #navBox .guestAccountLink:focus {
  color: #fff;
  background: #285936;
  transform: translateY(-1px);
}

.homeGuestHero,
.homeHomeContent,
.homeGuestHero *,
.homeHomeContent * {
  box-sizing: border-box;
}

.homeGuestHero.fulH {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(250px, .92fr);
  width: 768px;
  margin: 0 8px 18px 0;
  overflow: hidden;
  color: #f7f1e8;
  background: linear-gradient(135deg, #5a4030 0%, #463226 58%, #34251d 100%);
  border: 1px solid rgba(197, 157, 95, .5);
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(35, 24, 16, .2);
}

.homeGuestHero__content {
  position: relative;
  z-index: 2;
  padding: 27px 28px 24px;
}

#global .homeGuestHero__eyebrow,
#global .homeGuestSteps__eyebrow {
  margin: 0 0 8px;
  padding: 0;
  color: #cfa55f;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .14em;
  text-align: left;
  text-transform: uppercase;
}

#global .homeGuestHero__title {
  margin: 0 0 12px;
  color: #fffaf3;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 33px;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.02em;
  text-align: left;
  text-transform: none;
}

#global .homeGuestHero__lead {
  margin: 0;
  padding: 0;
  color: #e5ded3;
  font-size: 16px;
  line-height: 1.55;
  text-align: left;
}

.homeGuestHero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.homeGuestHero__actions .btn {
  margin: 0;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  border-radius: 7px;
  white-space: normal;
}

.homeGuestHero__play.btn {
  color: #fff;
  background: #3d824d;
  border-color: #4b965c;
  box-shadow: 0 5px 14px rgba(8, 20, 11, .24);
}

.homeGuestHero__play.btn:hover,
.homeGuestHero__play.btn:focus {
  color: #fff;
  background: #326f40;
  border-color: #62a770;
}

.homeGuestHero__login.btn {
  color: #f6ecdf;
  background: rgba(255, 255, 255, .07);
  border-color: rgba(255, 255, 255, .32);
}

.homeGuestHero__login.btn:hover,
.homeGuestHero__login.btn:focus {
  color: #fff;
  background: rgba(255, 255, 255, .14);
  border-color: rgba(255, 255, 255, .52);
}

#global .homeGuestHero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 13px;
  margin: 17px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid rgba(255, 255, 255, .15);
  list-style: none;
}

#global .homeGuestHero__facts li {
  position: relative;
  margin: 0;
  padding: 0 0 0 17px;
  color: #d9d2c7;
  font-size: 13px;
  line-height: 1.45;
}

.homeGuestHero__facts li:before {
  position: absolute;
  top: 0;
  left: 0;
  color: #d2a75e;
  content: "\2713";
  font-weight: 700;
}

.homeGuestHero__visual {
  position: relative;
  min-height: 355px;
  overflow: hidden;
  background: #4f3f32;
}

.homeGuestHero__visual:after {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  height: 76px;
  background: #59483b;
  border-top: 1px solid rgba(231, 211, 185, .12);
  content: "";
  pointer-events: none;
}

.homeGuestHero__visual img {
  position: absolute;
  top: auto;
  bottom: 76px;
  width: 100%;
  max-width: none;
  height: auto;
  min-height: 0;
  margin-left: 0;
  object-fit: contain;
  object-position: center bottom;
  transform: none;
}

.homeGuestHero__badge {
  position: absolute;
  z-index: 3;
  right: 50%;
  bottom: 14px;
  max-width: 180px;
  padding: 8px 12px;
  color: #38291c;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  text-transform: uppercase;
  background: #d5ad69;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
  transform: translateX(50%);
}

.homeMemberHero {
  background: linear-gradient(135deg, #4f392c 0%, #3f3027 58%, #26382b 100%);
}

.homeMemberHero .homeGuestHero__badge {
  color: #f5fbf6;
  background: #397c49;
}

.homeHomeContent {
  width: 768px;
  margin-right: 8px;
}

.homeHomeContent .fulH {
  width: 100%;
  margin-right: 0;
}

#global .homeHomeContent .homeTip {
  position: relative;
  display: grid !important;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 76px;
  margin: 0 0 18px;
  padding: 13px 18px;
  overflow: hidden;
  color: #465047;
  font-size: 16px;
  line-height: 1.5;
  text-align: left;
  background: #f4f1ea;
  border: 1px solid #ddd6cc;
  border-left: 4px solid #5f8968;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(65, 49, 36, .06);
}

.homeHomeContent .homeTip .discountImg {
  position: static;
  display: block;
  float: none !important;
  width: 46px;
  height: 46px;
  margin: 0;
  padding: 4px;
  object-fit: contain;
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(95, 137, 104, .2);
  border-radius: 50%;
}

#global .homeHomeContent .homeTip--discount {
  border-left-color: #b48643;
}

.homeTip__content,
.homeTip__title,
.homeTip__text {
  display: block;
}

#global .homeHomeContent .homeTip__title {
  margin: 0 0 2px;
  color: #2f4735;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
}

.homeHomeContent .homeTip a {
  color: #315f3a;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.homeChoiceGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  margin: 0 0 20px;
}

.homeHomeContent .homeChoiceGrid .cloH,
.homeHomeContent .homeChoiceGrid .cloH2 {
  position: relative;
  display: flex;
  float: none;
  flex-direction: column;
  width: auto;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #4b3c30;
  border: 1px solid #d6cabd;
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(52, 37, 25, .12);
  transition: transform .18s ease, box-shadow .18s ease;
}

.homeHomeContent .homeChoiceGrid .cloH:hover,
.homeHomeContent .homeChoiceGrid .cloH2:hover {
  box-shadow: 0 12px 26px rgba(52, 37, 25, .18);
  transform: translateY(-2px);
}

#global .homeHomeContent .homeChoiceGrid h2 {
  order: 1;
  float: none;
  width: 100%;
  margin: 0;
  padding: 14px 16px;
  color: #fffaf4;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0;
  text-align: left;
  text-transform: none;
  background: #4b3c30;
}

.homeHomeContent .homeChoiceGrid img {
  order: 2;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #493a2e;
}

#global .homeHomeContent .homeChoiceGrid p {
  order: 3;
  float: none;
  width: 100%;
  min-height: 52px;
  margin: 0;
  padding: 14px 16px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .04em;
  text-align: left;
  text-transform: uppercase;
  background: #8a612d;
}

.homeGuestSteps.fulH {
  margin: 0 0 18px;
  padding: 15px 17px 16px;
  background: #f5f1eb;
  border: 1px solid #e1d9cf;
  border-radius: 10px;
}

#global .homeGuestSteps__eyebrow {
  margin-bottom: 4px;
  color: #8a612d;
  font-size: 13px;
  letter-spacing: .11em;
  opacity: .72;
}

#global .homeGuestSteps h2,
#global .homeModesIntro h2 {
  margin: 0 0 10px;
  color: #3e3025;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0;
  text-align: left;
  text-transform: none;
}

#global .homeModesIntro h2 {
  margin-bottom: 17px;
  font-size: 27px;
}

.homeGuestSteps__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.homeGuestSteps__grid > div {
  position: relative;
  min-height: 150px;
  padding: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, .58);
  border: 1px solid rgba(218, 207, 195, .72);
  border-radius: 7px;
}

.homeGuestSteps__grid > div > strong {
  position: absolute;
  top: 50%;
  right: 9px;
  width: auto;
  height: auto;
  margin: 0;
  color: rgba(75, 57, 43, .08);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 50px;
  font-weight: 700;
  line-height: 1;
  background: none;
  border-radius: 0;
  transform: translateY(-52%);
}

#global .homeGuestSteps__grid h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 7px;
  color: #4a3d33;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: none;
}

#global .homeGuestSteps__grid p {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0;
  color: #756b62;
  font-size: 16px;
  line-height: 1.5;
  text-align: left;
}

.homeHomeContent .homeGamePreview {
  padding: 18px;
  overflow: hidden;
  background: #fbf8f2;
  border: 1px solid #dcd3c8;
  border-radius: 12px;
  box-shadow: 0 10px 26px rgba(48, 34, 23, .11);
}

.homeHomeContent .homeGamePreview > img {
  max-width: 100%;
  border-radius: 9px;
}

.homeHomeContent .homeGamePreview > img:not(.hideCarsl) {
  display: block;
}

.homeHomeContent .homeGamePreview > img.hideCarsl {
  display: none;
}

#global .homeHomeContent .homeGameLead {
  margin: 16px 0 20px;
  padding: 0;
  color: #50463e;
  font-size: 16px;
  line-height: 1.6;
  text-align: center;
}

#global .homeHomeContent .homeSectionTitle {
  margin: 25px 0 10px;
  color: #403126;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
  text-align: left;
  text-transform: none;
}

#global .homeHomeContent .homeSectionText {
  margin: 0 0 20px;
  padding: 0;
  color: #5d544d;
  font-size: 16px;
  line-height: 1.7;
  text-align: left;
}

.homeHomeContent .homeMainCta,
.homeHomeContent .homeScoreCta {
  min-height: 48px;
  margin: 6px 0;
  padding: 12px 18px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  text-transform: none;
  border-radius: 7px;
}

.homeHomeContent .homeMainCta {
  color: #fff;
  background: #397c49;
  border-color: #306a3e;
}

.homeHomeContent .homeMainCta:hover,
.homeHomeContent .homeMainCta:focus {
  color: #fff;
  background: #2f693d;
  border-color: #285b35;
}

.homeHomeContent .homeScoreCta {
  color: #4c3d31;
  background: #f1ece4;
  border-color: #cfc3b5;
}

.homeModesIntro {
  margin: 26px 0 16px;
  padding: 22px 24px;
  clear: both;
  background: #f1eee6;
  border-left: 4px solid #b48643;
  border-radius: 9px;
}

#global .homeModesIntro h2 {
  margin-bottom: 8px;
  font-size: 25px;
}

#global .homeModesIntro p:last-child {
  margin: 0;
  padding: 0;
  color: #5b5148;
  font-size: 16px;
  line-height: 1.65;
  text-align: left;
}

body[data-user-connected="0"] #prefooter .BOTbox {
  background: rgba(252, 249, 244, .96);
  border: 1px solid rgba(213, 200, 187, .8);
  border-radius: 14px;
}

body[data-user-connected="0"] #prefooter .footerLoginBox {
  background: #f4efe8;
  border: 1px solid #d9cec2;
  border-radius: 10px;
}

body[data-user-connected="0"] #global a:focus-visible,
body[data-user-connected="0"] #navBox a:focus-visible,
body[data-user-connected="1"] #global a:focus-visible,
body[data-user-connected="1"] #navBox a:focus-visible {
  outline: 3px solid #d4a85e;
  outline-offset: 3px;
}

.themeSombre .homeHomeContent .homeTip,
.themeSombre .homeHomeContent .homeGamePreview,
.themeSombre .homeModesIntro {
  color: #e7e1d9;
  background: #332d28;
  border-color: #5c5148;
}

.themeSombre #global .homeHomeContent .homeTip__title,
.themeSombre #global .homeHomeContent .homeTip a,
.themeSombre #global .homeHomeContent .homeGameLead,
.themeSombre #global .homeHomeContent .homeSectionTitle,
.themeSombre #global .homeHomeContent .homeSectionText,
.themeSombre #global .homeModesIntro h2,
.themeSombre #global .homeModesIntro p:last-child {
  color: #f3ede5;
}

.themeSombre .homeHomeContent .homeScoreCta {
  color: #f2ece4;
  background: #493f37;
  border-color: #75675b;
}

@media screen and (max-width: 1199px) {
  .homeGuestHero.fulH,
  .homeHomeContent {
    width: 588px;
  }

  .homeGuestHero.fulH {
    grid-template-columns: minmax(0, 1.05fr) minmax(220px, .95fr);
  }

  .homeGuestHero__content {
    padding: 25px 23px 22px;
  }

  #global .homeGuestHero__title {
    font-size: 29px;
  }

  .homeGuestHero__visual {
    min-height: 350px;
  }

  .homeGuestHero__actions .btn {
    width: 100%;
  }
}

@media screen and (max-width: 991px) {
  .homeGuestHero.fulH,
  .homeHomeContent {
    width: 100%;
    margin-right: 0;
  }

  .homeGuestHero.fulH {
    grid-template-columns: minmax(0, 1fr) minmax(240px, .75fr);
  }

  .homeGuestSteps__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media screen and (max-width: 767px) {
  body[data-user-connected="0"] #navBox .guestAccountLink {
    margin: 0;
    padding: 0;
    background-color: transparent;
    background-image: url('/images/menuIcons/people(1).png');
    background-repeat: no-repeat;
    background-position: 50% 50%;
    background-size: 32px 32px;
    border: 0;
    border-radius: 0;
  }

  body[data-user-connected="0"] #navBox .guestAccountLink:hover,
  body[data-user-connected="0"] #navBox .guestAccountLink:focus {
    background-color: transparent;
    transform: none;
  }

  .homeGuestHero.fulH {
    grid-template-columns: 1fr;
    border-radius: 12px;
  }

  .homeGuestHero__content {
    padding: 23px 21px 20px;
  }

  #global .homeGuestHero__title {
    font-size: 29px;
  }

  #global .homeGuestHero__lead {
    font-size: 16px;
  }

  .homeGuestHero__actions .btn {
    width: auto;
  }

  .homeGuestHero__visual {
    height: 300px;
    min-height: 300px;
    max-height: 300px;
  }

  .homeGuestHero__visual img {
    bottom: 68px;
    height: calc(100% - 68px);
    object-position: center bottom;
  }

  .homeGuestHero__visual:after {
    height: 68px;
  }

  .homeHomeContent .homeChoiceGrid .hideMinH {
    display: flex !important;
  }

  .homeGuestSteps__grid {
    grid-template-columns: 1fr;
  }

  .homeGuestSteps__grid > div {
    min-height: 0;
  }

  body[data-user-connected="0"] #prefooter .BOTbox {
    border-radius: 10px;
  }
}

@media screen and (max-width: 560px) {
  .homeGuestHero__content {
    padding: 21px 17px 18px;
  }

  #global .homeGuestHero__title {
    font-size: 27px;
  }

  .homeGuestHero__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .homeGuestHero__actions .btn {
    width: 100%;
  }

  #global .homeGuestHero__facts {
    display: grid;
    grid-template-columns: 1fr;
  }

  .homeGuestHero__visual {
    height: 275px;
    min-height: 275px;
    max-height: 275px;
  }

  .homeGuestHero__badge {
    right: 50%;
    bottom: 12px;
    max-width: 170px;
    font-size: 12px;
  }

  #global .homeHomeContent .homeTip {
    min-height: 0;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 11px;
    padding: 12px 13px;
    font-size: 16px;
  }

  .homeHomeContent .homeTip .discountImg {
    width: 40px;
    height: 40px;
  }

  .homeChoiceGrid {
    grid-template-columns: 1fr;
  }

  .homeGuestSteps.fulH,
  .homeHomeContent .homeGamePreview {
    padding: 16px;
  }

  .homeGuestSteps__grid > div {
    min-height: 0;
    padding: 14px;
  }

  .homeGuestSteps__grid > div > strong {
    right: 12px;
    font-size: 46px;
  }

  #global .homeGuestSteps h2,
  #global .homeModesIntro h2 {
    font-size: 23px;
  }

  #global .homeGuestSteps h2 {
    font-size: 23px;
  }

  #global .homeHomeContent .homeSectionTitle {
    font-size: 21px;
  }

  .homeModesIntro {
    padding: 18px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .homeGuestHero__play,
  .homeChoiceGrid .cloH,
  .homeChoiceGrid .cloH2,
  body[data-user-connected="0"] #navBox .guestAccountLink {
    transition: none;
  }
}
