/**
 * Styles pour l'affichage des détails Premium dans les annonces publiques
 * Version: 2.6.2
 */

/* Conteneur pour bon_plan + détails Premium sur la même ligne */
.top-info-line {
    margin: 5px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 10px;
    align-items: center;
    background: #f8f9fa;
    padding: 8px;
    border-radius: 8px;
}

/* Section détails Premium à côté du bon_plan */
.details-premium-container {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}

/* Champs numériques (chambres, salles de bain, superficie) */
.detail-item {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 4px 8px;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border: 1px solid #e0e0e0;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
    color: #333;
    transition: all 0.3s ease;
}

.detail-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-color: #FFD700;
}

.detail-item i {
    font-style: normal;
    font-size: 16px;
}

/* Badge Premium optionnel */
.badge-premium {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #fff;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(255, 215, 0, 0.3);
}

/* Les icônes sont maintenant dans top-info-line */

/* Icône de groupe cliquable */
.groupe-icon {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
}

.groupe-icon:hover {
    transform: scale(1.15) rotate(5deg);
    border-color: #FFD700;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.groupe-icon.active {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border-color: #FFD700;
    transform: scale(1.1);
}

/* Badge compteur sur l'icône */
.groupe-icon .count-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ddd;
    color: black;
    font-size: 9px;
    font-weight: bold;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

/* Liste des équipements (accordéon) */
.equipements-liste {
    display: none;
    margin: 0 0 10px 0;
    padding: 12px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    animation: slideDown 0.3s ease-out;
}

.equipements-liste.show {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.equipements-liste h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.equipements-liste ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.equipements-liste li {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: #f0f0f0;
    border-radius: 12px;
    font-size: 12px;
    color: #555;
    transition: all 0.2s ease;
}

.equipements-liste li:hover {
    background: #e0e0e0;
    transform: translateX(3px);
}

.equipements-liste li::before {
    content: "✓";
    margin-right: 5px;
    color: #27ae60;
    font-weight: bold;
}

/* Bouton fermer */
.close-equipements {
    float: right;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    color: #999;
    font-weight: 300;
    transition: color 0.2s ease;
}

.close-equipements:hover {
    color: #e74c3c;
}

/* Styles spécifiques pour le dashboard pro */
.dashboard-pro .top-info-line {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 10px;
    align-items: center;
}

.dashboard-pro .detail-item {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 4px 8px;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border: 1px solid #e0e0e0;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
    color: #333;
    transition: all 0.3s ease;
}

.dashboard-pro .groupe-icon {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
}

.dashboard-pro .equipements-liste {
    display: none;
    margin: 0 0 10px 0;
    padding: 12px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    animation: slideDown 0.3s ease-out;
}

.dashboard-pro .equipements-liste.show {
    display: block;
}

/* Styles pour la carte publicitaire */
.pub-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px;
}

.pub-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    backdrop-filter: blur(2px);
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.pub-close:hover {
    background: rgba(0, 0, 0, 0.65);
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.pub-close:active {
    transform: scale(0.98);
}

.pub-close:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.pub-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.pub-background {
    position: relative;
    min-height: 300px;
    background: linear-gradient(135deg, 
        #2c3e50 0%, 
        #34495e 50%, 
        #2c3e50 100%);
    background-size: 200% 200%;
    animation: shimmer 6s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    overflow: hidden;
}

.pub-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(255, 255, 255, 0.05) 0%, 
        rgba(255, 255, 255, 0.15) 25%,
        rgba(255, 255, 255, 0.05) 50%,
        rgba(255, 255, 255, 0.1) 75%,
        rgba(255, 255, 255, 0.05) 100%);
    background-size: 300% 300%;
    animation: sparkle 4s ease-in-out infinite;
    opacity: 0.9;
}

@keyframes shimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes sparkle {
    0% { 
        background-position: 0% 0%;
        opacity: 0.6;
    }
    25% { 
        background-position: 100% 0%;
        opacity: 0.9;
    }
    50% { 
        background-position: 100% 100%;
        opacity: 0.7;
    }
    75% { 
        background-position: 0% 100%;
        opacity: 0.8;
    }
    100% { 
        background-position: 0% 0%;
        opacity: 0.6;
    }
}

.pub-content {
    position: relative;
    z-index: 2;
    text-align: left;
    color: white;
    max-width: 100%;
}

