/* ==========================================================================
   nv-pages.css — Nimba Visit
   Feuille de style commune des pages "contenu" (contact, boutique, légal,
   réservations, favoris, espaces guide / propriétaire / admin, paiement).
   DA : fond blanc, corail #F85646 (foncé #e04132), police système.
   Se charge APRÈS home_tourism.css.
   ========================================================================== */
:root {
  --nv-coral: #F85646;
  --nv-coral-dark: #e04132;
  --nv-coral-soft: #fff1ef;
  --nv-coral-line: rgba(248, 86, 70, .22);
  --nv-ink: #1f2430;
  --nv-ink-2: #4b5563;
  --nv-ink-3: #8a909c;
  --nv-line: rgba(0, 0, 0, .08);
  --nv-surface: #ffffff;
  --nv-surface-2: #f8f8f9;
  --nv-ok: #15803d;
  --nv-ok-soft: #ecfdf3;
  --nv-warn: #b45309;
  --nv-warn-soft: #fff8eb;
  --nv-err: #c62828;
  --nv-err-soft: #fdecec;
  --nv-radius: 18px;
  --nv-shadow: 0 10px 30px rgba(0, 0, 0, .06);
}

.nvp-wrap, .nvp-hero { color: var(--nv-ink); font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
.nvp *, .nvp *::before, .nvp *::after { box-sizing: border-box; }
/* Liens simples en corail. Les liens qui ont une classe (boutons, onglets, cartes) gardent leur propre couleur. */
:where(.nvp-wrap, .nvp-card) a:not([class]) { color: var(--nv-coral); }
:where(.nvp-wrap, .nvp-card) a:where([class]:not(.nvp-btn):not(.nvp-tab):not(.nvp-tile)) { color: var(--nv-coral); }
.nvp-wrap { max-width: 1120px; margin: 0 auto; padding: 32px 20px 80px; }
.nvp-wrap--narrow { max-width: 820px; }
.nvp-wrap--tight { max-width: 620px; }

/* ---------- En-tête de page ---------- */
.nvp-hero {
  background: linear-gradient(135deg, var(--nv-coral) 0%, var(--nv-coral-dark) 100%);
  color: #fff; padding: 46px 20px 54px; position: relative; overflow: hidden;
}
.nvp-hero::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px;
  border-radius: 50%; background: rgba(255, 255, 255, .08);
}
.nvp-hero-inner { max-width: 1120px; margin: 0 auto; position: relative; z-index: 1; }
.nvp-hero .nvp-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: rgba(255,255,255,.16); padding: 6px 12px; border-radius: 999px; }
.nvp-hero h1 { font-size: clamp(26px, 4vw, 40px); font-weight: 800; margin: 14px 0 8px; color: #fff; line-height: 1.15; }
.nvp-hero p { margin: 0; max-width: 640px; font-size: 16px; line-height: 1.6; color: rgba(255,255,255,.92); }

.nvp-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.nvp-head h1, .nvp-title { font-size: clamp(22px, 3vw, 30px); font-weight: 800; color: var(--nv-coral); margin: 0; }
.nvp-head p { margin: 6px 0 0; color: var(--nv-ink-2); }
.nvp-back { display: inline-flex; align-items: center; gap: 8px; color: var(--nv-coral); font-weight: 600; text-decoration: none; font-size: 14px; }
.nvp-back:hover { color: var(--nv-coral-dark); }

/* ---------- Cartes ---------- */
.nvp-card { background: var(--nv-surface); border: 1px solid var(--nv-line); border-radius: var(--nv-radius); box-shadow: var(--nv-shadow); padding: 24px; }
.nvp-card + .nvp-card { margin-top: 20px; }
.nvp-card h2, .nvp-card h3 { color: var(--nv-coral); margin: 0 0 12px; font-weight: 800; }
.nvp-card h2 { font-size: 20px; }
.nvp-card h3 { font-size: 17px; }
.nvp-card p { color: var(--nv-ink-2); line-height: 1.65; }
.nvp-card-title { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 800; color: var(--nv-coral); padding-bottom: 14px; margin: 0 0 18px; border-bottom: 1px solid var(--nv-line); }

.nvp-grid { display: grid; gap: 20px; }
.nvp-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nvp-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nvp-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.nvp-grid-aside { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
.nvp-grid-aside--sm { grid-template-columns: minmax(0, 1fr) 260px; }
.nvp-grid-aside--md { grid-template-columns: minmax(0, 1fr) 340px; }
@media (max-width: 960px) { .nvp-grid-3, .nvp-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .nvp-grid-aside, .nvp-grid-aside--sm, .nvp-grid-aside--md { grid-template-columns: 1fr; } .nvp-toc { display: none; } .nvp-grid-aside > aside[style*=sticky] { position: static !important; } }
@media (max-width: 620px) { .nvp-grid-2, .nvp-grid-3, .nvp-grid-4 { grid-template-columns: 1fr; } .nvp-wrap { padding: 22px 16px 100px; } .nvp-card { padding: 18px; } }

/* ---------- Statistiques ---------- */
.nvp-stat { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; }
.nvp-stat-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--nv-coral-soft); color: var(--nv-coral); font-size: 20px; flex: 0 0 auto; }
.nvp-stat strong { display: block; font-size: 24px; font-weight: 800; color: var(--nv-ink); }
.nvp-stat span { color: var(--nv-ink-2); font-size: 14px; }
a.nvp-card:hover { border-color: var(--nv-coral-line); transform: translateY(-2px); transition: .2s; }

