/* ============================================================
   STYLE — Reprises Corse GSM
   Palette : charbon #1A1A1A, rouge #C8102E, fond #F2F3F5
   ============================================================ */
:root {
    --charbon: #1a1a1a;
    --encre:   #2b2f36;
    /* Couleur de marque Corse GSM (ex-rouge) : violet du logo.
       Le nom --rouge est conservé pour ne pas casser les usages existants. */
    --rouge:   #6E52FF;
    --rouge-fonce: #534AB7;
    /* Teintes du bandeau : fond blanc pur sous le filet violet */
    --bandeau-fond:  #ffffff;
    --bandeau-texte: #26215C;
    --fond:    #f2f3f5;
    --surface: #ffffff;
    --bordure: #d9dce1;
    --gris:    #6b7280;
    --vert:    #1a7f4b;
    /* Rouge réservé aux AVERTISSEMENTS (vigilance, alertes), distinct du violet de marque */
    --alerte:  #c8102e;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
    background: var(--fond);
    color: var(--encre);
    font-size: 15px;
    line-height: 1.5;
}

/* ----- Bandeau supérieur ----- */
header.bandeau {
    background: var(--bandeau-fond);
    color: var(--bandeau-texte);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: 56px;
    border-bottom: 3px solid var(--rouge);
}
header.bandeau .marque { font-weight: 700; letter-spacing: .02em; font-size: 15px; color: var(--bandeau-texte); }
header.bandeau .marque span { color: var(--rouge); }
header.bandeau nav a {
    color: var(--bandeau-texte); text-decoration: none; margin-left: 18px; font-size: 14px;
}
header.bandeau nav a:hover, header.bandeau nav a.actif { color: var(--rouge); border-bottom: 2px solid var(--rouge); padding-bottom: 4px; }
header.bandeau .session { color: #6b6b80; font-size: 13px; margin-left: 18px; }
header.bandeau nav a.icone-home {
    display: inline-flex; align-items: center; color: var(--bandeau-texte); vertical-align: middle;
}
header.bandeau nav a.icone-home:hover { color: var(--rouge); border-bottom: none; padding-bottom: 0; }

/* ----- Cloche de notifications (admin) ----- */
.cloche-conteneur { position: relative; display: inline-block; margin-left: 18px; vertical-align: middle; }
.cloche-bouton {
    background: none; border: none; cursor: pointer; font-size: 18px; padding: 4px;
    position: relative; line-height: 1; vertical-align: middle;
}
.cloche-badge {
    position: absolute; top: -4px; right: -6px; background: var(--alerte); color: #fff;
    font-size: 10.5px; font-weight: 700; line-height: 1; border-radius: 999px;
    padding: 3px 5px; min-width: 16px; text-align: center;
}
.cloche-panneau {
    position: absolute; top: 34px; right: 0; width: 520px; max-height: 420px; overflow-y: auto;
    background: #fff; border: 1px solid var(--bordure); border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,.15); z-index: 500; text-align: left;
}
.cloche-entete {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 14px; border-bottom: 1px solid var(--bordure); font-weight: 700; font-size: 13px; color: var(--encre);
}
.cloche-tout-lu { background: none; border: none; color: var(--rouge); font-size: 12px; cursor: pointer; text-decoration: underline; padding: 0; }
.cloche-vide { padding: 18px 14px; color: var(--gris); font-size: 13px; margin: 0; }
.cloche-item {
    display: block; padding: 10px 14px; border-bottom: 1px solid #f0f1f3; text-decoration: none;
}
.cloche-item:last-child { border-bottom: none; }
.cloche-item:hover { background: #f7f7fb; }
.cloche-item-nonlu { background: #f5f3ff; }
.cloche-item-msg { display: block; font-size: 13px; color: var(--encre); }
.cloche-item-date { display: block; font-size: 11px; color: var(--gris); margin-top: 2px; }
.cloche-separateur { border-top: 1px solid #e5e5ea; margin: 2px 0; }
.cloche-item-lue .cloche-item-msg { font-style: italic; font-size: 12px; color: #b3b3bb; }
.cloche-item-lue .cloche-item-date { font-style: italic; font-size: 10px; color: #b3b3bb; }

/* ----- Conteneur ----- */
main { max-width: 980px; margin: 28px auto 60px; padding: 0 20px; }
main.large { max-width: 1520px; }
main.gestion-large { max-width: 1760px; }  /* marges réduites pour la gestion des reprises */

/* ----- Module SAV ----- */
.encadre-consigne { background: #fdf0e0; border: 1px solid #f0d3a8; border-radius: 6px; padding: 12px 14px; margin: 12px 0 20px; font-size: 13px; line-height: 1.5; }
.encadre-consigne-fixe { background: #fde8e8; border-color: #e8b4b4; }
.encadre-consigne-refus { background: #fde8e8; border-color: #e8b4b4; color: #8e1024; }
.vigilance-imei { display: block; color: var(--alerte); font-weight: 600; margin: 5px 0 2px; }
.consignes-imei { margin-top: -4px; }
.prix-final-encadre {
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
    background: #f5f3ff; border: 2px solid var(--rouge); border-radius: 8px;
    padding: 16px 20px; margin-top: 18px;
}
.prix-final-label { font-weight: 700; color: var(--rouge-fonce); font-size: 14px; }
.prix-final-label small { display: block; font-weight: 400; color: var(--gris); font-size: 12px; margin-top: 2px; }
.prix-final-valeur { font-size: 30px; font-weight: 800; color: var(--rouge); white-space: nowrap; }
.consignes-imei small { display: block; font-size: 13px; color: var(--gris); }
.consignes-imei small.vigilance-imei { color: var(--alerte); font-weight: 600; }
.cellule-imei { white-space: nowrap; }
.cellule-imei .crayon { background: none; border: none; cursor: pointer; font-size: 13px; padding: 0 2px; opacity: .7; }
.cellule-imei .crayon:hover { opacity: 1; }
.form-imei { display: inline-flex; gap: 4px; align-items: center; }
.champ-imei-edit { width: 130px; padding: 3px 5px; font-size: 12px; }
.cellule-prix-final { white-space: nowrap; }
.cellule-prix-final .crayon { background: none; border: none; cursor: pointer; font-size: 13px; padding: 0 2px; opacity: .7; }
.cellule-prix-final .crayon:hover { opacity: 1; }
.form-prix-final { display: inline-flex; gap: 4px; align-items: center; }
.champ-prix-final-edit { width: 70px; padding: 3px 5px; font-size: 12px; }
.revendu-verrouille { display: inline-flex; align-items: center; gap: 4px; }
.revendu-verrouille .crayon { background: none; border: none; cursor: pointer; font-size: 13px; padding: 0 2px; opacity: .7; }
.revendu-verrouille .crayon:hover { opacity: 1; }
.revendu-edition { display: inline-flex; gap: 4px; align-items: center; }
.retour-attente-info { display: block; font-size: 11px; color: var(--gris); font-style: italic; margin-top: 4px; }
.commentaire-traitement { display: block; width: 100%; margin-top: 5px; padding: 5px 6px; font-size: 12px; }
.lien-fiche { font-size: 11px; color: var(--rouge); text-decoration: underline dotted; }
.modale-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modale-boite { background: #fff; border-radius: 10px; padding: 24px; max-width: 520px; width: 100%; box-shadow: 0 8px 30px rgba(0,0,0,.3); }
.modale-boite h3 { margin: 0 0 6px; font-size: 17px; color: var(--encre); }
.modale-info { margin: 0 0 12px; font-size: 13px; color: var(--gris); }
.modale-boite textarea { width: 100%; box-sizing: border-box; padding: 10px; font: inherit; font-size: 14px; border: 1px solid var(--bordure); border-radius: 6px; resize: vertical; }
.modale-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }

/* ----- Boîte de dialogue générique (remplace alert/confirm) ----- */
.dlg-overlay { position: fixed; inset: 0; background: rgba(38,33,92,.45); z-index: 1100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.dlg-boite { background: #fff; border-radius: 12px; max-width: 460px; width: 100%; overflow: hidden; box-shadow: 0 8px 30px rgba(38,33,92,.28); }
.dlg-filet { height: 4px; background: var(--rouge); }
.dlg-corps { padding: 20px 20px 18px; }
.dlg-titre { margin: 0 0 8px; font-size: 16px; font-weight: 700; color: var(--bandeau-texte); }
.dlg-message { margin: 0; font-size: 13.5px; color: var(--encre); line-height: 1.55; }
.dlg-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.texte-consentement { font-size: 13px; line-height: 1.6; color: var(--encre); background: #fafbfc; border: 1px solid var(--bordure); border-radius: 6px; padding: 14px 16px; }
.case-consentement { display: flex; align-items: flex-start; gap: 10px; margin-top: 14px; font-weight: 600; font-size: 14px; cursor: pointer; }
.case-consentement input { margin-top: 2px; }
.cellule-symptomes { max-width: 220px; font-size: 13px; color: var(--gris); }
.cellule-date { white-space: nowrap; }
.cellule-date .date-jour { display: block; }
.cellule-date .date-heure { display: block; color: var(--gris); font-size: 12px; margin-top: 1px; }
.cellule-imei { white-space: nowrap; font-size: 12.5px; }
.cellule-commentaire { max-width: 240px; font-size: 13px; }
.cellule-commentaire span { display: block; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.cellule-docs { font-size: 13px; white-space: nowrap; }
.commentaire-sav { width: 100%; margin-top: 5px; padding: 5px 6px; font-size: 12px; }
.select-sav-statut { width: auto; }
.modale-choix-reponse { display: flex; gap: 20px; margin: 4px 0 12px; }
.modale-choix-reponse label { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; cursor: pointer; }
#modale-devis-avertissement { margin-bottom: 12px; }
#modale-devis-commentaire { width: 100%; box-sizing: border-box; padding: 10px; font: inherit; font-size: 14px; border: 1px solid var(--bordure); border-radius: 6px; resize: vertical; }
.reponse-verrouillee { margin-top: 6px; font-size: 12px; background: #f2f3f5; border-radius: 5px; padding: 5px 8px; }
.commentaire-fige { margin-top: 6px; font-size: 12px; background: #fdf3d7; border-radius: 5px; padding: 5px 8px; }
.ligne-civilite { display: flex; gap: 12px; }
.ligne-civilite .sous-champ { display: flex; flex-direction: column; gap: 4px; flex: 1; font-weight: 600; font-size: 13px; }
.ligne-civilite .civilite-col { flex: 0 0 90px; }
@media (max-width: 600px) { .ligne-civilite { flex-direction: column; } .ligne-civilite .civilite-col { flex: 1; } }
.form-restituer { margin-top: 6px; }
.btn-fin { padding: 4px 10px; font-size: 12px; font-weight: 600; display: inline-block; margin: 2px 0; }
.cellule-docs .btn-fin { width: auto; }
h1 { font-size: 22px; font-weight: 700; margin: 0 0 4px; }
.sous-titre { color: var(--gris); margin: 0 0 22px; font-size: 14px; }

/* ----- Étapes (fil d'Ariane du parcours de reprise) ----- */
.etapes { display: flex; gap: 8px; margin: 0 0 26px; }
.etapes .etape {
    flex: 1; background: var(--surface); border: 1px solid var(--bordure);
    border-radius: 6px; padding: 10px 12px; font-size: 13px; color: var(--gris);
    position: relative; overflow: hidden;
}
.etapes .etape b { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.etapes .etape.courante { border-color: var(--rouge); color: var(--encre); }
.etapes .etape.courante b { color: var(--rouge); }
.etapes .etape.faite { border-color: var(--vert); color: var(--encre); }
.etapes .etape.faite b { color: var(--vert); }

/* ----- Cartes / formulaires ----- */
.carte {
    background: var(--surface); border: 1px solid var(--bordure);
    border-radius: 8px; padding: 24px; margin-bottom: 20px;
}
.carte h2 { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--rouge); margin: 0 0 16px; }
.lien-cotation { display: inline-block; font-size: 13px; padding: 8px 16px; flex-shrink: 0; }
.ligne-cotation { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 0 0 30px; }
.consigne-cotation { flex: 1 1 0%; min-width: 0; font-style: italic; color: #9aa0a8; font-size: 12.5px; line-height: 1.4; }
.consigne-cotation strong { color: #6b7280; }
.grille { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; margin-bottom: 16px; }
.grille .pleine { grid-column: 1 / -1; }
label.champ { display: block; font-size: 13px; font-weight: 600; min-width: 0; }
label.champ small { display: block; font-weight: 400; color: var(--gris); }
label.champ small.inline { display: inline; margin-left: 4px; }
input[type=text], input[type=number], input[type=date], input[type=tel],
input[type=password], select, textarea {
    width: 100%; padding: 9px 10px; margin-top: 5px;
    border: 1px solid var(--bordure); border-radius: 6px;
    font: inherit; background: #fff; color: var(--encre);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--rouge); outline-offset: 1px; border-color: var(--rouge); }
input.champ-verrouille { background: #eef0f3; color: var(--gris); cursor: not-allowed; }
input.prix-revente.champ-verrouille { color: var(--charbon); }  /* prix toujours lisible en gras noir */
.radios { display: flex; gap: 16px; margin-top: 7px; }
.radios label { font-weight: 400; font-size: 14px; display: flex; align-items: center; gap: 6px; }

/* ----- Boutons ----- */
.actions { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.btn {
    display: inline-block; border: none; border-radius: 6px; cursor: pointer;
    padding: 11px 22px; font: inherit; font-weight: 600; text-decoration: none; text-align: center;
}
.btn-principal { background: var(--rouge); color: #fff; }
.btn-principal:hover { background: var(--rouge-fonce); }
.btn-principal:disabled, .btn-principal:disabled:hover {
    background: #c7c9d1; color: #6b7280; cursor: not-allowed;
}
.btn-secondaire { background: #fff; color: var(--encre); border: 1px solid var(--bordure); }
.btn-secondaire:hover { border-color: var(--gris); }
.btn-discret { background: none; color: var(--gris); text-decoration: underline; padding: 11px 6px; }
.btn-reinit { background: #fff; color: var(--gris); border: 1px solid var(--bordure); }
.ligne-fichier { display: flex; align-items: center; gap: 12px; margin-top: 10px; min-width: 0; border-radius: 6px; transition: background-color .15s; }
.ligne-fichier.survol-glisser { background: #EDE9FE; outline: 2px dashed var(--rouge); outline-offset: 3px; }
.bouton-fichier { cursor: pointer; position: relative; flex-shrink: 0; }
.nom-fichier { color: var(--gris); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1; }
.entree-fichier-invisible {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.btn-reinit:hover { border-color: var(--gris); color: var(--encre); }

/* ----- Messages ----- */
.message { border-radius: 6px; padding: 12px 14px; margin-bottom: 18px; font-size: 14px; }
.message.erreur  { background: #fdecee; border: 1px solid #f3b8c0; color: #8e1024; }
.message.succes  { background: #e8f5ee; border: 1px solid #b5dfc8; color: #135c38; }

/* ----- Tableaux ----- */
table.liste { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--bordure); border-radius: 8px; overflow: hidden; }
table.liste th {
    text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em;
    color: var(--gris); background: #fafbfc; padding: 10px 12px; border-bottom: 1px solid var(--bordure);
}
table.liste td { padding: 10px 12px; border-bottom: 1px solid #eceef1; font-size: 14px; }
table.liste tr:last-child td { border-bottom: none; }
table.liste tr:hover td { background: #fafbfc; }
.actions-compte { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.actions-compte form { display: inline-flex; align-items: center; gap: 6px; }
.grille-conseillers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; margin-top: 16px; }
.grille-coeffs-base { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px 20px; margin: 16px 0 24px; }
.champ-pourcentage { position: relative; display: inline-flex; align-items: center; width: 100%; }
.champ-pourcentage input { padding-right: 26px; }
.champ-pourcentage .suffixe-pourcentage { position: absolute; right: 10px; font-size: 12px; color: var(--gris); font-weight: 700; pointer-events: none; }
.tableau-coeffs-etat { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.tableau-coeffs-etat th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--gris); padding: 6px 10px; border-bottom: 2px solid var(--bordure); }
.tableau-coeffs-etat td { padding: 8px 10px; border-bottom: 1px solid var(--bordure); }
.tableau-coeffs-etat .libelle-ligne { font-weight: 600; white-space: nowrap; }
.tableau-coeffs-etat .cellule-vide { text-align: center; color: var(--gris); }
.ligne-conseiller {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    border: 1px solid var(--bordure); border-radius: 6px; padding: 8px 12px;
}
.nom-conseiller { font-weight: 600; white-space: nowrap; }

/* Journal : affichage compact (beaucoup de lignes, peu de texte par ligne) */
table.liste.compacte th { padding: 8px 12px; font-size: 11.5px; }
table.liste.compacte td { padding: 6px 12px; font-size: 12.5px; }
table.liste.compacte td.ip { color: var(--gris); font-size: 11.5px; white-space: nowrap; }
table.liste.compacte td.date-heure { white-space: nowrap; color: var(--gris); }
.action-echec { color: var(--alerte); font-weight: 600; }
.ref { font-weight: 700; color: var(--rouge); white-space: nowrap; }
.ref a { color: inherit; text-decoration: none; border-bottom: 1px dotted var(--rouge); }
.ref a:hover { border-bottom-style: solid; }
.imei { font-family: Consolas, "Courier New", monospace; font-size: 13px; letter-spacing: .03em; white-space: nowrap; }
.droite { text-align: right; white-space: nowrap; }
.table-activite th.col-act, .table-activite td.col-act { width: 15%; text-align: right; }
.table-activite th:first-child, .table-activite td:first-child { width: 40%; }

/* ----- Badges de statut ----- */
.badge {
    display: inline-block; padding: 3px 9px; border-radius: 999px;
    font-size: 12px; font-weight: 600; white-space: nowrap;
}
.badge-attente    { background: #eef0f3; color: #4b5563; }
.badge-expediee   { background: #e3edfb; color: #1d4f9c; }
.badge-recue      { background: #ece7f8; color: #5b3da6; }
.badge-traitement { background: #fdf0e0; color: #97580c; }
.badge-ok         { background: #e8f5ee; color: #135c38; }
.badge-litige     { background: #fbdde1; color: #c8102e; font-weight: 700; }
.badge-vendu      { background: #fdf3d7; color: #8a6400; }
.badge-annulee    { background: #fdecee; color: #8e1024; }
.badge-pret       { background: #def3f4; color: #0f6b73; }
.badge-pieces     { background: #fde6f0; color: #a01a6b; }
.statut-fige { display: block; color: #8e1024; font-size: 11px; font-weight: 700; margin-top: 4px; }
.cadenas { font-size: 13px; margin-left: 2px; cursor: help; }
.revendu-special { font-size: 12px; color: var(--gris); font-style: italic; }
tr.ligne-annulee td { background: #fafafa; color: var(--gris); }

/* Surlignage temporaire de la ligne sur laquelle on vient d'agir */
@keyframes flash-ligne {
    0%   { background: #e7e2ff; }
    100% { background: transparent; }
}
tr.ligne-surlignee td { animation: flash-ligne 2.2s ease-out; }

/* Toast éphémère de confirmation (en plus du bandeau récap en haut) */
.toast-confirmation {
    position: fixed; top: 70px; left: 50%; transform: translateX(-50%);
    z-index: 1200; background: #e8f5ee; color: #135c38;
    border: 1px solid #b7e0c8; border-left: 4px solid var(--vert);
    border-radius: 8px; padding: 11px 18px; font-size: 13.5px; font-weight: 400;
    box-shadow: 0 6px 20px rgba(0,0,0,.14);
    max-width: 90vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    opacity: 0; transition: opacity .35s ease;
}
.toast-confirmation.visible { opacity: 1; }
tr.ligne-annulee .imei, tr.ligne-annulee .ref a { opacity: .7; }
.statut-date { display: block; color: var(--gris); font-size: 11px; margin-top: 3px; white-space: nowrap; }
form.maj-statut { display: flex; gap: 6px; margin-top: 6px; }
form.maj-statut select { width: auto; margin: 0; padding: 5px 6px; font-size: 12px; }
form.maj-statut button { padding: 5px 10px; font-size: 12px; }
form.maj-vente { display: flex; gap: 6px; align-items: center; }
form.maj-vente select { width: auto; margin: 0; padding: 5px 6px; font-size: 12px; }
form.maj-vente button { padding: 5px 10px; font-size: 12px; }
input.prix-revente { width: 64px; margin: 0; padding: 5px 18px 5px 6px; font-size: 12px; text-align: right; font-weight: 700; color: var(--charbon); }
.cellule-prix { display: flex; align-items: center; gap: 5px; }
.champ-euro { position: relative; display: inline-flex; align-items: center; }
.champ-euro .suffixe-euro { position: absolute; right: 6px; font-size: 12px; color: var(--charbon); font-weight: 700; pointer-events: none; }
.crayon { background: none; border: none; cursor: pointer; font-size: 14px; padding: 2px 4px; vertical-align: middle; }
.crayon:hover { opacity: .7; }
input.date-revente { width: 140px; margin: 0; padding: 5px 6px; font-size: 12px; }
.marge-pos { color: var(--vert); font-weight: 700; white-space: nowrap; }
.marge-neg { color: #8e1024; font-weight: 700; white-space: nowrap; }

/* ----- Filtres ----- */
form.filtres { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 18px; }
form.filtres label.champ { font-size: 12px; }
form.filtres input, form.filtres select { margin-top: 4px; width: auto; min-width: 150px; }

/* ----- Tuiles d'accueil et statistiques ----- */
.tuiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-bottom: 24px; }
.tuile { background: var(--surface); border: 1px solid var(--bordure); border-radius: 8px; padding: 18px; }
a.tuile-cliquable { display: block; text-decoration: none; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
a.tuile-cliquable:hover { border-color: var(--rouge); box-shadow: 0 2px 8px rgba(200,16,46,.15); }
.tuile .chiffre { font-size: 28px; font-weight: 700; color: var(--charbon); }
.tuile .chiffre.chiffre-pos { color: var(--vert); }
.tuile .chiffre.chiffre-neg { color: #8e1024; }
.tuile .chiffre.chiffre-alerte { color: var(--alerte); font-weight: 800; }
.tuile .libelle.libelle-alerte { color: var(--alerte); font-weight: 700; }
.tuile .libelle { color: var(--gris); font-size: 13px; }

/* ----- Tuiles compactes : 7 colonnes égales sur écran de bureau,
   repli en 4 + 3 sous 1500px, puis 2 colonnes sur petit écran ----- */
.tuiles.compactes { grid-template-columns: repeat(7, 1fr); gap: 12px; }
.tuiles.compactes .tuile { padding: 12px 14px; min-width: 0; }
.tuiles.compactes .chiffre { font-size: 20px; overflow-wrap: anywhere; }
.tuiles.compactes .libelle { font-size: 12px; }
@media (max-width: 1500px) { .tuiles.compactes { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 700px)  { .tuiles.compactes { grid-template-columns: repeat(2, 1fr); } }

/* ----- Suivi logistique : 5 colonnes (2 lignes de 5 pour 10 statuts) ----- */
.tuiles.logistique { grid-template-columns: repeat(5, 1fr); gap: 14px; }
.tuiles.logistique .tuile { padding: 18px 16px; text-align: center; }
.tuiles.logistique .chiffre { font-size: 30px; }
.tuiles.logistique .libelle { margin-top: 6px; }
@media (max-width: 1100px) { .tuiles.logistique { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px)  { .tuiles.logistique { grid-template-columns: repeat(2, 1fr); } }

/* ----- Disposition côte à côte (podium / marques) ----- */
.deux-colonnes { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.deux-colonnes .carte { margin-bottom: 20px; }
@media (max-width: 1100px) { .deux-colonnes { grid-template-columns: 1fr; } }

/* ----- Barres du top des marques ----- */
.barres .ligne { display: flex; align-items: center; gap: 12px; margin-bottom: 9px; }
.barres .nom { width: 110px; font-weight: 600; font-size: 14px; }
.barres .barre { flex: 1; background: #eef0f3; border-radius: 4px; height: 18px; overflow: hidden; }
.barres .rempli { height: 100%; background: linear-gradient(90deg, var(--rouge), #e87722); border-radius: 4px; }
.barres .nb { width: 110px; text-align: right; font-weight: 700; white-space: nowrap; }
.barres .nb .part { font-weight: 400; color: var(--gris); }

/* ----- Podium Top 3 ----- */
.podium { display: flex; align-items: flex-end; justify-content: center; gap: 18px; padding-top: 10px; }
.podium .marche { width: 200px; text-align: center; }
.podium .medaille { font-size: 34px; line-height: 1; }
.podium .boutique-nom { font-weight: 700; font-size: 16px; margin-top: 6px; }
.podium .boutique-nb { color: var(--gris); font-size: 13px; margin-bottom: 8px; }
.podium .socle {
    font-size: 26px; font-weight: 800;
    border-radius: 8px 8px 0 0; display: flex; align-items: center; justify-content: center;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,.5);
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.podium .socle sup { font-size: 12px; margin-left: 2px; }
.podium .socle-1 { height: 110px; background: linear-gradient(180deg, #FFE066 0%, #FFD700 45%, #D4AF37 100%); }
.podium .socle-2 { height: 78px;  background: linear-gradient(180deg, #F0F0F0 0%, #C8C8C8 45%, #A0A0A0 100%); }
.podium .socle-3 { height: 56px;  background: linear-gradient(180deg, #E2925A 0%, #C56F38 45%, #9C5527 100%); }
a.tuile-action {
    display: block; background: var(--surface); border: 1px solid var(--bordure); border-left: 4px solid var(--rouge);
    border-radius: 8px; padding: 22px; text-decoration: none; color: var(--encre);
}
a.tuile-action:hover { border-color: var(--rouge); }
a.tuile-action b { display: block; font-size: 17px; margin-bottom: 4px; }
a.tuile-action span { color: var(--gris); font-size: 14px; }
.tuiles.tuiles-2x2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 700px) { .tuiles.tuiles-2x2 { grid-template-columns: 1fr; } }

/* ----- Récapitulatif (étape 4) ----- */
.recap dt { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--gris); }
.recap dd { margin: 2px 0 12px; font-weight: 600; }
.recap { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 24px; margin: 0; }

/* ----- Connexion ----- */
.boite-connexion { max-width: 380px; margin: 70px auto; }
/* Connexion : contenu centré, champs et bouton resserrés (ne touche pas aux autres formulaires) */
.boite-connexion .carte h2 { text-align: center; }
.boite-connexion form { max-width: 210px; margin: 0 auto; }
.boite-connexion label.champ { text-align: center; }
.boite-connexion input[type=text],
.boite-connexion input[type=password] { padding: 7px 10px; text-align: center; }
.boite-connexion .btn-principal { display: block; width: 100%; margin: 12px auto 0; padding: 9px 22px; }
.contact-accueil { text-align: center; font-size: 13px; color: var(--gris); margin: 36px 0 0; }
.contact-accueil a { color: var(--rouge); text-decoration: none; }
.contact-accueil a:hover { text-decoration: underline; }
.mentions-login { max-width: 760px; margin: 18px auto 0; padding-top: 14px; border-top: 1px solid var(--bordure); text-align: center; }
.mentions-login .mentions-acces { font-size: 12px; color: var(--gris); margin: 0 0 5px; line-height: 1.5; }
.mentions-login .mentions-copyright { font-size: 11.5px; color: var(--gris); margin: 0; line-height: 1.5; }
.mentions-login a { color: var(--rouge); text-decoration: none; }
.mentions-login a:hover { text-decoration: underline; }

@media (max-width: 700px) {
    .grille, .recap { grid-template-columns: 1fr; }
    .etapes { flex-wrap: wrap; }
    .etapes .etape { flex: 1 1 45%; }
}
