/* Portail partenaires LCC (partenaires-portail-v1, maquettes choisies par le CEO le 26/10/2026 : portail C, tableaux A, chiffres B).
   Style « tableau épuré » de L2CNet. Aucune ressource externe : police et icônes servies par le portail. */
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('/assets/fonts/dmsans-latin.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('/assets/fonts/dmsans-latin-ext.woff2') format('woff2'); unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF; }
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; background: #eaeef4; color: #1a1a2e; font-size: 15px; min-height: 100vh; display: flex; flex-direction: column; }
a { color: #0d1137; }
main { flex: 1; }

/* barre du haut */
.ptop { background: #0d1137; color: #fff; padding: 0 2.25rem; min-height: 68px; display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.ptop .marque { font-weight: 700; font-size: 1.05rem; white-space: nowrap; } .ptop .marque small { font-weight: 500; opacity: .6; margin-left: .5rem; }
.ptop .qui { margin-left: auto; font-size: 14px; display: flex; gap: 1rem; align-items: center; min-width: 0; }
.ptop .qui-txt { opacity: .85; overflow-wrap: anywhere; }
.ptop form { margin: 0; }
.onglets-haut { background: #fff; border-bottom: 1px solid #e4e8f0; }
.pzone-l { max-width: 1240px; margin: 0 auto; padding: 0 2rem; display: flex; gap: .3rem; overflow-x: auto; }
.onglet { padding: 1rem 1.05rem; font-size: 15px; color: #5b6275; text-decoration: none; border-bottom: 2.5px solid transparent; font-weight: 500; white-space: nowrap; }
.onglet:hover { color: #0d1137; }
.onglet.on { color: #0d1137; border-bottom-color: #c9a55b; font-weight: 700; }
.pzone { max-width: 1240px; width: 100%; margin: 0 auto; padding: 2rem 2rem 2.5rem; }
.pied { text-align: center; font-size: 13px; color: #8a90a2; padding: 1rem 1rem 1.5rem; }

/* boutons et champs */
.btn { font: inherit; font-size: 14px; padding: .5rem 1rem; border-radius: 9px; border: 1px solid #d6dbe7; background: #fff; color: #0d1137; display: inline-flex; gap: .45rem; align-items: center; justify-content: center; cursor: pointer; white-space: nowrap; text-decoration: none; }
.btn:hover { border-color: #b9c0d0; }
.btn-pri { background: #0d1137; border-color: #0d1137; color: #fff; } .btn-pri:hover { background: #1b2156; border-color: #1b2156; }
.btn-clair { background: transparent; color: #fff; border-color: rgba(255,255,255,.25); } .btn-clair:hover { border-color: rgba(255,255,255,.55); }
.btn-large { width: 100%; padding: .75rem 1rem; font-size: 15px; margin-top: 1.1rem; }
.sel { font: inherit; font-size: 14px; height: 38px; padding: 0 2rem 0 .8rem; border: 1px solid #d6dbe7; border-radius: 9px; background: #fff; color: #1a1a2e; max-width: 100%; }
.saisie { font: inherit; font-size: 15px; width: 100%; height: 44px; padding: 0 .9rem; border: 1px solid #d6dbe7; border-radius: 9px; background: #fff; color: #1a1a2e; }
.saisie:focus, .sel:focus { outline: 2px solid #c9a55b; outline-offset: 1px; border-color: #c9a55b; }
.saisie.code { font-size: 22px; letter-spacing: 6px; text-align: center; font-variant-numeric: tabular-nums; }
.champ-l { display: block; font-size: 14px; color: #5b6275; font-weight: 600; margin: 1rem 0 .4rem; }
.aide { font-weight: 400; color: #8a90a2; font-size: 14px; }
.lien { font: inherit; font-size: 14px; background: none; border: 0; color: #0d1137; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 0; display: inline-flex; gap: .4rem; align-items: center; }
.form-lien { margin-top: 1rem; text-align: center; }

/* pages de connexion */
.auth-zone { display: flex; justify-content: center; padding: 3.5rem 1rem; }
.auth-carte { background: #fff; border-radius: 16px; padding: 2.2rem 2.4rem; width: 100%; max-width: 440px; box-shadow: 0 1px 2px rgba(13,17,55,.05); align-self: flex-start; }
.auth-carte.large { max-width: 560px; }
.pzone > .auth-carte { margin: 1rem auto 0; }
.auth-carte h1 { margin: 0 0 .4rem; font-size: 1.4rem; color: #0d1137; }
.auth-intro { margin: 0 0 .4rem; color: #5b6275; line-height: 1.5; }
.auth-note { margin: 1.2rem 0 0; font-size: 14px; color: #6c757d; line-height: 1.5; }
.alerte { background: #f6e6e4; color: #9b2f25; border-radius: 9px; padding: .7rem .9rem; font-size: 14px; margin-top: 1rem; }
.info { background: #e5f3e6; color: #2e6b31; border-radius: 9px; padding: .7rem .9rem; font-size: 14px; margin-top: 1rem; }
.etapes { display: flex; gap: .5rem; margin-bottom: 1.2rem; flex-wrap: wrap; }
.etapes span { font-size: 13px; padding: .25rem .7rem; border-radius: 999px; background: #eef0f5; color: #5b6275; }
.etapes .on { background: #0d1137; color: #fff; font-weight: 600; } .etapes .fait { background: #e5f3e6; color: #2e6b31; }
.consignes { padding-left: 1.2rem; margin: .8rem 0 1rem; line-height: 1.7; color: #1a1a2e; }
.qr-zone { display: flex; gap: 1.4rem; align-items: center; background: #f6f7fa; border-radius: 12px; padding: 1.1rem; flex-wrap: wrap; }
.qr { width: 196px; height: 196px; background: #fff; border-radius: 10px; padding: 8px; flex: none; display: flex; align-items: center; justify-content: center; }
.qr img, .qr canvas { width: 180px; height: 180px; image-rendering: pixelated; }
.cle-manuelle { flex: 1; min-width: 180px; display: grid; gap: .5rem; }
.cle-manuelle code { font-size: 15px; background: #fff; border: 1px solid #e4e8f0; border-radius: 8px; padding: .6rem .7rem; letter-spacing: 1px; overflow-wrap: anywhere; color: #0d1137; }
.codes { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin: 1.2rem 0 .4rem; }
.codes code { font-size: 17px; text-align: center; background: #f6f7fa; border-radius: 9px; padding: .7rem; letter-spacing: 2px; color: #0d1137; }

/* pages connectées */
.ptitre { display: flex; align-items: flex-end; gap: 1rem; margin-bottom: 1.4rem; flex-wrap: wrap; }
.ptitre h1 { margin: 0; font-size: 1.5rem; color: #0d1137; } .ptitre p { margin: .3rem 0 0; color: #6c757d; font-size: 15px; }
.droite { margin-left: auto; display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.carte { background: #fff; border-radius: 14px; box-shadow: 0 1px 2px rgba(13,17,55,.05); overflow: hidden; min-width: 0; }
.chiffres { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.25rem; }
.chiffres.n1 { grid-template-columns: repeat(1, minmax(0, 300px)); } .chiffres.n2 { grid-template-columns: repeat(2, 1fr); } .chiffres.n3 { grid-template-columns: repeat(3, 1fr); }
.chiffre { background: #fff; border-radius: 14px; padding: 1.3rem 1.5rem; }
.chiffre .v { font-size: 2rem; font-weight: 700; color: #0d1137; font-variant-numeric: tabular-nums; line-height: 1.1; }
.chiffre .l { font-size: 14px; color: #6c757d; margin-top: .35rem; }
.chiffre .d { font-size: 14px; margin-top: .55rem; }
.vert { color: #2e7d32; } .rouge { color: #b3261e; } .muet { color: #8a90a2; }
.dispo-mv { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.filtre-col { background: #fff; border-radius: 14px; padding: 1.3rem 1.4rem; display: grid; gap: 1.2rem; }
.filtre-col h4 { margin: 0 0 .5rem; font-size: 14px; color: #5b6275; }
.filtre-col .sel { width: 100%; }
.coche { display: flex; align-items: center; gap: .6rem; padding: .32rem 0; font-size: 15px; cursor: pointer; }
.coche input { width: 18px; height: 18px; accent-color: #0d1137; margin: 0; flex: none; }
.semaine { padding: 1rem 1.75rem .6rem; font-size: 14px; font-weight: 700; color: #5b6275; background: #f6f7fa; border-top: 1px solid #e4e8f0; display: flex; gap: 1rem; flex-wrap: wrap; }
.carte > .semaine:first-child { border-top: 0; }
.semaine span { font-weight: 500; color: #8a90a2; }
.liste-mv { list-style: none; margin: 0; padding: 0; }
.liste-mv li { display: flex; align-items: center; gap: .9rem; padding: .95rem 1.75rem; border-top: 1px solid #edf0f5; min-height: 68px; }
.liste-mv .cible { flex: 0 0 230px; min-width: 0; overflow-wrap: anywhere; }
.liste-mv .quoi { flex: 1; min-width: 0; }
.sous { display: block; font-size: 14px; color: #6c757d; margin-top: 2px; overflow-wrap: anywhere; }
.ico { width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; flex: none; font-size: 16px; }
.ico.in { background: #e5f3e6; color: #2e6b31; } .ico.out { background: #f6e6e4; color: #9b2f25; }
.date { margin-left: auto; color: #6c757d; font-size: 14px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.vide { padding: 3rem 1.75rem; text-align: center; color: #6c757d; }
.filtres { display: flex; gap: .7rem; align-items: center; padding: 1.1rem 1.75rem; flex-wrap: wrap; }
.resume { font-size: 14px; color: #6c757d; } .resume b { color: #2e7d32; font-weight: 600; }
.defile { overflow-x: auto; }
table.lb { width: 100%; border-collapse: separate; border-spacing: 0; }
table.lb th { font-size: 14px; font-weight: 600; color: #5b6275; background: #f6f7fa; padding: 13px 18px; border-top: 1px solid #e4e8f0; border-bottom: 1px solid #e4e8f0; white-space: nowrap; text-align: left; }
table.lb td { padding: 10px 18px; height: 68px; font-size: 15px; border-bottom: 1px solid #edf0f5; vertical-align: middle; background: #fff; overflow-wrap: anywhere; }
table.lb tbody tr:nth-child(even) td { background: #fafbfd; }
table.lb tbody tr:hover td { background: #fbf7ee; } table.lb tbody tr:hover td:first-child { box-shadow: inset 3px 0 0 #c9a55b; }
table.lb tbody tr:last-child td { border-bottom: 0; }
table.lb th:first-child, table.lb td:first-child { padding-left: 28px; } table.lb th:last-child, table.lb td:last-child { padding-right: 28px; }
table.lb .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fort { font-weight: 600; color: #0d1137; }
table.lb td.nw { white-space: nowrap; overflow-wrap: normal; }
.tel { font-variant-numeric: tabular-nums; font-weight: 600; color: #0d1137; letter-spacing: .2px; white-space: nowrap; }
td.piece { font-variant-numeric: tabular-nums; letter-spacing: 1px; color: #4a4d5e; white-space: nowrap; }
.puce { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; line-height: 23px; padding: 0 10px; border-radius: 999px; font-weight: 500; white-space: nowrap; background: #eef0f5; color: #4a4d5e; }
.puce.ok { background: #e5f3e6; color: #2e6b31; } .puce.ko { background: #f6e6e4; color: #9b2f25; }
.point { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: currentColor; }
.note-bas { font-size: 14px; color: #6c757d; margin: 1rem .2rem 0; }

@media (max-width: 900px) {
  .dispo-mv { grid-template-columns: 1fr; }
  .chiffres, .chiffres.n3 { grid-template-columns: repeat(2, 1fr); }
  .liste-mv .cible { min-width: 0; }
  .liste-mv li { flex-wrap: wrap; }
}
@media (max-width: 560px) {
  .ptop { padding: .7rem 16px; } .pzone { padding: 1.4rem 16px 2rem; } .pzone-l { padding: 0 16px; }
  .ptop .qui { margin-left: 0; width: 100%; justify-content: space-between; }
  .auth-carte { padding: 1.6rem 1.3rem; }
  .chiffres, .chiffres.n2, .chiffres.n3 { grid-template-columns: 1fr 1fr; }
  .filtres, .liste-mv li, .semaine { padding-left: 16px; padding-right: 16px; }
}

/* ═══ charte L2CNet (CEO 26/10/2026 : « la charte graphique ne respecte pas celle de l2cnet ») ═══
   Reprise du thème « Premium v2 » de L2CNet (assets/theme-premium.css, login.php, barre latérale de includes/header.php) :
   navy #0d1137 / #1a237e / #283593, or #c9a55b, DM Sans, rayons 10 et 18 px, boutons en dégradé, onglet actif en pastille navy,
   cartes KPI à liseré, logos L2C Net et LCC Services. Le tableau épuré (référence CEO du 16/10) est gardé tel quel. */
:root { --navy: #0d1137; --navy-2: #1a237e; --navy-light: #283593; --gold: #c9a55b; --line: #e4e8f0; --muted: #8b8fa3; --text-2: #4a4d5e;
        --shadow: 0 4px 16px rgba(13,17,55,.06); --shadow-lg: 0 8px 32px rgba(13,17,55,.08); --radius: 14px; --radius-lg: 18px; }
.ptop { background: linear-gradient(180deg, #0d1137 0%, #070b24 100%); min-height: 72px; }
.ptop .marque { display: flex; align-items: center; gap: .85rem; text-decoration: none; color: #fff; }
.ptop .marque img { height: 40px; display: block; }
.ptop .marque .liyam { font-size: .62rem; color: rgba(255,255,255,.45); letter-spacing: 1px; text-transform: uppercase; font-weight: 600; line-height: 1.5; }
.ptop .marque .liyam b { display: block; font-size: .95rem; letter-spacing: 0; text-transform: none; color: #fff; font-weight: 700; }
.btn { border-radius: 10px; font-weight: 600; letter-spacing: -.01em; transition: all .2s cubic-bezier(.4,0,.2,1); border-color: var(--line); }
.btn:hover { transform: translateY(-1px); }
.btn-pri { background: linear-gradient(135deg, var(--navy), var(--navy-2)); border-color: var(--navy); color: #fff; }
.btn-pri:hover { background: linear-gradient(135deg, var(--navy), var(--navy-2)); box-shadow: 0 4px 12px rgba(13,17,55,.25); }
.btn-or { background: linear-gradient(135deg, var(--gold), #ddb868); border: 0; color: #fff; }
.btn-or:hover { box-shadow: 0 4px 12px rgba(201,165,91,.35); }
.btn-clair { border-color: rgba(255,255,255,.25); }
.saisie, .sel { border-radius: 10px; border-color: var(--line); }
.saisie:focus, .sel:focus { outline: 0; border-color: var(--gold); box-shadow: 0 0 0 .2rem rgba(201,165,91,.15); }
.champ-l { font-size: 14px; font-weight: 600; color: var(--text-2); letter-spacing: -.01em; }
/* onglets : pastille navy comme les onglets de L2CNet */
.onglets-haut { border-bottom: 2px solid var(--line); }
.pzone-l { gap: 2px; padding-top: .55rem; }
.onglet { border: 0; border-radius: 10px 10px 0 0; padding: .7rem 1.15rem; font-weight: 700; color: var(--muted); }
.onglet:hover { color: var(--navy-2); background: rgba(13,17,55,.03); }
.onglet.on { background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; }
/* cartes */
.carte, .filtre-col { border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.chiffre { border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); border-top: 3px solid var(--navy-2); text-align: center; padding: 1.2rem 1rem; }
.chiffre.in { border-top-color: #00c48c; } .chiffre.out { border-top-color: #ff4757; }
.chiffre .v { font-weight: 800; letter-spacing: -.02em; font-size: 1.9rem; line-height: 1; }
.chiffre .l { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; margin-top: .55rem; }
.ptitre h1 { font-weight: 800; letter-spacing: -.02em; }
.semaine { color: var(--navy-2); }
.filtre-col h4 { color: var(--navy-2); }
/* pages de connexion : comme login.php de L2CNet */
body.accueil { background: linear-gradient(135deg, #0d1137 0%, #1a237e 50%, #283593 100%); }
body.accueil main.auth-zone { align-items: center; padding: 3rem 1rem; }
.login-card { width: 100%; max-width: 440px; border-radius: 20px; box-shadow: 0 20px 60px rgba(0,0,0,.3); overflow: hidden; background: #fff; align-self: center; }
.login-card.large { max-width: 580px; }
.login-header { background: var(--navy); color: #fff; padding: 2.1rem 2rem 1.6rem; text-align: center; }
.login-header .bi-headset { font-size: 2.4rem; opacity: .9; display: block; margin-bottom: .45rem; }
.login-header .titre { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; margin: 0 0 .15rem; }
.login-header small { opacity: .5; font-size: .82rem; font-weight: 500; }
.login-header .lcc-logo { display: flex; justify-content: center; margin-top: 1rem; }
.login-header .lcc-logo img { height: 34px; max-width: 70%; object-fit: contain; opacity: .95; }
body.accueil .auth-carte { box-shadow: none; border-radius: 0; max-width: none; padding: 1.8rem 2rem 2rem; }
body.accueil .auth-carte h1 { font-size: 1.15rem; color: var(--navy-2); font-weight: 800; }
body.accueil .pied { color: rgba(255,255,255,.45); }
/* étiquettes flottantes (comme les champs de connexion de L2CNet) */
.flottant { position: relative; margin-top: 1rem; }
.flottant .saisie { height: 58px; padding: 1.35rem .9rem .35rem; }
.flottant label { position: absolute; left: .95rem; top: 1.05rem; font-size: 15px; color: var(--muted); pointer-events: none; transition: all .15s; display: flex; gap: .4rem; align-items: center; }
.flottant .saisie:focus + label, .flottant .saisie:not(:placeholder-shown) + label { top: .45rem; font-size: 12px; color: var(--text-2); }
.type-piece { font-size: 12px; color: var(--muted); letter-spacing: 0; margin-left: .35rem; text-transform: uppercase; font-weight: 600; }
/* recherche Ctrl+K dans la barre du haut (comme la recherche de L2CNet) */
.recherche { display: flex; align-items: center; gap: .5rem; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 10px; padding: 0 .7rem; height: 40px; width: 320px; max-width: 100%; margin-left: 2rem; }
.recherche:focus-within { background: rgba(255,255,255,.14); border-color: var(--gold); }
.recherche i { color: rgba(255,255,255,.55); }
.recherche input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: #fff; font: inherit; font-size: 14px; }
.recherche input::placeholder { color: rgba(255,255,255,.5); }
.recherche kbd { font: inherit; font-size: 12px; color: rgba(255,255,255,.55); border: 1px solid rgba(255,255,255,.2); border-radius: 6px; padding: 0 .4rem; line-height: 20px; white-space: nowrap; }
.puce.cadre { background: #fff; color: #5b6275; box-shadow: inset 0 0 0 1px #dfe3ec; }
.puce .effacer { color: #8a90a2; text-decoration: none; margin-left: .15rem; }
@media (max-width: 900px) { .recherche { order: 3; width: 100%; margin: 0 0 .7rem; } }
/* CEO 26/10 : logo LCC detoure pour fond navy, copyright en bas de chaque page */
.login-header .lcc-logo img { height: 48px; max-width: 75%; opacity: 1; }
.pied { line-height: 1.6; } .pied span { display: block; font-size: 12px; opacity: .8; }
