/* Cockpit Everyday Studio — styles repris des maquettes (design/). */

:root {
  --bg: #FFFFFF; --surface: rgba(255,255,255,.62); --glass-side: rgba(255,255,255,.5);
  --glass-line: rgba(17,17,19,.07); --glass-hi: rgba(255,255,255,.9);
  --surface-2: rgba(17,17,19,.04); --surface-3: rgba(17,17,19,.08);
  --line: rgba(17,17,19,.08); --line-strong: rgba(17,17,19,.16);
  --text: #111113; --text-2: #45454B; --text-3: #5F5F67; --ink: #111113; --ink-fg: #FFFFFF;
  --shadow: 0 1px 2px rgba(17,17,19,.04), 0 8px 24px rgba(17,17,19,.05);
  --blob-1: #F8D6C6; --blob-2: #E4D3FA; --blob-3: #CEDCFB;
  --accent: #6D4AE0; --accent-soft: rgba(109,74,224,.1);
  --t1-bg: #EEE8FD; --t1-fg: #5B3BD0; --t2-bg: #FDE7EE; --t2-fg: #B42A5F;
  --t3-bg: #E5EEFD; --t3-fg: #2A5BC9; --t4-bg: #FDF0DC; --t4-fg: #A65A07;
  --ex-bg: #F1F1F3; --ex-fg: #4F4F57; --neg: #B4123A; --bar-comp: #CFCFD6;
  --confirm-fg: #B4123A; --confirm-bg: #FDECEF;
  --fait-bg: #E3F4E8; --fait-fg: #17663A;
  --halo: .6;
  color-scheme: light;
}
:root.dark {
  --bg: #0D0D10; --surface: rgba(30,30,36,.55); --glass-side: rgba(22,22,27,.5);
  --glass-line: rgba(255,255,255,.08); --glass-hi: rgba(255,255,255,.05);
  --surface-2: rgba(255,255,255,.05); --surface-3: rgba(255,255,255,.1);
  --line: rgba(255,255,255,.08); --line-strong: rgba(255,255,255,.16);
  --text: #EDEDF0; --text-2: #C2C2CA; --text-3: #A2A2AB; --ink: #EDEDF0; --ink-fg: #111113;
  --shadow: 0 8px 24px rgba(0,0,0,.25);
  --blob-1: #3A231D; --blob-2: #2B1F4D; --blob-3: #1B2A52;
  --accent: #B7A3FF; --accent-soft: rgba(183,163,255,.14);
  --t1-bg: #2A2147; --t1-fg: #C4B3FF; --t2-bg: #3A1E2A; --t2-fg: #FF9DBE;
  --t3-bg: #1B2747; --t3-fg: #9DBBFF; --t4-bg: #33250F; --t4-fg: #F5C27A;
  --ex-bg: #26262B; --ex-fg: #C9C9D1; --neg: #FF91A8; --bar-comp: #4A4A52;
  --confirm-fg: #FF91A8; --confirm-bg: #33161E;
  --fait-bg: #15301F; --fait-fg: #8FE0AE;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0; font-family: Inter, system-ui, sans-serif; font-size: 14px; line-height: 1.45; color: var(--text);
  background: var(--bg); font-feature-settings: "tnum" 1, "cv11" 1; -webkit-font-smoothing: antialiased;
}
a { color: var(--text); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
code, .mono { font-family: "IBM Plex Mono", ui-monospace, monospace; }
code { font-size: .92em; background: var(--surface-2); padding: 1px 5px; border-radius: 5px; overflow-wrap: anywhere; }
.serif { font-family: "Instrument Serif", Georgia, serif; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { flex: none; }

/* Structure */
.app { position: relative; overflow: clip; min-height: 100vh; display: flex; align-items: stretch; }
.halo { position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: var(--halo); }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); }
.blob-1 { top: -180px; left: 22%; width: 640px; height: 520px; background: var(--blob-1); }
.blob-2 { top: 380px; right: -160px; width: 580px; height: 580px; background: var(--blob-2); }
.blob-3 { top: 900px; left: -120px; width: 560px; height: 500px; background: var(--blob-3); }
.glass-bar { background: var(--glass-side); -webkit-backdrop-filter: blur(24px) saturate(150%); backdrop-filter: blur(24px) saturate(150%); }
.colonne { position: relative; z-index: 1; flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.contenu { padding: 40px 32px 56px; display: flex; flex-direction: column; gap: 28px; }

/* Barre latérale */
.lateral {
  position: sticky; top: 0; z-index: 2; flex: 0 0 232px; height: 100vh; overflow-y: auto;
  border-right: 1px solid var(--glass-line); padding: 20px 14px; display: flex; flex-direction: column; gap: 26px;
}
.marque { display: flex; align-items: center; gap: 10px; padding: 0 8px; }
.marque:hover { text-decoration: none; }
.marque-logo { width: 32px; height: 32px; border-radius: 9px; background: var(--ink); color: var(--ink-fg); display: inline-flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; }
.marque-texte { display: flex; flex-direction: column; min-width: 0; }
.marque-texte strong { font-size: 14px; font-weight: 700; letter-spacing: -0.01em; }
.marque-texte span { font-size: 11.5px; color: var(--text-3); }
.nav-groupe { display: flex; flex-direction: column; gap: 2px; }
.nav-titre { padding: 0 12px 8px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.nav { display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 5px 12px; border-radius: 10px; font-size: 13.5px; font-weight: 500; color: var(--text-2); }
.nav:hover { background: var(--surface-2); text-decoration: none; }
.nav.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.nav-nom { flex: 1; white-space: nowrap; }
.nav-compte { font-size: 11.5px; color: var(--text-3); white-space: nowrap; }
.nav.on .nav-compte { color: var(--accent); }
.av { width: 28px; height: 28px; flex: none; border-radius: 8px; background: var(--surface-3); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: var(--text); }
.av-rond { border-radius: 999px; width: 32px; height: 32px; }
.lateral-utilisateur { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.lateral-utilisateur strong { font-size: 13px; font-weight: 600; }

/* Barre du haut */
.haut { position: relative; z-index: 3; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 32px; border-bottom: 1px solid var(--glass-line); }
.fil { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-3); }
.fil a { color: var(--text-3); }
.fil-courant { color: var(--text); font-weight: 500; }
.haut-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; }
.icon-btn:hover { background: var(--surface-2); }
.theme-sombre, :root.dark .theme-clair { display: none; }
:root.dark .theme-sombre { display: inline-flex; }
.theme-clair { display: inline-flex; }
.menu-utilisateur { position: relative; }
.menu-utilisateur summary { list-style: none; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px 0 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); cursor: pointer; font-size: 13px; font-weight: 600; }
.menu-utilisateur summary::-webkit-details-marker { display: none; }
.menu-utilisateur summary:hover { background: var(--surface-2); }
.menu { position: absolute; right: 0; top: 48px; min-width: 250px; padding: 8px; display: flex; flex-direction: column; gap: 2px; background: var(--bg); }
.menu a, .menu button { display: block; width: 100%; text-align: left; padding: 9px 10px; border: 0; border-radius: 8px; background: none; color: var(--text); font: 500 13.5px Inter, system-ui, sans-serif; cursor: pointer; }
.menu a:hover, .menu button:hover { background: var(--surface-2); text-decoration: none; }
.menu form { margin: 0; border-top: 1px solid var(--line); padding-top: 4px; margin-top: 4px; }
.menu-role { padding: 6px 10px 8px; font-size: 12px; color: var(--text-3); }

