/* =========================================================================
   BIOPOINT - L'ACCUEIL EN BANDEAU (accueil_bandeau.css)
   =========================================================================
   Le langage des deux accueils du gerant, choisi par le proprietaire sur maquette le
   24/11/2026 : un bandeau bleu qui dit la conclusion, des tuiles de chiffres, des cartes
   a coins ronds, des raccourcis en bulles comme le menu.

     1. LE COMMUN : « Ce mois-ci » de l'Essentielle (manager_ce_mois_ci.html) et le
        tableau de bord des offres Complete SaaS et Complete Borne
        (manager_dashboard.html) le lisent tous les deux. Ces regles sont celles que « Ce mois-ci » portait dans son gabarit,
        a l'identique.
     2. LE TABLEAU DE BORD EN DIRECT : ce que cette seconde page ajoute pour ses
        propres blocs (tableau.css, gerant.css), sous `.ac-direct`. Rien n'y touche
        « Ce mois-ci ».

   Les trois tenues viennent des jetons du socle ; seul le bandeau est bleu partout.
   Rien ne bouge : aucune animation, aucune transition.
   ========================================================================= */

/* --- 1. LE COMMUN ------------------------------------------------------- */
.ac { --ac-carte: var(--bp-surface); display: grid; gap: 18px; max-width: 1320px; margin: 0 auto; padding-top: 6px; }
html:is([data-tenue="clair"], [data-tenue="moitie"]) .ac { --ac-carte: var(--bp-bg); }
.ac h2, .ac h3, .ac p, .ac ul, .ac ol { margin: 0; }
.ac ul, .ac ol { padding: 0; }
.ac ul, .ac ol { list-style: none; }
.ac-carte { min-width: 0; padding: 20px 22px; border: 1px solid var(--bp-border); border-radius: 22px;
            background: var(--ac-carte); box-shadow: var(--bp-shadow); }
.ac-carte > h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 14px;
                 color: var(--bp-titre); font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.02em; }
.ac-carte > h2 a { margin-inline-start: auto; color: var(--bp-primary-soft); font-size: 0.84375rem; font-weight: 600;
                   letter-spacing: 0; text-decoration: none; }
.ac-carte > h2 a:hover { text-decoration: underline; }
.ac-ico { flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
          background: var(--bp-primary-glow); color: var(--bp-primary-soft); }
.ac-vide { color: var(--bp-text-3); font-size: 0.875rem; }

