/* =============================================================
   TUNNEL — panier, commande, confirmation.
   Chargée sur /panier/, /commande/ et la page de confirmation.

   Deux tâches : habiller les gabarits du thème, et neutraliser ce que
   woocommerce-general.css impose encore (formulaires, notices, boutons).
   Aucune valeur en dur : uniquement des tokens.
   ============================================================= */

/* =============================================================
   COQUILLE COMMUNE
   ============================================================= */
/*
 * Le tunnel est injecté dans le contenu d'une page (page.php). Si ce
 * contenu passe un jour par `.prose` — une feuille ÉDITORIALE : puces
 * losange, marges de paragraphe, images détourées — rien de tout cela n'a
 * de sens sur un panier. On s'en prémunit à la racine, une fois.
 */
.tunnel :is(ul, ol) > li::before { content: none; }
.tunnel :is(ul, ol) > li { padding-left: 0; }
.tunnel img { margin: 0; }

.tunnel__lead {
  max-width: 62ch;
  margin: 0 0 var(--s-7);
  color: var(--text-muted);
  font-size: var(--t-lg);
}

/* =============================================================
   PANIER — liste de lignes
   Un tableau à six colonnes n'a rien à dire à 360 px : chaque ligne
   est une grille qui se réorganise, jamais un tableau qui déborde.
   ============================================================= */
.cartlist {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border-soft);
}

.cartline {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) var(--tap);
  grid-template-areas:
    "media body rm"
    "media meta meta";
  column-gap: var(--s-4);
  row-gap: var(--s-3);
  align-items: start;
  margin: 0;
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--border-soft);
  transition: opacity var(--dur-2) var(--ease);
}
/* app.js pose `is-busy` le temps de l'aller-retour AJAX. */
.cartline.is-busy { opacity: .5; }

.cartline__media {
  grid-area: media;
  border: 1px solid var(--border-soft);
  border-radius: var(--r-sm);
  background: var(--bg-alt);
  overflow: hidden;
  aspect-ratio: 1 / 1;
}
.cartline__media a { display: block; height: 100%; }
.cartline__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: var(--s-2);
}

.cartline__body { grid-area: body; min-width: 0; }
.cartline__cat {
  display: block;
  font-size: var(--t-xs);
  font-weight: var(--fw-semi);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--text-muted);
}
.cartline__title {
  font-size: var(--t-base);
  font-weight: var(--fw-bold);
  line-height: 1.3;
  margin: 2px 0 var(--s-2);
}
.cartline__title a { color: var(--text-strong); text-decoration: none; }
.cartline__title a:hover { color: var(--primary); }
.cartline__price { margin: 0; }
.cartline__flag {
  display: flex;
  align-items: flex-start;
  gap: var(--s-2);
  margin: var(--s-2) 0 0;
  font-size: var(--t-xs);
  color: var(--warning);
}

.cartline__meta {
  grid-area: meta;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  flex-wrap: wrap;
}
.cartline__sub {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  color: var(--text-strong);
}

.cartline__rm { grid-area: rm; color: var(--text-faint); }
.cartline__rm:hover { background: var(--error-soft); color: var(--error); }

@media (min-width: 46rem) {
  .cartline {
    grid-template-columns: 88px minmax(0, 1fr) auto var(--tap);
    grid-template-areas: "media body meta rm";
    align-items: center;
    column-gap: var(--s-5);
    padding-block: var(--s-5);
  }
  .cartline__meta { gap: var(--s-6); justify-content: flex-end; }
}

/* ---- Actions du formulaire de panier -----------------------------
   Sans JavaScript, « Mettre à jour » est le seul moyen d'enregistrer
   une quantité. Avec JavaScript, app.js l'a déjà fait : le bouton
   deviendrait un doute (« ai-je validé ? ») et disparaît donc.        */
.cart-form__actions { margin-top: var(--s-5); }
.js .cart-form__update { display: none; }

.cart-gone { padding-block: var(--s-6); }

/* Dernière ligne retirée sans rechargement : le récapitulatif n'a plus
   rien à récapituler, mais le toast « Annuler » vit toujours. */
.tunnel.is-empty .split__aside { display: none; }

