/* ============================================================
   MATRIX INDUSTRIE - Portail Client
   Charte Graphique v1.0
   ============================================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Orbitron:wght@500;600;700;800&family=Poppins:wght@500;600;700;800&display=swap');

/* ============================================================
   Variables CSS (Charte Graphique)
   ============================================================ */
:root {
    --primary: #0a1628;
    --primary-light: #1a3a5c;
    --primary-medium: #0d2137;
    --accent: #ff6b2b;
    --accent-hover: #e55a1b;
    --accent-light: rgba(255, 107, 43, 0.1);
    --secondary: #00b894;
    --secondary-light: rgba(0, 184, 148, 0.1);
    --bg: #f5f7fa;
    --surface: #ffffff;
    --text: #1a1a2e;
    --text-light: #6c757d;
    --text-muted: #9ca3af;
    --text-inverse: #ffffff;
    --border: #e2e8f0;
    --border-light: #f0f2f5;
    --danger: #e74c3c;
    --info: #3498db;
    --warning: #f39c12;
    --success: #00b894;

    --shadow-sm: 0 2px 8px rgba(10, 22, 40, 0.06);
    --shadow: 0 4px 20px rgba(10, 22, 40, 0.08);
    --shadow-lg: 0 20px 60px rgba(10, 22, 40, 0.15);
    --shadow-accent: 0 4px 15px rgba(255, 107, 43, 0.4);

    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-pill: 50px;

    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Poppins', 'Inter', sans-serif;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --container: 1200px;
}

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-hover); }

img { max-width: 100%; height: auto; display: block; }

button { cursor: pointer; font-family: var(--font-body); border: none; outline: none; }

input, select, textarea {
    font-family: var(--font-body);
    font-size: 0.95rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    width: 100%;
    transition: var(--transition);
    background: var(--surface);
    color: var(--text);
}
input:focus, select:focus, textarea:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px var(--accent-light);
}

::placeholder { color: var(--text-muted); }

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

/* ============================================================
   Header / Navigation
   ============================================================ */
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: var(--primary);
    transition: var(--transition);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.header.scrolled {
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0,0,0,0.2);
}
.header .container {
    display: flex; align-items: center; justify-content: space-between;
    height: 72px;
}
.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; margin-right: 16px; }
.logo-img {
    height: 48px; width: auto; min-width: 80px;
    transition: var(--transition);
    object-fit: contain;
    display: block;
}
.logo:hover .logo-img { filter: drop-shadow(0 0 6px rgba(255,215,0,0.5)); }
.logo-icon {
    width: 42px; height: 42px;
    background: linear-gradient(135deg, var(--accent) 0%, #ff8f5e 100%);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 1.1rem; color: white;
    font-family: var(--font-heading);
}
.logo-text {
    font-family: var(--font-heading); font-weight: 700;
    font-size: 1.3rem; color: white; letter-spacing: -0.5px;
}
.logo-text span { color: var(--accent); }

.nav { display: flex; align-items: center; gap: 4px; flex-wrap: nowrap; }
.nav-link {
    color: rgba(255,255,255,0.7); padding: 8px 12px;
    border-radius: var(--radius-sm); font-weight: 500; font-size: 0.85rem;
    transition: var(--transition); cursor: pointer; white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: white; background: rgba(255,255,255,0.1); }

.nav-cta {
    background: var(--accent); color: white !important;
    padding: 10px 24px; border-radius: var(--radius);
    font-weight: 600; font-size: 0.9rem;
    transition: var(--transition); margin-left: 8px;
}
.nav-cta:hover {
    background: var(--accent-hover); color: white;
    transform: translateY(-1px); box-shadow: var(--shadow-accent);
}

.menu-toggle {
    display: none; background: none; border: none;
    color: white; font-size: 1.5rem; padding: 8px;
}

/* ============================================================
   Hero Section
   ============================================================ */
.hero {
    background: linear-gradient(135deg, #0a1628 0%, #1a3a5c 50%, #0d2137 100%);
    padding: 160px 0 100px; color: white;
    position: relative; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 70% 30%, rgba(255,107,43,0.12) 0%, transparent 60%),
                radial-gradient(circle at 20% 80%, rgba(0,184,148,0.08) 0%, transparent 50%);
}
.hero .container { position: relative; z-index: 1; }
.hero-content { max-width: 680px; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,107,43,0.15); border: 1px solid rgba(255,107,43,0.3);
    border-radius: var(--radius-pill); padding: 6px 16px;
    font-size: 0.85rem; color: var(--accent); font-weight: 500;
    margin-bottom: 24px;
}
.hero-acronym {
    font-size: 1.6rem; letter-spacing: 3px; text-transform: uppercase;
    color: rgba(255,255,255,0.7); margin-bottom: 16px; font-weight: 400;
    font-family: var(--font-heading);
}
.hero-acronym strong { color: var(--accent); font-weight: 800; font-size: 1.1em; }
.matrix-acronym-subtitle {
    font-size: 0.85rem; letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--accent); margin-bottom: 8px !important; font-weight: 400;
}
.matrix-acronym-subtitle strong { font-weight: 800; }
.hero h1 {
    font-family: var(--font-heading); font-size: 3.2rem; font-weight: 800;
    line-height: 1.1; margin-bottom: 20px; letter-spacing: -1px;
}
.hero h1 span { color: var(--accent); }
.hero p {
    font-size: 1.15rem; color: rgba(255,255,255,0.7);
    line-height: 1.7; margin-bottom: 36px; max-width: 560px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats {
    display: flex; gap: 48px; margin-top: 60px;
    padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.1);
}
.hero-stat-value {
    font-family: var(--font-heading); font-size: 2.2rem; font-weight: 700;
    color: var(--accent);
}
.hero-stat-label { font-size: 0.85rem; color: rgba(255,255,255,0.5); margin-top: 4px; }

/* ============================================================
   Boutons
   ============================================================ */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 28px; border-radius: var(--radius);
    font-weight: 600; font-size: 0.95rem;
    transition: var(--transition); border: none;
    cursor: pointer; text-align: center; justify-content: center;
}
.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, #ff8f5e 100%);
    color: white;
}
.btn-primary:hover {
    transform: translateY(-2px); box-shadow: var(--shadow-accent);
    color: white;
}
.btn-secondary {
    background: rgba(255,255,255,0.1); color: white;
    border: 1px solid rgba(255,255,255,0.2);
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.2); color: white;
    transform: translateY(-2px);
}
.btn-outline {
    background: transparent; color: var(--accent);
    border: 2px solid var(--accent);
}
.btn-outline:hover {
    background: var(--accent); color: white;
    transform: translateY(-2px);
}
.btn-white {
    background: white; color: var(--primary);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; border-radius: var(--radius-sm); }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ============================================================
   Section communes
   ============================================================ */
.section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 {
    font-family: var(--font-heading); font-size: 2.2rem; font-weight: 700;
    color: var(--text); margin-bottom: 12px;
}
.section-header p { color: var(--text-light); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }
.section-header .accent { color: var(--accent); }

/* ============================================================
   Cards Catégories
   ============================================================ */
.categories-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.category-card {
    background: var(--surface); border-radius: var(--radius-lg);
    padding: 32px 24px; text-align: center;
    border: 1px solid var(--border-light);
    transition: var(--transition); cursor: pointer;
}
.category-card:hover {
    transform: translateY(-8px); box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}
.category-icon {
    width: 64px; height: 64px; margin: 0 auto 16px;
    background: var(--accent-light); border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    color: var(--accent); font-size: 1.5rem;
    transition: var(--transition);
}
.category-card:hover .category-icon {
    background: var(--accent); color: white;
}
.category-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.category-card p { font-size: 0.85rem; color: var(--text-light); }
.category-badge {
    display: inline-block; margin-top: 12px;
    background: var(--bg); border-radius: var(--radius-pill);
    padding: 4px 12px; font-size: 0.8rem; font-weight: 500; color: var(--text-light);
}

/* ============================================================
   Cards Produits
   ============================================================ */
.products-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.product-card {
    background: var(--surface); border-radius: 16px;
    overflow: hidden; border: 1px solid var(--border-light);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}
.product-card:hover {
    transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    border-color: rgba(255,107,43,0.2);
}
.product-card::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0;
    height: 3px; background: linear-gradient(90deg, #ff6b2b, #00b894);
    transform: scaleX(0); transition: transform 0.35s ease;
}
.product-card:hover::after { transform: scaleX(1); }
.product-image {
    width: 100%; height: 230px;
    background: linear-gradient(135deg, #f0f2f5, #e2e8f0);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; position: relative; cursor: pointer;
}
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-card:hover .product-image img { transform: scale(1.05); }
.product-image svg { width: 60px; height: 60px; color: var(--text-muted); }
.product-badge {
    position: absolute; top: 12px; left: 12px;
    background: linear-gradient(135deg, #00b894, #00a381); color: white;
    padding: 5px 14px; border-radius: var(--radius-pill);
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(0,184,148,0.3);
}
.product-info { padding: 20px 22px; }
.product-category {
    font-size: 0.75rem; color: var(--accent); font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px;
}
.product-info h3 {
    font-size: 1.05rem; font-weight: 700; margin-bottom: 8px;
    line-height: 1.4; color: var(--text);
}
.product-info p {
    font-size: 0.85rem; color: var(--text-light);
    line-height: 1.6; margin-bottom: 16px;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}
.product-footer {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 16px; border-top: 1px solid var(--border-light);
}
.product-price {
    font-family: var(--font-heading); font-size: 1.3rem;
    font-weight: 800; color: var(--accent);
}
.product-price small {
    font-size: 0.72rem; font-weight: 500; color: var(--text-light);
}
.product-action {
    width: 40px; height: 40px; border-radius: 12px;
    background: var(--accent-light); color: var(--accent);
    display: flex; align-items: center; justify-content: center;
    transition: all 0.25s ease; border: none; cursor: pointer;
}
.product-action:hover { background: var(--accent); color: white; transform: scale(1.1); }

/* Filtres produits */
.filters-bar {
    display: flex; gap: 16px; align-items: center;
    margin-bottom: 32px; flex-wrap: wrap;
}
.search-box {
    flex: 1; min-width: 250px; position: relative;
}
.search-box input {
    padding-left: 44px; border-radius: var(--radius-pill);
}
.search-box svg {
    position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
    color: var(--text-muted); width: 18px; height: 18px;
}
.filter-select {
    padding: 12px 36px 12px 16px; border-radius: var(--radius-pill);
    appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236c757d' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center;
    min-width: 180px;
}
.pagination {
    display: flex; align-items: center; justify-content: center;
    gap: 8px; margin-top: 40px;
}
.pagination button {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--surface); border: 1px solid var(--border);
    color: var(--text); font-weight: 500;
    transition: var(--transition);
}
.pagination button.active, .pagination button:hover {
    background: var(--accent); color: white; border-color: var(--accent);
}

/* ============================================================
   Détail produit (modal)
   ============================================================ */
.modal-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10, 22, 40, 0.6); backdrop-filter: blur(8px);
    z-index: 2000; display: none; align-items: center; justify-content: center;
    padding: 24px;
}
.modal-overlay.active { display: flex; }

.modal {
    background: var(--surface); border-radius: var(--radius-xl);
    width: 100%; max-width: 700px; max-height: 90vh;
    overflow-y: auto; box-shadow: 0 25px 80px rgba(0,0,0,0.3);
    animation: modalIn 0.3s ease;
}
.modal:has(iframe) { max-width: 900px; }
@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 24px 28px; border-bottom: 1px solid var(--border-light);
}
.modal-header h2 { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 600; }
.modal-close {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--bg); border: none; font-size: 1.2rem;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition); color: var(--text-light);
}
.modal-close:hover { background: var(--danger); color: white; }
.modal-body { padding: 28px; }
.modal-footer {
    padding: 20px 28px; border-top: 1px solid var(--border-light);
    display: flex; gap: 12px; justify-content: flex-end;
}

/* ============================================================
   Formulaires (Auth, Devis, RDV)
   ============================================================ */
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block; font-weight: 500; font-size: 0.9rem;
    margin-bottom: 6px; color: var(--text);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-error { color: var(--danger); font-size: 0.8rem; margin-top: 4px; }
.form-hint { color: var(--text-muted); font-size: 0.8rem; margin-top: 4px; }

/* ============================================================
   Auth Panels
   ============================================================ */
.auth-section {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #0a1628 0%, #1a3a5c 100%);
    padding: 100px 24px 40px;
}
.auth-card {
    background: var(--surface); border-radius: var(--radius-xl);
    padding: 48px; width: 100%; max-width: 480px;
    box-shadow: var(--shadow-lg);
}
.auth-logo {
    text-align: center; margin-bottom: 24px;
}
.auth-logo img {
    height: 72px; width: auto; margin: 0 auto;
    object-fit: contain;
}
.auth-card h2 {
    font-family: var(--font-heading); font-size: 1.6rem; font-weight: 700;
    text-align: center; margin-bottom: 8px;
}
.auth-card .subtitle {
    text-align: center; color: var(--text-light);
    margin-bottom: 32px; font-size: 0.9rem;
}
.auth-divider {
    text-align: center; color: var(--text-muted); font-size: 0.85rem;
    margin: 24px 0; position: relative;
}
.auth-divider::before, .auth-divider::after {
    content: ''; position: absolute; top: 50%; width: 40%;
    height: 1px; background: var(--border);
}
.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }

/* ============================================================
   Espace Client (Dashboard)
   ============================================================ */
.client-area { padding-top: 72px; min-height: 100vh; }
.client-layout { display: grid; grid-template-columns: 260px 1fr; min-height: calc(100vh - 72px); }

.client-sidebar {
    background: var(--surface); border-right: 1px solid var(--border-light);
    padding: 32px 0;
}
.client-sidebar-item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 24px; color: var(--text-light);
    font-weight: 500; font-size: 0.9rem;
    transition: var(--transition); cursor: pointer;
}
.client-sidebar-item:hover { background: var(--bg); color: var(--text); }
.client-sidebar-item.active {
    color: var(--accent); background: var(--accent-light);
    border-right: 3px solid var(--accent);
}
.client-sidebar-item svg { width: 20px; height: 20px; }
.client-sidebar-badge {
    margin-left: auto; background: var(--accent);
    color: white; font-size: 0.7rem; font-weight: 600;
    padding: 2px 8px; border-radius: var(--radius-pill);
}

.client-content { padding: 32px; background: var(--bg); }
.client-content h1 {
    font-family: var(--font-heading); font-size: 1.8rem;
    font-weight: 700; margin-bottom: 24px;
}

/* Cards stats client */
.stats-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 20px; margin-bottom: 32px;
}
.stat-card {
    background: var(--surface); border-radius: var(--radius-lg);
    padding: 24px; border: 1px solid var(--border-light);
}
.stat-card-icon {
    width: 48px; height: 48px; border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px; font-size: 1.3rem;
}
.stat-card-value {
    font-family: var(--font-heading); font-size: 1.8rem;
    font-weight: 700; color: var(--text);
}
.stat-card-label { font-size: 0.85rem; color: var(--text-light); margin-top: 4px; }

/* ============================================================
   Panier / Sélection devis
   ============================================================ */
.cart-badge {
    position: fixed; bottom: 32px; right: 32px; z-index: 900;
    background: var(--accent); color: white;
    width: 60px; height: 60px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; box-shadow: var(--shadow-accent);
    transition: var(--transition); cursor: pointer;
}
.cart-badge:hover { transform: scale(1.1); }
.cart-count {
    position: absolute; top: -4px; right: -4px;
    background: var(--danger); color: white;
    width: 22px; height: 22px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.7rem; font-weight: 700;
}

/* ============================================================
   Chatbot
   ============================================================ */
