/* ════════════════════════════════
   CHECKOUT - Identité Aperitiu
   Tunnel d'achat : Livraison, Facturation, Paiement, Processing, Confirmation
   Reprend le hero orange, les cartes crème, boutons rouge pill, Erica One H1.
════════════════════════════════ */

:root {
    --co-cream:     #f3e9d7;
    --co-cream-2:   #fbf4e9;
    --co-cream-3:   #f1ead8;
    --co-orange:    #ffa200;
    --co-orange-2:  #f3a63c;
    --co-red:       #e85a28;
    --co-red-dark:  #b22222;
    --co-green:     #4caf6f;
    --co-green-dark:#2e7e4a;
    --co-dark:      #242323;
    --co-muted:     #7a6b58;
    --co-border:    rgba(36, 35, 35, 0.12);
    --co-border-dashed: rgba(36, 35, 35, 0.35);

    --co-font-display: 'Darumadrop One', 'Caveat', 'Poppins', system-ui, sans-serif;
    --co-font-hero:    'Erica One', 'Anton', Impact, sans-serif;
    --co-font-body:    'DM Sans', 'Poppins', system-ui, sans-serif;
}

body.checkout-page {
    background: var(--co-cream);
}
body.checkout-page > .blob { display: none !important; }
body.checkout-page main { padding-top: 0; }

/* ════════════════════════════════
   HERO ORANGE
════════════════════════════════ */
.checkout-hero {
    position: relative;
    min-height: 440px;
    background-color: var(--co-red);
    background-image: url('/images/home/union3.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    isolation: isolate;
    overflow: visible;
}

.checkout-hero-mascot {
    position: absolute;
    top: 124px;
    left: max(26px, calc(50% - 720px + 14px));
    width: 117px;
    height: 103px;
    z-index: 5;
    pointer-events: none;
    transform: scaleY(-1) rotate(174.51deg);
}
.checkout-hero-mascot img { width: 100%; height: 100%; object-fit: contain; }

.checkout-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1440px;
    margin: 0 auto;
    padding: 190px 100px 80px;
    box-sizing: border-box;
    color: #fff;
}

.checkout-hero-title {
    font-family: var(--co-font-hero);
    font-size: clamp(56px, 6vw, 96px);
    font-weight: 400;
    color: #fff;
    line-height: 1;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    max-width: 900px;
    margin: 0;
}
.checkout-hero-title span { display: block; }
.checkout-hero-title .hp-hero-title-line { display: block; margin-bottom: 4px; }
.checkout-hero-title .hp-hero-title-stamp {
    display: inline-block;
    position: relative;
    padding: 14px 20px 18px;
    line-height: 1;
    /* Filet de sécurité : le mot du tampon vient du template (longueur
       variable selon la page). Sans ça un mot trop long déborde du hero
       et rend TOUT le document scrollable horizontalement. */
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
    background-image: url('/images/home/rect3464584.svg');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
}

.checkout-hero-desc {
    margin: 22px 0 0;
    font-family: var(--co-font-body);
    font-size: clamp(16px, 1.4vw, 19px);
    line-height: 1.5;
    color: #fff;
    max-width: 600px;
    font-weight: 400;
}

/* ════════════════════════════════
   SECTION CHECKOUT (contenu sous le hero)
════════════════════════════════ */
.checkout {
    max-width: 920px;
    margin: 0 auto;
    padding: 60px 32px 80px;
    position: relative;
    z-index: 1;
    font-family: var(--co-font-body);
}
/* La page "Mode de récupération" affiche 2 cartes (Livraison + C&C) côte à
   côte, donc on élargit le container et les steps pour qu'ils respirent. */
.checkout-method-page .checkout { max-width: 1340px; }

/* ════════════════════════════════
   STEPPER (4 étapes)
════════════════════════════════ */
/* Fil insécable : une seule ligne, les traits se resserrent quand la place
   manque (6 étapes pour un invité) au lieu de renvoyer la dernière étape seule
   sur une seconde ligne. */
