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

:root {
  --bg:        #0d0f12;
  --bg-card:   #141720;
  --bg-contact:#111318;
  --border:    #1e2230;
  --accent:    #c8a96e;
  --accent-dim:#a8893e;
  --text:      #e8eaf0;
  --text-muted:#6b7280;
  --font-body: 'Inter', sans-serif;
  --font-title:'Playfair Display', serif;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===========================
   Navigation
=========================== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(13, 15, 18, 0.85);
  backdrop-filter: blur(12px);
}

.nav-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-title);
  font-size: 1.1rem;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-btn-diagnostic {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.04em;
  border: 1px solid var(--accent);
  padding: 6px 16px;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}

.nav-btn-diagnostic:hover {
  background: var(--accent);
  color: #0d0f12;
}

.nav-cta {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}

.nav-cta:hover {
  color: var(--text);
}

/* ===========================
   Hero
=========================== */
.hero {
  padding: 160px 0 120px;
  text-align: center;
}

.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-title);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 24px;
}

.hero-title em {
  font-style: italic;
  color: var(--accent);
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

/* ===========================
   Buttons
=========================== */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #0d0f12;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 14px 32px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.btn-primary:hover {
  background: var(--accent-dim);
  transform: translateY(-1px);
}

.btn-light {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn-light:hover {
  background: var(--accent);
  color: #0d0f12;
}

/* ===========================
   Global utilities
=========================== */
img {
  max-width: 100%;
  height: auto;
}

/* ===========================
   Nav burger
=========================== */
.nav-burger {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  flex-shrink: 0;
}

/* ===========================
   À propos
=========================== */
.about {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}

.about-inner {
  display: flex;
  align-items: center;
  gap: 56px;
}

.about-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
  flex-shrink: 0;
}

.about-text h2 {
  font-family: var(--font-title);
  font-size: 1.7rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.about-text p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 480px;
}

/* ===========================
   Services
=========================== */
.services {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}

.section-title {
  font-family: var(--font-title);
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 56px;
  text-align: center;
}

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

.card-highlight {
  border-color: var(--accent);
  position: relative;
}

.card-highlight::before {
  content: 'Gratuit';
  position: absolute;
  top: -11px;
  left: 24px;
  background: var(--accent);
  color: #0d0f12;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 10px;
  border-radius: 20px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 36px 28px;
  transition: border-color 0.25s, transform 0.2s;
}

.card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.card-icon {
  width: 40px;
  height: 40px;
  color: var(--accent);
  margin-bottom: 20px;
}

.card-icon svg {
  width: 100%;
  height: 100%;
}

.card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}

.card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ===========================
   Contact
=========================== */
.contact {
  padding: 80px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-contact);
}

.contact-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.contact-text h2 {
  font-family: var(--font-title);
  font-size: 1.9rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.contact-text p {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 420px;
  line-height: 1.75;
}

/* ===========================
   Footer
=========================== */
footer {
  padding: 28px 24px;
  text-align: center;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===========================
   Responsive
=========================== */
@media (max-width: 768px) {

  /* ── Nav burger ── */
  .nav-burger {
    display: block;
  }

  .nav-actions {
    display: none !important;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(13, 15, 18, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px 28px;
    gap: 0;
    z-index: 99;
  }

  .nav-actions.open {
    display: flex !important;
  }

  .nav-cta {
    display: block;
    padding: 14px 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    white-space: normal;
  }

  .nav-btn-calendly {
    margin-top: 16px;
    text-align: center;
    display: block !important;
    width: 100% !important;
    box-sizing: border-box;
    white-space: normal;
  }

  /* ── Hero ── */
  .hero {
    padding: 100px 0 60px;
  }

  /* ── Buttons ── */
  .btn-primary {
    display: block;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }

  /* ── Legacy layout classes ── */
  .about-inner {
    flex-direction: column;
    text-align: center;
    gap: 32px;
  }

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

  .contact-inner {
    flex-direction: column;
    text-align: center;
  }

  .contact-text p {
    max-width: 100%;
  }

  /* ── Footer ── */
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }

  /* ── Typography ── */
  .section-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}
