:root {
  --tir22-bg: #1f130d;
  --tir22-paper: #f7f3eb;
  --tir22-gold: #c9a45c;
  --tir22-gold-dark: #9b7232;
  --tir22-text: #3d291d;
  --tir22-shadow: rgba(0, 0, 0, .35);
}
#tir22-app {
  width: 100%;
  max-width: 1400px;
  margin: 0px;
  position: relative;
  overflow: visible;
}
#tir22-scene {
  display: none;
  opacity: 0;
  transform:
    scale(1.04);
  position: relative;
}
#tir22-result {
  opacity: 0;
}
.tir22-text-intro, .tir22-small-title {
  color: #f6e6c7;
}
#tir22-intro.tir22-hide {
  animation:
    tir22IntroOut 1.2s forwards;
}
@keyframes tir22IntroOut {
  0% {
    opacity: 1;
    transform:
      scale(1);
  }
  100% {
    opacity: 0;
    transform:
      scale(1.08);
  }
}
.tir22-intro-bg, .tir22-intro-content {
  text-align: center;
  margin: auto;
}
.tir22-intro-bg img {
  display: block;
  width: 100%;
  max-width: 600px;
  border-radius: 12px;
  border: 2px solid #d8b247;
  margin: auto;
  margin-bottom: 15px;
}
#tir22-scene.tir22-show {
  display: block;
  animation:
    tir22SceneIn 1.8s forwards;
}
@keyframes tir22SceneIn {
  0% {
    opacity: 0;
    transform:
      scale(1.06) translateY(30px);
  }
  100% {
    opacity: 1;
    transform:
      scale(1) translateY(0);
  }
}
#tir22-transition.tir22-active {
  opacity: 1;
}
#tir22-cup-container.tir22-arrive {
  animation:
    tir22CupAppear 1.8s cubic-bezier(.2, .8, .2, 1) forwards;
}
@keyframes tir22CupAppear {
  0% {
    opacity: 0;
    transform:
      translateY(80px) scale(.8);
  }
  70% {
    opacity: 1;
  }
  100% {
    transform:
      translateY(0) scale(1);
  }
}
#tir22-cup.tir22-shake {
  animation:
    tir22CupShake .8s ease;
}
@keyframes tir22CupShake {
  0% {
    transform: rotate(0);
  }
  20% {
    transform: rotate(-4deg);
  }
  40% {
    transform: rotate(4deg);
  }
  60% {
    transform: rotate(-3deg);
  }
  100% {
    transform: rotate(0);
  }
}
#tir22-cup.tir22-turn {
  animation:
    tir22CupTurn 1.8s forwards;
}
@keyframes tir22CupTurn {
  0% {
    transform:
      rotateX(0deg);
  }
  50% {
    transform:
      rotateX(80deg) translateY(-40px);
  }
  100% {
    transform:
      rotateX(180deg) translateY(-20px);
  }
}
@keyframes tir22CoffeeFade {
  0% {
    opacity: 1;
    filter:
      blur(0) brightness(1);
  }
  60% {
    opacity: .55;
    filter:
      blur(2px) brightness(1.15);
  }
  100% {
    opacity: 0;
    filter:
      blur(12px) brightness(1.4);
  }
}
#tir22-symbol.tir22-visible {
  animation:
    tir22SymbolReveal 2s forwards;
}
@keyframes tir22SymbolReveal {
  0% {
    opacity: 0;
    transform:
      translate(-50%, -50%) scale(.3);
    filter:
      blur(15px) brightness(2);
  }
  70% {
    opacity: .8;
  }
  100% {
    opacity: 1;
    transform:
      translate(-50%, -50%) scale(1);
    filter:
      blur(0) brightness(1);
  }
}
#tir22-symbol-light.tir22-glow {
  animation:
    tir22Glow 2.5s infinite;
}
@keyframes tir22Glow {
  0% {
    opacity: .2;
    transform:
      translate(-50%, -50%) scale(.8);
  }
  50% {
    opacity: .8;
    transform:
      translate(-50%, -50%) scale(1.15);
  }
  100% {
    opacity: .2;
    transform:
      translate(-50%, -50%) scale(.8);
  }
}
#tir22-result.tir22-show {
  display: block;
  animation:
    tir22ResultIn 1.2s forwards;
}
@keyframes tir22ResultIn {
  0% {
    opacity: 0;
    transform:
      translateY(80px);
  }
  100% {
    opacity: 1;
    transform:
      translateY(0);
  }
}
#tir22-card-image {
  animation:
    tir22CardImage 1.5s ease forwards;
}
@keyframes tir22CardImage {
  0% {
    opacity: 0;
    transform:
      scale(.5);
  }
  100% {
    opacity: 1;
    transform:
      scale(1);
  }
}
#tir22-card-title, #tir22-card-text {
  animation:
    tir22TextFade 1s .5s forwards;
  opacity: 0;
}
@keyframes tir22TextFade {
  to {
    opacity: 1;
  }
}
#tir22-result {
  position: relative;
  min-height: 700px;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 80px 30px;
}
#tir22-card {
  position: relative;
  width: min(850px, 95%);
  background:
    linear-gradient(145deg, #fffdf8, #f0e3cd);
  border-radius: 25px;
  padding: 50px;
  box-shadow:
    0 35px 70px rgba(0, 0, 0, .25);
  overflow: hidden;
}
#tir22-card::before {
  content: "";
  position: absolute;
  inset: 15px;
  border: 1px solid rgba(185, 145, 75, .45);
  border-radius: 18px;
  pointer-events: none;
}
.tir22-card-top {
  position: relative;
  display: flex;
  justify-content: center;
  margin-bottom: 35px;
}
#tir22-card-image {
  width: 170px;
  height: 170px;
  object-fit: contain;
  filter:
    drop-shadow(0 15px 20px rgba(0, 0, 0, .25));
}
.tir22-card-body {
  position: relative;
  text-align: center;
  color: var(--tir22-text);
  z-index: 2;
}
#tir22-card-title {
  font-size: 3rem;
  font-weight: normal;
  margin-bottom: 25px;
  color: #6c4826;
}
/* texte interprétation */
#tir22-card-text {
  max-width: 650px;
  margin: auto;
  font-size: 1.25rem;
  line-height: 1.9;
  color: #513a25;
}
#tir22-card::after {
  content: "✦";
  position: absolute;
  top: 25px;
  right: 35px;
  color: #c9a45c;
  font-size: 28px;
  opacity: .6;
}
#tir22-btn-new {
  margin-top: 45px;
  padding:
    16px 38px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  font-size: 17px;
  color: white;
  background:
    linear-gradient(180deg, #c9a45c, #987033);
  box-shadow:
    0 15px 30px rgba(0, 0, 0, .2);
  transition: .35s;
}
#tir22-btn-new:hover {
  transform:
    translateY(-3px);
  box-shadow:
    0 20px 35px rgba(0, 0, 0, .3);
}
.tir22-card-body::before {
  content: "☕";
  display: block;
  font-size: 35px;
  margin-bottom: 20px;
  opacity: .35;
}
@media(max-width:700px) {
  #tir22-card {
    padding: 35px 25px;
  }
  #tir22-card-title {
    font-size: 2.2rem;
  }
  #tir22-card-text {
    font-size: 1.05rem;
  }
  #tir22-card-image {
    width: 130px;
    height: 130px;
  }
}
#tir22-table {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
#tir22-cup {
  position: absolute;
  width: 100%;
  height: auto;
  z-index: 2;
}
#tir22-symbol {
  position: absolute;
  width: 120px;
  height: 120px;
  top: 50%;
  left: 50%;
  transform:
    translate(-50%, -50%);
  z-index: 4;
}
#tir22-symbol-light {
  position: absolute;
  width: 190px;
  height: 190px;
  top: 50%;
  left: 50%;
  transform:
    translate(-50%, -50%);
  z-index: 3;
}
#tir22-coffee {
  pointer-events: none;
}
#tir22-coffee {
  width: 115px;
  height: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform:
    translate(-50%, -50%);
  z-index: 2;
}
#tir22-symbol {
  opacity: 0;
}
#tir22-cup-container {
  cursor: pointer;
  pointer-events: auto;
}
#tir22-symbol, #tir22-symbol-light {
  pointer-events: none;
}
#tir22-scene {
  position: relative;
  z-index: 10;
}
#tir22-intro {
  position: relative;
  z-index: 20;
}
#tir22-cup-container {
  cursor: pointer;
}
#tir22-cup-container:hover #tir22-cup {
  filter:
    drop-shadow(0 20px 25px rgba(0, 0, 0, .35));
}
.tir22-ambient-light {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at center, rgba(255, 170, 50, .18) 0%, rgba(255, 190, 90, .08) 30%, transparent 70%);
  animation: tir22Ambient 6s ease-in-out infinite;
}
@keyframes tir22Ambient {
  0%, 100% {
    opacity: .55;
  }
  50% {
    opacity: 1;
  }
}
#tir22-symbol-light {
  position: absolute;
  width: 320px;
  height: 320px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 215, 120, .65) 0%, rgba(255, 180, 40, .35) 35%, transparent 70%);
  filter: blur(35px);
  opacity: 0.75;
  z-index: 3;
}
.tir22-shadow {
  position: absolute;
  width: 155px;
  height: 40px;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, .38);
  border-radius: 50%;
  filter: blur(22px);
  z-index: 1;
}
#tir22-coffee.tir22-reveal {
  animation:
    tir22CoffeeFade 2.5s ease forwards;
}
@keyframes tir22CoffeeFade {
  0% {
    opacity: 1;
    filter:
      blur(0) brightness(1);
  }
  60% {
    opacity: .55;
    filter:
      blur(2px) brightness(1.15);
  }
  100% {
    opacity: 0;
    filter:
      blur(12px) brightness(1.4);
  }
}
.btntir {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}





