/* ==========================================
   ZYQTRON V4 — Site Définitif
   Design: Premium, sobre, nuit étoilée / or
   Mise à jour : Mai 2026
   ========================================== */

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

:root {
  --bg: #080c12;
  --bg-alt: #0c121a;
  --bg-card: #111a24;
  --bg-hover: #162231;
  --border: #1a2a3a;
  --border-light: #253a50;
  --gold: #c89b3c;
  --gold-light: #dbb85a;
  --gold-dark: #a07a2a;
  --gold-glow: rgba(200,155,60,0.08);
  --text: #c8ced6;
  --text-light: #8899aa;
  --text-heading: #e8ecf0;
  --white: #ffffff;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 2px 12px rgba(0,0,0,0.3);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.5);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-w: 1140px;
  --header-h: 72px;
  --transition: 0.25s;
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

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

img { max-width:100%; height:auto; }
a { color: var(--gold); text-decoration:none; transition: color 0.2s; }
a:hover { color: var(--gold-light); }

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

/* ======== TOP BAR ======== */
.top-bar {
  background: #05080d;
  border-bottom: 1px solid var(--border);
  padding: 6px 0;
  font-size: 0.8rem;
  color: var(--text-light);
}
.top-bar .container { display:flex; justify-content:flex-end; align-items:center; gap:20px; }
.top-bar a { color: var(--text-light); font-size:0.8rem; }
.top-bar a:hover { color: var(--gold); }

/* ======== HEADER ======== */
header {
  position: fixed; top:0; left:0; right:0;
  z-index: 1000;
  background: rgba(8,12,18,0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
  transition: background 0.3s;
}
header.scrolled { background: rgba(8,12,18,0.98); }

.header-inner {
  display: flex; justify-content:space-between; align-items:center;
  height: var(--header-h);
  max-width: var(--max-w); margin:0 auto; padding:0 28px;
}

.logo {
  font-size: 1.6rem; font-weight: 900;
  letter-spacing: -1px; color: var(--white);
  display: flex; align-items:center; gap:2px;
}
.logo .z { color: var(--gold); font-size:1.8rem; }
.logo .rest { color: var(--white); font-weight:600; letter-spacing:2px; font-size:1.1rem; }
.logo .tagline {
  font-size:0.65rem; color:var(--text-light);
  letter-spacing:1.5px; font-weight:400;
  margin-left:12px; padding-left:12px;
  border-left:1px solid var(--border);
}

.nav-links { display:flex; align-items:center; gap:24px; list-style:none; }
.nav-links a {
  color: var(--text-light); font-size:0.85rem; font-weight:500;
  padding:6px 0; position:relative; transition: color 0.2s;
}
.nav-links a::after {
  content:''; position:absolute; bottom:0; left:0; right:0;
  height:2px; background:var(--gold); border-radius:1px;
  transform:scaleX(0); transition: transform 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-links a:hover::after, .nav-links a.active::after { transform:scaleX(1); }

.nav-cta a {
  display:inline-block; padding:10px 24px;
  background: var(--gold); color:#000; font-weight:600;
  font-size:0.85rem; border-radius:8px;
  transition: all var(--transition); letter-spacing:0.3px;
}
.nav-cta a:hover { background: var(--gold-light); color:#000; transform:translateY(-1px); }

.menu-toggle {
  display:none; background:none; border:none;
  color: var(--text); font-size:1.5rem; cursor:pointer;
  padding:8px;
}

/* ======== HERO ======== */
.hero {
  min-height: 85vh;
  display:flex; align-items:center;
  position:relative; overflow:hidden;
  padding: 120px 0 80px;
}
.hero::before {
  content:'';
  position:absolute; top:-30%; right:-15%;
  width:700px; height:700px;
  background: radial-gradient(circle, rgba(200,155,60,0.07), transparent 65%);
  pointer-events:none;
}
.hero::after {
  content:'';
  position:absolute; bottom:-20%; left:-10%;
  width:500px; height:500px;
  background: radial-gradient(circle, rgba(200,155,60,0.04), transparent 60%);
  pointer-events:none;
}
.hero .container { position:relative; z-index:1; width:100%; }

.hero-badge {
  display:inline-block;
  padding:6px 16px;
  border:1px solid var(--border-light);
  border-radius:20px;
  font-size:0.75rem; font-weight:500;
  color: var(--text-light); letter-spacing:1px;
  margin-bottom:24px;
  text-transform:uppercase;
}

.hero h1 {
  font-size: 3.4rem; font-weight:800;
  color: var(--white); line-height:1.1;
  margin-bottom:20px; max-width:820px;
  letter-spacing:-1.5px;
}
.hero h1 .gold { color: var(--gold); }
.hero h1 .outline {
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1.5px var(--white);
  text-stroke: 1.5px var(--white);
}
.hero p {
  font-size:1.15rem; color: var(--text-light);
  max-width:640px; margin-bottom:40px; line-height:1.8;
}

.hero-actions { display:flex; gap:16px; flex-wrap:wrap; }

.btn {
  display:inline-flex; align-items:center; gap:8px;
  padding:14px 32px; border-radius:8px;
  font-weight:600; font-size:0.95rem;
  transition: all 0.25s; cursor:pointer;
  border: none; font-family:inherit;
}
.btn-gold {
  background: var(--gold); color:#000;
}
.btn-gold:hover { background: var(--gold-light); transform:translateY(-2px); box-shadow:0 4px 20px rgba(200,155,60,0.25); }
.btn-outline {
  background: transparent; color: var(--text);
  border: 1px solid var(--border-light);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); transform:translateY(-2px); }
.btn-ghost { color: var(--text-light); font-weight:500; }
.btn-ghost:hover { color: var(--gold); }

/* ======== URGENCE ======== */
.urgence-card {
  background: linear-gradient(135deg, #1a1420, #161a2a);
  border: 1px solid #3a2030;
  border-radius: var(--radius-lg);
  padding: 32px 40px;
  display:flex; align-items:center; justify-content:space-between;
  gap:24px; flex-wrap:wrap;
  margin-top: -40px;
  position:relative; z-index:2;
}
.urgence-card h3 { color: #ff6b6b; font-size:1rem; font-weight:600; }
.urgence-steps { display:flex; gap:16px; }
.urgence-step { display:flex; align-items:center; gap:8px; font-size:0.85rem; color:var(--text-light); }
.urgence-step .num {
  display:inline-flex; align-items:center; justify-content:center;
  width:24px; height:24px; border-radius:50%;
  background: #3a2030; color:#ff6b6b;
  font-size:0.75rem; font-weight:700;
}
.urgence-btn {
  padding:10px 24px; background:#ff6b6b; color:#fff;
  border-radius:8px; font-weight:600; font-size:0.85rem;
  transition: all var(--transition);
}
.urgence-btn:hover { background:#ff4757; color:#fff; transform:translateY(-1px); }

/* ======== SECTIONS ======== */
section { padding: 80px 0; content-visibility: auto; contain-intrinsic-size: 500px; }
section.alt { background: var(--bg-alt); }

.section-label {
  display:inline-block;
  font-size:0.75rem; font-weight:600;
  color: var(--gold); text-transform:uppercase;
  letter-spacing:2.5px; margin-bottom:12px;
}
.section-title {
  font-size:2.2rem; font-weight:700;
  color: var(--text-heading); margin-bottom:16px;
  letter-spacing:-0.5px;
}
.section-desc {
  color: var(--text-light); font-size:1.05rem;
  max-width:680px; margin-bottom:48px; line-height:1.8;
}
.text-center { text-align:center; }
.text-center .section-desc { margin:0 auto 48px; }

/* ======== SERVICES ======== */
.services-grid {
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 960px) { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .services-grid { grid-template-columns: 1fr; } }

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition);
  position:relative; overflow:hidden;
}
.service-card::before {
  content:''; position:absolute; top:0; left:0; right:0;
  height:3px; background: var(--gold);
  transform:scaleX(0); transform-origin:left;
  transition: transform 0.3s;
}
.service-card:hover { border-color: var(--gold); transform:translateY(-4px); box-shadow:var(--shadow-lg); }
.service-card:hover::before { transform:scaleX(1); }

.service-icon { font-size:2rem; margin-bottom:16px; }
.service-num {
  font-size:0.7rem; font-weight:600;
  color: var(--gold); text-transform:uppercase;
  letter-spacing:1.5px; margin-bottom:8px;
}
.service-card h3 { font-size:1.15rem; color:var(--white); margin-bottom:10px; font-weight:600; }
.service-card p { color:var(--text-light); font-size:0.88rem; margin-bottom:16px; line-height:1.7; }
.service-card ul { list-style:none; padding:0; }
.service-card ul li {
  padding:4px 0; font-size:0.82rem; color:var(--text-light);
  display:flex; align-items:center; gap:8px;
}
.service-card ul li::before {
  content:'▹'; color: var(--gold); font-size:0.75rem;
}
.service-tag {
  display:inline-block;
  padding:2px 10px; border-radius:12px;
  font-size:0.7rem; font-weight:500;
  background: var(--gold-glow); color: var(--gold);
  margin-bottom:12px;
}

/* ======== METHOD ======== */
.method-grid {
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:20px;
}
@media (max-width: 800px) { .method-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .method-grid { grid-template-columns: 1fr; } }

.method-step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding:28px 24px;
  text-align:center;
  transition: border-color 0.3s;
}
.method-step:hover { border-color: var(--gold); }
.method-num {
  display:inline-flex; align-items:center; justify-content:center;
  width:48px; height:48px; border-radius:50%;
  background: var(--gold-glow); color: var(--gold);
  font-size:1.2rem; font-weight:700;
  margin-bottom:16px;
}
.method-step h4 { color:var(--white); font-size:1rem; margin-bottom:8px; font-weight:600; }
.method-step p { color:var(--text-light); font-size:0.85rem; line-height:1.6; }

/* ======== METRICS ======== */
.metrics-bar {
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:32px; text-align:center;
  padding: 24px 0;
}
@media (max-width: 640px) { .metrics-bar { grid-template-columns: 1fr 1fr; gap:20px; } }

.metric-number {
  font-size:2.5rem; font-weight:800;
  color: var(--gold); line-height:1;
  margin-bottom:6px;
}
.metric-label {
  font-size:0.85rem; color: var(--text-light);
  font-weight:500;
}
.metric-label small { display:block; font-size:0.7rem; color:var(--text-light); font-weight:400; margin-top:2px; }

/* ======== NORMS ======== */
.norms-grid {
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap:12px;
}
.norm-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding:16px 20px;
  transition: border-color 0.2s;
}
.norm-item:hover { border-color: var(--gold); }
.norm-name { font-size:0.85rem; font-weight:600; color:var(--white); margin-bottom:4px; }
.norm-desc { font-size:0.75rem; color:var(--text-light); line-height:1.5; }

/* ======== ZONE ======== */
.zone-grid {
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap:8px;
}
.zone-item {
  padding:10px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size:0.85rem; color:var(--text-light);
  text-align:center;
  transition: all var(--transition);
}
.zone-item:hover { border-color: var(--gold); color: var(--gold); }
.zone-item.primary { border-color: var(--gold); color: var(--gold); font-weight:500; }

/* ======== PRICING ======== */
.pricing-grid {
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:24px;
}
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; max-width:440px; margin:0 auto; } }
@media (min-width:641px) and (max-width:900px) { .pricing-grid { grid-template-columns: 1fr 1fr; max-width: none; } }

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding:32px;
  text-align:center;
  transition: all var(--transition);
  display:flex; flex-direction:column;
}
.pricing-card:hover { transform:translateY(-4px); box-shadow:var(--shadow-lg); }
.pricing-card.featured {
  border-color: var(--gold);
  position:relative;
}
.pricing-card.featured::before {
  content:'Recommandé'; position:absolute; top:-12px; left:50%;
  transform:translateX(-50%);
  padding:4px 20px;
  background: var(--gold); color:#000;
  border-radius:20px;
  font-size:0.75rem; font-weight:600;
  letter-spacing:0.5px;
}
.pricing-card h3 { font-size:1rem; color:var(--white); margin-bottom:16px; font-weight:600; }
.price { font-size:2rem; font-weight:800; color:var(--gold); margin-bottom:4px; }
.price-note { font-size:0.8rem; color:var(--text-light); margin-bottom:24px; }
.pricing-card ul { list-style:none; padding:0; margin-bottom:28px; flex:1; }
.pricing-card ul li {
  padding:6px 0; font-size:0.85rem; color:var(--text-light);
  border-bottom: 1px solid var(--border);
}
.pricing-card ul li:last-child { border-bottom:none; }
.pricing-card .btn { width:100%; text-align:center; justify-content:center; }

