/* ============================================================
   oserezvous.com — theme.css (refonte mobile-first 2026-05-04)
   Paradigme : « Compass nocturne / Astrolabe d'explorateur »
   Préfixe   : osv-cmp- (oserezvous compass nocturne)
   ------------------------------------------------------------
   Palette legacy préservée :
     midnight indigo #0d0a18 (theme-color depuis avant)
     saffron amber  #ffa400 (h5 / accents legacy)
     jaune chaud    #fc3 (color-white a) → glissé vers gold #f0c15a
     texte blanc    #fff (sur dark) → cream #f4ead8 plus chaud
   Esprit : carte céleste vintage, dare-to-explore, expédition nocturne.
   ============================================================ */

:root {
  --osv-cmp-bg:       #0d0a18;
  --osv-cmp-bg-2:     #14112a;
  --osv-cmp-surface:  #1c1a3c;
  --osv-cmp-surface-2:#252245;

  --osv-cmp-ink:      #f4ead8;
  --osv-cmp-ink-soft: #d8cbb1;
  --osv-cmp-muted:    #908ca8;

  --osv-cmp-amber:    #ffa400;  /* préservé legacy h5 */
  --osv-cmp-gold:     #f0c15a;  /* parchemin doré */
  --osv-cmp-copper:   #b3741f;  /* deeper amber */
  --osv-cmp-star:     #e8d6a7;  /* highlight étoile */
  --osv-cmp-crimson:  #c84a5e;  /* CTA / sextant needle */

  --osv-cmp-border:    rgba(240, 193, 90, 0.22);
  --osv-cmp-border-2:  rgba(240, 193, 90, 0.35);
  --osv-cmp-grid:      rgba(240, 193, 90, 0.06);

  --osv-cmp-radius-sm: 4px;
  --osv-cmp-radius:    10px;
  --osv-cmp-radius-lg: 16px;

  --osv-cmp-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
  --osv-cmp-shadow:    0 8px 24px rgba(0, 0, 0, 0.55);
  --osv-cmp-shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.7);

  --osv-cmp-display:   'Cinzel', 'Trajan Pro', 'Cormorant Garamond', serif;
  --osv-cmp-body:      'Manrope', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --osv-cmp-bottom-nav-h: 64px;
  --osv-cmp-safe-bot:  env(safe-area-inset-bottom, 0px);
}

/* ===== Reset / Neutralisation legacy ===== */

*, *::before, *::after { box-sizing: border-box; }

html, body {
  background: var(--osv-cmp-bg) !important;
  color: var(--osv-cmp-ink) !important;
  font-family: var(--osv-cmp-body) !important;
  font-size: 16px !important;
  line-height: 1.6 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
}

body {
  /* Pattern starmap subtil : grille horizontale + verticale faible alpha */
  background-image:
    radial-gradient(circle at 18% 25%, rgba(255, 164, 0, 0.06) 0, transparent 28%),
    radial-gradient(circle at 82% 70%, rgba(200, 74, 94, 0.05) 0, transparent 30%),
    linear-gradient(0deg, var(--osv-cmp-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--osv-cmp-grid) 1px, transparent 1px);
  background-size: auto, auto, 56px 56px, 56px 56px;
  background-attachment: fixed, fixed, fixed, fixed;
  padding-bottom: calc(var(--osv-cmp-bottom-nav-h) + var(--osv-cmp-safe-bot) + 12px) !important;
}

/* Neutralise le preloader legacy (jQuery wrap) qui sinon reste visible */
.preloader { display: none !important; }

/* Neutralise les section parallax legacy en bg image — on préfère le fond CSS du body */
.parallax-section { background: transparent !important; padding: 0 !important; }
#work, #plan, #contact, #team, #pages { padding: 0 !important; }

/* Liens par défaut */
a {
  color: var(--osv-cmp-gold);
  text-decoration: none;
  transition: color 160ms ease;
}
a:hover, a:focus { color: var(--osv-cmp-amber); }
a:focus-visible {
  outline: 2px solid var(--osv-cmp-amber);
  outline-offset: 3px;
  border-radius: var(--osv-cmp-radius-sm);
}

