/*
 * ════════════════════════════════════════════════════════════
 * BASTIEN PLU PHOTOGRAPHE — Charte graphique
 * assets/css/charte.css — Version 2.0.0
 *
 * Contient : variables CSS, reset, nav, footer, responsive.
 * NE PAS modifier les styles nav/footer dans les pages.
 * ════════════════════════════════════════════════════════════
 */

/* ──────────────────────────────────────────────────────────
   VARIABLES
────────────────────────────────────────────────────────── */
:root {
  --orange:      #e0613f;
  --orange-dark: #c94e2d;
  --dark:        #25282a;
  --dark-mid:    #3a3d3f;
  --cream:       #f7f3ef;
  --cream-mid:   #ede5dc;
  --white:       #ffffff;
  --muted:       #8a8a8a;
  --font-serif:  'Playfair Display', Georgia, serif;
  --font-sans:   'DM Sans', system-ui, sans-serif;
}

/* ──────────────────────────────────────────────────────────
   RESET DE BASE
────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  max-width: 100%;
  overflow-x: hidden;
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ──────────────────────────────────────────────────────────
   NAV — DESKTOP
────────────────────────────────────────────────────────── */
#bplu-navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 99999;
  padding: 18px 48px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  transition: background .4s, padding .4s, box-shadow .4s;
  font-family: var(--font-sans);
}

#bplu-navbar.scrolled {
  background: rgba(37,40,42,.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 12px 48px;
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
}

.bplu-nav-left {
  display: flex; gap: 28px;
  list-style: none; margin: 0; padding: 0;
  align-items: center; justify-content: flex-end;
}

.bplu-nav-right {
  display: flex; gap: 28px;
  list-style: none; margin: 0; padding: 0;
  align-items: center; justify-content: flex-start;
}

.bplu-logo {
  display: flex; justify-content: center; align-items: center;
  padding: 0 32px; text-decoration: none;
}

.bplu-nav-item a {
  color: rgba(255,255,255,.72) !important;
  text-decoration: none !important;
  font-size: 12px; font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase;
  transition: color .2s; white-space: nowrap;
  background: none !important; border: none !important;
  box-shadow: none !important; padding: 0 !important;
  font-family: var(--font-sans) !important;
}
.bplu-nav-item a:hover { color: var(--orange) !important; }

.bplu-nav-cta a {
  background: var(--orange) !important;
  color: var(--white) !important;
  padding: 9px 20px !important;
  border-radius: 2px !important;
  font-weight: 600 !important;
  transition: background .2s !important;
}
.bplu-nav-cta a:hover { background: var(--orange-dark) !important; }

/* Téléphone mobile — masqué sur desktop */
.bplu-tel-mobile { display: none; }

/* ──────────────────────────────────────────────────────────
   DROPDOWN
────────────────────────────────────────────────────────── */
.bplu-dropdown { position: relative; }

.bplu-dropdown > a {
  display: inline-flex !important;
  align-items: center; gap: 5px;
}
.bplu-dropdown > a::after {
  content: '';
  display: block; width: 6px; height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .2s;
}
.bplu-dropdown:hover > a::after {
  transform: rotate(225deg) translateY(-2px);
}
/* Zone tampon pour éviter la fermeture du dropdown */
.bplu-dropdown::after {
  content: ''; position: absolute;
  top: 100%; left: 0; right: 0; height: 16px;
}

