:root {
  --red: #b90e22;
  --deep-red: #6d0714;
  --green: #087a55;
  --gold: #d5a946;
  --ink: #171717;
  --muted: #65615b;
  --paper: #fbf7ef;
  --white: #ffffff;
  --line: rgba(23, 23, 23, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 82px;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

img {
  display: block;
  max-width: 100%;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px clamp(18px, 4vw, 56px);
  color: var(--white);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0));
}

.brand,
.header-action,
.primary-link,
.ghost-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--red);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.header-action {
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 8px;
  font-weight: 700;
  backdrop-filter: blur(12px);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-bg,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-bg {
  background-image: url("assets/fond-rouge.jpg");
  background-size: cover;
  background-position: center;
  transition: background-image 250ms ease;
  transform: scale(1.02);
}

.theme-white .hero-bg {
  background-image: url("assets/fond-blanc.jpg");
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.34) 48%, rgba(0, 0, 0, 0.1)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.04) 42%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 36px));
  margin: 0 auto;
  padding: 120px 0 74px;
  color: var(--white);
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(2.9rem, 8vw, 6.8rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(1.9rem, 4vw, 3.15rem);
  line-height: 1.06;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 580px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.04rem, 2vw, 1.24rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.primary-link,
.ghost-link,
.submit-button {
  border-radius: 8px;
  font-weight: 800;
}

.primary-link {
  padding: 0 22px;
  background: var(--white);
  color: var(--deep-red);
}

.ghost-link {
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.44);
  color: var(--white);
}

.product-band {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  padding: clamp(54px, 8vw, 98px) clamp(18px, 5vw, 72px);
  background: var(--paper);
}

.product-band,
.order-section {
  scroll-margin-top: 82px;
}

.product-copy p:not(.section-kicker) {
  max-width: 560px;
  color: var(--muted);
  line-height: 1.75;
  font-size: 1.05rem;
}

.product-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.product-gallery img {
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
  border-radius: 8px;
  background: #111;
}

.product-gallery img:first-child {
  grid-row: span 2;
}

.order-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.75fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
  padding: clamp(54px, 8vw, 102px) clamp(18px, 5vw, 72px);
  background:
    linear-gradient(135deg, rgba(8, 122, 85, 0.12), rgba(185, 14, 34, 0.12)),
    #fffdf8;
}

.order-preview {
  position: sticky;
  top: 92px;
}

.preview-frame {
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: #070707;
  border: 1px solid var(--line);
}