/* Typographie h1-h5 — surcharge complète du legacy */
h1, h2, h3, h4, h5 {
  font-family: var(--osv-cmp-display) !important;
  color: var(--osv-cmp-ink) !important;
  letter-spacing: 0.04em !important;
  font-weight: 600 !important;
  margin: 0 0 0.5em 0 !important;
  line-height: 1.2 !important;
  text-transform: none !important;
}

h1 { font-size: clamp(1.65rem, 4.5vw + 0.5rem, 3rem) !important; }
h2 { font-size: clamp(1.4rem, 3vw + 0.5rem, 2.2rem) !important; color: var(--osv-cmp-gold) !important; }
h3 { font-size: clamp(1.15rem, 2vw + 0.5rem, 1.6rem) !important; color: var(--osv-cmp-amber) !important; letter-spacing: 0.06em !important; }
h4 { font-size: clamp(1rem, 1.5vw + 0.4rem, 1.25rem) !important; color: var(--osv-cmp-ink) !important; }
h5 {
  font-size: clamp(0.85rem, 1vw + 0.35rem, 1rem) !important;
  color: var(--osv-cmp-amber) !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  padding-top: 0 !important;
}

p {
  color: var(--osv-cmp-ink-soft) !important;
  letter-spacing: 0 !important;
  line-height: 1.7 !important;
  margin: 0 0 1em 0 !important;
}

hr {
  width: clamp(80px, 12vw, 160px) !important;
  border: none;
  border-top: 1px solid var(--osv-cmp-border-2);
  margin: 1.2em auto !important;
  position: relative;
}

/* Décoration compass-rose mini sur certains hr */
.osv-cmp-hr-rose { position: relative; }
.osv-cmp-hr-rose::after {
  content: "✦";
  color: var(--osv-cmp-gold);
  background: var(--osv-cmp-bg);
  padding: 0 14px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.85em;
}

/* ===== Header ===== */

.osv-cmp-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(180deg, var(--osv-cmp-bg) 0%, rgba(13, 10, 24, 0.94) 80%, rgba(13, 10, 24, 0.78) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--osv-cmp-border);
  padding: env(safe-area-inset-top, 0) 0 0 0;
}

.osv-cmp-header-row {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 16px;
}

.osv-cmp-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--osv-cmp-display);
  font-size: clamp(1.05rem, 2.4vw, 1.4rem);
  letter-spacing: 0.14em;
  color: var(--osv-cmp-ink) !important;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 600;
}

.osv-cmp-brand-rose {
  display: inline-block;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: var(--osv-cmp-amber);
}

.osv-cmp-quick {
  display: none;
  margin-left: auto;
  align-items: center;
  gap: 4px;
}

.osv-cmp-quick a {
  font-family: var(--osv-cmp-body);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--osv-cmp-ink-soft);
  padding: 8px 12px;
  border-radius: var(--osv-cmp-radius-sm);
  transition: background 160ms ease, color 160ms ease;
}
.osv-cmp-quick a:hover {
  background: var(--osv-cmp-surface);
  color: var(--osv-cmp-amber);
}

.osv-cmp-burger {
  margin-left: auto;
  background: var(--osv-cmp-surface);
  color: var(--osv-cmp-amber);
  border: 1px solid var(--osv-cmp-border-2);
  border-radius: var(--osv-cmp-radius-sm);
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0;
  position: relative;
}
.osv-cmp-burger svg { width: 22px; height: 22px; }
.osv-cmp-burger:focus-visible { outline: 2px solid var(--osv-cmp-amber); outline-offset: 2px; }

@media (min-width: 992px) {
  .osv-cmp-quick { display: inline-flex; }
  .osv-cmp-burger { display: none; }
}

/* Hero LP */
.osv-cmp-hero {
  position: relative;
  padding: clamp(40px, 8vw, 88px) 16px clamp(36px, 6vw, 64px);
  text-align: center;
  overflow: hidden;
}
.osv-cmp-hero::before {
  /* compass-rose ornament en arrière-plan */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 50% 50%, rgba(240, 193, 90, 0.07) 0, transparent 38%);
  pointer-events: none;
}
.osv-cmp-hero-inner { position: relative; max-width: 880px; margin: 0 auto; }