.checkout-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 44px;
    flex-wrap: nowrap;
    background: var(--co-cream-2);
    border: 1.5px solid var(--co-border);
    border-radius: 20px;
    padding: 22px 26px;
    box-shadow: 0 6px 18px rgba(36, 35, 35, 0.05);
    position: relative;
    overflow: hidden;
}
.checkout-steps::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--co-red) 0%, var(--co-orange) 50%, var(--co-red) 100%);
}

.checkout-step {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 8px;
    text-decoration: none;
    color: var(--co-muted);
    font-family: var(--co-font-body);
    font-size: 0.88rem;
    font-weight: 600;
    transition: color .18s ease;
}

.checkout-step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--co-border);
    color: var(--co-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.88rem;
    transition: all .25s ease;
    flex-shrink: 0;
}

.checkout-step-num svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Étape active : cercle rouge plein */
.checkout-step--active .checkout-step-num {
    background: var(--co-red);
    border-color: var(--co-red);
    color: #fff;
    box-shadow: 0 6px 14px rgba(232, 90, 40, 0.30);
}
.checkout-step--active .checkout-step-label { color: var(--co-dark); }

/* Étape complétée : cercle vert plein */
.checkout-step--done .checkout-step-num {
    background: var(--co-green);
    border-color: var(--co-green);
    color: #fff;
    box-shadow: 0 4px 10px rgba(76, 175, 111, 0.25);
}
.checkout-step--done .checkout-step-label { color: var(--co-dark); }

.checkout-step-label {
    white-space: nowrap;
    transition: color .18s ease;
}

.checkout-step--clickable { cursor: pointer; }
.checkout-step--clickable:hover .checkout-step-num {
    transform: scale(1.06);
}
.checkout-step--clickable:hover .checkout-step-label {
    color: var(--co-red);
}

.checkout-step-line {
    flex: 1 1 50px;
    min-width: 10px;
    max-width: 50px;
    height: 2.5px;
    background: var(--co-border);
    margin: 0 8px;
    border-radius: 2px;
    transition: background .3s ease;
}
.checkout-step-line--active {
    background: linear-gradient(90deg, var(--co-green) 0%, var(--co-red) 100%);
}

/* ════════════════════════════════
   LAYOUT + TITRES
════════════════════════════════ */
.checkout-layout {
    display: block;
}
.checkout-main { min-width: 0; }

.checkout-title {
    font-family: var(--co-font-display);
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: 0.005em;
    color: var(--co-dark);
    margin: 0 0 8px;
}

.checkout-subtitle {
    font-family: var(--co-font-body);
    font-size: 0.95rem;
    color: var(--co-muted);
    line-height: 1.5;
    margin: 0 0 24px;
}

/* Étape coordonnées : lien de connexion pour un client qui a déjà un compte. */
.checkout-login-hint {
    font-family: var(--co-font-body);
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--co-dark);
    margin: -12px 0 24px;
}
.checkout-login-hint a {
    color: var(--co-red-dark);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Erreur du formulaire entier (page expirée...) en tête des étapes adresse. */
.checkout-form-alert {
    margin: 0 0 18px;
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(178, 34, 34, .08);
    border: 1px solid rgba(178, 34, 34, .3);
    color: var(--co-red-dark);
    font-family: var(--co-font-body);
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.5;
}
.checkout-form-alert p { margin: 0; }

/* Facturation : adresse enregistrée incomplète pour une livraison. */
.checkout-billing-incomplete {
    margin: 0;
    font-family: var(--co-font-body);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--co-red-dark);
}

/* ════════════════════════════════
   CARTES
════════════════════════════════ */
.checkout-card {
    background: var(--co-cream-2);
    border: 1.5px solid var(--co-border);
    border-radius: 22px;
    padding: 28px 28px 24px;
    box-shadow: 0 10px 26px rgba(36, 35, 35, 0.06);
    margin-bottom: 18px;
    position: relative;
    overflow: hidden;
}

