/* Dark-mode : inversion du dégradé, luminance texte */
.dark-mode {
    --primary-start: #FF4F9C;
    --primary-end: #5E2BFF;
    --text-primary: #FFFFFF;
    --text-secondary: #F9E79F;
    --context-dark: #2B174A;
}
.dark-mode body {
    background: var(--context-dark);
    color: var(--text-primary);
}
.dark-mode .carte-oracle {
    background: linear-gradient(45deg, var(--primary-start) 0%, var(--primary-end) 100%);
}
.dark-mode .carte-oracle-titre,
.dark-mode .carte-oracle-contenu,
.dark-mode .btn-papa,
.dark-mode .chip-papa {
    color: var(--text-primary);
}
body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    background: 
        linear-gradient(135deg, #18122b 0%, #533483 40%, #ff69b4 80%, #ffd700 100%),
        radial-gradient(circle at 20% 20%, rgba(138, 43, 226, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 215, 0, 0.13) 0%, transparent 50%);
    color: #fff;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;

body::before {
    content: '';
    position: fixed;
    top: 0;
/* Composant Carte-Oracle */
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="stars" x="0" y="0" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="0.5" fill="rgba(255,215,0,0.3)"/><circle cx="80" cy="60" r="0.3" fill="rgba(255,215,0,0.2)"/><circle cx="50" cy="80" r="0.4" fill="rgba(138,43,226,0.3)"/><circle cx="10" cy="70" r="0.2" fill="rgba(255,255,255,0.2)"/><circle cx="90" cy="30" r="0.3" fill="rgba(255,215,0,0.25)"/></pattern></defs><rect width="100" height="100" fill="url(%23stars)"/></svg>') repeat;
    opacity: 0.4;
    pointer-events: none;

    z-index: -1;
    animation: twinkleStars 10s ease-in-out infinite;
}

@keyframes twinkleStars {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.7; }
}

/* .bgCartes {
    margin: 50px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: #ffffff;
    padding: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
} */


.bgCartes {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 25px;
    border: 2px solid transparent;
    box-shadow: 
        0 0 30px rgba(138, 43, 226, 0.15);
    width: 90%;
    max-width: 1400px;
    position: relative;
    margin: 30px auto;
    overflow: hidden;
    animation: carteEntree 0.5s ease-out;
}

@keyframes carteEntree {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.bgCartes::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 25% 25%, rgba(255, 215, 0, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(138, 43, 226, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 105, 180, 0.05) 0%, transparent 60%);
    z-index: -1;
}

.bgCartes::after {
    content: '✧ ❋ ✦ ❋ ✧';
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 18px;
    color: rgba(255, 215, 0, 0.4);
    letter-spacing: 15px;
    z-index: 1;
}

@keyframes mysticalFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(20px, -20px) rotate(90deg); }
    50% { transform: translate(-20px, 20px) rotate(180deg); }
    75% { transform: translate(20px, 20px) rotate(270deg); }
}

@keyframes sparkle {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

.top {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    transform: translateZ(10px);
}

.top .imgcarte {
    width: 100%;
    max-width: 400px;
    border-radius: 25px;
    box-shadow: 
        0 15px 30px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(255, 215, 0, 0.2);
    border: 3px solid transparent;
    background: linear-gradient(145deg, rgba(255, 215, 0, 0.4), rgba(138, 43, 226, 0.4)) border-box;
    background-clip: content-box, border-box;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.top .imgcarte::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, transparent 50%, rgba(138, 43, 226, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.top .imgcarte:hover::before {
    opacity: 1;
}

.top .imgcarte:hover {
    transform: scale(1.02);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(255, 215, 0, 0.3);
}

h3 {
    font-size: 32px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 50%, #ffd700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    margin: 50px 0 30px 0; /* Plus d'espacement vertical */
    padding-top: 15px; /* Espacement supplémentaire en haut */
    text-shadow: 0 3px 15px rgba(255, 215, 0, 0.4);
    letter-spacing: 2px;
    position: relative;
    text-transform: uppercase;
    text-align: center;
}

h3::before {
    content: '◈';
    position: absolute;
    left: -40px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: rgba(138, 43, 226, 0.8);
    /* animation supprimée pour fluidité */
}

h3::after {
    content: '◈';
    position: absolute;
    right: -40px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: rgba(138, 43, 226, 0.8);
    animation: pulse 2s ease-in-out infinite reverse;
}

.rightTop {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: fit-content;
    max-width: 600px;
    box-sizing: border-box;
}

.musique {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: fit-content;
}

.plateformes {
    width: fit-content;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: 
        linear-gradient(145deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%),
        radial-gradient(circle at 80% 20%, rgba(138, 43, 226, 0.1) 0%, transparent 50%);
    backdrop-filter: blur(15px);
    padding: 25px;
    border-radius: 18px;
    box-shadow: 0 4px 12px rgba(138,43,226,0.08), 0 1px 4px rgba(255,215,0,0.05);
    box-shadow: 
        0 10px 25px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.plateformes::before {
    content: '♪ ♫ ♪';
    position: absolute;
    top: -5px;
    right: 15px;
    font-size: 16px;
    color: rgba(255, 105, 180, 0.6);
}

/* Animation supprimée pour éviter les bugs */

.youtube, .spotify, .deezer {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 15px 20px;
    border-radius: 20px;
    border: 2px solid rgba(255, 215, 0, 0.5);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(138, 43, 226, 0.15)) border-box;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.youtube:hover::before, .spotify:hover::before, .deezer:hover::before {
    left: 100%;
}

.youtube:hover, .spotify:hover, .deezer:hover {
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%);
    transform: translateX(8px) scale(1.02);
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.2),
        0 0 15px rgba(255, 105, 180, 0.2);
}

.imgplateforme {
    width: 40px;
    height: auto; /* Permet à la hauteur de s'ajuster proportionnellement */
    object-fit: contain; /* Préserve les proportions de l'image sans l'étirer */
    border-radius: 0; /* Pas de bordure arrondie pour les logos */
    background: transparent; /* Suppression du fond des logos */
    transition: all 0.3s ease;
}

.imgplateforme:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 10px rgba(255, 105, 180, 0.4));
}