/* =============================================================
   RÉCAPITULATIF COLLANT (panier)
   ============================================================= */
.sum { display: block; }
.sum__title {
  font-size: var(--t-lg);
  margin: 0;
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--border-soft);
}

.sum__rows { margin: var(--s-4) 0; display: grid; gap: var(--s-3); }
.sum__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-4);
  font-size: var(--t-sm);
}
.sum__row dt { color: var(--text-muted); }
.sum__row dd {
  margin: 0;
  font-weight: var(--fw-semi);
  color: var(--text-strong);
}
.sum__row--total {
  padding-top: var(--s-3);
  border-top: 1px solid var(--border-soft);
  font-size: var(--t-base);
}
.sum__row--total dd { font-family: var(--font-display); font-weight: var(--fw-black); }
.sum__uncoupon { font-size: var(--t-xs); color: var(--error); }

.sum__note { margin: var(--s-4) 0; }

.sum .btn + .btn { margin-top: var(--s-3); }
.sum__note + .btn { margin-top: 0; }

.sum__help {
  display: flex;
  align-items: flex-start;
  gap: var(--s-2);
  margin: var(--s-4) 0 0;
  padding-top: var(--s-4);
  border-top: 1px solid var(--border-soft);
  font-size: var(--t-xs);
  color: var(--text-muted);
}
.sum__help .ico { color: var(--primary); margin-top: 2px; }

/* ---- Code promo : <details> natif, aucun script ------------------ */
.promo {
  margin-top: var(--s-4);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  background: var(--surface);
}
.promo__head {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  min-height: var(--tap);
  padding: var(--s-3) var(--s-4);
  cursor: pointer;
  font-size: var(--t-sm);
  font-weight: var(--fw-semi);
  color: var(--text-strong);
  list-style: none;
}
.promo__head::-webkit-details-marker { display: none; }
.promo__head .ico { color: var(--primary); flex: none; }
.promo__chev { margin-left: auto; color: var(--text-faint); transition: transform var(--dur-2) var(--ease); }
.promo[open] .promo__chev { transform: rotate(180deg); }
.promo__form { padding: 0 var(--s-4) var(--s-4); }
.promo__row { display: flex; gap: var(--s-2); }
.promo__row .input { flex: 1; min-width: 0; }

/* =============================================================
   PANIER VIDE
   ============================================================= */
.tunnel--empty .empty { padding-bottom: var(--s-6); }
.empty__acts { justify-content: center; }

.empty-cats {
  max-width: 46rem;
  margin-inline: auto;
  padding-top: var(--s-6);
  border-top: 1px solid var(--border-soft);
  text-align: center;
}
.empty-cats__title {
  font-size: var(--t-sm);
  text-transform: uppercase;
  letter-spacing: var(--ls-caps);
  color: var(--text-muted);
  margin-bottom: var(--s-4);
}
.empty-cats__list { list-style: none; margin: 0; padding: 0; justify-content: center; }
.empty-cats__list li { margin: 0; }
.empty-cats__note {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: var(--s-2);
  margin: var(--s-5) 0 0;
  font-size: var(--t-sm);
  color: var(--text-muted);
  text-align: left;
}
.empty-cats__note .ico { margin-top: 3px; color: var(--primary); }

/* =============================================================
   TUNNEL DE COMMANDE — grille

   Sous 62 rem, `display: contents` rend le récapitulatif et le bloc
   d'envoi enfants directs de la grille : on remonte le premier en tête
   d'écran sans dupliquer une ligne de HTML.
   ============================================================= */
.co-grid {
  display: grid;
  gap: clamp(var(--s-5), 3vw, var(--s-8));
  align-items: start;
}
.co-side { display: contents; }
.co-recap { order: -1; }

.co-fields { display: grid; gap: var(--s-5); min-width: 0; }

@media (min-width: 62rem) {
  .co-grid { grid-template-columns: minmax(0, 1fr) 22rem; }
  .co-fields { grid-column: 1; }
  .co-side {
    display: flex;
    flex-direction: column;
    gap: var(--s-5);
    grid-column: 2;
    grid-row: 1;
    position: sticky;
    top: calc(var(--header-h) + var(--s-4));
  }
  .co-recap { order: 0; }
}

