:root {
  --black: #040302;
  --black-soft: #0b0906;
  --panel: #12100b;
  --gold: #c9a45d;
  --gold-soft: #e6ca82;
  --ivory: #fff6e4;
  --cream: #ecdfc8;
  --muted: #b6a991;
  --line: rgba(201, 164, 93, 0.25);
  --line-strong: rgba(201, 164, 93, 0.44);
  --shadow: 0 34px 95px rgba(0, 0, 0, 0.48);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--cream);
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0;
}

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

.shell {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  background: rgba(4, 3, 2, 0.72);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.nav {
  min-height: 50px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  padding-top: 0.25rem;
}

.nav-logo {
  display: inline-flex;
  justify-self: center;
}

.nav-logo img {
  display: block;
  width: clamp(120px, 13vw, 210px);
  max-height: 95px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: clamp(1.25rem, 3vw, 3rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links:first-child {
  justify-content: flex-end;
}

.nav-links:last-child {
  justify-content: flex-start;
}

.nav-links a {
  color: var(--cream);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 180ms ease;
}

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

.hero {
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: 6rem 0 3rem;
  position: relative;
  overflow: hidden;
  background: url("../images/hero-background2.png") center center / cover no-repeat;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: min(58vw, 780px);
  background: linear-gradient(90deg, rgba(4, 3, 2, 0.38) 0%, rgba(4, 3, 2, 0.22) 48%, rgba(4, 3, 2, 0) 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  text-align: left;
}

.hero-logo {
  display: block;
  width: min(520px, 48vw);
  height: auto;
  margin: 0.5rem 0 -1rem -4.6rem;
  filter: drop-shadow(0 12px 24px rgba(255, 246, 228, 0.38));
}

.hero-title {
  margin: 0;
  max-width: 900px;
  color: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 7vw, 6.8rem);
  font-weight: 500;
  letter-spacing: 0.045em;
  line-height: 0.92;
  text-transform: uppercase;
  text-shadow: 0 3px 26px rgba(0, 0, 0, 0.58);
}

.hero-title span {
  display: block;
}

.hero-line {
  width: min(360px, 54vw);
  height: 1px;
  margin: 1.35rem 0 1.45rem;
  background: linear-gradient(90deg, var(--gold), rgba(201, 164, 93, 0));
}

.hero-copy {
  max-width: 690px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  line-height: 1.8;
  font-weight: 600;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.58);
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2rem;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: #100b05;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 0.9rem 1.25rem;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover {
  background: var(--ivory);
  border-color: var(--ivory);
  transform: translateY(-1px);
}

.section {
  padding: clamp(4rem, 8vw, 8rem) 0;
  border-bottom: 1px solid rgba(201, 164, 93, 0.14);
}

.kicker {
  color: var(--gold-soft);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h2 {
  max-width: 920px;
  margin: 0.75rem 0 1.4rem;
  color: var(--ivory);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 4.4vw, 4.5rem);
  font-weight: 500;
  line-height: 1;
}

p {
  color: var(--muted);
  line-height: 1.78;
}

.lead {
  max-width: 780px;
}

.collection-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.4rem);
  margin-top: 2.8rem;
}

.mobile-featured-guitar,
.mobile-bottom-nav,
.mobile-full-collection-button {
  display: none;
}

.page-title {
  max-width: 920px;
  margin: 0.75rem 0 1.4rem;
  color: var(--ivory);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 5vw, 5rem);
  font-weight: 500;
  line-height: 1;
}

.collection-page-section {
  padding-top: clamp(7rem, 12vw, 10rem);
}

.collection-page .gallery-item {
  opacity: 1;
  transform: none;
}

.gallery-item {
  min-width: 0;
  min-height: 560px;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(19, 16, 11, 0.98), rgba(5, 4, 3, 0.98));
  box-shadow: var(--shadow);
  color: inherit;
  cursor: pointer;
  overflow: hidden;
  padding: 0;
  text-align: left;
  transition: border-color 200ms ease, transform 220ms ease, box-shadow 220ms ease;
}

.gallery-item:hover,
.gallery-item:focus-visible {
  border-color: var(--line-strong);
  box-shadow: 0 38px 110px rgba(0, 0, 0, 0.58);
  outline: none;
  transform: translateY(-4px);
}

.gallery-image {
  min-height: 430px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at center, rgba(255, 246, 228, 0.08), rgba(4, 3, 2, 0.96) 62%);
  border-bottom: 1px solid rgba(201, 164, 93, 0.16);
  padding: clamp(1rem, 2.4vw, 2rem);
}

.gallery-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  transition: transform 420ms ease, filter 420ms ease;
}

