:root {
    /* Charte LDS-IT (cf. siteloracle/public/css/style.css) reprise pour
       harmoniser TopDelivery avec le reste du portefeuille produits :
       fond marine, bleu/or/vert comme couleurs de statut/valeur, argent
       dédié aux boutons d'action. */
    --marine:      #1e2a3b;
    --marine-2:    #15202e;
    --marine-3:    #263a52;
    --ink: var(--marine-2);
    --panel: var(--marine);
    --panel-2: var(--marine-3);
    --hair: rgba(255, 255, 255, 0.08);
    --hair-strong: rgba(255, 255, 255, 0.18);
    --text: #f1f5f9;
    --muted: #94a3b8;

    --bleu: #3b82f6;
    --or: #e3a93a;
    --or-fonce: #b8830f;
    --vert: #10b981;
    --rouge: #ef4444;

    --accent: var(--bleu);
    --argent-clair: #eef1f5;
    --argent-fonce: #b9c2cf;
    --argent-ink: var(--marine);

    --rayon: 10px;

    --font-display: 'Plus Jakarta Sans', -apple-system, "Segoe UI", sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    --font-mono: 'DM Mono', "SFMono-Regular", Consolas, Menlo, monospace;
}

* { box-sizing: border-box; }

/* Base légèrement sous les 16px navigateur : toutes les tailles du fichier
   sont en rem, donc ce seul réglage réduit proportionnellement l'ensemble
   du texte sans avoir à retoucher chaque règle. */
html { font-size: 15px; }

body {
    margin: 0;
    font-family: var(--font-body);
    background: var(--ink);
    color: var(--text);
}

.display { font-family: var(--font-display); }
.mono { font-family: var(--font-mono); }

a { color: var(--accent); }

/* ---------- En-tête (pages internes : connexion, restaurant, livreur) ---------- */

.entete-app {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: var(--panel);
    border-bottom: 1px solid var(--hair);
    position: sticky;
    top: 0;
    z-index: 10;
}

.entete-app-marque {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    color: var(--text);
}

.entete-app-utilisateur {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.88rem;
    color: var(--muted);
}

.entete-app-utilisateur a {
    text-decoration: none;
    font-weight: 600;
}

.badge-notif-lien {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--muted) !important;
    font-weight: 600 !important;
}
.badge-notif-lien:hover { color: var(--or) !important; }

.badge-notif-nombre {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--muted);
    background: var(--panel-2);
    border-radius: 10px;
    padding: 1px 6px;
    min-width: 16px;
    text-align: center;
}
.badge-notif-nombre.actif {
    color: #fff;
    background: var(--rouge);
}

.contenu-app {
    padding: 24px 40px 60px;
}

/* Formulaires (pas les tableaux) : rester lisible plutôt que d'étirer les
   champs de saisie sur toute la largeur de la page. */
.carte-formulaire { max-width: 480px; }

.contenu-app h1 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.sous-titre {
    color: var(--muted);
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.sous-titre a { color: var(--muted); text-decoration: underline; }
.sous-titre a:hover { color: var(--accent); }

/* ---------- Composants partagés ---------- */

.carte {
    background: var(--panel);
    border: 1px solid var(--hair);
    border-radius: var(--rayon);
    padding: 18px;
    margin-bottom: 16px;
}

/* État à risque (ex. approbation livreur désactivée) — attire l'œil avant une
   action qui pourrait entraîner une mauvaise réservation. */
.carte-avertissement {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.titre-approbation { color: var(--rouge); }

.btn-danger-sm, .btn-succes-sm {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid transparent;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
}
.btn-danger-sm { background: rgba(239, 68, 68, 0.14); border-color: rgba(239, 68, 68, 0.4); color: var(--rouge); }
.btn-danger-sm:hover { background: var(--rouge); color: #fff; }
.btn-succes-sm { background: rgba(16, 185, 129, 0.14); border-color: rgba(16, 185, 129, 0.4); color: var(--vert); }
.btn-succes-sm:hover { background: var(--vert); color: #fff; }

.groupe-champ { margin-bottom: 14px; }

.groupe-champ label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 6px;
    color: var(--muted);
}

.groupe-champ input,
.groupe-champ select,
.groupe-champ textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--hair-strong);
    border-radius: 7px;
    font-size: 1rem;
    font-family: inherit;
    background: var(--panel-2);
    color: var(--text);
}

.groupe-champ input:focus,
.groupe-champ select:focus,
.groupe-champ textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.groupe-champ textarea { resize: vertical; }

.btn {
    display: inline-block;
    padding: 10px 18px;
    border: none;
    border-radius: 7px;
    background: var(--or);
    color: var(--argent-ink);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    font-family: var(--font-body);
}

.btn:hover { filter: brightness(1.06); }

.btn-secondaire {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--hair-strong);
}

