/**
 * ASSETS.CSS
 * Images inline, avatars, placeholders et éléments visuels
 * Remplace les images externes par du CSS pur
 */

/* ============================================
   PLACEHOLDERS IMMOBILIERS
   ============================================ */

/* Placeholder pour image de propriété */
.property-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.property-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1' opacity='0.1'%3E%3Cpath d='M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3Cpolyline points='9 22 9 12 15 12 15 22'/%3E%3C/svg%3E") repeat;
    opacity: 0.1;
}

.property-placeholder__icon {
    width: 64px;
    height: 64px;
    opacity: 0.3;
}

.property-placeholder__icon svg {
    width: 100%;
    height: 100%;
    color: white;
}

/* Variante maison */
.property-placeholder--maison {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

/* Variante appartement */
.property-placeholder--appartement {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* Variation terrain */
.property-placeholder--terrain {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

/* Avatar placeholder */
.avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 18px;
}

/* Avatar avec initiales */
.avatar-placeholder__initials {
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   ICÔNES SVG INLINE (remplace les fichiers externes)
   ============================================ */

/* Logo immobilier */
.immo-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.immo-logo__icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(26, 54, 93, 0.3);
}

.immo-logo__icon svg {
    width: 28px;
    height: 28px;
    color: white;
}

.immo-logo__text {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   BACKGROUND PATTERNS
   ============================================ */

/* Pattern de fond pour sections */
.bg-pattern {
    background-color: #f8fafc;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23e2e8f0' fill-opacity='0.15'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Pattern de points */
.bg-dots {
    background-image: radial-gradient(circle, #d1d5db 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Pattern de lignes */
.bg-lines {
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(0, 0, 0, 0.03) 10px,
        rgba(0, 0, 0, 0.03) 20px
    );
}

/* ============================================
   CARTES AVEC DESIGN AMÉLIORÉ
   ============================================ */

/* Card premium avec glassmorphism */
.card--premium {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.card--premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
}

/* Carte avec effet de brillance */
.card--shine {
    position: relative;
    overflow: hidden;
}

.card--shine::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg);
    transition: transform 0.6s;
}

.card--shine:hover::after {
    transform: rotate(30deg) translate(50%, 50%);
}

/* ============================================
   BADGES ET LABELS AMÉLIORÉS
   ============================================ */

/* Badge avec effet 3D */
.badge--3d {
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Badge animé (pulse) */
.badge--pulse {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 8px rgba(59, 130, 246, 0);
    }
}

/* Badge nouveauté */
.badge--new {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    font-weight: 600;
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* ============================================
   BOUTONS AVEC EFFETS VISUELS
   ============================================ */

/* Bouton avec dégradé */
.btn--gradient {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(49, 130, 206, 0.3);
    position: relative;
    overflow: hidden;
}

.btn--gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s;
}

.btn--gradient:hover::before {
    left: 100%;
}

/* Bouton avec icône */
.btn--icon-left {
    padding-left: 12px;
}

.btn--icon-left svg {
    margin-right: 8px;
}

.btn--icon-right {
    padding-right: 12px;
}

.btn--icon-right svg {
    margin-left: 8px;
}

/* ============================================
   SÉPARATEURS VISUELS
   ============================================ */

.divider {
    height: 1px;
    background: linear-gradient(
        to right,
        transparent,
        var(--color-border),
        transparent
    );
    margin: var(--spacing-8) 0;
}

.divider--thick {
    height: 2px;
}

.divider--dashed {
    background: none;
    border-top: 1px dashed var(--color-border);
}

/* Titre de section avec décor */
.section__title--decorated {
    position: relative;
    display: inline-block;
}

.section__title--decorated::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    border-radius: 2px;
}

/* ============================================
   IMAGES HERO/HEADER
   ============================================ */

/* Header hero avec overlay */
.hero-with-overlay {
    position: relative;
}

.hero-with-overlay::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
    pointer-events: none;
}

/* ============================================
   LOADING SKELETONS AMÉLIORÉS
   ============================================ */

.skeleton-card {
    background: linear-gradient(
        90deg,
        #f0f0f0 25%,
        #e0e0e0 50%,
        #f0f0f0 75%
    );
    background-size: 200% 100%;
    animation: skeletonLoading 1.5s ease-in-out infinite;
    border-radius: var(--radius-lg);
}

@keyframes skeletonLoading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton--image {
    aspect-ratio: 4 / 3;
}

.skeleton--title {
    height: 32px;
    width: 70%;
    margin-bottom: 16px;
}

.skeleton--text {
    height: 16px;
    margin-bottom: 8px;
}

.skeleton--text:last-child {
    width: 50%;
}

/* ============================================
   VISUAL ELEMENTS
   ============================================ */

/* Icône de stat avec fond circulaire */
.stat-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-accent-lighter) 0%, white 100%);
    box-shadow: 0 4px 15px rgba(49, 130, 206, 0.2);
}

.stat-icon svg {
    width: 32px;
    height: 32px;
    color: var(--color-accent);
}

/* Feature icon box */
.feature-icon-box {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 20px;
    margin: 0 auto var(--spacing-4);
    position: relative;
}

.feature-icon-box::before {
    content: '';
    position: absolute;
    inset: 2px;
    background: white;
    border-radius: 18px;
    z-index: 1;
}

.feature-icon-box svg {
    position: relative;
    z-index: 2;
    width: 36px;
    height: 36px;
    color: var(--color-accent);
}

/* ============================================
   GRADIENT TEXT
   ============================================ */

.text-gradient {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient--gold {
    background: linear-gradient(135deg, #f6ad55 0%, #ed8936 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   SOCIAL ICONS
   ============================================ */

.social-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    transition: all var(--transition-base) var(--ease-out);
}

.social-icon:hover {
    background-color: white;
    color: var(--color-primary);
    transform: translateY(-4px);
}

.social-icon svg {
    width: 20px;
    height: 20px;
}
