/* ================================================================
   Mar'koom Group — features.css
   Styles pour les 3 fonctionnalités UX
   ================================================================ */

/* ── 1. BARRE DE DISPONIBILITÉ ───────────────────────────────────── */
#availability-bar {
  width: 100%;
  background: #0F0F0F;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1002;
  flex-wrap: wrap;
  transition: transform .35s ease, opacity .35s ease;
}

#availability-bar.hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.avail-inner {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avail-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22C55E;
  flex-shrink: 0;
  transition: background .4s, box-shadow .4s;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

.avail-text {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #FFFFFF;
}

.avail-separator {
  width: 1px;
  height: 14px;
  background: rgba(255,255,255,0.15);
}

.avail-response {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}

.avail-cta {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #7B1D1D;
  background: rgba(123,29,29,0.15);
  padding: 5px 14px;
  border-radius: 100px;
  text-decoration: none;
  transition: background .2s, color .2s;
  border: 1px solid rgba(123,29,29,0.3);
}

.avail-cta:hover {
  background: #7B1D1D;
  color: #fff;
}

/* Nav positionnée sous la barre de dispo */
body.has-avail-bar .nav {
  top: 43px;
  transition: top .35s ease;
}

body.has-avail-bar.bar-hidden .nav {
  top: 0;
}

@media (max-width: 768px) {
  #availability-bar { padding: 8px 16px; gap: 10px; }
  .avail-separator, .avail-response { display: none; }
  body.has-avail-bar .nav { top: 38px; }
  body.has-avail-bar.bar-hidden .nav { top: 0; }
}

/* ── 2. CALCULATEUR DE DEVIS ─────────────────────────────────────── */
#devis-calculator {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 48px;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 8px 40px rgba(0,0,0,0.06);
  max-width: 900px;
  margin: 0 auto;
}

.calc-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 32px;
  font-weight: 700;
  color: #0F0F0F;
  margin-bottom: 8px;
}

.calc-subtitle {
  font-size: 15px;
  color: #6B6B6B;
  margin-bottom: 36px;
  line-height: 1.6;
}

.calc-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-bottom: 36px;
}

.calc-category h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #7B1D1D;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.calc-category h4::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(123,29,29,0.15);
}

.calc-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 6px;
  cursor: pointer;
  transition: background .2s;
  border: 1.5px solid transparent;
}

.calc-option:hover {
  background: #F8F0F0;
}

.calc-option input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: #7B1D1D;
  cursor: pointer;
  flex-shrink: 0;
}

.calc-option.selected {
  background: #F5EAEA;
  border-color: rgba(123,29,29,0.2);
}

.calc-option-label {
  flex: 1;
}

.calc-option-name {
  font-size: 13px;
  font-weight: 600;
  color: #0F0F0F;
  display: block;
}

.calc-option-price {
  font-size: 12px;
  color: #7B1D1D;
  font-weight: 500;
}

.calc-result {
  background: #0F0F0F;
  border-radius: 14px;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.calc-result-left {}

.calc-result-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 6px;
}

.calc-total-amount {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 40px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1;
  transition: all .3s;
}

.calc-total-note {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  margin-top: 6px;
}

.calc-summary {
  margin-top: 16px;
}

.calc-line {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 4px;
}

.calc-empty {
  font-size: 14px;
  color: rgba(255,255,255,0.4);
  font-style: italic;
}

.calc-cta {
  display: none;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

.calc-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  background: #25D366;
  color: white;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all .2s;
  white-space: nowrap;
}

.calc-wa-btn:hover {
  background: #1DAA54;
  transform: translateY(-1px);
}

.calc-mail-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  background: transparent;
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all .2s;
  white-space: nowrap;
}

.calc-mail-btn:hover {
  border-color: rgba(255,255,255,0.5);
  color: white;
}

/* Section calculateur sur index */
.section-devis {
  padding: 100px 0;
  background: #F7F7F5;
}

.section-devis .section-header {
  text-align: center;
  margin-bottom: 48px;
}

@media (max-width: 768px) {
  #devis-calculator { padding: 28px 20px; }
  .calc-categories { grid-template-columns: 1fr; }
  .calc-result { flex-direction: column; align-items: flex-start; }
  .calc-total-amount { font-size: 32px; }
  .calc-cta { width: 100%; }
  .calc-wa-btn, .calc-mail-btn { justify-content: center; }
}

/* ── 3. NOTIFICATIONS SOCIALES ───────────────────────────────────── */
#social-proof {
  position: fixed;
  bottom: 100px;
  left: 24px;
  z-index: 9990;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.social-notif {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #FFFFFF;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  max-width: 300px;
  pointer-events: all;
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity .4s, transform .4s;
}

.social-notif.sn-in {
  opacity: 1;
  transform: translateX(0);
}

.sn-text {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #0F0F0F;
  line-height: 1.4;
  flex: 1;
}

.sn-close {
  background: none;
  border: none;
  font-size: 18px;
  color: #6B6B6B;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
  flex-shrink: 0;
  transition: color .2s;
}

.sn-close:hover { color: #0F0F0F; }

@media (max-width: 480px) {
  #social-proof { left: 12px; bottom: 80px; }
  .social-notif { max-width: 260px; }
}
