/* Pages Suivi + Discussion : même design que « Passer commande » (charger après /commander/commander.css) */

/* ---------- motifs ---------- */
.motif { position: relative; overflow: hidden; isolation: isolate; }
.motif::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120' fill='none' stroke='%230a4bee' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' opacity='.35'%3E%3Cpath d='m14 22 10-5 10 5v11l-10 5-10-5Z'/%3E%3Cpath d='m14 22 10 5 10-5M24 27v11'/%3E%3Ccircle cx='86' cy='30' r='11'/%3E%3Cpath d='M75 30h22M86 19c4 4 4 18 0 22M86 19c-4 4-4 18 0 22'/%3E%3Cpath d='M30 84c10-14 30-16 44-6' stroke-dasharray='2 6'/%3E%3Cpath d='M70 74l5 4-6 3'/%3E%3Crect x='82' y='78' width='20' height='24' rx='3'/%3E%3Cpath d='M82 86h20M82 94h20M92 78v24'/%3E%3Ccircle cx='22' cy='100' r='2.4'/%3E%3Ccircle cx='60' cy='56' r='1.8'/%3E%3C/svg%3E");
  background-size: 120px 120px; animation: motif 60s linear infinite; }
@keyframes motif { to { background-position: 120px 120px; } }
.motif-fonce::before { opacity: .35; filter: brightness(2.2) saturate(.4); }