/* ======== TESTIMONIAL ======== */
.testimonial {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding:40px;
  text-align:center;
  max-width:720px; margin:0 auto;
}
.testimonial blockquote {
  color: var(--text-light);
  font-style:italic;
  font-size:1.05rem;
  line-height:1.8;
  margin-bottom:16px;
}
.testimonial cite {
  color: var(--gold);
  font-size:0.85rem;
  font-style:normal;
  font-weight:500;
}

/* ======== CONTACT ======== */
.contact-grid {
  display:grid;
  grid-template-columns: 1fr 1.2fr;
  gap:48px;
}
@media (max-width: 768px) { .contact-grid { grid-template-columns:1fr; } }

.contact-info h3 { color:var(--white); font-size:1.2rem; margin-bottom:16px; }
.contact-info p { color:var(--text-light); margin-bottom:12px; font-size:0.95rem; }
.contact-info .contact-list { list-style:none; margin-top:24px; }
.contact-info .contact-list li {
  display:flex; align-items:center; gap:12px;
  padding:10px 0; font-size:0.9rem; color:var(--text-light);
  border-bottom:1px solid var(--border);
}
.contact-info .contact-list li:last-child { border-bottom:none; }

.contact-form {
  background: var(--bg-card);
  padding:32px;
  border-radius: var(--radius-lg);
  border:1px solid var(--border);
}
.form-group { margin-bottom:20px; }
.form-group label {
  display:block; font-size:0.82rem;
  color: var(--text-light); margin-bottom:6px;
  font-weight:500;
}
.form-group input, .form-group select, .form-group textarea {
  width:100%; padding:12px 16px;
  background: #0a101a;
  border:1px solid var(--border);
  border-radius:6px;
  color: var(--text);
  font-size:0.95rem; font-family:inherit;
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline:none; border-color: var(--gold);
}
.form-group textarea { resize:vertical; min-height:120px; }

