/* Bruno, l'application — charte « Flyer pop » (V2) : encre sur papier, une touche d'acide, polices hébergées chez nous.
   Les couleurs de base viennent de charte.css (--b-*) ; ici, les noms historiques de l'appli y sont rebranchés. */
:root {
  --fond: var(--b-fond); --cote: var(--b-bloc); --surface: var(--b-fond); --encre: var(--b-texte); --doux: var(--b-texte-doux); --pale: var(--b-texte-doux);
  --violette: var(--b-texte); --violette-2: var(--b-bloc); --brique: #D4136F; --sur-brique: #FAFAF7; --trait: var(--b-trait); --ombre: 0 10px 30px -12px rgba(14, 14, 14, .22);
  --titre: var(--b-display);
  --texte: var(--b-corps);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --brique: #FF4FA3; --sur-brique: #0E0E0E; --ombre: 0 10px 30px -10px rgba(0, 0, 0, .7); color-scheme: dark; } }
:root[data-theme="dark"] { --brique: #FF4FA3; --sur-brique: #0E0E0E; --ombre: 0 10px 30px -10px rgba(0, 0, 0, .7); color-scheme: dark; }
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--fond); color: var(--encre); font: 16px/1.55 var(--texte); overflow: hidden; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--violette); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--violette); outline-offset: 2px; border-radius: 8px; }
[hidden] { display: none !important; }
svg.i { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.coque { display: flex; height: 100%; height: 100dvh; }

/* barre latérale */
.cote { width: 280px; flex: none; background: var(--cote); border-right: 1px solid var(--trait); display: flex; flex-direction: column; gap: 6px; padding: 12px 10px calc(12px + env(safe-area-inset-bottom)); overflow: hidden; }
.cote-haut { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 10px; }
.marque { font-family: var(--titre); font-weight: 800; font-size: 22px; letter-spacing: -0.03em; color: var(--encre); text-decoration: none; display: inline-flex; align-items: center; gap: 7px; }
.marque svg { width: 24px; height: 24px; }
.action { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 42px; padding: 8px 10px; border: 0; border-radius: 12px; background: transparent; text-align: left; font-weight: 700; }
.action:hover { background: var(--violette-2); }
.action.principale { background: var(--violette); color: var(--surface); }
.action.principale:hover { filter: brightness(1.08); background: var(--violette); }
.recherche { margin: 6px 0; display: flex; align-items: center; gap: 8px; padding: 0 10px; border-radius: 12px; background: var(--surface); border: 1px solid var(--trait); color: var(--pale); }
.recherche input { border: 0; background: transparent; padding: 9px 0; width: 100%; color: var(--encre); outline: none; }
.listes { flex: 1; overflow-y: auto; padding-right: 2px; }
.cote-titre { font-size: 13px; font-weight: 700; color: var(--pale); margin: 14px 10px 4px; }
.liste { list-style: none; margin: 0; padding: 0; }
.liste li { position: relative; }
.liste .lien { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 38px; padding: 7px 34px 7px 10px; border: 0; border-radius: 10px; background: transparent; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--encre); }
.liste .lien span { overflow: hidden; text-overflow: ellipsis; }
.liste .lien:hover, .liste .lien[aria-current="true"] { background: var(--violette-2); }
.liste .plus { position: absolute; right: 4px; top: 4px; width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; color: var(--pale); display: grid; place-items: center; opacity: 0; }
.liste li:hover .plus, .liste .plus:focus-visible, .liste .plus[aria-expanded="true"] { opacity: 1; }
.vide-liste { font-size: 14px; color: var(--pale); padding: 4px 10px; }
.cote-bas { border-top: 1px solid var(--trait); padding-top: 8px; display: grid; gap: 2px; }
.cote-bas .action { font-weight: 400; color: var(--doux); }

/* zone centrale */
.centre { flex: 1; min-width: 0; display: flex; flex-direction: column; position: relative; }
.barre { display: flex; align-items: center; gap: 6px; padding: 10px 14px; min-height: 58px; }
.espace { flex: 1; }
.icone { width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; display: grid; place-items: center; color: var(--doux); }
.icone:hover { background: var(--violette-2); color: var(--encre); }
.selecteur { position: relative; }
.selecteur > button { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 10px; border: 0; border-radius: 10px; background: transparent; font-weight: 700; }
.selecteur > button:hover, .selecteur > button[aria-expanded="true"] { background: var(--violette-2); }
.selecteur > button .sous { font-weight: 400; color: var(--doux); }
.menu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 30; min-width: 260px; max-width: calc(100vw - 24px); background: var(--surface); border: 1px solid var(--trait); border-radius: 14px; box-shadow: var(--ombre); padding: 6px; }
.menu.droite { left: auto; right: 0; }
.menu button { display: grid; grid-template-columns: 24px 1fr; gap: 2px 10px; width: 100%; text-align: left; padding: 9px 10px; border: 0; border-radius: 10px; background: transparent; }
.menu button:hover, .menu button[aria-checked="true"] { background: var(--violette-2); }
.menu b { font-weight: 700; } .menu small { grid-column: 2; color: var(--doux); font-size: 13px; line-height: 1.35; }
.menu .coche { color: var(--violette); visibility: hidden; } .menu button[aria-checked="true"] .coche { visibility: visible; }
.menu .simple { grid-template-columns: 1fr; }
.bouton-barre { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 6px 12px; border-radius: 10px; border: 1px solid var(--trait); background: var(--surface); font-weight: 700; }
.bouton-barre:hover { border-color: var(--violette); }

.vue { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.defile { flex: 1; overflow-y: auto; scroll-behavior: smooth; }
.colonne { max-width: 760px; margin: 0 auto; padding: 8px max(18px, env(safe-area-inset-left)) 24px max(18px, env(safe-area-inset-right)); }

/* accueil vide, composeur centré comme sur Claude */
.vue.vide .defile { display: flex; align-items: flex-end; }
.vue.vide .colonne { width: 100%; }
.salut { display: flex; align-items: center; gap: 14px; justify-content: center; margin: 0 0 22px; }
.salut svg { width: 44px; height: 44px; flex: none; }
.salut h1 { font-family: var(--titre); font-weight: 700; font-size: clamp(30px, 5vw, 44px); letter-spacing: -0.03em; line-height: 1.05; margin: 0; text-wrap: balance; }
.vue:not(.vide) .salut, .vue:not(.vide) .pistes { display: none; }
.vue.vide .bas-fixe { flex: 1; }
.pistes { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; }
.piste { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; min-height: 42px; border-radius: 999px; border: 1px solid var(--trait); background: var(--surface); color: var(--encre); }
.piste:hover { border-color: var(--violette); }
.piste svg { width: 17px; height: 17px; color: var(--violette); }

/* messages */
.msg { margin: 22px 0; }
.msg.moi { display: flex; justify-content: flex-end; }
.msg.moi .texte { background: var(--violette-2); padding: 10px 16px; border-radius: 20px; max-width: 82%; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.bruno { display: grid; grid-template-columns: 30px 1fr; gap: 12px; }
.msg.bruno .avatar svg { width: 28px; height: 28px; margin-top: 2px; }
.msg.bruno .texte { min-width: 0; overflow-wrap: anywhere; }
.msg.bruno .texte p { margin: 0 0 10px; } .msg.bruno .texte p:last-child { margin: 0; }
.curseur::after { content: ""; display: inline-block; width: 8px; height: 17px; margin-left: 2px; vertical-align: -3px; border-radius: 2px; background: var(--violette); animation: clign 1s steps(2) infinite; }
@keyframes clign { 50% { opacity: 0; } }
.pense { color: var(--doux); display: inline-flex; gap: 4px; align-items: center; }
.pense i { width: 7px; height: 7px; border-radius: 50%; background: var(--violette); animation: hop 1.2s infinite; }
.pense i:nth-child(2) { animation-delay: .15s; } .pense i:nth-child(3) { animation-delay: .3s; }
@keyframes hop { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.outils-msg { display: flex; gap: 2px; margin: 6px 0 0 -8px; color: var(--pale); }
.outils-msg button { height: 32px; min-width: 32px; padding: 0 8px; border: 0; border-radius: 8px; background: transparent; color: inherit; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.outils-msg button:hover { background: var(--violette-2); color: var(--encre); }
.outils-msg button[aria-pressed="true"] { color: var(--violette); }
.outils-msg svg.i { width: 17px; height: 17px; }
.msg.moi .outils-msg { justify-content: flex-end; margin: 0; }
.erreur-msg { color: var(--brique); }

/* fiches lieux */
.fiches { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-top: 12px; }
.fiche { border: 1px solid var(--trait); border-radius: 16px; background: var(--surface); padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fiche b { font-family: var(--titre); font-size: 17px; letter-spacing: -0.01em; }
.fiche .adr { font-size: 14px; color: var(--doux); }
.fiche .adr::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--brique); margin-right: 7px; vertical-align: 1px; }
.fiche .liens { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.fiche .liens a, .fiche .liens button { font-size: 14px; display: inline-flex; align-items: center; gap: 5px; min-height: 34px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--trait); background: transparent; color: var(--encre); text-decoration: none; }
.fiche .liens a:hover, .fiche .liens button:hover { border-color: var(--violette); }
.fiche svg.i { width: 15px; height: 15px; }
.nom-lieu { font-weight: 700; color: var(--violette); }

/* composeur */
.bas-fixe { padding: 0 max(14px, env(safe-area-inset-left)) calc(10px + env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-right)); }
.composeur { max-width: 760px; margin: 0 auto; background: var(--surface); border: 1px solid var(--trait); border-radius: 22px; box-shadow: var(--ombre); padding: 10px 10px 8px 16px; }
.composeur textarea { width: 100%; border: 0; resize: none; background: transparent; outline: none; font-size: 17px; line-height: 1.5; max-height: 220px; padding: 6px 0; }
.composeur .ligne { display: flex; align-items: center; gap: 6px; }
.puce { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--trait); background: transparent; color: var(--doux); font-size: 14px; }
.puce:hover { border-color: var(--violette); color: var(--encre); }
.puce svg.i { width: 16px; height: 16px; }
.envoyer { width: 40px; height: 40px; border-radius: 12px; border: 0; background: var(--violette); color: var(--surface); display: grid; place-items: center; }
.envoyer:disabled { opacity: .35; cursor: default; }
.envoyer svg.i { stroke-width: 2.4; }
.micro[aria-pressed="true"] { background: var(--brique); color: var(--sur-brique); border-color: transparent; }
.mention { text-align: center; font-size: 12.5px; color: var(--pale); margin: 8px 0 0; }

/* sorties */
.sortie-tete { padding-top: 18px; }
.sortie-tete h1 { font-family: var(--titre); font-size: clamp(30px, 6vw, 46px); letter-spacing: -0.03em; line-height: 1.05; margin: 0 0 6px; text-wrap: balance; }
.sortie-tete .quand { color: var(--doux); }
.rangee { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 6px; }
.bloc { margin-top: 28px; }
.bloc h2 { font-family: var(--titre); font-size: 22px; letter-spacing: -0.02em; margin: 0 0 10px; }
.props { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.prop { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 12px 14px; border: 1px solid var(--trait); border-radius: 14px; background: var(--surface); }
.prop .nom { font-weight: 700; } .prop .qui { font-size: 13.5px; color: var(--doux); }
.jauge { grid-column: 1 / -1; height: 6px; border-radius: 99px; background: var(--violette-2); overflow: hidden; }
.jauge i { display: block; height: 100%; background: var(--violette); border-radius: 99px; }
.vote { min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--trait); background: transparent; font-weight: 700; }
.vote[aria-pressed="true"] { background: var(--violette); color: var(--surface); border-color: var(--violette); }
.gens { display: flex; flex-wrap: wrap; gap: 8px; }
.gens span { padding: 6px 12px; border-radius: 999px; background: var(--violette-2); font-size: 14px; }
.gens span.peut-etre { background: transparent; border: 1px dashed var(--pale); }
.gens span.non { background: transparent; color: var(--pale); text-decoration: line-through; }
.presence { display: flex; flex-wrap: wrap; gap: 8px; }
.presence button { min-height: 42px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--trait); background: var(--surface); font-weight: 700; }
.presence button[aria-pressed="true"] { border-color: var(--violette); box-shadow: inset 0 0 0 1px var(--violette); color: var(--violette); }
.ajout { display: flex; gap: 8px; margin-top: 10px; }
.ajout input { flex: 1; min-width: 0; min-height: 44px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--trait); background: var(--surface); }
.decision { padding: 16px 18px; border-radius: 16px; background: var(--violette-2); white-space: pre-wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border-radius: 12px; border: 0; background: var(--violette); color: var(--surface); font-weight: 700; text-decoration: none; }
.btn.clair { background: var(--surface); color: var(--encre); border: 1px solid var(--trait); }
.btn:disabled { opacity: .5; }

