* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body {
  width: 100%;
  margin: 0;
  overflow-x: hidden;
}
#tir47Container {
  width: 100%;
}
#tir47Container * {
  box-sizing: border-box;
}
.tir47Hidden {
  display: none !important;
}
.tir47Visible {
  display: block;
}
.tir47FadeIn {
  animation: tir47FadeIn .6s ease forwards;
}
.tir47FadeOut {
  animation: tir47FadeOut .6s ease forwards;
}
@keyframes tir47FadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes tir47FadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
#tir47Intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 25px;
  width: 100%;
  text-align: center;
}
#tir47IntroImage {
  width: 90%;
  max-width: 500px;
  overflow: hidden;
  border: 2px solid rgba(214, 180, 106, .7);
  border-radius: 18px;
  box-shadow:
    0 0 30px rgba(214, 180, 106, .25),
    0 15px 40px rgba(0, 0, 0, .45);
  line-height: 0;
}
#tir47IntroImage img {
  display: block;
  width: 100%;
  height: auto;
}
#tir47IntroContent {
  max-width: 900px;
  margin: auto;
}
#tir47IntroTitre {
  margin: 0 0 20px;
  font-size:
    clamp(2rem, 4vw, 3rem);
  font-weight: normal;
  color: #f0d88a;
}
#tir47IntroTexte {
  margin: 0;
  line-height: 1.5;
  font-size: 1rem;
}
#tir47BtnStart {
  margin-top: 30px;
}
.btntir {
  display: inline-flex !important;
  justify-content: center;
  align-items: center;
}
#tir47Selection {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap:
    clamp(8px, 2vw, 25px);
  width: 100%;
  margin: 0;
}
.tir47Slot {
  flex: 0 1 auto;
  width: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.tir47SlotTitle {
  margin: 0px;
  font-size:
    clamp(.85rem, 2vw, 1.2rem);
  font-weight: normal;
  color: #f0d88a;
  text-align: center;
}
.tir47SelectedCard {
  width:
    clamp(50px, 12vw, 85px);
  aspect-ratio: 340 / 550;
  border:
    2px dashed rgba(255, 255, 255, .20);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    rgba(255, 255, 255, .04);
  transition: .4s;
  overflow: hidden;
  position: relative;
}
.tir47SelectedCard img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #16130d;
}
@media(max-width:600px) {
  #tir47Selection {
    gap: 8px;
    margin-top: 15px;
  }
  .tir47SelectedCard {
    width: 70px;
  }
  .tir47SlotTitle {
    font-size: .85rem;
     }
}
@media(max-width:360px) {
  #tir47Selection {
    gap: 5px;
  }
  .tir47SelectedCard {
    width: 58px;
  }
  .tir47SlotTitle {
    font-size: .75rem;
  }
}
#tir47Game {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}
#tir47RibbonContainer {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  margin: 15px auto 25px;
   padding: 35px 0 25px;
  scrollbar-width: thin;
  scroll-behavior: smooth;
  display: flex;
  justify-content: center;
}
#tir47Ribbon {
  display: grid;
  grid-template-columns: repeat(18, 1fr);
  gap: 10px;
  width: 100%;
  max-width: 1200px;
  padding: 0 10px;
}
.tir47RibbonCard {
  position: relative;
  width: 100%;
  aspect-ratio: 340 / 550;
  margin-left: 0;
  cursor: pointer;
  transition:
    transform .30s ease,
    filter .30s ease,
    opacity .30s ease,
    box-shadow .30s ease;
  user-select: none;
  z-index: 1;
}
.tir47RibbonCard:first-child {
  margin-left: 0;
}
.tir47RibbonCard img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow:
    0 4px 10px rgba(0, 0, 0, .45);
  pointer-events: none;
}
.tir47RibbonCard:hover {
  transform: translateY(-18px);
  z-index: 50;
  box-shadow:
    0 14px 28px rgba(0, 0, 0, .45);
}
.tir47RibbonCard.tir47Chosen {
  opacity: 0;
  pointer-events: none;
  cursor: default;
  transform: none;
}
.tir47RibbonCard.tir47Chosen img {
  visibility: hidden;
}
#tir47Ribbon.tir47Locked {
  pointer-events: none;
}
#tir47Ribbon.tir47Locked .tir47RibbonCard {
  cursor: default;
  filter: grayscale(.55);
}
#tir47Ribbon.tir47Locked .tir47RibbonCard:hover {
  transform: none;
}
@media(max-width:700px) {
  #tir47RibbonContainer {
    justify-content: center;
  }
  #tir47Ribbon {
    justify-content: center;
  }
  .tir47RibbonCard {
    width:
      clamp(28px, 8vw, 48px);
    margin-left:
      clamp(-35px, -6vw, -18px);
  }
}
@media(max-width:420px) {
  .tir47RibbonCard {
    width:
      clamp(24px, 8vw, 34px);
    margin-left:
      clamp(-30px, -6vw, -15px);
  }
}
#tir47RibbonContainer.tir47RibbonHide {
  animation:
    tir47RibbonHide .8s ease forwards;
}
@keyframes tir47RibbonHide {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  60% {
    opacity: .5;
  }
  100% {
    opacity: 0;
    transform: translateY(20px);
    visibility: hidden;
    height: 0;
    margin: 0;
    padding: 0;
  }
}
#tir47InfoText {
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow-wrap: break-word;
  font-size: 1rem;
  line-height: 1.5;
  color: #e6d7b2;
  transition: opacity .4s ease;
}
.tir47CardFlip {
  width: 100%;
  height: 100%;
  perspective: 1000px;
}
.tir47CardInner {
  position: relative;
  width: 100%;
  height: 100%;
  transition:
    transform .8s;
  transform-style: preserve-3d;
}
.tir47CardFront, .tir47CardBack {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.tir47CardFront img, .tir47CardBack img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.tir47CardBack {
  transform: rotateY(180deg);
}
.tir47Flipped .tir47CardInner {
  transform: rotateY(180deg);
}
#tir47InfoBar {
  display: inline-block;
  width: auto;
  max-width: 90%;
  margin: 15px;
  padding: 14px 18px;
  box-sizing: border-box;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(216, 199, 155, .25);
  border-radius: 8px;
  text-align: center;
}
#tir47Game {
  text-align: center;
}
#tir47InfoText {
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow-wrap: break-word;
  font-size: 1rem;
  line-height: 1.5;
  color: #e6d7b2;
  transition: opacity .4s ease;
}
.tir47Disabled {
  pointer-events: none;
}
.tir47Invisible {
  visibility: hidden;
}
.tir47Transparent {
  opacity: 0;
}
.tir47Opaque {
  opacity: 1;
}
.tir47CardFlip {
  width: 100%;
  height: 100%;
  perspective: 1000px;
}
.tir47CardInner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform .8s;
  transform-style: preserve-3d;
}
.tir47CardFront, .tir47CardBack {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.tir47CardFront img, .tir47CardBack img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.tir47CardBack {
  transform: rotateY(180deg);
}
.tir47Flipped .tir47CardInner {
  transform: rotateY(180deg);
}
#tir47ReadingContent {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(25px, 5vw, 60px);
  width: 100%;
  margin-top: 0px;
}
.ORTIR-container {
	padding: 0px!important;
}
#tir47CardTitle h2 {
	margin-bottom: 0px !important;
}
#tir47ReadingCard {
  flex: 0 0 auto;
    width: clamp(180px, 25vw, 300px); 
	margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
