:root{
  --marine:#0B2952;--marine-2:#12386e;--framboise:#AF1B3D;--framboise-soft:#f2d7de;
  --fond:#eef0f3;--carte:#ffffff;--texte:#1a1f2b;--texte-2:#3d4654;--muet:#5b6472;--bord:#e3e6eb;--bord-2:#c9cfd8;
  --bleu-soft:#e6ecf5;--ok:#1f7a4d;--ok-soft:#dcefe4;
  --r:14px;--tabbar:78px;
  --sans:'Manrope',system-ui,-apple-system,sans-serif;--titre:'Sora',var(--sans);
}
*{box-sizing:border-box}
html{scroll-padding-top:env(safe-area-inset-top,0px)}
body{margin:0;background:var(--fond);color:var(--texte);font-family:var(--sans);font-size:15px;line-height:1.45;-webkit-font-smoothing:antialiased;padding-bottom:env(safe-area-inset-bottom,0px)}
body.with-tabbar{padding-bottom:calc(var(--tabbar) + env(safe-area-inset-bottom,0px))}
a{color:var(--marine)}
h1,h2,h3{font-family:var(--titre);color:var(--marine);margin:0;font-weight:600}
h2{font-size:15px}h3{font-size:14px;margin-bottom:8px}
b{font-weight:700}
code{font-size:12px;background:var(--bleu-soft);padding:2px 6px;border-radius:6px}
code.bloc{display:block;padding:10px;white-space:pre-wrap;word-break:break-all}
svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.page{max-width:560px;margin:0 auto}
.section{padding:20px 20px 0}
.section:last-child{padding-bottom:24px}
.section h2{margin-bottom:12px}
.muted{color:var(--muet)}.small{font-size:12px}.accent{color:var(--framboise)}.centre{text-align:center}
.grand{font-family:var(--titre);font-size:24px;color:var(--marine)}
.aide{font-size:12px;color:var(--muet);margin:8px 0 0}
.opt{font-weight:500;color:var(--muet)}

