/* ===============================
   LOCAL AUDIT - FORMULAIRE STYLES
   =============================== */

@keyframes avisionSpin { 
    0% { transform: rotate(0deg); } 
    100% { transform: rotate(360deg); } 
}

.avision-input { 
    width:100%; 
    padding:15px; 
    border:1px solid #e5e7eb; 
    border-radius:8px; 
    font-size:16px; 
    margin-bottom:20px; 
    background:#f9fafb; 
    transition:0.3s; 
}

.avision-input:focus { 
    border-color:#2563eb; 
    background:#fff; 
    outline:none; 
    box-shadow:0 0 0 3px rgba(37,99,235,0.1); 
}

.avision-btn { 
    width:100%; 
    background:#111827; 
    color:#fff; 
    border:none; 
    padding:18px; 
    border-radius:8px; 
    font-weight:700; 
    font-size:18px; 
    cursor:pointer; 
    transition:0.3s; 
}

.avision-btn:hover { 
    background:#000; 
    transform:translateY(-2px); 
    box-shadow:0 4px 12px rgba(0,0,0,0.15); 
}

.av-trust-box { 
    margin-top:25px; 
    text-align:left; 
    background:#f9fafb; 
    padding:15px; 
    border-radius:8px; 
    border:1px solid #f3f4f6; 
}

.av-trust-title { 
    font-weight:700; 
    color:#111827; 
    font-size:14px; 
    margin-bottom:10px; 
    display:block; 
}

.av-trust-list { 
    list-style:none; 
    padding:0; 
    margin:0; 
}

.av-trust-list li { 
    font-size:13px; 
    color:#4b5563; 
    margin-bottom:6px; 
    display:flex; 
    align-items:center; 
    gap:8px; 
}

/* ===============================
   LOCAL AUDIT - RAPPORT STYLES
   =============================== */

.av-container { 
    max-width:800px; 
    margin:40px auto; 
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; 
    color:#374151; 
}

.av-header { 
    text-align:center; 
    margin-bottom:40px; 
}

/* CERCLE SCORE (JAUGE) - Le background sera défini dynamiquement via inline style */
.av-score-circle { 
    width:130px; 
    height:130px; 
    border-radius:50%; 
    display:flex; 
    flex-direction:column; 
    align-items:center; 
    justify-content:center; 
    margin:0 auto 25px auto; 
    box-shadow:0 15px 35px rgba(0,0,0,0.1);
    position: relative;
}

.av-score-circle::before {
    content: "";
    position: absolute;
    top: 10px; 
    left: 10px; 
    right: 10px; 
    bottom: 10px;
    background: #fff;
    border-radius: 50%;
    z-index: 0;
}

.av-score-number { 
    font-size:42px; 
    font-weight:800; 
    margin-bottom:5px; 
    z-index:1; 
    position:relative; 
    line-height:1; 
}

.av-score-max { 
    font-size:14px; 
    color:#9ca3af; 
    font-weight:600; 
    z-index:1; 
    position:relative; 
}

.av-chat-row { 
    display: flex; 
    gap: 20px; 
    align-items: flex-start; 
    margin-bottom: 30px; 
}

.av-chat-avatar { 
    width: 50px; 
    height: 50px; 
    background: #fff; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 30px; 
    flex-shrink: 0; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.05); 
    border: 1px solid #e5e7eb; 
}

.av-bubble-intro { 
    background: #f0f9ff; 
    border: 1px solid #bae6fd; 
    border-radius: 0 16px 16px 16px; 
    padding: 20px; 
    font-size: 16px; 
    line-height: 1.6; 
    color: #0c4a6e; 
    position: relative; 
}

.av-quick-win-container { 
    margin-bottom: 40px; 
}

.av-quick-win-header { 
    margin-bottom: 15px; 
    padding-left: 70px; 
}

.av-quick-win-label { 
    font-size: 12px; 
    font-weight: 800; 
    color: #059669; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    margin-bottom: 5px; 
}

.av-quick-win-title { 
    font-size: 22px; 
    font-weight: 700; 
    color: #111827; 
    margin: 0; 
}

.av-bubble-win { 
    background: #ecfdf5; 
    border: 1px solid #6ee7b7; 
    border-radius: 0 16px 16px 16px; 
    padding: 25px; 
    color: #064e3b; 
    position: relative; 
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.05); 
}

.av-bubble-win::before, 
.av-bubble-intro::before { 
    content: ''; 
    position: absolute; 
    top: 0; 
    left: -10px; 
    width: 0; 
    height: 0; 
    border-top: 10px solid transparent; 
    border-bottom: 0 solid transparent; 
    border-right: 10px solid; 
}

.av-bubble-intro::before { 
    border-right-color: #bae6fd; 
}

.av-bubble-win::before { 
    border-right-color: #6ee7b7; 
}

.av-ps-box { 
    margin-top:25px; 
    background:#fffbeb; 
    border:2px dashed #f59e0b; 
    border-radius:12px; 
    padding:15px 20px; 
    display:flex; 
    gap:15px; 
    align-items:center; 
}

