/* ================================
   RENOV PRESTIGE - Améliorations Modernes
   Design Ultra-Moderne 2024
   ================================ */

/* ===== AMÉLIORATIONS GLOBALES ===== */

/* Scrollbar personnalisée moderne */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #1e40af 0%, #c2905f 100%);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #1e3a8a 0%, #b8874f 100%);
}

/* Sélection de texte personnalisée */
::selection {
    background: #1e40af;
    color: white;
}

::-moz-selection {
    background: #1e40af;
    color: white;
}

/* ===== EFFETS GLASSMORPHISM MODERNES ===== */

.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ===== HEADER AMÉLIORÉ ===== */

header {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1) !important;
    border-bottom: 1px solid rgba(30, 64, 175, 0.1);
}

header.scrolled {
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15) !important;
}

/* Logo amélioré */
.logo {
    font-weight: 800 !important;
    background: linear-gradient(135deg, #1e40af 0%, #c2905f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    transition: all 0.3s ease;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(135deg, #1e40af 0%, #c2905f 100%);
    transition: width 0.3s ease;
}

.logo:hover::after {
    width: 100%;
}

/* ===== BOUTONS ULTRA-MODERNES ===== */

.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1) !important;
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.3) !important;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.4) !important;
}

.btn:active {
    transform: translateY(-1px) scale(0.98) !important;
}

.btn-primary {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%) !important;
    position: relative;
    z-index: 1;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    opacity: 0;
    transition: opacity 0.4s;
    z-index: -1;
    border-radius: inherit;
}

.btn-primary:hover::after {
    opacity: 1;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 2px solid #1e40af !important;
    color: #1e40af !important;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: #1e40af !important;
    color: white !important;
    border-color: #1e40af !important;
}

/* ===== HERO SECTION ULTRA-MODERNE ===== */

.hero {
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(194, 144, 95, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(30, 64, 175, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(30px, -30px) scale(1.1);
    }
}

.hero-title {
    position: relative;
    animation: slideInUp 0.8s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gradient-text {
    background: linear-gradient(135deg, #1e40af 0%, #c2905f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

.gradient-text::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #1e40af 0%, #c2905f 100%);
    border-radius: 2px;
    animation: expand 1.5s ease-out;
}

@keyframes expand {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

/* ===== CARDS MODERNES AVEC EFFET 3D ===== */

.service-card,
.why-feature,
.process-card,
.testimonial-card {
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1) !important;
    position: relative;
    background: white !important;
}

.service-card::before,
.why-feature::before,
.process-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.05) 0%, rgba(194, 144, 95, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s;
    border-radius: inherit;
    z-index: 0;
}

.service-card:hover::before,
.why-feature:hover::before,
.process-card:hover::before {
    opacity: 1;
}

.service-card:hover,
.why-feature:hover,
.process-card:hover {
    transform: translateY(-12px) scale(1.02) !important;
    box-shadow: 0 20px 40px rgba(30, 64, 175, 0.2) !important;
}

.service-card * {
    position: relative;
    z-index: 1;
}

/* Correction : L'icône doit rester en absolute pour ne pas pousser l'image */
.service-card .service-icon {
    position: absolute !important;
    top: 20px;
    right: 20px;
    z-index: 10;
}

/* Icônes avec gradient animé */
.service-icon i,
.why-feature-icon i,
.process-icon i {
    background: linear-gradient(135deg, #1e40af 0%, #c2905f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s;
}

.service-card:hover .service-icon i,
.why-feature:hover .why-feature-icon i,
.process-card:hover .process-icon i {
    transform: scale(1.2) rotate(5deg);
}

/* ===== SECTION TÉMOIGNAGES ULTRA-MODERNE ===== */

.testimonials {
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(30, 64, 175, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(194, 144, 95, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.testimonial-card {
    background: white !important;
    border-radius: 20px !important;
    padding: 35px !important;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.320, 1) !important;
    border: 2px solid transparent;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #1e40af, #c2905f, #1e40af);
    border-radius: 20px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s;
}

.testimonial-card:hover::before {
    opacity: 1;
}

.testimonial-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.02) 0%, rgba(194, 144, 95, 0.02) 100%);
    border-radius: 18px;
    z-index: 0;
}

.testimonial-card:hover {
    transform: translateY(-10px) scale(1.03) !important;
    box-shadow: 0 25px 50px rgba(30, 64, 175, 0.25) !important;
}

.testimonial-card * {
    position: relative;
    z-index: 1;
}

/* Icône de citation moderne */
.testimonial-icon {
    width: 60px !important;
    height: 60px !important;
    background: linear-gradient(135deg, #1e40af 0%, #c2905f 100%) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 20px !important;
    box-shadow: 0 10px 25px rgba(30, 64, 175, 0.3) !important;
    transition: all 0.4s !important;
}

.testimonial-card:hover .testimonial-icon {
    transform: rotate(15deg) scale(1.1);
    box-shadow: 0 15px 35px rgba(30, 64, 175, 0.4) !important;
}

.testimonial-icon i {
    color: white !important;
    font-size: 24px !important;
}

/* Étoiles animées */
.testimonial-rating {
    display: flex !important;
    gap: 5px !important;
    margin-bottom: 20px !important;
}

.testimonial-rating i {
    color: #eab308 !important;
    font-size: 18px !important;
    transition: all 0.3s !important;
    filter: drop-shadow(0 2px 4px rgba(234, 179, 8, 0.3));
}

.testimonial-card:hover .testimonial-rating i {
    transform: scale(1.2);
    animation: starBounce 0.6s ease-in-out;
}

.testimonial-card:hover .testimonial-rating i:nth-child(1) {
    animation-delay: 0s;
}

.testimonial-card:hover .testimonial-rating i:nth-child(2) {
    animation-delay: 0.1s;
}

.testimonial-card:hover .testimonial-rating i:nth-child(3) {
    animation-delay: 0.2s;
}

.testimonial-card:hover .testimonial-rating i:nth-child(4) {
    animation-delay: 0.3s;
}

.testimonial-card:hover .testimonial-rating i:nth-child(5) {
    animation-delay: 0.4s;
}

@keyframes starBounce {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3) rotate(10deg);
    }
}

/* Texte du témoignage */
.testimonial-text {
    font-size: 16px !important;
    line-height: 1.8 !important;
    color: #4b5563 !important;
    margin-bottom: 25px !important;
    font-style: italic !important;
    position: relative !important;
    padding-left: 20px !important;
}

.testimonial-text::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -5px;
    font-size: 40px;
    color: #1e40af;
    opacity: 0.2;
    font-family: Georgia, serif;
}

