/* =========================================================
   MesLitiges.com — STYLE.CSS UNIQUE (PRO • SIMPLE • STABLE)
   ✅ Scroll global OK
   ✅ Topbar FIXE + Header FIXE
   ✅ Compensation auto (plus d’espace bizarre)
   ✅ Dropdown stable
   ✅ Pages internes propres
   ✅ Footer centré
   ========================================================= */

/* =========================
   1) RESET + BASE
   ========================= */
*,
*::before,
*::after{ box-sizing:border-box; }

html, body{ margin:0; padding:0; }

img{ max-width:100%; height:auto; display:block; }
a{ color:inherit; text-decoration:none; }
button, input, select, textarea{ font:inherit; }

:focus-visible{
  outline:none;
  box-shadow: 0 0 0 3px rgba(0,0,0,.10), 0 0 0 6px rgba(212,175,55,.22);
}

/* =========================
   2) SCROLL GLOBAL (PROPRE)
   ========================= */
html{
  scroll-behavior:smooth;
  overflow-x:hidden;
  overflow-y:auto;
}
body{
  overflow-x:hidden;
  overflow-y:auto;
}

/* =========================
   3) TOKENS + HAUTEURS FIXES
   ========================= */
:root{
  --cream-1:#f8f2e9;
  --cream-2:#f4efe4;
  --cream-3:#f3eadc;

  --ink:#151515;
  --ink-soft:#2a2a2a;
  --gold:#D4AF37;

  --dark:#0b0f16;
  --dark-2:#07090d;

  --stroke: rgba(0,0,0,.08);
  --shadow: 0 10px 30px rgba(0,0,0,.10);
  --shadow-strong: 0 18px 50px rgba(0,0,0,.45);

  --radius: 18px;

  /* ✅ Hauteurs (ajuste si tu veux) */
  --topbar-h: 44px;
  --header-h: 76px;
  --gap: 10px; /* petit espace visuel entre topbar et header */
}

/* =========================
   4) FOND GLOBAL
   ========================= */
body{
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background:
    radial-gradient(900px 520px at 15% -10%, rgba(212,175,55,.22), transparent 60%),
    radial-gradient(700px 420px at 90% 10%, rgba(212,175,55,.10), transparent 55%),
    linear-gradient(180deg, var(--cream-1) 0%, var(--cream-3) 55%, var(--cream-2) 100%);
  color: var(--ink);
  line-height: 1.55;

  /* ✅ IMPORTANT: compense topbar + header fixes */
  padding-top: calc(var(--topbar-h) + var(--gap) + var(--header-h));
}

/* container */
.container{
  width: min(1160px, 92%);
  margin-inline:auto;
}

/* wrapper */
.site-wrapper{
  display:flex;
  flex-direction:column;
  min-height:100vh;
  width:100%;
}
main{ width:100%; }

/* =========================================================
   5) TOPBAR (FIXE)
   ========================================================= */
.topbar{
  position:fixed;
  top:0; left:0; right:0;
  height:var(--topbar-h);
  z-index:10050;

  display:flex;
  align-items:center;

  background: rgba(11,15,22,.92);
  color: rgba(255,255,255,.88);
  border-bottom: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(10px);
}

.topbar-inner{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  width:100%;
  padding: 0; /* hauteur gérée par --topbar-h */
  text-align:center;
}

.topbar-phone{
  color:#fff;
  font-weight:900;
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-size:1.05rem;
}
.topbar-info{ font-size:.95rem; }
.topbar-info .price{ color: var(--gold); font-weight:900; }

@media (max-width:768px){
  :root{ --topbar-h: 62px; --header-h: 74px; --gap: 8px; }
  .topbar-inner{ flex-direction:column; gap:6px; }
  .topbar-phone{ font-size:1.05rem; }
}

/* =========================================================
   6) HEADER (FIXE) — supporte .header ET .site-header
   ========================================================= */
.header,
.site-header{
  position:fixed;
  top: calc(var(--topbar-h) + var(--gap));
  left:0; right:0;
  height: var(--header-h);
  z-index:10040;

  display:flex;
  align-items:center;

  background: rgba(11,15,22,.78);
  border-bottom: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0,0,0,.18);

  overflow: visible; /* ✅ dropdown jamais coupé */
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding: 0; /* hauteur gérée par --header-h */
  width:100%;
}

/* Brand */
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:220px;
  color:#fff;
  font-weight:900;
}
.brand-badge{
  width:38px; height:38px;
  border-radius:12px;
  background:
    radial-gradient(circle at 30% 30%, rgba(212,175,55,.35), rgba(212,175,55,.08)),
    rgba(255,255,255,.04);
  border:1px solid rgba(212,175,55,.25);
  box-shadow: 0 12px 28px rgba(0,0,0,.35);
}
.brand b{ color: var(--gold); }

