/* Cartes - Styles CSS pour les pages de cartes (Carte Moteur, Carte Sajo, Carte Tor) */
/* Thème Rouge et Noir */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0a0a0a;
    min-height: 100vh;
    color: #ffffff;
}

/* ===== Background animé ===== */
.bg-orbs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0000 50%, #0a0a0a 100%);
}

.bg-orbs div {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 10s infinite ease-in-out;
}

.orb1 {
    width: 400px;
    height: 400px;
    background: #ff0000;
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.orb2 {
    width: 300px;
    height: 300px;
    background: #cc0000;
    bottom: -50px;
    right: -50px;
    animation-delay: 2s;
}

.orb3 {
    width: 250px;
    height: 250px;
    background: #ff3333;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

/* ===== Header ===== */
header {
    text-align: center;
    padding: 40px 20px;
    color: white;
    background: linear-gradient(180deg, rgba(255,0,0,0.2) 0%, transparent 100%);
}

header h1 {
    font-size: 2.5em;
    text-shadow: 0 0 20px rgba(255, 0, 0, 0.8);
    margin: 0;
    color: #ff3333;
    text-transform: uppercase;
    letter-spacing: 3px;
}

/* ===== Container ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    gap: 30px;
}

/* ===== Glass Card ===== */
.glass-card {
    background: rgba(255, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 0, 0, 0.3);
    box-shadow: 0 8px 32px rgba(255, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(255, 0, 0, 0.3);
}

.glass-card h2 {
    color: #ff3333;
    margin-top: 0;
    font-size: 1.5em;
    border-bottom: 2px solid rgba(255, 0, 0, 0.5);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.glass-card p {
    color: #e0e0e0;
    line-height: 1.6;
}

.responsive-img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-top: 20px;
    box-shadow: 0 4px 20px rgba(255, 0, 0, 0.4);
    border: 2px solid rgba(255, 0, 0, 0.3);
}

/* ===== Back Button ===== */
.back-button {
    display: inline-block;
    padding: 12px 25px;
    background: linear-gradient(135deg, #ff0000, #cc0000);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: bold;
    border: 2px solid #ff3333;
}

.back-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 0, 0, 0.4);
    background: linear-gradient(135deg, #ff3333, #ff0000);
}

/* ===== Footer ===== */
footer {
    text-align: center;
    padding: 30px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9em;
    background: linear-gradient(0deg, rgba(255,0,0,0.3) 0%, transparent 100%);
}

/* ===== Chatbot - État Original ===== */
#interactive-bot {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    cursor: pointer;
}

#interactive-bot img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(255, 0, 0, 0.4);
    transition: transform 0.3s ease;
    border: 3px solid #ff0000;
}

#interactive-bot img:hover {
    transform: scale(1.1);
}

/* Chat Bubble - Caché par défaut (état original) */
#chat-bubble {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 320px;
    max-height: 400px;
    background: rgba(20, 0, 0, 0.95);
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 10px 40px rgba(255, 0, 0, 0.5);
    z-index: 1001;
    display: none;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 0, 0, 0.3);
}

#chat-bubble.hidden {
    display: none;
}

#chat-bubble.show {
    display: block;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

#chat-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
}

#chat-close:hover {
    opacity: 1;
}

#chat-messages {
    max-height: 250px;
    overflow-y: auto;
    margin-bottom: 15px;
    padding: 10px;
}

.message {
    padding: 8px 12px;
    margin: 5px 0;
    border-radius: 10px;
    font-size: 14px;
    word-wrap: break-word;
}

.user-message {
    background: #ff0000;
    color: #fff;
    margin-left: auto;
    max-width: 80%;
    text-align: right;
}

.bot-message {
    background: rgba(255, 0, 0, 0.2);
    color: #fff;
    max-width: 80%;
    border: 1px solid rgba(255, 0, 0, 0.3);
}

#chat-input {
    width: 100%;
    padding: 10px;
    border: 1px solid rgba(255, 0, 0, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    box-sizing: border-box;
    margin-bottom: 10px;
}

#chat-input:focus {
    outline: none;
    border-color: #ff0000;
}

#chat-send {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #ff0000, #cc0000);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

#chat-send:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.4);
}

/* Level Indicator */
.level-indicator {
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 15px;
    margin-bottom: 10px;
    text-align: center;
    font-weight: bold;
}

.level-beginner {
    background: #4ecdc4;
    color: #000;
}

.level-intermediate {
    background: #ffd93d;
    color: #000;
}

.level-advanced {
    background: #ff0000;
    color: #fff;
}

.level-indicator.hidden {
    display: none;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }

    .container {
        padding: 10px;
    }

    .glass-card {
        padding: 20px;
    }

    #chat-bubble {
        width: calc(100% - 40px);
        right: 20px;
        left: 20px;
    }
}
