/* Cogesty – feuille de style unique, sans dépendance externe.
   Esprit : épuré, précis, lumineux. Une seule couleur d'accent, des surfaces blanches
   posées sur un gris « aluminium », des filets fins plutôt que des ombres. */
:root {
  --encre: #1b1d22;
  --encre-douce: #646a75;
  --encre-pale: #9aa0aa;
  --fond: #f3f4f6;
  --carte: #ffffff;
  --trait: #e4e6ea;
  --trait-leger: #eef0f2;
  --accent: #2a5bd7;
  --accent-fonce: #1f46ab;
  --accent-texte: #ffffff;
  --accent-voile: rgba(42,91,215,.07);
  --focus: rgba(42,91,215,.28);
  --ambre: #b26b00;
  --rouge: #c5362c;
  --vert: #1f8a50;
  --rayon: 10px;
  --rayon-grand: calc(var(--rayon) * 1.4);
  --ombre: 0 1px 2px rgba(20,24,33,.04), 0 1px 1px rgba(20,24,33,.02);
  --ombre-flottante: 0 12px 32px -8px rgba(20,24,33,.18), 0 2px 6px rgba(20,24,33,.06);
  --largeur-menu: 248px;
  --hauteur-barre: 64px;
  /* Réglables par l'éditeur (feuille « theme.css » produite par la plateforme). */
  --entete: #ffffff;
  --entete-texte: #1b1d22;
  --entete-lien: #4a4f59;
  --entete-filet: rgba(27,29,34,.08);
  --champ: #ffffff;
  --bordure-champ: #d5d8de;
  --surface-douce: #f7f8fa;
  --pad-cellule: .8rem 1rem;
  --taille-texte: 16px;
  --police: "Inter", system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  /* Pastilles : cinq tons doux, toujours sur fond clair. */
  --p-neutre: #eef0f3; --p-neutre-t: #4b515c;
  --p-bleu: #e8effd; --p-bleu-t: #2149b0;
  --p-vert: #e2f4e9; --p-vert-t: #19693e;
  --p-ambre: #fcf0d9; --p-ambre-t: #855600;
  --p-rouge: #fdeaea; --p-rouge-t: #b42318;
  font-family: var(--police);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
/* Éléments toujours sur fond clair (pastilles, messages…) : ils gardent l'encre sombre,
   même en thème sombre. */
.pastille, .message, .alerte, .etape .coche, .plaque, .logo-actuel {
  --encre: #1b1d22; --encre-douce: #555b66; --vert: #19693e; --rouge: #b42318;
}
* { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--hauteur-barre) + 1rem); }
body { margin: 0; background: var(--fond); color: var(--encre); font-size: var(--taille-texte); line-height: 1.5; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 1px; }
h1 { font-size: 1.9rem; line-height: 1.15; font-weight: 700; margin: 0 0 .5rem; letter-spacing: -.025em; }
h2 { font-size: 1.08rem; line-height: 1.3; font-weight: 700; margin: 0 0 .85rem; letter-spacing: -.012em; }
h3 { font-size: 1rem; letter-spacing: -.01em; }
code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
::selection { background: color-mix(in srgb, var(--accent) 22%, transparent); }
.icone { flex: none; display: block; }
.aller-au-contenu { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: .6rem 1rem; background: var(--carte); border-radius: var(--rayon); box-shadow: var(--ombre-flottante); }
.aller-au-contenu:focus { top: 1rem; }