/* ════════════════════════════════
   ADRESSES (liste cliquable)
════════════════════════════════ */
.checkout-addresses {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.checkout-addresses > form { margin: 0; }

.checkout-address-card {
    display: flex;
    flex-direction: column;
    text-align: left;
    width: 100%;
    background: var(--co-cream-2);
    border: 1.5px solid var(--co-border);
    border-radius: 20px;
    padding: 22px 22px 18px;
    cursor: pointer;
    font-family: var(--co-font-body);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    position: relative;
    box-shadow: 0 4px 14px rgba(36, 35, 35, 0.04);
}

.checkout-address-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(36, 35, 35, 0.12);
    border-color: rgba(232, 90, 40, 0.45);
}

.checkout-address-card--default {
    border-color: rgba(232, 90, 40, 0.55);
    background: rgba(255, 162, 0, 0.08);
}

.checkout-address-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--co-red);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    box-shadow: 0 4px 10px rgba(232, 90, 40, 0.25);
}

.checkout-address-label {
    font-family: var(--co-font-display);
    font-size: 0.95rem;
    color: var(--co-red);
    margin-bottom: 6px;
    line-height: 1;
}

.checkout-address-name {
    font-family: var(--co-font-display);
    font-size: 1.3rem;
    color: var(--co-dark);
    line-height: 1.1;
    margin-bottom: 8px;
    padding-right: 60px;
}

.checkout-address-line {
    font-size: 0.85rem;
    color: var(--co-dark);
    line-height: 1.45;
}

.checkout-address-phone {
    font-size: 0.82rem;
    color: var(--co-muted);
    margin-top: 6px;
}

.checkout-address-use {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed var(--co-border-dashed);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--co-red);
    transition: color .18s ease, gap .18s ease;
}
.checkout-address-use svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.checkout-address-card:hover .checkout-address-use {
    color: var(--co-red-dark);
    gap: 10px;
}

/* Résumé d'adresse (cartes en lecture seule) */
.checkout-address-summary {
    font-family: var(--co-font-body);
    color: var(--co-dark);
    line-height: 1.55;
    font-size: 0.9rem;
}
.checkout-address-summary .checkout-address-name {
    font-family: var(--co-font-display);
    margin-bottom: 6px;
    padding-right: 0;
}

/* ════════════════════════════════
   DIVIDERS
════════════════════════════════ */
.checkout-divider {
    text-align: center;
    position: relative;
    margin: 28px 0 18px;
    font-size: 0.78rem;
    color: var(--co-muted);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.checkout-divider::before,
.checkout-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: calc(50% - 50px);
    height: 1px;
    background: var(--co-border);
}
.checkout-divider::before { left: 0; }
.checkout-divider::after { right: 0; }

.checkout-divider-simple {
    height: 1px;
    background: var(--co-border);
    margin: 20px 0;
}

/* ════════════════════════════════
   FORMULAIRE D'ADRESSE
════════════════════════════════ */
.checkout-card .address-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.checkout-card .address-form-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.checkout-card .address-form-field label {
    font-family: var(--co-font-body);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--co-dark);
    letter-spacing: 0.01em;
}

.checkout-card .address-form-field label .required {
    color: var(--co-red);
    font-weight: 700;
}

.checkout-card .profile-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.checkout-card .profile-input-wrap > svg {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    stroke: var(--co-muted);
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
    transition: stroke .15s ease;
}
.checkout-card .profile-input-wrap:focus-within > svg {
    stroke: var(--co-red);
}

.checkout-card .address-input,
.checkout-card .address-select,
.checkout-card .address-textarea {
    width: 100%;
    padding: 13px 16px 13px 44px;
    background: #fff;
    border: 1.5px solid var(--co-border);
    border-radius: 12px;
    font-family: var(--co-font-body);
    font-size: 0.92rem;
    color: var(--co-dark);
    transition: border-color .18s ease, box-shadow .18s ease;
    box-sizing: border-box;
}

