:root {
  --ink: #151515;
  --charcoal: #3b3d3d;
  --ash: #70716d;
  --mist: #ececea;
  --paper: #f7f7f5;
  --surface: #ffffff;
  --line: #deddd8;
  --stone: #898985;
  --smoke: #737774;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.modal-open {
  overflow: hidden;
}

body::selection {
  color: #ffffff;
  background: var(--smoke);
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 76px;
  padding: 0 56px;
  color: #ffffff;
  background: linear-gradient(rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0));
}

.brand {
  margin-right: auto;
}

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--ink);
  background: rgba(244, 243, 239, 0.94);
  border-bottom: 1px solid rgba(21, 21, 21, 0.11);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 50%;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
}

.site-header.is-scrolled .brand-mark,
.site-header.is-open .brand-mark {
  color: #ffffff;
  background: var(--charcoal);
  border-color: var(--charcoal);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-weight: 700;
  font-size: 0.9rem;
}

.site-nav a {
  opacity: 0.86;
}

.site-nav a:hover {
  opacity: 1;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  order: 2;
}

@media (min-width: 721px) {
  .header-actions {
    margin-left: 0;
    order: initial;
  }
}

.cart-toggle {
  position: relative;
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: inherit;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.cart-toggle:hover {
  opacity: 0.78;
}

.cart-badge {
  position: absolute;
  top: 5px;
  right: 5px;
  min-width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  color: #ffffff;
  background: var(--ink);
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1;
}

.site-header:not(.is-scrolled):not(.is-open) .cart-badge {
  color: var(--ink);
  background: #ffffff;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  color: inherit;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 6px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 92svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #ffffff;
  text-align: center;
}

.hero .hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.35) contrast(0.92) brightness(0.72);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.16), transparent 30%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.18) 45%, rgba(0, 0, 0, 0.4));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(820px, calc(100% - 40px));
  padding: 128px 0 72px;
}

.hero-signature {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 3.2rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-line {
  display: block;
  width: 240px;
  height: 1px;
  margin: 18px auto 34px;
  background: rgba(255, 255, 255, 0.68);
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--stone);
  font-weight: 800;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

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

h1 {
  max-width: 760px;
  margin: 0 auto 24px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 4.1rem;
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 3.15rem;
  line-height: 1.06;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0;
  font-size: 1.08rem;
  line-height: 1.28;
}

.hero-copy {
  max-width: 650px;
  margin: 0 auto 34px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.08rem;
  line-height: 1.7;
}

.hero-actions,
.filter-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.button,
.filter-button,
.select-print {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 20px;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 180ms ease,
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.button:hover,
.filter-button:hover,
.select-print:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: #ffffff;
  background: var(--charcoal);
}

.button-secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
}

.button-dark {
  color: #ffffff;
  background: var(--ink);
}

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

.split-section,
.section-heading,
.shop-heading,
.contact-panel,
.protection-section {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 72px;
  align-items: start;
}

.lead-copy,
.shop-heading > p,
.contact-panel > div > p {
  color: var(--ash);
  font-size: 1.05rem;
  line-height: 1.82;
}

.full-gallery-section {
  border-top: 1px solid var(--line);
}

.section-heading {
  align-items: end;
  margin-bottom: 34px;
}

.gallery-heading > div:last-child {
  display: grid;
  justify-items: end;
  gap: 16px;
}

.gallery-heading p {
  max-width: 320px;
  margin: 0;
  color: var(--ash);
  font-weight: 700;
  line-height: 1.55;
  text-align: right;
}

.section-heading .filter-group {
  justify-content: flex-end;
}

.filter-button {
  min-height: 40px;
  color: var(--ash);
  border-color: var(--line);
  background: transparent;
  font-size: 0.88rem;
}

.filter-button.is-active,
.gallery-filter.is-active {
  color: #ffffff;
  background: var(--charcoal);
  border-color: var(--charcoal);
}

.mockup-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
}

.full-gallery {
  columns: 4 210px;
  column-gap: 14px;
}

