/**
 * Styles com_therapeutes — Somedin
 * Complète template.css pour les vues spécifiques au composant
 */

/* =============================================================================
   BARRE DE RECHERCHE
   ============================================================================= */

.search-banner {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
    color: var(--color-white);
    padding-block: var(--space-12) var(--space-10);
}

.search-banner__title {
    font-family: var(--font-serif);
    font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
    color: var(--color-white);
    margin-bottom: var(--space-3);
    text-align: center;
}

.search-banner__subtitle {
    font-size: var(--text-lg);
    color: rgba(255,255,255,0.85);
    text-align: center;
    margin-bottom: var(--space-8);
}

.search-form {
    background: var(--color-white);
    border-radius: var(--radius-2xl);
    padding: var(--space-6);
    box-shadow: var(--shadow-xl);
}

.search-form__row {
    display: grid;
    grid-template-columns: 1fr 220px 180px auto;
    gap: var(--space-4);
    align-items: end;
}

.search-form__field { display: flex; flex-direction: column; gap: var(--space-2); }
.search-form__field--wide { }

.search-form__input-wrap { position: relative; }

.search-form__icon {
    position: absolute;
    left: var(--space-3);
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-light);
    pointer-events: none;
}

.search-form__input {
    padding-left: calc(var(--space-3) + 20px + var(--space-2));
}

.search-form__actions {
    display: flex;
    gap: var(--space-2);
    align-items: center;
    flex-wrap: wrap;
}

.search-form__advanced {
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid var(--color-border-light);
}

/* =============================================================================
   RÉSULTATS
   ============================================================================= */

.therapeutes-results {
    padding-block: var(--space-8) var(--space-16);
}

.results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--color-border);
}

.results-count {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    font-weight: var(--font-weight-medium);
}

.therapeutes-grid {
    gap: var(--space-6);
}

/* =============================================================================
   FICHE PROFIL PUBLIQUE
   ============================================================================= */

.therapeute-profile__hero {
    background: linear-gradient(135deg, var(--color-bg-alt) 0%, var(--color-surface) 100%);
    border-bottom: 1px solid var(--color-border);
    padding-block: var(--space-10);
}

.therapeute-profile__header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: var(--space-8);
    align-items: start;
}

.therapeute-profile__photo-wrap { flex-shrink: 0; }

.therapeute-profile__photo {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--color-white);
    box-shadow: var(--shadow-lg);
}

.therapeute-profile__photo-placeholder {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: var(--color-surface);
    border: 4px solid var(--color-white);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-light);
}

.therapeute-profile__name {
    font-family: var(--font-serif);
    font-size: clamp(var(--text-2xl), 3vw, var(--text-3xl));
    margin-bottom: var(--space-2);
}

.therapeute-profile__cabinet {
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    margin-bottom: var(--space-3);
}

.therapeute-profile__categories,
.therapeute-profile__badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
}

.therapeute-profile__location,
.therapeute-profile__langues {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-2);
}

.therapeute-profile__location svg,
.therapeute-profile__langues svg { flex-shrink: 0; }

.therapeute-profile__actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    min-width: 220px;
}

.therapeute-profile__body {
    padding-block: var(--space-8);
}

/* Sections du profil */
.therapeute-section {
    margin-bottom: var(--space-12);
    padding-bottom: var(--space-10);
    border-bottom: 1px solid var(--color-border-light);
}

.therapeute-section:last-child { border-bottom: none; }

.therapeute-section__title {
    font-family: var(--font-serif);
    font-size: var(--text-2xl);
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-3);
    border-bottom: 2px solid var(--color-primary-50);
    color: var(--color-primary-dark);
}

/* Certifications */
.certifications-list { list-style: none; display: flex; flex-direction: column; gap: var(--space-4); }

.certification-item {
    padding: var(--space-5);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-bg-alt);
}

.certification-item__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    margin-bottom: var(--space-2);
}

/* Galerie */
.photos-gallery { gap: var(--space-4); }

.photo-item__img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

.photo-item__caption { margin-top: var(--space-2); }

/* Événements */
.evenements-list { display: flex; flex-direction: column; gap: var(--space-4); }

.evenement-item__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
}

.evenement-item__titre { font-size: var(--text-lg); margin: 0; }

/* Carte Leaflet */
.therapeute-map {
    height: 360px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--color-border);
    margin-bottom: var(--space-4);
    background: var(--color-surface);
}

.map-directions { margin-top: var(--space-3); }

/* =============================================================================
   DASHBOARD THÉRAPEUTE
   ============================================================================= */

.dashboard__header {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
    color: var(--color-white);
    padding-block: var(--space-8);
    margin-bottom: var(--space-8);
}

.dashboard__title {
    color: var(--color-white);
    font-size: var(--text-2xl);
    margin-bottom: var(--space-4);
}

/* Barre de complétion */
.profile-completion { max-width: 480px; }

.profile-completion__header {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-2);
    font-size: var(--text-sm);
    color: rgba(255,255,255,0.9);
}

