/* Page panier (refonte validée le 2026-11-18) : lignes, quantité − / +, totaux, bouton Commander,
   réassurance et couverture agrandie. Brique du site pour les boutons et repères (2026-11-19 : comme l'achat des pages
   des cahiers ; blanc sur brique : contraste 5,6:1). */
h1#panier { width: auto; height: auto; }
#panier .tc-nombre { font-size: 0.65em; color: #666; font-weight: 400; white-space: nowrap; }
.tc-panier { max-width: 600px; margin: 0 auto; padding: 0 12px; text-align: left; }
.tc-ligne { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid #eee; }
.tc-couverture { flex: none; display: block; border-radius: 3px; overflow: hidden; cursor: zoom-in; }
.tc-couverture img { display: block; width: 56px; height: 77px; object-fit: cover; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.tc-ligne-corps { flex: 1; min-width: 0; }
.tc-ligne-titre { display: block; color: #222; font-weight: 500; line-height: 1.35; }
.tc-ligne-titre:hover { text-decoration: underline; }
.tc-ligne-total { flex: none; min-width: 44px; text-align: right; white-space: nowrap; font-size: 15px; }
.tc-unite { display: block; font-size: 12px; color: #777; }
.tc-qte { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.tc-qte input[type=number] { width: 42px; height: 30px; margin: 0; padding: 0; text-align: center; border: 1px solid #ccc;
  border-radius: 6px; box-shadow: none; color: #222; -moz-appearance: textfield; }
.tc-qte input[type=number]::-webkit-outer-spin-button,
.tc-qte input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.tc-pas { width: 30px; height: 30px; padding: 0; border: 1px solid #bbb; border-radius: 6px; background: #fff;
  color: #333; font-size: 18px; line-height: 1; cursor: pointer; }
.tc-pas:hover { background: #f3f0ea; }
.tc-pas[aria-disabled=true] { color: #bbb; border-color: #e3e3e3; cursor: default; background: #fff; }
.tc-retirer { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; padding: 4px 0; border: 0; background: none;
  color: #757575; font-size: 13px; cursor: pointer; }
.tc-retirer:hover { color: rgb(176, 73, 50); }
.tc-retirer:hover { text-decoration: underline; }
.tc-totaux { background: #f6f3ee; border-radius: 8px; padding: 12px 14px; margin-top: 8px; }
.tc-total-ligne { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.tc-total-ligne span:last-child { white-space: nowrap; }
.tc-total-ligne small { color: #666; font-size: 12px; }
.tc-total { margin-top: 6px; padding-top: 8px; border-top: 1px solid #e2dccf; font-weight: 500; font-size: 17px; }
#tva { margin: 6px 0 0; font-size: 11px; color: #666; font-style: italic; }
.tc-panier-commande { max-width: 600px; margin: 14px auto 0; padding: 0 12px; }
.tc-panier-commande .collapsible { width: 100%; border: 0; box-shadow: none; margin: 0; text-align: left; }
.tc-panier-commande .collapsible-header.tc-commander { display: block; text-align: center; background: rgb(176, 73, 50); color: #fff;
  border: 0; border-radius: 90px; padding: 12px; font-size: 16px; font-weight: 500; cursor: pointer; }
.tc-panier-commande .collapsible-header.tc-commander:hover { background: rgb(150, 58, 38); }
.tc-panier-commande .active .collapsible-header.tc-commander { border-radius: 90px; }
.tc-panier-pied { margin-top: 12px; }
.tc-panier-pied a { color: rgb(176, 73, 50); }
.tc-rassurance { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0;
  list-style: none; font-size: 12px; color: #555; }
.tc-rassurance li { display: flex; align-items: center; gap: 5px; }
.tc-agrandie { border: 0; border-radius: 8px; padding: 12px 12px 8px; max-width: min(92vw, 520px); text-align: center; }
.tc-agrandie::backdrop { background: rgba(0, 0, 0, 0.6); }
.tc-agrandie img { display: block; max-width: 100%; max-height: 78vh; margin: 0 auto; }
.tc-agrandie p { margin: 8px 0 0; }
.tc-fermer { position: absolute; top: 4px; right: 6px; border: 0; background: #fff; border-radius: 50%; width: 32px; height: 32px;
  font-size: 22px; line-height: 1; cursor: pointer; }
.tc-fermer:focus { background: #fff; outline: 2px solid rgb(176, 73, 50); }
.tc-pas:focus, .tc-retirer:focus { background-color: inherit; }
.tc-pas:focus-visible, .tc-retirer:focus-visible { outline: 2px solid rgb(176, 73, 50); outline-offset: 1px; }
.tc-ligne.tc-retire { display: none; }

/* Formulaire de commande (refonte validée le 2026-11-18). */
.tc-panier-commande .collapsible-body { border: 0; padding: 16px 0 0; }
.tc-page-formulaire { margin-top: 18px; }
.tc-etapes { display: flex; gap: 4px; margin: 0 0 16px; padding: 0; list-style: none; counter-reset: etape; font-size: 12px; color: #888; }
.tc-etapes li { flex: 1; text-align: center; border-top: 3px solid #e3e3e3; padding-top: 5px; }
.tc-etapes li.tc-faite { border-color: #e2b9a8; color: #555; }
.tc-etapes li.tc-en-cours { border-color: rgb(176, 73, 50); color: #6d2a1a; font-weight: 500; }
.tc-formulaire { text-align: left; }
.tc-form-titre { font-size: 19px; font-weight: 500; margin: 0; color: #222; }
.tc-form-note { font-size: 12px; color: #666; margin: 2px 0 0; }
.tc-centre { text-align: center; margin-top: 8px; }
.tc-form-alerte { margin: 10px 0 0; padding: 8px 12px; border-radius: 6px; background: #fdecea; color: #8c1d18; font-size: 13px; }
.tc-champs { display: flex; flex-wrap: wrap; gap: 0 10px; }
.tc-champ { flex: 1 1 100%; margin-top: 10px; }
.tc-champ.tc-demi { flex: 1 1 calc(50% - 5px); min-width: 130px; }
.tc-champ label { display: block; font-size: 14px; color: #333; margin-bottom: 4px; transform: none; position: static; }
.tc-facultatif { font-size: 12px; color: #777; }
.tc-formulaire input[type=text], .tc-formulaire input[type=email], .tc-formulaire input[type=tel], .tc-formulaire select {
  box-sizing: border-box; width: 100%; height: 40px; margin: 0; padding: 0 10px; border: 1px solid #c8c8c8; border-radius: 6px;
  background: #fff; color: #222; font-size: 15px; box-shadow: none; }
.tc-formulaire input:focus, .tc-formulaire select:focus { border-color: rgb(176, 73, 50); box-shadow: 0 0 0 2px rgba(176, 73, 50, 0.22); outline: none; }
.tc-champ.tc-erreur input { border-color: #b3261e; }
.tc-aide { min-height: 0; margin: 3px 0 0; font-size: 12px; color: #666; }
.tc-aide:empty { display: none; }
.tc-erreur-texte { color: #b3261e; }
.tc-facturation { margin-top: 14px; }
.tc-case { display: inline-flex; align-items: center; cursor: pointer; }
.tc-case span { font-size: 15px; color: #222; }
.tc-case [type=checkbox].filled-in:checked + span:not(.lever)::after { border-color: rgb(176, 73, 50); background-color: rgb(176, 73, 50); }
.tc-case [type=checkbox].filled-in:not(:checked) + span:not(.lever)::after { border-color: #8d8d8d; }
.tc-case [type=checkbox]:focus-visible + span::before { outline: 2px solid rgb(176, 73, 50); outline-offset: 2px; }
.tc-facturation:not(:has(#facturation_differente:checked)) #tc-facturation-champs { display: none; }
.tc-paiement { border: 0; margin: 16px 0 0; padding: 0; }
.tc-paiement legend { font-weight: 500; font-size: 15px; color: #222; margin-bottom: 4px; }
.tc-choix { display: flex; gap: 10px; align-items: flex-start; margin-top: 8px; padding: 10px 12px; border: 1px solid #ccc;
  border-radius: 8px; cursor: pointer; color: #222; font-size: 14px; }
.tc-choix:has(input:checked) { border: 2px solid rgb(176, 73, 50); background: #fbf3ef; padding: 9px 11px; }
.tc-choix input.tc-radio { position: static; opacity: 1; pointer-events: auto; width: 16px; height: 16px; margin: 2px 0 0; accent-color: rgb(176, 73, 50); flex: none; }
.tc-choix-texte { display: block; line-height: 1.35; min-width: 0; }
.tc-choix-icone { flex: none; color: #6d4c41; margin-top: -1px; }
.tc-choix:has(input:checked) .tc-choix-icone { color: rgb(176, 73, 50); }
.tc-choix .tc-picto { max-width: 190px; margin: 7px 0 0; }
.tc-choix b { font-weight: 500; display: block; }
.tc-choix small { display: block; color: #555; font-size: 12px; }
.tc-picto { display: block; max-width: 240px; height: auto; margin: 10px auto 0; }
.tc-form-totaux { background: #f6f3ee; border-radius: 8px; padding: 10px 14px; margin-top: 14px; }
.tc-bouton-principal { display: block; width: 100%; margin-top: 14px; padding: 12px; border: 0; border-radius: 90px; background: rgb(176, 73, 50);
  color: #fff; font-size: 16px; font-weight: 500; cursor: pointer; }
.tc-bouton-principal:hover { background: rgb(150, 58, 38); }
.tc-bouton-principal:focus-visible { outline: 3px solid #e2b9a8; outline-offset: 2px; }

/* Récapitulatif avant paiement (refonte validée le 2026-11-18). */
.tc-recap { margin-top: 18px; }
.tc-recap h1.tc-form-titre { font-size: 20px; margin: 0 0 4px; }
.tc-bloc { border: 1px solid #e3e3e3; border-radius: 8px; padding: 10px 12px; margin-top: 10px; }
.tc-bloc p { margin: 0; line-height: 1.5; }
.tc-bloc-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.tc-bloc-tete h2 { font-size: 15px; font-weight: 500; margin: 0; color: #222; }
.tc-bloc-tete a, .tc-lien { border: 0; background: none; padding: 0; color: rgb(176, 73, 50); font-size: 13px; cursor: pointer; text-decoration: none; }
.tc-bloc-tete a:hover, .tc-lien:hover { text-decoration: underline; }
.tc-lien:focus { background: none; }
.tc-recap-totaux { border-top: 1px solid #eee; margin-top: 6px; padding-top: 6px; }
.tc-recap .tc-total-ligne small { color: #666; }
.tc-recap .tc-picto { margin: 8px 0 0; }
.tc-recap .tc-total-ligne small { white-space: nowrap; }

/* Paiement et retours de la banque (refonte validée le 2026-11-18). */
.tc-retour { text-align: center; }
.tc-retour .tc-etapes, .tc-retour .tc-bloc { text-align: left; }
.tc-retour .tc-form-titre { margin-top: 8px; }
.tc-retour .tc-picto { margin: 14px auto 0; }
.tc-attente { width: 30px; height: 30px; margin: 18px auto 4px; border: 3px solid #f0dcd3; border-top-color: rgb(176, 73, 50);
  border-radius: 50%; animation: tc-tourne 0.9s linear infinite; }
@keyframes tc-tourne { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .tc-attente { animation: none; } }
.tc-bouton-second { display: block; width: 100%; margin-top: 8px; padding: 11px; border: 1px solid #bbb; border-radius: 6px;
  background: #fff; color: #333; font-size: 15px; text-align: center; }
.tc-bouton-second:hover { background: #f3f0ea; }
a.tc-bouton-principal { text-align: center; text-decoration: none; }
.tc-etapes li.tc-terminee { border-color: rgb(176, 73, 50); color: #6d2a1a; font-weight: 500; }

/* Page panier (2026-11-19) : repère d'étapes, suggestions, panier vide, message de retrait. */
.tc-etapes-panier { margin-top: 2px; }
.tc-etapes-panier .tc-etapes { margin-bottom: 6px; }
.tc-suggestions { max-width: 600px; margin: 26px auto 0; padding: 0 12px; }
.tc-suggestions-titre { margin: 0 0 12px; font-size: 1.1rem; font-weight: 500; text-align: center; color: #222; }
.tc-suggestions-liste { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 12px; }
@media only screen and (max-width: 600px) { .tc-suggestions-liste { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tc-suggestion { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; min-width: 0; }
.tc-suggestion-couv { display: block; width: 100%; max-width: 110px; box-shadow: 0 1px 4px rgba(0, 0, 0, .22); }
.tc-suggestion-couv img { display: block; width: 100%; height: auto; }
.tc-suggestion-titre {
  font-size: .82rem; line-height: 1.3; color: #222; display: -webkit-box; -webkit-box-orient: vertical;
  -webkit-line-clamp: 2; overflow: hidden; margin-top: 2px;
}
.tc-suggestion-titre:hover { color: rgb(176, 73, 50); }
.tc-suggestion-prix { margin: 0; font-size: .9rem; font-weight: 700; color: rgb(176, 73, 50); }
.tc-suggestion-form { margin-top: auto; }
.tc-suggestion-ajouter {
  display: inline-flex; align-items: center; gap: 4px; padding: 5px 12px; border: 1.5px solid rgb(176, 73, 50);
  border-radius: 90px; background: #fff; color: rgb(176, 73, 50); font-size: .82rem; font-weight: 500; cursor: pointer;
}
.tc-suggestion-ajouter:hover, .tc-suggestion-ajouter:focus-visible { background: rgb(176, 73, 50); color: #fff; }
.tc-panier-vide { text-align: center; padding-top: 18px; }
.tc-vide-icone { color: rgb(176, 73, 50); }
.tc-panier-vide h2 { margin: 6px 0 4px; font-size: 1.4rem; font-weight: 500; }
.tc-panier-vide p { margin: 0 0 4px; color: #555; }
a.tc-bouton-principal.tc-bouton-court { display: inline-block; width: auto; padding: 11px 28px; color: #fff; }
.tc-message-pied { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tc-message-pied .tc-confirmation-detail { margin: 0; }
.tc-message-annuler { flex: none; font-weight: 500; color: rgb(176, 73, 50); text-decoration: underline; text-underline-offset: 3px; }
.tc-etat-retire .tc-confirmation-titre { color: #4e342e; }

/* Formulaire de commande (2026-11-19) : champs en 16 px (pas de zoom au toucher sur iPhone), choix de paiement
   plus faciles au doigt, suggestion d'e-mail, suggestions de cahiers masquées quand le formulaire est ouvert. */
.tc-formulaire input[type=text], .tc-formulaire input[type=email], .tc-formulaire input[type=tel], .tc-formulaire select { font-size: 16px; }
.tc-choix { padding: 13px 14px; }
.tc-choix:has(input:checked) { padding: 12px 13px; }
.tc-choix input.tc-radio { margin-top: 3px; width: 18px; height: 18px; }
.tc-choix b { font-size: 15px; }
.tc-suggestion-email { margin: 4px 0 0; font-size: 13px; color: #4e342e; }
.tc-suggestion-email-bouton {
  border: 0; background: none; padding: 0; font: inherit; font-weight: 500; color: rgb(176, 73, 50);
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
#contenu:has(.tc-panier-commande li.active) #tc-suggestions { display: none; }
.tc-recap .tc-form-note a { color: rgb(176, 73, 50); text-decoration: underline; text-underline-offset: 2px; }

/* Récapitulatif (2026-11-19) : couvertures, « modifier » plus visible, e-mail, « Et ensuite ? », bouton,
   barre fixe sur mobile. */
.tc-recap-ligne { align-items: center; }
.tc-recap-ligne img { flex: none; width: 36px; height: 50px; object-fit: cover; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.tc-recap-ligne span:first-of-type { flex: 1; min-width: 0; }
.tc-modifier { display: inline-flex; align-items: center; gap: 4px; padding: 6px 2px; min-height: 32px; font-size: 14px !important;
  font-weight: 500; color: rgb(176, 73, 50) !important; }
.tc-modifier:hover { text-decoration: underline; text-underline-offset: 3px; }
.tc-recap-email { color: #222; overflow-wrap: anywhere; }
.tc-ensuite { margin: 16px 0 0; padding: 12px 14px; border-left: 3px solid rgb(176, 73, 50); background: #fbf6f2; border-radius: 0; }
.tc-ensuite h2 { margin: 0 0 4px; font-size: 15px; font-weight: 500; color: #4e342e; }
.tc-ensuite p { margin: 0; font-size: 13.5px; line-height: 1.45; color: #444; }
.tc-recap-commander { display: flex; align-items: center; justify-content: center; gap: 8px; }
.tc-recap-commander.tc-en-cours { opacity: .65; cursor: progress; }
.tc-recap-barre { display: none; }
@media only screen and (max-width: 600px) {
  .tc-recap-barre {
    display: flex; align-items: center; gap: 12px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 990;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid #eadfd4;
    box-shadow: 0 -4px 14px rgba(0, 0, 0, .08); transform: translateY(110%); transition: transform .2s ease-out;
  }
  .tc-recap-barre.tc-visible { transform: none; }
  .tc-recap-barre[hidden] { display: none; }
  .tc-recap-barre-total { display: flex; flex-direction: column; font-weight: 500; font-size: 17px; white-space: nowrap; }
  .tc-recap-barre-total small { font-size: 11px; font-weight: 400; color: #666; }
  .tc-recap-barre .tc-bouton-principal { flex: 1; margin: 0; padding: 11px 10px; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { .tc-recap-barre { transition: none; } }

/* Pages de fin de commande (2026-11-19) : chèque (trois étapes), paiement accepté, refus. */
.tc-bouton-second { border: 1.5px solid rgb(176, 73, 50); border-radius: 90px; color: rgb(176, 73, 50); background: #fff; font-weight: 500; }
.tc-bouton-second:hover, .tc-bouton-second:focus-visible { background: rgb(176, 73, 50); color: #fff; }
a.tc-lien-brique, .tc-retour .tc-form-note a { color: rgb(176, 73, 50); text-decoration: underline; text-underline-offset: 3px; }
.tc-retour-liens { margin: 16px 0 0; line-height: 1.8; font-size: 14px; color: #555; }
.tc-partent { display: inline-flex; align-items: center; gap: 8px; margin: 8px 0 4px; padding: 7px 14px; border-radius: 90px;
  background: #eef3ec; color: #33502c; font-weight: 500; }
.tc-resume { margin-top: 14px; text-align: left; }
.tc-resume-livraison { margin-top: 8px !important; font-size: 13.5px; color: #444; }
.tc-marche { counter-reset: marche; list-style: none; margin: 16px 0 6px; padding: 0; text-align: left; }
.tc-marche li { counter-increment: marche; position: relative; margin: 0 0 12px; padding: 12px 14px 12px 52px; border: 1px solid #eadfd4;
  border-radius: 8px; background: #fff; line-height: 1.45; }
.tc-marche li::before { content: counter(marche); position: absolute; left: 14px; top: 11px; width: 26px; height: 26px; border-radius: 50%;
  background: rgb(176, 73, 50); color: #fff; font-weight: 500; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.tc-marche b { font-weight: 500; color: #222; }
.tc-marche .tc-bouton-second { margin-top: 10px; }
.tc-marche address { margin: 8px 0 0; font-style: normal; font-size: 15px; line-height: 1.5; }
.tc-copier { margin-top: 8px; padding: 5px 12px; border: 1px solid #ccc; border-radius: 90px; background: #fff; font-size: 13px; cursor: pointer; }
.tc-copier:hover { border-color: rgb(176, 73, 50); color: rgb(176, 73, 50); }
