/* ===================================================
   VACARME — Feuille de style
   =================================================== */

/* --- Variables --- */
:root {
  --bg:        #0d0d0d;
  --bg-2:      #141414;
  --bg-card:   #181818;
  --border:    rgba(255, 255, 255, 0.08);
  --text:      #f0f0f0;
  --text-muted:#757575;
  --accent-dim:rgba(240, 240, 240, 0.1);

  --font:      'Inter', system-ui, sans-serif;

  --radius:    8px;
  --radius-lg: 16px;

  --nav-h:     68px;

  --ease:      cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* --- Container --- */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

/* --- Section --- */
.section {
  padding: 104px 0;
}

.section__header {
  margin-bottom: 60px;
}

.section__title {
  font-size: clamp(2rem, 4vw, 2.875rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.section__subtitle {
  margin-top: 14px;
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 460px;
  line-height: 1.65;
}

/* --- Boutons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  white-space: nowrap;
}

.btn--primary {
  background: var(--text);
  color: var(--bg);
}

.btn--primary:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.btn--full { width: 100%; }

/* ===================================================
   NAV
   =================================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(13, 13, 13, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease);
}

.nav.scrolled {
  background: rgba(13, 13, 13, 0.92);
  border-bottom-color: var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Logo — plus grand */
.nav__logo img { height: 40px; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__links a {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav__links a:hover { color: var(--text); }

.nav__cta {
  color: var(--text) !important;
  border: 1px solid rgba(255,255,255,0.15);
  padding: 8px 18px;
  border-radius: var(--radius);
  font-size: 0.875rem !important;
  transition: border-color 0.2s, background 0.2s !important;
}

.nav__cta:hover {
  border-color: rgba(255,255,255,0.35) !important;
  background: var(--accent-dim);
}

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav__burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

/* ===================================================
   HERO
   =================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.4;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(13,13,13,0.15) 0%,
    rgba(13,13,13,0.05) 40%,
    rgba(13,13,13,0.75) 75%,
    rgba(13,13,13,0.97) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  padding-bottom: 88px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.hero__eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--text-muted);
  flex-shrink: 0;
}

.hero__title {
  font-size: clamp(3rem, 7.5vw, 6rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.03;
  margin-bottom: 48px;
}

.hero__cta-group {
  display: flex;
  align-items: center;
  gap: 20px;
}

.hero__note {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.hero__scroll {
  position: absolute;
  bottom: 36px;
  right: 32px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hero__scroll-label {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  writing-mode: vertical-rl;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 0; }
  30%  { opacity: 1; }
  70%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  100% { transform: scaleY(1); transform-origin: bottom; opacity: 0; }
}

/* ===================================================
   RÉFÉRENCES
   =================================================== */
.refs {
  padding: 36px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  background: #000;
}

.refs__track-wrapper {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
}

.refs__inner {
  display: flex;
  width: max-content;
  animation: marquee 22s linear infinite;
}

.refs__set {
  display: flex;
  align-items: center;
  gap: 72px;
  padding-right: 72px;
}

.refs__set img {
  height: 36px;
  width: auto;
  object-fit: contain;
  mix-blend-mode: screen;
  opacity: 0.7;
  flex-shrink: 0;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ===================================================
   SERVICES
   =================================================== */
.services {
  background: var(--bg);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.service-card {
  padding: 44px 40px;
  background: var(--bg-card);
  transition: background 0.25s var(--ease);
  position: relative;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 0;
  background: var(--text);
  transition: height 0.3s var(--ease);
}

.service-card:hover {
  background: #1c1c1c;
}

.service-card:hover::before {
  height: 100%;
}

.service-card__num {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.25);
  margin-bottom: 28px;
  font-variant-numeric: tabular-nums;
}

.service-card__title {
  font-size: 1.125rem;
  font-weight: 500;
  margin-bottom: 12px;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.service-card__desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Séparateurs */
.services__grid .service-card:nth-child(1),
.services__grid .service-card:nth-child(2) {
  border-bottom: 1px solid var(--border);
}
.services__grid .service-card:nth-child(odd) {
  border-right: 1px solid var(--border);
}

/* ===================================================
   À PROPOS
   =================================================== */
.about {
  background: var(--bg-2);
}

.about__intro {
  max-width: 620px;
  margin-bottom: 60px;
}

.about__intro p {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.about__intro strong {
  color: var(--text);
  font-weight: 500;
}

.about__team {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.team-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.team-card__photo {
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.6s var(--ease), filter 0.5s var(--ease);
}

.team-card:hover .team-card__photo img {
  transform: scale(1.04);
  filter: sepia(0.4) saturate(1.8) hue-rotate(-10deg) brightness(1.05);
}

.team-card__info {
  padding: 22px 28px 26px;
  border-top: 1px solid var(--border);
}

.team-card__name {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.team-card__role {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ===================================================
   CONTACT
   =================================================== */
.contact {
  background: var(--bg);
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact__left {
  position: sticky;
  top: calc(var(--nav-h) + 32px);
}

.contact__img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3 / 4;
}

.contact__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.contact__info {
  margin-top: 20px;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.85;
}

.contact__info a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255,255,255,0.2);
  transition: text-decoration-color 0.2s;
}

.contact__info a:hover {
  text-decoration-color: rgba(255,255,255,0.8);
}

/* Formulaire */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.form-group input,
.form-group textarea {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9375rem;
  padding: 13px 16px;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
  resize: vertical;
  outline: none;
  -webkit-appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255,255,255,0.18);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(255,255,255,0.28);
  background: #1c1c1c;
}

#submit-btn {
  margin-top: 4px;
  height: 48px;
  font-size: 0.9375rem;
  font-weight: 500;
}

.form-success,
.form-error {
  display: none;
  font-size: 0.875rem;
  padding: 12px 16px;
  border-radius: var(--radius);
  text-align: center;
  line-height: 1.5;
}

.form-success {
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: #4ade80;
}

.form-error {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #f87171;
}

.form-error a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ===================================================
   FOOTER
   =================================================== */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  background: var(--bg);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer__logo img { height: 32px; }

.footer__copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer__nav {
  display: flex;
  gap: 28px;
}

.footer__nav a {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer__nav a:hover { color: var(--text); }

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 768px) {
  .section { padding: 80px 0; }

  .container { padding: 0 20px; }

  /* Nav mobile */
  .nav__inner { padding: 0 20px; }

  .nav__links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(13,13,13,0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 20px 20px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-4px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.22s var(--ease), opacity 0.22s var(--ease);
  }

  .nav__links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav__links li { width: 100%; }

  .nav__links a {
    display: block;
    padding: 14px 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--border);
    color: var(--text);
  }

  .nav__links li:last-child a { border-bottom: none; }

  .nav__cta {
    border: none !important;
    padding: 14px 0 !important;
    border-radius: 0 !important;
    background: none !important;
  }

  .nav__burger { display: flex; }

  /* Hero */
  .hero { align-items: flex-end; }
  .hero__bg img { object-position: 35% center; }
  .hero__content { padding: 0 20px; padding-bottom: 72px; }
  .hero__title { font-size: clamp(2.5rem, 11vw, 4rem); }

  .hero__cta-group { flex-direction: column; align-items: flex-start; gap: 14px; }

  .hero__scroll { right: 20px; }

  /* Références */
  .refs__set { gap: 48px; padding-right: 48px; }
  .refs__set img { height: 24px; }

  /* Services */
  .services__grid { grid-template-columns: 1fr; }

  .service-card {
    border-right: none !important;
    border-bottom: 1px solid var(--border) !important;
    padding: 32px 24px;
  }

  .service-card:last-child { border-bottom: none !important; }

  /* Team */
  .about__team { grid-template-columns: 1fr; gap: 16px; }

  /* Contact */
  .contact__inner { grid-template-columns: 1fr; gap: 40px; }
  .contact__left { position: static; }
  .contact__img { aspect-ratio: 16 / 9; }

  /* Footer */
  .footer__inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer__nav { flex-wrap: wrap; gap: 16px; }
}

@media (max-width: 480px) {
  .hero__title { font-size: clamp(2.2rem, 12vw, 2.8rem); }
  .section__title { font-size: 1.75rem; }
  .service-card { padding: 28px 20px; }
  .team-card__info { padding: 18px 20px 22px; }
}
