:root {
    /* Couleurs principales: Dark Theme B2B Premium */
    --bg-color: #0b0f19;
    --surface-color: rgba(255, 255, 255, 0.03);
    --surface-border: rgba(255, 255, 255, 0.08);
    
    --primary-color: #3b82f6; /* Bleu Tech */
    --primary-glow: rgba(59, 130, 246, 0.5);
    --secondary-color: #8b5cf6; /* Violet IA */
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    
    /* Variables de taille */
    --max-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(180deg, #0b0f19 0%, #172033 40%, #1e293b 100%);
    color: var(--text-main);
    line-height: 1.8;
    overflow-x: hidden;
    font-size: 1.15rem;
    min-height: 100vh;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Utilitaires Glassmorphism */
.glass-panel {
    background: var(--surface-color);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--surface-border);
    border-radius: 16px;
}

/* Boutons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px var(--primary-glow);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--surface-border);
    color: var(--text-main);
}
.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-block {
    width: 100%;
}

/* Navbar */
.navbar {
    padding: 1.5rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(11, 15, 25, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--surface-border);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
}
.logo i {
    color: var(--primary-color);
}
.logo span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}
.nav-links a:hover {
    color: var(--text-main);
}
.nav-links .btn-outline {
    color: var(--text-main);
}

/* Hero Section */
.hero {
    padding: 150px 0 100px;
    position: relative;
    overflow: hidden;
}

/* Effets de lumière en arrière-plan */
.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 500px;
    height: 500px;
    background: var(--primary-color);
    filter: blur(150px);
    border-radius: 50%;
    opacity: 0.15;
    z-index: -1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: -100px;
    width: 400px;
    height: 400px;
    background: var(--secondary-color);
    filter: blur(150px);
    border-radius: 50%;
    opacity: 0.15;
    z-index: -1;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-content h1 span {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    color: var(--text-muted);
    font-size: 1.15rem;
    margin-bottom: 2rem;
    max-width: 90%;
}

.cta-group {
    display: flex;
    gap: 1rem;
}

/* Faux terminal mock-up */
.mock-header {
    background: rgba(0,0,0,0.3);
    padding: 10px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--surface-border);
}

