/* ========================================
   COMPOSANTS — Services, Cards, FAQ, Contact
   ======================================== */

/* ─── SERVICE CARDS ───────────────────── */
.srv-card {
  background: var(--blanc);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
  position: relative;
}
.srv-card:hover { transform: translateY(-8px); box-shadow: 0 24px 64px rgba(0,0,0,.1); }
.srv-card.featured {
  border-color: rgba(124,58,237,.45);
  box-shadow: 0 28px 90px rgba(124,58,237,.15);
}
.srv-card.featured .srv-tag {
  background: var(--rouge);
  color: #fff;
}
.srv-card.featured .srv-badge {
  display: inline-block;
  margin: 14px 0 8px;
  padding: 8px 16px;
  border-radius: 18px;
  background: var(--rouge);
  color: #fff;
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.srv-card-top {
  padding: 36px 36px 28px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.srv-card-img {
  width: 100%; height: 200px; object-fit: cover; display: block;
  border-radius: 14px; margin-bottom: 24px;
  background: var(--gris-pale);
}
.srv-card-img-placeholder {
  width: 100%; height: 200px; border-radius: 14px; margin-bottom: 24px;
  display: flex; align-items: center; justify-content: center;
  font-size: 48px; background: var(--gris-pale);
}
.srv-num {
  font-family: 'Space Mono', monospace; font-size: 8px;
  letter-spacing: 4px; text-transform: uppercase;
  color: var(--rouge); margin-bottom: 10px;
}
.srv-title {
  font-family: 'Syne', sans-serif; font-size: 22px; font-weight: 800;
  color: var(--texte); margin-bottom: 12px; line-height: 1.15;
}
.srv-desc { font-size: 14px; color: var(--gris); line-height: 1.85; }
.srv-card-body { padding: 24px 36px; }
.srv-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.srv-list li {
  font-size: 13px; color: var(--texte-s); display: flex;
  align-items: flex-start; gap: 10px; line-height: 1.55;
}
.srv-list li::before {
  content: ''; display: block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--rouge); margin-top: 6px; flex-shrink: 0;
}
.srv-tag {
  display: inline-block; padding: 5px 14px; border-radius: 20px;
  background: var(--rouge-pale); color: var(--rouge);
  font-family: 'Space Mono', monospace; font-size: 8px;
  letter-spacing: 2px; text-transform: uppercase;
}

/* ─── STATS / NUMBERS ─────────────────── */
.stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat-block {
  padding: 36px 32px; text-align: center;
  border-right: 1px solid var(--border);
  transition: background .2s;
}
.stat-block:last-child { border-right: none; }
.stat-block:hover { background: var(--blanc); }
.stat-val {
  font-family: 'Syne', sans-serif; font-size: 42px; font-weight: 800;
  color: var(--rouge); line-height: 1; margin-bottom: 8px;
}
.stat-label {
  font-family: 'Space Mono', monospace; font-size: 8px;
  letter-spacing: 3px; text-transform: uppercase; color: var(--gris);
}

/* ─── PROCESS STEPS ───────────────────── */
.steps-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.step-item { padding: 40px 28px; position: relative; border-right: 1px solid var(--border); }
.step-item:last-child { border-right: none; }
.step-dot {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--rouge-pale); border: 2px solid var(--rouge);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Syne', sans-serif; font-size: 16px; font-weight: 800;
  color: var(--rouge); margin-bottom: 20px;
  transition: all .25s;
}
.step-item:hover .step-dot { background: var(--rouge); color: #fff; }
.step-title { font-family: 'Syne', sans-serif; font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.step-desc { font-size: 13px; color: var(--gris); line-height: 1.75; }

/* ─── WHY / AVANTAGES ─────────────────── */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.why-item {
  padding: 32px 28px; border-radius: 18px;
  border: 1px solid var(--border); background: var(--blanc);
  display: flex; gap: 18px; align-items: flex-start;
  transition: border-color .25s, transform .25s;
}
.why-item:hover { border-color: var(--rouge); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(124,58,237,.1); }
.why-icon-box {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--rouge-pale); display: flex; align-items: center;
  justify-content: center; font-size: 22px; flex-shrink: 0;
}
.why-text h3 { font-family: 'Syne', sans-serif; font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.why-text p { font-size: 13px; color: var(--gris); line-height: 1.8; }

/* ─── TESTIMONIALS ────────────────────── */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testi-card {
  border: 1px solid var(--border); border-radius: 20px;
  padding: 28px 26px; background: var(--blanc);
  transition: transform .3s, box-shadow .3s;
}
.testi-card:hover { transform: translateY(-5px); box-shadow: 0 16px 48px rgba(0,0,0,.07); }
.testi-stars { color: var(--or-vif); font-size: 14px; letter-spacing: 2px; margin-bottom: 14px; }
.testi-quote { font-size: 13.5px; color: var(--gris); line-height: 1.9; font-style: italic; margin-bottom: 22px; }
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-avatar {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, var(--rouge), var(--or-vif));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Syne', sans-serif; font-weight: 800; font-size: 16px; color: #fff;
  flex-shrink: 0;
}
.testi-name { font-size: 13px; font-weight: 600; color: var(--texte); margin-bottom: 2px; }
.testi-origin {
  font-family: 'Space Mono', monospace; font-size: 8px;
  letter-spacing: 2px; color: var(--gris); text-transform: uppercase;
}

/* ─── FAQ ─────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 10px; max-width: 720px; }
.faq-item {
  border: 1px solid var(--border); border-radius: 14px;
  overflow: hidden; background: var(--blanc); transition: border-color .2s;
}
.faq-item.open { border-color: var(--rouge); }
.faq-question {
  padding: 20px 24px; display: flex; justify-content: space-between;
  align-items: center; cursor: pointer; font-size: 14px;
  font-weight: 600; color: var(--texte); transition: background .2s;
}
.faq-question:hover { background: var(--creme-s); }
.faq-question .arrow {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--gris-pale); display: flex; align-items: center;
  justify-content: center; color: var(--gris); font-size: 14px;
  transition: all .3s; flex-shrink: 0;
}
.faq-item.open .faq-question .arrow { background: var(--rouge); color: #fff; transform: rotate(45deg); }
.faq-answer {
  padding: 0 24px; max-height: 0; overflow: hidden;
  transition: max-height .35s ease, padding .3s;
  font-size: 13.5px; color: var(--gris); line-height: 1.9;
}
.faq-item.open .faq-answer { max-height: 200px; padding: 0 24px 20px; }

/* ─── CONTACT ─────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: start; }
.contact-infos { display: flex; flex-direction: column; gap: 12px; }
.cinfo-card {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 22px; border-radius: 14px;
  border: 1px solid var(--border); background: var(--blanc);
  transition: border-color .2s, transform .2s;
}
.cinfo-card:hover { border-color: var(--or-vif); transform: translateX(4px); }
.cinfo-icon { font-size: 22px; flex-shrink: 0; }

/* Icon visuals (Font Awesome) */
.cinfo-icon i { font-size: 22px; color: var(--rouge); }
.why-icon-box i { font-size: 22px; color: var(--rouge); }
.faq-question .arrow i { font-size: 12px; }
.soc-btn i { font-size: 16px; }
.cinfo-label {
  font-family: 'Space Mono', monospace; font-size: 8px;
  letter-spacing: 3px; text-transform: uppercase; color: var(--rouge);
  margin-bottom: 3px;
}
.cinfo-value { font-size: 13.5px; color: var(--texte-s); line-height: 1.5; }

.cform {
  background: var(--blanc); border: 1px solid var(--border);
  border-radius: 24px; padding: 40px 36px;
  box-shadow: 0 8px 40px rgba(0,0,0,.05);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-label {
  display: block; margin-bottom: 7px;
  font-family: 'Space Mono', monospace; font-size: 8px;
  letter-spacing: 3px; text-transform: uppercase; color: var(--gris);
}
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 12px 16px; border-radius: 10px;
  border: 1.5px solid var(--border); background: var(--creme);
  font-family: 'Outfit', sans-serif; font-size: 14px; color: var(--texte);
  outline: none; transition: border-color .2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--rouge); background: var(--blanc); }
