/* CAPITAL - Typographie alignée site exemplaire (sans-serif moderne) */
body,
.font-site {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Charte : rouge #E4232C */
.accent {
  color: #E4232C;
}

.bg-accent {
  background-color: #E4232C;
}

/* Calculateur : slider piste grise + partie active rouge + thumb rouge (maquette) */
.calculator-slider {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  height: 8px;
}

.calculator-slider::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(to right, #E4232C 0%, #E4232C var(--range-percent, 0%), #e2e8f0 var(--range-percent, 0%));
}

.calculator-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #E4232C;
  cursor: pointer;
  border: 2px solid white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  margin-top: -6px;
}

.calculator-slider::-moz-range-track {
  height: 8px;
  border-radius: 4px;
  background: #e2e8f0;
}

.calculator-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #E4232C;
  cursor: pointer;
  border: 2px solid white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Fallback : autres range */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #E4232C;
  cursor: pointer;
  border: 2px solid white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #E4232C;
  cursor: pointer;
  border: 2px solid white;
}

/* Défilement fluide pour les ancres */
html {
  scroll-behavior: smooth;
}

/* Puces élégantes pour les listes des services */
.fancy-list {
  list-style: none;
  padding-left: 0;
}

.fancy-list li {
  position: relative;
  padding-left: 1rem;
  line-height: 1.6;
}

.fancy-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: #E4232C;
  box-shadow: 0 0 0 3px rgba(228, 35, 44, 0.15);
  transform: translateY(-50%);
}

/* Bouton rouge réutilisable */
.btn-red {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  background: #E4232C;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.btn-red:hover {
  background: #c71e25;
  box-shadow: 0 6px 16px rgba(228, 35, 44, 0.25);
  transform: translateY(-1px);
}

.btn-red:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(228, 35, 44, 0.3);
}

/* Révélation au scroll */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  transition: opacity 600ms ease, transform 600ms ease;
  will-change: opacity, transform;
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

[data-reveal][data-reveal-delay="80"] {
  transition-delay: 80ms;
}

[data-reveal][data-reveal-delay="120"] {
  transition-delay: 120ms;
}

[data-reveal][data-reveal-delay="160"] {
  transition-delay: 160ms;
}

/* Mise en valeur temporaire de la section d'ancre */
@keyframes anchorPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(228, 35, 44, 0.35);
  }

  70% {
    box-shadow: 0 0 0 12px rgba(228, 35, 44, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(228, 35, 44, 0);
  }
}

article.anchor-activated,
section.anchor-activated {
  animation: anchorPulse 1.2s ease-out;
  border-radius: 1rem;
}

/* Section Cartes Bancaires - Inspiration Fidelity */
.cards-slider-container {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 60px 0;
  background-color: #f8f9fa;
}

.cards-slider-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  gap: 40px;
  padding: 0 50%;
  left: 0;
  align-items: center;
}

.bank-card {
  flex: 0 0 380px;
  height: 240px;
  border-radius: 28px;
  padding: 32px;
  color: white;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.2);
  transition: transform 0.5s ease, opacity 0.5s ease, filter 0.5s ease;
  cursor: pointer;
  user-select: none;
}

.bank-card:not(.active) {
  opacity: 0.4;
  transform: scale(0.85);
  filter: blur(1px);
}

.bank-card.active {
  transform: scale(1.05);
  z-index: 10;
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.3);
}

/* Gradients Premium type Fidelity */
.card-classic {
  background: linear-gradient(135deg, #e63946 0%, #9b2226 100%);
}

.card-gold {
  background: linear-gradient(135deg, #f3722c 0%, #ae2012 100%);
  /* Orange-ébène dynamique */
}

.card-platinum {
  background: linear-gradient(135deg, #06d6a0 0%, #004b23 100%);
  /* Émeraude luxueux */
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.card-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  opacity: 0.85;
  font-weight: 500;
}

.card-info-group {
  display: flex;
  flex-direction: column;
}

.card-type {
  font-size: 20px;
  font-weight: 700;
  margin-top: 4px;
}

.card-balance-val {
  font-size: 20px;
  font-weight: 700;
  text-align: right;
  margin-top: 4px;
}

.card-number {
  font-family: 'Space Mono', 'Courier New', monospace;
  font-size: 20px;
  letter-spacing: 3px;
  margin-top: auto;
  margin-bottom: 20px;
  opacity: 0.95;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.card-holder {
  font-size: 14px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1px;
}

/* Navigation Slider - Glassmorphism */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 50%;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1e293b;
  z-index: 20;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.slider-arrow:hover {
  background: #E4232C;
  color: white;
  transform: translateY(-50%) scale(1.1);
}

.slider-arrow-left {
  left: 40px;
}

.slider-arrow-right {
  right: 40px;
}

.slider-nav {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 40px;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #e2e8f0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dot.active {
  background: #E4232C;
  transform: scale(1.3);
}