/* fenêtres */
dialog { border: 1px solid var(--trait); border-radius: 20px; background: var(--surface); color: var(--encre); padding: 22px; width: min(440px, calc(100vw - 28px)); box-shadow: var(--ombre); }
dialog::backdrop { background: rgba(14, 14, 14, .45); }
dialog h2 { font-family: var(--titre); letter-spacing: -0.02em; margin: 0 0 4px; font-size: 24px; }
dialog p { margin: 0 0 14px; color: var(--doux); }
.champ { display: grid; gap: 5px; margin-bottom: 12px; font-weight: 700; font-size: 14.5px; }
.champ input { font-weight: 400; min-height: 46px; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--trait); background: var(--fond); }
.deux { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.boutons { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--encre); color: var(--fond); padding: 10px 16px; border-radius: 12px; font-weight: 700; z-index: 50; max-width: calc(100vw - 28px); }
.lecture { padding: 10px 14px; border-radius: 12px; background: var(--violette-2); margin-top: 14px; font-size: 14.5px; }

/* mobile : barre latérale en tiroir */
.voile { display: none; }
@media (max-width: 860px) {
  .cote { position: fixed; inset: 0 auto 0 0; z-index: 40; transform: translateX(-102%); transition: transform .22s ease; box-shadow: var(--ombre); padding-top: calc(12px + env(safe-area-inset-top)); }
  .coque.cote-ouverte .cote { transform: none; }
  .coque.cote-ouverte .voile { display: block; position: fixed; inset: 0; z-index: 35; background: rgba(14, 14, 14, .4); }
  .barre { padding-top: calc(8px + env(safe-area-inset-top)); }
  .selecteur > button .sous { display: none; }
  .bouton-barre .txt { display: none; }
}
@media (min-width: 861px) { #ouvrir-cote, #fermer-cote { display: none; } }
@media (prefers-reduced-motion: reduce) { .cote { transition: none; } .curseur::after, .pense i { animation: none; } .defile { scroll-behavior: auto; } }

/* ================================================================ V2 : réseau social */
.nav { display: grid; gap: 2px; padding-bottom: 8px; margin-bottom: 4px; border-bottom: 1px solid var(--trait); }
.nav .action[aria-current="page"] { background: var(--violette-2); color: var(--violette); }
.pastille { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--b-rose); color: var(--b-encre); font-size: 12px; font-weight: 700; display: inline-grid; place-items: center; line-height: 1; }
.compte-btn { font-weight: 400 !important; color: var(--encre) !important; }
.compte-txt { display: grid; line-height: 1.2; min-width: 0; } .compte-txt b, .compte-txt small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .compte-txt small { color: var(--pale); }
.titre-vue { font-family: var(--titre); font-size: 22px; letter-spacing: -0.02em; margin: 0 6px; }
.cloche { position: relative; }
.cloche .pastille { position: absolute; top: 3px; right: 2px; margin: 0; min-width: 18px; height: 18px; font-size: 11px; }
.menu.notifs { width: min(380px, calc(100vw - 20px)); max-height: min(70vh, 520px); overflow-y: auto; padding: 8px; }
.notifs-titre { font-family: var(--titre); font-size: 18px; margin: 4px 8px 6px; }
.menu .notif { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; padding: 10px; }
.menu .notif small { display: block; grid-column: auto; margin-top: 2px; }
.menu .notif.neuve { background: var(--violette-2); } .menu .notif.neuve span > span { font-weight: 700; }
.menu .notif svg { color: var(--violette); margin-top: 2px; }
.lien-bouton { border: 0; background: none; padding: 4px 0; color: var(--violette); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.menu .lien-bouton { display: block; padding: 6px 10px; }

/* avatars */
.av { --c: #FF4FA3; flex: none; width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 19px; line-height: 1;
  background: color-mix(in srgb, var(--c) 22%, var(--surface)); box-shadow: inset 0 0 0 2px var(--c); }
.av.grand { width: 56px; height: 56px; font-size: 30px; box-shadow: inset 0 0 0 3px var(--c); }

/* porte d'entrée sans compte */
.porte { max-width: 460px; margin: 40px auto; text-align: center; padding: 28px 22px; border-radius: 24px; background: var(--surface); border: 1px solid var(--trait); box-shadow: var(--ombre); }
.porte svg { width: 52px; height: 52px; }
.porte h2 { font-family: var(--titre); font-size: 28px; letter-spacing: -0.03em; line-height: 1.1; margin: 10px 0 8px; text-wrap: balance; }
.porte p { color: var(--doux); margin: 0 0 6px; }
.porte .rangee { justify-content: center; }
.porte-compte { position: absolute; inset: 0; z-index: 500; display: grid; place-items: center; padding: 16px; background: color-mix(in srgb, var(--fond) 70%, transparent); backdrop-filter: blur(6px); }
.porte-compte .porte { margin: 0; }

/* carte */
#vue-carte { position: relative; overflow: hidden; }
.carte { position: absolute; inset: 0; background: var(--cote); }
.carte-haut { position: absolute; top: 10px; left: 10px; right: 10px; z-index: 450; display: flex; align-items: center; gap: 8px; pointer-events: none; }
.carte-haut > * { pointer-events: auto; }
.puce-carte { display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--trait); background: var(--surface); box-shadow: var(--ombre); font-weight: 700; }
.puce-carte.actif { color: var(--violette); border-color: var(--violette); }
.rond { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--trait); background: var(--surface); box-shadow: var(--ombre); display: grid; place-items: center; color: var(--encre); }
.carte-bas { position: absolute; left: 0; right: 0; bottom: 0; z-index: 450; padding: 0 10px calc(12px + env(safe-area-inset-bottom)); display: grid; gap: 8px; pointer-events: none; }
.carte-bas > * { pointer-events: auto; }
.bande { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px; scrollbar-width: none; align-items: center; }
.bande::-webkit-scrollbar { display: none; }
.bande-vide { margin: 0; padding: 10px 14px; border-radius: 14px; background: var(--surface); box-shadow: var(--ombre); color: var(--doux); font-size: 14.5px; }
.puce-ami { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px 5px 5px; border-radius: 999px; border: 1px solid var(--trait); background: var(--surface); box-shadow: var(--ombre); text-align: left; }
.puce-ami span { display: grid; line-height: 1.2; } .puce-ami small { color: var(--doux); font-size: 12.5px; }
.rangee-carte { display: flex; gap: 8px; justify-content: center; }
.rangee-carte .btn { box-shadow: var(--ombre); min-height: 48px; padding: 8px 20px; border-radius: 999px; }
.repere { background: none; border: 0; }
.pin-lieu { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--violette); border: 3px solid var(--surface); box-shadow: 0 2px 8px rgba(14, 14, 14, .35); }
.pin-lieu.occupe { background: var(--brique); width: 26px; height: 26px; margin: -2px; }
.pin-lieu b { color: var(--surface); font-size: 12px; line-height: 1; }
.pin-sortie { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--b-acide); color: var(--b-encre); border: 3px solid var(--b-encre); box-shadow: 0 3px 10px rgba(14, 14, 14, .35); font-size: 16px; }
.pin-ami { --c: #FF4FA3; position: relative; width: 64px; display: flex; flex-direction: column; align-items: center; filter: drop-shadow(0 3px 6px rgba(14, 14, 14, .35)); }
.pin-emo { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-size: 27px; background: color-mix(in srgb, var(--c) 25%, #FAFAF7); border: 3px solid var(--c); }
.pin-ami.moi .pin-emo { border-color: var(--b-papier); box-shadow: 0 0 0 3px var(--c); }
.pin-nom { margin-top: -6px; padding: 1px 8px; border-radius: 99px; background: var(--c); color: var(--b-encre); font: 700 12px/1.5 var(--texte); max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pin-bulle { position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%); white-space: nowrap; max-width: 170px; overflow: hidden; text-overflow: ellipsis; padding: 4px 10px; border-radius: 12px; background: var(--surface); color: var(--encre); font: 700 12.5px/1.3 var(--texte); }
.leaflet-container { font: inherit; background: var(--cote); }
.bulle-carte .leaflet-popup-content-wrapper { border-radius: 18px; background: var(--surface); color: var(--encre); box-shadow: var(--ombre); }
.bulle-carte .leaflet-popup-tip { background: var(--surface); }
.bulle-carte .leaflet-popup-content { margin: 14px 16px; min-width: 210px; }
.popup { display: grid; gap: 4px; } .popup small { color: var(--doux); } .popup p { margin: 4px 0; }
.popup-titre { font-family: var(--titre); font-size: 18px; letter-spacing: -0.01em; }
.popup-ami { display: flex; gap: 10px; align-items: center; } .popup-ami > div { display: grid; }
.popup .ici { color: var(--brique); font-weight: 700; }
.popup .rangee { margin: 8px 0 0; gap: 6px; }
.btn.petit-btn { min-height: 36px; padding: 5px 12px; font-size: 14px; border-radius: 10px; }
a.btn.clair { color: var(--encre); }
.leaflet-control-attribution { font-size: 10px; }

/* amis */
.moi-carte { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: center; margin-top: 12px; padding: 18px; border-radius: 22px; background: var(--surface); border: 1px solid var(--trait); }
.moi-carte h2 { font-family: var(--titre); font-size: 24px; margin: 0; letter-spacing: -0.02em; } .moi-carte p { margin: 0; color: var(--doux); }
.moi-carte .rangee { grid-column: 1 / -1; margin: 8px 0 0; }
.titre-section { font-family: var(--titre); font-size: 19px; letter-spacing: -0.01em; margin: 26px 0 8px; }
.amis-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.resultats { margin-top: 6px; }
.ami { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 8px 6px; border-radius: 14px; }
.ami:hover { background: var(--violette-2); }
.ami-txt { display: grid; min-width: 0; line-height: 1.3; } .ami-txt small { color: var(--doux); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ami-actions { display: flex; gap: 6px; align-items: center; }
.ami-actions .icone { width: 36px; height: 36px; }

/* sorties */
.tete-sorties { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.tete-sorties p { margin: 0; color: var(--doux); }
.liste-sorties { display: grid; gap: 8px; }
.carte-sortie { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--trait); background: var(--surface); text-align: left; }
.carte-sortie:hover { border-color: var(--violette); }
.carte-sortie > div { display: grid; gap: 2px; min-width: 0; }
.carte-sortie b { font-family: var(--titre); font-size: 18px; letter-spacing: -0.01em; }
.carte-sortie .quand { color: var(--violette); font-weight: 700; font-size: 14.5px; }
.carte-sortie small { color: var(--doux); }
.etiquette { flex: none; padding: 4px 10px; border-radius: 99px; font-size: 13px; font-weight: 700; background: var(--violette-2); }
.etiquette.attendre { background: var(--brique); color: var(--sur-brique); }
.etiquette.non { background: transparent; color: var(--pale); border: 1px solid var(--trait); }
.attente { color: var(--doux); font-size: 14.5px; margin: 10px 0 0; }

/* fenêtres V2 */
.choix-amis { border: 0; padding: 0; margin: 0 0 12px; } .choix-amis legend { font-weight: 700; font-size: 14.5px; margin-bottom: 6px; padding: 0; }
.liste-choix { display: grid; gap: 4px; max-height: 240px; overflow-y: auto; margin-bottom: 10px; }
.choix { display: grid; grid-template-columns: auto auto 1fr auto; gap: 10px; align-items: center; padding: 6px 8px; border-radius: 12px; border: 1px solid var(--trait); cursor: pointer; }
.choix:has(input:checked) { border-color: var(--violette); background: var(--violette-2); }
.choix input { width: 18px; height: 18px; accent-color: var(--violette); } .choix small { color: var(--pale); }
.choix .av { width: 30px; height: 30px; font-size: 16px; }
.options-partage { display: grid; gap: 8px; margin-bottom: 12px; }
.options-partage label { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--trait); cursor: pointer; }
.options-partage label:has(input:checked) { border-color: var(--violette); background: var(--violette-2); }
.options-partage input { width: 18px; height: 18px; accent-color: var(--violette); }
.options-partage span { display: grid; } .options-partage small { color: var(--doux); }
.coche-ligne { display: flex; gap: 10px; align-items: center; margin: 4px 0 12px; font-weight: 700; font-size: 14.5px; }
.coche-ligne input { width: 18px; height: 18px; accent-color: var(--violette); }
.petit { font-size: 13.5px; }
.erreur-form { color: var(--brique); font-weight: 700; margin: 0 0 10px !important; }
.bascule-compte { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: var(--fond); margin-bottom: 14px; }
.bascule-compte button { min-height: 40px; border: 0; border-radius: 10px; background: transparent; font-weight: 700; color: var(--doux); }
.bascule-compte button[aria-selected="true"] { background: var(--surface); color: var(--encre); box-shadow: 0 1px 4px rgba(14, 14, 14, .12); }
.sociaux { display: grid; gap: 6px; }
.sociaux .btn { justify-content: center; } .sociaux small { font-weight: 400; color: var(--pale); }
.ou { display: flex; align-items: center; gap: 10px; color: var(--pale); font-size: 13.5px; margin: 14px 0 10px; }
.ou::before, .ou::after { content: ""; flex: 1; height: 1px; background: var(--trait); }
.invite-de { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--violette-2); margin-bottom: 14px; font-weight: 700; }
.qr { width: min(260px, 70vw); aspect-ratio: 1; margin: 6px auto 8px; padding: 10px; border-radius: 18px; background: #FAFAF7; display: grid; place-items: center; color: #0E0E0E; }
.qr svg { width: 100%; height: 100%; }
.code-ami { text-align: center; font: 700 20px/1 var(--titre); letter-spacing: .08em; color: var(--encre) !important; }
.boutons-3 { flex-wrap: wrap; }
.scan { position: relative; border-radius: 16px; overflow: hidden; background: #000; aspect-ratio: 1; margin-bottom: 12px; display: grid; place-items: center; }
.scan video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scan p { position: relative; color: #fff !important; text-align: center; padding: 10px; margin: 0; background: rgba(0, 0, 0, .45); border-radius: 10px; }
.emojis { display: grid; grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); gap: 6px; font-weight: 400; }
.emoji { height: 42px; border-radius: 12px; border: 1px solid var(--trait); background: var(--fond); font-size: 22px; }
.emoji[aria-pressed="true"] { border-color: var(--violette); box-shadow: inset 0 0 0 2px var(--violette); }
.couleurs { display: flex; flex-wrap: wrap; gap: 8px; }
.pastel { width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--trait); }
.pastel[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--encre); }
.btn.danger { color: var(--brique); }
.btn.danger-plein { background: var(--brique); color: var(--sur-brique); }
dialog { max-height: calc(100dvh - 24px); overflow-y: auto; }

/* onglets du bas (mobile, façon appli) */
.onglets { display: none; }
@media (max-width: 860px) {
  .onglets { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--surface); border-top: 1px solid var(--trait); padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); }
  .onglets button { position: relative; display: grid; justify-items: center; gap: 2px; min-height: 54px; padding: 6px 2px 4px; border: 0; background: transparent; color: var(--pale); font-size: 12px; font-weight: 700; border-radius: 12px; }
  .onglets button svg.i { width: 24px; height: 24px; }
  .onglets button[aria-current="page"] { color: var(--violette); }
  .onglets .pastille { position: absolute; top: 2px; left: calc(50% + 6px); margin: 0; min-width: 18px; height: 18px; font-size: 11px; }
  .coque { height: calc(100dvh - 63px - env(safe-area-inset-bottom)); }
  .toast { bottom: calc(80px + env(safe-area-inset-bottom)); }
  .nav { display: none; }
  .carte-bas { padding-bottom: 10px; }
  .titre-vue { font-size: 20px; }
}
.barre { position: relative; z-index: 600; }
body[data-vue="carte"] .toast { bottom: 96px; }
@media (max-width: 860px) { body[data-vue="carte"] .toast { bottom: calc(150px + env(safe-area-inset-bottom)); } }

