/* Talaria — WebApp : détail du voyage (4.1 Planning, 4.2 Budget, 4.3 Votes, 4.4 Chat) */

.voyage-entete {
    position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: space-between; height: 220px; padding: var(--espace-lg) var(--espace-xl);
    border-radius: var(--rayon-xl); overflow: hidden; color: var(--color-texte-sur-marque);
}
.voyage-entete > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -3; }
.voyage-entete::before { content: ''; position: absolute; inset: 0; z-index: -2; background: rgba(79, 32, 62, 0.5); }
.voyage-entete::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, rgba(31, 10, 23, 0), rgba(31, 10, 23, 0.92)); }
.voyage-entete__haut, .voyage-entete__bas { display: flex; align-items: center; justify-content: space-between; gap: var(--espace-md); }
.voyage-entete__bas { align-items: flex-end; }
.voyage-entete h1 { font: 600 48px/1.05 var(--font-titre); letter-spacing: -0.96px; }
.voyage-entete__bas p { font: 400 18px/1.2 var(--font-corps); margin-top: 4px; }
.voyage-entete__actions { display: flex; gap: var(--espace-xs); }
.btn-retour { display: inline-flex; align-items: center; gap: var(--espace-xs); height: 36px; padding: 0 var(--espace-sm); border-radius: var(--rayon-pilule); background: var(--color-fond-page); color: var(--color-texte-principal); font: 500 13px/1.4 var(--font-corps); }
.btn-retour .icon { width: 16px; height: 16px; }
.btn-sur-photo { display: inline-flex; align-items: center; gap: var(--espace-xs); height: 44px; padding: 0 var(--espace-md); border-radius: var(--rayon-pilule); border: 1px solid var(--color-texte-sur-marque); background: var(--color-fond-sur-marque); color: var(--color-texte-sur-marque); font: 500 16px/1.2 var(--font-titre); transition: background 0.15s ease; }
.btn-sur-photo:hover { background: rgba(255, 255, 255, 0.18); }
.btn-sur-photo .icon { width: 18px; height: 18px; }
.voyage-entete .avatars > * { margin-right: -8px; }
.voyage-entete .avatars .tag { height: 36px; width: 40px; padding: 0; justify-content: center; }

.onglets-voyage { display: flex; gap: 32px; border-bottom: 1px solid var(--color-bordure-subtile); }
.onglet-v { display: inline-flex; align-items: center; gap: var(--espace-xs); padding: var(--espace-sm) 0; margin-bottom: -1px; border-bottom: 3px solid transparent; color: var(--color-texte-secondaire); font: 500 16px/1.2 var(--font-titre); }
.onglet-v:hover { color: var(--color-texte-principal); }
.onglet-v[aria-current='page'] { color: var(--color-texte-principal); border-bottom-color: var(--color-fond-marque); }

.cols { display: flex; gap: var(--espace-lg); align-items: flex-start; }
.cols__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--espace-md); }
.cols__lat { width: 360px; flex: none; display: flex; flex-direction: column; gap: var(--espace-lg); }

