/*
 * Boutique Tous FAMiliés — page /boutique et panier.
 * Tokens repris de public/css/site.scss (via docs/boutique-v2/maquette-tf-boutique.css), adaptés aux classes Bootstrap du site.
 * Chargé seulement sur /boutique.
 */

:root {
  --tf-orange: #D2601C;
  --tf-orange-fonce: #B35218;
  --tf-vert: #576A5A;
  --tf-vert-leger: #A7B1A0;
  --tf-dark: #4E514B;
  --tf-paille: #FFF1E1;
  --tf-paille-leger: #FFF8F0;
  --tf-texte: #212529;
  --tf-erreur: #B02A37;
  --tf-ombre: 0 -8px 24px rgba(33, 37, 41, .12);
}

.boutique-page { color: var(--tf-texte); }
/* Spécificité nulle : les marges des composants (.carte-desc, .carte-prix…) doivent l'emporter. */
:where(.boutique-page) p { margin: 0; text-wrap: pretty; }
/* Anneau de focus des seuls éléments maison ; les contrôles Bootstrap gardent celui du site. */
.tuile:focus-visible, .t-produit:focus-visible, .barre-ouvrir:focus-visible, .feature-help:focus-visible, .aller-panier:focus-visible, .detail-vignettes button:focus-visible, .faq a:focus-visible, .mentions a:focus-visible { outline: 3px solid var(--tf-orange); outline-offset: 2px; box-shadow: none; }

/* main du site : 80 px au-dessus du contenu ; ici en-tête → grille = 48 px (consignes DA §7). */
main.boutique-page { padding-top: 0; }

/* Badge d'avis flottant du site masqué sur la boutique (consignes UX §1) : il recouvrirait la barre du panier.
   Elfsight le rend dans un portail ajouté à <body> (styles « .x.x { display: block !important } ») : sélecteur à id pour l'emporter. */
.elfsight-app-ffac2620-e333-420a-89e6-92d13c1f33b4,
#__EAAPS_PORTAL[class*="eapps-all-in-one-reviews-ffac2620-e333-420a-89e6-92d13c1f33b4"] { display: none !important; }

/* ---------- Rôles typographiques ---------- */
.boutique-page .label { font-size: 16px; line-height: 20px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--tf-texte); }
.boutique-page .t-encadre { font-family: "Ropest", "Ropest-fallback", cursive; font-weight: normal; color: var(--tf-orange); font-size: 40px; line-height: 44px; display: inline-block; transform: rotate(-3deg); transform-origin: left center; margin: 0; }
.aller-panier { position: absolute; z-index: 5; }

/* ---------- Mise en page ---------- */
.boutique { display: grid; grid-template-columns: minmax(0, 856fr) minmax(376px, 416fr); column-gap: 24px; align-items: start; padding-top: 48px; padding-bottom: 96px; }
.boutique-produits { min-width: 0; }
.grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; row-gap: 48px; }
.boutique-panier-col { position: sticky; top: 111px; display: flex; flex-direction: column; height: calc(100vh - var(--col-top, 111px) - 24px); height: calc(100dvh - var(--col-top, 111px) - 24px); min-height: 420px; }
.boutique-panier-col > .panier { flex: 1 1 auto; min-height: 0; }

