@media (min-width: 600px) and (max-width: 900px) and (orientation: landscape) {
  .mobile-landscape-blocker {
    display: flex !important;
    position: fixed;
    z-index: 99999;
    font-family: "Montserrat", sans-serif;
    color: #310439;
    background: #faebd7;
    top: 0; left: 0; right: 0; bottom: 0;
    align-items: center;
    justify-content: center;
    font-size: 1em;
    text-align: center;
    padding: 2em;
  }
  body *:not(.mobile-landscape-blocker) {
    display: none !important;
  }
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
}
.background {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
}
.top {
    background: #faebd7;
    height: 50vh;
}
.bottom {
    background: #310439;
    height: 50vh;
}

.carte-centre {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
}
.carte-img {
    width: 220px;
    height: auto;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    border-radius: 12px;
    border: 3px solid #fff;
    background: #fff;
}
/* Section description en bas */
.description-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to bottom, rgba(49, 4, 57, 0) 0%, rgba(49, 4, 57, 0.95) 10%, rgba(49, 4, 57, 1) 20%);
    padding: 40px 20px 30px;
    z-index: 10;
    max-height: 50vh;
    overflow-y: auto;
}
h1 {
    margin-top: 0;
    color: #2c2c3a;
    font-size: 2.5rem;
    text-align: center;
    letter-spacing: 2px;
}

h1 span:first-child {
    font-family: 'Pinyon Script', cursive;
    color: #2c2c3a;
    font-size: 2.5rem;
    display: inline;
}

h1 span:last-child {
    font-family: 'Montserrat', sans-serif;
    color: #2c2c3a;
    font-size: 1.5rem;
    display: inline;
    margin-left: 8px;
}



/* Container gauche - A l'endroit - Modifiez 'top' pour déplacer verticalement */
.interpretation-container-left {
    position: fixed;
    top: 18%;  /* Changez cette valeur pour déplacer en haut (ex: 20%) ou en bas (ex: 70%) */
    left: 110px;
    z-index: 1;
}

/* Container droite - A l'envers - Modifiez 'top' pour déplacer verticalement */
.interpretation-container-right {
    position: fixed;
    top: 33%;  /* Changez cette valeur pour déplacer en haut (ex: 30%) ou en bas (ex: 80%) */
    right: 80px;
    z-index: 1;
}

.interpretation-box {
    background: rgba(255, 255, 255, 0);
    border-radius: 12px;
    padding: 25px;
    min-width: 250px;
    max-width: 350px;
}

.interpretation-box:first-child {
    margin-right: auto;
    margin-left: 20px;
}

.interpretation-box:last-child {
    margin-left: auto;
    margin-right: 20px;
}


.interpretation-header {
    margin-bottom: 45px;
    padding-bottom: 15px;
    border-bottom: 2px solid #310439;
}
.interpretation-headerr {
    margin-top: 45px;
    padding-top: 15px;
    border-top: 2px solid antiquewhite;
}
.position-textt {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: antiquewhite;
}

.aspect-textt {
    font-family: 'Pinyon Script', cursive;
    font-size: 1.8rem;
    color: rgba(250, 235, 215, 0.856);
    margin-left: 8px;
}

.position-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #310439;
}

.aspect-text {
    font-family: 'Pinyon Script', cursive;
    font-size: 1.8rem;
    color: #2c2c3a;
    margin-left: 8px;
}

.keywords {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.keywords p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    color: #2c2c3a;
    margin: 0;
    padding: 8px 0;
    text-align: center;
    font-weight: 500;
}
.keywordss {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.keywordss p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    color: #faebd7;
    margin: 0;
    padding: 8px 0;
    text-align: center;
    font-weight: 500;
}

/* Panneau de description coulissant */
.description-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    backdrop-filter: blur(25px);
    transform: translateY(calc(100% - 35px));
    transition: transform 0.4s ease-in-out;
    z-index: 100;
        overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.description-panel.open {
    transform: translateY(0);
}

.description-tab {
    height: 35px;
    background: rgba(49, 4, 57, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: flex-start;
    align-items: center;
    cursor: pointer;
    border-top: 1px solid rgba(250, 235, 215, 0.2);
    border-radius: 12px 12px 0 0;
    gap: 10px;
    padding-left: 30px;
    user-select: none;
}

.description-tab:hover {
    background: rgba(74, 6, 84, 0.5);
    border-top-color: rgba(250, 235, 215, 0.4);
}
.description-tab span:first-child {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    color: rgba(250, 235, 215, 0.6);
    letter-spacing: 1.5px;
}

.description-tab .arrow {
    font-size: 0.85rem;
    color: rgba(250, 235, 215, 0.6);
    transition: transform 0.4s ease;
}

.description-panel.open .arrow {
    transform: rotate(180deg);
}

.description-content {
    max-height: 70vh;
    overflow-y: auto;
    padding: 30px 50px;
    background: #310439b3;
    backdrop-filter: blur(12px);
}

.description-content h2 {
    text-align: center;
    margin-bottom: 30px;
    color: rgba(250, 235, 215, 0.95);
    font-size: 1.8rem;
}

.description-content h2 span:first-child {
    font-family: 'Pinyon Script', cursive;
    font-size: 2.2rem;
}

.description-content h2 span:last-child {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    margin-left: 10px;
}

.description-content p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    line-height: 1.8;
      color: rgba(250, 235, 215, 0.76);
    margin-bottom: 20px;
    text-align: justify;
}