/* ---------- Boutons ---------- */
.nvp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; padding: 12px 20px; font-weight: 700; font-size: 15px; cursor: pointer; text-decoration: none; transition: .2s; background: var(--nv-coral); color: #fff !important; font-family: inherit; }
.nvp-btn:hover { background: var(--nv-coral-dark); transform: translateY(-1px); }
.nvp-btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.nvp-btn--ghost { background: var(--nv-coral-soft); color: var(--nv-coral) !important; }
.nvp-btn--ghost:hover { background: #ffe3de; }
.nvp-btn--line { background: #fff; color: var(--nv-ink) !important; border: 1px solid var(--nv-line); }
.nvp-btn--line:hover { border-color: var(--nv-coral); color: var(--nv-coral) !important; background: #fff; }
.nvp-btn--ok { background: var(--nv-ok); }
.nvp-btn--ok:hover { background: #116a32; }
.nvp-btn--danger { background: #fff; color: var(--nv-err) !important; border: 1px solid rgba(198, 40, 40, .3); }
.nvp-btn--danger:hover { background: var(--nv-err-soft); }
.nvp-btn--sm { padding: 8px 12px; font-size: 13px; border-radius: 10px; }
.nvp-btn--block { width: 100%; }

/* ---------- Formulaires ---------- */
.nvp-field { margin-bottom: 16px; }
.nvp-field label, .nvp-label { display: block; font-size: 14px; font-weight: 600; color: var(--nv-ink); margin-bottom: 7px; }
.nvp-input, .nvp select, .nvp textarea.nvp-input {
  width: 100%; padding: 13px 15px; border-radius: 12px; border: 1px solid rgba(0,0,0,.14);
  background: #fff; color: var(--nv-ink); font-size: 15px; outline: none; font-family: inherit; transition: .2s;
}
.nvp-input:focus, .nvp select:focus { border-color: var(--nv-coral); box-shadow: 0 0 0 3px rgba(248, 86, 70, .15); }
textarea.nvp-input { min-height: 130px; resize: vertical; }
.nvp-help { font-size: 13px; color: var(--nv-ink-3); margin-top: 6px; }
.nvp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 620px) { .nvp-row { grid-template-columns: 1fr; } }

/* ---------- Alertes ---------- */
.nvp-alert { padding: 14px 16px; border-radius: 12px; margin-bottom: 18px; font-weight: 600; display: flex; gap: 10px; align-items: flex-start; }
.nvp-alert--ok { background: var(--nv-ok-soft); color: var(--nv-ok); border: 1px solid rgba(21, 128, 61, .2); }
.nvp-alert--err { background: var(--nv-err-soft); color: var(--nv-err); border: 1px solid rgba(198, 40, 40, .2); }
.nvp-alert--info { background: var(--nv-coral-soft); color: var(--nv-coral-dark); border: 1px solid var(--nv-coral-line); }
.nvp-alert--warn { background: var(--nv-warn-soft); color: var(--nv-warn); border: 1px solid rgba(180, 83, 9, .2); }

/* ---------- Badges / statuts ---------- */
.nvp-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--nv-surface-2); color: var(--nv-ink-2); white-space: nowrap; }
.nvp-badge--coral { background: var(--nv-coral-soft); color: var(--nv-coral); }
.nvp-badge--ok { background: var(--nv-ok-soft); color: var(--nv-ok); }
.nvp-badge--warn { background: var(--nv-warn-soft); color: var(--nv-warn); }
.nvp-badge--err { background: var(--nv-err-soft); color: var(--nv-err); }

/* ---------- Listes / lignes ---------- */
.nvp-list { display: flex; flex-direction: column; }
.nvp-item { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--nv-line); }
.nvp-item:last-child { border-bottom: 0; }
.nvp-item-img { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; background: var(--nv-coral-soft); flex: 0 0 auto; }
.nvp-item-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--nv-coral-soft); color: var(--nv-coral); flex: 0 0 auto; font-size: 18px; }
.nvp-item-body { flex: 1; min-width: 0; }
.nvp-item-body strong { display: block; color: var(--nv-ink); font-size: 15px; }
.nvp-item-body span, .nvp-item-meta { display: block; color: var(--nv-ink-2); font-size: 13px; margin-top: 3px; }
.nvp-item-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 620px) { .nvp-item { flex-wrap: wrap; } .nvp-item-actions { width: 100%; justify-content: flex-start; } }