.osv-cmp-hero h1 {
  background: linear-gradient(180deg, var(--osv-cmp-amber) 0%, var(--osv-cmp-gold) 60%, var(--osv-cmp-copper) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  text-shadow: 0 2px 0 rgba(255, 164, 0, 0.12);
}
.osv-cmp-hero p.lead {
  color: var(--osv-cmp-ink-soft) !important;
  font-size: clamp(1rem, 1.5vw + 0.4rem, 1.2rem);
  max-width: 60ch;
  margin: 0 auto 1.4em !important;
}

.osv-cmp-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--osv-cmp-display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.95rem;
  background: linear-gradient(180deg, var(--osv-cmp-amber) 0%, var(--osv-cmp-copper) 100%);
  color: var(--osv-cmp-bg) !important;
  padding: 14px 24px;
  border-radius: var(--osv-cmp-radius-sm);
  border: 1px solid var(--osv-cmp-gold);
  box-shadow: var(--osv-cmp-shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.osv-cmp-hero-cta:hover {
  transform: translateY(-1px);
  box-shadow: var(--osv-cmp-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.24);
  color: var(--osv-cmp-bg) !important;
}

/* ===== Drawer mobile (off-canvas) ===== */

.osv-cmp-drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(8, 6, 18, 0.78);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: none;
}
.osv-cmp-drawer[data-open="true"] { display: block; }

.osv-cmp-drawer-panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(86vw, 360px);
  background: var(--osv-cmp-bg-2);
  border-left: 1px solid var(--osv-cmp-border-2);
  padding: env(safe-area-inset-top, 0) 0 0 0;
  box-shadow: var(--osv-cmp-shadow-lg);
  display: flex;
  flex-direction: column;
}

.osv-cmp-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--osv-cmp-border);
}
.osv-cmp-drawer-head h5 { margin: 0 !important; }

.osv-cmp-drawer-close {
  background: transparent;
  color: var(--osv-cmp-ink);
  border: 1px solid var(--osv-cmp-border-2);
  border-radius: var(--osv-cmp-radius-sm);
  width: 36px; height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
}

.osv-cmp-drawer-list {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  overflow-y: auto;
}
.osv-cmp-drawer-list li { margin: 0; }
.osv-cmp-drawer-list a {
  display: block;
  padding: 14px 20px;
  font-family: var(--osv-cmp-body);
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: var(--osv-cmp-ink) !important;
  border-bottom: 1px solid rgba(240, 193, 90, 0.08);
  text-decoration: none;
}
.osv-cmp-drawer-list a:hover,
.osv-cmp-drawer-list a:focus {
  background: var(--osv-cmp-surface);
  color: var(--osv-cmp-amber) !important;
}

/* ===== Main / Container ===== */

.osv-cmp-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px;
}

.osv-cmp-section {
  margin: clamp(28px, 5vw, 56px) 0;
}

.osv-cmp-section-title {
  text-align: center;
  margin-bottom: clamp(24px, 4vw, 40px);
  position: relative;
}
.osv-cmp-section-title h5 { margin-bottom: 6px !important; }

/* ===== Listing grid ===== */

.osv-cmp-listing-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: clamp(20px, 4vw, 36px);
  padding: clamp(16px, 3vw, 28px) 16px;
  border: 1px solid var(--osv-cmp-border);
  border-radius: var(--osv-cmp-radius);
  background: linear-gradient(180deg, var(--osv-cmp-bg-2) 0%, var(--osv-cmp-bg) 100%);
}

.osv-cmp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(14px, 2vw, 22px);
}

.osv-cmp-card {
  background: var(--osv-cmp-surface);
  border: 1px solid var(--osv-cmp-border);
  border-radius: var(--osv-cmp-radius);
  overflow: hidden;
  position: relative;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}
.osv-cmp-card::before {
  /* coin doré orné, marque cartographique */
  content: "";
  position: absolute;
  top: 8px; left: 8px;
  width: 14px; height: 14px;
  border-top: 1px solid var(--osv-cmp-gold);
  border-left: 1px solid var(--osv-cmp-gold);
  z-index: 2;
  pointer-events: none;
  opacity: 0.55;
}
.osv-cmp-card::after {
  content: "";
  position: absolute;
  bottom: 8px; right: 8px;
  width: 14px; height: 14px;
  border-bottom: 1px solid var(--osv-cmp-gold);
  border-right: 1px solid var(--osv-cmp-gold);
  z-index: 2;
  pointer-events: none;
  opacity: 0.55;
}
.osv-cmp-card:hover,
.osv-cmp-card:focus-within {
  transform: translateY(-3px);
  box-shadow: var(--osv-cmp-shadow);
  border-color: var(--osv-cmp-border-2);
}
.osv-cmp-card a {
  display: block;
  color: inherit;
  text-decoration: none;
}
.osv-cmp-card-photo {
  aspect-ratio: 4 / 3;
  width: 100%;
  overflow: hidden;
  background: var(--osv-cmp-bg-2);
}
.osv-cmp-card-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}
.osv-cmp-card:hover .osv-cmp-card-photo img { transform: scale(1.04); }

