/**
 * Styles pour le nouveau profil yaaKa
 * Inspiré du design moderne de notification-settings.php
 */

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* === CONTENEUR PRINCIPAL === */
.profile-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    margin-top: 80px;
}

/* === HEADER PROFIL === */
.profile-header {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 0;
    margin-bottom: 20px;
    overflow: visible;
}

.profile-banner {
    width: 100%;
    min-height: 320px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-size: cover;
    background-position: center;
    border-radius: 8px 8px 0 0;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 0 30px;
    aspect-ratio: 2 / 1;
}

.profile-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, 
        rgba(0, 0, 0, 0.3) 0%, 
        transparent 25%, 
        transparent 75%, 
        rgba(0, 0, 0, 0.3) 100%);
    border-radius: 8px 8px 0 0;
    pointer-events: none;
    z-index: 1;
}

.profile-top-row {
    position: absolute;
    bottom: 0;
    left: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    transform: translateY(50%);
    z-index: 3;
}

.profile-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid #fff;
    background: #fff;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.profile-info {
    padding: 95px 30px 30px 30px;
}

.profile-details {
    flex: 1;
    min-width: 250px;
}

.profile-name {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #2A2C58;
}

.profile-username {
    font-size: 16px;
    color: #666;
    margin-bottom: 10px;
}

