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

html,
body {
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Raleway', sans-serif;
  font-size: 14px;
  color: #2a2a2a;
  background: #f9f6f2;
  line-height: 1.65;
}

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

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

ul {
  list-style: none;
}

/* ===== TOKENS ===== */
:root {
  --gold: #8a6820;
  --gold-light: #b08a3e;
  --nav-bg: #7a5c18;
  --text: #2a2a2a;
  --text-light: #555;
  --bg: #f9f6f2;
  --white: #ffffff;
  --section-gap: 72px;
  --card-radius: 0px;
}

/* ===== UTILITIES ===== */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
}

.section {
  padding: var(--section-gap) 0;
  padding-top: 60px;
}

.section-title {
  font-family: 'Raleway', sans-serif;
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 0.03em;
  color: var(--text);
  margin-bottom: 28px;
}

.section-title--caps {
  text-transform: uppercase;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.12em;
}

.btn {
  display: inline-block;
  padding: 12px 32px;
  font-family: 'Raleway', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: background 0.2s;
}

.btn--gold {
  background: var(--gold);
  color: var(--white);
}

.btn--gold:hover {
  background: var(--gold-light);
}

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--nav-bg);
}

.nav__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav__logo {
  font-family: 'Raleway', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.nav__links {
  display: flex;
  gap: 32px;
}

.nav__links li a {
  font-family: 'Raleway', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  transition: opacity 0.2s;
}

.nav__links li a:hover {
  opacity: 0.75;
}

/* Burger — hidden on desktop, shown on mobile via media query */
.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.nav__burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition:
    transform 0.25s,
    opacity 0.25s;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 520px;
  margin-top: 54px;
  background: url('images/hero.webp') center center / cover no-repeat;
  overflow: hidden;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(20, 14, 6, 0.58) 0%,
    rgba(20, 14, 6, 0.18) 60%,
    rgba(20, 14, 6, 0.05) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 72px;
}

.hero__title {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: 52px;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 14px;
}

.hero__sub {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
}

/* ===== HISTOIRE ===== */
.histoire {
  background: var(--white);
}

.histoire__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.histoire__text {
  min-width: 0;
}

.histoire__text h2 {
  margin-bottom: 20px;
  font-family: 'Raleway', sans-serif;
  font-weight: 400;
  font-size: 22px;
}

.histoire__text p {
  font-size: 13.5px;
  color: var(--text-light);
  line-height: 1.8;
}

.histoire__img-wrap {
  height: 320px;
  overflow: hidden;
}

.histoire__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== CATALOGUE ===== */
.catalogue {
  background: var(--bg);
}

.catalogue__grid {
  display: grid;
  grid-template-columns: 140px 1fr 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.catalogue__cta-col {
  display: flex;
  align-items: flex-start;
  padding-top: 4px;
}

.catalogue__item {
  min-width: 0;
}

.catalogue__item img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  margin-bottom: 12px;
}

.catalogue__item h3 {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text);
}

.catalogue__item p {
  font-size: 12px;
  color: var(--text-light);
}

/* ===== CARDS GRID (Réalisations / Références / Avis) ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.card {
  min-width: 0;
}

.card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  margin-bottom: 10px;
}

.card h4 {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--text);
}

.card p {
  font-size: 11.5px;
  color: var(--text-light);
  line-height: 1.55;
  overflow-wrap: break-word;
}

.card__stars {
  color: var(--gold);
  font-size: 13px;
  margin-bottom: 6px;
}

/* Section alternating backgrounds */
.realisations {
  background: var(--white);
}

.references {
  background: var(--bg);
}

.avis {
  background: var(--white);
}

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

.contact__grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 60px;
  align-items: start;
}

.contact__info {
  min-width: 0;
}

.contact__info h2 {
  margin-bottom: 28px;
}

.contact__list {
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.contact__icon {
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--text);
}

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

.contact__card {
  min-width: 0;
}

.contact__card img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  margin-bottom: 10px;
}

.contact__card h4 {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--text);
}

.contact__card p {
  font-size: 11.5px;
  color: var(--text-light);
  line-height: 1.55;
}

/* ===== RESPONSIVE ===== */

/* ── Tablet ─────────────────────────────── 900px */
@media (max-width: 900px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .catalogue__grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }

  .catalogue__cta-col {
    grid-column: 1 / -1;
    padding-top: 0;
    padding-bottom: 8px;
  }

  .contact__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact__cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ── Mobile ──────────────────────────────── 640px */
@media (max-width: 640px) {
  :root {
    --section-gap: 48px;
  }

  .container {
    padding: 0 20px;
  }

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

  .nav__burger {
    display: flex;
  }

  .nav .nav__links {
    display: none;
    position: absolute;
    top: 54px;
    left: 0;
    right: 0;
    background: var(--nav-bg);
    flex-direction: column;
    gap: 0;
    padding: 8px 0 16px;
  }

  .nav .nav__links--open {
    display: flex;
  }

  .nav__links li a {
    display: block;
    padding: 12px 24px;
    font-size: 12px;
  }

  /* Hero */
  .hero {
    height: 400px;
  }

  .hero__content {
    padding-left: 24px;
    padding-right: 24px;
  }

  .hero__title {
    font-size: 36px;
  }

  .hero__sub {
    font-size: 15px;
  }

  /* Histoire */
  .histoire__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .histoire__img-wrap {
    height: 240px;
  }

  /* Catalogue */
  .catalogue__grid {
    grid-template-columns: 1fr;
  }

  .catalogue__cta-col {
    grid-column: auto;
  }

  .catalogue__item img {
    height: 200px;
  }

  /* Cards */
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .card img {
    height: 130px;
  }

  /* Contact */
  .contact__cards {
    grid-template-columns: 1fr;
  }

  .contact__card img {
    height: 160px;
  }
}

/* ── Small mobile ────────────────────────── 400px */
@media (max-width: 400px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }

  .hero__title {
    font-size: 30px;
  }
}