/* ---------- en-tête de page ---------- */
.page-titre { text-align: center; padding: 18px 0 6px; }
.page-titre h1 { margin: 0; font: 800 clamp(30px, 6.5vw, 46px)/1.04 var(--titre); letter-spacing: -.03em; }
.page-titre h1 span { background: linear-gradient(90deg, var(--rose), var(--rose-2) 55%, #0036b8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-titre p { margin: 10px auto 0; max-width: 480px; color: var(--doux); }

/* ---------- entrée du code ---------- */
.code-entree { margin: 22px auto 0; max-width: 460px; padding: 24px 20px; border-radius: 28px; background: #fff; box-shadow: var(--ombre); text-align: center; animation: entre .5s var(--ease) both; }
.code-entree .ic-g { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 20px; display: grid; place-items: center; background: var(--rose-pale); color: var(--rose); font-size: 30px; }
.code-entree h2 { margin: 0 0 4px; font: 800 22px var(--titre); }
.code-entree p { margin: 0 0 16px; color: var(--doux); font-size: 14.5px; }
.cases { display: flex; justify-content: center; gap: 7px; margin-bottom: 14px; }
.cases input { width: 46px; height: 58px; border-radius: 14px; border: 1.5px solid var(--trait); text-align: center; font: 800 26px var(--titre); background: #f5f7fc; transition: border-color .2s, box-shadow .2s, transform .2s; }
.cases input:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 4px var(--rose-pale); background: #fff; transform: translateY(-2px); }
.cases.ko input { border-color: var(--rouge); animation: secoue .4s; }
@media (max-width: 380px) { .cases input { width: 40px; height: 52px; } }
.code-entree .err { min-height: 20px; margin: 0 0 8px; color: var(--rouge); font-weight: 700; font-size: 14px; }
.code-entree .btn { width: 100%; }
.lien-doux { display: inline-block; margin-top: 12px; color: var(--doux); font-weight: 700; font-size: 14px; text-decoration: none; border: 0; background: none; cursor: pointer; }
.lien-doux:hover { color: var(--rose); }

/* ---------- carte d'accueil du suivi ---------- */
.bonjour-carte { margin-top: 18px; padding: 22px 20px; border-radius: 28px; color: #fff; background: linear-gradient(150deg, #0b1226, #10204a 60%, #153080); box-shadow: 0 20px 50px rgba(22, 18, 26, .28); animation: entre .5s var(--ease) both; }
.bonjour-carte h2 { margin: 0; font: 800 26px var(--titre); }
.bonjour-carte p { margin: 6px 0 0; color: #d6e2ff; }
.bonjour-code { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 8px 8px 8px 14px; border-radius: 14px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); font-weight: 800; letter-spacing: .12em; }
.bonjour-code button { border: 0; border-radius: 10px; padding: 6px 10px; background: #fff; color: var(--encre); font-weight: 800; font-size: 12.5px; letter-spacing: 0; cursor: pointer; }
.bonjour-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.bonjour-actions a { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 13px; background: rgba(255, 255, 255, .12); color: #fff; text-decoration: none; font-weight: 800; font-size: 14px; }
.bonjour-actions a.rose { background: var(--rose); }

/* ---------- cartes de suivi ---------- */
.suivi-liste { display: grid; gap: 16px; margin-top: 16px; }
.s-carte { background: #fff; border-radius: 26px; box-shadow: var(--ombre); overflow: hidden; animation: entre .5s var(--ease) both; }
.s-tete { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 18px 0; }
.s-tete h3 { margin: 0; font: 800 18px var(--titre); display: flex; align-items: center; gap: 8px; }
.s-tete small { display: block; color: var(--doux); font: 600 12.5px var(--corps); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 99px; font-size: 12.5px; font-weight: 800; white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.bleu { background: #e8eefc; color: #2457c5; } .pill.ambre { background: #fff1d6; color: #8a5a00; } .pill.vert { background: var(--vert-pale); color: #157146; } .pill.rouge { background: var(--rouge-pale); color: var(--rouge); } .pill.rose { background: var(--rose-pale); color: #0a3fcc; }
.pill.bat::before { animation: bat 1.4s infinite; } @keyframes bat { 50% { opacity: .25; } }
.s-corps { padding: 14px 18px 18px; display: grid; gap: 14px; }
.s-progres { height: 8px; border-radius: 9px; background: #edf1f9; overflow: hidden; }
.s-progres i { display: block; height: 100%; border-radius: 9px; background: linear-gradient(90deg, var(--rose), var(--rose-2)); width: 0; transition: width 1s var(--ease); }
.s-arts { display: grid; gap: 8px; }
.s-art { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 16px; background: #f5f7fc; }
.s-art .v { width: 46px; height: 46px; flex: none; border-radius: 12px; display: grid; place-items: center; background: #fff; font-size: 20px; overflow: hidden; }
.s-art .v img { width: 100%; height: 100%; object-fit: cover; }
.s-art b { display: block; font-size: 15px; } .s-art small { color: var(--doux); }
.s-msg { padding: 14px 16px; border-radius: 18px; background: var(--rose-pale); color: #0b2a7a; position: relative; }
.s-msg span { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #0a3fcc; margin-bottom: 4px; }
.s-msg p { margin: 0; }
.s-refus { padding: 14px 16px; border-radius: 18px; background: var(--rouge-pale); color: #7a1d18; }
.s-refus b { display: block; } .s-refus p { margin: 4px 0 6px; } .s-refus small { opacity: .8; }
.s-prix { display: grid; gap: 7px; padding: 14px 16px; border-radius: 18px; background: #f5f7fc; font-size: 14.5px; }
.s-prix div { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.s-prix img { height: 18px; max-width: 80px; object-fit: contain; vertical-align: middle; margin-right: 6px; background: #fff; border-radius: 5px; padding: 1px 4px; }
.s-prix .tot { padding-top: 8px; border-top: 1px dashed #d8dfee; font-weight: 800; font-size: 17px; }
.s-payer { display: grid; gap: 10px; padding: 16px; border-radius: 20px; background: linear-gradient(160deg, #0b1226, #10204a); color: #fff; }
.s-payer .tot { display: flex; justify-content: space-between; align-items: baseline; font-weight: 800; } .s-payer .tot b { font: 800 28px var(--titre); }
.s-payer .btn.plein { background: #fff; color: var(--encre); }
.s-payer .btn.ligne { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35); }
.s-payer small { color: #d3def5; font-size: 12.5px; }
.s-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 16px; background: #fff7e6; color: #6b4a00; font-size: 14px; }
.s-note.ok { background: var(--vert-pale); color: #145c3a; }
.s-liv { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; border: 1.5px solid #e4e9f4; }
.s-liv .lg { width: 62px; height: 40px; flex: none; display: grid; place-items: center; background: #fff; border-radius: 10px; box-shadow: 0 4px 12px rgba(20, 30, 70, .08); padding: 4px; }
.s-liv .lg img { max-width: 100%; max-height: 100%; object-fit: contain; }
.s-liv b { display: block; font-size: 14.5px; } .s-liv small { color: var(--doux); font-size: 13px; }
.s-num { display: grid; gap: 10px; padding: 14px 16px; border-radius: 18px; background: #f5f7fc; }
.s-num .l { display: flex; align-items: center; justify-content: space-between; gap: 10px; } .s-num code { font: 800 16px ui-monospace, Menlo, monospace; letter-spacing: .04em; }
.s-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; } .s-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }
.s-photos video { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: #000; grid-column: span 2; }
.s-notes { margin-top: 8px; display: grid; gap: 6px; } .s-notes p { margin: 0; font-size: 14px; } .s-notes small { opacity: .6; }

/* frise des étapes */
.frise { list-style: none; margin: 0; padding: 0; display: grid; }
.frise li { position: relative; display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding-bottom: 14px; animation: entre .45s var(--ease) both; }
.frise li:last-child { padding-bottom: 0; }
.frise li::before { content: ""; position: absolute; left: 16px; top: 34px; bottom: 0; width: 2px; background: #e4e9f4; }
.frise li:last-child::before { display: none; }
.frise li.fait::before { background: linear-gradient(var(--vert), #8ed7ae); }
.frise .pt { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid #dfe5f1; color: #a9b3c9; z-index: 1; }
.frise .pt svg { width: 16px; height: 16px; }
.frise li.fait .pt { background: var(--vert); border-color: var(--vert); color: #fff; }
.frise li.actuel .pt { border-color: var(--rose); color: var(--rose); box-shadow: 0 0 0 6px var(--rose-pale); animation: bat 1.6s infinite; }
.frise li.refus .pt { background: var(--rouge); border-color: var(--rouge); color: #fff; }
.frise b { display: block; font-size: 14.5px; padding-top: 6px; } .frise li:not(.fait):not(.actuel):not(.refus) b { color: #8a93a8; }
.frise small { color: var(--doux); font-size: 12.5px; }

.suivi-bas { display: grid; gap: 10px; margin-top: 18px; }

/* ---------- discussion ---------- */
.chat { display: flex; flex-direction: column; height: calc(100dvh - 63px - env(safe-area-inset-top)); max-width: 760px; margin: 0 auto; }
@media (max-width: 760px) { .chat { height: calc(100dvh - 63px - 100px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); } }
.chat-tete { display: flex; align-items: center; gap: 12px; margin: 12px 16px 0; padding: 14px 16px; border-radius: 22px; background: #fff; box-shadow: var(--ombre); }
.chat-tete .av { width: 46px; height: 46px; flex: none; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, #3d7bff, #0a4bee 60%, #0036b8); color: #fff; font: 800 15px var(--titre); position: relative; }
.chat-tete .av i { position: absolute; right: -2px; bottom: -2px; width: 13px; height: 13px; border-radius: 50%; background: #a9b3c9; border: 2.5px solid #fff; }
.chat-tete .av i.en-ligne { background: var(--vert); }
.chat-tete b { display: block; font: 800 16px var(--titre); } .chat-tete small { color: var(--doux); font-size: 13px; }
.chat-fil { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 16px; display: flex; flex-direction: column; gap: 6px; scroll-behavior: smooth; }
.jour { align-self: center; margin: 10px 0 4px; padding: 4px 12px; border-radius: 99px; background: rgba(255, 255, 255, .8); color: var(--doux); font-size: 12px; font-weight: 800; }
.bulle { max-width: 78%; padding: 10px 14px; border-radius: 20px; font-size: 15px; line-height: 1.4; word-wrap: break-word; animation: bulle .35s cubic-bezier(.3, 1.4, .5, 1) both; box-shadow: 0 2px 8px rgba(20, 30, 70, .06); }
@keyframes bulle { from { opacity: 0; transform: translateY(8px) scale(.96); } }
.bulle.moi { align-self: flex-end; background: linear-gradient(135deg, #2f6bff, #0a4bee); color: #fff; border-bottom-right-radius: 6px; }
.bulle.eux { align-self: flex-start; background: #fff; border-bottom-left-radius: 6px; }
.bulle img { display: block; max-width: 220px; width: 100%; border-radius: 14px; margin: 2px 0; }
.bulle .h { display: block; margin-top: 3px; font-size: 11px; opacity: .65; text-align: right; }
.bulle.supp { font-style: italic; opacity: .6; }
.sys { align-self: center; max-width: 88%; padding: 8px 12px; border-radius: 14px; background: rgba(255, 255, 255, .7); color: var(--doux); font-size: 13px; text-align: center; }
.carte-cmd { align-self: flex-start; max-width: 82%; padding: 12px 14px; border-radius: 18px; background: #0b1226; color: #fff; }
.carte-cmd span { font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #a9c4ff; } .carte-cmd b { display: block; margin-top: 3px; }
.vu { align-self: flex-end; font-size: 11.5px; font-weight: 700; color: var(--doux); margin-top: -2px; }
.ecrit { align-self: flex-start; display: inline-flex; gap: 4px; padding: 12px 14px; border-radius: 20px; background: #fff; }
.ecrit i { width: 7px; height: 7px; border-radius: 50%; background: #b6c0d6; animation: pts 1.2s infinite; } .ecrit i:nth-child(2) { animation-delay: .15s; } .ecrit i:nth-child(3) { animation-delay: .3s; }
@keyframes pts { 30% { transform: translateY(-4px); background: var(--rose); } }
.chat-sugg { display: flex; gap: 8px; overflow-x: auto; padding: 0 16px 8px; scrollbar-width: none; }
.chat-sugg button { flex: none; padding: 8px 12px; border-radius: 99px; border: 1.5px solid var(--trait); background: #fff; font-weight: 700; font-size: 13.5px; cursor: pointer; }
.chat-sugg button:hover { border-color: var(--rose); color: var(--rose); }
.chat-saisie { display: flex; align-items: flex-end; gap: 8px; margin: 0 12px 12px; padding: 8px; border-radius: 24px; background: #fff; box-shadow: var(--ombre-forte); }
.chat-saisie textarea { flex: 1; min-height: 42px; max-height: 120px; padding: 10px 8px; border: 0; resize: none; font-size: 16px; background: transparent; }
.chat-saisie textarea:focus { outline: none; }
.chat-saisie label, .chat-saisie button { flex: none; width: 42px; height: 42px; border-radius: 16px; display: grid; place-items: center; border: 0; cursor: pointer; font-size: 19px; }
.chat-saisie label { background: #eef2fa; color: var(--doux); } .chat-saisie label input { display: none; }
.chat-saisie button { background: var(--rose); color: #fff; transition: transform .2s; } .chat-saisie button:disabled { opacity: .5; } .chat-saisie button:active { transform: scale(.9); }
.chat-saisie button svg { width: 20px; height: 20px; }

.chat-tete .av img { width: 100%; height: 100%; border-radius: 16px; object-fit: cover; }
.code-entree .ic-g img, .bonjour-logo { display: block; }

/* animation de l'étape en haut de chaque carte (comme l'ancien suivi) */
.s-anim { height: 180px; background: linear-gradient(180deg, var(--rose-pale), #fff); display: grid; place-items: center; overflow: hidden; }
.s-anim svg { max-height: 100%; width: auto !important; }
@media (max-width: 420px) { .s-anim { height: 150px; } }

/* ---------- Notifications client (carte + feuille) ---------- */
#notif-carte { margin: 4px 0 16px; }
.nf-carte { position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 16px 16px 16px 14px; border-radius: var(--r); background: #fff; box-shadow: var(--ombre); border: 1px solid #fff; animation: nf-entre .55s var(--ease) both; overflow: hidden; }
.nf-carte::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: linear-gradient(180deg, var(--rose-2), var(--rose)); }
.nf-carte.nf-bloque::before, .nf-carte.nf-http::before { background: #a9b3c9; }
.nf-carte.nf-actif::before { background: var(--vert); }
@keyframes nf-entre { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.nf-carte.nf-part { transition: opacity .4s, transform .4s var(--ease); opacity: 0; transform: translateY(-6px) scale(.97); }
.nf-ic { flex: none; width: 44px; height: 44px; border-radius: 15px; display: grid; place-items: center; font-size: 22px; background: var(--rose-pale); }
.nf-proposer .nf-ic { animation: nf-sonne 2.6s ease-in-out .6s infinite; transform-origin: 50% 10%; }
@keyframes nf-sonne { 0%, 70%, 100% { transform: rotate(0); } 74% { transform: rotate(14deg); } 80% { transform: rotate(-12deg); } 86% { transform: rotate(8deg); } 92% { transform: rotate(-4deg); } }
.nf-actif .nf-ic { background: var(--vert-pale); }
.nf-bravo .nf-ic { animation: nf-pop .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes nf-pop { from { transform: scale(.4); } }
.nf-txt { flex: 1; min-width: 0; }
.nf-txt b { display: block; font: 800 16px/1.25 var(--titre); }
.nf-txt p { margin: 4px 0 0; color: var(--doux); font-size: 14px; line-height: 1.45; }
.nf-btn { margin-top: 12px; padding: 11px 16px; border: 0; border-radius: 14px; background: linear-gradient(135deg, var(--rose-2), var(--rose)); color: #fff; font: 800 14.5px var(--corps); cursor: pointer; box-shadow: 0 8px 20px rgba(10, 75, 238, .25); transition: transform .15s; }
.nf-btn:active { transform: scale(.96); } .nf-btn:disabled { opacity: .7; }
.nf-err { color: var(--rouge) !important; font-weight: 700; font-size: 13px !important; } .nf-err:empty { display: none; }
.nf-x { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border: 0; border-radius: 10px; background: transparent; color: var(--doux); font-size: 20px; cursor: pointer; }
.nf-x:hover { background: #eef2fa; }
.nf-etapes { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.nf-etapes li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.nf-etapes li span { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--encre); color: #fff; font: 800 12px var(--corps); }
.nf-etapes svg { width: 17px; height: 17px; fill: none; stroke: var(--rose); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }
.nf-voile { position: fixed; inset: 0; z-index: 120; background: rgba(10, 16, 35, 0); display: flex; align-items: flex-end; justify-content: center; transition: background .3s; }
.nf-voile.ouvert { background: rgba(10, 16, 35, .38); }
.nf-feuille { width: 100%; max-width: 480px; padding: 10px 14px calc(18px + env(safe-area-inset-bottom)); border-radius: 26px 26px 0 0; background: var(--fond); transform: translateY(100%); transition: transform .38s var(--ease); }
.nf-voile.ouvert .nf-feuille { transform: none; }
.nf-poignee { display: block; width: 40px; height: 5px; margin: 0 auto 12px; border-radius: 9px; background: #cfd6e4; }
@media (min-width: 761px) { .nf-voile { align-items: center; } .nf-feuille { border-radius: 26px; transform: translateY(20px) scale(.97); opacity: 0; transition: transform .3s var(--ease), opacity .3s; } .nf-voile.ouvert .nf-feuille { opacity: 1; } }

/* les animations dessinent elles-mêmes leurs traits : pas de contour hérité des icônes (sinon des barres noires apparaissent) */
.s-anim svg { stroke: none; stroke-width: 1; fill: initial; }

/* « Arrivé en France » */
.fr-anim { padding: 8px 0; }
.fr-svg { height: 100%; width: auto; overflow: visible; }
.fr-pays { fill: #e7eefe; stroke: #0a4bee; stroke-width: 1.6; stroke-linejoin: round; }
.fr-arrivee { fill: none; stroke: #0a4bee; stroke-width: 1.6; stroke-dasharray: 3 5; opacity: .55; }
.fr-route { fill: none; stroke: #0b1226; stroke-width: 1.8; stroke-dasharray: 160; stroke-dashoffset: 160; animation: fr-route 6s infinite; }
.fr-entrepot path { fill: #0b1226; } .fr-entrepot .porte { fill: #fff; animation: fr-porte 6s infinite; }
.fr-locker rect { fill: #0a4bee; } .fr-locker path { fill: none; stroke: #fff; stroke-width: 1.4; } .fr-locker { animation: fr-locker 6s infinite; transform-box: fill-box; transform-origin: center bottom; }
.fr-colis path { fill: #c8955c; stroke: #6b4320; stroke-width: 1; stroke-linejoin: round; }
.fr-colis { offset-path: path("M214 6 C 190 20, 170 40, 140 84"); offset-rotate: 0deg; animation: fr-colis 6s infinite; }
@keyframes fr-colis { 0% { offset-distance: 0%; opacity: 0; transform: scale(1.4); } 8% { opacity: 1; } 42% { offset-distance: 100%; transform: scale(1); opacity: 1; } 50%, 100% { offset-distance: 100%; transform: scale(.3); opacity: 0; } }
@keyframes fr-porte { 0%, 40% { fill: #fff; } 46%, 62% { fill: #ffd34d; } 70%, 100% { fill: #fff; } }
@keyframes fr-route { 0%, 55% { stroke-dashoffset: 160; } 85%, 100% { stroke-dashoffset: 0; } }
@keyframes fr-locker { 0%, 80% { transform: scale(1); } 88% { transform: scale(1.25); } 96%, 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .fr-colis { display: none; } .fr-route { stroke-dashoffset: 0; animation: none; } }
/* 17TRACK */
.s-17 .b17 { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: #0b1226; color: #fff; font: 800 15px var(--titre); }
.s-17 .lien-doux { text-align: center; margin-top: 0; }
.nf-ic { color: var(--rose); } .nf-actif .nf-ic { color: var(--vert); } .nf-bloque .nf-ic, .nf-http .nf-ic, .nf-impossible .nf-ic { color: var(--doux); }
.nf-ic .ico { width: 22px; height: 22px; }
.ic-g svg { width: 30px !important; height: 30px !important; }

/* ---------- Photos/vidéos de l'article à valider (messages + suivi) ---------- */
.carte-prop { align-self: stretch; margin: 8px 0; padding: 14px; border-radius: 22px; background: #fff; box-shadow: 0 10px 30px rgba(20, 30, 70, .1); border: 1px solid #fff; animation: nf-entre .45s var(--ease) both; }
.cp-tete { display: flex; align-items: center; gap: 10px; } .cp-tete > .ico { width: 38px; height: 38px; padding: 9px; border-radius: 12px; background: var(--rose-pale); color: var(--rose); }
.cp-tete b { display: block; font: 800 16px var(--titre); } .cp-tete small { color: var(--doux); font-size: 13px; }
.prop-medias { display: flex; gap: 8px; margin: 12px -14px 0; padding: 0 14px 4px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.prop-medias .pm { flex: none; width: 72%; max-width: 260px; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; background: #e8edf6; scroll-snap-align: start; padding: 0; border: 0; cursor: zoom-in; object-fit: cover; }
.prop-medias .pm img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prop-medias video.pm { cursor: default; background: #000; }
.prop-msg { margin: 10px 0 0; padding: 10px 12px; border-radius: 14px; background: var(--fond); font-size: 14px; }
.prop-prix { margin-top: 12px; display: grid; gap: 4px; font-size: 14px; }
.prop-prix div { display: flex; justify-content: space-between; color: var(--doux); } .prop-prix b { color: var(--encre); }
.prop-prix .tot { margin-top: 4px; padding-top: 8px; border-top: 1px solid var(--trait); color: var(--encre); font-weight: 800; } .prop-prix .tot b { font: 800 20px var(--titre); }
.prop-act { display: grid; gap: 8px; margin-top: 12px; }
.prop-ok { display: flex; align-items: center; justify-content: center; gap: 8px; height: 50px; border: 0; border-radius: 16px; background: var(--vert); color: #fff; font: 800 16px var(--corps); text-decoration: none; cursor: pointer; box-shadow: 0 10px 24px rgba(26, 156, 91, .28); transition: transform .15s; }
.prop-ok:active { transform: scale(.97); } .prop-ok:disabled { opacity: .7; }
.prop-non { height: 44px; border: 1.5px solid var(--trait); border-radius: 14px; background: #fff; color: var(--encre); font: 700 14.5px var(--corps); cursor: pointer; }
.prop-autre { display: grid; gap: 6px; } .prop-autre textarea { width: 100%; padding: 10px 12px; border: 1.5px solid var(--trait); border-radius: 14px; font: 16px var(--corps); resize: vertical; }
.prop-autre button { height: 42px; border: 0; border-radius: 12px; background: var(--encre); color: #fff; font-weight: 800; cursor: pointer; }
.prop-info { margin: 10px 0 0; color: var(--doux); font-size: 14px; }
.carte-prop.dans-suivi { margin: 12px 0 0; box-shadow: none; border: 1.5px solid var(--rose-pale); }

/* ===================== Suivi : tout sur un seul écran (la page ne défile pas) ===================== */
body.suivi-ouvert { height: 100svh; overflow: hidden; display: flex; flex-direction: column; box-sizing: border-box; }
body.suivi-ouvert .haut { flex: none; position: relative; }
body.suivi-ouvert main.page { flex: 1; min-height: 0; width: 100%; display: flex; flex-direction: column; gap: 10px; padding: 8px 16px 10px !important; }
body.suivi-ouvert .page-titre { display: none; }
body.suivi-ouvert #notif-carte { flex: none; margin: 0; }
body.suivi-ouvert #notif-carte .nf-carte { padding: 10px 12px; gap: 10px; align-items: center; }
body.suivi-ouvert #notif-carte .nf-ic { width: 34px; height: 34px; border-radius: 11px; }
body.suivi-ouvert #notif-carte .nf-txt p:not(.nf-err), body.suivi-ouvert #notif-carte .nf-etapes { display: none; }
body.suivi-ouvert #notif-carte .nf-txt { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; } body.suivi-ouvert #notif-carte .nf-txt b { font-size: 14px; }
body.suivi-ouvert #notif-carte .nf-btn { margin: 0; padding: 8px 12px; font-size: 13px; }
body.suivi-ouvert #resultat { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; }

.bonjour-mini { flex: none; display: flex; align-items: center; gap: 8px; padding: 10px 10px 10px 16px; border-radius: 20px; background: linear-gradient(135deg, #0b1226, #13214a); color: #fff; box-shadow: 0 10px 26px rgba(11, 18, 38, .2); }
.bonjour-mini > div { flex: 1; min-width: 0; } .bonjour-mini b { display: block; font: 800 17px var(--titre); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bonjour-mini small { color: #a9b8d8; font-size: 12.5px; font-weight: 700; } .bonjour-mini small button { margin-left: 4px; padding: 2px 8px; border: 0; border-radius: 99px; background: rgba(255,255,255,.14); color: #fff; font: 700 11.5px var(--corps); cursor: pointer; }
.bm-msg { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 13px; background: rgba(255,255,255,.12); color: #fff; } .bm-msg .ico { width: 20px; height: 20px; }
.bm-plus { flex: none; display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 12px; border-radius: 13px; background: var(--rose); color: #fff; font: 800 13.5px var(--corps); text-decoration: none; } .bm-plus .ico { width: 16px; height: 16px; stroke-width: 2.4; }

body.suivi-ouvert .suivi-liste { flex: 1; min-height: 0; margin: 0 -16px; padding: 0 16px; display: flex; gap: 12px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
body.suivi-ouvert .suivi-liste::-webkit-scrollbar { display: none; }
body.suivi-ouvert .s-carte { flex: 0 0 100%; min-width: 0; display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; scroll-snap-align: center; scrollbar-width: none; }
.s-haut { display: flex; align-items: center; gap: 12px; padding: 12px 12px 0; }
.s-haut .s-anim { flex: none; width: 92px; height: 84px !important; border-radius: 18px; }
.s-haut .s-tete { flex: 1; min-width: 0; padding: 0; flex-direction: column; align-items: flex-start; gap: 6px; border: 0; }
.s-haut .s-tete h3 { font-size: 17px; }
body.suivi-ouvert .s-corps { padding: 12px 14px 14px; gap: 10px; }

/* frise horizontale */
.fh { padding: 10px 12px; border-radius: 16px; background: var(--fond); }
.fh-pts { display: flex; gap: 4px; } .fh-pts i { flex: 1; height: 6px; border-radius: 9px; background: #dfe5f1; transition: background .4s; }
.fh-pts i.fait { background: linear-gradient(90deg, var(--rose-2), var(--rose)); } .fh-pts i.cur { box-shadow: 0 0 0 3px var(--rose-pale); }
.fh-txt { margin-top: 8px; } .fh-txt b { display: block; font: 800 15px var(--titre); } .fh-txt small { color: var(--doux); font-size: 12.5px; }
.s-suivre { width: 100%; }

/* détails repliés dans la carte */
.s-plus { border-radius: 16px; border: 1.5px solid var(--trait); }
.s-plus summary { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; font-weight: 800; font-size: 14px; cursor: pointer; list-style: none; }
.s-plus summary::-webkit-details-marker { display: none; }
.s-plus summary span { color: var(--doux); transition: transform .25s; } .s-plus[open] summary span { transform: rotate(90deg); }
.s-plus-c { display: grid; gap: 12px; padding: 0 14px 14px; }

/* photos à valider : plus petites dans le suivi */
body.suivi-ouvert .carte-prop.dans-suivi { margin: 0; padding: 12px; }
body.suivi-ouvert .dans-suivi .prop-medias .pm { width: auto; height: 120px; aspect-ratio: 4 / 5; }
body.suivi-ouvert .dans-suivi .prop-prix { margin-top: 8px; } body.suivi-ouvert .dans-suivi .prop-ok { height: 46px; }

.suivi-points { flex: none; display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--doux); font-size: 12px; font-weight: 700; }
.suivi-points i { width: 7px; height: 7px; border-radius: 50%; background: #cfd6e4; transition: all .25s; } .suivi-points i.on { width: 18px; border-radius: 9px; background: var(--rose); } .suivi-points span { margin-left: 6px; }
.suivi-autre { flex: none; align-self: center; padding: 2px 8px; border: 0; background: none; color: var(--doux); font: 700 12px var(--corps); text-decoration: underline; cursor: pointer; }
@media (min-width: 761px) { body.suivi-ouvert .s-carte { max-width: 640px; } body.suivi-ouvert .suivi-liste.plusieurs .s-carte { flex-basis: 640px; } }
@media (max-height: 640px) { .s-haut .s-anim { width: 72px; height: 64px !important; } .bonjour-mini { padding: 8px 8px 8px 14px; } }
/* carte « photos à valider » compacte dans le suivi */
.dans-suivi .prop-medias { margin-top: 0; }
body.suivi-ouvert .dans-suivi .prop-medias .pm { height: 96px; }
.prop-ligne { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.prop-ligne span { font-weight: 800; } .prop-ligne small { display: block; color: var(--doux); font-size: 12px; font-weight: 600; } .prop-ligne b { font: 800 20px var(--titre); white-space: nowrap; }
.prop-act.duo { grid-template-columns: 1fr auto; } .prop-act.duo .prop-autre { grid-column: 1 / -1; }
.prop-act.duo .prop-non { padding: 0 14px; height: 46px; }
@media (max-height: 640px) { body.suivi-ouvert .dans-suivi .prop-medias .pm { height: 78px; } body.suivi-ouvert .fh { padding: 8px 10px; } }
/* gain de place (le bouton principal reste visible sans faire défiler) */
.suivi-pied { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 18px; }
.suivi-pied .suivi-points { justify-content: flex-start; }
.bonjour-mini { padding: 7px 7px 7px 14px; } .bonjour-mini b { font-size: 16px; } .bm-msg, .bm-plus { height: 38px; } .bm-msg { width: 38px; }
.s-haut { padding-top: 10px; } body.suivi-ouvert .s-corps { gap: 8px; padding-top: 10px; }
.s-prop .fh { padding: 8px 10px; } .s-prop .fh-txt { margin-top: 6px; } .s-prop .fh-txt small { display: none; }
body.suivi-ouvert .dans-suivi .prop-medias .pm { height: 84px; }
@media (max-height: 640px) { body.suivi-ouvert .dans-suivi .prop-medias .pm { height: 70px; } body.suivi-ouvert main.page { gap: 8px; } }
/* photo du produit en haut de la carte de suivi */
.s-photo-p { flex: none; width: 92px; height: 84px; border-radius: 18px; overflow: hidden; background: #e8edf6; box-shadow: 0 6px 16px rgba(20, 30, 70, .12); }
.s-photo-p img { width: 100%; height: 100%; object-fit: cover; display: block; }
.s-haut .s-tete h3 { display: block; min-width: 0; line-height: 1.2; }
.s-nom { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.s-haut .s-tete h3 small { display: block; margin-top: 2px; }
@media (max-height: 640px) { .s-photo-p { width: 72px; height: 64px; } }

/* ---------- 07/11 : photo + animation de l'étape (pastille) ---------- */
.s-visu { position: relative; flex: none; width: 92px; height: 84px; }
.s-visu .s-photo-p { position: relative; z-index: 1; }
.s-badge { position: absolute; z-index: 2; right: -10px; bottom: -10px; width: 50px; height: 50px; border-radius: 50%; background: #fff; display: grid; place-items: center; overflow: hidden;
  box-shadow: 0 6px 18px rgba(20, 30, 70, .22), 0 0 0 3px #fff; animation: badgeIn .6s cubic-bezier(.34, 1.56, .64, 1) both, flotte 3.2s ease-in-out .6s infinite; }
.s-badge .s-anim { width: 100% !important; height: 100% !important; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #fff, #eef3ff); padding: 3px; }
.s-badge.b-vert { box-shadow: 0 6px 18px rgba(22, 120, 60, .25), 0 0 0 3px #22a45d; }
.s-badge.b-ambre { box-shadow: 0 6px 18px rgba(180, 110, 0, .25), 0 0 0 3px #f2a516; }
.s-badge.b-rose { box-shadow: 0 6px 18px rgba(10, 75, 238, .25), 0 0 0 3px #0a4bee; }
.s-badge.b-bleu { box-shadow: 0 6px 18px rgba(10, 75, 238, .2), 0 0 0 3px #7fa2ff; }
.s-halo { position: absolute; z-index: 0; right: -10px; bottom: -10px; width: 50px; height: 50px; border-radius: 50%; animation: halo 2.4s ease-out infinite; }
.h-bleu, .h-rose { background: rgba(10, 75, 238, .35); } .h-vert { background: rgba(34, 164, 93, .4); } .h-ambre { background: rgba(242, 165, 22, .45); }
@keyframes badgeIn { from { transform: scale(0) rotate(-30deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes flotte { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes halo { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.9); opacity: 0; } }
@media (max-height: 640px) { .s-visu { width: 72px; height: 64px; } .s-badge, .s-halo { width: 42px; height: 42px; } }
/* sans photo : l'animation en grand, avec un fond qui respire */
.s-haut > .s-anim { background: radial-gradient(circle at 50% 45%, #fff 0%, #e6edff 70%); box-shadow: inset 0 0 0 1px rgba(10, 75, 238, .08); animation: badgeIn .6s cubic-bezier(.34, 1.56, .64, 1) both; }

/* ---------- note sur 5 étoiles ---------- */
.s-avis { display: grid; justify-items: center; gap: 6px; padding: 14px 12px; border-radius: 18px; text-align: center;
  background: linear-gradient(160deg, #fff8e6, #fff); border: 1px solid #f7dfa0; animation: badgeIn .5s ease both; }
.s-avis b { font-size: 16px; } .s-avis small { opacity: .7; }
.av-et { display: flex; gap: 6px; }
.av-et button, .av-et i { width: 40px; height: 40px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.av-et.fixe i { width: 24px; height: 24px; cursor: default; }
.av-et svg { width: 100%; height: 100%; fill: #e3e6ee; stroke: none !important; transition: fill .2s, transform .2s; }
.av-et .on svg { fill: #f5b301; filter: drop-shadow(0 2px 4px rgba(245, 179, 1, .45)); }
.av-et button:hover svg { transform: scale(1.12); }
.av-et .pop svg { animation: pop .45s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes pop { 0% { transform: scale(.6); } 60% { transform: scale(1.35) rotate(8deg); } 100% { transform: scale(1); } }
.av-mot { font-weight: 800; font-size: 14px; color: #b07d00; min-height: 18px; }
.av-suite { display: grid; gap: 8px; width: 100%; }
.av-suite textarea { width: 100%; border: 1px solid #e6dcc0; border-radius: 12px; padding: 10px; font: inherit; resize: none; background: #fff; }
.s-avis.merci { animation: merci .9s ease both; } @keyframes merci { 50% { transform: scale(1.04); } }
.s-avis.fait p { font-style: italic; margin: 0; }
@media (prefers-reduced-motion: reduce) { .s-badge, .s-halo, .av-et .pop svg { animation: none !important; } }
.s-visu .s-photo-p { display: block; width: 100%; height: 100%; }
.s-badge, .s-halo { width: 44px; height: 44px; right: -8px; bottom: -8px; }

/* Nouvelles animations du suivi : entrepôt en France, camion Mondial Relay */
.x-anim { padding: 6px; }
.x-svg { height: 100%; width: auto; overflow: visible; }
.afr-colis { animation: afrColis 3.2s cubic-bezier(.45,0,.3,1) infinite; }
@keyframes afrColis { 0% { transform: translate(-28px, 82px); opacity: 0; } 12% { opacity: 1; } 55% { transform: translate(49px, 82px); opacity: 1; } 68%, 100% { transform: translate(49px, 82px); opacity: 0; } }
.afr-ok { transform-origin: 98px 30px; animation: afrOk 3.2s ease-out infinite; }
@keyframes afrOk { 0%, 58% { transform: scale(0); } 70% { transform: scale(1.2); } 78%, 100% { transform: scale(1); } }
.amr-van { animation: amrVan .45s ease-in-out infinite alternate; }
@keyframes amrVan { to { transform: translateY(-1.6px); } }
.amr-route { stroke-dasharray: 10 9; animation: amrRoute .5s linear infinite; }
@keyframes amrRoute { to { stroke-dashoffset: 19; } }
.amr-vent { animation: amrVent .7s ease-in-out infinite; }
@keyframes amrVent { 0% { transform: translateX(6px); opacity: 0; } 40% { opacity: .55; } 100% { transform: translateX(-6px); opacity: 0; } }
.amr-locker { animation: amrLocker 2.4s ease-in-out infinite; transform-origin: 102px 29px; }
@keyframes amrLocker { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .afr-colis, .afr-ok, .amr-van, .amr-route, .amr-vent, .amr-locker { animation: none !important; } .afr-colis { transform: translate(30px, 82px); } }

/* Paiement : Apple Pay + PayPal */
.pp-zone { display: grid; gap: 10px; }
.pp-apple { display: grid; gap: 10px; }
apple-pay-button { display: block; --apple-pay-button-width: 100%; --apple-pay-button-height: 50px; --apple-pay-button-border-radius: 999px; --apple-pay-button-padding: 0; --apple-pay-button-box-sizing: border-box; }
.pp-ou { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; opacity: .6; }
.pp-ou::before, .pp-ou::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .35; }
.pp-boutons { min-height: 48px; border-radius: 16px; overflow: hidden; background: #fff; padding: 6px 6px 0; }
.pp-err { margin: 0; font-weight: 700; font-size: 14px; color: #ffb4b4; }
.pp-err:empty { display: none; }
.pp-lien { display: grid; gap: 10px; }
/* détails affichés directement (plus de flèche) */
.s-plus-c.ouvert { padding: 0; display: grid; gap: 12px; }
.s-corps > .frise { margin-bottom: 4px; }

/* Petite animation quand on passe d'une page à l'autre (Safari 18 / Chrome : natif, sans librairie) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-sort .22s cubic-bezier(.4, 0, 1, 1) both; }
::view-transition-new(root) { animation: vt-entre .38s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes vt-sort { to { opacity: 0; transform: translateY(-10px) scale(.99); } }
@keyframes vt-entre { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) { ::view-transition-old(root), ::view-transition-new(root) { animation: none; } }
/* suivi : tout est affiché directement → la page défile normalement (plus de carte qui défile à l'intérieur) */
body.suivi-ouvert { height: auto; min-height: 100svh; overflow: visible; }
body.suivi-ouvert main.page { flex: none; }
body.suivi-ouvert #resultat { flex: none; }
body.suivi-ouvert .suivi-liste { flex: none; align-items: flex-start; overflow-y: visible; }
body.suivi-ouvert .s-carte { overflow: hidden; overflow-y: visible; height: auto; }
