/* Mon espace VOG Solutions — feuille unique.
   Charte du site vog-solutions.com : Navy #0B1533, Orange #F97316, Inter. */
:root {
  --navy: #0B1533; --navy2: #1a2f4e; --orange: #F97316; --orange-clair: #fff7ed;
  --bleu: #246BFD; --bleu-clair: #eff6ff; --vert: #047857; --vert-clair: #ecfdf5;
  --rouge: #b91c1c; --rouge-clair: #fef2f2; --ambre: #92400e; --ambre-clair: #fffbeb;
  --texte: #1e293b; --discret: #5b6b80; --bordure: #e2e8f0; --fond: #f8fafc; --blanc: #ffffff;
  --rayon: 10px; --ombre: 0 1px 2px rgba(11,21,51,.06), 0 4px 16px rgba(11,21,51,.05);
  --focus: 0 0 0 3px rgba(36,107,253,.35);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: var(--texte); background: var(--fond); font-size: 15px; line-height: 1.55; }
a { color: var(--bleu); }
img { max-width: 100%; }
h1 { font-size: 24px; line-height: 1.25; margin: 0 0 6px; color: var(--navy); }
h2 { font-size: 17px; margin: 0 0 12px; color: var(--navy); }
h3 { font-size: 15px; margin: 0 0 8px; color: var(--navy); }
p { margin: 0 0 12px; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
.visuellement-masque { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.evitement { position: absolute; left: 12px; top: -48px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 50; }
.evitement:focus { top: 10px; }
.noscript { padding: 24px; }

/* ── En-tête ─────────────────────────────────────────────────────────── */
.entete { background: var(--blanc); border-bottom: 1px solid var(--bordure); position: sticky; top: 0; z-index: 20; }
.entete-int { max-width: 1120px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 14px; }
.logo img { height: 34px; width: auto; display: block; mix-blend-mode: multiply; }
.contexte { margin-left: auto; min-width: 0; }
.contexte select { max-width: 260px; }
.menu-bouton { display: none; }
/* MASTER PORTAIL 006 — à 768 px, la barre défilait et coupait « Se déconnecter » :
   elle passe désormais à la ligne au lieu de cacher des entrées. */
.navigation { max-width: 1120px; margin: 0 auto; padding: 0 16px; display: flex; flex-wrap: wrap; gap: 2px; }
.navigation a { padding: 10px 12px; color: var(--discret); text-decoration: none; font-weight: 500; border-bottom: 2px solid transparent; white-space: nowrap; font-size: 14px; }
.navigation a:hover { color: var(--navy); }
.navigation a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--orange); }
.navigation .sortie { margin-left: auto; }