/* Planning */
.jours { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--espace-xs); }
.jour-p { display: flex; flex-direction: column; align-items: center; gap: var(--espace-2xs); padding: var(--espace-sm) 0; border-radius: var(--rayon-md); background: #fff; border: 1px solid var(--color-bordure-subtile); transition: box-shadow 0.15s ease; }
.jour-p small { font: 500 13px/1.4 var(--font-corps); color: var(--color-texte-secondaire); }
.jour-p b { font: 500 24px/1.2 var(--font-titre); }
.jour-p:hover { box-shadow: var(--ombre-carte); }
.jour-p .pts { display: flex; gap: 3px; height: 6px; }
.jour-p .pts i { width: 6px; height: 6px; border-radius: 50%; background: var(--color-fond-accent-lavande); }
.jour-p[aria-pressed='true'] { background: var(--color-fond-marque); color: var(--color-texte-sur-marque); border-color: var(--color-fond-marque); }
.jour-p[aria-pressed='true'] small { color: var(--color-texte-sur-marque); }
.detail-jour { padding: var(--espace-lg); }
.detail-jour > b { display: block; padding-bottom: var(--espace-sm); font: 500 16px/1.2 var(--font-titre); }
.act { display: flex; align-items: center; gap: var(--espace-md); padding: var(--espace-md) 0; border-top: 1px solid var(--color-bordure-subtile); }
.act__h { width: 56px; flex: none; font: 500 16px/1.2 var(--font-titre); }
.act__photo { width: 96px; height: 72px; flex: none; border-radius: var(--rayon-md); object-fit: cover; }
.act__photo--vide { background: var(--color-fond-marque-tres-leger); border: 1px dashed var(--color-bordure-controle); }
.act__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--espace-2xs); }
.act__txt b { font: 500 16px/1.2 var(--font-titre); }
.act__txt span { font: 400 14px/1.2 var(--font-corps); color: var(--color-texte-secondaire); }
.act .btn-points { width: 28px; height: 28px; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; }
.act .btn-points:hover { background: var(--color-fond-marque-tres-leger); }
.billets { display: flex; flex-direction: column; gap: var(--espace-md); padding: var(--espace-lg); border-radius: var(--rayon-lg); background: var(--color-fond-marque); color: var(--color-texte-sur-marque); }
.billets__titre { display: flex; align-items: center; justify-content: space-between; font: 500 16px/1.2 var(--font-titre); }
.billets__trajet { display: flex; align-items: center; justify-content: space-between; gap: var(--espace-sm); }
.billets__trajet > div:first-child, .billets__trajet > div:last-child { display: flex; flex-direction: column; font: 500 13px/1.4 var(--font-corps); }
.billets__trajet > div:last-child { align-items: flex-end; }
.billets__trajet b { font: 600 32px/1.05 var(--font-titre); letter-spacing: -0.48px; }
.billets__vol { flex: 1; display: flex; flex-direction: column; align-items: center; font: 500 13px/1.4 var(--font-corps); }
.billets__vol hr { width: 100px; height: 1px; border: 0; background: var(--color-fond-accent-lavande); margin: 2px 0; }
.membre { display: flex; align-items: center; gap: var(--espace-sm); }
.membre b { flex: 1; font: 500 16px/1.2 var(--font-titre); }

