/* --- CHARTE GRAPHIQUE GESTION DE CRISE (SELIM AKLIL) --- */
:root {
    --color-brand-orange: #FA8334;
    --color-brand-yellow: #F4B648;
    --color-brand-blue: #02008D;
    --color-brand-red: #DC2626;
    --color-brand-green: #10B981;
    --color-gray-50: #f9fafb;
    --color-gray-100: #f3f4f6;
    --color-gray-200: #e5e7eb;
    --color-gray-300: #d1d5db;
    --color-gray-400: #9ca3af;
    --color-gray-600: #374151;
    --color-gray-700: #1f2937;
    --color-gray-800: #111827;
    --color-gray-900: #030712;
    --font-inter: 'Inter', sans-serif;
}

body { font-family: var(--font-inter); }

/* --- TABS HANDLING --- */
.tab-content { display: none; opacity: 0; transition: opacity 0.3s ease-in-out; }
.tab-content.active { display: block; opacity: 1; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in { animation: fadeIn 0.3s ease-out forwards; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

/* --- THERMOMETER COMPONENT --- */
.thermometer-container {
    position: relative;
    width: 100%;
    max-width: 120px;
    margin: 0 auto;
}

.thermo-bar {
    position: relative;
    height: 300px;
    width: 20px;
    background: #e5e7eb;
    border-radius: 999px;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.1);
    margin: 0 auto;
}

.thermo-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20%;
    background: #10B981;
    border-radius: 999px;
    transition: height 0.5s ease, background-color 0.5s ease;
}

.thermo-bulb {
    width: 44px;
    height: 44px;
    background: #10B981;
    border-radius: 50%;
    margin: -10px auto 0 auto;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    position: relative;
    z-index: 10;
    border: 4px solid white;
    transition: background-color 0.5s ease;
}

/* --- ACCELERATOR DOMINOES --- */
.domino-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.domino-card:hover {
    transform: translateY(-8px) rotate(1deg);
    box-shadow: 0 12px 20px -5px rgba(0,0,0,0.1), 0 8px 8px -5px rgba(0,0,0,0.04);
}

/* --- FLIP CARDS (10 REFLEXES) --- */
.flip-card {
    background-color: transparent;
    perspective: 1000px;
    cursor: pointer;
    height: 180px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
    overflow: hidden;
}

.flip-card-front {
    background-color: white;
    color: var(--color-gray-900);
    border: 1px solid var(--color-gray-200);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
}

.flip-card-back {
    background-color: var(--color-brand-blue);
    color: white;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
}

/* --- INTERACTIVE COMMENT SORTING GAME --- */
.game-card-container {
    position: relative;
    min-height: 200px;
    perspective: 1000px;
}

.comment-card {
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.comment-card.correct-anim {
    animation: correctFlash 0.5s ease-out;
}

.comment-card.incorrect-anim {
    animation: incorrectFlash 0.5s ease-out;
}

@keyframes correctFlash {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); background-color: #ecfdf5; border-color: #10b981; }
    100% { transform: scale(1); }
}

@keyframes incorrectFlash {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); background-color: #fef2f2; border-color: #ef4444; }
    100% { transform: scale(1); }
}

.action-btn {
    transition: all 0.2s ease;
}

.action-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.action-btn:active:not(:disabled) {
    transform: translateY(0);
}
