/* Fichier : sc-form-styler.css */

:root {
    --sc-bg: #0b1120;
    --sc-chat-bg: #0f172a;
    --sc-bot-bubble: #1e293b;
    --sc-user-bubble: #1700FF;
    --sc-text-main: #ffffff;
    --sc-neon-pop: #DFFF00;
    --sc-font-body: 'Inter', sans-serif;
    --sc-font-head: 'Rajdhani', sans-serif;
}

/* --- CUSTOM SCROLLBARS (PC DESIGN) --- */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--sc-chat-bg); }
::-webkit-scrollbar-thumb { background: #334155; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #475569; }
* { scrollbar-width: thin; scrollbar-color: #334155 var(--sc-chat-bg); }

/* --- MASQUAGE ROBUSTE --- */
.acf-form, form.acf-form {
    position: absolute !important; top: 0 !important; left: 0 !important;
    height: 1px !important; width: 1px !important; opacity: 0 !important; 
    overflow: hidden !important; pointer-events: none !important; z-index: -1 !important;
}
#primary, .entry-content, .site-content, article.page { display: none !important; }
.acf-tab-wrap { display: block !important; } .acf-tab-group { display: none !important; }
header, #masthead, .site-header, .elementor-location-header, .navbar { position: relative !important; z-index: 9999 !important; background: transparent !important; }
body { background-color: var(--sc-bg) !important; margin: 0; overflow: hidden; }

/* UI ELEMENTS */
.sc-recap-list { list-style: none; padding: 0; margin: 0; width: 100%; }
.sc-recap-section { color: var(--sc-neon-pop); font-family: var(--sc-font-head); font-weight: 700; text-transform: uppercase; font-size: 0.9rem; letter-spacing: 1px; padding: 15px 0 5px 0; border-bottom: 1px solid rgba(255,255,255,0.1); margin-top: 10px; }
.sc-recap-section:first-child { margin-top: 0; padding-top: 0; }
.sc-recap-item { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.05); display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.sc-recap-item:last-child { border-bottom: none; }
.sc-recap-label { font-size: 0.85rem; color: #94a3b8; display: block; margin-bottom: 4px; }
.sc-recap-value { font-size: 1rem; color: white; font-weight: 500; line-height: 1.3; }
.sc-edit-btn { background: rgba(255,255,255,0.05); border: none; color: #cbd5e1; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; transition: all 0.2s; }
.sc-edit-btn:hover { background: var(--sc-neon-pop); color: #0b1120; }
.sc-edit-btn svg { width: 14px; height: 14px; fill: currentColor; }

#sc-modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.95); backdrop-filter: blur(10px); z-index: 999999; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
#sc-modal-overlay.active { opacity: 1; pointer-events: all; }
.sc-modal-card { background: #1e293b; border: 1px solid #334155; border-radius: 24px; padding: 25px; width: 90%; max-width: 400px; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8); display: flex; flex-direction: column; align-items: center; gap: 15px; transform: scale(0.95); transition: transform 0.3s; }
#sc-modal-overlay.active .sc-modal-card { transform: scale(1); }
#sc-modal-overlay.mode-map { align-items: flex-start; padding-top: 20px; }
#sc-modal-overlay.mode-map .sc-modal-card { margin-top: 20px; }
.sc-modal-question { color: white; font-size: 1.2rem; text-align: center; font-weight: 600; line-height: 1.4; }
.sc-modal-question strong { color: var(--sc-neon-pop); }
.sc-modal-input-wrapper { width: 100%; }
#sc-modal-input { width: 100%; background: #0f172a; border: 2px solid #334155; color: white; padding: 15px; border-radius: 12px; font-size: 1.1rem; text-align: center; font-family: var(--sc-font-head); outline: none; transition: border-color 0.2s; }
#sc-modal-input:focus { border-color: var(--sc-neon-pop); }
#sc-modal-validate { margin-top:20px; width: 100%; padding: 16px; border-radius: 12px; background: var(--sc-neon-pop); color: #0b1120; border: none; font-family: var(--sc-font-head); font-weight: 800; text-transform: uppercase; letter-spacing: 1px; font-size: 1rem; cursor: pointer; }

.pac-container { background-color: #1e293b !important; border: 1px solid var(--sc-neon-pop) !important; border-radius: 12px !important; box-shadow: 0 20px 50px rgba(0,0,0,0.9) !important; z-index: 2147483647 !important; margin-top: 5px !important; max-width: 90vw !important; left: 50% !important; transform: translateX(-50%) !important; }
.pac-item { border-top: 1px solid #334155 !important; padding: 15px !important; color: #cbd5e1 !important; }
.pac-item:hover, .pac-item-selected { background-color: #334155 !important; }
.pac-item-query { color: white !important; font-weight: 600; }
.pac-icon { filter: invert(1) !important; opacity: 0.7; }

/* --- CALENDAR STYLES --- */
.flatpickr-calendar.inline { background: transparent !important; box-shadow: none !important; width: 100% !important; }
.flatpickr-day { color: #e2e8f0 !important; font-weight: 500; border-radius: 50px !important; }
.flatpickr-day:hover { background: var(--sc-neon-pop) !important; color: #0b1120 !important; border-color: var(--sc-neon-pop) !important; }
.flatpickr-day.selected { background: var(--sc-neon-pop) !important; color: #0b1120 !important; border-color: var(--sc-neon-pop) !important; font-weight: 700; }
.flatpickr-months .flatpickr-month { color: white !important; fill: white !important; }
.flatpickr-current-month .flatpickr-monthDropdown-months { color: white !important; font-weight: 700; }
.flatpickr-weekdays { color: #cbd5e1 !important; }
span.flatpickr-weekday { color: #cbd5e1 !important; font-weight: 600 !important; fill: #cbd5e1 !important; }

/* --- TIMEPICKER STYLES --- */
.flatpickr-time { height: auto !important; padding: 15px 0 !important; overflow: visible !important; display: flex !important; justify-content: center !important; }
.flatpickr-time input { font-size: 26px !important; height: 45px !important; font-family: var(--sc-font-head) !important; font-weight: 700 !important; color: white !important; background: #0f172a !important; border: 2px solid #334155 !important; border-radius: 10px !important; margin: 0 12px !important; width: 70px !important; text-align: center !important; }
.flatpickr-time input:focus { border-color: var(--sc-neon-pop) !important; }
.flatpickr-time .flatpickr-time-separator { margin-top:30px; color: white !important; font-size: 26px !important; }

#sc-chat-interface { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 100; padding-top: 180px; font-family: var(--sc-font-body); display: flex; flex-direction: column; align-items: center; transition: filter 0.3s; }
body.has-modal #sc-chat-interface { filter: blur(5px); pointer-events: none; }
@media (max-width: 768px) { #sc-chat-interface { padding-top: 90px; } }

#sc-chat-stream { flex: 1; overflow-y: auto; padding: 20px 20px 240px 20px; display: flex; flex-direction: column; gap: 20px; scroll-behavior: smooth; max-width: 800px; width: 100%; box-sizing: border-box; }
.sc-message { display: flex; align-items: flex-end; gap: 15px; opacity: 0; animation: sc-pop-in 0.4s forwards; max-width: 85%; width: auto; }
@keyframes sc-pop-in { to { opacity: 1; transform: translateY(0); } }
.sc-avatar { width: 44px; height: 50px;flex-shrink: 0; background-size: cover !important; background-position: center !important; }
.sc-message.bot .sc-avatar { background-image: url('https://squadcorner.com/wp-content/uploads/2025/12/paddy_avatar.png'); }
.sc-message.user .sc-avatar { display: none; }
.sc-bubble { padding: 16px 22px; border-radius: 20px; font-size: 1rem; line-height: 1.5; box-shadow: 0 4px 12px rgba(0,0,0,0.1); max-width: 100%; transition: all 0.2s; }
.sc-message.bot .sc-bubble { background: var(--sc-bot-bubble); color: #e2e8f0; border-bottom-left-radius: 4px; border: 1px solid rgba(255,255,255,0.05); }
.sc-message.bot strong { color: var(--sc-neon-pop); font-weight: 600; }
.sc-message.user { align-self: flex-end; flex-direction: row-reverse; margin-left: auto; }
.sc-message.user .sc-bubble { background: var(--sc-user-bubble); color: white; border-bottom-right-radius: 4px; }

.sc-typing-wrapper { display: flex; align-items: center; height: 24px; }
.sc-dot { width: 6px; height: 6px; background: #94a3b8; border-radius: 50%; margin: 0 2px; animation: sc-bounce 1.4s infinite ease-in-out both; }
.sc-dot:nth-child(1) { animation-delay: -0.32s; } .sc-dot:nth-child(2) { animation-delay: -0.16s; }
@keyframes sc-bounce { 0%, 80%, 100% { transform: scale(0); } 40% { transform: scale(1); } }

#sc-input-zone { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(15, 23, 42, 0.95); backdrop-filter: blur(15px); border-top: 1px solid rgba(255,255,255,0.1); padding: 20px; display: flex; justify-content: center; z-index: 100; }
.sc-input-wrapper { width: 100%; max-width: 800px; display: flex; gap: 10px; align-items: center; }
#sc-chat-input { flex: 1; background: #1e293b; border: 1px solid #334155; color: white; padding: 14px 20px; border-radius: 25px; font-size: 1rem; outline: none; }
#sc-chat-input:disabled { opacity: 0.5; background: #0f172a; border-color: transparent; }
#sc-chat-input:focus { border-color: var(--sc-user-bubble); }
#sc-send-btn { background: var(--sc-user-bubble); color: white; border: none; width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }
#sc-send-btn svg { width: 20px; height: 20px; fill: white; margin-left: 2px; }
#sc-send-btn.sc-validate-mode { width: auto; padding: 0 25px; border-radius: 30px; background-color: var(--sc-neon-pop); color: #0b1120; font-weight: 700; text-transform: uppercase; }
#sc-send-btn.sc-validate-mode svg { display: none; }
.sc-trigger-btn { flex: 1; background: var(--sc-bot-bubble); border: 2px solid var(--sc-neon-pop); color: white; padding: 14px 20px; border-radius: 25px; font-size: 1rem; font-weight: 600; cursor: pointer; text-align: center; transition: all 0.2s; display: flex; align-items: center; justify-content: center; gap: 10px; }
.sc-trigger-btn:hover { background: var(--sc-neon-pop); color: #0b1120; }
.sc-publish-btn { flex: 1; background: var(--sc-neon-pop); color: #0b1120; border: none; padding: 16px; border-radius: 25px; font-size: 1.1rem; font-family: var(--sc-font-head); font-weight: 800; text-transform: uppercase; cursor: pointer; text-align: center; box-shadow: 0 0 15px rgba(223, 255, 0, 0.4); animation: pulse 2s infinite; }
@keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.02); } 100% { transform: scale(1); } }
#sc-undo-btn { background: #334155; color: white; border: none; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; display: none; }
#sc-undo-btn svg { width: 18px; height: 18px; fill: white; }
#sc-undo-btn:hover { background: #475569; }
#sc-quick-replies { position: absolute; bottom: 100px; left: 0; right: 0; display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 12px; padding: 10px 20px; justify-content: flex-start; max-width: 800px; margin: 0 auto; z-index: 100; }
.sc-quick-btn { flex-shrink: 0; background: #1e293b; border: 1px solid #475569; color: #f1f5f9; padding: 12px 24px; border-radius: 20px; font-size: 0.95rem; cursor: pointer; }
.sc-quick-btn:hover { background: #334155; border-color: var(--sc-user-bubble); }
.sc-quick-btn.selected { background: var(--sc-user-bubble); border-color: var(--sc-user-bubble); color: white; }
#sc-quick-replies.sc-stacked { flex-wrap: wrap; flex-direction: column; align-items: center; bottom: 110px; padding: 0 20px; }
#sc-quick-replies.sc-stacked .sc-quick-btn { white-space: normal; width: 100%; max-width: 600px; text-align: center; padding: 20px 25px; background: linear-gradient(145deg, #1e293b, #162030); }