.osv-cmp-card-body {
  padding: 14px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.osv-cmp-card-town {
  font-family: var(--osv-cmp-display);
  font-size: 1.05rem;
  color: var(--osv-cmp-gold) !important;
  letter-spacing: 0.04em;
  margin: 0 !important;
}
.osv-cmp-card-meta {
  font-size: 0.92rem;
  color: var(--osv-cmp-amber) !important;
  letter-spacing: 0.04em;
  margin: 0 !important;
}
.osv-cmp-card-age {
  font-family: var(--osv-cmp-body);
  font-size: 0.82rem;
  color: var(--osv-cmp-muted) !important;
  letter-spacing: 0.06em;
  margin: 0 !important;
  text-transform: uppercase;
}

/* ===== Empty state ===== */

.osv-cmp-empty {
  text-align: center;
  padding: 40px 20px;
  border: 1px dashed var(--osv-cmp-border-2);
  border-radius: var(--osv-cmp-radius);
  background: var(--osv-cmp-bg-2);
}

/* ===== Pagination ===== */

.osv-cmp-pagination {
  margin: clamp(28px, 5vw, 48px) 0 clamp(20px, 3vw, 32px);
  text-align: center;
}
.osv-cmp-pagination h2 { margin-bottom: 18px !important; }
.osv-cmp-pagination a,
.osv-cmp-pagination span,
.osv-cmp-pagination strong {
  display: inline-block;
  min-width: 36px;
  padding: 6px 12px;
  margin: 4px 3px;
  border: 1px solid var(--osv-cmp-border);
  border-radius: var(--osv-cmp-radius-sm);
  font-family: var(--osv-cmp-display);
  font-size: 0.95rem;
  color: var(--osv-cmp-gold);
  text-decoration: none;
  background: var(--osv-cmp-surface);
}
.osv-cmp-pagination a:hover {
  background: var(--osv-cmp-surface-2);
  color: var(--osv-cmp-amber);
  border-color: var(--osv-cmp-border-2);
}
.osv-cmp-pagination strong,
.osv-cmp-pagination .current {
  background: var(--osv-cmp-amber);
  color: var(--osv-cmp-bg);
  border-color: var(--osv-cmp-gold);
  font-weight: 700;
}

/* ===== Detail page ===== */

.osv-cmp-detail {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(20px, 3vw, 36px) 16px;
}

.osv-cmp-detail-card {
  background: var(--osv-cmp-surface);
  border: 1px solid var(--osv-cmp-border-2);
  border-radius: var(--osv-cmp-radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--osv-cmp-shadow);
}
/* cadre cartographique : double border or */
.osv-cmp-detail-card::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid var(--osv-cmp-border);
  border-radius: calc(var(--osv-cmp-radius-lg) - 6px);
  pointer-events: none;
}

.osv-cmp-detail-photo {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--osv-cmp-bg-2);
  border-bottom: 1px solid var(--osv-cmp-border);
}
.osv-cmp-detail-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.osv-cmp-detail-body {
  padding: clamp(20px, 3vw, 32px);
  position: relative;
}
.osv-cmp-detail-body h1 {
  margin-top: 0 !important;
  margin-bottom: 8px !important;
  color: var(--osv-cmp-amber) !important;
  background: none;
  -webkit-text-fill-color: var(--osv-cmp-amber);
}
.osv-cmp-detail-meta {
  font-family: var(--osv-cmp-display);
  letter-spacing: 0.08em;
  font-size: 0.95rem;
  color: var(--osv-cmp-gold) !important;
  margin: 0 0 16px !important;
  text-transform: uppercase;
}
.osv-cmp-detail-desc {
  color: var(--osv-cmp-ink-soft) !important;
  font-size: clamp(0.95rem, 1vw + 0.45rem, 1.05rem);
  line-height: 1.75 !important;
  font-style: italic;
  white-space: pre-line;
}