/* 1. Le bandeau : la conclusion du mois. Bleu dans les trois tenues, texte blanc. */
.ac-bandeau { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px;
              align-items: center; padding: 28px 30px; border: 0; color: #ffffff;
              background: linear-gradient(120deg, #0d3f9f 0%, #1257d6 55%, #1f62e0 100%);
              box-shadow: 0 18px 40px rgba(var(--bp-primary-rgb), 0.28); }
.ac-bandeau::before, .ac-bandeau::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, 0.07); }
.ac-bandeau::before { width: 320px; height: 320px; inset-inline-end: -70px; top: -150px; }
.ac-bandeau::after { width: 190px; height: 190px; inset-inline-end: 240px; bottom: -120px; background: rgba(255, 255, 255, 0.05); }
.ac-bandeau-texte { position: relative; z-index: 1; min-width: 0; }
.ac-sur { font-size: 0.78125rem; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; }
.ac-bandeau h2 { margin: 6px 0 8px; color: #ffffff; font-size: 1.875rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
.ac-phrase { max-width: 640px; margin-bottom: 18px !important; font-size: 1rem; }
.ac-boutons { display: flex; flex-wrap: wrap; gap: 10px; }
.ac-bouton { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 20px; border-radius: 999px;
             font-size: 0.9375rem; font-weight: 600; text-decoration: none; }
.ac-bouton.ac-blanc { background: #ffffff; color: #1257d6; box-shadow: 0 8px 20px rgba(11, 31, 75, 0.20); }
.ac-bouton.ac-verre { background: rgba(8, 24, 60, 0.24); color: #ffffff; border: 1px solid rgba(255, 255, 255, 0.45); }
.ac-bouton:hover { text-decoration: underline; }
.ac-bouton:focus-visible { outline: 2px solid #ffffff; outline-offset: 2px; }
.ac-bilan { position: relative; z-index: 1; display: flex; align-items: center; gap: 20px; padding: 16px 20px; border-radius: 20px;
            background: rgba(8, 24, 60, 0.26); border: 1px solid rgba(255, 255, 255, 0.30); }
.ac-anneau { position: relative; flex: none; width: 104px; height: 104px; }
.ac-anneau svg { display: block; width: 104px; height: 104px; fill: none; stroke-width: 9; stroke-linecap: round; transform: rotate(-90deg); }
.ac-anneau-fond { stroke: rgba(255, 255, 255, 0.25); }
.ac-anneau-trait { stroke: #ffffff; }
.ac-anneau b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; }
.ac-bilan ul { display: grid; gap: 5px; font-size: 0.875rem; }
.ac-bilan li { display: flex; align-items: center; gap: 8px; }
.ac-bilan li i { flex: none; width: 16px; text-align: center; }

/* 2. Les chiffres. */
.ac-chiffres { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.ac-tuile { display: grid; gap: 4px; align-content: start; }
.ac-haut { display: flex; align-items: center; gap: 10px; color: var(--bp-text-2); font-size: 0.875rem; font-weight: 600; }
.ac-haut .ac-ico { width: 38px; height: 38px; }
.ac-chiffre { margin-top: 8px !important; color: var(--bp-titre); font-size: 2.125rem; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em;
              font-variant-numeric: tabular-nums; }
.ac-chiffre small { color: var(--bp-text-3); font-size: 0.9375rem; font-weight: 600; letter-spacing: 0; }
.ac-detail { color: var(--bp-text-3); font-size: 0.84375rem; }
.ac-jauge { display: block; width: 100%; height: 8px; margin-top: 8px; border: 0; border-radius: 99px; overflow: hidden;
            -webkit-appearance: none; appearance: none; background: var(--bp-primary-glow); color: var(--bp-primary); }
.ac-jauge::-webkit-progress-bar { background: var(--bp-primary-glow); border-radius: 99px; }
.ac-jauge::-webkit-progress-value { background: var(--bp-primary); border-radius: 99px; }
.ac-jauge::-moz-progress-bar { background: var(--bp-primary); border-radius: 99px; }

.ac-deux { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 18px; }
.ac-trois { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }

/* 3. La paie, étape par étape. */
.ac-etapes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 6px 0 18px !important; }
.ac-etape { position: relative; padding: 44px 6px 0; text-align: center; color: var(--bp-text-3); font-size: 0.84375rem; }
.ac-etape::before { content: ""; position: absolute; top: 16px; inset-inline: 0; height: 4px; background: var(--bp-border); }
.ac-etape:first-child::before { inset-inline-start: 50%; }
.ac-etape:last-child::before { inset-inline-end: 50%; }
.ac-pt { position: absolute; top: 0; left: 50%; display: grid; place-items: center; width: 36px; height: 36px; margin-left: -18px; border-radius: 50%;
         background: var(--ac-carte); border: 2px solid var(--bp-border-strong); color: var(--bp-text-3); font-weight: 700; }
.ac-etape b { display: block; color: var(--bp-text); font-size: 0.90625rem; }
.ac-etape.faite .ac-pt { background: var(--bp-success); border-color: var(--bp-success); color: #ffffff; }
.ac-etape.faite::before { background: var(--bp-success); }
.ac-etape.ici .ac-pt { background: var(--bp-primary); border-color: var(--bp-primary); color: #ffffff; box-shadow: 0 0 0 6px var(--bp-primary-glow); }
.ac-etape.ici b { color: var(--bp-primary-soft); }
.ac-echeance { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px; background: var(--bp-primary-glow);
               color: var(--bp-text); font-size: 0.90625rem; }
.ac-echeance > i { flex: none; color: var(--bp-primary-soft); }

/* 4. À faire. */
.ac-liste { display: grid; gap: 10px; }
.ac-liste li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--bp-border); border-radius: 16px; }
.ac-liste li > div { flex: 1 1 0; min-width: 0; }
.ac-pic { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
          background: var(--bp-success-fond); color: var(--bp-success-soft); }
.ac-liste b { display: block; color: var(--bp-text); font-size: 0.90625rem; }
.ac-liste li > div > span { color: var(--bp-text-2); font-size: 0.84375rem; overflow-wrap: anywhere; }
.ac-liste .ton-attention { background: var(--bp-danger-fond); border-color: rgba(var(--bp-danger-soft-rgb), 0.40); }
.ac-liste .ton-attention .ac-pic { background: var(--ac-carte); color: var(--bp-danger-soft); }
.ac-liste .ton-a_faire { background: var(--bp-warning-fond); border-color: rgba(var(--bp-warning-rgb), 0.40); }
.ac-liste .ton-a_faire .ac-pic { background: var(--ac-carte); color: var(--bp-warning); }
.ac-liste .ton-info .ac-pic { background: var(--bp-primary-glow); color: var(--bp-primary-soft); }
.ac-lien { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 38px; margin-inline-start: auto; padding: 4px 16px;
           border-radius: 999px; background: var(--bp-primary); color: #ffffff; font-size: 0.875rem; font-weight: 600;
           text-decoration: none; white-space: nowrap; }
.ac-lien:hover { color: #ffffff; text-decoration: underline; }
.ac-mot { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 28px; margin-inline-start: auto; padding: 2px 12px;
          border-radius: 999px; background: var(--bp-success-fond); color: var(--bp-success-soft); font-size: 0.78125rem; font-weight: 600;
          white-space: nowrap; }
.ton-info .ac-mot { background: var(--bp-primary-glow); color: var(--bp-primary-soft); }

/* 5. La semaine au planning. */
.ac-semaine { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.ac-jour { padding: 10px 4px 12px; border: 1px solid var(--bp-border); border-radius: 16px; background: var(--bp-surface);
           color: var(--bp-text); text-align: center; }
.ac-jour small { display: block; color: var(--bp-text-3); font-size: 0.75rem; font-weight: 600; }
.ac-n { display: block; margin: 2px 0 6px; font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; }
.ac-pers { display: inline-flex; align-items: center; gap: 4px; font-size: 0.8125rem; font-weight: 600; }
.ac-pers i { font-size: 0.75rem; color: var(--bp-primary-soft); }
.ac-h { display: block; color: var(--bp-text-3); font-size: 0.75rem; }
.ac-jour.auj { background: var(--bp-primary); border-color: var(--bp-primary); color: #ffffff; box-shadow: 0 10px 22px rgba(var(--bp-primary-rgb), 0.30); }
.ac-jour.auj small, .ac-jour.auj .ac-h, .ac-jour.auj .ac-pers i { color: #ffffff; }
.ac-jour.ferme { border-style: dashed; background: transparent; color: var(--bp-text-3); }
.ac-pied { display: flex; align-items: center; gap: 8px; margin-top: 14px !important; color: var(--bp-text-3); font-size: 0.84375rem; }
.ac-pied i { flex: none; color: var(--bp-primary-soft); }

/* 6 et 7. L'équipe, les échéances. */
.ac-lignes { display: grid; gap: 12px; }
.ac-lignes li { display: flex; align-items: flex-start; gap: 12px; font-size: 0.875rem; }
.ac-lignes li > div { min-width: 0; }
.ac-lignes b { display: block; color: var(--bp-text); }
.ac-lignes li > div > span { color: var(--bp-text-3); font-size: 0.84375rem; }
.ac-av { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
         background: var(--bp-primary-glow); color: var(--bp-primary-soft); font-size: 0.8125rem; font-weight: 700; }
.ac-date { flex: none; width: 54px; padding: 6px 0; border-radius: 12px; background: var(--bp-primary-glow); color: var(--bp-primary-soft);
           font-size: 0.9375rem; font-weight: 700; line-height: 1.1; text-align: center; }
.ac-date small { display: block; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }

/* 8. Les raccourcis, en bulles comme le menu. */
.ac-raccourcis { display: flex; flex-wrap: wrap; gap: 12px; }
.ac-bulle { display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 6px 22px 6px 8px; border-radius: 999px;
            border: 1px solid var(--bp-menu-filet); background: linear-gradient(145deg, var(--bp-menu-verre-haut), var(--bp-menu-verre-bas));
            box-shadow: var(--bp-menu-ombre); color: var(--bp-menu-encre); font-weight: 600; text-decoration: none; }
[dir="rtl"] .ac-bulle { padding: 6px 8px 6px 22px; }
.ac-bulle:hover { color: var(--bp-menu-encre); text-decoration: underline; }
.ac-bulle .ac-ico { width: 36px; height: 36px; background: var(--bp-menu-plein); color: #ffffff; }

@media (max-width: 900px) {
    .ac { gap: 14px; }
    .ac-carte { padding: 16px; border-radius: 20px; }
    .ac-bandeau { grid-template-columns: minmax(0, 1fr); padding: 22px 20px; }
    .ac-bandeau h2 { font-size: 1.5rem; }
    .ac-phrase { font-size: 0.9375rem; }
    .ac-bilan { gap: 14px; padding: 14px; }
    .ac-anneau, .ac-anneau svg { width: 84px; height: 84px; }
    .ac-anneau b { font-size: 1.25rem; }
    .ac-chiffres { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .ac-chiffre { font-size: 1.625rem; }
    .ac-deux, .ac-trois { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .ac-etape { padding-inline: 2px; }
    .ac-etape b { font-size: 0.78125rem; }
    .ac-etape-detail { display: none; }
    .ac-echeance { align-items: flex-start; }
    .ac-liste li { flex-wrap: wrap; }
    .ac-liste li:is(.ton-attention, .ton-a_faire) > div { flex-basis: calc(100% - 48px); }
    .ac-liste .ac-lien { margin-inline-start: 48px; }
    .ac-semaine { gap: 5px; }
    .ac-jour { padding: 8px 2px 10px; border-radius: 13px; }
    .ac-n { font-size: 1rem; }
    .ac-h { display: none; }
    .ac-bulle { min-height: 46px; font-size: 0.875rem; }
}

/* --- 2. LE TABLEAU DE BORD EN DIRECT (manager_dashboard.html) -------------
   La page des offres Complete SaaS et Complete Borne garde ses blocs, ses mots et ses calculs
   (tableau.css, gerant.css) ; ces regles les habillent du langage commun. Elles ne
   s'appliquent que sous `.ac-direct`, que « Ce mois-ci » n'a pas. */

/* Les alertes du haut restent en tete, dans la colonne de la page. */
.ac-alertes { max-width: 1320px; margin: 0 auto; padding-top: 6px; }
.bp-page .ac-alertes > * { border-radius: 22px; }

/* Le bandeau : la phrase d'etat du tableau, et son bouton, blanc. */
.bp-page .ac-direct .tb-voir-decisions { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 20px;
    border-radius: 999px; background: #ffffff; color: #1257d6; box-shadow: 0 8px 20px rgba(11, 31, 75, 0.20);
    font-size: 0.9375rem; font-weight: 600; text-decoration: none; }
.bp-page .ac-direct .tb-voir-decisions:hover { color: #1257d6; text-decoration: underline; }
.bp-page .ac-direct .tb-voir-decisions:focus-visible { outline: 2px solid #ffffff; outline-offset: 2px; }
.ac-direct .ac-bandeau h2 { max-width: 760px; margin-bottom: 18px; text-wrap: pretty; }
.ac-direct .ac-bilan li i { color: #ffffff; }

/* Les quatre chiffres : des tuiles, chacune reste un lien vers sa page. */
.bp-page .ac-direct .tb-cles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; margin: 0; }
.bp-page .ac-direct .tb-cle,
.bp-page .ac-direct .tb-cle.tb-phare, .bp-page .ac-direct .tb-cle.tb-bien,
.bp-page .ac-direct .tb-cle.tb-alerte, .bp-page .ac-direct .tb-cle.tb-attention {
    display: grid; gap: 4px; align-content: start; min-width: 0; padding: 20px 22px; border: 1px solid var(--bp-border);
    border-radius: 22px; background: var(--ac-carte); box-shadow: var(--bp-shadow); text-decoration: none; transition: none; }
.bp-page .ac-direct a.tb-cle:hover { border-color: var(--bp-border-strong); background: var(--ac-carte); transform: none; }
.bp-page .ac-direct .tb-cle .tb-etiquette { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--bp-text-2);
    font-size: 0.875rem; font-weight: 600; }
.ac-direct .tb-cle .ac-ico { width: 38px; height: 38px; }
.bp-page .ac-direct .tb-cle .tb-etiquette i { color: inherit; }
.ac-direct .tb-cle.tb-alerte .ac-ico { background: var(--bp-danger-fond); color: var(--bp-danger-soft); }
.ac-direct .tb-cle.tb-attention .ac-ico { background: var(--bp-warning-fond); color: var(--bp-warning); }
.ac-direct .tb-cle.tb-bien .ac-ico { background: var(--bp-success-fond); color: var(--bp-success-soft); }
.bp-page .ac-direct .tb-cle .tb-valeur,
.bp-page .ac-direct .tb-cle.tb-bien .tb-valeur, .bp-page .ac-direct .tb-cle.tb-alerte .tb-valeur,
.bp-page .ac-direct .tb-cle.tb-attention .tb-valeur { display: block; margin-top: 8px; color: var(--bp-titre); font-size: 2.125rem;
    font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.bp-page .ac-direct .tb-cle .tb-valeur .tb-unite { margin-inline-start: 6px; color: var(--bp-text-3); font-size: 0.9375rem; font-weight: 600;
    letter-spacing: 0; }
.bp-page .ac-direct .tb-cle .tb-note { display: block; margin: 0; color: var(--bp-text-3); font-size: 0.84375rem; }

/* Les blocs : des cartes a coins ronds, leur icone dans un cercle. Leurs lignes
   restent une liste (charte du gerant, 5.4 et 5.5). */
.bp-page .ac-direct .tb-grille { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.bp-page .ac-direct .tb-grille > div { display: grid; gap: 18px; min-width: 0; }
.bp-page .ac-direct .tb-bloc { min-width: 0; margin: 0; padding: 20px 22px; border: 1px solid var(--bp-border); border-radius: 22px;
    background: var(--ac-carte); box-shadow: var(--bp-shadow); }
.bp-page .ac-direct .tb-bloc > h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 10px;
    color: var(--bp-titre); font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.02em; }
.ac-direct .tb-bloc > h2 .ac-ico { font-size: 0.875rem; }
.bp-page .ac-direct .tb-bloc > h2 .tb-suite { margin-block: 0; margin-inline: auto 0; color: var(--bp-primary-soft);
    font-size: 0.84375rem; font-weight: 600; letter-spacing: 0; }
.bp-page .ac-direct .tb-bloc > h2 .tb-suite:hover { text-decoration: underline; }
.bp-page .ac-direct .tb-ligne { border-radius: 14px; transition: none; }
.bp-page .ac-direct .tb-ligne .tb-rond { border-radius: 50%; }
.ac-direct .tb-bloc .ac-lignes { margin-top: 4px; }

/* « Aller plus loin » : les memes portes, en bulles comme le menu. */
.bp-page .ac-direct .tb-portes { display: flex; flex-wrap: wrap; gap: 12px; }
.bp-page .ac-direct .tb-porte { position: relative; display: inline-flex; align-items: center; min-height: 50px; padding-block: 6px;
    padding-inline: 54px 22px; border: 1px solid var(--bp-menu-filet); border-radius: 999px;
    background: linear-gradient(145deg, var(--bp-menu-verre-haut), var(--bp-menu-verre-bas)); box-shadow: var(--bp-menu-ombre);
    color: var(--bp-menu-encre); font-weight: 600; text-decoration: none; transition: none; }
.bp-page .ac-direct .tb-porte:hover { background: linear-gradient(145deg, var(--bp-menu-verre-haut), var(--bp-menu-verre-bas));
    color: var(--bp-menu-encre); text-decoration: underline; }
/* Le cercle plein de l'icone : dessine derriere elle (une icone est un masque, elle ne
   peut pas porter son propre fond). */
.bp-page .ac-direct .tb-porte::before { content: ""; position: absolute; inset-inline-start: 7px; top: 50%; width: 36px; height: 36px;
    margin-top: -18px; border-radius: 50%; background: var(--bp-menu-plein); }
.bp-page .ac-direct .tb-porte > i:first-child { position: absolute; inset-inline-start: 17px; top: 50%; width: 16px; height: 16px;
    margin-top: -8px; color: #ffffff; font-size: 1rem; }
.bp-page .ac-direct .tb-porte > b { color: inherit; font-size: inherit; font-weight: 600; }
.bp-page .ac-direct .tb-porte > .g-chevron { display: none; }

@media (max-width: 900px) {
    .bp-page .ac-direct .tb-cles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .bp-page .ac-direct .tb-cle,
    .bp-page .ac-direct .tb-cle.tb-phare, .bp-page .ac-direct .tb-cle.tb-bien,
    .bp-page .ac-direct .tb-cle.tb-alerte, .bp-page .ac-direct .tb-cle.tb-attention { padding: 16px; border-radius: 20px; }
    .bp-page .ac-direct .tb-cle .tb-valeur { font-size: 1.625rem; }
    .bp-page .ac-direct .tb-grille { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .bp-page .ac-direct .tb-grille > div { gap: 14px; }
    .bp-page .ac-direct .tb-bloc { padding: 16px; border-radius: 20px; }
    .bp-page .ac-direct .tb-porte { min-height: 46px; font-size: 0.875rem; }
}
