/* Écran de la couche Copropriété (conseil syndical), dans l'esprit d'AIE : titres en Cormorant Garamond, texte en
   Manrope, fond sable, cartes en relief douces, touches dorées, animations à ressort. Couleurs de la résidence : vert
   profond et or. Pensé pour tous les âges : texte de 17 px (20 px avec « Plus grand »), boutons de 54 px, fort contraste. */
:root {
  --foret: #143823; --foret-2: #0b2016; --foret-3: #1f4d34; --vert: #1f5a3d; --vert-2: #2f7a55; --vert-doux: #e4efe7;
  --or: #d0a855; --or-fonce: #9a7428; --or-clair: #f4ead2;
  --sable: #f6f2ea; --carte: #fff; --texte: #1f2a24; --doux: #5e6a63; --ligne: #e8e1d4;
  --ambre: #985a00; --ambre-doux: #fbefd9; --rouge: #b23a26; --rouge-doux: #fbe7e2; --bleu: #24578f; --bleu-doux: #e5eef9;
  --gris-doux: #efede7;
  --serif: "Cormorant Garamond", Didot, "Bodoni 72", Georgia, serif;
  --sans: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2,.75,.2,1); --ressort: cubic-bezier(.34,1.56,.64,1);
  --ombre: 0 1px 0 rgba(20,56,35,.04), 0 14px 32px -22px rgba(20,56,35,.45);
  --rayon: 22px; --bas-h: 74px;
  font-size: 17px;
}
:root.grand { font-size: 20px; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--sable); color: var(--texte); font-family: var(--sans); line-height: 1.5; -webkit-font-smoothing: antialiased; overscroll-behavior-x: none; }
a { color: var(--vert); }
h1 { font-family: var(--serif); font-weight: 600; font-size: 2.05rem; line-height: 1.05; letter-spacing: -.01em; color: var(--foret); margin: 0 0 6px; }
h2 { font-family: var(--serif); font-weight: 600; font-size: 1.45rem; line-height: 1.15; color: var(--foret); margin: 0 0 8px; }
h3 { font-size: 1.05rem; margin: 0; color: var(--foret); }
p { margin: 0 0 8px; }
button, input, select, textarea { font: inherit; color: inherit; }
.doux { color: var(--doux); }
.petit { font-size: .86rem; }
[hidden] { display: none !important; }
svg.i { width: 1.3em; height: 1.3em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Écran d'ouverture ---------- */
#ouverture { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; overflow: hidden;
  background: radial-gradient(520px 420px at 50% 38%, rgba(208,168,85,.22), transparent 70%), radial-gradient(900px 700px at 50% 0%, #245a3e, transparent 70%), var(--foret-2);
  animation: ouvre .75s 2.25s cubic-bezier(.7,0,.25,1) forwards; }
#ouverture img { width: min(72vw, 340px); height: auto; animation: approche 2.9s var(--ease) both; }
#ouverture::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 42%, transparent 0 46%, rgba(0,0,0,.35) 100%); pointer-events: none; }
@keyframes approche { from { transform: scale(.92); } to { transform: scale(1.03); } }
@keyframes ouvre { 0% { clip-path: circle(150% at 50% 42%); } 100% { clip-path: circle(0% at 50% 42%); visibility: hidden; } }
#ouverture.fini { display: none; }
@media (prefers-reduced-motion: reduce) { #ouverture { animation: disparait .3s .4s forwards; } #ouverture img { animation: none; } @keyframes disparait { to { opacity: 0; visibility: hidden; } } }

/* ---------- En-tête et onglets ---------- */
.haut { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 8px; padding: calc(env(safe-area-inset-top) + 8px) 14px 8px;
  background: rgba(246,242,234,.86); -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px); border-bottom: 1px solid rgba(232,225,212,.7); }
.haut .nom { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--foret); }
.haut .nom img { width: 42px; height: 42px; border-radius: 12px; box-shadow: 0 0 0 2px var(--sable), 0 0 0 3px var(--or), 0 8px 18px -10px rgba(20,56,35,.6); }
.haut .nom b { font-family: var(--serif); font-weight: 600; font-size: 1.45rem; letter-spacing: .01em; line-height: 1; white-space: nowrap; }
.haut .nom small { display: block; font-size: .62rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--or-fonce); margin-top: 3px; }
.haut .bouton-haut { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 58px; padding: 4px 4px; border: 0; background: none;
  color: var(--foret); text-decoration: none; font-size: .66rem; font-weight: 700; border-radius: 14px; transition: transform .25s var(--ease); }