.gallery-card {
  position: relative;
  display: grid;
  gap: 9px;
  overflow: hidden;
  width: 100%;
  margin: 0 0 14px;
  break-inside: avoid;
  border-radius: 2px;
  background: transparent;
  cursor: pointer;
  transition: opacity 220ms ease;
}

.gallery-card:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

.gallery-card > div > h3,
.gallery-card > div > span {
  transition: color 220ms ease;
}

.gallery-card:hover > div > h3 {
  color: var(--charcoal);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.gallery-card img {
  width: 100%;
  height: auto;
  transition: transform 420ms ease;
}

.gallery-card::after {
  content: none;
}

.gallery-card:hover img {
  transform: scale(1.035);
}

.gallery-card-content {
  display: grid;
  gap: 7px;
  padding: 0 0 20px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.gallery-card-content span {
  color: var(--stone);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.gallery-card-content h3 {
  color: var(--ink);
  font-size: 0.92rem;
}

.gallery-request {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  justify-self: start;
  border: 1px solid rgba(21, 21, 21, 0.14);
  padding: 0 13px;
  color: var(--ink);
  border-radius: 999px;
  background: #ffffff;
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
  transition:
    color 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.gallery-request:hover {
  color: #ffffff;
  background: var(--charcoal);
  border-color: var(--charcoal);
}

.work-purchase {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  justify-self: start;
  margin-top: 14px;
  border: 0;
  border-radius: 999px;
  padding: 0 13px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
}

.gallery-filter {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  color: var(--ash);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  font-weight: 800;
  font-size: 0.82rem;
  cursor: pointer;
  transition:
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.gallery-card.is-hidden {
  display: none;
}

.product-info span {
  display: block;
  margin-bottom: 8px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.74;
}

.shop-section {
  color: var(--ink);
  background: #e5e5e1;
}

.shop-section .section-kicker {
  color: var(--stone);
}

.shop-heading > p {
  color: var(--ash);
}

.product-card {
  overflow: hidden;
  border-radius: 4px;
  background: #f6f5f1;
  color: var(--ink);
}

.shop-gallery {
  display: grid;
  gap: 22px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding-bottom: 34px;
}

.shop-item {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  border: 1px solid rgba(21, 21, 21, 0.08);
  background: #f7f6f2;
}

.mockup-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 1px;
  background: #d8d5cc;
}


.mockup-card {
  position: relative;
  display: block;
  margin: 0;
  overflow: hidden;
  background: #f2efe9;
}

.mockup-card figcaption {
  display: block;
  padding: 12px 16px 14px;
  color: var(--ash);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.88);
  border-top: 1px solid rgba(21, 21, 21, 0.05);
}

.immersive-mockup .purchase-room {
  width: 100%;
}

/* Chaque carte de la grille boutique prend sa hauteur naturelle (align-items:start
   sur le parent), pas d'étirement. Le ratio est porté par .scene-* (room) ou
   par .frame en 1:1 (PNG cadre bois). */
.shop-featured .framed-photo-mockup {
  width: 100%;
}

.product-info {
  display: grid;
  align-content: center;
  gap: 20px;
  padding: 30px;
}

.shop-select-label {
  display: grid;
  gap: 8px;
}

.shop-select-kicker {
  color: var(--stone);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.shop-photo-select {
  width: 100%;
  padding: 14px 40px 14px 16px;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.92rem;
  border: 1px solid rgba(21, 21, 21, 0.16);
  border-radius: 4px;
  background-color: #ffffff;
  background-image: linear-gradient(45deg, transparent 50%, var(--ash) 50%),
    linear-gradient(135deg, var(--ash) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) calc(50% - 2px),
    calc(100% - 14px) calc(50% - 2px);
  background-size:
    6px 6px,
    6px 6px;
  background-repeat: no-repeat;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color 180ms ease;
}

.shop-photo-select:hover {
  border-color: var(--charcoal);
}

.shop-photo-select:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.shop-featured .product-info > div {
  display: grid;
  gap: 4px;
}

.shop-featured .product-info > div > span {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.74;
}

.shop-featured .product-info > div > h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.8rem;
  line-height: 1.1;
}

.product-info p {
  margin: 0;
  color: var(--charcoal);
  font-weight: 700;
  line-height: 1.45;
}

.format-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.format-options span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  margin: 0;
  padding: 0 12px;
  color: var(--charcoal);
  border: 1px solid rgba(21, 21, 21, 0.16);
  border-radius: 999px;
  background: #ffffff;
  font-size: 0.78rem;
  opacity: 1;
}

.select-print {
  width: 100%;
  color: var(--charcoal);
  border-color: rgba(21, 21, 21, 0.18);
  background: #e8e7e2;
}

.select-print.is-selected {
  color: #ffffff;
  background: var(--charcoal);
  border-color: var(--charcoal);
}

.purchase-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
}

.purchase-modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(20, 20, 20, 0.62);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.purchase-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  width: min(1120px, 100%);
  max-height: min(92svh, 920px);
  overflow: auto;
  padding: 30px;
  color: var(--ink);
  background: #f7f7f4;
  border-radius: 6px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.32);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(21, 21, 21, 0.1);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.purchase-copy {
  max-width: 720px;
  padding-right: 48px;
}