/* --- Cadre : barre latérale, barre du haut, contenu ---------------------------------- */
.bascule-menu { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.barre-laterale {
  position: fixed; inset: 0 auto 0 0; z-index: 30; width: var(--largeur-menu);
  display: flex; flex-direction: column; gap: .25rem; padding: 1rem .75rem .75rem;
  background: var(--entete); color: var(--entete-texte); border-right: 1px solid var(--entete-filet);
  overflow-y: auto; overscroll-behavior: contain;
}
body:has(> .barre-laterale) .cadre-principal { margin-left: var(--largeur-menu); }
.barre-laterale-haut { display: flex; align-items: center; justify-content: space-between; padding: .25rem .5rem .75rem; }
.marque { display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 1.12rem; letter-spacing: -.02em; color: var(--entete-texte); text-decoration: none; }
.marque:hover { text-decoration: none; }
.marque img { display: block; max-height: 32px; max-width: 168px; }
.marque span { line-height: 1.1; }
.entreprise-courante { display: flex; align-items: center; gap: .65rem; margin: 0 0 .75rem; padding: .6rem .6rem; border-radius: var(--rayon);
  background: color-mix(in srgb, var(--entete-texte) 5%, transparent); }
.entreprise-courante img { display: block; flex: none; width: 34px; height: 34px; object-fit: contain; background: #fff; border-radius: 8px; padding: 2px; box-shadow: 0 0 0 1px var(--entete-filet); }
.monogramme { flex: none; width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; font-weight: 700; font-size: .95rem;
  background: var(--accent); color: var(--accent-texte); }
.entreprise-nom { display: flex; flex-direction: column; min-width: 0; font-weight: 600; font-size: .9rem; line-height: 1.25; overflow-wrap: anywhere; }
.entreprise-nom a { font-weight: 400; font-size: .78rem; color: var(--entete-lien); }
.menu { display: flex; flex-direction: column; gap: .9rem; flex: 1; }
.menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.menu a { display: flex; align-items: center; gap: .7rem; padding: .5rem .65rem; border-radius: calc(var(--rayon) * .8);
  color: var(--entete-lien); font-size: .94rem; font-weight: 500; text-decoration: none; position: relative; }
.menu a .icone { opacity: .75; }
.menu a:hover { background: color-mix(in srgb, var(--entete-texte) 6%, transparent); color: var(--entete-texte); }
.menu a.actif { background: color-mix(in srgb, var(--entete-texte) 9%, transparent); color: var(--entete-texte); font-weight: 650; }
.menu a.actif .icone { opacity: 1; color: var(--accent); }
.menu-titre { padding: 0 .65rem .2rem; font-size: .75rem; font-weight: 600; color: var(--entete-lien); opacity: .7; }
.menu-editeur { padding-top: .75rem !important; border-top: 1px solid var(--entete-filet); }
.menu-compte { display: flex; align-items: center; gap: .25rem; padding-top: .75rem; border-top: 1px solid var(--entete-filet); }
.menu-compte form { margin: 0; }
.lien-compte { flex: 1; min-width: 0; display: flex; align-items: center; gap: .6rem; padding: .4rem .5rem; border-radius: var(--rayon); color: var(--entete-texte); text-decoration: none; }
.lien-compte:hover, .lien-compte.actif { background: color-mix(in srgb, var(--entete-texte) 7%, transparent); text-decoration: none; }
.avatar { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .85rem;
  background: color-mix(in srgb, var(--entete-texte) 10%, transparent); }
.compte-nom { display: flex; flex-direction: column; min-width: 0; font-size: .88rem; font-weight: 600; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.compte-nom small { font-weight: 400; color: var(--entete-lien); font-size: .76rem; }
.bouton-icone { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: var(--rayon); background: none; color: var(--entete-lien); cursor: pointer; }
.bouton-icone:hover { background: color-mix(in srgb, var(--entete-texte) 7%, transparent); color: var(--entete-texte); }
.fermer-menu, .ouvrir-menu, .voile-menu { display: none; }

.cadre-principal { min-height: 100vh; display: flex; flex-direction: column; }
.barre-haut {
  position: sticky; top: 0; z-index: 20; height: var(--hauteur-barre);
  display: flex; align-items: center; gap: .75rem; padding: 0 2rem;
  background: color-mix(in srgb, var(--fond) 82%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid color-mix(in srgb, var(--trait) 70%, transparent);
}
.barre-haut-titre { font-weight: 600; color: var(--encre-douce); }
.recherche-globale { position: relative; flex: 0 1 560px; display: flex; align-items: center; margin: 0; }
.recherche-globale > .icone { position: absolute; left: .8rem; color: var(--encre-pale); pointer-events: none; }
.recherche-globale input[type=search] { height: 40px; padding: 0 2.6rem 0 2.5rem; font-size: .94rem; border-radius: 999px;
  background: var(--champ); border: 1px solid var(--trait); box-shadow: var(--ombre); }
.recherche-globale input[type=search]:focus { border-color: var(--accent); outline: 0; box-shadow: 0 0 0 4px var(--focus); }
.recherche-globale .raccourci { position: absolute; right: .7rem; color: var(--encre-pale); }
.recherche-globale:focus-within .raccourci { display: none; }
.resultats-globaux { display: none; position: absolute; top: calc(100% + .5rem); left: 0; right: 0; z-index: 40; max-height: min(70vh, 560px); overflow-y: auto;
  background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon-grand); box-shadow: var(--ombre-flottante); }
.resultats-globaux.ouvert { display: block; }
.panneau-recherche { padding: .5rem; }
.panneau-recherche > .aide { margin: .5rem .6rem; }
.groupe-resultats h2 { margin: .5rem .6rem .25rem; font-size: .76rem; font-weight: 600; color: var(--encre-douce); letter-spacing: 0; }
.groupe-resultats ul { list-style: none; margin: 0; padding: 0; }
.groupe-resultats + .groupe-resultats { margin-top: .25rem; padding-top: .25rem; border-top: 1px solid var(--trait-leger); }
.resultat { display: flex; align-items: center; gap: .75rem; padding: .5rem .6rem; border-radius: var(--rayon); color: var(--encre); text-decoration: none; }
.resultat:hover, .resultat:focus { background: var(--accent-voile); text-decoration: none; outline: 0; }
.resultat:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); }
.resultat-icone { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; background: var(--surface-douce); color: var(--encre-douce); }
.resultat-texte { flex: 1; min-width: 0; display: flex; flex-direction: column; font-weight: 600; font-size: .92rem; }
.resultat-texte small { font-weight: 400; color: var(--encre-douce); font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.resultat-fin { display: flex; align-items: center; gap: .75rem; font-size: .88rem; font-variant-numeric: tabular-nums; }
.resultat .plaque { min-width: 7.5rem; text-align: center; }
.tout-voir { display: block; margin: .35rem 0 0; padding: .6rem; text-align: center; font-size: .88rem; font-weight: 600; border-top: 1px solid var(--trait-leger); }
.resultats-page { background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon-grand); padding: .5rem; box-shadow: var(--ombre); }
.resultats-page .groupe-resultats h2 { font-size: .85rem; }
.menu-creer { position: relative; margin-left: auto; }
.menu-creer summary { list-style: none; display: block; }
.menu-creer summary > span { display: inline-flex; align-items: center; gap: .4rem; }
.menu-creer summary::-webkit-details-marker { display: none; }
.menu-deroulant { position: absolute; right: 0; top: calc(100% + .5rem); z-index: 40; min-width: 220px; padding: .4rem;
  background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon-grand); box-shadow: var(--ombre-flottante); }
.menu-deroulant a { display: flex; align-items: center; gap: .65rem; padding: .55rem .7rem; border-radius: var(--rayon); color: var(--encre); font-size: .93rem; font-weight: 500; }
.menu-deroulant a:hover, .menu-deroulant a:focus-visible { background: var(--accent-voile); color: var(--accent); text-decoration: none; }
.menu-deroulant .icone { color: var(--encre-douce); }
.menu-creer[open] .menu-deroulant { animation: deroule .14s ease-out; }
@keyframes deroule { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }

.contenu { width: 100%; max-width: 1160px; margin: 0 auto; padding: 2rem 2rem 4rem; flex: 1; }
.contenu:focus { outline: 0; }
.page-simple .cadre-principal { margin-left: 0; }
.page-simple .contenu { max-width: 520px; padding-top: 0; }
.entete-simple { padding: 4.5rem 1rem 0; }
.chapo { color: var(--encre-douce); margin: 0 0 1.5rem; font-size: 1.02rem; }
.aide { color: var(--encre-douce); font-size: .86rem; margin: .25rem 0; }

/* Écrans étroits (tablette en portrait, téléphone) : le menu glisse depuis la gauche. */
@media (max-width: 960px) {
  body:has(> .barre-laterale) .cadre-principal { margin-left: 0; }
  .barre-laterale { transform: translateX(-100%); transition: transform .22s ease; box-shadow: none; width: min(300px, 86vw); }
  .bascule-menu:checked ~ .barre-laterale { transform: none; box-shadow: var(--ombre-flottante); }
  .bascule-menu:checked ~ .voile-menu { display: block; position: fixed; inset: 0; z-index: 25; background: rgba(15,18,24,.32); }
  .fermer-menu, .ouvrir-menu { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--rayon); cursor: pointer; color: inherit; }
  .barre-haut { padding: 0 1rem; }
  .contenu { padding: 1.5rem 1rem 3rem; }
  .recherche-globale .raccourci, .libelle-creer { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .barre-laterale { transition: none; }
  .menu-creer[open] .menu-deroulant { animation: none; }
}

/* --- Briques communes ---------------------------------------------------------------- */
.carte { background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon-grand); padding: 1.6rem; margin: 0 auto 1.25rem; max-width: 460px; box-shadow: var(--ombre); }
.carte-large { max-width: none; }
.contenu > h1 + .carte, .contenu > form.carte { margin-left: 0; }
.sous-carte { margin: 1.25rem 0 0; padding-top: 1rem; border-top: 1px solid var(--trait); font-size: .9rem; }
.grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.25rem; }
.grille .carte { max-width: none; margin: 0; }
.titre-actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.titre-actions h1, .titre-actions form { margin: 0; }

