/* homepage.css — Ravinahitra Homepage v3
 * Chargé uniquement sur la page d'accueil (is_front_page).
 * Complète main.css sans le remplacer.
 */

/* ── VARIABLES ───────────────────────────────────────────────── */
:root {
  --rnh-anthracite:   #17201B;
  --rnh-anthracite-2: #111815;
  --rnh-anthracite-3: #1E2720;
  --rnh-red:          #D71920;
  --rnh-red-hover:    #B5151A;
  --rnh-red-alpha:    rgba(215, 25, 32, 0.12);
  --rnh-green:        #087A3D;
  --rnh-green-dark:   #07552F;
  --rnh-green-hover:  #066530;
  --rnh-green-alpha:  rgba(8, 122, 61, 0.12);
  --rnh-gray:         #F4F6F5;
  --rnh-white:        #FFFFFF;
  --rnh-line:         rgba(255, 255, 255, 0.12);
  --rnh-line-light:   #E5E0D8;
  --rnh-muted:        rgba(255, 255, 255, 0.6);
  --rnh-text-muted:   #6B7280;
  --rnh-font:         'Poppins', sans-serif;
  --rnh-mono:         'IBM Plex Mono', monospace;
}

/* ── SKIP LINK ───────────────────────────────────────────────── */
.rnh-skip-link {
  position: absolute;
  top: -50px;
  left: 16px;
  padding: 10px 18px;
  background: var(--rnh-red);
  color: #fff;
  font: 600 13px var(--rnh-font);
  z-index: 10100;
  text-decoration: none;
  transition: top 0.2s ease;
  border-radius: 0 0 6px 6px;
}
.rnh-skip-link:focus { top: 0; }

/* ── CONTAINER ───────────────────────────────────────────────── */
.rnh-container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 40px;
}
@media (max-width: 767px) {
  .rnh-container { padding-inline: 20px; }
}

/* ── SECTIONS ────────────────────────────────────────────────── */
.rnh-section {
  padding-block: 80px;
}
@media (max-width: 767px) {
  .rnh-section { padding-block: 56px; }
}

.hp-section-light { background: var(--rnh-gray); }
.hp-section-dark  { background: var(--rnh-anthracite); }
.hp-section-white { background: var(--rnh-white); }

/* ── CARDS ───────────────────────────────────────────────────── */
.rnh-card {
  border: 1px solid var(--rnh-line);
  background: var(--rnh-anthracite-3);
  padding: 28px;
}
.hp-section-light .rnh-card,
.hp-section-white .rnh-card {
  border-color: var(--rnh-line-light);
  background: var(--rnh-white);
  color: var(--rnh-anthracite);
}

/* ── BUTTONS ─────────────────────────────────────────────────── */
.rnh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  font: 600 14px/1 var(--rnh-font);
  text-decoration: none;
  border: 2px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}
.rnh-btn:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
.rnh-btn--red {
  background: var(--rnh-red);
  color: var(--rnh-white);
  border-color: var(--rnh-red);
}
.rnh-btn--red:hover {
  background: var(--rnh-red-hover);
  border-color: var(--rnh-red-hover);
  color: var(--rnh-white);
}
.rnh-btn--green {
  background: var(--rnh-green);
  color: var(--rnh-white);
  border-color: var(--rnh-green);
}
.rnh-btn--green:hover {
  background: var(--rnh-green-hover);
  border-color: var(--rnh-green-hover);
  color: var(--rnh-white);
}
.rnh-btn--ghost {
  background: transparent;
  color: var(--rnh-white);
  border-color: rgba(255, 255, 255, 0.4);
}
.rnh-btn--ghost:hover {
  border-color: var(--rnh-white);
  background: rgba(255, 255, 255, 0.06);
  color: var(--rnh-white);
}

