/* ============================================================
   genius-v2.css — Surcouche d'améliorations "génie"
   Floating widget · Comparateur · Témoignages stats ·
   Pages sectorielles · Badge engagement · Méthodologie
   ============================================================ */

/* --- Dark mode : surcouches pour les composants v2 --- */
:root[data-theme="dark"] .rv-sector-card,
:root[data-theme="dark"] .rv-rel-card,
:root[data-theme="dark"] .rv-compare,
:root[data-theme="dark"] #autres-cas article {
  background: #142a1f;
  border-color: rgba(255,255,255,0.10);
  color: #e8efe9;
}
:root[data-theme="dark"] .rv-sector-card h3,
:root[data-theme="dark"] #autres-cas article h3,
:root[data-theme="dark"] .rv-rel-card strong {
  color: #C9A24E;
}
:root[data-theme="dark"] .rv-sector-card p,
:root[data-theme="dark"] #autres-cas article p,
:root[data-theme="dark"] .rv-rel-card span {
  color: #c8d4ca;
}
:root[data-theme="dark"] .rv-sector-cas { background: rgba(201,162,78,0.06); border-color: rgba(201,162,78,0.25); }
:root[data-theme="dark"] .rv-tl-actions .btn-outline { color: #e8efe9; border-color: rgba(255,255,255,0.3); }
:root[data-theme="dark"] .rv-pillar-card { background: rgba(255,255,255,0.05); }

/* --- Nav : respiration entre le logo et les liens --- */
@media (min-width: 901px) {
  .nav-inner { gap: 2.5rem; }
  .nav-logo { margin-right: 1.5rem; padding-right: 1.5rem; border-right: 1px solid rgba(255,255,255,0.12); }
  .nav-logo span { margin-left: 4px; }
  .nav-links { gap: 2.4rem; }
  .nav-links .nav-cta { margin-left: 0.6rem; }
}

:root {
  --rv-emerald: #1A4E30;
  --rv-emerald-dark: #0D2A1A;
  --rv-gold: #C9A24E;
  --rv-cream: #F5EFE0;
}

/* === Floating contact widget === */
.rv-fab {
  position: fixed;
  right: 1.4rem;
  bottom: 5.5rem;
  z-index: 950;
  font-family: 'Inter', sans-serif;
}
.rv-fab-toggle {
  width: 58px; height: 58px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--rv-emerald), var(--rv-emerald-dark));
  color: white;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(26,78,48,0.32), 0 2px 6px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}