#tir47BigCardContainer {
  width: 100%;
  padding: 0;
  border-radius: 18px;
  background:
    radial-gradient(circle, rgba(240, 216, 138, .35), rgba(240, 216, 138, 0) 70%);
  border:
    1px solid rgba(216, 199, 155, .35);
  box-shadow:
    0 0 35px rgba(214, 180, 106, .25);
}
#tir47BigCardImage {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow:
    0 10px 25px rgba(0, 0, 0, .55);
}
#tir47CardTitle {
  text-align: center;
  color: #f0d88a;
font-size: clamp(0.9rem, 1.8vw, 1.4rem);
  font-weight: normal;
  letter-spacing: 2px;
  text-transform: uppercase;
}
#tir47ReadingText {
  flex: 1;
  max-width: 700px;
}
#tir47DefinitionBlock, #tir47AnswerBlock {
  background:
    rgba(255, 255, 255, .05);
  border:
    1px solid rgba(216, 199, 155, .25);
  border-radius: 14px;
  padding: 15px;
 
  box-shadow:
    0 8px 25px rgba(0, 0, 0, .25);
}
#tir47AnswerBlock {
margin-top: 15px;	
}
.tir47BlockTitle {
  margin: 0px;
  color: #f0d88a;
  font-size: 1.25rem;
  font-weight: normal;
  letter-spacing: 1px;
}
#tir47DefinitionText, #tir47AnswerText {
  line-height: 1.2;
  color: #e6d7b2;
  font-size: 1rem;
}
@media(max-width:750px) {
	#tir47BtnStart {
  margin-bottom: 80px !important;
}
	#tir47AnswerBlock {
 margin-bottom: 70px;		
}
	#tir47InfoBar {
  margin: 15px auto 50px !important;
}
  #tir47ReadingContent {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }
  #tir47ReadingCard {
    width: 180px;
  }
  #tir47ReadingText {
    width: 100%;
    max-width: none;
  }
  #tir47DefinitionBlock, #tir47AnswerBlock {
    padding: 18px;
  }
}
@media(max-width:380px) {
  #tir47ReadingCard {
    width: 140px;
  }
  #tir47CardTitle {
    font-size: 1.1rem;
  }
}

#tir47KeywordsBlock,
#tir47KeywordsBlock .tir47InfoItem,
#tir47KeywordsBlock .tir47InfoItem div {
  line-height: 1;
  color: #e6d7b2;
  font-size: 1rem;
  font-weight: normal;
}

#tir47KeywordsBlock .tir47InfoItem {
  margin-bottom: 10px;
}

#tir47KeywordsBlock .tir47InfoItem:last-child {
  margin-bottom: 0;
}

#tir47KeywordsBlock .tir47InfoItem strong {
  display: block;
  margin-bottom: 3px;
  color: #e6d7b2;
  font-size: 1rem;
  font-weight: bold;
  line-height: 1;
}
