/* NOUS. — Buttons & UI components */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 1.75rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  border-radius: 50px;
  transition: transform var(--duration-normal) var(--ease-out-expo),
              background var(--duration-normal) var(--ease-out-expo),
              color var(--duration-normal) var(--ease-out-expo),
              box-shadow var(--duration-normal) var(--ease-out-expo);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--yellow);
  color: var(--text-on-yellow);
  box-shadow: 0 8px 20px rgba(255, 191, 0, 0.4), 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
  background: var(--yellow-bright);
  box-shadow: 0 12px 30px rgba(255, 191, 0, 0.5), 0 6px 12px rgba(0, 0, 0, 0.3);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

/* Site header — logo et hamburger dans la même bannière, bien centrés */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: calc(var(--z-menu) - 1);
  pointer-events: none;
  transition: box-shadow var(--duration-normal) var(--ease-out-expo);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 100%;
  padding: clamp(0.75rem, 2vw, 1.25rem) clamp(1rem, 4vw, 2.5rem);
  padding-top: calc(clamp(0.75rem, 2vw, 1.25rem) + env(safe-area-inset-top, 0px));
  padding-left: max(clamp(1rem, 4vw, 2.5rem), env(safe-area-inset-left, 0px));
  padding-right: max(clamp(1rem, 4vw, 2.5rem), env(safe-area-inset-right, 0px));
  min-height: 56px;
  box-sizing: border-box;
}

@media (max-width: 480px) {
  .site-header-inner {
    padding-left: max(1rem, env(safe-area-inset-left, 0px));
    padding-right: max(1rem, env(safe-area-inset-right, 0px));
  }
}

.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(250, 249, 247, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-out-expo);
  pointer-events: none;
}

.site-header:not(.scrolled)::before {
  opacity: 0;
}

.site-header.scrolled::before {
  opacity: 1;
}

.header-logo {
  pointer-events: auto;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.header-logo img {
  height: clamp(22px, 4vw, 36px);
  width: auto;
  max-height: 40px;
  display: block;
  opacity: 0.85;
  transition: opacity var(--duration-fast) var(--ease-out-expo);
}

.header-logo:hover img {
  opacity: 1;
}

@media (max-width: 480px) {
  .header-logo img {
    height: 26px;
  }
}

/* Menu trigger (hamburger) — dans le header */
.menu-trigger {
  position: relative;
  z-index: var(--z-menu);
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  pointer-events: auto;
  transition: transform var(--duration-normal) var(--ease-out-expo),
              opacity var(--duration-normal) var(--ease-out-expo);
}

@media (max-width: 480px) {
  .menu-trigger {
    width: 40px;
    height: 40px;
    padding: 8px;
  }
}

.menu-trigger:hover .menu-trigger-line {
  background: var(--yellow-bright);
}

.menu-trigger-line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--yellow);
  transition: transform var(--duration-normal) var(--ease-out-expo),
              background var(--duration-fast) var(--ease-out-expo);
}

body.menu-open .menu-trigger {
  opacity: 0;
  pointer-events: none;
}

/* Contact tabs */
.contact-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.contact-tab {
  padding: 0.75rem 1.25rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gray-700);
  background: var(--gray-100);
  border-radius: 0;
  transition: color var(--duration-fast) var(--ease-out-expo),
              background var(--duration-fast) var(--ease-out-expo);
}

.contact-tab:hover {
  color: var(--black);
  background: var(--gray-200);
}

.contact-tab.active {
  color: var(--black);
  background: var(--yellow);
}