.checkout-card .address-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1l5 5 5-5' stroke='%237a6b58' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 38px;
    padding-left: 16px;
    cursor: pointer;
}
/* Quand le select est dans .profile-input-wrap (= avec une icône à gauche),
   on rétablit le padding-left de 44px pour ne pas que le placeholder
   chevauche l'icône (cf. champ Ville sur le form livraison). */
.checkout-card .profile-input-wrap > .address-select {
    padding-left: 44px;
}

.checkout-card .address-textarea {
    padding: 13px 16px;
    min-height: 90px;
    resize: vertical;
    line-height: 1.5;
}

.checkout-card .address-input::placeholder,
.checkout-card .address-textarea::placeholder {
    color: rgba(122, 107, 88, 0.55);
}

.checkout-card .address-input:hover,
.checkout-card .address-select:hover,
.checkout-card .address-textarea:hover {
    border-color: rgba(232, 90, 40, 0.4);
}

.checkout-card .address-input:focus,
.checkout-card .address-select:focus,
.checkout-card .address-textarea:focus {
    outline: none;
    border-color: var(--co-red);
    box-shadow: 0 0 0 4px rgba(232, 90, 40, 0.15);
}

.checkout-card .address-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.checkout-card .address-form-row--identity {
    grid-template-columns: minmax(120px, 0.6fr) 1fr 1fr;
}

/* Légal (radio individuel/société) */
.checkout-card .address-legal-choices > div {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.checkout-card .address-legal-choices > div > div {
    flex: 1;
    min-width: 140px;
}
.checkout-card .address-legal-choices input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.checkout-card .address-legal-choices label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 18px;
    background: #fff;
    border: 1.5px solid var(--co-border);
    border-radius: 12px;
    font-family: var(--co-font-body);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--co-dark);
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}
.checkout-card .address-legal-choices label:hover {
    border-color: rgba(232, 90, 40, 0.45);
}
.checkout-card .address-legal-choices input[type="radio"]:checked + label {
    background: var(--co-red);
    border-color: var(--co-red);
    color: #fff;
    box-shadow: 0 6px 14px rgba(232, 90, 40, 0.30);
}

/* Footer du formulaire (boutons) */
.checkout-card .address-form-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
    flex-wrap: wrap;
}

/* ════════════════════════════════
   BOUTONS (settings-btn, pay-btn)
════════════════════════════════ */
.checkout-card .settings-btn,
.checkout .settings-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 26px;
    background: var(--co-orange-2);
    color: #fff;
    border: 1.5px solid var(--co-orange-2);
    border-radius: 999px;
    font-family: var(--co-font-body);
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: -0.005em;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(232, 90, 40, 0.26);
    transition: transform .15s ease, background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
    position: relative;
    line-height: 1.2;
}
.checkout-card .settings-btn:hover,
.checkout .settings-btn:hover {
    background: var(--co-orange);
    border-color: var(--co-orange);
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 0 rgba(0, 0, 0, .15);
}
.checkout-card .settings-btn svg,
.checkout .settings-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.checkout-card .settings-btn--outline,
.checkout .settings-btn--outline {
    background: transparent;
    color: var(--co-dark);
    border-color: var(--co-orange-2);
    box-shadow: none;
}
.checkout-card .settings-btn--outline:hover,
.checkout .settings-btn--outline:hover {
    background: var(--co-orange-2);
    border-color: var(--co-orange-2);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: none;
}

/* ════════════════════════════════
   RÉSUMÉ DE COMMANDE (payment + confirmation)
════════════════════════════════ */
.checkout-order-summary h3 {
    font-family: var(--co-font-display);
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--co-dark);
    margin: 0 0 14px;
    line-height: 1.1;
    letter-spacing: 0.005em;
}

.checkout-order-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 8px 0;
    font-size: 0.88rem;
    color: var(--co-dark);
    line-height: 1.4;
}
.checkout-order-line > span:last-child {
    font-weight: 600;
    color: var(--co-dark);
    flex-shrink: 0;
}