#tir22-instructions {
  margin-top: 25px;
  text-align: center;
  max-width: 700px;
  z-index: 5;
}
#tir22-instructions h2 {
  font-size: 2.1rem;
  color: #f6e6c7;
  margin-bottom: 15px;
}
#tir22-instructions p {
  font-size: 1.2rem;
  color: #fff4e5;
  line-height: 1.7;
}
#tir22-cup-container {
  width: 300px;
  height: 400px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
#tir22-steam {
  position: absolute;
  top: 58px; /* descend la vapeur */
  left: 50%;
  transform: translateX(-50%);
  width: 95px;
  height: 85px;
  pointer-events: none;
  z-index: 6;
}
#tir22-steam span {
  position: absolute;
  bottom: 0;
  width: 13px;
  height: 60px;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at center, rgba(90, 80, 70, .75), rgba(130, 120, 110, .45) 40%, transparent 75%);
  filter:
    blur(9px) drop-shadow(0 0 8px rgba(80, 70, 60, .35));
  opacity: 0;
  animation:
    tir22Steam 6s infinite ease-in-out;
}
#tir22-steam span:nth-child(1) {
  left: 30%;
  animation-delay: 0s;
}
#tir22-steam span:nth-child(2) {
  left: 42%;
  animation-delay: 1.2s;
}
#tir22-steam span:nth-child(3) {
  left: 54%;
  animation-delay: 2.5s;
}
#tir22-steam span:nth-child(4) {
  left: 65%;
  animation-delay: 3.7s;
}
#tir22-steam span:nth-child(5) {
  left: 48%;
  animation-delay: 5s;
}
@keyframes tir22Steam {
  0% {
    transform:
      translate(0, 10px) scale(.6);
    opacity: 0;
  }
  25% {
    opacity: .65;
  }
  50% {
    transform:
      translate(-12px, -45px) scale(1);
    opacity: .45;
  }
  75% {
    transform:
      translate(15px, -85px) scale(1.25);
    opacity: .25;
  }
  100% {
    transform:
      translate(-10px, -120px) scale(1.5);
    opacity: 0;
  }
}
@media screen and (max-width:768px) {

  #tir22-scene {
    padding: 15px 10px 30px;
  }

  #tir22-table {
    width: 100%;
  }

  #tir22-cup-container {
    width: min(78vw, 280px);
    height: min(104vw, 375px);
    margin: 0 auto;
  }

  #tir22-cup {
    width: 100%;
    height: auto;
  }

  #tir22-coffee {
    width: 38%;
    height: auto;
  }

  #tir22-symbol {
    width: 30%;
    height: auto;
  }

  #tir22-symbol-light {
    width: 64%;
    height: 64%;
    filter: blur(20px);
  }

  .tir22-shadow {
    width: 52%;
    height: 10%;
    bottom: 7%;
    filter: blur(12px);
  }

  #tir22-steam {
    width: 32%;
    height: 30%;
    top: 13%;
  }

  #tir22-steam span {
    width: 10px;
    height: 55px;
    filter: blur(5px);
  }

  #tir22-instructions {
    margin-top: 10px;
    padding: 0 15px;
  }

  #tir22-instructions h2 {
    font-size: 1.35rem;
    line-height: 1.3;
    margin-bottom: 10px;
  }

  #tir22-instructions p {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  #tir25BtnCommencer {
    margin-bottom: 80px !important;
  }

  #tir22-start {
    margin-bottom: 80px !important;
  }

}