/* Compléments de la version réelle (le reste vient de ../app.css). */
.chargement { display: grid; place-items: center; min-height: 60dvh; padding: 24px; text-align: center; color: var(--encre-2); }
.chargement .btn { margin-top: 14px; }
.deconnexion {
  border: 0; background: transparent; color: #fff; opacity: .8; font-size: .8125rem; font-weight: 600;
  min-height: 32px; padding: 6px 4px; white-space: nowrap; cursor: pointer;
}
.deconnexion:hover { opacity: 1; text-decoration: underline; }
.lien-copie { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.lien-copie input { flex: 1; min-width: 0; }
.liste-choix { display: grid; gap: 8px; margin-top: 12px; }
.liste-choix button { text-align: left; }
.btn[aria-busy="true"] { opacity: .6; pointer-events: none; }
.tableau .muted { overflow-wrap: anywhere; }

/* Réponse automatique : interrupteur, seuil d'étoiles, cases */
.interrupteur { display: flex; gap: 14px; align-items: flex-start; cursor: pointer; }
.interrupteur input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.glissiere { flex: none; position: relative; width: 52px; height: 30px; border-radius: 999px; background: #bdbdbd; transition: background .2s ease; margin-top: 2px; }
.glissiere::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s ease; }
.interrupteur input:checked + .glissiere { background: var(--accent); }
.interrupteur input:checked + .glissiere::after { transform: translateX(22px); }
.interrupteur input:focus-visible + .glissiere { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; }
.interrupteur input:disabled + .glissiere { opacity: .5; }
.muted.bloc { display: block; margin-top: 2px; }
.seuil { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.seuil button { display: grid; gap: 2px; justify-items: center; min-height: 56px; padding: 8px 4px; border: 1px solid var(--trait); border-radius: 12px; background: var(--carte); color: var(--encre); font: inherit; cursor: pointer; }
.seuil-n { font-weight: 750; white-space: nowrap; }
.seuil-qui { font-size: .75rem; font-weight: 650; color: var(--encre-2); }
.seuil button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.seuil button[aria-pressed="true"] .seuil-qui { color: #fff; }
.seuil button:disabled { cursor: default; opacity: .6; }
.phrase-seuil { margin-top: 10px; font-size: .9375rem; }
.cases { display: grid; gap: 10px; margin: 4px 0 16px; }
.case { display: flex; gap: 10px; align-items: flex-start; font-size: .9375rem; cursor: pointer; }
.case input { flex: none; width: 20px; height: 20px; margin-top: 1px; accent-color: var(--accent); }
.modale .case { margin-top: 4px; }
@media (prefers-reduced-motion: reduce) { .glissiere, .glissiere::after { transition: none; } }
.champ input[type=email], .champ input[type=number], .champ input[type=search] { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--trait); border-radius: 12px; background: #fff; font-size: 1rem; }
.seuil button[data-auto="1"]:not([aria-pressed="true"]) { border-color: var(--encre); }
.seuil button[data-auto="1"] .seuil-qui { color: var(--encre); font-weight: 750; }
.seuil button[aria-pressed="true"] .seuil-qui { color: #fff; }

/* Fiche Google : horaires */
.jour { padding: 10px 0; border-top: 1px solid var(--trait); }
.jour:first-child { border-top: 0; padding-top: 0; }
.jour-tete { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.jour-tete .case { font-size: .875rem; }
.jour-ferme { margin-top: 4px; }
.plages { display: grid; gap: 6px; margin-top: 8px; justify-items: start; }
.plage { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.plage input[type=time] { min-height: 42px; padding: 6px 10px; border: 1px solid var(--trait); border-radius: 10px; background: #fff; font: inherit; }
.exceptions { list-style: none; margin: 4px 0 0; padding: 0; }
.exceptions li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--trait); }
.exceptions li:first-child { border-top: 0; }
.exceptions li > span:first-child { min-width: 0; }
.exceptions .actions { flex: none; flex-wrap: nowrap; }
.ajout-exception { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; align-items: end; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--trait); }
.ajout-exception .champ { margin-bottom: 10px; }
.ajout-exception input[type=date], .ajout-exception select { width: 100%; }
.ajout-exception .e-heures { display: none; grid-column: 1 / -1; }
.ajout-exception .e-heures.visible { display: block; }
.ajout-exception .actions { grid-column: 1 / -1; }
.sous-titre { font-size: .9375rem; font-weight: 750; margin: 18px 0 4px; }
input[type=date], input[type=datetime-local] { min-height: 46px; padding: 8px 12px; border: 1px solid var(--trait); border-radius: 12px; background: #fff; font: inherit; max-width: 100%; }

/* Fiche Google : publications */
.segment { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 999px; background: #ececec; margin-bottom: 14px; }
.segment label { cursor: pointer; }
.segment input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.segment span { display: inline-block; padding: 8px 14px; border-radius: 999px; font-weight: 650; font-size: .9375rem; }
.segment input:checked + span { background: var(--accent); color: #fff; }
.segment input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); }
.champ .segment { margin-bottom: 0; }
.deux { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.deux input, .deux select { width: 100%; }
.form-pub .si-titre, .form-pub .si-offre { display: none; }
.form-pub[data-type="EVENT"] .si-titre, .form-pub[data-type="OFFER"] .si-titre, .form-pub[data-type="OFFER"] .si-offre { display: block; }
.form-pub[data-type="EVENT"] .deux.si-titre, .form-pub[data-type="OFFER"] .deux.si-titre { display: grid; }
.form-pub[data-type="OFFER"] .si-bouton { display: none; }
.form-pub textarea { width: 100%; }
.photo-choix { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.photo-choix img { width: 120px; height: 90px; object-fit: cover; border-radius: 10px; }
.photo-choix label[aria-busy="true"] { opacity: .6; pointer-events: none; }
.pub { display: flex; gap: 14px; background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 14px; }
.pub + .pub { margin-top: 10px; }
.pub img { flex: none; width: 120px; height: 120px; object-fit: cover; border-radius: 10px; }
.pub-corps { min-width: 0; flex: 1; }
.pub-tete { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 6px; }
.pub-texte { margin-top: 6px; white-space: pre-wrap; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.bloc { display: block; }
@media (max-width: 520px) { .pub { flex-direction: column; } .pub img { width: 100%; height: 180px; } }

/* Fiche Google : photos */
.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.vignette { position: relative; margin: 0; background: var(--carte); border: 1px solid var(--trait); border-radius: 12px; overflow: hidden; }
.vignette img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.vignette figcaption { padding: 6px 8px; font-size: .8125rem; color: var(--encre-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vignette-suppr { position: absolute; top: 6px; right: 6px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(0,0,0,.65); color: #fff; font-size: 1.125rem; line-height: 1; cursor: pointer; }
.vignette-suppr:hover { background: var(--rouge); }

/* Fiche Google : demander des avis */
.regle-google { background: #fff8e6; border-color: #f2d48a; }
.kit-qr { display: flex; gap: 18px; align-items: center; }
.kit-qr img { flex: none; width: 160px; height: 160px; image-rendering: pixelated; background: #fff; border-radius: 10px; }
@media (max-width: 520px) { .kit-qr { flex-direction: column; text-align: center; } .kit-qr .actions { justify-content: center; } }
.message-type { padding: 12px 0; border-top: 1px solid var(--trait); }
.message-type:first-of-type { border-top: 0; padding-top: 4px; }
.message-type .carte-tete { flex-wrap: wrap; }
.message-txt { margin-top: 4px; white-space: pre-wrap; color: var(--encre-2); font-size: .9375rem; overflow-wrap: anywhere; }
.pied-golem a { color: inherit; }
.deux input, .deux select, .ajout-exception input { min-width: 0; }
/* Choix du réglage de l'IA : commun ou par établissement */
.seuil.mode-ia { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mode-ia .seuil-n { white-space: normal; text-align: center; }
.mode-ia .seuil-qui { text-align: center; }
/* Agence : organisation, client et fiche choisis en haut du menu */
.choix-menu { display: grid; gap: 8px; padding: 0 16px 12px; }
.choix-menu .champ { margin: 0; }
.choix-menu .champ-lib { font-size: .75rem; margin-bottom: 2px; }
.choix-menu select { width: 100%; font-weight: 650; min-height: 40px; padding-block: 6px; }
/* Menu de gauche, le même partout : colonne fixe dès la tablette (768 px), tiroir ouvert par le bouton
   à trois barres sur téléphone. Il porte les sections de la fiche, donc plus de barre du bas ni d'onglets de fiche. */
.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: #efefef; color: #111; font-weight: 750; }
.coque.agence .nav .pastille-nb { position: static; margin-left: auto; }
.nav a.nav-section { display: flex; }
.nav a.nav-telephone { display: none; }
.coque.agence .onglets-fiche { display: none; }
.coque.agence .nav a.nav-apres { margin-top: 10px; position: relative; }
.coque.agence .nav a.nav-apres::before { content: ""; position: absolute; left: 12px; right: 12px; top: -6px; border-top: 1px solid var(--trait); }
.coque.agence .pied-principal { display: none; }
.coque.agence .colonne .pied-golem { display: block; margin-top: auto; padding: 16px; text-align: left; }
.barre-mobile, .menu-fond, .menu-fermer { display: none; }
@media (min-width: 768px) {
  .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: #fff; display: flex; flex-direction: column; }
  .coque.agence .contenu { padding: 24px 32px 40px; }
  .coque.agence.avec-fiche .nav a { padding-block: 6px; font-size: .875rem; }
  .coque.agence.avec-fiche .choix-menu { gap: 4px; }
  .coque.agence.avec-fiche .choix-menu select { min-height: 36px; padding-block: 4px; }
  .coque.agence.avec-fiche .entete { padding-bottom: 6px; }
  .coque.agence.avec-fiche .colonne { overflow-y: auto; }
}
@media (min-width: 768px) and (max-width: 899px) { .coque.agence .contenu { padding: 20px 20px 32px; } }
/* Téléphone : barre du haut (trois barres à gauche, logo au centre) et menu en tiroir depuis la gauche */
@media (max-width: 767.98px) {
  .barre-mobile {
    position: sticky; top: 48px; z-index: 25; display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center;
    padding: 6px 8px; background: #fff; border-bottom: 1px solid var(--trait);
  }
  .burger { grid-column: 1; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: var(--encre); padding: 0; }
  .burger svg { width: 26px; height: 26px; }
  .barre-logo { grid-column: 2; justify-self: center; display: block; height: 32px; width: auto; }
  .coque.agence .colonne {
    position: fixed; top: 0; bottom: 0; left: 0; z-index: 40; width: min(320px, 86vw); overflow-y: auto; overscroll-behavior: contain;
    display: flex; flex-direction: column; background: #fff; box-shadow: 0 0 40px rgba(0, 0, 0, .25);
    padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom);
    transform: translateX(-100%); visibility: hidden; transition: transform .28s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .28s;
  }
  .coque.agence.menu-ouvert .colonne { transform: none; visibility: visible; transition: transform .28s cubic-bezier(.2, .8, .2, 1); }
  .menu-fond { display: block; position: fixed; inset: 0; z-index: 39; background: rgba(0, 0, 0, .45); opacity: 0; pointer-events: none; transition: opacity .28s; }
  .coque.agence.menu-ouvert .menu-fond { opacity: 1; pointer-events: auto; }
  .coque.agence.sans-anim .colonne, .coque.agence.sans-anim .menu-fond { transition: none; }
  html:has(.coque.agence.menu-ouvert) { overflow: hidden; }
  .menu-fermer { display: grid; place-items: center; position: absolute; top: calc(8px + env(safe-area-inset-top)); right: 8px; width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--encre); padding: 0; z-index: 1; }
  .menu-fermer svg { width: 24px; height: 24px; }
  .coque.agence .colonne .entete { padding: 18px 60px 10px 16px; }
  .coque.agence .colonne .entete-logo { height: 30px; }
  .coque.agence .nav a { min-height: 44px; }
  .coque.agence .contenu { padding: 8px 16px 32px; }
}
@media (max-width: 767.98px) and (prefers-reduced-motion: reduce) { .coque.agence .colonne, .menu-fond { transition: none !important; } }
/* Menu long : la tache de pinceau passerait sous les liens, elle ne reste que sur les grands écrans */
@media (min-width: 900px) and (max-height: 1179px) { .coque.agence.avec-fiche .colonne::before { display: none; } }
/* Sous-onglets d'une section (Infos : Fiche / Horaires ; Publications et photos) : visibles partout */
.onglets.sous-onglets { margin-top: -4px; }
.onglets.sous-onglets { justify-content: flex-start; gap: 20px; }
/* Libellé long partout : le menu est toujours une colonne (le court servait à l'ancienne barre du bas) */
.nav .lib-court { display: none; }
/* Réglages › Compte Google : demandes de gestion */
.demande-gestion { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 10px 0; border-top: 1px solid var(--trait); }
.demande-gestion:first-child { border-top: 0; padding-top: 0; }
.demande-gestion > div { min-width: 0; overflow-wrap: anywhere; }
/* Demander la gestion : fiches trouvées sur Google */
.liste-fiches-google { display: grid; gap: 6px; margin: 4px 0 12px; max-height: 260px; overflow-y: auto; }
.fiche-google { display: grid; gap: 2px; text-align: left; padding: 10px 12px; border: 1px solid var(--trait); border-radius: 12px; background: #fff; color: #111; font: inherit; cursor: pointer; min-width: 0; overflow-wrap: anywhere; }
.fiche-google[aria-selected="true"] { border-color: #111; box-shadow: inset 0 0 0 1px #111; background: #efefef; }
.fiche-google:disabled { cursor: default; opacity: .7; }
.fiche-google:focus-visible { outline: 2px solid #111; outline-offset: 2px; }
.demande-mode { margin: 0 0 10px; }
.demande-mode h3 { font-size: 1rem; display: flex; gap: 8px; align-items: center; }
/* Assistant de démarrage du client */
.assistant h2 { margin-top: 8px; }
.assistant-progres { font-size: .8125rem; color: var(--encre-3); }
.assistant-progres .jauge { margin-top: 6px; }
.assistant-pourquoi { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--fond); font-size: .9375rem; }
.assistant-pourquoi > strong { display: block; font-size: .8125rem; text-transform: uppercase; letter-spacing: .05em; color: var(--encre-2); margin-bottom: 4px; }
.assistant-pourquoi p { margin: 0; }
.assistant-corps { margin-top: 14px; }
.assistant-corps .liste-choix { margin-top: 0; }
.assistant-corps .liste-choix .btn { flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 16px; text-align: left; }
.assistant-corps .liste-choix .btn .muted { font-weight: 500; font-size: .8125rem; }
.assistant-corps .liste-choix .btn.choisi { border-color: #111; box-shadow: inset 0 0 0 1px #111; }
.assistant-liste { margin: 10px 0 0; padding-left: 18px; display: grid; gap: 6px; }
.liste-cases { display: grid; gap: 10px; }
.assistant-aide { margin-top: 12px; }
.assistant-passer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; margin-top: 14px; }
.assistant-passer .btn { font-weight: 600; padding: 6px 10px; text-align: center; flex-wrap: wrap; }
.assistant-passer .btn .muted { font-weight: 500; }
.assistant-passer .btn:only-child { grid-column: 1 / -1; }
.assistant-pied { display: flex; justify-content: space-between; gap: 8px; margin-top: 10px; }
.assistant-passer .btn { flex-direction: column; gap: 0; }
.assistant-passer .btn .muted { font-size: .8125rem; }
/* Résultats : période, chiffres clés, graphiques */
.res-barre { display: grid; gap: 10px; margin-bottom: 16px; }
.res-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.res-chips button { min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--trait); background: var(--carte); font: inherit; font-weight: 650; font-size: .875rem; color: var(--encre-2); cursor: pointer; }
.res-chips button[aria-pressed="true"] { background: #111; border-color: #111; color: #fff; }
.res-chips.petit button { min-height: 32px; font-size: .8125rem; }
.res-dates { display: flex; flex-wrap: wrap; gap: 10px; }
.res-dates label { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: .875rem; }
.res-dates input { min-height: 36px; border: 1px solid var(--trait); border-radius: 10px; padding: 0 8px; font: inherit; }
.res-options { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.res-periode-txt { font-size: .8125rem; }
.res-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
@media (min-width: 700px) { .res-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.res-kpi { position: relative; background: var(--carte); border: 1px solid var(--trait); border-radius: 16px; padding: 12px 14px 10px; overflow: hidden; min-width: 0; }
.res-kpi-lib { display: flex; gap: 4px; align-items: center; font-size: .8125rem; font-weight: 650; color: var(--encre-2); }
.res-kpi-val { font-size: 1.75rem; font-weight: 800; letter-spacing: -.02em; margin-top: 2px; font-variant-numeric: tabular-nums; }
.res-kpi-pied { min-height: 20px; }
.res-spark { display: block; width: 100%; height: 28px; margin-top: 4px; }
.res-ecart { font-size: .8125rem; font-weight: 700; color: var(--encre-3); white-space: nowrap; }
.res-ecart.hausse { color: #2F8F5B; }
.res-ecart.baisse { color: #C8432F; }
.res-grille { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
@media (min-width: 1000px) { .res-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); } .res-carte.large { grid-column: 1 / -1; } }
.res-carte { margin: 0; min-width: 0; }
.res-carte-tete { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.res-carte-tete h2 { font-size: 1.0625rem; margin: 0; }
.res-sous { font-size: .8125rem; font-weight: 600; margin-left: 4px; }
.res-legende { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.res-legende button { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 10px; border: 1px solid var(--trait); border-radius: 999px; background: var(--carte); font: inherit; font-size: .8125rem; font-weight: 600; cursor: pointer; color: var(--encre); }
.res-legende button.masque { opacity: .45; text-decoration: line-through; }
.res-legende i, .res-parts i, .res-bulle i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; flex: none; }
.res-graphe { position: relative; width: 100%; touch-action: pan-y; }
.res-graphe svg { display: block; overflow: visible; }
.res-grille-l { stroke: var(--trait); stroke-width: 1; }
.res-axe { font-size: 11px; fill: var(--encre-3); font-variant-numeric: tabular-nums; }
.res-repere { stroke: #111; stroke-width: 1; stroke-dasharray: 3 3; }
.res-bulle { position: absolute; top: 4px; z-index: 2; min-width: 150px; max-width: 240px; padding: 8px 10px; background: #111; color: #fff; border-radius: 10px; font-size: .8125rem; pointer-events: none; display: grid; gap: 3px; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.res-bulle[hidden] { display: none; }
.res-bulle span { display: flex; align-items: center; gap: 6px; }
.res-bulle b { margin-left: auto; padding-left: 8px; font-variant-numeric: tabular-nums; }
.res-cams { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-around; }
.res-camembert { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; }
.res-camembert svg { flex: none; }
.res-centre { font-size: 20px; font-weight: 800; fill: var(--encre); }
.res-centre-lib { font-size: 10px; fill: var(--encre-3); }
.res-parts { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; min-width: 180px; }
.res-parts li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto auto; gap: 8px; align-items: center; font-size: .875rem; }
.res-parts li.vide { opacity: .5; }
.res-parts b { font-variant-numeric: tabular-nums; }
.res-parts small { color: var(--encre-3); font-variant-numeric: tabular-nums; min-width: 3ch; text-align: right; }
.res-mots { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.res-mots li { display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr) 4.5rem; gap: 10px; align-items: center; font-size: .875rem; }
.res-mot { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.res-barre-h { height: 10px; background: var(--fond); border-radius: 5px; overflow: hidden; }
.res-barre-h i { display: block; height: 100%; border-radius: 5px; }
.res-mots b { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .res-mots li { grid-template-columns: minmax(0, 1fr) 4rem; } .res-barre-h { grid-column: 1 / -1; grid-row: 2; } }
.res-mini { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 700px) { .res-mini { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.res-mini div { background: var(--fond); border-radius: 12px; padding: 10px 12px; display: grid; gap: 2px; min-width: 0; }
.res-mini span { font-size: .8125rem; color: var(--encre-2); font-weight: 600; }
.res-mini b { font-size: 1.375rem; font-variant-numeric: tabular-nums; }
.res-mini small { color: var(--encre-3); font-size: .75rem; }
.res-note { font-size: .8125rem; margin-top: 10px; }
.res-carte .res-chips { margin-bottom: 12px; }
.res-chips button:disabled { opacity: .45; cursor: default; }
/* Résultats : bandeau, parcours au pinceau, animations */
.res-heros { position: relative; overflow: hidden; isolation: isolate; background: #111; color: #fff; border-radius: 22px; padding: 22px 22px 18px; margin-bottom: 14px;
  display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "haut" "courbe" "chiffres"; gap: 14px; }
.res-heros-haut { grid-area: haut; }
.res-heros-chiffres { grid-area: chiffres; }
@media (min-width: 760px) { .res-heros { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); grid-template-areas: "haut courbe" "chiffres chiffres"; align-items: end; } }
.res-heros::before { content: ""; position: absolute; z-index: -1; right: -60px; top: -70px; width: 360px; height: 300px; background: #fff; opacity: .07;
  -webkit-mask: url(../pinceau-tache.svg?v=2) center / contain no-repeat; mask: url(../pinceau-tache.svg?v=2) center / contain no-repeat; }
.res-heros-courbe { grid-area: courbe; display: block; width: 100%; height: 150px; }
@media (max-width: 759px) { .res-heros-courbe { height: 84px; } }
.res-heros-courbe .aire { fill: #fff; fill-opacity: .07; }
.res-heros-courbe .aire { fill-opacity: .12; }
.res-heros-courbe .trace { fill: none; stroke: #fff; stroke-opacity: .9; stroke-width: 2.5; stroke-linejoin: round; }
.res-heros-sur { margin: 0; font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #BDBDBD; }
.res-heros-val { position: relative; display: inline-block; font-size: clamp(3.25rem, 9vw, 5.5rem); font-weight: 800; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; margin: 6px 0 14px; padding-bottom: 10px; }
.res-heros-val::after { content: ""; position: absolute; left: -4px; right: -10px; bottom: -2px; height: 16px; background: #fff;
  -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; }
.res-heros-sous { margin: 0; font-size: 1rem; color: #E6E6E6; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.res-heros-ecart { display: inline-flex; align-items: baseline; gap: 6px; padding: 3px 10px; border-radius: 999px; background: #fff; color: #111; font-weight: 800; font-size: .875rem; white-space: nowrap; }
.res-heros-ecart small { font-weight: 600; color: #555; font-size: .75rem; }
.res-heros-chiffres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.res-heros-chiffres div { display: grid; gap: 2px; padding: 10px 12px; border-radius: 14px; background: #262626; min-width: 0; }
.res-heros-chiffres b { font-size: 1.375rem; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.res-heros-chiffres span { font-size: .75rem; color: #BDBDBD; }
@media (max-width: 560px) { .res-heros { padding: 18px 16px 14px; } .res-heros-chiffres { grid-template-columns: repeat(2, minmax(0, 1fr)); } .res-heros-chiffres div:nth-child(3) { grid-column: 1 / -1; } .res-heros-chiffres b { font-size: 1.125rem; } }
.res-etoile { color: var(--etoile, #F2B01E); }
.res-kpi { transition: transform .2s ease, box-shadow .2s ease; }
.res-kpi:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,.07); }
.res-parcours { display: grid; gap: 12px; }
.res-etape { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr) 5.5rem; gap: 12px; align-items: center; }
.res-etape-lib { font-weight: 700; font-size: .9375rem; }
.res-etape.detail .res-etape-lib { font-weight: 600; font-size: .875rem; color: var(--encre-2); padding-left: 8px; }
.res-pinceau { height: 30px; }
.res-etape.detail .res-pinceau { height: 20px; }
.res-pinceau i { display: block; height: 100%; background: #111;
  -webkit-mask: url(../pinceau-bouton.svg?v=2) left center / 100% 100% no-repeat; mask: url(../pinceau-bouton.svg?v=2) left center / 100% 100% no-repeat; }
.res-etape.detail .res-pinceau i { background: #6E6E6E; }
.res-etape b { text-align: right; font-size: 1.125rem; font-variant-numeric: tabular-nums; display: grid; }
.res-etape b small { font-size: .75rem; color: var(--encre-3); font-weight: 600; }
@media (max-width: 560px) { .res-etape { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; } .res-pinceau { grid-column: 1 / -1; grid-row: 2; } }
@keyframes res-tracer { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes res-apparaitre { from { opacity: 0; } to { opacity: 1; } }
@keyframes res-monter { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes res-tourner { from { stroke-dasharray: 0 var(--c); } }
@keyframes res-peindre { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes res-monte-carte { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.anime .trace { stroke-dasharray: 1; animation: res-tracer 1.4s cubic-bezier(.3,.6,.2,1) both; }
.anime .aire, .anime .point { animation: res-apparaitre .9s ease-out .5s both; }
.anime .barre { transform-box: fill-box; transform-origin: 50% 100%; animation: res-monter .7s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(min(var(--i), 40) * 18ms); }
.anime .arc { animation: res-tourner 1.1s cubic-bezier(.3,.6,.2,1) both; }
.anime .res-pinceau i { animation: res-peindre .9s cubic-bezier(.3,.6,.2,1) both; animation-delay: calc(var(--i, 0) * 110ms + .2s); }
.anime .res-kpi, .anime .res-carte, .anime .res-heros { animation: res-monte-carte .6s ease-out both; }
.anime .res-kpi:nth-child(2) { animation-delay: .05s; } .anime .res-kpi:nth-child(3) { animation-delay: .1s; } .anime .res-kpi:nth-child(4) { animation-delay: .15s; }
.anime .res-kpi:nth-child(5) { animation-delay: .2s; } .anime .res-kpi:nth-child(6) { animation-delay: .25s; } .anime .res-kpi:nth-child(7) { animation-delay: .3s; } .anime .res-kpi:nth-child(8) { animation-delay: .35s; }
@media (prefers-reduced-motion: reduce) { .anime * { animation: none !important; } }
/* Résultats en couleur : palette douce (bleu ardoise, sarcelle, ambre, corail), bandeau bleu nuit */
#resultats { --r-nuit: #1B2A47; --r-nuit-2: #26385C; --r-bleu: #3D5A98; --r-sarcelle: #2A9D8F; --r-ambre: #E3A33F; }
#resultats .res-chips button[aria-pressed="true"] { background: var(--r-nuit); border-color: var(--r-nuit); }
#resultats .case input { accent-color: var(--r-bleu); }
.res-heros { background: var(--r-nuit); }
.res-heros::before { opacity: .09; background: #9AAEDB; }
.res-heros-courbe .aire { fill: #2A9D8F; fill-opacity: .28; }
.res-heros-courbe .trace { stroke: #93D2C9; stroke-opacity: 1; }
.res-heros-sur { color: #9AAEDB; }
.res-heros-val::after { background: var(--r-ambre); }
.res-heros-sous { color: #DCE3EF; }
.res-heros-ecart.hausse { background: #DDF2EC; color: #1F6F5C; }
.res-heros-ecart.baisse { background: #FBE3DC; color: #9C3A24; }
.res-heros-ecart small { color: inherit; opacity: .75; }
.res-heros-chiffres div { background: var(--r-nuit-2); }
.res-heros-chiffres div:nth-child(1) b { color: #93D2C9; }
.res-heros-chiffres div:nth-child(2) b { color: #B9C7EA; }
.res-heros-chiffres div:nth-child(3) b { color: #F2C982; }
.res-heros-chiffres span { color: #AEBBD3; }
.res-kpi { border-top: 3px solid var(--k, var(--trait)); }
.res-kpi-lib::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--k); flex: none; margin-right: 2px; }
.res-ecart.hausse { color: #1F8A6E; }
.res-ecart.baisse { color: #C2573F; }
.res-repere { stroke: var(--r-nuit); }
.res-bulle { background: var(--r-nuit); }
.res-centre { fill: var(--r-nuit); }
.res-pinceau i, .res-etape.detail .res-pinceau i { background: var(--p, var(--r-bleu)); }
.res-carte-tete h2::before { content: ""; display: inline-block; width: 4px; height: 1em; border-radius: 2px; background: var(--r-sarcelle); margin-right: 8px; vertical-align: -2px; }
.res-mini div { background: #F1F4F9; }
.res-barre-h { background: #EEF2F6; }
/* Camemberts alignés : anneau à gauche, légende à droite, mêmes colonnes partout */
.res-cams { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 18px 28px; align-items: center; }
.res-camembert { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 18px; align-items: center; justify-content: stretch; }
.res-camembert svg { width: 140px; height: 140px; }
.res-parts { min-width: 0; }
.res-parts li { grid-template-columns: 10px minmax(0, 1fr) 4.2rem 3rem; }
.res-parts b, .res-parts small { text-align: right; }
@media (max-width: 400px) { .res-camembert { grid-template-columns: 110px minmax(0, 1fr); gap: 12px; } .res-camembert svg { width: 110px; height: 110px; } .res-parts li { grid-template-columns: 10px minmax(0, 1fr) 3.8rem; } .res-parts small { display: none; } }
.res-carte .res-chips + .res-cams { margin-top: 4px; }
.res-etape { grid-template-columns: minmax(0, 11rem) minmax(0, 1fr) 7.5rem; }
.res-etape b { justify-items: end; gap: 1px; }
.res-etape b .res-ecart { font-size: .75rem; }
@media (max-width: 560px) { .res-etape { grid-template-columns: minmax(0, 1fr) auto; } }
.res-heros-chiffres { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.res-heros-chiffres div:nth-child(3) { grid-column: auto; }
@media (min-width: 700px) { .res-mini.trois { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* Parcours : barres pleines arrondies */
.res-jauge { height: 14px; border-radius: 7px; background: #EEF2F6; overflow: hidden; }
.res-etape.detail .res-jauge { height: 10px; }
.res-jauge i { display: block; height: 100%; border-radius: 7px; background: var(--p, var(--r-bleu)); }
.anime .res-jauge i { transform-origin: left center; animation: res-allonger .8s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--i, 0) * 90ms + .15s); }
@keyframes res-allonger { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (max-width: 560px) { .res-jauge { grid-column: 1 / -1; grid-row: 2; } }
.res-etape { grid-template-columns: minmax(0, 11rem) minmax(0, 1fr) 10.5rem; }
.res-etape b small { white-space: nowrap; }
@media (max-width: 560px) { .res-etape { grid-template-columns: minmax(0, 1fr) auto; } }
/* Période en menu déroulant ; regroupement dans l'en-tête de chaque graphique dans le temps */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.res-barre { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.res-select { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: .9375rem; }
.res-select select, .res-grain select { min-height: 44px; padding: 0 38px 0 14px; border: 1px solid var(--trait); border-radius: 12px; background-color: var(--carte); font: inherit; font-weight: 650; color: var(--encre); cursor: pointer;
  appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231B2A47' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.res-select select { min-width: 220px; }
.res-select select:focus-visible, .res-grain select:focus-visible { outline: 3px solid #9AAEDB; outline-offset: 2px; }
.res-grain { margin-left: auto; }
.res-grain select { min-height: 36px; font-size: .8125rem; padding: 0 32px 0 12px; border-radius: 10px; background-position: right 11px center; }
.res-periode-txt { margin: 0 0 12px; font-size: .8125rem; }
@media (max-width: 560px) { .res-select { width: 100%; } .res-select select { flex: 1; min-width: 0; } }

/* Infos : « Voir plus » (infos-plus.js) */
.voir-plus { display: flex; justify-content: center; margin: 4px 0 16px; }
.voir-plus .btn { gap: 8px; border-radius: 999px; padding-inline: 20px; }
.voir-plus .chevron { transition: transform .5s cubic-bezier(.45, 0, .2, 1); }
.voir-plus [aria-expanded="true"] .chevron { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) { .voir-plus .chevron { transition: none; } }
.ip-grille { display: grid; gap: 0 16px; }
@media (min-width: 700px) { .ip-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ip-grille .champ { min-width: 0; }
.ip-radios { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.ip-date { display: flex; flex-wrap: wrap; gap: 8px; max-width: 420px; }
.ip-date select { flex: 1 1 140px; min-width: 0; }
.ip-date input { flex: 0 1 110px; min-width: 0; }
.ip-recherche { background: var(--fond); border-radius: 12px; padding: 12px; }
.ip-recherche .ligne-choix { display: flex; gap: 8px; align-items: center; }
.ip-recherche input { flex: 1; min-width: 0; }
.ip-resultats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ip-choix { border: 1px solid var(--trait); background: #fff; border-radius: 999px; padding: 7px 12px; font: inherit; font-size: .875rem; cursor: pointer; min-height: 36px; text-align: left; }
.ip-choix:hover, .ip-choix:focus-visible { border-color: var(--encre); }
.ip-liste summary { cursor: pointer; padding: 10px 12px; border: 1px solid var(--trait); border-radius: 10px; background: #fff; font-size: .9375rem; overflow-wrap: anywhere; }
.ip-liste[open] summary { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.ip-cases { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px 12px; padding: 12px; border: 1px solid var(--trait); border-top: 0; border-radius: 0 0 10px 10px; max-height: 260px; overflow: auto; }
.ip-service { padding: 12px 0; border-top: 1px solid var(--trait); }
.ip-service:first-of-type { border-top: 0; padding-top: 0; }
.ip-service-haut { display: grid; grid-template-columns: minmax(0, 1fr) 7.5rem auto; gap: 0 10px; align-items: end; }
.ip-service-haut > .btn { margin-bottom: 16px; }
@media (max-width: 520px) { .ip-service-haut { grid-template-columns: minmax(0, 1fr) auto; } .ip-service-haut .ip-prix { grid-row: 2; } }
.ip-bloc-horaires { padding: 12px 0; border-top: 1px solid var(--trait); }
.ip-bloc-horaires:first-of-type { border-top: 0; }
.ip-bloc-horaires .jour:first-of-type { border-top: 0; }
.bandeau.gris { background: var(--fond); }
/* « Voir plus » dans la carte Informations */
.carte .voir-plus { margin: 18px 0 0; }
.ip-panneau.anim { overflow: hidden; transition: height .75s cubic-bezier(.45, 0, .2, 1); }
.ip-panneau.anim > * { animation: ip-apparait .75s cubic-bezier(.3, 0, .2, 1) both; }
.ip-panneau.anim.ferme > * { animation: ip-disparait .5s ease-in both; }
@keyframes ip-apparait { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes ip-disparait { to { opacity: 0; transform: translateY(-6px); } }
.ip-section { padding: 18px 0 2px; border-top: 1px solid var(--trait); }
.ip-panneau > .ip-section:first-child { margin-top: 16px; }
.ip-titre { font-size: 1.0625rem; font-weight: 750; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.ip-attente { padding: 16px 0 4px; }
/* Onglet Horaires : horaires par service et planning (infos-plus.js) */
.ip-carte > .ip-section { border-top: 0; padding-top: 0; }
.ip-zone > .carte + .carte, .carte + .ip-zone, .ip-zone + .carte { margin-top: 12px; }
/* Infos : la même ligne fine (dans la marge de la carte) sous l'adresse, entre chaque section et avant « Voir moins » */
.carte > .voir-plus { border-top: 1px solid var(--trait); padding-top: 18px; }
.ip-carte > .ip-section { border-top: 0; }
/* Sous la réponse : consigne + Régénérer | Reformuler */
.outils-ia { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.outils-ia .consigne-regen { flex: 1; min-width: 0; margin-top: 0; align-items: center; }
.outils-ia-sep { align-self: stretch; width: 1px; background: #CFCFCF; margin: 2px 2px; }
.reformuler { display: flex; align-items: center; gap: 8px; flex: none; }
@media (max-width: 600px) {
  .outils-ia { flex-direction: column; align-items: stretch; gap: 10px; }
  .outils-ia-sep { width: auto; height: 1px; margin: 0; }
  .reformuler .btn { flex: 1; }
}
/* Infos : « Votre fiche est complète à X % » (conseils.js) */
.cs-carte { margin-bottom: 12px; }
.cs-tete { display: flex; align-items: center; gap: 16px; }
.cs-tete .carte-titre { margin: 0; }
.cs-jauge { --p: 0; flex: none; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--encre) calc(var(--p) * 1%), var(--trait) 0); }
.cs-jauge span { width: 50px; height: 50px; border-radius: 50%; background: var(--carte); display: grid; place-items: center; font-weight: 800; font-size: 1.0625rem; font-variant-numeric: tabular-nums; }
.cs-jauge small { font-size: .6875rem; font-weight: 700; margin-left: 1px; }
.cs-liste { list-style: none; counter-reset: cs; margin: 14px 0 0; padding: 0; }
.cs-liste li { counter-increment: cs; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 4px 10px; align-items: center; padding: 12px 0; border-top: 1px solid var(--trait); }
.cs-liste li::before { content: counter(cs); width: 24px; height: 24px; border-radius: 50%; background: var(--accent-doux); display: grid; place-items: center; font-size: .8125rem; font-weight: 750; }
.cs-liste p { font-size: .9375rem; }
.cs-actions { display: flex; gap: 6px; align-items: center; }
@media (max-width: 560px) { .cs-liste li { grid-template-columns: 28px minmax(0, 1fr); } .cs-actions { grid-column: 2; } }
.cs-tout { margin-top: 4px; }
.cs-ignores { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--trait); }
.cs-ignores ul { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 6px; }
.cs-ignores li { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .875rem; color: var(--encre-2); }

/* Logo ATCOM fourni par le client (17/10) à la place du nom écrit en police pinceau */
.entete-logo { display: block; height: 35px; width: auto; margin-bottom: 3px; }

/* Téléphone : écran Résultats centré (Infos et les autres sections gardent l'alignement à gauche) */
@media (max-width: 767.98px) {
  .contenu:has(#resultats) .titre-page { justify-content: center; text-align: center; }
  .contenu:has(#resultats) .titre-page > div { width: 100%; }
  .contenu:has(#resultats) .titre-page p { text-wrap: balance; }
  .contenu:has(#resultats) .titre-page h1::after { left: 50%; transform: translateX(-50%); }
  .contenu:has(#resultats) .fiche-resume { justify-content: center; }
  #resultats .res-barre { justify-content: center; }
  #resultats .res-barre .case { align-items: center; }
  #resultats .res-periode-txt, #resultats .res-note, #resultats .res-carte > p.muted { text-align: center; text-wrap: balance; }
  #resultats .res-heros-haut { text-align: center; }
  #resultats .res-heros-val::after { left: -7px; right: -7px; }
  #resultats .res-heros-sous { justify-content: center; }
  #resultats .res-heros-chiffres div, #resultats .res-mini div { text-align: center; justify-items: center; }
  /* Titre et « ? » côte à côte au centre ; le choix jour/semaine/mois passe dessous */
  #resultats .res-carte-tete { display: grid; grid-template-columns: auto auto; justify-content: center; align-items: center; gap: 10px 8px; text-align: center; }
  #resultats .res-carte-tete h2 { text-wrap: balance; }
  #resultats .res-grain { grid-column: 1 / -1; margin: 0; justify-self: center; }
  #resultats .res-chips, #resultats .res-legende { justify-content: center; }
  /* Camemberts : anneau centré, légende dessous sur une ligne par part */
  #resultats .res-camembert { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 14px; }
  #resultats .res-camembert svg { width: 140px; height: 140px; }
  #resultats .res-parts { width: 100%; max-width: 300px; }
  #resultats .res-parts li { grid-template-columns: 10px minmax(0, 1fr) 4.2rem; }
  /* Parcours : part et écart sur la même ligne, sous le chiffre */
  #resultats .res-etape b { grid-template-columns: auto auto; column-gap: 6px; align-items: baseline; }
  #resultats .res-etape b > span[data-compte] { grid-column: 1 / -1; justify-self: end; }
  /* Trois cartes : la dernière prend toute la largeur au lieu de rester seule à gauche */
  #resultats .res-mini.trois div:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* Menu : Organisation / Client / Fiche Google en tuiles douces ; la liste s'ouvre dessous, dans le menu (ouvrirChoix) */
.choix-menu { gap: 10px; grid-template-columns: minmax(0, 1fr); }
.choix-menu .champ.choix { min-width: 0; grid-template-columns: minmax(0, 1fr); }
.choix-tuile { min-width: 0; }
.choix-menu .champ-lib { font-size: .6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--encre-3); margin: 0 0 2px 4px; }
.choix-tuile { position: relative; width: 100%; border: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 7px 10px 7px 7px; border-radius: 14px; background: #F3F5F8; transition: background-color .15s ease; }
.choix-tuile:hover { background: #EBEEF3; }
.choix-tuile:focus-visible { outline: none; box-shadow: 0 0 0 2px #fff, 0 0 0 4px #9AAEDB; }
.choix-tuile[aria-expanded="true"] { background: #EBEEF3; }
.choix-tuile[aria-expanded="true"] .choix-chevron { transform: rotate(180deg); }
.choix-chevron { transition: transform .2s ease; }
.choix-pastille { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: #fff; color: #1B2A47; font-weight: 800; font-size: .9375rem; box-shadow: 0 1px 2px rgba(27, 42, 71, .08); }
.choix-pastille svg { width: 18px; height: 18px; }
.choix-nom { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 650; font-size: .9375rem; color: var(--encre); }
.choix-nom.vide { color: var(--encre-3); font-weight: 600; }
.choix-nb { flex: none; min-width: 20px; height: 20px; padding: 0 6px; display: grid; place-items: center; border-radius: 999px; background: #FBE7C6; color: #8A5A12; font-size: .75rem; font-weight: 800; }
.choix-chevron { flex: none; display: grid; color: var(--encre-3); }
.choix-chevron svg { width: 18px; height: 18px; }
@media (min-width: 768px) {
  .coque.agence.avec-fiche .choix-menu { gap: 8px; }
  .coque.agence.avec-fiche .choix-tuile { min-height: 44px; padding-block: 5px; }
  .coque.agence.avec-fiche .choix-pastille { width: 32px; height: 32px; }
  .coque.agence.avec-fiche }
.choix-menu .champ.choix { position: relative; }
.choix-pop { position: absolute; z-index: 50; top: calc(100% + 6px); left: 0; right: 0; display: grid; gap: 2px; padding: 6px; max-height: min(60vh, 360px); overflow-y: auto; overscroll-behavior: contain;
  background: #fff; border: 1px solid #E5E9F0; border-radius: 16px; box-shadow: 0 18px 40px -12px rgba(27, 42, 71, .28), 0 2px 6px rgba(27, 42, 71, .08); animation: choix-ouvre .16s ease-out; }
@keyframes choix-ouvre { from { opacity: 0; transform: translateY(-4px); } }
.choix-opt { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; padding: 8px 12px; border: 0; border-radius: 10px; background: transparent; font: inherit; font-size: .9375rem; font-weight: 600; color: var(--encre); text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.choix-opt-nom { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.choix-opt:hover, .choix-opt:focus-visible { background: #F3F5F8; outline: none; }
.choix-opt[aria-selected="true"] { background: #EEF2F8; color: #1B2A47; }
.choix-opt svg { flex: none; width: 18px; height: 18px; color: #3D5A98; }
.choix-opt.action { color: #3D5A98; font-weight: 650; }
.choix-opt:not(.action) + .choix-opt.action { margin-top: 5px; position: relative; }
.choix-opt:not(.action) + .choix-opt.action::before { content: ""; position: absolute; left: 10px; right: 10px; top: -4px; border-top: 1px solid var(--trait); }
@media (prefers-reduced-motion: reduce) { .choix-tuile, .choix-chevron { transition: none; } .choix-pop { animation: none; } }

/* Téléphone : la barre noire du haut défile avec la page ; la barre du menu reste collée en haut,
   quelle que soit la hauteur de la barre noire (trois boutons, texte agrandi, appli installée) */
@media (max-width: 767.98px) {
  .bandeau-demo { position: relative; flex-wrap: wrap; row-gap: 6px; padding-top: calc(8px + env(safe-area-inset-top)); }
  .barre-mobile { top: 0; padding-top: calc(6px + env(safe-area-inset-top)); }
}

/* Résultats : tuiles blanches (Avis, Ce que vous avez publié) posées sur la carte grise, icône en pastille de couleur */
.res-mini .res-tuile { background: #fff; border: 1px solid #E5E9F0; border-radius: 14px; padding: 12px 14px; gap: 3px; align-content: start;
  box-shadow: 0 1px 2px rgba(27, 42, 71, .05), 0 6px 16px -8px rgba(27, 42, 71, .12); }
.res-tuile-ico { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: var(--tf); color: var(--tc); margin-bottom: 4px; }
.res-tuile-ico svg { width: 18px; height: 18px; }
.res-tuile.t-bleu { --tc: #3D5A98; --tf: #E9EEF8; }
.res-tuile.t-sarcelle { --tc: #1F7F73; --tf: #E1F3EF; }
.res-tuile.t-ambre { --tc: #A86F12; --tf: #FCF0D9; }
.res-tuile.t-corail { --tc: #B9533B; --tf: #FCE8E1; }
.res-mini .res-tuile > span { color: var(--encre-2); }
/* Carte Avis : libellés sur la même hauteur, pour que les chiffres soient alignés d'une tuile à l'autre */
.res-mini:not(.trois) .res-tuile > span { min-height: 2.6em; display: flex; align-items: center; }
@media (max-width: 767.98px) { #resultats .res-mini .res-tuile > span { justify-content: center; } }
.res-mini .res-tuile b { color: #1B2A47; font-weight: 800; }

/* Menu, sur tous les écrans : logo ATCOM centré, identifiant centré juste en dessous (17/10) */
.coque.agence .colonne .entete { justify-content: center; text-align: center; }
.coque.agence .colonne .entete > div:last-child { min-width: 0; }
.coque.agence .colonne .entete-logo { margin-inline: auto; }
@media (max-width: 767.98px) {
  /* Même marge des deux côtés que la croix de fermeture, sinon le centre est décalé */
  .coque.agence .colonne .entete { padding-inline: 56px; }
}

/* Plus de police pinceau (17/10) : titres et boutons dans la police du site, sans trait souligné */
:root { --pinceau: var(--police); }
.titre-page h1 { font-weight: 800; font-size: 1.625rem; line-height: 1.2; letter-spacing: -.02em; text-transform: none; padding-bottom: 0; }
@media (min-width: 900px) { .titre-page h1 { font-size: 1.875rem; } }
.titre-page h1::after { content: none; }
.btn.principal { font-weight: 700; font-size: .9375rem; letter-spacing: 0; }
.btn.principal.petit { font-size: .875rem; }
.coque.client .entete .logo { font-weight: 800; }

/* Résultats : la fiche présentée comme une fiche Google (17/10) */
.gfiche { --g-texte: #202124; --g-gris: #70757a; --g-bleu: #1a73e8; --g-bleu-doux: #e8f0fe; --g-trait: #dadce0;
  background: #fff; border: 1px solid var(--g-trait); border-radius: 16px; overflow: hidden; margin-bottom: 18px; color: var(--g-texte);
  box-shadow: 0 1px 2px rgba(60, 64, 67, .12), 0 2px 6px rgba(60, 64, 67, .08); }
.gf-sur { margin: 0 0 8px; font-size: .75rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--encre-3); display: flex; align-items: center; gap: 8px; }
.gf-sur::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #34a853; box-shadow: 0 0 0 3px #e6f4ea; }
.gf-photos { position: relative; isolation: isolate; overflow: hidden; height: 180px; display: grid; gap: 2px; background: #f1f3f4; }
.gf-photos--seule { place-items: center; }
.gf-photos[data-nb="2"] { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.gf-photos[data-nb="3"] { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); }
.gf-photos[data-nb="3"] .gf-photo:first-child { grid-row: 1 / 3; }
.gf-photo { position: relative; margin: 0; min-height: 0; overflow: hidden; }
.gf-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gf-photo figcaption { position: absolute; inset: 0; display: grid; place-items: center; background: rgb(32 33 36 / .45); color: #fff; font-weight: 600; font-size: .9375rem; }
.gf-photos--seule::before { content: ""; position: absolute; inset: -24px; z-index: -1; background: var(--fond-photo) center / cover no-repeat; filter: blur(18px) saturate(1.1); opacity: .55; }
.gf-photos--seule img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.gf-corps { padding: 18px 20px 6px; }
.gf-nom { margin: 0; font-size: 1.5rem; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; color: var(--g-texte); text-wrap: balance; }
.gf-note { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: 6px; font-size: .9375rem; }
.gf-chiffre { font-weight: 600; }
.gf-etoiles { position: relative; display: inline-block; font-size: 1rem; line-height: 1; letter-spacing: 1px; }
.gf-etoiles span:first-child { color: #dadce0; }
.gf-etoiles span:last-child { position: absolute; inset: 0 auto 0 0; width: calc(var(--n) / 5 * 100%); overflow: hidden; white-space: nowrap; color: #fbbc04; }
.gf-note a { color: var(--g-bleu); text-decoration: none; }
.gf-gris, .gf-cat { color: var(--g-gris); }
.gf-note .tag { margin-left: 4px; }
.gf-cat { margin: 4px 0 0; font-size: .9375rem; }
.gf-actions { display: flex; gap: 6px; margin: 16px 0 4px; }
.gf-action { flex: 1 1 0; min-width: 0; max-width: 92px; display: grid; justify-items: center; gap: 6px; text-decoration: none; color: var(--g-bleu); font-size: .8125rem; font-weight: 600; text-align: center; -webkit-tap-highlight-color: transparent; }
.gf-rond { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--g-bleu-doux); transition: background-color .15s; }
.gf-rond svg { width: 20px; height: 20px; fill: var(--g-bleu); }
@media (hover: hover) { .gf-action:hover .gf-rond { background: #d2e3fc; } }
.gf-action:active .gf-rond { background: #c6dafc; }
.gf-infos { list-style: none; margin: 12px -20px 0; padding: 4px 0; border-top: 1px solid var(--g-trait); }
.gf-infos li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 16px; align-items: start; padding: 10px 20px; font-size: .9375rem; line-height: 1.45; overflow-wrap: anywhere; }
.gf-ico svg { width: 20px; height: 20px; fill: var(--g-bleu); display: block; margin-top: 1px; }
.gf-infos a { color: var(--g-texte); text-decoration: none; }
@media (hover: hover) { .gf-infos a:hover { color: var(--g-bleu); text-decoration: underline; } }
.gf-ouvert { color: #188038; font-weight: 600; }
.gf-ferme { color: #d93025; font-weight: 600; }
.gf-horaires summary { cursor: pointer; list-style: none; display: inline; }
.gf-horaires summary::-webkit-details-marker { display: none; }
.gf-horaires summary::after { content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 0 3px 10px; border: solid var(--g-gris); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s; }
.gf-horaires[open] summary::after { transform: rotate(-135deg); margin-bottom: -1px; }
.gf-semaine { margin-top: 8px; border-collapse: collapse; font-size: .875rem; }
.gf-semaine th { text-align: left; font-weight: 500; padding: 2px 20px 2px 0; color: var(--g-texte); }
.gf-semaine td { padding: 2px 0; color: var(--g-gris); }
@media (min-width: 900px) {
  .gf-photos { height: 220px; }
  .gf-corps { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 0 28px; padding: 22px 24px 20px; }
  .gf-nom { font-size: 1.75rem; }
  .gf-actions { justify-content: flex-start; }
  .gf-infos { margin: 0; padding: 0 0 0 24px; border-top: 0; border-left: 1px solid var(--g-trait); align-self: start; }
  .gf-infos li { padding: 8px 0; }
}
@media (max-width: 767.98px) {
  .gf-sur { justify-content: center; }
  .gf-photos { height: 150px; }
  .gf-corps { padding: 16px 16px 4px; }
  .gf-ident { text-align: center; }
  .gf-note { justify-content: center; }
  .gf-actions { justify-content: center; }
  .gf-infos { margin-inline: -16px; }
  .gf-infos li { padding-inline: 16px; }
}
@media (prefers-reduced-motion: reduce) { .gf-rond, .gf-horaires summary::after { transition: none; } }

/* ---------- Avis présentés comme sur Google ---------- */
.ga-liste { --g-texte: #202124; --g-gris: #70757a; --g-trait: #dadce0; background: #fff; border: 1px solid var(--g-trait); border-radius: 16px; padding: 0 20px; }
.ga-avis, .ga-detail { --g-texte: #202124; --g-gris: #70757a; --g-trait: #dadce0; color: var(--g-texte); font-size: .875rem; line-height: 1.43; }
a.ga-avis { display: block; padding: 18px 0 16px; background: none; border: 0; border-radius: 0; text-decoration: none; }
a.ga-avis + a.ga-avis { margin-top: 0; border-top: 1px solid var(--g-trait); }
a.ga-avis.urgent { border-left: 0; }
a.ga-avis:hover .ga-qui strong { text-decoration: underline; }
a.ga-avis:focus-visible { outline: 2px solid #1a73e8; outline-offset: 2px; border-radius: 8px; }
.ga-tete { display: flex; align-items: center; gap: 12px; }
.ga-avatar { position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
  background: var(--ga-fond); color: #fff; font-size: 1.125rem; font-weight: 500; }
.ga-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ga-qui { min-width: 0; flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 6px 10px; flex-wrap: wrap; }
.ga-qui strong { font-size: 1rem; font-weight: 500; color: var(--g-texte); overflow-wrap: anywhere; }
.ga-etat .tag { white-space: nowrap; }
.ga-ligne { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.ga-etoiles { color: #fbbc04; font-size: .9375rem; letter-spacing: 1px; line-height: 1; white-space: nowrap; }
.ga-etoiles .vide { color: #dadce0; }
.ga-date { color: var(--g-gris); font-size: .8125rem; }
.ga-ou { display: block; margin-top: 4px; color: var(--g-gris); font-size: .8125rem; }
.ga-texte { margin: 8px 0 0; white-space: pre-line; overflow-wrap: anywhere; }
a.ga-avis .ga-texte { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.ga-reponse { margin: 14px 0 0 16px; padding-left: 14px; border-left: 2px solid var(--g-trait, #dadce0); color: var(--g-texte, #202124); font-size: .875rem; line-height: 1.43; }
.ga-reponse-tete { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.ga-reponse-tete strong { font-weight: 500; }
.ga-reponse p { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.ga-reponse.court p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ga-par { margin-top: 10px; font-size: .8125rem; }
.ga-detail { padding-bottom: 4px; }
.ga-detail .ga-texte { font-size: .9375rem; }
@media (max-width: 767.98px) {
  .ga-liste { padding: 0 16px; border-radius: 14px; }
  .ga-reponse { margin-left: 8px; }
}
.ga-carte { background: #fff; border-color: #dadce0; }
[data-fa="ouvrir-pub"] { white-space: nowrap; flex: none; }
/* Ajout d'une photo : nom du fichier choisi, coupé s'il est long */
#ph-nom { min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .875rem; }
/* Résultats : l'essentiel, puis le détail sur demande */
#res-detail[hidden] { display: none; }
.res-essentiel { margin-bottom: 12px; }
.res-voir { justify-content: center; margin: 4px 0 18px; }
.res-mini b .res-ecart { font-size: .75rem; vertical-align: middle; }
/* Écran d'entrée : « Continuer avec Google » (compte + accès aux fiches en un passage) */
.entree { max-width: 400px; margin: 0 auto; min-height: 78dvh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 32px 20px; gap: 14px; }
.entree-logo { height: 56px; width: auto; margin-bottom: 10px; }
.entree h1 { font-size: 1.5rem; line-height: 1.25; margin: 0; text-wrap: balance; }
.entree > p { margin: 0; color: var(--encre-2); }
.btn-google { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 52px; margin-top: 8px; padding: 0 20px;
  border: 1px solid #DADCE0; border-radius: 999px; background: #fff; color: #1F1F1F; font-weight: 600; font-size: 1rem; text-decoration: none;
  box-shadow: 0 1px 2px rgba(60, 64, 67, .12); transition: background-color .15s, box-shadow .15s; -webkit-tap-highlight-color: transparent; }
.btn-google:hover { background: #F8FAFF; box-shadow: 0 1px 3px rgba(60, 64, 67, .2); }
.btn-google:focus-visible { outline: 2px solid #1A73E8; outline-offset: 2px; }
.btn-google:active { background: #EEF3FD; }
.entree .entree-note { font-size: .8125rem; color: var(--encre-3); }
.entree-ou { display: flex; align-items: center; gap: 12px; width: 100%; color: var(--encre-3); font-size: .8125rem; }
.entree-ou::before, .entree-ou::after { content: ""; flex: 1; height: 1px; background: var(--trait); }
.entree-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; width: 100%; }
.entree-actions .btn { flex: 1 1 160px; }
.entree-actions.empile { flex-direction: column; }
.entree-actions.empile .btn { flex: none; width: 100%; }
@media (prefers-reduced-motion: reduce) { .btn-google { transition: none; } }

/* Fenêtres : le titre reçoit le focus à l'ouverture, sans contour ; au clavier, le contour du bouton principal
   entoure tout le coup de pinceau (qui déborde de 4 px) au lieu de le couper */
#modale-titre:focus { outline: none; }
.btn.principal:focus-visible { outline-offset: 7px; }
.assistant-ok { margin-top: 12px; padding: 10px 14px; border-radius: 12px; background: #EEF6F1; }
.assistant-ok .muted { white-space: nowrap; }
.assistant .champ { margin-top: 14px; }
.assistant .champ > .muted { display: block; margin-top: 4px; font-size: .8125rem; }
/* Réglages › IA et Admin (super admin) */
.iar-fiche { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; margin: 12px 0 0; }
.iar-fiche dt { color: var(--encre-3); font-size: .875rem; }
.iar-fiche dd { margin: 0; font-weight: 650; overflow-wrap: anywhere; }
.coque.agence .nav a.nav-admin { margin-top: 10px; position: relative; }
.coque.agence .nav a.nav-admin::before { content: ""; position: absolute; left: 12px; right: 12px; top: -6px; border-top: 1px solid var(--trait); }
.adm-liste { padding-block: 4px; }
.adm-fonction { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--trait); }
.adm-fonction:first-child { border-top: 0; }
.adm-fonction-txt { display: grid; gap: 2px; min-width: 0; }
.adm-fonction-txt .muted { font-size: .875rem; }
.adm-origine { font-size: .75rem; color: var(--encre-3); text-transform: uppercase; letter-spacing: .04em; }
.adm-inter { flex: none; }
.adm-client { border-top: 1px solid var(--trait); padding: 10px 0; }
.adm-client:first-child { border-top: 0; }
.adm-client summary { cursor: pointer; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; min-height: 44px; align-content: center; }
.adm-tri { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 8px 0 8px 4px; }
.adm-tri-lib { font-size: .9375rem; min-width: 0; }
.adm-tri-btn { display: inline-flex; border: 1px solid var(--trait); border-radius: 10px; overflow: hidden; flex-wrap: wrap; }
.adm-tri-btn button { border: 0; background: #fff; padding: 8px 10px; font: inherit; font-size: .8125rem; color: var(--encre-2); cursor: pointer; min-height: 36px; }
.adm-tri-btn button + button { border-left: 1px solid var(--trait); }
.adm-tri-btn button[aria-pressed="true"] { background: #111; color: #fff; font-weight: 700; }
.adm-tri-btn button:focus-visible { outline: 2px solid #111; outline-offset: -2px; }
.adm-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
@media (max-width: 480px) { .adm-tri-btn { width: 100%; } .adm-tri-btn button { flex: 1 1 0; } }
.iar-console { display: inline-block; margin-top: 8px; font-size: .875rem; font-weight: 650; color: var(--encre); }
@media (max-width: 480px) { .onglets[role="tablist"] { flex-wrap: wrap; row-gap: 0; } .onglets[role="tablist"] button { padding-inline: 9px; } }

/* Fiches Google en double (assistant + « Relier une fiche ») */
.case-adresse { display: block; font-size: .8125rem; color: var(--encre-2); margin-top: 2px; font-weight: 400; }
.doublons { border: 1px solid var(--trait); border-left: 3px solid var(--ambre, #c98a00); border-radius: var(--rayon); background: var(--ambre-doux, #fdf5e6); padding: 12px 14px; margin-bottom: 14px; display: grid; gap: 8px; }
.doublons p { margin: 0; font-size: .9375rem; line-height: 1.45; }
.fiche-google-choix { display: block; width: 100%; height: auto; white-space: normal; padding-top: 10px; padding-bottom: 10px; }
.fiche-google-choix .tag { margin-left: 4px; }

/* Zones tenues à jour en silence (app.js, rafraichirEnSilence) : simples repères, sans boîte à elles. */
.zone-vive { display: contents; }

/* Nouvelle publication : générer l'article, puis son image */
.facultatif { font-weight: 400; color: var(--encre-3); }
.gen-ligne { flex-wrap: wrap; }
.gen-ligne input { flex: 1 1 220px; }
.gen-ligne .btn { flex: 0 0 auto; }
.gen-image { margin-top: 14px; }
.gen-note { margin: 6px 0 0; font-size: .8125rem; color: var(--encre-3); }
@media (max-width: 520px) { .gen-ligne .btn { flex: 1 1 100%; } }