.bplu-drop-menu {
  position: absolute;
  top: calc(100% + 2px); left: 50%;
  background: rgba(30,33,35,.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 3px; padding: 10px 0; min-width: 240px;
  opacity: 0; pointer-events: none;
  transform: translateX(-50%) translateY(4px);
  transition: opacity .2s, transform .2s;
  z-index: 99999;
}
.bplu-drop-menu::before {
  content: ''; position: absolute; top: -5px; left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 9px; height: 9px;
  background: rgba(30,33,35,.97);
  border-left: 1px solid rgba(255,255,255,.08);
  border-top: 1px solid rgba(255,255,255,.08);
}
.bplu-dropdown:hover .bplu-drop-menu {
  opacity: 1; pointer-events: all;
  transform: translateX(-50%) translateY(0);
}
.bplu-drop-menu a {
  display: block !important;
  padding: 10px 22px !important;
  font-size: 12px !important; font-weight: 400 !important;
  color: rgba(255,255,255,.65) !important;
  text-decoration: none !important;
  text-transform: none !important; letter-spacing: .02em !important;
  transition: color .15s, background .15s, padding-left .15s !important;
  white-space: nowrap;
  background: none !important; box-shadow: none !important;
  font-family: var(--font-sans) !important;
}
.bplu-drop-menu a:hover {
  color: var(--white) !important;
  background: rgba(224,97,63,.1) !important;
  padding-left: 28px !important;
}
.bplu-drop-sep {
  height: 1px;
  background: rgba(255,255,255,.06);
  margin: 8px 0;
}

/* ──────────────────────────────────────────────────────────
   BURGER
────────────────────────────────────────────────────────── */
.bplu-burger {
  display: none;
  flex-direction: column; justify-content: center; align-items: center;
  width: 36px; height: 36px;
  cursor: pointer; background: none !important; border: none !important;
  padding: 0; gap: 5px; flex-shrink: 0; z-index: 99999;
  box-shadow: none !important; margin-left: auto;
}
.bplu-burger span {
  display: block; width: 20px; height: 1.5px;
  background: var(--white); border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}
.bplu-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.bplu-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.bplu-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ──────────────────────────────────────────────────────────
   DRAWER MOBILE
────────────────────────────────────────────────────────── */
.bplu-drawer {
  display: none;
  position: fixed; top: 64px; left: 0; right: 0;
  background: rgba(20,22,24,.97);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  z-index: 99998;
  border-bottom: 1px solid rgba(255,255,255,.07);
  padding: 12px 0 16px;
  transform: translateY(-8px); opacity: 0; pointer-events: none;
  transition: transform .25s ease, opacity .25s ease;
}
.bplu-drawer.open {
  display: block;
  transform: translateY(0); opacity: 1; pointer-events: all;
}
.bplu-drawer a {
  display: block !important;
  color: rgba(255,255,255,.6) !important;
  text-decoration: none !important;
  font-family: var(--font-sans) !important;
  font-size: 11px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 10px 24px !important; transition: color .2s;
  background: none !important; box-shadow: none !important;
  border: none !important;
}
.bplu-drawer a:hover { color: var(--white) !important; }
.bplu-drawer-sep {
  font-size: 9px; font-weight: 600; letter-spacing: .2em;
  text-transform: uppercase; color: rgba(224,97,63,.5);
  padding: 14px 24px 4px; font-family: var(--font-sans);
}
.bplu-drawer-cta {
  display: block !important;
  background: var(--orange) !important; color: var(--white) !important;
  text-align: center; margin: 12px 20px 0 !important;
  border-radius: 2px; padding: 11px 20px !important;
  font-weight: 600 !important; font-size: 11px !important;
}
.bplu-drawer-cta:hover { background: var(--orange-dark) !important; }

/* ──────────────────────────────────────────────────────────
   FOOTER
────────────────────────────────────────────────────────── */
#bplu-footer {
  background: #0f1112;
  padding: 72px 48px 40px;
  border-top: 1px solid rgba(255,255,255,.06);
  font-family: var(--font-sans);
}
.bplu-footer-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.bplu-footer-brand p {
  font-size: 13px; font-weight: 300; line-height: 1.7;
  color: rgba(255,255,255,.4); max-width: 260px; margin-bottom: 20px;
}
.bplu-socials { display: flex; gap: 12px; }
.bplu-social {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.12) !important;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.45) !important; text-decoration: none !important;
  transition: border-color .2s, color .2s;
  background: none !important;
}
.bplu-social:hover { border-color: var(--orange) !important; color: var(--orange) !important; }
.bplu-footer-col h4 {
  font-size: 11px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: rgba(255,255,255,.35); margin-bottom: 20px;
}
.bplu-footer-col ul { list-style: none; padding: 0; margin: 0; }
.bplu-footer-col li { margin-bottom: 10px; }
.bplu-footer-col a {
  font-size: 13.5px; font-weight: 300;
  color: rgba(255,255,255,.55) !important; text-decoration: none !important;
  transition: color .2s; background: none !important;
  box-shadow: none !important; padding: 0 !important;
  font-family: var(--font-sans) !important;
}
.bplu-footer-col a:hover { color: var(--orange) !important; }
.bplu-footer-col p {
  font-size: 13px; font-weight: 300; line-height: 1.75;
  color: rgba(255,255,255,.45);
}
.bplu-footer-bottom {
  max-width: 1200px; margin: 24px auto 0;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; font-weight: 300; color: rgba(255,255,255,.25);
  flex-wrap: wrap; gap: 12px;
}
.bplu-footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }
.bplu-footer-bottom a,
.bplu-footer-legal a {
  color: rgba(255,255,255,.25) !important; text-decoration: none !important;
  transition: color .2s; font-family: var(--font-sans) !important;
  background: none !important; box-shadow: none !important; padding: 0 !important;
}
.bplu-footer-bottom a:hover,
.bplu-footer-legal a:hover { color: var(--orange) !important; }

/* ──────────────────────────────────────────────────────────
   RESPONSIVE TABLETTE (max 1024px)
────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  #bplu-navbar { padding: 16px 24px; }
  #bplu-navbar.scrolled { padding: 12px 24px; }
  .bplu-footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

/* ──────────────────────────────────────────────────────────
   RESPONSIVE MOBILE (max 768px) — PRIORITÉ ABSOLUE
────────────────────────────────────────────────────────── */
@media (max-width: 768px) {

  /* Nav mobile */
  #bplu-navbar {
    display: flex !important;
    align-items: center !important;
    padding: 0 20px !important;
    height: 64px !important;
    grid-template-columns: none !important;
  }
  .bplu-nav-left,
  .bplu-nav-right { display: none !important; }
  .bplu-logo {
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    padding: 0 !important;
  }
  .bplu-tel-mobile {
    display: flex !important;
    align-items: center; gap: 6px;
    color: rgba(255,255,255,.7) !important;
    text-decoration: none !important;
    font-size: 12px; font-weight: 500;
    letter-spacing: .04em; white-space: nowrap; z-index: 1;
    font-family: var(--font-sans) !important;
    background: none !important; box-shadow: none !important;
    padding: 0 !important;
  }
  .bplu-tel-mobile svg { flex-shrink: 0; }
  .bplu-burger { display: flex !important; }

  /* Footer mobile */
  #bplu-footer { padding: 48px 20px 32px; }
  .bplu-footer-grid { grid-template-columns: 1fr !important; gap: 32px; }
  .bplu-footer-bottom { flex-direction: column; text-align: center; }
  .bplu-footer-legal { justify-content: center; }
}
