/* ============================================
   MPC COGNITIVE PROFILE ENHANCED CSS
   Version allégée - Transitions discrètes
   ============================================ */

/* Variables globales */
:root {
    --mpc-primary: #6d28d9;
    --mpc-secondary: #059669;
    --mpc-explorer: #7c3aed;
    --mpc-methodical: #059669;
    --mpc-practical: #f59e0b;
    --mpc-social: #ec4899;
    --mpc-analyst: #2563eb;
    --mpc-transition-fast: 0.15s ease;
    --mpc-transition-normal: 0.25s ease;
}

/* ============================================
   Header Page - Animation subtile
   ============================================ */
.acg-header {
    background: linear-gradient(135deg, var(--mpc-primary) 0%, #7c3aed 100%);
    position: relative;
}

.acg-header-icon {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.25);
}

/* ============================================
   Transitions des étapes - Version légère
   ============================================ */
.acg-step {
    display: none;
}

.acg-step.on {
    display: block;
    animation: mpc-fadeIn 0.3s ease-out;
}

@keyframes mpc-fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Dots de progression - Transition simple */
.acg-dot {
    transition: var(--mpc-transition-normal);
}

.acg-dot.on {
    transform: scale(1.1);
}

.acg-dot.done {
    background: #059669;
    border-color: #059669;
}

/* Barre de progression */
.acg-prog-fill {
    transition: width 0.4s ease;
}

/* ============================================
   Options du questionnaire - Feedback discret
   ============================================ */
.acg-opt-box {
    transition: border-color var(--mpc-transition-fast), 
                background var(--mpc-transition-fast),
                box-shadow var(--mpc-transition-fast);
}

.acg-opt:hover .acg-opt-box {
    border-color: #a5b4fc;
}

.acg-opt input:checked + .acg-opt-box {
    border-color: #7c3aed;
    background: linear-gradient(135deg, rgba(109,40,217, 0.08), rgba(124,58,237, 0.12));
    box-shadow: 0 0 0 3px rgba(109,40,217, 0.12);
}

.acg-opt-ico {
    transition: transform var(--mpc-transition-fast);
}

.acg-opt:hover .acg-opt-ico {
    transform: scale(1.05);
}

/* ============================================
   Slider
   ============================================ */
.acg-slider {
    transition: background var(--mpc-transition-fast);
}

.acg-slider::-webkit-slider-thumb {
    transition: transform var(--mpc-transition-fast);
}

.acg-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

/* ============================================
   Boutons de navigation
   ============================================ */
.acg-btn {
    transition: transform var(--mpc-transition-fast),
                box-shadow var(--mpc-transition-fast),
                opacity var(--mpc-transition-fast);
}

.acg-btn:hover:not(:disabled) {
    transform: translateY(-1px);
}

.acg-next:not(:disabled) {
    box-shadow: 0 4px 12px rgba(109,40,217, 0.3);
}

.acg-next:hover:not(:disabled) {
    box-shadow: 0 6px 16px rgba(109,40,217, 0.4);
}

/* ============================================
   Page de résultats
   ============================================ */
.acg-result {
    animation: mpc-fadeIn 0.4s ease-out;
}

.acg-avatar {
    transition: transform var(--mpc-transition-normal);
}

.acg-avatar:hover {
    transform: scale(1.05);
}

/* Scores - Transition simple */
.acg-score {
    transition: background var(--mpc-transition-fast);
}

.acg-score:hover {
    background: #f1f5f9;
}

.acg-bar-fill {
    transition: width 0.8s ease-out;
}

/* Cards - Pas d'animation au chargement, juste au survol */
.acg-card {
    transition: transform var(--mpc-transition-fast),
                box-shadow var(--mpc-transition-fast);
}

.acg-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* ============================================
   Bouton Refaire le test - CORRIGÉ
   ============================================ */
.acg-retake {
    transition: all var(--mpc-transition-normal);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.acg-retake::before {
    content: '↻';
    display: inline-block;
}

.acg-retake:hover {
    border-color: var(--color);
    color: var(--color);
    transform: translateY(-1px);
}

.acg-retake:hover::before {
    animation: mpc-rotate 0.5s ease;
}

@keyframes mpc-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ============================================
   Bouton Comprendre mon profil (fiche)
   ============================================ */
.acg-sheet-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 10px 18px;
    background: linear-gradient(135deg, var(--color, #7c3aed) 0%, color-mix(in srgb, var(--color, #7c3aed) 80%, #000) 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.acg-sheet-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    color: white;
    text-decoration: none;
}

.acg-sheet-btn:active {
    transform: translateY(0);
}

.acg-sheet-btn-icon {
    font-size: 16px;
}

/* ============================================
   Graphique Radar
   ============================================ */
#acgRadar {
    animation: mpc-fadeIn 0.5s ease-out;
}

/* ============================================
   Focus states accessibles
   ============================================ */
.acg-opt input:focus-visible + .acg-opt-box,
.acg-btn:focus-visible,
.acg-retake:focus-visible,
.acg-dot:focus-visible {
    outline: 2px solid var(--mpc-primary);
    outline-offset: 2px;
}

/* ============================================
   États de chargement
   ============================================ */
.acg-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

/* ============================================
   Responsive - Pas d'animations sur mobile
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Performances sur mobile */
@media (max-width: 768px) {
    .acg-card:hover,
    .acg-score:hover {
        transform: none;
    }
}
