/* ========================================
   FACTURATION ELECTRONIQUE - Encart Sage
   Préfixe: sfe-
   ======================================== */

/* Scroll offset pour navbar fixe */
.sfe-section {
  scroll-margin-top: 120px;
  padding: 80px 20px;
  background: linear-gradient(180deg, rgba(2, 10, 20, 0.6) 0%, rgba(10, 10, 18, 0.8) 100%);
  position: relative;
}

/* Container */
.sfe-container {
  max-width: 960px;
  margin: 0 auto;
}

/* Terminal wrapper */
.sfe-terminal {
  background: rgba(6, 12, 24, 0.92);
  border: 1px solid rgba(245, 158, 11, 0.15);
  border-radius: 14px;
  overflow: hidden;
}

/* Terminal header bar */
.sfe-terminal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(245, 158, 11, 0.08);
}

.sfe-terminal-dots {
  display: flex;
  gap: 6px;
}

.sfe-terminal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.sfe-terminal-dot--red { background: #f59e0b; }
.sfe-terminal-dot--yellow { background: #f59e0b; opacity: 0.5; }
.sfe-terminal-dot--green { background: #22c55e; }

.sfe-terminal-title {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.15);
  letter-spacing: 1.5px;
}

.sfe-terminal-status {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sfe-terminal-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.5);
  animation: sfe-pulse 2s ease infinite;
}

.sfe-terminal-status-text {
  font-family: 'Space Mono', monospace;
  font-size: 8px;
  color: #f59e0b;
  letter-spacing: 1.5px;
  font-weight: 700;
}

/* Body */
.sfe-body {
  padding: 36px 34px 32px;
}

/* Section header (au-dessus du terminal) */
.sfe-header {
  text-align: center;
  margin-bottom: 40px;
}

.sfe-section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 16px;
  border-radius: 20px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  margin-bottom: 16px;
}

.sfe-section-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
  animation: sfe-pulse 2s ease infinite;
}

.sfe-section-badge-text {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #f59e0b;
}

.sfe-section-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 12px;
}

.sfe-section-title-accent {
  color: #f59e0b;
  font-style: italic;
}

.sfe-section-subtitle {
  font-family: 'Exo 2', sans-serif;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
}

/* Sous-titre */
.sfe-subtitle {
  font-family: 'Exo 2', sans-serif;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 700px;
}

/* Countdown / Date clé */
.sfe-date-block {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(245, 158, 11, 0.04);
  border: 1px solid rgba(245, 158, 11, 0.1);
  border-radius: 10px;
  margin-bottom: 28px;
}

.sfe-date-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #f59e0b;
}

.sfe-date-content {
  flex: 1;
}

.sfe-date-label {
  font-family: 'Space Mono', monospace;
  font-size: 8px;
  letter-spacing: 2px;
  color: rgba(245, 158, 11, 0.5);
  margin-bottom: 4px;
}

.sfe-date-value {
  font-family: 'Exo 2', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #f59e0b;
}

.sfe-date-desc {
  font-family: 'Exo 2', sans-serif;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 2px;
}

/* Points clés */
.sfe-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 28px;
}

.sfe-point {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 8px;
}

.sfe-point-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #f59e0b;
  margin-top: 1px;
}

.sfe-point-text {
  font-family: 'Exo 2', sans-serif;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
}

/* CTA */
.sfe-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 28px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 8px;
  color: #f59e0b;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.3s, border-color 0.3s;
  cursor: pointer;
}

.sfe-cta:hover {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.5);
}

/* ---- Bandeau alerte sous navbar ---- */
.sfe-alert-bar {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.08), rgba(245, 158, 11, 0.03), rgba(245, 158, 11, 0.08));
  border-bottom: 1px solid rgba(245, 158, 11, 0.12);
  padding: 10px 20px;
  text-align: center;
  position: relative;
  z-index: 90;
}

.sfe-alert-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s;
}

.sfe-alert-link:hover {
  opacity: 0.9;
}

.sfe-alert-link:hover .sfe-alert-arrow {
  transform: translateX(3px);
}

.sfe-alert-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
  animation: sfe-pulse 2s ease infinite;
  flex-shrink: 0;
}

.sfe-alert-text {
  font-family: 'Exo 2', sans-serif;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.sfe-alert-text strong {
  color: #f59e0b;
  font-weight: 700;
}

.sfe-alert-arrow {
  color: #f59e0b;
  transition: transform 0.3s;
  flex-shrink: 0;
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Pulse animation */
@keyframes sfe-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .sfe-body {
    padding: 28px 22px 24px;
  }

  .sfe-title {
    font-size: 22px;
  }

  .sfe-points {
    grid-template-columns: 1fr;
  }

  .sfe-date-block {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .sfe-alert-text {
    font-size: 10px;
  }

  .sfe-section {
    padding: 60px 12px;
  }
}

/* FIX-SAG-12 : Centrer bouton conformité facture — mobile */
@media (max-width: 768px) {
  .sfe-cta {
    display: flex !important;
    margin: 16px auto 0 auto !important;
    text-align: center !important;
    width: fit-content !important;
    justify-content: center !important;
  }

  .sfe-body {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }
}