.chatbot-toggle {
    position: fixed; bottom: 32px; left: 32px; z-index: 900;
    width: 60px; height: 60px; border-radius: 50%;
    background: var(--primary); color: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; box-shadow: var(--shadow-lg);
    transition: var(--transition); cursor: pointer; border: none;
}
.chatbot-toggle:hover { transform: scale(1.1); background: var(--primary-light); }

.chatbot-window {
    position: fixed; bottom: 104px; left: 32px; z-index: 1500;
    width: 380px; max-height: 520px;
    background: var(--surface); border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg); display: none;
    flex-direction: column; overflow: hidden;
    animation: chatIn 0.3s ease;
}
.chatbot-window.active { display: flex; }
@keyframes chatIn {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.chatbot-header {
    background: var(--primary); color: white;
    padding: 16px 20px; display: flex; align-items: center; gap: 12px;
}
.chatbot-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--accent); display: flex;
    align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.9rem;
}
.chatbot-header-info h4 { font-size: 0.95rem; font-weight: 600; }
.chatbot-header-info p { font-size: 0.75rem; opacity: 0.7; }
.chatbot-close {
    margin-left: auto; background: none; border: none;
    color: white; font-size: 1.2rem; cursor: pointer; opacity: 0.7;
    transition: var(--transition);
}
.chatbot-close:hover { opacity: 1; }

.chatbot-messages {
    flex: 1; overflow-y: auto; padding: 20px;
    display: flex; flex-direction: column; gap: 12px;
    max-height: 340px;
}
.chat-msg {
    max-width: 85%; padding: 12px 16px;
    border-radius: var(--radius-lg); font-size: 0.9rem;
    line-height: 1.5;
}
.chat-msg.bot {
    background: var(--bg); color: var(--text);
    border-bottom-left-radius: 4px; align-self: flex-start;
}
.chat-msg.user {
    background: var(--accent); color: white;
    border-bottom-right-radius: 4px; align-self: flex-end;
}
.chat-suggestions {
    display: flex; flex-wrap: wrap; gap: 8px;
    margin-top: 8px;
}
.chat-suggestion {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-pill); padding: 6px 14px;
    font-size: 0.8rem; color: var(--accent); cursor: pointer;
    transition: var(--transition);
}
.chat-suggestion:hover {
    background: var(--accent); color: white; border-color: var(--accent);
}

.chatbot-input {
    display: flex; gap: 8px; padding: 16px;
    border-top: 1px solid var(--border-light);
}
.chatbot-input input {
    flex: 1; border-radius: var(--radius-pill);
    padding: 10px 16px; font-size: 0.9rem;
}
.chatbot-input button {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--accent); color: white;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.chatbot-input button:hover { background: var(--accent-hover); }

/* ============================================================
   RDV Section
   ============================================================ */
.rdv-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.rdv-slot {
    padding: 10px; border-radius: var(--radius-sm);
    background: var(--surface); border: 1px solid var(--border);
    text-align: center; cursor: pointer; transition: var(--transition);
    font-size: 0.85rem;
}
.rdv-slot:hover { border-color: var(--accent); background: var(--accent-light); }
.rdv-slot.selected { background: var(--accent); color: white; border-color: var(--accent); }
.rdv-slot .slot-date { font-weight: 600; font-size: 0.9rem; }
.rdv-slot .slot-time { color: var(--text-light); font-size: 0.8rem; margin-top: 4px; }

/* ============================================================
   Tables (Mes devis, Mes RDV)
   ============================================================ */
.data-table {
    width: 100%; border-collapse: collapse;
    background: var(--surface); border-radius: var(--radius-lg);
    overflow: hidden;
}
.data-table th {
    background: var(--bg); padding: 14px 16px;
    text-align: left; font-weight: 600; font-size: 0.8rem;
    text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-light);
}
.data-table td {
    padding: 14px 16px; border-bottom: 1px solid var(--border-light);
    font-size: 0.9rem;
}
.data-table tr:hover { background: var(--bg); }