.lien {
    text-decoration: none;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    letter-spacing: 0.5px;
}

.lien::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff69b4, #8a2be2);
    transition: width 0.3s ease;
}

.lien:hover::after {
    width: 100%;
}

.lien:hover {
    color: rgba(255, 215, 0, 1);
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
    transform: translateY(-1px);
}

.rightBottomPart {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.message {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.9;
    backdrop-filter: blur(15px);
    padding: 35px;
    border-radius: 18px;
    border: 2px solid transparent;
    box-shadow: 
        0 12px 30px rgba(0, 0, 0, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.1),
        0 0 25px rgba(255, 215, 0, 0.1);
    font-style: italic;
    position: relative;
    text-align: justify;
}

.message::before {
    content: '"';
    position: absolute;
    top: -15px;
    left: 20px;
    font-size: 80px;
    background: linear-gradient(135deg, #ffd700 0%, #8a2be2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    font-family: serif;
}

.message::after {
    content: '"';
    position: absolute;
    bottom: -35px;
    right: 20px;
    font-size: 80px;
    background: linear-gradient(135deg, #8a2be2 0%, #ffd700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    font-family: serif;
}

.bottom {
    width: 100%;
    max-width: 1200px;
    margin-top: 30px;
    transform: translateZ(5px);
}

.rituel {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.9;
    border-radius: 18px;
    border: 2px solid transparent;
    background-image: 
        linear-gradient(145deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.05) 100%),
        linear-gradient(45deg, rgba(138, 43, 226, 0.18), rgba(255, 105, 180, 0.13), rgba(255, 215, 0, 0.13));
    box-shadow: 
        0 12px 30px rgba(0, 0, 0, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.1),
        0 0 25px rgba(138, 43, 226, 0.1);
    position: relative;
}

.rituel::before {
    content: '✧ ❋ ✦';
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 22px;
    background: linear-gradient(135deg, #8a2be2 0%, #ff69b4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* animation supprimée pour fluidité */
    letter-spacing: 8px;
}


.rituel strong {
    font-weight: 800;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
    font-size: 1.1em;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-top: 20px;
    margin-bottom: 10px;
}

/* Style pour les listes à puces dans le rituel */
.rituel .liste-item {
    margin-bottom: 10px;
    padding-left: 15px;
    position: relative;
    line-height: 1.6;
}

/* Styles pour l'en-tête des cartes */
.carte-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin-bottom: 40px;
    padding: 20px 30px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(138, 43, 226, 0.1) 100%);
    border-radius: 18px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    position: relative;
    overflow: hidden;
    transform: translateZ(20px);
}

.carte-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    /* Pas d'animation */
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.carte-titre {
    font-size: 40px;
    font-weight: 700;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 50%, #ffd700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 5px 20px rgba(255, 215, 0, 0.5);
    letter-spacing: 3px;
    margin: 12px 0;
    position: relative;
    /* Pas d'animation */
}

@keyframes titreGlow {
    0%, 100% {
        filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.4));
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.8));
    }
}

.carte-titre::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, #8a2be2 0%, #ff69b4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    z-index: -1;
    /* animation supprimée pour fluidité */
}

@keyframes textGlow {
    0%, 100% { opacity: 0; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(1.02); }
}

/* Symboles chakras spirituels */
.carte-symbole {
    font-size: 38px;
    font-weight: 600;
    letter-spacing: 2px;
    color: rgba(255, 215, 0, 0.9);
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.6), 0 0 40px rgba(255, 215, 0, 0.4);
    transform-origin: center;
    /* Pas d'animation */
}

@keyframes symbolPulse {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.1) rotate(5deg); }
    50% { transform: scale(1.05) rotate(0deg); }
    75% { transform: scale(1.1) rotate(-5deg); }
}