.osv-cmp-detail-gallery {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}
.osv-cmp-detail-gallery a {
  display: block;
  border: 1px solid var(--osv-cmp-border);
  border-radius: var(--osv-cmp-radius-sm);
  overflow: hidden;
}
.osv-cmp-detail-gallery img {
  width: 100%;
  height: 100%;
  display: block;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.osv-cmp-detail-tags {
  margin: 18px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.osv-cmp-detail-tags a {
  font-size: 0.82rem;
  background: var(--osv-cmp-surface-2);
  color: var(--osv-cmp-gold);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--osv-cmp-border);
  text-decoration: none;
}
.osv-cmp-detail-tags a:hover {
  background: var(--osv-cmp-amber);
  color: var(--osv-cmp-bg);
}

.osv-cmp-detail-contact {
  margin-top: 24px;
  padding: 18px;
  border: 1px solid var(--osv-cmp-border-2);
  border-radius: var(--osv-cmp-radius);
  background: var(--osv-cmp-bg-2);
}
.osv-cmp-detail-contact h3 { margin-top: 0 !important; }
.osv-cmp-detail-contact a {
  color: var(--osv-cmp-amber);
  font-weight: 600;
}

.osv-cmp-detail-contact iframe {
  border: 0;
  max-width: 100%;
}

.osv-cmp-detail-related {
  margin-top: clamp(28px, 5vw, 48px);
}
.osv-cmp-detail-related h3 { text-align: center; margin-bottom: 18px !important; }

/* ===== Footer ===== */

.osv-cmp-footer-wrap {
  margin-top: clamp(32px, 5vw, 56px);
  padding: clamp(28px, 5vw, 56px) 16px clamp(20px, 3vw, 32px);
  background: linear-gradient(180deg, var(--osv-cmp-bg) 0%, #050309 100%);
  border-top: 1px solid var(--osv-cmp-border);
}

.osv-cmp-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  max-width: 1280px;
  margin: 0 auto;
}
@media (min-width: 640px) {
  .osv-cmp-footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}
@media (min-width: 1024px) {
  .osv-cmp-footer-grid { grid-template-columns: repeat(4, 1fr); gap: 40px; }
}

.osv-cmp-footer-col h4 {
  font-family: var(--osv-cmp-display);
  font-size: 0.95rem !important;
  letter-spacing: 0.18em !important;
  color: var(--osv-cmp-amber) !important;
  margin: 0 0 14px !important;
  text-transform: uppercase !important;
  border-bottom: 1px solid var(--osv-cmp-border);
  padding-bottom: 8px;
}
.osv-cmp-footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.osv-cmp-footer-col li { margin: 0 0 8px; }
.osv-cmp-footer-col a {
  color: var(--osv-cmp-ink-soft);
  font-size: 0.9rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}
.osv-cmp-footer-col a:hover,
.osv-cmp-footer-col a:focus {
  color: var(--osv-cmp-gold);
  border-bottom-color: var(--osv-cmp-border-2);
}

.osv-cmp-footer-pubzone {
  text-align: center;
  margin: 32px auto 0;
  max-width: 520px;
}
.osv-cmp-footer-pubzone img {
  max-width: 100%;
  height: auto;
  border-radius: var(--osv-cmp-radius-sm);
}
.osv-cmp-footer-pubzone b {
  display: block;
  margin-top: 8px;
  color: var(--osv-cmp-gold);
  font-family: var(--osv-cmp-body);
  font-size: 0.9rem;
}

.osv-cmp-footer-meta {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--osv-cmp-border);
  text-align: center;
  font-size: 0.85rem;
  color: var(--osv-cmp-muted);
  font-family: var(--osv-cmp-body);
  letter-spacing: 0.04em;
}
.osv-cmp-footer-meta a { color: var(--osv-cmp-gold); }

/* ===== Bottom-nav fixe (mobile, ≤ 991px) ===== */

