/* ════════════════════════════════════════════════════════
   VGS — CSS Layout (Mobile-First)
   Top bar · Header · Navigation · Footer
   ══════════════════════════════════════════════════════ */

/* ════════════════════════════════════════════════════════
   TOP BAR (info bar au-dessus du header)
   ════════════════════════════════════════════════════════ */
.vgs-topbar {
  background: var(--vgs-navy);
  color: var(--vgs-gray-100);
  font-size: 0.75rem;
  padding: 0.5rem 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.vgs-topbar::-webkit-scrollbar {
  display: none;
}

.vgs-topbar-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 var(--vgs-space-md);
  white-space: nowrap;
}

.vgs-topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.vgs-topbar-item a {
  color: var(--vgs-gray-100);
}
.vgs-topbar-item a:hover {
  color: var(--vgs-gold);
}

.vgs-topbar-icon {
  color: var(--vgs-gold);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.vgs-topbar-divider {
  color: rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

/* ════════════════════════════════════════════════════════
   HEADER PRINCIPAL
   ════════════════════════════════════════════════════════ */
.vgs-header {
  background: var(--vgs-white);
  box-shadow: var(--vgs-shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.vgs-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem var(--vgs-space-md);
  max-width: var(--vgs-container);
  margin: 0 auto;
  gap: 1rem;
}

/* ─── Logo ─── */
.vgs-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  flex-shrink: 0;
}

.vgs-logo-img {
  width: 42px;
  height: 42px;
  border-radius: var(--vgs-radius-sm);
  object-fit: cover;
  border: 1px solid var(--vgs-gray-100);
}

.vgs-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.vgs-logo-name {
  font-family: var(--vgs-font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--vgs-navy);
}

.vgs-logo-tagline {
  font-size: 0.65rem;
  color: var(--vgs-gold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}

/* ─── Hamburger button ─── */
.vgs-hamburger {
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--vgs-gray-300);
  border-radius: var(--vgs-radius-sm);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  flex-shrink: 0;
  touch-action: manipulation;
  transition: all var(--vgs-transition);
}

.vgs-hamburger:hover {
  border-color: var(--vgs-navy);
  background: var(--vgs-cream);
}

.vgs-hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--vgs-navy);
  border-radius: 2px;
  transition: all var(--vgs-transition);
}

.vgs-hamburger.active .vgs-hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.vgs-hamburger.active .vgs-hamburger-line:nth-child(2) {
  opacity: 0;
}
.vgs-hamburger.active .vgs-hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ─── Navigation desktop (cachée en mobile) ─── */
.vgs-nav-desktop {
  display: none;
}

/* ─── Drawer mobile ─── */
.vgs-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 340px;
  height: 100vh;
  height: 100dvh;
  background: var(--vgs-white);
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.15);
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.vgs-drawer.open {
  right: 0;
}

.vgs-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem var(--vgs-space-md);
  border-bottom: 1px solid var(--vgs-gray-100);
}

.vgs-drawer-title {
  font-family: var(--vgs-font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--vgs-navy);
}

.vgs-drawer-close {
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--vgs-gray-700);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--vgs-radius-sm);
  touch-action: manipulation;
}

.vgs-drawer-close:hover {
  background: var(--vgs-cream);
  color: var(--vgs-navy);
}

.vgs-drawer-nav {
  list-style: none;
  padding: 0.5rem 0;
  flex: 1;
}

.vgs-drawer-nav li a {
  display: flex;
  align-items: center;
  padding: 1rem var(--vgs-space-md);
  font-size: 1rem;
  font-weight: 500;
  color: var(--vgs-charcoal);
  border-bottom: 1px solid var(--vgs-gray-100);
  transition: all var(--vgs-transition);
  min-height: 56px;
}

.vgs-drawer-nav li a:hover,
.vgs-drawer-nav li a.active {
  background: var(--vgs-cream);
  color: var(--vgs-navy);
  padding-left: calc(var(--vgs-space-md) + 0.5rem);
}

.vgs-drawer-nav li a::before {
  content: '';
  width: 4px;
  height: 18px;
  background: transparent;
  margin-right: 0.75rem;
  border-radius: 2px;
  transition: background var(--vgs-transition);
}

.vgs-drawer-nav li a:hover::before,
.vgs-drawer-nav li a.active::before {
  background: var(--vgs-gold);
}

.vgs-drawer-footer {
  padding: var(--vgs-space-md);
  border-top: 1px solid var(--vgs-gray-100);
  background: var(--vgs-cream);
}

.vgs-drawer-cta {
  display: block;
  width: 100%;
  text-align: center;
  margin-bottom: 0.75rem;
}

.vgs-drawer-contact {
  font-size: 0.85rem;
  color: var(--vgs-gray-700);
  text-align: center;
  line-height: 1.5;
}

.vgs-drawer-contact a {
  color: var(--vgs-navy);
  font-weight: 600;
}

/* ─── Overlay (fond sombre quand drawer ouvert) ─── */
.vgs-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 37, 64, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s ease;
  z-index: 999;
}

.vgs-overlay.active {
  opacity: 1;
  visibility: visible;
}

body.vgs-no-scroll {
  overflow: hidden;
}