/* Styles pour le conteneur d'image de carte */
.carte-image-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    overflow: hidden;
    border-radius: 18px;
    perspective: 1000px;
}

.carte-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.carte-image-container:hover .carte-overlay {
    transform: translateY(0);
}

.chakra-symbol {
    font-size: 32px;
    filter: drop-shadow(0 0 10px currentColor);
    /* Animation supprimée pour éviter les bugs */
}

.energy-level {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

/* Système de navigation entre cartes */
.carte-navigation {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    padding: 15px 25px;
    border-radius: 50px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.nav-button {
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.8), rgba(138, 43, 226, 0.8));
    border: none;
    border-radius: 20px !important;
    color: white;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.nav-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
    background: linear-gradient(135deg, rgba(255, 215, 0, 1), rgba(138, 43, 226, 1));
}

.nav-button:active {
    transform: translateY(-1px) scale(1.02);
}

.nav-button.active {
    background: linear-gradient(135deg, rgba(255, 215, 0, 1), rgba(255, 105, 180, 0.9));
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
}

/* Indicateur de carte actuelle */
.carte-counter {
    position: fixed;
    top: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    padding: 10px 20px;
    border-radius: 25px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 14px;
    z-index: 1000;
}

/* Menu de sélection rapide */
.quick-select {
    position: fixed;
    top: 50%;
    left: 30px;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    padding: 20px 10px;
    border-radius: 18px !important;
    border: 2px solid rgba(255, 215, 0, 0.2);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
    max-height: 70vh;
    overflow-y: auto;
}

.quick-card {
    width: 40px;
    height: 60px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(138, 43, 226, 0.3));
    border-radius: 10px !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    position: relative;
}

.quick-card:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.6), rgba(138, 43, 226, 0.6));
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.quick-card.active {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.8), rgba(255, 105, 180, 0.8));
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

/* Tooltip pour les cartes rapides */
.quick-card::after {
    content: attr(data-name);
    position: absolute;
    left: 50px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1001;
}

.quick-card:hover::after {
    opacity: 1;
}

/* Responsive design amélioré */
@media (max-width: 768px) {
    .bgCartes {
        margin: 20px auto;
        padding: 30px 20px;
        width: 95%;
    }
    
    .carte-titre {
        font-size: 32px;
        letter-spacing: 2px;
    }
    
    .carte-symbole {
        font-size: 32px;
    }
    
    .top {
        flex-direction: column;
        gap: 30px;
    }
    
    .carte-image-container {
        max-width: 300px;
    }
    
    h3 {
        font-size: 24px;
        text-align: center;
    }
    
    .message, .rituel {
        font-size: 16px;
        padding: 18px;
    }
    
    .carte-navigation {
        bottom: 20px;
        padding: 10px 15px;
        gap: 10px;
    }
    
    .nav-button {
        padding: 8px 15px;
        font-size: 12px;
    }
    
    .quick-select {
        left: 10px;
        padding: 15px 8px;
        gap: 8px;
    }
    
    .quick-card {
        width: 30px;
        height: 45px;
        font-size: 14px;
    }
    
    .carte-counter {
        top: 20px;
        right: 20px;
        padding: 8px 15px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .carte-titre {
        font-size: 22px;
    }
    
    .carte-symbole {
        font-size: 24px;
    }
    
    .message, .rituel {
        font-size: 14px;
        padding: 12px;
    }
}
    
    .plateformes {
        padding: 15px;
    }
    
    .youtube, .spotify, .deezer {
        padding: 10px 15px;
    }
}

.bgCartes, .top .imgcarte, .plateformes, .youtube, .spotify, .deezer, .message, .rituel, .carte-header, .carte-image-container, .carte-counter, .quick-card, .quick-select, .nav-button {
    border-radius: 20px !important;
    box-shadow: 0 6px 16px rgba(138,43,226,0.08), 0 0 10px rgba(255,215,0,0.07);
}

.carte-titre {
    font-size: 40px;
    letter-spacing: 3px;
    margin: 12px 0;
}

.carte-symbole {
    font-size: 38px;
    font-weight: 600;
    letter-spacing: 2px;
}

.message, .rituel {
    font-size: 18px;
    padding: 32px;
}

.quick-card {
    border-radius: 10px !important;
    font-size: 18px;
}

.quick-select {
    border-radius: 18px !important;
}

.nav-button {
    border-radius: 20px !important;
    font-size: 15px;
    padding: 12px 22px;
}

@media (max-width: 768px) {
    .carte-titre {
        font-size: 32px;
        letter-spacing: 2px;
    }

    .carte-symbole {
        font-size: 32px;
    }
    .message, .rituel {
        font-size: 16px;
        padding: 18px;
    }
}

@media (max-width: 480px) {
    .carte-titre {
        font-size: 22px;
    }
    .carte-symbole {
        font-size: 24px;
    }
    .message, .rituel {
        font-size: 14px;
        padding: 12px;
    }
}