/* ================================================================ V3 : plans, fil, bandes */
.dlg-large { width: min(560px, calc(100vw - 20px)); }
.champ-titre { font-weight: 700; font-size: 14.5px; margin: 6px 0 6px !important; color: var(--encre) !important; }
.grille-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; margin: 10px 0 14px; }
.cat { display: grid; justify-items: center; gap: 2px; padding: 8px 4px; border-radius: 14px; border: 1px solid var(--trait); background: var(--fond); font-size: 13px; font-weight: 700; }
.cat-e { font-size: 24px; line-height: 1.1; }
.cat[aria-checked="true"] { border-color: var(--violette); background: var(--violette-2); box-shadow: inset 0 0 0 1px var(--violette); }
.sondage-form { display: grid; gap: 6px; margin-bottom: 12px; }
.sondage-form input, .zone-chez input, .ajout-3 input, .bande-tete input { min-height: 44px; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--trait); background: var(--fond); min-width: 0; }
.champ textarea { font-weight: 400; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--trait); background: var(--fond); resize: vertical; }
.zone-chez { padding: 12px; border-radius: 16px; background: var(--violette-2); margin-bottom: 12px; }
.zone-chez .champ input { background: var(--surface); }
.puces-prevoir, .puces-bandes { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 12px; }
.puce[aria-pressed="true"] { background: var(--violette); color: var(--surface); border-color: var(--violette); }
.bascule-compte button[aria-selected="true"] { background: var(--surface); color: var(--encre); box-shadow: 0 1px 4px rgba(14, 14, 14, .12); }

.plan-tete { padding-top: 16px; }
.plan-tete h1 { font-family: var(--titre); font-size: clamp(30px, 6vw, 46px); letter-spacing: -0.03em; line-height: 1.05; margin: 8px 0 6px; text-wrap: balance; }
.plan-tete .quand { color: var(--doux); }
.pastille-cat { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 99px; background: var(--violette-2); font-size: 13.5px; font-weight: 700; }
.chips-plan { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chips-plan span { padding: 4px 10px; border-radius: 99px; border: 1px solid var(--trait); font-size: 13.5px; color: var(--doux); }
.gens { margin-top: 10px; align-items: center; }
.gens-titre { width: 100%; font-size: 13.5px; color: var(--doux); }
.gens span.attente { background: transparent; border: 1px dashed var(--brique); color: var(--brique); }
.sous-titre { font-family: var(--titre); font-size: 17px; margin: 18px 0 8px; }
.carte-adresse { margin-top: 18px; padding: 14px 16px; border-radius: 16px; background: var(--violette-2); }
.carte-adresse p { margin: 6px 0 0; color: var(--doux); }
.description-plan { margin: 16px 0 0; white-space: pre-wrap; }
.onglets-plan { display: flex; gap: 6px; overflow-x: auto; margin: 26px -4px 0; padding: 4px; scrollbar-width: none; position: sticky; top: 0; background: var(--fond); z-index: 2; }
.onglets-plan::-webkit-scrollbar { display: none; }
.onglets-plan button { flex: none; min-height: 40px; padding: 6px 14px; border-radius: 99px; border: 1px solid var(--trait); background: var(--surface); font-weight: 700; white-space: nowrap; }
.onglets-plan button[aria-selected="true"] { background: var(--encre); color: var(--fond); border-color: var(--encre); }
.corps-onglet { padding: 14px 0 30px; }
.liste-items { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; }
.item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--trait); background: var(--surface); }
.item > div { display: grid; min-width: 0; } .item small { color: var(--doux); }
.item.pris { border-style: dashed; }
.item.moi-dois { border-color: var(--brique); color: var(--brique); font-weight: 700; }
.ajout-3 { display: grid; grid-template-columns: 1fr 76px auto; gap: 8px; }
.total-frais { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.total-frais b { font-family: var(--titre); font-size: 34px; letter-spacing: -0.02em; } .total-frais span { color: var(--doux); }
.mur { display: grid; gap: 8px; max-height: 50vh; overflow-y: auto; padding: 4px 2px 10px; }
.bulle-mur { justify-self: start; max-width: 85%; padding: 8px 12px; border-radius: 16px 16px 16px 4px; background: var(--surface); border: 1px solid var(--trait); }
.bulle-mur.a-moi { justify-self: end; border-radius: 16px 16px 4px 16px; background: var(--violette-2); border-color: transparent; }
.bulle-mur b { font-size: 13px; } .bulle-mur p { margin: 2px 0; white-space: pre-wrap; overflow-wrap: anywhere; } .bulle-mur small { color: var(--pale); font-size: 12px; }
.album { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin-bottom: 12px; }
.album figure { margin: 0; } .album img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; display: block; background: var(--violette-2); }
.album figcaption { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--doux); }
.album figcaption .icone { width: 30px; height: 30px; }

.chaud-box { margin-top: 12px; padding: 16px; border-radius: 22px; background: var(--violette-2); border: 0; }
.chaud-box h2 { font-family: var(--titre); font-size: 24px; margin: 0; letter-spacing: -0.02em; }
.chaud-box .ajout { margin-top: 10px; } .chaud-box .puces-prevoir { margin: 8px 0 0; }
.chaud-box .puce { height: 32px; font-size: 13.5px; }
.fil-liste { display: grid; gap: 10px; margin-top: 16px; }
.fil-item { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--trait); }
.fil-chaud { border-color: color-mix(in srgb, var(--brique) 45%, var(--trait)); }
.fil-corps { display: grid; gap: 6px; min-width: 0; } .fil-corps small { color: var(--doux); }
.fil-texte { margin: 0; } .fil-quand { font-size: 12.5px; }
.fil-corps .rangee { margin: 2px 0 0; }
.partants { display: flex; align-items: center; gap: 2px; } .partants small { margin-left: 6px; }
.av.mini { width: 26px; height: 26px; font-size: 14px; margin-right: -6px; box-shadow: inset 0 0 0 2px var(--c), 0 0 0 2px var(--surface); }
.reactions { display: flex; gap: 4px; flex-wrap: wrap; }
.reaction { min-height: 30px; padding: 2px 9px; border-radius: 99px; border: 1px solid var(--trait); background: transparent; font-size: 14px; }
.reaction[aria-pressed="true"] { background: var(--violette-2); border-color: var(--violette); }
.bande-sugg { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 8px; }
.sugg { flex: none; width: 150px; display: grid; justify-items: center; gap: 4px; text-align: center; padding: 14px 10px; border-radius: 18px; background: var(--surface); border: 1px solid var(--trait); }
.sugg small { color: var(--doux); font-size: 12.5px; line-height: 1.3; min-height: 32px; }
.titre-ligne { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.titre-ligne .titre-section { margin-bottom: 8px; }
.bandes { display: flex; flex-wrap: wrap; gap: 8px; }
.bande { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 16px; border: 1px solid var(--trait); background: var(--surface); text-align: left; }
.bande span:last-child { display: grid; line-height: 1.25; } .bande small { color: var(--doux); }
.bande-e { width: 40px; height: 40px; border-radius: 12px; background: var(--violette-2); display: grid; place-items: center; font-size: 22px; }
.bande-tete { grid-template-columns: 90px 1fr; }
@media (max-width: 860px) { .onglets button { font-size: 11.5px; } .ajout-3 { grid-template-columns: 1fr 64px auto; } }
.fil-corps > button, .fil-corps > .btn { justify-self: start; }

/* V3.1 : Fil + Plans réunis */
.tete-plans { display: flex; gap: 8px; margin-top: 12px; }
.tete-plans .btn { flex: 1; justify-content: center; }
.tete-plans .btn[aria-expanded="true"] { border-color: var(--brique); color: var(--brique); }
#chaud-zone .chaud-box { margin-top: 10px; }
.defile-x { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: -2px; padding: 2px; }
.defile-x::-webkit-scrollbar { display: none; }
.defile-x .puce { flex: none; }
.liste-sorties.invitations .carte-sortie { border-color: var(--brique); box-shadow: inset 3px 0 0 var(--brique); }
.passees { margin-top: 18px; }
.passees summary { cursor: pointer; font-weight: 700; color: var(--doux); padding: 8px 0; }
#fil-social .titre-section { margin-top: 28px; }
@media (max-width: 860px) {
  .liste-sorties.defilant { display: flex; overflow-x: auto; gap: 10px; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
  .liste-sorties.defilant::-webkit-scrollbar { display: none; }
  .liste-sorties.defilant .carte-sortie { flex: none; width: 82%; scroll-snap-align: start; flex-direction: column; align-items: flex-start; }
  .onglets button { font-size: 12px; }
}
.tete-plans .btn { white-space: nowrap; padding-left: 10px; padding-right: 10px; }

/* V3.2 : fil public */
.tete-fil { margin-top: 26px; }
.bascule-fil { margin-bottom: 4px; }
.bascule-compte.portee { margin: 10px 0 0; }
.filtre-cats { margin: 10px 0 0; }
.fil-item { position: relative; }
.fil-public { border-color: var(--trait); }
.fil-plus { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; }
.fil-public .fil-corps { padding-right: 26px; }
.fil-desc { margin: 0; font-size: 14.5px; color: var(--doux); }

/* V3.3 : réactions compactes, compte à rebours, soirées des lieux */
.reaction-plus { color: var(--pale); font-size: 13px; }
.compte-rebours { justify-self: start; padding: 2px 10px; border-radius: 99px; background: color-mix(in srgb, var(--brique) 14%, transparent); color: var(--brique); font-size: 13px; font-weight: 700; }
.fil-evenement { border-color: var(--trait); background: var(--surface); }

/* Environnement de test (port 8443) */
.banniere-test { position: fixed; top: 0; left: 0; right: 0; z-index: 900; text-align: center; font: 700 12px/22px var(--texte); background: var(--b-acide); color: var(--b-encre); }
body.mode-test .coque { padding-top: 22px; }

/* V3.4 : qui voit quoi, garde-fous */
.choix-public { display: grid; gap: 8px; margin-top: 6px; font-weight: 400; }
.choix-public .liste-choix { margin-bottom: 0; }
.petit-info { display: block; color: var(--doux); font-size: 13px; line-height: 1.4; font-weight: 400; }
.bascule-compte.portee { grid-template-columns: repeat(3, 1fr); }
.bascule-compte.portee button { white-space: nowrap; padding: 0 6px; }

/* V3.5 : frais façon Tricount, album photo, après la sortie */
.btn-large { width: 100%; min-height: 52px; font-size: 17px; justify-content: center; margin: 4px 0 14px; }
.txt-centre { text-align: center; }
.situation { border-radius: 20px; padding: 16px; margin-bottom: 12px; display: grid; gap: 10px; background: var(--violette-2); border: 1px solid var(--trait); }
.situation.doit { background: color-mix(in srgb, var(--b-rose) 16%, var(--surface)); border-color: color-mix(in srgb, var(--b-rose) 45%, var(--trait)); }
.situation.recoit { background: color-mix(in srgb, var(--b-bleu) 22%, var(--surface)); border-color: color-mix(in srgb, var(--b-bleu) 50%, var(--trait)); }
.situation-tete small { display: block; color: var(--doux); font-weight: 700; }
.situation-montant { font-family: var(--titre); font-size: 34px; letter-spacing: -0.02em; line-height: 1.1; }
.situation.doit .situation-montant { color: var(--brique); } .situation.recoit .situation-montant { color: var(--encre); }
.situation-ligne { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 10px; border-top: 1px solid color-mix(in srgb, var(--encre) 10%, transparent); }
.situation-ligne .sit-txt { flex: 1; font-weight: 700; min-width: 120px; }
.situation-ligne .rangee { margin: 0; }
.situation .lien-bouton { text-align: left; font-size: 14px; }
.frais-resume { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; margin-bottom: 14px; }
.frais-resume > div { background: var(--surface); border: 1px solid var(--trait); border-radius: 14px; padding: 10px 12px; display: grid; }
.frais-resume small { color: var(--doux); font-size: 13px; } .frais-resume b { font-family: var(--titre); font-size: 20px; }
.etapes { display: grid; gap: 10px; margin-top: 4px; }
.etape { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--trait); }
.etape > div { display: grid; } .etape small { color: var(--doux); }
.etape-i { font-size: 26px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: var(--violette-2); flex: none; }
.historique .item { gap: 10px; }
.grandit { flex: 1; min-width: 0; }
.grandit b, .grandit small { display: block; overflow: hidden; text-overflow: ellipsis; }
.dep-ico { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--violette-2); font-size: 20px; }
.item.remb .dep-ico { background: var(--b-bleu); color: var(--b-encre); font-weight: 800; }
.item.remb { opacity: .85; }
.dep-montant { display: grid; text-align: right; flex: none; } .dep-montant small { color: var(--doux); font-size: 12px; }
.item > .duo { display: flex; align-items: center; gap: 4px; flex: none; } .fleche { color: var(--pale); }
.item.virement { justify-content: flex-start; }