/* ---- Blocs de champs --------------------------------------------- */
.co-block {
  display: block;      /* un <fieldset> en flex reste capricieux */
  margin: 0;
  padding: var(--s-5);
  min-width: 0;
}
.co-block__legend {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: 0;
  margin-bottom: var(--s-5);
  font-family: var(--font-display);
  font-size: var(--t-lg);
  font-weight: var(--fw-bold);
  color: var(--text-strong);
  letter-spacing: var(--ls-snug);
}
/* Élément signature : la pastille hexagonale du logo, en numéro d'étape. */
.co-block__step {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 31px;
  background: var(--primary-soft);
  color: var(--primary);
  clip-path: var(--hex-clip);
  font-size: var(--t-sm);
  font-weight: var(--fw-black);
}

.co-rows { display: grid; gap: var(--s-5); }
@media (min-width: 40rem) {
  .co-rows { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .co-rows > .form-row-wide,
  .co-rows > .ste-hidden { grid-column: 1 / -1; }
}

/* ---- Champs rendus par WooCommerce --------------------------------
   woocommerce-general.css est volontairement conservée (le tunnel en
   dépend), et elle habille les champs avec des sélecteurs à trois
   niveaux : `.woocommerce form .form-row .input-text`. Il faut donc
   passer devant, d'où le préfixe `.tunnel .co-form` sur ces règles —
   et sur elles seules.                                                */
.tunnel .co-form .form-row { margin: 0; padding: 0; min-width: 0; }
.tunnel .co-form .form-row label { line-height: 1.4; }
.woocommerce-input-wrapper { display: block; }
.ste-hidden { display: none; }

.tunnel .co-form .form-row .input,
.tunnel .co-form .form-row .select,
.tunnel .co-form .form-row .textarea {
  width: 100%;
  min-height: var(--tap);
  height: auto;
  padding: var(--s-3) var(--s-4);
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text);
  font-size: var(--t-base);
  line-height: 1.4;
}
.tunnel .co-form .form-row .textarea { min-height: 7.5rem; }
.tunnel .co-form .form-row .select {
  padding-right: var(--s-8);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%235E7288' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6.5 9.5 5.5 5.5 5.5-5.5'/%3E%3C/svg%3E");
  background-size: auto;
  background-position: right var(--s-3) center;
}
.tunnel .co-form .form-row :is(.input, .select, .textarea):focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--c-teal-050);
}

/*
 * WooCommerce colore les champs au fil de la frappe (`woocommerce-invalid`
 * et `woocommerce-validated` sont posés dès l'événement `input`). Deux
 * systèmes d'erreur qui se contredisent, c'est un champ qui clignote : le
 * nôtre — `aria-invalid` + `.field__error` — fait seul autorité.
 */
.tunnel .co-form .form-row:is(.woocommerce-invalid, .woocommerce-validated) :is(.input, .select, .textarea) {
  border-color: var(--border);
  box-shadow: none;
}
.tunnel .co-form .form-row.has-error :is(.input, .select, .textarea) {
  border-color: var(--error);
  box-shadow: 0 0 0 3px var(--error-soft);
}
.tunnel .co-form .form-row.woocommerce-invalid label { color: var(--text-strong); }
.tunnel .co-form .form-row.has-error label { color: var(--error); }

/* Message inline injecté par le JS de WooCommerce après un refus serveur. */
.woocommerce-error-message {
  display: block;
  margin-top: var(--s-2);
  font-size: var(--t-sm);
  font-weight: var(--fw-medium);
  color: var(--error);
}

/* =============================================================
   RÉCAPITULATIF DU TUNNEL
   ============================================================= */
.co-recap { display: block; padding: var(--s-5); }
.co-recap__head {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  min-height: var(--tap);
  cursor: pointer;
  list-style: none;
}
.co-recap__head::-webkit-details-marker { display: none; }
.co-recap__title {
  font-family: var(--font-display);
  font-size: var(--t-base);
  font-weight: var(--fw-bold);
  color: var(--text-strong);
}
.co-recap__count {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding-inline: 6px;
  border-radius: var(--r-pill);
  background: var(--primary);
  color: var(--on-primary);
  font-size: var(--t-xs);
  font-weight: var(--fw-bold);
}
.co-recap__chev { margin-left: auto; color: var(--text-faint); transition: transform var(--dur-2) var(--ease); }
.co-recap[open] .co-recap__chev { transform: rotate(180deg); }
.co-recap__body { padding-top: var(--s-4); }
.co-recap__edit { margin-top: var(--s-2); }