/* Scrollbar personnalisée */
.description-content::-webkit-scrollbar {
    width: 8px;
}

.description-content::-webkit-scrollbar-track {
    background: rgba(250, 235, 215, 0.1);
}

.description-content::-webkit-scrollbar-thumb {
    background: #faebd7;
    border-radius: 4px;
}

.description-content::-webkit-scrollbar-thumb:hover {
    background: rgba(250, 235, 215, 0.8);
}
/* ===============================================
   MEDIA QUERIES - MOBILE (max 600px)
   =============================================== */
@media screen and (max-width: 600px) {
        /* Empêcher le défilement du body sur mobile */
      body {
        overflow: hidden !important;
        height: 100vh !important;
        max-height: 100vh !important;
        width: 100vw !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Forcer les proportions 50/50 du background sur mobile */
    .background {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100% !important;
        z-index: -1 !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .top {
        height: 50% !important;
        flex: 1 !important;
    }

    .bottom {
        height: 50% !important;
        flex: 1 !important;
    }
    .carte-centre {
        position: fixed !important;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
    }

 .carte-img {
        width: 120px!important;
    }
    /* Container gauche (position endroit) - En haut de la carte */
    .interpretation-container-left {
        position: fixed!important;
        top: 5%!important;
        left: 50%!important;
        transform: translateX(-50%)!important;
        right: auto!important;
        width: 90%!important;
        max-width: 100%!important;
    }

    /* Container droite (position envers) - En bas de la carte */
    .interpretation-container-right {
        position: fixed!important;
        top: auto!important;
        bottom: 5%!important;
        left: 50%!important;
        transform: translateX(-50%)!important;
        right: auto!important;
        width: 90%!important;
        max-width: 100%!important;
    }

    .interpretation-box {
        margin: 0 auto!important;
        max-width: 100%!important;
    }
    
    /* Masquer le titre h1 sur mobile */
    h1 {
        display: none!important;
    }


    /* Couleurs du texte des headers sur mobile */
    .interpretation-headerr,
    .interpretation-headerr .position-textt,
    .interpretation-headerr .aspect-textt {   
     color: #310439 !important  ; 
    text-align: center!important;
    margin-top: 0px!important;
         font-size: 18px!important;
    
    }
       .interpretation-headerr .aspect-textt {
    color: #310439 !important  ; 
        font-size: 24px!important;    
      
    }

    .interpretation-header,
    .interpretation-header .position-text {
        color: antiquewhite !important;
        text-align: center!important;
        margin-bottom: 0px!important;
        font-size: 18px!important;
   
    }
       .interpretation-header .aspect-text {
               color: antiquewhite !important;
        font-size: 24px!important;    
    }
    

    /* Texte après "Description" sur mobile avec police Pinyon Script */
    .description-tab .card-title-sub {
          font-family: 'Pinyon Script', cursive !important;
        color: rgba(250, 235, 215, 0.699) !important;
        font-size: 17px!important;

        

    }
    .description-tab .card-title-sub .card-title-text {
        margin-left: 10px; /* écart entre le tiret et le h1 */
    }
.keywords p, .keywordss p {
    font-size : 14px !important;

}

.description-tab span:first-child {
    font-size: 13px!important;
}
        
}

/* ===============================================
   MEDIA QUERIES - PAYSAGE (1000px à 1200px)
   =============================================== */
@media screen and (min-width: 1000px) and (max-width: 1200px) and (orientation: landscape) {
     
    /* Empêcher le défilement du html et body en mode paysage */
    html {
        overflow: hidden !important;
        height: 100vh !important;
        width: 100vw !important;
    }

    body {
        overflow: hidden !important;
        height: 100vh !important;
        max-height: 100vh !important;
        width: 100vw !important;
        margin: 0 !important;
        padding: 0 !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
    }


    /* Carte et titre centrés */
    .carte-centre {

        top: 45% !important;
    }

    .carte-img {
        width: 220px !important;
    }

/* Container gauche - A l'endroit - Modifiez 'top' pour déplacer verticalement */
   .interpretation-container-left {
    top: 18%;  /* Changez cette valeur pour déplacer en haut (ex: 20%) ou en bas (ex: 70%) */
    left: 90px;

}
 
/* Container droite - A l'envers - Modifiez 'top' pour déplacer verticalement */
.interpretation-container-right {
    top: 30%;  /* Changez cette valeur pour déplacer en haut (ex: 30%) ou en bas (ex: 80%) */
    right: 60px;

}

    /* Créer le background 50/50 avec des pseudo-éléments pour garantir la proportion parfaite */
    body::before {
        content: '' !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: 50vh !important;
        background: #faebd7 !important;
        z-index: -2 !important;
        pointer-events: none !important;
    }
    
    body::after {
        content: '' !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: 50vh !important;
        background: #310439 !important;
        z-index: -2 !important;
        pointer-events: none !important;
    }

    /* Masquer le background et ses enfants en mode paysage */
    .background,
    .top,
    .bottom {
        display: none !important;
    }

}




/* ===============================================
   MEDIA QUERIES - TABLETTE PORTRAIT (900px à 1200px)
   =============================================== */
@media screen and (min-width: 600px) and (max-width: 1200px) and (orientation: portrait) {
    /* Empêcher le défilement du body sur tablette portrait */
    body {
        overflow: hidden !important;
        height: 100vh !important;
        max-height: 100vh !important;
        width: 100vw !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .background {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100% !important;
        z-index: -1 !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .top {
        height: 50% !important;
        flex: 1 !important;
    }

    .bottom {
        height: 50% !important;
        flex: 1 !important;
    }


    /* Fixer la carte au centre */
    .carte-centre {
        position: fixed !important;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
    }

    .carte-img {
        width: 200px !important;
    }

    /* Container gauche (position endroit) - En haut de la carte */
    .interpretation-container-left {
        position: fixed !important;
        top: 5% !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        right: auto !important;
        width: 85% !important;
        max-width: 700px !important;
    }

    /* Container droite (position envers) - En bas de la carte */
    .interpretation-container-right {
        position: fixed !important;
        top: auto !important;
        bottom: 5% !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        right: auto !important;
        width: 85% !important;
        max-width: 700px !important;
    }

    .interpretation-box {
        margin: 0 auto !important;
        max-width: 100% !important;
    }

    /* Masquer le titre h1 sur tablette portrait */
    h1 {
        display: none !important;
    }

    /* Couleurs du texte des headers sur tablette portrait */
    .interpretation-headerr,
    .interpretation-headerr .position-textt,
    .interpretation-headerr .aspect-textt {   
        color: #310439 !important;
        text-align: center !important;
        margin-top: 0px !important;
    }

    .interpretation-header,
    .interpretation-header .position-text,
    .interpretation-header .aspect-text {
        color: antiquewhite !important;
        text-align: center !important;
        margin-bottom: 0px !important;
    }

    /* Texte après "Description" sur tablette portrait */
    .description-tab span:first-child::after {
        content: " - le Mat dans le tarot";
        font-family: 'Pinyon Script', cursive !important;
        color: rgba(250, 235, 215, 0.699) !important;
        font-size: 1.2rem !important;
    }

    .keywords p, .keywordss p {
        font-size: 1.1rem !important;
    }
    
    /* Créer le background 50/50 avec des pseudo-éléments pour garantir la proportion parfaite */
    body::before {
        content: '' !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: 50vh !important;
        background: #faebd7 !important;
        z-index: -2 !important;
        pointer-events: none !important;
    }
    
    body::after {
        content: '' !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: 50vh !important;
        background: #310439 !important;
        z-index: -2 !important;
        pointer-events: none !important;
    }

    /* Masquer le background et ses enfants en mode paysage */
    .background,
    .top,
    .bottom {
        display: none !important;
    }
    
    }

@media screen and (min-width: 1300px) and (max-width: 2000px) {
    /* Background fixe avec proportions 50/50 */
    .background {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        z-index: -1 !important;
    }

    .top {
        height: 50vh !important;
    }

    .bottom {
        height: 50vh !important;
    }

    /* Carte centrée */
    .carte-centre {
        position: absolute !important;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
    }

    .carte-img {
        width: 250px !important;
    }

    /* Titre visible en grand écran */
    h1 {
        display: block !important;
        font-size: 2.8rem !important;
        margin-bottom: 25px !important;
    }

    h1 span:first-child {
        font-size: 2.8rem !important;
    }

    h1 span:last-child {
        font-size: 1.7rem !important;
    }

/* Container gauche - A l'endroit - Modifiez 'top' pour déplacer verticalement */
   .interpretation-container-left {
    top: 30%!important;  /* Changez cette valeur pour déplacer en haut (ex: 20%) ou en bas (ex: 70%) */
    left: 250px!important;

}
 
/* Container droite - A l'envers - Modifiez 'top' pour déplacer verticalement */
.interpretation-container-right {
    top: 40%!important;  /* Changez cette valeur pour déplacer en haut (ex: 30%) ou en bas (ex: 80%) */
    right: 250px!important;

}

    /* Tailles de police optimisées pour grand écran */
    .position-text,
    .position-textt {
        font-size: 1.6rem !important;
    }

    .aspect-text,
    .aspect-textt {
        font-size: 2rem !important;
    }

    .keywords p,
    .keywordss p {
        font-size: 1.2rem !important;
    }



}