.form-textarea { resize: vertical; min-height: 100px; }
.send-methods {
  display: flex; flex-wrap: wrap; gap: 12px;
}
.method-option {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-radius: 14px;
  border: 1px solid var(--border); background: var(--creme);
  cursor: pointer; transition: border-color .2s, background .2s;
  font-size: 13px; color: var(--texte);
}
.method-option:hover { border-color: var(--rouge); background: #fff; }
.method-option input { accent-color: var(--rouge); margin: 0; }
.form-submit {
  width: 100%; padding: 15px; border-radius: 10px;
  background: var(--rouge); color: #fff; margin-top: 8px;
  font-family: 'Space Mono', monospace; font-size: 10px;
  font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  transition: all .25s;
}
.form-submit:hover { background: var(--rouge-vif); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(124,58,237,.35); }
.form-note { font-size: 11px; color: var(--gris); text-align: center; margin-top: 10px; font-family: 'Space Mono', monospace; letter-spacing: 1px; }

@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .testi-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .steps-row { grid-template-columns: 1fr 1fr; }
  .step-item { border-right: none; border-bottom: 1px solid var(--border); }
  .step-item:last-child { border-bottom: none; }
}

/* ─── CHATBOT FLOTTANT ────────────────── */
.chatbot-btn {
  position: fixed; bottom: 28px; right: 28px; z-index: 999;
  width: 62px; height: 62px; border-radius: 50%;
  background: linear-gradient(135deg, var(--rouge), var(--or-vif));
  box-shadow: 0 8px 32px rgba(124,58,237,.4);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: transform .25s, box-shadow .25s;
  border: none; outline: none;
}
.chatbot-btn:hover { transform: scale(1.1); box-shadow: 0 14px 44px rgba(124,58,237,.5); }
.chatbot-btn i { font-size: 26px; color: #fff; }
.chatbot-notif {
  position: absolute; top: -4px; right: -4px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--or-vif); color: #fff;
  font-size: 11px; font-weight: 700; font-family: 'Syne', sans-serif;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff; pointer-events: none;
}