.av-ps-icon { 
    font-size:24px; 
    flex-shrink:0; 
}

.av-ps-text { 
    font-size:14px; 
    color:#92400e; 
    font-weight:500; 
    font-style:italic; 
    line-height:1.5; 
}

.av-card { 
    background:#fff; 
    border-radius:16px; 
    padding:35px; 
    box-shadow:0 4px 20px rgba(0,0,0,0.06); 
    margin-bottom:30px; 
    border:1px solid #f3f4f6; 
}

.av-blur-container { 
    position:relative; 
    overflow:hidden; 
    margin-top:40px; 
}

.av-blur-content { 
    filter: blur(3px); 
    opacity: 0.75; 
    pointer-events: none; 
    user-select: none; 
}

.av-unlock-overlay { 
    position:absolute; 
    top:0; 
    left:0; 
    width:100%; 
    height:100%; 
    display:flex; 
    flex-direction:column; 
    align-items:center; 
    justify-content:center; 
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 30%, #fff 100%); 
    z-index:10; 
    padding-top:20px; 
}

.av-unlock-box { 
    text-align:center; 
    max-width:450px; 
    padding:20px; 
}

.av-unlock-btn { 
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%); 
    color:#fff; 
    font-size:19px; 
    font-weight:700; 
    padding:18px 35px; 
    border-radius:50px; 
    border:none; 
    cursor:pointer; 
    box-shadow:0 15px 30px rgba(37,99,235,0.3); 
    transition:0.3s; 
    text-decoration:none; 
    display:inline-block; 
    margin:15px 0; 
}

.av-unlock-btn:hover { 
    transform:translateY(-3px); 
    box-shadow:0 20px 40px rgba(37,99,235,0.4); 
}

.av-trust-badges { 
    display:flex; 
    justify-content:center; 
    gap:15px; 
    font-size:13px; 
    color:#6b7280; 
    flex-wrap:wrap; 
}

.av-trust-item { 
    display:flex; 
    align-items:center; 
    gap:5px; 
}

.av-fake-line { 
    height:15px; 
    background:#e5e7eb; 
    margin-bottom:15px; 
    border-radius:4px; 
}

.w-100 { width:100%; } 
.w-80 { width:80%; } 
.w-60 { width:60%; }

.av-blink-icon { 
    animation: avBlink 1.5s infinite; 
}

@keyframes avBlink { 
    0% { opacity: 1; } 
    50% { opacity: 0.4; } 
    100% { opacity: 1; } 
}

/* CHATBOT WIDGET STYLES */
.av-chat-widget { 
    position:fixed; 
    bottom:20px; 
    right:20px; 
    z-index:9999; 
    font-family:sans-serif; 
}

.av-chat-btn { 
    width:60px; 
    height:60px; 
    background:#2563eb; 
    border-radius:50%; 
    box-shadow:0 5px 20px rgba(37,99,235,0.4); 
    display:flex; 
    align-items:center; 
    justify-content:center; 
    cursor:pointer; 
    transition:0.3s; 
    position:relative; 
    animation: avPulse 2s infinite; 
}

.av-chat-btn:hover { 
    transform:scale(1.1); 
}

@keyframes avPulse { 
    0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7); } 
    70% { box-shadow: 0 0 0 15px rgba(37, 99, 235, 0); } 
    100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); } 
}

.av-chat-icon { 
    font-size:30px; 
}

.av-chat-tooltip { 
    position:absolute; 
    right:70px; 
    background:#111827; 
    color:#fff; 
    padding:8px 12px; 
    border-radius:8px; 
    font-size:13px; 
    white-space:nowrap; 
    opacity:0; 
    transition:0.3s; 
    pointer-events:none; 
}

.av-chat-btn:hover .av-chat-tooltip { 
    opacity:1; 
    right:75px; 
}

.av-chat-window { 
    position:absolute; 
    bottom:80px; 
    right:0; 
    width:320px; 
    background:#fff; 
    border-radius:16px; 
    box-shadow:0 10px 40px rgba(0,0,0,0.15); 
    overflow:hidden; 
    display:none; 
    border:1px solid #e5e7eb; 
    transform-origin:bottom right; 
    animation:avChatPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
}

@keyframes avChatPop { 
    from { transform:scale(0.5); opacity:0; } 
    to { transform:scale(1); opacity:1; } 
}

.av-chat-header { 
    background:#111827; 
    color:#fff; 
    padding:15px; 
    display:flex; 
    align-items:center; 
    gap:10px; 
}

.av-chat-status { 
    width:10px; 
    height:10px; 
    background:#10b981; 
    border-radius:50%; 
}

.av-chat-body { 
    padding:20px; 
    background:#f9fafb; 
    height:250px; 
    overflow-y:auto; 
}