.purchase-copy h2 {
  font-size: 2.45rem;
}

.purchase-copy p:last-child {
  margin: 16px 0 0;
  color: var(--ash);
  line-height: 1.7;
}

.purchase-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.purchase-preview {
  display: grid;
  gap: 14px;
  margin: 0;
}

.purchase-preview figcaption {
  color: var(--stone);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.purchase-white,
.purchase-framed {
  place-items: stretch;
  padding: 0;
  background: transparent;
}

.purchase-framed > .framed-photo-mockup {
  width: 100%;
  aspect-ratio: auto;
}

.purchase-white figcaption,
.purchase-framed figcaption,
.purchase-interior figcaption {
  justify-self: start;
  align-self: start;
  padding-left: 4px;
}

.purchase-frame,
.purchase-room-frame {
  aspect-ratio: var(--photo-ratio, 2 / 3);
  padding: 10px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.28), transparent 22%, rgba(83, 53, 24, 0.12) 50%, transparent 78%),
    linear-gradient(135deg, #d8bf91, #f0ddba 34%, #caa873 70%, #ead2a6);
  box-shadow:
    0 22px 50px rgba(0, 0, 0, 0.2),
    inset 0 0 0 1px rgba(82, 52, 27, 0.16);
}

.purchase-frame {
  width: min(76%, 430px);
  max-height: 390px;
}

.purchase-frame span,
.purchase-room-frame span {
  display: block;
  width: 100%;
  height: 100%;
  padding: 10px;
  background: #f8f6f0;
  box-shadow: inset 0 0 0 1px rgba(25, 25, 25, 0.08);
}

.purchase-frame img,
.purchase-room-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #ffffff;
}

.purchase-interior {
  background: #e6e3dc;
}

.scene-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.scene-button {
  min-height: 34px;
  border: 1px solid rgba(21, 21, 21, 0.12);
  border-radius: 999px;
  padding: 0 12px;
  color: var(--ash);
  background: transparent;
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
}

.scene-button.is-active {
  color: #ffffff;
  background: var(--charcoal);
  border-color: var(--charcoal);
}

/* ============================================
   Mises en situation immersives
   Trois scènes basées sur de vraies photos
   d'intérieurs (nettoyées du tableau original).
   La photo s'affiche au format naturel, posée
   à l'emplacement où était le tableau d'origine.
   ============================================ */

.purchase-room {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: #ece8e0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.purchase-room-frame {
  position: absolute;
  top: var(--frame-cy, 50%);
  left: var(--frame-cx, 50%);
  width: var(--frame-mw, 50%);
  aspect-ratio: var(--frame-ar, 1);
  transform: translate(-50%, -50%);
  overflow: hidden;
  padding: 0;
  background: none;
  height: auto;
  box-shadow:
    0 1px 0 rgba(0, 0, 0, 0.05),
    0 18px 30px rgba(40, 30, 20, 0.22),
    0 6px 12px rgba(40, 30, 20, 0.12);
}

