/* ============================================================
   components.css — Responsive & Hamburger
   L'Affranchi Vidéo
   NE REDÉFINIT PAS ce qui est déjà dans global.css
   Ajoute uniquement : hamburger, mobile-nav, responsive
   ============================================================ */

:root {
  --transition : 0.25s ease;
  --font-main  : 'Outfit', sans-serif;
}

/* ══════════════════════════════════════════════════════════
   HAMBURGER (caché sur desktop)
   ══════════════════════════════════════════════════════════ */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 3px;
  cursor: pointer;
  padding: 6px 8px;
  transition: border-color var(--transition);
  flex-shrink: 0;
}

.hamburger-btn:hover { border-color: rgba(255,255,255,0.5); }

.hamburger-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

.hamburger-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ══════════════════════════════════════════════════════════
   MENU MOBILE OVERLAY
   ══════════════════════════════════════════════════════════ */
.mobile-nav {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.97);
  z-index: 9999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  overflow-y: auto;
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-family: var(--font-main);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 16px 24px;
  width: 100%;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: color var(--transition), background var(--transition);
}

.mobile-nav a:first-child { border-top: 1px solid rgba(255,255,255,0.08); }
.mobile-nav a:hover { color: #fff; background: rgba(255,255,255,0.04); }

.mobile-nav .mobile-socials {
  display: flex;
  gap: 24px;
  margin-top: 32px;
}

.mobile-nav .mobile-socials img {
  height: 24px;
  width: auto;
  opacity: 0.7;
}

.mobile-nav .mobile-socials a:hover img { opacity: 1; }

/* ══════════════════════════════════════════════════════════
   SHARE BUTTON & TOAST
   ══════════════════════════════════════════════════════════ */
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.45);
  color: #fff;
  font-family: var(--font-main);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 2px;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
  vertical-align: middle;
  margin-left: 8px;
  white-space: nowrap;
}

.share-btn:hover { background: rgba(255,255,255,0.12); border-color: #fff; }

.share-btn-footer {
  border-color: rgba(255,255,255,0.3);
  font-size: 0.72rem;
  padding: 4px 10px;
  margin-left: 0;
}

#share-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #111;
  color: #fff;
  font-family: var(--font-main);
  font-size: 0.9rem;
  padding: 10px 22px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.15);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 9999;
}

#share-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ══════════════════════════════════════════════════════════
   BOUTON ENVOYER — JAUNE
   ══════════════════════════════════════════════════════════ */
.footer-submit {
  background: #ffe600 !important;
  color: #000 !important;
  border-color: #ffe600 !important;
}
.footer-submit:hover {
  background: #f0d800 !important;
  color: #000 !important;
}

/* Fix global overflow */
html, body {
  max-width: 100% !important;
  overflow-x: hidden !important;
}

