/* =====================================================================
   BOUCHERIE LE PAHEA — habillage (chargé après socle.css).
   Noir charbon et argent du logo, rouge bordeaux pour les actions ; Inter pour lire, Cinzel pour la marque.
   ===================================================================== */
@font-face { font-family: 'Inter'; src: url('polices/inter.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Cinzel'; src: url('polices/cinzel-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
:root {
  --fond: #f4f2ef; --surface: #ffffff; --encre: #17181a; --encre-douce: #5e636b; --trait: #e3dfd9;
  --marque: #111214; --marque-encre: #ffffff; --accent: #8c1d24; --alerte: #b3261e; --ok: #1f7a4d; --attente: #9a5b00;
  --rayon: 14px; --police: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --bordeaux: #8c1d24; --argent: #d5d8dd;
  --n-ex: #1f7a4d; --n-bo: #a9d9be; --n-co: #e6e3de; --n-fa: #f7d4d0; --n-fa-bord: #c9655d;
}
body { font-variant-numeric: tabular-nums; }
.btn.principal { background: var(--bordeaux); border-color: var(--bordeaux); }
.btn.vert { color: var(--ok); border: 2px solid var(--ok); background: #fff; }
.btn.clair { background: transparent; color: #fff; border-color: #3a3c41; }
.btn.danger { color: var(--alerte); }
a { color: var(--bordeaux); }
input:focus, select:focus, textarea:focus { outline: 3px solid #e9c3c6; outline-offset: 1px; border-color: #c98e93; }

/* ---------- marque, connexion ---------- */
#barreNom { font-family: 'Cinzel', serif; letter-spacing: .08em; color: var(--argent); font-size: .95rem; }
.marque img { width: 36px; height: 36px; border-radius: 8px; }
.connexion { background: #0e0f11; }
.carte-connexion { background: #17181a; color: #f4f2ef; border: 1px solid #2a2c31; }
.carte-connexion img { width: 132px; height: 132px; border-radius: 22px; }
.carte-connexion h1 { font-family: 'Cinzel', serif; letter-spacing: .08em; color: var(--argent); font-size: 1.2rem; }
.carte-connexion label { color: #c7cbd1; }
.carte-connexion input { background: #0e0f11; color: #fff; border-color: #34363b; font-size: 1.1rem; }
.carte-connexion .discret { color: #a3a8af; }
.carte-connexion .btn.lien { color: #e9c3c6; }
.carte-connexion form .btn { margin-top: .9rem; width: 100%; }
.carte-connexion #cxSaisie { font-size: 1.8rem; letter-spacing: .4em; text-align: center; font-weight: 800; }

/* ---------- page ---------- */
main { max-width: 1320px; padding: 1rem 1rem 5.5rem; }
.pa-page { display: flex; flex-direction: column; gap: 1rem; }
.pa-etroit { max-width: 760px; margin: 0 auto; }
.pa-carte { background: var(--surface); border: 1px solid var(--trait); border-radius: 16px; padding: 1rem 1.1rem; }
.pa-carte h1, .pa-carte h2 { margin: 0 0 .6rem; }
.pa-carte h2 small { color: var(--encre-douce); font-weight: 600; margin-left: .3rem; }
.pa-carte.sombre, .sombre { background: #17181a; color: #f4f2ef; border-color: #17181a; }
.pa-titre-ligne { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; flex-wrap: wrap; }
.pa-titre-ligne small { color: var(--encre-douce); }
.pa-tres-gros { display: block; font-size: 2rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.pa-label { display: block; font-size: .9rem; font-weight: 600; color: var(--encre-douce); margin: 0 0 .4rem; }
.pa-label small, label small { font-weight: 500; color: var(--encre-douce); }
.pa-duo { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin: .7rem 0; }
.pa-duo span { display: flex; flex-direction: column; font-size: .85rem; color: var(--encre-douce); }
.sombre .pa-duo span { color: #c7cbd1; }
.pa-duo b { font-size: 1.15rem; color: inherit; }
.pa-carte:not(.sombre) .pa-duo b { color: var(--encre); }
.pa-duo .bordeaux, .pa-duo .bordeaux b { color: var(--bordeaux) !important; }
.pa-duo small { font-size: .78rem; }
.neg { color: var(--attente); }

/* ---------- pastilles et niveaux ---------- */
.pa-chip { display: inline-block; font-size: .75rem; font-weight: 700; padding: .2rem .6rem; border-radius: 999px; background: #ecebe8; color: #2b2d31; white-space: nowrap; font-style: normal; }
.pa-chip.n-excellente { background: var(--n-ex); color: #fff; }
.pa-chip.n-bonne { background: var(--n-bo); color: #0f3d24; }
.pa-chip.n-correcte { background: var(--n-co); color: #2b2d31; }
.pa-chip.n-faible { background: var(--n-fa); color: #7a1a14; box-shadow: inset 0 0 0 1px var(--n-fa-bord); }
.pa-chip.ok { background: #e6f4ec; color: #14532d; } .pa-chip.att { background: #fff4e0; color: #6b4200; }
.pa-chip.sombre { background: #17181a; color: #fff; } .pa-chip.bordeaux { background: #f6e3e4; color: var(--bordeaux); }
.pa-pt { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; background: transparent; vertical-align: middle; }
.pa-pt.n-excellente { background: var(--n-ex); } .pa-pt.n-bonne { background: #7cc29a; } .pa-pt.n-correcte { background: #c9c4bc; } .pa-pt.n-faible { background: var(--n-fa-bord); }
.pa-pill { min-height: 40px; padding: 0 .9rem; border-radius: 999px; border: 2px solid #d8d3cc; background: #fff; color: #3a3d42; font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; }
.pa-pill.actif { background: var(--bordeaux); border-color: var(--bordeaux); color: #fff; }
.pa-noms { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .6rem; }

/* ---------- accueil ---------- */
.pa-accueil { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 1rem; align-items: start; }
.pa-gros-bouton { grid-column: 1 / -1; display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.3rem; border-radius: 16px; background: var(--bordeaux); color: #fff; text-decoration: none; }
.pa-gros-bouton b { font-size: 1.25rem; } .pa-gros-bouton span { flex: 1; opacity: .85; } .pa-gros-bouton i { font-style: normal; font-size: 1.6rem; }
.pa-solde small { color: #a3a8af; font-weight: 600; letter-spacing: .04em; }
.pa-alerte { background: #fff4e0; border-color: #f0d39c; color: #6b4200; }
.pa-alerte ul { margin: 0; padding-left: 1.1rem; line-height: 1.8; } .pa-alerte a { color: #6b4200; font-weight: 600; }
.pa-chiffres { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; margin: .4rem 0 1rem; }
.pa-chiffres div { display: flex; flex-direction: column; gap: .1rem; }
.pa-chiffres small { color: var(--encre-douce); font-size: .78rem; } .pa-chiffres b { font-size: 1.15rem; }
.pa-chiffres .hausse { color: var(--ok); font-weight: 700; font-size: .8rem; } .pa-chiffres .baisse { color: var(--alerte); font-weight: 700; font-size: .8rem; }
.pa-barres { display: flex; align-items: flex-end; gap: 4px; height: 78px; border-bottom: 1px solid var(--trait); }
.pa-barres span { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; font-size: .7rem; color: var(--encre-douce); }
.pa-barres i { display: block; width: 100%; border-radius: 3px 3px 0 0; background: #d9d4ce; }
.pa-barres i.n-excellente { background: var(--n-ex); } .pa-barres i.n-bonne { background: #7cc29a; } .pa-barres i.n-correcte { background: #c9c4bc; } .pa-barres i.n-faible { background: var(--n-fa-bord); }
.pa-barres i.vide { background: transparent; border-bottom: 2px dashed #c98a1b; }
.pa-barres-we { height: 92px; border: 0; gap: 10px; } .pa-barres-we span { gap: 4px; } .pa-barres-we .actuel { color: var(--bordeaux); font-weight: 700; } .pa-barres-we .actuel i { background: var(--bordeaux); }
.pa-barres-leg { display: flex; justify-content: space-between; font-size: .72rem; margin: .3rem 0 0; }
.pa-jours { display: flex; flex-direction: column; }
.pa-jour { display: flex; justify-content: space-between; align-items: center; min-height: 46px; border-top: 1px solid #eeeae5; color: var(--encre); text-decoration: none; gap: .5rem; }
.pa-jour span { display: flex; align-items: center; gap: .4rem; font-weight: 600; }
.pa-jour.manquant em, .pa-jour.aujourdhui em { font-style: normal; font-weight: 700; color: #6b4200; background: #fff4e0; padding: .15rem .6rem; border-radius: 999px; font-size: .8rem; }

/* ---------- saisie du jour ---------- */
.pa-saisie-tete { display: flex; align-items: center; flex-wrap: wrap; gap: .7rem 1rem; margin-bottom: .8rem; }
.pa-saisie-tete h1 { margin: 0; }
.pa-jour-nav { display: flex; align-items: center; gap: .5rem; }
.pa-jour-nav b { font-size: 1.2rem; min-width: 14rem; text-align: center; text-transform: capitalize; }
.pa-etat { font-size: .82rem; font-weight: 700; padding: .3rem .8rem; border-radius: 999px; background: #ecebe8; }
.pa-etat.nouveau { background: #e6f4ec; color: #14532d; } .pa-etat.oubli { background: #fff4e0; color: #6b4200; } .pa-etat.futur { background: #ecebe8; color: #5e636b; }
.pa-saisie-grille { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) minmax(300px, 1.7fr) minmax(230px, 1fr); gap: 1rem; align-items: start; }
.pa-champ label { margin-bottom: .2rem; color: var(--encre); font-weight: 700; }
.pa-gros { font-size: 1.6rem; font-weight: 700; text-align: right; min-height: 54px; border-width: 2px; background: #fbfaf8; }
.pa-sous { margin: .4rem 0; font-size: .85rem; color: var(--encre-douce); }
.pa-champ .case { font-size: .9rem; margin: .2rem 0 0; }
.pa-ligne { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.pa-ligne input { margin: 0; flex: 1; min-width: 110px; }
.pa-liste-av { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }
.pa-av-chip { display: inline-flex; align-items: center; gap: .3rem; background: #f4f2ef; border-radius: 999px; padding: .2rem .2rem .2rem .8rem; font-size: .88rem; font-weight: 600; }
.pa-av-chip button { width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; font-size: 1.1rem; cursor: pointer; color: var(--encre-douce); }
.pa-comm { margin: .6rem 0 0; }
.pa-recap { background: #17181a; color: #f4f2ef; border-radius: 12px; padding: .9rem 1rem; display: flex; flex-direction: column; gap: .45rem; }
.pa-recap div { display: flex; justify-content: space-between; font-size: .9rem; color: #c7cbd1; }
.pa-recap .pa-recap-du { color: #fff; font-size: 1rem; border-top: 1px solid #33353a; padding-top: .5rem; align-items: baseline; }
.pa-recap .pa-recap-du b { font-size: 1.45rem; }
.pa-enregistrer { min-height: 52px; font-size: 1.05rem; margin-top: .3rem; }
.pa-recap .erreur { color: #ffb4ab; }

/* ---------- tableau du mois ---------- */
.pa-tableau-tete { display: flex; align-items: center; flex-wrap: wrap; gap: .8rem; margin-bottom: .8rem; }
.pa-tableau-tete h2 { margin: 0; min-width: 10rem; text-align: center; text-transform: capitalize; }
.pa-totaux { display: flex; flex-wrap: wrap; gap: .5rem; flex: 1; justify-content: flex-end; }
.pa-totaux span { display: flex; flex-direction: column; background: #f7f5f2; border-radius: 10px; padding: .35rem .75rem; font-size: .75rem; color: var(--encre-douce); }
.pa-totaux b { font-size: .98rem; color: var(--encre); } .pa-totaux span.sombre { background: #17181a; color: #a3a8af; } .pa-totaux span.sombre b { color: #fff; }
.pa-defile { overflow-x: auto; border-radius: 10px; }
.pa-tableau { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 980px; }
.pa-tableau th, .pa-tableau td { padding: .45rem .6rem; text-align: right; white-space: nowrap; border-bottom: 1px solid #eeeae5; }
.pa-tableau thead th { background: #f7f5f2; font-size: .78rem; color: #3a3d42; position: sticky; top: 0; }
.pa-tableau tbody th, .pa-tableau thead th:first-child, .pa-tableau tfoot th { text-align: left; position: sticky; left: 0; background: inherit; z-index: 1; }
.pa-tableau tbody th { display: flex; align-items: center; gap: .45rem; font-weight: 700; }
.pa-tableau tbody tr { background: #fff; cursor: pointer; }
.pa-tableau tbody tr.we { background: #fbf8f6; } .pa-tableau tbody tr.we th span { color: var(--bordeaux); }
.pa-tableau tbody tr:hover { background: #f6eeee; }
.pa-tableau tbody tr.futur { color: #b0b3b8; cursor: default; } .pa-tableau tbody tr.avant { color: #b0b3b8; }
.pa-tableau tbody tr.manquant, .pa-tableau tbody tr.aujourdhui { background: #fff8ec; }
.pa-tableau .pa-a-saisir { text-align: left; color: #6b4200; font-weight: 600; }
.pa-tableau tbody tr.choisi { background: #f6e3e4; box-shadow: inset 4px 0 0 var(--bordeaux); }
.pa-tableau tbody tr.flash { background: #e6f4ec; transition: background .6s; }
.pa-tableau .fort { font-weight: 700; } .pa-tableau .verse { color: #1e3a5f; font-weight: 700; }
.pa-tableau .pa-av { max-width: 190px; overflow: hidden; text-overflow: ellipsis; text-align: left; color: var(--encre-douce); }
.pa-tableau .pa-ferme { color: var(--encre-douce); font-size: .8rem; }
.pa-tableau tfoot th, .pa-tableau tfoot td { border-top: 2px solid var(--encre); font-weight: 800; background: #fff; }
.pa-tableau em.attente { font-size: .8rem; }
.pa-legende { font-size: .78rem; color: var(--encre-douce); margin: .6rem 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; }

/* ---------- planning ---------- */
.pa-planning { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: 1rem; align-items: start; }
.pa-cal-cote { display: flex; flex-direction: column; gap: 1rem; }
.pa-onglets { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: #e8e4df; border-radius: 12px; padding: 4px; margin-bottom: .7rem; }
.pa-onglets button { min-height: 42px; border: 0; border-radius: 9px; background: transparent; font: inherit; font-weight: 700; color: var(--encre-douce); cursor: pointer; }
.pa-onglets button.actif { background: #fff; color: var(--encre); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.pa-filtres { display: flex; gap: .5rem; margin-bottom: .7rem; } .pa-filtres .pa-pill { flex: 1; }
.pa-mois-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: .6rem; text-align: center; }
.pa-mois-nav h1, .pa-mois-nav h2 { margin: 0; text-transform: capitalize; font-size: 1.2rem; } .pa-mois-nav small { color: var(--encre-douce); font-size: .78rem; }
.pa-cal-tete, .pa-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.pa-cal-tete { font-size: .72rem; font-weight: 700; color: var(--encre-douce); text-align: center; margin-bottom: 5px; } .pa-cal-tete .we { color: var(--bordeaux); }
.pa-case { min-height: 62px; border-radius: 9px; border: 1px solid #eeeae5; background: #fff; color: #9a9ea5; font: inherit; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; cursor: pointer; padding: 3px; }
.pa-case span { font-size: .72rem; font-weight: 600; opacity: .85; } .pa-case b { font-size: .82rem; font-weight: 800; } .pa-case small { font-size: .68rem; }
.pa-case.vide { border: 0; background: transparent; cursor: default; }
.pa-case.n-excellente { background: var(--n-ex); border-color: var(--n-ex); color: #fff; }
.pa-case.n-bonne { background: var(--n-bo); border-color: var(--n-bo); color: #0f3d24; }
.pa-case.n-correcte { background: var(--n-co); border-color: var(--n-co); color: #2b2d31; }
.pa-case.n-faible { background: var(--n-fa); border: 2px solid var(--n-fa-bord); color: #7a1a14; }
.pa-case.ferme { background: #f7f5f2; color: var(--encre-douce); }
.pa-case.manquant { border: 2px dashed #c98a1b; color: #6b4200; } .pa-case.manquant b { font-size: .68rem; }
.pa-case.auj { border: 2px solid var(--bordeaux); color: var(--bordeaux); }
.pa-case.futur { cursor: default; color: #c3c6cb; }
.pa-case.verse { background: #dce9f7; border-color: #dce9f7; color: #1e3a5f; }
.pa-case.ok { background: #e6f4ec; border-color: #a9d9be; color: #14532d; } .pa-case.att { background: #fff4e0; border-color: #f0d39c; color: #6b4200; }
.pa-case.choisi { outline: 3px solid #17181a; outline-offset: 1px; }
.pa-case.enattente { box-shadow: inset 0 -3px 0 #c98a1b; }
.pa-legende-cal { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem .9rem; margin-top: .8rem; font-size: .76rem; font-weight: 600; color: #3a3d42; }
.pa-legende-cal span { display: flex; align-items: center; gap: .3rem; } .pa-legende-cal small { width: 100%; text-align: center; color: var(--encre-douce); font-weight: 500; }
.pa-legende-cal i { width: 14px; height: 10px; border-radius: 3px; display: inline-block; }
.pa-legende-cal i.n-excellente { background: var(--n-ex); } .pa-legende-cal i.n-bonne { background: var(--n-bo); } .pa-legende-cal i.n-correcte { background: var(--n-co); } .pa-legende-cal i.n-faible { background: var(--n-fa); box-shadow: inset 0 0 0 1px var(--n-fa-bord); }
.pa-legende-cal i.ok { background: #e6f4ec; box-shadow: inset 0 0 0 1px #a9d9be; } .pa-legende-cal i.att { background: #fff4e0; box-shadow: inset 0 0 0 1px #f0d39c; }
#pDetail small { color: #a3a8af; font-weight: 600; } #pDetail p { color: #c7cbd1; font-size: .9rem; } #pDetail .pa-chip { margin: .4rem 0; }
.pa-jauge { height: 10px; border-radius: 5px; background: #ecebe8; overflow: hidden; display: flex; } .pa-jauge i { display: block; background: #5e636b; } .pa-jauge i.we { background: var(--bordeaux); }

/* ---------- listes (versements, contrôles, autres saisies) ---------- */
.pa-liste { display: flex; flex-direction: column; }
.pa-ligne-ctl, .pa-ext-ligne { display: flex; align-items: center; gap: .6rem; min-height: 50px; border-top: 1px solid #eeeae5; padding: .35rem 0; }
.pa-ligne-ctl > span, .pa-ext-ligne > span { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.pa-ligne-ctl small, .pa-ext-ligne small { color: var(--encre-douce); font-size: .8rem; }
.pa-ligne-ctl b:first-letter { text-transform: uppercase; }
.refusee { box-shadow: inset 4px 0 0 #c62828; padding-left: .5rem !important; }
.pa-ano { border-top: 1px solid #eeeae5; padding: .7rem 0; } .pa-ano p { margin: .3rem 0; }
.pa-ano .pa-date { margin: 0; display: flex; align-items: center; gap: .4rem; } .pa-ano .pa-date input { margin: 0; width: auto; }
.pa-ext-form .pa-titre-ligne h1 { margin: 0; }
.pa-ext-grille { display: grid; grid-template-columns: 170px minmax(240px, 2fr) 150px minmax(160px, 1fr); gap: 1rem; align-items: start; margin-top: .6rem; }
.pa-ext-grille label, .pa-client > label { color: var(--encre); font-weight: 700; margin: 0; }
.pa-client .pa-noms { margin: .4rem 0 0; } .pa-client .pa-pill { min-height: 34px; font-size: .82rem; }
.pa-nouveau { color: #14532d; font-weight: 600; font-size: .85rem; margin: .4rem 0 0; }
.pa-ext-bas { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem 1.4rem; margin-top: .6rem; }
.pa-ext-bas > label { margin: 0; } .pa-ext-bas .pa-noms { margin: 0; }
.pa-ext-bas .btn.principal { margin-left: auto; min-height: 48px; padding: 0 1.6rem; }
.pa-bande { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; }
.pa-bande span { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--trait); border-radius: 12px; padding: .7rem 1rem; font-size: .8rem; color: var(--encre-douce); }
.pa-bande b { font-size: 1.3rem; color: var(--encre); } .pa-bande b.ok { color: var(--ok); }
.pa-bande .att { background: #fff4e0; border-color: #f0d39c; color: #6b4200; } .pa-bande .att b { color: #6b4200; }
.pa-bande span.sombre { background: #17181a; border-color: #17181a; color: #a3a8af; } .pa-bande span.sombre b { color: #fff; }
.pa-attente { border-color: #f0d39c; } .pa-attente h2 { color: #6b4200; }
.pa-att-ligne { display: grid; grid-template-columns: 3.2rem 1fr auto auto auto; gap: .5rem; align-items: center; min-height: 44px; border-top: 1px solid #f5ebd8; font-size: .9rem; }
.pa-att-ligne > span { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; } .pa-att-ligne > span small { color: #8a6a2e; font-size: .76rem; }
.pa-att-ligne em { font-style: normal; font-size: .78rem; color: #6b4200; font-weight: 700; }
.lien-jour { border: 0; background: none; font: inherit; color: var(--encre-douce); cursor: pointer; text-align: left; padding: 0; text-decoration: underline; }

/* ---------- équipe ---------- */
.pa-roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; margin-bottom: .6rem; }
.pa-role { text-align: left; padding: .6rem .8rem; border-radius: 12px; border: 2px solid #d8d3cc; background: #fff; font: inherit; cursor: pointer; display: flex; flex-direction: column; gap: .15rem; }
.pa-role small { color: var(--encre-douce); font-size: .78rem; } .pa-role.actif { background: #17181a; border-color: #17181a; color: #fff; } .pa-role.actif small { color: #c7cbd1; }
.pa-equipe { display: flex; flex-direction: column; gap: .6rem; }
.pa-personne { background: #fff; border: 1px solid var(--trait); border-radius: 14px; padding: .8rem 1rem; display: flex; flex-direction: column; gap: .6rem; }
.pa-personne.inactif { opacity: .6; }
.pa-initiale { width: 40px; height: 40px; border-radius: 50%; background: #17181a; color: var(--argent); display: flex; align-items: center; justify-content: center; font-weight: 800; flex: none; }
.pa-qui { flex: 1; display: flex; flex-direction: column; min-width: 0; } .pa-qui small { color: var(--encre-douce); overflow: hidden; text-overflow: ellipsis; }
.pa-appareils { display: flex; flex-direction: column; gap: .2rem; background: #f7f5f2; border-radius: 8px; padding: .5rem .7rem; font-size: .82rem; color: #3a3d42; }

/* ---------- téléphones ---------- */
@media (max-width: 1100px) {
  .pa-saisie-grille { grid-template-columns: 1fr 1fr; } .pa-avances, .pa-recap { grid-column: 1 / -1; }
  .pa-ext-grille { grid-template-columns: 1fr 1fr; }
  .pa-planning { grid-template-columns: 1fr; }
}
@media (max-width: 719px) {
  main { padding: .8rem .7rem 6rem; }
  .pa-saisie-grille, .pa-ext-grille { grid-template-columns: 1fr; }
  .pa-jour-nav { width: 100%; justify-content: space-between; } .pa-jour-nav b { min-width: 0; flex: 1; font-size: 1.05rem; }
  .pa-sec { display: none; }
  .pa-tableau { min-width: 640px; font-size: .84rem; }
  .pa-tableau-tete .pa-totaux { flex: 1 1 100%; order: 3; display: grid; grid-template-columns: 1fr 1fr; }
  .pa-tableau-tete h2 { min-width: 0; flex: 1; }
  .pa-bande { grid-template-columns: 1fr 1fr; }
  .pa-roles { grid-template-columns: 1fr; }
  .pa-att-ligne { grid-template-columns: 3rem 1fr auto; } .pa-att-ligne em { display: none; }
  .pa-chiffres { grid-template-columns: 1fr 1fr; }
  .pa-tres-gros { font-size: 1.7rem; }
  #nav { padding-top: .2rem; }
  #nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: .3rem .1rem; font-size: .68rem; border-radius: 10px; }
  #nav a::before { content: ""; width: 22px; height: 22px; background: currentColor; -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; }
  #nav a[data-route="accueil"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M3 11l9-8 9 8v10H3z'/%3E%3C/svg%3E"); }
  #nav a[data-route="saisie"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4z'/%3E%3C/svg%3E"); }
  #nav a[data-route="planning"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Crect x='3' y='4' width='18' height='17' rx='2'/%3E%3Cpath d='M3 9h18M8 2v4M16 2v4'/%3E%3C/svg%3E"); }
  #nav a[data-route="versements"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='2' y='6' width='20' height='13' rx='2'/%3E%3Cpath d='M2 10h20'/%3E%3C/svg%3E"); }
  #nav a[data-route="autres"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M14 3H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z'/%3E%3Cpath d='M14 3v6h6M8 13h8M8 17h5'/%3E%3C/svg%3E"); }
  #nav a[data-route="equipe"], #nav a[data-route="acces"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='9' cy='8' r='4'/%3E%3Cpath d='M2 21a7 7 0 0 1 14 0M19 8v6M16 11h6'/%3E%3C/svg%3E"); }
  #nav a.actif { color: var(--bordeaux); background: #f6e3e4; }
}