.profile-completion__bar {
    height: 8px;
    background: rgba(255,255,255,0.25);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.profile-completion__fill {
    height: 100%;
    background: var(--color-accent);
    border-radius: var(--radius-full);
    transition: width 0.6s ease;
}

/* Navigation dashboard */
.dashboard__body {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: var(--space-8);
    align-items: start;
}

.dashboard-nav {
    position: sticky;
    top: calc(var(--header-height) + var(--header-top-height) + var(--space-4));
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.dashboard-nav__list { list-style: none; }

.dashboard-nav__link {
    display: block;
    padding: var(--space-3) var(--space-5);
    font-size: var(--text-sm);
    font-weight: var(--font-weight-medium);
    color: var(--color-text);
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.dashboard-nav__link:hover,
.dashboard-nav__link--active {
    background: var(--color-primary-50);
    color: var(--color-primary);
    border-left-color: var(--color-primary);
}

/* Cartes dashboard */
.dashboard-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: var(--space-6);
}

.dashboard-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-5) var(--space-6);
    border-bottom: 1px solid var(--color-border);
}

.dashboard-card__title { font-size: var(--text-lg); font-weight: var(--font-weight-semibold); }

.dashboard-card__body { padding: var(--space-6); }

/* Résumé profil */
.profile-summary {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-5);
}

.profile-summary__photo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-border);
}

/* Checklist de complétion */
.completion-checklist {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin-bottom: var(--space-5);
}

.completion-checklist__item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
}

.completion-checklist__item--done { color: var(--color-success); }
.completion-checklist__item--todo { color: var(--color-text-muted); }

/* =============================================================================
   WIZARD D'ONBOARDING
   ============================================================================= */

.onboarding__progress {
    background: var(--color-primary-dark);
    padding-block: var(--space-5);
}

.onboarding-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    list-style: none;
    counter-reset: step;
}

.onboarding-steps__item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: rgba(255,255,255,0.5);
    white-space: nowrap;
}

.onboarding-steps__item + .onboarding-steps__item::before {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background: rgba(255,255,255,0.2);
    margin-inline: var(--space-3);
    flex-shrink: 0;
}

.onboarding-steps__item--done  { color: rgba(255,255,255,0.7); }
.onboarding-steps__item--active { color: var(--color-white); font-weight: var(--font-weight-semibold); }

.onboarding-steps__num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: var(--text-sm);
    font-weight: var(--font-weight-bold);
    background: rgba(255,255,255,0.15);
    flex-shrink: 0;
    transition: background var(--transition-fast);
}

.onboarding-steps__item--done  .onboarding-steps__num { background: var(--color-success); }
.onboarding-steps__item--active .onboarding-steps__num { background: var(--color-white); color: var(--color-primary-dark); }

.onboarding__body { padding-block: var(--space-10); max-width: 700px; margin-inline: auto; }

.onboarding-form__inner {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    margin-bottom: var(--space-6);
}

.onboarding-form__title {
    font-family: var(--font-serif);
    font-size: var(--text-2xl);
    margin-bottom: var(--space-2);
}

.onboarding-form__nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}

.form-group--narrow { max-width: 120px; }

.checkbox-group { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.checkbox-group--grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); display: grid; }

/* Photo preview */
.photo-preview {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
    padding: var(--space-4);
    background: var(--color-bg-alt);
    border-radius: var(--radius-lg);
}

.photo-preview__img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-border);
}

/* Succès onboarding */
.onboarding-success {
    text-align: center;
    padding: var(--space-16);
}

.onboarding-success__icon { font-size: 4rem; margin-bottom: var(--space-4); }
.onboarding-success__title { font-family: var(--font-serif); font-size: var(--text-3xl); margin-bottom: var(--space-4); }
.onboarding-success__text { color: var(--color-text-muted); margin-bottom: var(--space-8); }
.onboarding-success__actions { display: flex; justify-content: center; }

/* =============================================================================
   RESPONSIVE
   ============================================================================= */

@media (max-width: 1024px) {
    .therapeute-profile__header { grid-template-columns: auto 1fr; }
    .therapeute-profile__actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
}

@media (max-width: 768px) {
    .search-form__row { grid-template-columns: 1fr; }

    .therapeute-profile__header { grid-template-columns: 1fr; text-align: center; }
    .therapeute-profile__photo-wrap { margin-inline: auto; }
    .therapeute-profile__categories,
    .therapeute-profile__badges,
    .therapeute-profile__location,
    .therapeute-profile__langues { justify-content: center; }
    .therapeute-profile__actions { flex-direction: column; }

    .dashboard__body { grid-template-columns: 1fr; }
    .dashboard-nav { position: static; }
    .dashboard-nav__list { display: flex; overflow-x: auto; }
    .dashboard-nav__link { border-left: none; border-bottom: 3px solid transparent; white-space: nowrap; }
    .dashboard-nav__link--active { border-bottom-color: var(--color-primary); }

    .form-row { grid-template-columns: 1fr; }
    .form-group--narrow { max-width: 100%; }

    .onboarding-steps__label { display: none; }
    .photos-gallery { grid-template-columns: repeat(2, 1fr); }
}
