/* Offre de lancement et panier : le bandeau d'annonce, la pastille des en-têtes,
   les prix offerts et la page panier.html. Chargée après css/vitrine.css ou
   css/site.css, dont elle reprend les couleurs. */

/* --- Bandeau d'annonce ----------------------------------------------------- */

.bandeau-offre {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 20px;
    padding: 10px 20px;
    background: var(--sauge);
    color: #FFFFFF;
    font-size: 14.5px;
    text-align: center;
}

.bandeau-offre p { margin: 0; }
.bandeau-offre b { margin-right: 6px; padding: 2px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.18); }
.bandeau-offre a { display: inline-flex; align-items: center; min-height: 34px; padding: 0 16px; border-radius: 999px; background: #FFFFFF; color: var(--charbon); font-weight: 700; text-decoration: none; }
.bandeau-offre a:hover { background: var(--charbon); color: #FFFFFF; }

/* --- Icônes des en-têtes : panier et compte -------------------------------- */

.icones-entete { display: flex; flex: none; align-items: center; gap: 8px; }
.icone-entete { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid #D3C3A5; border-radius: 50%; color: var(--charbon); }
.icone-entete:hover,
.icone-entete[aria-current="page"] { border-color: var(--charbon); background: var(--charbon); color: #FFFFFF; }
.icone-entete svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Le nombre d'articles, posé sur le coin de l'icône du panier. */
.pastille-panier {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--terre);
    box-shadow: 0 0 0 2px var(--sable);
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
}

/* --- Prix ------------------------------------------------------------------ */

.prix-barre { margin-right: 8px; opacity: .65; text-decoration: line-through; }
.prix-offert { font-weight: 700; }

.bouton[aria-disabled="true"] { opacity: .55; cursor: default; transform: none; }

/* --- Page panier ----------------------------------------------------------- */

.panier-page { width: 100%; max-width: 860px; margin: 0 auto; padding: 8px 24px 56px; }
.panier-page h1 { margin: 0 0 6px; font-size: 38px; }
.panier-page h1:focus { outline: none; }      /* titre mis au point à chaque étape, pour les lecteurs d'écran */
.panier-page h2 { margin: 36px 0 14px; font-size: 24px; }
.panier-page .intro { margin: 0 0 22px; color: var(--doux); }

.etapes-commande { display: flex; gap: 8px; margin: 0 0 26px; padding: 0; list-style: none; counter-reset: etape; }
.etapes-commande li { flex: 1; padding-top: 10px; border-top: 4px solid var(--lin); font-size: 13px; font-weight: 600; color: var(--doux); counter-increment: etape; }
.etapes-commande li::before { content: counter(etape) ". "; }
.etapes-commande li.faite { border-top-color: var(--sauge); }
.etapes-commande li[aria-current="step"] { border-top-color: var(--terre); color: var(--charbon); }

.lignes { margin: 0; padding: 0; list-style: none; }
.ligne {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 6px 22px;
    padding: 18px 22px;
    border-radius: 20px;
    background: var(--papier);
}
.ligne + .ligne { margin-top: 10px; }
.ligne h3 { margin: 0; font-size: 21px; }
.ligne .detail { margin: 2px 0 0; font-size: 13.5px; color: var(--doux); }
.ligne .prix-ligne { font-size: 17px; text-align: right; white-space: nowrap; }
.ligne .actions-ligne { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.ligne .motif { grid-column: 1 / -1; margin: 0; font-size: 13.5px; font-weight: 600; color: var(--alerte); }

.quantite { display: inline-flex; align-items: center; border: 1px solid var(--lin); border-radius: 999px; background: #FFFFFF; }
.quantite button { width: 38px; height: 38px; border: 0; border-radius: 50%; background: transparent; color: var(--charbon); font: 600 18px var(--texte); cursor: pointer; }
.quantite button:disabled { opacity: .35; cursor: default; }
.quantite output { min-width: 28px; font-weight: 700; text-align: center; }

.renonciation { display: flex; align-items: flex-start; gap: 10px; margin: 18px 0 4px; font-size: 14px; line-height: 1.5; cursor: pointer; }
.renonciation input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--terre); }

.lien-simple { padding: 8px 0; border: 0; background: none; color: var(--terre); font: 600 14px var(--texte); text-decoration: underline; cursor: pointer; }

.total { margin-top: 16px; padding: 18px 22px; border: 2px dashed var(--lin); border-radius: 20px; }
.total div { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; }
.total div + div { margin-top: 6px; }
.total .a-payer b { font: 400 32px var(--titre); color: var(--terre); white-space: nowrap; }
.total .note { margin: 10px 0 0; font-size: 13.5px; color: var(--doux); }

.actions-commande { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px 18px; margin-top: 18px; }

.vide-panier { padding: 26px 22px; border-radius: 20px; background: var(--papier); color: var(--doux); }

.autres-offres { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.autre-offre { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px; border: 1px solid var(--lin); border-radius: 20px; }
.autre-offre h3 { margin: 0; font-size: 20px; }
.autre-offre p { margin: 0; font-size: 14px; color: var(--doux); }
.autre-offre .bouton { margin-top: auto; }

.carte-etape { padding: 28px; border-radius: 24px; background: var(--papier); }
.carte-etape p { margin: 0 0 14px; }
.carte-etape .actions-commande { justify-content: flex-start; margin-top: 8px; }

.fin { text-align: center; }
.fin .gain { margin: 6px 0; font: 400 54px/1.1 var(--titre); color: var(--sauge); }
.fin .actions-commande { justify-content: center; }

@media (max-width: 620px) {
    .panier-page { padding: 4px 16px 40px; }
    .panier-page h1 { font-size: 30px; }
    .etapes-commande li { font-size: 11.5px; }
    .ligne { grid-template-columns: minmax(0, 1fr) auto; padding: 16px; }
    .ligne .actions-ligne { grid-column: 1 / -1; justify-content: space-between; }
    .carte-etape { padding: 22px 18px; }
    .actions-commande .bouton { width: 100%; }
}