.profile-bio {
    font-size: 16px;
	font-weight:600;
    color: #2A2C58;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* === STATS === */
.bio-stats-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.profile-bio-wrapper {
    flex: 1;
}

.profile-bio {
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

.profile-stats {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

/* Desktop: bio à gauche, stats à droite */
@media (min-width: 769px) {
    .bio-stats-container {
        flex-direction: row;
        align-items: flex-start;
        gap: 40px;
    }
    
    .profile-bio-wrapper {
        flex: 1;
        min-width: 0;
        max-width: 50%;
        overflow: hidden;
    }
    
    .profile-stats {
        flex: 1;
        min-width: 0;
        max-width: 50%;
    }
}

.stat-item {
    text-align: center;
    min-width: 80px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #667eea;
    display: block;
}

.stat-label {
    font-size: clamp(0.30rem, 1.1vw, 0.8rem);
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
}

/* Desktop: stats alignés à droite */
@media (min-width: 769px) {
    .profile-stats {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 30px;
        justify-content: flex-end;
    }
    
    .stat-item {
        text-align: center;
        display: flex;
        flex-direction: column;
        min-width: auto;
    }
    
    .stat-value {
        order: 1;
    }
    
    .stat-label {
        order: 2;
    }
}

/* === BOUTON FOLLOW === */
.follow-btn {
    background: #667eea;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
	z-index:6;
	position: absolute;
    right: 20px;
    bottom: -20px;
}

.follow-btn .follow-icon {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1); /* Icône blanche */
}

.follow-btn:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.follow-btn.following {
    background: #10b981;
    color: #fff;
    border: none;
}

/* === BOUTON PARTAGE === */
.share-profile-btn {
    background: #bbbdf7;
    border: none;
    padding: 10px;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 6;
    position: absolute;
    right: 10px;
    top: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.share-profile-btn:hover {
    background: #fff;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.share-profile-btn svg {
    stroke: #667eea;
}

.follow-btn.following:hover {
    background: #059669;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

/* === NAVIGATION ONGLETS === */
.tabs-navigation {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 0;
    margin-bottom: 20px;
    overflow: hidden;
}

.tabs-list {
    display: flex;
    list-style: none;
    border-bottom: 2px solid #f0f0f0;
}

.tab-item {
    flex: 1;
    text-align: center;
}

.tab-link {
    display: block;
    padding: 18px 20px;
    text-decoration: none;
    color: #666;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    cursor: pointer;
}

.tab-link:hover {
    color: #667eea;
    background: #f8f9ff;
}

.tab-link.active {
    color: #667eea;
    border-bottom-color: #667eea;
    background: #f8f9ff;
}

.tab-count {
    display: inline-block;
    background: #f3f4f6;
    color: #666;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 8px;
}

.tab-link.active .tab-count {
    background: #667eea;
    color: #fff;
}

/* Couleurs spécifiques par onglet */
/* Cartes - Violet */
.tab-link[data-tab="all"] .tab-count {
    background: #f3e8ff;
    color: #a064e0;
}

.tab-link[data-tab="all"]:hover {
    color: #a064e0;
    background: #f3e8ff;
}

.tab-link[data-tab="all"].active {
    color: #a064e0;
    border-bottom-color: #a064e0;
    background: #f3e8ff;
}

.tab-link[data-tab="all"]:hover .tab-count,
.tab-link[data-tab="all"].active .tab-count {
    background: #a064e0;
    color: #fff;
}

/* Vidéos - Bleu */
.tab-link[data-tab="videos"] .tab-count {
    background: #dbeafe;
    color: #3b82f6;
}

.tab-link[data-tab="videos"]:hover {
    color: #3b82f6;
    background: #eff6ff;
}

.tab-link[data-tab="videos"].active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
}

.tab-link[data-tab="videos"]:hover .tab-count,
.tab-link[data-tab="videos"].active .tab-count {
    background: #3b82f6;
    color: #fff;
}

/* Repostées - Rouge */
.tab-link[data-tab="shared"] .tab-count {
    background: #fee2e2;
    color: #ef4444;
}

.tab-link[data-tab="shared"]:hover {
    color: #ef4444;
    background: #fef2f2;
}

.tab-link[data-tab="shared"].active {
    color: #ef4444;
    border-bottom-color: #ef4444;
}

.tab-link[data-tab="shared"]:hover .tab-count,
.tab-link[data-tab="shared"].active .tab-count {
    background: #ef4444;
    color: #fff;
}

/* Avis - Orange */
.tab-link[data-tab="reviews"] .tab-count {
    background: #fef3c7;
    color: #f59e0b;
}

.tab-link[data-tab="reviews"]:hover {
    color: #f59e0b;
    background: #fffbeb;
}

.tab-link[data-tab="reviews"].active {
    color: #f59e0b;
    border-bottom-color: #f59e0b;
}

.tab-link[data-tab="reviews"]:hover .tab-count,
.tab-link[data-tab="reviews"].active .tab-count {
    background: #f59e0b;
    color: #fff;
}

/* === GRILLE DE CARTES === */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

/* === CARTE STANDARD === */
.card-item {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.card-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.card-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.card-content {
    padding: 15px;
}

.card-text {
    font-size: 14px;
    color: #444;
    line-height: 1.5;
    margin-bottom: 10px;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #999;
}

.card-date {
    color: #999;
}

.card-stats {
    display: flex;
    gap: 15px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* === GRILLE IMAGES === */
.images-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.image-item {
    position: relative;
    aspect-ratio: 2 / 1;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.image-item:hover {
    transform: scale(1.05);
}

.image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* === GRILLE VIDÉOS === */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.video-item {
    position: relative;
    background: #fff;
    border-radius: 12px;
    cursor: pointer;
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(102, 126, 234, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.video-item:hover .video-play-overlay {
    background: rgba(102, 126, 234, 1);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-play-icon {
    width: 0;
    height: 0;
    border-left: 20px solid #fff;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    margin-left: 5px;
}

/* === CARTE PARTAGÉE === */
.shared-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 15px;
}

.shared-badge {
    background: #f0f3ff;
    color: #667eea;
    font-size: 12px;
    padding: 5px 12px;
    border-radius: 15px;
    display: inline-block;
    margin-bottom: 10px;
    font-weight: 600;
}

.original-author {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info {
    flex: 1;
}

.author-name {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
}

.author-username {
    font-size: 12px;
    color: #999;
}

/* === SECTION AVIS === */
.reviews-section {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 20px;
}

.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.reviews-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
}

.reviews-summary {
    display: flex;
    align-items: center;
    gap: 15px;
}

.avg-rating {
    font-size: 36px;
    font-weight: 700;
    color: #667eea;
}

.stars-display {
    display: flex;
    gap: 3px;
}

.star {
    font-size: 20px;
    color: #ddd;
}

.star.filled {
    color: #ffc107;
}

.rating-count {
    font-size: 14px;
    color: #999;
}

/* === FORMULAIRE AVIS === */
.review-form {
    background: #f8f9ff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.form-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.star-rating {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}

.star-btn {
    background: none;
    border: none;
    font-size: 32px;
    color: #ddd;
    cursor: pointer;
    transition: all 0.2s ease;
}

.star-btn:hover,
.star-btn.active {
    color: #ffc107;
    transform: scale(1.1);
}

.review-textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.review-textarea:focus {
    outline: none;
    border-color: #667eea;
}

.submit-review-btn {
    background: #667eea;
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.submit-review-btn:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.delete-review-btn {
    background: #fff;
    color: #dc3545;
    border: 2px solid #dc3545;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    margin-left: 10px;
}

.delete-review-btn:hover {
    background: #dc3545;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

/* === LISTE AVIS === */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-item {
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 20px;
}

.review-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.review-author {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}

.review-author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.review-author-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.review-author-name {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
}

.review-stars {
    display: flex;
    gap: 2px;
}

.review-date {
    font-size: 13px;
    color: #999;
}

.review-comment {
    font-size: 14px;
    color: #444;
    line-height: 1.6;
    margin-left: 62px;
    margin-top: 8px;
}

/* === RÉPONSE AUX AVIS === */
.review-response {
    margin-left: 0;
    margin-top: 30px;
    padding: 12px 15px;
    background: #f8f9ff;
    border-left: 3px solid #667eea;
    border-radius: 8px;
}

.review-response-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
}

.review-response-header strong {
    color: #667eea;
}

.review-response-date {
    color: #999;
    font-size: 12px;
}

.review-response-text {
    font-size: 14px;
    color: #444;
    line-height: 1.6;
    margin: 0;
}

.review-response-form {
    margin-left: 0;
    margin-top: 12px;
}

.toggle-response-btn {
    background: #fff;
    color: #667eea;
    border: 2px solid #667eea;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-response-btn:hover {
    background: #f8f9ff;
}

.response-form-container {
    margin-top: 12px;
}

.response-textarea {
    width: 100%;
    min-height: 80px;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.response-textarea:focus {
    outline: none;
    border-color: #667eea;
}

.response-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.submit-response-btn,
.delete-response-btn,
.cancel-response-btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.submit-response-btn {
    background: #667eea;
    color: #fff;
}

.submit-response-btn:hover {
    background: #5568d3;
}

.delete-response-btn {
    background: #fff;
    color: #dc3545;
    border: 2px solid #dc3545;
}

.delete-response-btn:hover {
    background: #dc3545;
    color: #fff;
}

.cancel-response-btn {
    background: #f0f0f0;
    color: #666;
}

.cancel-response-btn:hover {
    background: #e0e0e0;
}

/* === LIGHTBOX === */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    display: block;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.lightbox-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

/* === VIDEO MODAL === */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.video-modal.active {
    display: flex;
}

.video-modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (min-width: 768px) {
    .video-modal-content {
        width: 90%;
        height: auto;
        max-width: 1200px;
        aspect-ratio: 16 / 9;
    }
}

.video-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

@media (min-width: 768px) {
    .video-modal-close {
        top: -50px;
        right: 0;
        background: rgba(255, 255, 255, 0.2);
        width: 50px;
        height: 50px;
        font-size: 30px;
    }
}

.video-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.video-modal iframe {
    width: 100%;
    height: 100%;
    border: none;
}

@media (min-width: 768px) {
    .video-modal iframe {
        border-radius: 8px;
    }
}

/* === LOADER === */
.loader {
    display: flex;
    justify-content: center;
    padding: 40px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f0f0f0;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* === MESSAGE VIDE === */
.empty-message {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-message-icon {
    font-size: 64px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.empty-message-text {
    font-size: 18px;
    font-weight: 600;
}

/* === RESPONSIVE === */
@media (max-width: 1200px) {
    .cards-grid,
    .images-grid,
    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .profile-container {
        padding: 10px;
    }
    
    .profile-header {
        padding: 20px;
    }
    
    .profile-banner {
        min-height: 200px;
        margin-bottom: -40px;
        aspect-ratio: 2 / 1;
    }
    
    .profile-avatar {
        width: 100px;
        height: 100px;
    }
    
    .profile-name {
        font-size: 22px;
    }
    
    .profile-stats {
        gap: 15px;
    }
    
    .stat-value {
        font-size: 20px;
    }
    
    .tabs-list {
        flex-wrap: wrap;
    }
    
    .tab-item {
        flex: 1 1 50%;
    }
    
    .cards-grid,
    .images-grid,
    .videos-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .reviews-section {
        padding: 20px;
    }
    
    .lightbox-content {
        max-width: 95%;
    }
    
    .lightbox-close,
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .profile-info {
        padding: 0 15px;
    }
    
    .tab-link {
        padding: 15px 10px;
        font-size: 13px;
    }
    
    .tab-count {
        display: block;
        margin: 5px 0 0 0;
    }
    
    .reviews-summary {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* === NOTIFICATIONS (Popups) === */
.notifications-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    align-items: center;
}

.notification {
    background: #fff;
    border-radius: 8px;
    padding: 16px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 500px;
    width: auto;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: all;
}

.notification.show {
    opacity: 1;
    transform: scale(1);
}

.notification-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-weight: bold;
    flex-shrink: 0;
}

.notification-message {
    flex: 1;
    color: #333;
    font-size: 14px;
}

.notification-success {
    border-left: 4px solid #28a745;
}

.notification-success .notification-icon {
    background: #28a745;
    color: #fff;
}

.notification-error {
    border-left: 4px solid #dc3545;
}

.notification-error .notification-icon {
    background: #dc3545;
    color: #fff;
}

.notification-warning {
    border-left: 4px solid #ffc107;
}

.notification-warning .notification-icon {
    background: #ffc107;
    color: #333;
}

.notification-info {
    border-left: 4px solid #17a2b8;
}

.notification-info .notification-icon {
    background: #17a2b8;
    color: #fff;
}

/* Responsive notifications */
@media (max-width: 768px) {
    .notifications-container {
        top: 50%;
        left: 10px;
        right: 10px;
        transform: translate(0, -50%);
    }
    
    .notification {
        min-width: auto;
        max-width: 100%;
        width: 100%;
    }
}

/* === DIALOGUE DE CONFIRMATION === */
.confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.confirm-overlay.show {
    opacity: 1;
}

.confirm-dialog {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.confirm-dialog.show {
    transform: scale(1);
}

.confirm-message {
    font-size: 16px;
    color: #333;
    margin-bottom: 25px;
    text-align: center;
    line-height: 1.5;
}

.confirm-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.confirm-btn {
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.confirm-cancel {
    background: #f0f0f0;
    color: #666;
}

.confirm-cancel:hover {
    background: #e0e0e0;
}

.confirm-ok {
    background: #667eea;
    color: #fff;
}

.confirm-ok:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* === RESPONSIVE MOBILE === */
@media (max-width: 768px) {
    /* Supprimer padding et max-width du conteneur principal */
    .profile-container {
        padding: 0;
        margin: 0;
        max-width: 100%;
    }
    
    /* Header profil: full width, sans shadow ni border-radius */
    .profile-header {
        border-radius: 0;
        box-shadow: none;
        padding: 0;
        margin-bottom: 0;
    }
    
    /* Banner full width */
    .profile-banner {
        border-radius: 0;
        min-height: 180px;
        width: 100vw;
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
        padding: 0 15px;
        aspect-ratio: 2 / 1;
    }
    
    /* Top row avec avatar et bouton */
    .profile-top-row {
        left: 15px;
        right: 15px;
    }
    
    /* Avatar plus petit sur mobile */
    .profile-avatar {
        width: 100px;
        height: 100px;
        border-width: 3px;
    }
    
    /* Profile info */
    .profile-info {
        padding: 100px 15px 20px 15px;
    }
    
    /* Bouton follow sur mobile */
    .follow-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .profile-name {
        font-size: 22px;
    }
    
    .profile-bio {
        font-size: 14px;
    }
    
    /* Stats plus compactes */
    .bio-stats-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .profile-stats {
        gap: 15px;
        margin-bottom: 15px;
    }
    
    .stat-item {
        text-align: center;
    }
    
    .stat-value {
        font-size: 20px;
    }
    
    .stat-label {
        font-size: 11px;
    }
    
    /* Tabs navigation: full width, sans shadow */
    .tabs-navigation {
        border-radius: 0;
        box-shadow: none;
        margin-bottom: 20px;
    }
    
    /* Container des cartes avec padding latéral minimal */
    .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    
    /* Grille des cartes plus compacte */
    .cards-container {
        gap: 15px !important;
        padding: 15px 0 !important;
    }
}

/* === REVIEW EXPAND/COLLAPSE === */
.review-comment-wrapper {
    position: relative;
}

.review-text-collapsed {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.review-expand-btn {
    background: none;
    border: none;
    color: #667eea;
    cursor: pointer;
    font-size: 14px;
    padding: 5px 0;
    margin-top: -25px;
    text-decoration: none;
    font-weight: 500;
    float: right;
}

.review-expand-btn:hover {
    text-decoration: underline;
}