dialog.feuille { width: min(520px, 100vw); }
@media (max-width: 600px) { dialog.feuille { margin: auto 0 0; max-width: 100vw; width: 100vw; border-radius: 24px 24px 0 0; max-height: 92vh; } }
.montant-geant { display: flex; align-items: baseline; justify-content: center; gap: 6px; margin: 4px 0 12px; }
.montant-geant input { font-family: var(--titre); font-size: 48px; font-weight: 800; width: 5.5ch; text-align: right; border: 0; border-bottom: 2px solid var(--trait); background: transparent; color: var(--encre); padding: 0 4px; border-radius: 0; }
.montant-geant input:focus { outline: none; border-bottom-color: var(--violette); }
.montant-geant span { font-family: var(--titre); font-size: 32px; font-weight: 800; color: var(--doux); }
.puces-frais { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.champ-simple { width: 100%; min-height: 46px; border-radius: 12px; border: 1px solid var(--trait); background: var(--fond); padding: 0 12px; font: inherit; color: var(--encre); margin-bottom: 6px; }
.gens-choix { display: flex; gap: 6px; padding-bottom: 4px; }
.gens-grille { flex-wrap: wrap; }
.personne { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 5px; border-radius: 999px; border: 1.5px solid var(--trait); background: var(--surface); color: var(--encre); font: inherit; font-weight: 700; flex: none; min-height: 40px; }
.personne .av { width: 28px; height: 28px; font-size: 15px; }
.personne[aria-pressed="true"] { border-color: var(--violette); background: var(--violette-2); }
.personne[aria-pressed="false"] { opacity: .6; }
.info-part { font-weight: 700; color: var(--violette); margin: 8px 0 0; min-height: 1.4em; }

.album-tete { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.album-tete > div { display: grid; } .album-tete small { color: var(--doux); }
.ajout-photos { border-radius: 18px; margin-bottom: 12px; }
.ajout-photos.vide { border: 2px dashed var(--trait); padding: 22px 16px; text-align: center; background: var(--surface); }
.ajout-photos.vide p { color: var(--doux); margin: 6px 0 14px; }
.ajout-photos.survol { border-color: var(--violette); background: var(--violette-2); }
.ajout-ico { font-size: 40px; display: block; }
.rangee-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; }
.rangee-photos .btn { justify-content: center; min-height: 48px; }
.file-zone { margin-top: 10px; }
.file-envoi { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; }
.tuile-envoi { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--violette-2); }
.tuile-envoi img { width: 100%; height: 100%; object-fit: cover; opacity: .45; transition: opacity .3s; }
.tuile-envoi.fait img { opacity: 1; }
.tuile-envoi .etat { position: absolute; right: 4px; bottom: 4px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: var(--b-acide); color: var(--b-encre); opacity: 0; }
.tuile-envoi.fait .etat, .tuile-envoi.rate .etat { opacity: 1; } .tuile-envoi.rate .etat { background: var(--brique); }
.tuile-envoi.en-cours::after { content: ""; position: absolute; inset: 0; margin: auto; width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--surface); border-top-color: var(--violette); animation: tourne .8s linear infinite; }
@keyframes tourne { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .tuile-envoi.en-cours::after { animation: none; } }
.album { grid-template-columns: repeat(3, 1fr); gap: 4px; }
@media (min-width: 700px) { .album { grid-template-columns: repeat(4, 1fr); } }
.vignette { position: relative; padding: 0; border: 0; border-radius: 6px; overflow: hidden; aspect-ratio: 1; background: var(--violette-2); cursor: zoom-in; }
.vignette img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.vignette:hover img { transform: scale(1.03); }
.badge-like, .badge-couv { position: absolute; bottom: 4px; left: 4px; font-size: 11px; font-weight: 800; padding: 2px 6px; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; }
.badge-couv { left: auto; right: 4px; top: 4px; bottom: auto; color: var(--b-acide); }

