/* homepage-v2.css — Ravinahitra Homepage — Design compact v3
 * Référence visuelle rouge #d71920 / blanc / vert #087a3d
 * Chargé uniquement sur la page d'accueil (wp_head priorité 20, après main.css).
 * Spécificité via #rnh-main-content et body section.* pour override main.css.
 */

/* ─── 1. VARIABLES ──────────────────────────────────────── */
:root {
  --red:      #d71920;
  --red-h:    #b5151a;
  --green:    #087a3d;
  --green-l:  #34a56f;
  --dark:     #12231d;
  --dark-2:   #182b24;
  --dark-3:   #1c2620;
  --text:     #17221e;
  --muted:    #718079;
  --line:     #dfe6e2;
  --soft:     #f5f7f6;
  --white:    #ffffff;
  --max:      1040px;
  --font-h:   'Poppins', sans-serif;
  --font-m:   'IBM Plex Mono', monospace;
  --radius:   8px;
  --trans:    .2s ease;
}

/* ─── 2. BASE ────────────────────────────────────────────── */
body {
  background: var(--white);
  color: var(--text);
  font-family: var(--font-h);
  font-size: 15px;
  line-height: 1.6;
}
#rnh-main-content { overflow-x: hidden; }
#rnh-main-content *,
#rnh-main-content *::before,
#rnh-main-content *::after { box-sizing: border-box; }
#rnh-main-content img { max-width: 100%; display: block; }
#rnh-main-content a { text-decoration: none; color: inherit; }
#rnh-main-content button,
#rnh-main-content input,
#rnh-main-content select { font: inherit; }

/* ─── 3. CONTAINER ──────────────────────────────────────── */
.rnh-container {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
  padding-inline: 0;
}
@media (max-width: 600px) {
  .rnh-container { width: calc(100% - 24px); }
}

/* ─── 4. LABELS / EYEBROW ───────────────────────────────── */
.rnh-eyebrow,
.rnh-section-label {
  display: flex;
  align-items: center;
  gap: 9px;
  font: 600 11px/1 var(--font-m);
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: #6d7c75;
  margin-bottom: 10px;
}
.rnh-eyebrow::before,
.rnh-section-label::before {
  content: '';
  width: 18px;
  height: 2px;
  background: var(--red);
  flex-shrink: 0;
}
.rnh-section-label-green::before { background: var(--green); }
.rnh-section-label-green { color: var(--green); }

/* Labels sur fonds sombres */
section.rnh-availability  .rnh-section-label,
section.rnh-simulator-section .rnh-section-label,
section.rnh-final-cta     .rnh-section-label {
  color: rgba(255,255,255,.5);
}
section.rnh-availability  .rnh-section-label::before,
section.rnh-simulator-section .rnh-section-label::before,
section.rnh-final-cta     .rnh-section-label::before {
  background: rgba(255,255,255,.3);
}

/* ─── 5. BOUTONS ────────────────────────────────────────── */
.rnh-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  gap: 7px;
  padding: 0 22px;
  min-height: 44px;
  border: 0;
  border-radius: var(--radius);
  font: 700 13px/1 var(--font-h);
  cursor: pointer;
  transition: var(--trans);
  white-space: nowrap;
  text-decoration: none !important;
  letter-spacing: .3px;
}
.rnh-button:hover { transform: translateY(-1px); }

.rnh-button-import {
  background: var(--red);
  color: #fff !important;
}
.rnh-button-import:hover { background: var(--red-h); color: #fff !important; }

.rnh-button-export {
  background: var(--green);
  color: #fff !important;
}
.rnh-button-export:hover { background: #065e2f; color: #fff !important; }

.rnh-button-outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,.25);
  color: #fff !important;
  min-height: 40px;
  padding: 0 20px;
  font: 600 12px var(--font-h);
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.rnh-button-outline:hover { border-color: rgba(255,255,255,.5); }

.rnh-button-outline-light {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text) !important;
  min-height: 38px;
  padding: 0 20px;
  font: 600 12px var(--font-h);
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.rnh-button-outline-light:hover { border-color: var(--text); }

/* ─── 6. HEADER ─────────────────────────────────────────── */
/* En-tête de main.css (sombre, fixe, 68 px), comme les autres pages : l'en-tête blanc d'avant
   gardait les liens blancs de mu-plugins/rnh-nav-fix.php (menu et « Se connecter » invisibles).
   Contenu décalé sous l'en-tête fixe. Mobile (≤ 900 px) : assets/css/mobile.css */
#rnh-main-content { padding-top: 68px; }
#rnh-nav.scrolled { box-shadow: 0 2px 20px rgba(23,32,27,.07); }

/* ─── 7. HERO — split texte gauche / image droite ───────── */
#rnh-main-content .rnh-hero {
  min-height: 360px;
  background: var(--white);
  padding: 0;
  display: block;
  position: static;
  overflow: visible;
}
#rnh-main-content .rnh-hero::before,
#rnh-main-content .rnh-hero::after { display: none; }