/* ======== FOOTER ======== */
footer {
  border-top:1px solid var(--border);
  padding:48px 0 32px;
  background: #05080d;
}
.footer-grid {
  display:grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap:40px;
  margin-bottom:32px;
}
@media (max-width: 768px) { .footer-grid { grid-template-columns:1fr 1fr; gap:24px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns:1fr; } }

.footer-col h4 {
  color:var(--white); font-size:0.95rem;
  font-weight:600; margin-bottom:16px;
}
.footer-col p { color:var(--text-light); font-size:0.85rem; line-height:1.6; }
.footer-col ul { list-style:none; }
.footer-col ul li { margin-bottom:8px; }
.footer-col ul li a {
  color:var(--text-light); font-size:0.85rem;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--gold); }

.footer-bottom {
  border-top:1px solid var(--border);
  padding-top:24px;
  display:flex; justify-content:space-between; align-items:center;
  flex-wrap:wrap; gap:12px;
}
.footer-bottom p { color:var(--text-light); font-size:0.78rem; }

/* ======== RESPONSIVE ======== */
@media (max-width: 768px) {
  .hero h1 { font-size:2.2rem; }
  .hero p { font-size:1rem; }
  .section-title { font-size:1.6rem; }
  .urgence-card { flex-direction:column; align-items:flex-start; }
  .urgence-steps { flex-wrap:wrap; }
  .menu-toggle { display:block; }
  .nav-links {
    display:none; position:absolute; top:var(--header-h); left:0; right:0;
    background: rgba(8,12,18,0.98); padding:20px 28px;
    border-bottom:1px solid var(--border);
    flex-direction:column; gap:16px;
    max-height: calc(100vh - var(--header-h) - 20px); overflow-y: auto;
  }
  .nav-links.open { display:flex; }
  .nav-cta.desktop { display:none; }
}
@media (max-width: 480px) {
  .hero h1 { font-size:1.8rem; }
  .container { padding:0 16px; }
  .pricing-card { padding:24px; }
}
@media (max-width: 420px) {
  .top-bar .container { justify-content: center; gap: 8px; flex-wrap: wrap; }
  .top-bar span { font-size: 0.7rem; }
}