/* ---------- Carte produit ---------- */
.carte { display: flex; flex-direction: column; height: 100%; }
.tuile { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 1 / 1; padding: 0; border: 0; border-radius: 16px; background: var(--tf-paille); overflow: hidden; cursor: pointer; }
.tuile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; } /* la photo remplit la tuile, sans fond autour */
.carte-nom { margin-top: 24px; }
.carte-titre, .carte-desc { overflow-wrap: anywhere; }
.carte-titre { margin: 0; font-size: 28px; line-height: 34px; font-weight: 600; }
.t-produit { display: inline; padding: 0; border: 0; background: none; font: inherit; color: var(--tf-vert); text-align: left; cursor: pointer; }
.t-produit:hover { color: var(--tf-texte); text-decoration: underline; text-underline-offset: 4px; }
.carte-desc { margin-top: 8px; font-size: 18px; line-height: 27px; color: var(--tf-vert); }
.carte-prix { margin-top: 16px; font-size: 24px; line-height: 28px; font-weight: 600; font-variant-numeric: tabular-nums; }
.carte-epuise { margin-top: auto; padding-top: 24px; min-height: 72px; display: flex; align-items: center; font-size: 18px; line-height: 27px; color: var(--tf-dark); }
.carte-numerique { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 16px; line-height: 24px; color: #576A5A; }
.icone-enveloppe { flex: none; width: 24px; height: 24px; }
.ligne-numerique { display: flex; align-items: flex-start; gap: 8px; }
.detail .carte-numerique { margin-top: 32px; }
.stock { margin-top: 8px; font-size: 18px; line-height: 27px; color: var(--tf-dark); }
.carte-ajout { margin-top: auto; padding-top: 24px; }
.carte-limite { margin-top: 8px; font-size: 16px; line-height: 24px; color: var(--tf-dark); }

/* Tailles : pastilles Bootstrap (btn-check + btn-outline-secondary), sans présélection */
.carte-tailles { margin: 16px 0 0; padding: 0; border: 0; min-width: 0; }
.carte-tailles legend { float: none; width: auto; margin: 0 0 8px; padding: 0; font-size: 16px; line-height: 20px; }
.erreur-txt, .ligne-msg { display: flex; align-items: flex-start; gap: 8px; margin-top: 8px; font-size: 16px; line-height: 24px; color: var(--tf-erreur); }
.erreur-txt[hidden], .ligne-msg[hidden] { display: none; }
.erreur-txt svg, .ligne-msg svg { flex: none; margin-top: 2px; }


/* ---------- Alertes au-dessus du panier ---------- */
.boutique-alertes:not(:empty) { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.alerte, .info { display: flex; align-items: flex-start; gap: 12px; padding: 16px 24px; border-radius: 16px; font-size: 18px; line-height: 27px; }
.alerte { border: 2px solid var(--tf-erreur); background: #fff; color: var(--tf-erreur); }
.alerte .alerte-icone { color: var(--tf-erreur); }
.info { background: var(--tf-paille-leger); color: var(--tf-dark); }
.info .alerte-icone { color: var(--tf-vert); }
.alerte-icone { flex: none; margin-top: 2px; }
.alerte > span, .info > span, .info-txt { flex: 1; min-width: 0; }
.alerte, .info { position: relative; }
.boutique-alertes:focus { outline: none; }

/* ---------- Panier ---------- */
.panier { display: flex; flex-direction: column; border-radius: 16px; background: var(--tf-paille-leger); }
.panier:focus { outline: none; }
.panier-tete { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 32px 12px; } /* le titre Ropest déborde sous sa ligne : le corps défilant démarre plus bas */
.panier-corps { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 8px 32px 0; scrollbar-width: thin; scrollbar-color: var(--tf-vert-leger) transparent; }
.panier.est-vide .panier-corps { display: flex; flex-direction: column; justify-content: center; gap: 16px; padding-bottom: 32px; }
.panier-corps.deborde { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 24px), rgba(0, 0, 0, .1)); mask-image: linear-gradient(to bottom, #000 calc(100% - 24px), rgba(0, 0, 0, .1)); }
.panier-pied { flex: none; display: flex; flex-direction: column; gap: 16px; margin: 0 32px; padding: 16px 0 24px; }

/* Panier vide : la phrase en haut, les mentions poussées en bas de la zone (le vide reste vide) */
.panier-vide-msg { font-size: 20px; line-height: 30px; font-weight: 600; color: var(--tf-vert); }
.mentions { margin: 0; padding: 0; list-style: none; }
.mentions li { display: flex; flex-direction: column; gap: 8px; padding: 16px 0; border-top: 1px solid var(--tf-vert-leger); }
.mentions li:last-child { padding-bottom: 0; }
.mentions .label { color: var(--tf-vert); }
.mentions p:not(.label) { font-size: 18px; line-height: 27px; color: var(--tf-dark); }

/* Bandeau « livraison offerte » : composant .info du panier, sans fermeture, au-dessus de la grille. */
.offre-livraison { margin-bottom: 24px; }
.offre-livraison strong { font-weight: 600; }
/* Mobile : notices et bandeau compacts, texte 16 px. */
@media (max-width: 575.98px) { .alerte, .info { padding: 12px 16px; font-size: 16px; line-height: 24px; } }

/* Lignes */
.lignes { margin: 0; padding: 0; list-style: none; }
.ligne { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--tf-vert-leger); transition: background-color .3s, box-shadow .3s; }
.lignes > :last-child { border-bottom: 0; } /* pas de filet au-dessus du sélecteur de livraison */
.ligne-eclairee { background: var(--tf-paille); box-shadow: -32px 0 0 var(--tf-paille), 32px 0 0 var(--tf-paille); }
.vignette { grid-row: 1; display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 8px; background: var(--tf-paille); overflow: hidden; }
.vignette img { width: 100%; height: 100%; object-fit: cover; } /* photo cadrée au centre : le mug reste lisible à 64 px */
.ligne-tete { grid-column: 2; grid-row: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.ligne-nom { font-size: 16px; line-height: 20px; font-weight: 600; text-transform: uppercase; overflow-wrap: anywhere; }
.ligne-detail { font-size: 16px; line-height: 24px; color: var(--tf-vert); }
.ligne-pied { align-self: stretch; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; column-gap: 12px; row-gap: 0; }
.ligne-total { margin-left: auto; font-size: 18px; line-height: 24px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.ligne-actions { display: flex; justify-content: flex-end; }
.ligne-msg { grid-column: 2; }
.ligne-msg.neutre { color: var(--tf-dark); }
.ligne-msg.neutre svg { display: none; }
.qte { display: inline-flex; align-items: center; }
.qte output { min-width: 32px; text-align: center; font-size: 18px; line-height: 24px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ligne-retiree { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--tf-vert-leger); font-size: 16px; line-height: 24px; color: var(--tf-dark); }

/* Pied : sous-total, pays, livraison, total, paiement (consignes DA révision 2 §4) */
.tot { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.tot .label { color: var(--tf-dark); }
.tot-montant { font-size: 18px; line-height: 24px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tot-final { padding-top: 16px; border-top: 1px solid var(--tf-vert-leger); }
.tot-final .label { color: var(--tf-texte); }
.tot-final .tot-montant { font-size: 28px; line-height: 32px; }
/* Étape 2 « Livraison » (consignes UX/DA révision 5) : contrôles Bootstrap tels quels, seulement la mise en page. */
.livraison { display: flex; flex-direction: column; gap: 16px; padding-bottom: 16px; }
/* Retour et mode choisi : au-dessus de la zone défilante, visibles quand la liste des points défile. */
.livraison-tete { flex: none; display: flex; flex-wrap: wrap; align-items: stretch; justify-content: space-between; column-gap: 16px; min-height: 45px; padding: 0 32px; border-bottom: 1px solid #E6D9C8; }
.livraison-tete[hidden] { display: none; }
/* Rangée de « Modifier le panier » : 44 px au moins, même quand la tête passe sur deux lignes (vers 360 px) et que le bouton ne s'étire plus. */
.livraison-retour { display: flex; min-height: 44px; }
.livraison-resume { align-self: center; margin: 0; font-size: 16px; line-height: 24px; font-weight: 600; color: var(--tf-texte); }
.livraison-resume[hidden] { display: none; }
#livraison-erreur, #point-erreur, #point-vide { scroll-margin-bottom: 16px; }
.mode-bloc { position: relative; }
.mode-bloc > .feature-help { top: 0; right: 0; width: 32px; height: 32px; font-size: 16px; opacity: 1; }
.mode-bloc > .feature-help::before { content: ""; position: absolute; inset: -6px; }
.modes, .points { min-width: 0; margin: 0; padding: 0; border: 0; }
.modes legend, .points legend { float: none; width: auto; margin: 0 0 8px; padding: 0; font-size: 16px; line-height: 32px; font-weight: 600; color: var(--tf-texte); }
.choix { padding: 8px 12px; border-top: 1px solid #E6D9C8; border-radius: 0; }
.choix:first-of-type { border-top: 0; }
.choix:has(input:checked) { border-radius: 8px; background: var(--tf-paille); }
.choix .form-check { min-height: 40px; margin: 0; }
.choix .form-check-label { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; column-gap: 12px; width: 100%; padding: 8px 0; font-size: 16px; line-height: 24px; color: var(--tf-texte); }
.choix .form-check-input { margin-top: 12px; }
.choix-montant { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.choix[hidden] { display: none; }
.aide-champ { margin: 0; font-size: 16px; line-height: 24px; color: var(--tf-vert); }
.aide-champ[hidden] { display: none; }
.aide-champ, #point-erreur, #livraison-erreur { text-wrap: pretty; }
.recherche { display: flex; gap: 8px; }
.recherche .form-control { flex: 1 1 auto; min-width: 0; }
#point-rechercher { flex: none; white-space: nowrap; }
.point-bloc { display: flex; flex-direction: column; gap: 8px; }
.point-bloc[hidden], .points[hidden] { display: none; }
.points { display: flex; flex-direction: column; gap: 4px; transition: opacity .2s; }
.points.en-recherche { opacity: .5; }
.points .choix { padding: 4px 12px; border-top: 0; }
.points legend { margin-bottom: 0; line-height: 28px; }
.points .form-check-label { padding: 4px 0; }
.point-nom { flex: 1 1 0; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.point-ligne { flex: 1 1 100%; color: var(--tf-vert); overflow-wrap: anywhere; }
.point-distance { flex: none; color: var(--tf-vert); white-space: nowrap; }
.point-consigne { flex: 1 1 100%; font-weight: 600; color: var(--tf-vert); }
@media (max-width: 339.98px) { .recherche { flex-direction: column; } }
/* La fenêtre d'aide s'ouvre aussi depuis le tiroir mobile (z-index 1060) : elle passe au-dessus. */
#boutique-aide-livraison { z-index: 1080; }
.modal-backdrop { z-index: 1075; }
.aide-cartes { margin: 0; font-size: 16px; line-height: 24px; color: var(--tf-vert); }
.aide-cartes[hidden] { display: none; }
#panier-form { margin: 0; }

/* ---------- Mobile : barre basse et tiroir ---------- */
.barre { position: fixed; left: 0; right: 0; bottom: 0; z-index: 97; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 72px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-radius: 16px 16px 0 0; background: var(--tf-paille-leger); box-shadow: var(--tf-ombre); transition: background-color .3s; }
.barre-eclairee { background: var(--tf-paille); }
.barre-ouvrir { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex: 1; min-width: 0; min-height: 48px; padding: 0; border: 0; background: none; color: inherit; text-align: left; }
.barre-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.barre [hidden] { display: none !important; }
/* « Votre panier » dans la police du titre du panier desktop (consignes DA révision 2 §5). */
.boutique-page .barre-titre { font-family: "Ropest", "Ropest-fallback", cursive; font-weight: normal; font-size: 28px; line-height: 28px; color: var(--tf-orange); transform: rotate(-3deg); transform-origin: left center; display: inline-block; white-space: nowrap; }
.barre-detail { font-size: 16px; line-height: 24px; color: var(--tf-dark); white-space: nowrap; font-variant-numeric: tabular-nums; }
.barre-chevron { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; color: var(--tf-vert); }
.panier-voile { position: fixed; inset: 0; z-index: 1055; background: rgba(33, 37, 41, .5); }
.poignee { flex: none; width: 40px; height: 4px; margin: 8px auto 0; border-radius: 2px; background: var(--tf-vert-leger); }

@media (max-width: 991.98px) {
  .boutique { grid-template-columns: minmax(0, 1fr); padding-top: 32px; padding-bottom: 48px; }
  .boutique-panier-col { display: contents; position: static; }
  .boutique-alertes { order: -1; }
  .boutique-alertes:not(:empty) { margin-bottom: 32px; }

  /* Le panier devient un tiroir : hauteur de son contenu (85 % au plus, le corps défile), fermé hors écran. */
  .panier { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1060; max-height: 85vh; max-height: 85dvh; border-radius: 16px 16px 0 0; box-shadow: var(--tf-ombre); transform: translateY(100%); visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s; }
  .panier.ouvert { transform: none; visibility: visible; transition: transform .25s ease; }
  .panier-tete { padding: 16px 16px 12px; }
  .livraison-tete { padding: 0 16px; }
  .boutique-page .t-encadre { font-size: 32px; line-height: 36px; }
  .panier-corps { padding: 16px 16px 0; }
  .panier.est-vide .panier-corps { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
  .panier-pied { margin: 0; padding: 16px 16px calc(24px + env(safe-area-inset-bottom)); gap: 16px; }
  .panier-vide-msg { font-size: 18px; line-height: 27px; }
  /* La barre fixe (72 px) ne doit jamais recouvrir un « Ajouter au panier » amené à l'écran. */
  .carte { scroll-margin-bottom: 96px; }
  .ligne-eclairee { box-shadow: -16px 0 0 var(--tf-paille), 16px 0 0 var(--tf-paille); }

  /* La barre fixe ne doit pas masquer le bas du pied de page. */
  body:has(#panier-barre) { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  html.panier-ouvert { overflow: hidden; }
}

@media (max-width: 640px) {
  .grille { grid-template-columns: minmax(0, 1fr); }
  .carte-titre { font-size: 24px; line-height: 30px; }
  .carte-nom { margin-top: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .panier, .panier.ouvert, .ligne, .barre { transition: none; }
}

/* ---------- Fenêtre de détail ---------- */
.detail { width: min(960px, calc(100vw - 48px)); max-width: none; max-height: 85vh; max-height: 85dvh; margin: auto; padding: 0; border: 0; border-radius: 16px; background: #fff; color: var(--tf-texte); box-shadow: 0 24px 48px rgba(33, 37, 41, .18); overflow: hidden; }
.detail::backdrop { background: rgba(33, 37, 41, .5); }
.detail[open] { display: block; }
.detail-in { position: relative; display: grid; grid-template-columns: 408px minmax(0, 1fr); column-gap: 48px; align-items: start; max-height: 85vh; max-height: 85dvh; padding: 48px; overflow-y: auto; }
.detail p { margin: 0; }
.detail-fermer { position: absolute; top: 16px; right: 16px; z-index: 2; }
.detail-photo { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 1 / 1; border-radius: 16px; background: var(--tf-paille); overflow: hidden; }
.detail-photo { position: relative; }
.detail-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.detail-vignettes { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 16px; }
.detail-vignettes button { display: flex; align-items: center; justify-content: center; width: 80px; height: 80px; padding: 0; border: 1px solid transparent; border-radius: 8px; background: var(--tf-paille); cursor: pointer; }
.detail-vignettes button[aria-current="true"] { border: 2px solid var(--tf-orange); }
.detail-vignettes img { width: 100%; height: 100%; object-fit: cover; }
.detail-texte { min-width: 0; padding-right: 48px; }
.detail-nom { margin: 0; font-size: 32px; line-height: 36px; font-weight: 600; color: var(--tf-vert); }
.detail-prix { margin-top: 8px; font-size: 32px; line-height: 36px; font-weight: 600; font-variant-numeric: tabular-nums; }
.detail-desc { margin-top: 24px; font-size: 20px; line-height: 30px; white-space: pre-line; overflow-wrap: anywhere; }
.detail .carte-tailles { margin-top: 32px; }
.detail .stock { margin-top: 16px; }
.detail .carte-ajout { margin-top: 32px; padding-top: 0; }
.detail .carte-epuise { margin-top: 32px; padding-top: 0; min-height: 0; }
html.detail-ouvert { overflow: hidden; }

@media (max-width: 767.98px) {
  /* Plein écran en mobile. */
  .detail { width: 100%; height: 100%; max-height: none; border-radius: 0; box-shadow: none; }
  .detail-in { display: block; height: 100%; max-height: none; padding: 16px 16px calc(32px + env(safe-area-inset-bottom)); }
  .detail-fermer { position: sticky; top: 0; display: block; margin: 0 0 8px auto; }
  .detail-texte { padding-right: 0; margin-top: 24px; }
  .detail-prix { font-size: 24px; line-height: 28px; }
  .detail-desc { font-size: 18px; line-height: 27px; }
  .detail .carte-ajout { margin-top: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .detail { transition: none; }
}

/* ---------- Confirmation /boutique/merci (gabarit du site, comme la boutique et le suivi) ---------- */
.merci { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); column-gap: 24px; align-items: start; padding-top: 48px; padding-bottom: 96px; }
.merci-seul { grid-template-columns: minmax(0, 8fr); }
.merci-texte { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.merci-titre { margin: 0; font-size: 40px; line-height: 44px; font-weight: 600; color: var(--tf-vert); }
.merci-intro { font-size: 20px; line-height: 30px; color: var(--tf-vert); }
.merci-intro strong { font-weight: 600; }
.merci-numero { margin: 0; font-size: 28px; line-height: 34px; font-weight: 600; color: var(--tf-vert); font-variant-numeric: tabular-nums; }
.merci-section h3 { margin: 0 0 8px; font-size: 28px; line-height: 34px; font-weight: 600; color: var(--tf-vert); text-transform: uppercase; letter-spacing: .04em; }
.merci-section p { font-size: 18px; line-height: 27px; }
.merci-cadeau { margin-top: 16px; padding: 24px; border: 2px solid var(--tf-vert); border-radius: 16px; background: #fff; overflow-wrap: anywhere; }
.merci-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 32px; }
.merci-texte .info { width: 100%; }
.recap { position: sticky; top: 111px; display: flex; flex-direction: column; gap: 16px; padding: 32px; border-radius: 16px; background: var(--tf-paille-leger); }
.recap-lignes { margin: 0; padding: 0; list-style: none; }
.recap-ligne { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; column-gap: 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--tf-vert-leger); }
.recap-nom { display: block; font-size: 16px; line-height: 20px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.recap-detail { display: flex; flex-wrap: wrap; align-items: center; column-gap: 16px; font-size: 16px; line-height: 24px; color: var(--tf-vert); }
.recap-detail > span { display: inline-flex; align-items: center; gap: 8px; }

@media (max-width: 991.98px) {
  .merci { grid-template-columns: minmax(0, 1fr); row-gap: 32px; padding-top: 32px; padding-bottom: 48px; }
  .merci-titre { font-size: 32px; line-height: 36px; }
  .merci-intro { font-size: 18px; line-height: 27px; }
  .merci-section h3 { font-size: 24px; line-height: 30px; }
  .recap { position: static; padding: 24px 16px; }
}
@media (max-width: 575.98px) {
  .merci-page .container-xl { padding-inline: 16px; }
}

/* ---------- Suivi de commande (boutique/suivi.twig) ---------- */
.suivi-page .suivi { max-width: 600px; margin: 0 auto; padding: 48px 0 64px; display: flex; flex-direction: column; align-items: flex-start; gap: 32px; }
.suivi-page .info { width: 100%; }
@media (max-width: 575.98px) {
  .suivi-page .container-xl { padding-inline: 16px; }
  .suivi-numero { font-size: 32px; line-height: 36px; }
}
.suivi-numero { margin: 0; font-size: 40px; line-height: 44px; font-weight: 600; color: var(--tf-texte); font-variant-numeric: tabular-nums; }
.suivi-livraison { font-size: 18px; line-height: 27px; color: var(--tf-dark); }
.etapes { width: 100%; margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.etape { position: relative; display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 4px 24px; padding-bottom: 32px; }
.etape:last-child { padding-bottom: 0; }
.etape { --trait: var(--tf-orange); }
.etape.a-venir, .etape.courante { --trait: var(--tf-vert-leger); }
/* Tirets de 2 px (5 px plein, 5 px vide), continus d'une pastille à la suivante ; orange tant que l'étape est passée. */
.etape::before { content: ""; position: absolute; left: 11px; width: 2px; top: 26px; bottom: -2px; background: repeating-linear-gradient(to bottom, var(--trait) 0 5px, transparent 5px 10px); }
.etape:last-child::before { display: none; }
.pastille { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin-top: 2px; border-radius: 50%; background: var(--tf-vert); }
.courante .pastille { background: #fff; border: 2px solid var(--tf-orange); }
.courante .pastille::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--tf-orange); }
.a-venir .pastille { background: #fff; border: 2px solid var(--tf-vert-leger); }
.etape-nom { font-size: 16px; line-height: 28px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.etape.a-venir .etape-nom { color: var(--tf-vert); }
.etape-date { grid-column: 2; font-size: 18px; line-height: 27px; color: var(--tf-dark); }
.etape-plus { grid-column: 2; margin-top: 8px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.colis { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; font-size: 18px; line-height: 27px; }
.colis strong { font-variant-numeric: tabular-nums; }
.lien-externe { flex: none; margin-left: 8px; }
button[hidden] { display: none !important; }

@media (max-width: 991.98px) {
  .suivi-page .suivi { padding: 32px 0 48px; font-size: 18px; }
  .suivi-numero { font-size: 32px; line-height: 36px; }
}

/* ---------- FAQ : <details class="faq-item"> de l'accueil (public/css/faq.css) ---------- */
.faq { margin-top: 96px; padding-bottom: 96px; }
.faq-titre { margin: 0 0 24px; font-size: 28px; line-height: 34px; font-weight: 600; color: var(--tf-vert); }
@media (max-width: 991.98px) {
  /* La barre du panier (72 px) reste fixée en bas : la dernière réponse doit rester lisible au-dessus. */
  .faq { padding-bottom: 96px; }
}
@media (max-width: 640px) {
  .faq { margin-top: 64px; }
  .faq-titre { font-size: 24px; line-height: 30px; }
}