/* Budget */
.indicateurs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--espace-md); }
.indic { display: flex; flex-direction: column; gap: var(--espace-xs); padding: var(--espace-lg); border-radius: var(--rayon-lg); background: #fff; border: 1px solid var(--color-bordure-subtile); }
.indic > span:first-child { font: 400 14px/1.2 var(--font-corps); }
.indic b { font: 600 32px/1.05 var(--font-titre); letter-spacing: -0.48px; white-space: nowrap; }
.indic small { font: 500 13px/1.4 var(--font-corps); }
.indic--marque { background: var(--color-fond-marque); color: var(--color-texte-sur-marque); border-color: transparent; }
.indic--lavande { background: var(--color-fond-accent-lavande); border-color: transparent; }
.depenses { overflow: hidden; padding: 0; }
.depenses__entete { display: flex; align-items: center; justify-content: space-between; gap: var(--espace-md); padding: var(--espace-lg); flex-wrap: wrap; }
.depenses__filtres { display: flex; gap: var(--espace-xs); flex-wrap: wrap; align-items: center; }
.table-ligne { display: flex; align-items: center; gap: var(--espace-md); padding: var(--espace-md) var(--espace-lg); border-top: 1px solid var(--color-bordure-subtile); }
.table-ligne--titres { background: var(--color-fond-marque-tres-leger); border-top: 0; padding-block: var(--espace-sm); font: 600 12px/1.2 var(--font-titre); letter-spacing: 0.72px; text-transform: uppercase; color: var(--color-texte-secondaire); }
.table-ligne .poste { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.table-ligne .poste b { font: 500 16px/1.2 var(--font-titre); }
.table-ligne .poste small { font: 500 13px/1.4 var(--font-corps); color: var(--color-texte-secondaire); }
.table-ligne .cat { width: 150px; flex: none; }
.table-ligne .par { width: 170px; flex: none; display: flex; align-items: center; gap: var(--espace-xs); font: 400 14px/1.2 var(--font-corps); }
.table-ligne .mnt { width: 110px; flex: none; text-align: right; font: 500 16px/1.2 var(--font-titre); }
.table-ligne--titres .mnt, .table-ligne--titres .par { font: inherit; }
.table-total { display: flex; justify-content: space-between; align-items: baseline; padding: var(--espace-md) var(--espace-lg); background: var(--color-fond-marque-tres-leger); border-top: 1px solid var(--color-bordure-subtile); font: 500 16px/1.2 var(--font-titre); }
.table-total b { font: 500 24px/1.2 var(--font-titre); }
.solde { display: inline-flex; padding: var(--espace-2xs) var(--espace-sm); border-radius: var(--rayon-pilule); font: 500 13px/1.4 var(--font-corps); white-space: nowrap; }
.solde--plus { background: #fff; border: 1px solid var(--color-texte-succes); color: var(--color-texte-succes); }
.solde--moins { background: var(--color-fond-danger); color: var(--color-texte-danger); }
.repart-barre { display: flex; gap: 2px; height: 14px; border-radius: var(--rayon-pilule); overflow: hidden; }
.repart-barre i { display: block; height: 100%; }
.legende-ligne { display: flex; align-items: center; gap: var(--espace-xs); font: 400 14px/1.2 var(--font-corps); }
.legende-ligne i { width: 10px; height: 10px; border-radius: 50%; }
.legende-ligne span:nth-child(2) { flex: 1; }
.legende-ligne span:last-child { color: var(--color-texte-secondaire); white-space: nowrap; }

/* Votes */
.votes-resume { display: flex; align-items: center; justify-content: space-between; gap: var(--espace-md); }
.votes-grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--espace-lg); align-items: stretch; }
.vote { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--rayon-xl); background: #fff; border: 1px solid var(--color-bordure-subtile); }
.vote--ok { border: 2px solid var(--color-texte-succes); }
.vote__photo { position: relative; height: 190px; }
.vote__photo img { width: 100%; height: 100%; object-fit: cover; }
.vote__photo .tag { position: absolute; left: 16px; top: 16px; }
.vote__c { display: flex; flex-direction: column; gap: var(--espace-md); padding: var(--espace-lg); flex: 1; }
.vote__c h2 { font: 600 28px/1.1 var(--font-titre); letter-spacing: -0.28px; }
.vote__score { display: flex; align-items: center; justify-content: space-between; }
.vote__score .note { display: flex; align-items: center; gap: var(--espace-2xs); font: 500 16px/1.2 var(--font-titre); }
.vote__prog { display: flex; flex-direction: column; gap: var(--espace-xs); font: 500 13px/1.4 var(--font-corps); color: var(--color-texte-secondaire); }
.vote--ok .progress > i { background: var(--color-texte-succes); }
.vote__btns { display: flex; gap: var(--espace-xs); margin-top: auto; }
.vote__btns .btn { flex: 1; min-width: 0; padding: 0 var(--espace-lg); }
.vote__btns .btn[aria-pressed='true'] { background: var(--color-fond-accent-lavande); color: var(--color-texte-principal); border-color: transparent; }
.info-bandeau { display: flex; align-items: center; gap: var(--espace-md); padding: var(--espace-md) var(--espace-lg); border-radius: var(--rayon-lg); background: var(--color-fond-accent-lavande); }
.info-bandeau .icon { width: 22px; height: 22px; }

/* Chat */
.chat-conv { flex: 1; min-width: 0; overflow: hidden; padding: 0; display: flex; flex-direction: column; }
.chat-entete { display: flex; align-items: center; justify-content: space-between; padding: var(--espace-md) var(--espace-lg); border-bottom: 1px solid var(--color-bordure-subtile); }
.chat-entete > div:first-child { display: flex; flex-direction: column; }
.chat-entete b { font: 500 16px/1.2 var(--font-titre); }
.chat-entete .btn-rond { width: 40px; height: 36px; border-radius: var(--rayon-pilule); }
.chat-msgs { display: flex; flex-direction: column; gap: var(--espace-md); padding: var(--espace-lg); background: var(--color-fond-marque-tres-leger); min-height: 640px; }
.chat-date { display: flex; justify-content: center; }
.msg { display: flex; align-items: flex-end; gap: var(--espace-sm); max-width: 100%; }
.msg__c { display: flex; flex-direction: column; gap: var(--espace-2xs); align-items: flex-start; min-width: 0; }
.msg__c > small { font: 500 13px/1.4 var(--font-corps); color: var(--color-texte-secondaire); }
.bulle-msg { padding: var(--espace-sm) var(--espace-md); border-radius: 24px 24px 24px 6px; background: #fff; border: 1px solid var(--color-bordure-subtile); font: 400 16px/1.5 var(--font-corps); }
.msg--moi { flex-direction: column; align-items: flex-end; gap: var(--espace-2xs); }
.msg--moi .bulle-msg { border-radius: 24px 24px 6px 24px; background: var(--color-fond-marque); color: var(--color-texte-sur-marque); border-color: transparent; }
.msg--moi .heure { display: flex; align-items: center; gap: var(--espace-2xs); font: 500 13px/1.4 var(--font-corps); color: var(--color-texte-secondaire); }
.msg--moi .heure .icon { width: 14px; height: 14px; }
.msg-sys { display: flex; justify-content: center; }
.act-proposee { display: flex; align-items: stretch; overflow: hidden; border-radius: var(--rayon-lg); background: #fff; border: 1px solid var(--color-bordure-defaut); }
.act-proposee img { width: 132px; object-fit: cover; }
.act-proposee > div { display: flex; flex-direction: column; gap: var(--espace-2xs); padding: var(--espace-sm) var(--espace-md); }
.act-proposee b { font: 500 16px/1.2 var(--font-titre); }
.act-proposee small { font: 500 13px/1.4 var(--font-corps); color: var(--color-texte-secondaire); }
.act-proposee .btns { display: flex; gap: var(--espace-xs); padding-top: 4px; }
.saisie-bar { display: flex; align-items: center; gap: var(--espace-sm); padding: var(--espace-md) var(--espace-lg); border-top: 1px solid var(--color-bordure-subtile); }
.saisie-bar .champ-msg { flex: 1; display: flex; align-items: center; gap: var(--espace-xs); height: 48px; padding: 0 var(--espace-md); border-radius: var(--rayon-pilule); background: var(--color-fond-page); border: 1px solid var(--color-bordure-defaut); }
.saisie-bar .champ-msg:focus-within { border-color: var(--color-fond-marque); box-shadow: var(--anneau-focus); }
.saisie-bar input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; box-shadow: none; font: 400 16px/1.5 var(--font-corps); }
.saisie-bar .btn-env { width: 48px; height: 48px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--color-fond-marque); color: var(--color-texte-sur-marque); transition: transform 0.15s ease; }
.saisie-bar .btn-env:active { transform: scale(0.92); }
.saisie-bar .btn-plus { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--color-fond-accent-lavande); }
.saisie-ind { display: flex; align-items: center; gap: var(--espace-xs); font: 500 13px/1.4 var(--font-corps); color: var(--color-texte-secondaire); }
.saisie-ind .pts { display: inline-flex; gap: 4px; padding: 4px 12px; border-radius: var(--rayon-pilule); background: #fff; }
.saisie-ind .pts i { width: 6px; height: 6px; border-radius: 50%; background: var(--color-texte-secondaire); opacity: 0.6; animation: pts 1.2s infinite; }
.saisie-ind .pts i:nth-child(2) { animation-delay: 0.2s; } .saisie-ind .pts i:nth-child(3) { animation-delay: 0.4s; }
@keyframes pts { 0%, 60%, 100% { opacity: 0.25; } 30% { opacity: 1; } }
.sondage-opt { position: relative; display: flex; align-items: center; justify-content: space-between; height: 48px; width: 100%; padding: 0 var(--espace-md); overflow: hidden; border-radius: var(--rayon-md); border: 1px solid var(--color-bordure-defaut); text-align: left; background: #fff; }
.sondage-opt > i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--color-fond-marque-subtil); transition: width 0.3s ease; }
.sondage-opt > * { position: relative; }
.sondage-opt .lib { display: flex; align-items: center; gap: var(--espace-xs); font: 500 16px/1.2 var(--font-titre); }
.sondage-opt .lib .icon { width: 16px; height: 16px; }
.sondage-opt small { font: 500 13px/1.4 var(--font-corps); }
.sondage-opt.moi { border: 2px solid var(--color-fond-marque); }
.sondage-opt.moi > i { background: var(--color-fond-accent-lavande); }
.partage-grille { display: flex; flex-wrap: wrap; gap: 8px; }
.partage-item { display: flex; flex-direction: column; align-items: center; gap: var(--espace-xs); width: 70px; font: 500 13px/1.4 var(--font-corps); }
.partage-item .pastille { width: 52px; height: 52px; background: var(--color-fond-marque-tres-leger); transition: background 0.15s ease; }
.partage-item:hover .pastille { background: var(--color-fond-accent-lavande); }
.partage-item .pastille .icon { width: 22px; height: 22px; }

/* Boîte de dialogue */
.dialogue-voile { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: var(--espace-lg); background: rgba(31, 10, 23, 0.45); }
.dialogue { width: 480px; max-width: 100%; display: flex; flex-direction: column; gap: var(--espace-md); padding: var(--espace-xl); border-radius: var(--rayon-xl); background: var(--color-fond-page); box-shadow: var(--ombre-flottante); animation: view-enter 0.2s ease both; }
.dialogue form { display: flex; flex-direction: column; gap: var(--espace-md); }
.dialogue .champ-ligne { display: flex; gap: var(--espace-sm); }
.dialogue .actions { display: flex; justify-content: flex-end; gap: var(--espace-sm); padding-top: var(--espace-xs); }