.status-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 12px; border-radius: var(--radius-pill);
    font-size: 0.8rem; font-weight: 500;
}
.status-nouvelle { background: #e3f2fd; color: #1565c0; }
.status-en_cours { background: #fff3e0; color: #e65100; }
.status-devis_envoye { background: #e8f5e9; color: #2e7d32; }
.status-confirme { background: #e8f5e9; color: #2e7d32; }
.status-en_attente { background: #fff3e0; color: #e65100; }
.status-annule { background: #fce4ec; color: #c62828; }
.status-termine { background: #f3e5f5; color: #6a1b9a; }
.status-accepte { background: #e8f5e9; color: #2e7d32; }
.status-refuse { background: #fce4ec; color: #c62828; }

/* ============================================================
   Messagerie
   ============================================================ */
.msg-layout { display: grid; grid-template-columns: 300px 1fr; gap: 0; height: calc(100vh - 200px); }
.msg-list {
    border-right: 1px solid var(--border-light);
    overflow-y: auto; background: var(--surface);
}
.msg-item {
    padding: 16px 20px; border-bottom: 1px solid var(--border-light);
    cursor: pointer; transition: var(--transition);
}
.msg-item:hover { background: var(--bg); }
.msg-item.active { background: var(--accent-light); border-left: 3px solid var(--accent); }
.msg-item h4 { font-size: 0.9rem; font-weight: 600; margin-bottom: 4px; }
.msg-item p { font-size: 0.8rem; color: var(--text-light); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-item .msg-time { font-size: 0.75rem; color: var(--text-muted); }
.msg-unread { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; }

.msg-chat {
    display: flex; flex-direction: column;
}
.msg-chat-header {
    padding: 16px 24px; border-bottom: 1px solid var(--border-light);
    background: var(--surface);
}
.msg-chat-messages {
    flex: 1; overflow-y: auto; padding: 24px;
    display: flex; flex-direction: column; gap: 12px;
}
.msg-chat-input {
    padding: 16px 24px; border-top: 1px solid var(--border-light);
    display: flex; gap: 12px; background: var(--surface);
}
.msg-chat-input input { flex: 1; border-radius: var(--radius-pill); }

/* ============================================================
   Footer
   ============================================================ */
.footer {
    background: var(--primary); color: rgba(255,255,255,0.7);
    padding: 60px 0 30px;
}
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px; margin-bottom: 40px;
}
.footer h4 {
    color: white; font-weight: 600; margin-bottom: 20px;
    font-size: 1rem;
}
.footer p { font-size: 0.9rem; line-height: 1.7; }
.footer a { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.footer a:hover { color: var(--accent); }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-bottom {
    padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center; font-size: 0.85rem;
}
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-logo-img {
    height: 52px; width: auto;
    object-fit: contain;
}
.footer-logo-icon {
    width: 36px; height: 36px; background: var(--accent);
    border-radius: var(--radius-sm); display: flex;
    align-items: center; justify-content: center;
    font-weight: 800; font-size: 0.9rem; color: white;
    font-family: var(--font-heading);
}
.footer-logo-text { font-size: 1.1rem; font-weight: 700; color: white; }

/* ============================================================
   Toast / Notifications
   ============================================================ */
.toast-container {
    position: fixed; top: 88px; right: 24px; z-index: 3000;
    display: flex; flex-direction: column; gap: 12px;
}
.toast {
    background: var(--surface); border-radius: var(--radius);
    padding: 16px 20px; box-shadow: var(--shadow-lg);
    display: flex; align-items: center; gap: 12px;
    min-width: 320px; animation: toastIn 0.4s ease;
    border-left: 4px solid var(--accent);
}
.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }
.toast.info { border-left-color: var(--info); }
@keyframes toastIn {
    from { opacity: 0; transform: translateX(100px); }
    to { opacity: 1; transform: translateX(0); }
}
.toast-close {
    margin-left: auto; background: none; border: none;
    color: var(--text-muted); cursor: pointer; font-size: 1.1rem;
}

/* ============================================================
   Loading
   ============================================================ */
.spinner {
    width: 40px; height: 40px; border: 3px solid var(--border);
    border-top-color: var(--accent); border-radius: 50%;
    animation: spin 0.8s linear infinite; margin: 40px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

.skeleton {
    background: linear-gradient(90deg, var(--border-light) 25%, var(--bg) 50%, var(--border-light) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ============================================================
   Videos
   ============================================================ */
.video-card {
    background: var(--surface); border-radius: var(--radius-lg);
    overflow: hidden; border: 1px solid var(--border-light);
    transition: var(--transition);
}
.video-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.video-thumb {
    width: 100%; height: 200px; background: var(--primary);
    display: flex; align-items: center; justify-content: center;
    position: relative; cursor: pointer; overflow: hidden;
}
.video-thumb iframe { width: 100%; height: 100%; border: none; }
.video-thumb .play-btn {
    width: 64px; height: 64px; border-radius: 50%;
    background: rgba(255,107,43,0.9); color: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; transition: var(--transition);
    position: absolute; z-index: 1;
}
.video-thumb:hover .play-btn { transform: scale(1.1); background: var(--accent); }
.video-info { padding: 16px 20px; }
.video-info h3 { font-size: 1rem; font-weight: 600; margin-bottom: 6px; }
.video-info p { font-size: 0.85rem; color: var(--text-light); }

/* ============================================================
   Avis clients
   ============================================================ */
.avis-card {
    background: var(--surface); border-radius: var(--radius-lg);
    padding: 28px; border: 1px solid var(--border-light);
    transition: var(--transition); position: relative;
}
.avis-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.avis-card::before {
    content: '\201C'; position: absolute; top: 12px; left: 20px;
    font-size: 3rem; color: var(--accent-light); font-family: Georgia, serif;
    line-height: 1;
}
.avis-stars { color: #f39c12; font-size: 1rem; margin-bottom: 12px; letter-spacing: 2px; }
.avis-text { font-size: 0.9rem; color: var(--text); line-height: 1.7; margin-bottom: 16px; font-style: italic; }
.avis-author { display: flex; align-items: center; gap: 12px; }
.avis-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--accent); color: white;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.9rem;
}
.avis-author-info h4 { font-size: 0.9rem; font-weight: 600; }
.avis-author-info p { font-size: 0.8rem; color: var(--text-light); }

/* ============================================================
   Fiches techniques (dans detail produit)
   ============================================================ */
.fiche-item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px; background: var(--bg);
    border-radius: var(--radius-sm); margin-bottom: 8px;
    transition: var(--transition); cursor: pointer;
}
.fiche-item:hover { background: var(--accent-light); }
.fiche-icon {
    width: 40px; height: 40px; border-radius: var(--radius-sm);
    background: #e74c3c; color: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem; font-weight: 700;
}
.fiche-info { flex: 1; }
.fiche-info h4 { font-size: 0.9rem; font-weight: 500; }
.fiche-info p { font-size: 0.8rem; color: var(--text-light); }
.fiche-download { color: var(--accent); font-weight: 600; font-size: 0.85rem; }

/* ============================================================
   MODE KIOSQUE (bornes interactives tactiles)
   Active via ?kiosk=1 dans l'URL ou body.kiosk-mode
   ============================================================ */
body.kiosk-mode {
    cursor: none; overflow: hidden;
    -webkit-user-select: none; user-select: none;
    -webkit-touch-callout: none;
}
body.kiosk-mode::-webkit-scrollbar { display: none; }

/* Masquer elements non-kiosque */
body.kiosk-mode .promo-banner,
body.kiosk-mode .whatsapp-btn,
body.kiosk-mode .chatbot-toggle,
body.kiosk-mode .chatbot-window,
body.kiosk-mode .scroll-top,
body.kiosk-mode .footer,
body.kiosk-mode .newsletter-section,
body.kiosk-mode #nav-account,
body.kiosk-mode .auth-section { display: none !important; }

/* Header kiosque */
body.kiosk-mode .header { height: 80px; }
body.kiosk-mode .header .container { height: 80px; }
body.kiosk-mode .logo-icon { width: 50px; height: 50px; font-size: 1.3rem; }
body.kiosk-mode .logo-text { font-size: 1.6rem; }
body.kiosk-mode .nav-link { font-size: 1.1rem; padding: 12px 20px; }
body.kiosk-mode .nav-cta { font-size: 1.1rem; padding: 14px 28px; }

/* Hero kiosque */
body.kiosk-mode .hero { padding: 140px 0 80px; }
body.kiosk-mode .hero h1 { font-size: 3.5rem; }
body.kiosk-mode .hero p { font-size: 1.3rem; }
body.kiosk-mode .hero .btn { padding: 18px 36px; font-size: 1.15rem; }
body.kiosk-mode .hero-stat-value { font-size: 2.8rem; }

/* Boutons et cibles tactiles agrandis */
body.kiosk-mode .btn { padding: 16px 32px; font-size: 1.05rem; min-height: 52px; }
body.kiosk-mode .btn-lg { padding: 20px 40px; font-size: 1.2rem; }
body.kiosk-mode .product-action { width: 52px; height: 52px; }
body.kiosk-mode .fav-btn { width: 44px; height: 44px; }
body.kiosk-mode .category-card { padding: 36px 28px; }
body.kiosk-mode .category-icon { width: 80px; height: 80px; font-size: 2rem; }
body.kiosk-mode .category-card h3 { font-size: 1.15rem; }

/* Produits kiosque */
body.kiosk-mode .product-image { height: 260px; }
body.kiosk-mode .product-info h3 { font-size: 1.15rem; }
body.kiosk-mode .product-price { font-size: 1.5rem; }
body.kiosk-mode .products-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; }

/* Section headers kiosque */
body.kiosk-mode .section-header h2 { font-size: 2.6rem; }
body.kiosk-mode .section-header p { font-size: 1.15rem; }

/* Modal kiosque */
body.kiosk-mode .modal { max-width: 85vw; max-height: 85vh; }
body.kiosk-mode .modal-close { width: 48px; height: 48px; font-size: 1.5rem; }

/* Barre kiosque en bas */
.kiosk-bar {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 1100;
    background: var(--primary); padding: 12px 32px;
    display: none; align-items: center; justify-content: space-between;
    border-top: 3px solid var(--accent);
}
body.kiosk-mode .kiosk-bar { display: flex; }
.kiosk-bar .kiosk-logo { color: white; font-family: var(--font-heading); font-weight: 700; font-size: 1.1rem; }
.kiosk-bar .kiosk-logo span { color: var(--accent); }
.kiosk-bar .kiosk-nav { display: flex; gap: 8px; }
.kiosk-bar .kiosk-btn {
    padding: 14px 24px; border-radius: var(--radius);
    background: rgba(255,255,255,0.1); color: white;
    font-weight: 600; font-size: 1rem; border: none;
    cursor: pointer; transition: var(--transition);
    min-width: 120px; text-align: center;
}
.kiosk-bar .kiosk-btn:hover, .kiosk-bar .kiosk-btn.active {
    background: var(--accent); color: white;
}
.kiosk-bar .kiosk-home {
    background: var(--accent); padding: 14px 28px;
    border-radius: var(--radius); color: white;
    font-weight: 700; font-size: 1rem; border: none; cursor: pointer;
}

/* Ecran de veille kiosque */
.kiosk-screensaver {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    z-index: 9999; display: none;
    background: linear-gradient(135deg, #0a1628 0%, #1a3a5c 50%, #0d2137 100%);
    align-items: center; justify-content: center; flex-direction: column;
    cursor: pointer;
}
.kiosk-screensaver.active { display: flex; }
.kiosk-screensaver .ss-logo {
    font-family: var(--font-heading); font-size: 4rem; font-weight: 800;
    color: white; margin-bottom: 16px;
}
.kiosk-screensaver .ss-logo span { color: var(--accent); }
.kiosk-screensaver .ss-logo-img {
    height: 140px; width: auto; margin-bottom: 24px;
    object-fit: contain;
    animation: ssLogoPulse 3s ease-in-out infinite;
}
@keyframes ssLogoPulse {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}
.kiosk-screensaver .ss-slogan {
    color: rgba(255,255,255,0.6); font-size: 1.5rem; margin-bottom: 40px;
}
.kiosk-screensaver .ss-touch {
    color: rgba(255,255,255,0.4); font-size: 1.2rem;
    animation: ssPulse 2s ease-in-out infinite;
}
@keyframes ssPulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

/* Scrollbar kiosque (fine et discrete) */
body.kiosk-mode *::-webkit-scrollbar { width: 6px; }
body.kiosk-mode *::-webkit-scrollbar-track { background: transparent; }
body.kiosk-mode *::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 3px; }

/* Kiosque responsive - bornes verticales */
@media (max-width: 1080px) and (min-height: 1400px) {
    body.kiosk-mode .hero h1 { font-size: 2.8rem; }
    body.kiosk-mode .products-grid { grid-template-columns: repeat(2, 1fr); }
    body.kiosk-mode .categories-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   Documentation Cards
   ============================================================ */
.doc-card {
    background: var(--surface); border-radius: var(--radius-lg);
    padding: 24px; border: 1px solid var(--border-light);
    transition: var(--transition); cursor: pointer;
    display: flex; align-items: flex-start; gap: 16px;
    text-decoration: none; color: var(--text);
}
.doc-card:hover {
    transform: translateY(-4px); box-shadow: var(--shadow-lg);
    border-color: var(--accent); color: var(--text);
}
.doc-icon {
    min-width: 52px; height: 52px; border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 0.75rem; color: white;
    background: #e74c3c;
}
.doc-icon.catalogue { background: var(--accent); }
.doc-icon.guide { background: var(--info); }
.doc-info { flex: 1; }
.doc-info h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 4px; line-height: 1.3; }
.doc-info p { font-size: 0.8rem; color: var(--text-light); line-height: 1.4; margin-bottom: 6px; }
.doc-download {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 0.8rem; font-weight: 600; color: var(--accent);
}

/* Document action buttons */
.doc-actions {
    display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap;
}
.doc-action-btn {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 6px 12px; border-radius: var(--radius-sm);
    font-size: 0.78rem; font-weight: 600; cursor: pointer;
    transition: var(--transition); border: none; text-decoration: none;
}
.doc-action-btn.doc-read {
    background: var(--accent-light); color: var(--accent);
}
.doc-action-btn.doc-read:hover { background: var(--accent); color: white; }
.doc-action-btn.doc-dl {
    background: var(--secondary-light); color: var(--secondary);
}
.doc-action-btn.doc-dl:hover { background: var(--secondary); color: white; }
.doc-action-btn.doc-summary {
    background: var(--bg); color: var(--text-light);
}
.doc-action-btn.doc-summary:hover { background: var(--text-light); color: white; }

/* Document summary card */
.doc-summary-card {
    background: var(--bg); border-radius: var(--radius-lg); padding: 24px;
}
.doc-summary-header {
    display: flex; align-items: flex-start; gap: 16px; margin-bottom: 16px;
}
.doc-summary-icon {
    width: 56px; height: 56px; min-width: 56px; border-radius: var(--radius);
    background: var(--accent-light); color: var(--accent);
    display: flex; align-items: center; justify-content: center;
}
.doc-summary-meta {
    display: flex; gap: 16px; flex-wrap: wrap; padding: 12px 0;
    border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light);
    margin-bottom: 16px;
}
.doc-summary-meta span {
    font-size: 0.85rem; color: var(--text-light);
}
.doc-summary-text {
    padding: 16px; background: var(--surface); border-radius: var(--radius);
    border: 1px solid var(--border-light);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .hero h1 { font-size: 2.4rem; }
    .hero-stats { gap: 32px; }
    .client-layout { grid-template-columns: 1fr; }
    .client-sidebar { display: none; }
}

/* Global Search Bar */
/* Bouton loupe dans le header */
.search-toggle-btn {
    background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%; width: 36px; height: 36px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.7); transition: all 0.2s; flex-shrink: 0;
}
.search-toggle-btn:hover { background: rgba(255,107,43,0.2); color: #ff6b2b; border-color: rgba(255,107,43,0.3); }

/* Overlay de recherche plein ecran */
.search-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 99999; display: flex; align-items: flex-start; justify-content: center; padding-top: 80px; }
.search-overlay-backdrop { position: absolute; inset: 0; background: rgba(10,22,40,0.7); backdrop-filter: blur(4px); }
.search-overlay-box { position: relative; width: 90%; max-width: 600px; background: white; border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,0.4); overflow: hidden; animation: searchSlideDown 0.25s ease; }
@keyframes searchSlideDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
.search-overlay-header { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid #eee; }
.search-overlay-header input { flex: 1; border: none; outline: none; font-size: 1rem; font-family: var(--font-body, 'Inter', sans-serif); color: #1a1a2e; background: none; }
.search-overlay-header input::placeholder { color: #aaa; }
.search-overlay-close { background: none; border: none; font-size: 1.5rem; color: #999; cursor: pointer; padding: 0 4px; line-height: 1; }
.search-overlay-close:hover { color: #333; }
.search-overlay-results { max-height: 400px; overflow-y: auto; }
.search-overlay-hint { padding: 30px; text-align: center; color: #aaa; font-size: 0.85rem; }
.search-category-title {
    font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.8px; color: var(--text-light, #888);
    padding: 12px 16px 4px; margin: 0;
    border-top: 1px solid var(--border-light, rgba(0,0,0,0.06));
}
.search-category-title:first-child { border-top: none; }
.search-result-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 16px; cursor: pointer;
    transition: background 0.15s;
}
.search-result-item:hover { background: rgba(255,107,43,0.08); }
.search-result-item:last-child { border-radius: 0 0 12px 12px; }
.search-result-icon {
    width: 34px; height: 34px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; flex-shrink: 0;
}
.search-result-icon.produit { background: rgba(255,107,43,0.12); color: #ff6b2b; }
.search-result-icon.fiche { background: rgba(0,184,148,0.12); color: #00b894; }
.search-result-icon.article { background: rgba(108,92,231,0.12); color: #6c5ce7; }
.search-result-text { flex: 1; min-width: 0; }
.search-result-text .name {
    font-size: 0.85rem; font-weight: 600; color: var(--text, #1a1a2e);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.search-result-text .meta {
    font-size: 0.72rem; color: var(--text-light, #888);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.search-no-results {
    padding: 24px 16px; text-align: center;
    color: var(--text-light, #888); font-size: 0.85rem;
}

@media (max-width: 768px) {
    .nav { display: none; }
    .nav.active {
        display: flex; flex-direction: column;
        position: absolute; top: 72px; left: 0; right: 0;
        background: var(--primary); padding: 16px;
        border-top: 1px solid rgba(255,255,255,0.1);
    }
    .search-overlay-box { width: 95%; margin-top: 0; }
    .search-overlay { padding-top: 20px; }
    .menu-toggle { display: flex; }
    .logo-img { height: 38px; }
    .hero { padding: 120px 0 60px; }
    .hero h1 { font-size: 2rem; }
    .hero-stats { flex-direction: column; gap: 20px; }
    .categories-grid { grid-template-columns: 1fr; }
    .products-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .section { padding: 50px 0; }
    .modal { max-width: 100%; border-radius: var(--radius-lg); }
    .chatbot-window { left: 16px; right: 16px; width: auto; bottom: 88px; }
    .msg-layout { grid-template-columns: 1fr; }
    .filters-bar { flex-direction: column; }
    .search-box { min-width: 100%; }
    .auth-card { padding: 32px 24px; }
    .contact-quick-actions { grid-template-columns: repeat(2, 1fr) !important; }
    .contact-grid { grid-template-columns: 1fr !important; }
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-item.open .faq-answer { max-height: 200px !important; }
.faq-item.open .faq-icon { transform: rotate(45deg); }

/* Timeline pulse animation */
@keyframes pulse-ring {
    0% { box-shadow: 0 0 0 4px rgba(255,107,43,0.2), 0 4px 12px rgba(255,107,43,0.3); }
    50% { box-shadow: 0 0 0 8px rgba(255,107,43,0.1), 0 4px 12px rgba(255,107,43,0.3); }
    100% { box-shadow: 0 0 0 4px rgba(255,107,43,0.2), 0 4px 12px rgba(255,107,43,0.3); }
}

/* Timeline responsive mobile */
@media (max-width: 768px) {
    .timeline-container { padding-left: 30px !important; }
    .timeline-container > div:first-child { left: 0 !important; transform: none !important; }
    .timeline-item { flex-direction: column !important; }
    .timeline-item > div:first-child { text-align: left !important; padding-right: 0 !important; padding-left: 40px !important; }
    .timeline-item > div:nth-child(2) { position: absolute !important; left: 0 !important; transform: none !important; }
    .timeline-item > div:last-child { padding-left: 40px !important; }
}

/* ============================================================
   Animations d'entrée (Scroll)
   ============================================================ */
.fade-up {
    opacity: 1; transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   Page d'accueil - section Pourquoi Matrix
   ============================================================ */
.features-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.feature-card {
    text-align: center; padding: 32px 24px;
}
.feature-icon {
    width: 72px; height: 72px; margin: 0 auto 20px;
    background: var(--accent-light); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--accent); font-size: 1.8rem;
}
.feature-card h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 10px; }
.feature-card p { font-size: 0.9rem; color: var(--text-light); line-height: 1.6; }

@media (max-width: 768px) {
    .features-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Contact Section
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-info-card {
    display: flex; align-items: flex-start; gap: 16px;
    padding: 20px; background: var(--surface);
    border-radius: var(--radius-lg); border: 1px solid var(--border-light);
    margin-bottom: 16px;
}
.contact-info-icon {
    width: 48px; height: 48px; min-width: 48px;
    background: var(--accent-light); border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    color: var(--accent);
}
.contact-info-card h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 4px; }
.contact-info-card p { font-size: 0.9rem; color: var(--text-light); }

@media (max-width: 768px) {
    .contact-grid { grid-template-columns: 1fr; }
}

/* Scroll to top */
.scroll-top {
    position: fixed; bottom: 100px; right: 32px; z-index: 800;
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--surface); border: 1px solid var(--border);
    color: var(--text); display: none; align-items: center; justify-content: center;
    cursor: pointer; transition: var(--transition);
    box-shadow: var(--shadow);
}
.scroll-top.visible { display: flex; }
.scroll-top:hover { background: var(--accent); color: white; border-color: var(--accent); }

/* Hidden utility */
.hidden { display: none !important; }
.text-center { text-align: center; }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 32px; }

/* ============================================================
   Dark Mode
   ============================================================ */
body.dark-mode {
    --primary: #0a1628;
    --primary-light: #1a3a5c;
    --bg: #0f1117;
    --surface: #1a1d27;
    --text: #e4e6eb;
    --text-light: #9ca3af;
    --text-muted: #6b7280;
    --border: #2d3348;
    --border-light: #252836;
    --accent-light: rgba(255, 107, 43, 0.15);
    --secondary-light: rgba(0, 184, 148, 0.15);
}
body.dark-mode .header { background: #080b12; }
body.dark-mode .logo-img { filter: brightness(1.8) contrast(1.1); }
body.dark-mode .footer-logo-img { filter: brightness(1.8) contrast(1.1); }
body.dark-mode .header.scrolled { background: rgba(8,11,18,0.95); }
body.dark-mode .category-card, body.dark-mode .product-card,
body.dark-mode .feature-card, body.dark-mode .avis-card,
body.dark-mode .video-card, body.dark-mode .stat-card,
body.dark-mode .contact-info-card { background: var(--surface); border-color: var(--border); }
body.dark-mode .hero { background: linear-gradient(135deg, #050810 0%, #0f1a2e 50%, #080d18 100%); }
body.dark-mode .footer { background: #080b12; }
body.dark-mode input, body.dark-mode select, body.dark-mode textarea {
    background: var(--surface); color: var(--text); border-color: var(--border);
}
body.dark-mode .data-table th { background: #0f1117; }
body.dark-mode .data-table td { border-color: var(--border); }
body.dark-mode .modal { background: var(--surface); }
body.dark-mode .auth-card { background: var(--surface); }
body.dark-mode .client-sidebar { background: var(--surface); border-color: var(--border); }
body.dark-mode .chatbot-window { background: var(--surface); }
body.dark-mode .toast { background: var(--surface); }
body.dark-mode .blog-card { background: var(--surface); border-color: var(--border); }
body.dark-mode .blog-content h3 { color: var(--text); }
body.dark-mode .blog-content p { color: var(--text-light); }
body.dark-mode .blog-meta { color: var(--text-muted); }
body.dark-mode .article-body { color: var(--text); }
body.dark-mode .article-body h2 { color: var(--accent); }
body.dark-mode .article-body h3 { color: #8899bb; }
body.dark-mode .article-body strong { color: var(--accent); }
body.dark-mode .article-body th { background: #1a2a3e; }
body.dark-mode .article-body td { border-color: var(--border); }
body.dark-mode .article-body blockquote { background: rgba(255,107,43,0.1); }

/* Language Selector */
.lang-selector { position: relative; flex-shrink: 0; }
.lang-toggle {
    background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2);
    color: white; font-size: 0.8rem; font-weight: 600; cursor: pointer;
    padding: 6px 12px; border-radius: var(--radius-pill);
    transition: var(--transition); line-height: 1;
    display: flex; align-items: center; gap: 6px;
    letter-spacing: 0.5px;
}
.lang-toggle svg { width: 16px; height: 16px; opacity: 0.8; }
.lang-toggle:hover { background: rgba(255,255,255,0.22); border-color: rgba(255,255,255,0.35); }
.lang-menu {
    display: none; position: absolute; top: calc(100% + 8px); right: 0;
    background: var(--surface); border-radius: var(--radius);
    box-shadow: var(--shadow-lg); overflow: hidden; z-index: 100;
    min-width: 160px;
    border: 1px solid var(--border-light);
    animation: modalIn 0.2s ease;
}
.lang-menu.active { display: block; }
.lang-option {
    display: flex; align-items: center; gap: 10px;
    width: 100%; padding: 11px 16px;
    background: none; border: none; text-align: left;
    font-size: 0.9rem; cursor: pointer; color: var(--text);
    transition: background 0.2s; font-weight: 500;
}
.lang-option:hover { background: var(--accent-light); color: var(--accent); }
.lang-option.active { color: var(--accent); background: var(--accent-light); }

.dark-toggle {
    background: none; border: none; color: rgba(255,255,255,0.7);
    padding: 8px; border-radius: var(--radius-sm); cursor: pointer;
    transition: var(--transition); display: flex; align-items: center; flex-shrink: 0;
}
.dark-toggle:hover { color: white; background: rgba(255,255,255,0.1); }

/* ============================================================
   Breadcrumbs
   ============================================================ */
.breadcrumb {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 0; font-size: 0.85rem; color: var(--text-light);
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: var(--text-muted); }

/* ============================================================
   WhatsApp Button
   ============================================================ */
.whatsapp-btn {
    position: fixed; bottom: 100px; left: 32px; z-index: 899;
    width: 56px; height: 56px; border-radius: 50%;
    background: #25d366; color: white;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 15px rgba(37,211,102,0.4);
    transition: var(--transition); cursor: pointer; border: none;
    text-decoration: none;
}
.whatsapp-btn:hover { transform: scale(1.1); background: #20bd5a; color: white; }

/* ============================================================
   Promo Banner
   ============================================================ */
.promo-banner {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 1001;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white; text-align: center;
    padding: 8px 48px 8px 24px;
    font-size: 0.82rem; font-weight: 400; line-height: 1.4;
    border-bottom: 2px solid var(--accent);
    animation: promoSlideIn 0.4s ease-out;
}
.header { top: 36px; transition: top 0.25s ease; }
body.promo-closed .header { top: 0; }
@keyframes promoSlideIn {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.promo-banner a { color: var(--accent); text-decoration: underline; font-weight: 600; }
.promo-banner .close-banner {
    position: absolute; right: 8px; top: 8px;
    background: rgba(255,255,255,0.08); border: none; color: rgba(255,255,255,0.5);
    cursor: pointer; font-size: 0.9rem; width: 24px; height: 24px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
}
.promo-banner .close-banner:hover { background: rgba(255,255,255,0.15); color: white; }

@media (max-width: 768px) {
    .promo-banner { font-size: 0.72rem; padding: 6px 40px 6px 12px; }
}

/* ============================================================
   Comparateur
   ============================================================ */
.compare-bar {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 950;
    background: var(--primary); color: white; padding: 12px 24px;
    display: none; align-items: center; justify-content: space-between;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
}
.compare-bar.active { display: flex; }
.compare-items { display: flex; gap: 12px; align-items: center; }
.compare-item {
    background: rgba(255,255,255,0.1); padding: 6px 14px;
    border-radius: var(--radius-pill); font-size: 0.85rem;
    display: flex; align-items: center; gap: 6px;
}
.compare-item .remove { cursor: pointer; opacity: 0.7; }
.compare-item .remove:hover { opacity: 1; }

/* ============================================================
   Newsletter
   ============================================================ */
.newsletter-section {
    background: linear-gradient(135deg, #0a1628 0%, #1a3a5c 100%);
    padding: 60px 0; color: white; text-align: center;
}
.newsletter-form {
    display: flex; gap: 12px; max-width: 500px; margin: 24px auto 0;
}
.newsletter-form input {
    flex: 1; border-radius: var(--radius-pill); border: 2px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.1); color: white; padding: 14px 20px;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.5); }

/* ============================================================
   Blog Cards
   ============================================================ */
.blog-card {
    background: var(--surface); border-radius: var(--radius-lg);
    overflow: hidden; border: 1px solid var(--border-light);
    transition: var(--transition);
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.blog-image { width: 100%; height: 180px; background: linear-gradient(135deg, var(--primary), var(--primary-light)); }
.blog-content { padding: 20px; }
.blog-tag {
    display: inline-block; background: var(--accent-light); color: var(--accent);
    padding: 4px 10px; border-radius: var(--radius-pill); font-size: 0.75rem;
    font-weight: 600; margin-bottom: 10px;
}
.blog-content h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; line-height: 1.4; }
.blog-content p { font-size: 0.85rem; color: var(--text-light); line-height: 1.5; }
.blog-meta { font-size: 0.8rem; color: var(--text-muted); margin-top: 12px; }
.blog-card { cursor: pointer; }
.blog-filter-btn.active { transform: scale(1.05); box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.article-body h2 { font-size: 1.4rem; font-weight: 700; color: var(--primary); margin: 24px 0 12px; border-bottom: 2px solid var(--accent); padding-bottom: 8px; }
.article-body h3 { font-size: 1.15rem; font-weight: 600; color: var(--primary-light); margin: 20px 0 10px; }
.article-body p { margin: 10px 0; }
.article-body ul, .article-body ol { margin: 10px 0 10px 24px; }
.article-body li { margin: 6px 0; }
.article-body table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 0.9rem; }
.article-body th { background: var(--primary); color: white; padding: 10px 12px; text-align: left; }
.article-body td { padding: 8px 12px; border-bottom: 1px solid var(--border-light); }
.article-body tr:hover td { background: rgba(255,107,43,0.05); }
.article-body blockquote { border-left: 4px solid var(--accent); padding: 16px 20px; margin: 20px 0; background: rgba(255,107,43,0.05); border-radius: 0 8px 8px 0; font-style: italic; }
.article-body strong { color: var(--primary); }

/* ============================================================
   Favoris heart
   ============================================================ */
.fav-btn {
    position: absolute; top: 12px; right: 12px;
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,0.9); border: none;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: var(--transition); z-index: 2;
}
.fav-btn:hover { background: white; transform: scale(1.1); }
.fav-btn.active svg { fill: #e74c3c; stroke: #e74c3c; }

/* Google Maps */
.map-container { border-radius: var(--radius-lg); overflow: hidden; height: 300px; margin-top: 20px; }
.map-container iframe { width: 100%; height: 100%; border: none; }

/* ============================================================
   EVALUATIONS PAGE
   ============================================================ */
.eval-hero {
    background: linear-gradient(135deg, #0a1628 0%, #122040 50%, #1a2d4a 100%);
    padding: 80px 0 50px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.eval-hero::before {
    content: ''; position: absolute; top: -40%; right: -8%;
    width: 450px; height: 450px;
    background: radial-gradient(circle, rgba(255,107,43,0.07) 0%, transparent 70%);
    border-radius: 50%;
}
.eval-hero .section-header h2 { color: white; }
.eval-hero .section-header p { color: rgba(255,255,255,0.75); max-width: 650px; margin: 8px auto 0; }
.eval-hero .hero-acronym strong { color: #ff6b2b; }

.eval-stats-bar {
    display: flex; justify-content: center; gap: 20px; margin-top: 36px; flex-wrap: wrap;
}
.eval-stat-item {
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px; padding: 18px 28px;
    min-width: 120px; backdrop-filter: blur(6px);
    transition: transform 0.2s;
}
.eval-stat-item:hover { transform: translateY(-3px); }
.eval-stat-value { font-size: 1.8rem; font-weight: 800; font-family: var(--font-heading); color: var(--accent); }
.eval-stat-label { font-size: 0.75rem; color: rgba(255,255,255,0.6); margin-top: 4px; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }

.eval-tabs {
    display: flex; gap: 8px; margin-bottom: 32px; background: var(--bg); border-radius: 14px;
    padding: 6px; border: 1px solid var(--border); box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.eval-tab {
    flex: 1; padding: 12px 20px; border: none; background: none; border-radius: 10px;
    font-size: 0.95rem; font-weight: 600; cursor: pointer; color: var(--text-light);
    display: flex; align-items: center; justify-content: center; gap: 8px; transition: all 0.3s;
}
.eval-tab:hover { background: rgba(255, 107, 43, 0.08); color: var(--accent); }
.eval-tab.active { background: linear-gradient(135deg, #ff6b2b, #ff8f5e); color: white; box-shadow: 0 3px 12px rgba(255,107,43,0.3); }

.eval-content-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start;
}
.eval-form-card {
    background: var(--surface); border-radius: 18px; padding: 32px;
    border: 1px solid var(--border); box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.eval-form-card h3 { font-family: var(--font-heading); font-size: 1.3rem; margin-bottom: 0; }
.eval-form-header {
    display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
    margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border);
}
.eval-field-label { font-weight: 600; display: block; margin-bottom: 8px; font-size: 0.9rem; }
.eval-char-count { font-size: 0.8rem; color: var(--text-light); }

/* Note en direct */
.eval-live-note {
    text-align: center; min-width: 90px; padding: 8px 12px;
    background: var(--bg); border-radius: var(--radius); border: 1px solid var(--border);
}
.eval-live-empty { font-size: 1.1rem; font-weight: 700; color: var(--text-light); }
.eval-live-value { font-size: 1.3rem; font-weight: 800; color: var(--accent); font-family: var(--font-heading); }
.eval-live-stars { color: var(--accent); font-size: 0.85rem; display: block; margin-top: 2px; }

/* Critere hint (Mauvais, Bien, Excellent...) */
.eval-critere-left { display: flex; flex-direction: column; gap: 2px; }
.eval-critere-hint {
    font-size: 0.75rem; color: var(--accent); font-weight: 500; opacity: 0;
    transition: opacity 0.2s; min-height: 16px;
}
.eval-hint-show { opacity: 1; }

/* Submit button */
.eval-submit-btn { width: 100%; margin-top: 24px; padding: 14px !important; font-size: 1rem !important; font-weight: 600 !important; }
.eval-btn-spinner {
    display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white; border-radius: 50%; animation: evalSpin 0.6s linear infinite;
    vertical-align: -3px; margin-right: 6px;
}
@keyframes evalSpin { to { transform: rotate(360deg); } }

/* Login message */
.eval-login-msg {
    text-align: center; margin-top: 16px; color: var(--text-light); font-size: 0.9rem;
    padding: 12px; background: var(--bg); border-radius: var(--radius-sm);
}

/* Reviews header */
.eval-reviews-header {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px;
}
.eval-reviews-header h3 { margin: 0; }
.eval-reviews-count { font-size: 0.8rem; color: var(--text-light); background: var(--bg); padding: 2px 10px; border-radius: var(--radius-pill); }

/* Reviews scroll container */
.eval-reviews-scroll { max-height: 680px; overflow-y: auto; padding-right: 4px; }
.eval-reviews-scroll::-webkit-scrollbar { width: 4px; }
.eval-reviews-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.eval-select {
    width: 100%; padding: 10px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border);
    font-size: 0.95rem; background: var(--surface); color: var(--text); outline: none;
}
.eval-select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,107,43,0.15); }

.eval-textarea {
    width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border);
    font-size: 0.95rem; font-family: var(--font-body); resize: vertical; background: var(--surface);
    color: var(--text); outline: none; box-sizing: border-box;
}
.eval-textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,107,43,0.15); }

/* Critere row */
.eval-critere-row {
    display: flex; align-items: center; justify-content: space-between; padding: 12px 0;
    border-bottom: 1px solid var(--border);
}
.eval-critere-row:last-child { border-bottom: none; }
.eval-critere-label { font-weight: 500; font-size: 0.95rem; }

/* Star rating */
.eval-stars { display: flex; gap: 4px; }
.eval-star {
    width: 32px; height: 32px; cursor: pointer; color: #ddd; transition: color 0.15s, transform 0.15s;
}
.eval-star:hover { transform: scale(1.15); }
.eval-star.active { color: var(--accent); }
.eval-star.hover-preview { color: #ffb347; }
.eval-star svg { width: 100%; height: 100%; }

/* Reviews list */
.eval-review-card {
    background: var(--surface); border-radius: 16px; padding: 22px;
    border: 1px solid var(--border); margin-bottom: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}
.eval-review-card:hover { box-shadow: 0 8px 25px rgba(0,0,0,0.08); transform: translateY(-2px); }
.eval-review-card::before {
    content: ''; position: absolute; left: 0; top: 16px; bottom: 16px;
    width: 3px; background: linear-gradient(180deg, #ff6b2b, #00b894);
    border-radius: 2px; opacity: 0; transition: opacity 0.3s;
}
.eval-review-card:hover::before { opacity: 1; }
.eval-review-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.eval-review-avatar {
    width: 44px; height: 44px; border-radius: 14px;
    background: linear-gradient(135deg, #ff6b2b, #ff8f5e);
    color: white; display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.85rem; flex-shrink: 0;
}
.eval-review-info { flex: 1; }
.eval-review-name { font-weight: 700; font-size: 0.95rem; }
.eval-review-date { font-size: 0.78rem; color: var(--text-light); }
.eval-review-type {
    font-size: 0.68rem; background: linear-gradient(135deg, #0a1628, #1a2d4a); color: white;
    padding: 3px 10px; border-radius: 8px; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600;
}
.eval-review-stars { color: var(--accent); font-size: 0.9rem; margin-bottom: 8px; }
.eval-review-comment { font-size: 0.9rem; color: var(--text); line-height: 1.6; }
.eval-review-criteres {
    display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px;
}
.eval-review-crit {
    font-size: 0.73rem; background: var(--bg); padding: 4px 12px; border-radius: 8px;
    color: var(--text-light); font-weight: 500;
}

/* Cible dans review */
.eval-review-cible {
    font-size: 0.85rem; color: var(--text-light); margin-bottom: 6px;
    padding: 4px 10px; background: var(--bg); border-radius: var(--radius-sm); display: inline-block;
}

/* Critere dot */
.eval-crit-dot {
    display: inline-block; width: 6px; height: 6px; border-radius: 50%;
    margin-right: 4px; vertical-align: 1px;
}

/* Note globale badge */
.eval-note-badge {
    display: inline-flex; align-items: center; gap: 4px; background: var(--accent);
    color: white; padding: 2px 10px; border-radius: var(--radius-pill); font-weight: 700; font-size: 0.85rem;
}
.eval-note-good { background: var(--success, #00b894); }
.eval-note-low { background: var(--danger, #e74c3c); }

/* Review entrance animation */
.eval-review-enter {
    animation: evalSlideIn 0.4s ease-out both;
}
@keyframes evalSlideIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Empty state */
.eval-empty-state {
    text-align: center; padding: 50px 20px; color: var(--text-light);
}
.eval-empty-state svg { margin-bottom: 16px; opacity: 0.3; }
.eval-empty-state h4 { font-size: 1.1rem; margin-bottom: 6px; color: var(--text); }
.eval-empty-state p { font-size: 0.9rem; }

/* Success icon animation */
.eval-success-icon { animation: evalPopIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
@keyframes evalPopIn {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* Skeleton loading */
.eval-skeleton-card { pointer-events: none; }
.eval-skeleton-circle {
    width: 40px; height: 40px; border-radius: 50%; background: var(--border);
    animation: evalPulse 1.2s ease-in-out infinite;
}
.eval-skeleton-line {
    height: 12px; border-radius: 6px; background: var(--border);
    animation: evalPulse 1.2s ease-in-out infinite;
}
.eval-skeleton-num {
    display: inline-block; width: 50px; height: 20px; border-radius: 4px;
    background: rgba(255,255,255,0.15); animation: evalPulse 1.2s ease-in-out infinite;
}
@keyframes evalPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

/* Responsive */
@media (max-width: 768px) {
    .eval-content-grid { grid-template-columns: 1fr; }
    .eval-tabs { flex-direction: column; }
    .eval-stats-bar { gap: 12px; }
    .eval-stat-item { padding: 12px 16px; min-width: 80px; }
    .eval-stat-value { font-size: 1.4rem; }
    .newsletter-form { flex-direction: column; }
    .compare-bar { flex-direction: column; gap: 8px; padding: 8px 16px; }
    .whatsapp-btn { bottom: 80px; left: 16px; width: 48px; height: 48px; }
    .promo-banner { font-size: 0.8rem; padding: 8px 40px 8px 16px; }
}

/* ============================================================
   GALERIE INNOVATIONS
   ============================================================ */
.galerie-filters {
    display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px;
    padding: 16px 20px; background: var(--surface); border-radius: 16px;
    border: 1px solid var(--border-light); box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.galerie-filter {
    padding: 10px 20px; border-radius: 24px; border: 2px solid var(--border-light);
    background: var(--bg); color: var(--text-light); font-size: 0.85rem;
    font-weight: 600; cursor: pointer; transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    display: inline-flex; align-items: center; gap: 6px;
}
.galerie-filter:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.galerie-filter.active { color: white !important; border-color: transparent; box-shadow: 0 4px 16px rgba(255,107,43,0.3); transform: scale(1.05); }

.galerie-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.galerie-item {
    border-radius: 16px; overflow: hidden;
    background: var(--surface); border: 1px solid var(--border-light);
    cursor: pointer; transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}
.galerie-item:hover { transform: translateY(-8px); box-shadow: 0 16px 40px rgba(0,0,0,0.12); }
.galerie-img-wrap {
    position: relative; width: 100%; height: 220px; overflow: hidden;
    background: var(--bg);
}
.galerie-img-wrap img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s ease;
}
.galerie-item:hover .galerie-img-wrap img { transform: scale(1.1); }
.galerie-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(10,22,40,0.7) 100%);
    display: flex; align-items: flex-end; justify-content: center;
    padding-bottom: 16px;
    opacity: 0; transition: opacity 0.35s;
}
.galerie-overlay svg { filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)); }
.galerie-item:hover .galerie-overlay { opacity: 1; }
.galerie-caption { padding: 14px 16px; }
.galerie-caption h4 {
    font-size: 0.88rem; font-weight: 600; color: var(--text);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.galerie-cat {
    display: inline-block; font-size: 0.7rem; font-weight: 700;
    color: var(--accent); text-transform: uppercase; letter-spacing: 0.8px;
    margin-bottom: 4px;
}

/* Lightbox */
.lightbox {
    position: fixed; inset: 0; z-index: 5000;
    background: rgba(0,0,0,0.92); backdrop-filter: blur(10px);
    display: none; align-items: center; justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox-content {
    max-width: 90vw; max-height: 85vh; text-align: center;
    animation: modalIn 0.3s ease;
}
.lightbox-content img {
    max-width: 100%; max-height: 80vh; object-fit: contain;
    border-radius: var(--radius); box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}
.lightbox-caption {
    color: rgba(255,255,255,0.85); font-size: 1rem;
    margin-top: 16px; font-weight: 500;
}
.lightbox-close {
    position: absolute; top: 20px; right: 24px; z-index: 2;
    background: none; border: none; color: white; font-size: 2.2rem;
    cursor: pointer; opacity: 0.7; transition: opacity 0.2s;
    width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-prev, .lightbox-next {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
    background: rgba(255,255,255,0.1); border: none; color: white;
    font-size: 1.8rem; width: 52px; height: 52px; border-radius: 50%;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
}
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.25); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-counter {
    position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
    color: rgba(255,255,255,0.5); font-size: 0.9rem;
}

/* Responsive galerie */
@media (max-width: 1024px) {
    .galerie-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .galerie-grid { grid-template-columns: repeat(2, 1fr); }
    .galerie-img-wrap { height: 160px; }
    .lightbox-prev, .lightbox-next { width: 40px; height: 40px; font-size: 1.4rem; }
}
@media (max-width: 480px) {
    .galerie-grid { grid-template-columns: 1fr; }
}

/* Dark mode evaluations */
[data-theme="dark"] .eval-hero { background: linear-gradient(135deg, #050d18 0%, #0d2137 100%); }
[data-theme="dark"] .eval-form-card { background: var(--surface); }
[data-theme="dark"] .eval-review-card { background: var(--surface); }
[data-theme="dark"] .eval-select { background: var(--surface); color: var(--text); }
[data-theme="dark"] .eval-textarea { background: var(--surface); color: var(--text); }

/* ============================================================
   AMELIORATIONS UX v2.4
   ============================================================ */

/* --- Mobile Client Sidebar (tab bar) --- */
.client-mobile-tabs {
    display: none;
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
    background: var(--surface); border-top: 1px solid var(--border-light);
    padding: 6px 0 env(safe-area-inset-bottom, 0);
    box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
}
.client-mobile-tabs-inner {
    display: flex; justify-content: space-around; align-items: center;
}
.client-mobile-tab {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 8px 4px; border: none; background: none; cursor: pointer;
    color: var(--text-light); font-size: 0.65rem; font-weight: 500;
    transition: color 0.2s; min-width: 56px; position: relative;
}
.client-mobile-tab svg { width: 22px; height: 22px; }
.client-mobile-tab.active { color: var(--accent); }
.client-mobile-tab .mobile-tab-badge {
    position: absolute; top: 2px; right: 8px;
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--accent);
}

@media (max-width: 1024px) {
    .client-mobile-tabs { display: block; }
    .client-content { padding-bottom: 80px; }
}

/* --- Button loading state --- */
.btn.btn-loading {
    pointer-events: none; opacity: 0.75; position: relative;
}
.btn.btn-loading .btn-spinner {
    display: inline-block; width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,0.3); border-top-color: white;
    border-radius: 50%; animation: spin 0.6s linear infinite;
    margin-right: 8px; vertical-align: -2px;
}

/* --- Password visibility toggle --- */
.password-wrapper {
    position: relative;
}
.password-wrapper input { padding-right: 44px; }
.password-toggle {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    background: none; border: none; cursor: pointer;
    color: var(--text-muted); padding: 4px;
    display: flex; align-items: center; justify-content: center;
    transition: color 0.2s;
}
.password-toggle:hover { color: var(--accent); }

/* --- Toast exit animation --- */
.toast.toast-exit {
    animation: toastOut 0.4s ease forwards;
}
@keyframes toastOut {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(100px); }
}

/* --- Chatbot typing indicator --- */
.chat-typing {
    display: flex; align-items: center; gap: 4px;
    padding: 12px 16px; max-width: 70px;
    background: var(--bg); border-radius: var(--radius-lg);
    border-bottom-left-radius: 4px; align-self: flex-start;
}
.chat-typing-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--text-muted);
    animation: typingBounce 1.4s infinite ease-in-out;
}
.chat-typing-dot:nth-child(1) { animation-delay: 0s; }
.chat-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.chat-typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce {
    0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
    40% { transform: translateY(-6px); opacity: 1; }
}

/* --- Page transitions --- */
main {
    animation: pageIn 0.35s ease;
}
main.page-exit {
    animation: pageOut 0.2s ease forwards;
}
@keyframes pageIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes pageOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* --- Input validation feedback --- */
input.input-valid {
    border-color: var(--success) !important;
}
input.input-invalid {
    border-color: var(--danger) !important;
}
.validation-icon {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    font-size: 0.9rem; pointer-events: none;
}

/* --- Password strength meter --- */
.password-strength {
    display: flex; gap: 4px; margin-top: 6px; height: 4px;
}
.password-strength-bar {
    flex: 1; height: 100%; border-radius: 2px;
    background: var(--border); transition: background 0.3s;
}
.password-strength-bar.weak { background: var(--danger); }
.password-strength-bar.medium { background: var(--warning); }
.password-strength-bar.strong { background: var(--success); }
.password-strength-text {
    font-size: 0.75rem; margin-top: 2px; color: var(--text-light);
}

/* --- Smooth nav underline --- */
.nav-link { position: relative; }
.nav-link::after {
    content: ''; position: absolute; bottom: 0; left: 50%; width: 0;
    height: 2px; background: var(--accent); border-radius: 1px;
    transition: width 0.3s, left 0.3s;
}
.nav-link:hover::after, .nav-link.active::after {
    width: 60%; left: 20%;
}

/* --- Cart badge pulse --- */
.cart-badge.pulse {
    animation: cartPulse 0.5s ease;
}
@keyframes cartPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* --- Skeleton for product cards --- */
.product-card-skeleton {
    background: var(--surface); border-radius: var(--radius-lg);
    overflow: hidden; border: 1px solid var(--border-light);
}
.product-card-skeleton .skel-image {
    width: 100%; height: 220px; background: var(--border-light);
    animation: shimmer 1.5s infinite;
    background: linear-gradient(90deg, var(--border-light) 25%, var(--bg) 50%, var(--border-light) 75%);
    background-size: 200% 100%;
}
.product-card-skeleton .skel-info { padding: 20px; }
.product-card-skeleton .skel-line {
    height: 12px; border-radius: 6px; margin-bottom: 10px;
    background: linear-gradient(90deg, var(--border-light) 25%, var(--bg) 50%, var(--border-light) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}
.product-card-skeleton .skel-line.short { width: 40%; }
.product-card-skeleton .skel-line.medium { width: 70%; }

/* --- Confirmation dialog --- */
.confirm-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10, 22, 40, 0.5); backdrop-filter: blur(4px);
    z-index: 3000; display: flex; align-items: center; justify-content: center;
    animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.confirm-dialog {
    background: var(--surface); border-radius: var(--radius-lg);
    padding: 32px; max-width: 400px; width: 90%;
    box-shadow: var(--shadow-lg); text-align: center;
    animation: modalIn 0.3s ease;
}
.confirm-dialog h3 { font-family: var(--font-heading); font-size: 1.2rem; margin-bottom: 12px; }
.confirm-dialog p { color: var(--text-light); font-size: 0.9rem; margin-bottom: 24px; line-height: 1.5; }
.confirm-dialog .confirm-actions { display: flex; gap: 12px; justify-content: center; }

/* --- WhatsApp tooltip --- */
.whatsapp-btn::before {
    content: 'Ecrivez-nous sur WhatsApp'; position: absolute;
    right: 68px; top: 50%; transform: translateY(-50%);
    background: var(--surface); color: var(--text); font-size: 0.8rem;
    padding: 6px 12px; border-radius: var(--radius-sm);
    box-shadow: var(--shadow); white-space: nowrap;
    opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.whatsapp-btn:hover::before { opacity: 1; }
.whatsapp-btn { position: relative; }

/* --- Chatbot unread dot --- */
.chatbot-toggle .chat-unread-dot {
    position: absolute; top: -2px; right: -2px;
    width: 14px; height: 14px; border-radius: 50%;
    background: var(--accent); border: 2px solid var(--primary);
    display: none;
}
.chatbot-toggle .chat-unread-dot.active { display: block; }

/* --- Scroll progress bar --- */
.scroll-progress {
    position: fixed; top: 0; left: 0; height: 3px; z-index: 1002;
    background: linear-gradient(90deg, var(--accent), var(--secondary));
    width: 0%; transition: width 0.1s;
}

/* --- Focus visible for keyboard nav --- */
*:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
button:focus:not(:focus-visible), a:focus:not(:focus-visible) { outline: none; }

/* ═══ PRODUCT BADGES v2.5.0 ═══ */
.product-badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  padding: 4px 10px; border-radius: 12px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
}
.badge-new { background: #00b894; color: white; }
.badge-popular { background: #ff6b2b; color: white; }
.badge-limited { background: #e74c3c; color: white; animation: pulse 2s infinite; }
.badge-promo { background: #9b59b6; color: white; }

/* ═══ PRODUCT RATINGS ON CARDS v2.5.0 ═══ */
.product-rating {
  display: flex; align-items: center; gap: 4px;
  margin-top: 6px; font-size: 13px;
}
.product-rating .stars { color: #f1c40f; letter-spacing: 1px; }
.product-rating .count { color: #8899aa; font-size: 11px; }

/* ═══ STOCK INDICATOR v2.5.0 ═══ */
.stock-indicator { font-size: 12px; margin-top: 4px; font-weight: 600; }
.stock-low { color: #e74c3c; }
.stock-ok { color: #27ae60; }
.stock-out { color: #95a5a6; text-decoration: line-through; }

/* ═══ STICKY CTA MOBILE v2.5.0 ═══ */
.sticky-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: linear-gradient(135deg, #ff6b2b, #e74c3c);
  padding: 12px 20px; display: none;
  align-items: center; justify-content: center; gap: 10px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
}
.sticky-cta .cta-text { color: white; font-weight: 700; font-size: 15px; }
.sticky-cta .cta-btn {
  background: white; color: #ff6b2b; border: none;
  padding: 10px 24px; border-radius: 25px;
  font-weight: 700; font-size: 14px; cursor: pointer;
  transition: transform 0.2s;
}
.sticky-cta .cta-btn:hover { transform: scale(1.05); }
@media (max-width: 768px) {
  .sticky-cta { display: flex; }
  body { padding-bottom: 60px; }
}

/* ═══ RECENTLY VIEWED v2.5.0 ═══ */
.recently-viewed {
  background: var(--bg-secondary, #f8f9fa);
  padding: 20px; border-radius: 10px; margin-top: 30px;
}
.recently-viewed h3 { margin-bottom: 12px; font-size: 16px; }
.recently-viewed .rv-grid {
  display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px;
}
.recently-viewed .rv-item {
  min-width: 140px; background: white; border-radius: 8px;
  padding: 10px; text-align: center; cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
}
.recently-viewed .rv-item:hover {
  transform: translateY(-3px); box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.recently-viewed .rv-item .rv-name { font-size: 12px; font-weight: 600; margin-top: 6px; }
.recently-viewed .rv-item .rv-price { font-size: 11px; color: #ff6b2b; font-weight: 700; }

/* ═══ TESTIMONIALS v2.5.0 ═══ */
.testimonials-section {
  background: linear-gradient(135deg, #0a1628, #1a2a40);
  padding: 50px 20px; color: white; text-align: center;
}
.testimonials-section h2 { font-size: 28px; margin-bottom: 30px; }
.testimonials-grid { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; max-width: 1000px; margin: 0 auto; }
.testimonial-card {
  background: rgba(255,255,255,0.08); border-radius: 12px;
  padding: 24px; max-width: 300px; text-align: left;
  backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.1);
}
.testimonial-card .quote { font-style: italic; margin-bottom: 12px; line-height: 1.5; font-size: 14px; opacity: 0.9; }
.testimonial-card .author { font-weight: 700; font-size: 13px; }
.testimonial-card .company { font-size: 12px; opacity: 0.6; }
.testimonial-card .stars { color: #f1c40f; margin-bottom: 8px; }

/* ═══ RESPONSIVE — Grilles sections Accueil ═══ */
@media (max-width: 900px) {
  .engagements-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .soutenir-grid { grid-template-columns: 1fr !important; }
  .fidelite-grid { grid-template-columns: 1fr !important; }
  .promo-formation-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 520px) {
  .engagements-grid { grid-template-columns: 1fr !important; }
}

/* ═══════════════════════════════════════════════════════════════
   PAGE PRODUIT PREMIUM
   ═══════════════════════════════════════════════════════════════ */

/* Layout responsive */
@media (max-width: 768px) {
  #produit-content { grid-template-columns: 1fr !important; gap: 24px !important; }
  #produit-titre { font-size: 1.4rem !important; }
  #produit-prix { font-size: 1.6rem !important; }
  #produit-meta { grid-template-columns: 1fr !important; }
  #produit-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .produit-tab { white-space: nowrap; padding: 12px 18px !important; font-size: 0.85rem !important; }
  #avis-resume { grid-template-columns: 1fr !important; text-align: center; }
  #specs-table { grid-template-columns: 1fr !important; }
  #produit-similaires-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 480px) {
  #produit-similaires-grid { grid-template-columns: 1fr !important; }
  #produit-thumbnails { gap: 6px !important; }
  .galerie-thumb { width: 56px !important; height: 56px !important; }
}

/* Galerie image principale hover */
#produit-img-principale:hover #produit-img-main {
  transform: scale(1.03);
}

/* Thumbnails */
.galerie-thumb { transition: border-color 0.2s, transform 0.2s; }
.galerie-thumb:hover { transform: scale(1.08); }
.galerie-thumb.active { border-color: var(--accent) !important; box-shadow: 0 0 0 2px rgba(255, 107, 43, 0.2); }

/* Onglets produit */
.produit-tab { position: relative; }
.produit-tab:hover { color: var(--accent) !important; }
.produit-tab.active { color: var(--accent) !important; border-bottom-color: var(--accent) !important; }

/* Zoom overlay animation */
#zoomOverlay { animation: modalIn 0.25s ease; }
#zoomImage { transition: opacity 0.2s; }

/* Boutons actions produit hover */
#btn-add-devis:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255, 107, 43, 0.3); }
#btn-whatsapp-produit:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3); }
#btn-favori-produit:hover { transform: translateY(-2px); background: var(--bg) !important; }

/* Dark mode — page produit */
body.dark-mode #produit-img-principale { background: #1a2030 !important; border-color: #2a3040 !important; }
body.dark-mode .galerie-thumb { background: #1a2030 !important; border-color: #2a3040 !important; }
body.dark-mode .galerie-thumb.active { border-color: var(--accent) !important; }
body.dark-mode #produit-breadcrumb a { color: #8890a0; }
body.dark-mode #produit-breadcrumb a:hover { color: var(--accent); }
body.dark-mode #specs-table > div { border-color: #2a3040 !important; }
body.dark-mode #specs-table > div:nth-child(4n+3),
body.dark-mode #specs-table > div:nth-child(4n+4) { background: #141a24 !important; }
body.dark-mode #avis-resume { background: #141a24 !important; border-color: #2a3040 !important; }
body.dark-mode #avis-form-section { background: #141a24 !important; border-color: #2a3040 !important; }
body.dark-mode #avis-form-section textarea { background: #1a2030 !important; border-color: #2a3040 !important; color: #d0d5e0 !important; }
body.dark-mode #avis-list > div { background: #141a24 !important; border-color: #2a3040 !important; }
body.dark-mode #fiches-list > div { background: #141a24 !important; border-color: #2a3040 !important; }
body.dark-mode #produit-similaires-grid > div { background: #141a24 !important; border-color: #2a3040 !important; }
body.dark-mode #produit-similaires-grid > div > div:first-child { background: #1a2030 !important; }
body.dark-mode #btn-favori-produit { background: #1a2030 !important; border-color: #2a3040 !important; }

/* ═══════════════════════════════════════════════════════════════
   LIVE CHAT WIDGET
   ═══════════════════════════════════════════════════════════════ */

/* Bouton flottant Live Chat */
.livechat-toggle {
  position: fixed; bottom: 24px; right: 24px; z-index: 9000;
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, #ff6b2b, #e55a1b);
  color: white; border: none; cursor: pointer;
  box-shadow: 0 4px 20px rgba(255, 107, 43, 0.4);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.livechat-toggle:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(255, 107, 43, 0.5); }

.livechat-online-dot {
  position: absolute; top: 4px; right: 4px;
  width: 14px; height: 14px; border-radius: 50%;
  background: #00b894; border: 2px solid white;
  animation: lchat-pulse 2s ease-in-out infinite;
}

.livechat-badge {
  position: absolute; top: -4px; left: -4px;
  background: #e74c3c; color: white; font-size: 11px; font-weight: 700;
  min-width: 20px; height: 20px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 5px;
}

/* Fenetre Live Chat */
.livechat-window {
  position: fixed; bottom: 96px; right: 24px; z-index: 9001;
  width: 380px; height: 520px;
  background: var(--bg, white); border-radius: 20px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.18);
  flex-direction: column; overflow: hidden;
  opacity: 0; transform: translateY(20px) scale(0.95);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.livechat-window.active { opacity: 1; transform: translateY(0) scale(1); }

/* Header */
.livechat-header {
  background: linear-gradient(135deg, #0a1628, #1a2d4a);
  color: white; padding: 16px 18px;
  display: flex; align-items: center; justify-content: space-between;
}
.livechat-header-left { display: flex; align-items: center; gap: 12px; }
.livechat-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.15); position: relative;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.livechat-status-dot {
  position: absolute; bottom: 0; right: 0;
  width: 12px; height: 12px; border-radius: 50%;
  background: #00b894; border: 2px solid #0a1628;
}

/* Messages */
.livechat-messages {
  flex: 1; overflow-y: auto; padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
  background: var(--surface, #f4f5f7);
}

/* Message items */
.lchat-msg { display: flex; gap: 8px; max-width: 85%; }
.lchat-client { align-self: flex-end; flex-direction: row-reverse; }
.lchat-operator { align-self: flex-start; }
.lchat-system { align-self: center; max-width: 90%; }

.lchat-system-text {
  background: rgba(0,0,0,0.06); padding: 6px 14px;
  border-radius: 12px; font-size: 0.78rem; color: var(--text-light);
  text-align: center;
}

.lchat-bubble {
  padding: 10px 14px; border-radius: 16px;
  font-size: 0.9rem; line-height: 1.5;
}
.lchat-bubble-client {
  background: linear-gradient(135deg, #ff6b2b, #e55a1b);
  color: white; border-bottom-right-radius: 4px;
}
.lchat-bubble-operator {
  background: white; color: var(--text);
  border: 1px solid var(--border-light);
  border-bottom-left-radius: 4px;
}

.lchat-op-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--primary); color: white; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.8rem;
}
.lchat-op-name { font-size: 0.75rem; font-weight: 700; color: var(--primary); margin-bottom: 2px; }
.lchat-time { font-size: 0.7rem; opacity: 0.6; margin-top: 4px; text-align: right; }
.lchat-bubble-client .lchat-time { color: rgba(255,255,255,0.7); }

/* Animation entree */
.lchat-animate { animation: lchat-slideIn 0.3s ease; }
@keyframes lchat-slideIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes lchat-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(0,184,148,0.4); } 50% { box-shadow: 0 0 0 6px rgba(0,184,148,0); } }

/* Typing indicator */
.livechat-typing {
  padding: 8px 16px; font-size: 0.8rem; color: var(--text-light);
  display: flex; align-items: center; gap: 6px;
  background: var(--surface, #f4f5f7);
}
.livechat-typing span {
  width: 6px; height: 6px; border-radius: 50%; background: var(--text-light);
  animation: lchat-typingDot 1.4s ease-in-out infinite;
}
.livechat-typing span:nth-child(2) { animation-delay: 0.2s; }
.livechat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes lchat-typingDot { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }

/* Input bar */
.livechat-input-bar {
  display: flex; gap: 8px; padding: 12px 16px;
  border-top: 1px solid var(--border-light);
  background: var(--bg, white);
}
.livechat-input-bar input {
  flex: 1; border: 1px solid var(--border-light); border-radius: 24px;
  padding: 10px 18px; font-size: 0.9rem; font-family: inherit;
  background: var(--surface, #f4f5f7); color: var(--text);
  transition: border-color 0.2s;
}
.livechat-input-bar input:focus { outline: none; border-color: var(--accent); }
.livechat-input-bar button {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--accent); color: white; border: none;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.livechat-input-bar button:hover { background: #e55a1b; transform: scale(1.05); }

/* Responsive */
@media (max-width: 480px) {
  .livechat-window { width: calc(100vw - 16px); right: 8px; bottom: 8px; height: 70vh; border-radius: 16px; }
  .livechat-toggle { bottom: 16px; right: 16px; width: 54px; height: 54px; }
}

/* Dark mode — Live Chat */
body.dark-mode .livechat-window { background: #0d1117; }
body.dark-mode .livechat-messages { background: #141a24; }
body.dark-mode .lchat-bubble-operator { background: #1a2030; border-color: #2a3040; color: #d0d5e0; }
body.dark-mode .lchat-system-text { background: rgba(255,255,255,0.06); color: #8890a0; }
body.dark-mode .livechat-input-bar { background: #0d1117; border-color: #2a3040; }
body.dark-mode .livechat-input-bar input { background: #141a24; border-color: #2a3040; color: #d0d5e0; }
body.dark-mode .livechat-typing { background: #141a24; }

/* ═══════════════════════════════════════════════════════════════
   SUIVI COMMANDE — TIMELINE
   ═══════════════════════════════════════════════════════════════ */

/* Timeline horizontale */
.tracking-timeline {
  display: flex; align-items: flex-start; justify-content: space-between;
  position: relative; padding: 10px 0 0; margin: 8px 0;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
}

.tracking-step {
  display: flex; flex-direction: column; align-items: center;
  flex: 1; min-width: 90px; position: relative; z-index: 1;
}

/* Dot */
.tracking-dot {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--surface); border: 3px solid var(--border-light);
  display: flex; align-items: center; justify-content: center;
  z-index: 2; transition: all 0.4s ease;
}
.tracking-dot-num {
  font-size: 0.7rem; font-weight: 700; color: var(--text-light);
}
.tracking-step.done .tracking-dot {
  border-color: transparent; box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.tracking-step.current .tracking-dot {
  transform: scale(1.2); box-shadow: 0 0 0 6px rgba(255, 107, 43, 0.15);
}

/* Ligne de connexion */
.tracking-line {
  position: absolute; top: 16px; left: calc(50% + 16px);
  width: calc(100% - 32px); height: 3px;
  background: var(--border-light); z-index: 0;
  transition: background 0.4s ease;
}
.tracking-line.done { background: var(--accent); }

/* Labels */
.tracking-label {
  margin-top: 10px; font-size: 0.72rem; font-weight: 600;
  color: var(--text-light); text-align: center;
  transition: color 0.3s;
}
.tracking-step.done .tracking-label { color: var(--text); }
.tracking-step.current .tracking-label { color: var(--accent); font-weight: 700; }

.tracking-date {
  font-size: 0.65rem; color: var(--text-light); opacity: 0.7;
  margin-top: 2px; text-align: center;
}

/* Badge statut */
.tracking-status {
  display: inline-block; padding: 4px 14px; border-radius: 20px;
  font-size: 0.8rem; font-weight: 700;
}
.tracking-status-nouvelle { background: #3498db20; color: #3498db; }
.tracking-status-en_cours { background: #f39c1220; color: #f39c12; }
.tracking-status-devis_envoye { background: #9b59b620; color: #9b59b6; }
.tracking-status-accepte { background: #27ae6020; color: #27ae60; }
.tracking-status-en_preparation { background: #e67e2220; color: #e67e22; }
.tracking-status-expedie { background: #2980b920; color: #2980b9; }
.tracking-status-livre { background: #00b89420; color: #00b894; }
.tracking-status-refuse { background: #e74c3c20; color: #e74c3c; }
.tracking-status-annule { background: #95a5a620; color: #95a5a6; }
/* Fabrication cartes mères */
.tracking-status-analyse { background: #9b59b620; color: #9b59b6; }
.tracking-status-devis { background: #ff6b2b20; color: #ff6b2b; }
.tracking-status-validation { background: #f39c1220; color: #f39c12; }
.tracking-status-prototypage { background: #16a08520; color: #16a085; }
.tracking-status-fabrication { background: #e67e2220; color: #e67e22; }
.tracking-status-tests { background: #2980b920; color: #2980b9; }
.tracking-status-expedition { background: #27ae6020; color: #27ae60; }
.tracking-status-livree { background: #00b89420; color: #00b894; }

/* Historique vertical */
.tracking-history {
  padding: 12px 0 0 20px; border-left: 2px solid var(--border-light);
  margin-left: 10px; margin-top: 12px;
}
.tracking-history-item {
  display: flex; gap: 12px; padding: 8px 0;
  position: relative;
}
.tracking-history-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0;
  margin-top: 5px; margin-left: -26px;
}

/* Responsive */
@media (max-width: 600px) {
  .tracking-timeline { gap: 4px; }
  .tracking-step { min-width: 70px; }
  .tracking-dot { width: 26px; height: 26px; }
  .tracking-line { top: 13px; left: calc(50% + 13px); width: calc(100% - 26px); }
  .tracking-label { font-size: 0.65rem; }
  .tracking-card { padding: 16px !important; }
}

/* Dark mode */
body.dark-mode .tracking-card { background: #141a24 !important; border-color: #2a3040 !important; }
body.dark-mode .tracking-dot { background: #1a2030; border-color: #2a3040; }
body.dark-mode .tracking-line { background: #2a3040; }
body.dark-mode .tracking-history { border-color: #2a3040; }
body.dark-mode .tracking-status-nouvelle { background: #3498db15; }
body.dark-mode .tracking-status-en_cours { background: #f39c1215; }
body.dark-mode .tracking-status-devis_envoye { background: #9b59b615; }
body.dark-mode .tracking-status-accepte { background: #27ae6015; }
body.dark-mode .tracking-status-en_preparation { background: #e67e2215; }
body.dark-mode .tracking-status-expedie { background: #2980b915; }
body.dark-mode .tracking-status-livre { background: #00b89415; }

/* ═══════════════════════════════════════════════════════════════
   AVIS AVEC PHOTOS
   ═══════════════════════════════════════════════════════════════ */

/* Carte avis */
.avis-card {
  padding: 20px; background: var(--surface);
  border-radius: 14px; border: 1px solid var(--border-light);
  transition: box-shadow 0.2s;
}
.avis-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.06); }

/* Badge verifie */
.avis-verified-badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: #00b89415; color: #00b894;
  padding: 2px 10px; border-radius: 12px;
  font-size: 0.72rem; font-weight: 700;
}
.avis-verified-badge::before {
  content: '\2713'; font-weight: 900;
}

/* Grille photos dans un avis */
.avis-photos-grid {
  display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap;
}
.avis-photo-thumb {
  width: 80px; height: 80px; object-fit: cover;
  border-radius: 10px; cursor: pointer;
  border: 1px solid var(--border-light);
  transition: transform 0.2s, box-shadow 0.2s;
}
.avis-photo-thumb:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Zone drop upload */
.avis-photo-dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 20px; border: 2px dashed var(--border-light);
  border-radius: 12px; cursor: pointer;
  transition: all 0.2s; background: var(--bg);
  min-height: 80px;
}
.avis-photo-dropzone:hover, .avis-photo-dropzone.dragover {
  border-color: var(--accent); background: rgba(255, 107, 43, 0.04);
}

/* Preview photos */
.avis-photo-preview {
  display: flex; gap: 10px; align-items: center;
  flex-wrap: wrap; margin-top: 10px;
}
.avis-photo-preview-item {
  position: relative; width: 72px; height: 72px;
  border-radius: 10px; overflow: hidden;
  border: 2px solid var(--border-light);
}
.avis-photo-preview-item img {
  width: 100%; height: 100%; object-fit: cover;
}
.avis-photo-remove {
  position: absolute; top: -2px; right: -2px;
  width: 22px; height: 22px; border-radius: 50%;
  background: #e74c3c; color: white; border: none;
  font-size: 14px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}
.avis-photo-remove:hover { background: #c0392b; }

/* Responsive */
@media (max-width: 480px) {
  .avis-photo-thumb { width: 60px; height: 60px; }
  .avis-photo-preview-item { width: 60px; height: 60px; }
}

/* Dark mode */
body.dark-mode .avis-card { background: #141a24; border-color: #2a3040; }
body.dark-mode .avis-photo-dropzone { background: #1a2030; border-color: #2a3040; }
body.dark-mode .avis-photo-dropzone:hover, body.dark-mode .avis-photo-dropzone.dragover { border-color: var(--accent); background: rgba(255,107,43,0.06); }
body.dark-mode .avis-photo-thumb { border-color: #2a3040; }
body.dark-mode .avis-photo-preview-item { border-color: #2a3040; }
body.dark-mode .avis-verified-badge { background: #00b89410; }

/* ═══════════════════════════════════════════════════════════════
   PROGRAMME DE FIDELITE
   ═══════════════════════════════════════════════════════════════ */

/* Carte fidélité */
.fidelite-card {
  background: var(--surface); border-radius: 16px; padding: 24px;
  border: 1px solid var(--border-light);
}

/* Barre de progression */
.fidelite-progress-bar {
  width: 100%; height: 10px; background: var(--border-light);
  border-radius: 5px; overflow: hidden;
}
.fidelite-progress-fill {
  height: 100%; border-radius: 5px;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Liste avantages */
.fidelite-advantages { list-style: none; padding: 0; margin: 0; }
.fidelite-advantages li {
  padding: 8px 0; border-bottom: 1px solid var(--border-light);
  font-size: 0.88rem; color: var(--text-light);
  display: flex; align-items: center; gap: 8px;
}
.fidelite-advantages li::before {
  content: '\2713'; color: #00b894; font-weight: 700; font-size: 0.9rem;
}
.fidelite-advantages li:last-child { border-bottom: none; }

/* Liste comment gagner */
.fidelite-earn-list { list-style: none; padding: 0; margin: 0; }
.fidelite-earn-list li {
  padding: 8px 0; border-bottom: 1px solid var(--border-light);
  font-size: 0.88rem; display: flex; justify-content: space-between; align-items: center;
}
.fidelite-earn-list li:last-child { border-bottom: none; }

/* Paliers en ligne */
.fidelite-tiers {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 28px;
}
.fidelite-tier {
  text-align: center; padding: 20px 12px; border-radius: 14px;
  border: 2px solid var(--border-light); background: var(--surface);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.fidelite-tier:hover { transform: translateY(-4px); }
.fidelite-tier.current { background: var(--bg); }

/* Historique */
.fidelite-history { display: flex; flex-direction: column; gap: 8px; }
.fidelite-history-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; background: var(--surface);
  border-radius: 12px; border: 1px solid var(--border-light);
  transition: background 0.2s;
}
.fidelite-history-item:hover { background: var(--bg); }
.fidelite-history-icon {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.1rem; flex-shrink: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .fidelite-tiers { grid-template-columns: repeat(2, 1fr); }
  .fidelite-hero > div { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .fidelite-tiers { grid-template-columns: 1fr 1fr; gap: 8px; }
  .fidelite-tier { padding: 14px 8px; }
  .fidelite-card { padding: 16px; }
}

/* Dark mode */
body.dark-mode .fidelite-card { background: #141a24; border-color: #2a3040; }
body.dark-mode .fidelite-tier { background: #141a24; border-color: #2a3040; }
body.dark-mode .fidelite-tier.current { background: #1a2030; }
body.dark-mode .fidelite-history-item { background: #141a24; border-color: #2a3040; }
body.dark-mode .fidelite-history-item:hover { background: #1a2030; }
body.dark-mode .fidelite-progress-bar { background: #2a3040; }
body.dark-mode .fidelite-advantages li { border-color: #2a3040; }
body.dark-mode .fidelite-earn-list li { border-color: #2a3040; }

/* ═══════════════════════════════════════════════════════════════
   CONFIGURATEUR PRODUIT
   ═══════════════════════════════════════════════════════════════ */

.configurateur-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px;
}

/* Groupe d'options */
.config-group {
  background: var(--surface); border-radius: 14px; padding: 20px;
  border: 1px solid var(--border-light);
}
.config-group-title {
  font-size: 0.9rem; font-weight: 700; color: var(--text);
  margin: 0 0 14px; padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
}

/* Choix */
.config-choices { display: flex; flex-direction: column; gap: 8px; }
.config-choice {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 10px;
  border: 1px solid var(--border-light);
  cursor: pointer; transition: all 0.2s;
  background: var(--bg);
}
.config-choice:hover { border-color: var(--accent); background: rgba(255, 107, 43, 0.03); }
.config-choice:has(input:checked) {
  border-color: var(--accent); background: rgba(255, 107, 43, 0.06);
  box-shadow: 0 0 0 2px rgba(255, 107, 43, 0.15);
}

.config-choice input[type="radio"],
.config-choice input[type="checkbox"] {
  width: 18px; height: 18px; accent-color: var(--accent); cursor: pointer; flex-shrink: 0;
}

.config-choice-content {
  flex: 1; display: flex; justify-content: space-between; align-items: center; gap: 8px;
}
.config-choice-label { font-size: 0.88rem; color: var(--text); }
.config-choice-price {
  font-size: 0.8rem; font-weight: 700; color: var(--accent);
  white-space: nowrap;
}

/* Recap prix */
.configurateur-recap {
  margin-top: 20px; padding: 24px; background: var(--surface);
  border-radius: 16px; border: 2px solid var(--accent);
  display: flex; gap: 28px; align-items: flex-start;
}
.config-recap-left { flex: 1; }
.config-recap-right { width: 200px; flex-shrink: 0; }

.config-recap-line {
  display: flex; justify-content: space-between; padding: 6px 0;
  font-size: 0.85rem; color: var(--text-light);
  border-bottom: 1px solid var(--border-light);
}
.config-recap-total {
  display: flex; justify-content: space-between; padding: 12px 0 0;
  font-size: 1.2rem; font-weight: 800; color: var(--accent);
  border-top: 2px solid var(--accent); margin-top: 8px;
}

.config-qty-btn {
  width: 32px; height: 32px; border-radius: 8px;
  border: 1px solid var(--border-light); background: var(--bg);
  font-size: 1.1rem; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; color: var(--text);
}
.config-qty-btn:hover { background: var(--accent); color: white; border-color: var(--accent); }

/* Responsive */
@media (max-width: 768px) {
  .configurateur-recap { flex-direction: column; }
  .config-recap-right { width: 100%; }
  .configurateur-grid { grid-template-columns: 1fr; }
}

/* Dark mode */
body.dark-mode .config-group { background: #141a24; border-color: #2a3040; }
body.dark-mode .config-choice { background: #1a2030; border-color: #2a3040; }
body.dark-mode .config-choice:hover { border-color: var(--accent); background: rgba(255,107,43,0.06); }
body.dark-mode .configurateur-recap { background: #141a24; border-color: var(--accent); }
body.dark-mode .config-recap-line { border-color: #2a3040; }
body.dark-mode .config-qty-btn { background: #1a2030; border-color: #2a3040; color: #d0d5e0; }

/* ═══════════════════════════════════════════════════════════════
   CARRIERES / RECRUTEMENT
   ═══════════════════════════════════════════════════════════════ */

.carriere-value-card {
  background: var(--bg); border-radius: 14px; padding: 24px;
  border: 1px solid var(--border-light); text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.carriere-value-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.carriere-value-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin: 0 auto 12px;
}
.carriere-value-card h4 { font-size: 0.95rem; font-weight: 700; margin: 0 0 6px; }
.carriere-value-card p { font-size: 0.82rem; color: var(--text-light); margin: 0; line-height: 1.5; }

/* Carte offre */
.carriere-offre-card {
  background: var(--surface); border-radius: 14px; padding: 22px 24px;
  border: 1px solid var(--border-light); cursor: pointer;
  transition: all 0.2s;
}
.carriere-offre-card:hover { border-color: var(--accent); transform: translateX(4px); box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.carriere-offre-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.carriere-offre-titre { font-size: 1.05rem; font-weight: 700; margin: 0 0 4px; color: var(--text); }
.carriere-offre-meta { display: flex; gap: 16px; font-size: 0.8rem; color: var(--text-light); flex-wrap: wrap; }
.carriere-offre-desc { font-size: 0.88rem; color: var(--text-light); line-height: 1.5; margin: 0 0 12px; }
.carriere-offre-footer { display: flex; justify-content: space-between; align-items: center; }
.carriere-voir-plus { font-size: 0.85rem; font-weight: 600; color: var(--accent); }

.carriere-type-badge {
  display: inline-block; padding: 4px 12px; border-radius: 16px;
  font-size: 0.78rem; font-weight: 700; white-space: nowrap;
}

/* Responsive */
@media (max-width: 600px) {
  .carriere-offre-header { flex-direction: column; }
  #candidature-form-spontanee > div:first-child { grid-template-columns: 1fr !important; }
}

/* Dark mode */
body.dark-mode .carriere-value-card { background: #141a24; border-color: #2a3040; }
body.dark-mode .carriere-offre-card { background: #141a24; border-color: #2a3040; }
body.dark-mode .carriere-offre-card:hover { border-color: var(--accent); }
body.dark-mode #candidature-form-spontanee { background: #141a24 !important; border-color: #2a3040 !important; }
body.dark-mode #candidature-form-spontanee input,
body.dark-mode #candidature-form-spontanee textarea { background: #1a2030 !important; border-color: #2a3040 !important; color: #d0d5e0 !important; }

/* ═══════════════════════════════════════════════════════════════
   PARTAGE RESEAUX SOCIAUX
   ═══════════════════════════════════════════════════════════════ */
.share-buttons { display: flex; align-items: center; gap: 8px; margin: 12px 0; flex-wrap: wrap; }
.share-label { font-size: 0.8rem; font-weight: 600; color: var(--text-light); margin-right: 4px; }
.share-btn {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border-light);
  background: var(--surface); color: var(--text-light); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.share-btn:hover { transform: scale(1.1); }
.share-facebook:hover { background: #1877F2; color: white; border-color: #1877F2; }
.share-twitter:hover { background: #1DA1F2; color: white; border-color: #1DA1F2; }
.share-linkedin:hover { background: #0A66C2; color: white; border-color: #0A66C2; }
.share-whatsapp:hover { background: #25D366; color: white; border-color: #25D366; }
.share-copy:hover { background: var(--accent); color: white; border-color: var(--accent); }
body.dark-mode .share-btn { background: #1a2030; border-color: #2a3040; }

/* ═══════════════════════════════════════════════════════════════
   CENTRE D'AIDE
   ═══════════════════════════════════════════════════════════════ */
.aide-cat-card {
  background: var(--surface); border-radius: 12px; padding: 16px;
  border: 2px solid var(--border-light); cursor: pointer;
  text-align: center; transition: all 0.2s;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.aide-cat-card:hover { transform: translateY(-3px); box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.aide-cat-card.active { border-width: 2px; box-shadow: 0 0 0 3px rgba(255,107,43,0.15); }

.aide-article {
  background: var(--surface); border-radius: 12px; margin-bottom: 8px;
  border: 1px solid var(--border-light); overflow: hidden;
}
.aide-article-title {
  padding: 18px 20px; cursor: pointer; font-weight: 600; font-size: 0.95rem;
  display: flex; justify-content: space-between; align-items: center;
  list-style: none; color: var(--text);
}
.aide-article-title::-webkit-details-marker { display: none; }
.aide-article-title:hover { color: var(--accent); }
.aide-chevron { transition: transform 0.2s; flex-shrink: 0; }
.aide-article[open] .aide-chevron { transform: rotate(180deg); }
.aide-article-content {
  padding: 0 20px 20px; font-size: 0.9rem; color: var(--text-light); line-height: 1.7;
}
#aideSearchInput::placeholder { color: rgba(255,255,255,0.4); }

body.dark-mode .aide-cat-card { background: #141a24; border-color: #2a3040; }
body.dark-mode .aide-article { background: #141a24; border-color: #2a3040; }
body.dark-mode #aideSearchInput { background: rgba(255,255,255,0.08) !important; }

/* ═══════════════════════════════════════════════════════════════
   SELECTEUR MULTI-DEVISES
   ═══════════════════════════════════════════════════════════════ */
.currency-selector { position: relative; }
.currency-toggle {
  display: flex; align-items: center; gap: 4px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
  color: white; padding: 6px 12px; border-radius: 8px;
  font-size: 0.8rem; font-weight: 700; cursor: pointer;
  transition: all 0.2s;
}
.currency-toggle:hover { background: rgba(255,255,255,0.15); }
.currency-menu {
  display: none; position: absolute; top: 100%; right: 0; margin-top: 6px;
  background: var(--bg, white); border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  border: 1px solid var(--border-light); overflow: hidden; z-index: 100;
  min-width: 100px;
}
.currency-menu.active { display: block; }
.currency-option {
  display: block; width: 100%; padding: 10px 16px; border: none;
  background: none; text-align: left; font-size: 0.85rem;
  cursor: pointer; color: var(--text); font-weight: 600;
}
.currency-option:hover { background: var(--surface); color: var(--accent); }

body.dark-mode .currency-menu { background: #0d1117; border-color: #2a3040; }
body.dark-mode .currency-option:hover { background: #141a24; }

/* ═══════════════════════════════════════════════════════════════
   SHOWROOM VIRTUEL / VISIO
   ═══════════════════════════════════════════════════════════════ */

/* Etapes showroom */
.showroom-step-card {
  background: var(--bg); border-radius: 14px; padding: 24px 16px;
  border: 1px solid var(--border-light);
}
.showroom-step-num {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent); color: white; font-weight: 800; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 12px;
}
.showroom-step-card h4 { font-size: 0.95rem; font-weight: 700; margin: 0 0 6px; }
.showroom-step-card p { font-size: 0.82rem; color: var(--text-light); margin: 0; line-height: 1.5; }

/* Zone cards */
.showroom-zone-card {
  background: var(--surface); border-radius: 16px; padding: 24px;
  border: 1px solid var(--border-light); cursor: pointer;
  transition: all 0.3s; position: relative;
}
.showroom-zone-card:hover { transform: translateY(-6px); box-shadow: 0 12px 32px rgba(0,0,0,0.1); }
.showroom-zone-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.showroom-zone-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
}
.showroom-zone-count {
  padding: 4px 12px; border-radius: 16px; font-size: 0.75rem; font-weight: 700;
}
.showroom-zone-title { font-size: 1.1rem; font-weight: 700; margin: 0 0 8px; color: var(--text); }
.showroom-zone-desc { font-size: 0.85rem; color: var(--text-light); line-height: 1.5; margin: 0 0 16px; }
.showroom-zone-actions { display: flex; gap: 8px; }
.showroom-zone-btn {
  padding: 8px 16px; border-radius: 8px; font-size: 0.82rem; font-weight: 600;
  border: 1px solid var(--border-light); background: var(--bg);
  color: var(--text); cursor: pointer; transition: all 0.2s;
  display: flex; align-items: center; gap: 6px;
}
.showroom-zone-btn:hover { border-color: var(--accent); color: var(--accent); }
.showroom-zone-btn.visio { background: #3498db10; border-color: #3498db40; color: #3498db; }
.showroom-zone-btn.visio:hover { background: #3498db; color: white; }

/* Bouton demo visio sur page produit */
.btn-demo-visio:hover { background: #3498db !important; color: white !important; border-color: #3498db !important; }

/* Badge visio status */
.visio-status-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.1); padding: 6px 14px; border-radius: 20px;
  font-size: 0.8rem; animation: visio-pulse 2s ease-in-out infinite;
}
@keyframes visio-pulse { 0%, 100% { opacity: 0.7; } 50% { opacity: 1; } }

/* Responsive */
@media (max-width: 768px) {
  .showroom-zone-card { padding: 18px; }
  .showroom-zone-actions { flex-direction: column; }
}

/* Dark mode */
body.dark-mode .showroom-step-card { background: #141a24; border-color: #2a3040; }
body.dark-mode .showroom-zone-card { background: #141a24; border-color: #2a3040; }
body.dark-mode .showroom-zone-btn { background: #1a2030; border-color: #2a3040; color: #d0d5e0; }
body.dark-mode .btn-demo-visio { background: #3498db10 !important; }

/* Boutons categories catalogue */
.cat-filter-btn.active { color: white !important; }
body.dark-mode .cat-filter-btn { background: #1a2030 !important; }
body.dark-mode .cat-filter-btn.active { color: white !important; }


/* Images sondes dans le configurateur */
.config-choice-img {
  width: 56px; height: 56px; object-fit: contain; border-radius: 8px;
  background: white; border: 1px solid var(--border-light); flex-shrink: 0;
}
.config-choice-with-img {
  display: flex; align-items: center; gap: 12px;
}
.config-choice-with-img .config-choice-content {
  flex: 1;
}
@media (max-width: 480px) {
  .config-choice-img { width: 44px; height: 44px; }
}
body.dark-mode .config-choice-img { background: #1a2030; border-color: #2a3040; }

/* ============================================================
   Page transitions (fade-in)
   ============================================================ */
.page-fade-in {
    animation: pageFadeIn 0.35s ease-out;
}
@keyframes pageFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   Showroom zone card animation (staggered entrance)
   ============================================================ */
.showroom-zone-animate {
    animation: showroomZoneSlideIn 0.5s ease-out both;
}
@keyframes showroomZoneSlideIn {
    from { opacity: 0; transform: translateY(24px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ============================================================
   Visio join button (RDV)
   ============================================================ */
.btn-visio-join {
    background: #00b894 !important;
    color: white !important;
    font-weight: 700;
    border-radius: 8px;
    transition: all 0.3s;
}
.btn-visio-join:hover {
    background: #00a383 !important;
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(0, 184, 148, 0.35);
}
.btn-visio-pulse {
    animation: visioPulse 1.5s ease-in-out infinite;
}
@keyframes visioPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 184, 148, 0.5); }
    50% { box-shadow: 0 0 0 10px rgba(0, 184, 148, 0); }
}
.rdv-countdown {
    animation: countdownBlink 2s ease-in-out infinite;
}
@keyframes countdownBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* ============================================================
   Skeleton loading (shimmer)
   ============================================================ */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ============================================================
   Cart badge enhanced
   ============================================================ */
.cart-count {
    font-weight: 800;
    font-size: 0.7rem;
    line-height: 22px;
    text-align: center;
}

/* ============================================================
   Skeleton dashboard loading
   ============================================================ */
.skeleton-dashboard { padding: 24px 0; }
.skel-dash-row {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px;
}
.skel-dash-card {
    height: 100px; border-radius: 12px;
    background: linear-gradient(90deg, var(--border-light) 25%, var(--bg) 50%, var(--border-light) 75%);
    background-size: 200% 100%; animation: shimmer 1.5s infinite;
}
.skel-dash-block {
    height: 200px; border-radius: 12px;
    background: linear-gradient(90deg, var(--border-light) 25%, var(--bg) 50%, var(--border-light) 75%);
    background-size: 200% 100%; animation: shimmer 1.5s infinite;
}
@media (max-width: 768px) {
    .skel-dash-row { grid-template-columns: 1fr; }
}

/* ============================================================
   Devis PDF - Modal de confirmation
   ============================================================ */
.devis-pdf-success-modal {
    text-align: center;
    padding: 40px 32px 32px;
}
.devis-pdf-success-header {
    margin-bottom: 32px;
}
.devis-pdf-success-icon {
    width: 80px; height: 80px; border-radius: 50%;
    background: rgba(0, 184, 148, 0.1);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
    animation: devisPdfPulse 2s ease-in-out infinite;
}
.devis-pdf-success-title {
    font-size: 1.5rem; font-weight: 800;
    color: var(--primary, #0a1628);
    margin: 0 0 8px;
}
.devis-pdf-success-numero {
    font-size: 1.1rem; font-weight: 700;
    color: var(--accent, #ff6b2b);
    background: var(--accent-light, rgba(255, 107, 43, 0.1));
    display: inline-block; padding: 6px 20px;
    border-radius: 20px; margin: 0 0 12px;
    letter-spacing: 1px;
}
.devis-pdf-success-montant {
    font-size: 1.3rem; font-weight: 800;
    color: var(--primary, #0a1628);
    margin: 0 0 8px;
}
.devis-pdf-success-message {
    font-size: 0.9rem;
    color: var(--text-light, #6c757d);
    margin: 0;
}
.devis-pdf-success-actions {
    display: flex; flex-direction: column;
    gap: 12px; margin-bottom: 24px;
    max-width: 340px; margin-left: auto; margin-right: auto;
}
.devis-pdf-btn-download {
    display: flex; align-items: center; justify-content: center;
    gap: 10px; padding: 14px 24px;
    background: linear-gradient(135deg, #ff6b2b, #ff8f5e);
    color: white; border: none; border-radius: 12px;
    font-weight: 700; font-size: 1rem;
    text-decoration: none; cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 107, 43, 0.3);
    transition: all 0.3s ease;
}
.devis-pdf-btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 43, 0.4);
    color: white; text-decoration: none;
}
.devis-pdf-btn-espace {
    display: flex; align-items: center; justify-content: center;
    gap: 10px; padding: 12px 24px;
    background: linear-gradient(135deg, #0a1628, #1a3a5c);
    color: white; border: none; border-radius: 12px;
    font-weight: 600; font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(10, 22, 40, 0.2);
    transition: all 0.3s ease;
}
.devis-pdf-btn-espace:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(10, 22, 40, 0.3);
}
.devis-pdf-btn-close {
    padding: 10px 24px;
    background: transparent; color: var(--text-light, #6c757d);
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 12px; font-weight: 600;
    font-size: 0.9rem; cursor: pointer;
    transition: all 0.3s ease;
}
.devis-pdf-btn-close:hover {
    background: var(--bg, #f5f7fa);
    border-color: var(--text-light, #6c757d);
}
.devis-pdf-success-footer {
    font-size: 0.8rem;
    color: var(--text-muted, #9ca3af);
    margin: 0;
}
@keyframes devisPdfPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 184, 148, 0.2); }
    50% { box-shadow: 0 0 0 15px rgba(0, 184, 148, 0); }
}
@keyframes devisPdfSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.devis-pdf-spin {
    animation: devisPdfSpin 1s linear infinite;
}
@media (max-width: 480px) {
    .devis-pdf-success-modal { padding: 28px 20px 24px; }
    .devis-pdf-success-title { font-size: 1.2rem; }
    .devis-pdf-success-montant { font-size: 1.1rem; }
}

/* ================================================================
   PWA  -  Indicateur de connexion + bouton d'installation
   ================================================================ */
.pwa-net-status {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9998;
    background: #e74c3c;
    color: #fff;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    animation: pwa-slide-down 0.3s ease-out;
}
.pwa-net-status .pwa-net-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fff;
    animation: pwa-pulse 1.5s ease-in-out infinite;
}
.pwa-net-status.offline { background: #e74c3c; }
.pwa-net-status.online  { background: #00b894; }

@keyframes pwa-slide-down {
    from { transform: translateY(-100%); }
    to   { transform: translateY(0); }
}
@keyframes pwa-pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.35; }
}

.pwa-install-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9997;
    min-height: 56px;
    min-width: 56px;
    padding: 14px 22px;
    background: linear-gradient(135deg, #ff6b2b 0%, #e65a1f 100%);
    color: #fff;
    border: none;
    border-radius: 28px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(255, 107, 43, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
}
.pwa-install-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(255, 107, 43, 0.6);
}
.pwa-install-btn:active { transform: translateY(0); }

@media (max-width: 600px) {
    .pwa-install-btn {
        bottom: 16px;
        right: 16px;
        padding: 12px 18px;
        font-size: 14px;
    }
}

/* Optimisations tactiles pour bornes grand ecran
   (elargit les cibles d'interaction sans casser le layout existant) */
@media (pointer: coarse) {
    button, .btn, .nav-link, a[role="button"], input[type="submit"] {
        min-height: 44px;
    }
    input, select, textarea { font-size: 16px; /* evite zoom iOS */ }
}

/* Mode standalone (PWA installee) - retirer l'eventuel padding du bandeau */
@media (display-mode: standalone) {
    body { padding-top: env(safe-area-inset-top); }
    .promo-banner { display: none !important; }
}

/* ================================================================
   ROTATION AUTOMATIQUE  -  adaptation portrait/paysage
   ================================================================ */
body.orientation-portrait .pwa-install-btn {
    bottom: 90px;
}
body.orientation-landscape .pwa-install-btn {
    bottom: 20px;
}

/* Paysage sur tablette / borne horizontale : navigation plus large */
@media (orientation: landscape) and (min-width: 900px) {
    .container { max-width: 1600px; }
    .catalogue-grid,
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    }
}

/* Portrait sur tablette / borne verticale : colonnes plus etroites */
@media (orientation: portrait) and (min-width: 700px) {
    .catalogue-grid,
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
    }
    .nav { flex-wrap: wrap; justify-content: center; }
}

/* Transition fluide lors d'une rotation (evite les sauts) */
.container,
.catalogue-grid,
.products-grid,
.nav {
    transition: grid-template-columns 0.3s ease, max-width 0.3s ease;
}

/* ================================================================
   RAPPEL COMMERCIAL  -  Bouton flottant + Modal
   ================================================================ */
.rappel-fab {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 9997;
    min-height: 56px;
    padding: 14px 22px;
    background: linear-gradient(135deg, #00b894 0%, #00a383 100%);
    color: #fff;
    border: none;
    border-radius: 28px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 184, 148, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
}
.rappel-fab:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 184, 148, 0.6);
}
@media (max-width: 600px) {
    .rappel-fab { bottom: 16px; left: 16px; padding: 12px 18px; font-size: 14px; }
}

.rappel-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(10, 22, 40, 0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
    animation: rappel-fade-in 0.3s ease-out;
}
.rappel-modal[hidden] {
    display: none !important;
}
@keyframes rappel-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.rappel-modal-content {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    max-width: 540px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
    animation: rappel-pop-in 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes rappel-pop-in {
    from { transform: scale(0.9) translateY(20px); opacity: 0; }
    to   { transform: scale(1) translateY(0); opacity: 1; }
}
.rappel-modal-content h2 {
    color: #0a1628;
    font-size: 1.5rem;
    margin: 0 0 8px 0;
    padding-right: 40px;
}
.rappel-modal-subtitle {
    color: #6c757d;
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.5;
}
.rappel-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 32px;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    width: 40px;
    height: 40px;
}
.rappel-modal-close:hover { color: #0a1628; }
.rappel-modal-content label {
    display: block;
    font-weight: 600;
    color: #0a1628;
    margin: 14px 0 6px;
    font-size: 0.95rem;
}
.rappel-modal-content input,
.rappel-modal-content textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.2s;
}
.rappel-modal-content input:focus,
.rappel-modal-content textarea:focus {
    outline: none;
    border-color: #ff6b2b;
}
.rappel-favoris-label {
    font-weight: 600;
    color: #0a1628;
    margin: 16px 0 8px;
    font-size: 0.9rem;
}
.rappel-favoris-items {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}
.rappel-favori-chip {
    background: #fff3e0;
    color: #ff6b2b;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.85rem;
    font-weight: 500;
}
.rappel-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}
.rappel-modal-actions .btn-primary {
    background: #ff6b2b;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    min-height: 48px;
}
.rappel-modal-actions .btn-primary:hover { background: #e65a1f; }
.rappel-modal-actions .btn-secondary {
    background: #f1f3f5;
    color: #495057;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    min-height: 48px;
}
.rappel-success {
    text-align: center;
    padding: 20px 0;
}
.rappel-success-icon {
    font-size: 72px;
    margin-bottom: 12px;
}
.rappel-success h3 {
    color: #00b894;
    margin: 0 0 8px;
    font-size: 1.4rem;
}
.rappel-success p {
    color: #6c757d;
    margin-bottom: 20px;
}

/* ================================================================
   SCREENSAVER (Attract mode) - Borne showroom
   ================================================================ */
.matrix-screensaver {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: linear-gradient(135deg, #0a1628 0%, #142842 50%, #1a3253 100%);
    display: none;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.matrix-screensaver.active { display: flex; animation: ss-fade-in 0.8s ease-out; }
@keyframes ss-fade-in { from { opacity: 0; } to { opacity: 1; } }

.matrix-screensaver .ss-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 107, 43, 0.15), transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 184, 148, 0.12), transparent 50%);
}
.matrix-screensaver .ss-content {
    position: relative;
    text-align: center;
    color: #fff;
    max-width: 800px;
    padding: 40px;
}
.matrix-screensaver .ss-logo {
    width: 180px;
    height: auto;
    margin-bottom: 24px;
    filter: drop-shadow(0 4px 20px rgba(255, 107, 43, 0.4));
    animation: ss-logo-pulse 3s ease-in-out infinite;
}
@keyframes ss-logo-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}
.matrix-screensaver .ss-title {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 12px;
    background: linear-gradient(90deg, #ff6b2b, #ffa574);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.matrix-screensaver .ss-subtitle {
    font-size: 1.2rem;
    opacity: 0.85;
    margin-bottom: 40px;
}
.matrix-screensaver .ss-product {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    min-height: 250px;
}
.matrix-screensaver .ss-product-img {
    width: 260px;
    height: 260px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 20px;
    transition: opacity 0.5s ease;
    opacity: 0;
}
.matrix-screensaver .ss-product-img.fade-in {
    opacity: 1;
}
.matrix-screensaver .ss-product-info { text-align: left; max-width: 340px; }
.matrix-screensaver .ss-product-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.matrix-screensaver .ss-product-price {
    font-size: 1.3rem;
    color: #ff6b2b;
    font-weight: 700;
}
.matrix-screensaver .ss-cta {
    display: inline-block;
    padding: 16px 32px;
    background: linear-gradient(135deg, #ff6b2b, #e65a1f);
    color: #fff;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    box-shadow: 0 8px 30px rgba(255, 107, 43, 0.5);
    animation: ss-cta-bounce 2s ease-in-out infinite;
}
@keyframes ss-cta-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
.matrix-screensaver .ss-pulse {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 120px;
    border: 3px solid rgba(255, 107, 43, 0.3);
    border-radius: 50%;
    animation: ss-pulse-ring 2s ease-out infinite;
}
@keyframes ss-pulse-ring {
    0%   { transform: translateX(-50%) scale(0.8); opacity: 1; }
    100% { transform: translateX(-50%) scale(2.5); opacity: 0; }
}
@media (max-width: 768px) {
    .matrix-screensaver .ss-product { flex-direction: column; gap: 20px; }
    .matrix-screensaver .ss-title { font-size: 2.2rem; }
    .matrix-screensaver .ss-product-img { width: 200px; height: 200px; }
}

/* ================================================================
   POPUP D'AIDE (detection abandon)
   ================================================================ */
.matrix-help-popup {
    position: fixed;
    bottom: 90px;
    right: 24px;
    z-index: 9996;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(10, 22, 40, 0.25);
    padding: 16px 20px;
    display: none;
    align-items: center;
    gap: 14px;
    max-width: 400px;
    border-left: 5px solid #ff6b2b;
    animation: hp-slide-in 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.matrix-help-popup.show { display: flex; }
@keyframes hp-slide-in {
    from { transform: translateX(120%); opacity: 0; }
    to   { transform: translateX(0); opacity: 1; }
}
.matrix-help-popup .hp-icon { font-size: 40px; }
.matrix-help-popup .hp-content { flex: 1; min-width: 0; }
.matrix-help-popup .hp-title { font-weight: 700; color: #0a1628; font-size: 1rem; margin-bottom: 2px; }
.matrix-help-popup .hp-subtitle { color: #6c757d; font-size: 0.88rem; }
.matrix-help-popup .hp-btn-call {
    background: #00b894;
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    min-height: 44px;
}
.matrix-help-popup .hp-btn-call:hover { background: #00a383; }
.matrix-help-popup .hp-btn-close {
    position: absolute;
    top: 4px;
    right: 8px;
    background: none;
    border: none;
    font-size: 22px;
    color: #adb5bd;
    cursor: pointer;
    padding: 4px 8px;
}
@media (max-width: 600px) {
    .matrix-help-popup { bottom: 80px; right: 12px; left: 12px; max-width: none; }
}

/* ================================================================
   PARTAGE QR (envoyer sur telephone)
   ================================================================ */
.matrix-share-qr-btn {
    position: fixed;
    top: 90px;
    right: 24px;
    z-index: 9995;
    padding: 10px 16px;
    background: #fff;
    color: #0a1628;
    border: 2px solid #0a1628;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-height: 44px;
}
.matrix-share-qr-btn:hover { background: #0a1628; color: #fff; }
@media (max-width: 768px) {
    .matrix-share-qr-btn { top: 70px; right: 12px; font-size: 0.8rem; padding: 8px 12px; }
}

.matrix-share-qr-modal {
    position: fixed;
    inset: 0;
    z-index: 10001;
    background: rgba(10, 22, 40, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(6px);
}
.matrix-share-qr-modal[hidden] {
    display: none !important;
}
.matrix-share-qr-modal .sqm-content {
    background: #fff;
    border-radius: 16px;
    padding: 36px;
    max-width: 440px;
    text-align: center;
    position: relative;
}
.matrix-share-qr-modal .sqm-close {
    position: absolute;
    top: 10px;
    right: 16px;
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: #6c757d;
}
.matrix-share-qr-modal h2 { color: #0a1628; margin-bottom: 8px; font-size: 1.3rem; }
.matrix-share-qr-modal p { color: #6c757d; margin-bottom: 20px; }
.matrix-share-qr-modal .sqm-qr-container img {
    width: 260px; height: 260px;
    border: 4px solid #ff6b2b;
    border-radius: 12px;
}
.matrix-share-qr-modal .sqm-url {
    margin-top: 16px;
    font-family: monospace;
    font-size: 0.85rem;
    color: #6c757d;
    word-break: break-all;
}

/* ================================================================
   PROMO PUSH LIVE (SSE)
   ================================================================ */
.matrix-promo-live {
    position: fixed;
    top: -80px;
    left: 0;
    right: 0;
    z-index: 10002;
    padding: 14px 20px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    transition: top 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    font-size: 1rem;
}
.matrix-promo-live.show { top: 0; }
.matrix-promo-live .mpl-content { flex: 1; min-width: 0; }
.matrix-promo-live .mpl-cta {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 700;
    white-space: nowrap;
}
.matrix-promo-live .mpl-cta:hover { background: rgba(255, 255, 255, 0.4); }
.matrix-promo-live .mpl-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    opacity: 0.85;
    padding: 4px 10px;
}
