/**
 * Styles principaux - Flip And Coin Animals
 * Layout général et structure
 */

.faca-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* HEADER */
.faca-header {
    text-align: center;
    margin-bottom: 40px;
}

.faca-title {
    font-size: 1.9rem;
    color: #2c3e50;
    margin-bottom: 10px;
    line-height: 1.3;
}

.faca-description {
    font-size: small;
    color: #7f8c8d;
    line-height: 1.6;
    max-width: 650px;
    margin: 0 auto;
}

/* ZONE DE SÉLECTION - Structure Mickey Mouse */
.faca-selection-area {
    position: relative;
    max-width: 600px;
    margin: 0 auto 30px;
}

/* CONTENEUR DES CERCLES (Oreilles) */
.faca-circles-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 80px;
    margin-bottom: -60px;
    position: relative;
    z-index: 2;
}

/* CERCLES ANIMAUX */
.faca-animal-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 5px solid white;
}

.faca-animal-circle:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

.faca-circle-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.faca-circle-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.faca-animal-circle:hover .faca-circle-overlay {
    opacity: 1;
}

.faca-circle-label {
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
    text-align: center;
}

/* EFFET DE CLIGNOTEMENT */
@keyframes faca-blink {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
        border-color: white;
    }
    50% {
        box-shadow: 0 0 30px 10px rgba(255, 215, 0, 0.8);
        border-color: #ffd700;
    }
}

.faca-animal-circle.blinking {
    animation: faca-blink 0.5s ease-in-out;
}

/* INDICATEUR DE SÉLECTION */
.faca-current-selection {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 30px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
}

.faca-selection-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.faca-selection-label {
    font-size: 0.85rem;
    color: #7f8c8d;
    font-weight: 600;
}

.faca-selection-value {
    font-size: 1.1rem;
    color: #2c3e50;
    font-weight: bold;
}

.faca-selection-vs {
    font-size: 1.5rem;
    font-weight: bold;
    color: #e74c3c;
}

/* ZONE DES STATISTIQUES */
.faca-stats-area {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.faca-stats-box {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.faca-stats-box:hover {
    transform: translateY(-5px);
}

.faca-stats-title {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ecf0f1;
}

.faca-stats-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faca-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.faca-stat-label {
    font-weight: 600;
    color: #34495e;
    font-size: 0.95rem;
}

.faca-stat-value {
    font-weight: bold;
    color: #e74c3c;
    font-size: 1rem;
}

/* BOUTONS GÉNÉRIQUES */
.faca-btn {
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: bold;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faca-btn-cancel {
    background: #95a5a6;
    color: white;
}

.faca-btn-cancel:hover {
    background: #7f8c8d;
}

.faca-btn-select {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
}

.faca-btn-select:hover {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
}

.faca-btn-close-result {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    padding: 15px 40px;
}

.faca-btn-close-result:hover {
    background: linear-gradient(135deg, #2980b9 0%, #3498db 100%);
}