/* Barres */
.topbar{background:var(--marine);color:#fff;padding:calc(12px + env(safe-area-inset-top,0px)) 16px 14px;display:flex;align-items:center;gap:8px}
.topbar h1{color:#fff;font-size:20px}
.topbar .back{width:40px;height:40px;border-radius:20px;display:flex;align-items:center;justify-content:center;color:#fff}
.topbar .back svg{width:24px;height:24px}
.hero{background:var(--marine);color:#fff;padding:calc(20px + env(safe-area-inset-top,0px)) 20px 72px}
.hero-compact{padding-bottom:20px}
.hero h1{color:#fff;font-size:26px;margin-top:14px}
.hero-compact h1{margin-top:0;font-size:22px}
.hero-top{display:flex;justify-content:space-between;align-items:center}
.hero-date{color:#b9c6dc;font-size:14px;margin:4px 0 0;display:flex;align-items:center;gap:8px}
.hero .ico{width:16px;height:16px;color:#b9c6dc}
.hero .chips{margin:12px 0}
.wordmark{height:30px;width:auto;display:inline-block;vertical-align:middle}
.login .wordmark{height:44px}
.wordmark-sub{font-size:13px;color:#b9c6dc;font-weight:500;margin-left:8px}
.sur-titre{font-size:12px;color:#b9c6dc;font-weight:700;letter-spacing:.5px}
.avatar-link{text-decoration:none}
.btn-pill{font-size:13px;font-weight:700;color:#fff;text-decoration:none;border:1px solid #b9c6dc;border-radius:999px;padding:8px 14px}

/* Cartes et tuiles */
.card{background:var(--carte);border:1px solid var(--bord);border-radius:var(--r);padding:16px;margin-bottom:12px}
.card:last-child{margin-bottom:0}
.card-float{margin:-56px 20px 0;box-shadow:0 6px 20px rgba(11,41,82,.12);border:0}
.card p{margin:0 0 8px}.card p:last-child{margin-bottom:0}
.titre-evt{font-size:18px;margin:10px 0 8px}
.infos{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px;font-size:13px;color:var(--texte-2)}
.infos li{display:flex;align-items:center;gap:8px}.infos svg{width:16px;height:16px;color:var(--framboise)}
.infos a{text-decoration:none;color:var(--texte)}
.lien{font-size:13px;font-weight:700;color:var(--framboise);text-decoration:none;display:inline-block;margin-top:10px}
.grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.action{background:var(--carte);border:1px solid var(--bord);border-radius:var(--r);padding:16px 14px;min-height:96px;display:flex;flex-direction:column;justify-content:space-between;gap:10px;text-decoration:none;font-size:14px;font-weight:700;color:var(--marine)}
.action svg{width:26px;height:26px;color:var(--framboise)}
.tile{background:var(--carte);border:1px solid var(--bord);border-radius:12px;padding:12px;display:flex;flex-direction:column;gap:2px}
.tile b{font-family:var(--titre);font-size:22px;color:var(--marine);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tile b.compact{font-size:17px}
.tile span{font-size:12px;color:var(--muet);font-weight:600}
.tile-dark{background:var(--marine-2);border:0}.tile-dark b{color:#fff;font-size:17px}.tile-dark span{color:#b9c6dc;font-size:11px}
.grid3.dark{margin-top:14px}
.tile-dark.large{grid-column:1 / -1}.tile-dark.large b{font-size:26px}
.row-between{display:flex;justify-content:space-between;align-items:center;gap:10px}
.row-start{display:flex;align-items:center;gap:14px}.row-start.wrap{flex-wrap:wrap;margin-top:8px}
.badge{font-size:11px;font-weight:800;letter-spacing:.6px;padding:5px 10px;border-radius:999px;color:#fff;background:var(--marine-2)}
.badge-guest{background:var(--framboise)}.badge-business{background:var(--marine)}.badge-focus{background:#d97706}.badge-learning{background:#0f766e}.badge-afterwork{background:#7c3aed}.badge-repas{background:#b45309}.badge-autre{background:var(--bord);color:var(--texte-2)}
.card{border-left:4px solid transparent}
.card.evt-guest{border-left-color:var(--framboise)}.card.evt-business{border-left-color:var(--marine)}.card.evt-focus{border-left-color:#d97706}.card.evt-learning{border-left-color:#0f766e}.card.evt-afterwork{border-left-color:#7c3aed}.card.evt-repas{border-left-color:#b45309}
.chips{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}
.chip{height:36px;padding:0 14px;border-radius:999px;border:1px solid var(--bord-2);background:var(--carte);color:var(--marine);font-size:13px;font-weight:600;display:inline-flex;align-items:center;text-decoration:none}
.chip.on{background:var(--marine);color:#fff;border-color:var(--marine)}
.chip-soft{height:auto;padding:4px 10px;font-size:12px;background:var(--bleu-soft);border:0;font-weight:700}
.chip-ok{height:auto;padding:4px 10px;font-size:12px;background:var(--ok-soft);color:var(--ok);border:0;font-weight:700}

/* Boutons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:52px;padding:0 20px;border-radius:12px;border:0;font-family:var(--sans);font-size:16px;font-weight:700;text-decoration:none;cursor:pointer;width:100%;margin-top:6px}
.btn-primary{background:var(--framboise);color:#fff}
.btn-dark{background:var(--marine);color:#fff;font-size:14px;height:48px;justify-content:space-between;margin-top:12px}
.btn-outline{background:var(--carte);color:var(--marine);border:1px solid var(--marine);height:48px;font-size:14px}
.btn-sm{height:40px;font-size:13px;width:auto;margin:0}
.btn-lien{background:none;border:0;padding:8px;font:inherit;font-size:13px;font-weight:700;color:var(--marine);cursor:pointer;text-decoration:underline}

/* Formulaires */
.form{padding:20px;display:flex;flex-direction:column;gap:6px}
.form label,.form-inline label{font-size:12px;font-weight:700;color:var(--muet);letter-spacing:.3px;text-transform:uppercase;margin-top:10px}
.form label.check,.check{text-transform:none;letter-spacing:0;font-size:14px;font-weight:600;color:var(--texte-2);display:flex;align-items:center;gap:10px;min-height:44px}
.check input{width:22px;height:22px;accent-color:var(--framboise)}
input,select,textarea{font-family:var(--sans);font-size:16px;color:var(--texte);background:var(--carte);border:1px solid var(--bord-2);border-radius:12px;padding:0 14px;height:48px;width:100%}
textarea{padding:12px 14px;height:auto;resize:vertical}
input:focus,select:focus,textarea:focus{outline:2px solid var(--marine);outline-offset:1px}
.champ-verrou{display:flex;align-items:center;background:var(--bord);border-radius:12px;padding:0 14px;height:48px}
.champ-verrou input{border:0;background:transparent;padding:0;font-weight:600;color:var(--texte-2)}
.champ-verrou svg{color:var(--muet)}
.champ-montant{display:flex;align-items:center;background:var(--carte);border:1px solid var(--bord-2);border-radius:12px;padding:0 14px;height:56px}
.champ-montant input{border:0;padding:0;font-family:var(--titre);font-size:26px;font-weight:700;color:var(--marine)}
.champ-montant span{font-family:var(--titre);font-size:20px;color:var(--muet)}
.encart{display:flex;gap:10px;background:var(--bleu-soft);border-radius:12px;padding:12px 14px;font-size:13px;color:var(--marine);line-height:1.4;margin-top:12px}
.encart svg{color:var(--marine);margin-top:1px}
.form .grid2 label{margin-top:0}
.form-inline{display:flex;align-items:center;gap:10px;margin:0 0 10px}
.form-inline label{margin:0;white-space:nowrap}
.form-inline.dark label{color:#b9c6dc}
.form-inline.dark input,.form-inline.dark select{background:var(--marine-2);color:#fff;border:0;color-scheme:dark}
.form-inline input[type=date]{width:auto;flex-grow:1}
.recherche{display:flex;align-items:center;gap:10px;background:var(--carte);border:1px solid var(--bord-2);border-radius:12px;padding:0 14px;height:46px;margin-top:12px}
.recherche svg{color:var(--muet)}.recherche input{border:0;padding:0;height:44px}
.recherche.clair{margin-bottom:12px}
.flash{padding:12px 14px;border-radius:12px;margin:12px 20px 0;font-size:14px;font-weight:600}
.form .flash{margin:0 0 6px}
.flash-ok{background:var(--ok-soft);color:var(--ok)}.flash-erreur{background:var(--framboise-soft);color:var(--framboise)}.flash-info{background:var(--bleu-soft);color:var(--marine)}

/* Listes */
.liste{display:flex;flex-direction:column;gap:8px}
.item{display:flex;align-items:center;gap:12px;background:var(--carte);border-radius:12px;border:1px solid var(--bord);padding:12px 14px;text-decoration:none;color:var(--texte)}
.item>div{display:flex;flex-direction:column;gap:1px;flex-grow:1;min-width:0}
.item b{font-size:14px;color:var(--marine)}
.item-col{flex-direction:column;align-items:stretch}
.item.inactif{opacity:.6}
.chevron{color:var(--muet)}
.liste-cartes{display:flex;flex-direction:column;gap:14px}
.avatar{display:inline-flex;align-items:center;justify-content:center;border-radius:50%;background:var(--bleu-soft);color:var(--marine);font-family:var(--titre);font-weight:700;flex-shrink:0;object-fit:cover}
.avatar-sm{width:40px;height:40px;font-size:13px}.avatar-lg{width:64px;height:64px;font-size:20px}
.hero .avatar{background:var(--framboise);color:#fff}
.grid-top{display:flex;flex-direction:column;gap:12px}
.top{margin:0;padding:0;list-style:none;counter-reset:top;display:flex;flex-direction:column;gap:10px;font-size:14px}
.top li{display:flex;justify-content:space-between;align-items:center;gap:10px}
.top li::before{counter-increment:top;content:counter(top);width:22px;height:22px;border-radius:11px;background:var(--bleu-soft);color:var(--marine);font-size:12px;font-weight:800;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;margin-right:8px}
.top-nom{flex-grow:1}
.top-nom{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.top-val{color:var(--marine);white-space:nowrap;font-family:var(--titre);font-size:15px}
.places{display:flex;flex-direction:column;gap:8px;margin:12px 0}
.place{display:flex;align-items:center;gap:10px;background:#f4f6f9;border-radius:10px;padding:8px 12px;min-height:44px;font-size:14px;font-weight:600;color:var(--marine)}
.place .num{width:24px;height:24px;border-radius:12px;background:var(--marine);color:#fff;font-size:12px;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.place>span:nth-child(2){flex-grow:1}
.place.libre{background:var(--carte);border:1px dashed var(--framboise);color:var(--framboise)}
.place.libre .num{background:var(--framboise-soft);color:var(--framboise)}
.jauge{height:10px;border-radius:5px;background:var(--bord);overflow:hidden;margin:10px 0 8px}
.jauge div{height:100%;background:var(--marine);border-radius:5px}

/* Carte de visite */
.carte{padding:0;overflow:hidden;box-shadow:0 6px 20px rgba(11,41,82,.12);border:0}
.carte-bande{height:6px;background:var(--framboise)}
.carte-corps{padding:20px;display:flex;flex-direction:column;gap:16px}
.carte-corps .row-start>div{display:flex;flex-direction:column;gap:3px}
.carte-nom{font-family:var(--titre);font-size:19px;color:var(--marine)}
.carte-societe{font-size:14px;font-weight:700;color:var(--framboise)}
.carte-corps .infos svg{color:var(--marine)}
.carte-corps .chips{margin:0}
.carte-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-top:1px solid var(--bord)}
.carte-btn{height:64px;border:0;background:var(--carte);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;font-family:var(--sans);font-size:12px;font-weight:700;color:var(--marine);text-decoration:none;cursor:pointer}
.carte-btn+.carte-btn{border-left:1px solid var(--bord)}
.carte-btn svg{width:22px;height:22px}
.qr-zone{padding:16px;display:flex;flex-direction:column;align-items:center;gap:10px;border-top:1px solid var(--bord)}
.qr-legende{margin:0;font-size:13px;color:var(--muet);text-align:center;max-width:260px}
.qr{display:flex;justify-content:center;margin:12px 0}
.qr img,.qr canvas,.qr-zone img,.qr-zone canvas{width:200px;height:200px}

/* Tableaux */
.table-wrap{background:var(--carte);border-radius:var(--r);border:1px solid var(--bord);overflow-x:auto;-webkit-overflow-scrolling:touch}
.table{border-collapse:collapse;width:100%;font-size:13px;white-space:nowrap}
.table th{text-align:left;padding:10px 12px;font-size:11px;color:var(--muet);font-weight:700;letter-spacing:.3px;background:#f4f6f9;text-transform:uppercase;cursor:pointer;user-select:none}
.table th.num,.table td.num{text-align:right;padding-left:8px;padding-right:8px}
.table th:last-child,.table td:last-child{padding-right:12px}
.table td{padding:11px 12px;border-top:1px solid var(--fond)}
.table td.lib{font-weight:600;color:var(--marine)}
.table td.lib a{text-decoration:none;color:var(--marine);font-weight:700}
.table tfoot td{background:#f4f6f9;font-weight:700;border-top:2px solid var(--bord-2)}
.table tr.inactif td{color:var(--muet)}
.table th.tri-asc::after{content:' ↑';color:var(--framboise)}.table th.tri-desc::after{content:' ↓';color:var(--framboise)}
.table-sticky th:first-child,.table-sticky td:first-child{position:sticky;left:0;background:var(--carte);z-index:1}
.table-sticky th:first-child{background:#f4f6f9}
.table-sticky tfoot td:first-child{background:#f4f6f9}

/* Présences */
.compteur{display:flex;gap:16px;font-size:14px;color:var(--muet);margin-bottom:10px}
.compteur b{font-family:var(--titre);font-size:18px;color:var(--marine)}
.liste-presences{padding:0}
.presence{border-top:1px solid var(--fond)}.presence:first-child{border-top:0}
.presence-lib{display:flex;align-items:center;gap:12px;padding:12px 14px;min-height:48px;font-size:14px;font-weight:600;color:var(--marine);cursor:pointer}
.presence-lib input{width:24px;height:24px;accent-color:var(--marine);flex-shrink:0}
.presence-lib>span:nth-child(2){flex-grow:1}
.presence-lib small{display:block;font-weight:500}
.tag-absent{display:none;font-size:11px;font-weight:800;color:#fff;background:var(--framboise);padding:3px 8px;border-radius:999px}
.presence-motif{display:none;gap:8px;padding:0 14px 12px 50px}
.presence-motif select,.presence-motif input{height:40px;font-size:13px;border-radius:10px}
.presence.absent{background:#fdf1f4}
.presence.absent .presence-lib{color:var(--framboise)}
.presence.absent .presence-lib input{accent-color:var(--framboise)}
.presence.absent .tag-absent{display:inline-block}
.presence.absent .presence-motif{display:flex;flex-direction:column}

/* Barre d'onglets */
.tabbar{position:fixed;left:0;right:0;bottom:0;height:calc(var(--tabbar) + env(safe-area-inset-bottom,0px));background:var(--carte);border-top:1px solid var(--bord);display:grid;grid-template-columns:repeat(5,minmax(0,1fr));padding:8px 4px calc(14px + env(safe-area-inset-bottom,0px));z-index:10}
.tab{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;font-size:11px;font-weight:600;color:var(--muet);text-decoration:none}
.tab svg{width:22px;height:22px}
.tab.active{color:var(--framboise);font-weight:700}
@media (min-width:560px){.tabbar{max-width:560px;margin:0 auto;border-left:1px solid var(--bord);border-right:1px solid var(--bord)}}

/* Connexion */
.login{padding:calc(48px + env(safe-area-inset-top,0px)) 20px 40px;min-height:100vh;background:var(--marine);display:flex;flex-direction:column;gap:24px}
.login-brand{display:flex;align-items:center}
.login .card h2{margin-bottom:8px}
.login .form{padding:16px}
.no-tabbar .page{max-width:none}
details.card summary{cursor:pointer;font-weight:700;color:var(--marine)}
details.card .form{padding:12px 0 0}

/* Alertes, LinkedIn, push */
.cloche{position:relative;width:40px;height:40px;border-radius:20px;display:flex;align-items:center;justify-content:center;color:#fff;text-decoration:none;margin-right:6px}
.cloche svg{width:22px;height:22px}
.pastille{position:absolute;top:2px;right:2px;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:var(--framboise);color:#fff;font-size:11px;font-weight:800;display:flex;align-items:center;justify-content:center;line-height:1}
.tab-ico{position:relative;display:inline-flex}
.tab-ico .pastille{top:-6px;right:-10px}
.item.non-lue{border-left:3px solid var(--framboise)}
.puce-type{width:10px;height:10px;border-radius:5px;background:var(--marine-2);flex-shrink:0}
.puce-guest{background:var(--framboise)}.puce-post{background:#0a66c2}
.btn-linkedin{display:inline-flex;align-items:center;gap:6px;height:40px;padding:0 14px;border-radius:10px;background:#0a66c2;color:#fff;font-size:13px;font-weight:700;text-decoration:none;white-space:nowrap}
.btn-linkedin svg{width:18px;height:18px}
.btn-linkedin.fait{background:var(--ok-soft);color:var(--ok)}
.btn.fait{background:var(--ok-soft);color:var(--ok);border-color:var(--ok-soft)}
.push-card{margin-top:16px}

/* Éditeur de présentation */
.wysiwyg{border:1px solid var(--bord-2);border-radius:12px;background:var(--carte);overflow:hidden}
.wysiwyg-bar{display:flex;flex-wrap:wrap;gap:2px;padding:6px;border-bottom:1px solid var(--bord);background:#f4f6f9}
.wysiwyg-bar button{min-width:36px;height:34px;padding:0 8px;border:0;border-radius:8px;background:transparent;font-family:var(--sans);font-size:14px;font-weight:700;color:var(--marine);cursor:pointer}
.wysiwyg-bar button:hover{background:var(--bleu-soft)}
.wysiwyg-bar .wb-italic{font-style:italic}.wysiwyg-bar .wb-underline{text-decoration:underline}.wysiwyg-bar .wb-html{margin-left:auto;font-family:monospace;color:var(--muet)}
.wysiwyg-zone{min-height:220px;padding:12px 14px;font-size:15px;line-height:1.5;outline:none}
.wysiwyg-zone:focus{box-shadow:inset 0 0 0 2px var(--marine)}
.wysiwyg-zone h3{font-size:16px;margin:12px 0 6px}.wysiwyg-zone p{margin:0 0 8px}.wysiwyg-zone ul,.wysiwyg-zone ol{margin:0 0 8px;padding-left:22px}.wysiwyg-zone a{color:var(--framboise)}
.wysiwyg textarea{display:none;border:0;border-radius:0;min-height:220px;font-family:monospace;font-size:13px}
.wysiwyg.brut .wysiwyg-zone{display:none}.wysiwyg.brut textarea{display:block}

.form select + input[type=text]{margin-top:6px}
.lien.centre{display:block;text-align:center;margin-top:14px}

/* Pages secondaires : contenu direct avec marges */
.page > .liste, .page > .card, .page > p, .page > h2, .page > details, .page > .recherche, .page > .btn{margin-left:20px;margin-right:20px}
.page > .liste{margin-top:16px}.page > .card{margin-top:16px}.page > h2{margin-top:20px;margin-bottom:10px}.page > p.centre{margin-top:20px}
.page > .liste + .btn{margin-top:16px}.page > .flash + .liste{margin-top:8px}
/* Afterworks */
.carte-aw{display:flex;flex-direction:column;gap:8px;text-decoration:none;color:var(--texte)}
.carte-aw.grande{margin:16px 20px 0;box-shadow:0 6px 20px rgba(11,41,82,.10);border-color:transparent}
.carte-aw .titre-evt{margin:4px 0 0;font-family:var(--titre);font-size:17px;color:var(--marine)}
.item-lien{display:flex;align-items:center;gap:12px;flex-grow:1;min-width:0;text-decoration:none;color:inherit}
.item-lien>div{display:flex;flex-direction:column;gap:1px;min-width:0}
.item .chip{white-space:nowrap}
.toast{position:fixed;left:50%;bottom:calc(var(--tabbar) + 16px + env(safe-area-inset-bottom,0px));transform:translate(-50%,20px);opacity:0;transition:.25s;background:var(--marine);color:#fff;padding:12px 16px;border-radius:12px;font-size:14px;font-weight:600;z-index:50;max-width:calc(100% - 40px);box-shadow:0 6px 20px rgba(11,41,82,.25)}
.toast.on{transform:translate(-50%,0);opacity:1}
.toast a{color:#ffb3c4;font-weight:700;white-space:nowrap}
.no-tabbar .toast{bottom:24px}
.feuille-fond{position:fixed;inset:0;background:rgba(11,41,82,.45);z-index:60;display:flex;align-items:flex-end;justify-content:center}
.feuille{background:var(--carte);border-radius:18px 18px 0 0;width:100%;max-width:560px;padding:12px 12px calc(16px + env(safe-area-inset-bottom,0px));display:flex;flex-direction:column;gap:6px;animation:monter .2s ease-out}
@keyframes monter{from{transform:translateY(40px);opacity:0}to{transform:none;opacity:1}}
.feuille-titre{font-family:var(--titre);font-size:15px;color:var(--marine);padding:6px 8px 10px;font-weight:600}
.feuille-btn{display:flex;align-items:center;gap:12px;min-height:50px;padding-top:8px;padding-bottom:8px;padding:0 12px;border:0;border-radius:12px;background:#f4f6f9;color:var(--marine);font-family:var(--sans);font-size:15px;font-weight:600;text-decoration:none;text-align:left;cursor:pointer;width:100%}
.feuille-btn:hover{background:var(--bleu-soft)}
.feuille-ico{width:28px;text-align:center;font-size:18px}
.feuille-annuler{margin-top:6px;height:46px;border:0;border-radius:12px;background:transparent;color:var(--muet);font-family:var(--sans);font-size:14px;font-weight:700;cursor:pointer}
@media (min-width:560px){.feuille-fond{align-items:center}.feuille{border-radius:18px;padding-bottom:16px}}
.feuille-btn b{display:block;font-weight:700}.feuille-btn small{display:block;font-size:12px;font-weight:500;color:var(--muet)}
.btn-pill.sombre{color:var(--marine);border-color:var(--marine);font-size:12px;padding:6px 12px}
.graph{background:var(--carte);border:1px solid var(--bord);border-radius:var(--r);padding:12px;margin-bottom:12px}
.graph h3{margin:0 0 6px}
.graph canvas{width:100%!important;height:220px!important}
.form-inline.wrap{flex-wrap:wrap}
.chip-check{cursor:pointer;gap:6px}.chip-check input{width:16px;height:16px;accent-color:var(--framboise);margin:0}
.tile-dark.cumul{background:rgba(255,255,255,.08)}.tile-dark.cumul b{font-size:20px;color:#ffb3c4}
.radios{gap:16px;margin:2px 0}.radios .check{min-height:32px;margin:0}.radios .check input{width:20px;height:20px}
.carte-aw-img{width:calc(100% + 32px);margin:-16px -16px 4px;border-radius:14px 14px 0 0;display:block;max-height:180px;object-fit:cover}
.mail-corps{white-space:pre-wrap;word-break:break-word;font-size:14px;line-height:1.5}
.mail-html{white-space:normal}.mail-html img{max-width:100%;height:auto}.mail-html table{max-width:100%}.mail-html a{color:var(--framboise)}

/* Confirmation après une action */
.confirmation{position:fixed;inset:0;background:rgba(11,41,82,.35);z-index:70;display:flex;align-items:center;justify-content:center;padding:24px;animation:apparaitre .2s ease-out}
.confirmation-carte{background:var(--carte);border-radius:18px;padding:24px 22px 18px;max-width:360px;width:100%;text-align:center;display:flex;flex-direction:column;align-items:center;gap:8px;box-shadow:0 12px 40px rgba(11,41,82,.25)}
.confirmation-carte b{font-family:var(--titre);font-size:20px;color:var(--marine)}
.confirmation-carte span:not(.confirmation-coche){font-size:15px;color:var(--texte-2);line-height:1.4}
.confirmation-carte .btn{margin-top:10px;width:120px}
.confirmation-coche{width:56px;height:56px;border-radius:28px;background:var(--ok-soft);color:var(--ok);display:flex;align-items:center;justify-content:center}
.confirmation-coche svg{width:30px;height:30px;stroke-width:3}
.confirmation.sortie{opacity:0;transition:opacity .25s}
@keyframes apparaitre{from{opacity:0}to{opacity:1}}

/* Réponses des membres (campagnes) */
.boutons-reponse{margin-top:4px}.boutons-reponse .btn{margin:0}
.liste-reponses{margin-top:10px}.liste-reponses summary{cursor:pointer;color:var(--marine)}.liste-reponses .liste{margin-top:8px}
@media print{
  .tabbar,.topbar .back,.sans-impression,form,.confirmation,.flash{display:none!important}
  body{background:#fff}.card{box-shadow:none;border:1px solid #ccc;break-inside:avoid}
}

/* Repas et menus */
.menu-personne{border:1px solid var(--bord);border-radius:12px;padding:10px 14px 4px;margin:0 0 12px}
.menu-personne legend{font-weight:700;color:var(--marine);padding:0 6px}
.menu-cat{font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.3px;color:var(--muet);margin:10px 0 2px}
.radios-menu .check{min-height:36px;margin:0}
.radios-menu .check input{width:20px;height:20px}
[hidden]{display:none!important}
.quantite{padding:6px 0;border-bottom:1px solid var(--fond);font-size:15px}.quantite b{font-family:var(--titre);color:var(--marine)}

/* Cotisations */
.adhesion{padding:12px 14px;margin-bottom:8px}
.adhesion-tete{display:flex;justify-content:space-between;align-items:center;gap:10px}
.adhesion-tete b{display:block;color:var(--marine);font-size:15px}
.adhesion-paiement{margin-top:6px;align-items:center}
.adhesion-payer{display:flex;gap:8px;margin-top:10px;align-items:center}
.adhesion-payer select{flex:1;min-width:0;height:40px;margin:0}
.adhesion-payer input{width:76px;height:40px;margin:0}
.adhesion-payer .btn{flex-shrink:0}
.liens-recu{display:block;margin-top:4px;font-size:13px}.liens-recu .lien,.adhesion-paiement .lien{margin:0}
.aide-cotis{font-size:14px;line-height:1.5}.aide-cotis h3{margin:16px 0 6px;font-size:15px}.aide-cotis ul{padding-left:18px;margin:4px 0 10px}.aide-cotis li{margin-bottom:4px}.aide-cotis p{margin:8px 0 4px}

/* Assemblées générales */
.texte-ag ul,.texte-ag ol{padding-left:20px;margin:6px 0}.texte-ag p{margin:6px 0}
.doc-ag{padding:8px 0;border-bottom:1px solid var(--fond);gap:8px;align-items:center}.doc-ag .lien{margin:0}
.pouvoir{font-size:15px;line-height:1.6}
.emargement td.signature{min-width:140px}
@media print{.emargement{white-space:normal}.emargement td{padding:14px 8px}.table-wrap{border:0}}
.carte-ag{display:block;text-decoration:none;color:inherit;border-left:4px solid var(--framboise)}

/* Signature au doigt */
.zone-signature{margin:12px 0 6px}.zone-signature label{display:block;margin-bottom:6px}
.zone-signature canvas{display:block;width:100%;height:170px;background:#fff;border:2px dashed var(--bord-2);border-radius:12px;touch-action:none;cursor:crosshair}
.zone-signature.erreur canvas{border-color:var(--framboise)}
.signature-img{display:block;width:100%;max-width:260px;height:auto;margin:4px 0;border-bottom:1px solid var(--bord)}

/* Vote et PV */
.bulletin{border:1px solid var(--bord);border-radius:12px;padding:10px 14px;margin:10px 0}
.bulletin .check input:disabled+*,.bulletin .check:has(input:disabled){opacity:.45}
.pv{font-size:15px;line-height:1.6}.pv ul{padding-left:20px}
.signatures-pv{margin-top:24px}.signatures-pv>div{min-height:110px}
.pastille-ligne{display:inline-block;margin-left:6px;padding:1px 8px;border-radius:9px;background:var(--framboise);color:#fff;font-size:11px;font-weight:800;vertical-align:middle}
.attestation-logo{display:block;height:72px;width:auto;margin:0 0 12px;-webkit-print-color-adjust:exact;print-color-adjust:exact}
.barre-sel{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:8px 0 4px;padding:8px 14px;background:var(--carte);border:1px solid var(--bord);border-radius:12px;position:sticky;top:0;z-index:5}
.barre-sel label{display:flex;align-items:center;gap:8px;margin:0}
.case-sel,.barre-sel input[type=checkbox]{width:22px;height:22px;flex-shrink:0;accent-color:var(--framboise)}
.mail-adresse{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.carte-reco b{color:var(--marine)}
.boutons-reco{display:flex;flex-wrap:wrap;gap:8px}
.boutons-reco .btn{flex:1 1 auto;min-width:96px}
.reouvrir{margin:-4px 0 6px 4px}
.reouvrir .boutons-reco{margin-top:6px}
.lien-aide{display:inline-flex;align-items:center;gap:4px;font-size:13px;font-weight:700;color:var(--framboise);text-decoration:none}
.lien-aide::before{content:"?";display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;border-radius:50%;border:2px solid currentColor;font-size:11px}