.champ { margin-bottom: 1.1rem; }
.champ label { display: block; font-weight: 600; font-size: .86rem; margin-bottom: .35rem; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], select,
input[type=search], input[type=tel], input[type=date], textarea {
  width: 100%; min-height: 40px; padding: .55rem .75rem; font: inherit; font-size: .95rem; color: inherit; background: var(--champ);
  border: 1px solid var(--bordure-champ); border-radius: var(--rayon); transition: border-color .12s, box-shadow .12s;
}
select { appearance: none; -webkit-appearance: none; padding-right: 2rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--encre-douce) 50%), linear-gradient(135deg, var(--encre-douce) 50%, transparent 50%);
  background-position: calc(100% - 15px) 52%, calc(100% - 10px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
input:hover, select:hover, textarea:hover { border-color: color-mix(in srgb, var(--bordure-champ) 60%, var(--encre)); }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px var(--focus); }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 0; box-shadow: 0 0 0 4px var(--focus); border-radius: var(--rayon); }
input::placeholder, textarea::placeholder { color: var(--encre-pale); }
.en-erreur input, .en-erreur select, .en-erreur textarea { border-color: var(--rouge); }
.errorlist { list-style: none; margin: .35rem 0 0; padding: 0; color: var(--rouge); font-size: .86rem; }
.champ ul:not(.errorlist), .champ > div { list-style: none; padding: 0; margin: 0; }
.champ div > div label, .champ li label { font-weight: 400; display: flex; gap: .55rem; align-items: center; padding: .25rem 0; }
.champ input[type=checkbox], .champ input[type=radio] { width: 1.1rem; height: 1.1rem; min-height: 0; accent-color: var(--accent); }
.formulaire-colonnes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 1.5rem; }
.formulaire-colonnes .actions, .formulaire-colonnes > .message { grid-column: 1 / -1; }
.actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: .75rem; }

.bouton { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 38px; padding: .45rem 1rem;
  font: inherit; font-weight: 600; font-size: .9rem; line-height: 1.2; color: var(--encre); white-space: nowrap;
  background: var(--carte); border: 1px solid var(--bordure-champ); border-radius: var(--rayon); text-decoration: none; cursor: pointer;
  box-shadow: 0 1px 1px rgba(20,24,33,.04); transition: background-color .12s, border-color .12s, color .12s; }
.bouton:hover { border-color: color-mix(in srgb, var(--bordure-champ) 50%, var(--encre)); background: var(--surface-douce); text-decoration: none; }
.bouton:active { transform: translateY(.5px); }
.bouton.principal { background: var(--accent); border-color: var(--accent); color: var(--accent-texte); box-shadow: 0 1px 2px color-mix(in srgb, var(--accent) 35%, transparent); }
.bouton.principal:hover { background: var(--accent-fonce); border-color: var(--accent-fonce); }
.bouton.danger { color: var(--rouge); }
.bouton.danger:hover { border-color: var(--rouge); background: color-mix(in srgb, var(--rouge) 6%, var(--carte)); }
.bouton.large { width: 100%; min-height: 44px; }
.lien { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); cursor: pointer; }
.lien:hover { text-decoration: underline; }
.en-ligne { display: inline-block; margin: 0 .4rem .4rem 0; }

.messages { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.message { padding: .8rem 1rem .8rem 2.6rem; border-radius: var(--rayon); background: var(--p-bleu); margin: 0 0 .75rem; position: relative; font-size: .95rem; }
.message::before { content: ""; position: absolute; left: 1rem; top: 1.05rem; width: .55rem; height: .55rem; border-radius: 50%; background: var(--p-bleu-t); }
.message.success { background: var(--p-vert); } .message.success::before { background: var(--p-vert-t); }
.message.error { background: var(--p-rouge); } .message.error::before { background: var(--p-rouge-t); }
.message.warning { background: var(--p-ambre); } .message.warning::before { background: var(--p-ambre-t); }
.message .errorlist { margin: 0; color: inherit; font-size: inherit; }

.tableau { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon-grand); box-shadow: var(--ombre); overflow: hidden; }
.tableau th, .tableau td { text-align: left; padding: var(--pad-cellule); border-bottom: 1px solid var(--trait-leger); vertical-align: middle; }
.tableau thead th { font-size: .8rem; font-weight: 600; letter-spacing: 0; color: var(--encre-douce); background: var(--carte); border-bottom: 1px solid var(--trait); white-space: nowrap; }
.tableau tbody tr:last-child td, .tableau tbody tr:last-child th { border-bottom: 0; }
.tableau tbody tr:hover > td { background: color-mix(in srgb, var(--surface-douce) 70%, transparent); }
.tableau tr.inactif td { color: var(--encre-douce); }
.tableau form { margin: 0; }
.tableau a { font-weight: 500; }

.pastille { display: inline-flex; align-items: center; justify-content: center; min-width: 2.4rem; padding: .12rem .55rem; border-radius: 999px; font-size: .76rem; font-weight: 600; line-height: 1.35; white-space: nowrap;
  background: var(--p-neutre); color: var(--p-neutre-t); }
.pastille.oui { background: var(--p-vert); color: var(--p-vert-t); }
.pastille.non { background: var(--p-neutre); color: var(--p-neutre-t); }
.droits, .modules { list-style: none; margin: 0 0 1rem; padding: 0; }
.droits li { padding: .3rem 0; display: flex; gap: .6rem; align-items: baseline; }
.droits li.non { color: var(--encre-douce); }
.modules li { display: flex; justify-content: space-between; padding: .55rem 0; border-bottom: 1px solid var(--trait-leger); }
.modules em { color: var(--encre-douce); font-size: .85rem; }

.fiche { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1.5rem; margin: 0 0 1rem; }
.fiche dt { color: var(--encre-douce); }
.fiche dd { margin: 0; font-weight: 600; }
.liste-choix { display: grid; gap: 0; background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon-grand); box-shadow: var(--ombre); overflow: hidden; }
.choix { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.2rem; font: inherit; text-align: left; color: var(--encre);
  background: var(--carte); border: 0; border-bottom: 1px solid var(--trait-leger); cursor: pointer; }
