:root {
  --bg: #0d0d0f;
  --bg-soft: #17171b;
  --text: #f5f5f1;
  --muted: #c7c2b8;
  --card: #ffffff;
  --dark-text: #1d1d1f;
  --gold: #f4c316;
  --gold-dark: #c99b00;
  --red: #d92332;
  --line: rgba(255,255,255,.14);
  --shadow: 0 24px 70px rgba(0,0,0,.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--dark-text);
  background: #f5f2ec;
  line-height: 1.6;
}

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

.site-header {
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(244,195,22,.22), transparent 35%),
    linear-gradient(135deg, #08080a 0%, #17171b 58%, #29231a 100%);
  color: var(--text);
  overflow: hidden;
}

.navbar {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-logo {
  width: 150px;
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,.35));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-weight: 700;
}

.nav-links a {
  transition: color .2s ease;
}

.nav-links a:hover {
  color: var(--gold);
}

.hero {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 90px 0 120px;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 54px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: .78rem;
  font-weight: 800;
}

h1,
h2,
h3 {
  line-height: 1.12;
  margin: 0;
}

h1 {
  font-size: clamp(2.55rem, 6vw, 5.7rem);
  max-width: 900px;
  letter-spacing: -.05em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: -.04em;
}

h3 {
  font-size: 1.25rem;
}

.hero-text {
  max-width: 690px;
  margin: 24px 0 0;
  color: #e8e2d6;
  font-size: 1.22rem;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--gold);
  color: #15120a;
  box-shadow: 0 14px 36px rgba(244,195,22,.25);
}

.btn-secondary {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255,255,255,.05);
}

.hero-card {
  background: rgba(255,255,255,.96);
  color: var(--dark-text);
  border-radius: 28px;
  padding: 36px;
  box-shadow: var(--shadow);
  transform: rotate(-1.2deg);
}

.hero-card img {
  width: 100%;
  max-width: 420px;
  display: block;
  margin: 0 auto 22px;
}

.hero-card p {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 700;
  text-align: center;
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 94px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading > p:not(.eyebrow) {
  color: #5f5a51;
  font-size: 1.08rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-card {
  background: var(--card);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 24px;
  padding: 26px;
  box-shadow: 0 18px 45px rgba(20,20,20,.06);
}

.service-card span {
  color: var(--gold-dark);
  font-weight: 900;
  font-size: .9rem;
}

.service-card h3 {
  margin-top: 18px;
}

.service-card p {
  margin-bottom: 0;
  color: #5f5a51;
}

.split {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 50px;
  align-items: start;
}

.text-panel {
  background: #151517;
  color: #eee8de;
  border-radius: 28px;
  padding: 34px;
  box-shadow: var(--shadow);
}

.text-panel p {
  margin-top: 0;
}

.text-panel p:last-child {
  margin-bottom: 0;
}

/* Galerie réalisations A3T */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 36px;
}

.gallery-grid img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  border-radius: 24px;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 18px 45px rgba(20,20,20,.10);
  background: #ddd;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.gallery-grid img:hover {
  transform: translateY(-5px);
  border-color: var(--gold-dark);
  box-shadow: 0 24px 60px rgba(20,20,20,.16);
}

.contact {
  padding-top: 50px;
}

.contact-box {
  background: linear-gradient(135deg, #111114, #2c281b);
  color: var(--text);
  border-radius: 34px;
  padding: 42px;
  box-shadow: var(--shadow);
}

.contact-intro {
  color: #e7dfd0;
  max-width: 780px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 30px;
}

.contact-grid article {
  background: rgba(255,255,255,.08);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px;
}

.contact-grid h3 {
  margin-bottom: 12px;
}

.contact-grid a {
  display: block;
  color: var(--gold);
  font-weight: 800;
  margin-top: 8px;
  overflow-wrap: anywhere;
}

.contact-grid p {
  margin: 0;
  color: #e8e1d5;
}

.site-footer {
  padding: 34px 16px;
  text-align: center;
  color: #6d675d;
  background: #efebe2;
  font-size: .95rem;
}

.site-footer p {
  margin: 4px 0;
}

@media (max-width: 900px) {
  .navbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
    gap: 18px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 48px 0 80px;
  }

  .hero-card {
    transform: none;
  }

  .cards-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .brand-logo {
    width: 126px;
  }

  .nav-links {
    font-size: .92rem;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-card,
  .contact-box,
  .text-panel {
    padding: 24px;
    border-radius: 22px;
  }

  .section {
    padding: 64px 0;
  }

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

  .gallery-grid img {
    height: 230px;
    border-radius: 20px;
  }
}