.purchase-room-frame::before,
.purchase-room-frame::after {
  display: none;
}

.purchase-room-frame > span {
  display: contents;
  padding: 0;
  background: none;
  box-shadow: none;
}

.purchase-room-frame img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  background: transparent;
  object-fit: cover;
  object-position: center;
  box-shadow: none;
}

/* ===== Scène Chambre — pour photos paysage =====
   Utilise l'image originale (avec son tableau). La nouvelle photo est posée
   exactement à l'emplacement du tableau, ce qui donne l'illusion qu'elle est
   accrochée au mur. Coordonnées du tableau original mesurées visuellement
   (chambre.jpg 1067x800) : tableau à cx=50%, cy=28%, largeur ~37%, ratio ~1.41. */
.scene-chambre {
  --frame-cx: 50%;
  --frame-cy: 28%;
  --frame-mw: 37%;
  --frame-ar: 1.41;
  background-image: url("assets/mockups/chambre.jpg");
  aspect-ratio: 1067 / 800;
}

/* ===== Scène Salon — pour photos portrait =====
   Idem : on garde l'image originale salon-beige.webp avec son tableau,
   et on overlay la nouvelle photo exactement dans le cadre visible. */
.scene-salon-beige {
  --frame-cx: 49.9%;
  --frame-cy: 27.3%;
  --frame-mw: 30.7%;
  --frame-ar: 589 / 872;
  background-image: url("assets/mockups/salon-beige.webp");
  aspect-ratio: 1920 / 2049;
}

/* Salon bohème conservé pour compatibilité, non utilisé par défaut */
.scene-salon-boheme {
  --frame-cx: 50%;
  --frame-cy: 26%;
  --frame-mw: 70%;
  --frame-ar: 4 / 3;
  background-image: url("assets/mockups/salon-boheme-clean.jpg");
  aspect-ratio: 1 / 1;
}

/* ===== Tirage encadré (vue de gauche) =====
   Cadre en bois (PNG portrait 3:4). La photo s'inscrit dans l'ouverture
   intérieure mesurée à 17.53% gauche / 6.37% haut / 64.74% large / 86.85% haute
   sur un canevas 502x502 (ratio 1:1).
   Pas de fond beige : le cadre PNG est posé directement sur le fond du shop-item
   pour ne pas créer l'illusion d'un "second cadre". */
.framed-photo-mockup {
  position: relative;
  display: grid;
  place-items: center;
  padding: 18px;
  background: transparent;
  overflow: hidden;
}

.framed-photo-mockup .frame {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: 1 / 1;
  padding: 0;
  background: none;
  box-shadow:
    0 22px 38px rgba(60, 40, 22, 0.18),
    0 8px 14px rgba(60, 40, 22, 0.12);
  overflow: hidden;
}

.framed-photo-mockup .frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/mockups/cadre-bois.png.webp") no-repeat center / 100% 100%;
  pointer-events: none;
  z-index: 2;
  transition: transform 200ms ease;
}

.framed-photo-mockup .frame img {
  position: absolute;
  left: 17.53%;
  top: 6.37%;
  width: 64.74%;
  height: 86.85%;
  display: block;
  object-fit: cover;
  background: #fff;
  box-shadow: none;
  z-index: 1;
}

/* Variante paysage : on utilise un PNG physiquement tourné de 90° (cadre-bois-paysage.webp).
   L'ouverture intérieure devient 4:3 paysage : 6.37% gauche / 17.53% haut / 86.85% large /
   64.74% haute (coordonnées du PNG portrait inversées par la rotation). */
.framed-photo-mockup .frame.frame-landscape::after {
  background-image: url("assets/mockups/cadre-bois-paysage.webp");
}

.framed-photo-mockup .frame.frame-landscape img {
  left: 6.37%;
  top: 17.53%;
  width: 86.85%;
  height: 64.74%;
}

.purchase-actions {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 1fr);
  align-items: center;
  gap: 26px;
  padding-top: 4px;
}

.purchase-format-block {
  display: grid;
  gap: 10px;
}

