/*
 * CSS FORMULAIRE DE DEVIS - Copy-Media.net
 * 
 * Styles spécifiques pour la page devis et son formulaire progressif
 * Chargement conditionnel via CopyMedia_Asset_Manager
 * 
 * @package Copy_Media
 * @version 1.0.0
 * @author Copy-Media Dev Team
 * @since 2025-01-29
 */

/* ===================================
   PAGE DEVIS - ANIMATIONS SPÉCIALES
=================================== */

/* Nouvelle logique : animations immediate sur chargement page pour éléments "devis-immediate" */
.devis-immediate {
    opacity: 0;
    transform: translateY(-20px) scale(0.98);
    will-change: transform, opacity;
    animation: devisAppear 1.2s ease-out forwards;
}

.devis-immediate.completed {
    will-change: auto;
}

.devis-immediate[data-delay="0.1"] { animation-delay: 0.1s; }
.devis-immediate[data-delay="0.2"] { animation-delay: 0.2s; }
.devis-immediate[data-delay="0.3"] { animation-delay: 0.3s; }
.devis-immediate[data-delay="0.5"] { animation-delay: 0.5s; }
.devis-immediate[data-delay="0.7"] { animation-delay: 0.7s; }
.devis-immediate[data-delay="0.9"] { animation-delay: 0.9s; }

@keyframes devisAppear {
    0% {
        opacity: 0;
        transform: translateY(-20px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ===================================
   PAGE DEVIS - HEADER ÉLÉGANT
=================================== */

.devis-elegant-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

/* Badge d'ouverture moderne */
.opening-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: 
        radial-gradient(circle at 50% 50%, rgba(161, 13, 89, 0.03) 0%, transparent 60%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.98) 100%);
    color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(161, 13, 89, 0.15);
    margin-bottom: 1.5rem;
    box-shadow: 
        0 2px 8px rgba(161, 13, 89, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.opening-badge:hover {
    transform: translateY(-1px);
    box-shadow: 
        0 4px 16px rgba(161, 13, 89, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: pulse-subtle 2s ease-in-out infinite;
}

@keyframes pulse-subtle {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1); 
    }
    50% { 
        opacity: 0.7; 
        transform: scale(1.1); 
    }
}

.badge-text {
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* Titre et description élégants */
.elegant-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.elegant-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 3rem;
    font-weight: 400;
}

/* ===================================
   ÉLÉMENTS DE CONFIANCE
=================================== */

.trust-elements {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin: 3rem 0 4rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.6) 0%, rgba(255, 255, 255, 0.8) 100%);
    border-radius: 16px;
    border: 1px solid rgba(161, 13, 89, 0.08);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
}

.trust-item:hover {
    background: rgba(161, 13, 89, 0.05);
    transform: translateY(-1px);
}

.trust-item:hover .trust-icon {
    color: var(--secondary-color);
    transform: scale(1.1);
}

.trust-icon {
    width: 24px;
    height: 24px;
    color: var(--primary-color); /* Couleur Copy Media */
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.trust-separator {
    width: 1px;
    height: 24px;
    background: linear-gradient(to bottom, transparent, rgba(161, 13, 89, 0.2), transparent);
}

/* ===================================
   SECTION GARANTIES
=================================== */

.garantie-items {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.garantie-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    border: 1px solid rgba(161, 13, 89, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
}

.garantie-item:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(161, 13, 89, 0.02) 100%);
    border-color: rgba(161, 13, 89, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(161, 13, 89, 0.08);
}

.garantie-item svg {
    color: var(--primary-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.garantie-item:hover svg {
    color: var(--secondary-color);
    transform: scale(1.1);
}

.garantie-separator {
    width: 1px;
    height: 32px;
    background: linear-gradient(to bottom, transparent, rgba(161, 13, 89, 0.15), transparent);
}

/* ===================================
   CHAMPS FORMULAIRE - AIDES
=================================== */

.field-hint {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    font-style: italic;
    opacity: 0.8;
    line-height: 1.4;
}

.field-hint.error {
    color: var(--error-color, #ef4444);
    font-style: normal;
    font-weight: 500;
    opacity: 1;
}

.field-hint.success {
    color: var(--success-color, #22c55e);
    font-style: normal;
    font-weight: 500;
    opacity: 1;
}

/* ===================================
   MISE EN PAGE - ESPACEMENTS
=================================== */

/* Centrage section confiance */
.confiance-header.text-center {
    text-align: center;
}

.confiance-header.text-center .confiance-title,
.confiance-header.text-center .confiance-subtitle {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}







/* ===================================
   RESPONSIVE DESIGN
=================================== */

/* Tablette */
@media (max-width: 768px) {
    .elegant-title {
        font-size: 2rem;
    }
    
    .elegant-description {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .trust-elements {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .trust-separator {
        display: none;
    }
    
    .garantie-items {
        flex-direction: column;
        gap: 1rem;
    }
    
    .garantie-separator {
        display: none;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .devis-elegant-header {
        margin-bottom: 3rem;
    }
    
    .opening-badge {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .elegant-title {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    .elegant-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .trust-elements {
        margin: 2rem 0 3rem;
        padding: 1rem;
    }
    
    .trust-item {
        font-size: 0.85rem;
    }
    
    .garantie-item {
        font-size: 0.9rem;
        padding: 0.6rem 1rem;
    }
}

/* ===================================
   AMÉLIORATIONS SUPPLÉMENTAIRES
=================================== */

/* Amélioration badge avec micro-animation - SCOPED PAGE DEVIS */
.page-devis .opening-badge {
    position: relative;
    overflow: hidden;
}

.page-devis .opening-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.page-devis .opening-badge:hover::before {
    left: 100%;
}

/* Amélioration stats avec hover subtil - SCOPED PAGE DEVIS */
.page-devis .stat-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1rem;
    border-radius: 12px;
    cursor: default;
}

.page-devis .stat-item:hover {
    background: rgba(161, 13, 89, 0.03);
    transform: translateY(-2px);
}

.page-devis .stat-item:hover .stat-number {
    color: var(--primary-color);
    transform: scale(1.05);
}

/* ===================================
   OPTIMISATIONS PERFORMANCE
=================================== */

/* GPU acceleration pour animations - SCOPED PAGE DEVIS */
.page-devis .opening-badge,
.page-devis .trust-item,
.page-devis .garantie-item,
.page-devis .stat-item {
    transform: translateZ(0);
    will-change: transform;
}



/* Préchargement hover states - SCOPED PAGE DEVIS */
.page-devis .trust-item,
.page-devis .garantie-item,
.page-devis .stat-item {
    backface-visibility: hidden;
    perspective: 1000px;
}
