/* ============================================================
   PIX Services — Dark Theme
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-primary:   #0c0c0c;
  --bg-secondary: #111111;
  --bg-card:      #181818;
  --border:       #252525;
  --text-primary: #888888;
  --text-secondary: #f5f5f5;
  --text-muted:   #bdbdbd;
}

/* ── Reset ─────────────────────────────────────────────────── */

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

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.7;
  font-size: 16px;
}

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

/* ── Typography ─────────────────────────────────────────────── */

h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin: 0;
}

h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 0 0 1rem;
}

h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 0.6rem;
}

p { color: var(--text-secondary); margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.section-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.step-number {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

/* ── Navbar ─────────────────────────────────────────────────── */

.pix-navbar {
  background-color: rgba(12, 12, 12, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  transition: padding 0.3s ease;
}

.pix-navbar.scrolled {
  padding: 0.55rem 0;
}

.pix-navbar .navbar-brand img {
  height: 38px;
  width: auto;
}

.pix-navbar .nav-link {
  color: var(--text-secondary) !important;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.3rem 0.8rem !important;
  transition: color 0.2s;
}

.pix-navbar .nav-link:hover,
.pix-navbar .nav-link:focus {
  color: var(--text-primary) !important;
}

.pix-navbar .navbar-toggler {
  border-color: var(--border) !important;
}

.pix-navbar .navbar-toggler-icon {
  filter: invert(1) brightness(0.7);
}

/* ── Buttons ────────────────────────────────────────────────── */

.btn-pix-primary {
  background: #ffffff;
  color: #0c0c0c;
  border: none;
  border-radius: 6px;
  padding: 0.72rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  display: inline-block;
  transition: background 0.2s, transform 0.2s;
}

.btn-pix-primary:hover {
  background: #e2e2e2;
  color: #0c0c0c;
  transform: translateY(-1px);
}

.btn-pix-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  padding: 0.72rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  display: inline-block;
  transition: border-color 0.2s, background 0.2s;
}

.btn-pix-outline:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

/* ── Sections ───────────────────────────────────────────────── */

section { padding: 100px 0; }

.section-alt { background-color: var(--bg-secondary); }

.section-intro {
  max-width: 660px;
  margin-bottom: 3rem;
}

.section-intro p {
  font-size: 1.05rem;
  line-height: 1.8;
}

/* ── Hero ───────────────────────────────────────────────────── */

#accueil {
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding-top: 60px;
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
}

#accueil::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../img/hero.jpg') center/cover no-repeat;
  opacity: 0.07;
  z-index: 0;
}

#accueil .container { position: relative; z-index: 1; }

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  letter-spacing: 0.03em;
}

#accueil .lead {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 540px;
  line-height: 1.85;
  margin-top: 1.25rem;
}

/* Problems card */
.problems-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 28px 20px;
}

.problem-item {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 13px 16px;
  font-size: 0.875rem;
  color: #b5b5b5;
  margin-bottom: 10px;
}

.problem-item:last-child { margin-bottom: 0; }

/* ── Services ───────────────────────────────────────────────── */

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  height: 100%;
  transition: border-color 0.25s, transform 0.25s;
}

.service-card:hover {
  border-color: rgba(255, 255, 255, 0.14);
  transform: translateY(-3px);
}

.service-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 5px 11px;
  font-size: 0.78rem;
  color: #aaaaaa;
}

/* ── Audit ──────────────────────────────────────────────────── */

.audit-image-wrapper {
  border-radius: 16px;
  overflow: hidden;
}

.audit-image-wrapper img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
  filter: brightness(0.75);
}

.deliverables-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 1.25rem;
}

.deliverable-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 13px 16px;
  font-size: 0.875rem;
  color: #b5b5b5;
}

/* ── Méthode ────────────────────────────────────────────────── */

.method-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  height: 100%;
  transition: border-color 0.25s;
}

.method-card:hover { border-color: rgba(255, 255, 255, 0.12); }

/* ── Qui suis-je ────────────────────────────────────────────── */

.about-image-wrapper {
  border-radius: 16px;
  overflow: hidden;
}

.about-image-wrapper img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  display: block;
  filter: brightness(0.8);
}

/* ── FAQ ────────────────────────────────────────────────────── */

.faq-accordion .accordion-item {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  border-radius: 12px !important;
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-accordion .accordion-button {
  background: var(--bg-card) !important;
  color: var(--text-primary) !important;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: none !important;
  border-radius: 12px !important;
}

.faq-accordion .accordion-button:not(.collapsed) {
  background: rgba(255, 255, 255, 0.04) !important;
  border-bottom: 1px solid var(--border);
  border-radius: 12px 12px 0 0 !important;
}

.faq-accordion .accordion-button::after {
  filter: invert(1) brightness(0.6);
}

.faq-accordion .accordion-body {
  background: var(--bg-card) !important;
  color: var(--text-secondary);
  font-size: 0.9rem;
  padding-top: 0.75rem;
}

/* ── Contact ────────────────────────────────────────────────── */

.contact-image-wrapper {
  border-radius: 16px;
  overflow: hidden;
}

.contact-image-wrapper img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  display: block;
  filter: brightness(0.8);
}

.contact-info-block {
  margin-bottom: 2rem;
}

.contact-info-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #888888;
  margin-bottom: 4px;
}

.contact-info-value {
  font-size: 1.05rem;
  color: var(--text-primary);
  line-height: 1.6;
}

.contact-info-value a {
  color: var(--text-primary);
  transition: color 0.2s;
}

.contact-info-value a:hover { color: #d0d0d0; }

/* ── Footer ─────────────────────────────────────────────────── */

footer {
  background: #080808;
  border-top: 1px solid var(--border);
  padding: 28px 0;
}

footer p {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin: 0;
}

/* ── Fade-in animation ──────────────────────────────────────── */

.fade-init {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-in {
  opacity: 1;
  transform: none;
}

/* ── Responsive ─────────────────────────────────────────────── */

@media (max-width: 991px) {
  section { padding: 70px 0; }

  #accueil {
    min-height: auto;
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .audit-image-wrapper img,
  .about-image-wrapper img { height: 320px; }

  .contact-image-wrapper img { height: 280px; }
}

@media (max-width: 767px) {
  section { padding: 56px 0; }

  .deliverables-grid { grid-template-columns: 1fr; }

  .problems-card { padding: 20px 18px 14px; }
}