.chatbot-window {
  position: fixed; bottom: 104px; right: 28px; z-index: 998;
  width: 360px; height: 540px;
  background: #fff; border-radius: 24px;
  box-shadow: 0 24px 80px rgba(0,0,0,.18), 0 0 0 1px rgba(124,58,237,.08);
  display: flex; flex-direction: column; overflow: hidden;
  transform: scale(.92) translateY(16px); opacity: 0; pointer-events: none;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), opacity .25s ease;
}
.chatbot-window.open { transform: scale(1) translateY(0); opacity: 1; pointer-events: auto; }

.chatbot-header {
  background: linear-gradient(135deg, var(--rouge), var(--or-vif));
  padding: 18px 20px; display: flex; align-items: center;
  justify-content: space-between; flex-shrink: 0;
}
.chatbot-header-info { display: flex; align-items: center; gap: 12px; }
.chatbot-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: #fff; flex-shrink: 0;
}
.chatbot-title { font-family: 'Syne', sans-serif; font-size: 14px; font-weight: 700; color: #fff; }
.chatbot-status {
  font-family: 'Space Mono', monospace; font-size: 8px;
  letter-spacing: 1px; color: rgba(255,255,255,.72); margin-top: 2px;
}
.chatbot-close {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,.15); border: none; color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 15px; transition: background .2s; flex-shrink: 0;
}
.chatbot-close:hover { background: rgba(255,255,255,.28); }

.chatbot-messages {
  flex: 1; overflow-y: auto; padding: 18px 16px;
  display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth;
}
.chatbot-messages::-webkit-scrollbar { width: 3px; }
.chatbot-messages::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.chat-msg {
  max-width: 82%; font-size: 13.5px; line-height: 1.65;
  padding: 10px 14px; border-radius: 18px;
  animation: chatIn .22s ease;
}
.chat-msg.bot {
  background: var(--gris-pale); color: var(--texte);
  border-bottom-left-radius: 4px; align-self: flex-start;
}
.chat-msg.user {
  background: linear-gradient(135deg, var(--rouge), var(--or-vif));
  color: #fff; border-bottom-right-radius: 4px; align-self: flex-end;
}
.chat-msg.typing { padding: 14px 16px; }
.chat-typing-dots { display: flex; gap: 5px; align-items: center; }
.chat-typing-dots span {
  width: 7px; height: 7px; border-radius: 50%; background: var(--gris);
  animation: typingDot 1.2s infinite;
}
.chat-typing-dots span:nth-child(2) { animation-delay: .2s; }
.chat-typing-dots span:nth-child(3) { animation-delay: .4s; }

@keyframes chatIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes typingDot { 0%,60%,100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-6px); opacity: 1; } }

.chatbot-quick-replies {
  padding: 0 14px 10px; display: flex; flex-wrap: wrap;
  gap: 8px; flex-shrink: 0; min-height: 0;
}
.chat-qr {
  padding: 8px 16px; border-radius: 20px; font-size: 12px; font-weight: 500;
  background: var(--rouge-pale); color: var(--rouge);
  border: 1.5px solid rgba(124,58,237,.2);
  cursor: pointer; transition: all .2s; font-family: 'Outfit', sans-serif;
}
.chat-qr:hover { background: var(--rouge); color: #fff; transform: translateY(-2px); }

.chatbot-input-area {
  padding: 12px 14px; border-top: 1px solid var(--border);
  display: flex; gap: 10px; align-items: center;
  flex-shrink: 0; background: #fff;
}
.chatbot-input {
  flex: 1; padding: 10px 14px; border-radius: 12px;
  border: 1.5px solid var(--border); background: var(--creme);
  font-family: 'Outfit', sans-serif; font-size: 13px; color: var(--texte);
  outline: none; transition: border-color .2s;
}
.chatbot-input:focus { border-color: var(--rouge); background: #fff; }
.chatbot-send {
  width: 40px; height: 40px; border-radius: 12px; border: none; flex-shrink: 0;
  background: linear-gradient(135deg, var(--rouge), var(--or-vif));
  color: #fff; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: transform .2s, box-shadow .2s;
}
.chatbot-send:hover { transform: scale(1.08); box-shadow: 0 4px 16px rgba(124,58,237,.35); }
.chatbot-send i { font-size: 14px; }

@media (max-width: 500px) {
  .chatbot-window { width: calc(100vw - 32px); right: 16px; bottom: 96px; }
  .chatbot-btn { bottom: 20px; right: 16px; }
}
