* {
  margin: 0;
  padding: 0;
  box-sizing: border-box
}
html {
  overflow-y: scroll;
}
.tir5-body {
  margin: 0;
}
.ORTIR-container, .ORACLES-TIRAGES, .ORTIR-titre {
  height: auto;
  min-height: 0;
  max-height: none;
  padding: 0px;
  margin: 0px;
}
.ORTIR-container {
  padding: 0px !important;
}
#t3tarot-rose {
  display: none;
  width: 100%;
  max-width: 100%;
  padding: 0px;
  margin: 0 auto;
  box-sizing: border-box;
}
.t3intro {
    text-align: center;
    font-size: 1.2rem;
    opacity: .9;
    margin: 0;
    padding: 0;
    height: 0;
    overflow: hidden;
}
@keyframes pulseGlow {
  0%, 100% {
    transform: scale(1);
    opacity: .4;
  }
  50% {
    transform: scale(1.2);
    opacity: .8;
  }
}
.t3scene {
  display: none;
}
.centertir3 {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 15px 0;
}
.centertir3 h3 {
  margin: 15px 0;
}
.tir3-intro-image {
  width: 100%;
  max-width: 420px;
  margin: auto 20px;
  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
}
.tir3-intro-image img {
  display: block;
  width: 100%;
  height: auto
}
.t3scene {
  position: relative;
  width: 100%;
  height: 450px;
  overflow: hidden;
}
.t3rose-container {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.t3rose {
  width: 180px;
  height: 180px;
  filter:
    drop-shadow(0 0 20px rgba(255, 180, 220, .4));
  animation:
    roseGrow 3s forwards, roseBreath 6s ease-in-out infinite 3s;
}
.t3rose.active {
  filter:
    drop-shadow(0 0 10px #ffd6e6) drop-shadow(0 0 20px #ff8ec5) drop-shadow(0 0 25px #ff8ec5);
  transition: .4s;
}
.t3rose img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.t3rose-halo {
  position: absolute;
  width: 350px;
  height: 350px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 180, 220, .35), transparent 70%);
  animation: haloPulse 5s infinite;
}
@keyframes haloPulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
  }
}
@keyframes roseGrow {
  0% {
    transform: scale(0);
    opacity: 0;
    filter: blur(20px);
  }
  20% {
    opacity: .3;
  }
  60% {
    transform: scale(1.2);
    opacity: 1;
    filter: blur(0);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
@keyframes roseBreath {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}
.t3couronne {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}
.t3couronne .t3card {
  width: 65px;
  height: 90px;
}
.t3card-wrapper {
  position: absolute;
  width: 140px;
  height: 190px;
  transform-origin: center;
  will-change: transform;
}
.t3couronne .t3card:hover {
  transform:
    scale(1.2) translateY(-10px) rotateY(10deg);
}
.t3scene {
  overflow: hidden;
}
.t3card.visible {
  opacity: 1;
  transform:
    scale(1) rotateY(0deg);
}
.t3card::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.t3card::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 8px;
  pointer-events: none;
}
.t3card:hover {
  transform:
    scale(1.25) translateY(-20px) rotateY(12deg);
  z-index: 100;
  box-shadow:
    0 0 5px white, 0 0 5px #ffd6e6, 0 0 20px #ff8ec5;
}
.t3card {
  opacity: 0;
  transform: scale(0.8);
  transition: opacity .6s ease, transform .6s ease;
}
.t3card.visible {
  opacity: 1;
  transform: scale(1);
}
.t3card {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  background-image: url("../images/dos-carte.jpg");
  background-size: cover;
  background-position: center;
  border: 1px solid #d4af37;
  border-radius: 12px;
  cursor: pointer;
  box-shadow:
    0 6px 10px rgba(0, 0, 0, .4), 0 0 10 5px rgba(255, 255, 255, .1);
  transform: none !important;
}
.t3selected-card {
  position: absolute;
  width: 110px;
  height: 150px;
  display: none;
  transform-style: preserve-3d;
  perspective: 1200px;
  z-index: 999;
}
.t3card-face {
  position: absolute;
  border-radius: 18px;
  backface-visibility: hidden;
  transform: translateZ(0);
  overflow: hidden;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.t3card-back {
  background-image: url("../images/dos-carte.jpg");
  border: 1px solid #d4af37;
  box-shadow:
    0 0 20px rgba(255, 255, 255, .3), 0 0 50px rgba(255, 200, 120, .25);
}
.t3card-front {
  transform: rotateY(180deg);
  border: 1px solid #d4af37;
  background-size: cover;
  background-position: center;
}
.t3flip-card {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transform-origin: center center;
  transition: transform 1.8s cubic-bezier(.19, 1, .22, 1);
  backface-visibility: hidden;
  will-change: transform;
}
.t3flip-card.revealed {
  transform: rotateY(180deg);
}
.card-front, .card-back {
  image-rendering: auto;
}
.t3magic-particle {
  position: fixed;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  pointer-events: none;
  background: #ffd9a0;
  z-index: 99999;
  box-shadow:
    0 0 10px #fff, 0 0 20px #ff9fd4;
  animation: magicBurst 1.8s forwards;
}
@keyframes magicBurst {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform:
      translate(var(--x), var(--y)) scale(0);
  }
}
.t3result-layout {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.t3result-card {
  width: 260px;
  height: 400px;
  border-radius: 0px;
  border-radius: 0;
  border: none;
  box-shadow:
    0 0 0 8px #f4e8c9, 0 0 0 10px #b89c6a, 0 8px 20px rgba(0, 0, 0, .35);
  overflow: hidden;
  position: relative;
  overflow: hidden;
}
.t3result-card::after {
  content: "";
  position: absolute;
  inset: -40px;
  border-radius: 50%;
}
@keyframes resultHalo {
  0%, 100% {
    transform: scale(1);
    opacity: .5;
  }
  50% {
    transform: scale(1.3);
    opacity: 1;
  }
}
.t3conseil {
  flex: 1;
  min-width: 280px;
}
.t3arcane-number {
  font-size: 2rem;
  text-align: center;
  margin-top: 40px;
  color: #f1e7c5;
}
.t3arcane-text {
  max-width: 900px;
  margin: auto;
  margin-top: 20px;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.t3spark {
  position: absolute;
  width: 4px;
  height: 4px;
  background: white;
  border-radius: 50%;
  animation: floatUp linear infinite;
}
@keyframes floatUp {
  from {
    transform: translateY(0);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  to {
    transform: translateY(-500px);
    opacity: 0;
  }
}
.t3petal {
  position: absolute;
  width: 18px;
  height: 18px;
  background:
    radial-gradient(ellipse at center, #ffd6e6, #ff8ec5);
  border-radius:
    60% 40% 60% 40%;
  opacity: .6;
  pointer-events: none;
  animation:
    petalFall linear infinite;
}
@keyframes petalFall {
  0% {
    transform:
      translateY(-50px) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: .7;
  }
  100% {
    transform:
      translateY(110vh) translateX(200px) rotate(720deg);
    opacity: 0;
  }
}
.ORTIR-container, .ORACLES-TIRAGES {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.ORACLES-TIRAGES {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden;
}
html, body {
  overflow-x: hidden;
  max-width: 100%;
}
.t3result {
  display: none;
  opacity: 0;
  width: 100%;
  max-width: 950px;
  margin: 25px auto;
  padding: 15px 20px;
  background: none;
}
/* Numéro de l'arcane */
.t3arcane-number {
  width: 100%;
  text-align: center;
  letter-spacing: 3px;
  color: #e8d39b;
  margin-bottom: 5px;
}
/* Carte à gauche */
.t3result-card {
  flex: 0 0 220px;
  width: 160px;
  height: 240px;
  margin: 0 auto;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  border: 2px solid #d4af37;
  box-shadow:
    0 0 20px rgba(255, 180, 220, .35), 0 15px 30px rgba(0, 0, 0, .5);
  animation: cardFloat 5s ease-in-out infinite;
}
/* Zone texte à droite */
.t3conseil {
  flex: 1;
  min-width: 280px;
  padding: 5px 0;
}
.t3conseil h3 {
  margin: 0px;
  font-size: 1.25rem;
  color: #d4af37;
}
.t3conseil p {
  margin: 0px;
  font-size: 1.05rem;
  line-height: 1.2;
  color: #f7e9d0;
}
/* Description de l'arcane */
.t3arcane-text {
  width: 100%;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(212, 175, 55, .25);
  font-size: 0.95rem;
  line-height: 1.5;
  color: #ddd;
}
.t3result {
  display: none;
  opacity: 0;
  width: 100%;
  max-width: 950px;
  margin: 0px auto;
  padding: 0px 20px;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px;
  overflow: hidden;
  background: none;
}
@media(max-width:768px) {
  .container, .ORTIR-container, .ORACLES-TIRAGES {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .t3scene {
    height: 500px;
  }
  .t3card {
    width: 60px;
    height: 100px;
  }
  .t3result-layout {
    justify-content: center;
  }
  .t3result-card {
    width: 160px;
    height: 246px;
  }
  .ORACLES-TIRAGES h3 {
    font-size: 1.8rem;
  }
  .wrapper, #page-wrapper {
    width: 100%;
    max-width: 100%;
  }
  .t3card-wrapper {
    max-width: 100vw;
    overflow: hidden;
  }
  .t3couronne {
    max-width: 100%;
    overflow: hidden;
    left: 0;
    right: 0;
  }
  .t3scene, .t3couronne, .ORTIR-container, .ORACLES-TIRAGES {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
  .t3card-wrapper {
    max-width: 100vw;
    overflow: hidden;
  }
  .t3couronne {
    overflow: hidden;
    max-width: 100%;
  }
  .t3arcane-text {
    margin-bottom: 120px;
  }
  .t3result {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  .t3result-card {
    width: 160px;
    height: 250px;
  }
  .t3conseil {
    text-align: center;
  }
  /* Ajustements mobile uniquement */
  .t3arcane-number {
    font-size: 1.2rem;
    margin-bottom: 5px;
  }
  .t3reveal-title {
    font-size: 1.1rem;
    margin-bottom: 8px;
  }
  .t3conseil h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
  }
  #t3conseilText {
    font-size: 0.95rem;
    line-height: 1.2;
    text-align: left;
  }
  .t3arcane-text {
    font-size: 0.95rem;
    line-height: 1.2;
  }
}
.t3result {
  flex-direction: column;
}
.t3result-card {
  flex: none;
}
.t3reveal-title {
  margin: 0px;
}
.t3conseil {
  flex: 1;
}
.t3arcane-text {
  width: 100%;
}
.t3result-content {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 35px;
}
.t3result-info {
  flex: 1;
}
.t3reveal-title {
  margin: 0px;
}
@media(max-width:768px) {
  .t3result-content {
    flex-direction: column;
    align-items: center;
  }
  .t3result-info {
    text-align: center;
  }
  .centertir3, .t3scene, #t3result {
    margin-bottom: 45px !important;
  }
	.tir3-intro-image {
    width: calc(100% - 40px);
    margin: 0 auto;
}
}