/* Coffre « Mots de passe » (R133, R148) : repris des maquettes validées (maquettes/coffre/coffre.css et coffre-ordinateur.css,
   1e3e4c81), sur les jetons du socle (app.css). Aucune couleur nouvelle : le coffre prend l'accent de l'espace ; l'or seulement
   pour « À revoir ». Un seul mouvement nouveau : la jauge d'un délai (linéaire, transform seulement, figée sous « réduire les
   animations »). Cibles de 44 pt au moins. */

.cf { --cf-vert-sombre: #6FCF9D; }
.entete-droite { display: flex; flex: none; }
.cf .titre-ecran { font-family: "Gilda Display", serif; font-weight: 400; font-size: 30px; line-height: 1.15; margin-top: 10px; text-wrap: balance; }
.cf .cf-intro { margin-top: 8px; font-size: 16px; line-height: 1.45; }
.cf .deux-boutons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.cf .btn-gauche { width: auto; justify-content: flex-start; padding: 0; }
.btn-danger-plein { background: var(--erreur); color: #fff; }
.cf .btn-second.btn-danger { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--erreur) 45%, transparent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cf .btn-danger { color: #F08A9E; } }
:root[data-theme="dark"] .cf .btn-danger { color: #F08A9E; }

/* ---------- État du coffre, toujours dit en mots ---------- */
.etat-coffre { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--texte-doux); margin-top: 2px; min-height: 28px; }
.etat-coffre .ic { width: 16px; height: 16px; color: var(--ok); stroke-width: 2; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .etat-coffre .ic { color: var(--cf-vert-sombre); } }
:root[data-theme="dark"] .etat-coffre .ic { color: var(--cf-vert-sombre); }

/* ---------- 01 : coffre fermé ---------- */
.cf .ferme { min-height: calc(100dvh - 220px); display: flex; flex-direction: column; align-items: center; text-align: center; padding: 12px 8px 24px; }
.cf .sceau { margin-top: 64px; color: var(--accent-texte); }
.cf .sceau .ic { width: 64px; height: 64px; stroke-width: 1.4; }
.cf .sceau.alerte { color: var(--or-texte); }
.cf .ferme h1 { margin-top: 26px; font-family: "Gilda Display", serif; font-weight: 400; font-size: 30px; }
.cf .ferme > p { margin-top: 12px; color: var(--texte-doux); font-size: 16px; line-height: 1.45; max-width: 32ch; }
.cf .ferme .actions { width: 100%; max-width: 420px; display: grid; gap: 6px; margin-top: auto; padding-top: 32px; }
.cf .petit-mot { font-size: 13px; color: var(--texte-doux); margin-top: 10px; max-width: 36ch; justify-self: center; line-height: 1.4; }
.champ-code { font-size: 19px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-variant-numeric: tabular-nums; }

/* ---------- 02 : premier usage, code de secours ---------- */
.cf-premier { display: flex; flex-direction: column; min-height: calc(100dvh - 160px); padding-bottom: 8px; }
.trois { margin-top: 18px; display: grid; gap: 16px; }
.trois p { display: flex; gap: 12px; font-size: 15.5px; line-height: 1.45; }
.trois p .ic { color: var(--accent-texte); margin-top: 1px; flex: none; }
.cf-pied { margin-top: auto; padding-top: 28px; display: grid; gap: 6px; }
.code { margin-top: 22px; padding: 20px 14px; border-radius: var(--r-carte); background: var(--carte); box-shadow: var(--ombre); display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; text-align: center; }
.code span { font-size: 21px; font-weight: 700; letter-spacing: .06em; font-variant-numeric: tabular-nums; user-select: all; -webkit-user-select: all; }
.code small { grid-column: 1 / -1; font-size: 13px; color: var(--texte-doux); margin-top: 6px; }
.cf-conseil { margin-top: 12px; line-height: 1.45; }
.cases-verif { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 22px; }
.cases-verif div { display: grid; gap: 6px; justify-items: center; }
.cases-verif label { font-size: 13px; color: var(--texte-doux); }
.cases-verif .boite { width: 100%; height: 60px; border: 0; border-radius: var(--r-champ); background: var(--carte); box-shadow: inset 0 0 0 1px var(--ligne); text-align: center; font-size: 24px; font-weight: 700; color: var(--texte); text-transform: uppercase; }
.cases-verif .boite:focus { outline: none; box-shadow: inset 0 0 0 2px var(--accent); }
.cf-revoir { width: auto; align-self: flex-start; padding: 0; margin-top: 8px; }
.fiche-impression { display: none; }
@media print {
  body > *:not(.fiche-impression) { display: none !important; }
  .fiche-impression { display: block; color: #000; background: #fff; font-family: "Aileron", sans-serif; padding: 40px; }
  .fiche-impression h1 { font-family: "Gilda Display", serif; font-weight: 400; font-size: 28px; }
  .fiche-impression .fiche-code { font-size: 28px; font-weight: 700; letter-spacing: .1em; margin: 24px 0; }
}

/* ---------- 03 : la liste ---------- */
.outils-liste { display: flex; gap: 8px; margin-top: 14px; }
.cf .aller { flex: 1; display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 14px; border-radius: var(--r-champ); background: var(--carte); box-shadow: inset 0 0 0 1px var(--ligne); color: var(--texte-doux); }
.cf .aller:focus-within { box-shadow: inset 0 0 0 2px var(--accent); }
.cf-cherche-champ { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--texte); font-size: 16px; min-height: 44px; outline: none; }
.cf-cherche-champ::placeholder { color: var(--texte-doux); }
.outils-liste .ajouter { width: 46px; height: 46px; border-radius: var(--r-champ); background: var(--accent); color: var(--accent-contraste); display: grid; place-items: center; flex: none; transition: transform 160ms var(--ease-out); }
.outils-liste .ajouter:active { transform: scale(.95); }
.dossiers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.dossier { text-align: left; display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: var(--r-carte); background: var(--carte); box-shadow: inset 0 0 0 1px var(--ligne); min-height: 112px; transition: transform 160ms var(--ease-out); }
.dossier:active { transform: scale(.98); }
.dossier .nom { font-weight: 600; font-size: 15.5px; line-height: 1.25; }
.dossier .qui { font-size: 13px; color: var(--texte-doux); display: flex; align-items: center; gap: 6px; margin-top: auto; white-space: nowrap; }
.dossier .rond-ic { width: 36px; height: 36px; border-radius: 12px; }
.mini-av { display: inline-flex; }
.mini-av span { width: 23px; height: 23px; border-radius: 50%; background: var(--voile); color: var(--texte); font-size: 8.5px; letter-spacing: -.02em; font-weight: 700; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--carte); }
.mini-av span + span { margin-left: -3px; }
.cf-dossier-tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.a-revoir { margin-top: 16px; padding: 12px 16px 4px; border-radius: var(--r-carte); background: var(--or-voile); }
.a-revoir h2 { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--or-texte); }
.revoir-l { display: flex; align-items: center; gap: 10px; padding: 10px 0; min-height: 56px; width: 100%; text-align: left; color: var(--texte); border-top: 1px solid color-mix(in srgb, var(--or-texte) 18%, transparent); }
.a-revoir h2 + .revoir-l { border-top: 0; }
.revoir-l > span { flex: 1; min-width: 0; font-size: 13.5px; color: var(--texte-doux); line-height: 1.35; }
.revoir-l b { display: block; font-size: 15px; color: var(--texte); }
.revoir-l .ic { color: var(--or-texte); flex: none; }
.cf .ligne-sous .etiquette { margin-right: 4px; }
.etiquette-ok { background: color-mix(in srgb, var(--ok) 12%, var(--fond)); color: var(--ok); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cf .etiquette-ok { background: rgba(111, 207, 157, .14); color: #8FDDB4; } }
:root[data-theme="dark"] .cf .etiquette-ok { background: rgba(111, 207, 157, .14); color: #8FDDB4; }
.cf .rond-ic.neutre { color: var(--texte); }

/* ---------- 04 : la fiche ---------- */
.fiche-tete { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.fiche-tete .rond-ic { width: 52px; height: 52px; border-radius: 17px; }
.fiche-tete h1 { font-family: "Gilda Display", serif; font-weight: 400; font-size: 28px; line-height: 1.15; overflow-wrap: anywhere; }
.fiche-tete .ou, .cv-tete .ou { font-size: 14px; color: var(--texte-doux); margin-top: 3px; display: flex; align-items: center; gap: 6px; }
.champs { margin-top: 20px; background: var(--carte); border-radius: var(--r-carte); box-shadow: var(--ombre); padding: 4px 16px; }
.champ-c { padding: 12px 0; border-bottom: 1px solid var(--ligne); }
.champ-c:last-child { border-bottom: 0; }
.champ-lab { font-size: 13px; color: var(--texte-doux); font-weight: 600; }
.champ-val { display: flex; align-items: center; gap: 4px; min-height: 44px; }
.champ-val .val { flex: 1; min-width: 0; font-size: 17px; overflow-wrap: anywhere; }
.champ-val .entete-bouton { color: var(--accent-texte); flex: none; }
.secret { letter-spacing: .18em; font-size: 20px; line-height: 1; color: var(--texte); }
.secret.montre { letter-spacing: .02em; font-size: 19px; font-weight: 600; font-variant-numeric: tabular-nums; user-select: all; -webkit-user-select: all; }
.secret.montre i { font-style: normal; margin-right: .32em; display: inline-block; white-space: nowrap; }
.secret.montre i:last-child { margin-right: 0; }
.cf-note-texte { white-space: pre-wrap; font-size: 16px; line-height: 1.45; }
.temps-reste { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--texte-doux); margin-top: 2px; }
.temps-reste .jauge { flex: 1; color: var(--accent); }
.lettre { font-size: 13.5px; font-weight: 600; color: var(--accent-texte); min-height: 44px; display: inline-flex; align-items: center; }
.cf-epele { font-size: 14px; line-height: 1.5; color: var(--texte); }
.cf-epele:empty { display: none; }
.jauge { display: block; height: 3px; border-radius: 2px; overflow: hidden; position: relative; }
.jauge::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: currentColor; transform-origin: 0 50%; transform: scaleX(var(--reste, .6)); }
@media (prefers-reduced-motion: no-preference) { .jauge.court::after { animation: cf-se-vide var(--duree-jauge, 20s) linear forwards; } }
@keyframes cf-se-vide { from { transform: scaleX(var(--reste, .6)); } to { transform: scaleX(0); } }
.actions-c { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.actions-c.deux { grid-template-columns: 1fr 1fr; }
.actions-c .action-rapide { min-height: 64px; font-size: 12.5px; }
.actions-c .action-rapide.fort { background: var(--accent); color: var(--accent-contraste); box-shadow: none; }
.actions-c .action-rapide.fort .ic { color: var(--accent-contraste); }
.face { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--texte-doux); margin-top: 10px; }
.face .ic { width: 15px; height: 15px; flex: none; }
.infos { margin-top: 22px; }
.infos .ligne { min-height: 52px; padding: 11px 0; }
.petit-av { width: 40px; height: 40px; font-size: 13px; }
.gest-carte { margin-top: 18px; padding: 16px; border-radius: var(--r-carte); background: var(--voile); }
.gest-carte p { font-size: 14.5px; line-height: 1.45; }
.gest-carte p .ic { vertical-align: -3px; color: var(--accent-texte); }
.gest-carte .btn { margin-top: 14px; }

/* Message « Copié » : au-dessus de la barre, avec la jauge du presse-papiers */
.copie { position: fixed; left: 16px; right: 16px; bottom: calc(var(--barre-h, 0px) + 20px + var(--bas-sur, 0px)); z-index: 34; margin: 0 auto; max-width: 440px; border-radius: 18px; padding: 12px 14px 10px; background: var(--prune); color: #FBFAF6; box-shadow: 0 18px 40px -18px rgba(36, 21, 43, .6); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .copie { background: #EFE9F3; color: var(--prune); } }
:root[data-theme="dark"] .copie { background: #EFE9F3; color: var(--prune); }
.copie .haut { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; }
.copie .haut .ic { width: 20px; height: 20px; flex: none; }
.copie .haut button { margin-left: auto; font-size: 14px; font-weight: 600; min-height: 44px; padding: 0 6px; color: inherit; text-decoration: underline; text-underline-offset: .2em; }
.copie .jauge { margin-top: 6px; color: currentColor; opacity: .55; }
@media (prefers-reduced-motion: no-preference) { .copie { animation: cf-monte 240ms var(--ease-out); } }
@keyframes cf-monte { from { transform: translateY(12px); opacity: 0; } }

/* ---------- 05 : ajouter, modifier, générateur ---------- */
.choix-c { display: grid; gap: 10px; margin-top: 14px; }
.choix-n { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: start; text-align: left; padding: 14px; border-radius: var(--r-carte); background: var(--carte); box-shadow: inset 0 0 0 1px var(--ligne); width: 100%; color: var(--texte); }
.choix-n.choisi { box-shadow: inset 0 0 0 2px var(--accent); }
.choix-n[aria-disabled="true"] { opacity: .62; }
.choix-n .rond-ic { width: 40px; height: 40px; }
.choix-n .nom { font-weight: 600; font-size: 16.5px; }
.choix-n .quoi { font-size: 14px; color: var(--texte-doux); margin-top: 3px; line-height: 1.4; }
.choix-n .limite { font-size: 13.5px; margin-top: 8px; line-height: 1.4; display: flex; gap: 6px; }
.choix-n .limite .ic { width: 15px; height: 15px; flex: none; margin-top: 2px; color: var(--texte-doux); }
.choix-n .chevron { color: var(--texte-doux); margin-top: 10px; }
.choix-n .coche { width: 22px; height: 22px; border-radius: 50%; border: 1.75px solid var(--ligne); display: grid; place-items: center; color: var(--accent-contraste); margin-top: 2px; }
.choix-n.choisi .coche { background: var(--accent); border-color: var(--accent); }
.change { margin-top: 14px; font-size: 13.5px; color: var(--texte-doux); line-height: 1.45; }
.form-c { padding-bottom: 8px; }
.champ-f { margin-top: 16px; }
.champ-f label { display: block; }
.champ-f .lab { display: block; font-size: 13.5px; font-weight: 600; color: var(--texte-doux); margin-bottom: 6px; }
.champ-f .saisie { display: flex; align-items: center; gap: 6px; min-height: 50px; padding: 0 6px 0 14px; border-radius: var(--r-champ); background: var(--carte); box-shadow: inset 0 0 0 1px var(--ligne); font-size: 17px; }
.champ-f .saisie:focus-within { box-shadow: inset 0 0 0 2px var(--accent); }
.champ-f .saisie .val { flex: 1; min-width: 0; }
.champ-f .saisie .val .ic { vertical-align: -3px; color: var(--accent-texte); }
.saisie-c { width: 100%; min-height: 50px; border: 0; border-radius: var(--r-champ); background: var(--carte); box-shadow: inset 0 0 0 1px var(--ligne); padding: 0 14px; font-size: 17px; color: var(--texte); }
.saisie-c:focus { outline: none; box-shadow: inset 0 0 0 2px var(--accent); }
.saisie .saisie-c { box-shadow: none; padding: 0; background: transparent; flex: 1; min-width: 0; }
.saisie .saisie-c:focus { box-shadow: none; }
.secret-c { font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.zone-c { padding: 13px 14px; resize: vertical; line-height: 1.45; min-height: 76px; }
select.saisie-c { appearance: none; -webkit-appearance: none; background-image: none; }
.deux-saisies { gap: 10px; padding-right: 2px; margin-bottom: 8px; }
.champ-f .aide { font-size: 13px; color: var(--texte-doux); margin-top: 6px; line-height: 1.4; }
.champ-f .aide:empty { display: none; }
.champ-f .deux-boutons { margin-top: 10px; }
.champ-f .segments { margin-top: 2px; }
.champ-f .segments .puce.actif { background: var(--accent); color: var(--accent-contraste); box-shadow: none; }
.champ-f > .saisie-c { margin-top: 10px; }
.generateur { margin-top: 12px; padding: 14px 16px 6px; border-radius: var(--r-carte); background: var(--carte); box-shadow: var(--ombre); }
.segments-c { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: var(--voile); }
.segment { min-height: 44px; border-radius: 11px; font-size: 14.5px; font-weight: 600; color: var(--texte-doux); }
.segment.actif { background: var(--carte); color: var(--texte); box-shadow: 0 1px 4px rgba(36, 21, 43, .12); }
.longueur { display: flex; align-items: center; gap: 14px; padding: 12px 0 4px; }
.longueur .lab { font-weight: 600; font-size: 15px; width: 76px; flex: none; }
.glissiere-c { flex: 1; accent-color: var(--accent); min-height: 44px; }
.longueur .nb-l { font-weight: 700; font-variant-numeric: tabular-nums; width: 28px; text-align: right; }
.generateur .reglage { min-height: 52px; padding: 8px 0; }
.force { display: flex; align-items: center; gap: 12px; padding: 12px 0 10px; border-top: 1px solid var(--ligne); }
.force .crans { display: flex; gap: 4px; }
.force .crans i { width: 22px; height: 6px; border-radius: 3px; background: var(--ok); }
.force .crans i.vide { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ligne); }
.force b { font-size: 15px; }
.force span:last-child { font-size: 13px; color: var(--texte-doux); margin-left: auto; }
.pied-form { position: sticky; bottom: 0; padding: 14px 0 calc(16px + var(--bas-sur, 0px)); background: linear-gradient(to top, var(--fond) 70%, transparent); margin-top: 18px; z-index: 2; }

/* ---------- 06 : dossier d'équipe, empreinte ---------- */
.membre { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--ligne); min-height: 64px; }
.membre:last-child { border-bottom: 0; }
.membre .avatar { width: 42px; height: 42px; font-size: 14px; }
.membre .m-corps { flex: 1; min-width: 0; }
.membre .nom { font-weight: 600; font-size: 16px; }
.membre .m-sous { font-size: 13.5px; color: var(--texte-doux); margin-top: 2px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.membre .droit { font-size: 14px; font-weight: 600; color: var(--accent-texte); display: inline-flex; align-items: center; gap: 2px; min-height: 44px; }
.lien-verif { font-weight: 600; font-size: 13.5px; color: var(--accent-texte); min-height: 44px; margin: -12px 0; }
.lien-groupe { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; color: var(--accent-texte); min-height: 44px; }
.empreinte { margin-top: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 8px; padding: 18px 16px; border-radius: var(--r-carte); background: var(--carte); box-shadow: var(--ombre); }
.empreinte span { font-size: 19px; font-weight: 600; letter-spacing: .04em; font-variant-numeric: tabular-nums; text-align: center; }
.a-changer { margin-top: 14px; padding: 14px 16px; border-radius: var(--r-carte); background: var(--or-voile); display: flex; gap: 12px; align-items: flex-start; }
.a-changer .ic { color: var(--or-texte); margin-top: 1px; flex: none; }
.a-changer p { font-size: 14px; line-height: 1.4; }

/* ---------- 07 : réglages ---------- */
.choix-ouvrir { display: grid; gap: 10px; margin-top: 4px; }
.choix-ouvrir .option { grid-template-columns: 1fr auto; padding: 14px 14px 14px 16px; width: 100%; }
.appareil { display: flex; align-items: center; gap: 12px; padding: 12px 0; min-height: 58px; }
.appareil .ic { color: var(--texte-doux); flex: none; }
.cf-oublier { margin-top: 26px; }
.cf-reglages .reglage .valeur .ic { width: 16px; height: 16px; }

/* ---------- Ordinateur : liste et fiche côte à côte (ordi-ouvert) ---------- */
.contenu:has(> .cf .cv-bureau) { max-width: none; padding: 0; }
.cv-bureau { display: flex; flex-direction: column; min-height: calc(100dvh - 120px); }
.cv-entete { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 18px 32px 10px; }
.cv-entete h1 { font-family: "Gilda Display", serif; font-weight: 400; font-size: 36px; line-height: 1.1; }
.cv-entete p { font-size: 14px; margin-top: 6px; }
.cv-boutons { display: flex; gap: 8px; flex: none; }
.cv-onglets { display: flex; gap: 4px; padding: 0 28px; overflow-x: auto; scrollbar-width: none; }
.cv-onglets button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 10px; font-size: 14.5px; color: var(--texte-doux); border-bottom: 2px solid transparent; white-space: nowrap; }
.cv-onglets button.actif { color: var(--texte); font-weight: 600; border-bottom-color: var(--accent); }
.cv-onglets .n { font-size: 11.5px; font-weight: 600; padding: 1px 7px; border-radius: 8px; background: var(--voile); color: var(--texte-doux); font-variant-numeric: tabular-nums; }
.coffre-volets { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(320px, 420px) minmax(0, 1fr); border-top: 1px solid var(--ligne); }
.cv-liste { border-right: 1px solid var(--ligne); padding: 18px 20px 24px 28px; background: color-mix(in srgb, var(--voile) 28%, var(--fond)); overflow: auto; }
.cv-fiche { padding: 26px 40px 32px; overflow: auto; }
.cv-fiche > * { max-width: 720px; }
.cv-cherche { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border-radius: 12px; background: var(--carte); box-shadow: inset 0 0 0 1px var(--ligne); color: var(--texte-doux); }
.cv-cherche:focus-within { box-shadow: inset 0 0 0 2px var(--accent); }
.cv-cherche .ic { width: 17px; height: 17px; flex: none; }
.cv-cherche .cf-cherche-champ { font-size: 14.5px; }
.kbd { font-size: 11.5px; font-weight: 600; padding: 2px 6px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--ligne); color: var(--texte-doux); flex: none; }
.cv-note { font-size: 12.5px; color: var(--texte-doux); margin: 6px 2px 0; }
.cv-groupe { margin-top: 18px; }
.cv-groupe h2 { font-size: 12.5px; font-weight: 600; color: var(--texte-doux); margin: 0 0 4px 10px; }
.cv-liste .cf-el { padding: 9px 10px; border-radius: 12px; border: 0; min-height: 52px; gap: 12px; }
.cv-liste .cf-el:hover { background: color-mix(in srgb, var(--carte) 70%, transparent); }
.cv-liste .cf-el.ouvert { background: var(--carte); box-shadow: var(--ombre); }
.cv-liste .cf-el .rond-ic { width: 34px; height: 34px; border-radius: 11px; }
.cv-liste .cf-el .ligne-titre { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cv-liste .cf-el .ligne-sous { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cv-alerte { display: grid; grid-template-columns: 18px 1fr; gap: 10px; padding: 12px 14px; border-radius: 14px; margin-top: 16px; background: var(--or-voile); font-size: 14px; line-height: 1.45; }
.cv-alerte .ic { color: var(--or-texte); width: 18px; height: 18px; }
.cv-alerte b { display: block; }
.lien-or { font-weight: 600; color: var(--or-texte); text-decoration: underline; text-underline-offset: .18em; min-height: 32px; }
.cv-tete { display: flex; align-items: center; gap: 16px; }
.cv-tete .rond-ic { width: 52px; height: 52px; border-radius: 15px; }
.cv-tete h2 { font-family: "Gilda Display", serif; font-weight: 400; font-size: 30px; line-height: 1.15; }
.cv-tete .a-droite { margin-left: auto; display: flex; gap: 6px; }
.cv-fiche-corps .champs { padding: 4px 18px; }
.cv-fiche-corps .actions-c { grid-template-columns: repeat(3, minmax(0, 160px)); }
.cv-fiche-corps .infos { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.cf .cv-bureau .ferme { min-height: 0; }

/* Coffre fermé sur ordinateur : centré, sans tuile */
@media (min-width: 880px) {
  .cf .ferme { justify-content: center; min-height: 0; padding-block: 40px; }
  .cf .ferme .sceau { margin-top: 0; }
  .cf .ferme .actions { margin-top: 28px; padding-top: 0; }
  .cf .ferme .btn-principal { min-width: 280px; }
  .cf-premier, .cf-reglages, .cf-equipe, .cf-personne, .cf-reut, .form-c, .cf-liste { max-width: 640px; margin-inline: auto; }
  .copie { left: auto; right: 32px; bottom: 32px; }
}

/* Petits écrans (375 px) : on resserre sans rien cacher */
@media (max-width: 380px) {
  .code span { font-size: 19px; }
  .empreinte span { font-size: 17.5px; }
  .actions-c .action-rapide { font-size: 12px; }
  .cf .titre-ecran { font-size: 27px; }
}
.cv-actions { display: flex; gap: 8px; margin-top: 16px; align-items: center; flex-wrap: wrap; }
.cv-actions .doux { font-size: 13px; margin-left: 6px; display: inline-flex; align-items: center; gap: 6px; }
.cv-actions .doux .ic { width: 16px; height: 16px; }
.cv-fiche-corps .champ-val .entete-bouton[aria-pressed="true"] { background: var(--accent-voile); }
/* Protéger par Face ID depuis une note ouverte : la feuille passe au-dessus de la note plein écran (z-index 45). */
:root[data-note="ouverte"] .feuille { z-index: 47; }
:root[data-note="ouverte"] .voile-scene:not(.menu) { z-index: 46; }
.form-c .deux-boutons .btn { font-size: 15px; padding: 0 12px; gap: 8px; }
.champ-f .saisie .val .secret { font-size: 18px; }
/* En-tête du coffre en écran plein (téléphone, coffre fermé) : celui de l'app est caché, celui-ci le remplace à l'identique. */
.cf-entete { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 2px; margin: -4px -12px 0; padding: var(--haut-sur) 0 0; height: calc(52px + var(--haut-sur)); background: var(--fond); }
.cf-entete .entete-titre { flex: 1; text-align: center; justify-content: center; font-weight: 600; font-size: 17px; }
.cf[data-plein] .ferme { min-height: calc(100dvh - 92px - var(--haut-sur) - var(--bas-sur)); padding-bottom: calc(24px + var(--bas-sur)); }
.cf[data-plein] .cf-premier { min-height: calc(100dvh - 76px - var(--haut-sur) - var(--bas-sur)); padding-bottom: calc(16px + var(--bas-sur)); }
/* Choix du dossier : un vrai menu du système, avec sa flèche (l'apparence native est retirée pour suivre les champs). */
.saisie-choix { position: relative; padding-right: 12px; }
.saisie-choix select { cursor: pointer; padding-right: 28px; }
.saisie-choix > .ic { position: absolute; right: 14px; color: var(--accent-texte); pointer-events: none; }

/* Bandeaux du coffre (rotation, créateur injoignable, dossier non ouvert) : le texte en bloc, le bouton dessous. */
.cf .encadre > span:not(.etiquette) { display: block; }
.cf .encadre > .bloc-raison + .bloc-raison { margin-top: 6px; }
.cf-reglages .bon-a-savoir p + p { margin-top: 10px; }
/* Reprises avant une rotation : un choix par élément. */
.ligne.reprise { flex-wrap: wrap; }
.reprise-choix { display: flex; gap: 8px; width: 100%; margin-top: 2px; }
.reprise-choix .btn-ligne[aria-checked="true"] { background: var(--accent); color: var(--accent-contraste); }
.fiche-tete + .encadre { margin-top: 16px; }
