/* CRMQCCanada — CRM Québec · feuille de style (bleu, blanc, rouge) */
:root {
  --bleu: #0d47a8; --bleu-f: #012051; --bleu-p: #e8effb; --marine: #012051;
  --fond: #f4f6f9; --carte: #fff; --texte: #1d2433; --gris: #667085; --ligne: #e3e7ee;
  --vert: #1d7a46; --vert-p: #e3f4ea; --rouge: #e0192d; --rouge-f: #b8101f; --rouge-p: #fdecee;
  --orange: #b54708; --orange-p: #fef0e1; --violet: #6941c6; --violet-p: #f1ecfc;
  --rayon: 10px; --ombre: 0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.08);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.5 "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; background: var(--fond); color: var(--texte); }
a { color: var(--bleu); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.6rem; margin: 0 0 .25rem; }
h2 { font-size: 1.1rem; margin: 0 0 .75rem; }
h3 { font-size: 1rem; margin: 1.25rem 0 .5rem; }
code.copie { display: block; word-break: break-all; background: #fff; padding: .5rem; border-radius: 6px; margin-top: .4rem; user-select: all; }

/* ---------- Barre du haut ---------- */
.barre { background: var(--bleu-f); color: #fff; display: flex; align-items: center; gap: 1rem; padding: 0 1.25rem; min-height: 56px; position: sticky; top: 0; z-index: 10; }
.logo { color: #fff; font-weight: 700; font-size: 1.1rem; display: flex; align-items: center; gap: .5rem; white-space: nowrap; }
.logo:hover { text-decoration: none; }
.logo-pastille { background: #fff; color: var(--bleu-f); border-radius: 6px; padding: 1px 6px; font-size: .85rem; }
.menu { display: flex; align-items: center; gap: .25rem; margin-left: auto; flex-wrap: wrap; }
.menu a { color: #dbe5f3; padding: .45rem .7rem; border-radius: 6px; }
.menu a:hover, .menu a.actif { background: rgba(255,255,255,.12); color: #fff; text-decoration: none; }
.menu-user { color: #9fb3cf; font-size: .85rem; padding: 0 .5rem; border-left: 1px solid rgba(255,255,255,.2); margin-left: .5rem; }
.menu-public .btn { color: #fff; }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; color: #fff; font-size: 1.5rem; cursor: pointer; }
.bandeau { background: var(--orange-p); color: var(--orange); text-align: center; padding: .45rem 1rem; font-size: .9rem; }
.bandeau-err { background: var(--rouge-p); color: var(--rouge); }
.bandeau a { font-weight: 600; margin-left: .5rem; color: inherit; text-decoration: underline; }

/* ---------- Mise en page ---------- */
.contenu { max-width: 1280px; margin: 0 auto; padding: 1.5rem 1.25rem 3rem; }
.pied { text-align: center; color: var(--gris); font-size: .85rem; padding: 2rem 1rem; }
.titre-page { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.grille-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; align-items: start; }
.grille-2.large-gauche { grid-template-columns: 2fr 1fr; }
.grille-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.grille-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.25rem; }
.carte { background: var(--carte); border: 1px solid var(--ligne); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 1.25rem; margin-bottom: 1.25rem; }
.carte-titre { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.vide { color: var(--gris); text-align: center; padding: 1.5rem; }
.petit { font-size: .85rem; color: var(--gris); }
.droite { text-align: right; white-space: nowrap; }
.compte { background: var(--bleu-p); color: var(--bleu); font-size: .8rem; padding: 2px 8px; border-radius: 999px; vertical-align: middle; font-weight: 600; }
.txt-retard { color: var(--rouge) !important; font-weight: 600; }
.texte-long { max-width: 780px; margin: 0 auto; }

/* ---------- Boutons ---------- */
.btn { display: inline-block; background: var(--bleu); color: #fff; border: 1px solid var(--bleu); border-radius: 8px; padding: .55rem 1rem; font: inherit; font-weight: 600; cursor: pointer; text-align: center; }
.btn:hover { background: var(--bleu-f); text-decoration: none; }
.btn-sec { background: #fff; color: var(--texte); border-color: var(--ligne); }
.btn-sec:hover { background: var(--fond); }
.btn-danger { background: #fff; color: var(--rouge); border-color: #f3c7c2; }
.btn-danger:hover { background: var(--rouge-p); }
.btn-petit { padding: .3rem .6rem; font-size: .85rem; font-weight: 500; }
.btn-grand { padding: .8rem 1.4rem; font-size: 1.05rem; width: 100%; }
.hero .btn-grand { width: auto; }
.inline { display: inline; margin: 0; }
.zone-danger { margin-top: 2rem; text-align: right; }

/* ---------- Formulaires ---------- */
.formulaire label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .85rem; }
.formulaire input:not([type=checkbox]), .formulaire select, .formulaire textarea, .filtres input, .filtres select, .onglets select, .tableau select, .opp-deplacer select {
  display: block; width: 100%; margin-top: .3rem; padding: .55rem .7rem; border: 1px solid #cfd6e1; border-radius: 8px; font: inherit; font-weight: 400; background: #fff; color: var(--texte); }
.formulaire input:focus, .formulaire select:focus, .formulaire textarea:focus { outline: 2px solid var(--bleu-p); border-color: var(--bleu); }
.formulaire input:disabled { background: var(--fond); color: var(--gris); }
.formulaire fieldset { border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 1rem 1rem .25rem; margin: 0 0 1rem; }
.formulaire legend { font-weight: 700; padding: 0 .4rem; }
.formulaire .case, .case { display: flex; gap: .5rem; align-items: flex-start; font-weight: 400; font-size: .9rem; }
.case input { margin-top: .25rem; }
.ligne { display: flex; gap: 1rem; }
.ligne > label { flex: 1; }
.ligne > label.l2 { flex: 2; }
.compact label { margin-bottom: .6rem; }
.filtres { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin-bottom: 1rem; }
.filtres input[type=search] { flex: 1; min-width: 220px; margin: 0; }
.filtres select { width: auto; margin: 0; }
.tableau select, .onglets select { width: auto; margin: 0; padding: .3rem .5rem; }

/* ---------- Alertes et pastilles ---------- */
.alerte { padding: .75rem 1rem; border-radius: 8px; margin-bottom: 1rem; border: 1px solid; }
.alerte-ok { background: var(--vert-p); color: var(--vert); border-color: #b7e2c8; }
.alerte-err { background: var(--rouge-p); color: var(--rouge); border-color: #f3c7c2; }
.alerte-info { background: var(--bleu-p); color: var(--bleu-f); border-color: #c5d5ec; }
.pastille { display: inline-block; font-size: .75rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--fond); color: var(--gris); vertical-align: middle; white-space: nowrap; }
.p-client, .p-actif, .p-gagne { background: var(--vert-p); color: var(--vert); }
.p-prospect, .p-nouveau, .p-qualifie, .p-essai { background: var(--bleu-p); color: var(--bleu); }
.p-soumission, .p-negociation, .p-en_retard { background: var(--orange-p); color: var(--orange); }
.p-perdu, .p-annule { background: var(--rouge-p); color: var(--rouge); }
.p-a { background: var(--violet-p); color: var(--violet); }

/* ---------- Tableaux ---------- */
.tableau-wrap { overflow-x: auto; background: var(--carte); border: 1px solid var(--ligne); border-radius: var(--rayon); box-shadow: var(--ombre); }
.tableau { width: 100%; border-collapse: collapse; }
.tableau th { text-align: left; font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: var(--gris); background: #fafbfc; padding: .7rem .9rem; border-bottom: 1px solid var(--ligne); white-space: nowrap; }
.tableau td { padding: .7rem .9rem; border-bottom: 1px solid var(--ligne); vertical-align: middle; }
.tableau tbody tr { cursor: pointer; }
.tableau tbody tr:hover { background: #f8fafc; }
.tableau tr:last-child td { border-bottom: 0; }
.tableau tr.desactive td { opacity: .55; }
.pagination { display: flex; gap: .25rem; justify-content: center; margin-top: 1rem; flex-wrap: wrap; }
.pagination a { padding: .35rem .7rem; border-radius: 6px; background: #fff; border: 1px solid var(--ligne); }
.pagination a.actif { background: var(--bleu); color: #fff; border-color: var(--bleu); }

/* ---------- Tableau de bord ---------- */
.stat { background: var(--carte); border: 1px solid var(--ligne); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 1rem 1.25rem; display: flex; flex-direction: column; color: var(--gris); font-size: .85rem; }
a.stat:hover { border-color: var(--bleu); text-decoration: none; }
.stat-n { font-size: 1.6rem; font-weight: 700; color: var(--texte); }
.barre-etape { margin-bottom: .7rem; }
.barre-lib { display: flex; justify-content: space-between; font-size: .9rem; margin-bottom: .2rem; }
.barre-fond { background: var(--fond); border-radius: 999px; height: 8px; overflow: hidden; }
.barre-val { background: var(--bleu); height: 100%; border-radius: 999px; min-width: 2px; }
.liste-simple { list-style: none; padding: 0; margin: 0; }
.liste-simple li { padding: .45rem 0; border-bottom: 1px solid var(--ligne); }
.liste-simple li:last-child { border: 0; }

/* ---------- Suivis ---------- */
.liste-suivis { list-style: none; margin: 0 0 1rem; padding: 0; }
.liste-suivis.carte { padding: 0 1rem; }
.liste-suivis li { display: flex; gap: .75rem; align-items: flex-start; padding: .75rem 0; border-bottom: 1px solid var(--ligne); }
.liste-suivis li:last-child { border: 0; }
.liste-suivis li.retard strong { color: var(--rouge); }
.suivi-corps { flex: 1; min-width: 0; }
.suivi-actions { white-space: nowrap; }
.desc { margin-top: .25rem; }
.coche { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #cfd6e1; background: #fff; color: transparent; cursor: pointer; font-weight: 700; flex-shrink: 0; padding: 0; }
.coche:hover { border-color: var(--vert); color: var(--vert); }
.coche-faite { background: var(--vert); border-color: var(--vert); color: #fff; }
.groupe { display: flex; align-items: center; gap: .5rem; }
.onglets { display: flex; gap: .25rem; align-items: center; margin-bottom: 1rem; flex-wrap: wrap; }
.onglets > a { padding: .45rem .9rem; border-radius: 8px; color: var(--gris); font-weight: 600; }
.onglets > a.actif { background: var(--bleu); color: #fff; }
.onglets form { margin-left: auto; }

/* ---------- Fiche client ---------- */
.fiche { display: grid; grid-template-columns: 130px 1fr; gap: .45rem 1rem; margin: 0; }
.fiche dt { color: var(--gris); font-size: .9rem; }
.fiche dd { margin: 0; word-break: break-word; }
.notes { background: #fffbea; border: 1px solid #f5e6a8; border-radius: 8px; padding: .75rem; }
.historique { list-style: none; padding: 0; margin: 0; }
.historique li { border-left: 3px solid var(--ligne); padding: .5rem 0 .5rem 1rem; margin-bottom: .5rem; }
.historique li.a-faire { border-color: var(--orange); background: #fffaf3; }
.h-entete { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.h-entete form { margin-left: auto; }
.h-texte { margin-top: .3rem; color: #344054; }

/* ---------- Pipeline (kanban) ---------- */
.kanban { display: grid; grid-template-columns: repeat(6, minmax(210px, 1fr)); gap: .75rem; overflow-x: auto; padding-bottom: 1rem; }
.colonne { background: #eceff4; border-radius: var(--rayon); padding: .6rem; min-height: 200px; }
.col-titre { font-weight: 700; font-size: .9rem; padding: .25rem .25rem .6rem; display: flex; flex-direction: column; }
.col-titre span { font-weight: 400; font-size: .8rem; color: var(--gris); }
.col-gagne { background: var(--vert-p); } .col-perdu { background: var(--rouge-p); }
.opp { background: #fff; border-radius: 8px; padding: .65rem; margin-bottom: .5rem; box-shadow: var(--ombre); }
.opp-titre { font-weight: 600; display: block; }
.opp-montant { font-weight: 700; margin: .2rem 0; }
.opp-deplacer select { margin-top: .4rem; padding: .25rem .4rem; font-size: .8rem; }

/* ---------- Pages publiques ---------- */
.boite-auth { max-width: 420px; margin: 2rem auto; background: var(--carte); border: 1px solid var(--ligne); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 2rem; }
.boite-auth.large { max-width: 620px; }
.hero { text-align: center; max-width: 760px; margin: 2.5rem auto 3rem; }
.hero h1 { font-size: 2.3rem; line-height: 1.2; margin-bottom: 1rem; }
.hero p { font-size: 1.1rem; color: #475467; }
.avantages h3 { margin-top: 0; color: var(--bleu-f); }

/* ---------- Cellulaire ---------- */
@media (max-width: 900px) {
  .grille-2, .grille-2.large-gauche, .grille-3 { grid-template-columns: 1fr; }
  .grille-4 { grid-template-columns: 1fr 1fr; }
  .menu-btn { display: block; }
  body.app .menu { display: none; position: absolute; top: 56px; left: 0; right: 0; background: var(--bleu-f); flex-direction: column; align-items: stretch; padding: .5rem; }
  body.menu-ouvert .menu { display: flex; }
  .menu-user { border: 0; margin: .5rem 0; padding: .45rem .7rem; }
  .ligne { flex-direction: column; gap: 0; }
  .tableau th:nth-child(n+5), .tableau td:nth-child(n+5) { display: none; }
  .hero h1 { font-size: 1.7rem; }
  .fiche { grid-template-columns: 100px 1fr; }
}
@media (max-width: 480px) {
  .contenu { padding: 1rem .75rem 2rem; }
  .grille-4 { grid-template-columns: 1fr; }
  .tableau th:nth-child(n+4), .tableau td:nth-child(n+4) { display: none; }
  .boite-auth { padding: 1.25rem; margin: 1rem auto; }
}


/* =====================================================================
   Thème CRM Québec — logo, bleu-blanc-rouge
   ===================================================================== */
h1, h2, .titre-logo { font-family: "Barlow Semi Condensed", "Barlow", sans-serif; }
h1 { font-style: italic; font-weight: 800; color: var(--marine); letter-spacing: .005em; }
h2 { font-weight: 700; color: var(--marine); }
.lisere { height: 5px; background: linear-gradient(90deg, var(--bleu) 0 33.3%, #fff 33.3% 66.6%, var(--rouge) 66.6% 100%); }
body.app .lisere { box-shadow: 0 1px 0 rgba(1,32,81,.15); }

/* Barre du CRM (connecté) */
body.app .barre { background: var(--marine); min-height: 64px; position: sticky; top: 0; }
.logo img { display: block; height: 48px; width: auto; }
body.app .menu a { font-weight: 600; text-transform: uppercase; font-size: .82rem; letter-spacing: .04em; border-radius: 4px; }
body.app .menu a.actif { background: var(--rouge); color: #fff; }
body.app .menu a.admin-plateforme { color: #ffd2d6; border: 1px solid rgba(224,25,45,.6); }
body.app .menu a.admin-plateforme.actif { background: var(--rouge); color: #fff; }

/* En-tête public (accueil, connexion, inscription) */
body.public .barre { background: #fff; color: var(--marine); min-height: 78px; position: static; box-shadow: none; }
body.public .logo img { height: 62px; }
body.public .menu a { color: var(--marine); font-weight: 600; }
body.public .menu a:hover { background: var(--bleu-p); color: var(--marine); }
body.public .menu-public .btn { background: var(--rouge); border-color: var(--rouge); color: #fff; }
body.public .menu-public .btn:hover { background: var(--rouge-f); }

/* Boutons */
.btn:hover { background: #0a3a8a; border-color: #0a3a8a; }
.btn-rouge { background: var(--rouge); border-color: var(--rouge); color: #fff; }
.btn-rouge:hover { background: var(--rouge-f); border-color: var(--rouge-f); }
.btn-sec:hover { background: var(--fond); border-color: var(--ligne); }

/* Cartes et chiffres */
.carte { border-top: 4px solid var(--bleu); }
.grille-3 .carte:nth-child(even), .grille-2 > div > .carte:nth-child(even) { border-top-color: var(--rouge); }
.stat { border-top: 4px solid var(--bleu); }
.stat:nth-child(even) { border-top-color: var(--rouge); }
.stat-n { color: var(--marine); font-family: "Barlow Semi Condensed", sans-serif; font-style: italic; font-weight: 800; font-size: 1.75rem; }
.barre-etape:nth-child(even) .barre-val { background: var(--rouge); }

/* Tableaux */
.tableau th { background: var(--marine); color: #fff; border-bottom: 3px solid var(--rouge); }
.tableau tbody tr:nth-child(even) { background: #f8fafd; }
.tableau tbody tr:hover { background: var(--bleu-p); }

/* Onglets, pastilles, pagination */
.onglets > a.actif { background: var(--marine); box-shadow: inset 0 -3px 0 var(--rouge); }
.pagination a.actif { background: var(--marine); border-color: var(--marine); }

/* Pipeline */
.col-titre { border-bottom: 3px solid var(--bleu); margin-bottom: .5rem; color: var(--marine); }
.col-gagne .col-titre { border-color: var(--vert); }
.col-perdu .col-titre { border-color: var(--rouge); }

/* Pages publiques */
.boite-auth { border-top: 5px solid var(--bleu); }
.boite-auth .logo-auth { display: block; width: 220px; max-width: 70%; margin: 0 auto 1rem; }
.accueil-hero { background: linear-gradient(135deg, var(--marine) 0%, #0a2c6b 60%, var(--bleu) 100%); color: #fff; padding: 3.5rem 1.25rem 4rem; position: relative; overflow: hidden; }
.accueil-hero::after { content: ""; position: absolute; right: -90px; bottom: -90px; width: 340px; height: 340px; border-radius: 50%; border: 42px solid rgba(224,25,45,.2); }
.accueil-hero .in { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1.15fr 1fr; gap: 2.5rem; align-items: center; position: relative; z-index: 1; }
.accueil-hero h1 { color: #fff; font-size: 2.8rem; line-height: 1.05; text-transform: uppercase; margin-bottom: 1rem; }
.accueil-hero h1 em { color: #ff5a68; }
.accueil-hero p { color: #d5e0f5; font-size: 1.12rem; }
.accueil-hero .petit { color: #aebfe0; }
.accueil-hero .visuel { background: #fff; border-radius: 16px; padding: 1.25rem; box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.accueil-hero .visuel img { display: block; width: 100%; height: auto; }
.accueil-section { max-width: 1100px; margin: 0 auto; padding: 3rem 1.25rem 1rem; }
.accueil-section > h2 { text-align: center; font-size: 1.9rem; font-style: italic; font-weight: 800; text-transform: uppercase; }
.accueil-section > .sous { text-align: center; color: var(--gris); margin: 0 auto 2rem; max-width: 640px; }
.accueil-prix { max-width: 420px; margin: 0 auto 2rem; text-align: center; border-top: 6px solid var(--rouge) !important; }
.accueil-prix .montant { font: italic 800 3rem/1 "Barlow Semi Condensed", sans-serif; color: var(--marine); margin: .5rem 0 1rem; }
.accueil-prix ul { text-align: left; list-style: none; padding: 0; margin: 0 0 1.25rem; }
.accueil-prix li { padding: .35rem 0 .35rem 1.6rem; position: relative; }
.accueil-prix li::before { content: "✓"; position: absolute; left: 0; color: var(--vert); font-weight: 700; }
body.public .contenu.pleine { max-width: none; padding: 0; }
.pied { background: var(--marine); color: #b8c6e3; }
.pied img { display: block; height: 60px; width: auto; margin: 0 auto .5rem; }
.pied a { color: #fff; }

/* Admin plateforme */
.admin-bandeau { background: var(--rouge-p); border: 1px solid #f6c3c9; color: var(--rouge-f); border-radius: 8px; padding: .6rem 1rem; margin-bottom: 1rem; font-size: .9rem; }
.admin-actions form { display: inline; margin: 0; }
.admin-actions .btn { margin: 0 .2rem .3rem 0; }
.admin-detail { background: #f8fafd; }
.admin-detail td { cursor: default; }

@media (max-width: 900px) {
  body.app .menu { top: 64px; background: var(--marine); }
  .accueil-hero .in { grid-template-columns: 1fr; }
  .accueil-hero h1 { font-size: 2rem; }
  .logo img { height: 40px; }
  body.public .logo img { height: 48px; }
}

/* Démo */
.bandeau-demo { background: var(--marine); color: #fff; }
.bandeau-demo a { color: #fff; background: var(--rouge); padding: .15rem .6rem; border-radius: 4px; text-decoration: none; }
.secteurs { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; }
.secteur { background: #fff; border: 1px solid var(--ligne); border-left: 4px solid var(--bleu); border-radius: 8px; padding: .8rem 1rem; }
.secteur:nth-child(even) { border-left-color: var(--rouge); }
.secteur strong { display: block; color: var(--marine); }
.secteur span { font-size: .88rem; color: var(--gris); }
.demo-appel { background: var(--marine); color: #fff; border-radius: 14px; padding: 2rem; display: flex; gap: 1.5rem; align-items: center; justify-content: space-between; flex-wrap: wrap; margin: 2rem 0 1rem; border-bottom: 6px solid var(--rouge); }
.demo-appel h2 { color: #fff; margin: 0 0 .3rem; font-style: italic; font-weight: 800; text-transform: uppercase; }
.demo-appel p { margin: 0; color: #c9d6ef; }
@media (max-width: 900px) { .secteurs { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .secteurs { grid-template-columns: 1fr; } }

/* =====================================================================
   CRM (connecté) — look Centrix One, couleurs CRM Québec
   ===================================================================== */
body.app {
  --fond: #0b1220; --carte: #121b2e; --carte2: #18233b; --texte: #e8edf7; --gris: #9aa7c0; --ligne: #24314d;
  --bleu-clair: #4d8dff; --rouge-clair: #ff4d5e;
  background: radial-gradient(1200px 600px at 85% -10%, rgba(13,71,168,.35), transparent 60%),
              radial-gradient(900px 500px at -10% 110%, rgba(224,25,45,.12), transparent 60%), #0b1220;
  background-attachment: fixed;
  color: var(--texte);
}
body.app a { color: #7fb4ff; }
body.app h1 { color: #fff; font: italic 800 2rem/1.1 "Barlow Condensed", "Barlow", sans-serif; text-transform: uppercase; letter-spacing: .01em; }
body.app h2 { color: #fff; font: italic 700 1.3rem/1.2 "Barlow Condensed", "Barlow", sans-serif; text-transform: uppercase; letter-spacing: .02em; }
body.app h3 { color: #dfe7f5; }
body.app .petit { color: var(--gris); }

/* En-tête */
.crm-tete { background: linear-gradient(180deg, #071533 0%, #0a1d45 100%); position: sticky; top: 0; z-index: 20; box-shadow: 0 4px 18px rgba(0,0,0,.35); }
.crm-haut { display: flex; align-items: center; gap: 14px; padding: 10px 22px 6px; max-width: 1400px; margin: 0 auto; }
.crm-plaque { background: #fff; padding: 4px 8px; transform: skewX(-8deg); border: 2px solid var(--rouge); box-shadow: 0 2px 8px rgba(0,0,0,.4); flex: 0 0 auto; }
.crm-plaque img { display: block; height: 44px; width: auto; transform: skewX(8deg); }
.crm-nom { font: italic 800 1.35rem/1 "Barlow Condensed", sans-serif; letter-spacing: .03em; white-space: nowrap; background: rgba(255,255,255,.04); padding: 8px 14px; border: 1px solid rgba(255,255,255,.08); max-width: 380px; overflow: hidden; text-overflow: ellipsis; }
.crm-nom .b { color: var(--bleu-clair); } .crm-nom .w { color: #fff; } .crm-nom .r { color: var(--rouge-clair); }
.crm-recherche { flex: 1; min-width: 160px; max-width: 360px; }
.crm-recherche input { width: 100%; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.18); color: #fff; padding: 9px 12px; font: inherit; border-radius: 2px; }
.crm-recherche input::placeholder { color: #9fb0d3; }
.crm-recherche input:focus { outline: 2px solid var(--bleu-clair); }
.crm-plus { white-space: nowrap; border-radius: 2px; text-transform: none; }
.crm-user { display: flex; align-items: center; gap: 8px; border: 1px solid rgba(255,255,255,.18); border-radius: 30px; padding: 4px 14px 4px 4px; white-space: nowrap; }
.crm-user small { display: block; font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: #9fb0d3; }
.crm-user strong { display: block; color: #fff; font-size: .9rem; line-height: 1.1; }
.crm-pastille { width: 34px; height: 34px; border-radius: 50%; background: var(--bleu); color: #fff; display: grid; place-items: center; font-weight: 700; border: 2px solid #fff; box-shadow: 0 0 0 2px var(--rouge); }
.crm-liens { display: flex; align-items: center; gap: 12px; margin-left: auto; white-space: nowrap; font-size: .85rem; }
.crm-liens a { color: #c9d6ef !important; }
.crm-liens a:hover { color: #fff !important; }
.crm-onglets { display: flex; gap: 2px 6px; padding: 0 22px; max-width: 1400px; margin: 0 auto; flex-wrap: wrap; }
.crm-onglets a { font: italic 700 1.05rem/1 "Barlow Condensed", sans-serif; text-transform: uppercase; letter-spacing: .03em; color: #8fa8d6 !important; padding: 10px 12px 9px; position: relative; text-decoration: none !important; }
.crm-onglets a:hover { color: #fff !important; }
.crm-onglets a.actif { color: #fff !important; background: var(--rouge); transform: skewX(-10deg); }
.crm-onglets a.actif::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px; background: #fff; }
.crm-onglets a.admin-plateforme { color: #ff9aa4 !important; }
.crm-onglets-mobile { display: none; }
.lisere-crm { display: flex; flex-direction: column; }
.lisere-crm i { display: block; height: 3px; }
.lisere-crm i:nth-child(1) { background: var(--rouge); } .lisere-crm i:nth-child(2) { background: #fff; height: 2px; } .lisere-crm i:nth-child(3) { background: var(--bleu-clair); }
.choix-langue { display: inline-flex; border: 1px solid rgba(255,255,255,.25); border-radius: 3px; overflow: hidden; }
.choix-langue a { padding: 3px 8px; font-weight: 700; font-size: .78rem; text-decoration: none !important; }
.choix-langue a.actif { background: #fff; color: var(--marine) !important; }
body.public .choix-langue { border-color: var(--ligne); }
body.public .choix-langue a { color: var(--marine); padding: 4px 9px; }
body.public .choix-langue a.actif { background: var(--marine); color: #fff !important; }
body.public .choix-langue a:hover { background: var(--bleu-p); }
body.public .choix-langue a.actif:hover { background: var(--marine); }

/* Contenu */
body.app .contenu { max-width: 1400px; }
body.app .carte, body.app .stat, body.app .tableau-wrap { background: var(--carte); border: 1px solid var(--ligne); border-radius: 0; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
body.app .carte { border-top: 3px solid var(--bleu-clair); }
body.app .carte > h2:first-child, body.app .carte-titre h2 { border-left: 4px solid var(--rouge); padding-left: .6rem; }
body.app .stat { border-top: 0; border-left: 5px solid var(--bleu-clair); color: var(--gris); text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; font-weight: 600; }
body.app .stat:nth-child(2) { border-left-color: #fff; }
body.app .stat:nth-child(3) { border-left-color: #46c477; }
body.app .stat:nth-child(4) { border-left-color: var(--rouge); }
body.app .stat-n { color: #fff; font: italic 800 2rem/1.1 "Barlow Condensed", sans-serif; letter-spacing: 0; text-transform: none; }
body.app a.stat:hover { border-color: var(--ligne); border-left-color: var(--rouge); background: var(--carte2); }
body.app .bandeau { background: rgba(245,196,0,.12); color: #ffd866; }
body.app .bandeau a { color: #fff; }
body.app .bandeau-demo { background: #0d2a66; color: #fff; }
body.app .bandeau-err { background: rgba(224,25,45,.18); color: #ff9aa4; }
body.app .alerte-ok { background: rgba(70,196,119,.12); color: #7fe0a4; border-color: rgba(70,196,119,.35); }
body.app .alerte-err { background: rgba(224,25,45,.12); color: #ff9aa4; border-color: rgba(224,25,45,.4); }
body.app .alerte-info { background: rgba(77,141,255,.12); color: #b9d2ff; border-color: rgba(77,141,255,.35); }
body.app .admin-bandeau { background: rgba(224,25,45,.1); border-color: rgba(224,25,45,.4); color: #ff9aa4; }

/* Boutons et champs */
body.app .btn { border-radius: 2px; }
body.app .btn-sec { background: transparent; color: var(--texte); border-color: #3a4a6d; }
body.app .btn-sec:hover { background: var(--carte2); border-color: #50628c; color: #fff; }
body.app .btn-danger { background: transparent; color: #ff8a95; border-color: rgba(224,25,45,.55); }
body.app .btn-danger:hover { background: rgba(224,25,45,.15); }
body.app .formulaire input:not([type=checkbox]), body.app .formulaire select, body.app .formulaire textarea,
body.app .filtres input, body.app .filtres select, body.app .onglets select, body.app .tableau select, body.app .opp-deplacer select,
body.app input[type=date], body.app input[type=number], body.app select, body.app textarea, body.app input[type=search], body.app input[type=file] {
  background: #0b1220 !important; color: var(--texte) !important; border: 1px solid #33456b !important; border-radius: 2px !important; }
body.app input:focus, body.app select:focus, body.app textarea:focus { outline: 2px solid var(--bleu-clair) !important; }
body.app .formulaire label { color: #c3cee3; }
body.app .formulaire fieldset { border-color: var(--ligne); }
body.app .formulaire legend { color: #fff; }

/* Tableaux */
body.app .tableau th { background: #0d1a36; color: #9fb0d3; border-bottom: 2px solid var(--rouge); }
body.app .tableau td { border-bottom-color: var(--ligne); }
body.app .tableau tbody tr:nth-child(even) { background: rgba(255,255,255,.02); }
body.app .tableau tbody tr:hover { background: rgba(77,141,255,.1); }
body.app .admin-detail { background: #0e1729 !important; }
body.app .pagination a { background: var(--carte); border-color: var(--ligne); }
body.app .pagination a.actif { background: var(--rouge); border-color: var(--rouge); color: #fff; }
body.app .onglets > a { color: var(--gris); border-radius: 0; font: italic 700 1rem "Barlow Condensed", sans-serif; text-transform: uppercase; }
body.app .onglets > a.actif { background: transparent; color: #fff; box-shadow: inset 0 -3px 0 var(--rouge); }

/* Pastilles */
body.app .pastille { background: transparent; border: 1px solid #3a4a6d; color: #c3cee3; border-radius: 3px; }
body.app .p-client, body.app .p-actif, body.app .p-gagne { border-color: #46c477; color: #7fe0a4; }
body.app .p-prospect, body.app .p-nouveau, body.app .p-qualifie, body.app .p-essai { border-color: var(--bleu-clair); color: #a9c8ff; }
body.app .p-soumission, body.app .p-negociation, body.app .p-en_retard { border-color: #f5c400; color: #ffd866; }
body.app .p-perdu, body.app .p-annule { border-color: var(--rouge-clair); color: #ff9aa4; }
body.app .p-a { border-color: #8e7cf0; color: #c4b8ff; }
body.app .compte { background: rgba(77,141,255,.15); color: #a9c8ff; }

/* Tableau de bord et listes */
body.app .barre-fond { background: #0b1220; }
body.app .barre-val { background: var(--bleu-clair); }
body.app .barre-etape:nth-child(even) .barre-val { background: var(--rouge); }
body.app .liste-simple li, body.app .liste-suivis li { border-bottom-color: var(--ligne); }
body.app .liste-suivis li.retard strong { color: var(--rouge-clair); }
body.app .txt-retard { color: var(--rouge-clair) !important; }
body.app .coche { background: transparent; border-color: #50628c; }
body.app .coche:hover { border-color: #46c477; color: #46c477; }
body.app .vide { color: var(--gris); }

/* Fiche client */
body.app .fiche dt { color: var(--gris); }
body.app .notes { background: rgba(245,196,0,.08); border-color: rgba(245,196,0,.3); color: #f3e3a6; }
body.app .historique li { border-left-color: #33456b; }
body.app .historique li.a-faire { border-color: #f5c400; background: rgba(245,196,0,.06); }
body.app .h-texte { color: #c3cee3; }

/* Pipeline */
body.app .colonne { background: #0e1729; border: 1px solid var(--ligne); border-radius: 0; }
body.app .col-titre { color: #fff; border-bottom-color: var(--bleu-clair); font: italic 700 1rem "Barlow Condensed", sans-serif; text-transform: uppercase; }
body.app .col-titre span { color: var(--gris); font-style: normal; text-transform: none; font-family: "Barlow", sans-serif; }
body.app .col-gagne, body.app .col-perdu { background: #0e1729; }
body.app .col-gagne .col-titre { border-color: #46c477; } body.app .col-perdu .col-titre { border-color: var(--rouge); }
body.app .opp { background: var(--carte2); border: 1px solid var(--ligne); border-left: 4px solid var(--bleu-clair); border-radius: 0; box-shadow: none; }
body.app .col-gagne .opp { border-left-color: #46c477; } body.app .col-perdu .opp { border-left-color: var(--rouge); }
body.app .opp-montant { color: #fff; }

/* Pied de page */
body.app .pied { background: #071533; }

@media (max-width: 1100px) {
  .crm-nom { display: none; }
  .crm-user span:last-child { display: none; }
  .crm-user { padding: 4px; }
}
@media (max-width: 900px) {
  .crm-haut { flex-wrap: wrap; padding: 8px 12px; }
  .crm-plaque img { height: 36px; }
  .crm-recherche { order: 10; flex: 1 0 100%; max-width: none; }
  .crm-liens { display: none; }
  .crm-user { display: none; }
  .crm-tete .menu-btn { display: block; margin-left: auto; }
  .crm-onglets { display: none; flex-direction: column; padding: 4px 12px 10px; }
  body.menu-ouvert .crm-onglets { display: flex; }
  .crm-onglets a.actif { transform: none; }
  .crm-onglets-mobile { display: flex; flex-direction: column; border-top: 1px solid rgba(255,255,255,.12); margin-top: 6px; }
  body.app .menu-btn { color: #fff; }
}

.accueil-hero .btn-grand { width: auto; }
.accueil-hero .btn-sec { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); padding: .8rem 1.4rem; font-size: 1.05rem; }
.accueil-hero .btn-sec:hover { background: rgba(255,255,255,.1); }
body.app a.btn { color: #fff; }
body.app a.btn-sec { color: var(--texte); }
body.app a.btn:hover { text-decoration: none; }
.filtres input[type=checkbox], .filtres .case input { display: inline-block !important; width: auto !important; margin: 0 .35rem 0 0 !important; }
.filtres .case, .filtres label.case { display: inline-flex; align-items: center; width: auto; }
body.app .carte h2:not(:first-child) { margin-top: 1.5rem; }

/* ---------- Onglets : 13 sections ---------- */
.crm-onglets a { font-size: .98rem; padding: 10px 9px 9px; }

/* ---------- Soumissions ---------- */
.p-s-brouillon { background: var(--fond); color: var(--gris); }
.p-s-envoyee { background: var(--orange-p); color: var(--orange); }
.p-s-acceptee { background: var(--vert-p); color: var(--vert); }
.p-s-refusee { background: var(--rouge-p); color: var(--rouge); }
body.app .p-s-brouillon { border-color: #50628c; color: #c3cee3; background: transparent; }
body.app .p-s-envoyee { border-color: #f5c400; color: #ffd866; background: transparent; }
body.app .p-s-acceptee { border-color: #46c477; color: #7fe0a4; background: transparent; }
body.app .p-s-refusee { border-color: var(--rouge-clair); color: #ff9aa4; background: transparent; }
.lignes-soum { width: 100%; border-collapse: collapse; }
.lignes-soum th { text-align: left; font-size: .8rem; color: var(--gris); padding: .3rem; }
.lignes-soum td { padding: .25rem; }
.lignes-soum input { margin: 0 !important; }
.totaux-soum { max-width: 320px; margin: 1rem 0 0 auto; }
.totaux-soum dd { text-align: right; }

/* ---------- Calendrier ---------- */
.calendrier { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--ligne); background: var(--carte); }
.cal-tete { padding: .5rem; font: italic 700 .9rem "Barlow Condensed", sans-serif; text-transform: uppercase; color: var(--gris); background: var(--marine); color: #c9d6ef; border-bottom: 2px solid var(--rouge); }
.cal-jour { min-height: 118px; border-right: 1px solid var(--ligne); border-bottom: 1px solid var(--ligne); padding: .3rem; overflow: hidden; }
.cal-jour.hors { opacity: .4; }
.cal-jour.fds { background: rgba(127,127,127,.04); }
.cal-jour.auj { box-shadow: inset 0 0 0 2px var(--rouge); }
.cal-num { font-weight: 700; font-size: .85rem; margin-bottom: .2rem; }
.cal-jour.auj .cal-num { color: var(--rouge); }
.cal-ev { display: block; font-size: .74rem; line-height: 1.25; padding: 2px 5px; margin-bottom: 2px; border-left: 3px solid var(--bleu); background: var(--bleu-p); color: var(--texte) !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none !important; border-radius: 2px; }
.cal-ev.ev-visite { border-color: #8e7cf0; } .cal-ev.ev-rencontre { border-color: #13804a; } .cal-ev.ev-tache, .cal-ev.ev-note { border-color: #8a94a6; }
.cal-ev.ev-courriel { border-color: #f5c400; } .cal-ev.ev-opp { border-color: #46c477; font-weight: 600; }
.cal-ev.retard { border-color: var(--rouge); color: var(--rouge) !important; }
.cal-ev.fait { opacity: .55; text-decoration: line-through !important; }
body.app .cal-ev { background: rgba(77,141,255,.12); }
body.app .cal-ev.retard { color: #ff9aa4 !important; background: rgba(224,25,45,.12); }
.cal-legende .cal-ev { display: inline-block; margin-right: .4rem; }
@media (max-width: 760px) {
  .calendrier { grid-template-columns: 1fr; }
  .cal-tete, .cal-jour.hors { display: none; }
  .cal-jour { min-height: 0; }
  .cal-jour:not(:has(.cal-ev)) { display: none; }
}

/* ---------- Forfaits (prix) ---------- */
.forfaits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1rem; align-items: stretch; }
.forfait { background: #fff; border: 1px solid var(--ligne); border-top: 5px solid var(--bleu); border-radius: 12px; padding: 1.4rem 1.2rem; position: relative; display: flex; flex-direction: column; }
.forfait.populaire { border-top-color: var(--rouge); box-shadow: 0 10px 30px rgba(224,25,45,.18); }
.forfait.actuel { outline: 2px solid var(--vert); }
.forfait h3 { margin: 0; font: italic 800 1.5rem "Barlow Condensed", "Barlow Semi Condensed", sans-serif; text-transform: uppercase; color: var(--marine); }
.forfait-prix { font: italic 800 2.3rem/1.1 "Barlow Condensed", "Barlow Semi Condensed", sans-serif; color: var(--marine); margin-top: .5rem; }
.forfait-fiches { font-weight: 700; margin: .8rem 0 .3rem; }
.forfait ul { list-style: none; padding: 0; margin: 0 0 1.2rem; flex: 1; font-size: .9rem; }
.forfait li { padding: .3rem 0 .3rem 1.5rem; position: relative; }
.forfait li::before { content: "✓"; position: absolute; left: 0; color: var(--vert); font-weight: 700; }
.forfait li.non { color: var(--gris); }
.forfait li.non::before { content: "—"; color: var(--gris); }
.forfait-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--rouge); color: #fff; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 3px 10px; border-radius: 20px; white-space: nowrap; }
body.app .forfait { background: var(--carte); border-color: var(--ligne); border-top-color: var(--bleu-clair); }
body.app .forfait.populaire { border-top-color: var(--rouge); }
body.app .forfait h3, body.app .forfait-prix { color: #fff; }
body.app .forfait li::before { color: #46c477; }
@media (max-width: 1000px) { .forfaits { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .forfaits { grid-template-columns: 1fr; } }

/* ---------- Automatisations ---------- */
.etiquette-quand, .etiquette-alors { display: inline-block; font: italic 700 .8rem "Barlow Condensed", sans-serif; text-transform: uppercase; padding: 2px 8px; margin-right: .4rem; color: #fff; }
.etiquette-quand { background: var(--bleu); } .etiquette-alors { background: var(--rouge); }
.regle.en-pause { opacity: .6; }

/* SEO — FAQ publique */
.seo-faq{max-width:920px;margin:0 auto;text-align:left}
.seo-faq details{padding:1rem 1.2rem;margin-bottom:.65rem;background:#fff;border:1px solid var(--ligne);border-radius:10px}
.seo-faq summary{cursor:pointer;font-weight:700;color:var(--marine)}
.seo-faq summary:focus-visible{outline:3px solid var(--rouge);outline-offset:3px}
.seo-faq details p{margin:.75rem 0 0;color:var(--gris)}