.gallery-item:hover .gallery-image img,
.gallery-item:focus-visible .gallery-image img {
  filter: saturate(1.04) contrast(1.04);
  transform: scale(1.018);
}

.gallery-info {
  min-height: 130px;
  display: grid;
  align-content: start;
  gap: 0.7rem;
  padding: 1.2rem 1.25rem 1.35rem;
}

.gallery-info h3 {
  margin: 0;
  color: var(--ivory);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.15rem, 1.6vw, 1.55rem);
  font-weight: 500;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.gallery-price,
.detail-price {
  color: var(--gold-soft);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.detail-view {
  display: none;
  min-height: 100vh;
  padding: clamp(5.5rem, 8vw, 8rem) 0 clamp(3rem, 6vw, 5rem);
  background:
    radial-gradient(circle at 76% 12%, rgba(201, 164, 93, 0.12), transparent 30%),
    linear-gradient(145deg, #090704, #030302);
  border-bottom: 1px solid rgba(201, 164, 93, 0.16);
}

.detail-view.active {
  display: block;
}

.detail-shell {
  width: min(1380px, calc(100% - 40px));
  margin: 0 auto;
}

.detail-back {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.4rem;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--gold-soft);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 0.8rem 1rem;
  text-transform: uppercase;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.detail-back:hover,
.detail-back:focus-visible {
  background: var(--gold);
  border-color: var(--gold);
  color: #100b05;
  outline: none;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: clamp(1.4rem, 4vw, 4rem);
  align-items: start;
}

.detail-image-frame {
  min-height: min(74vh, 760px);
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: radial-gradient(circle at center, rgba(255, 246, 228, 0.08), rgba(6, 5, 3, 0.98) 66%);
  box-shadow: var(--shadow);
  padding: clamp(1rem, 3vw, 2.5rem);
}

.detail-image-frame img {
  width: 100%;
  height: min(70vh, 720px);
  display: block;
  object-fit: contain;
  object-position: center;
}

.detail-copy {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(27, 22, 15, 0.94), rgba(8, 7, 5, 0.98));
  box-shadow: var(--shadow);
  padding: clamp(1.5rem, 3vw, 2.6rem);
}

.detail-copy h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 4rem);
}

.detail-facts {
  display: grid;
  gap: 0.45rem;
  margin: 1.6rem 0;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.detail-facts div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--cream);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-facts span:first-child {
  color: var(--gold-soft);
  font-weight: 800;
}

.detail-description p {
  margin: 0 0 1rem;
}

.detail-description p:last-child {
  margin-bottom: 0;
}

.ivory-section {
  background: var(--cream);
  color: #17110b;
}

.ivory-section .kicker {
  color: #74531f;
}

.ivory-section h2,
.ivory-section p {
  color: #17110b;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 2.2rem;
  background: var(--line);
  border: 1px solid var(--line);
}

