:root {
  /* Fonds */
  --tir28-bg: #211a2b;
  --tir28-panel: #211a27;
  --tir28-panel2: #151219;
  --tir28-panel-reading: #18151d;
  --tir28-panel-synthesis: #15131a;
  /* Or ancien */
  --tir28-gold: #b89452;
  --tir28-gold2: #d8c084;
  --tir28-gold-light: #ead9a9;
  /* Textes */
  --tir28-cream: #e8dfcb;
  --tir28-text: #c5bdaf;
  --tir28-muted: #9f978d;
  /* Lignes */
  --tir28-line: rgba(184, 148, 82, .28);
  --tir28-line-soft: rgba(184, 148, 82, .16);
  /* Ombres */
  --tir28-shadow:
    0 20px 55px rgba(0, 0, 0, .48), 0 2px 10px rgba(0, 0, 0, .25);
  --tir28-card-shadow:
    0 10px 25px rgba(0, 0, 0, .5);
}
* {
  margin: 0;
  padding: 0;
}
.ORTIR-container, .ORACLES-CONTENEUR {
  margin: 0 !important;
  padding: 0 !important;
}
.tir28-app {
  overflow: hidden;
}
.tir28-app:before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 30%, rgba(201, 164, 91, .035), transparent 60%);
}
.tir28-shell {
  margin: auto;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.tir28-topbar {
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 20;
}
.tir28-phase {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 7px 20px;
  border: 1px solid rgba(184, 148, 82, .34);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(43, 32, 48, .92), rgba(21, 17, 25, .94));
  color: var(--tir28-gold-light);
  font-size: 11px;
  letter-spacing: .08em;
  text-align: center;
  box-shadow:
    0 7px 22px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(232, 220, 190, .05);
  backdrop-filter: blur(8px);
}
.tir28-screen {
  position: relative;
  display: block;
  padding: 8px 0 25px;
}
.tir28-view {
  width: 100%;
  display: none;
  animation: tir28Fade .55s ease both;
}
.tir28-view.is-active {
  display: block;
}
@keyframes tir28Fade {
  from {
    opacity: 0;
    transform: translateY(8px)
  }
  to {
    opacity: 1;
    transform: none
  }
}
.tir28-intro {
  width: min(720px, 100%);
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.tir28-intro-art {
  width: min(450px, 85vw);
  aspect-ratio: 16 / 9;
  height: auto;
  margin: 2px auto 18px;
  border: 1px solid rgba(201, 164, 91, .5);
  background: linear-gradient(135deg, rgba(255, 220, 140, .1), transparent 35%), url("img/intro.jpg") center/cover no-repeat;
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .5);
}
.tir28-intro-art:after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(240, 210, 140, .4);
  pointer-events: none;
}
.tir28-question-box {
  width: min(660px, 100%);
  margin: 0 auto 15px;
}
.tir28-question-box label {
  display: block;
  margin-bottom: 7px;
  color: var(--tir28-gold);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.tir28-question {
  display: block;
  width: 100%;
  box-sizing: border-box;
  min-height: 76px;
  padding: 11px 14px;
  resize: none;
  border: 1px solid rgba(201, 164, 91, .25);
  border-radius: 4px;
  outline: none;
  background: rgba(8, 7, 5, .7);
  color: var(--tir28-cream);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  transition: border-color .25s, background .25s, box-shadow .25s;
}
.tir28-question:focus {
  border-color: rgba(201, 164, 91, .7);
  background: rgba(14, 11, 7, .88);
  box-shadow: 0 0 0 3px rgba(201, 164, 91, .06);
}
.tir28-question::placeholder {
  color: #756c60;
}
.tir28-question-hint {
  margin-top: 5px;
  text-align: right;
  color: var(--tir28-muted);
  font-size: 10px;
}
.tir28-question-count {
  color: var(--tir28-gold2);
}
.tir28-btn {}
.tir28-btn:hover {}
.tir28-btn:active {}
.tir28-ruban-wrap {
  width: 100%;
  max-width: 100%;
  padding: 20px 0 10px;
  overflow: hidden;
}
.tir28-ruban {
  width: 100%;
  max-width: 100%;
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0 4px;
}
.tir28-ruban-card {
  aspect-ratio: 175 / 340;
  height: auto;
  min-width: 0;
  position: relative;
  transition: transform .28s, opacity .4s, filter .28s;
  transform-origin: bottom center;
  z-index: 1;
  padding: 0;
  background: none;
  border: 0;
}
.tir28-ruban-card {
  width: clamp(48px, 8vw, 76px);
  max-width: 76px;
  flex: 0 0 clamp(48px, 8vw, 76px);
  margin-left: clamp(-42px, -4.4vw, -24px);
}
.tir28-ruban-card:first-child {
  margin-left: 0;
}
.tir28-ruban-card:hover:not(.is-selected) {
  transform: translateY(-18px);
  z-index: 50;
}
.tir28-ruban-card.is-selected {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-70px) scale(.85);
}
.tir28-card-back {
  position: absolute;
  inset: 0;
  border: 1px solid #8e6c35;
  border-radius: 4px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .45);
  overflow: hidden;
  background: #221a10 url("img/dos.jpg") center/100% 100% no-repeat;
}
.tir28-card-back:after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(240, 210, 140, .55);
  background: linear-gradient(45deg, transparent 48%, rgba(240, 210, 140, .12) 49%, transparent 51%);
}
.tir28-instruction {
  text-align: center;
  color: var(--tir28-muted);
  font-size: 12px;
  margin: 7px 0 0;
}
.tir28-selection-count {
  color: var(--tir28-gold);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-align: center;
  margin-top: 6px;
}
.tir28-triangle-stage {
  min-height: 0;
  position: relative;
}
.tir28-triangle-layout {
  width: min(1080px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(430px, 1fr) minmax(320px, 2fr);
  gap: 5px;
  align-items: center;
}
.tir28-triangle {
  width: min(500px, 100%);
  height: auto;
  aspect-ratio: 1 / 1;
  max-width: 100%;
  position: relative;
  margin: auto;
  transition: transform 1s cubic-bezier(.2, .8, .2, 1);
}
.tir28-triangle.is-reading {
  transform: translateX(0);
}
.tir28-slot {
  position: absolute;
 width: clamp(78px, 21%, 105px);
  height: auto;
  aspect-ratio: 105 / 204;
  left: 50%;
  top: 50%;
  transition: .7s cubic-bezier(.2, .8, .2, 1);
}
.tir28-slot[data-position="1"] {
  transform: translate(-50%, -100%);
}
.tir28-slot[data-position="2"] {
  transform: translate(-165%, 0%);
}
.tir28-slot[data-position="3"] {
  transform: translate(65%, 0%);
}
.tir28-slot[data-position="4"] {
  transform: translate(-50%, 0%);
}
.tir28-slot::before {
  content: attr(data-position);
  position: absolute;
  left: 50%;
  top: -27px;
  transform: translateX(-50%);
  width: 23px;
  height: 23px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(201, 164, 91, .45);
  border-radius: 50%;
  background: rgba(9, 7, 5, .85);
  color: var(--tir28-gold2);
  font-size: 11px;
  z-index: 20;
}
.tir28-reading-card {
  width: 83%;
  height: auto;
  aspect-ratio: 87 / 170;
  position: relative;
  perspective: 1000px;
  cursor: pointer;
  transition: filter .25s, opacity .25s, transform .25s;
}
.tir28-card-inner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform .9s cubic-bezier(.2, .75, .2, 1);
}
.tir28-reading-card.is-flipped .tir28-card-inner {
  transform: rotateY(180deg);
}
.tir28-card-back, .tir28-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 1px solid #8e6c35;
  border-radius: 4px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .45);
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.tir28-card-back {
  background: #221a10 url("img/dos.jpg") center/100% 100% no-repeat;
}
.tir28-card-back:after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(240, 210, 140, .55);
  background: linear-gradient(45deg, transparent 48%, rgba(240, 210, 140, .12) 49%, transparent 51%);
}
.tir28-face {
  transform: rotateY(180deg);
  background: #17110b center/100% 100% no-repeat;
}
.tir28-face:after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(240, 210, 140, .48);
  pointer-events: none;
}
.tir28-detail {
  min-height: 410px;
  padding: 15px;
  box-sizing: border-box;
  border: 1px solid rgba(184, 148, 82, .22);
  border-radius: 10px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(104, 76, 105, .12), transparent 55%), linear-gradient(145deg, var(--tir28-panel-reading), var(--tir28-panel2));
  box-shadow:
    0 20px 55px rgba(0, 0, 0, .48), inset 0 1px 0 rgba(232, 220, 190, .035);
  opacity: 0;
  transform: translateX(18px);
  transition: opacity .45s, transform .45s;
}
.tir28-detail.is-visible {
  opacity: 1;
  transform: none;
}
.tir28-detail-art {
  width: 100px;
  aspect-ratio: 175 / 340;
  margin: 0 auto 20px;
  border: 1px solid rgba(201, 164, 91, .55);
  background: center/100% 100% no-repeat;
  box-shadow: 0 15px 35px rgba(0, 0, 0, .55);
}
.tir28-detail-pos {
  font-size: 9px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--tir28-gold);
  margin-bottom: 7px;
}
.tir28-detail-name {
  font-size: 27px;
  font-weight: 400;
  color: #eee5d3;
  margin: 0 0 12px;
  letter-spacing: .01em;
}
.tir28-detail-text {
  font-size: 14px;
  line-height: 1.75;
  color: #c9c1b4;
  margin: 0;
}
.tir28-synthesis {
  width: min(960px, 100%);
  margin: 15px auto 80px !important;
  padding: 15px;
  box-sizing: border-box;
  border: 1px solid rgba(184, 148, 82, .24);
  background:
    linear-gradient(135deg, var(--tir28-panel), var(--tir28-panel-synthesis));
  box-shadow:
    0 18px 45px rgba(0, 0, 0, .30), inset 0 1px 0 rgba(232, 220, 190, .025);
  display: none;
}
.tir28-synthesis.is-visible {
  display: block;
  animation: tir28Fade .7s ease both;
}
.tir28-synthesis h2 {
  font-size: 29px;
  font-weight: 400;
  text-align: center;
  color: #e3d8c0;
  margin: 0 0 10px;
  letter-spacing: .01em;
}
.tir28-synthesis .tir28-question-display {
  text-align: center;
  color: #c19a55;
  font-style: italic;
  margin-bottom: 24px;
}
.tir28-synthesis p {
  font-size: 13px;
  line-height: 1.55;
  color: #bdb5a8;
}
.tir28-synthesis-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 22px 0;
}
.tir28-mini {
  border-top: 1px solid rgba(184, 148, 82, .22);
  padding-top: 11px;
}
.tir28-mini b {
  display: block;
  color: #c9a966;
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.tir28-mini span {
  font-size: 13px;
  color: #c7beaf;
}
.tir28-hidden {
  display: none !important;
}
@media(max-width:1050px) {
  .tir28-triangle-layout {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .tir28-detail {
    width: min(700px, 100%);
    margin: auto;
  }
}
@media (max-width: 770px) {
  #tir28Start {
    margin-bottom: 200px !important;
  }
}
@media (max-width: 760px) {
  .tir28-screen {
    margin-bottom: 200px !important;
  }
  .tir28-ruban {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    height: 145px;
    padding: 0;
    overflow: hidden;
  }
  .tir28-ruban-card {
    width: clamp(42px, 8vw, 54px);
    max-width: 54px;
    min-width: 0;
    flex: 0 1 clamp(42px, 8vw, 54px);
    margin-left: clamp(-45px, calc(12px - 6vw), -30px);
    box-sizing: border-box;
  }
  .tir28-ruban-card:first-child {
    margin-left: 0;
  }
}