/* ===================================
   Coach Virtuel IA - Styles Spécifiques
   =================================== */

/* Hero Section */
.coach-hero {
    padding: 150px 0 80px;
    background: #FFFFFF;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.coach-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;
    background-image: url('assets/images/IMG_82752.jpeg');
    background-size: 120%;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0.5;
    z-index: 0;
}

.coach-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.2) 40%,
            rgba(255, 255, 255, 0.5) 60%,
            rgba(255, 255, 255, 0.8) 80%,
            rgba(255, 255, 255, 1) 100%);
    z-index: 1;
    pointer-events: none;
}

.coach-hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-medium);
    font-weight: 500;
}

.feature-item svg {
    color: var(--primary-color);
}

/* Chat Demo Section */
.chat-demo {
    padding: 80px 0;
    background: white;
}

.chat-interface {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: grid;
    grid-template-columns: 300px 1fr;
    height: 700px;
}

/* Sidebar */
.chat-sidebar {
    background: var(--bg-light);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.sidebar-title {
    padding: 1.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-color);
}

.new-chat-btn {
    margin: 1rem;
    padding: 0.875rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.new-chat-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.chat-history {
    flex: 1;
    overflow-y: auto;
    padding: 0 1rem;
}

.chat-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.875rem;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 0.5rem;
}

.chat-item:hover {
    background: rgba(0, 168, 120, 0.05);
}

.chat-item.active {
    background: rgba(0, 168, 120, 0.1);
}

.chat-item-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.chat-item-content h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.chat-item-content p {
    font-size: 0.8rem;
    color: var(--text-light);
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
}

.user-profile {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.user-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
}

.user-info p {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Chat Main */
.chat-main {
    display: flex;
    flex-direction: column;
    background: white;
}

.chat-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header-info {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.coach-avatar {
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-header-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-medium);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #4CAF50;
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.chat-actions {
    display: flex;
    gap: 0.5rem;
}

.icon-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--bg-light);
    color: var(--text-medium);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.icon-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* Chat Messages */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    background: #FAFBFC;
}

.message {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}

.message-avatar.user {
    background: var(--text-medium);
}

.message-content {
    flex: 1;
    max-width: 70%;
}

.user-message .message-content {
    margin-left: auto;
}

.message-bubble {
    background: white;
    padding: 1rem 1.25rem;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.user-message .message-bubble {
    background: var(--primary-color);
    color: white;
}

.message-bubble p {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.message-bubble p:last-child {
    margin-bottom: 0;
}

.message-bubble ol,
.message-bubble ul {
    margin: 0.75rem 0;
    padding-left: 1.5rem;
}

.message-bubble li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.message-time {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-light);
}

/* Message Suggestions */
.message-suggestions {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
}

.suggestions-label {
    font-size: 0.9rem;
    color: var(--text-medium);
    margin-bottom: 1rem;
    font-weight: 500;
}

.suggestion-chip {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0.25rem;
    background: rgba(0, 168, 120, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(0, 168, 120, 0.2);
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.suggestion-chip:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Resource Card */
.resource-card {
    background: linear-gradient(135deg, #f0fdf9 0%, #e6f7f2 100%);
    border: 2px solid rgba(0, 168, 120, 0.2);
    border-radius: 12px;
    padding: 1.25rem;
}

.resource-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.resource-list {
    list-style: none;
    padding: 0;
}

.resource-list li {
    margin-bottom: 0.75rem;
}

.resource-list li:last-child {
    margin-bottom: 0;
}

.resource-list a {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

.resource-list a:hover {
    color: var(--primary-color);
}

/* Chat Input */
.chat-input-container {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    background: white;
}

.chat-input-wrapper {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    background: var(--bg-light);
    padding: 0.5rem;
    border-radius: 12px;
    margin-bottom: 0.5rem;
}

.chat-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    padding: 0.75rem;
    font-size: 1rem;
    color: var(--text-dark);
}

.send-btn {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.send-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.input-hint {
    font-size: 0.75rem;
    color: var(--text-light);
    text-align: center;
}

/* Journey Stages */
.journey-stages {
    padding: 80px 0;
    background: var(--bg-light);
}

.stages-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.stage-card {
    background: white;
    border-radius: 24px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    position: relative;
    transition: var(--transition-slow);
    border: 2px solid transparent;
    overflow: hidden;
}

.stage-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 168, 120, 0.05), transparent);
    transition: left 0.5s ease;
}

.stage-card:hover::before {
    left: 100%;
}

.stage-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 168, 120, 0.15);
    border-color: var(--primary-color);
}

.stage-card.featured {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf9 100%);
}

.stage-number {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 36px;
    height: 36px;
    background: rgba(0, 168, 120, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.stage-icon {
    width: 80px;
    height: 80px;
    background: rgba(0, 168, 120, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.stage-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.stage-description {
    color: var(--text-medium);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.stage-features {
    margin-bottom: 1.5rem;
}

.stage-features h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.stage-features ul {
    list-style: none;
    padding: 0;
}

.stage-features li {
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    position: relative;
    color: var(--text-medium);
    line-height: 1.6;
}

.stage-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}

.stage-example {
    background: var(--bg-light);
    padding: 1rem;
    border-radius: 10px;
    border-left: 3px solid var(--primary-color);
}

.example-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-medium);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.example-text {
    color: var(--text-dark);
    font-style: italic;
    line-height: 1.6;
}

/* How It Works */
.how-it-works {
    padding: 80px 0;
    background: white;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.work-step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.3rem;
    margin: 0 auto 1.5rem;
}

.step-icon {
    width: 100px;
    height: 100px;
    background: rgba(0, 168, 120, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    margin: 0 auto 1.5rem;
}

.step-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.step-description {
    color: var(--text-medium);
    line-height: 1.6;
}

/* Success Stories */
.success-stories {
    padding: 80px 0;
    background: var(--bg-light);
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.story-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    position: relative;
    transition: var(--transition);
}

.story-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.story-quote {
    font-size: 4rem;
    line-height: 1;
    color: var(--primary-color);
    opacity: 0.2;
    font-family: Georgia, serif;
    margin-bottom: -1rem;
}

.story-text {
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.story-author {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

.author-avatar {
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.author-info h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.author-info p {
    font-size: 0.9rem;
    color: var(--text-medium);
}

.story-result {
    background: rgba(0, 168, 120, 0.1);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.result-label {
    font-size: 0.85rem;
    color: var(--text-medium);
    font-weight: 500;
}

.result-value {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 700;
}

/* Responsive Design */
@media (max-width: 968px) {
    .chat-interface {
        grid-template-columns: 1fr;
        height: auto;
    }

    .chat-sidebar {
        display: none;
    }

    .stages-container,
    .works-grid,
    .stories-grid {
        grid-template-columns: 1fr;
    }

    .hero-features {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 640px) {
    .coach-hero {
        padding: 120px 0 60px;
    }

    .chat-interface {
        border-radius: 0;
        height: 600px;
    }

    .message-content {
        max-width: 85%;
    }
}