/* ====================================================================
   PAPS CONTEXT SELECTOR - AFFICHAGE DU CONTEXTE DE SAISIE
   ==================================================================== */

.paps-context-selector {
    margin: 0 0 30px 0;
    padding: 0;
}

/* ============================================================================
   HEADER DU CONTEXTE
   ============================================================================ */

.paps-context-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 8px 8px 0 0;
    margin-bottom: 0;
}

.context-title {
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ============================================================================
   CONTEXTE ACTIF - CARDS
   ============================================================================ */

.paps-context-active {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 0 0 8px 8px;
    border: 2px solid #667eea;
    border-top: none;
}

@media (max-width: 768px) {
    .paps-context-active {
        grid-template-columns: 1fr;
    }
}

/* ============================================================================
   CONTEXT CARDS
   ============================================================================ */

.context-card {
    background: white;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.context-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.context-card.context-localisation {
    border-color: #2196f3;
}

.context-card.context-pap.active {
    border-color: #4caf50;
}

.context-card.context-pap.inactive {
    border-color: #ff9800;
    background: #fff8f0;
}

/* ============================================================================
   CARD HEADER
   ============================================================================ */

.context-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-bottom: 2px solid #e0e0e0;
}

.context-card.context-localisation .context-card-header {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
}

.context-card.context-pap.active .context-card-header {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
}

.context-card.context-pap.inactive .context-card-header {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
}

.context-card-header .context-icon {
    font-size: 20px;
}

.context-card-header .context-label {
    flex: 1;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 0.5px;
    color: #555;
}

/* ============================================================================
   CARD BODY
   ============================================================================ */

.context-card-body {
    padding: 15px;
}

.context-main {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
    line-height: 1.4;
}

.context-main.empty {
    color: #999;
    font-style: italic;
    font-weight: normal;
}

.context-secondary {
    font-size: 13px;
    color: #666;
    line-height: 1.3;
}

/* ============================================================================
   BOUTONS DE CHANGEMENT
   ============================================================================ */

.btn-context-change {
    background: white;
    border: 2px solid #2196f3;
    color: #2196f3;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-context-change:hover {
    background: #2196f3;
    color: white;
    transform: scale(1.05);
}

.context-card.context-pap.inactive .btn-context-change {
    border-color: #ff9800;
    color: #ff9800;
}

.context-card.context-pap.inactive .btn-context-change:hover {
    background: #ff9800;
    color: white;
}

/* ============================================================================
   ÉTAT VIDE
   ============================================================================ */

.paps-context-empty {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border: 2px solid #ff9800;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    color: #e65100;
}

.paps-context-empty .context-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 15px;
}

.paps-context-empty .context-text {
    font-size: 18px;
    font-weight: bold;
    display: block;
    margin-bottom: 20px;
}

.btn-context-action {
    background: #ff9800;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(255, 152, 0, 0.3);
}

.btn-context-action:hover {
    background: #f57c00;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(255, 152, 0, 0.4);
}

/* ============================================================================
   ANIMATIONS
   ============================================================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.paps-context-active {
    animation: fadeIn 0.4s ease;
}

.context-card {
    animation: fadeIn 0.5s ease;
}

.context-card:nth-child(1) {
    animation-delay: 0.1s;
}

.context-card:nth-child(2) {
    animation-delay: 0.2s;
}