.visionneuse { width: 100vw; height: 100dvh; max-width: 100vw; max-height: 100dvh; margin: 0; padding: 0; border: 0; border-radius: 0; background: #0E0E0E; color: #FAFAF7; display: none; }
.visionneuse[open] { display: grid; grid-template-rows: auto 1fr auto; }
.visionneuse::backdrop { background: #0E0E0E; }
.vis-haut { display: flex; align-items: center; gap: 10px; padding: calc(10px + env(safe-area-inset-top)) 12px 10px; }
.vis-info { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; } .vis-info > div { display: grid; } .vis-info small { color: #A8A8A0; }
.vis-compteur { color: #A8A8A0; font-size: 14px; }
.vis-btn { width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; }
.vis-btn .i { width: 22px; height: 22px; stroke: currentColor; }
.vis-scene { position: relative; display: grid; place-items: center; min-height: 0; overflow: hidden; touch-action: pan-y; }
.vis-scene img { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.vis-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 64px; border: 0; background: rgba(255,255,255,.1); color: #fff; font-size: 34px; border-radius: 14px; }
.vis-nav.prec { left: 8px; } .vis-nav.suiv { right: 8px; }
@media (hover: none) { .vis-nav { display: none; } }
.vis-bas { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; padding: 10px 12px calc(14px + env(safe-area-inset-bottom)); }
.vis-action { min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: rgba(255,255,255,.12); color: #fff; font: inherit; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.vis-action.actif { background: var(--b-rose); color: var(--b-encre); }
.vis-action .i { width: 20px; height: 20px; stroke: currentColor; }

.couverture { display: block; position: relative; width: calc(100% + 0px); height: 170px; margin: -4px 0 12px; padding: 0; border: 0; border-radius: 18px; overflow: hidden; background: var(--violette-2); }
.couverture img { width: 100%; height: 100%; object-fit: cover; display: block; }
.couverture span { position: absolute; left: 10px; bottom: 10px; padding: 4px 10px; border-radius: 999px; background: rgba(0,0,0,.6); color: #fff; font-weight: 700; font-size: 13px; }
.chip-action { border: 0; font: inherit; font-size: 13.5px; font-weight: 800; cursor: pointer; padding: 4px 10px; border-radius: 99px; }
.chips-plan .chip-action.doit { background: var(--b-rose); color: var(--b-encre); }
.chips-plan .chip-action.recoit { background: var(--b-bleu); color: var(--b-encre); }
.apres { border-radius: 20px; padding: 16px; margin: 0 0 14px; background: var(--violette-2); border: 0; }
.apres h2 { margin: 0 0 4px; font-family: var(--titre); } .apres p { margin: 0 0 12px; color: var(--doux); }
.apres-boutons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.apres-btn { display: grid; justify-items: start; gap: 2px; padding: 12px; border-radius: 16px; border: 1px solid var(--trait); background: var(--surface); color: var(--encre); font: inherit; text-align: left; cursor: pointer; }
.apres-btn span { font-size: 26px; } .apres-btn small { color: var(--doux); }

.situation, .situation-ligne, .frais-resume, .etapes, .historique, .item.virement, .album-tete, .apres, .feuille .sous-titre, .feuille .titre-ligne { text-align: left; }
.situation-tete { text-align: center; }
.frais-resume > div { text-align: center; }
.album-tete .btn { white-space: nowrap; flex: none; }
.corps-onglet > .sous-titre { text-align: left; }

/* ================================================================ V4 : audit UX, mobile d'abord */
.titre-vue { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pastille, .cloche .pastille, .onglets .pastille { font-size: 12px; min-width: 20px; height: 20px; }

/* barre du bas : Fil · Carte · ＋ · Demander · Moi */
@media (max-width: 860px) {
  .onglets { grid-template-columns: repeat(5, 1fr); }
  .onglets .onglet-plus { place-items: center; align-content: center; }
  .plus-rond { width: 50px; height: 42px; border-radius: 14px; background: var(--violette); color: var(--surface); display: grid; place-items: center; box-shadow: 0 4px 14px rgba(14, 14, 14, .32); }
  .onglets .plus-rond svg.i { width: 26px; height: 26px; stroke-width: 2.4; }
  /* le menu ☰ ne sert plus qu'à retrouver ses discussions, depuis « Demander » */
  body:not([data-vue="chat"]) #ouvrir-cote { display: none; }
  .cote { z-index: 700; }
  .coque.cote-ouverte .voile { z-index: 650; }
  .cote #nouvelle-sortie, .cote .cote-bas, .cote .listes > h2:first-child, .cote #liste-sorties { display: none; }
  #chaud-zone { display: none; }
}

/* Fil : trois vues, un sélecteur fixe */
.segments-zone { position: sticky; top: 0; z-index: 5; background: var(--fond); padding: 6px 0 10px; }
.segments { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 14px; background: var(--cote); border: 1px solid var(--trait); }
.segments button { min-height: 44px; border: 0; border-radius: 10px; background: transparent; font: inherit; font-weight: 700; color: var(--doux); display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.segments button[aria-selected="true"] { background: var(--surface); color: var(--encre); box-shadow: 0 1px 4px rgba(14, 14, 14, .14); }
.segments .pastille { margin: 0; }
.rappel-invitations { width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--brique) 40%, var(--trait)); background: color-mix(in srgb, var(--brique) 10%, var(--surface)); color: var(--brique); font: inherit; font-weight: 700; text-align: left; cursor: pointer; }
.tirer { text-align: center; padding: 10px; color: var(--doux); font-weight: 700; font-size: 14px; }

/* feuilles qui montent du bas, bouton toujours visible */
.feuille-fermer { position: absolute; top: 12px; right: 12px; }
dialog { position: fixed; }
dialog form { position: relative; }
@media (max-width: 600px) {
  dialog:not(.visionneuse) { margin: auto 0 0; width: 100vw; max-width: 100vw; border-radius: 24px 24px 0 0; max-height: 92dvh; padding-bottom: 0; border-bottom: 0; }
  dialog:not(.visionneuse) form::after { content: ""; display: block; height: calc(14px + env(safe-area-inset-bottom)); }
  dialog:not(.visionneuse) .boutons { position: sticky; bottom: 0; background: var(--surface); padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); margin: 12px 0 calc(-14px - env(safe-area-inset-bottom)); border-top: 1px solid var(--trait); z-index: 3; }
  dialog:not(.visionneuse) .boutons .btn { flex: 1; min-height: 48px; }
}
.plus-choix { display: grid; gap: 8px; margin-top: 6px; }
.plus-ligne { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--trait); background: var(--fond); color: var(--encre); font: inherit; text-align: left; cursor: pointer; }
.plus-ligne > span:last-child { display: grid; } .plus-ligne small { color: var(--doux); }
.plus-e { font-size: 28px; width: 44px; text-align: center; flex: none; }
.progression { display: flex; gap: 6px; margin: 2px 0 16px; }
.progression span { flex: 1; font-size: 13px; font-weight: 700; color: var(--pale); padding-top: 8px; border-top: 3px solid var(--trait); }
.progression .actif { color: var(--encre); border-color: var(--violette); }
.progression .fait { color: var(--doux); border-color: color-mix(in srgb, var(--violette) 45%, var(--trait)); }
.plus-options { margin-top: 12px; border-top: 1px solid var(--trait); }
.plus-options summary { min-height: 48px; display: flex; align-items: center; font-weight: 700; cursor: pointer; color: var(--violette); }
.interrupteur { display: flex; align-items: center; gap: 12px; min-height: 48px; font-weight: 700; cursor: pointer; margin: 4px 0 10px; }
.interrupteur input { appearance: none; -webkit-appearance: none; width: 50px; height: 30px; border-radius: 99px; background: var(--trait); position: relative; flex: none; transition: background .2s; margin: 0; cursor: pointer; }
.interrupteur input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.interrupteur input:checked { background: var(--violette); }
.interrupteur input:checked::after { transform: translateX(20px); }

/* page d'un plan : une action visible, la réponse toujours à portée de pouce */
.actions-plan { align-items: center; }
.btn-plus { gap: 6px; }
.presence button { min-height: 46px; }
.presence button[aria-pressed="true"] { background: var(--violette); color: var(--surface); border-color: var(--violette); box-shadow: none; }
.barre-reponse { position: fixed; left: 0; right: 0; bottom: calc(63px + env(safe-area-inset-bottom)); z-index: 25; background: var(--surface); border-top: 1px solid var(--trait); box-shadow: 0 -6px 20px rgba(14, 14, 14, .12); padding: 10px 14px; display: grid; gap: 8px; }
.barre-reponse > b { font-family: var(--titre); font-size: 17px; }
.barre-reponse .presence { display: grid; grid-template-columns: repeat(3, 1fr); }
.barre-reponse .presence button { padding: 6px 4px; }
body.avec-barre-reponse[data-vue="sortie"] #sortie { padding-bottom: 150px; }
@media (min-width: 861px) { .barre-reponse { position: sticky; bottom: 12px; border: 1px solid var(--trait); border-radius: 18px; margin-top: 14px; } body.avec-barre-reponse[data-vue="sortie"] #sortie { padding-bottom: 20px; } }
.onglets-plan { flex-wrap: wrap; overflow: visible; }
.hors-ligne { padding: 10px 14px; border-radius: 12px; background: color-mix(in srgb, var(--b-orange) 30%, var(--surface)); font-weight: 700; margin: 0 0 12px; }

/* notifications : un vrai écran sur mobile */
.notifs-tete { display: flex; align-items: center; gap: 8px; }
.notifs-tete .notifs-titre { flex: 1; margin: 0; }
.notifs-section { font-size: 13px; font-weight: 700; color: var(--doux); margin: 14px 4px 6px; }
@media (max-width: 860px) {
  .menu.notifs { position: fixed; inset: 0; width: auto; max-height: none; border-radius: 0; border: 0; z-index: 800; padding: calc(12px + env(safe-area-inset-top)) 14px calc(90px + env(safe-area-inset-bottom)); overflow-y: auto; }
  .notifs-tete { position: sticky; top: calc(-12px - env(safe-area-inset-top)); background: var(--surface); padding: 6px 0; z-index: 1; }
}
@media (min-width: 861px) { .notifs-fermer { display: none; } }

/* Moi : demandes en tête, réglages */
.bloc-demandes { padding: 12px; border-radius: 18px; background: color-mix(in srgb, var(--brique) 8%, var(--surface)); border: 1px solid color-mix(in srgb, var(--brique) 30%, var(--trait)); margin: 14px 0; }
.bloc-demandes .titre-section { margin-top: 0; }
.reglages { display: grid; gap: 6px; margin-bottom: 28px; }
.reglage { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--trait); background: var(--surface); color: var(--encre); font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.reglage > span { display: grid; } .reglage b { font-weight: 700; } .reglage small { color: var(--doux); font-size: 13.5px; }
.reglage svg.i { flex: none; color: var(--doux); }

/* accueil sans compte */
.accueil { padding: 18px 16px; border-radius: 22px; background: var(--surface); border: 1px solid var(--trait); box-shadow: var(--ombre); margin: 6px 0 18px; }
.accueil h2 { font-family: var(--titre); font-size: 24px; letter-spacing: -0.02em; margin: 0 0 12px; }
.accueil-cartes { display: grid; gap: 8px; margin-bottom: 14px; }
.accueil-carte { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--fond); }
.accueil-carte > div { display: grid; } .accueil-carte small { color: var(--doux); }
.accueil-e { font-size: 26px; width: 40px; text-align: center; flex: none; }
.accueil .petit { margin: 12px 0 0; }

/* carte : noms des lieux au zoom */
.nom-lieu-carte { background: var(--surface); border: 0; box-shadow: 0 1px 4px rgba(0, 0, 0, .22); font: 700 12px/1.2 var(--texte); color: var(--encre); padding: 3px 7px; border-radius: 7px; }
.nom-lieu-carte::before { display: none; }
#carte:not(.zoom-proche) .nom-lieu-carte { display: none; }

/* puces qui défilent : on montre qu'il y en a d'autres */
.defile-x { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); padding-right: 28px; }

/* zones tactiles de 44 px au doigt */
@media (pointer: coarse) {
  .btn.petit-btn { min-height: 44px; }
  .puce { min-height: 44px; }
  .reaction { min-height: 44px; padding: 2px 12px; }
  .outils-msg button { height: 44px; min-width: 44px; }
  .icone { width: 44px; height: 44px; }
  .liste .plus { width: 44px; height: 44px; top: -2px; opacity: 1; }
  .fil-plus { width: 44px; height: 44px; top: 4px; right: 4px; }
  .onglets-plan button { min-height: 44px; }
  .fiche .liens > * { min-height: 44px; }
}
@media (pointer: coarse) {
  .ami-actions .icone, .item .icone, #ouvrir-cote, #retour, #cloche { width: 44px; height: 44px; }
  .fiche .liens a, .fiche .liens button { min-height: 44px; }
  .pastel { width: 44px; height: 44px; }
  .chips-plan .chip-action { min-height: 36px; padding: 6px 12px; }
}
.segments button { white-space: nowrap; padding: 0 6px; }
.notifs-tete .lien-bouton { white-space: nowrap; }
.item .ami-actions { display: flex; align-items: center; gap: 4px; flex-wrap: nowrap; }
@media (max-width: 600px) {
  .chaud-box .ajout { display: grid; grid-template-columns: 1fr; gap: 8px; }
  .chaud-box .ajout .btn { min-height: 48px; }
  .selecteur > button { white-space: nowrap; }
  #amb-txt { display: inline-block; max-width: 30vw; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
  #mode-txt { white-space: nowrap; }
}
.notifs-tete { flex-wrap: wrap; }
.notifs-tete .lien-bouton { order: 3; flex-basis: 100%; text-align: left; min-height: 40px; }
/* En-tête du chat : ne jamais dépasser la largeur de l'écran (sinon le téléphone dézoome et la barre d'onglets sort de l'écran) */
@media (max-width: 600px) {
  .barre { gap: 2px; padding-left: 8px; padding-right: 8px; }
  .barre > * { flex-shrink: 0; }
  .barre .selecteur { flex-shrink: 1; min-width: 0; }
  .barre .selecteur > button { max-width: 100%; padding: 6px 6px; gap: 3px; }
  #mode-txt, #amb-txt { display: inline-block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; min-width: 0; }
  #amb-txt { max-width: 22vw; }
  .barre .espace { flex: 1 1 0; min-width: 0; }
  .bouton-barre { padding: 6px 10px; min-width: 44px; justify-content: center; }
}

/* V4 : avatars à composer, page profil */
.av.av-img { padding: 0; overflow: hidden; background: none; box-shadow: none; font-size: 0; }
.av.av-img svg { width: 100%; height: 100%; display: block; }
.av.grand.av-img { box-shadow: 0 0 0 3px var(--surface), 0 0 0 4px var(--trait); }
.av.mini.av-img { box-shadow: 0 0 0 2px var(--surface); }
.av.geant { width: 104px; height: 104px; font-size: 54px; }
.pin-emo.pin-av { padding: 0; overflow: hidden; background: var(--b-papier); }
.pin-emo.pin-av svg { width: 100%; height: 100%; display: block; }
.cliquable { cursor: pointer; }
.lien-profil { background: none; border: 0; padding: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; min-width: 0; flex: 1; }
.moi-tete { display: flex; align-items: center; gap: 14px; background: none; border: 0; padding: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; width: 100%; }
.moi-tete h2 { margin: 0; } .moi-tete p { margin: 2px 0; }
.voir-profil { color: var(--violette); font-weight: 700; }
.gens-puce { display: inline-flex; align-items: center; gap: 6px; padding-left: 4px !important; }
.gens-puce .av.mini { margin-right: 0; width: 24px; height: 24px; }

.profil-hero { display: flex; align-items: center; gap: 16px; margin: 6px 0 10px; }
.profil-ava { position: relative; background: none; border: 0; padding: 0; border-radius: 50%; flex: none; }
.profil-ava .av { box-shadow: 0 0 0 4px var(--surface), 0 6px 22px rgba(14, 14, 14, .18); }
.profil-ava-crayon { position: absolute; right: -2px; bottom: 2px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); box-shadow: var(--ombre); font-size: 15px; }
.profil-id { min-width: 0; }
.profil-id h1 { margin: 0; font-family: var(--titre); font-size: 28px; letter-spacing: -0.02em; line-height: 1.1; overflow-wrap: anywhere; }
.profil-id small { color: var(--doux); display: block; margin-top: 4px; }
.profil-bio { margin: 0 0 12px; font-size: 16px; line-height: 1.45; white-space: pre-wrap; }
.profil-stats { display: flex; gap: 8px; margin: 0 0 14px; }
.profil-stats > div { flex: 1; display: grid; text-align: center; padding: 10px 6px; border-radius: 14px; background: var(--surface); border: 1px solid var(--trait); }
.profil-stats b { font-family: var(--titre); font-size: 20px; } .profil-stats small { color: var(--doux); font-size: 12.5px; }
.profil-actions { margin-bottom: 8px; } .profil-actions .btn { flex: 1; justify-content: center; min-height: 46px; }
.profil-actions .btn-plus { flex: 0 0 auto; }
.profil-completer { border-radius: 18px; padding: 14px; margin: 8px 0 6px; background: var(--violette-2); border: 1px solid var(--trait); display: grid; gap: 8px; }
.jauge { height: 8px; border-radius: 99px; background: var(--surface); overflow: hidden; }
.jauge span { display: block; height: 100%; border-radius: 99px; background: var(--violette); }
.puces-choix { display: flex; flex-wrap: wrap; gap: 6px; }
.puces-choix .puce { min-height: 40px; }
.puces-lecture { display: flex; flex-wrap: wrap; gap: 6px; }
.puce-lue { padding: 7px 12px; border-radius: 99px; background: var(--surface); border: 1px solid var(--trait); font-weight: 700; font-size: 14px; }
.profil-carte { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--trait); margin-bottom: 8px; }
.profil-carte b { flex: 1 1 100%; } .profil-carte small { color: var(--doux); flex: 1; }
.profil-plans { display: grid; gap: 8px; }
.profil-plan { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--trait); text-align: left; font: inherit; color: inherit; width: 100%; }
button.profil-plan { cursor: pointer; } button.profil-plan:hover { border-color: var(--violette); }
.pp-date { flex: none; width: 48px; height: 52px; border-radius: 12px; background: var(--violette-2); display: grid; place-content: center; text-align: center; line-height: 1.05; }
.pp-date b { font-family: var(--titre); font-size: 20px; color: var(--violette); } .pp-date small { font-size: 12px; color: var(--doux); font-weight: 700; }
.pp-txt { flex: 1; min-width: 0; display: grid; } .pp-txt small { color: var(--doux); }
.pp-fleche { font-size: 26px; color: var(--pale); }
.profil-vide { padding: 14px; border-radius: 16px; border: 1px dashed var(--trait); display: grid; gap: 10px; justify-items: start; }
.profil-vide p { margin: 0; color: var(--doux); }
.profil-communs { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 4px; }
.commun { display: grid; justify-items: center; gap: 4px; background: none; border: 0; font: inherit; color: inherit; cursor: pointer; min-width: 64px; }
.commun small { font-size: 12.5px; font-weight: 700; }
.centre-info { text-align: center; margin: 20px 0 10px; }
.profil-avatar-ligne { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.compteur { float: right; color: var(--pale); font-weight: 400; }
#form-profil textarea { width: 100%; border-radius: 12px; border: 1px solid var(--trait); background: var(--fond); padding: 10px 12px; font: inherit; color: var(--encre); resize: vertical; }

/* le créateur d'avatar */
dialog.editeur-avatar { width: min(560px, 100vw); padding: 0; }
dialog.editeur-avatar form { display: flex; flex-direction: column; max-height: calc(100dvh - 24px); padding: 0; }
@media (max-width: 600px) { dialog.editeur-avatar { margin: 0; width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; } dialog.editeur-avatar form { max-height: 100dvh; height: 100%; } }
.ea-tete { display: grid; justify-items: center; gap: 8px; padding: calc(14px + env(safe-area-inset-top)) 16px 10px; background: var(--violette-2); }
.ea-tete h2 { margin: 0; justify-self: start; }
.ea-apercu svg { width: 132px; height: 132px; display: block; filter: drop-shadow(0 8px 18px rgba(14, 14, 14, .2)); }
.ea-actions { display: flex; gap: 8px; }
.ea-onglets { display: flex; gap: 6px; overflow-x: auto; padding: 8px 12px; border-bottom: 1px solid var(--trait); flex: none; scrollbar-width: none; }
.ea-onglets::-webkit-scrollbar { display: none; }
.ea-onglets .puce { flex: none; min-height: 40px; white-space: nowrap; }
.ea-onglets .puce[aria-selected="true"] { background: var(--encre); color: var(--fond); border-color: var(--encre); }
.ea-grille { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 12px; overflow-y: auto; flex: 1; align-content: start; min-height: 180px; }
.ea-option { aspect-ratio: 1; padding: 4px; border-radius: 16px; border: 2px solid transparent; background: var(--fond); cursor: pointer; }
.ea-option svg { width: 100%; height: 100%; display: block; border-radius: 50%; }
.ea-option[aria-pressed="true"] { border-color: var(--violette); background: var(--violette-2); }
.ea-grille.couleurs { grid-template-columns: repeat(5, 1fr); }
.ea-pastille { display: block; width: 100%; height: 100%; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.editeur-avatar .boutons { padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); margin: 0; border-top: 1px solid var(--trait); background: var(--surface); }

/* ---------------------------------------------------------------- V1 : connexion par e-mail, notifications, installation */
.oubli { margin: -4px 0 10px; text-align: right; }
.lien-btn { background: none; border: 0; padding: 6px 0; color: var(--violette); font: inherit; font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 32px; }
.dlg-v1 h2 { margin-top: 0; }
.dlg-v1 .btn.plein-largeur { width: 100%; justify-content: center; margin: 6px 0; }
.dlg-v1 .rangee { display: flex; gap: 8px; flex-wrap: wrap; }
.dlg-v1 .rangee .btn { flex: 1; justify-content: center; }
.etapes-install { padding-left: 22px; margin: 10px 0; display: grid; gap: 8px; line-height: 1.45; }
.bandeau-v1 { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 14px 14px 14px 12px; margin: 0 0 14px; border-radius: 16px; background: var(--violette-2); border: 1px solid color-mix(in srgb, var(--violette) 20%, transparent); }
.bv-ico { font-size: 26px; line-height: 1; flex: none; }
.bv-txt { flex: 1; min-width: 0; display: grid; gap: 4px; padding-right: 22px; }
.bv-txt small { color: var(--doux); font-size: 13.5px; line-height: 1.4; }
.bv-txt .rangee { margin-top: 6px; }
.bv-fermer { position: absolute; top: 6px; right: 6px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: var(--doux); font-size: 20px; line-height: 1; cursor: pointer; }
.bv-fermer:hover { background: rgba(0, 0, 0, .06); }
.oubli.centre { text-align: center; margin: 14px 0 0; }
.lien-btn:disabled { color: var(--pale); text-decoration: none; cursor: default; }
#dlg-compte.ancien .bascule-compte { display: none; }
#dlg-compte:not(.ancien) [data-ancien] { display: none; }
.dlg-mail h2 { margin-bottom: 6px; }
.dlg-mail .invite-de { margin-bottom: 12px; }
.dlg-mail { overflow-x: hidden; }
.dlg-mail form { min-width: 0; }
.code-6 { width: 100%; max-width: 100%; box-sizing: border-box; font-size: 26px !important; letter-spacing: .3em; text-align: center; font-variant-numeric: tabular-nums; font-weight: 700; text-indent: .3em; }
.btn.charge { opacity: .7; }

/* ---------------------------------------------------------------- fil visuel */
.stories { display: flex; gap: 12px; padding: 4px 2px 6px; margin: 4px 0 2px; }
.story { flex: none; width: 70px; display: grid; justify-items: center; gap: 1px; padding: 0; border: 0; background: none; font: inherit; color: var(--encre); cursor: pointer; }
.story-anneau { position: relative; padding: 3px; border-radius: 50%; background: var(--trait); margin-bottom: 4px; }
.story-anneau .av.grand { box-shadow: 0 0 0 2.5px var(--fond); }
.story-chaud .story-anneau { background: var(--b-rose); }
.story-live .story-anneau { background: var(--b-acide); }
.story-plan .story-anneau { background: var(--b-bleu); }
.story-moi .story-anneau { background: none; padding: 1px; border: 2px dashed var(--pale); }
.story-badge { position: absolute; right: -2px; bottom: -2px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; background: var(--surface); box-shadow: 0 1px 4px rgba(14, 14, 14, .2); }
.story-moi .story-badge { background: var(--b-acide); color: var(--b-encre); font-weight: 700; }
.story b { font-size: 12.5px; max-width: 70px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.story small { font-size: 11px; color: var(--doux); max-width: 70px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.25; }
.fil-titre { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 22px 0 10px; }
.fil-titre h2 { font-family: var(--titre); font-size: 19px; letter-spacing: -0.015em; margin: 0; }
.fil-titre small { color: var(--doux); font-size: 12.5px; text-align: right; }
#fil-social .rappel-invitations { margin-top: 10px; }

.carrousel { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px; margin: 0 -16px; padding: 2px 16px 10px; scrollbar-width: none; }
.carrousel::-webkit-scrollbar { display: none; }
.carrousel > * { flex: 0 0 84%; scroll-snap-align: start; }
.envie { position: relative; overflow: hidden; border-radius: 22px; color: #fff; padding: 16px; min-height: 236px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 12px 26px -14px rgba(14, 14, 14, .55); isolation: isolate; }
.envie::after { content: ""; position: absolute; inset: 0; z-index: -1; background: none; }
.envie.seule { min-height: 0; }
.envie-deco { position: absolute; z-index: -1; right: -16px; top: -10px; font-size: 100px; line-height: 1; transform: rotate(12deg); opacity: .92; pointer-events: none; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .18)); }
.envie-qui { display: flex; align-items: center; gap: 7px; font-size: 14px; color: rgba(255, 255, 255, .92); padding-right: 64px; }
.envie-qui .av.mini { margin: 0; box-shadow: 0 0 0 2px rgba(255, 255, 255, .85); }
.envie-texte { margin: 0; font-family: var(--titre); font-size: 25px; line-height: 1.08; letter-spacing: -0.025em; text-wrap: balance; padding-right: 52px; text-shadow: 0 1px 12px rgba(0, 0, 0, .15); }
.envie-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip-blanc { padding: 4px 10px; border-radius: 99px; background: rgba(255, 255, 255, .2); font-size: 13px; font-weight: 700; backdrop-filter: blur(6px); }
.envie-partants { display: flex; align-items: center; gap: 10px; margin-top: auto; min-height: 28px; }
.envie-partants small { font-size: 13.5px; font-weight: 700; color: rgba(255, 255, 255, .95); }
.pile { display: inline-flex; align-items: center; padding-right: 6px; }
.envie .pile .av.mini { box-shadow: 0 0 0 2px rgba(255, 255, 255, .9); }
.envie-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.envie-actions .btn:first-child { flex: 1 1 auto; justify-content: center; }
.btn.btn-blanc { background: #fff; color: #1F1530; border-color: #fff; box-shadow: 0 4px 14px -6px rgba(0, 0, 0, .35); }
.btn.btn-verre { background: rgba(255, 255, 255, .16); color: #fff; border: 1px solid rgba(255, 255, 255, .4); }
.envie .reactions .reaction { color: #fff; border-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .08); }
.envie .reactions .reaction[aria-pressed="true"] { background: rgba(255, 255, 255, .3); border-color: #fff; }
.envie .reaction-plus { color: rgba(255, 255, 255, .85); }
.envie .fil-plus { color: #fff; z-index: 2; }
.envie-ajout { border: 2px dashed var(--trait); background: var(--surface); color: var(--doux); box-shadow: none; display: grid; place-content: center; justify-items: center; gap: 10px; font: inherit; cursor: pointer; text-align: center; }
.envie-ajout::after { display: none; }
.envie-ajout-plus { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-size: 28px; background: var(--violette-2); color: var(--violette); }
.envie-ajout b { color: var(--encre); font-size: 16px; max-width: 180px; }
@keyframes eclair { 0% { box-shadow: 0 0 0 0 var(--b-acide); } 100% { box-shadow: 0 0 0 14px transparent; } }
.eclair { animation: eclair .9s ease-out 2; }

.carte-plan { position: relative; border-radius: 22px; overflow: hidden; background: var(--surface); border: 1px solid var(--trait); box-shadow: 0 8px 22px -16px rgba(14, 14, 14, .45); }
.cp-cover { position: relative; height: 128px; overflow: hidden; isolation: isolate; }
.cp-cover::after { content: ""; position: absolute; inset: 0; z-index: -1; background: none; }
.cp-cover.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cp-cover.photo::after { z-index: 0; background: linear-gradient(to bottom, rgba(0, 0, 0, .25), transparent 45%); }
.cp-deco { position: absolute; z-index: -1; right: 12px; bottom: -22px; font-size: 104px; line-height: 1; transform: rotate(-8deg); filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .2)); pointer-events: none; }
.cp-date { position: absolute; z-index: 1; left: 12px; top: 12px; min-width: 54px; display: grid; justify-items: center; padding: 6px 9px 7px; border-radius: 14px; background: var(--surface); color: var(--encre); line-height: 1; box-shadow: 0 4px 14px -6px rgba(0, 0, 0, .35); }
.cp-date small { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; color: var(--doux); }
.cp-date b { font-family: var(--titre); font-size: 24px; letter-spacing: -0.02em; margin: 2px 0 1px; }
.cp-date em { font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--violette); margin-top: 4px; }
.cp-badge { position: absolute; z-index: 1; right: 12px; top: 12px; max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 4px 10px; border-radius: 99px; background: rgba(14, 14, 14, .45); color: #fff; font-size: 12.5px; font-weight: 700; backdrop-filter: blur(6px); }
.carte-plan .fil-plus { top: 136px; right: 6px; z-index: 2; }
.cp-corps { padding: 12px 14px 14px; display: grid; gap: 6px; min-width: 0; }
.cp-titre { margin: 0; font-family: var(--titre); font-size: 19px; line-height: 1.15; letter-spacing: -0.015em; padding-right: 26px; }
.cp-meta { margin: 0; font-size: 14px; color: var(--doux); }
.cp-gens { display: flex; align-items: center; gap: 6px; min-height: 28px; }
.cp-gens small { color: var(--doux); font-size: 13.5px; }
.cp-corps .rangee { align-items: center; margin-top: 4px; }
.cp-corps .reactions { margin-left: auto; }

.souvenir { border-radius: 22px; overflow: hidden; background: var(--surface); border: 1px solid var(--trait); }
.souv-grille { display: grid; gap: 3px; width: 100%; height: 220px; padding: 0; border: 0; background: var(--trait); cursor: pointer; }
.souv-grille.n2 { grid-template-columns: 1fr 1fr; }
.souv-grille.n3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.souv-grille.n3 .souv-ph:first-child { grid-row: span 2; }
.souv-grille.n4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.souv-ph { position: relative; overflow: hidden; min-height: 0; }
.souv-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.souv-plus { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(14, 14, 14, .5); color: #fff; font-size: 24px; font-family: var(--titre); }
.souv-txt { display: grid; gap: 2px; padding: 10px 14px 6px; }
.souv-txt small { color: var(--doux); font-size: 13px; }
.souvenir .reactions { padding: 0 14px 12px; }

.lives { display: grid; gap: 8px; }
.live { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 18px; background: var(--surface); border: 1px solid var(--trait); font: inherit; color: var(--encre); text-align: left; cursor: pointer; }
.live-txt { flex: 1; display: grid; min-width: 0; } .live-txt small { color: var(--doux); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-point { width: 10px; height: 10px; border-radius: 50%; background: var(--b-acide); border: 2px solid var(--b-encre); box-shadow: 0 0 0 0 rgba(215, 255, 59, .8); animation: pouls 1.8s infinite; }
@keyframes pouls { 0% { box-shadow: 0 0 0 0 rgba(215, 255, 59, .9); } 80%, 100% { box-shadow: 0 0 0 10px rgba(215, 255, 59, 0); } }

.nouv { display: flex; gap: 10px; padding: 2px 2px 8px; }
.nouv-carte { flex: none; width: 150px; display: grid; justify-items: center; align-content: start; gap: 3px; text-align: center; padding: 14px 10px 12px; border-radius: 18px; background: var(--surface); border: 1px solid var(--trait); }
.nouv-carte small { color: var(--doux); font-size: 12.5px; }
.nouv-carte .btn { margin-top: 6px; }
.nouv-carte .nouv-ok { margin-top: 10px; }
.duo { display: flex; margin-bottom: 4px; }
.duo .av { width: 46px; height: 46px; font-size: 24px; box-shadow: 0 0 0 3px var(--surface); }
.duo .av + .av { margin-left: -12px; }
.porte-fil { margin: 22px auto; }
.porte-e { font-size: 44px; line-height: 1; }
@media (prefers-reduced-motion: reduce) { .live-point, .eclair { animation: none; } }

/* ================================================================ V2 : charte « Flyer pop » (28/10/2026)
   Une seule source : la charte en ligne. Encre sur papier, une seule carte acide par écran (texte noir dessus),
   rose / bleu / orange seulement pour les avatars et les couvertures, Unbounded pour les titres, Inter Tight pour le reste. */
body { font: 15px/1.4 var(--texte); -webkit-font-smoothing: antialiased; }
a { color: var(--encre); text-decoration-thickness: 1.5px; }
:focus-visible { outline: 3px solid var(--encre); outline-offset: 2px; }
::selection { background: var(--b-acide); color: var(--b-encre); }
svg.i { stroke-width: 2; }

/* --- titres : Unbounded 600 pour les sections, 800 en capitales pour les accroches */
.titre-section, .fil-titre h2, .bloc h2, .sous-titre, .notifs-titre, .popup-titre, .cp-titre, .carte-sortie b, .fiche b, dialog h2,
.titre-vue, .moi-carte h2, .accueil h2, .porte h2, .chaud-box h2, .apres h2, .barre-reponse > b, .profil-id h1, .souv-txt b, .live-txt b {
  font-family: var(--titre); font-weight: 600; letter-spacing: -0.03em; }
.titre-section, .fil-titre h2 { font-size: 16px; letter-spacing: -0.02em; }
.cp-titre, .carte-sortie b { font-size: 18px; line-height: 1.15; }
dialog h2 { font-size: 22px; line-height: 1.1; }
.titre-vue { font-size: 20px; }
.plan-tete h1, .sortie-tete h1, .salut h1, .envie-texte {
  font-family: var(--titre); font-weight: 800; text-transform: uppercase; letter-spacing: -0.05em; line-height: .98; }
.plan-tete h1, .sortie-tete h1 { font-size: clamp(26px, 7vw, 40px); }
.salut h1 { font-size: clamp(26px, 6vw, 40px); }
.situation-montant, .total-frais b, .montant-geant input, .montant-geant span, .profil-stats b, .frais-resume b, .cp-date b, .pp-date b {
  font-family: var(--titre); font-weight: 800; letter-spacing: -0.04em; }
.code-ami { font-family: var(--titre); font-weight: 800; }

/* --- boutons : pilules ; principal = encre, action forte = acide, secondaire = contour 2px */
.btn { min-height: 48px; padding: 0 22px; border-radius: var(--b-arrondi-pilule); font-weight: 700; font-size: 15px; justify-content: center; border: 2px solid transparent; }
.btn.clair { background: transparent; color: var(--encre); border: 2px solid var(--encre); }
.btn.petit-btn { min-height: 40px; padding: 0 16px; border-radius: var(--b-arrondi-pilule); font-size: 14px; }
.btn.acide, .btn.btn-acide { background: var(--b-acide); color: var(--b-encre); border-color: var(--b-acide); }
.btn.danger { background: transparent; border-color: var(--brique); }
.btn.danger-plein { border-color: var(--brique); }
.btn:hover:not(:disabled) { filter: none; transform: translateY(-1px); }
.btn:active:not(:disabled) { transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .btn:hover:not(:disabled) { transform: none; } }
.action { border-radius: var(--b-arrondi-pilule); }
.action.principale { background: var(--encre); color: var(--fond); }
.action.principale:hover { background: var(--encre); filter: none; }
.bouton-barre, .puce, .piste, .vote, .presence button, .onglets-plan button, .puce-carte, .reaction, .chip-action, .personne, .puce-lue,
.fiche .liens a, .fiche .liens button { border-radius: var(--b-arrondi-pilule); }
.puce, .piste, .onglets-plan button, .vote, .presence button, .bouton-barre { border: 1.5px solid var(--trait); color: var(--encre); font-weight: 600; }
.puce:hover, .piste:hover, .bouton-barre:hover { border-color: var(--encre); }
.puce[aria-pressed="true"], .vote[aria-pressed="true"], .presence button[aria-pressed="true"], .onglets-plan button[aria-selected="true"],
.ea-onglets .puce[aria-selected="true"] { background: var(--encre); color: var(--fond); border-color: var(--encre); box-shadow: none; }
.piste svg { color: var(--encre); }
.envoyer { border-radius: 50%; width: 44px; height: 44px; background: var(--encre); color: var(--fond); }
.lien-bouton, .lien-btn, .voir-profil, .plus-options summary, .info-part { color: var(--encre); }

/* --- champs */
.champ input, .champ textarea, .ajout input, .champ-simple, .sondage-form input, .zone-chez input, .ajout-3 input, .bande-tete input, #form-profil textarea {
  border-radius: var(--b-arrondi-petit); border: 1.5px solid var(--trait); background: var(--surface); }
.champ input:focus, .champ textarea:focus, .ajout input:focus, .champ-simple:focus, #form-profil textarea:focus { border-color: var(--encre); outline: none; }
.composeur { border-radius: var(--b-arrondi-grand); border: 1.5px solid var(--trait); box-shadow: none; }
.composeur:focus-within { border-color: var(--encre); }
.recherche { border-radius: var(--b-arrondi-pilule); background: var(--surface); }
.interrupteur input:checked { background: var(--encre); }
.interrupteur input:checked::after { background: var(--fond); }
.choix input, .options-partage input, .coche-ligne input { accent-color: var(--encre); }

/* --- cartes, blocs, fenêtres : arrondis généreux, papier et traits fins */
dialog { border-radius: var(--b-arrondi-grand); border: 1.5px solid var(--trait); }
@media (max-width: 600px) { dialog:not(.visionneuse):not(.editeur-avatar) { border-radius: var(--b-arrondi-grand) var(--b-arrondi-grand) 0 0; } }
.menu { border-radius: var(--b-arrondi-moyen); border: 1.5px solid var(--trait); }
.menu button { border-radius: var(--b-arrondi-petit); }
.fiche, .prop, .item, .fil-item, .sugg, .bande, .etape, .reglage, .live, .nouv-carte, .profil-carte, .profil-plan, .profil-stats > div,
.frais-resume > div, .plus-ligne, .apres-btn, .choix, .options-partage label, .cat { border-radius: var(--b-arrondi-moyen); }
.moi-carte, .porte, .accueil, .chaud-box, .situation, .apres, .souvenir, .profil-completer, .bloc-demandes, .bandeau-v1, .carte-adresse, .zone-chez, .decision {
  border-radius: var(--b-arrondi-grand); }
.moi-carte, .accueil, .porte { box-shadow: none; }
.bandeau-v1 { border: 0; background: var(--violette-2); }
.toast { border-radius: var(--b-arrondi-pilule); padding: 12px 20px; }
.etiquette { border-radius: var(--b-arrondi-pilule); }
.pastille-cat { background: var(--b-acide); color: var(--b-encre); text-transform: uppercase; font-size: 12px; letter-spacing: .06em; padding: 4px 10px; }
.chips-plan span { border-radius: var(--b-arrondi-pilule); border: 1.5px solid var(--trait); color: var(--encre); font-weight: 600; }
.gens span { border-radius: var(--b-arrondi-pilule); }
.cat[aria-checked="true"], .choix:has(input:checked), .options-partage label:has(input:checked), .personne[aria-pressed="true"], .ea-option[aria-pressed="true"] {
  border-color: var(--encre); background: var(--violette-2); box-shadow: inset 0 0 0 1px var(--encre); }
.emoji[aria-pressed="true"] { border-color: var(--encre); box-shadow: inset 0 0 0 2px var(--encre); }
.progression span { border-top-width: 4px; } .progression .actif { border-color: var(--encre); } .progression .fait { border-color: var(--doux); }
.jauge span, .jauge i { background: var(--encre); }
.ajout-photos.vide { border-radius: var(--b-arrondi-grand); }
.cat-e, .plus-e, .apres-btn span, .etape-i, .dep-ico, .accueil-e, .bv-ico, .bande-e, .porte-e, .ajout-ico { color: var(--encre); }
.cat-e svg, .plus-e svg, .apres-btn span svg, .etape-i svg, .dep-ico svg, .accueil-e svg, .bv-ico svg, .bande-e svg, .porte-e svg, .ajout-ico svg {
  width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.porte-e svg, .ajout-ico svg { width: 40px; height: 40px; }
.etape-i, .dep-ico, .bande-e { background: var(--violette-2); }
.plus-e { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--violette-2); }
.plus-ligne:first-child .plus-e { background: var(--b-acide); color: var(--b-encre); }

/* --- avatars : anneau franc */
.av { background: color-mix(in srgb, var(--c) 35%, var(--surface)); box-shadow: inset 0 0 0 2px var(--c); }

/* --- en-tête : logo écrit */
.marque { font-family: var(--titre); font-weight: 800; font-size: 26px; gap: 0; }
.marque .logo-ecrit { width: 4.65em; height: 1em; }
.salut svg { width: 64px; height: 56px; }

/* --- barre du bas : pilule noire flottante, « + » en acide (BarreNav) */
@media (max-width: 860px) {
  .onglets { display: flex; justify-content: center; gap: 2px; position: fixed; left: 50%; right: auto; bottom: calc(14px + env(safe-area-inset-bottom)); transform: translateX(-50%);
    width: auto; height: 62px; padding: 0 7px; border: 0; border-radius: var(--b-arrondi-pilule); background: var(--encre); box-shadow: 0 14px 30px -12px rgba(14, 14, 14, .55); z-index: 30; }
  .onglets button { width: 50px; height: 50px; min-height: 0; padding: 0; display: grid; place-items: center; border-radius: 50%; font-size: 0 !important; color: color-mix(in srgb, var(--fond) 62%, var(--encre)); }
  .onglets button svg.i { width: 23px; height: 23px; stroke-width: 2; }
  .onglets button[aria-current="page"] { background: var(--fond); color: var(--encre); }
  .onglets .onglet-plus { margin: 0 3px; }
  .plus-rond { width: 50px; height: 50px; border-radius: 50%; background: var(--b-acide); color: var(--b-encre); box-shadow: none; }
  .onglets .plus-rond svg.i { width: 24px; height: 24px; stroke-width: 2.6; }
  .onglets .pastille { top: 4px; left: auto; right: 2px; min-width: 18px; height: 18px; font-size: 11px !important; box-shadow: 0 0 0 2px var(--encre); }
  .coque { height: 100dvh; }
  .vue .defile { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .vue.vide .defile { padding-bottom: 0; }
  .bas-fixe { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
  .carte-bas { padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
  .toast { bottom: calc(92px + env(safe-area-inset-bottom)); }
  body[data-vue="carte"] .toast { bottom: calc(170px + env(safe-area-inset-bottom)); }
  .barre-reponse { left: 10px; right: 10px; bottom: calc(86px + env(safe-area-inset-bottom)); border: 1.5px solid var(--trait); border-radius: var(--b-arrondi-grand); box-shadow: 0 14px 30px -14px rgba(14, 14, 14, .4); }
  body.avec-barre-reponse[data-vue="sortie"] #sortie { padding-bottom: 170px; }
  .menu.notifs { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
}
.nav .action[aria-current="page"] { background: var(--encre); color: var(--fond); }
.action:hover { background: var(--violette-2); }
.nav .action[aria-current="page"]:hover { background: var(--encre); }

/* --- Fil : sélecteur en pilules */
.segments { border-radius: var(--b-arrondi-pilule); background: var(--violette-2); border: 0; padding: 4px; }
.segments button { border-radius: var(--b-arrondi-pilule); color: var(--doux); font-weight: 700; }
.segments button[aria-selected="true"] { background: var(--encre); color: var(--fond); box-shadow: none; }
.bascule-compte { border-radius: var(--b-arrondi-pilule); background: var(--violette-2); }
.bascule-compte button { border-radius: var(--b-arrondi-pilule); }
.bascule-compte button[aria-selected="true"] { background: var(--encre); color: var(--fond); box-shadow: none; }
.rappel-invitations { border-radius: var(--b-arrondi-pilule); border: 0; background: var(--b-rose); color: var(--b-encre); }
.fil-titre { margin-top: 28px; }

/* --- stories */
.story-anneau { padding: 3px; }
.story-badge { background: var(--surface); color: var(--encre); box-shadow: 0 0 0 1.5px var(--trait); }
.story-badge svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* --- « Qui est chaud ? » : la première carte est la carte acide de l'écran, les suivantes prennent rose, bleu, orange */
.envie { border-radius: var(--b-arrondi-grand); color: var(--b-encre); padding: 20px; gap: var(--b-espace-3); box-shadow: none; background: var(--b-acide); min-height: 250px; }
.envie.e-rose { background: var(--b-rose); } .envie.e-bleu { background: var(--b-bleu); } .envie.e-orange { background: var(--b-orange); } .envie.e-acide { background: var(--b-acide); }
.envie.envie-ajout { background: transparent; }
.envie-deco { display: none; }
.envie-qui { color: var(--b-encre); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; padding-right: 40px; }
.envie-qui b { font-weight: 800; }
.envie-qui .av.mini { box-shadow: 0 0 0 2px var(--b-encre); }
.envie-texte { font-size: 30px; padding-right: 0; text-shadow: none; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.chip-blanc { background: transparent; border: 1.5px solid var(--b-encre); color: var(--b-encre); backdrop-filter: none; font-weight: 700; }
.chip-blanc svg { width: 13px; height: 13px; vertical-align: -2px; margin-right: 3px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.envie-partants small { color: var(--b-encre); }
.envie .pile .av.mini { box-shadow: 0 0 0 2px var(--b-encre); }
.btn.btn-blanc { background: var(--b-encre); color: var(--b-papier); border-color: var(--b-encre); box-shadow: none; }
.btn.btn-verre { background: transparent; color: var(--b-encre); border: 2px solid var(--b-encre); }
.envie .reactions .reaction { color: var(--b-encre); border-color: color-mix(in srgb, var(--b-encre) 35%, transparent); background: transparent; }
.envie .reactions .reaction[aria-pressed="true"] { background: var(--b-encre); color: var(--b-papier); border-color: var(--b-encre); }
.envie .reaction-plus { color: var(--b-encre); }
.envie .fil-plus { color: var(--b-encre); }
.envie .fil-plus:hover { background: rgba(14, 14, 14, .1); }
.envie-ajout { border: 2px dashed var(--trait); color: var(--doux); }
.envie-ajout-plus { background: var(--encre); color: var(--fond); }
.envie-ajout-plus svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }

/* --- carte d'un plan : couverture à plat en couleur + pictogramme au trait, date façon flyer (CartePlan) */
.carte-plan { border-radius: var(--b-arrondi-grand); border: 1.5px solid var(--trait); box-shadow: none; }
.cp-cover { height: 140px; }
.cp-cover.c-rose { background: var(--b-rose); } .cp-cover.c-bleu { background: var(--b-bleu); } .cp-cover.c-orange { background: var(--b-orange); }
.cp-deco { right: 14px; bottom: auto; top: 50%; transform: translateY(-50%) rotate(-8deg); font-size: 0; color: var(--b-encre); filter: none; z-index: 0; }
.cp-deco svg { width: 96px; height: 96px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; display: block; }
.cp-date { background: var(--b-encre); color: var(--b-papier); border-radius: var(--b-arrondi-moyen); box-shadow: none; padding: 8px 10px 9px; min-width: 58px; }
.cp-date small { color: var(--b-papier); opacity: .8; letter-spacing: .1em; font-size: 10.5px; }
.cp-date small:last-of-type { color: var(--b-rose); opacity: 1; }
.cp-date b { font-size: 28px; margin: 2px 0; }
.cp-date em { color: var(--b-acide); }
.cp-badge { background: var(--b-encre); color: var(--b-papier); backdrop-filter: none; text-transform: uppercase; letter-spacing: .06em; font-size: 11.5px; }
.cp-badge.verifie { background: var(--b-acide); color: var(--b-encre); }
.carte-plan .fil-plus { top: 148px; }

/* --- mes plans : carte inversée (encre), comme sur un flyer */
.carte-sortie { background: var(--encre); color: var(--fond); border: 0; border-radius: var(--b-arrondi-grand); padding: 16px 18px; }
.carte-sortie:hover { border-color: transparent; }
.carte-sortie .quand { color: var(--fond); }
.carte-sortie small { color: var(--fond); opacity: .78; }
.carte-sortie .etiquette { background: var(--fond); color: var(--encre); }
.carte-sortie .etiquette.attendre { background: var(--b-rose); color: var(--b-encre); }
.carte-sortie .etiquette.non { background: transparent; color: var(--fond); border-color: color-mix(in srgb, var(--fond) 40%, transparent); }
.liste-sorties.invitations .carte-sortie { box-shadow: inset 0 0 0 3px var(--b-rose); }
.pp-date { background: var(--encre); border-radius: var(--b-arrondi-petit); } .pp-date b { color: var(--fond); } .pp-date small { color: var(--b-rose); }

/* --- page d'un plan */
.couverture { border-radius: var(--b-arrondi-grand); }
.couverture span { background: var(--b-encre); }
.bulle-mur { border-radius: 20px 20px 20px 6px; }
.bulle-mur.a-moi { border-radius: 20px 20px 6px 20px; background: var(--encre); color: var(--fond); }
.bulle-mur.a-moi small { color: var(--fond); opacity: .7; }
.msg.moi .texte { background: var(--encre); color: var(--fond); border-radius: 22px 22px 6px 22px; }
.pense i, .curseur::after { background: var(--encre); }
.gens span { background: var(--violette-2); }
.gens span.attente { border-color: var(--brique); color: var(--encre); }

/* --- carte du monde */
.pin-lieu { background: var(--encre); border-color: var(--surface); }
.pin-lieu.occupe { background: var(--b-rose); } .pin-lieu.occupe b { color: var(--b-encre); }
.pin-sortie svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.puce-carte, .rond, .puce-ami { border: 1.5px solid var(--trait); }
.puce-carte.actif { background: var(--b-acide); color: var(--b-encre); border-color: var(--b-encre); }
.rangee-carte .btn { min-height: 50px; }
.rangee-carte .btn.clair { background: var(--surface); }
.nom-lieu-carte { border-radius: var(--b-arrondi-pilule); padding: 3px 9px; }
.bulle-carte .leaflet-popup-content-wrapper { border-radius: var(--b-arrondi-moyen); }
.popup .ici { color: var(--encre); }

/* --- divers */
.compte-rebours { background: var(--b-rose); color: var(--b-encre); }
.fil-chaud { border-color: var(--trait); }
.reaction[aria-pressed="true"] { background: var(--encre); color: var(--fond); border-color: var(--encre); }
.erreur-msg, .erreur-form { color: var(--brique); }
.item.moi-dois { border-color: var(--brique); color: var(--encre); box-shadow: inset 0 0 0 1px var(--brique); }
.bloc-demandes { background: color-mix(in srgb, var(--b-rose) 14%, var(--surface)); border-color: color-mix(in srgb, var(--b-rose) 40%, var(--trait)); }
.tete-plans .btn[aria-expanded="true"] { border-color: var(--encre); color: var(--encre); }
.banniere-test { letter-spacing: .02em; }
.profil-ava-crayon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico-txt { width: 15px; height: 15px; vertical-align: -2px; margin-right: 4px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* --- écran de chargement : le logo animé (une fois au lancement) */
.lancement { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; background: var(--fond); transition: opacity .35s ease; }
.lancement.part { opacity: 0; pointer-events: none; }
.lancement .logo-anime { font-size: 52px; }
@media (prefers-reduced-motion: reduce) { .lancement { transition: none; } }
.av.av-picto { --c: var(--encre); background: var(--b-acide); color: var(--b-encre); box-shadow: inset 0 0 0 2px var(--b-encre); }
.av.av-picto svg.i { width: 18px; height: 18px; }
.vis-action svg.i, .rangee-photos .btn svg.i { width: 18px; height: 18px; }

/* ================================================================ Règle de Dorian (28/10/2026) : jamais d'écriture noire sur du rose.
   Le rose franc #FF4FA3 reste, mais le texte posé dessus est toujours blanc (papier), en gras. */
.pastille, .onglets .pastille, .cloche .pastille { background: var(--b-rose); color: var(--b-papier); }
.rappel-invitations { background: var(--b-rose); color: var(--b-papier); }
.compte-rebours { background: var(--b-rose); color: var(--b-papier); }
.etiquette.attendre, .carte-sortie .etiquette.attendre { background: var(--b-rose); color: var(--b-papier); }
.liste-sorties.invitations .carte-sortie { box-shadow: inset 0 0 0 3px var(--b-rose); }
.chips-plan .chip-action.doit { background: var(--b-rose); color: var(--b-papier); }
.vis-action.actif { background: var(--b-rose); color: var(--b-papier); }
.pin-lieu.occupe { background: var(--b-rose); } .pin-lieu.occupe b { color: var(--b-papier); }
.micro[aria-pressed="true"], .btn.danger-plein, .tuile-envoi.rate .etat { background: var(--b-rose); color: var(--b-papier); border-color: var(--b-rose); }
.situation.doit, .bloc-demandes { background: var(--violette-2); border: 2px solid var(--b-rose); }
.pin-nom { background: var(--b-encre); color: var(--b-papier); }
/* la carte « Qui est chaud ? » rose : tout son contenu passe en papier */
.envie.e-rose { background: var(--b-rose); color: var(--b-papier); }
.envie.e-rose .envie-qui, .envie.e-rose .envie-partants small, .envie.e-rose .reaction-plus, .envie.e-rose .fil-plus { color: var(--b-papier); }
.envie.e-rose .chip-blanc { border-color: var(--b-papier); color: var(--b-papier); }
.envie.e-rose .envie-qui .av.mini, .envie.e-rose .pile .av.mini { box-shadow: 0 0 0 2px var(--b-papier); }
.envie.e-rose .btn.btn-blanc { background: var(--b-papier); color: var(--b-encre); border-color: var(--b-papier); }
.envie.e-rose .btn.btn-verre { color: var(--b-papier); border-color: var(--b-papier); }
.envie.e-rose .reactions .reaction { color: var(--b-papier); border-color: color-mix(in srgb, var(--b-papier) 45%, transparent); }
.envie.e-rose .reactions .reaction[aria-pressed="true"] { background: var(--b-papier); color: var(--b-encre); border-color: var(--b-papier); }
.envie.e-rose .fil-plus:hover { background: rgba(250, 250, 247, .15); }
.pastille, .rappel-invitations, .compte-rebours, .etiquette.attendre, .chips-plan .chip-action.doit, .vis-action.actif, .pin-lieu.occupe b { font-weight: 800; }
@media (min-width: 861px) { .carrousel > * { flex-basis: min(84%, 400px); } .envie-texte { font-size: 28px; } }

/* ================================================================ Retours de Dorian (28/10, 16 h 23)
   1. La barre du bas reste une pilule arrondie, mais beaucoup plus longue : presque toute la largeur, icônes réparties. */
@media (max-width: 860px) {
  .onglets { left: 50%; right: auto; transform: translateX(-50%); width: calc(100% - 24px); max-width: 560px; height: 66px;
    padding: 0 10px; justify-content: space-between; align-items: center; gap: 0; }
  .onglets button { flex: 1 1 0; width: auto; max-width: 64px; height: 50px; margin: 0 auto; border-radius: var(--b-arrondi-pilule); }
  .onglets button[aria-current="page"] { flex: 0 0 auto; width: 64px; }
  .onglets .onglet-plus { flex: 0 0 auto; width: 56px; max-width: none; margin: 0 auto; background: none; }
  .onglets .onglet-plus .plus-rond { width: 56px; height: 50px; border-radius: var(--b-arrondi-pilule); }
  .onglets .pastille { right: auto; left: calc(50% + 4px); }
}
/* 2. « Mes plans » : cartes claires (papier, trait fin), la date et le titre en encre, plus de bloc tout noir. */
.carte-sortie { background: var(--surface); color: var(--encre); border: 1.5px solid var(--trait); border-radius: var(--b-arrondi-grand); }
.carte-sortie:hover { border-color: var(--encre); }
.carte-sortie .quand { color: var(--encre); }
.carte-sortie small { color: var(--doux); opacity: 1; }
.carte-sortie .etiquette { background: var(--violette-2); color: var(--encre); }
.carte-sortie .etiquette.non { background: transparent; color: var(--doux); border-color: var(--trait); }
.liste-sorties.invitations .carte-sortie { border-color: var(--b-rose); box-shadow: inset 0 0 0 1.5px var(--b-rose); }
.pp-date { background: var(--violette-2); } .pp-date b { color: var(--encre); } .pp-date small { color: var(--doux); }
/* 3. La carte ne doit jamais passer par-dessus la barre du bas : on enferme les calques de Leaflet dans la carte,
      et la barre passe au-dessus de tout le contenu (mais sous le menu latéral et les notifications). */
.carte { isolation: isolate; z-index: 0; }
@media (max-width: 860px) { .onglets { z-index: 680; } }