.corecap { list-style: none; margin: 0 0 var(--s-4); padding: 0; }
.corecap__row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s-3);
  margin: 0;
  padding-block: var(--s-3);
  border-bottom: 1px solid var(--border-soft);
}
.corecap__row:first-child { padding-top: 0; }
.corecap__media {
  display: block;
  border: 1px solid var(--border-soft);
  border-radius: var(--r-sm);
  background: var(--bg-alt);
  overflow: hidden;
}
.corecap__media img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain; padding: 3px; }
.corecap__body { display: block; min-width: 0; }
.corecap__name {
  display: block;
  font-size: var(--t-sm);
  font-weight: var(--fw-semi);
  color: var(--text-strong);
  line-height: 1.3;
}
.corecap__qty { display: block; font-size: var(--t-xs); color: var(--text-muted); }
.corecap__sub { font-size: var(--t-sm); font-weight: var(--fw-bold); color: var(--text-strong); }

/* =============================================================
   BLOC D'ENVOI
   ============================================================= */
.co-submit { padding: var(--s-5); }

/* Le bloc de paiement de WooCommerce est encadré et grisé par défaut :
   ici il n'y a aucun moyen de paiement, seulement le bouton d'envoi. */
.tunnel .co-form #payment { background: none; border-radius: 0; }
.tunnel .co-form #payment .form-row { padding: 0; margin: 0; }

/*
 * checkout/payment.php imprime dans un <noscript> un avertissement de
 * WooCommerce — « cliquez sur Mise à Jour Totaux […] vous pouvez être
 * facturé plus que le montant indiqué ci-dessus » — plus le bouton qui va
 * avec. Sur ce site il n'y a ni total affiché, ni montant, ni encaissement :
 * la phrase est fausse et contredit l'encart « Aucun paiement à cette
 * étape » juste au-dessus. Le tunnel se poste très bien sans JavaScript
 * (vérifié : demande enregistrée par un POST classique), donc ce bouton
 * n'a rien à rattraper.
 */
.tunnel .co-form #payment noscript { display: none; }

/* Conditions générales : la case et son libellé forment une seule cible. */
.woocommerce-terms-and-conditions-wrapper { margin-bottom: var(--s-4); }
.woocommerce-privacy-policy-text {
  margin-bottom: var(--s-3);
  font-size: var(--t-xs);
  color: var(--text-muted);
  line-height: 1.5;
}
.tunnel .co-form .woocommerce-form__label-for-checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  min-height: var(--tap);
  padding: var(--s-2) 0;
  cursor: pointer;
  font-size: var(--t-sm);
  line-height: 1.5;
}
.tunnel .co-form .form-row .woocommerce-form__input-checkbox {
  display: block;
  flex: none;
  width: 20px;
  height: 20px;
  margin: 3px 0 0;
  accent-color: var(--primary);
  cursor: pointer;
}
.woocommerce-terms-and-conditions-checkbox-text a { font-weight: var(--fw-medium); }
/* WooCommerce masque l'astérisque des champs requis (`visibility:hidden`) :
   sur une case à cocher obligatoire, la rendre est le minimum. */
.tunnel .co-form .form-row abbr.required {
  visibility: visible;
  text-decoration: none;
  color: var(--error);
  font-weight: var(--fw-bold);
}
.woocommerce-terms-and-conditions {
  max-height: 14rem;
  overflow-y: auto;
  margin-bottom: var(--s-4);
  padding: var(--s-4);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-sm);
  background: var(--bg-alt);
  font-size: var(--t-sm);
}

/*
 * #place_order est rendu par WooCommerce et re-rendu en AJAX au
 * chargement : on le style par son identifiant plutôt que par une
 * classe, sinon il perdrait son habillage à la première mise à jour.
 */