.btn-secondaire:hover { border-color: var(--accent); color: var(--accent); }

.btn-bloc { width: 100%; text-align: center; }

.alerte-erreur {
    background: rgba(239, 68, 68, 0.12);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.35);
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 0.9rem;
    font-weight: 600;
}

.alerte-succes {
    background: rgba(16, 185, 129, 0.12);
    color: var(--vert);
    border: 1px solid rgba(16, 185, 129, 0.35);
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 0.9rem;
    font-weight: 600;
}

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.badge-nouveau { background: rgba(59, 130, 246, 0.16); color: var(--bleu); }
.badge-engage  { background: rgba(227, 169, 58, 0.16); color: var(--or); }
.badge-livre   { background: rgba(16, 185, 129, 0.16); color: var(--vert); }

.course-carte {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
}

.course-infos { flex: 1; }

.course-prix {
    font-family: var(--font-display);
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--or);
}

.course-adresse { margin: 6px 0; font-size: 0.92rem; }

.course-restaurant {
    font-weight: 600;
    margin-bottom: 4px;
}

.course-meta {
    font-size: 0.82rem;
    color: var(--muted);
    font-family: var(--font-mono);
}

.onglets {
    display: flex;
    gap: 6px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--hair);
}

.onglet {
    padding: 10px 4px;
    text-decoration: none;
    color: var(--muted);
    font-weight: 600;
    border-bottom: 2px solid transparent;
    font-size: 0.92rem;
}

.onglet.actif { color: var(--accent); border-bottom-color: var(--accent); }

.liste-vide {
    color: var(--muted);
    text-align: center;
    padding: 30px 10px;
}

.liste-vide a { color: var(--accent); }

.page-connexion {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: var(--ink);
}

.carte-connexion {
    background: var(--panel);
    border: 1px solid var(--hair);
    border-radius: var(--rayon);
    box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
    padding: 32px;
    width: 100%;
    max-width: 380px;
}

.carte-suivi { max-width: 440px; }

.suivi-resume {
    background: var(--panel-2);
    border: 1px solid var(--hair);
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 22px;
}
.suivi-societe { font-family: var(--font-display); font-weight: 700; font-size: 1rem; }
.suivi-trajet { color: var(--muted); font-size: 0.86rem; margin-top: 6px; }
.suivi-trajet .trajet-fleche { margin: 0 6px; }
.suivi-details { color: var(--or); font-size: 0.8rem; margin-top: 8px; }

.suivi-frise { list-style: none; margin: 0; padding: 0; }

.suivi-etape {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    position: relative;
}
.suivi-etape:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 11px;
    top: 34px;
    bottom: -4px;
    width: 2px;
    background: var(--hair-strong);
}
.suivi-etape.atteinte:not(:last-child)::before { background: var(--vert); }