/* ---------- Tableaux ---------- */
.nvp-table-wrap { overflow-x: auto; }
.nvp-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.nvp-table th { text-align: left; color: var(--nv-ink-3); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; padding: 10px 12px; border-bottom: 1px solid var(--nv-line); white-space: nowrap; }
.nvp-table td { padding: 12px; border-bottom: 1px solid var(--nv-line); color: var(--nv-ink); vertical-align: middle; }
.nvp-table tr:hover td { background: #fffaf9; }

/* ---------- Onglets / filtres ---------- */
.nvp-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.nvp-tab { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--nv-line); background: #fff; color: var(--nv-ink-2) !important; text-decoration: none; font-weight: 600; font-size: 14px; }
.nvp-tab.active, .nvp-tab:hover { background: var(--nv-coral); border-color: var(--nv-coral); color: #fff !important; }
.nvp-tab .nvp-count { margin-left: 6px; font-size: 12px; opacity: .8; }

/* ---------- Cartes produit / lieu ---------- */
.nvp-tile { background: #fff; border: 1px solid var(--nv-line); border-radius: var(--nv-radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--nv-shadow); text-decoration: none; color: inherit; transition: .2s; }
.nvp-tile:hover { transform: translateY(-3px); border-color: var(--nv-coral-line); }
.nvp-tile-img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; background: var(--nv-coral-soft); display: block; }
.nvp-tile-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.nvp-tile-body h3 { margin: 0; font-size: 16px; color: var(--nv-coral); font-weight: 800; }
.nvp-tile-body p { margin: 0; color: var(--nv-ink-2); font-size: 14px; line-height: 1.5; }
.nvp-price { font-weight: 800; color: var(--nv-ink); font-size: 16px; }
.nvp-tile-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 8px; }

/* ---------- États vides ---------- */
.nvp-empty { text-align: center; padding: 48px 20px; }
.nvp-empty > i { font-size: 40px; color: var(--nv-coral); opacity: .8; margin-bottom: 14px; }
.nvp-empty .nvp-flex { flex-wrap: wrap; gap: 10px; align-items: center; }
.nvp-empty .nvp-btn i { font-size: 1em; margin: 0; opacity: 1; color: inherit; }
.nvp-empty h3 { color: var(--nv-ink); margin: 0 0 8px; font-size: 18px; }
.nvp-empty p { color: var(--nv-ink-2); margin: 0 0 18px; }

/* ---------- Textes légaux ---------- */
.nvp-legal h2 { font-size: 19px; color: var(--nv-coral); margin: 30px 0 10px; font-weight: 800; }
.nvp-legal h2:first-child { margin-top: 0; }
.nvp-legal p, .nvp-legal li { color: var(--nv-ink-2); line-height: 1.75; font-size: 15px; }
.nvp-legal ul { padding-left: 20px; }
.nvp-legal .nvp-updated { font-size: 13px; color: var(--nv-ink-3); }
.nvp-toc { position: sticky; top: 96px; }
.nvp-toc a { display: block; padding: 8px 0; color: var(--nv-ink-2); text-decoration: none; font-size: 14px; border-bottom: 1px solid var(--nv-line); }
.nvp-toc a:hover { color: var(--nv-coral); }

/* ---------- Divers ---------- */
.nvp-muted { color: var(--nv-ink-3); }
.nvp-mt { margin-top: 20px; }
.nvp-mb { margin-bottom: 20px; }
.nvp-flex { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.nvp-between { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.nvp-sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--nv-line); color: var(--nv-ink-2); }
.nvp-sum-row strong { color: var(--nv-ink); }
.nvp-sum-total { display: flex; justify-content: space-between; padding-top: 14px; font-size: 20px; font-weight: 800; color: var(--nv-coral); }
.nvp-qty { display: inline-flex; align-items: center; border: 1px solid var(--nv-line); border-radius: 10px; overflow: hidden; }
.nvp-qty button { width: 34px; height: 34px; border: 0; background: var(--nv-coral-soft); color: var(--nv-coral); font-weight: 800; cursor: pointer; }
.nvp-qty input { width: 44px; text-align: center; border: 0; font-weight: 700; color: var(--nv-ink); }
.nvp-faq details { border-bottom: 1px solid var(--nv-line); padding: 14px 0; }
.nvp-faq summary { cursor: pointer; font-weight: 700; color: var(--nv-ink); list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.nvp-faq summary::after { content: "+"; color: var(--nv-coral); font-weight: 800; }
.nvp-faq details[open] summary::after { content: "–"; }
.nvp-faq p { margin: 10px 0 0; }

/* Choix du moyen de paiement (paiement.php) */
.nvp-pay-methods { display: grid; gap: 10px; }
.nvp-pay-method { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1.5px solid #eee7e5; border-radius: 16px; cursor: pointer; background: #fff; transition: border-color .2s, box-shadow .2s, background .2s; }
.nvp-pay-method:hover { border-color: rgba(248, 86, 70, .45); }
.nvp-pay-method input { position: absolute; opacity: 0; pointer-events: none; }
.nvp-pay-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--nv-coral-soft, #fff4f2); color: var(--nv-coral, #F85646); display: grid; place-items: center; font-size: 19px; flex: 0 0 auto; }
.nvp-pay-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.nvp-pay-txt strong { color: var(--nv-ink, #1f2430); font-size: 15.5px; }
.nvp-pay-txt small { color: var(--nv-muted, #6b7280); font-size: 12.5px; margin-top: 2px; }
.nvp-pay-check { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #e5e7eb; display: grid; place-items: center; color: transparent; font-size: 12px; flex: 0 0 auto; }
.nvp-pay-method:has(input:checked) { border-color: var(--nv-coral, #F85646); background: #fffaf9; box-shadow: 0 0 0 4px rgba(248, 86, 70, .12); }
.nvp-pay-method:has(input:checked) .nvp-pay-check { background: var(--nv-coral, #F85646); border-color: var(--nv-coral, #F85646); color: #fff; }

/* Fenêtre modale (annulation, remboursement) */
.nvp-modal { position: fixed; inset: 0; z-index: 3000; background: rgba(17,20,28,.5); display: flex; align-items: center; justify-content: center; padding: 16px; }
.nvp-modal[hidden] { display: none; }
.nvp-modal-box { background: #fff; border-radius: 20px; padding: 22px; width: 100%; max-width: 460px; box-shadow: 0 24px 60px rgba(0,0,0,.25); animation: nvpPop .18s ease-out; }
.nvp-modal-box textarea.nvp-input { resize: vertical; min-height: 80px; }
@keyframes nvpPop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }

/* Étapes Réservation → Paiement → Confirmation */
.nvp-steps { display: flex; gap: 6px; margin: 16px 0 6px; }
.nvp-steps span { flex: 1; display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--nv-ink-3, #6b7280); padding: 8px 10px; border-radius: 12px; background: #f7f3f2; }
.nvp-steps span i { font-style: normal; width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #fff; border: 1px solid #ead9d6; font-size: 12px; }
.nvp-steps span.is-on { background: #fff1ef; color: #e04132; }
.nvp-steps span.is-on i { background: #F85646; border-color: #F85646; color: #fff; }

/* Attente de redirection vers LengoPay */
.nvp-paywait { position: fixed; inset: 0; z-index: 4000; background: rgba(255,255,255,.88); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 16px; }
.nvp-paywait[hidden] { display: none; }
.nvp-paywait-box { text-align: center; max-width: 340px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.nvp-paywait-box strong { font-size: 17px; }
.nvp-paywait-box p { margin: 0; color: #6b7280; font-size: 14px; }
.nvp-spin { width: 46px; height: 46px; border-radius: 50%; border: 4px solid #fde0dc; border-top-color: #F85646; animation: nvpSpin .8s linear infinite; }
@keyframes nvpSpin { to { transform: rotate(360deg); } }