#place_order {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  width: 100%;
  min-height: 52px;
  padding: var(--s-4) var(--s-6);
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  background: var(--primary);
  color: var(--on-primary);
  font-family: var(--font-display);
  font-size: var(--t-base);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-snug);
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  box-shadow: var(--e-1);
  transition: background var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease), transform var(--dur-1) var(--ease);
}
#place_order:hover { background: var(--primary-hover); box-shadow: var(--e-2); }
#place_order:active { transform: translateY(1px); }
#place_order.is-sending {
  position: relative;
  color: transparent;
  pointer-events: none;
}
#place_order.is-sending::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 20px;
  height: 20px;
  border: 2px solid var(--on-primary);
  border-top-color: transparent;
  border-radius: 50%;
  animation: ste-spin .7s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  #place_order.is-sending::after { animation-duration: 2s; }
}

.co-submit__note {
  display: flex;
  align-items: flex-start;
  gap: var(--s-2);
  margin: var(--s-4) 0 0;
  font-size: var(--t-xs);
  color: var(--text-muted);
}
.co-submit__note .ico { color: var(--primary); margin-top: 2px; }

/* =============================================================
   BANDEAU DE CONFIANCE (bas du tunnel)
   ============================================================= */
.cotrust {
  display: grid;
  gap: var(--s-4);
  list-style: none;
  margin: var(--s-8) 0 0;
  padding: var(--s-5) 0 0;
  border-top: 1px solid var(--border-soft);
}
@media (min-width: 46rem) {
  .cotrust { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-6); }
}
.cotrust__item {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  margin: 0;
  font-size: var(--t-sm);
  color: var(--text-muted);
  line-height: 1.5;
}
.cotrust__item .ico { flex: none; color: var(--primary); margin-top: 2px; }
.cotrust__item strong { display: block; color: var(--text-strong); }

/* =============================================================
   NOTICES WOOCOMMERCE
   Elles arrivent telles quelles (erreurs de validation serveur,
   coupon refusé) : on les aligne sur les encarts `.note` du thème.
   ============================================================= */
.woocommerce-error,
.woocommerce-info,
.woocommerce-message,
.woocommerce-NoticeGroup {
  list-style: none;
  margin: 0 0 var(--s-5);
  padding: var(--s-4);
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  font-size: var(--t-sm);
  line-height: 1.55;
}
.woocommerce-NoticeGroup { padding: 0; border: 0; }
.woocommerce-error {
  background: var(--error-soft);
  color: var(--error);
  border-color: var(--error-line);
}
.woocommerce-info {
  background: var(--info-soft);
  color: var(--c-blue-800);
  border-color: var(--info-line);
}
/*
 * `.woocommerce-message` n'est PAS une information : c'est un succès
 * (« Panier mis à jour », « X supprimé — Annuler ? »). Le peindre en bleu
 * d'information laissait la couleur dire autre chose que le texte.
 */
.woocommerce-message {
  background: var(--success-soft);
  color: var(--success);
  border-color: var(--success-line);
}
:is(.woocommerce-error, .woocommerce-info, .woocommerce-message) li { margin-bottom: var(--s-2); }
:is(.woocommerce-error, .woocommerce-info, .woocommerce-message) li:last-child { margin-bottom: 0; }
:is(.woocommerce-error, .woocommerce-info, .woocommerce-message) a { color: inherit; font-weight: var(--fw-semi); }
:is(.woocommerce-error, .woocommerce-info, .woocommerce-message) .button { display: none; }

/* =============================================================
   CONFIRMATION
   ============================================================= */