.suivi-point {
    flex-shrink: 0;
    width: 24px; height: 24px;
    border-radius: 50%;
    border: 2px solid var(--hair-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: var(--text);
    background: var(--panel);
    z-index: 1;
}
.suivi-etape.atteinte .suivi-point { border-color: var(--vert); background: var(--vert); color: #fff; }
.suivi-etape.actuelle .suivi-point { border-color: var(--or); background: var(--or); color: var(--argent-ink); }

.suivi-libelle { font-size: 0.9rem; color: var(--muted); }
.suivi-etape.atteinte .suivi-libelle { color: var(--text); }
.suivi-etape.actuelle .suivi-libelle { color: var(--or); font-weight: 700; }

.connexion-entete { text-align: center; margin-bottom: 24px; }

.connexion-entete h1 {
    font-family: var(--font-display);
    color: var(--or);
    margin: 4px 0;
    letter-spacing: -0.02em;
}

.connexion-pied {
    text-align: center;
    margin-top: 18px;
    font-size: 0.8rem;
    color: var(--muted);
}

.lien-secondaire {
    display: block;
    text-align: center;
    margin-top: 16px;
    font-size: 0.88rem;
    color: var(--muted);
    text-decoration: none;
}
.lien-secondaire:hover { color: var(--accent); }

/* Spécificité ".sous-titre a" (classe+élément) plus forte qu'une classe
   seule — sans qualifier par le parent ici, .sous-titre a (ligne ~135)
   l'emporterait dans la cascade malgré l'ordre des règles. */
.sous-titre a.lien-marche {
    color: var(--or);
    font-weight: 700;
    text-decoration: none;
}
.sous-titre a.lien-marche:hover { text-decoration: underline; }

.non-approuve {
    font-size: 0.85rem;
    color: var(--muted);
    font-style: italic;
}

table.tableau-simple { width: 100%; border-collapse: collapse; }

table.tableau-simple th,
table.tableau-simple td {
    text-align: left;
    padding: 10px 8px;
    border-bottom: 1px solid var(--hair);
    font-size: 0.88rem;
}

table.tableau-simple th { color: var(--muted); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; }

.stats-bourse { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--hair); border: 1px solid var(--hair); border-radius: var(--rayon); overflow: hidden; margin-bottom: 20px; }
.stat-tuile { background: var(--panel); padding: 16px 10px; text-align: center; }
.stat-valeur { font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; }
.stat-libelle { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 4px; }

.barre-actions { display: flex; gap: 10px; margin-bottom: 20px; }
.barre-actions .btn, .barre-actions .btn-secondaire { flex: 1; text-align: center; }

.avatar-restaurant {
    width: 34px; height: 34px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: 0.78rem;
    font-family: var(--font-mono);
    flex-shrink: 0;
}

.course-vitrine-entete { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.course-vitrine-entete .course-restaurant { flex: 1; margin-bottom: 0; }

/* =====================================================================
   VITRINE PUBLIQUE (public/index.php) — « La Bourse des Courses »
   ===================================================================== */

.ticker-wrap {
    background: #080f19;
    border-bottom: 1px solid var(--hair);
    overflow: hidden;
    white-space: nowrap;
    padding: 8px 0;
}

.ticker-track {
    display: inline-block;
    padding-left: 100%;
    animation: defiler 32s linear infinite;
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

.ticker-wrap:hover .ticker-track,
.ticker-wrap:focus-within .ticker-track { animation-play-state: paused; }

@keyframes defiler {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

@media (prefers-reduced-motion: reduce) {
    .ticker-track { animation: none; }
}

.ticker-item { margin-right: 48px; color: var(--muted); }
.ticker-item b { color: var(--text); }
.ticker-item .ticker-prix { color: var(--or); font-weight: 600; }
.ticker-item .t-nouveau { color: var(--bleu); font-weight: 600; }
.ticker-item .t-preparation { color: var(--bleu); font-weight: 600; }
.ticker-item .t-emballage { color: var(--bleu); font-weight: 600; }
.ticker-item .t-reservee { color: var(--or); font-weight: 600; }
.ticker-item .t-engage { color: var(--or); font-weight: 600; }
.ticker-item .t-livre   { color: var(--vert); font-weight: 600; }

.marche-entete {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    border-bottom: 1px solid var(--hair);
    flex-wrap: wrap;
    gap: 14px;
}

.logo-marque { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; letter-spacing: -0.02em; display: flex; align-items: center; }
.logo-marque span { color: var(--or); }

.pays-switch { position: relative; margin-right: auto; margin-left: 14px; }

.pays-actuel {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--panel-2);
    border: 1px solid var(--hair-strong);
    color: var(--text);
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
}
.pays-actuel:hover, .pays-actuel:focus { outline: none; border-color: var(--bleu); }
.pays-actuel-statique { cursor: default; }
.pays-actuel-statique:hover { border-color: var(--hair-strong); }

.drapeau-svg { border-radius: 2px; flex-shrink: 0; display: block; }

.chevron-pays { color: var(--muted); transition: transform 0.15s; flex-shrink: 0; }
.pays-switch.ouvert .chevron-pays { transform: rotate(180deg); }

.pays-menu {
    list-style: none;
    margin: 0;
    padding: 6px;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    background: var(--panel);
    border: 1px solid var(--hair-strong);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    min-width: 175px;
    z-index: 30;
    display: none;
}
.pays-switch.ouvert .pays-menu { display: block; }

.pays-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 9px;
    border-radius: 6px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.82rem;
}
.pays-menu a:hover { background: var(--panel-2); }
.pays-menu a.actif { background: rgba(59, 130, 246, 0.14); color: var(--bleu); font-weight: 700; }

.roles { display: flex; gap: 8px; }

.role-item {
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--marine);
    text-decoration: none;
    background: var(--or);
    cursor: pointer;
    display: inline-block;
}
.role-item.role-active { background: var(--marine); color: var(--or); box-shadow: inset 0 0 0 1px var(--or); }
.role-item.role-bientot { color: var(--marine); cursor: default; opacity: 0.55; }
.role-item.role-bientot .role-tag { font-family: var(--font-mono); font-size: 0.6rem; margin-left: 5px; }

.login-btn {
    background: transparent;
    border: 1px solid var(--hair-strong);
    color: var(--text);
    padding: 9px 18px;
    border-radius: 7px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
}
.login-btn:hover { border-color: var(--accent); color: var(--accent); }

.marche-main { padding: 0 40px 60px; }

.hero { padding: 32px 0 18px; max-width: 62ch; }
.hero-titre { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; }
.hero h1 { font-family: var(--font-display); font-size: 1.7rem; margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
.hero p { color: var(--muted); margin: 8px 0 0; font-size: 0.92rem; }

.stats-ligne { display: flex; gap: 14px; flex-wrap: wrap; }
.stats-item {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.stats-item strong { font-family: var(--font-mono); font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.stats-item.c-blue strong  { color: var(--bleu); }
.stats-item.c-amber strong { color: var(--or); }
.stats-item.c-green strong { color: var(--vert); }

.role-note {
    margin-top: 14px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--or);
    background: rgba(227, 169, 58, 0.1);
    display: inline-block;
    padding: 9px 15px;
    border-radius: 7px;
    border: 1px solid rgba(227, 169, 58, 0.3);
}

.cta-role-connexion {
    margin-top: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    color: var(--or);
    font-weight: 700;
    font-size: 0.92rem;
    padding: 0;
    text-decoration: none;
}
.cta-role-connexion::after { content: "→"; transition: transform 0.15s; }
.cta-role-connexion:hover::after { transform: translateX(3px); }
.cta-role-connexion:hover { text-decoration: underline; }
.cta-role-connexion.cta-role-desactive {
    color: var(--muted);
    cursor: default;
    pointer-events: none;
    text-decoration: none;
}
.cta-role-connexion.cta-role-desactive::after { content: ""; }

.page-layout {
    display: grid;
    grid-template-columns: 178px 1fr;
    align-items: start;
    gap: 16px;
    margin-top: 22px;
}
@media (max-width: 860px) {
    .page-layout { grid-template-columns: 1fr; }
}

.filtres-sidebar {
    background: var(--panel);
    border: 1px solid var(--hair);
    border-radius: 12px;
    padding: 14px;
}
.filtres-sidebar summary {
    cursor: pointer;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.88rem;
    list-style: none;
}
.filtres-sidebar summary::-webkit-details-marker { display: none; }
.filtres-sidebar summary::after { content: "−"; float: right; color: var(--muted); }
.filtres-sidebar:not([open]) summary::after { content: "+"; }

.filtres-corps { display: flex; flex-direction: column; gap: 15px; margin-top: 13px; }

.filtre-section .lbl {
    display: block;
    color: var(--muted);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 6px;
}
.filtre-section .lbl .role-tag {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    margin-left: 4px;
    text-transform: none;
    letter-spacing: normal;
}

.filtre-liste-verticale, .chips-liste-verticale {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.chips-liste-verticale {
    max-height: 165px;
    overflow-y: auto;
    margin-top: 6px;
}
.filtre-liste-verticale .chip, .chips-liste-verticale .chip {
    justify-content: flex-start;
    width: 100%;
    padding: 6px 10px;
    font-size: 0.76rem;
}

.form-recherche-zone { width: 100%; }

.recherche-zone {
    background: var(--panel-2);
    border: 1px solid var(--hair-strong);
    color: var(--text);
    padding: 6px 10px;
    border-radius: 16px;
    font-size: 0.76rem;
    font-family: var(--font-body);
    width: 100%;
}
.recherche-zone:focus { outline: none; border-color: var(--bleu); }
.recherche-zone::placeholder { color: var(--muted); }
.recherche-zone:disabled { opacity: 0.6; cursor: not-allowed; }

.filtre-section.filtre-desactive { opacity: 0.55; }
.filtre-section.filtre-desactive .recherche-zone:not(:last-child) { margin-bottom: 8px; }

.marche-contenu { min-width: 0; }
.marche-contenu .stats-ligne { margin-bottom: 18px; }

.chip {
    background: var(--panel);
    border: 1px solid var(--hair);
    color: var(--text);
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.chip.actif { background: var(--bleu); color: #fff; border-color: var(--bleu); font-weight: 700; }

.statut {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    flex-shrink: 0;
}
.statut::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.statut-nouveau { background: rgba(59, 130, 246, 0.14); color: var(--bleu); }
.statut-reservee { background: rgba(227, 169, 58, 0.16); color: var(--or); }
.statut-livre   { background: rgba(16, 185, 129, 0.14); color: var(--vert); }
.statut-preparation { background: rgba(59, 130, 246, 0.14); color: var(--bleu); }
.statut-emballage   { background: rgba(59, 130, 246, 0.14); color: var(--bleu); }
.statut-engage      { background: rgba(227, 169, 58, 0.16); color: var(--or); }

.lien-whatsapp {
    color: var(--vert);
    font-size: 0.76rem;
    font-weight: 700;
    text-decoration: none;
}
.lien-whatsapp:hover { text-decoration: underline; }

/* Bouton d'envoi WhatsApp — icône + libellé court, même convention que GestiPME
   (#25D366, la couleur de marque WhatsApp, pas notre or/bleu) plutôt qu'un simple lien texte. */
.btn-wa-suivi {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #25D366;
    border: 1px solid #25D366;
    color: #fff;
    font-size: 0.76rem;
    font-weight: 700;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 6px;
}
.btn-wa-suivi:hover { background: #1FB855; border-color: #1FB855; color: #fff; }

.lien-suivi {
    color: var(--bleu);
    font-size: 0.76rem;
    font-weight: 700;
    text-decoration: none;
}
.lien-suivi:hover { text-decoration: underline; }

.meta-row { display: flex; gap: 8px; flex-wrap: wrap; }
.meta-chip {
    background: var(--panel-2);
    border: 1px solid var(--hair);
    color: var(--muted);
    font-size: 0.74rem;
    padding: 4px 10px;
    border-radius: 6px;
    font-family: var(--font-mono);
}

.cta-marche {
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-body);
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
}
.cta-marche.cta-livreur { background: var(--or); color: var(--argent-ink); }
.cta-marche.cta-livreur:hover { filter: brightness(1.08); }
.cta-marche.cta-connexion { background: transparent; color: var(--bleu); border: 1px solid rgba(59, 130, 246, 0.45); }
.cta-marche.cta-disabled { background: var(--panel-2); color: var(--muted); cursor: default; font-weight: 600; }

/* Bouton œil "bientôt" — préparé pour la future page catalogue/commande de la
   société (Phase 2, cf. next_steps.md), pas encore cliquable. */
.sticker-approbation {
    display: block;
    margin-top: 3px;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--muted);
}

.btn-oeil-bientot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-left: 6px;
    border-radius: 6px;
    color: var(--muted);
    background: var(--panel-2);
    border: 1px solid var(--hair);
    cursor: default;
    vertical-align: middle;
}

/* ---------- Tableau du marché ---------- */

.table-scroll {
    overflow-x: auto;
    border: 1px solid var(--hair);
    border-radius: 12px;
}

.tableau-marche {
    width: 100%;
    border-collapse: collapse;
    background: var(--panel);
    font-size: 0.86rem;
}

.tableau-marche thead th {
    position: sticky;
    top: 0;
    background: var(--panel-2);
    color: var(--muted);
    text-align: left;
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 12px 14px;
    border-bottom: 1px solid var(--hair-strong);
    white-space: nowrap;
}

.tableau-marche td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--hair);
    vertical-align: middle;
}

.tableau-marche tbody tr:last-child td { border-bottom: none; }
.tableau-marche tbody tr:hover { background: var(--panel-2); }

.align-droite { text-align: right; }

.col-societe { min-width: 160px; }
.lien-societe {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
}
.lien-societe:hover { color: var(--bleu); }

.avatar-mini {
    width: 24px; height: 24px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: 0.62rem;
    font-family: var(--font-mono);
    flex-shrink: 0;
}

.col-trajet { min-width: 260px; color: var(--text); }
.trajet-fleche { color: var(--muted); margin: 0 6px; }
.trajet-arrivee { font-weight: 600; }

.col-type { color: var(--muted); white-space: nowrap; font-size: 0.78rem; }
.col-prix { color: var(--or); font-weight: 700; white-space: nowrap; }
.col-date { color: var(--muted); font-size: 0.76rem; white-space: nowrap; }
.col-action { white-space: nowrap; }

.recherche-societe {
    background: var(--panel-2);
    border: 1px solid var(--hair-strong);
    color: var(--text);
    padding: 6px 10px;
    border-radius: 16px;
    font-size: 0.76rem;
    font-family: var(--font-body);
    width: 100%;
}
.recherche-societe:focus { outline: none; border-color: var(--bleu); }
.recherche-societe::placeholder { color: var(--muted); }

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 18px;
}

.page-fleche {
    color: var(--bleu);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
}
.page-fleche:hover { text-decoration: underline; }
.page-fleche.page-desactivee {
    color: var(--muted);
    pointer-events: none;
    cursor: default;
}

.page-info {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--muted);
}

.foot-note {
    text-align: center;
    color: var(--muted);
    font-size: 0.72rem;
    margin-top: 36px;
    font-family: var(--font-mono);
    letter-spacing: 0.03em;
}

@media (max-width: 640px) {
    .marche-entete { padding: 16px 20px; }
    .marche-main { padding: 0 20px 48px; }
    .hero-titre { flex-direction: column; align-items: flex-start; gap: 8px; }
    .hero h1 { font-size: 1.4rem; }
    .ticker-item { margin-right: 30px; }
    .tableau-marche th, .tableau-marche td { padding: 10px 10px; }
    .contenu-app { padding: 24px 16px 48px; }
}

@media (max-width: 480px) {
    .marche-entete { flex-direction: column; align-items: stretch; text-align: center; }
    .roles { justify-content: center; }
    .login-btn { text-align: center; }
    .pays-switch { margin: 0; align-self: center; }
    .stats-ligne { justify-content: center; text-align: center; width: 100%; }
    .cta-role-connexion { justify-content: center; width: 100%; }
    .role-note { display: block; text-align: center; }
}