.checkout-order-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1.5px dashed var(--co-border-dashed);
    font-family: var(--co-font-display);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--co-dark);
    line-height: 1.1;
    letter-spacing: 0.005em;
}
.checkout-order-total span:last-child {
    color: var(--co-red);
}

/* ════════════════════════════════
   PAIEMENT
════════════════════════════════ */
.checkout-payment-error {
    margin-top: 14px;
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(232, 90, 40, 0.10);
    border: 1.5px solid rgba(232, 90, 40, 0.30);
    color: var(--co-red-dark);
    font-size: 0.86rem;
    line-height: 1.5;
}

.checkout-pay-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.checkout-pay-btn {
    min-width: 220px;
}

.pay-btn-content,
.pay-btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.pay-btn-content[hidden],
.pay-btn-loading[hidden] { display: none; }

.pay-btn-spinner { animation: payBtnSpin .9s linear infinite; }
@keyframes payBtnSpin { to { transform: rotate(360deg); } }

.checkout-pay-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ════════════════════════════════
   CONFIRMATION (success icon)
════════════════════════════════ */
.checkout-success-icon {
    width: 88px;
    height: 88px;
    margin: 0 auto 22px;
    background: var(--co-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 14px 28px rgba(76, 175, 111, 0.32);
    animation: successPop .55s cubic-bezier(.22, .68, 0, 1.6) both;
}
@keyframes successPop {
    from { opacity: 0; transform: scale(.6); }
    to   { opacity: 1; transform: scale(1); }
}
.checkout-success-icon svg {
    width: 40px;
    height: 40px;
    stroke: #fff;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Variante "paiement refusé / annulé" - rond rouge avec croix */
.checkout-error-icon {
    width: 88px;
    height: 88px;
    margin: 0 auto 22px;
    background: var(--co-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 14px 28px rgba(232, 90, 40, 0.32);
    animation: successPop .55s cubic-bezier(.22, .68, 0, 1.6) both;
}
.checkout-error-icon svg {
    width: 40px;
    height: 40px;
    stroke: #fff;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.checkout-add-new-wrap {
    text-align: center;
    margin: 24px 0 16px;
}

/* ════════════════════════════════
   PROCESSING (loading state)
════════════════════════════════ */
.checkout-processing-card {
    text-align: center;
    padding: 56px 36px 40px;
    background: var(--co-cream-2);
}

.checkout-processing-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 22px;
    background: var(--co-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 28px rgba(255, 162, 0, 0.35);
}

.checkout-processing-icon svg {
    width: 36px;
    height: 36px;
    stroke: #fff;
    fill: none;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    animation: processingSpin 1.4s linear infinite;
}
@keyframes processingSpin { to { transform: rotate(360deg); } }

.checkout-processing-title {
    font-family: var(--co-font-display);
    font-size: clamp(24px, 2.4vw, 32px);
    font-weight: 400;
    color: var(--co-dark);
    margin: 0 0 12px;
    line-height: 1.15;
    letter-spacing: 0.005em;
}

.checkout-processing-desc {
    font-size: 0.95rem;
    color: var(--co-muted);
    line-height: 1.6;
    margin: 0 auto 24px;
    max-width: 480px;
}

.checkout-processing-info {
    margin: 0 auto 28px;
    padding: 16px 22px;
    background: rgba(255, 162, 0, 0.10);
    border: 1.5px dashed rgba(255, 162, 0, 0.45);
    border-radius: 14px;
    max-width: 420px;
    text-align: center;
}
.checkout-processing-info p { margin: 0; font-size: 0.88rem; color: var(--co-dark); }
.checkout-processing-info strong { font-weight: 700; }
.checkout-processing-info span { color: var(--co-muted); font-size: 0.82rem; display: block; margin-top: 4px; }

.checkout-processing-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ════════════════════════════════
   RESPONSIVE
════════════════════════════════ */
@media (max-width: 1100px) {
    .checkout-hero-inner { padding: 170px 56px 70px; }
    .checkout-hero-mascot { left: 26px; }
}

@media (max-width: 900px) {
    .checkout-hero { min-height: 380px; }
    .checkout-hero-inner { padding: 150px 40px 60px; }
    .checkout { padding: 50px 20px 70px; }

    .checkout-steps { padding: 18px; gap: 4px; }
    .checkout-step-label { display: none; }
    .checkout-step-line { flex-basis: 32px; max-width: 32px; margin: 0 4px; }

    .checkout-card .address-form-row,
    .checkout-card .address-form-row--identity {
        grid-template-columns: 1fr;
    }

    .checkout-addresses { grid-template-columns: 1fr; }

    .checkout-card .address-form-footer,
    .checkout-pay-footer,
    .checkout-processing-actions {
        flex-direction: column-reverse;
    }
    .checkout-card .address-form-footer .settings-btn,
    .checkout-pay-footer .settings-btn,
    .checkout-processing-actions .settings-btn { width: 100%; }
}

@media (max-width: 600px) {
    .checkout-hero { min-height: 320px; }
    .checkout-hero-mascot { display: none; }
    .checkout-hero-inner { padding: 130px 20px 50px; }
    /* « RÉCUPÉRATION » mesure 8,1em en Erica One : il lui faut
       8,1 x font-size + 28px (padding tampon) <= 100vw - 40px (padding inner).
       D'où 9vw max, et un plancher à 29px pour tenir sur un écran 320px.
       L'ancien plancher de 42px débordait de 68px dès 320-375px. */
    .checkout-hero-title { font-size: clamp(29px, 9vw, 60px); }
    .checkout-hero-title .hp-hero-title-stamp { padding: 10px 14px 13px; }
    .checkout-hero-desc { font-size: 15px; margin-top: 16px; }

    .checkout { padding: 36px 16px 50px; }
    .checkout-card { padding: 22px 20px 20px; border-radius: 18px; }
    .checkout-processing-card { padding: 44px 24px 32px; }

    /* font-size 16px : sous ce seuil iOS zoome auto au focus de
       l'input/select, ce qui casse la mise en page du tunnel d'achat. */
    .checkout-card .address-input,
    .checkout-card .address-select,
    .checkout-card .address-textarea {
        font-size: 16px;
        padding: 14px 16px 14px 44px;
    }
    .checkout-card .address-select { padding-left: 16px; padding-right: 40px; }
    .checkout-card .profile-input-wrap > .address-select { padding-left: 44px; }
}

/* ════════════════════════════════
   Récap mode choisi (affiché entre stepper et contenu sur shipping/billing/payment).
   Classes `.cm-*` partagées avec la page /commande/mode (checkout-method.css).
════════════════════════════════ */
.cm-summary {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    border-radius: 14px;
    background: var(--co-cream-2);
    border: 1px solid var(--co-border);
    margin: 0 0 28px;
    font-family: var(--co-font-body);
}
.cm-summary-icon {
    width: 38px; height: 38px;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(232, 90, 40, .12);
    color: var(--co-red);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.cm-summary-icon svg {
    width: 20px; height: 20px;
    fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.cm-summary-text { flex: 1; min-width: 0; }
.cm-summary-method {
    margin: 0;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--co-muted);
}
.cm-summary-detail {
    margin: 2px 0 0;
    font-size: 14px;
    color: var(--co-dark);
    line-height: 1.35;
}
.cm-summary-detail strong { font-weight: 600; text-transform: capitalize; }
.cm-summary-sep { color: var(--co-muted); margin: 0 4px; }
.cm-summary-edit {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1.5px solid rgba(36, 35, 35, .15);
    background: #fff;
    color: var(--co-dark);
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color .15s, color .15s, background .15s;
}
.cm-summary-edit svg {
    width: 12px; height: 12px;
    fill: none; stroke: currentColor; stroke-width: 2;
}
.cm-summary-edit:hover { border-color: var(--co-red); color: var(--co-red); background: rgba(232,90,40,.06); }

@media (max-width: 600px) {
    .cm-summary { flex-wrap: wrap; gap: 10px; }
    .cm-summary-edit { width: 100%; justify-content: center; }
}