.done__head {
  max-width: 46rem;
  margin: 0 auto var(--s-8);
  text-align: center;
}
.done__mark {
  display: grid;
  place-items: center;
  width: 88px;
  height: 96px;
  margin: 0 auto var(--s-5);
  background: var(--primary-soft);
  color: var(--primary);
  clip-path: var(--hex-clip);
  animation: ste-done-pop .5s var(--ease-out) both;
}
@keyframes ste-done-pop {
  from { opacity: 0; transform: scale(.72); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .done__mark { animation: none; }
}
/* Écran de vérification : ce n'est pas une réussite, la pastille ne
   claironne pas. Pas de pop non plus — rien n'a abouti à cet instant. */
.done__mark--quiet {
  background: var(--bg-alt);
  color: var(--text-muted);
  animation: none;
}

/* ---- Vérification de l'adresse e-mail ----------------------------- */
.done--verify .done__head { margin-bottom: var(--s-6); }
.verify {
  max-width: 30rem;
  margin-inline: auto;
  padding: var(--s-6);
}
.verify__note { margin: 0 0 var(--s-5); }
.verify .field { margin-bottom: var(--s-5); }
.verify__alt {
  display: flex;
  align-items: flex-start;
  gap: var(--s-2);
  margin: var(--s-5) 0 0;
  padding-top: var(--s-5);
  border-top: 1px solid var(--border-soft);
  font-size: var(--t-sm);
  color: var(--text-muted);
  line-height: 1.5;
}
.verify__alt .ico { flex: none; color: var(--primary); margin-top: 2px; }

/* Passé en <h1> (page.php ne pose plus de titre sur le tunnel) : on rétablit
   explicitement l'échelle voulue, sinon il hérite du --t-2xl du hero. */
.done__title { font-size: var(--t-xl); margin-bottom: var(--s-3); }
.done__lead { color: var(--text-muted); font-size: var(--t-lg); }

.done__ref {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--s-2) var(--s-3);
  margin-top: var(--s-5);
  padding: var(--s-4);
  border: 1px solid var(--primary-line);
  border-radius: var(--r-md);
  background: var(--primary-soft);
}
.done__ref-label {
  width: 100%;
  font-size: var(--t-xs);
  font-weight: var(--fw-semi);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--c-teal-700);
}
.done__ref-num {
  font-family: var(--font-display);
  font-size: var(--t-xl);
  font-weight: var(--fw-black);
  color: var(--text-strong);
  letter-spacing: var(--ls-wide);
  /* Un numéro se sélectionne d'un double-clic, y compris sans le bouton. */
  user-select: all;
}
.done__copy { background: var(--surface); }
.done__copy.is-done { border-color: var(--success); color: var(--success); }
.done__copied {
  width: 100%;
  min-height: 1.2em;
  font-size: var(--t-xs);
  font-weight: var(--fw-semi);
  color: var(--success);
}
/* Le repli execCommand peut échouer : un échec ne s'annonce pas en vert. */
.done__copied.is-error { color: var(--error); }

.done__date {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  margin-top: var(--s-4);
  font-size: var(--t-sm);
  color: var(--text-muted);
}

.done__split { align-items: start; }
.done__main { display: grid; gap: var(--s-5); min-width: 0; }
.done__sub {
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: var(--ls-caps);
  color: var(--text-muted);
  margin-bottom: var(--s-4);
}

/* ---- Étapes numérotées ------------------------------------------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-4); }
.steps__item {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: var(--s-4);
  align-items: start;
  margin: 0;
}
.steps__n {
  display: grid;
  place-items: center;
  width: 30px;
  height: 33px;
  background: var(--secondary-soft);
  color: var(--secondary);
  clip-path: var(--hex-clip);
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  font-size: var(--t-sm);
}
.steps__txt { color: var(--text-muted); line-height: var(--lh-base); font-size: var(--t-sm); }
.steps__txt strong { display: block; color: var(--text-strong); }

.done__call { margin-top: var(--s-5); }
.done__failed { max-width: 46rem; margin: 0 auto var(--s-5); }

.done__quotemark {
  display: flex;
  align-items: flex-start;
  gap: var(--s-2);
  margin: 0;
  font-size: var(--t-xs);
  color: var(--text-muted);
}
.done__quotemark .ico { color: var(--primary); margin-top: 2px; }

/* ---- Coordonnées enregistrées ------------------------------------ */
.deets { margin: 0; display: grid; gap: var(--s-4); }
.deets__row { display: grid; gap: 2px; }
.deets__row dt {
  font-size: var(--t-xs);
  font-weight: var(--fw-semi);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--text-muted);
}
.deets__row dd {
  margin: 0;
  font-size: var(--t-sm);
  color: var(--text);
  line-height: 1.5;
}
.deets__note { color: var(--text-muted); font-style: italic; }
.deets + .field__hint { margin-top: var(--s-4); }

.done__acts { display: grid; gap: var(--s-3); margin-top: var(--s-5); }