.format-choice {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.format-option {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid rgba(21, 21, 21, 0.14);
  border-radius: 6px;
  background: #ffffff;
  cursor: pointer;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.format-option input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}

.format-option-label {
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

.format-option-price {
  color: var(--ash);
  font-weight: 700;
  font-size: 0.86rem;
}

.format-option.is-selected,
.format-option:has(input:checked) {
  border-color: var(--ink);
  background: #fdfdfb;
  box-shadow: 0 0 0 2px rgba(21, 21, 21, 0.08);
}

.format-option.is-selected .format-option-price,
.format-option:has(input:checked) .format-option-price {
  color: var(--ink);
}

#purchaseAddToCart {
  width: 100%;
  min-height: 56px;
  font-size: 0.96rem;
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: block;
}

.cart-drawer[hidden] {
  display: none;
}

.cart-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(20, 20, 20, 0.5);
  backdrop-filter: blur(6px);
  cursor: pointer;
  animation: cartFade 220ms ease;
}

.cart-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: min(460px, 100%);
  background: var(--paper);
  box-shadow: -28px 0 70px rgba(0, 0, 0, 0.22);
  animation: cartSlide 280ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

@keyframes cartFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes cartSlide {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

.cart-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 28px 18px;
  border-bottom: 1px solid var(--line);
}

.cart-panel-head h2 {
  font-size: 1.55rem;
}

.cart-close {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(21, 21, 21, 0.12);
  border-radius: 50%;
  color: var(--ink);
  background: #ffffff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.cart-items {
  flex: 1;
  display: grid;
  align-content: start;
  gap: 16px;
  overflow-y: auto;
  padding: 22px 28px;
}

.cart-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.cart-item:last-child {
  border-bottom: 0;
}