/* Nav */
.nav{
  display:flex;
  align-items:center;
  gap:12px;
  color: rgba(255,255,255,.78);
  overflow: visible; /* ✅ dropdown */
}
.nav-link{
  padding:.55rem .75rem;
  border-radius:14px;
  border:1px solid transparent;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.nav-link:hover{
  color:#fff;
  border-color: rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
}
.nav-link.active{
  color:#fff;
  border-color: rgba(212,175,55,.28);
  background: rgba(212,175,55,.08);
}

/* CTA */
.cta{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:260px;
  justify-content:flex-end;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:.72rem 1.05rem;
  border-radius:16px;
  font-weight:900;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.03);
  color:#fff;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, filter .18s ease;
}
.btn:hover{ transform: translateY(-2px); filter: brightness(1.03); }
.btn:active{ transform: translateY(0) scale(.99); }

.btn-primary{
  border-color: rgba(212,175,55,.40);
  background:
    radial-gradient(circle at 30% 30%, rgba(212,175,55,.20), rgba(212,175,55,.07)),
    rgba(255,255,255,.02);
}
.btn-primary:hover{
  border-color: rgba(212,175,55,.55);
  box-shadow: 0 18px 45px rgba(0,0,0,.45), 0 0 28px rgba(212,175,55,.16);
}
.btn-secondary{
  background: rgba(31,36,51,.88);
  border-color: rgba(255,255,255,.14);
}

@media (max-width:980px){
  .nav{ display:none; }
  .brand{ min-width:auto; }
  .cta{ min-width:auto; }
}

/* =========================================================
   7) DROPDOWN (stable)
   HTML: .dropdown / .drop-btn / .drop-menu
   JS: .dropdown.open
   ========================================================= */
.dropdown{ position:relative; overflow: visible; }

.drop-btn{
  cursor:pointer;
  padding:.55rem .75rem;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  color:#fff;
  font-weight:900;
}

.drop-menu{
  display:none;
  position:absolute;
  top: calc(100% + 10px);
  left:0;
  width: 360px;
  padding:10px;
  border-radius:16px;
  background: rgba(20,24,36,.98);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: var(--shadow-strong);
  z-index: 99999;

  max-height: 70vh;
  overflow-y:auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-right:6px;
}
.dropdown.open .drop-menu{ display:block; }

.drop-menu a{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 12px;
  border-radius:14px;
  color: rgba(255,255,255,.86);
  border:1px solid transparent;
}
.drop-menu a:hover{
  color:#fff;
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.12);
}
.drop-menu::-webkit-scrollbar{ width:10px; }
.drop-menu::-webkit-scrollbar-thumb{ border-radius:10px; background: rgba(255,255,255,.14); }

/* =========================================================
   8) PAGES / CARDS
   ========================================================= */
.page-interne-main{ padding: 34px 0 70px; }

.sheet,
.sheet-inner,
.page,
.page-content,
.guide,
.guide-wrap{
  width: min(1100px, 92%);
  margin-inline:auto;
}

.kicker{
  letter-spacing:.16em;
  text-transform:uppercase;
  font-size:.82rem;
  color: rgba(0,0,0,.55);
  margin-bottom:10px;
}
h1{
  letter-spacing:-0.02em;
  color:#121212;
  margin: 0 0 10px;
}
.lead{
  color: var(--ink-soft);
  line-height:1.65;
  max-width:900px;
  margin: 0 0 12px;
}

.notice{
  background:#fff6e9;
  border:1px solid rgba(212,175,55,.35);
  border-radius:14px;
  padding:12px 14px;
  color:#1a1a1a;
  box-shadow: var(--shadow);
  margin-top:12px;
}
.card{
  background:#fff;
  border:1px solid rgba(0,0,0,.06);
  border-radius:18px;
  box-shadow: var(--shadow);
  padding:18px;
  color:#151515;
}
.section{ margin-top:18px; }

.card h2{
  margin:0 0 10px;
  color:#141414;
  font-size:1.15rem;
}

ul{ padding-left:18px; margin:10px 0 0; }
li{ margin:6px 0; }

/* =========================================================
   9) FOOTER PRO (centrage)
   ========================================================= */
.footer-pro{
  background: var(--dark-2);
  color:#ddd;
  margin-top:auto;
}

.footer-pro-inner{
  width: min(1160px, 92%);
  margin-inline:auto;

  display:grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap:28px;
  padding:34px 0;
  align-items:start;
}

@media (max-width:900px){
  .footer-pro-inner{ grid-template-columns:1fr; }
}

.footer-pro .ftitle{
  font-weight:900;
  color:#fff;
  margin-bottom:10px;
}
.footer-pro .ftext{
  color:#b9b9b9;
  line-height:1.6;
  margin:0;
  max-width:420px;
}
.footer-pro .flink{
  display:block;
  color:#d8d8d8;
  margin:8px 0;
}
.footer-pro .flink:hover{ color: var(--gold); }

.footer-bottom{ border-top: 1px solid rgba(255,255,255,.08); }
.footer-bottom-inner{
  width: min(1160px, 92%);
  margin-inline:auto;
  padding:14px 0;
  color:#bdbdbd;
  font-size:.92rem;
  text-align:center;
}

/* =========================================================
   10) GARDE-FOUS ANTI BUG SCROLL
   ========================================================= */
.hero, .home-hero, .index-hero,
.page-interne, .page-guide,
.sheet, .sheet-inner{
  height:auto;
  min-height:0;
}
.page-interne, .page-guide, main, .page-interne-main{
  overflow: visible;
}
