/* ============================================================
 * Onboarding Wizard - Sprint T1-1
 * Variables couleur cercle via data-circle-color sur .onboarding-page
 * ============================================================ */

/* Stepper */
.onboarding-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0 1rem;
}

.stepper-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 1;
}

.stepper-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #dee2e6;
    background: white;
    color: #adb5bd;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.stepper-item.active .stepper-circle {
    color: white;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transform: scale(1.1);
}

.stepper-item.done .stepper-circle {
    color: white;
    border-color: transparent;
}

.stepper-label {
    font-size: 0.75rem;
    color: #6c757d;
    text-align: center;
    max-width: 80px;
    white-space: nowrap;
}

.stepper-item.active .stepper-label {
    font-weight: 600;
    color: #212529;
}

.stepper-line {
    flex: 1;
    height: 2px;
    background: #dee2e6;
    margin: 0 -4px;
    margin-bottom: 1.5rem;
    transition: background 0.3s ease;
}

/* Step cards */
.onboarding-step .card {
    border-radius: 12px;
    overflow: hidden;
}

.onboarding-step .card-body {
    animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Role badge */
.onboarding-role-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Photo upload */
.photo-upload-zone {
    position: relative;
    display: inline-block;
    cursor: pointer;
    border-radius: 50%;
    overflow: visible;
}

.photo-upload-zone img {
    object-fit: cover;
    border: 3px solid #e9ecef;
    transition: border-color 0.3s ease;
}

.photo-upload-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-upload-zone:hover .photo-upload-overlay {
    opacity: 1;
}

.photo-upload-zone:hover img {
    border-color: #6366f1;
}

.photo-upload-zone.drag-over img {
    border-color: #22c55e;
    border-style: dashed;
}

/* Competence chips */
.competence-chip {
    border-radius: 50px;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.competence-chip.selected {
    color: white !important;
    border-color: transparent !important;
}

.competence-chip:not(.selected):hover {
    transform: translateY(-1px);
}

.selected-competence {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.85rem;
    color: white;
}

.selected-competence .remove-competence {
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.selected-competence .remove-competence:hover {
    opacity: 1;
}

.min-height-60 {
    min-height: 60px;
}

/* Onboarding Carousel */
.onboarding-carousel {
    max-width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.onboarding-carousel .carousel-item img {
    height: 220px;
    object-fit: cover;
}

.carousel-caption-custom {
    position: absolute;
    bottom: 28px;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    padding: 1.5rem 1rem 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.onboarding-carousel .carousel-indicators {
    margin-bottom: 0.25rem;
    z-index: 3;
}

.onboarding-carousel .carousel-indicators button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    opacity: 0.5;
}

.onboarding-carousel .carousel-indicators button.active {
    opacity: 1;
}

.onboarding-carousel .carousel-control-prev,
.onboarding-carousel .carousel-control-next {
    width: 10%;
    opacity: 0;
    transition: opacity 0.3s;
}

.onboarding-carousel:hover .carousel-control-prev,
.onboarding-carousel:hover .carousel-control-next {
    opacity: 0.8;
}

/* Plumes Explainer */
.plumes-explainer {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 12px;
    padding: 1rem 1.25rem;
}

.plumes-explainer-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.plumes-use-card {
    background: white;
    border-radius: 8px;
    padding: 0.5rem 0.25rem;
    border: 1px solid #fde68a;
}

.plumes-use-card i {
    font-size: 1.1rem;
}

.plumes-use-card small.text-muted {
    font-size: 0.7rem;
    line-height: 1.2;
}

/* Hobby chips */
.hobby-chip {
    border-radius: 50px;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.hobby-chip.selected {
    color: white !important;
    border-color: transparent !important;
}

.hobby-chip:not(.selected):hover {
    transform: translateY(-1px);
}

.selected-hobby {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.85rem;
    color: white;
}

.selected-hobby .remove-hobby {
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.selected-hobby .remove-hobby:hover {
    opacity: 1;
}

/* Hobby category filter buttons */
.hobby-cat-btn {
    border-radius: 50px;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.hobby-cat-btn.active {
    color: white !important;
    border-color: transparent !important;
}

.hobby-cat-btn.recommended {
    font-weight: 600;
}

/* Suggested profiles */
.suggested-profile {
    transition: all 0.2s ease;
}

.suggested-profile:hover {
    background: #f8f9fa;
    transform: translateX(4px);
}

.suggested-profile img {
    object-fit: cover;
}

/* Discovery CTAs */
.discovery-cta {
    transition: all 0.2s ease;
    font-size: 0.85rem;
}

.discovery-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Plumes counter (fixed bottom right) */
.plumes-counter {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.3s ease;
}

.plumes-counter.bump {
    animation: plumeBump 0.5s ease;
}

@keyframes plumeBump {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* Plumes reward badge (inline) */
.plumes-reward-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 50px;
    color: #92400e;
    font-size: 0.85rem;
    font-weight: 600;
}

/* First action forms */
#firstActionContainer .form-control,
#firstActionContainer .form-select {
    border-radius: 8px;
}

#firstActionContainer .form-label {
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .onboarding-stepper {
        padding: 0;
    }

    .stepper-circle {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }

    .stepper-label {
        font-size: 0.65rem;
    }

    .onboarding-step .card-body {
        padding: 1.25rem !important;
    }

    .plumes-counter {
        bottom: 1rem;
        right: 1rem;
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }

    .discovery-cta {
        font-size: 0.8rem;
    }

    .photo-upload-zone img,
    .photo-upload-overlay {
        width: 100px;
        height: 100px;
    }

    .onboarding-carousel .carousel-item img {
        height: 160px;
    }

    .carousel-caption-custom {
        font-size: 0.8rem;
        padding: 1rem 0.75rem 0.5rem;
    }

    .plumes-use-card small.text-muted {
        font-size: 0.65rem;
    }
}

@media (max-width: 480px) {
    .stepper-circle {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }

    .onboarding-role-badge {
        font-size: 0.8rem;
    }
}
