/**
 * PulseMyHome - Styles CSS principaux
 * Version: 1.0
 * Inclut: Palette couleurs, animations, overlay jour/nuit
 */


html {
    scroll-behavior: smooth;
}

/* ============================================================
   PALETTE COULEURS
   ============================================================ --color-deep: #333366;*/
:root {
/*     --color-primary: #b2ecfe; */
/*     --color-primary: #2563eb; */

    --color-primary: #5096f8;
    --color-primary-hover: #9de3fd;
    --color-success: #65c999;
    --color-success-light: #bcec6f;
    --color-warning: #f69038;
    --color-alert: #fed937;
    --color-danger: #ee4031;
    --color-neutral: #d8d481;
    --color-deep: #111827;

}




.bg-primary { background-color: var(--color-primary); }
.hover-primary:hover { background-color: var(--color-primary-hover); }
.bg-success { background-color: var(--color-success); }
.bg-success-light { background-color: var(--color-success-light); }
.bg-warning { background-color: var(--color-warning); }
.bg-deep { background-color: var(--color-deep); }
.text-success { color: var(--color-success); }
.text-primary { color: var(--color-primary); }
.border-primary { border-color: var(--color-primary); }



/* Recherche header */
.search-container-header {
    position: relative;
}

.search-input-header:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(178, 236, 254, 0.2);
}

/* Responsive mobile */
@media (max-width: 640px) {
    .search-container-header {
        max-width: 180px;
    }
}


/* ============================================================
   GRID OVERLAY SUBTIL
   ============================================================ */
.grid-overlay {
    background-image:
        linear-gradient(rgba(178, 236, 254, 0.3) 1px, transparent 1px),
        linear-gradient(90deg, rgba(178, 236, 254, 0.3) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Pulse badge */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.badge-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ============================================================
   JAUGE NOTE PULSE
   ============================================================ */
.gauge-fill {
    background: linear-gradient(90deg,
        var(--color-success) 0%,
        var(--color-warning) 50%,
        var(--color-danger) 100%
    );
}

/* Jauge circulaire animée */
@keyframes fillCircle {
    from {
        stroke-dashoffset: 628;
    }
    to {
        stroke-dashoffset: calc(628 - (628 * var(--score) / 10));
    }
}

.score-circle {
    animation: fillCircle 1.5s ease-out forwards;
}

/* ============================================================
   CARDS PROFILS
   ============================================================ */
.profile-card {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.profile-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Effet hover général cards */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* ============================================================
   ACCORDÉON ANIMÉ
   ============================================================ */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.accordion-content.active {
    max-height: 2000px;
    transition: max-height 0.5s ease-in;
}

/* ============================================================
   OVERLAY JOUR/NUIT DYNAMIQUE
   ============================================================ */
.hero-overlay-dynamic {
    position: absolute;
    inset: 0;
    transition: background-color 2s ease, opacity 2s ease;
    pointer-events: none;
    z-index: 1;
}

.hero-section-main::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.45) 0%,   /* ← 0.65 → 0.45 */
    rgba(30, 41, 59, 0.35) 50%,  /* ← 0.55 → 0.35 */
    rgba(15, 23, 42, 0.50) 100%  /* ← 0.70 → 0.50 */
  );
}
/*
.hero-section-main::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.65) 0%,
    rgba(30, 41, 59, 0.55) 50%,
    rgba(15, 23, 42, 0.70) 100%
  );
}*/
.hero-section-main img {
  filter: blur(2px);  /* ← Juste assez pour "texturer" sans distraire */
}


/* Ambiances selon l'heure */
.overlay-dawn {
    background: radial-gradient(
        circle at top right,
        rgba(255, 179, 71, 0.08),
        transparent 70%
    );
}

.overlay-day {
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.03),
        transparent
    );
}

.overlay-dusk {
    background: radial-gradient(
        circle at top left,
        rgba(139, 92, 246, 0.12),
        transparent 70%
    );
}

.overlay-night {
    background: linear-gradient(
        135deg,
        rgba(31, 41, 55, 0.35),
        rgba(17, 24, 39, 0.25)
    );
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .hero-overlay-dynamic {
        /* Overlay plus discret sur mobile */
        opacity: 0.7;
    }
}