.av-chat-msg { 
    background:#fff; 
    padding:12px; 
    border-radius:12px 12px 12px 0; 
    box-shadow:0 2px 5px rgba(0,0,0,0.05); 
    font-size:14px; 
    color:#374151; 
    line-height:1.5; 
    border:1px solid #e5e7eb; 
}

.av-chat-input-area { 
    padding:15px; 
    border-top:1px solid #e5e7eb; 
    background:#fff; 
}

.av-chat-input { 
    width:100%; 
    padding:10px; 
    border:1px solid #e5e7eb; 
    border-radius:8px; 
    background:#f3f4f6; 
    cursor:not-allowed; 
    font-size:13px; 
}

/* SALES SECTION STYLES */
.av-sales-section { 
    margin-top: 30px; 
    border-top: 1px solid #e5e7eb; 
    padding-top: 30px; 
}

.av-comp-table { 
    width: 100%; 
    border-collapse: collapse; 
    margin: 30px 0; 
    background: #fff; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); 
    border-radius: 12px; 
    overflow: hidden; 
}

.av-comp-th { 
    padding: 20px; 
    text-align: center; 
    font-size: 18px; 
    color: #fff; 
    width: 50%; 
}

.av-comp-td { 
    padding: 15px 20px; 
    border-bottom: 1px solid #f3f4f6; 
    font-size: 15px; 
    color: #374151; 
}

.av-check { 
    color: #10b981; 
    font-weight: bold; 
    font-size: 18px; 
}

.av-cross { 
    color: #ef4444; 
    font-weight: bold; 
    font-size: 18px; 
}

/* DEMO CHAT BOX */
.av-demo-chat-box { 
    background: #f8fafc; 
    border: 1px solid #e2e8f0; 
    border-radius: 12px; 
    padding: 20px; 
    margin: 20px 0 40px 0; 
}

.av-demo-msg-user { 
    background: #dbeafe; 
    color: #1e40af; 
    padding: 10px 15px; 
    border-radius: 12px 12px 0 12px; 
    margin-bottom: 10px; 
    text-align: right; 
    margin-left: auto; 
    max-width: 80%; 
    font-size: 14px; 
}

.av-demo-msg-avi { 
    background: #fff; 
    color: #334155; 
    padding: 10px 15px; 
    border-radius: 12px 12px 12px 0; 
    border: 1px solid #e2e8f0; 
    max-width: 90%; 
    font-size: 14px; 
    display: flex; 
    gap: 10px; 
}

/* TYPING ANIMATION */
.typing-indicator { 
    display: inline-block; 
    margin-left: 5px; 
}

.typing-indicator span { 
    display: inline-block; 
    width: 4px; 
    height: 4px; 
    background-color: #555; 
    border-radius: 50%; 
    animation: avTyping 1.4s infinite ease-in-out both; 
    margin-right: 2px; 
}

.typing-indicator span:nth-child(1) { 
    animation-delay: -0.32s; 
}

.typing-indicator span:nth-child(2) { 
    animation-delay: -0.16s; 
}

@keyframes avTyping { 
    0%, 80%, 100% { transform: scale(0); } 
    40% { transform: scale(1); } 
}

/* REVIEWS SCROLL (ROTATOR) */
.av-reviews-scroll { 
    display: flex; 
    overflow-x: auto; 
    gap: 20px; 
    padding-bottom: 20px; 
    scroll-snap-type: x mandatory; 
    -webkit-overflow-scrolling: touch; 
}

.av-reviews-scroll::-webkit-scrollbar { 
    height: 8px; 
}

.av-reviews-scroll::-webkit-scrollbar-track { 
    background: #f1f1f1; 
    border-radius: 4px; 
}

.av-reviews-scroll::-webkit-scrollbar-thumb { 
    background: #d1d5db; 
    border-radius: 4px; 
}

.av-review-card { 
    min-width: 300px; 
    max-width: 300px; 
    scroll-snap-align: start; 
    background: #f9fafb; 
    padding: 25px; 
    border-radius: 12px; 
    border: 1px solid #e5e7eb; 
    display: flex; 
    flex-direction: column; 
    justify-content: space-between; 
}

.av-stars { 
    color: #f59e0b; 
    letter-spacing: 2px; 
    margin-bottom: 15px; 
    display: block; 
}

.av-review-text { 
    font-style: italic; 
    color: #4b5563; 
    font-size: 14px; 
    line-height: 1.6; 
    margin-bottom: 20px; 
    flex-grow: 1; 
}

.av-review-author { 
    font-weight: 700; 
    color: #111827; 
    font-size: 13px; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
}

.av-author-avatar { 
    width: 35px; 
    height: 35px; 
    background: #cbd5e1; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 14px; 
    color: #fff; 
    font-weight: bold; 
}

/* Avatar Colors */
.av-av-1 { background: #f87171; } 
.av-av-2 { background: #fbbf24; } 
.av-av-3 { background: #34d399; }
.av-av-4 { background: #60a5fa; } 
.av-av-5 { background: #818cf8; } 
.av-av-6 { background: #f472b6; }