.osv-cmp-bot {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 70;
  background: linear-gradient(180deg, var(--osv-cmp-bg-2) 0%, #060313 100%);
  border-top: 1px solid var(--osv-cmp-border-2);
  padding-bottom: var(--osv-cmp-safe-bot);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.45);
}
.osv-cmp-bot-row {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  max-width: 720px;
  margin: 0 auto;
}
.osv-cmp-bot-cell {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 8px 4px;
  text-decoration: none;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--osv-cmp-muted);
  font-family: var(--osv-cmp-body);
  transition: color 160ms ease, background 160ms ease;
  text-transform: uppercase;
  min-height: var(--osv-cmp-bottom-nav-h);
}
.osv-cmp-bot-cell svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.osv-cmp-bot-cell:hover,
.osv-cmp-bot-cell:focus {
  color: var(--osv-cmp-gold);
  background: rgba(255, 164, 0, 0.05);
}
.osv-cmp-bot-cell[aria-current="page"] {
  color: var(--osv-cmp-amber);
  background: rgba(255, 164, 0, 0.08);
}
.osv-cmp-bot-cell[aria-current="page"]::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 28px;
  height: 2px;
  background: var(--osv-cmp-amber);
  transform: translateX(-50%);
  border-radius: 0 0 2px 2px;
}
.osv-cmp-bot-cell { position: relative; }

@media (min-width: 992px) {
  .osv-cmp-bot { display: none; }
  body { padding-bottom: 0 !important; }
}

/* ===== CTA flottant (desktop & mobile) ===== */

.osv-cmp-cta-fixed {
  position: fixed;
  z-index: 65;
  right: 14px;
  bottom: calc(var(--osv-cmp-bottom-nav-h) + var(--osv-cmp-safe-bot) + 14px);
  background: linear-gradient(180deg, var(--osv-cmp-crimson) 0%, #8c2f3d 100%);
  color: #fff !important;
  padding: 12px 18px;
  border-radius: 999px;
  font-family: var(--osv-cmp-display);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: var(--osv-cmp-shadow);
  border: 1px solid rgba(255, 255, 255, 0.08);
  max-width: calc(100vw - 28px);
}
.osv-cmp-cta-fixed:hover {
  filter: brightness(1.1);
  color: #fff !important;
}
@media (min-width: 992px) {
  .osv-cmp-cta-fixed { bottom: 24px; right: 24px; }
}

/* ===== Dialog vanilla (remplace BS modal) ===== */

.osv-cmp-dialog {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(8, 6, 18, 0.78);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.osv-cmp-dialog[data-open="true"] { display: flex; }

.osv-cmp-dialog-inner {
  width: min(560px, 100%);
  max-height: 90vh;
  background: var(--osv-cmp-bg-2);
  border: 1px solid var(--osv-cmp-border-2);
  border-radius: var(--osv-cmp-radius);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--osv-cmp-shadow-lg);
}

.osv-cmp-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--osv-cmp-border);
  background: var(--osv-cmp-surface);
}
.osv-cmp-dialog-head h5 { margin: 0 !important; }

.osv-cmp-dialog-close {
  background: transparent;
  color: var(--osv-cmp-ink);
  border: 1px solid var(--osv-cmp-border-2);
  border-radius: var(--osv-cmp-radius-sm);
  width: 36px; height: 36px;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
}

.osv-cmp-dialog-body {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}
.osv-cmp-dialog-body iframe {
  display: block;
  width: 100%;
  border: 0;
  min-height: 520px;
}

/* ===== Page conditions / saisie / account ===== */

.osv-cmp-prose {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(20px, 3vw, 36px) 16px;
}
.osv-cmp-prose h2 { margin-top: 1.6em !important; }
.osv-cmp-prose ul { color: var(--osv-cmp-ink-soft); padding-left: 1.4em; }
.osv-cmp-prose li { margin: 0.4em 0; }

/* ===== Utilities ===== */

.osv-cmp-text-center { text-align: center; }
.osv-cmp-mt-lg       { margin-top: clamp(28px, 5vw, 48px); }

/* Anti-débordement images au cas où */
img { max-width: 100%; height: auto; }
iframe { max-width: 100%; }

/* Override BS3/4 résiduel : aucun btn-default, aucun navbar fixed, etc. */
.btn-default, .btn-primary {
  background: var(--osv-cmp-amber) !important;
  color: var(--osv-cmp-bg) !important;
  border: 1px solid var(--osv-cmp-gold) !important;
  font-family: var(--osv-cmp-display) !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  border-radius: var(--osv-cmp-radius-sm) !important;
}
