.achat {
  --or: #e6c78e;
  --creme: #f9f3e8;
  --papier: #f1e7d7;
  --encre: #281b19;
  --bordeaux: #482027;
  --ligne: #d6c8b5;
  color: var(--creme);
  font: 1rem/1.55 'Open Sans', sans-serif;
  padding: 2rem 0 4rem;
  background:
    linear-gradient(180deg, #211013cd, #170c11 33%, #170c11 100%),
    url('onzieme-ambiance.jpg') center top / 100% auto no-repeat;
}
.achat *, .achat *::before, .achat *::after { box-sizing: border-box; }
.achat [hidden] { display: none !important; }
.achat :focus-visible { outline: 3px solid #cf9e44; outline-offset: 3px; }
.achat-wrap { width: min(1160px, calc(100% - 72px)); margin: 0 auto; }
.achat h1, .achat h2, .achat p { margin: 0; }
.achat h1, .achat-recap h2, .achat-choix-page h2 {
  font-family: MagicSchoolOne, 'Cinzel', serif;
  font-weight: 400;
  line-height: 1.05;
  color: var(--creme);
}
.achat-bandeau {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .55rem;
  color: #e3ccb4;
  font-size: .875rem;
}
.achat-bandeau a, .achat-alternative, .achat-etat-demo a { color: var(--or); text-decoration: underline; text-underline-offset: .2em; }
.achat-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.3rem;
  padding: 1.3rem 0 1.65rem;
}
.achat-intro h1 { font-size: clamp(2.9rem, 5.3vw, 4.4rem); margin: 0; }
.achat-intro p { margin: .35rem 0 0; color: #f1dfca; }
.achat-alternative { flex: 0 0 auto; padding-bottom: .25rem; font-size: .875rem; }
.achat-offre {
  display: flex;
  gap: .15rem 1rem;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 1rem !important;
  border: 1px solid #937247;
  padding: .7rem 1rem;
  background: #35201c;
  color: var(--or);
}
.achat-offre span { color: #f3e1cb; font-size: .875rem; }
.achat-grille { display: grid; grid-template-columns: minmax(0, 1.62fr) minmax(290px, 1fr); align-items: start; gap: clamp(1rem, 3vw, 2rem); }
.achat-form {
  min-width: 0;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--creme);
  border-top: 3px solid #c8a36e;
  color: var(--encre);
  box-shadow: 0 18px 44px #0005;
}
.achat-section {
  margin: 0 0 1.15rem;
  padding: 0 0 1.05rem;
  border: 0;
  border-bottom: 1px solid var(--ligne);
  min-width: 0;
}
.achat-section h2, .achat-section legend {
  margin: 0 0 .65rem;
  padding: 0;
  color: var(--bordeaux);
  font: 700 1.15rem/1.35 'Open Sans', sans-serif;
}
.achat-form .achat-note { color: #6b5851; }
.achat .achat-note { font-size: .875rem; line-height: 1.45; margin: .48rem 0 0; }
.achat-champs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; margin-top: .75rem; }
.achat-champ { display: block; min-width: 0; margin: 0; font-size: .91rem; line-height: 1.4; font-weight: 700; }
.achat-large { grid-column: 1 / -1; }
.achat-champ input, .achat-step input {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  border: 1px solid #b5a690;
  border-radius: 5px;
  background: #fffcf5;
  padding: .55rem .7rem;
  color: var(--encre);
  font: 400 1rem/1.3 'Open Sans', sans-serif;
}
.achat-champ input { margin-top: .35rem; }
.achat-champ input::placeholder { color: #7b6c63; }
.achat-montants, .achat-faces { display: flex; gap: .5rem; flex-wrap: wrap; }
.achat-montants { margin-bottom: .75rem; }
.achat-chip, .achat-outline {
  background: transparent;
  border: 1px solid #9c8973;
  border-radius: 5px;
  min-height: 42px;
  color: inherit;
  font: 700 .875rem/1.2 'Open Sans', sans-serif;
  padding: .55rem .95rem;
  cursor: pointer;
}
.achat-form .achat-chip[aria-pressed="true"], .achat-form .achat-chip:hover, .achat-outline:hover { border-color: var(--bordeaux); background: #ecddcc; }
.achat-montant-ligne { display: grid; grid-template-columns: minmax(0, 170px) 1fr; align-items: end; gap: .9rem; }
.achat-unite { display: block; position: relative; }
.achat-unite input { padding-right: 2rem; }
.achat-unite > span { position: absolute; right: .72rem; top: .7rem; color: #624337; }
.achat-lien { color: #6c3230; text-decoration: underline; text-underline-offset: .18em; font-weight: 600; }
.achat-montant-ligne .achat-lien { justify-self: start; margin-bottom: .55rem; font-size: .875rem; }
.achat-message { margin-top: .95rem; }
.achat-compteur { text-align: right; }
.achat-selection { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .7rem; }
.achat-selection h2 { margin: 0; }
.achat-step { display: grid; grid-template-columns: 44px 62px 44px; border: 1px solid #b5a690; border-radius: 5px; overflow: hidden; }
.achat-step button { border: 0; background: #eadbc8; color: var(--encre); font: 600 1.25rem 'Open Sans', sans-serif; cursor: pointer; }
.achat-step button:hover { background: #e1cdb1; }
.achat-step button:disabled { opacity: .5; cursor: default; }
.achat-step input { text-align: center; border: 0; border-radius: 0; appearance: textfield; padding: .4rem; }
.achat-step input::-webkit-inner-spin-button, .achat-step input::-webkit-outer-spin-button,
.achat-unite input::-webkit-inner-spin-button, .achat-unite input::-webkit-outer-spin-button { appearance: none; }
.achat-step :focus-visible { outline-offset: -3px; }
.achat-alerte { padding: .7rem .8rem; background: #f2e1bf; color: #53351a; border-left: 3px solid #9d652c; margin-top: .75rem !important; font-size: .875rem; }
.achat-modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.achat-mode {
  display: flex; align-items: flex-start; gap: .58rem; margin: 0;
  color: var(--encre); background: #fffcf5; border: 1px solid #b5a690; border-radius: 5px; padding: .64rem .65rem;
  cursor: pointer;
}
.achat-mode:has(input:checked) { border-color: #725047; background: #efe2d1; }
.achat-mode input, .achat-cgv input { flex: 0 0 1.12rem; width: 1.12rem; height: 1.12rem; margin: .15rem 0 0; accent-color: var(--bordeaux); }
.achat-mode strong, .achat-mode small { display: block; }
.achat-mode strong { font-size: .91rem; }
.achat-mode small { font-size: .825rem; color: #6a5047; }
.achat-retrait { margin-top: .7rem; color: #513d34; font-size: .875rem; }
.achat-promo { border-bottom: 1px solid var(--ligne); margin-bottom: 1rem; padding-bottom: .75rem; }
.achat-promo summary {
  cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; list-style: none;
  color: var(--bordeaux); font-weight: 700; font-size: .91rem; min-height: 36px; align-items: center;
}
.achat-promo summary::-webkit-details-marker { display: none; }
.achat-promo summary span { font-size: 1.25rem; }
.achat-promo[open] summary span { transform: rotate(45deg); }
.achat-promo-champ { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .55rem; align-items: end; margin-top: .58rem; }
.achat-paiement { padding: 0; margin: 0; border: 0; }
.achat-total { display: flex; align-items: baseline; gap: .75rem; justify-content: space-between; margin-bottom: .7rem; }
.achat-total h2 { margin: 0; }
.achat-total strong { color: var(--bordeaux); font-size: 1.5rem; white-space: nowrap; }
.achat-cgv { display: flex; align-items: flex-start; gap: .65rem; margin: .65rem 0 .8rem; font-size: .875rem; }
.achat-cgv a { color: #682c2e; text-decoration: underline; }
.achat-cta {
  width: 100%; display: block; padding: .72rem 1rem; min-height: 49px; border: 1px solid var(--bordeaux); border-radius: 5px;
  background: var(--bordeaux); color: #fff8e7; font: 700 1rem 'Open Sans', sans-serif; cursor: pointer;
}
.achat-cta:hover { background: #642d35; }
.achat-secure { text-align: center; }
.achat-demo-result { margin-top: .8rem !important; padding: .75rem; background: #e9ddc9; color: var(--encre); border-left: 3px solid #8b5e34; font-size: .875rem; }
.achat-recap { background: #211318; border: 1px solid #9b794b; color: var(--creme); box-shadow: 0 18px 44px #0005; }
.achat-recap-entete { padding: 1.15rem 1.35rem .7rem; }
.achat-recap-entete p { color: var(--or); font: 600 .875rem 'Cinzel', serif; text-transform: uppercase; letter-spacing: .12em; }
.achat-recap h2 { font-size: clamp(2.15rem, 3.8vw, 3.15rem); margin-top: .28rem; }
.achat-illustration { background: radial-gradient(ellipse at center, #48252b, #1b1016 75%); padding: .9rem 1.4rem; }
.achat-illustration img { display: block; width: 100%; max-width: 360px; aspect-ratio: 330 / 210; object-fit: cover; margin: 0 auto; border-radius: 5px; }
.achat-box-image img { aspect-ratio: 998 / 694; object-fit: contain; }
.achat-verso { position: relative; max-width: 360px; margin: 0 auto; text-align: center; }
.achat-faux-code { top: 44%; left: 13%; width: 74%; position: absolute; background: #fff8eb; color: #311b1b; font-size: clamp(.7rem, 2vw, .875rem); }
.achat-dedicace { position: absolute; inset: 64% 5% 7%; color: white; font-size: clamp(.68rem, 1.5vw, .875rem); overflow-wrap: anywhere; }
.achat-dedicace > span { display: block; }
.achat-faces { justify-content: center; margin: .5rem 0 0; }
.achat-faces .achat-chip { min-height: 36px; }
.achat-faces .achat-chip[aria-pressed="true"], .achat-faces .achat-chip:hover { background: #4a3032; color: #ffedcb; }
.achat-recap-corps { padding: .95rem 1.35rem 1.25rem; }
.achat-validite { color: var(--or); font-size: .875rem; margin-bottom: .6rem; }
.achat-recap dl { margin: 0; }
.achat-recap dl div { display: flex; gap: .5rem; justify-content: space-between; align-items: baseline; padding: .48rem 0; border-top: 1px solid #896f4b73; }
.achat-recap dt, .achat-recap dd { font-size: .89rem; margin: 0; }
.achat-recap dt { font-weight: 400; color: #edddcc; }
.achat-recap dd { color: #fff3da; font-weight: 700; text-align: right; }
.achat-recap .achat-recap-total dd { color: var(--or); font-size: 1.5rem; }
.achat-recap .achat-note { color: #e0ccba; }
.achat-etat-demo { margin-top: 1rem !important; font-size: .875rem; }
.achat-choix-page { display: grid; grid-template-columns: repeat(2,minmax(0, 1fr)); gap: 1rem; }
.achat-choix-page > a { background: #26181a; border: 1px solid #9b794b; color: var(--creme); text-decoration: none; }
.achat-choix-page img { display: block; width: 100%; aspect-ratio: 16 / 8; object-fit: contain; background: #1a1114; padding: .8rem; }
.achat-choix-page > a > div { padding: 1.2rem; }
.achat-choix-page h2 { font-size: 2.3rem; }
.achat-voir { display: inline-block; color: var(--or); margin-top: .65rem; text-decoration: underline; text-underline-offset: .18em; }
@media (max-width: 900px) {
  .achat-wrap { width: calc(100% - 42px); }
  .achat-grille { grid-template-columns: minmax(0,1.2fr) minmax(260px,1fr); }
}
@media (max-width: 740px) {
  .achat { padding: 1.25rem 0 2rem; background-size: auto, auto 440px; }
  .achat-wrap { width: calc(100% - 28px); }
  .achat-grille { grid-template-columns: minmax(0,1fr); }
  .achat-intro { display: block; padding: 1rem 0 1.25rem; }
  .achat-intro h1 { font-size: clamp(2.7rem, 10.5vw, 3.5rem); }
  .achat-alternative { display: inline-block; padding: .6rem 0 0; }
  .achat-recap { grid-row: 2; }
  .achat-choix-page { grid-template-columns: 1fr; }
}
@media (max-width: 365px) {
  .achat-form { padding: 1rem; }
  .achat-modes { grid-template-columns: 1fr; }
  .achat-montant-ligne { grid-template-columns: minmax(0,1fr) auto; gap: .55rem; }
}

/* Afficher les contrôles natifs dans le formulaire de la maquette. */
.achat .achat-mode input,
.achat .achat-cgv input[type="checkbox"] {
  position: static;
  opacity: 1;
  appearance: auto;
  pointer-events: auto;
}

/* Adapter les champs natifs sans modifier les composants partagés du site. */
.achat .achat-champ .input-group-text {
  background: transparent; border: 0; color: var(--encre); padding: 0;
  white-space: normal; font: inherit; text-align: left;
}
.achat .achat-champ .input-group-prepend { display: block; }
.achat .achat-champ input { border-radius: 5px !important; }
.achat .achat-lien[type="button"] { background: transparent; border: 0; min-height: 44px; padding: 0; }
.achat .achat-cgv label { margin: 0; padding: 0; height: auto; line-height: inherit; color: inherit; font-size: inherit; }
.achat .achat-cgv label::before, .achat .achat-cgv label::after { display: none; }
.achat .achat-illustration img { height: auto; }
.achat .achat-dedicace small { display: block; font-size: inherit; }
.achat .achat-admin { margin-top: 1rem; }
.achat .achat-cta:disabled { opacity: .65; cursor: wait; }
/* Le raccourci global vers les cadeaux ne doit pas masquer leur formulaire sur mobile. */
body:has(.achat) > .sticky-btn { display: none; }