.cart-item-image {
  width: 72px;
  height: 96px;
  overflow: hidden;
  border-radius: 3px;
  background: #d8d8d4;
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-body {
  display: grid;
  gap: 4px;
  align-content: start;
  min-width: 0;
}

.cart-item-title {
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-item-meta {
  color: var(--ash);
  font-size: 0.82rem;
  line-height: 1.4;
}

.cart-item-actions {
  display: grid;
  justify-items: end;
  align-content: space-between;
  gap: 6px;
}

.cart-item-price {
  font-weight: 800;
  font-size: 0.95rem;
}

.cart-item-remove {
  border: 0;
  background: transparent;
  color: var(--ash);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.cart-item-remove:hover {
  color: var(--ink);
}

.cart-empty {
  margin: 0;
  padding: 40px 28px;
  color: var(--ash);
  font-size: 0.95rem;
  line-height: 1.6;
}

.cart-empty[hidden] {
  display: none;
}

.cart-panel-foot {
  padding: 20px 28px 28px;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.cart-panel-foot[hidden] {
  display: none;
}

.cart-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
}

.cart-total span {
  color: var(--ash);
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cart-total strong {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.9rem;
}

.cart-note {
  margin: 0 0 18px;
  color: var(--ash);
  font-size: 0.82rem;
  line-height: 1.55;
}

.cart-checkout {
  width: 100%;
  min-height: 54px;
}

.cart-checkout[disabled],
.cart-checkout.is-loading {
  opacity: 0.7;
  cursor: not-allowed;
}

.cart-secure {
  margin: 12px 0 0;
  color: var(--stone);
  font-size: 0.74rem;
  text-align: center;
  letter-spacing: 0.04em;
}

.cart-toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  z-index: 95;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  color: #ffffff;
  background: var(--ink);
  border-radius: 999px;
  box-shadow: 0 20px 36px rgba(0, 0, 0, 0.22);
  font-size: 0.88rem;
  font-weight: 700;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 220ms ease,
    opacity 220ms ease;
}

.cart-toast.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.purchase-actions strong,
.purchase-actions span {
  display: block;
}

.purchase-actions strong {
  margin-bottom: 5px;
}

.purchase-actions span {
  color: var(--ash);
  line-height: 1.55;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.service-grid article {
  min-height: 260px;
  padding: 26px;
  background: var(--paper);
}

.service-grid span {
  display: block;
  margin-bottom: 52px;
  color: var(--stone);
  font-weight: 800;
}

.service-grid p {
  margin: 14px 0 0;
  color: var(--ash);
  line-height: 1.62;
}

.protection-section {
  border-top: 1px solid var(--line);
}

.contact-section {
  padding: 112px 20px;
  color: #ffffff;
  background:
    linear-gradient(rgba(0, 0, 0, 0.66), rgba(0, 0, 0, 0.72)),
    url("assets/photos-web/featured/contact-foret-hiver.jpg") center/cover;
}

.contact-panel {
  width: min(1180px, 100%);
  margin: 0 auto;
  align-items: stretch;
}

.contact-panel > div > p {
  color: rgba(255, 255, 255, 0.76);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.contact-links a {
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 34px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  border-radius: 4px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--ash);
  font-weight: 800;
  font-size: 0.86rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  border: 1px solid #d2d0c9;
  border-radius: 4px;
  padding: 14px;
  color: var(--ink);
  background: #ffffff;
}

.contact-form textarea {
  resize: vertical;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 56px;
  color: #ffffff;
  background: var(--ink);
}

.site-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

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

@media (max-width: 1060px) {
  .site-header {
    padding: 0 28px;
  }

  h1 {
    font-size: 3.55rem;
  }

  h2 {
    font-size: 2.75rem;
  }

  .section,
  .contact-section {
    padding-top: 88px;
    padding-bottom: 88px;
  }

  .split-section,
  .section-heading,
  .shop-heading,
  .contact-panel,
  .protection-section {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .section-heading .filter-group {
    justify-content: flex-start;
  }

  .gallery-heading > div:last-child {
    justify-items: start;
  }

  .gallery-heading p {
    text-align: left;
  }

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

  .shop-item {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-header {
    min-height: 66px;
    padding: 0 16px;
  }

  .brand span:last-child {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    inset: 66px 12px auto;
    display: none;
    grid-template-columns: 1fr;
    gap: 0;
    overflow: hidden;
    color: var(--ink);
    background: #ffffff;
    border-radius: 4px;
    box-shadow: var(--shadow);
  }

  .site-header.is-open .site-nav {
    display: grid;
  }

  .site-nav a {
    padding: 18px;
    border-bottom: 1px solid #ecebe6;
  }

  .hero {
    min-height: 92svh;
  }

  .hero-content {
    width: min(100% - 32px, 820px);
    padding: 104px 0 46px;
  }

  .hero-signature {
    font-size: 2.05rem;
    letter-spacing: 0.12em;
  }

  .hero-line {
    width: 170px;
    margin-bottom: 28px;
  }

  h1 {
    font-size: 2.65rem;
    line-height: 1.04;
  }

  h2 {
    font-size: 2.16rem;
    line-height: 1.08;
  }

  .hero-copy,
  .lead-copy,
  .shop-heading > p,
  .contact-panel > div > p {
    font-size: 1rem;
  }

  .section,
  .contact-section {
    padding-top: 70px;
    padding-bottom: 70px;
  }

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

  .section {
    width: min(100% - 32px, 1180px);
  }

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

  .shop-gallery {
    width: min(100% - 32px, 1180px);
  }

  .full-gallery {
    columns: 2 140px;
    column-gap: 10px;
  }

  .gallery-card {
    margin-bottom: 10px;
  }

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

  .mockup-card {
    min-height: 330px;
  }

  .purchase-panel {
    padding: 20px;
  }

  .purchase-preview-grid {
    grid-template-columns: 1fr;
  }

  .purchase-white,
  .purchase-framed,
  .purchase-interior {
    min-height: 380px;
  }

  .purchase-actions {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .purchase-actions .button {
    width: 100%;
  }

  .cart-panel {
    width: 100%;
  }

  .cart-panel-head,
  .cart-items,
  .cart-panel-foot {
    padding-left: 20px;
    padding-right: 20px;
  }

  .format-choice {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 20px;
  }

  .service-grid article {
    min-height: 220px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 28px 20px;
  }
}
