/* ATCOM (FicheGoogle Pro) — maquette. Téléphone d'abord, puis ordinateur à partir de 900 px. */
:root {
  --accent: #111111;
  --accent-doux: #f1f1f1;
  --encre: #111111;
  --encre-2: #4a4a4a;
  --encre-3: #6b6b6b;
  --fond: #ffffff;
  --carte: #f7f7f7;
  --trait: #e6e6e6;
  --etoile: #f2b01e;
  --rouge: #b42318;
  --rouge-doux: #fdecea;
  --ambre-doux: #fff4dc;
  --vert: #1f7a3d;
  --rayon: 14px;
  --ombre: none;
  --police: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --pinceau: "Permanent Marker", "Manrope", system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--police); font-size: 16px; line-height: 1.5;
  color: var(--encre); background: var(--fond);
  -webkit-tap-highlight-color: transparent;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.25; margin: 0; }
h1 { font-size: 1.5rem; letter-spacing: -.01em; }
h2 { font-size: 1.125rem; }
h3 { font-size: 1rem; }
p { margin: 0; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; }

/* Bandeau démo */
.bandeau-demo {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 12px; background: var(--encre); color: #fff; font-size: .8125rem;
}
.bandeau-txt { opacity: .75; white-space: nowrap; }
@media (max-width: 520px) { .bandeau-txt { display: none; } .bandeau-demo { justify-content: center; } }
.bascule { display: inline-flex; background: rgba(255,255,255,.12); border-radius: 999px; padding: 3px; }
.bascule button {
  border: 0; background: transparent; color: #fff; padding: 6px 12px; border-radius: 999px;
  font-size: .8125rem; font-weight: 600; min-height: 32px; white-space: nowrap;
}
.bascule button[aria-selected="true"] { background: #fff; color: var(--encre); }

/* Structure */
.app { min-height: calc(100dvh - 48px); }
.coque { display: flex; flex-direction: column; min-height: calc(100dvh - 48px); }
.entete {
  display: flex; align-items: center; gap: 10px; padding: 14px 16px 10px;
}
.logo {
  width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: .95rem; flex: none;
}
.entete-nom { font-weight: 700; font-size: 1rem; }
.entete-sous { font-size: .8125rem; color: var(--encre-3); }
.contenu { flex: 1; padding: 6px 16px 88px; width: 100%; max-width: 1080px; margin: 0 auto; }
.pied-golem {
  text-align: center; font-size: .75rem; color: var(--encre-3); padding: 18px 16px 80px;
}

/* Navigation : barre en bas sur téléphone, colonne à gauche sur ordinateur */
.nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr));
  background: var(--carte); border-top: 1px solid var(--trait);
  padding-bottom: env(safe-area-inset-bottom);
}
.nav a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  padding: 6px 2px; font-size: .6875rem; font-weight: 600; line-height: 1.2; color: var(--encre-3);
  text-align: center; text-decoration: none; min-height: 48px; min-width: 0; position: relative;
}
.nav a span:not(.pastille-nb) { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav a svg { width: 20px; height: 20px; flex: none; }
.nav a[aria-current="page"] { color: var(--accent); }
.nav .pastille-nb {
  position: absolute; top: 3px; left: calc(50% + 5px); min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 8px; background: var(--rouge); color: #fff; font-size: .6875rem; line-height: 16px; text-align: center;
}

@media (min-width: 900px) {
  .coque.agence { display: grid; grid-template-columns: 236px minmax(0, 1fr); }
  .coque.agence .colonne { position: sticky; top: 48px; height: calc(100dvh - 48px); border-right: 1px solid var(--trait); background: var(--carte); display: flex; flex-direction: column; }
  .coque.agence .nav { position: static; display: flex; flex-direction: column; border: 0; padding: 8px; gap: 2px; background: transparent; }
  .coque.agence .nav a { flex-direction: row; justify-content: flex-start; text-align: left; gap: 12px; font-size: .9375rem; padding: 10px 12px; min-height: 0; border-radius: 10px; color: var(--encre-2); }
  .coque.agence .nav a[aria-current="page"] { background: var(--accent-doux); color: var(--accent); }
  .coque.agence .nav .pastille-nb { position: static; margin-left: auto; }
  .coque.agence .contenu { padding: 24px 32px 40px; }
  .coque.agence .pied-golem { padding-bottom: 24px; }
  .coque.agence .colonne .pied-golem { margin-top: auto; padding: 16px; text-align: left; }
  .coque.agence .pied-principal { display: none; }
  .coque.client { max-width: 480px; margin: 0 auto; background: var(--fond); box-shadow: 0 0 0 1px var(--trait); }
  .coque.client .nav { max-width: 480px; margin: 0 auto; }
}
@media (max-width: 899px) { .coque.agence .colonne .pied-golem { display: none; } }

/* Éléments */
.titre-page { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 8px 0 16px; flex-wrap: wrap; }
.titre-page p { color: var(--encre-2); font-size: .9375rem; margin-top: 4px; }
.carte { background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 16px; box-shadow: var(--ombre); }
.carte + .carte { margin-top: 12px; }
.pile { display: grid; gap: 12px; }
.grille-kpi { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
@media (min-width: 900px) { .grille-kpi { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; } }
.kpi { background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 14px; }
.kpi-val { font-size: 1.625rem; font-weight: 750; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi-lib { font-size: .8125rem; color: var(--encre-2); display: flex; align-items: center; gap: 4px; }
.kpi.alerte .kpi-val { color: var(--rouge); }
.deux-col { display: grid; gap: 18px; }
@media (min-width: 900px) { .deux-col { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; } }
.section-titre { font-size: .8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--encre-3); margin: 22px 0 10px; }
.section-titre:first-child { margin-top: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--trait);
  background: var(--carte); font-weight: 650; font-size: .9375rem; text-decoration: none; color: var(--encre);
}
.btn.principal { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.discret { border-color: transparent; background: transparent; color: var(--encre-2); }
.btn.danger { color: var(--rouge); }
.btn.petit { min-height: 36px; padding: 0 12px; font-size: .875rem; border-radius: 10px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.actions.pleine .btn { flex: 1 1 auto; }

.etoiles { color: var(--etoile); letter-spacing: 1px; font-size: .9375rem; white-space: nowrap; }
.etoiles .vide { color: #d9d3c7; }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: .75rem; font-weight: 650; padding: 2px 8px; border-radius: 999px; background: var(--fond); color: var(--encre-2); white-space: nowrap; }
.tag.rouge { background: var(--rouge-doux); color: var(--rouge); }
.tag.ambre { background: var(--ambre-doux); color: #8a5a00; }
.tag.vert { background: #e5f4ea; color: var(--vert); }
.tag.accent { background: var(--accent-doux); color: var(--accent); }
.muted { color: var(--encre-3); font-size: .8125rem; }

/* Listes d'avis */
.ligne-avis {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: start;
  padding: 14px 16px; background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon);
  text-decoration: none; color: inherit;
}
.ligne-avis + .ligne-avis { margin-top: 8px; }
.ligne-avis .haut { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ligne-avis .txt { grid-column: 1 / -1; color: var(--encre-2); font-size: .9375rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ligne-avis.urgent { border-left: 4px solid var(--rouge); }
.filtres { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 12px; scrollbar-width: none; }
.filtres button { flex: none; border: 1px solid var(--trait); background: var(--carte); border-radius: 999px; padding: 6px 12px; font-size: .875rem; font-weight: 600; min-height: 36px; }
.filtres button[aria-pressed="true"] { background: var(--encre); color: #fff; border-color: var(--encre); }

/* Détail d'un avis */
.avis-texte { font-size: 1rem; margin-top: 8px; }
.avis-texte.vide { color: var(--encre-3); font-style: italic; }
.bandeau { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; font-size: .9375rem; margin-bottom: 12px; }
.bandeau.ambre { background: var(--ambre-doux); }
.bandeau.rouge { background: var(--rouge-doux); color: #7a1a12; }
.bandeau.accent { background: var(--accent-doux); }
.bandeau .btn { margin-left: auto; flex: none; }
.brouillon-tete { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 18px 0 8px; }
.zone {
  width: 100%; min-height: 140px; padding: 12px 14px; border: 1px solid var(--trait); border-radius: 12px;
  background: #fffdf8; resize: vertical; line-height: 1.5; font-size: 1rem;
}
.consigne-regen { display: flex; gap: 8px; margin-top: 8px; }
.consigne-regen input { flex: 1; min-width: 0; }
.reponse-publiee { background: var(--fond); border-radius: 12px; padding: 12px 14px; margin-top: 12px; font-size: .9375rem; }

/* Formulaires */
.champ { display: grid; gap: 6px; margin-bottom: 16px; }
.champ-lib { display: flex; align-items: center; gap: 6px; font-weight: 650; font-size: .9375rem; }
.champ input[type=text], .champ input[type=url], .champ input[type=tel], .champ input[type=password], .champ select, .champ textarea, .consigne-regen input {
  width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--trait); border-radius: 12px; background: var(--carte); font-size: 1rem;
}
.champ textarea { min-height: 88px; resize: vertical; }
.champ .ex { font-size: .8125rem; color: var(--encre-3); }
.champ input[readonly] { background: var(--fond); color: var(--encre-2); }
.verrouille { display: flex; gap: 8px; align-items: center; }
.verrouille input { flex: 1; min-width: 0; }
.puces { display: flex; flex-wrap: wrap; gap: 6px; }
.puce { display: inline-flex; align-items: center; gap: 6px; padding: 6px 6px 6px 12px; border-radius: 999px; background: var(--accent-doux); color: var(--accent); font-weight: 600; font-size: .875rem; }
.puce button { border: 0; background: rgba(255,255,255,.7); width: 26px; height: 26px; border-radius: 50%; line-height: 1; color: inherit; }
.puce.principale::before { content: "Principale"; font-size: .6875rem; background: var(--accent); color: #fff; border-radius: 999px; padding: 1px 6px; margin-right: 2px; }
.puce-ajout { border: 1px dashed var(--trait); background: transparent; border-radius: 999px; padding: 6px 12px; font-size: .875rem; font-weight: 600; color: var(--encre-2); min-height: 36px; }
.horaires { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.horaires td { padding: 8px 0; border-bottom: 1px solid var(--trait); }
.horaires td:last-child { text-align: right; color: var(--encre-2); }
.compteur { font-size: .75rem; color: var(--encre-3); text-align: right; }

/* Pastille « ? » */
.aide {
  display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid var(--encre-3); background: transparent; color: var(--encre-2);
  font-size: .75rem; font-weight: 800; line-height: 1; padding: 0; flex: none; position: relative;
}
.aide::after { content: ""; position: absolute; inset: -11px; } /* zone de toucher de 44 px */
.aide[aria-expanded="true"] { background: var(--encre); border-color: var(--encre); color: #fff; }
.bulle {
  position: fixed; z-index: 60; max-width: min(320px, calc(100vw - 24px));
  background: var(--encre); color: #fff; font-size: .875rem; line-height: 1.45; font-weight: 450;
  padding: 12px 14px; border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.2);
}

/* Cartes d'accueil client */
.carte-action .ct-tete { display: flex; align-items: center; gap: 10px; }
.ct-icone { width: 38px; height: 38px; border-radius: 12px; background: var(--accent-doux); color: var(--accent); display: grid; place-items: center; flex: none; font-size: 1.1rem; }
.ct-icone.rouge { background: var(--rouge-doux); color: var(--rouge); }
.ct-icone.ambre { background: var(--ambre-doux); color: #8a5a00; }
.carte-action .ct-corps { margin-top: 10px; color: var(--encre-2); font-size: .9375rem; }
.proposition { margin-top: 10px; padding: 12px; background: #fffdf8; border: 1px dashed var(--trait); border-radius: 12px; font-size: .9375rem; }
.tout-va-bien { text-align: center; padding: 28px 16px; }
.tout-va-bien .gros { font-size: 2rem; }
.jauge { height: 8px; border-radius: 4px; background: var(--fond); overflow: hidden; margin-top: 10px; }
.jauge span { display: block; height: 100%; background: var(--accent); border-radius: 4px; transition: width .3s ease; }

/* Consignes */
.consignes-grille { display: grid; gap: 18px; }
@media (min-width: 900px) { .consignes-grille { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); align-items: start; } .apercu-col { position: sticky; top: 72px; } }
details.section-cons { background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon); }
details.section-cons + details.section-cons { margin-top: 10px; }
details.section-cons summary { list-style: none; padding: 14px 16px; font-weight: 700; display: flex; align-items: center; justify-content: space-between; cursor: pointer; min-height: 52px; }
details.section-cons summary::-webkit-details-marker { display: none; }
details.section-cons summary::after { content: "+"; font-size: 1.25rem; color: var(--encre-3); }
details.section-cons[open] summary::after { content: "–"; }
details.section-cons .corps { padding: 0 16px 4px; }
.apercu-avis { border-top: 1px solid var(--trait); padding-top: 12px; margin-top: 12px; }
.apercu-avis:first-of-type { border-top: 0; padding-top: 0; margin-top: 8px; }
.apercu-rep { margin-top: 6px; padding: 10px 12px; background: var(--accent-doux); border-radius: 10px; font-size: .9375rem; }
.prompt { white-space: pre-wrap; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .8125rem; background: #1d1b18; color: #f1ede4; padding: 14px; border-radius: 12px; max-height: 60vh; overflow: auto; }
.prompt mark { background: #0f5f58; color: #fff; border-radius: 3px; padding: 0 2px; }
.historique li { font-size: .875rem; color: var(--encre-2); margin-bottom: 4px; }

/* Onglets de réglages */
.onglets { display: flex; gap: 4px; border-bottom: 1px solid var(--trait); margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; }
.onglets button { flex: none; border: 0; background: transparent; padding: 10px 12px; font-weight: 650; color: var(--encre-2); border-bottom: 2px solid transparent; min-height: 44px; white-space: nowrap; }
.onglets button[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.onglets a { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 10px 12px; font-weight: 650; color: var(--encre-2); text-decoration: none; border-bottom: 2px solid transparent; min-height: 44px; white-space: nowrap; }
.onglets a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }
.onglets .compte { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--rouge); color: #fff; font-size: .6875rem; line-height: 18px; text-align: center; }
.bientot { text-align: center; padding: 40px 20px; border: 1px dashed var(--trait); border-radius: var(--rayon); background: var(--carte); }
.bientot .gros { font-size: 1.75rem; margin-bottom: 8px; }

/* Tableaux */
.tableau { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.tableau th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--encre-3); padding: 8px 10px; border-bottom: 1px solid var(--trait); }
.tableau td { padding: 12px 10px; border-bottom: 1px solid var(--trait); vertical-align: middle; }
.tableau tr:last-child td { border-bottom: 0; }
.defile-x { overflow-x: auto; }
.ligne-org { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 14px 16px; background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon); text-decoration: none; color: inherit; align-items: center; }
.ligne-org + .ligne-org { margin-top: 8px; }

/* Tableau de bord : une ligne par client */
.liste-fiches { margin-bottom: 18px; }
.ligne-fiche { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon); text-decoration: none; color: inherit; min-height: 64px; }
.ligne-fiche + .ligne-fiche { margin-top: 8px; }
.ligne-fiche:active { background: var(--accent-doux); }
.lf-logo { width: 38px; height: 38px; flex: none; border-radius: 10px; background: var(--accent-doux); color: var(--accent); display: grid; place-items: center; font-weight: 800; }
.lf-txt { flex: 1; min-width: 0; display: grid; }
.lf-txt strong { overflow-wrap: anywhere; }
.lf-txt .muted { font-size: .8125rem; }
.lf-etat { margin-top: 4px; }
.nowrap { white-space: nowrap; }
.lf-note { flex: none; align-self: flex-start; font-weight: 700; font-size: .875rem; color: var(--encre-2); }
.lf-note::first-letter { color: #e6a700; }
@media (hover: hover) { .ligne-fiche:hover { border-color: var(--accent); } }

/* Bascule Vue agence / Vue client d'un client */
.bascule-org { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 14px; background: var(--trait); border-radius: 12px; max-width: 360px; }
.bascule-org a { display: grid; place-items: center; min-height: 40px; border-radius: 9px; font-weight: 650; font-size: .9375rem; color: var(--encre-2); text-decoration: none; }
.bascule-org a[aria-selected="true"] { background: var(--carte); color: var(--accent); box-shadow: 0 1px 3px rgba(0,0,0,.12); }

/* Graphique */
.barres { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; align-items: end; height: 120px; margin-top: 12px; }
.barres div { background: var(--accent-doux); border-radius: 6px 6px 2px 2px; position: relative; }
.barres div.dernier { background: var(--accent); }
.barres-lib { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; font-size: .75rem; color: var(--encre-3); text-align: center; margin-top: 6px; }

/* Toast et modale */
.toast {
  position: fixed; left: 50%; bottom: 72px; transform: translateX(-50%); z-index: 70;
  display: flex; align-items: center; gap: 14px; background: var(--encre); color: #fff;
  padding: 12px 14px 12px 16px; border-radius: 14px; font-size: .9375rem; box-shadow: 0 8px 24px rgba(0,0,0,.25);
  width: max-content; max-width: calc(100vw - 24px);
}
.toast button { border: 0; background: rgba(255,255,255,.16); color: #fff; padding: 6px 12px; border-radius: 10px; font-weight: 700; min-height: 36px; }
.modale { position: fixed; inset: 0; z-index: 80; display: grid; place-items: end center; }
@media (min-width: 600px) { .modale { place-items: center; } }
.modale-fond { position: absolute; inset: 0; background: rgba(29,27,24,.45); }
.modale-boite { position: relative; background: var(--carte); width: min(520px, 100%); max-height: 90dvh; overflow: auto; border-radius: 20px 20px 0 0; padding: 20px 18px calc(20px + env(safe-area-inset-bottom)); }
@media (min-width: 600px) { .modale-boite { border-radius: 20px; } }
.google-consent { border: 1px solid var(--trait); border-radius: 14px; padding: 18px; text-align: center; }
.google-consent .g { font-weight: 700; font-size: 1.25rem; letter-spacing: -.01em; }
.google-consent .g span:nth-child(1) { color: #4285f4; } .google-consent .g span:nth-child(2) { color: #ea4335; }
.google-consent .g span:nth-child(3) { color: #fbbc05; } .google-consent .g span:nth-child(4) { color: #4285f4; }
.google-consent .g span:nth-child(5) { color: #34a853; } .google-consent .g span:nth-child(6) { color: #ea4335; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Fiches et cartes titrées */
.carte-titre { font-size: 1rem; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.carte-tete { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.carte-tete .carte-titre { margin-bottom: 0; }
.fiche-resume { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: -4px 0 14px; }
.lf-logo svg { width: 20px; height: 20px; }
.lf-fin { flex: none; display: flex; align-items: center; gap: 8px; align-self: center; }
.lf-fin .lf-note { align-self: auto; }
.chevron { font-size: 1.5rem; line-height: 1; color: var(--encre-3); }
.lien-bandeau { text-decoration: none; justify-content: space-between; align-items: center; }
.choix-fiche { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.choix-fiche a { padding: 8px 14px; min-height: 40px; display: inline-flex; align-items: center; border-radius: 999px; border: 1px solid var(--trait); background: var(--carte); color: var(--encre-2); font-weight: 650; text-decoration: none; }
.choix-fiche a[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.onglets.serres { justify-content: space-between; gap: 0; }
.onglets.serres a { padding: 10px 4px; font-size: .9375rem; }

/* ---------- Identité ATCOM : noir et blanc, titres et boutons au pinceau ---------- */
@font-face { font-family: "Permanent Marker"; font-weight: 400; font-display: swap; src: url(polices/permanent-marker.woff2) format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 200 800; font-display: swap; src: url(polices/manrope-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Manrope"; font-weight: 200 800; font-display: swap; src: url(polices/manrope-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C4; }

/* Marque : le nom de l'agence écrit au pinceau */
.entete .logo { display: none; }
.entete-nom { font-family: var(--pinceau); font-weight: 400; font-size: 1.625rem; line-height: 1; letter-spacing: .01em; text-transform: uppercase; }
.coque.client .entete-nom { font-family: var(--police); font-weight: 750; font-size: 1.0625rem; text-transform: none; line-height: 1.3; }
.coque.client .entete .logo {
  display: grid; width: 40px; height: 40px; border-radius: 0; color: #fff; background: none; position: relative; isolation: isolate;
  font-family: var(--pinceau); font-weight: 400; font-size: 1.125rem;
}
.coque.client .entete .logo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--accent);
  -webkit-mask: url(pinceau-pastille.svg?v=2) center / 100% 100% no-repeat; mask: url(pinceau-pastille.svg?v=2) center / 100% 100% no-repeat; }

/* Titres de page au pinceau, soulignés d'un trait */
.titre-page h1 {
  font-family: var(--pinceau); font-weight: 400; font-size: 1.75rem; line-height: 1.15; letter-spacing: .01em;
  text-transform: uppercase; text-wrap: balance; padding-bottom: 12px; position: relative;
}
.titre-page h1::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: min(150px, 60%); height: 10px; background: var(--accent);
  -webkit-mask: url(pinceau-souligne.svg?v=2) left center / 100% 100% no-repeat; mask: url(pinceau-souligne.svg?v=2) left center / 100% 100% no-repeat;
}
@media (min-width: 900px) { .titre-page h1 { font-size: 2.125rem; } }
.carte-titre, h2 { font-weight: 750; letter-spacing: -.01em; }

/* Bouton principal : un coup de pinceau noir, libellé au pinceau */
.btn { border-radius: 999px; border-color: #d9d9d9; background: #fff; font-weight: 700; }
.btn.discret { background: transparent; }
.btn.principal {
  position: relative; isolation: isolate; background: transparent; border: 0; color: #fff;
  font-family: var(--pinceau); font-weight: 400; font-size: 1.0625rem; letter-spacing: .01em; padding: 0 26px;
}
.btn.principal.petit { font-size: .9375rem; padding: 0 20px; }
.btn.principal::before {
  content: ""; position: absolute; inset: -3px -4px; z-index: -1; background: var(--accent);
  -webkit-mask: url(pinceau-bouton.svg?v=2) center / 100% 100% no-repeat; mask: url(pinceau-bouton.svg?v=2) center / 100% 100% no-repeat;
  transition: transform .18s cubic-bezier(.22, 1, .36, 1);
}
@media (hover: hover) { .btn.principal:not([disabled]):hover::before { transform: scaleX(1.04) rotate(-.6deg); } }
.btn.principal:active::before { transform: scale(.97); }
@media (prefers-reduced-motion: reduce) { .btn.principal::before { transition: none; } }

/* Surfaces : fond blanc, cartes gris très clair sans ombre */
.carte, .kpi, .ligne-org, .ligne-fiche, details.section-cons, .bientot { background: var(--carte); border-color: var(--trait); box-shadow: none; }
.kpi-val { font-weight: 800; }
input[type="text"], input[type="tel"], input[type="url"], input[type="email"], select, textarea, .zone { background: #fff; }
.ligne-fiche:active { background: #ececec; }
@media (hover: hover) { .ligne-fiche:hover, .ligne-org:hover { border-color: #111; } }
.lf-logo { background: #111; color: #fff; }
.puce { background: #fff; color: #111; border: 1px solid #d9d9d9; }
.puce.principale::before { background: #111; }
.prompt mark { background: #fff; color: #111; }

/* Navigation : sélection en gris clair, texte noir */
.nav { background: #fff; }
.nav a[aria-current="page"] { color: #111; }
@media (min-width: 900px) {
  .coque.agence .colonne { background: #fff; }
  .coque.agence .nav a[aria-current="page"] { background: #efefef; color: #111; font-weight: 750; }
  .coque.client { background: #fff; }
  /* Tache de pinceau dans le bas de la colonne de menu, comme sur la charte */
  .coque.agence .colonne { isolation: isolate; overflow: hidden; }
  .coque.agence .colonne::before {
    content: ""; position: absolute; z-index: -1; left: -50px; bottom: 56px; width: 330px; height: 290px; pointer-events: none;
    background: var(--accent);
    -webkit-mask: url(pinceau-tache.svg?v=2) center / contain no-repeat; mask: url(pinceau-tache.svg?v=2) center / contain no-repeat;
  }
}
@media (min-width: 900px) and (max-height: 640px) { .coque.agence .colonne::before { display: none; } }
.toast { background: #111; }