.preview-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-caption {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.preview-caption span {
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  font-weight: 800;
}

.order-form {
  padding: clamp(20px, 4vw, 32px);
  border-radius: 8px;
  background: #101010;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--white);
  box-shadow: 0 24px 80px rgba(32, 24, 17, 0.22);
}

fieldset {
  margin: 0 0 22px;
  padding: 0;
  border: 0;
}

legend,
.field span {
  display: block;
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.option-grid {
  display: grid;
  gap: 10px;
}

.color-options {
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.size-options {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.choice {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
  background: #fffaf2;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.color-choice {
  position: relative;
  min-height: 238px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px 16px;
  color: var(--white);
  background: #1b1b1b;
  border-color: rgba(255, 255, 255, 0.16);
}

.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice.active {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(8, 122, 85, 0.12);
}

.color-choice.active {
  border-color: var(--gold);
  background: #2d2d2d;
  box-shadow: 0 16px 48px rgba(213, 169, 70, 0.12);
}

.choice-check {
  position: absolute;
  top: 14px;
  right: 16px;
  color: var(--gold);
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1;
  opacity: 0;
}

.color-choice.active .choice-check {
  opacity: 1;
}

.choice-image-wrap {
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #050505;
}

.choice-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.choice-title,
.choice-subtitle {
  display: block;
  text-align: center;
}

.choice-title {
  font-size: 1rem;
  font-weight: 900;
}

.choice-subtitle {
  color: #aaa;
  font-size: 0.88rem;
  font-weight: 500;
}

.size-options .choice {
  color: var(--white);
  background: #1b1b1b;
  border-color: rgba(255, 255, 255, 0.16);
}

.size-options .choice.active {
  color: var(--white);
  background: #a90000;
  border-color: var(--gold);
  box-shadow: none;
}

.choice:hover {
  transform: translateY(-1px);
}

.swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--white);
  box-shadow: 0 0 0 1px var(--line);
}

.swatch-red {
  background: var(--red);
}

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

.price-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 22px;
  padding: 16px;
  border: 1px solid rgba(213, 169, 70, 0.55);
  border-radius: 8px;
  background: rgba(213, 169, 70, 0.1);
}

.price-box span {
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.price-box strong {
  color: var(--white);
  font-size: 1.45rem;
}

.field {
  display: block;
  margin-bottom: 18px;
}

input,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  background: #fffaf2;
  font: inherit;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(8, 122, 85, 0.13);
}

.submit-button {
  width: 100%;
  min-height: 52px;
  border: 0;
  color: var(--white);
  background: var(--red);
  cursor: pointer;
  font: inherit;
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.form-status {
  min-height: 22px;
  margin: 14px 0 0;
  color: #bdb6aa;
  line-height: 1.45;
}

.form-status.success {
  color: #62d9ad;
  font-weight: 800;
}

.form-status.error {
  color: #ffced5;
  font-weight: 800;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(18px, 5vw, 72px);
  color: var(--white);
  background: #15110f;
}

.site-footer span {
  font-weight: 800;
}

@media (max-width: 860px) {
  .product-band,
  .order-section {
    grid-template-columns: 1fr;
  }

  .order-preview {
    position: static;
  }

  .hero-content {
    margin-left: 18px;
    margin-right: 18px;
  }
}

@media (max-width: 560px) {
  html {
    scroll-padding-top: 96px;
  }

  .site-header {
    padding: 10px 12px;
    background: rgba(16, 12, 10, 0.78);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px);
  }

  .brand span:last-child {
    display: none;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .header-action {
    min-height: 38px;
    padding: 0 14px;
    font-size: 0.92rem;
    background: rgba(255, 255, 255, 0.08);
  }

  .hero {
    min-height: 100svh;
    align-items: end;
  }

  .hero-bg {
    background-position: 35% center;
  }

  .theme-white .hero-bg {
    background-position: 54% center;
  }

  .hero-shade {
    background:
      linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.12) 54%),
      linear-gradient(90deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.2));
  }

  .hero-content {
    width: calc(100% - 32px);
    margin-left: 16px;
    margin-right: 16px;
    padding: 96px 0 34px;
  }

  h1 {
    margin-bottom: 14px;
    font-size: clamp(2.45rem, 13vw, 3.35rem);
    line-height: 1;
  }

  h2 {
    font-size: clamp(1.55rem, 8vw, 2.05rem);
    line-height: 1.1;
  }

  .eyebrow,
  .section-kicker {
    margin-bottom: 10px;
    font-size: 0.72rem;
  }

  .hero-copy {
    font-size: 1rem;
    line-height: 1.55;
  }

  .hero-actions {
    display: grid;
    gap: 10px;
    margin-top: 22px;
  }

  .primary-link,
  .ghost-link {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
  }

  .product-band,
  .order-section {
    scroll-margin-top: 96px;
    padding: 38px 14px;
  }

  .product-copy p:not(.section-kicker) {
    font-size: 0.98rem;
    line-height: 1.65;
  }

  .product-gallery {
    display: flex;
    gap: 10px;
    margin-left: -14px;
    margin-right: -14px;
    padding: 0 14px 4px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .product-gallery img {
    flex: 0 0 min(78vw, 320px);
    height: 330px;
    min-height: 0;
    scroll-snap-align: start;
  }

  .order-section {
    gap: 18px;
  }

  .order-form {
    order: 1;
    padding: 18px;
  }

  .order-preview {
    order: 2;
  }

  .preview-frame {
    aspect-ratio: 1 / 1.08;
  }

  .preview-caption {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .preview-caption span {
    padding: 9px 10px;
    text-align: center;
    font-size: 0.9rem;
  }

  fieldset {
    margin-bottom: 18px;
  }

  legend,
  .field span {
    margin-bottom: 8px;
    font-size: 0.9rem;
  }

  .size-options {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 7px;
  }

  .color-options {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .choice {
    min-height: 46px;
    padding: 8px 6px;
    font-size: 0.94rem;
  }

  .color-choice {
    min-height: 204px;
    padding: 16px 10px;
  }

  .choice-image-wrap {
    width: 92px;
    height: 92px;
  }

  .choice-title {
    font-size: 0.9rem;
    line-height: 1.25;
  }

  .choice-subtitle {
    font-size: 0.76rem;
    line-height: 1.35;
  }

  .choice-check {
    top: 10px;
    right: 12px;
    font-size: 1.15rem;
  }

  .price-box {
    margin-bottom: 18px;
    padding: 14px;
  }

  .price-box strong {
    font-size: 1.28rem;
  }

  .swatch {
    width: 18px;
    height: 18px;
  }

  .field {
    margin-bottom: 15px;
  }

  input,
  textarea {
    min-height: 50px;
    padding: 13px 12px;
    font-size: 16px;
  }

  .submit-button {
    min-height: 52px;
  }

  .site-footer {
    padding: 20px 14px;
    font-size: 0.92rem;
  }
}