/* Avatar auteur moderne */
.testimonial-author {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    padding-top: 20px !important;
    border-top: 2px solid rgba(30, 64, 175, 0.1) !important;
}

.author-avatar {
    width: 55px !important;
    height: 55px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #1e40af 0%, #c2905f 100%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 700 !important;
    color: white !important;
    font-size: 18px !important;
    box-shadow: 0 5px 15px rgba(30, 64, 175, 0.3) !important;
    transition: all 0.3s !important;
    position: relative;
    overflow: hidden;
}

.author-avatar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #c2905f 0%, #1e40af 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.testimonial-card:hover .author-avatar {
    transform: scale(1.1) rotate(5deg);
}

.testimonial-card:hover .author-avatar::before {
    opacity: 1;
}

.author-avatar span {
    position: relative;
    z-index: 1;
}

.author-name {
    font-weight: 700 !important;
    color: #1f2937 !important;
    font-size: 16px !important;
    margin-bottom: 4px !important;
}

.author-project {
    font-size: 14px !important;
    color: #6b7280 !important;
    font-weight: 500 !important;
}

/* ===== STATISTIQUES MODERNES ===== */

.hero-stats {
    display: flex !important;
    gap: 40px !important;
    flex-wrap: wrap !important;
}

.stat-item {
    text-align: center !important;
    transition: all 0.3s !important;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-item .stat-number {
    font-size: 2.5rem !important;
    font-weight: 800 !important;
    background: linear-gradient(135deg, #1e40af 0%, #c2905f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px !important;
    display: block;
    animation: countUp 2s ease-out;
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== FOOTER MODERNE ===== */

footer {
    background: linear-gradient(135deg, #111827 0%, #1f2937 100%) !important;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #1e40af, #c2905f, transparent);
}

/* ===== WHATSAPP BUTTON AMÉLIORÉ ===== */

.whatsapp-float {
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4) !important;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1) !important;
    animation: pulse 2s infinite !important;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    }

    50% {
        box-shadow: 0 8px 35px rgba(37, 211, 102, 0.6);
    }
}

.whatsapp-float:hover {
    transform: scale(1.15) rotate(10deg) !important;
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.6) !important;
}

/* ===== SECTION BADGES MODERNES ===== */

.section-badge {
    display: inline-block !important;
    padding: 8px 20px !important;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.1) 0%, rgba(194, 144, 95, 0.1) 100%) !important;
    border: 2px solid rgba(30, 64, 175, 0.2) !important;
    border-radius: 50px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #1e40af !important;
    margin-bottom: 15px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    transition: all 0.3s !important;
}

.section-badge:hover {
    transform: translateY(-3px);
    border-color: #1e40af;
    box-shadow: 0 5px 15px rgba(30, 64, 175, 0.2);
}

/* ===== ANIMATIONS D'ENTRÉE ===== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== RESPONSIVE IMPROVEMENTS ===== */

@media (max-width: 768px) {
    .testimonial-card {
        padding: 25px !important;
    }

    .testimonial-icon {
        width: 50px !important;
        height: 50px !important;
    }

    .testimonial-icon i {
        font-size: 20px !important;
    }

    .author-avatar {
        width: 45px !important;
        height: 45px !important;
        font-size: 16px !important;
    }
}

/* ===== EFFETS DE CHARGEMENT ===== */

.loading-animation {
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

/* ===== MICRO-INTERACTIONS ===== */

.interactive-element {
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.interactive-element:active {
    transform: scale(0.95);
}

/* ===== EFFET PARALLAX SUBTIL ===== */

.parallax-light {
    transition: transform 0.3s ease-out;
}

.parallax-light:hover {
    transform: translateY(-5px);
}

/* ===== ACCESSIBILITÉ AMÉLIORÉE ===== */

*:focus-visible {
    outline: 3px solid #1e40af;
    outline-offset: 3px;
    border-radius: 4px;
}

/* ===== MODE DARK (Préparation future) ===== */

@media (prefers-color-scheme: dark) {
    /* Prêt pour mode sombre si nécessaire */
}