.pub-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 15px 0;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.pub-description {
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 25px 0;
    opacity: 0.95;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-align: left;
}

.pub-text {
    margin: 0 0 20px 0;
    padding: 0;
    text-align: left;
}

.pub-cta {
    background: #007bff;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    width: auto;
    min-width: 200px;
    white-space: nowrap;
    display: inline-block;
}

.pub-cta:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.pub-cta:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 123, 255, 0.3);
}

/* Styles pour les citations */
.pub-text em {
    font-style: italic;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    line-height: 1.6;
    display: block;
    margin: 0;
    text-align: left;
}

.pub-description blockquote {
    position: relative;
    margin: 20px 0;
    padding: 20px 25px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-left: 6px solid #FFD700;
    border-radius: 12px;
    font-style: italic;
    font-size: 16px;
    line-height: 1.8;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(15px);
    transform: translateY(-2px);
    transition: all 0.3s ease;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
}

.pub-description blockquote:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
    border-left-color: #FFA500;
}

.pub-description blockquote::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 15px;
    font-size: 80px;
    color: rgba(255, 215, 0, 0.4);
    font-family: 'Times New Roman', serif;
    line-height: 1;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.pub-description blockquote::after {
    content: '" - Apocalypse 3:20';
    position: absolute;
    bottom: -25px;
    right: 15px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Segoe UI', sans-serif;
    font-style: normal;
    font-weight: 400;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.pub-description blockquote em {
    font-style: italic;
    color: #fff;
    font-weight: 500;
    font-size: 16px;
    display: block;
    position: relative;
    z-index: 2;
}

/* Styles spécifiques pour la citation biblique - Style sobre */
.bible-quote {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-left: 4px solid #3498db !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
    position: relative;
    overflow: visible;
    font-size: 15px;
    line-height: 1.7;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
    margin: 20px 0;
    padding: 20px 25px;
}

.bible-quote::before {
    content: '»';
    position: absolute;
    top: 15px;
    left: -8px;
    font-size: 32px;
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Times New Roman', serif;
    font-weight: normal;
    line-height: 1;
}

.bible-quote::after {
    content: '';
    display: none;
}

.bible-quote em {
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 400 !important;
    font-style: italic !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

/* Responsive mobile */
@media (max-width: 768px) {
    .detail-item {
        font-size: 11px;
        padding: 8px 6px;
        gap: 2px;
    }
    
    .detail-item i {
        font-size: 12px;
    }
    
    .groupe-icon {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    
    .groupe-icon .count-badge {
        width: 15px;
        height: 15px;
        font-size: 8px;
        top: -3px;
        right: -3px;
    }
    
    .equipements-liste {
        padding: 10px;
    }
    
    .equipements-liste h4 {
        font-size: 13px;
    }
    
    .equipements-liste li {
        font-size: 11px;
        padding: 3px 8px;
    }
    
    /* Responsive pour la pub */
    .pub-background {
        min-height: 250px;
        padding: 20px 15px;
    }
    
    .pub-close {
        top: 6px;
        right: 6px;
        width: 28px;
        height: 28px;
        font-size: 18px;
    }
    
    .pub-title {
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .pub-description {
        font-size: 13px;
        margin-bottom: 20px;
        text-align: left;
    }
    
    .pub-text {
        text-align: left;
        margin: 0 0 15px 0;
    }
    
    .pub-cta {
        padding: 10px 20px;
        font-size: 13px;
        width: 100%;
        max-width: 100%;
        display: block;
        text-align: center;
    }
    
    /* Responsive pour les citations */
    .pub-description blockquote {
        margin: 15px 0;
        padding: 15px 20px;
        font-size: 14px;
        line-height: 1.6;
    }
    
    .pub-description blockquote::before,
    .pub-description blockquote::after {
        font-size: 40px;
    }
    
    .pub-description blockquote::before {
        top: -3px;
        left: 8px;
    }
    
    .pub-description blockquote::after {
        bottom: -10px;
        right: 8px;
    }
    
    /* Responsive pour la citation biblique */
    .bible-quote {
        margin: 20px 0 !important;
        padding: 20px 25px !important;
        font-size: 14px !important;
    }
    
    .bible-quote::before {
        top: 12px;
        left: -6px;
        font-size: 24px;
    }
    
    .bible-quote::after {
        display: none;
    }
}