/* ============================================================
   UTILITAIRES
   ============================================================ */

/* Liens communes alternatives avec hover smooth */
.commune-link {
    transition: all 0.3s ease;
}

.commune-link:hover {
    transform: translateX(4px);
}

/* Z-index layers */
.z-overlay { z-index: 1; }
.z-content { z-index: 2; }
.z-header { z-index: 40; }
.z-modal { z-index: 50; }

/* Smooth scroll pour ancres */
html {
    scroll-behavior: smooth;
}

/* Focus visible pour accessibilité */
*:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}



/* ============================================================
   PROFESSIONAL GRADIENTS FOR CTA SECTIONS
   Added: 2026-01-15
   Purpose: Credible real estate platform aesthetics
   ============================================================ */

/* Main CTA backgrounds - Professional authority */
.bg-gradient-pro-dark {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #3730a3 100%);
}

.bg-gradient-pro-navy {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
}

.bg-gradient-pro-light {
    background: linear-gradient(135deg, #f1f5f9 0%, #ffffff 50%, #dbeafe 100%);
}

.bg-gradient-tech-modern {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 50%, #1f2937 100%);
}

/* Subtle decorative elements */
.bg-decoration-light {
    background: rgba(255, 255, 255, 0.3);
}

.bg-decoration-dark {
    background: rgba(0, 0, 0, 0.1);
}

/* Hover states for professional CTAs */
.bg-gradient-pro-dark:hover {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 50%, #4f46e5 100%);
}

/* Savings/opportunity message backgrounds */
.bg-opportunity {
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
}

.bg-opportunity-subtle {
    background: rgba(16, 185, 129, 0.1);
    border-left: 4px solid #10b981;
}

/* Info message backgrounds (non-DVF territories) */
.bg-info-professional {
    background: rgba(59, 130, 246, 0.1);
    border-left: 4px solid #3b82f6;
}

/* Card glassmorphism effects */
.card-glass-light {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border: 2px solid rgba(229, 231, 235, 1);
}

.card-glass-dark {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

/* Transition utilities */
.transition-gradient {
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover lift effect for cards */
.hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* Department exploration button gradient */
.btn-department-explore {
    background: linear-gradient(90deg, #ffffff 0%, #f9fafb 100%);
    color: #1f2937;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-department-explore:hover {
    background: linear-gradient(90deg, #f9fafb 0%, #f3f4f6 100%);
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Price comparison badges */
.badge-price-lower {
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    color: white;
}

.badge-price-higher {
    background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.badge-price-neutral {
    background: linear-gradient(90deg, #6b7280 0%, #4b5563 100%);
    color: white;
}

/* Professional footer gradient */
.footer-gradient-pro {
    background: linear-gradient(180deg, #1f2937 0%, #111827 100%);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .bg-gradient-pro-dark,
    .bg-gradient-pro-navy,
    .bg-gradient-tech-modern {
        /* Slightly lighter on mobile for readability */
        background: linear-gradient(135deg, #1e40af 0%, #2563eb 50%, #3730a3 100%);
    }
}

/* Accessibility - ensure text contrast */
.bg-gradient-pro-dark *,
.bg-gradient-pro-navy *,
.bg-gradient-tech-modern * {
    color: #ffffff;
}

.bg-gradient-pro-light * {
    color: #1f2937;
}

/* Animation for gradient reveal */
@keyframes gradientReveal {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-gradient-reveal {
    animation: gradientReveal 0.6s ease-out forwards;
}


/* Animation shake for validation error */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-4px); }
    20%, 40%, 60%, 80% { transform: translateX(4px); }
}

.animate-shake {
    animation: shake 0.5s ease-in-out;
}

/* Spinner animation for loading button */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.animate-spin {
    animation: spin 1s linear infinite;
}



/* ============================================================
   HEADER RESPONSIVE - MOBILE ADJUSTMENTS
   Added: 2026-01-21
   ============================================================ */

/* Mobile first: hide by default */
.pmh-logo-text {
    display: none !important;
}

.pmh-header-nav {
    display: none !important;
}

/* Show on desktop (640px = sm breakpoint) */
@media (min-width: 640px) {
    .pmh-logo-text {
        display: inline-block !important;
    }

    .pmh-header-nav {
        display: block !important;
    }
}