.haut .bouton-haut .rond-ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: var(--ombre); }
.haut .bouton-haut svg { width: 22px; height: 22px; }
.haut .bouton-haut:active { transform: scale(.94); }
main { max-width: 720px; margin: 0 auto; padding: 18px 18px calc(var(--bas-h) + env(safe-area-inset-bottom) + 32px); }
main.entre > * { animation: monte .55s var(--ease) both; }
main.entre > *:nth-child(2) { animation-delay: .04s; } main.entre > *:nth-child(3) { animation-delay: .08s; } main.entre > *:nth-child(4) { animation-delay: .12s; }
main.entre > *:nth-child(5) { animation-delay: .16s; } main.entre > *:nth-child(6) { animation-delay: .2s; } main.entre > *:nth-child(n+7) { animation-delay: .24s; }
@keyframes monte { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { main.entre > * { animation: none; } }

.onglets { position: fixed; left: 10px; right: 10px; bottom: calc(env(safe-area-inset-bottom) + 8px); z-index: 20; display: flex; gap: 4px; padding: 6px;
  background: rgba(14,32,22,.92); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border-radius: 26px;
  box-shadow: 0 18px 40px -16px rgba(11,32,22,.75), inset 0 1px 0 rgba(255,255,255,.06); max-width: 640px; margin: 0 auto; }
.onglets a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 60px; border-radius: 20px;
  color: rgba(238,232,214,.72); text-decoration: none; font-size: .74rem; font-weight: 700; position: relative; transition: background .3s var(--ease), color .3s; }
