/* Styles personnalisés optimisés pour le site immobilier avec Tailwind CSS */
@tailwind base;
@tailwind components;
@tailwind utilities;

/* Variables CSS personnalisées pour maintenir la compatibilité */
:root {
    --primary-color: #FB9A57;
    --success-color: #00d97e;
    --warning-color: #f6c343;
    --danger-color: #e63757;
    --light-color: #f9fbfd;
    --dark-color: #12263f;
    --gray-color: #95aac9;
        --orange-primary: #F78C40;
            --purple-primary: #5D3E90;
            --dark-blue: #23233C;
            --orange-light: #FFA366;
            --purple-light: #7A5BA8;

}

/* Styles personnalisés pour les composants spécifiques */
@layer components {
    .score-excellent {
        @apply bg-green-500 text-white rounded-full w-20 h-20 flex items-center justify-center font-bold text-[1.2rem];
    }
    .score-good {
        @apply bg-blue-500 text-white rounded-full w-20 h-20 flex items-center justify-center font-bold text-[1.2rem];
    }
    .score-average {
        @apply bg-yellow-500 text-white rounded-full w-20 h-20 flex items-center justify-center font-bold text-[1.2rem];
    }
    .score-poor {
        @apply bg-red-500 text-white rounded-full w-20 h-20 flex items-center justify-center font-bold text-[1.2rem];
    }
    .length-good {
        @apply text-green-600;
    }
    .length-warning {
        @apply text-yellow-600;
    }
    .length-poor {
        @apply text-red-600;
    }
    .property-info-item {
        @apply flex-1 min-w-[200px] m-1 bg-gray-50 p-3 rounded-lg border border-gray-200;
    }
    .property-info-label {
        @apply text-sm text-purple-500 mb-1 font-medium;
    }
    .property-info-value {
        @apply font-bold text-gray-800;
    }
    /* Ajoute ici les autres classes custom avec @apply si besoin */
}


/* Classes de score avec couleurs - IMPORTANT */
.score-excellent {
    background-color: #10b981 !important;
    color: white !important;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.score-good {
    background-color: #3b82f6 !important;
    color: white !important;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.score-average {
    background-color: #f59e0b !important;
    color: white !important;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.score-poor {
    background-color: #ef4444 !important;
    color: white !important;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Classes de longueur pour les méta-données */
.length-good {
    color: #10b981 !important;
}

.length-warning {
    color: #f59e0b !important;
}

.length-poor {
    color: #ef4444 !important;
}

/* Styles pour les informations de propriété avec arrière-plan */
.property-info-item {
    flex: 1;
    min-width: 200px;
    margin: 4px;
    background-color: #f9fafb;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.property-info-label {
    font-size: 0.875rem;
    color: #8b5cf6;
    margin-bottom: 4px;
    font-weight: 500;
}

.property-info-value {
    font-weight: bold;
    color: #1f2937;
}

/* Styles pour les onglets - IMPORTANT */
.tabs {
    display: flex;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 24px;
}

.tab {
    padding: 12px 24px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #6b7280;
}

.tab:hover {
    border-bottom-color: #d1d5db;
    color: #374151;
}

.tab.active {
    box-shadow: 0 4px 6px -1px rgba(139, 92, 246, 0.1);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block !important;
}

/* Styles pour les listes de recommandations */
.recommendations-list {
    margin-top: 16px;
}

.recommendations-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 8px;
    padding-left: 16px;
    position: relative;
}

.recommendations-list li:before {
    content: "•";
    color: #8b5cf6;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Galerie d'images */
.photo-gallery {
    margin-bottom: 24px;
}

.main-photo {
    position: relative;
    margin-bottom: 16px;
}

.main-photo img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 8px;
}

.photo-count {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
}

.thumbnail-strip {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.thumbnail {
    flex-shrink: 0;
}

.thumbnail img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.thumbnail img:hover {
    opacity: 0.8;
}

/* Suggestions de mots-clés */
.suggestions-container {
    margin-top: 16px;
}

.main-keyphrase {
    margin-bottom: 24px;
}

.keyphrase-box {
    background-color: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 16px;
    font-weight: 500;
    color: #374151;
}

.keyphrase-list {
    margin-top: 12px;
}

.keyphrase-list li {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
}

.keyphrase {
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 4px;
}

.explanation {
    font-size: 0.875rem;
    color: #6b7280;
}

/* Suggestions meta */
.meta-suggestions-container {
    margin-top: 16px;
}

.meta-suggestions-list {
    margin-top: 16px;
}

.meta-suggestions-list li {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.meta-content {
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 8px;
}

.meta-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

.meta-explanation {
    color: #6b7280;
}

.meta-length {
    font-weight: 500;
}

/* Optimisations pour les graphiques */
#weatherChart {
    max-width: 100%;
    height: 256px;
}

#weather-description {
    color: #374151;
    margin-bottom: 16px;
}

/* Couleurs pour les indicateurs */
.text-green-600 {
    color: #10b981 !important;
}

.text-red-600 {
    color: #ef4444 !important;
}

.text-yellow-600 {
    color: #f59e0b !important;
}

.gradient-bg {
background: linear-gradient(135deg, #3d0094 0%, #672dc6 100%);
}


                .btn-orange {
            background: linear-gradient(135deg, var(--orange-primary) 0%, var(--orange-light) 100%);
            color: white;
            border: none;
            transition: all 0.3s ease;
        }
        
        .btn-orange:hover {
            transform: translateY(-1px);
            box-shadow: 0 10px 20px rgba(247, 140, 64, 0.3);
            color: white;
        }
               .glass-effect {
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .gauge-container {
    position: relative;
    width: 300px;
    height: 200px;
    margin: 0 auto 2rem auto;
}
.gauge-value {
    position: absolute;
    top: 65%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
}
.gauge-score {
    font-size: 2.5rem;
    font-weight: bold;
    color: #1f2937;
    margin: 0;
}
.gauge-label {
    font-size: 1rem;
    color: #6b7280;
    margin: 5px 0 0 0;
}
        