:root {
  --gold: #F5C518;
  --gold-light: #FFD94A;
  --gold-dark: #C9A000;
  --red: #E63946;
  --red-dark: #B52D38;
  --danger-red: #ef4444;
  --danger-red-dark: #dc2626;
  --navy: #1A3A6B;
  --navy-light: #2453A3;
  --black: #0D0F14;
  --dark: #161B27;
  --mid: #2A2F3E;
  --gray: #6B7280;
  --silver: #9CA3AF;
  --off-white: #F7F8FA;
  --white: #FFFFFF;
  --green: #10B981;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --transition: all .35s var(--ease-out);
}

/* =============================================
   NAVBAR
   ============================================= */
.header {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: min(94%, 1300px);
  background-color: var(--white) !important;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(245, 197, 24, .18);
  border-radius: var(--radius-lg);
  padding: .85rem 1.5rem;
  z-index: 1000;
  transition: var(--transition);
  font-family: var(--header-font) !important;
}

.header.scrolled {
  top: 6px;
  width: 98%;
  background: rgba(13, 15, 20, .98);
  box-shadow: 0 4px 30px rgba(0, 0, 0, .45);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
}

.logo {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--gold-dark);
  white-space: nowrap;
  letter-spacing: -.2px;
  flex-shrink: 0;
}

.logo span {
  color: var(--black);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: .15rem;
  flex-wrap: nowrap;
}

.nav-links li i {
  display: none;
}

.nav-links div.follow-us {
  display: none;
}

.nav-links li a {
  color: rgba(0, 0, 0, .9);
  font-size: .8rem;
  font-weight: 500;
  padding: .4rem .6rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
}

.nav-links li a:hover {
  color: var(--gold);
  background: rgba(245, 197, 24, .1);
}

.nav-links li a.active {
  color: var(--gold);
  background: rgba(245, 197, 24, .1);
}

.emergency-contact {
  flex-shrink: 0;
}

.cta-button.primary {
  background: linear-gradient(135deg, var(--danger-red), var(--danger-red-dark));
  color: var(--white);
  padding: 10px 20px;
  border-radius: 20px;
}

.cta-button.primary:hover {
  box-shadow: 0 20px 40px rgba(239, 68, 68, 0.5);
}


/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 40px;
  height: 40px;
  cursor: pointer;
  flex-shrink: 0;
  background-color: var(--gold);
  padding: 5px;
  border-radius: 50%;
}

.hamburger span {
  display: block;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  width: 80%;
  margin: auto;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -5px);
}

@media (max-width:1100px) {

  .emergency-contact {
    display: none;
  }
}


@media (max-width:850px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    width: 90%;
    flex-direction: column;
    background: var(--white);
    backdrop-filter: blur(18px);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    max-height: 0vh;
    overflow: auto;
    transition: max-height .5s ease;
  }

  .nav-links.open {
    max-height: 100vh;
    height: 90vh;
    padding: 1.3rem 0;
  }


  .nav-links li {
    margin: auto;
    width: 200px;
  }

  .nav-links li i {
    display: inline-block;
    margin-right: 10px;
  }

  .nav-links li a {
    font-size: 1rem;
    display: block;
    padding: .6rem 1rem;
  }

  .nav-links div.follow-us {
    display: grid;
    grid-template-columns: 1fr;
    width: 80%;
    padding: 30px 0 20px;
    margin-top: 30px;
    border-top: 1px solid var(--gray);
    color: var(--dark);
    text-align: center;
  }

  div.follow-us h3,
  div.follow-us h4 {
    text-align: center;
    color: var(--mid);
  }

  div.follow-us div.follow-social {
    display: flex;
    justify-content: center;
    gap: 10px;
    width: 70%;
    margin: 20px auto;
    align-content: center;
  }

  div.follow-social a {
    display: block;
    color: var(--dark);
    font-size: 0.88rem;
  }
  div.follow-social a.star {
    color: rgb(0, 70, 167);
  }

  .header {
    width: 100%;
    left: 0;
    transform: none;
    border-radius: 0;
    top: 0;
    border-left: none;
    border-right: none;
    border-top: none;
  }

  .header.scrolled {
    width: 100%;
    left: 0;
    transform: none;
    top: 0;
  }

  .logo {
    font-size: 1rem;
  }
}



/* =============================================
   TOPBAR (avant footer)
   ============================================= */
.topbar {
  background: var(--navy);
  padding: .9rem 0;
  font-family: var(--roboto);
}

.topbar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .7rem;
  flex-wrap: wrap;
}

.badge-free {
  background: var(--red);
  color: var(--white);
  padding: .38rem .85rem;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: .82rem;
}

.badge-urgence {
  background: rgba(255, 255, 255, .1);
  color: var(--white);
  padding: .38rem .85rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: .82rem;
  display: flex;
  align-items: center;
  gap: .4rem;
}

.topbar-phone,
.topbar-whatsapp {
  padding: .5rem 1.1rem;
  border-radius: var(--radius-xl);
  font-weight: 700;
  font-size: .85rem;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  transition: var(--transition);
}

.topbar-phone {
  background: var(--gold);
  color: var(--black);
}

.topbar-phone:hover {
  background: var(--gold-dark);
}

.topbar-whatsapp {
  background: var(--green);
  color: var(--white);
}

.topbar-whatsapp:hover {
  filter: brightness(1.1);
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--black);
  color: rgba(255, 255, 255, .78);
  font-family: var(--header-font) !important;
  padding: 4rem clamp(1rem, 4vw, 2.5rem) 2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.footer-col h3 {
  color: var(--gold);
  font-size: .97rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-col p {
  font-size: .86rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, .55);
}

.footer-col ul li {
  margin-bottom: .38rem;
}

.footer-col ul li,
.footer-col ul li a {
  font-size: .86rem;
  color: rgba(255, 255, 255, .55);
}

.footer-col ul li a:hover {
  color: var(--gold);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-social a {
  font-size: 1.25rem;
  margin-right: .7rem;
  color: rgba(255, 255, 255, .55);
  transition: var(--transition);
}

.footer-social a:hover {
  color: var(--gold);
}

i.snap {
  color: #FFFC00;
}

.envelope {
  color: var(--gold);
}

.rights {
  font-size: .8rem;
  color: rgba(255, 255, 255, .35);
}

.footer-reviews {
  font-size: .83rem;
  color: rgba(255, 255, 255, .55);
}

.footer-reviews .stars {
  color: #F59E0B;
}

.footer-reviews a {
  color: var(--gold);
}

.footer-reviews a:hover {
  text-decoration: underline;
}

/* =============================================
   NAV FLOTTANTS
   ============================================= */
.nav-buttons {
  position: fixed;
  right: 1.2rem;
  bottom: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  z-index: 9999;
}

.nav-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

.nav-btn.down {
  background: var(--navy-light);
  color: var(--white);
}

.nav-btn.up {
  background: var(--dark);
  color: var(--white);
  opacity: 0;
  pointer-events: none;
}

.nav-btn.show {
  opacity: 1 !important;
  pointer-events: auto !important;
}

.nav-btn:hover {
  transform: scale(1.1);
}




/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width:1100px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}


@media (max-width:768px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width:480px) {
  .footer-top {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .badge {
    font-size: .7rem !important;
  }
}
