/* ============================================================
   BK Auto Brillance — refonte « Noir diamant » (voir DESIGN-REFONTE.md)
   Migration progressive : les sections refaites utilisent les classes .rf-*,
   les autres gardent leurs styles inline en attendant leur tour.
   ============================================================ */

:root {
  --rf-noir: #0a0e15;
  --rf-noir-2: #0e1420;
  --rf-carbone: #131a28;
  --rf-verre: rgba(255, 255, 255, .045);
  --rf-bord: rgba(255, 255, 255, .10);
  --rf-blanc: #f4f6fa;
  --rf-texte: rgba(233, 238, 246, .72);
  --rf-muet: rgba(233, 238, 246, .45);
  --rf-diamant: #dfe6f2;
  --rf-diamant-2: #aebdd4;
  --rf-metal: linear-gradient(135deg, #f2f5fa 0%, #c8d3e4 45%, #93a5c1 100%);
  --rf-bleu-nuit: #16243c;
  --rf-etoile: #e8a33b;
}

/* ---------- Boutons ---------- */
.rf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 17px 30px;
  border-radius: 999px;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: transform .35s cubic-bezier(.16, 1, .3, 1), box-shadow .35s ease, border-color .35s ease;
}
.rf-btn-metal {
  background: var(--rf-metal);
  color: var(--rf-noir);
  font-weight: 800;
  box-shadow: 0 18px 44px -16px rgba(147, 165, 193, .55);
}
.rf-btn-metal:hover {
  color: var(--rf-noir);
  transform: translateY(-2px);
  box-shadow: 0 24px 54px -16px rgba(147, 165, 193, .7);
}
.rf-btn-ghost {
  border: 1px solid rgba(255, 255, 255, .26);
  color: #fff;
  font-weight: 600;
}
.rf-btn-ghost:hover { color: #fff; border-color: rgba(223, 230, 242, .6); }

/* ---------- Héro ---------- */
.rf-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--rf-noir);
}
.rf-hero-bg { position: absolute; inset: 0; }
.rf-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 66%;
  filter: saturate(.85) contrast(1.07) brightness(.9);
  animation: rfZoom 26s ease-in-out infinite alternate;
}
@keyframes rfZoom { from { transform: scale(1); } to { transform: scale(1.07); } }
.rf-hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(10, 14, 21, .96) 0%, rgba(10, 14, 21, .78) 32%, rgba(10, 14, 21, .22) 64%, rgba(10, 14, 21, .42) 100%),
    linear-gradient(180deg, rgba(10, 14, 21, .6) 0%, transparent 28%, transparent 60%, var(--rf-noir) 100%);
}
.rf-hero-dust { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.rf-hero-inner {
  position: relative;
  z-index: 3;
  max-width: 1220px;
  margin: 0 auto;
  padding: 150px 26px 120px;
  width: 100%;
}
.rf-hero-content { max-width: 660px; }
.rf-eyebrow {
  display: inline-block;
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--rf-diamant-2);
  margin-bottom: 28px;
}
.rf-h1 {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: clamp(40px, 5.6vw, 72px);
  line-height: 1.02;
  letter-spacing: -.03em;
  color: var(--rf-blanc);
  margin: 0 0 24px;
}
.rf-lead {
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.65;
  color: var(--rf-texte);
  max-width: 530px;
  margin: 0 0 38px;
}
.rf-cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.rf-hero-call { margin: 18px 0 0; font-size: 14.5px; color: var(--rf-texte); }
.rf-hero-call a { color: var(--rf-diamant); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.rf-hero-call a:hover { color: #fff; }

.rf-hero-stats { display: flex; gap: 28px; margin-top: 50px; flex-wrap: wrap; align-items: stretch; }
.rf-hero-stats > a, .rf-hero-stats > div:not(.rf-stat-sep) { display: block; }
.rf-hero-stats strong {
  display: block;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: var(--rf-blanc);
}
.rf-hero-stats strong span { color: var(--rf-diamant-2); }
.rf-stat-label { display: block; font-size: 12.5px; color: var(--rf-muet); margin-top: 3px; }
.rf-stat-label u { text-underline-offset: 2px; }
.rf-stat-sep { width: 1px; background: rgba(255, 255, 255, .15); }

.rf-scroll-hint {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, .5);
}
.rf-scroll-hint span:first-child { font-size: 10.5px; letter-spacing: .28em; text-transform: uppercase; }
.rf-scroll-line {
  width: 1px;
  height: 34px;
  background: linear-gradient(to bottom, rgba(223, 230, 242, .8), transparent);
  animation: floatY 2.4s ease-in-out infinite;
}

/* ---------- Responsive héro ---------- */
@media (max-width: 900px) {
  .rf-hero-bg img { object-position: 68% 66%; }
}
@media (max-width: 640px) {
  .rf-hero { min-height: 92vh; }
  .rf-hero-inner { padding: 130px 20px 90px; }
  .rf-h1 { font-size: clamp(34px, 10vw, 44px); }
  .rf-cta-row .rf-btn { width: 100%; }
  .rf-hero-stats { gap: 18px; margin-top: 40px; }
  .rf-hero-stats strong { font-size: 20px; }
  .rf-hero-veil {
    background:
      linear-gradient(180deg, rgba(10, 14, 21, .82) 0%, rgba(10, 14, 21, .55) 40%, rgba(10, 14, 21, .72) 74%, var(--rf-noir) 100%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .rf-hero-bg img { animation: none; }
}

/* ============================================================
   Primitives migrées depuis les styles inline (étape 4 du plan)
   ============================================================ */

/* Labels de section */
.rf-label { font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: #8b9bb5; font-weight: 700; margin-bottom: 16px; }
.rf-label-clair { color: var(--rf-diamant); }

/* FAQ */
.rf-faq-item { border-bottom: 1px solid #eceef4; }
.rf-faq-head { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 26px 4px; background: none; border: none; text-align: left; cursor: pointer; font-family: 'Sora', sans-serif; font-weight: 600; font-size: 19px; color: #10151f; }
.rf-faq-icon { flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; background: #f0f1f6; display: flex; align-items: center; justify-content: center; color: #10151f; font-size: 18px; transition: transform .45s cubic-bezier(.16, 1, .3, 1); }
.rf-faq-panel { max-height: 0; overflow: hidden; transition: max-height .5s cubic-bezier(.16, 1, .3, 1); }
.rf-faq-reponse { margin: 0; padding: 0 4px 26px; font-size: 15.5px; line-height: 1.65; color: #5b6472; }

/* Chips (suppléments du formulaire) */
.rf-chip { display: inline-flex; align-items: center; gap: 9px; padding: 11px 16px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 12px; background: rgba(255, 255, 255, .05); color: rgba(255, 255, 255, .82); font-size: 14px; cursor: pointer; transition: all .25s ease; }

/* Champs du formulaire */
.rf-input { width: 100%; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .16); border-radius: 12px; padding: 20px 16px 10px; color: #fff; font-size: 16px; outline: none; transition: border-color .3s ease, box-shadow .3s ease; }
.rf-select { appearance: none; }
.rf-textarea { padding: 24px 16px 10px; resize: vertical; }
.rf-field-label { position: absolute; left: 16px; top: 17px; color: rgba(255, 255, 255, .5); font-size: 15px; pointer-events: none; transition: all .28s cubic-bezier(.16, 1, .3, 1); }
.rf-field-error { display: block; color: #f2a5a5; font-size: 12px; margin-top: 5px; min-height: 14px; opacity: 0; transition: opacity .3s ease; }

/* Tableaux de tarifs (modales formules) */
.rf-table { width: 100%; border-collapse: collapse; margin: 0 0 22px; font-size: 13.5px; }
.rf-th { text-align: left; padding: 7px 6px; border-bottom: 2px solid #eceef4; color: #10151f; font-family: 'Sora', sans-serif; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.rf-th-droite { text-align: right; }
.rf-td { padding: 8px 6px; border-bottom: 1px solid #f0f1f6; color: #40495a; }
.rf-td-duree { color: #5b6472; }
.rf-td-prix { text-align: right; font-weight: 700; color: #10151f; }
.rf-table tr:last-child td { border-bottom: none; }

/* Pastilles villes (zones) */
.rf-ville { font-size: 13.5px; font-weight: 500; color: #fff; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); padding: 8px 14px; border-radius: 999px; }

/* Cartes verre (constat, sections sombres) */
.rf-carte-verre { background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .09); border-radius: 18px; padding: 28px 24px; }

/* Avis */
.rf-testi-card { background: #fff; border-radius: 22px; padding: 48px 44px; box-shadow: 0 30px 70px -40px rgba(16, 21, 31, .4); max-width: 820px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.rf-stars { font-size: 19px; letter-spacing: 4px; color: var(--rf-etoile); }
.rf-stars-sm { font-size: 16px; letter-spacing: 3px; }