/* En-tête de page */
.entete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.entete-texte { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.kicker { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
h1 { margin: 4px 0 2px; font-family: "Instrument Serif", Georgia, serif; font-size: 54px; font-weight: 400; line-height: 1.02; letter-spacing: -0.02em; }
h1 em { color: var(--accent); }
.sous-titre { font-size: 14.5px; color: var(--text-2); }
.sous-titre .mono { font-size: 13px; }
h2 { margin: 0; font-family: "Instrument Serif", Georgia, serif; font-size: 26px; font-weight: 400; letter-spacing: -0.01em; line-height: 1.1; }
.entete-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* Composants */
.card { background: var(--surface); -webkit-backdrop-filter: blur(20px) saturate(150%); backdrop-filter: blur(20px) saturate(150%); border: 1px solid var(--glass-line); border-radius: 16px; box-shadow: inset 0 1px 0 var(--glass-hi), var(--shadow); }
.bloc { padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.bloc-tete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 12px; }
.bloc-tete > div { display: flex; flex-direction: column; gap: 3px; }
.note { font-size: 12.5px; color: var(--text-3); }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap; background: var(--s-bg); color: var(--s-fg); border: 1px solid transparent; }
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.st-fait { --s-bg: var(--fait-bg); --s-fg: var(--fait-fg); }
.st-fait::before { background: currentColor; }
.st-en-cours { --s-bg: var(--t3-bg); --s-fg: var(--t3-fg); }
.st-en-cours::before { border: 1.5px solid currentColor; background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
.st-a-faire, .st-autre { --s-bg: var(--ex-bg); --s-fg: var(--text); }
.st-a-faire::before { border: 1.5px solid currentColor; }
.st-autre::before { display: none; }
.st-en-attente-client { --s-bg: var(--t4-bg); --s-fg: var(--t4-fg); }
.st-en-attente-client::before { width: 7px; height: 9px; border-radius: 0; border-left: 2.5px solid currentColor; border-right: 2.5px solid currentColor; }
.st-reporte { --s-bg: var(--ex-bg); --s-fg: var(--ex-fg); }
.st-reporte::before { width: 9px; height: 2px; border-radius: 1px; background: currentColor; }
.st-confirm { --s-bg: var(--confirm-bg); --s-fg: var(--confirm-fg); border: 1px dashed currentColor; font-weight: 600; letter-spacing: .02em; }
.st-confirm::before { border: 1.5px dashed currentColor; }
.ex { display: inline-flex; align-items: center; height: 18px; padding: 0 7px; border-radius: 999px; font-size: 10.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; background: var(--ex-bg); color: var(--ex-fg); white-space: nowrap; }
.btn { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: 600 14px Inter, system-ui, sans-serif; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn-plein { background: var(--ink); color: var(--ink-fg); border-color: var(--ink); }
.btn-plein:hover { background: var(--ink); opacity: .9; }
.btn-petit { height: 34px; padding: 0 14px; font-size: 13px; }
.copier-ok, .est-copie .copier-normal { display: none; }
.est-copie .copier-ok { display: inline; }
.lien-accent { color: var(--accent); font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.lien-accent .ic { width: 14px; height: 14px; }
.vide { padding: 14px 16px; border-radius: 10px; background: var(--surface-2); color: var(--text-2); font-size: 13.5px; }

/* Onglets et sélecteur de mois */
.onglets { align-self: flex-start; display: flex; flex-wrap: wrap; gap: 2px; padding: 4px; border-radius: 999px; border: 1px solid var(--glass-line); max-width: 100%; }
.tab { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 999px; font-size: 13.5px; font-weight: 500; color: var(--text-2); white-space: nowrap; }
.tab:hover { background: var(--surface-2); text-decoration: none; }
.tab.on { background: var(--ink); color: var(--ink-fg); font-weight: 600; }
.mois-choix { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; padding: 4px; border-radius: 999px; border: 1px solid var(--glass-line); background: var(--surface); }
.mois-choix .tab.on { background: var(--accent-soft); color: var(--accent); }
.mois-autres { position: relative; }
.mois-autres summary { list-style: none; cursor: pointer; }
.mois-autres summary::-webkit-details-marker { display: none; }
.mois-autres .menu { top: 42px; min-width: 190px; max-height: 320px; overflow-y: auto; }

/* Tuiles de chiffres */
.tuiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.tuile { padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.tuile-tete { display: flex; align-items: center; gap: 12px; }
.tile-ic { width: 40px; height: 40px; flex: none; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; }
.tile-ic .ic { width: 18px; height: 18px; }
.c1 { background: var(--t1-bg); color: var(--t1-fg); } .c2 { background: var(--t2-bg); color: var(--t2-fg); }
.c3 { background: var(--t3-bg); color: var(--t3-fg); } .c4 { background: var(--t4-bg); color: var(--t4-fg); }
.tuile-chiffre { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.tuile-chiffre strong { font-size: 42px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.tuile-chiffre span { font-size: 12.5px; color: var(--text-3); }
.tuile-pied { display: flex; flex-wrap: wrap; gap: 6px; }
.puce-date { font: 500 11.5px "IBM Plex Mono", monospace; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); }
.barre { display: block; width: 100%; height: 4px; }
.barre-fond { fill: var(--surface-3); } .barre-plein { fill: var(--accent); }

/* Grilles de sections */
.grille-2 { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); gap: 16px; align-items: start; }
.grille-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; align-items: start; }
.pile { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.vue-camille .ordre-1 { order: 1; } .vue-camille .ordre-2 { order: 2; } .vue-camille .ordre-3 { order: 3; }

/* Tâches du mois */
.colonnes-tete { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 16px; padding: 0 0 8px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); border-bottom: 1px solid var(--line); }
.client-ligne { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 0 4px; }
.client-ligne strong { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.client-ligne .espace { flex: 1; }
.tache { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 16px; align-items: start; padding: 9px 0; }
.tache-texte { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 14px; overflow-wrap: anywhere; }
.tache-texte small { font-size: 12px; color: var(--text-3); }
.tache-statut { display: flex; flex-wrap: wrap; gap: 6px; }
.plus summary { cursor: pointer; padding: 8px 0; font-size: 13px; font-weight: 600; color: var(--accent); }

/* Répartition */
.anneau { align-self: center; position: relative; width: 190px; height: 190px; }
.anneau svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.anneau circle { fill: none; stroke-width: 4.5; }
.anneau .fond { stroke: var(--surface-3); }
.anneau-centre { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.anneau-centre strong { font-size: 40px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.anneau-centre span { font-size: 12.5px; color: var(--text-3); }
.seg-fait { stroke: #9ED9B4; } .seg-en-cours { stroke: #A9C1F5; } .seg-a-faire { stroke: var(--bar-comp); }
.seg-en-attente-client { stroke: #F3CF94; } .seg-reporte { stroke: #B9B9C2; }
.repartition { display: flex; flex-direction: column; gap: 8px; }
.repartition div { display: grid; grid-template-columns: minmax(0, 1fr) 40px 52px; gap: 8px; align-items: center; font-size: 13px; }
.repartition b { text-align: right; font-weight: 600; }
.repartition span.mono { text-align: right; font-size: 12px; color: var(--text-3); }

/* Calendrier et échéances */
.calendrier { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.calendrier span { display: flex; align-items: center; justify-content: center; height: 34px; border-radius: 8px; font-size: 13px; font-weight: 600; background: var(--surface-2); border: 2px solid transparent; }
.calendrier .jour-nom { background: none; font-size: 11px; color: var(--text-3); height: 24px; }
.calendrier .hors { background: none; color: var(--text-3); font-weight: 400; }
.calendrier .auj { background: var(--ink); color: var(--ink-fg); }
.calendrier .ech { border-color: var(--accent); color: var(--accent); background: var(--bg); }
.calendrier .ech.auj { background: var(--ink); color: var(--ink-fg); }
.legende { display: flex; gap: 16px; font-size: 12px; color: var(--text-3); }
.legende i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.legende .l-auj { background: var(--ink); } .legende .l-ech { border: 2px solid var(--accent); }
.echeances { display: flex; flex-direction: column; }
.echeance { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.echeance-date { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.echeance-date strong { font-size: 15px; font-weight: 600; }
.echeance-date span { font-size: 11.5px; color: var(--text-3); }
.echeance-corps { display: flex; flex-direction: column; gap: 6px; min-width: 0; font-size: 14px; overflow-wrap: anywhere; }
.echeance-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-2); }
.retard { color: var(--neg); font-weight: 600; }

/* Factures à préparer, à débloquer */
.facture { padding: 14px; border: 1px solid var(--line); border-radius: 12px; display: flex; flex-direction: column; gap: 10px; }
.facture-tete { display: flex; align-items: center; gap: 12px; }
.facture-tete div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.facture-tete div strong { font-size: 14px; font-weight: 600; }
.facture-tete div span { font-size: 12.5px; color: var(--text-3); }
.facture-nombre strong { font-size: 24px; font-weight: 600; letter-spacing: -0.03em; }
.facture-nombre { font-size: 12.5px; color: var(--text-3); white-space: nowrap; }
.facture-pied { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; color: var(--text-3); }
.liste-simple { display: flex; flex-direction: column; }
.liste-simple > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.liste-simple > div > span:first-child { min-width: 0; overflow-wrap: anywhere; display: flex; flex-direction: column; gap: 2px; }
.liste-simple small { font-size: 12px; color: var(--text-3); }
.origine { font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-2); white-space: nowrap; }
.sous-groupe { display: flex; flex-direction: column; gap: 4px; }

/* Facturation d'un client */
.grille-facturation { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr); gap: 16px; align-items: start; }
.bloc-mission { padding: 20px 20px 12px; }
.ligne-facture { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 12px 0; border-top: 1px solid var(--line); }
.ligne-facture:first-of-type { border-top: 0; }
.ligne-facture input[type=checkbox] { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); cursor: pointer; }
.ligne-facture label { font-size: 15px; font-weight: 500; cursor: pointer; overflow-wrap: anywhere; }
.ligne-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 4px; font-size: 12px; color: var(--text-3); }
.detail summary { cursor: pointer; font-size: 12.5px; color: var(--text-3); margin-top: 6px; }
.detail ul { margin: 8px 0 4px; padding: 0 0 0 18px; display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--text-2); overflow-wrap: anywhere; }
.detail .n2 { margin-left: 18px; }
.texte-copie { margin: 0; padding: 16px 18px; border-radius: 12px; background: var(--surface-2); font: 400 12.5px/1.75 "IBM Plex Mono", ui-monospace, monospace; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 520px; overflow-y: auto; }
.brut { margin: 0; font: 400 12.5px/1.7 "IBM Plex Mono", ui-monospace, monospace; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text-2); }

/* Pages simples : connexion, mot de passe */
.page-simple { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; position: relative; overflow: clip; }
.page-simple .card { position: relative; z-index: 1; width: 100%; max-width: 420px; padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.page-simple h1 { font-size: 40px; }
.champ { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.champ input { height: 44px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--bg); color: var(--text); font: 400 15px Inter, system-ui, sans-serif; }
.message { padding: 12px 14px; border-radius: 10px; font-size: 13.5px; font-weight: 500; }
.message-erreur { background: var(--confirm-bg); color: var(--confirm-fg); }
.message-ok { background: var(--fait-bg); color: var(--fait-fg); }
.page-simple form { display: flex; flex-direction: column; gap: 14px; margin: 0; }
.page-simple .btn { justify-content: center; }

/* Écrans étroits */
@media (max-width: 1100px) {
  .grille-2, .grille-facturation { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 820px) {
  .app { flex-direction: column; }
  .lateral { position: static; flex: none; height: auto; width: 100%; border-right: 0; border-bottom: 1px solid var(--glass-line); gap: 14px; }
  .lateral-utilisateur { display: none; }
  .haut { padding: 12px 16px; }
  .contenu { padding: 24px 16px 40px; }
  h1 { font-size: 40px; }
  .tache, .colonnes-tete { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .colonnes-tete span:last-child { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .nav, .tab, .btn, .icon-btn { transition: background-color .12s ease; }
}

/* Actions : sélecteur de statut, formulaires */
.f-statut { position: relative; display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.f-statut::after { content: ""; position: absolute; right: 10px; top: 50%; width: 6px; height: 6px; margin-top: -5px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); pointer-events: none; opacity: .7; }
.pill-choix { -webkit-appearance: none; appearance: none; height: 26px; padding: 0 26px 0 12px; font: 500 12px Inter, system-ui, sans-serif; cursor: pointer; max-width: 100%; }
.pill-choix:hover { border-color: currentColor; }
.cote { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.volets { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; }
.volet summary { list-style: none; }
.volet summary::-webkit-details-marker { display: none; }
.volet[open] { flex: 1 1 100%; }
.volet[open] summary { margin-bottom: 12px; }
.formulaire { padding: 18px 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; align-items: end; margin: 0; }
.formulaire .champ-large { grid-column: span 2; }
.formulaire .champ-pleine { grid-column: 1 / -1; }
.formulaire .btn { justify-content: center; }
.champ select, .champ textarea { padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--bg); color: var(--text); font: 400 15px Inter, system-ui, sans-serif; }
.champ select { height: 44px; }
.champ textarea { padding: 10px 12px; min-height: 84px; resize: vertical; }
.message-info { background: var(--t3-bg); color: var(--t3-fg); margin: 0; }
.message { margin: 0; }
.aide { font-size: 12px; font-weight: 400; color: var(--text-3); }
@media (max-width: 620px) { .formulaire .champ-large { grid-column: auto; } }