/* DEV349 — la fiche d'un contact (fiche349.js), aperçus approuvés par Alex : docs/consolidation_decisions/DEV349/apercu/1-lignes.png
   (« Ma banque », look A ligne par ligne) et 3-trouver.png (« Trouver », lecture seule). Tout est limité à .fiche349.
   Les !important répondent à ceux de record-sheet.css (les grands carrés de DEV206), comme caracteristiques256.css. */
.fiche349{--vert349:#1c5d53;--encre349:#1d3b33;--doux349:#5b6b63;--trait349:#e8eee8;--bord349:#dbe3db;margin:-6px 0 14px}

/* ——— Le haut : la pastille, le nom (sa rangée, avec son crayon), les services, les étiquettes ——— */
.fiche349 .tete349{display:flex;gap:14px;align-items:flex-start;padding:4px 0 14px}
.fiche349 .pastille349{flex:none;display:grid;place-items:center;width:56px;height:56px;border-radius:16px;background:#e3eee6;color:var(--vert349);font-size:26px;font-weight:700}
.fiche349 .nom349{flex:1;min-width:0}
.fiche349 .nom349>p:first-child,.fiche349 .titre-nom349 .sheet-value-text{margin:0;font-size:1.35rem;font-weight:800;line-height:1.2;color:var(--encre349);overflow-wrap:anywhere}
.fiche349 .titre-nom349{display:flex!important;align-items:flex-start;gap:8px;width:auto;min-height:0;padding:0!important;border:0!important;border-radius:0!important;background:none!important}
.fiche349 .sous349{margin:4px 0 0;color:var(--doux349);font-size:.95rem}
.fiche349 .sous349:empty{display:none}
.fiche349 .etiquettes349{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0 0}
.fiche349 .etiquettes349:empty{display:none}
.fiche349 .etiquettes349 .retiree349{margin:0;padding:2px 10px;border-radius:999px;background:#fbe4dc;color:#8a3a1c;font-size:.78rem;font-weight:700}
.fiche349 .etiquettes349 span{padding:2px 10px;border-radius:999px;background:#fff3d6;color:#7a5a12;font-size:.78rem;font-weight:700}

/* ——— Appeler, Écrire, Site ——— */
.fiche349 .gestes349{display:grid;grid-template-columns:repeat(var(--gestes349),minmax(0,1fr));gap:8px;margin:2px 0 16px}
.fiche349 .geste349{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:64px;padding:10px 4px;border-radius:14px;background:var(--vert349);color:#fff;font-weight:700;font-size:.85rem;text-decoration:none;text-align:center}
.fiche349 .geste349 span{font-size:20px;line-height:1}
.fiche349 .geste349.pale349{background:#eef3ee;color:var(--vert349)}
.fiche349 .geste349:focus-visible{outline:3px solid #ca8c32;outline-offset:2px}

/* ——— Les blocs de lignes fines : libellé à gauche, valeur, petit crayon ——— */
.fiche349 .titre349{margin:4px 2px 6px;font-size:.8rem;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:#6b7a73}
.fiche349 .bloc349{margin:0 0 14px;border:1px solid var(--bord349);border-radius:16px;background:#fff;overflow:hidden}
.fiche349 .ligne349{display:flex;align-items:center;gap:12px;min-height:54px;margin:0!important;padding:8px 10px 8px 14px;border-top:1px solid var(--trait349)}
.fiche349 .ligne349:first-child{border-top:0}
.fiche349 .ligne349>h3{flex:none;width:92px;margin:0;font-size:.85rem!important;font-weight:400;color:var(--doux349)}
.fiche349 .ligne349 .sheet-value-row,.fiche349 .titre-nom349{flex-direction:row!important;flex-wrap:nowrap!important}
.fiche349 .ligne349 .sheet-value-text,.fiche349 .titre-nom349 .sheet-value-text{width:auto!important}
.fiche349 .ligne349 .sheet-value-row{flex:1;display:flex!important;align-items:center;gap:8px;min-width:0;padding:0!important;border:0!important;border-radius:0!important;background:none!important;cursor:inherit}
/* Toute la ligne se touche, seulement quand elle a son crayon (A477 C2 et C3). */
.fiche349 .ligne349:has(.field-edit-pencil){cursor:pointer}
.fiche349 .ligne349 .sheet-value-text{flex:1;min-width:0;min-height:0;color:var(--encre349);overflow-wrap:anywhere}
.fiche349 .ligne349 .sheet-value-text p{margin:0}
.fiche349 .ligne349 .sheet-value-text:empty::before{content:var(--vide349,'Ajouter');color:#9aa7a0;font-style:italic}
/* Le crayon : un petit ✎ (son texte « Modifier … » reste pour les lecteurs d'écran, par aria-label). */
.fiche349 .field-edit-pencil{appearance:none;-webkit-appearance:none;flex:none!important;width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important;margin:0!important;padding:0!important;border:0!important;border-radius:12px;background:none!important;box-shadow:none!important;color:#7c8a83;font-size:1.05rem!important;line-height:1!important;cursor:pointer}
.fiche349 .field-edit-pencil span{display:none}
.fiche349 .field-edit-pencil::after{content:"✎"}
.fiche349 .field-edit-pencil:hover{background:#eef3ee!important}

/* ——— Lié à ce contact : trois tuiles ——— */
.fiche349 .lies349{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0 0 4px}
.fiche349 .lie349{display:flex;flex-direction:column;align-items:center;gap:2px;min-height:72px;margin:0;padding:10px 6px;border:1px solid var(--bord349);border-radius:14px;background:#fff;color:inherit;font:inherit;cursor:pointer}
.fiche349 .lie349 strong{font-size:1.2rem;color:var(--vert349)}
.fiche349 .lie349 span{font-size:.8rem;color:var(--doux349)}
.fiche349 .lie349:hover{background:#f4f8f4}

/* ——— Trouver : Ajouter à mes contacts, puis la note ——— */
.fiche349 .fiche-ajouter348{display:block;width:100%;min-height:52px;margin:4px 0 0;border-radius:14px;font-weight:800;font-size:1rem}
.fiche349 .note349{margin:10px 0 0;padding:12px 14px;border-radius:14px;background:#eef3ee;color:#6b7a73;font-size:.85rem}

@media (min-width:768px){.fiche349 .ligne349>h3{width:120px}}