/* ======== SCROLL ANIMATIONS ======== */
.fade-in {
  opacity:0; transform:translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity:1; transform:translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity:1 !important; transform:none !important; transition:none !important; }
}

/* ======== TECH GRID (v4 specific) ======== */
.tech-grid {
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap:12px;
  margin-top:24px;
}
.tech-item {
  background: var(--bg-card);
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding:14px 16px;
  text-align:center;
  transition: all var(--transition);
  cursor:default;
}
.tech-item:hover { border-color: var(--gold); transform:translateY(-2px); }
.tech-item .tech-name { font-size:0.85rem; font-weight:600; color:var(--white); }
.tech-item .tech-desc { font-size:0.7rem; color:var(--text-light); margin-top:2px; }

/* ======== THKL FEATURES ======== */
.thkl-grid {
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:16px;
}
@media (max-width: 800px) { .thkl-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .thkl-grid { grid-template-columns: 1fr; } }
.thkl-item {
  background: var(--bg-card);
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding:20px;
  text-align:center;
  transition: all var(--transition);
}
.thkl-item:hover { border-color: var(--gold); }
.thkl-item h4 { color:var(--white); font-size:0.9rem; font-weight:600; margin-bottom:6px; }
.thkl-item p { color:var(--text-light); font-size:0.8rem; line-height:1.5; }
.thkl-item .thkl-status {
  display:inline-block; margin-top:8px;
  font-size:0.65rem; font-weight:600; letter-spacing:0.5px;
  padding:2px 10px; border-radius:10px;
}
.thkl-status.ready { background: rgba(52,211,153,0.12); color:#34d399; }
.thkl-status.live { background: rgba(200,155,60,0.12); color:var(--gold); }

/* ======== CHATBOT V5 — ENRICHIAVATAR ======== */
.chatbot-toggle {
  position:fixed; bottom:24px; right:24px; z-index:999;
  width:56px; height:56px; border-radius:50%;
  background:var(--gold); color:#000;
  border:none; font-size:1.5rem; cursor:pointer;
  box-shadow:0 4px 20px rgba(200,155,60,0.3);
  transition:all 0.3s;
}
.chatbot-toggle:hover { transform:scale(1.1); box-shadow:0 6px 28px rgba(200,155,60,0.5); }
.chatbot-toggle:active { transform:scale(0.95); }

.chatbot {
  position:fixed; bottom:90px; right:24px; z-index:998;
  width:380px; max-width:calc(100vw - 48px);
  max-height:560px;
  background:var(--bg-card); border:1px solid var(--border);
  border-radius:var(--radius-lg); box-shadow:var(--shadow-lg);
  display:none; flex-direction:column;
  overflow:hidden;
}
.chatbot.open { display:flex; }

.chatbot-header {
  display:flex; align-items:center; justify-content:space-between;
  padding:16px 20px; border-bottom:1px solid var(--border);
  background:var(--bg-alt);
}
.chatbot-header h4 { color:var(--white); font-size:0.95rem; font-weight:600; }
.chatbot-close {
  background:none; border:none; color:var(--text-light);
  font-size:1.1rem; cursor:pointer; padding:4px;
}
.chatbot-close:hover { color:var(--gold); }

.chatbot-messages {
  flex:1; overflow-y:auto; padding:16px;
  display:flex; flex-direction:column; gap:10px;
  min-height:200px; max-height:360px;
}
.chatbot-messages::-webkit-scrollbar { width:4px; }
.chatbot-messages::-webkit-scrollbar-track { background:transparent; }
.chatbot-messages::-webkit-scrollbar-thumb { background:var(--border-light); border-radius:2px; }

.chatbot-msg {
  max-width:85%; padding:10px 14px;
  border-radius:var(--radius);
  font-size:0.85rem; line-height:1.6;
  animation:msgFadeIn 0.3s ease;
}
@keyframes msgFadeIn { from{opacity:0;transform:translateY(6px)} to{opacity:1;transform:translateY(0)} }
.chatbot-msg.bot {
  align-self:flex-start;
  background:var(--bg-hover); color:var(--text);
  border:1px solid var(--border);
}
.chatbot-msg.bot ul { margin:6px 0 6px 16px; }
.chatbot-msg.bot li { margin-bottom:3px; font-size:0.82rem; }
.chatbot-msg.bot p { margin-bottom:4px; }
.chatbot-msg.bot p:last-child { margin-bottom:0; }
.chatbot-msg.bot dl { margin:4px 0; }
.chatbot-msg.bot dt { margin-top:6px; }
.chatbot-msg.bot dd { margin-left:12px; color:var(--text-light); font-size:0.8rem; }
.chatbot-msg.user {
  align-self:flex-end;
  background:var(--gold); color:#000;
  font-weight:500;
}

/* Quick replies */
.quick-replies {
  display:flex; flex-wrap:wrap; gap:6px;
  padding:0 16px 12px;
  animation:msgFadeIn 0.3s ease;
}
.quick-reply-btn {
  padding:6px 14px; font-size:0.8rem;
  background:var(--bg-hover); color:var(--gold);
  border:1px solid var(--gold-dark); border-radius:16px;
  cursor:pointer; transition:all 0.2s;
  font-family:var(--font);
}
.quick-reply-btn:hover {
  background:var(--gold); color:#000;
  border-color:var(--gold);
}

/* Typing indicator */
.chatbot-msg.typing {
  align-self:flex-start;
  background:transparent !important;
  border:none !important;
  padding:8px 14px;
}
.typing-dots {
  font-size:1.5rem; line-height:1;
  color:var(--text-light);
  animation:typingPulse 1.2s infinite;
}
@keyframes typingPulse {
  0%,100%{opacity:0.3} 50%{opacity:1}
}

.chatbot-input-area {
  display:flex; gap:8px;
  padding:12px 16px; border-top:1px solid var(--border);
  background:var(--bg-alt);
}
.chatbot-input-area input {
  flex:1; padding:10px 14px;
  background:var(--bg); color:var(--text);
  border:1px solid var(--border); border-radius:var(--radius);
  font-family:var(--font); font-size:0.85rem;
  outline:none; transition:border-color 0.2s;
}
.chatbot-input-area input:focus { border-color:var(--gold); }
.chatbot-input-area input::placeholder { color:var(--text-light); }
.chatbot-input-area button {
  padding:10px 18px;
  background:var(--gold); color:#000;
  border:none; border-radius:var(--radius);
  font-weight:600; font-size:0.85rem;
  cursor:pointer; transition:all 0.2s;
}
.chatbot-input-area button:hover { background:var(--gold-light); }

/* Ajustements mobiles */
.form-row {
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:16px;
}
@media(max-width:600px) {
  .form-row { grid-template-columns:1fr; }
}

.required { color:#ff6b6b; }

.checkbox-group { margin-top:8px; }
.checkbox-label {
  display:flex; align-items:flex-start; gap:10px;
  font-size:0.82rem; color:var(--text-light);
  cursor:pointer; line-height:1.5;
}
.checkbox-label input[type="checkbox"] {
  width:18px; height:18px; margin-top:2px; flex-shrink:0;
  accent-color:var(--gold);
}
.checkbox-label a { color:var(--gold); text-decoration:underline; }

@media(max-width:480px) {
  .chatbot { width:calc(100vw - 32px); right:16px; bottom:80px; max-height:70vh; }
  .chatbot-toggle { bottom:16px; right:16px; width:48px; height:48px; font-size:1.2rem; }
}

/* ======== DIAGRAMME THKL ======== */
.thkl-diagram {
  margin-top: 48px;
  padding: 36px 28px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.diagram-flow {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  flex-wrap: nowrap;
}
.diagram-step {
  text-align: center;
  flex: 1;
  min-width: 0;
}
.diagram-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}
.diagram-label {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 4px;
}
.diagram-desc {
  color: var(--text-light);
  font-size: 0.72rem;
  line-height: 1.4;
}
.diagram-arrow {
  color: var(--gold-dark);
  font-size: 1.5rem;
  padding-top: 8px;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .diagram-flow { flex-wrap: wrap; gap: 16px; }
  .diagram-arrow { display: none; }
  .diagram-step { flex: 0 0 45%; }
}

/* ======== ÉTUDES DE CAS ======== */
.cas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.cas-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color var(--transition);
}
.cas-card:hover {
  border-color: var(--gold-dark);
}
.cas-tag {
  display: inline-block;
  background: var(--gold-glow);
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 10px;
  margin-bottom: 12px;
}
.cas-card h3 {
  color: var(--text-heading);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.cas-card p {
  color: var(--text-light);
  font-size: 0.85rem;
  line-height: 1.7;
  margin-bottom: 16px;
}
.cas-metrics {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.cas-metrics span {
  background: rgba(200,155,60,0.06);
  color: var(--text-light);
  font-size: 0.7rem;
  padding: 3px 10px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
}