/* Fix SVG footer texte "PASSEZ AU / NIVEAU SUPÉRIEUR" */
.footer-cinematic-wrap {
  width: 100%;
  overflow: hidden;
}
.footer-cinematic-svg {
  width: 100% !important;
  height: auto !important;
  display: block;
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — TABLETTE iPad Mini & Air (768px – 1024px)
   ══════════════════════════════════════════════════════════ */
@media (min-width: 768px) and (max-width: 1024px) {
  .top-bar {
    height: 90px !important;
    padding: 0 24px !important;
    position: relative !important;
    overflow: visible !important;
  }
  .top-menu      { display: none !important; }
  .social-right  { display: none !important; }
  .hamburger-btn { display: flex !important; }

  .logo-center {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -55%) !important;
    margin: 0 !important;
    z-index: 10 !important;
  }
  .logo-center img {
    height: 180px !important;
    width: auto !important;
  }

  /* Menu overlay */
  .mobile-nav { top: 90px; }
  .mobile-nav a { font-size: 2rem; padding: 20px 32px; }

  /* Footer */
  .footer-main { padding: 50px 24px 0 !important; overflow: hidden !important; }
  .footer-top  { grid-template-columns: 1fr 1fr !important; gap: 32px !important; width: 100% !important; }
  .footer-col  { box-sizing: border-box !important; }
  .footer-brand      { grid-column: 1 / -1; }
  .footer-col:last-child { grid-column: 1 / -1; }
  .footer-input,
  .footer-textarea,
  .footer-submit { width: 100% !important; box-sizing: border-box !important; }
  .footer-form  { width: 100% !important; box-sizing: border-box !important; }
  .footer-bottom {
    flex-direction: column !important;
    align-items: center !important;
    gap: 12px !important;
    text-align: center !important;
    padding: 18px 0 !important;
  }
  .footer-copy { text-align: center !important; width: 100% !important; }
  .footer-legal {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px 10px !important;
    width: 100% !important;
  }
  .footer-legal span { display: inline !important; }
  .share-btn-footer { display: block !important; margin: 4px auto 0 auto !important; }
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — iPad Pro (1025px – 1366px)
   ══════════════════════════════════════════════════════════ */
@media (min-width: 1025px) and (max-width: 1366px) {
  .top-bar {
    height: 110px !important;
    padding: 0 32px !important;
    position: relative !important;
    overflow: visible !important;
  }
  .top-menu      { display: none !important; }
  .social-right  { display: none !important; }
  .hamburger-btn { display: flex !important; }

  .logo-center {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -15%) !important;
    margin: 0 !important;
    z-index: 10 !important;
  }
  .logo-center img {
    height: 155px !important;
    width: auto !important;
  }

  /* Menu overlay */
  .mobile-nav { top: 110px; }
  .mobile-nav a { font-size: 2.2rem; padding: 22px 40px; }

  /* Footer */
  .footer-main { padding: 50px 40px 0 !important; overflow: hidden !important; }
  .footer-top  { grid-template-columns: 1fr 1fr !important; gap: 40px !important; width: 100% !important; }
  .footer-col  { box-sizing: border-box !important; }
  .footer-brand      { grid-column: 1 / -1; }
  .footer-col:last-child { grid-column: 1 / -1; }
  .footer-input,
  .footer-textarea,
  .footer-submit { width: 100% !important; box-sizing: border-box !important; }
  .footer-form  { width: 100% !important; box-sizing: border-box !important; }
  .footer-bottom {
    flex-direction: column !important;
    align-items: center !important;
    gap: 12px !important;
    text-align: center !important;
    padding: 18px 0 !important;
  }
  .footer-copy { text-align: center !important; width: 100% !important; }
  .footer-legal {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px 10px !important;
    width: 100% !important;
  }
  .footer-legal span { display: inline !important; }
  .share-btn-footer { display: block !important; margin: 4px auto 0 auto !important; }
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE (< 768px)
   ══════════════════════════════════════════════════════════ */
@media (max-width: 767px) {

  /* Header */
  .top-bar {
    height: 90px !important;
    padding: 0 16px !important;
    position: sticky !important;
  }

  /* Cacher nav et réseaux, montrer hamburger */
  .top-menu     { display: none !important; }
  .social-right { display: none !important; }
  .hamburger-btn { display: flex !important; }

  /* Logo : petit, à gauche */
  .logo-center {
    position: static !important;
    transform: none !important;
    flex: 1 !important;
    display: flex !important;
    justify-content: flex-start !important;
    left: auto !important;
    top: auto !important;
  }

  .logo-center img {
    height: 78px !important;
    width: auto !important;
  }

  /* Marquee */
  .marquee {
    height: auto !important;
    min-height: unset !important;
    max-height: unset !important;
    padding: 7px 0 !important;
  }
  .marquee-item .w { font-size: 13px !important; margin-right: 6px; }
  .marquee-item .r { font-size: 13px !important; margin-right: 30px; }

  /* Footer */
  .footer-main  { padding: 40px 20px 0 !important; overflow: hidden !important; }
  .footer-top   { grid-template-columns: 1fr !important; gap: 28px !important; width: 100% !important; }
  .footer-col   { width: 100% !important; box-sizing: border-box !important; }
  .footer-logo  { height: 120px !important; }
  .footer-input,
  .footer-textarea,
  .footer-submit { width: 100% !important; box-sizing: border-box !important; max-width: 100% !important; }
  .footer-form  { width: 100% !important; box-sizing: border-box !important; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px 0; }
  .footer-legal { flex-direction: column; gap: 8px; }
  .footer-legal span { display: none; }
}

/* ══════════════════════════════════════════════════════════
   GRAND ÉCRAN (≥ 1440px)
   ══════════════════════════════════════════════════════════ */
@media (min-width: 1440px) {
  .top-bar    { padding: 0 80px !important; }
  .footer-main { padding-left: 80px !important; padding-right: 80px !important; }
}