.rnh-hero-inner {
  min-height: 360px;
  display: grid;
  grid-template-columns: 43% 57%;
}

.rnh-hero-left {
  padding: 40px 0 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 3;
}

#rnh-main-content .rnh-hero .rnh-eyebrow {
  margin-bottom: 12px;
}

#rnh-main-content .rnh-hero h1 {
  margin: 0 0 16px;
  max-width: 520px;
  font: 800 clamp(26px, 3.5vw, 40px)/1.1 var(--font-h);
  letter-spacing: -1.5px;
  color: var(--text);
}

.rnh-hero-description {
  max-width: 455px;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.rnh-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.rnh-hero-action {
  width: 180px;
  height: 54px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  padding: 0 14px;
  color: #fff !important;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
  transition: var(--trans);
}
.rnh-hero-action:hover { transform: translateY(-1px); }
.rnh-hero-action.red   { background: var(--red); }
.rnh-hero-action.green { background: var(--green); }

.rnh-hero-action-icon {
  width: 28px; height: 28px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 13px;
  flex-shrink: 0;
}
.rnh-hero-action-text { flex: 1; }
.rnh-hero-action-text strong { display: block; font-size: 14px; font-weight: 700; }
.rnh-hero-action-text small  { display: block; font-size: 10px; opacity: .8; margin-top: 2px; }
.rnh-hero-action-arrow { font-size: 16px; }

/* Colonne visuelle droite */
.rnh-hero-visual {
  position: relative;
  min-height: 360px;
  overflow: hidden;
}
.rnh-hero-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.rnh-hero-image-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,1) 0%,
    rgba(255,255,255,.65) 8%,
    rgba(255,255,255,0) 34%
  );
  z-index: 1;
}
.rnh-route-label {
  position: absolute;
  z-index: 3;
  font: 500 10px/1 var(--font-m);
  color: #fff;
  background: rgba(12,35,29,.72);
  border-radius: 20px;
  padding: 5px 10px;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.rnh-route-europe { left: 21%; top: 15%; }
.rnh-route-middle { left: 39%; top: 40%; }
.rnh-route-asia   { right: 14%; top: 22%; }

.rnh-madagascar-pin {
  position: absolute;
  right: 28%; bottom: 23%;
  z-index: 4;
  font-size: 27px;
  line-height: 1;
}
.rnh-madagascar-pin span {
  position: absolute;
  left: 23px; top: 4px;
  color: #fff;
  background: rgba(14,31,25,.8);
  padding: 5px 10px;
  border-radius: 5px;
  white-space: nowrap;
  font: 500 10px var(--font-m);
}

/* Fallback si pas d'image */
.rnh-hero-image-fallback {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, var(--dark) 0%, #223228 55%, var(--dark-3) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.rnh-hero-image-fallback-icon { font-size: 48px; opacity: .25; line-height: 1; }
.rnh-hero-image-fallback-text {
  font: 500 12px var(--font-m);
  color: rgba(255,255,255,.25);
  letter-spacing: .1em;
  text-transform: uppercase;
  text-align: center;
  padding: 0 16px;
}

@media (max-width: 900px) {
  .rnh-hero-inner   { grid-template-columns: 1fr; }
  .rnh-hero-left    { padding: 32px 0 20px; }
  .rnh-hero-visual  { min-height: 240px; }
}
@media (max-width: 560px) {
  .rnh-hero-actions { flex-direction: column; }
  .rnh-hero-action  { width: 100%; }
}

/* ─── 8. STATS ───────────────────────────────────────────── */
/* GARANTI VISIBLE — AUCUNE animation/opacité sur les stats */
body section.rnh-stats,
body .rnh-stats-grid,
body .rnh-stat-item,
body .rnh-stat-icon,
body .rnh-stat-number,
body .rnh-stat-label {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}

body section.rnh-stats {
  background: var(--dark) !important;
  padding: 0 !important;
  display: block !important;
}

body .rnh-stats-grid {
  min-height: 80px;
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  background: rgba(255,255,255,.08) !important;
  gap: 1px !important;
}
@media (max-width: 600px) {
  body .rnh-stats-grid { grid-template-columns: 1fr 1fr !important; }
}

body .rnh-stat-item {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  padding: 18px 24px !important;
  background: var(--dark) !important;
  position: relative;
  box-shadow: none !important;
  border: none !important;
}
body .rnh-stat-item:not(:last-child)::after {
  content: '';
  width: 1px;
  height: 32px;
  position: absolute;
  right: 0;
  background: rgba(255,255,255,.15);
}
@media (max-width: 600px) {
  body .rnh-stat-item:not(:last-child)::after { display: none; }
  body .rnh-stat-item { padding: 14px 12px !important; }
}

body .rnh-stat-icon {
  color: #6ce3ac;
  font-size: 22px;
  width: 26px;
  text-align: center;
  flex-shrink: 0;
  display: block !important;
  line-height: 1;
}

body .rnh-stat-number {
  font: 600 22px/1 var(--font-m) !important;
  color: var(--white) !important;
  display: block !important;
  line-height: 1 !important;
}
body .rnh-stat-number.red-num { color: #ff5359 !important; }

body .rnh-stat-label {
  font: 400 12px/1.3 var(--font-h) !important;
  color: rgba(255,255,255,.6) !important;
  display: block !important;
  margin-top: 4px !important;
}

/* ─── 9. DIRECTION (Import / Export) ────────────────────── */
section.rnh-solutions {
  background: var(--white);
  padding: 48px 0;
}

.rnh-direction-layout {
  display: grid;
  grid-template-columns: 28% 72%;
  gap: 32px;
  align-items: center;
}

.rnh-solutions-header {
  text-align: left;
  margin-bottom: 0;
}
.rnh-solutions-header .rnh-section-label { margin-bottom: 8px; }
.rnh-direction-title {
  font: 800 20px/1.2 var(--font-h) !important;
  color: var(--text) !important;
  letter-spacing: -.7px;
  margin: 0;
}

.rnh-direction-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.rnh-direction {
  min-height: 120px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr 110px;
  gap: 12px;
  overflow: hidden;
  transition: box-shadow var(--trans);
  align-items: start;
}
.rnh-direction:hover { box-shadow: 0 4px 16px rgba(23,32,27,.08); }
.rnh-direction-import { border-color: #efc6c7; }
.rnh-direction-export { border-color: #c5ddd1; }

.rnh-direction-body { display: flex; flex-direction: column; gap: 6px; }

.rnh-direction-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.rnh-direction-label {
  font: 600 10px/1 var(--font-m) !important;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.rnh-direction-import .rnh-direction-label { color: var(--red); }
.rnh-direction-export .rnh-direction-label { color: var(--green); }

.rnh-direction-arrow { font-size: 18px; opacity: .2; }

.rnh-direction h2 {
  font: 700 16px/1.1 var(--font-h) !important;
  color: var(--text) !important;
  margin: 0;
}
.rnh-direction-body > p {
  font: 400 13px/1.5 var(--font-h) !important;
  color: var(--muted) !important;
  margin: 0;
}
.rnh-direction-services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px 10px;
  font: 400 12px/1.4 var(--font-h);
  color: #56645e;
  list-style: none;
  padding: 0; margin: 0;
}
.rnh-direction-services span::before { content: '✓'; margin-right: 5px; color: var(--green); font-weight: 700; }

.rnh-direction-img {
  height: 100%;
  min-height: 80px;
  border-radius: 6px;
  background-size: cover;
  background-position: center;
}
.rnh-direction-import .rnh-direction-img {
  background-image: linear-gradient(135deg,#1a3a4a 0%,#c8853a 100%);
}
.rnh-direction-export .rnh-direction-img {
  background-image: linear-gradient(135deg,#1a3d28 0%,#2e7d5e 100%);
}

/* CTA links inside direction */
.rnh-direction .rnh-button {
  display: none;
}

@media (max-width: 900px) {
  .rnh-direction-layout { grid-template-columns: 1fr; }
  .rnh-direction-grid   { grid-template-columns: 1fr; }
}

/* ─── 10. HUBS ───────────────────────────────────────────── */
section.rnh-hubs {
  background: var(--soft);
  padding: 32px 0;
}

.rnh-hubs-layout {
  display: grid;
  grid-template-columns: 27% 73%;
  align-items: center;
  gap: 28px;
}

.rnh-hubs-intro .rnh-section-label { margin-bottom: 8px; }
.rnh-hubs-title {
  font: 800 20px/1.2 var(--font-h) !important;
  color: var(--text) !important;
  letter-spacing: -.5px;
  margin: 0;
}
.rnh-hubs-desc {
  font: 400 13px/1.5 var(--font-h);
  color: var(--muted);
  margin: 6px 0 0;
}
section.rnh-hubs .rnh-section-heading { display: none; }

.rnh-hubs-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.rnh-hub-item {
  background: var(--white);
  border: 1px solid #e2e8e5;
  border-radius: 8px;
  min-height: 68px;
  padding: 10px;
  display: grid;
  grid-template-columns: 22px 1fr 14px;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--text) !important;
  transition: var(--trans);
  cursor: pointer;
}
.rnh-hub-item:hover { background: #eff1f0; border-color: var(--green); }

.rnh-hub-flag  { font-size: 16px; line-height: 1; }
.rnh-hub-name  { display: block; font: 700 12px/1.2 var(--font-h); color: var(--text); }
.rnh-hub-city  { display: block; font: 400 10px/1 var(--font-m); color: var(--muted); margin-top: 3px; }
.rnh-hub-arrow { color: #6f7e77; font-size: 12px; text-align: right; }

@media (max-width: 900px) {
  .rnh-hubs-layout { grid-template-columns: 1fr; }
  .rnh-hubs-grid   { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
  .rnh-hubs-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ─── 11. SIMULATEUR ─────────────────────────────────────── */
section.rnh-simulator-section {
  background: var(--dark);
  padding: 40px 0;
  color: #fff;
}

.rnh-sim-layout {
  display: grid;
  grid-template-columns: 27% 73%;
  gap: 28px;
  align-items: center;
}

.rnh-sim-intro .rnh-section-label { margin-bottom: 8px; }
.rnh-sim-intro h2 {
  font: 800 20px/1.25 var(--font-h);
  color: var(--white);
  letter-spacing: -.5px;
  margin: 0 0 8px;
}
.rnh-sim-intro > p {
  font: 400 13px/1.6 var(--font-h);
  color: rgba(255,255,255,.62);
  max-width: 280px;
  margin: 0;
}
.rnh-sim-features { display: none; }

/* Carte formulaire */
.rnh-simulator-card {
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius);
  overflow: hidden;
}
.sim-wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
}
@media (max-width: 600px) { .sim-wrap { grid-template-columns: 1fr; } }

.sim-inputs {
  background: var(--dark-3);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sim-label {
  display: block;
  font: 700 10px/1 var(--font-m);
  color: rgba(255,255,255,.75);
  margin-bottom: 5px;
  letter-spacing: .5px;
}
.sim-select,
.sim-input {
  height: 34px;
  width: 100%;
  border: 0;
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  padding: 0 10px;
  font: 500 12px var(--font-m);
  outline: none;
}
.sim-toggle { display: flex; height: 34px; gap: 5px; }
.sim-btn {
  flex: 1;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 20px;
  color: #fff;
  background: transparent;
  font: 600 11px var(--font-h);
  cursor: pointer;
  transition: var(--trans);
  padding: 0 6px;
}
.sim-btn.active { background: #38bd7b; border-color: #38bd7b; color: #fff; }

.sim-dims {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.sim-dims .sim-label { font-size: 9px; }

/* Panneau résultat */
.sim-result {
  background: var(--dark-2);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
.sim-result-lbl {
  font: 700 10px/1 var(--font-m);
  color: #6ce3ac;
  letter-spacing: .5px;
}
.sim-result-val   { font: 500 16px/1 var(--font-m); color: #fff; }
.sim-result-price { font: 700 24px/1 var(--font-m); color: #fff; }
.sim-result-mga   { font: 400 11px var(--font-m); color: rgba(255,255,255,.55); }
.sim-divider { height: 1px; background: rgba(255,255,255,.08); }

.sim-result a.rnh-button-import,
.sim-result a[class*="rnh-button"] {
  width: 100%;
  height: 36px;
  min-height: 36px;
  font-size: 12px;
  justify-content: center;
  margin-top: 4px;
  display: flex;
}

@media (max-width: 900px) {
  .rnh-sim-layout { grid-template-columns: 1fr; }
}

/* ─── 12. BSA / JAUGES ───────────────────────────────────── */
section.rnh-availability {
  background: var(--dark-2);
  padding: 48px 0;
  color: #fff;
}
section.rnh-availability h2 {
  font: 700 clamp(20px,2.5vw,30px)/1.15 var(--font-h);
  color: var(--white);
  letter-spacing: -.025em;
  margin-bottom: 10px;
}
section.rnh-availability > .rnh-container > p {
  font: 400 14px/1.65 var(--font-h);
  color: rgba(255,255,255,.5);
  max-width: 520px;
  margin: 0;
}
.rnh-availability-grid { margin-top: 28px; }

.bsa-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 900px) { .bsa-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 480px) { .bsa-grid { grid-template-columns: 1fr; } }

.bsa-card {
  background: var(--dark-3);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 18px;
  position: relative;
  overflow: hidden;
}
.bsa-card::before { content:''; position:absolute; top:0; left:0; right:0; height:3px; }
.bsa-card.low::before  { background: linear-gradient(90deg,#ef4444,#f87171); }
.bsa-card.mid::before  { background: linear-gradient(90deg,var(--red),#e83030); }
.bsa-card.full::before { background: linear-gradient(90deg,var(--green),var(--green-l)); }
.bsa-card.remise       { border-color: var(--red); }

.bsa-top { display:flex; align-items:center; justify-content:space-between; margin-bottom:12px; }
.bsa-pct { font:700 24px var(--font-m); color:#fff; }
.bsa-card.low  .bsa-pct { color:#f87171; }
.bsa-card.mid  .bsa-pct { color:var(--red); }
.bsa-card.full .bsa-pct { color:var(--green-l); }

.bsa-bar { height:5px; background:rgba(255,255,255,.07); border-radius:3px; overflow:hidden; margin-bottom:12px; }
.bsa-fill { height:100%; border-radius:3px; }
.bsa-card.low  .bsa-fill { background:linear-gradient(90deg,#ef4444,#f87171); }
.bsa-card.mid  .bsa-fill { background:linear-gradient(90deg,var(--red),#e83030); }
.bsa-card.full .bsa-fill { background:linear-gradient(90deg,var(--green),var(--green-l)); }

.bsa-stats { display:flex; justify-content:space-between; font:400 12px var(--font-h); color:rgba(255,255,255,.6); }
.bsa-fomo {
  background:rgba(215,25,32,.1);
  border:1px solid rgba(215,25,32,.22);
  border-radius:7px;
  padding:8px 12px;
  margin-top:12px;
  font:600 12px var(--font-h);
  color:var(--red);
  text-align:center;
}
.bsa-vol { font:400 12px var(--font-h); color:rgba(255,255,255,.55); margin-top:8px; }

/* ─── 13. PROCESSUS — 5 étapes ──────────────────────────── */
section.rnh-how-it-works {
  background: var(--white);
  padding: 48px 0;
}

.rnh-process-layout {
  display: grid;
  grid-template-columns: 27% 73%;
  gap: 28px;
  align-items: center;
}

.rnh-process-intro .rnh-section-label { margin-bottom: 8px; }
.rnh-process-heading {
  font: 800 20px/1.2 var(--font-h) !important;
  color: var(--text) !important;
  letter-spacing: -.5px;
  margin: 0;
}
.rnh-process-sub {
  font: 400 13px/1.5 var(--font-h);
  color: var(--muted);
  margin: 6px 0 0;
}

.rnh-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (max-width: 900px) {
  .rnh-steps { grid-template-columns: repeat(3, 1fr); }
  .rnh-process-layout { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .rnh-steps { grid-template-columns: repeat(2, 1fr); }
}

.rnh-steps article {
  background: var(--white);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.rnh-step-number {
  font: 500 18px/1 var(--font-m);
  color: var(--text);
  opacity: .15;
  display: block;
}
.rnh-step-icon { color: var(--green); font-size: 13px; display: inline; }
.rnh-steps article h3 {
  font: 700 13px/1.3 var(--font-h) !important;
  color: var(--text) !important;
  margin: 0;
}
.rnh-steps article p {
  font: 400 12px/1.5 var(--font-h) !important;
  color: var(--muted) !important;
  margin: 0;
}
section.rnh-how-it-works > .rnh-container > div[style*="text-align:center"],
section.rnh-how-it-works > .rnh-container > div[style*="text-align: center"] {
  margin-top: 20px !important;
}

/* ─── 14. EXPORT MADAGASCAR ─────────────────────────────── */
section.rnh-export-section {
  background: #f0f6f3;
  padding: 48px 0;
}

.rnh-export-layout {
  display: grid;
  grid-template-columns: 27% 73%;
  gap: 28px;
  align-items: center;
}

.rnh-export-copy .rnh-section-label { margin-bottom: 8px; }
.rnh-export-copy h2 {
  font: 800 22px/1.2 var(--font-h) !important;
  color: var(--text) !important;
  letter-spacing: -.5px;
  margin: 0 0 8px;
}
.rnh-export-copy > p {
  font: 400 13px/1.55 var(--font-h);
  color: var(--muted);
  margin: 0 0 14px;
}
.rnh-export-copy .rnh-button-export {
  height: 40px;
  min-height: 40px;
  font-size: 12px;
}

/* Grille 4 cartes produit */
.rnh-export-products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.rnh-product-card {
  height: 100px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  background-size: cover;
  background-position: center;
  display: block;
  text-decoration: none;
  transition: var(--trans);
}
.rnh-product-card:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0,0,0,.25); }
.rnh-product-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.75), transparent 65%);
}
.rnh-product-card span {
  position: absolute;
  z-index: 2;
  bottom: 8px;
  left: 10px; right: 10px;
  color: #fff;
  font: 600 12px/1.3 var(--font-h);
}
.rnh-product-1 { background-color: #5a3e36; background-image: linear-gradient(135deg,#7a5c3a 0%,#3d2a1a 100%); }
.rnh-product-2 { background-color: #2d5a3a; background-image: linear-gradient(135deg,#3d7a52 0%,#1a3d28 100%); }
.rnh-product-3 { background-color: #4a3d5a; background-image: linear-gradient(135deg,#6a5a7a 0%,#2a1a3d 100%); }
.rnh-product-4 { background-color: #5a3a3a; background-image: linear-gradient(135deg,#7a5252 0%,#3d1a1a 100%); }

section.rnh-export-section .rnh-export-grid { display: contents; }
section.rnh-export-section .rnh-export-image { display: none; }
section.rnh-export-section .rnh-export-content { display: none; }

@media (max-width: 900px) {
  .rnh-export-layout   { grid-template-columns: 1fr; }
  .rnh-export-products { grid-template-columns: repeat(2, 1fr); }
  .rnh-product-card    { height: 110px; }
}

/* ─── 15. SERVICES ───────────────────────────────────────── */
section.rnh-services {
  background: var(--white);
  padding: 48px 0;
}
.rnh-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.rnh-section-heading h2 {
  font: 700 clamp(18px,2vw,22px)/1.2 var(--font-h) !important;
  color: var(--text) !important;
  letter-spacing: -.03em;
  margin: 0;
}
.rnh-section-heading > p {
  font: 400 13px/1.6 var(--font-h);
  color: var(--muted);
  max-width: 260px;
  margin: 0;
  align-self: flex-end;
  display: none;
}

.rnh-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (max-width: 767px) { .rnh-services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .rnh-services-grid { grid-template-columns: 1fr; } }

.rnh-services-grid article {
  background: var(--white);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: background var(--trans);
}
.rnh-services-grid article:hover { background: var(--soft); }
.rnh-service-number { font: 400 12px var(--font-m); color: var(--red); display: block; }
.rnh-services-grid article h3 {
  font: 700 14px/1.3 var(--font-h) !important;
  color: var(--text) !important;
  margin: 0;
}
.rnh-services-grid article p {
  font: 400 13px/1.65 var(--font-h) !important;
  color: var(--muted) !important;
  margin: 0;
}

/* ─── 16. RAVAZOPAY ─────────────────────────────────────── */
section.rnh-ravazopay {
  background: var(--green);
  padding: 48px 0;
  color: #fff;
}

.rnh-rpay-layout {
  display: grid;
  grid-template-columns: 30% 42% 28%;
  gap: 28px;
  align-items: center;
}

.rnh-rpay-logo {
  display: block;
  max-width: 200px;
  width: 100%;
  height: auto;
  margin-bottom: 12px;
}

.rnh-rpay-eyebrow {
  font: 400 11px/1 var(--font-m);
  letter-spacing: 1px;
  color: rgba(255,255,255,.7);
  margin-bottom: 6px;
  display: block;
  text-transform: uppercase;
}
.rnh-rpay-heading {
  font: 700 20px/1.2 var(--font-h) !important;
  color: var(--white) !important;
  letter-spacing: -.03em;
  margin: 0;
}

/* Label dans section verte */
section.rnh-ravazopay .rnh-rpay-eyebrow,
section.rnh-ravazopay .rnh-section-label {
  color: rgba(255,255,255,.7);
}
section.rnh-ravazopay .rnh-section-label::before {
  background: rgba(255,255,255,.4);
}

.rnh-rpay-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.rnh-rpay-feature {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 8px;
}
.rnh-rpay-icon { color: rgba(255,255,255,.85); font-size: 18px; }
.rnh-rpay-feature strong { display: block; font: 700 13px/1 var(--font-h); color: #fff; margin-bottom: 4px; }
.rnh-rpay-feature span   { display: block; font: 400 11px/1.4 var(--font-h); color: rgba(255,255,255,.7); }

.rnh-rpay-action { text-align: right; }
.rnh-rpay-action .rnh-button-import {
  height: 44px;
  min-height: 44px;
  font-size: 13px;
  white-space: nowrap;
  display: inline-flex;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.3);
}
.rnh-rpay-action .rnh-button-import:hover {
  background: rgba(0,0,0,.4);
}

/* Masquer les anciens éléments RavazoPay */
section.rnh-ravazopay .rnh-rpay-card  { display: none; }
section.rnh-ravazopay .rnh-rpay-grid  { display: none; }
section.rnh-ravazopay .rnh-rpay-methods { display: none; }
section.rnh-ravazopay .rnh-rpay-btns   { display: none; }
section.rnh-ravazopay > .rnh-container > div[style*="text-align:center"],
section.rnh-ravazopay > .rnh-container > div[style*="margin-bottom"] { display: none; }

@media (max-width: 900px) {
  .rnh-rpay-layout   { grid-template-columns: 1fr; }
  .rnh-rpay-features { grid-template-columns: 1fr 1fr; }
  .rnh-rpay-action   { text-align: left; }
}
@media (max-width: 560px) {
  .rnh-rpay-features { grid-template-columns: 1fr; }
}

/* ─── 17. CTA FINAL ─────────────────────────────────────── */
section.rnh-final-cta {
  min-height: 160px;
  display: flex;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 48px 0;
  background:
    linear-gradient(rgba(255,255,255,.85), rgba(255,255,255,.85)),
    linear-gradient(135deg, var(--dark) 0%, var(--green) 100%);
}
section.rnh-final-cta h2 {
  font: 800 clamp(20px,2.5vw,28px)/1.15 var(--font-h) !important;
  color: var(--text) !important;
  letter-spacing: -.7px;
  margin: 0 0 18px;
}
.rnh-final-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.rnh-final-actions .rnh-button {
  height: 46px;
  min-height: 46px;
  font-size: 13px;
}
.rnh-final-actions .rnh-button small { display: none; }

section.rnh-final-cta .rnh-section-label,
section.rnh-final-cta .rnh-section-label::before {
  color: rgba(23,32,27,.45) !important;
  background: rgba(23,32,27,.25) !important;
}

section.rnh-final-cta p a { color: var(--red) !important; }

/* ─── 18. ANIMATIONS FADE-UP ────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease;
}
.fade-up.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .fade-up { opacity: 1; transform: none; }
}

/* ─── 19. FOCUS ACCESSIBLE ──────────────────────────────── */
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* ─── 20. OVERFLOW GUARD ─────────────────────────────────── */
#rnh-main-content,
#rnh-main-content section,
#rnh-main-content .rnh-container {
  max-width: 100%;
  box-sizing: border-box;
}

/* ─── 21. MOBILE — Responsive homepage ──────────────────── */
@media (max-width: 600px) {
  section.rnh-solutions,
  section.rnh-hubs,
  section.rnh-simulator-section,
  section.rnh-availability,
  section.rnh-how-it-works,
  section.rnh-export-section,
  section.rnh-services,
  section.rnh-ravazopay,
  section.rnh-final-cta { padding-block: 32px; }

  .rnh-direction { grid-template-columns: 1fr; }
  .rnh-direction-img { display: none; }

  .rnh-sim-layout { grid-template-columns: 1fr; }
  .sim-dims { grid-template-columns: repeat(2, 1fr); }

  .rnh-process-layout { grid-template-columns: 1fr; }

  .rnh-export-layout { grid-template-columns: 1fr; }

  .rnh-rpay-layout { grid-template-columns: 1fr; }
  .rnh-rpay-action { text-align: left; }
  .rnh-rpay-action .rnh-button-import { width: 100%; justify-content: center; }
}

/* ─── 10bis. SOURCING (categories couvertes) ──────────────── */
section.rnh-sourcing {
  background: var(--white);
  padding: 36px 0;
}

.rnh-sourcing-intro { max-width: 720px; margin-bottom: 18px; }
.rnh-sourcing-intro .rnh-section-label { margin-bottom: 8px; }
.rnh-sourcing-title {
  font: 800 20px/1.2 var(--font-h) !important;
  color: var(--text) !important;
  letter-spacing: -.5px;
  margin: 0;
}
.rnh-sourcing-desc {
  font: 400 13px/1.6 var(--font-h);
  color: var(--muted);
  margin: 8px 0 0;
}

.rnh-sourcing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.rnh-sourcing-card {
  background: var(--white);
  border: 1px solid #e2e8e5;
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
  color: var(--text) !important;
  transition: var(--trans);
}
.rnh-sourcing-card:hover { background: #eff1f0; border-color: var(--green); }

.rnh-sourcing-card.is-featured {
  border-color: var(--red);
  background: #fff7f7;
  grid-column: span 2;
}
.rnh-sourcing-card.is-featured .rnh-sourcing-name { font-size: 15px; }

.rnh-sourcing-icon  { font-size: 20px; line-height: 1; }
.rnh-sourcing-name  { font: 700 13px/1.3 var(--font-h); color: var(--text); }
.rnh-sourcing-text  { font: 400 12px/1.5 var(--font-h); color: var(--muted); }
.rnh-sourcing-arrow {
  font: 600 11px/1 var(--font-m);
  color: var(--red);
  margin-top: 6px;
}

.rnh-sourcing-note {
  font: 400 12px/1.6 var(--font-h);
  color: var(--muted);
  margin: 14px 0 0;
}
.rnh-sourcing-note a { color: var(--green); font-weight: 600; text-decoration: none; }

@media (max-width: 900px) {
  .rnh-sourcing-grid { grid-template-columns: repeat(2, 1fr); }
  .rnh-sourcing-card.is-featured { grid-column: span 2; }
}
@media (max-width: 480px) {
  .rnh-sourcing-grid { grid-template-columns: 1fr; }
  .rnh-sourcing-card.is-featured { grid-column: span 1; }
}