/* ════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════ */
.vgs-footer {
  background: var(--vgs-navy);
  color: rgba(255, 255, 255, 0.75);
  padding: var(--vgs-space-2xl) 0 0;
  margin-top: var(--vgs-space-3xl);
}

.vgs-footer-main {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--vgs-space-xl);
  padding-bottom: var(--vgs-space-xl);
}

.vgs-footer-brand {
  display: flex;
  flex-direction: column;
}

.vgs-footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.vgs-footer-logo img {
  width: 48px;
  height: 48px;
  border-radius: var(--vgs-radius-sm);
}

.vgs-footer-name {
  font-family: var(--vgs-font-display);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--vgs-white);
}

.vgs-footer-desc {
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 1.25rem;
  max-width: 320px;
}

.vgs-footer-certs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.vgs-footer-cert {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: 4px;
  background: rgba(201, 169, 97, 0.15);
  color: var(--vgs-gold);
  border: 1px solid rgba(201, 169, 97, 0.3);
}

.vgs-footer-social {
  display: flex;
  gap: 0.5rem;
}

.vgs-footer-social a {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--vgs-radius-sm);
  color: rgba(255, 255, 255, 0.7);
  transition: all var(--vgs-transition);
  font-weight: 700;
  font-size: 0.85rem;
}

.vgs-footer-social a:hover {
  background: var(--vgs-gold);
  border-color: var(--vgs-gold);
  color: var(--vgs-navy);
}

.vgs-footer-col h4 {
  font-family: var(--vgs-font-body);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--vgs-white);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.vgs-footer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.vgs-footer-list a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  display: inline-block;
  transition: all var(--vgs-transition);
}

.vgs-footer-list a:hover {
  color: var(--vgs-gold);
  padding-left: 4px;
}

.vgs-footer-contact-item {
  display: flex;
  gap: 0.65rem;
  margin-bottom: 1rem;
  align-items: flex-start;
}

.vgs-footer-contact-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--vgs-radius-sm);
  background: rgba(201, 169, 97, 0.12);
  color: var(--vgs-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.85rem;
}

.vgs-footer-contact-text {
  font-size: 0.85rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
}

.vgs-footer-contact-text a {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  display: block;
}

.vgs-footer-contact-text a:hover {
  color: var(--vgs-gold);
}

.vgs-footer-phone-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 0.4rem;
}
.vgs-footer-phone-label:first-child { margin-top: 0; }

.vgs-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
}

.vgs-footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.vgs-footer-bottom-links a {
  color: rgba(255, 255, 255, 0.5);
}

.vgs-footer-bottom-links a:hover {
  color: var(--vgs-gold);
}

/* ════════════════════════════════════════════════════════
   WHATSAPP FLOATING BUTTON
   ════════════════════════════════════════════════════════ */
.vgs-whatsapp {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: var(--vgs-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  z-index: 90;
  transition: all var(--vgs-transition);
  text-decoration: none;
}

.vgs-whatsapp:hover {
  transform: scale(1.1);
  color: var(--vgs-white);
}

.vgs-whatsapp svg {
  width: 28px;
  height: 28px;
}

/* ════════════════════════════════════════════════════════
   TABLET (≥ 768px)
   ════════════════════════════════════════════════════════ */
@media (min-width: 768px) {
  .vgs-topbar {
    font-size: 0.8rem;
  }
  
  .vgs-topbar-inner {
    justify-content: center;
    gap: 1.5rem;
    padding: 0 var(--vgs-space-lg);
  }
  
  .vgs-logo-img {
    width: 48px;
    height: 48px;
  }
  
  .vgs-logo-name {
    font-size: 1.05rem;
  }
  
  .vgs-logo-tagline {
    font-size: 0.7rem;
  }
  
  .vgs-footer-main {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: var(--vgs-space-2xl);
  }
  
  .vgs-footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* ════════════════════════════════════════════════════════
   DESKTOP (≥ 1024px)
   ════════════════════════════════════════════════════════ */
@media (min-width: 1024px) {
  /* Hamburger caché en desktop */
  .vgs-hamburger {
    display: none;
  }
  
  /* Navigation desktop visible */
  .vgs-nav-desktop {
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }
  
  .vgs-nav-desktop a {
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--vgs-charcoal);
    border-radius: var(--vgs-radius-sm);
    position: relative;
  }
  
  .vgs-nav-desktop a::after {
    content: '';
    position: absolute;
    bottom: 0.4rem;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--vgs-gold);
    transition: all var(--vgs-transition);
    transform: translateX(-50%);
  }
  
  .vgs-nav-desktop a:hover,
  .vgs-nav-desktop a.active {
    color: var(--vgs-navy);
  }
  
  .vgs-nav-desktop a:hover::after,
  .vgs-nav-desktop a.active::after {
    width: 60%;
  }
  
  .vgs-nav-cta {
    margin-left: 0.5rem;
  }
  
  /* Drawer mobile : caché en desktop */
  .vgs-drawer, .vgs-overlay {
    display: none !important;
  }
  
  .vgs-header-inner {
    padding: 1rem var(--vgs-space-lg);
  }
  
  .vgs-footer-main {
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  }
}