/* ── SECTION HEADER ──────────────────────────────────────────── */
.hp-section-head {
  margin-bottom: 48px;
}
.hp-section-head--center {
  text-align: center;
  max-width: 700px;
  margin-inline: auto;
  margin-bottom: 48px;
}
.hp-section-title {
  font: 700 clamp(26px, 3vw, 38px)/1.15 var(--rnh-font);
  color: var(--rnh-anthracite);
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}
.hp-section-title--light { color: var(--rnh-white); }
.hp-section-sub {
  font: 400 16px/1.65 var(--rnh-font);
  color: var(--rnh-text-muted);
  max-width: 560px;
}
.hp-section-sub--muted { color: var(--rnh-muted); }
.hp-mono-label {
  font: 400 11px var(--rnh-mono);
  letter-spacing: 0.1em;
  color: var(--rnh-red);
  margin-bottom: 12px;
  text-transform: uppercase;
}
.hp-section-light .hp-section-title,
.hp-section-white .hp-section-title {
  color: var(--rnh-anthracite);
}

/* ── HERO ────────────────────────────────────────────────────── */
.hp-hero {
  background: var(--rnh-anthracite);
  padding-top: calc(68px + 72px);
  padding-bottom: 80px;
}
@media (max-width: 767px) {
  .hp-hero {
    padding-top: calc(60px + 48px);
    padding-bottom: 56px;
  }
}

.hp-hero-head {
  text-align: center;
  margin-bottom: 56px;
  max-width: 820px;
  margin-inline: auto;
}
@media (max-width: 767px) {
  .hp-hero-head { margin-bottom: 40px; }
}

.hp-eyebrow {
  font: 400 11px var(--rnh-mono);
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hp-hero-title {
  font: 700 clamp(52px, 9vw, 108px)/1 var(--rnh-font);
  color: var(--rnh-white);
  letter-spacing: -0.04em;
  margin-bottom: 22px;
}

.hp-hero-tagline {
  font: 600 clamp(17px, 2vw, 22px)/1.4 var(--rnh-font);
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 10px;
}

.hp-hero-sub {
  font: 400 14px var(--rnh-font);
  color: var(--rnh-muted);
  letter-spacing: 0.01em;
}

/* ── HERO PANELS ─────────────────────────────────────────────── */
.hp-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--rnh-line);
  border: 1px solid var(--rnh-line);
}
@media (max-width: 767px) {
  .hp-panels { grid-template-columns: 1fr; }
}

.hp-panel {
  background: var(--rnh-anthracite-3);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
@media (max-width: 767px) {
  .hp-panel { padding: 28px 24px; gap: 14px; }
}

.hp-panel--import { border-left: 4px solid var(--rnh-red); }
.hp-panel--export { border-left: 4px solid var(--rnh-green); }

.hp-panel-direction {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 500 11px var(--rnh-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hp-panel--import .hp-panel-direction { color: var(--rnh-red); }
.hp-panel--export .hp-panel-direction { color: var(--rnh-green); }

.hp-panel-title {
  font: 700 clamp(20px, 2.2vw, 26px)/1.2 var(--rnh-font);
  color: var(--rnh-white);
  letter-spacing: -0.02em;
}

.hp-panel-desc {
  font: 400 14px/1.65 var(--rnh-font);
  color: var(--rnh-muted);
}

.hp-panel-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.hp-panel-list li {
  font: 400 13px var(--rnh-font);
  color: rgba(255, 255, 255, 0.65);
  padding-left: 18px;
  position: relative;
}
.hp-panel--import .hp-panel-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--rnh-red);
  font-weight: 700;
}
.hp-panel--export .hp-panel-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--rnh-green);
  font-weight: 700;
}

/* ── SIMULATEUR WRAPPER ──────────────────────────────────────── */
.hp-sim-wrap {
  max-width: 900px;
  margin-inline: auto;
}

/* ── HUBS ────────────────────────────────────────────────────── */
.hp-hubs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rnh-line);
  border: 1px solid var(--rnh-line);
}
@media (max-width: 767px) {
  .hp-hubs-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .hp-hubs-grid { grid-template-columns: 1fr; }
}