.dots span {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff5f56;
    margin-right: 6px;
}
.dots span:nth-child(2) { background: #ffbd2e; }
.dots span:nth-child(3) { background: #27c93f; }

.mock-header .title {
    margin-left: 20px;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.mock-code {
    padding: 20px;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.9rem;
    color: #e2e8f0;
}
.code-keyword { color: #c678dd; }
.code-string { color: #98c379; }
.code-comment { color: #5c6370; font-style: italic; }
.indent { padding-left: 20px; }
.cursor-blink {
    animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* Sections Globales */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
}
.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.section-title p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Démos Chat */
.demos {
    padding: 5rem 0;
    position: relative;
    z-index: 2;
}

.demo-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.demo-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--surface-border);
    color: var(--text-muted);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}
.tab-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.1);
}

.chat-container {
    background: #1e293b; /* Bleu très foncé pour contraster */
    border: 1px solid var(--surface-border);
    border-radius: 16px;
    overflow: hidden;
    height: 450px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.chat-box {
    display: none;
    height: 100%;
    flex-direction: column;
}
.chat-box.active {
    display: flex;
}

.chat-header {
    background: rgba(0,0,0,0.2);
    padding: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
}
.avatar i { color: white; width: 20px; }
.dentist-avatar { background: linear-gradient(135deg, #10b981, #059669); }
.resto-avatar { background: linear-gradient(135deg, #f59e0b, #d97706); }

.chat-header h3 { font-size: 1rem; margin: 0; }
.chat-header .status { font-size: 0.8rem; color: #10b981; }

.chat-messages {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Scrollbar styles for chat */
.chat-messages::-webkit-scrollbar { width: 6px; }
.chat-messages::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 10px; }

.msg {
    max-width: 80%;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 1.05rem;
    line-height: 1.5;
    animation: fadeIn 0.3s ease-in;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.msg-bot {
    background: rgba(255,255,255,0.05);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}
.msg-user {
    background: var(--primary-color);
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.btn-simulate {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    color: #000;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 800;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    border: none;
    cursor: pointer;
    z-index: 10;
}
.btn-simulate:hover { background: #e2e8f0; }

.typing-indicator {
    display: inline-flex;
    gap: 4px;
    align-items: center;
    padding: 10px 15px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    align-self: flex-start;
    width: fit-content;
}

.typing-indicator span {
    width: 6px;
    height: 6px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: type 1.4s infinite ease-in-out both;
}
.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }
@keyframes type {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

/* Process Section */
.process {
    padding: 5rem 0;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.process-step {
    background: var(--surface-color);
    border: 1px solid var(--surface-border);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    position: relative;
    transition: transform 0.3s;
}
.process-step:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.step-num {
    font-size: 3rem;
    font-weight: 800;
    color: rgba(255,255,255,0.05);
    position: absolute;
    top: 10px;
    right: 20px;
}

.process-step h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}
.process-step p {
    color: var(--text-muted);
}

/* Pricing Section */
.pricing {
    padding: 5rem 0;
}
.pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.price-card {
    background: var(--surface-color);
    border: 1px solid var(--surface-border);
    padding: 3rem;
    border-radius: 16px;
    position: relative;
}

.price-card.premium {
    border-color: var(--primary-color);
    background: rgba(59, 130, 246, 0.05);
    box-shadow: 0 10px 40px rgba(59, 130, 246, 0.1);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 800;
}

.price-card h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.price-card .desc { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 2rem; }
.price { font-size: 2.5rem; font-weight: 800; margin-bottom: 2rem; }

.price-card ul { list-style: none; margin-bottom: 2.5rem; }
.price-card ul li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #cbd5e1;
}
.price-card ul li i { color: #10b981; width: 18px; }

/* Contact Section */
.contact { padding: 5rem 0 8rem; }

.contact-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 4rem;
}

.contact-info h2 { font-size: 2.5rem; margin-bottom: 1rem; }
.contact-info p { color: var(--text-muted); margin-bottom: 2rem; }
.contact-methods p { display: flex; align-items: center; gap: 10px; margin-bottom: 1rem; font-weight: 600; font-size: 1.1rem; }
.contact-methods i { color: var(--primary-color); width: 24px; height: 24px; }

.contact-form .form-group { margin-bottom: 1.5rem; }
.contact-form label { display: block; margin-bottom: 0.5rem; font-size: 1.1rem; color: #cbd5e1; }
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--surface-border);
    border-radius: 8px;
    color: white;
    font-family: inherit;
    transition: border-color 0.3s;
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Footer */
footer {
    border-top: 1px solid var(--surface-border);
    padding: 3rem 0;
}
.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
}
.footer-brand p { color: var(--text-muted); margin-top: 1rem; max-width: 300px; }
.footer-links { display: flex; gap: 2rem; }
.footer-links a { color: #cbd5e1; text-decoration: none; }
.footer-bottom { text-align: center; color: var(--text-muted); font-size: 0.9rem; }

.story-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: stretch;
}

.story-images .glass-panel {
    display: flex;
    flex-direction: column;
}

.story-images img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: contain;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.2);
    margin-bottom: auto;
}

.coiffeur-avatar {
    background: linear-gradient(135deg, #ec4899, #be185d);
}

/* Responsive Media Queries */
@media(max-width: 900px) {
    .hero-container, .contact-box { grid-template-columns: 1fr; gap: 2rem;}
    .hero { padding-top: 100px; }
    .process-grid, .pricing-grid { grid-template-columns: 1fr; }
    .nav-links { display: none; } /* On cache les liens nav sur mobile pour faire simple */
    .hero-content h1 { font-size: 2.5rem; }
    .contact-box { padding: 2rem; }
}

/* =========================================================================
   CUSTOM TOAST NOTIFICATION
   ========================================================================= */
#custom-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--surface-color);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px 16px 16px;
    z-index: 10000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    max-width: 400px;
    border: 1px solid var(--surface-border);
    overflow: hidden;
}

#custom-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-indicator {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
}

.toast-success .toast-indicator { background-color: #10b981; }
.toast-error .toast-indicator { background-color: #ef4444; }
.toast-info .toast-indicator { background-color: #3b82f6; }

.toast-icon { display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.toast-success-icon { color: #10b981; }
.toast-error-icon { color: #ef4444; }
.toast-info-icon { color: #3b82f6; }

.toast-content { font-size: 0.95rem; color: var(--text-main); line-height: 1.4; flex-grow: 1; }
.toast-close {
    background: transparent; border: none; font-size: 1.25rem; color: var(--text-muted);
    cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; margin-left: 8px;
}
.toast-close:hover { color: var(--text-main); }

/* =========================================================================
   PAYMENT MODAL
   ========================================================================= */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(8px);
    z-index: 9999; display: none; align-items: center; justify-content: center;
}
.modal-overlay.active { display: flex; opacity: 1; }

.modal-container {
    background: var(--bg-color);
    border: 1px solid var(--surface-border);
    border-radius: 16px;
    padding: 2.5rem; width: 90%; max-width: 450px;
    position: relative; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: modalSlideUp 0.3s ease-out;
}
@keyframes modalSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-close {
    position: absolute; top: 1rem; right: 1rem;
    background: rgba(255, 255, 255, 0.05); border: none;
    width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: var(--text-muted); transition: all 0.2s;
}
.modal-close:hover { background: rgba(255, 255, 255, 0.1); color: var(--text-main); }

.modal-header { text-align: center; margin-bottom: 2rem; border-bottom: 1px solid var(--surface-border); padding-bottom: 1rem; }
.modal-header h3 { font-size: 1.5rem; color: var(--text-main); }

#modal-offer-name { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.modal-price { font-size: 2.5rem; font-weight: 800; color: var(--text-main); margin-bottom: 1.5rem; }
.modal-price span { font-size: 1rem; color: var(--text-muted); font-weight: 600; }

.modal-secure-note { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin-top: 1.5rem; color: #10b981; font-size: 0.85rem; }
.modal-secure-note i { width: 14px; height: 14px; }