.choix:last-child { border-bottom: 0; }
.choix:hover { background: var(--surface-douce); text-decoration: none; }
.choix span { color: var(--encre-douce); font-size: .875rem; }
.choix::after { content: ""; flex: none; width: .5rem; height: .5rem; border-top: 1.6px solid var(--encre-pale); border-right: 1.6px solid var(--encre-pale); transform: rotate(45deg); margin-left: .25rem; }
.etapes { padding-left: 1.25rem; }
.etapes li { margin-bottom: 1rem; }
.qr { margin: .75rem 0; }
.qr svg { background: #fff; border: 1px solid var(--trait); border-radius: var(--rayon); }
.codes { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: .5rem; margin: 1rem 0; }
.codes li { padding: .5rem; text-align: center; background: var(--surface-douce); border: 1px solid var(--trait); border-radius: var(--rayon); font-size: 1.05rem; letter-spacing: .08em; }
.lien-a-copier { padding: .8rem; background: var(--surface-douce); border: 1px solid var(--trait); border-radius: var(--rayon); overflow-wrap: anywhere; user-select: all; }
details > summary { cursor: pointer; }

/* --- Clients et véhicules (étape 3) --- */
textarea { resize: vertical; }

.fil { margin: 0 0 .4rem; font-size: .875rem; color: var(--encre-douce); }
.recherche { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; margin: 0 0 .5rem; }
.recherche input[type=search] { flex: 1 1 320px; padding: .7rem .85rem; font-size: 1.05rem; }
.case { display: flex; gap: .4rem; align-items: center; font-size: .9rem; color: var(--encre-douce); }
.case input { width: 1.05rem; height: 1.05rem; accent-color: var(--accent); }
.compte { margin: 0 0 .6rem; }
.vide { padding: 1.5rem; text-align: center; color: var(--encre-douce); background: var(--carte); border: 1px dashed var(--trait); border-radius: var(--rayon); }
.pagination { display: flex; gap: 1rem; align-items: center; justify-content: center; margin-top: 1rem; font-size: .9rem; color: var(--encre-douce); }
.lien-fort { font-weight: 700; text-decoration: none; }
.lien-fort:hover { text-decoration: underline; }
.pastille.pro { background: var(--p-bleu); color: var(--p-bleu-t); }
h1 .pastille { vertical-align: middle; font-size: .8rem; letter-spacing: 0; }

/* Plaque d'immatriculation */
.plaque { display: inline-block; padding: .08rem .5rem; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-weight: 700;
  font-size: .9rem; letter-spacing: .06em; white-space: nowrap; color: var(--encre); text-decoration: none;
  background: #fff; border: 1.5px solid var(--encre); border-left: .5rem solid #1f4fa3; border-radius: 4px; }
a.plaque:hover { background: #eef3fb; text-decoration: none; }
.plaque.grande { font-size: 1.3rem; padding: .1rem .7rem; vertical-align: middle; margin-right: .4rem; }
.saisie-plaque { text-transform: uppercase; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .06em; }
.saisie-plaque::placeholder { text-transform: none; letter-spacing: 0; }

.titre-section { margin-top: 1.75rem; }
.titre-section h2 { margin: 0; font-size: 1.25rem; }
h2.suite { margin-top: 1.25rem; }
address { font-style: normal; }
.notes { margin: 0; white-space: normal; }
.titre-actions .actions { margin: 0; }
.modules li a + a { margin-left: auto; padding-left: 1rem; }

/* Formulaire client : sections, et champs affichés selon le type choisi */
.section { border: 0; border-top: 1px solid var(--trait); margin: 0; padding: 1rem 0 .25rem; min-width: 0; }
.section:first-of-type { border-top: 0; padding-top: 0; }
.section legend { padding: 0 .6rem 0 0; font-weight: 700; font-size: .95rem; letter-spacing: -.01em; color: var(--encre); }
.section-type legend, .section-type .champ > label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.section-type .champ > div { display: flex; gap: 1.5rem; }
.section-type .champ div > div label { font-weight: 600; font-size: 1rem; }
.section-large .formulaire-colonnes { display: block; }
.formulaire-client:has(input[name=type][value=professionnel]:checked) .section-particulier,
.formulaire-client:not(:has(input[name=type][value=professionnel]:checked)) .section-professionnel { display: none; }

/* --- Catalogue et taux de TVA (étape 4) --- */
.nombre { text-align: right !important; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tableau tfoot th, .tableau tfoot td { padding: var(--pad-cellule); border-top: 2px solid var(--trait); background: var(--surface-douce); text-align: left; }
.tableau tfoot th { text-transform: none; letter-spacing: 0; font-size: .9rem; color: var(--encre); }
.tableau td .aide { margin: 0; }
.pastille.type-piece { background: var(--p-bleu); color: var(--p-bleu-t); }
.pastille.type-main_oeuvre { background: var(--p-ambre); color: var(--p-ambre-t); }
.pastille.type-forfait { background: var(--p-vert); color: var(--p-vert-t); }
.pastille.type-divers { background: var(--p-neutre); color: var(--p-neutre-t); }
.recherche .filtre { width: auto; flex: 0 0 auto; padding: .7rem .65rem; }
.bouton.petit { padding: .3rem .6rem; font-size: .85rem; }
.quantite { display: flex; align-items: center; gap: .5rem; }
.quantite input[type=text] { width: 5.5rem; text-align: right; padding: .35rem .5rem; }
.ajout-composant { margin-top: 1.25rem; }
.ajout-composant .recherche input[type=search] { font-size: 1rem; padding: .55rem .7rem; }
.propositions { margin-top: .5rem; }
.titre-section + .vide, .composants + .aide { margin-bottom: 0; }
.formulaire-article .champ-description, .formulaire-article .champ-mode_prix_forfait { grid-column: 1 / -1; }
.champ-mode_prix_forfait > div { display: flex; gap: 1.5rem; flex-wrap: wrap; }
/* Forfait « somme des composants » : ni prix ni taux à saisir, ils viennent des composants. */
.formulaire-forfait:has(input[name=mode_prix_forfait][value=somme]:checked) .champ-prix_unitaire_ht,
.formulaire-forfait:has(input[name=mode_prix_forfait][value=somme]:checked) .champ-taux_tva { display: none; }

/* --- Devis (étape 5) --- */
.pastille.etat-brouillon { background: var(--p-neutre); color: var(--p-neutre-t); }
.pastille.etat-envoye { background: var(--p-bleu); color: var(--p-bleu-t); }
.pastille.etat-accepte { background: var(--p-vert); color: var(--p-vert-t); }
.pastille.etat-refuse { background: var(--p-rouge); color: var(--p-rouge-t); }
.pastille.etat-expire { background: var(--p-ambre); color: var(--p-ambre-t); }
.pastille.etat-validee { background: var(--p-vert); color: var(--p-vert-t); }
.pastille.piece-acompte { background: var(--p-bleu); color: var(--p-bleu-t); }
.pastille.piece-avoir { background: var(--p-ambre); color: var(--p-ambre-t); }
.pastille.annulee { background: var(--p-rouge); color: var(--p-rouge-t); }
code.empreinte { font-size: .78rem; word-break: break-all; }
.contenu > .message { margin-bottom: 1.25rem; }
.contenu:has(.lignes-devis) { max-width: 1240px; }
.lignes-devis th, .lignes-devis td { padding: .55rem .6rem; }
.lignes-devis td:first-child { min-width: 16rem; }
.lignes-devis .gestes { white-space: nowrap; }
.lignes-devis .ligne-titre td { background: var(--surface-douce); }
.lignes-devis .ligne-titre td:first-child { font-weight: 700; font-size: .95rem; letter-spacing: -.01em; }
.lignes-devis .ligne-commentaire td:first-child { color: var(--encre-douce); font-style: italic; }
.lignes-devis .ligne-enfant td { padding-top: .4rem; padding-bottom: .4rem; font-size: .92rem; }
.lignes-devis .ligne-enfant td:first-child { padding-left: 2.2rem; }
.lignes-devis .ligne-enfant strong { font-weight: 400; }
.lignes-devis .gestes .en-ligne { margin: 0 0 0 .3rem; }
.lignes-devis .quantite input[type=text] { width: 4.5rem; }
.bas-devis { margin-top: 1.25rem; align-items: start; }
.totaux .fiche { grid-template-columns: 1fr max-content; }
.totaux .fiche dd { text-align: right; font-variant-numeric: tabular-nums; }
.totaux .fiche .aide { font-weight: 400; }
.totaux .grand { font-size: 1.25rem; font-weight: 700; color: var(--encre); padding-top: .5rem; border-top: 2px solid var(--trait); margin-top: .25rem; }
.suivi { list-style: none; margin: 0 0 .75rem; padding: 0; }
.suivi li { padding: .2rem 0; }
.formulaire-devis .champ-remise_mode > div, .formulaire-devis .champ-acompte_mode > div { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.formulaire-devis .champ-texte_client, .formulaire-devis .champ-notes_internes, .formulaire-ligne .champ-description { grid-column: 1 / -1; }
.formulaire-devis .formulaire-colonnes:has(.champ-texte_client) { display: block; }
/* Ligne libre : la nature de la pièce ne concerne que les pièces. */
.formulaire-ligne:has(select[name=type]):not(:has(select[name=type] option[value=piece]:checked)) .champ-nature_piece { display: none; }

/* --- PDF et e-mails (étape 6) --- */
input[type=file] { width: 100%; font: inherit; }
input[type=color] { width: 4.5rem; height: 2.4rem; padding: .15rem; cursor: pointer; }
.formulaire-apparence .champ-gabarit > div { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.formulaire-apparence .champ-gabarit > label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.formulaire-apparence .champ-gabarit div > div label { font-weight: 600; font-size: 1rem; }
.cases-en-ligne { display: flex; gap: .25rem 2rem; flex-wrap: wrap; }
.cases-en-ligne .champ, .champ-retirer_logo, .champ-copie_pour_moi { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.cases-en-ligne .champ label, .champ-retirer_logo label, .champ-copie_pour_moi label { order: 2; margin: 0; font-weight: 400; font-size: 1rem; }
.cases-en-ligne .champ .aide, .champ-copie_pour_moi .aide { order: 3; flex-basis: 100%; margin: 0; }
.logo-actuel img { max-height: 90px; max-width: 320px; padding: .5rem; background: #fff; border: 1px solid var(--trait); border-radius: var(--rayon); }
.grille-large-etroite { grid-template-columns: minmax(0, 3fr) minmax(260px, 2fr); align-items: start; }
.variables { grid-template-columns: max-content 1fr; gap: .3rem 1rem; }
.variables dd { font-weight: 400; }
.parametres .choix { text-decoration: none; color: var(--encre); }
.parametres .choix span { text-align: right; }
.formulaire-envoi .piece-jointe { padding: .6rem .8rem; background: var(--surface-douce); border: 1px solid var(--trait); border-radius: var(--rayon); }
.tableau.envois td { padding: .45rem .6rem; font-size: .92rem; }
.pastille.envoi-envoye { background: var(--p-vert); color: var(--p-vert-t); }
.pastille.envoi-echec { background: var(--p-rouge); color: var(--p-rouge-t); }
@media (max-width: 800px) { .grille-large-etroite { grid-template-columns: 1fr; } }

/* Étape 9 : règlements, suivi des factures, journal, clôtures */
.pastille.paiement-non_payee { background: var(--p-ambre); color: var(--p-ambre-t); }
.pastille.paiement-partielle { background: var(--p-bleu); color: var(--p-bleu-t); }
.pastille.paiement-payee { background: var(--p-vert); color: var(--p-vert-t); }
.pastille.paiement-a_rembourser { background: var(--p-rouge); color: var(--p-rouge-t); }
.pastille.paiement-annulee { background: var(--p-neutre); color: var(--p-neutre-t); }
.pastille.paiement-retard { background: var(--p-rouge); color: var(--p-rouge-t); }
.pastille.genre-encaissement { background: var(--p-vert); color: var(--p-vert-t); }
.pastille.genre-remboursement { background: var(--p-ambre); color: var(--p-ambre-t); }
.pastille.genre-annulation { background: var(--p-rouge); color: var(--p-rouge-t); }
.pastille.etat-reglement { background: var(--p-vert); color: var(--p-vert-t); }
.ligne-annulee td { color: var(--encre-douce); text-decoration: line-through; }
.ligne-annulee td .pastille { text-decoration: none; }
.tableau .champ-montant input { max-width: 9rem; text-align: right; }
.empreinte-courte { font-family: ui-monospace, monospace; font-size: .78rem; color: var(--encre-douce); }
.controle-ok { border-left: 4px solid var(--vert); }
.controle-ko { border-left: 4px solid var(--rouge); }

/* Tableau de bord (étape 10) */
.tuiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; margin-bottom: .5rem; }
.tuile { background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 1rem 1.15rem; }
.tuile p { margin: 0; }
.tuile-titre { font-size: .85rem; font-weight: 600; color: var(--encre-douce); }
.tuile-titre .aide { display: block; font-weight: 400; font-size: .8rem; margin: 0; }
.tuile-valeur { font-size: 1.55rem; font-weight: 700; letter-spacing: -.01em; margin: .35rem 0 .1rem !important; font-variant-numeric: tabular-nums; }
.tuile-unite { font-size: .85rem; font-weight: 600; color: var(--encre-douce); }
.chiffre-cle { font-size: 1.35rem; font-weight: 700; margin: 0 0 .5rem; font-variant-numeric: tabular-nums; }
.chiffre-cle .aide { font-weight: 400; font-size: .9rem; }
.graphique { width: 100%; height: auto; display: block; margin: .25rem 0 .5rem; }
.graphique .barre { fill: var(--accent); }
.graphique .barre.negative { fill: var(--rouge); }
.graphique .barre-zone { fill: transparent; }
.graphique .barre-groupe:hover .barre { fill: var(--accent-fonce); }
.graphique .barre-groupe:hover .barre-zone { fill: var(--accent-voile); }
.graphique .grille-graphique { stroke: var(--trait-leger); stroke-width: 1; }
.graphique .axe-zero { stroke: var(--bordure-champ); stroke-width: 1; }
.graphique .axe { font-size: 11px; fill: var(--encre-douce); font-variant-numeric: tabular-nums; }
.tableau-graphique summary, .vos-droits summary { cursor: pointer; color: var(--accent); font-size: .9rem; }
.tableau-graphique .tableau { margin-top: .75rem; }
.tableau.compact th, .tableau.compact td { padding: .4rem .55rem; font-size: .9rem; }
.pastille.retard { background: var(--p-rouge); color: var(--p-rouge-t); }
.texte-retard { color: var(--rouge); }
.liste-simple { padding-left: 1.1rem; margin: .25rem 0 .75rem; }
.liste-simple li { margin: .25rem 0; }
.vos-droits { margin-top: 1.25rem; }
.vos-droits[open] summary { margin-bottom: .75rem; }
.periode { display: flex; gap: 1rem; align-items: flex-end; flex-wrap: wrap; }
.periode .champ { margin-bottom: .5rem; }
.grille.cartes-tableau { grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); margin-top: 1.25rem; }
.tableau.compact td:first-child a { white-space: nowrap; }

/* --- Saisie des lignes directement dans le tableau (devis et factures) --- */
.contenu:has(.lignes-editables) { max-width: 1360px; }
.lignes-devis .ttc { color: var(--encre-douce); }
.lignes-devis .quantite { gap: .35rem; }
.lignes-devis .quantite input[type=text] { width: 4rem; }
.lignes-editables tr.ligne-affichee { cursor: pointer; }
.lignes-editables tr.ligne-affichee:hover > td { background: var(--accent-voile); }
.lignes-editables tr.ligne-affichee .gestes .bouton.danger { padding-left: .5rem; padding-right: .5rem; }
.ligne-saisie > td { vertical-align: top; background: var(--surface-douce); }
.ligne-edition > td { background: color-mix(in srgb, var(--accent) 6%, var(--carte)); }
.ligne-nouvelle > td { border-top: 1px solid var(--trait); background: var(--surface-douce); }
.ligne-saisie input[type=text], .ligne-saisie select, .ligne-saisie textarea {
  width: 100%; box-sizing: border-box; font: inherit; font-size: .92rem; padding: .35rem .45rem;
  border: 1px solid var(--trait); border-radius: var(--rayon); background: var(--champ); color: var(--encre);
}
.ligne-saisie input:focus, .ligne-saisie select:focus, .ligne-saisie textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }
.ligne-saisie [aria-invalid=true] { border-color: var(--rouge); background: color-mix(in srgb, var(--rouge) 5%, var(--champ)); }
.ligne-saisie .erreur { display: block; color: var(--rouge); font-size: .8rem; margin-top: .2rem; }
.ligne-saisie textarea { margin-top: .3rem; resize: vertical; min-height: 2.1rem; }
.nature-et-designation { display: flex; gap: .4rem; }
.nature-et-designation select { width: auto; flex: none; font-weight: 600; }
.saisie-designation .details { display: flex; gap: .3rem; margin-top: .3rem; }
.saisie-designation .details > * { flex: 1 1 0; min-width: 0; }
.saisie-quantite { display: flex; gap: .3rem; }
.saisie-quantite input[type=text] { width: 4.2rem; flex: none; text-align: right; }
.saisie-quantite select { width: auto; min-width: 5rem; }
.saisie-prix { display: flex; gap: .3rem; align-items: center; }
.saisie-prix input[type=text] { width: 6.5rem; flex: none; text-align: right; }
.ligne-saisie input.remise { width: 4rem; text-align: right; }
.ligne-saisie select[name=taux_tva] { width: auto; min-width: 5rem; }
.ligne-saisie .conversion { display: block; font-size: .78rem; margin-top: .2rem; white-space: nowrap; }
.ligne-saisie .calcul-ht, .ligne-saisie .calcul-ttc { display: inline-block; padding-top: .4rem; color: var(--encre-douce); }
.ligne-saisie .gestes { vertical-align: top; }
.ligne-saisie .gestes .bouton { margin-left: .25rem; }
/* Bascule HT / TTC : deux boutons radio présentés comme un interrupteur. */
.bascule { display: inline-flex; flex: none; border: 1px solid var(--bordure-champ); border-radius: var(--rayon); overflow: hidden; background: var(--champ); }
.bascule label { position: relative; padding: .3rem .5rem; font-size: .78rem; font-weight: 700; cursor: pointer; color: var(--encre-douce); }
.bascule label + label { border-left: 1px solid var(--trait); }
.bascule input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.bascule label:has(input:checked) { background: var(--accent); color: var(--accent-texte); }
.bascule label:has(input:focus-visible) { outline: 2px solid var(--accent-fonce); outline-offset: -2px; }
/* Titre ou commentaire : pas de quantité, de prix ni de TVA. */
.ligne-nouvelle:has(select[name=nature] option[value=titre]:checked) .si-article > *,
.ligne-nouvelle:has(select[name=nature] option[value=commentaire]:checked) .si-article > * { visibility: hidden; }
.zone-lignes:has(.ligne-nouvelle option[value=titre]:checked) #suggestions,
.zone-lignes:has(.ligne-nouvelle option[value=commentaire]:checked) #suggestions { display: none; }
/* Propositions du catalogue sous la ligne de saisie. */
.suggestions > td { background: color-mix(in srgb, var(--accent) 4%, var(--carte)); padding: .6rem 1rem .8rem; }
.suggestions .aide { margin: 0; }
.liste-propositions { list-style: none; margin: .3rem 0 0; padding: 0; }
.liste-propositions li { display: grid; grid-template-columns: 1fr auto auto; gap: 1rem; align-items: center; padding: .4rem 0; border-top: 1px solid var(--trait-leger); }
.liste-propositions .proposition-prix { text-align: right; font-variant-numeric: tabular-nums; }
.zone-lignes > .message { margin: 0 0 .75rem; }
.aide-saisie { margin-top: .6rem; }
kbd { font: inherit; font-size: .8em; padding: .05rem .35rem; border: 1px solid var(--trait); border-bottom-width: 2px; border-radius: 4px; background: var(--champ); }
.lignes-editables td.saisie-designation { min-width: 21rem; }

/* Plateforme de l'éditeur, mise en route, accompagnement */
.defilement { overflow-x: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.alerte { padding: .8rem 1rem; background: var(--p-ambre); border: 0; border-radius: var(--rayon); color: var(--p-ambre-t); }
.pastille.activite-active { background: var(--p-vert); color: var(--p-vert-t); }
.pastille.activite-calme { background: var(--p-ambre); color: var(--p-ambre-t); }
.pastille.activite-inactive { background: var(--p-rouge); color: var(--p-rouge-t); }
.pastille.activite-jamais { background: var(--p-neutre); color: var(--p-neutre-t); }
.mise-en-route .avancement { display: flex; align-items: center; gap: .75rem; margin: 0 0 .75rem; }
.mise-en-route meter { flex: 1; max-width: 240px; height: .9rem; }
.etapes { list-style: none; padding: 0; margin: .75rem 0 0; }
.etape { display: flex; gap: .7rem; padding: .5rem 0; border-bottom: 1px solid var(--trait); }
.etape:last-child { border-bottom: 0; }
.etape .coche { flex: none; width: 1.5rem; height: 1.5rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.etape.faite .coche { background: var(--p-vert); color: var(--p-vert-t); }
.etape.a-faire .coche { background: var(--p-neutre); color: var(--p-neutre-t); }
.etape .pastille { margin-left: .4rem; }
.bandeau-accompagnement { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; padding: .6rem 2rem; background: #1d3f99; color: #fff; font-size: .92rem; }
.bandeau-accompagnement p { margin: 0; }
.bandeau-accompagnement .bouton { background: #fff; color: #1d3f99; border-color: #fff; min-height: 32px; }
.parametres-mise-en-route { margin-bottom: 1.5rem; }
.page-large .contenu { max-width: 1320px; }
.parametres-mise-en-route summary meter { width: 160px; height: .8rem; margin-left: .75rem; vertical-align: middle; }
.parametres-mise-en-route .alerte { margin-top: .75rem; }

/* Habillage de la plateforme (logo, pied de page, page de connexion) */
.marque-seule { justify-content: center; display: flex; }
.marque-seule img { max-height: 72px; max-width: 280px; }
.slogan { text-align: center; color: var(--encre-douce); margin: -.5rem 0 1.5rem; }
.page-connexion { min-height: 100vh; }
.page-connexion .carte { box-shadow: 0 8px 30px rgba(0,0,0,.12); }
.bienvenue-texte { color: var(--encre-douce); margin: -.25rem 0 1.25rem; }
.pied-connexion { max-width: 460px; margin: 1.5rem auto 0; font-size: .8rem; text-align: center; color: var(--encre-douce); }
.pied-plateforme { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.5rem; padding: 1.25rem 1.5rem 2rem; font-size: .85rem; color: var(--encre-douce); border-top: 1px solid var(--trait); }
.page-connexion .pied-plateforme { border-top: 0; }
.apercu-couleurs { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin: .5rem 0; }
.apercu-email { width: 100%; height: 560px; border: 1px solid var(--trait); border-radius: var(--rayon); background: #fff; }
.vignette-image { max-width: 320px; max-height: 160px; border: 1px solid var(--trait); border-radius: var(--rayon); display: block; margin: .25rem 0 .75rem; }
.icone-actuelle img { width: 48px; height: 48px; border: 1px solid var(--trait); border-radius: 8px; background: #fff; padding: 2px; }
.choix-radio > div { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.formulaire-connexion:not(:has(input[name=fond][value=couleur]:checked)) .champ-couleur_choisie,
.formulaire-connexion:not(:has(input[name=fond][value=image]:checked)) .zone-image { display: none; }
.formulaire-apparence:not(:has(input[name=couleur_interface_active]:checked)) .champ-couleur_interface { display: none; }

/* --- Finitions de la nouvelle présentation (novembre 2026) ---------------------------- */
.fil { margin: 0 0 .5rem; font-size: .86rem; }
.fil a { color: var(--encre-douce); }
.fil a:hover { color: var(--accent); }
.recherche { gap: .6rem; margin: 0 0 .75rem; }
.recherche input[type=search] { min-height: 44px; padding: .6rem .9rem; font-size: 1rem; border-radius: var(--rayon); }
.recherche .filtre { min-height: 44px; padding: .55rem 2rem .55rem .8rem; }
.ajout-composant .recherche input[type=search] { min-height: 40px; }
.vide { padding: 2.5rem 1.5rem; border: 1px dashed var(--bordure-champ); border-radius: var(--rayon-grand); background: transparent; }
.pagination { margin-top: 1.25rem; }
.lien-fort { font-weight: 650; color: var(--encre); }
.lien-fort:hover { color: var(--accent); }
.titre-section { margin: 2rem 0 .85rem; }
.titre-section h2 { font-size: 1.15rem; }
.section { border-top-color: var(--trait-leger); padding-top: 1.25rem; }

/* Plaque d'immatriculation : la bande bleue européenne et son « F ». */
.plaque { display: inline-flex; align-items: stretch; padding: 0 .5rem 0 0; gap: .45rem; font-size: .86rem; line-height: 1.6; letter-spacing: .07em;
  background: #fff; border: 1px solid #1b1d22; border-left: 0; border-radius: 5px; overflow: hidden; box-shadow: 0 1px 0 rgba(20,24,33,.06); }
.plaque::before { content: "F"; display: grid; place-items: center; width: 1.05rem; flex: none; font-family: var(--police); font-size: .62rem; font-weight: 700; letter-spacing: 0;
  color: #fff; background: #1f4fa3; border-radius: 4px 0 0 4px; box-shadow: -1px 0 0 #1b1d22; }
.plaque.grande { font-size: 1.25rem; padding-right: .7rem; gap: .6rem; }
.plaque.grande::before { width: 1.5rem; font-size: .8rem; }

/* Tableau de bord */
.tuiles { gap: 1rem; margin-bottom: .75rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.tuile { border-radius: var(--rayon-grand); padding: 1.15rem 1.3rem 1.2rem; box-shadow: var(--ombre); }
.tuile-titre { font-size: .86rem; color: var(--encre); }
.tuile-titre .aide { color: var(--encre-douce); }
.tuile-valeur { font-size: 1.85rem; letter-spacing: -.035em; margin: .6rem 0 .1rem !important; }
.tuile-unite { font-size: .8rem; letter-spacing: 0; }
.chiffre-cle { font-size: 1.5rem; letter-spacing: -.03em; }
.graphique .barre { fill: color-mix(in srgb, var(--accent) 32%, var(--carte)); }
.graphique .barre.actuel { fill: var(--accent); }
.graphique .barre-groupe:hover .barre { fill: var(--accent); }
.graphique .barre-groupe:hover .barre-zone { fill: var(--accent-voile); }
.tableau.compact { box-shadow: none; border-radius: var(--rayon); }
.tableau.compact th, .tableau.compact td { padding: .5rem .7rem; font-size: .9rem; }
.bonjour { font-size: 2.3rem; letter-spacing: -.035em; }

/* Totaux d'un devis ou d'une facture */
.totaux .fiche { gap: .5rem 1.5rem; }
.totaux .grand { font-size: 1.45rem; letter-spacing: -.03em; border-top: 1px solid var(--trait); padding-top: .75rem; margin-top: .4rem; }

/* Lignes : gestes discrets, visibles au survol */
.lignes-devis .gestes .bouton { min-height: 30px; padding: .25rem .55rem; font-size: .82rem; box-shadow: none; }
.lignes-editables tr.ligne-affichee .gestes .bouton { opacity: .55; }
.lignes-editables tr.ligne-affichee:hover .gestes .bouton, .lignes-editables tr.ligne-affichee .gestes .bouton:focus-visible { opacity: 1; }
.ligne-saisie input[type=text], .ligne-saisie select, .ligne-saisie textarea { min-height: 34px; border-color: var(--bordure-champ); }
.ligne-saisie input:focus, .ligne-saisie select:focus, .ligne-saisie textarea:focus { outline: 0; box-shadow: 0 0 0 3px var(--focus); }
.bascule label { padding: .32rem .55rem; }
kbd { font-family: var(--police); font-size: .75em; padding: .05rem .4rem; border: 1px solid var(--trait); border-bottom-width: 2px; border-radius: 5px; background: var(--carte); color: var(--encre-douce); }

/* Page de connexion et pages simples */
.marque-seule { color: var(--encre); font-size: 1.75rem; margin: 0 0 .75rem; letter-spacing: -.03em; }
.page-connexion .carte { box-shadow: var(--ombre-flottante); border-color: transparent; padding: 2rem; }
.page-connexion h1 { font-size: 1.6rem; }
.page-simple .carte { max-width: 420px; }
.pied-plateforme { border-top: 0; padding: 1.5rem 2rem 2rem; font-size: .82rem; }
.pied-plateforme a { color: var(--encre-douce); }
.pied-plateforme a:hover { color: var(--accent); }

/* Impression : seulement le contenu */
@media print {
  .barre-laterale, .barre-haut, .voile-menu, .pied-plateforme, .bandeau-accompagnement { display: none !important; }
  body:has(> .barre-laterale) .cadre-principal { margin-left: 0; }
  body { background: #fff; }
  .carte, .tableau { box-shadow: none; }
}

/* En-têtes de page : titre à gauche, gestes à droite, sans trou entre les boutons d'un même formulaire. */
.titre-actions { align-items: flex-end; }
.titre-actions .actions { justify-content: flex-end; }
.titre-actions .actions form { display: contents; }
.zone-lignes { overflow-x: auto; padding-bottom: 2px; }
.lignes-devis td:first-child { min-width: 13rem; }
.lignes-editables td.saisie-designation { min-width: 17rem; }
.lignes-devis th, .lignes-devis td { padding: .6rem .55rem; }
.lignes-devis th:first-child, .lignes-devis td:first-child { padding-left: 1rem; }
/* Paramètres : titre et description l'un sous l'autre, comme une liste de réglages. */
.parametres .choix { display: grid; grid-template-columns: 1fr auto; column-gap: 1rem; row-gap: .1rem; }
.parametres .choix strong { grid-column: 1; }
.parametres .choix span { grid-column: 1; text-align: left; }
.parametres .choix::after { grid-column: 2; grid-row: 1 / span 2; }
.aller-au-contenu { top: -10rem; }
/* Beaucoup de gestes (fiche d'un devis, d'une facture) : ils passent sous le titre. */
.titre-actions:has(> .actions > :nth-child(4)) { flex-direction: column; align-items: flex-start; }
.titre-actions:has(> .actions > :nth-child(4)) .actions { justify-content: flex-start; }

/* Saisie d'un devis ou d'une facture : la barre latérale se replie en icônes pour laisser
   la largeur au tableau des lignes ; elle se déplie au survol, par-dessus la page. */
@media (min-width: 961px) and (max-width: 1560px) {
  body:has(.lignes-editables) { --largeur-menu: 72px; }
  body:has(.lignes-editables) .barre-laterale { transition: width .18s ease, box-shadow .18s ease; overflow-x: hidden; }
  body:has(.lignes-editables) .barre-laterale:not(:hover):not(:focus-within) :is(.marque span, .entreprise-nom, .menu a > span, .menu-titre, .compte-nom, .menu-compte form) { display: none; }
  body:has(.lignes-editables) .barre-laterale:not(:hover):not(:focus-within) .marque img { max-width: 40px; }
  body:has(.lignes-editables) .barre-laterale:not(:hover):not(:focus-within) .entreprise-courante { justify-content: center; background: none; padding: .3rem 0; }
  body:has(.lignes-editables) .barre-laterale:not(:hover):not(:focus-within) .menu a { justify-content: center; padding: .6rem 0; }
  body:has(.lignes-editables) .barre-laterale:not(:hover):not(:focus-within) .lien-compte { justify-content: center; padding: .4rem 0; }
  body:has(.lignes-editables) .barre-laterale:hover, body:has(.lignes-editables) .barre-laterale:focus-within { width: 248px; box-shadow: var(--ombre-flottante); }
}
@media (prefers-reduced-motion: reduce) { body:has(.lignes-editables) .barre-laterale { transition: none; } }
/* Listes : la recherche et ses filtres sur une seule ligne. */
.recherche input[type=search] { flex: 1 1 240px; width: auto; }
.recherche select { width: auto; flex: 0 1 auto; }
.lien-fort { color: var(--accent); }
.tableau { font-size: .94rem; }
/* Sans recherche ni bouton « Créer » (éditeur, accompagnement) : pas de barre du haut sur grand écran. */
@media (min-width: 961px) { .barre-haut-vide { display: none; } }
@media (max-width: 960px) { .barre-haut-titre { font-weight: 700; color: var(--encre); } }
/* Connexion : un halo de la couleur d'accent, très léger, au-dessus de la carte. */
.page-connexion { background-image: radial-gradient(ellipse 70% 55% at 50% -8%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%); background-repeat: no-repeat; }
.page-connexion .entete-simple { padding-top: 7rem; text-align: center; }
.page-connexion .marque-seule { font-size: 2.2rem; letter-spacing: -.04em; margin-bottom: 1.75rem; }
.page-connexion .marque-seule img { max-height: 64px; }
.page-connexion h1 { margin-bottom: 1.25rem; }
.page-simple .slogan { margin: -1rem 0 1.75rem; }
