/* -------------------------------------------
   REFIT-BOAT — Base styles
------------------------------------------- */
:root {
  --rb-black: #0a0a0a;
  --rb-gold: #c9a55b;
  --rb-white: #f5f5f5;
  --rb-font-main: 'Cormorant Garamond', 'Times New Roman', serif;
  --rb-font-alt: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
}

html { scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--rb-black);
  color: var(--rb-white);
  font-family: var(--rb-font-alt);
  line-height: 1.6;
  font-size: 16px;
}

/* -------------------------------------------
   HEADER — logo + structure
------------------------------------------- */
header.site-header {
  background-color: var(--rb-black);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 12px 0;
  position: sticky;
  top: 0; z-index: 100;
}
header .container {
  max-width: 1200px; margin: 0 auto;
  padding: 0 24px; display: flex;
  align-items: center; justify-content: center;
}
header .brand img {
  display: block; width: auto; max-width: 420px; height: auto;
}

/* -------------------------------------------
   HERO SECTION
------------------------------------------- */
section.hero {
  max-width: 1100px; margin: 0 auto;
  padding: 40px 24px; text-align: center;
}
section.hero picture {
  display: block; max-width: 1100px; margin: 20px auto 0;
}
section.hero img {
  width: 100%; max-width: 1100px; height: auto;
  border-radius: 14px; object-fit: cover; object-position: center;
  box-shadow: 0 8px 22px rgba(0,0,0,0.4);
}

/* -------------------------------------------
   TYPOGRAPHY
------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--rb-font-main);
  color: var(--rb-gold);
  font-weight: 500;
  line-height: 1.3;
  margin: 1.2em 0 0.6em;
}
p { margin: 0 0 1em; }
a { color: var(--rb-gold); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: #e0c073; }

/* -------------------------------------------
   SECTIONS GENERALES
------------------------------------------- */
section { padding: 60px 24px; max-width: 1100px; margin: 0 auto; }
section.dark { background-color: #111; border-top: 1px solid rgba(255,255,255,0.05); }
hr { border: none; border-top: 1px solid rgba(255,255,255,0.1); margin: 40px 0; }

/* -------------------------------------------
   GALERIE (stage + thumbs)
------------------------------------------- */
.rb-gallery { display: grid; gap: 14px; }
.rb-stage {
  position: relative; width:100%; aspect-ratio: 16/9;
  overflow:hidden; border-radius:14px; background:#111;
  border:1px solid rgba(255,255,255,.08);
}
.rb-stage img { width:100%; height:100%; object-fit:cover; object-position:center; display:block; }
.rb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(0,0,0,.45);
  border: 1px solid rgba(255,255,255,.25); color: #fff; cursor: pointer;
  display: grid; place-items: center;
}
.rb-nav:hover { background: rgba(0,0,0,.65); }
.rb-nav.prev { left: 10px; } .rb-nav.next { right: 10px; }
.rb-thumbs {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(90px, 1fr);
  gap: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin;
}
.rb-thumb {
  background: transparent; border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px; padding: 0; cursor: pointer;
  overflow: hidden; height: 72px;
}
.rb-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; transition: transform .25s ease; }
.rb-thumb:hover img { transform: scale(1.04); }
.rb-thumb.is-active { outline: 2px solid var(--rb-gold); }

/* Lightbox rapide (crée côté JS) */
.rb-lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,.85);
  display: none; z-index: 999; align-items: center; justify-content: center; padding: 24px;
}
.rb-lightbox[aria-hidden="false"] { display: flex; }
.rb-lightbox img {
  max-width: min(92vw, 1400px); max-height: 88vh; border-radius: 10px; box-shadow: 0 10px 40px rgba(0,0,0,.6);
}
.rb-lightbox-close {
  position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(0,0,0,.5); color: #fff; border: 1px solid rgba(255,255,255,.25);
  cursor: pointer; font-size: 24px; line-height: 1;
}

/* -------------------------------------------
   FOOTER avec mini-carte + tooltips
------------------------------------------- */
.site-footer {
  background: #080808;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: #ccc;
  padding: 50px 24px 30px;
  font-size: 15px;
}
.footer-wrapper {
  max-width: 1100px; margin: 0 auto;
  display: grid; gap: 30px; text-align: center;
}

/* Mini-carte stylisée */
.footer-map {
  width: 100%; max-width: 700px; height: 180px;
  background: radial-gradient(ellipse at 50% 60%, #1a1a1a 0%, #0b0b0b 80%);
  border-radius: 10px; margin: 0 auto 10px; position: relative; overflow: hidden;
  box-shadow: inset 0 0 30px rgba(255,255,255,0.05);
}
/* Ligne côtière stylisée */
.footer-map::after{
  content:""; position:absolute; left:0; right:0; top:58%;
  height:2px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.1), transparent);
}

/* Points villes */
.footer-map .dot{
  position:absolute; width:10px; height:10px; border-radius:50%;
  background: var(--rb-gold); border: 1px solid rgba(255,255,255,.2);
  box-shadow: 0 0 10px rgba(201,165,91,.35);
  cursor: default;
}

/* Tooltip */
.footer-map .dot::after{
  content: attr(aria-label);
  position: absolute; left: 50%; bottom: 140%;
  transform: translateX(-50%) translateY(6px);
  background: #111; color: #fff; padding: 6px 9px; font-size: 12px;
  border: 1px solid rgba(255,255,255,.15); border-radius: 6px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: .18s ease; filter: drop-shadow(0 6px 16px rgba(0,0,0,.35));
}
.footer-map .dot::before{
  content:""; position:absolute; left:50%; bottom: calc(140% - 6px);
  transform: translateX(-50%);
  border: 6px solid transparent; border-top-color: #111;
  opacity: 0; transition: .18s ease;
}
.footer-map .dot:hover::after,
.footer-map .dot:hover::before{
  opacity: 1; transform: translateX(-50%) translateY(0);
}

/* Liste de villes (grille fluide) */
.footer-locations h3 {
  color: var(--rb-gold); font-family: var(--rb-font-main);
  font-weight: 500; font-size: 1.3rem; margin-bottom: 12px;
}
.footer-cities{
  list-style:none; margin:0 auto; padding:0;
  display:grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px 22px; max-width: 900px; justify-items: center;
}
.footer-cities li{
  color:#aaa; font-size:0.95rem; white-space: nowrap; transition: color .3s ease;
}
.footer-cities li:hover{ color: var(--rb-gold); }

/* Bas de footer */
.footer-brand {
  border-top: 1px solid rgba(255,255,255,0.05);
  margin-top: 10px; padding-top: 18px;
}
.footer-brand a { color: var(--rb-gold); }
.footer-brand a:hover { color: #e5c884; }