.onglets a svg { width: 25px; height: 25px; }
.onglets a.on { color: var(--foret-2); background: linear-gradient(160deg, #f2dc9f, var(--or)); box-shadow: 0 6px 16px -8px rgba(208,168,85,.9); }
.onglets a.on svg { animation: rebond .5s var(--ressort); }
@keyframes rebond { from { transform: scale(.7); } to { transform: none; } }
.pastille { position: absolute; top: 2px; right: calc(50% - 25px); min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--rouge);
  color: #fff; font-size: .72rem; font-weight: 800; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px var(--foret-2); }
.haut .pastille { top: 0; right: 6px; box-shadow: 0 0 0 2px var(--sable); }

@media (min-width: 900px) {
  main { padding-bottom: 40px; padding-top: 28px; }
  .onglets { position: sticky; top: calc(env(safe-area-inset-top) + 72px); bottom: auto; margin: 10px auto 0; width: 640px; }
}

/* ---------- Blocs ---------- */
.titre { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin: 4px 0 18px; flex-wrap: wrap; }
.titre > div { flex: 1; min-width: 220px; }
.titre .sur { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--or-fonce); font-weight: 800; margin: 0 0 4px; }
.carte { background: var(--carte); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 18px; margin-bottom: 14px; }
.carte.plate { box-shadow: none; border: 1px dashed #d8cfbd; background: transparent; }
.carte.verte { background: var(--vert-doux); box-shadow: none; }
.carte.ambre { background: var(--or-clair); box-shadow: none; }
.section { margin: 30px 2px 12px; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.section h2 { margin: 0; }
.section a { font-size: .9rem; font-weight: 800; color: var(--or-fonce); text-decoration: none; }
.vide { text-align: center; color: var(--doux); padding: 26px 18px; }
.retour { display: inline-flex; align-items: center; gap: 6px; min-height: 46px; margin: -6px 0 4px; padding: 0 12px 0 4px; border-radius: 14px; font-weight: 700; text-decoration: none; color: var(--foret); }
.retour:active { background: rgba(20,56,35,.06); }
.bandeau { display: flex; gap: 14px; align-items: center; background: var(--or-clair); color: #5b4210; border-radius: var(--rayon); padding: 16px 18px; margin-bottom: 16px; }
.bandeau.vert { background: linear-gradient(150deg, #e9f3ec, #dfeee4); color: var(--foret); }
.bandeau svg { width: 30px; height: 30px; color: var(--or-fonce); }
.bandeau p { margin: 0; }
.info { background: var(--bleu-doux); color: var(--bleu); padding: 12px 14px; border-radius: 14px; }
.erreur { background: var(--rouge-doux); color: var(--rouge); padding: 12px 14px; border-radius: 14px; font-weight: 700; }
.bonjour .date { font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--or-fonce); font-weight: 800; margin: 0; }
.bonjour h1 { font-size: 2.4rem; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 22px; border-radius: 16px; border: 0;
  background: linear-gradient(160deg, var(--foret-3), var(--foret)); color: #fff; font-weight: 800; font-size: 1rem; text-decoration: none; cursor: pointer; text-align: center;
  box-shadow: 0 10px 22px -12px rgba(20,56,35,.8), inset 0 1px 0 rgba(255,255,255,.12); transition: transform .25s var(--ease), box-shadow .25s; }
.btn:active { transform: scale(.97); }
.btn.or { background: linear-gradient(160deg, #f2dc9f, var(--or) 60%, #bf9443); color: var(--foret-2); box-shadow: 0 10px 22px -12px rgba(160,120,40,.9), inset 0 1px 0 rgba(255,255,255,.5); }
.btn.second { background: #fff; color: var(--foret); box-shadow: inset 0 0 0 2px var(--foret); }
.btn.danger { background: #fff; color: var(--rouge); box-shadow: inset 0 0 0 2px var(--rouge); }
.btn.plein { width: 100%; }
.btn.petit { min-height: 46px; padding: 0 16px; font-size: .92rem; border-radius: 14px; }
.btn:disabled { opacity: .5; }
.lien { background: none; border: 0; color: var(--vert); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; padding: 8px 0; cursor: pointer; min-height: 44px; }
.ligne { display: flex; gap: 10px; align-items: center; }
.boutons { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.boutons .btn { flex: 1 1 190px; }

/* ---------- Formulaires ---------- */
.form { display: flex; flex-direction: column; gap: 18px; }
.l { display: block; font-weight: 800; margin-bottom: 6px; color: var(--foret); }
.aide { display: block; color: var(--doux); font-size: .86rem; margin-top: 4px; font-weight: 400; }
.champ { width: 100%; min-height: 54px; padding: 12px 14px; border: 1.5px solid #cfc6b4; border-radius: 14px; background: #fff; font-size: 1.04rem; transition: border-color .2s, box-shadow .2s; }
textarea.champ { min-height: 120px; resize: vertical; }
.champ:focus { outline: 0; border-color: var(--or); box-shadow: 0 0 0 4px rgba(208,168,85,.25); }
.choix { display: flex; flex-wrap: wrap; gap: 8px; }
.choix button { min-height: 48px; padding: 0 16px; border-radius: 999px; border: 1.5px solid #cfc6b4; background: #fff; font-weight: 700; cursor: pointer; transition: all .2s var(--ease); }
.choix button.on { background: var(--foret); border-color: var(--foret); color: #fff; box-shadow: 0 6px 14px -8px rgba(20,56,35,.8); }
.case { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border: 1.5px solid #cfc6b4; border-radius: 16px; background: #fff; cursor: pointer; transition: all .2s; }
.case input { width: 26px; height: 26px; flex: none; margin: 0; accent-color: var(--foret); }
.case b { display: block; color: var(--foret); }
.case:has(input:checked) { border-color: var(--or); background: #fffaf0; box-shadow: 0 0 0 3px rgba(208,168,85,.18); }
.dates-liste { display: flex; flex-direction: column; gap: 10px; }
.dates-liste .ligne .champ { flex: 1; }
details > summary::-webkit-details-marker { display: none; }

/* ---------- Puces (états) ---------- */
.puce { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: .8rem; font-weight: 800; white-space: nowrap; }
.puce.a_etudier { background: var(--gris-doux); color: #46514b; }
.puce.devis { background: var(--bleu-doux); color: var(--bleu); }
.puce.a_decider { background: var(--ambre-doux); color: var(--ambre); }
.puce.en_cours { background: var(--vert-doux); color: var(--vert); }
.puce.termine { background: #ebebe6; color: #5f625f; }
.puce.urgent { background: var(--rouge-doux); color: var(--rouge); }
.puce.syndic { background: var(--or-clair); color: #7a5a17; }
.puce.accepte { background: var(--vert-doux); color: var(--vert); }
.puce.refuse { background: var(--rouge-doux); color: var(--rouge); }
.puce.en_attente { background: var(--ambre-doux); color: var(--ambre); }

/* ---------- Filtres ---------- */
.filtres { display: flex; gap: 8px; overflow-x: auto; padding: 2px 18px 12px; margin: 0 -18px 4px; scrollbar-width: none; }
.filtres::-webkit-scrollbar { display: none; }
.filtres button { flex: none; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid #d6cdbb; background: #fff; font-weight: 700; cursor: pointer; color: var(--foret); }
.filtres button.on { background: var(--foret); color: #fff; border-color: var(--foret); }

/* ---------- Sujets ---------- */
.sujets { display: flex; flex-direction: column; gap: 12px; }
.sujet { position: relative; display: block; background: #fff; border-radius: var(--rayon); box-shadow: var(--ombre); padding: 16px 18px 16px 22px; color: inherit; text-decoration: none;
  overflow: hidden; transition: transform .25s var(--ease); }
.sujet:active { transform: scale(.98); }
.sujet::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 5px; border-radius: 0 4px 4px 0; background: #d5d0c4; }
.sujet.a_decider::before { background: #d99a2b; } .sujet.devis::before { background: #4a7fc1; } .sujet.en_cours::before { background: var(--vert-2); }
.sujet.termine { opacity: .72; }
.sujet h3 { font-size: 1.08rem; margin-bottom: 3px; }
.sujet .meta { color: var(--doux); font-size: .88rem; }
.sujet .puces { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.sujet .dernier { margin-top: 10px; font-size: .88rem; color: var(--doux); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; padding-top: 10px; border-top: 1px solid var(--ligne); }
.groupe-titre { margin: 26px 2px 10px; font-family: var(--sans); font-size: .74rem; color: var(--or-fonce); text-transform: uppercase; letter-spacing: .2em; font-weight: 800; }

/* Fiche d'un sujet */
.etats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.etats button { min-height: 52px; border-radius: 14px; border: 1.5px solid #d6cdbb; background: #fff; font-weight: 800; cursor: pointer; padding: 6px; transition: all .25s var(--ease); color: var(--foret); }
.etats button.on { color: #fff; border-color: transparent; transform: scale(1.02); box-shadow: 0 8px 18px -10px rgba(0,0,0,.5); }
.etats button.on.a_etudier { background: #5d655f; } .etats button.on.devis { background: var(--bleu); } .etats button.on.a_decider { background: var(--ambre); }
.etats button.on.en_cours { background: var(--vert); } .etats button.on.termine { background: #555; }
.infos { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; margin: 0; }
.infos dt { color: var(--doux); }
.infos dd { margin: 0; font-weight: 800; color: var(--foret); }
.piece { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--ligne); }
.piece:first-child { border-top: 0; padding-top: 0; }
.piece .ico { width: 50px; height: 50px; border-radius: 16px; background: linear-gradient(160deg, var(--or-clair), #ecdcb3); color: var(--or-fonce); display: grid; place-items: center; flex: none; }
.piece .ico svg { width: 26px; height: 26px; }
.piece .corps { flex: 1; min-width: 0; }
.piece .ouvrir { background: none; border: 0; padding: 0; text-align: left; font-weight: 800; color: var(--foret); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 1.02rem; }
.montant { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; color: var(--foret); line-height: 1.2; }
.fil { display: flex; flex-direction: column; gap: 12px; }
.bulle { background: var(--gris-doux); border-radius: 20px 20px 20px 6px; padding: 12px 15px; max-width: 92%; white-space: pre-wrap; word-wrap: break-word; }
.bulle.moi { align-self: flex-end; background: var(--foret); color: #fff; border-radius: 20px 20px 6px 20px; }
.bulle.moi small { color: rgba(255,255,255,.75); }
.bulle.syndic { background: var(--or-clair); }
.bulle.prive { box-shadow: inset 0 0 0 2px var(--or); }
.bulle small { display: block; color: var(--doux); font-size: .78rem; margin-top: 4px; white-space: normal; }
.evenement { align-self: center; text-align: center; color: var(--doux); font-size: .84rem; background: #faf7f0; border: 1px solid var(--ligne); border-radius: 999px; padding: 6px 14px; max-width: 95%; }

/* ---------- Héros (prochaine réunion) ---------- */
.prochaine { position: relative; overflow: hidden; border-radius: 28px; padding: 22px 20px 20px; margin-bottom: 16px; color: #dfe6df;
  background: radial-gradient(420px 220px at 100% 0%, rgba(208,168,85,.38), transparent 60%), linear-gradient(160deg, #23553b, var(--foret-2));
  box-shadow: 0 30px 60px -30px rgba(11,32,22,.75); }
.prochaine::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.09) 45%, transparent 60%);
  transform: translateX(-100%); animation: reflet 3.2s 1s var(--ease) both; pointer-events: none; }
@keyframes reflet { to { transform: translateX(100%); } }
.prochaine .sur { margin: 0; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--or); font-weight: 800; }
.prochaine .quand { font-family: var(--serif); font-size: 2rem; font-weight: 600; line-height: 1.1; margin: 6px 0 4px; color: #fff; }
.prochaine p { margin: 0; }
.prochaine .btn { background: linear-gradient(160deg, #f2dc9f, var(--or) 60%, #bf9443); color: var(--foret-2); position: relative; z-index: 1; }
.prochaine .btn.second { background: rgba(255,255,255,.08); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.4); }

/* Réunions */
.creneau { border-radius: var(--rayon); padding: 16px 18px; margin-bottom: 12px; background: #fff; box-shadow: var(--ombre); border: 2px solid transparent; transition: border-color .3s; }
.creneau.meilleur { border-color: var(--or); }
.creneau.fixe { border-color: var(--vert-2); background: #f3f9f5; }
.creneau .quand { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: var(--foret); line-height: 1.15; }
.reponses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0 8px; }
.reponses button { min-height: 54px; border-radius: 14px; border: 1.5px solid #d6cdbb; background: #fff; font-weight: 800; cursor: pointer; font-size: 1rem; transition: all .25s var(--ressort); color: var(--foret); }
.reponses button.on { transform: scale(1.04); color: #fff; border-color: transparent; }
.reponses button.on.oui { background: var(--vert); } .reponses button.on.peut_etre { background: var(--ambre); } .reponses button.on.non { background: var(--rouge); }
.qui { font-size: .9rem; color: var(--doux); }
.qui b { color: var(--texte); }
.odj { counter-reset: odj; list-style: none; padding: 0; margin: 0; }
.odj li { counter-increment: odj; display: flex; gap: 14px; padding: 12px 0; border-top: 1px solid var(--ligne); }
.odj li:first-child { border-top: 0; }
.odj li::before { content: counter(odj); flex: none; width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(160deg, #f2dc9f, var(--or)); color: var(--foret-2);
  font-family: var(--serif); font-size: 1.2rem; font-weight: 600; display: grid; place-items: center; }
.odj .decision { margin-top: 6px; background: var(--vert-doux); border-radius: 12px; padding: 8px 12px; white-space: pre-wrap; }

/* Mode réunion */
.seance-haut { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.seance-num { font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--or-fonce); font-weight: 800; }
.seance h1 { font-size: 2.5rem; }
.seance .boutons .btn { min-height: 62px; font-size: 1.08rem; }

/* ---------- Le conseil ---------- */
.couverture { position: relative; border-radius: 28px; overflow: hidden; margin-bottom: 18px; box-shadow: 0 30px 60px -32px rgba(11,32,22,.8); }
.couverture img { width: 100%; height: 200px; object-fit: cover; display: block; transform: scale(1.04); animation: zoom 8s var(--ease) both; }
@keyframes zoom { from { transform: scale(1.14); } to { transform: scale(1.02); } }
.couverture .legende { position: absolute; inset: auto 0 0 0; padding: 40px 18px 16px; background: linear-gradient(transparent, rgba(8,26,16,.85)); color: #fff; }
.couverture .legende h1 { color: #fff; margin: 0; }
.couverture .legende p { margin: 2px 0 0; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--or); font-weight: 800; }
.fonction { display: flex; gap: 14px; padding: 12px 0; border-top: 1px solid var(--ligne); align-items: baseline; flex-wrap: wrap; }
.fonction:first-child { border-top: 0; }
.fonction > b { flex: 0 0 150px; color: var(--foret); }
.fonction .noms { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.personne { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--ligne); }
.personne:first-child { border-top: 0; }
.rond { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(160deg, var(--foret-3), var(--foret)); color: #f2dc9f; font-weight: 800; display: grid; place-items: center; flex: none;
  box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--or); font-size: 1rem; }
.personne .corps { flex: 1; min-width: 0; }
.personne .contact { display: flex; gap: 8px; }
.personne .contact a { width: 48px; height: 48px; border-radius: 50%; background: var(--sable); color: var(--foret); display: grid; place-items: center; }
.menu-liste a, .menu-liste button { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 66px; padding: 10px 4px; border: 0; border-top: 1px solid var(--ligne);
  background: none; color: var(--foret); text-decoration: none; font-weight: 800; text-align: left; cursor: pointer; font-size: 1.02rem; }
.menu-liste > :first-child { border-top: 0; }
.menu-liste svg { width: 26px; height: 26px; color: var(--or-fonce); }
.menu-liste small { display: block; font-weight: 500; color: var(--doux); font-size: .86rem; }
.lien-invit { word-break: break-all; background: #fff; border: 1px dashed #d6cdbb; border-radius: 12px; padding: 10px; font-size: .85rem; margin: 8px 0; }

/* Notifications */
.notif { display: flex; gap: 12px; padding: 14px 4px; border-top: 1px solid var(--ligne); color: inherit; text-decoration: none; }
.notif:first-child { border-top: 0; }
.notif.non-lue span:first-child + div > span, .notif.non-lue b { font-weight: 800; color: var(--foret); }
.notif .point { width: 10px; height: 10px; border-radius: 50%; background: var(--or); flex: none; margin-top: 8px; box-shadow: 0 0 0 4px rgba(208,168,85,.2); }
.notif .point.lu { background: transparent; box-shadow: none; }
.notif small { display: block; color: var(--doux); font-weight: 400; }

/* ---------- Connexion ---------- */
body.hors .haut, body.hors .onglets { display: none; }
.connexion { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: calc(env(safe-area-inset-top) + 24px) 18px 24px;
  background: radial-gradient(520px 420px at 50% 20%, rgba(208,168,85,.2), transparent 70%), radial-gradient(900px 700px at 50% 0%, #245a3e, transparent 70%), var(--foret-2); }
.connexion .carte { width: 100%; max-width: 440px; margin: 0; border-radius: 28px; padding: 26px 22px; animation: monte .7s var(--ease) both; }
.connexion .logo { width: 96px; height: 96px; border-radius: 26px; display: block; margin: -70px auto 10px; box-shadow: 0 0 0 4px #fff, 0 0 0 5.5px var(--or), 0 20px 40px -16px rgba(0,0,0,.6); }
.connexion h1 { text-align: center; font-size: 2.2rem; }
.connexion .sur { text-align: center; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--or-fonce); font-weight: 800; margin: -4px 0 4px; }

/* ---------- Divers ---------- */
.chargement { display: flex; justify-content: center; align-items: center; min-height: 40vh; }
.chargement .tourne { width: 42px; height: 42px; border: 3px solid var(--or-clair); border-top-color: var(--or); border-radius: 50%; animation: tourne .9s linear infinite; }
@keyframes tourne { to { transform: rotate(360deg); } }
.toast { position: fixed; left: 50%; bottom: calc(var(--bas-h) + env(safe-area-inset-bottom) + 22px); transform: translateX(-50%); z-index: 60; background: var(--foret-2); color: #fff;
  padding: 14px 20px; border-radius: 16px; font-weight: 700; max-width: calc(100% - 32px); box-shadow: 0 16px 36px -12px rgba(0,0,0,.45), inset 0 0 0 1px rgba(208,168,85,.35);
  animation: toast .45s var(--ressort) both; }
@keyframes toast { from { opacity: 0; transform: translate(-50%, 14px) scale(.96); } to { opacity: 1; transform: translateX(-50%); } }
.toast.erreur-t { background: var(--rouge); }
#maj-appli { position: fixed; left: 16px; right: 16px; bottom: calc(var(--bas-h) + env(safe-area-inset-bottom) + 20px); z-index: 50; display: flex; justify-content: space-between; align-items: center;
  gap: 10px; min-height: 60px; padding: 0 18px; border: 0; border-radius: 18px; background: var(--foret-2); color: #fff; font-size: 1rem; box-shadow: 0 16px 36px -12px rgba(0,0,0,.5); }
#maj-appli span { background: var(--or); color: var(--foret-2); padding: 8px 12px; border-radius: 12px; font-weight: 800; }
.docvue { position: fixed; inset: 0; z-index: 80; background: #fff; display: flex; flex-direction: column; }
.docvue-haut { display: flex; align-items: center; gap: 8px; padding: calc(env(safe-area-inset-top) + 8px) 12px 8px; border-bottom: 1px solid var(--ligne); }
.docvue-haut b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--foret); }
.docvue-haut button { min-height: 48px; min-width: 48px; padding: 0 14px; border: 0; border-radius: 14px; background: var(--sable); color: var(--foret); font-weight: 800; }
.docvue-haut [data-fermer] { background: var(--foret); color: #fff; }
.docvue-corps { flex: 1; overflow: auto; background: #ece8df; padding: 8px; text-align: center; }
.docvue-corps canvas, .docvue-corps img { max-width: 100%; margin: 0 auto 8px; display: block; background: #fff; }
.docvue-bas { padding: 10px 12px calc(env(safe-area-inset-bottom) + 10px); border-top: 1px solid var(--ligne); }
@media print {
  .haut, .onglets, .retour, .boutons, .btn, #maj-appli, .pas-imprimer { display: none !important; }
  body { background: #fff; }
  main { padding: 0; max-width: none; }
  .carte { box-shadow: none; border: 1px solid #ccc; }
}
