/**
 * Améliorations UX pour La Marbrerie
 * Ce fichier complète les styles existants sans les modifier
 * Dernière mise à jour : Février 2026
 */

/* ===== En-tête amélioré ===== */
.pq-header-contact a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.pq-header-contact a:hover {
    color: #b8935d;
}

.pq-header-contact i {
    color: #b8935d;
}

.pq-header-social {
    font-size: 14px;
}

.pq-header-social a {
    display: inline-block;
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    border-radius: 50%;
    background: #f5f5f5;
    color: #333;
    margin-left: 8px;
    transition: all 0.3s ease;
}

.pq-header-social a:hover {
    background: #b8935d;
    color: #fff;
    transform: translateY(-3px);
}

/* ===== Amélioration de l'accessibilité ===== */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #b8935d;
    outline-offset: 2px;
}

/* Skip link pour l'accessibilité */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #000;
    color: #fff;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 100000;
}

.skip-link:focus {
    top: 0;
}

/* ===== Boutons d'appel à l'action améliorés ===== */
.pq-button {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pq-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.pq-button:hover::before {
    width: 300px;
    height: 300px;
}

/* ===== Indicateur de chargement ===== */
#pq-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.98);
}

/* ===== Scroll fluide ===== */
html {
    scroll-behavior: smooth;
}

/* ===== Amélioration des formulaires ===== */
input:required:valid,
textarea:required:valid,
select:required:valid {
    border-color: #4CAF50;
}

input:required:invalid:not(:placeholder-shown),
textarea:required:invalid:not(:placeholder-shown),
select:required:invalid:not(:placeholder-shown) {
    border-color: #f44336;
}

.form-control,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="search"],
textarea,
select {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="search"]:focus,
textarea:focus,
select:focus {
    box-shadow: 0 0 0 0.2rem rgba(184, 147, 93, 0.25);
}

/* ===== Cartes produits améliorées ===== */
.pq-blog-post {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.pq-blog-post:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.pq-post-media {
    overflow: hidden;
    position: relative;
}

.pq-post-media img {
    transition: transform 0.5s ease;
}

.pq-blog-post:hover .pq-post-media img {
    transform: scale(1.08);
}

/* Badge "Nouveau" pour les produits */
.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #b8935d;
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    z-index: 10;
}

/* ===== Fil d'Ariane amélioré ===== */
.breadcrumb {
    background: transparent;
    padding: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    font-size: 18px;
    color: #b8935d;
}

.breadcrumb-item a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: #b8935d;
}

/* ===== Animations au scroll ===== */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Amélioration du footer ===== */
.pq-footer-top a {
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.pq-footer-top a:hover {
    padding-left: 5px;
    color: #b8935d;
}

/* ===== Message de succès/erreur ===== */
.alert-custom {
    position: fixed;
    top: 100px;
    right: 20px;
    min-width: 300px;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    animation: slideInRight 0.4s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.alert-success {
    background: #4CAF50;
    color: white;
}

.alert-error {
    background: #f44336;
    color: white;
}

/* ===== Indicateur de scroll ===== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #b8935d, #d4a76a);
    z-index: 99999;
    transition: width 0.2s ease;
}

/* ===== Bouton WhatsApp flottant ===== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    line-height: 60px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    cursor: pointer;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-float i {
    color: white;
}

/* ===== Amélioration responsive ===== */
@media (max-width: 768px) {
    .pq-header-contact,
    .pq-header-social {
        font-size: 12px;
    }
    
    .pq-header-social a {
        width: 28px;
        height: 28px;
        line-height: 28px;
        font-size: 12px;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        line-height: 50px;
        font-size: 24px;
        bottom: 20px;
        right: 20px;
    }
}

/* ===== Mode sombre (optionnel, si souhaité) ===== */
@media (prefers-color-scheme: dark) {
    /* Désactivé par défaut, à activer si nécessaire */
}

/* ===== Impression ===== */
@media print {
    .pq-header,
    .pq-footer,
    .whatsapp-float,
    #back-to-top,
    .pq-btn-container {
        display: none !important;
    }
}