.rv-fab-toggle::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--rv-gold);
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.rv-fab-toggle:hover { transform: translateY(-2px) scale(1.04); }
.rv-fab-toggle:hover::after { opacity: 0.7; transform: scale(1); }
.rv-fab-toggle svg { width: 26px; height: 26px; }
.rv-fab-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.8rem);
  width: 280px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.06);
  padding: 1.1rem;
  opacity: 0;
  transform: translateY(8px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  border-top: 3px solid var(--rv-gold);
}
.rv-fab.is-open .rv-fab-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.rv-fab-title {
  font-family: 'Fraunces', serif;
  font-size: 1rem;
  color: var(--rv-emerald);
  font-weight: 600;
  margin: 0 0 0.15rem;
}
.rv-fab-sub {
  font-size: 0.78rem;
  color: #6b6b6b;
  margin: 0 0 0.85rem;
}
.rv-fab-actions { display: flex; flex-direction: column; gap: 0.5rem; }
.rv-fab-actions a {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  background: var(--rv-cream);
  color: var(--rv-emerald);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 500;
  transition: background 0.2s ease, transform 0.2s ease;
}
.rv-fab-actions a:hover { background: #ece4cf; transform: translateX(2px); }
.rv-fab-actions a.is-primary { background: var(--rv-emerald); color: white; }
.rv-fab-actions a.is-primary:hover { background: var(--rv-emerald-dark); }
.rv-fab-actions svg { width: 16px; height: 16px; flex-shrink: 0; }
.rv-fab-close {
  position: absolute; top: 8px; right: 8px;
  width: 24px; height: 24px;
  border: none; background: transparent; cursor: pointer;
  color: #888; font-size: 1.1rem; line-height: 1;
}
.rv-fab-close:hover { color: var(--rv-emerald); }
.rv-embed .rv-fab { display: none !important; }
@media (max-width: 720px) {
  .rv-fab { right: 1rem; bottom: 5rem; }
  .rv-fab-toggle { width: 52px; height: 52px; }
  .rv-fab-panel { width: calc(100vw - 2rem); right: -0.4rem; }
}

/* === Comparateur RestauVert vs concurrents === */
.rv-compare {
  background: linear-gradient(180deg, #fff, var(--rv-cream));
  border-radius: 24px;
  padding: 2.4rem 1.8rem;
  margin: 3rem 0;
  border: 1px solid rgba(201,162,78,0.25);
}
.rv-compare h2 {
  font-family: 'Fraunces', serif;
  color: var(--rv-emerald);
  font-size: 1.85rem;
  margin: 0 0 0.4rem;
  text-align: center;
}
.rv-compare .rv-compare-sub {
  text-align: center;
  color: #555;
  margin: 0 0 1.8rem;
  font-size: 0.95rem;
  max-width: 580px;
  margin-left: auto; margin-right: auto;
}
.rv-compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: white;
  border-radius: 14px;
  overflow: hidden;
  font-size: 0.88rem;
  box-shadow: 0 4px 18px rgba(0,0,0,0.06);
}
.rv-compare-table th, .rv-compare-table td {
  padding: 0.85rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid #eee;
  vertical-align: middle;
}
.rv-compare-table thead th {
  background: var(--rv-emerald);
  color: white;
  font-weight: 600;
  font-size: 0.84rem;
  border-bottom: 2px solid var(--rv-gold);
}
.rv-compare-table thead th.is-us {
  background: linear-gradient(135deg, var(--rv-emerald), var(--rv-emerald-dark));
  position: relative;
}
.rv-compare-table thead th.is-us::after {
  content: "★";
  position: absolute; top: 4px; right: 8px;
  color: var(--rv-gold);
  font-size: 0.9rem;
}
.rv-compare-table td:first-child {
  font-weight: 600;
  color: var(--rv-emerald);
  background: #fafaf6;
  width: 28%;
}
.rv-compare-table td.is-us {
  background: rgba(201,162,78,0.08);
  font-weight: 500;
  color: var(--rv-emerald-dark);
}
.rv-compare-table tr:last-child td { border-bottom: none; }
.rv-compare-check { color: var(--rv-emerald); font-weight: 700; }
.rv-compare-cross { color: #b85b5b; }
@media (max-width: 720px) {
  .rv-compare { padding: 1.6rem 0.9rem; }
  .rv-compare-table { font-size: 0.78rem; }
  .rv-compare-table th, .rv-compare-table td { padding: 0.6rem 0.5rem; }
}

/* === Témoignages enrichis avec metrics === */
.rv-testimonial-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  margin-top: 0.8rem;
  padding: 0.4rem 0.75rem;
  background: rgba(26,78,48,0.08);
  border-radius: 8px;
  border-left: 3px solid var(--rv-gold);
  font-family: 'Inter', sans-serif;
}
.rv-testimonial-stat strong {
  font-family: 'Fraunces', serif;
  font-size: 1.15rem;
  color: var(--rv-emerald);
  font-weight: 600;
}
.rv-testimonial-stat span {
  font-size: 0.8rem;
  color: #555;
}
.rv-testimonial-stats-row {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-top: 0.8rem;
}

/* === Page sectorielle hero === */
.rv-sector-hero {
  background: linear-gradient(135deg, var(--rv-emerald-dark), var(--rv-emerald));
  color: white;
  padding: 5rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}
.rv-sector-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(201,162,78,0.18), transparent 50%);
  pointer-events: none;
}
.rv-sector-hero .container { position: relative; z-index: 1; }
.rv-sector-eyebrow {
  display: inline-block;
  background: rgba(201,162,78,0.18);
  color: var(--rv-gold);
  padding: 0.3rem 0.85rem;
  border-radius: 20px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0.9rem;
}
.rv-sector-hero h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 4.2vw, 2.9rem);
  font-weight: 500;
  line-height: 1.1;
  margin: 0 0 0.8rem;
  color: white;
}
.rv-sector-hero p {
  font-size: 1.1rem;
  max-width: 640px;
  opacity: 0.92;
  color: rgba(255,255,255,0.92);
}
.rv-sector-hero .breadcrumb {
  margin-top: 1.4rem;
  font-size: 0.85rem;
  opacity: 0.78;
}
.rv-sector-hero .breadcrumb a { color: var(--rv-gold); text-decoration: none; }

