/* ============================================================
   GENIUS.CSS — Upgrade pass 2026-04
   Reading-progress, related articles, exit-intent modal,
   trust strip, dark-mode polish, lead magnet pages, timeline,
   carbone calculator.
   ============================================================ */

/* ---------- 1. Reading progress bar (blog) ---------- */
.rv-read-progress{
  position:fixed; top:0; left:0; height:4px; width:0%;
  background:linear-gradient(90deg,#D4A95C 0%,#E8C77A 40%,#4CAF70 100%);
  z-index:9999; transition:width .08s linear;
  box-shadow:0 0 8px rgba(212,169,92,.4);
}
[data-theme="dark"] .rv-read-progress{
  background:linear-gradient(90deg,#C9A24E 0%,#E0BC6E 40%,#4CAF70 100%);
}

/* ---------- 2. À lire aussi ---------- */
.rv-related{
  max-width:1100px; margin:4rem auto 3rem; padding:0 1.5rem;
}
.rv-related-title{
  font-family:'Fraunces',serif; font-size:clamp(1.4rem,2.4vw,1.9rem);
  margin:0 0 1.8rem; text-align:center; color:var(--text-strong, #1A4E30);
}
.rv-related-grid{
  display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:1.4rem;
}
.rv-related-card{
  display:flex; flex-direction:column; padding:1.4rem 1.4rem 1.6rem;
  background:#fff; border:1px solid rgba(26,78,48,.08);
  border-radius:14px; box-shadow:0 6px 22px rgba(26,78,48,.06);
  transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  text-decoration:none; color:inherit;
}
.rv-related-card:hover{
  transform:translateY(-4px);
  box-shadow:0 14px 32px rgba(26,78,48,.12);
  border-color:rgba(76,175,112,.4);
}
.rv-related-tag{
  display:inline-block; padding:3px 10px; border-radius:50px;
  background:rgba(76,175,112,.12); color:#2D7A3A;
  font-size:.72rem; font-weight:600; letter-spacing:.04em;
  text-transform:uppercase; margin-bottom:.7rem; align-self:flex-start;
}
.rv-related-card h3{
  font-family:'Fraunces',serif; font-size:1.05rem; line-height:1.35;
  margin:0 0 .6rem; color:var(--text-strong,#1A4E30);
}
.rv-related-card p{
  font-size:.85rem; color:var(--text-mid,#4a5b51); line-height:1.55;
  margin:0 0 1rem;
}
.rv-related-arrow{
  margin-top:auto; font-size:.82rem; color:#2D7A3A; font-weight:600;
}
[data-theme="dark"] .rv-related-card{
  background:#15201a; border-color:rgba(255,255,255,.07);
  box-shadow:0 6px 22px rgba(0,0,0,.3);
}
[data-theme="dark"] .rv-related-card h3{ color:#EBF5EE; }
[data-theme="dark"] .rv-related-card p{ color:#b8c8bf; }
[data-theme="dark"] .rv-related-tag{ background:rgba(76,175,112,.18); color:#7de0a0; }

/* ---------- 3. Exit-intent modal ---------- */
.rv-exit-overlay{
  position:fixed; inset:0; background:rgba(8,18,12,.72);
  display:none; align-items:center; justify-content:center;
  z-index:10000; backdrop-filter:blur(4px);
  animation:rvFade .25s ease;
}
.rv-exit-overlay.is-open{ display:flex; }
@keyframes rvFade{ from{opacity:0} to{opacity:1} }
.rv-exit-modal{
  background:#fff; max-width:480px; width:calc(100% - 2rem);
  border-radius:18px; padding:2.4rem 2rem 2rem; position:relative;
  box-shadow:0 30px 80px rgba(0,0,0,.4);
  animation:rvUp .3s cubic-bezier(.2,.9,.3,1.2);
}
@keyframes rvUp{ from{transform:translateY(20px);opacity:0} to{transform:none;opacity:1} }
.rv-exit-close{
  position:absolute; top:12px; right:14px; width:34px; height:34px;
  background:transparent; border:none; cursor:pointer; font-size:1.4rem;
  color:#6b7d72; border-radius:50%;
}
.rv-exit-close:hover{ background:rgba(0,0,0,.06); color:#1A4E30; }
.rv-exit-modal h3{
  font-family:'Fraunces',serif; font-size:1.5rem; line-height:1.25;
  margin:0 0 .6rem; color:#1A4E30;
}
.rv-exit-modal p{ color:#4a5b51; font-size:.95rem; line-height:1.55; margin:0 0 1.2rem; }
.rv-exit-form{ display:flex; gap:.6rem; flex-direction:column; }
.rv-exit-form input[type="email"]{
  padding:.85rem 1rem; border:2px solid #E5EDE8; border-radius:10px;
  font-size:.95rem; font-family:inherit; outline:none;
  transition:border-color .2s;
}
.rv-exit-form input[type="email"]:focus{ border-color:#4CAF70; }
.rv-exit-form button{
  padding:.85rem 1rem; border:none; border-radius:10px; cursor:pointer;
  background:linear-gradient(135deg,#1A4E30,#2D7A3A); color:#fff;
  font-weight:600; font-size:.95rem; font-family:inherit;
}
.rv-exit-form button:hover{ filter:brightness(1.08); }
.rv-exit-foot{ font-size:.72rem; color:#8aa093; margin-top:.7rem; text-align:center; }
[data-theme="dark"] .rv-exit-modal{ background:#15201a; }
[data-theme="dark"] .rv-exit-modal h3{ color:#EBF5EE; }
[data-theme="dark"] .rv-exit-modal p{ color:#b8c8bf; }
[data-theme="dark"] .rv-exit-form input[type="email"]{
  background:#0f1813; color:#EBF5EE; border-color:#2a3a31;
}

/* ---------- 4. Sources & cadre de référence (trust strip) ---------- */
.rv-sources-strip{
  padding:2.2rem 1.5rem; background:transparent;
  border-top:1px solid rgba(26,78,48,.07);
  border-bottom:1px solid rgba(26,78,48,.07);
}
.rv-sources-inner{
  max-width:1100px; margin:0 auto; text-align:center;
}
.rv-sources-title{
  font-size:.78rem; letter-spacing:.12em; text-transform:uppercase;
  color:var(--text-light,#6b7d72); font-weight:600; margin:0 0 1.1rem;
}
.rv-sources-pills{
  display:flex; flex-wrap:wrap; justify-content:center; gap:.6rem;
}
.rv-source-pill{
  display:inline-flex; align-items:center; gap:.45rem;
  padding:.5rem 1rem; border-radius:50px;
  background:#fff; border:1px solid rgba(26,78,48,.12);
  font-size:.82rem; font-weight:500; color:#1A4E30;
  box-shadow:0 2px 6px rgba(26,78,48,.04);
}
.rv-source-pill::before{
  content:""; width:6px; height:6px; border-radius:50%;
  background:#4CAF70;
}
[data-theme="dark"] .rv-source-pill{
  background:#15201a; border-color:rgba(255,255,255,.08); color:#EBF5EE;
}

/* ---------- 5. ROI report inline form ---------- */
.rv-roi-report-btn{
  margin-top:.9rem; display:inline-block; padding:.7rem 1.1rem;
  background:transparent; border:2px solid rgba(255,255,255,.35);
  color:#fff; border-radius:10px; cursor:pointer;
  font-weight:600; font-size:.85rem; font-family:inherit;
  transition:background .2s, border-color .2s;
}
.rv-roi-report-btn:hover{ background:rgba(255,255,255,.12); border-color:#fff; }
.rv-roi-report-form{
  display:none; margin-top:.9rem; gap:.5rem; flex-direction:column;
}
.rv-roi-report-form.is-open{ display:flex; }
.rv-roi-report-form input{
  padding:.7rem .9rem; border-radius:8px; border:1px solid rgba(255,255,255,.2);
  background:rgba(255,255,255,.08); color:#fff; font-family:inherit;
  outline:none; font-size:.88rem;
}
.rv-roi-report-form input::placeholder{ color:rgba(255,255,255,.5); }
.rv-roi-report-form button{
  padding:.7rem 1rem; background:#D4A95C; color:#1A2E20; border:none;
  border-radius:8px; cursor:pointer; font-weight:700; font-size:.88rem;
  font-family:inherit;
}
.rv-roi-report-form button:hover{ filter:brightness(1.08); }
.rv-roi-report-success{
  display:none; margin-top:.7rem; padding:.6rem .9rem;
  background:rgba(76,175,112,.15); border:1px solid rgba(76,175,112,.4);
  border-radius:8px; color:#9be0b1; font-size:.85rem;
}
.rv-roi-report-success.is-open{ display:block; }

/* ---------- 6. Carbone calculator page ---------- */
.rv-carbone-form{
  max-width:760px; margin:3rem auto; padding:2rem;
  background:#fff; border-radius:16px;
  box-shadow:0 14px 40px rgba(26,78,48,.08);
  border:1px solid rgba(26,78,48,.06);
}
[data-theme="dark"] .rv-carbone-form{
  background:#15201a; border-color:rgba(255,255,255,.06);
}
.rv-carbone-field{ margin-bottom:1.5rem; }
.rv-carbone-field > label{
  display:flex; justify-content:space-between; align-items:center;
  font-weight:600; color:var(--text-strong,#1A4E30);
  margin-bottom:.55rem; font-size:.92rem;
}
.rv-carbone-field input[type="number"],
.rv-carbone-field select{
  width:100%; padding:.75rem .9rem;
  border:2px solid #E5EDE8; border-radius:10px;
  font-size:.95rem; font-family:inherit; outline:none;
  background:#fff; color:#1A2E20;
}
.rv-carbone-field input[type="number"]:focus,
.rv-carbone-field select:focus{ border-color:#4CAF70; }
.rv-carbone-field input[type="range"]{ width:100%; }
.rv-carbone-field .rv-c-val{
  color:#2D7A3A; font-weight:700; font-variant-numeric:tabular-nums;
}
[data-theme="dark"] .rv-carbone-field input[type="number"],
[data-theme="dark"] .rv-carbone-field select{
  background:#0f1813; border-color:#2a3a31; color:#EBF5EE;
}
.rv-carbone-submit{
  width:100%; padding:1rem; border:none; border-radius:12px;
  background:linear-gradient(135deg,#1A4E30,#2D7A3A);
  color:#fff; font-weight:700; font-size:1rem; cursor:pointer;
  font-family:inherit;
}
.rv-carbone-submit:hover{ filter:brightness(1.08); }
.rv-carbone-result{
  display:none; max-width:760px; margin:2rem auto;
  padding:2rem; border-radius:16px;
  background:linear-gradient(135deg,#1A4E30 0%,#2D7A3A 100%);
  color:#fff; box-shadow:0 18px 50px rgba(26,78,48,.25);
}
.rv-carbone-result.is-open{ display:block; }
.rv-carbone-result h3{
  font-family:'Fraunces',serif; font-size:1.6rem; margin:0 0 1rem;
}
.rv-carbone-bignum{
  font-family:'Fraunces',serif; font-size:3rem; font-weight:600;
  color:#E8C77A; line-height:1; margin:.4rem 0;
}
.rv-carbone-eq{
  display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:1rem; margin:1.5rem 0; padding:1rem 0;
  border-top:1px solid rgba(255,255,255,.15);
  border-bottom:1px solid rgba(255,255,255,.15);
}
.rv-carbone-eq div{ font-size:.88rem; color:rgba(255,255,255,.85); }
.rv-carbone-eq strong{ display:block; font-size:1.2rem; color:#fff; }
.rv-carbone-savings{
  background:rgba(212,169,92,.18); border:1px solid rgba(212,169,92,.35);
  border-radius:12px; padding:1rem 1.2rem; margin-top:1rem;
  font-size:.92rem;
}
.rv-carbone-savings strong{ color:#E8C77A; font-size:1.1rem; }
.rv-carbone-cta{
  display:inline-block; margin-top:1.4rem; padding:.85rem 1.5rem;
  background:#fff; color:#1A4E30; border-radius:10px;
  text-decoration:none; font-weight:700;
}
.rv-carbone-cta:hover{ background:#E8C77A; color:#1A2E20; }

/* ---------- 7. Timeline RSE page ---------- */
.rv-tl-filters{
  display:flex; flex-wrap:wrap; gap:.6rem; justify-content:center;
  margin:2rem auto 3rem;
}
.rv-tl-filter{
  padding:.5rem 1.1rem; border-radius:50px; cursor:pointer;
  border:1.5px solid rgba(26,78,48,.18); background:#fff;
  font-size:.85rem; font-weight:600; color:#1A4E30; font-family:inherit;
  transition:all .2s;
}
.rv-tl-filter:hover{ border-color:#4CAF70; }
.rv-tl-filter.is-active{
  background:#1A4E30; color:#fff; border-color:#1A4E30;
}
[data-theme="dark"] .rv-tl-filter{
  background:#15201a; color:#EBF5EE; border-color:rgba(255,255,255,.12);
}
[data-theme="dark"] .rv-tl-filter.is-active{ background:#4CAF70; border-color:#4CAF70; color:#0a1410; }

.rv-timeline{
  position:relative; max-width:880px; margin:0 auto; padding:1rem 0 3rem;
}
.rv-timeline::before{
  content:""; position:absolute; left:30px; top:0; bottom:0;
  width:2px; background:linear-gradient(180deg,#4CAF70,#D4A95C);
}
.rv-tl-item{
  position:relative; padding:0 0 2rem 70px;
}
.rv-tl-item.is-hidden{ display:none; }
.rv-tl-dot{
  position:absolute; left:22px; top:6px;
  width:18px; height:18px; border-radius:50%;
  background:#fff; border:3px solid #4CAF70;
  box-shadow:0 0 0 4px rgba(76,175,112,.18);
}
.rv-tl-card{
  background:#fff; border-radius:14px;
  border:1px solid rgba(26,78,48,.1);
  padding:1.2rem 1.4rem; cursor:pointer;
  transition:box-shadow .2s, transform .2s, border-color .2s;
}
.rv-tl-card:hover{
  box-shadow:0 12px 28px rgba(26,78,48,.12);
  border-color:rgba(76,175,112,.4);
}
.rv-tl-year{
  font-size:.78rem; font-weight:700; color:#D4A95C;
  letter-spacing:.1em; text-transform:uppercase;
}
.rv-tl-card h3{
  font-family:'Fraunces',serif; font-size:1.15rem;
  margin:.2rem 0 .5rem; color:#1A4E30;
}
.rv-tl-summary{
  font-size:.9rem; color:#4a5b51; line-height:1.55; margin:0;
}
.rv-tl-detail{
  display:none; margin-top:.9rem; padding-top:.9rem;
  border-top:1px dashed rgba(26,78,48,.15);
  font-size:.88rem; color:#3D5449; line-height:1.65;
}
.rv-tl-card.is-open .rv-tl-detail{ display:block; }
.rv-tl-tags{ margin-top:.6rem; display:flex; gap:.4rem; flex-wrap:wrap; }
.rv-tl-tag{
  font-size:.7rem; padding:2px 8px; border-radius:50px;
  background:rgba(76,175,112,.12); color:#2D7A3A; font-weight:600;
}
[data-theme="dark"] .rv-tl-card{
  background:#15201a; border-color:rgba(255,255,255,.08);
}
[data-theme="dark"] .rv-tl-card h3{ color:#EBF5EE; }
[data-theme="dark"] .rv-tl-summary{ color:#b8c8bf; }
[data-theme="dark"] .rv-tl-detail{ color:#cdd9d2; border-top-color:rgba(255,255,255,.1); }
[data-theme="dark"] .rv-tl-dot{ background:#0a1410; }

/* ---------- 8. Lead magnet landing pages ---------- */
.rv-lm-hero{
  display:grid; grid-template-columns:1fr 1fr; gap:3rem;
  align-items:center; max-width:1100px; margin:0 auto;
  padding:4rem 1.5rem 2rem;
}
@media(max-width:820px){ .rv-lm-hero{ grid-template-columns:1fr; } }
.rv-lm-cover{
  aspect-ratio:1/1.35; max-width:340px; width:100%; margin:0 auto;
  border-radius:14px; overflow:hidden; position:relative;
  background:linear-gradient(160deg,#1A4E30 0%,#2D7A3A 60%,#4CAF70 100%);
  box-shadow:0 30px 60px rgba(26,78,48,.25);
  display:flex; flex-direction:column; justify-content:space-between;
  padding:2rem 1.6rem; color:#fff;
  transform:rotate(-2deg);
  transition:transform .3s;
}
.rv-lm-cover:hover{ transform:rotate(0); }
.rv-lm-cover-tag{
  font-size:.7rem; letter-spacing:.18em; text-transform:uppercase;
  color:#E8C77A; font-weight:700;
}
.rv-lm-cover h2{
  font-family:'Fraunces',serif; font-size:1.7rem; line-height:1.2;
  margin:.5rem 0 0;
}
.rv-lm-cover-sub{ font-size:.9rem; color:rgba(255,255,255,.8); margin-top:.4rem; }
.rv-lm-cover-foot{
  font-size:.75rem; color:rgba(255,255,255,.65); margin-top:auto;
  border-top:1px solid rgba(255,255,255,.18); padding-top:.8rem;
}
.rv-lm-content h1{
  font-family:'Fraunces',serif; font-size:clamp(1.8rem,3.4vw,2.6rem);
  line-height:1.2; margin:0 0 1rem; color:#1A4E30;
}
[data-theme="dark"] .rv-lm-content h1{ color:#EBF5EE; }
.rv-lm-content > p{
  color:var(--text-mid,#4a5b51); font-size:1rem; line-height:1.65;
  margin-bottom:1.4rem;
}
.rv-lm-bullets{ list-style:none; padding:0; margin:0 0 1.6rem; }
.rv-lm-bullets li{
  display:flex; gap:.7rem; align-items:flex-start;
  padding:.55rem 0; color:var(--text-mid,#3D5449); font-size:.95rem;
}
.rv-lm-bullets li::before{
  content:"✓"; flex-shrink:0; width:22px; height:22px; border-radius:50%;
  background:#4CAF70; color:#fff; display:inline-flex;
  align-items:center; justify-content:center; font-size:.78rem; font-weight:700;
}
.rv-lm-form{ display:flex; gap:.6rem; flex-direction:column; max-width:460px; }
.rv-lm-form input[type="email"]{
  padding:.9rem 1.1rem; border:2px solid #E5EDE8; border-radius:10px;
  font-family:inherit; font-size:.95rem; outline:none;
}
.rv-lm-form input[type="email"]:focus{ border-color:#4CAF70; }
.rv-lm-form button{
  padding:1rem; border:none; border-radius:10px; cursor:pointer;
  background:linear-gradient(135deg,#1A4E30,#2D7A3A); color:#fff;
  font-weight:700; font-size:.95rem; font-family:inherit;
}
.rv-lm-form button:hover{ filter:brightness(1.08); }
.rv-lm-success{
  display:none; margin-top:1rem; padding:1rem 1.2rem;
  background:#EBF5EE; border:1px solid #4CAF70; border-radius:10px;
  color:#1A4E30; font-weight:500;
}
.rv-lm-success.is-open{ display:block; }
.rv-lm-privacy{ margin-top:.6rem; font-size:.75rem; color:var(--text-light,#6b7d72); }

[data-theme="dark"] .rv-lm-form input[type="email"]{
  background:#0f1813; color:#EBF5EE; border-color:#2a3a31;
}
[data-theme="dark"] .rv-lm-success{ background:rgba(76,175,112,.15); color:#9be0b1; }

/* ---------- 9. Dark-mode polish (item 13) ---------- */
[data-theme="dark"]{
  --gold: #C9A24E;
}
[data-theme="dark"] .gold,
[data-theme="dark"] .rv-roi-title em{
  color:#C9A24E;
}
[data-theme="dark"] .rv-card,
[data-theme="dark"] .pricing-card,
[data-theme="dark"] .blog-card,
[data-theme="dark"] .card,
[data-theme="dark"] .tarif-card{
  background:#142019;
  border-color:rgba(255,255,255,.06);
  color:#d8e3dd;
}
[data-theme="dark"] .card p,
[data-theme="dark"] .tarif-card .tarif-desc,
[data-theme="dark"] .blog-card p{ color:#b3c4bb; }
[data-theme="dark"] .section-sub{ color:#b3c4bb; }
[data-theme="dark"] .footer-bottom span{ color:#cdd9d2; }
[data-theme="dark"] .breadcrumb a{ color:#9be0b1; }
[data-theme="dark"] .text-light, [data-theme="dark"] .testimonial-text{ color:#cdd9d2; }
[data-theme="dark"] .reg-badge{
  background:rgba(76,175,112,.14); color:#9be0b1; border-color:rgba(76,175,112,.3);
}
[data-theme="dark"] .faq-question{ color:#EBF5EE; }
[data-theme="dark"] .faq-answer p{ color:#cdd9d2; }
[data-theme="dark"] .nav-cta{ color:#0a1410; }

/* ---------- 10. Pricing payback row helper ---------- */
.rv-compare-table .rv-payback{
  font-weight:600; color:#2D7A3A;
}
[data-theme="dark"] .rv-compare-table .rv-payback{ color:#9be0b1; }

/* ============================================================
   11. LIGHT-MODE CONTRAST FIXES (WCAG AA pass 2026-04-25)
   Targets pale gold/cream/light-gray text on white backgrounds.
   Scoped to default (light) — dark mode untouched.
   ============================================================ */

/* Bump --text-mid / --text-light slightly darker in light mode for AA body */
:root,
html:not([data-theme="dark"]) {
  --text-mid: #2F4438;        /* was #3D5449 — now ~9.4:1 on #fff */
  --text-light: #4F6A5C;      /* was #6B8878 — now ~5.6:1 on #fff */
  --gold-readable: #8B6F2A;   /* dark variant of gold for body text on light bg */
}

/* Resource tags: default tag uses pale gold bg. Force readable text. */
html:not([data-theme="dark"]) .rv-resource-tag {
  background: rgba(212, 168, 67, 0.18);
  color: #6B5414;
  border: 1px solid rgba(139, 111, 42, 0.28);
}
/* The featured tag is inline-styled background:var(--gold);color:#0D2A1A — that's already AA. Keep. */

/* Pricing/tarif subtext */
html:not([data-theme="dark"]) .tarif-desc,
html:not([data-theme="dark"]) .tarif-price span {
  color: #4F6A5C;
}

/* FAQ answers */
html:not([data-theme="dark"]) .faq-answer p,
html:not([data-theme="dark"]) .faq-answer {
  color: #2F4438;
}

/* Page hero has dark green gradient bg, keep text light for contrast */
.page-hero h1 { color: #ffffff !important; }
.page-hero p { color: rgba(255, 255, 255, 0.88) !important; }
.page-hero .breadcrumb,
.page-hero .breadcrumb a { color: rgba(255, 255, 255, 0.72) !important; }
.page-hero .rv-eyebrow { color: var(--gold, #D4A95C) !important; }

/* Form helper text / privacy / trust lines */
html:not([data-theme="dark"]) .rv-leadmagnet-trust,
html:not([data-theme="dark"]) .rv-lm-privacy,
html:not([data-theme="dark"]) .rv-exit-foot {
  color: #4F6A5C;
}

/* Footer top links readable on cream/light */
html:not([data-theme="dark"]) .footer-bottom span,
html:not([data-theme="dark"]) .footer-bottom a {
  color: #EBF5EE;
}

/* Section subs — already use --rv-slate (#526258 ~ 5.2:1 on cream). OK. */

/* Tool accordion meta small */
html:not([data-theme="dark"]) .rv-tool-meta small {
  color: #2F4438;
}

/* Carbone calculator labels & slider value (light theme) */
html:not([data-theme="dark"]) .rv-carbone-field > label {
  color: #163D2A;
}
html:not([data-theme="dark"]) .rv-carbone-field .rv-c-val {
  color: #1A4E30;
}

/* Quiz option backgrounds — make sure text stays dark on light bg */
html:not([data-theme="dark"]) .rv-quiz-option,
html:not([data-theme="dark"]) .rv-quiz-option label {
  color: #163D2A;
}

/* Timeline card descriptions (light) */
html:not([data-theme="dark"]) .rv-tl-summary { color: #2F4438; }
html:not([data-theme="dark"]) .rv-tl-detail  { color: #1F3329; }
html:not([data-theme="dark"]) .rv-tl-year    { color: #8B6F2A; }

/* Related card descriptions */
html:not([data-theme="dark"]) .rv-related-card p { color: #2F4438; }

/* Sources strip title */
html:not([data-theme="dark"]) .rv-sources-title { color: #4F6A5C; }

/* Generic gold-on-white body text guard: any element styled inline with the
   pale gold tokens used as body copy gets the readable variant. */
html:not([data-theme="dark"]) .text-gold-body,
html:not([data-theme="dark"]) p .gold-text {
  color: #8B6F2A;
}

/* Case section paragraphs */
html:not([data-theme="dark"]) .rv-case-section p,
html:not([data-theme="dark"]) .rv-case-list li {
  color: #2F4438;
}

/* ============================================================
   12. NAV SPACING — breathing room between logo and "Accueil"
   ============================================================ */
/* Hide duplicate theme toggle: premium.js auto-injects a .rv-theme-toggle into the
   nav, but the HTML still ships a #themeToggle button. Keep only the JS-injected one. */
.nav-inner #themeToggle.theme-toggle { display: none !important; }

/* Force nav items on a single line, no wrapping */
.nav-links li, .nav-links a, .nav-cta { white-space: nowrap; }

@media (min-width: 901px) {
  /* Logo left, links + CTA + toggle in a single right-aligned group */
  .nav-inner { justify-content: space-between !important; gap: 0 !important; flex-wrap: nowrap; }
  .nav-inner .nav-logo { flex-shrink: 0; }
  .nav-inner .nav-links {
    gap: clamp(1rem, 1.6vw, 1.75rem) !important;
    flex-wrap: nowrap;
    align-items: center;
  }
  .nav-inner .nav-links a { font-size: clamp(0.84rem, 0.95vw, 0.92rem); }
  .nav-inner .nav-links .nav-cta { margin-left: 0.5rem; padding: 0.55rem 1rem; }
  .nav-inner .rv-theme-toggle { margin-left: 0.75rem; flex-shrink: 0; }
}

/* Tighter on mid-desktop where space is constrained */
@media (min-width: 901px) and (max-width: 1180px) {
  .nav-inner .nav-links { gap: 1.05rem !important; }
  .nav-inner .nav-links a { font-size: 0.82rem; letter-spacing: 0.01em; }
  .nav-logo span { font-size: 1.1rem !important; }
}

/* ============================================================
   13. TOOLS SECTION — boost prominence in ressources.html
   ============================================================ */
.rv-tools-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  background: linear-gradient(135deg, #E4C98C 0%, #C9A45C 100%);
  color: #1A2E20;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 auto 1.1rem;
  box-shadow: 0 8px 22px rgba(201, 164, 92, 0.3);
}
.rv-tools-eyebrow-wrap { text-align: center; }

.rv-tools-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1.1;
  text-align: center;
  margin: 0 auto 0.8rem;
  background: linear-gradient(135deg, #1A4E30 0%, #2D7A3A 50%, #C9A45C 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
  max-width: 880px;
}
[data-theme="dark"] .rv-tools-title {
  background: linear-gradient(135deg, #EBF5EE 0%, #7DD29C 50%, #E4C98C 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.rv-tools-sub {
  text-align: center;
  color: #2F4438;
  max-width: 680px;
  margin: 0 auto 2.5rem;
  font-size: 1.05rem;
  line-height: 1.6;
}
[data-theme="dark"] .rv-tools-sub { color: #b8c8bf; }

.rv-tools-reassurance {
  text-align: center;
  margin: 1.8rem auto 0;
  font-size: 0.88rem;
  color: #4F6A5C;
  font-weight: 500;
}
[data-theme="dark"] .rv-tools-reassurance { color: #b8c8bf; }

/* Boost each accordion panel */
.rv-tool-panel {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #FBFAF6 100%) !important;
  border-left: 4px solid #C9A45C !important;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease !important;
}
.rv-tool-panel:not([open]):hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(26, 78, 48, 0.14) !important;
}
[data-theme="dark"] .rv-tool-panel {
  background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(201,164,92,0.05) 100%) !important;
  border-left-color: #C9A24E !important;
}

/* "Disponible" badge inside summary */
.rv-tool-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.65rem;
  background: rgba(76, 175, 112, 0.15);
  color: #1A4E30;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-left: 0.6rem;
  flex-shrink: 0;
}
[data-theme="dark"] .rv-tool-status {
  background: rgba(76, 175, 112, 0.2);
  color: #9be0b1;
}
@media (max-width: 640px) {
  .rv-tool-status { display: none; }
}

/* Embed mode for tool pages loaded inside iframes (?embed=1) */
.rv-embed .navbar,
.rv-embed nav#navbar,
.rv-embed .footer,
.rv-embed footer.footer,
.rv-embed .rv-preloader,
.rv-embed #rvPreloader,
.rv-embed .theme-toggle { display: none !important; }
.rv-embed body { padding-top: 0 !important; margin: 0 !important; background: transparent !important; }
.rv-embed main, .rv-embed .container { padding-top: 1rem !important; }