.service-card {
  min-height: 290px;
  padding: clamp(1.5rem, 3vw, 2.35rem);
  background: linear-gradient(145deg, #16120c, #080705);
}

.service-card span {
  display: block;
  margin-bottom: 2.4rem;
  color: var(--gold-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.6rem;
}

.service-card h3,
.about-panel h3 {
  margin: 0 0 0.8rem;
  color: var(--ivory);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.3rem, 2.1vw, 1.9rem);
  font-weight: 500;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1.2fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.about-panel,
.contact-form {
  background: linear-gradient(145deg, rgba(27, 22, 15, 0.94), rgba(10, 8, 5, 0.98));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: clamp(1.6rem, 4vw, 3rem);
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

label {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--cream);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

input,
textarea {
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(236, 223, 200, 0.22);
  background: rgba(4, 3, 2, 0.88);
  color: var(--ivory);
  padding: 0.85rem 0.95rem;
}

textarea {
  min-height: 155px;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--gold);
  outline: none;
}

.footer {
  padding: clamp(3rem, 6vw, 5rem) 0 2rem;
  background: #030302;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
}

.footer-logo {
  width: min(380px, 76vw);
  height: auto;
  margin-bottom: 1rem;
}

.footer h3 {
  color: var(--gold-soft);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.copyright {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(201, 164, 93, 0.16);
  color: #8d816f;
  font-size: 0.78rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 940px) {
  .nav {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 0.8rem;
    padding: 0.8rem 0 1rem;
  }

  .nav-links,
  .nav-links:first-child,
  .nav-links:last-child {
    justify-content: center;
    flex-wrap: wrap;
  }

  .nav-logo {
    order: -1;
  }

  .nav-logo img {
    width: min(180px, 70vw);
  }

  .hero {
    min-height: 100vh;
    padding: 8rem 0 3rem;
  }

  .collection-gallery,
  .service-grid,
  .split,
  .footer-grid,
  .detail-layout {
    grid-template-columns: 1fr;
  }

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

  .gallery-item {
    min-height: 520px;
  }

  .gallery-image {
    min-height: 390px;
  }

  .detail-image-frame {
    min-height: 520px;
  }

  .detail-image-frame img {
    height: 500px;
  }
}

@media (max-width: 640px) {
  .shell,
  .hero-inner {
    width: min(100% - 28px, 1240px);
  }

  body {
    padding-bottom: 46px;
  }

  .site-header {
    display: none;
  }

  .mobile-bottom-nav {
    position: fixed;
    inset: auto 0 0;
    z-index: 40;
    width: 100vw;
    max-width: 100vw;
    min-height: calc(38px + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: repeat(4, 25%);
    align-items: center;
    padding-bottom: env(safe-area-inset-bottom);
    overflow: hidden;
    background: rgba(4, 3, 2, 0.86);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(16px);
  }

  .mobile-bottom-nav a {
    min-width: 0;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid rgba(201, 164, 93, 0.28);
    color: var(--cream);
    font-size: 0.5rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.05;
    padding: 0 0.25rem;
    overflow: hidden;
    text-align: center;
    text-transform: uppercase;
    white-space: normal;
  }

  .mobile-bottom-nav a:last-child {
    border-right: 0;
  }

  .hero {
    align-items: center;
    padding: 2.4rem 0;
    background: url("../images/hero-background téléphone.png") center center / cover no-repeat;
  }

  .hero::before {
    width: min(82vw, 420px);
    background: linear-gradient(90deg, rgba(4, 3, 2, 0.46) 0%, rgba(4, 3, 2, 0.24) 58%, rgba(4, 3, 2, 0) 100%);
  }

  .hero-logo {
    width: min(350px, 100%);
    margin: 0 0 1.2rem -3.2rem;
  }

  .hero-title {
    width: min(100%, 360px);
    max-width: 100%;
    font-size: clamp(1.75rem, 8vw, 2rem);
    letter-spacing: 0.02em;
    line-height: 1;
    overflow-wrap: normal;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.52);
  }

  .hero-line {
    background: linear-gradient(90deg, var(--gold), rgba(201, 164, 93, 0));
  }

  .hero-copy {
    width: min(100%, 360px);
    font-size: 1rem;
    line-height: 1.65;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55);
  }

  .hero .button {
    margin-left: 0;
  }

  .home-page #collection .kicker,
  .home-page #collection h2,
  .home-page #collection .lead {
    display: none;
  }

  .home-page #collection {
    padding-top: 2.4rem;
  }

  .home-page .collection-gallery {
    display: none;
  }

  .mobile-featured-guitar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
    margin-top: 1.8rem;
  }

  .collection-page-section {
    padding-top: 3rem;
  }

  .collection-page .collection-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
    margin-top: 1.8rem;
  }

  .mobile-full-collection-button {
    display: inline-flex;
    width: min(100%, 290px);
    margin: 1.35rem auto 0;
  }

  .gallery-item {
    min-height: 470px;
  }

  .gallery-image {
    min-height: 340px;
    padding: 1rem;
  }

  .gallery-info {
    min-height: 130px;
  }

  .home-page .mobile-featured-guitar .gallery-item {
    min-height: 285px;
  }

  .home-page .mobile-featured-guitar .gallery-image {
    min-height: 190px;
    padding: 0.55rem;
  }

  .home-page .mobile-featured-guitar .gallery-info {
    min-height: 95px;
    gap: 0.45rem;
    padding: 0.75rem;
  }

  .home-page .mobile-featured-guitar .gallery-info h3 {
    font-size: 0.86rem;
    line-height: 1.12;
  }

  .home-page .mobile-featured-guitar .gallery-price {
    font-size: 0.62rem;
    letter-spacing: 0.08em;
  }

  .collection-page .gallery-item {
    min-height: 285px;
  }

  .collection-page .gallery-image {
    min-height: 190px;
    padding: 0.55rem;
  }

  .collection-page .gallery-info {
    min-height: 95px;
    gap: 0.45rem;
    padding: 0.75rem;
  }

  .collection-page .gallery-info h3 {
    font-size: 0.86rem;
    line-height: 1.12;
  }

  .collection-page .gallery-price {
    font-size: 0.62rem;
    letter-spacing: 0.08em;
  }

  .detail-shell {
    width: min(100% - 28px, 1380px);
  }

  .detail-image-frame {
    min-height: 380px;
    padding: 1rem;
  }

  .detail-image-frame img {
    height: 360px;
  }

  .detail-facts div {
    display: grid;
    gap: 0.2rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}
