.page-checkout{background:#fbf9f6;color:#29231f}.checkout-shell{max-width:1180px;margin:0 auto;padding:clamp(2rem,5vw,4.5rem) 1rem 4rem}.checkout-heading{max-width:720px;margin:0 auto 2.5rem;text-align:center}.checkout-eyebrow{font-size:.72rem;letter-spacing:.18em;font-weight:700;color:#98734f}.checkout-heading h1{font-family:"Playfair Display",Georgia,serif;font-size:clamp(2.1rem,5vw,3.4rem);font-weight:500;line-height:1.1;margin:.65rem 0 1rem}.checkout-heading>p:not(.checkout-eyebrow){color:#766b61;line-height:1.6}.checkout-steps{display:flex;justify-content:center;gap:clamp(.7rem,3vw,2rem);list-style:none;padding:0;margin:2rem 0 0;color:#a69b90;font-size:.8rem}.checkout-steps li{display:flex;align-items:center;gap:.45rem}.checkout-steps li:first-child{color:#60462f}.checkout-steps li:before{content:"";width:1.6rem;height:1.6rem;border:1px solid currentColor;border-radius:50%;display:grid;place-items:center}.checkout-steps li.is-current:before{content:"1";background:#60462f;color:#fff;border-color:#60462f}.checkout-layout{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(290px,.8fr);gap:1.4rem;align-items:start}.checkout-form{display:grid;gap:1rem}.checkout-card,.checkout-summary{background:#fff;border:1px solid #eee7df;border-radius:18px;padding:clamp(1rem,3vw,1.65rem);box-shadow:0 8px 28px #35241608}.checkout-card__heading{display:flex;gap:.85rem;align-items:flex-start;margin-bottom:1.35rem}.checkout-card__heading>span{display:grid;place-items:center;width:2rem;height:2rem;flex:0 0 2rem;border-radius:50%;background:#f3ece4;color:#805f3f;font-size:.78rem;font-weight:700}.checkout-card h2,.checkout-summary h2{font-family:"Playfair Display",Georgia,serif;font-weight:500;font-size:1.45rem;margin:0}.checkout-card__heading p{color:#877b70;font-size:.85rem;margin:.35rem 0 0;line-height:1.5}.checkout-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.checkout-field{display:flex;flex-direction:column;gap:.45rem;min-width:0}.checkout-field--wide{grid-column:1/-1}.checkout-field label{font-size:.84rem;font-weight:600}.checkout-field input,.checkout-field select{width:100%;min-height:47px;border:1px solid #ddd3c8;border-radius:9px;padding:.75rem .8rem;background:#fff;color:#29231f;font:inherit;box-sizing:border-box}.checkout-field input:focus,.checkout-field select:focus{outline:2px solid #b49a7b;outline-offset:2px}.checkout-field__error{font-size:.82rem;color:#a33131;margin:0}.checkout-shipping{display:grid;gap:.7rem}.shipping-choice{display:block;border:1px solid #e5ddd3;border-radius:12px;padding:1rem;cursor:pointer}.shipping-choice:has(input:checked){border-color:#866647;background:#fcf8f3}.shipping-choice>span{display:flex;gap:.8rem;align-items:center}.shipping-choice input{accent-color:#6c5038}.shipping-choice strong,.shipping-choice small{display:block}.shipping-choice small{color:#877b70;margin-top:.3rem}.checkout-submit{padding:.5rem .2rem}.checkout-secure-note{display:flex;gap:.55rem;color:#756b61;font-size:.82rem;line-height:1.6}.checkout-secure-note span{font-size:1.25rem;color:#806144}.checkout-pay-button{width:100%;min-height:54px;display:flex;align-items:center;justify-content:center;gap:.7rem;border:0;cursor:pointer}.checkout-pay-button:disabled{opacity:.7;cursor:wait}.checkout-spinner{display:none;width:1rem;height:1rem;border:2px solid #fff8;border-top-color:#fff;border-radius:50%;animation:checkout-spin .7s linear infinite}.checkout-pay-button.is-loading .checkout-spinner{display:inline-block}.checkout-config-note{font-size:.82rem;color:#925a2d;line-height:1.5}.checkout-summary{position:sticky;top:1rem}.checkout-summary h2{display:flex;justify-content:space-between;align-items:center}.checkout-summary h2 span{font:600 .78rem Inter,Arial,sans-serif;background:#f3ece4;border-radius:2rem;padding:.3rem .6rem}.checkout-summary__items{margin:1.2rem 0}.checkout-item{display:grid;grid-template-columns:64px minmax(0,1fr) auto;gap:.75rem;padding:.9rem 0;border-bottom:1px solid #f0eae4;align-items:start}.checkout-item__image{position:relative;width:64px;height:72px;border-radius:9px;background:#f4eee7;overflow:hidden;display:grid;place-items:center}.checkout-item__image img{width:100%;height:100%;object-fit:cover}.checkout-item__image b{position:absolute;right:-.2rem;top:-.2rem;min-width:1.3rem;height:1.3rem;display:grid;place-items:center;background:#5a4433;color:#fff;border-radius:50%;font-size:.68rem}.checkout-item__details{display:grid;gap:.25rem;font-size:.8rem;line-height:1.4}.checkout-item__details>span,.checkout-item__details small{color:#887b70}.checkout-item__price{font-size:.82rem;white-space:nowrap}.checkout-totals{display:grid;gap:.8rem;margin:1rem 0}.checkout-totals div{display:flex;justify-content:space-between;gap:1rem;font-size:.88rem}.checkout-totals dt{color:#766b61}.checkout-totals dd{margin:0;text-align:right}.checkout-totals__total{border-top:1px solid #e8dfd6;padding-top:1rem;font-weight:700;font-size:1rem!important}.checkout-totals__total dt{color:#29231f}.checkout-summary__footnote{font-size:.76rem;color:#887b70;line-height:1.6}.checkout-alert{padding:1rem;border:1px solid #edc7bd;background:#fff5f2;border-radius:12px;color:#873e30;line-height:1.5;margin-bottom:1.25rem}.checkout-empty{text-align:center;padding:3rem 1rem;background:#fff;border:1px solid #eee7df;border-radius:18px}.checkout-empty p{color:#766b61;line-height:1.6}.checkout-empty .button{display:inline-flex;margin-top:1rem}@keyframes checkout-spin{to{transform:rotate(360deg)}}@media(max-width:820px){.checkout-layout{grid-template-columns:1fr}.checkout-summary{position:static;grid-row:1}.checkout-heading{margin-bottom:1.5rem}.checkout-summary__items{max-height:360px;overflow:auto}}@media(max-width:520px){.checkout-shell{padding:1.5rem .75rem 2.5rem}.checkout-steps{font-size:.7rem;gap:.55rem}.checkout-steps li{gap:.3rem}.checkout-steps li:before{width:1.35rem;height:1.35rem}.checkout-fields{grid-template-columns:1fr}.checkout-field--wide{grid-column:auto}.checkout-item{grid-template-columns:54px minmax(0,1fr) auto;gap:.6rem}.checkout-item__image{width:54px;height:64px}.checkout-card,.checkout-summary{border-radius:14px}.checkout-pay-button{min-height:52px}}@media(prefers-reduced-motion:reduce){.checkout-spinner{animation:none}}
.checkout-promo { padding-block: 20px; border-bottom: 1px solid #e9e4dc; }
.checkout-promo__heading { display: flex; gap: 10px; align-items: baseline; }
.checkout-promo__heading h3 { margin: 0 0 6px; font-size: 1rem; }
.checkout-promo__heading p { font-size: .875rem; color: #766b61; }
.checkout-promo__form { display: flex; flex-wrap: wrap; gap: 8px; }
.checkout-promo__form input { flex: 1 1 140px; min-width: 0; width: 100%; min-height: 46px; border: 1px solid #d8d2c8; border-radius: 8px; padding: 10px 12px; font: inherit; font-size: 16px; }
.checkout-promo__form button { min-height: 46px; }
.shipping-choice input[type="radio"] { width: 20px; height: 20px; flex-shrink: 0; accent-color: #98734f; }
.checkout-promo__form :focus-visible, .shipping-choice input:focus-visible { outline: 2px solid #98734f; outline-offset: 3px; }
.checkout-back { display: inline-flex; min-height: 44px; align-items: center; color: #60462f; margin-top: .6rem; }
.checkout-check { display: flex; gap: .65rem; align-items: center; min-height: 44px; line-height: 1.5; font-size: .875rem; margin: .6rem 0 1rem; }
.checkout-check input { flex: 0 0 20px; width: 20px; height: 20px; margin-top: .1rem; accent-color: #60462f; }
.checkout-check a { color: #60462f; text-decoration: underline; }
.checkout-check :focus-visible, .checkout-back:focus-visible, .checkout-summary summary:focus-visible { outline: 2px solid #60462f; outline-offset: 3px; }
.checkout-fields[hidden] { display: none; }
#shipping-status { font-size: .875rem; color: #766b61; line-height: 1.5; }
.checkout-summary #checkout-summary-details > summary { display: none; }
.checkout-promo > summary { display: flex; align-items: center; min-height: 44px; cursor: pointer; font-weight: 600; color: #60462f; }
.checkout-promo > div { padding-top: .6rem; }
@media (max-width: 820px) {
  .checkout-layout .checkout-summary { grid-row: auto; }
  .checkout-summary #checkout-summary-details > summary { display: flex; min-height: 48px; align-items: center; justify-content: space-between; gap: .75rem; cursor: pointer; font-size: .875rem; }
  .checkout-summary #checkout-summary-details > summary span { min-width: 0; }
  .checkout-summary #checkout-summary-details > summary strong { white-space: nowrap; font-size: .82rem; }
  .checkout-summary__body { border-top: 1px solid #eee7df; }
}
.checkout-eyebrow, .checkout-steps, .checkout-item__image b { font-size: .75rem; }
@media (max-width: 520px) { .checkout-steps { font-size: .75rem; } }
/* Le contrôle de retrait doit rester utilisable avec un code long et au tactile. */
.checkout-promo__applied { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; overflow-wrap: anywhere; }
.checkout-promo__applied > span { min-width: 0; }
.checkout-promo__remove { display: inline-flex; align-items: center; min-height: 44px; padding: .5rem .75rem; text-decoration: underline; }
.checkout-totals__discount dt { min-width: 0; overflow-wrap: anywhere; }
#shipping-options { border: 0; padding: 0; margin: 0; min-width: 0; }
#checkout-errors:focus { outline: 2px solid #60462f; outline-offset: 3px; }
#checkout-errors a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; }
#checkout-update-status { font-size: 1rem; line-height: 1.5; overflow-wrap: anywhere; }
#checkout-retry { min-height: 44px; }
[aria-invalid="true"] { border-color: #873e30; }

#checkout-errors, #shipping-options, #id_accept_terms, .checkout-field input, .checkout-field select { scroll-margin-top: calc(var(--header-height) + var(--promo-height) + 1rem); }

/* ===== Jalon 5 : structure et finitions du paiement ===== */
.checkout-heading{margin-bottom:2rem}
.checkout-heading h1{margin:.5rem 0 .6rem}
.checkout-back{margin-top:.2rem;font-size:.88rem;text-decoration:none}
.checkout-back:hover{text-decoration:underline}
.checkout-steps{margin-top:1.25rem}
.checkout-steps li:before{content:none;display:none}
.checkout-steps__n{display:grid;place-items:center;width:1.6rem;height:1.6rem;border:1px solid currentColor;border-radius:50%;font-size:.72rem;font-weight:700}
.checkout-steps li.is-current{color:#60462f;font-weight:600}
.checkout-steps li.is-current .checkout-steps__n{background:#60462f;border-color:#60462f;color:#fff}
.checkout-steps li+li:after{content:none}
.checkout-card h2 small{font:500 .78rem Inter,Arial,sans-serif;color:#998c80;letter-spacing:0}
.checkout-required{color:#a0642f}
.checkout-field input[aria-invalid=true],.checkout-field select[aria-invalid=true]{border-color:#b84a3a;background:#fffafa}
.checkout-field__error{display:flex;gap:.35rem;align-items:flex-start}
.checkout-field__error:before{content:"!";flex:0 0 1rem;height:1rem;margin-top:.1rem;border-radius:50%;background:#a33131;color:#fff;font:700 .65rem/1rem Inter,Arial,sans-serif;text-align:center}
.checkout-field__error[hidden]{display:none}
ul.checkout-field__error:before{content:none}

/* Facture facultative */
.checkout-toggle{display:flex;gap:.8rem;align-items:flex-start;padding:1rem;border:1px solid #e5ddd3;border-radius:12px;cursor:pointer;transition:border-color .2s,background .2s}
.checkout-toggle:has(input:checked){border-color:#866647;background:#fcf8f3}
.checkout-toggle input{flex:0 0 20px;width:20px;height:20px;margin:.1rem 0 0;accent-color:#60462f}
.checkout-toggle__text{display:grid;gap:.2rem;font-size:.9rem}
.checkout-toggle__text small{color:#877b70;font-size:.8rem;line-height:1.45}
.checkout-toggle:focus-within{outline:2px solid #b49a7b;outline-offset:2px}
.checkout-invoice{margin-top:1.1rem;display:grid;gap:.4rem}
.checkout-invoice[hidden]{display:none}
.checkout-check--terms{align-items:flex-start}
.checkout-check--terms input{margin-top:.15rem}
.checkout-check span{min-width:0}

/* Validation et envoi */
.checkout-submit{display:grid;gap:.7rem;padding:.4rem 0 0}
.checkout-submit .checkout-check{margin:0}
.checkout-submit-error{margin:0;padding:.75rem .9rem;border-radius:10px;background:#fff3f0;border:1px solid #f0cfc6;color:#8d3325;font-size:.85rem;line-height:1.5}
.checkout-submit-error[hidden]{display:none}
.checkout-secure-note{align-items:flex-start;margin:0}
.checkout-secure-note svg{flex:0 0 18px;margin-top:.15rem;color:#806144}
.checkout-pay-button{letter-spacing:.06em}

/* Récapitulatif */
.checkout-summary #checkout-summary-details>summary{display:flex;align-items:center;justify-content:space-between;gap:.75rem;list-style:none;cursor:default;padding-bottom:1rem;border-bottom:1px solid #eee7df}
.checkout-summary #checkout-summary-details>summary::-webkit-details-marker{display:none}
.checkout-summary__title{display:grid;gap:.15rem;min-width:0}
.checkout-summary__title>span{font-family:"Playfair Display",Georgia,serif;font-size:1.3rem;font-weight:500;color:#29231f}
.checkout-summary__title small{font-size:.78rem;color:#877b70}
#summary-amount{display:none;font-size:.95rem;white-space:nowrap}
.checkout-summary__chevron{display:none;flex:0 0 18px;color:#60462f;transition:transform .2s}
.checkout-summary__items{margin:.4rem 0 .6rem}
.checkout-promo{padding-block:.4rem 1rem}
.checkout-promo__heading p{margin:0 0 .6rem}
.checkout-retry{display:inline-flex;align-items:center;gap:.45rem;min-height:44px;margin-top:.4rem;padding:0 1rem;border:1px solid #d9cbbb;border-radius:999px;background:#fff;color:#60462f;font:600 .82rem Inter,Arial,sans-serif;cursor:pointer}
.checkout-retry:hover{background:#fcf8f3}
.checkout-retry:focus-visible{outline:2px solid #60462f;outline-offset:3px}
.checkout-retry[hidden]{display:none}
.checkout-totals__total dd{font-size:1.15rem}

@media(max-width:820px){
  .checkout-summary{padding:0;overflow:hidden}
  .checkout-summary #checkout-summary-details>summary{cursor:pointer;min-height:64px;padding:1rem 1.1rem;border-bottom:0;font-size:inherit}
  .checkout-summary #checkout-summary-details[open]>summary{border-bottom:1px solid #eee7df}
  .checkout-summary__title>span{font-size:1.1rem}
  #summary-amount,.checkout-summary__chevron{display:block}
  .checkout-summary details[open] .checkout-summary__chevron{transform:rotate(180deg)}
  .checkout-summary__body{padding:0 1.1rem 1.1rem;border-top:0}
  .checkout-summary__items{max-height:none;overflow:visible}
  .checkout-retry{margin:0 1.1rem 1rem}
}
@media(max-width:520px){
  .checkout-heading{margin-bottom:1.25rem}
  .checkout-heading>p:not(.checkout-eyebrow){display:none}
  .checkout-steps{gap:.9rem}
  .checkout-steps li span:last-child{font-size:.72rem}
  .checkout-card__heading{margin-bottom:1rem}
}
@media(prefers-reduced-motion:reduce){.checkout-summary__chevron,.checkout-toggle{transition:none}}
.checkout-secure-note span{font-size:inherit;color:inherit}

/* Récapitulatif : articles offerts présentés visuellement */
.checkout-item--bundle{grid-template-rows:auto auto}
.checkout-item__details strong{font-size:.84rem;line-height:1.35}
.checkout-gifts{grid-column:1/-1;margin-top:.15rem;padding:.7rem .75rem .75rem;border-radius:12px;background:linear-gradient(135deg,#fbf6ef 0%,#f6efe5 100%);border:1px solid #efe4d6}
.checkout-gifts__head{display:flex;align-items:center;gap:.5rem;margin:0 0 .55rem;font-size:.76rem;font-weight:600;color:#5a4433}
.checkout-gifts__head>span:nth-child(2){flex:1;min-width:0}
.checkout-gifts__head em{flex:none;padding:.18rem .55rem;border-radius:999px;background:#e5f1e8;color:#2e6b46;font-style:normal;font-size:.7rem;font-weight:700;white-space:nowrap}
.checkout-gifts__icon{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#5a4433;color:#fff;flex:none}
.checkout-gifts__icon svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linejoin:round;stroke-linecap:round}
.checkout-gifts__list{display:grid;gap:.4rem;margin:0;padding:0;list-style:none}
.checkout-gift{display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;gap:.6rem;padding:.4rem .5rem .4rem .4rem;border-radius:10px;background:#fff;box-shadow:0 1px 0 #eadfd2}
.checkout-gift__media{position:relative;width:44px;height:44px;border-radius:8px;background:#f1e9df;overflow:visible}
.checkout-gift__media img{width:100%;height:100%;object-fit:cover;border-radius:8px}
.checkout-gift__media b{position:absolute;right:-.3rem;top:-.3rem;min-width:1.1rem;height:1.1rem;display:grid;place-items:center;padding:0 .2rem;border-radius:999px;background:#5a4433;color:#fff;font-size:.62rem}
.checkout-gift__copy{display:grid;min-width:0;line-height:1.3}
.checkout-gift__copy strong{font-size:.78rem;color:#29231f;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.checkout-gift__copy small{font-size:.7rem;color:#887b70}
.checkout-gift__price{display:grid;justify-items:end;gap:.1rem;font-size:.7rem;white-space:nowrap}
.checkout-gift__price del{color:#a69b90}
.checkout-gift__price span{padding:.12rem .45rem;border-radius:999px;background:#2e6b46;color:#fff;font-weight:700;font-size:.62rem;letter-spacing:.05em;text-transform:uppercase}
@media(max-width:520px){.checkout-gifts{padding:.6rem}.checkout-gift{grid-template-columns:40px minmax(0,1fr) auto;gap:.5rem}.checkout-gift__media{width:40px;height:40px}}
