/* ═══════════════════════════════════════════════════════════
   BASE.CSS — Reset & styles fondamentaux
═══════════════════════════════════════════════════════════ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: auto; /* GSAP gère le scroll */
  font-size: 16px;
  overflow-x: hidden;
}

body {
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: none;
  border: none;
  background: none;
  font: inherit;
}

/* ── Utilitaires GSAP ── */
.clip-hidden {
  clip-path: inset(0 100% 0 0);
}

/* ── Section générique ── */
section {
  position: relative;
  overflow: hidden;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--c-primary);
  margin-bottom: 12px;
}

.section-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--c-primary);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

/* ── Boutons globaux ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--c-primary);
  color: white;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 16px 36px;
  border-radius: var(--radius-pill);
  transition: transform var(--transition-med), box-shadow var(--transition-med);
  box-shadow: 0 0 40px var(--c-primary-glow);
}

.btn-primary:hover {
  transform: scale(1.06) translateY(-2px);
  box-shadow: 0 8px 60px rgba(255, 69, 0, 0.6);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--c-text);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 15px 28px;
  border-radius: var(--radius-pill);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  transition: border-color var(--transition-fast),
              background var(--transition-fast),
              transform var(--transition-med);
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

/* ── Scroll progress bar ── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--c-primary), var(--c-accent));
  z-index: var(--z-loader);
  transform-origin: left;
}

/* ── FAB Mobile ── */
.fab-menu {
  display: none;
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: var(--z-nav);

  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;

  transition: all 0.3s ease;
}

.fab-menu.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.fab-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--c-primary);
  color: white;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 24px rgba(255, 69, 0, 0.5);
  animation: fabPulse 2s ease-in-out infinite;
}

@keyframes fabPulse {
  0%, 100% { box-shadow: 0 4px 24px rgba(255, 69, 0, 0.5); }
  50%       { box-shadow: 0 4px 40px rgba(255, 69, 0, 0.8); }
}

@media (max-width: 768px) {
  .fab-menu { display: block; }
}

/* ── Accessibilité ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