/* ── Contenu ─────────────────────────────────────────────────────────── */
.contenu { max-width: 1120px; margin: 0 auto; padding: 24px 16px 64px; outline: none; }
.contenu:focus, .contenu:focus-visible { box-shadow: none; }
.contenu-etroit { max-width: 440px; margin: 32px auto; }
.tete { margin-bottom: 20px; }
.tete p { color: var(--discret); margin: 0; }
.chargement { color: var(--discret); padding: 40px 0; text-align: center; }
.grille { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.carte { background: var(--blanc); border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 20px; box-shadow: var(--ombre); }
.carte + .carte { margin-top: 16px; }
.grille .carte + .carte { margin-top: 0; }
.carte-tete { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.discret { color: var(--discret); font-size: 14px; }
.ligne { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.pile > * + * { margin-top: 12px; }
dl.faits { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; font-size: 14px; }
dl.faits dt { color: var(--discret); }
dl.faits dd { margin: 0; font-weight: 500; }
.logiciel-marque { font-weight: 700; color: var(--navy); font-size: 16px; }
.separateur { border: 0; border-top: 1px solid var(--bordure); margin: 18px 0; }

/* ── Pastilles d'état ───────────────────────────────────────────────── */
.pastille { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--fond); color: var(--discret); border: 1px solid var(--bordure); white-space: nowrap; }
.pastille.ok { background: var(--vert-clair); color: var(--vert); border-color: #a7f3d0; }
.pastille.attention { background: var(--ambre-clair); color: var(--ambre); border-color: #fde68a; }
.pastille.alerte { background: var(--rouge-clair); color: var(--rouge); border-color: #fecaca; }
.pastille.info { background: var(--bleu-clair); color: #1d4ed8; border-color: #bfdbfe; }

/* ── Messages ───────────────────────────────────────────────────────── */
.message { border-radius: 8px; padding: 12px 14px; font-size: 14px; border: 1px solid var(--bordure); background: var(--blanc); }
.message.erreur { background: var(--rouge-clair); border-color: #fecaca; color: #7f1d1d; }
.message.succes { background: var(--vert-clair); border-color: #a7f3d0; color: #064e3b; }
.message.attention { background: var(--ambre-clair); border-color: #fde68a; color: #78350f; }
.message.info { background: var(--bleu-clair); border-color: #bfdbfe; color: #1e3a8a; }
.vide { text-align: center; color: var(--discret); padding: 28px 12px; }

/* ── Formulaires ────────────────────────────────────────────────────── */
form .champ { margin-bottom: 14px; }
label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--navy); }
.aide-champ { font-weight: 400; color: var(--discret); font-size: 13px; margin-top: 4px; }
.aide-champ .bloc { display: block; }
.aide-champ .bloc + .bloc { margin-top: 3px; }
input[type=email], input[type=password], input[type=text], select, textarea {
  width: 100%; font: inherit; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 8px; background: var(--blanc); color: var(--texte); }
input:focus, select:focus, textarea:focus { border-color: var(--bleu); box-shadow: var(--focus); outline: none; }
input[aria-invalid="true"] { border-color: var(--rouge); }
.code-saisie { letter-spacing: 6px; font-size: 22px; text-align: center; font-variant-numeric: tabular-nums; }
.case { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.case input { margin-top: 4px; }

/* ── Boutons ────────────────────────────────────────────────────────── */
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; font-size: 14.5px; padding: 10px 18px; border-radius: 8px; border: 1px solid var(--navy); background: var(--navy); color: #fff; cursor: pointer; text-decoration: none; min-height: 42px; }
.bouton:hover { background: var(--navy2); }
.bouton.secondaire { background: var(--blanc); color: var(--navy); border-color: #cbd5e1; }
.bouton.secondaire:hover { border-color: var(--navy); }
.bouton.action { background: var(--orange); border-color: var(--orange); }
.bouton.action:hover { background: #ea580c; }
.bouton.danger { background: var(--blanc); color: var(--rouge); border-color: #fecaca; }
.bouton.lien { background: none; border: none; color: var(--bleu); padding: 0; min-height: 0; font-weight: 500; text-decoration: underline; }
.bouton.pleine-largeur { width: 100%; }
.bouton[disabled], .bouton[aria-busy="true"] { opacity: .6; cursor: progress; }

/* ── Tableaux ───────────────────────────────────────────────────────── */
.tableau-conteneur { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--bordure); vertical-align: top; }
th { color: var(--discret); font-weight: 600; font-size: 13px; }
td.nombre, th.nombre { text-align: right; font-variant-numeric: tabular-nums; }

/* ── Onglets ────────────────────────────────────────────────────────── */
/* MASTER PORTAIL 006 — même règle pour les onglets de « Mon compte » sur téléphone. */
.onglets { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--bordure); margin-bottom: 18px; }
.onglets a { padding: 9px 12px; text-decoration: none; color: var(--discret); font-weight: 500; border-bottom: 2px solid transparent; white-space: nowrap; }
.onglets a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--orange); }

/* ── Modale ─────────────────────────────────────────────────────────── */
.modale-fond { position: fixed; inset: 0; background: rgba(11,21,51,.45); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 40; }
.modale { background: var(--blanc); border-radius: 12px; padding: 22px; width: 100%; max-width: 420px; box-shadow: 0 10px 40px rgba(0,0,0,.2); }

/* ── Pages d'accès ──────────────────────────────────────────────────── */
.acces-logo { display: block; margin: 0 auto 20px; height: 48px; width: auto; mix-blend-mode: multiply; }
.acces-pied { text-align: center; margin-top: 16px; font-size: 14px; color: var(--discret); }
.produits-logos { display: flex; justify-content: center; align-items: center; gap: 28px; flex-wrap: wrap; margin: 4px 0 8px; }
.produits-logos img { height: 32px; width: auto; max-width: 45%; mix-blend-mode: multiply; }
.produits-mention { text-align: center; font-size: 13px; margin: 6px 0 0; }

@media (max-width: 720px) {
  h1 { font-size: 21px; }
  .entete-int { flex-wrap: wrap; }
  .menu-bouton { display: inline-flex; margin-left: auto; font: inherit; font-weight: 600; padding: 8px 12px; border: 1px solid #cbd5e1; border-radius: 8px; background: var(--blanc); color: var(--navy); }
  .contexte { order: 3; width: 100%; margin-left: 0; }
  .contexte select { max-width: none; }
  .navigation { display: none; flex-direction: column; padding-bottom: 8px; }
  .navigation.ouverte { display: flex; }
  .navigation a { border-bottom: 0; border-left: 3px solid transparent; }
  .navigation a[aria-current="page"] { border-left-color: var(--orange); }
  .navigation .sortie { margin-left: 0; }
  .contenu { padding-top: 18px; }
  dl.faits { grid-template-columns: 1fr; gap: 2px; }
  dl.faits dd { margin-bottom: 8px; }
  table.repliable thead { display: none; }
  table.repliable tr { display: block; border-bottom: 1px solid var(--bordure); padding: 8px 0; }
  table.repliable td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 4px 0; }
  table.repliable td::before { content: attr(data-libelle); color: var(--discret); font-weight: 600; font-size: 13px; }
  table.repliable td.nombre { text-align: right; }
  /* MASTER PORTAIL 006 — mesuré à 320 px : le tableau gardait la largeur de
     ses adresses e-mail les plus longues et défilait dans son conteneur ;
     valeurs coupées (« Compte VO… », « Autoriser les… »). Le tableau replié
     devient un bloc de la largeur de l'écran, chaque valeur passe à la ligne. */
  table.repliable, table.repliable tbody { display: block; width: 100%; }
  table.repliable td { flex-wrap: wrap; align-items: baseline; overflow-wrap: anywhere; text-align: right; }
  table.repliable td::before { flex: 0 0 auto; }
  table.repliable td > * { min-width: 0; max-width: 100%; overflow-wrap: anywhere; text-align: right; }
  .carte-tete { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
.espace-haut { margin-top: 8px; }
.espace { height: 12px; }

/* ── MASTER PORTAIL 007 — personnalité des logiciels ───────────────────
   Chaque logiciel prend sa couleur de marque (VOG BTP : orange de la
   charte ; VOG Business : bleu marine #0B1533 de la palette VOG, DEC-124,
   celle de ses propres pages). VOG Business n'a pas encore de logo
   définitif (ARBITRAGES_CONSOLIDES, « logo définitif » ouvert) : un
   monogramme le représente, aucun visuel n'est inventé. Le liseré et le
   monogramme portent la couleur ; le texte reste sombre sur fond clair
   (contraste AA). */
:root { --btp: #F97316; --btp-fonce: #9a3412; --btp-clair: #fff7ed;
        --biz: #0B1533; --biz-fonce: #0B1533; --biz-clair: #E6F1FB;
        --futur: #6d28d9; --futur-fonce: #5b21b6; --futur-clair: #f5f3ff; }
.carte.logiciel { border-top: 4px solid var(--bordure); }
.carte.logiciel-btp { border-top-color: var(--btp); }
.carte.logiciel-business { border-top-color: var(--biz); }
.carte.logiciel-archi, .carte.logiciel-mo { border-top-color: var(--futur); }
.logiciel-titre { display: flex; gap: 12px; align-items: center; min-width: 0; }
.logiciel-badge { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 8px;
  border-radius: 10px; font-weight: 800; font-size: 13px; letter-spacing: .5px; border: 1px solid var(--bordure); background: var(--fond); color: var(--navy); }
.logiciel-badge-btp { background: var(--btp-clair); color: var(--btp-fonce); border-color: #fed7aa; }
.logiciel-badge-business { background: var(--biz-clair); color: var(--biz-fonce); border-color: var(--bordure); }
.logiciel-badge-archi, .logiciel-badge-mo { background: var(--futur-clair); color: var(--futur-fonce); border-color: #ddd6fe; }
.petit { font-size: 13px; }
/* MASTER PORTAIL 008 — charte VOG : aucun dégradé. */
.carte.decouvrir { background: var(--blanc); }
.carte.a-venir { border-style: dashed; border-top-style: solid; box-shadow: none; }

/* Propositions de rattachement : visibles d'abord, sans crier. */
.carte.proposition { border-left: 4px solid var(--bleu); margin-bottom: 16px; }
.proposition-ligne + .proposition-ligne { border-top: 1px solid var(--bordure); margin-top: 14px; padding-top: 14px; }

/* Accès rattachés : montant et confirmation. */
.liste-acces { list-style: none; padding: 0; margin: 0; }
.liste-acces li { padding: 10px 0; border-bottom: 1px solid var(--bordure); }
.liste-acces li:last-child { border-bottom: 0; }
.montant { font-size: 15px; color: var(--navy); }
.case label { font-weight: 400; margin: 0; color: var(--texte); }

/* ── MASTER PORTAIL 008 — budget : chiffres clés ─────────────────────── */
.chiffres { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin-bottom: 16px; }
.carte.chiffre { border-top: 4px solid var(--navy); }
.chiffre-valeur { font-size: 22px; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; margin: 4px 0 2px; }
.modale { max-height: calc(100vh - 32px); overflow-y: auto; }
@media (max-width: 720px) { .chiffre-valeur { font-size: 19px; } .carte-tete > .ligne { width: 100%; } }
/* MASTER PORTAIL 008 — tablette (721–900 px) : les actions de l'Équipe
   (inviter, déléguer, modifier, désactiver) s'empilent au lieu d'élargir
   le tableau (mesuré : 725 px pour 694 disponibles à 768 px). */
@media (min-width: 721px) and (max-width: 900px) {
  table.repliable td .ligne { flex-direction: column; align-items: flex-start; gap: 6px; }
  table.repliable td { overflow-wrap: anywhere; }
}

/* Compte unique — champ piège de l'inscription : hors écran, jamais lu par une personne. */
.champ-piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ── Refonte du 25/10/2026 — quatre entrées principales ────────────────
   Mes logiciels, Mon entreprise, Abonnements et factures, Mon compte ; Espace cabinet, Aide et
   déconnexion en groupe secondaire, plus discret. Reprise de la refonte du 23/10 (3f5e257). */
.navigation a:not(.secondaire) { font-weight: 600; }
.navigation a.secondaire { font-weight: 400; color: var(--discret); }
.navigation a.secondaire[aria-current="page"] { color: var(--navy); }
.contexte { display: flex; align-items: center; gap: 8px; }
.contexte-libelle { font-size: 13px; color: var(--discret); font-weight: 600; margin: 0; }
.fil-retour { margin: 0 0 12px; font-size: 14px; }
.fil-retour a { color: var(--navy); }
.fil-entreprise { color: var(--discret); }
.section-admin { margin-bottom: 16px; }
.section-admin h2 { margin-top: 0; }
/* Paramètres : l'entreprise modifiée est toujours nommée (multi-sociétés). */
.bandeau-entreprise { border-left: 4px solid var(--bleu); background: var(--bleu-clair); color: var(--navy); padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; overflow-wrap: anywhere; }
.onglets-boutons { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--bordure); margin-bottom: 14px; }
.onglets-boutons button { font: inherit; font-weight: 500; background: none; border: 0; border-bottom: 2px solid transparent; padding: 9px 12px; color: var(--discret); cursor: pointer; }
.onglets-boutons button[aria-selected="true"] { color: var(--navy); border-bottom-color: var(--orange); }
.onglets-boutons button:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
@media (max-width: 720px) {
  .navigation a.sortie { border-top: 1px solid var(--bordure); margin-top: 6px; padding-top: 12px; }
  .section-admin .ligne { flex-direction: column; align-items: stretch; }
  .section-admin .bouton { text-align: center; }
  .contexte { flex-wrap: wrap; }
  .onglets-boutons { flex-direction: column; border-bottom: 0; }
  .onglets-boutons button { text-align: left; border-bottom: 0; border-left: 3px solid transparent; }
  .onglets-boutons button[aria-selected="true"] { border-left-color: var(--orange); }
}