.rv-sector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
  margin: 2.4rem 0;
}
.rv-sector-card {
  background: white;
  border-radius: 16px;
  padding: 1.6rem 1.4rem;
  box-shadow: 0 4px 18px rgba(0,0,0,0.06);
  border-top: 3px solid var(--rv-gold);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.rv-sector-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,0,0,0.09); }
.rv-sector-card h3 {
  font-family: 'Fraunces', serif;
  color: var(--rv-emerald);
  margin: 0 0 0.6rem;
  font-size: 1.15rem;
}
.rv-sector-card .rv-sector-deadline {
  font-size: 0.75rem;
  color: var(--rv-gold);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}
.rv-sector-card p { color: #555; font-size: 0.92rem; line-height: 1.55; margin: 0; }

.rv-sector-cas {
  background: var(--rv-cream);
  border-radius: 18px;
  padding: 2rem 1.8rem;
  margin: 2.4rem 0;
  border-left: 4px solid var(--rv-gold);
}
.rv-sector-cas h3 {
  font-family: 'Fraunces', serif;
  color: var(--rv-emerald);
  margin-top: 0;
}

/* === Badge engagement === */
.rv-badge-circle {
  width: 220px; height: 220px;
  margin: 0 auto;
  display: block;
}
.rv-badge-feature {
  background: linear-gradient(135deg, var(--rv-emerald-dark), var(--rv-emerald));
  color: white;
  padding: 3rem 2rem;
  border-radius: 24px;
  text-align: center;
  margin: 2rem 0;
}
.rv-badge-feature h2 {
  color: white;
  font-family: 'Fraunces', serif;
  margin: 1rem 0 0.5rem;
}
.rv-engagements-list {
  list-style: none; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}
.rv-engagements-list li {
  background: white; border-radius: 12px;
  padding: 1.1rem 1.2rem;
  border-left: 3px solid var(--rv-gold);
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.rv-engagements-list strong {
  display: block; color: var(--rv-emerald);
  font-family: 'Fraunces', serif; font-size: 1.05rem; margin-bottom: 0.3rem;
}
.rv-engagements-list span { font-size: 0.88rem; color: #555; }

/* === Méthodologie page === */
.rv-method-toc {
  background: var(--rv-cream);
  border-radius: 14px;
  padding: 1.4rem 1.6rem;
  margin-bottom: 2.5rem;
}
.rv-method-toc strong {
  display: block; color: var(--rv-emerald);
  font-family: 'Fraunces', serif; margin-bottom: 0.6rem;
}
.rv-method-toc ol {
  margin: 0; padding-left: 1.4rem;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 0.4rem 1rem;
}
.rv-method-toc a { color: var(--rv-emerald); text-decoration: none; font-size: 0.92rem; }
.rv-method-toc a:hover { color: var(--rv-gold); }

.rv-method-formula {
  background: var(--rv-cream);
  border: 1px solid var(--rv-gold);
  border-radius: 10px;
  padding: 1rem 1.3rem;
  margin: 1rem 0;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  color: var(--rv-emerald-dark);
  text-align: center;
}

/* === Radar réglementaire === */
.rv-radar {
  background: linear-gradient(135deg, var(--rv-emerald-dark), var(--rv-emerald));
  color: white;
  padding: 2.4rem 1.8rem;
  border-radius: 20px;
  margin: 2.5rem 0;
  text-align: center;
}
.rv-radar h3 {
  color: white;
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  margin: 0 0 0.4rem;
}
.rv-radar p { opacity: 0.9; margin: 0 0 1.4rem; max-width: 540px; margin-left: auto; margin-right: auto; }
.rv-radar form {
  display: flex; gap: 0.5rem;
  max-width: 460px; margin: 0 auto;
  flex-wrap: wrap; justify-content: center;
}
.rv-radar input[type="email"] {
  flex: 1; min-width: 220px;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: none;
  font-size: 0.95rem;
}
.rv-radar button {
  padding: 0.75rem 1.4rem;
  background: var(--rv-gold);
  color: var(--rv-emerald-dark);
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.rv-radar button:hover { background: #d8b462; transform: translateY(-1px); }
.rv-radar .rv-radar-msg { margin-top: 0.8rem; font-size: 0.85rem; opacity: 0.85; }