.hp-hub-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px 22px;
  background: var(--rnh-anthracite-3);
  border: none;
  transition: background 0.2s ease;
}
.hp-hub-card:hover { background: #242E27; }

.hp-hub-flag {
  font-size: 26px;
  line-height: 1;
  margin-bottom: 6px;
  display: block;
}
.hp-hub-name {
  font: 700 14px var(--rnh-font);
  color: var(--rnh-white);
}
.hp-hub-city {
  font: 400 12px var(--rnh-mono);
  color: var(--rnh-muted);
}

/* ── HOW IT WORKS ────────────────────────────────────────────── */
.hp-process-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
@media (max-width: 767px) {
  .hp-process-grid { grid-template-columns: 1fr; gap: 48px; }
}

.hp-process-col-head { margin-bottom: 32px; }

.hp-process-col-head h3 {
  font: 700 20px/1.25 var(--rnh-font);
  color: var(--rnh-anthracite);
}

.hp-process-tag {
  display: inline-block;
  font: 600 11px var(--rnh-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  margin-bottom: 14px;
}
.hp-process-tag--import {
  color: var(--rnh-red);
  background: var(--rnh-red-alpha);
  border: 1px solid rgba(215, 25, 32, 0.25);
}
.hp-process-tag--export {
  color: var(--rnh-green);
  background: var(--rnh-green-alpha);
  border: 1px solid rgba(8, 122, 61, 0.25);
}

.hp-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hp-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.hp-step-num {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 700 12px var(--rnh-mono);
  color: var(--rnh-white);
  margin-top: 2px;
}
.hp-step-num--red   { background: var(--rnh-red); }
.hp-step-num--green { background: var(--rnh-green); }

.hp-step-content strong {
  display: block;
  font: 600 14px var(--rnh-font);
  color: var(--rnh-anthracite);
  margin-bottom: 4px;
}
.hp-step-content p {
  font: 400 13px/1.6 var(--rnh-font);
  color: var(--rnh-text-muted);
  margin: 0;
}

/* ── SERVICES ────────────────────────────────────────────────── */
.hp-services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 767px) {
  .hp-services-grid { grid-template-columns: 1fr; }
}

.hp-service-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hp-service-icon {
  font-size: 28px;
  line-height: 1;
}
.hp-service-card h3 {
  font: 700 17px var(--rnh-font);
  color: var(--rnh-anthracite);
  margin: 0;
}
.hp-service-card p {
  font: 400 13px/1.65 var(--rnh-font);
  color: var(--rnh-text-muted);
  margin: 0;
}

/* ── RAVAZOPAY ───────────────────────────────────────────────── */
.hp-rpay-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 767px) {
  .hp-rpay-grid { grid-template-columns: 1fr; gap: 40px; }
}

.hp-rpay-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 24px;
}
.hp-rpay-methods span {
  font: 500 12px var(--rnh-font);
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--rnh-line);
  padding: 6px 12px;
}

.hp-rpay-steps {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--rnh-line);
}
.hp-rpay-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px;
  border-bottom: 1px solid var(--rnh-line);
}
.hp-rpay-step:last-child { border-bottom: none; }
.hp-rpay-step-num {
  font: 700 16px var(--rnh-mono);
  color: var(--rnh-red);
  flex-shrink: 0;
  min-width: 28px;
}
.hp-rpay-step strong {
  display: block;
  font: 600 14px var(--rnh-font);
  color: var(--rnh-white);
  margin-bottom: 4px;
}
.hp-rpay-step p {
  font: 400 13px/1.6 var(--rnh-font);
  color: var(--rnh-muted);
  margin: 0;
}

/* ── CTA FINAL ───────────────────────────────────────────────── */
.hp-cta-final {
  background: var(--rnh-anthracite-2);
  border-top: 1px solid var(--rnh-line);
}
.hp-cta-content { text-align: center; }

.hp-cta-title {
  font: 700 clamp(32px, 4.5vw, 54px)/1.1 var(--rnh-font);
  color: var(--rnh-white);
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}
.hp-cta-sub {
  font: 400 16px var(--rnh-font);
  color: var(--rnh-muted);
  margin-bottom: 36px;
}
.hp-cta-btns {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
@media (max-width: 480px) {
  .hp-cta-btns {
    flex-direction: column;
    align-items: center;
  }
  .hp-cta-btns .rnh-btn {
    width: 100%;
    max-width: 320px;
  }
}

.hp-cta-wa { margin-top: 8px; }
.hp-cta-wa-link {
  font: 500 14px var(--rnh-font);
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: color 0.2s ease;
}
.hp-cta-wa-link:hover { color: #25D366; }

/* ── REDUCED MOTION ──────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
