/* Talaria — WebApp (maquette Figma « WebApp ») : socle, composants, écrans */

:root {
    --color-fond-page: #fdfaf1;
    --color-fond-marque: #4f203e;
    --color-fond-marque-subtil: rgba(79, 32, 62, 0.1);
    --color-fond-marque-tres-leger: rgba(79, 32, 62, 0.03);
    --color-fond-sur-marque: rgba(255, 255, 255, 0.05);
    --color-fond-surface-pleine: #fff;
    --color-fond-accent-lavande: #c8b1d7;
    --color-fond-accent-peche: #efd9ca;
    --color-fond-danger: rgba(200, 0, 0, 0.12);
    --color-texte-principal: #4f203e;
    --color-texte-secondaire: #5c5c5c;
    --color-texte-sur-marque: #fdfaf1;
    --color-texte-placeholder: rgba(79, 32, 62, 0.68);
    --color-texte-succes: #007a2a;
    --color-texte-danger: #c80000;
    --color-bordure-defaut: rgba(79, 32, 62, 0.2);
    --color-bordure-subtile: rgba(79, 32, 62, 0.1);
    --color-bordure-controle: rgba(79, 32, 62, 0.52);

    --espace-2xs: 4px; --espace-xs: 8px; --espace-sm: 12px; --espace-md: 16px;
    --espace-lg: 24px; --espace-xl: 32px; --espace-2xl: 48px; --espace-3xl: 64px; --espace-4xl: 96px;
    --rayon-md: 16px; --rayon-lg: 24px; --rayon-xl: 32px; --rayon-pilule: 999px;

    --ombre-legere: 0 2px 6px rgba(79, 32, 62, 0.06);
    --ombre-carte: 0 10px 30px rgba(79, 32, 62, 0.1);
    --ombre-mise-en-avant: 0 18px 40px rgba(79, 32, 62, 0.22);
    --ombre-flottante: 0 16px 36px rgba(79, 32, 62, 0.3);
    --anneau-focus: 0 0 0 3px var(--color-fond-accent-lavande);

    --font-titre: 'Bricolage Grotesque', system-ui, sans-serif;
    --font-corps: 'Plus Jakarta Sans', system-ui, sans-serif;
    --sidebar-w: 248px;
    --topbar-h: 81px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--color-fond-page); color: var(--color-texte-principal); font: 400 16px/1.5 var(--font-corps); -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; text-align: inherit; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
h1, h2, h3, h4, p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: none; box-shadow: var(--anneau-focus); }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon--sm { width: 14px; height: 14px; } .icon--md { width: 18px; height: 18px; } .icon--lg { width: 24px; height: 24px; }
.icon--fill { fill: currentColor; }

/* ---------- Typographie ---------- */
.t-titre { font: 600 36px/1.2 var(--font-titre); }
.t-sous { font: 500 24px/1.2 var(--font-titre); }
.t-carte { font: 600 28px/1.1 var(--font-titre); letter-spacing: -0.28px; }
.t-carte-xl { font: 600 32px/1.05 var(--font-titre); letter-spacing: -0.48px; }
.t-lien { font: 500 16px/1.2 var(--font-titre); }
.t-legende { font: 500 13px/1.4 var(--font-corps); }
.t-corps-s { font: 400 14px/1.2 var(--font-corps); }
.muted { color: var(--color-texte-secondaire); }
.eyebrow { font: 600 12px/1.2 var(--font-titre); letter-spacing: 0.72px; text-transform: uppercase; color: var(--color-texte-secondaire); }

/* ---------- Composants ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--espace-xs);
    height: 48px; padding: 0 var(--espace-lg); border-radius: var(--rayon-pilule); border: 1px solid transparent;
    font: 600 16px/1.2 var(--font-titre); white-space: nowrap; transition: background 0.15s ease, transform 0.15s ease, opacity 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn--l { height: 56px; padding: 0 var(--espace-xl); }
.btn--s { height: 44px; padding: 0 var(--espace-md); font-weight: 500; }
.btn--xs { height: 36px; padding: 0 var(--espace-sm); font: 500 13px/1.4 var(--font-corps); }
.btn--primaire { background: var(--color-fond-marque); color: var(--color-texte-sur-marque); }
.btn--primaire:hover { background: #3f1932; }
.btn--secondaire { background: var(--color-fond-surface-pleine); border-color: var(--color-bordure-defaut); color: var(--color-texte-principal); }
.btn--secondaire:hover { background: var(--color-fond-marque-tres-leger); }
.btn--peche { background: var(--color-fond-accent-peche); color: var(--color-texte-principal); }
.btn--lavande { background: var(--color-fond-accent-lavande); color: var(--color-texte-principal); }
.btn--tonal { background: var(--color-fond-marque-subtil); color: var(--color-texte-principal); font-weight: 500; }
.btn--clair { background: var(--color-fond-page); color: var(--color-texte-principal); }
.btn--danger { background: var(--color-fond-danger); color: var(--color-texte-danger); }
.btn--bloc { width: 100%; }
.btn[aria-disabled='true'], .btn:disabled { opacity: 0.4; pointer-events: none; }
.btn .icon { width: 20px; height: 20px; }
.btn--s .icon, .btn--xs .icon { width: 18px; height: 18px; }

.pill {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--espace-xs);
    height: 44px; padding: 0 var(--espace-md); border-radius: var(--rayon-pilule); background: var(--color-fond-surface-pleine);
    border: 1px solid var(--color-bordure-defaut); font: 500 16px/1.2 var(--font-titre); white-space: nowrap; transition: background 0.15s ease;
}
.pill .icon { width: 18px; height: 18px; }
button.pill:hover, a.pill:hover { background: var(--color-fond-marque-tres-leger); }
.pill[aria-pressed='true'], .pill--actif { background: var(--color-fond-marque); border-color: transparent; color: var(--color-texte-sur-marque); }
.pill--xs { height: 36px; padding: 0 var(--espace-sm); font: 500 13px/1.4 var(--font-corps); }

.tag {
    display: inline-flex; align-items: center; gap: var(--espace-2xs); padding: var(--espace-2xs) var(--espace-sm);
    border-radius: var(--rayon-pilule); background: var(--color-fond-marque-subtil); color: var(--color-texte-principal);
    font: 500 13px/1.4 var(--font-corps); white-space: nowrap;
}
.tag--lavande { background: var(--color-fond-accent-lavande); }
.tag--peche { background: var(--color-fond-accent-peche); }
.tag--page { background: var(--color-fond-page); }
.tag--marque { background: var(--color-fond-marque); color: var(--color-texte-sur-marque); }
.tag--danger { background: var(--color-fond-danger); color: var(--color-texte-danger); }
.tag--succes { background: rgba(0, 122, 42, 0.12); color: var(--color-texte-succes); }
.tag--leger { background: var(--color-fond-marque-tres-leger); }
.tag .icon { width: 14px; height: 14px; }

.btn-rond {
    display: inline-flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; border-radius: 50%;
    background: var(--color-fond-surface-pleine); border: 1px solid var(--color-bordure-defaut); color: var(--color-texte-principal);
    transition: background 0.15s ease;
}
.btn-rond:hover { background: var(--color-fond-marque-tres-leger); }

.pastille {
    display: inline-flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; border-radius: 50%;
    background: var(--color-fond-accent-lavande); color: var(--color-texte-principal);
}
.pastille--peche { background: var(--color-fond-accent-peche); }
.pastille--leger { background: var(--color-fond-marque-tres-leger); }
.pastille--marque { background: var(--color-fond-marque); color: var(--color-texte-sur-marque); }

.avatar { flex: none; border-radius: 50%; object-fit: cover; background: var(--color-fond-accent-lavande); }
.avatars { display: flex; align-items: center; }
.avatars > * { margin-right: -8px; border: 0; }
.avatars > .tag { margin-right: 0; height: 32px; padding: 0 var(--espace-sm); }
.avatars--lg > * { margin-right: -10px; }

.carte { background: var(--color-fond-surface-pleine); border: 1px solid var(--color-bordure-subtile); border-radius: var(--rayon-lg); }
.carte--pad { padding: var(--espace-lg); }
.carte--marque { background: var(--color-fond-marque); border-color: transparent; color: var(--color-texte-sur-marque); }

.progress { height: 8px; border-radius: var(--rayon-pilule); background: var(--color-fond-marque-subtil); overflow: hidden; }
.progress > i { display: block; height: 100%; border-radius: 4px; background: var(--color-fond-marque); }

.toggle {
    position: relative; flex: none; width: 48px; height: 28px; border-radius: 14px; background: rgba(79, 32, 62, 0.28);
    transition: background 0.2s ease;
}
.toggle::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); transition: transform 0.2s ease; }
.toggle[aria-checked='true'] { background: var(--color-fond-marque); }
.toggle[aria-checked='true']::after { transform: translateX(20px); }

.lien-action { display: inline-flex; align-items: center; gap: 6px; height: 44px; font: 500 16px/1.2 var(--font-titre); }
.lien-action .icon { width: 18px; height: 18px; }
.lien-action:hover { text-decoration: underline; }

.champ { display: flex; flex-direction: column; gap: var(--espace-xs); width: 100%; }
.champ > label, .champ > .label { font: 500 16px/1.2 var(--font-titre); }
.saisie {
    display: flex; align-items: center; gap: var(--espace-sm); height: 52px; padding: 0 var(--espace-md);
    background: var(--color-fond-surface-pleine); border: 1px solid var(--color-bordure-defaut); border-radius: var(--rayon-pilule);
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.saisie:focus-within { border-color: var(--color-fond-marque); box-shadow: var(--anneau-focus); }
.saisie input, .saisie select { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; box-shadow: none; background: transparent; font: 400 16px/1.5 var(--font-corps); }
.saisie input::placeholder { color: var(--color-texte-placeholder); }
.saisie .icon { color: var(--color-texte-secondaire); }
.saisie--48 { height: 48px; }

.onglets { display: inline-flex; gap: 4px; padding: 4px; border-radius: var(--rayon-pilule); background: var(--color-fond-marque-subtil); }
.onglets button, .onglets a { display: inline-flex; align-items: center; height: 40px; padding: 0 var(--espace-lg); border-radius: var(--rayon-pilule); font: 500 16px/1.2 var(--font-titre); transition: background 0.15s ease, color 0.15s ease; }
.onglets [aria-selected='true'], .onglets .actif { background: var(--color-fond-marque); color: var(--color-texte-sur-marque); }

/* ---------- Gabarit ---------- */
.app { display: flex; min-height: 100vh; min-height: 100dvh; }
.sidebar {
    position: sticky; top: 0; align-self: flex-start; flex: none; width: var(--sidebar-w); height: 100vh; height: 100dvh; overflow-y: auto;
    display: flex; flex-direction: column; gap: var(--espace-xl); padding: var(--espace-xl) var(--espace-lg);
    background: var(--color-fond-marque); color: var(--color-texte-sur-marque);
}
.sidebar__logo { padding-left: var(--espace-sm); }
.sidebar__logo img { width: 110px; height: auto; }
.sidebar nav { display: flex; flex-direction: column; gap: var(--espace-2xs); }
.nav-link { display: flex; align-items: center; gap: var(--espace-sm); height: 48px; padding: 0 var(--espace-sm); border-radius: var(--rayon-pilule); font: 500 16px/1.2 var(--font-titre); transition: background 0.15s ease; }
.nav-link .icon { width: 24px; height: 24px; }
.nav-link:hover { background: var(--color-fond-sur-marque); }
.nav-link[aria-current='page'] { background: var(--color-fond-accent-lavande); color: var(--color-texte-principal); }
.sidebar .btn-nouveau { height: 52px; }
.sidebar__espace { flex: 1; min-height: 8px; }
.sidebar__invite { display: flex; flex-direction: column; gap: var(--espace-xs); padding: var(--espace-md); border-radius: var(--rayon-lg); background: var(--color-fond-sur-marque); }
.sidebar__invite b { font: 500 16px/1.2 var(--font-titre); }
.sidebar__invite span { font: 500 13px/1.4 var(--font-corps); }
.sidebar__user { display: flex; align-items: center; gap: var(--espace-sm); padding-top: var(--espace-md); border-top: 1px solid var(--color-texte-sur-marque); }
.sidebar__user img { width: 40px; height: 40px; border-radius: 50%; }
.sidebar__user > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sidebar__user b { font: 500 16px/1.2 var(--font-titre); white-space: nowrap; }
.sidebar__user small { font: 500 13px/1.4 var(--font-corps); }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
    position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: var(--espace-md);
    min-height: var(--topbar-h); padding: var(--espace-md) var(--espace-xl); background: var(--color-fond-page); border-bottom: 1px solid var(--color-bordure-subtile);
}
.topbar__recherche {
    display: flex; align-items: center; gap: var(--espace-sm); width: 460px; max-width: 100%; height: 48px; padding: 0 var(--espace-xs) 0 var(--espace-md);
    background: #fff; border: 1px solid var(--color-bordure-defaut); border-radius: var(--rayon-pilule); text-align: left; color: var(--color-texte-placeholder);
}
.topbar__recherche span:first-of-type { flex: 1; }
.kbd { padding: var(--espace-2xs) var(--espace-xs); border-radius: var(--rayon-pilule); background: var(--color-fond-marque-subtil); color: var(--color-texte-secondaire); font: 500 13px/1.4 var(--font-corps); }
.topbar__actions { display: flex; align-items: center; gap: var(--espace-sm); }
.topbar__actions .pill { height: 44px; }
.notif { position: relative; }
.notif::after { content: ''; position: absolute; top: 9px; right: 11px; width: 8px; height: 8px; border-radius: 50%; background: #e0242b; border: 1.5px solid #fff; }
.topbar__avatar img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }

.page { display: flex; flex-direction: column; gap: var(--espace-xl); padding: var(--espace-xl) var(--espace-xl) var(--espace-2xl); }
.page--serree { gap: var(--espace-lg); }
.page-entete { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--espace-lg); flex-wrap: wrap; }
.page-entete__titre { display: flex; flex-direction: column; gap: var(--espace-xs); }
.page-entete__actions { display: flex; align-items: center; gap: var(--espace-sm); flex-wrap: wrap; }
.section-titre { display: flex; align-items: center; justify-content: space-between; gap: var(--espace-md); }
.section { display: flex; flex-direction: column; gap: var(--espace-md); }
.view-enter { animation: view-enter 0.3s ease both; }
@keyframes view-enter { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- 2.1 Accueil ---------- */
.ligne-principale { display: flex; gap: var(--espace-lg); align-items: stretch; }
.prochain {
    position: relative; flex: 1; min-width: 0; min-height: 466px; overflow: hidden; border-radius: var(--rayon-xl); padding: var(--espace-xl);
    display: flex; flex-direction: column; justify-content: space-between; color: var(--color-texte-sur-marque); isolation: isolate;
}
.prochain > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -3; }
.prochain::before { content: ''; position: absolute; inset: 0; z-index: -2; background: var(--color-fond-marque); opacity: 0.52; }
.prochain::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)); }
.prochain__haut, .prochain__bas { display: flex; align-items: center; justify-content: space-between; gap: var(--espace-md); }
.prochain__bas { align-items: flex-end; }
.prochain__infos { display: flex; flex-direction: column; gap: var(--espace-sm); }
.prochain__titre { font: 600 48px/1.05 var(--font-titre); letter-spacing: -0.96px; }
.prochain__meta { font: 400 18px/1.2 var(--font-corps); }
.prochain__prep { display: flex; flex-direction: column; gap: var(--espace-xs); padding-top: 8px; font: 500 13px/1.4 var(--font-corps); }
.prochain__prep .progress { width: 280px; max-width: 100%; background: var(--color-texte-sur-marque); }
.prochain__prep .progress > i { background: var(--color-fond-accent-lavande); }
.avatars--photo .tag { width: 36px; height: 36px; padding: 0; justify-content: center; }
.colonne-laterale { display: flex; flex-direction: column; gap: var(--espace-lg); width: 360px; flex: none; }
.finances { 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); }
.finances__titre { display: flex; align-items: flex-start; justify-content: space-between; font: 500 16px/1.2 var(--font-titre); }
.finances__montants { display: flex; gap: var(--espace-lg); }
.finances__montants > div { flex: 1; display: flex; flex-direction: column; gap: var(--espace-2xs); }
.finances__montants b { font: 600 32px/1.05 var(--font-titre); letter-spacing: -0.48px; white-space: nowrap; }
.groupe-ligne { display: flex; align-items: center; gap: var(--espace-md); width: 100%; padding: 0; text-align: left; border-radius: var(--rayon-md); }
.groupe-ligne img { width: 40px; height: 40px; border-radius: 50%; }
.groupe-ligne > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.groupe-ligne b { font: 500 16px/1.2 var(--font-titre); }
.groupe-ligne small { font: 500 13px/1.4 var(--font-corps); color: var(--color-texte-secondaire); }
.groupe-ligne .icon { color: var(--color-texte-principal); }
.groupe-ligne .pastille { flex: none; width: 40px; height: 40px; }
.groupe-ligne > .icon { flex: none; margin-left: var(--espace-sm); }
.groupe-ligne:hover b { text-decoration: underline; }
.grille-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--espace-md); }
.carte-photo { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--rayon-lg); background: #fff; border: 1px solid var(--color-bordure-subtile); text-align: left; transition: box-shadow 0.2s ease, transform 0.2s ease; }
a.carte-photo:hover, button.carte-photo:hover { box-shadow: var(--ombre-carte); transform: translateY(-2px); }
.carte-photo__img { position: relative; height: 140px; overflow: hidden; }
.carte-photo__img img { width: 100%; height: 100%; object-fit: cover; }
.carte-photo__img .tag { position: absolute; left: 12px; top: 12px; }
.carte-photo--bonplan .carte-photo__img { height: 150px; }
.carte-photo__txt { display: flex; flex-direction: column; gap: var(--espace-2xs); padding: var(--espace-md); }
.carte-photo__txt b { font: 500 16px/1.2 var(--font-titre); }
.carte-photo__txt span { font: 500 13px/1.4 var(--font-corps); color: var(--color-texte-secondaire); }

/* ---------- 2.2 Mes voyages ---------- */
.voyages-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: var(--espace-lg); }
.voyage-carte { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--rayon-xl); background: #fff; border: 1px solid var(--color-bordure-subtile); box-shadow: var(--ombre-legere); transition: box-shadow 0.2s ease, transform 0.2s ease; }
a.voyage-carte:hover { box-shadow: var(--ombre-carte); transform: translateY(-2px); }
.voyage-carte__img { position: relative; height: 200px; overflow: hidden; }
.voyage-carte__img img { width: 100%; height: 100%; object-fit: cover; }
.voyage-carte__img .tag { position: absolute; left: 16px; top: 16px; }
.voyage-carte__contenu { display: flex; flex-direction: column; gap: var(--espace-md); padding: var(--espace-lg); }
.voyage-carte__titre { display: flex; flex-direction: column; gap: var(--espace-2xs); }
.voyage-carte__infos { display: flex; align-items: center; justify-content: space-between; gap: var(--espace-md); }
.voyage-carte__prix { display: flex; flex-direction: column; }
.voyage-carte__prix b { font: 500 16px/1.2 var(--font-titre); }
.voyage-carte__prix span { font: 500 13px/1.4 var(--font-corps); color: var(--color-texte-secondaire); }
.voyage-carte__prep { display: flex; flex-direction: column; gap: var(--espace-xs); }
.voyage-carte__prep > div { display: flex; justify-content: space-between; font: 500 13px/1.4 var(--font-corps); color: var(--color-texte-secondaire); }
.voyage-carte__prep > div b { font-weight: 500; color: var(--color-texte-principal); }
.nouveau-voyage {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--espace-sm); min-height: 405px; padding: var(--espace-lg);
    border-radius: var(--rayon-xl); background: var(--color-fond-marque-tres-leger); border: 1.5px dashed var(--color-bordure-controle); text-align: center; transition: background 0.15s ease;
}
.nouveau-voyage:hover { background: var(--color-fond-marque-subtil); }
.nouveau-voyage .pastille { width: 64px; height: 64px; }
.nouveau-voyage .pastille .icon { width: 28px; height: 28px; }
.nouveau-voyage p { max-width: 260px; }

/* ---------- 2.3 Découvrir ---------- */
.page--split { display: flex; flex-direction: row; padding: 0; gap: 0; height: calc(100vh - var(--topbar-h)); height: calc(100dvh - var(--topbar-h)); min-height: 640px; }
.liste-lieux { display: flex; flex-direction: column; gap: var(--espace-md); width: 400px; flex: none; padding: var(--espace-lg); overflow-y: auto; border-right: 1px solid var(--color-bordure-subtile); }
.liste-lieux__titre { display: flex; align-items: center; justify-content: space-between; }
.liste-lieux__titre > div { display: flex; flex-direction: column; }
.categories { display: flex; flex-wrap: wrap; gap: 8px; }
.eco { display: flex; align-items: center; gap: var(--espace-sm); padding: var(--espace-sm) var(--espace-md); border-radius: var(--rayon-md); background: var(--color-fond-marque-tres-leger); }
.eco > .icon { color: var(--color-texte-succes); }
.eco > div { flex: 1; display: flex; flex-direction: column; }
.eco b { font: 500 16px/1.2 var(--font-titre); }
.lieu { display: flex; gap: var(--espace-md); width: 100%; padding: var(--espace-sm); text-align: left; background: #fff; border: 1px solid var(--color-bordure-subtile); border-radius: var(--rayon-lg); transition: box-shadow 0.15s ease; }
.lieu:hover { box-shadow: var(--ombre-carte); }
.lieu.sel { border: 2px solid var(--color-fond-marque); padding: 11px; }
.lieu img { width: 96px; height: 96px; flex: none; border-radius: var(--rayon-md); object-fit: cover; }
.lieu > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--espace-2xs); }
.lieu b { font: 500 16px/1.2 var(--font-titre); }
.lieu .note { display: flex; align-items: center; gap: var(--espace-2xs); font: 500 13px/1.4 var(--font-corps); color: var(--color-texte-principal); }
.lieu .ok { font: 500 13px/1.4 var(--font-corps); color: var(--color-texte-succes); }
.carte-zone { position: relative; flex: 1; min-width: 0; overflow: hidden; background: #f4efe6; }
.carte-scene { position: absolute; left: 0; top: 0; width: 792px; height: 943px; transform-origin: 0 0; transition: transform 0.25s ease; }
.carte-scene > img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.repere {
    position: absolute; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%;
    background: #fff; border: 2px solid var(--color-fond-marque); color: var(--color-texte-principal); filter: drop-shadow(0 18px 20px rgba(79, 32, 62, 0.22));
    transition: transform 0.15s ease;
}
.repere:hover { transform: scale(1.1); }
.repere .icon { width: 18px; height: 18px; }
.repere.sel { width: 52px; height: 52px; background: var(--color-fond-marque); color: var(--color-texte-sur-marque); border: 4px solid var(--color-fond-accent-lavande); z-index: 2; }
.repere.sel .icon { width: 24px; height: 24px; }
/* Bulle de regroupement (zone trop chargée) : nombre de lieux, un clic zoome */
.repere--bulle { width: 48px; height: 48px; background: var(--color-fond-accent-lavande); font: 700 14px/1 var(--font-corps); }
.ma-position { position: absolute; width: 20px; height: 20px; border-radius: 50%; background: #e0242b; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(224, 36, 43, 0.18); }
.carte-filtres { position: absolute; left: var(--espace-lg); top: var(--espace-lg); z-index: 5; display: flex; flex-wrap: wrap; gap: var(--espace-xs); }
.zoom { position: absolute; right: var(--espace-lg); top: var(--espace-lg); z-index: 5; display: flex; flex-direction: column; padding: 4px 0; border-radius: var(--rayon-pilule); background: #fff; filter: drop-shadow(0 10px 15px rgba(79, 32, 62, 0.1)); }
.zoom button { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; }
.zoom button:hover { background: var(--color-fond-marque-tres-leger); }
.fiche-lieu { position: absolute; right: var(--espace-lg); bottom: var(--espace-lg); z-index: 6; width: 360px; max-width: calc(100% - 48px); overflow: hidden; border-radius: var(--rayon-xl); background: #fff; box-shadow: var(--ombre-flottante); }
.fiche-lieu > img { width: 100%; height: 150px; object-fit: cover; }
.fiche-lieu__contenu { display: flex; flex-direction: column; gap: var(--espace-sm); padding: var(--espace-lg); }
.fiche-lieu__titre { display: flex; align-items: center; justify-content: space-between; gap: var(--espace-sm); }
.fiche-lieu .ligne { display: flex; align-items: center; gap: var(--espace-xs); font: 400 14px/1.2 var(--font-corps); }
.fiche-lieu .ligne .icon { width: 16px; height: 16px; }
.fiche-lieu__boutons { display: flex; gap: var(--espace-xs); padding-top: var(--espace-xs); }
.fiche-lieu__boutons .btn { flex: 1; min-width: 0; padding: 0 var(--espace-sm); font-weight: 500; }

/* ---------- 2.4 Amis ---------- */
.amis-colonnes { display: flex; gap: var(--espace-lg); align-items: flex-start; }
.amis-liste { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--espace-md); }
.amis-outils { display: flex; gap: var(--espace-sm); }
.amis-outils .saisie { flex: 1; }
.amis-grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--espace-md); }
.ami { display: flex; flex-direction: column; align-items: flex-start; gap: var(--espace-md); padding: var(--espace-lg); }
.ami__haut { display: flex; align-items: center; gap: var(--espace-md); width: 100%; }
.ami__haut > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ami__haut b { font: 500 16px/1.2 var(--font-titre); }
.ami__haut small { font: 500 13px/1.4 var(--font-corps); color: var(--color-texte-secondaire); }
.ami__boutons { display: flex; gap: var(--espace-xs); width: 100%; }
.ami__boutons .btn { flex: 1; min-width: 0; padding: 0 var(--espace-md); }
.amis-lateral { display: flex; flex-direction: column; gap: var(--espace-lg); width: 360px; flex: none; }
.demande { display: flex; flex-direction: column; gap: var(--espace-sm); padding-top: var(--espace-sm); border-top: 1px solid var(--color-bordure-subtile); }
.demande__haut { display: flex; align-items: center; gap: var(--espace-sm); }
.demande__haut > div { display: flex; flex-direction: column; }
.demande__haut b { font: 500 16px/1.2 var(--font-titre); }
.demande__boutons { display: flex; gap: var(--espace-xs); }
.demande__boutons .btn { flex: 1; min-width: 0; }
.lien-invite { display: flex; align-items: center; justify-content: space-between; gap: var(--espace-xs); height: 48px; padding: 0 var(--espace-2xs) 0 var(--espace-md); border-radius: var(--rayon-pilule); background: var(--color-fond-sur-marque); font: 500 16px/1.2 var(--font-titre); }
.sync { display: flex; align-items: center; gap: var(--espace-sm); width: 100%; text-align: left; }
.sync > div:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.sync b { font: 500 16px/1.2 var(--font-titre); }
.menu-contextuel { position: absolute; z-index: 30; min-width: 180px; padding: var(--espace-xs); border-radius: var(--rayon-md); background: #fff; border: 1px solid var(--color-bordure-subtile); box-shadow: var(--ombre-carte); }
.menu-contextuel button { display: block; width: 100%; padding: 10px var(--espace-sm); border-radius: 12px; font: 500 14px/1.2 var(--font-corps); }
.menu-contextuel button:hover { background: var(--color-fond-marque-tres-leger); }

.toast { position: fixed; left: 50%; bottom: 32px; z-index: 100; transform: translateX(-50%); padding: var(--espace-sm) var(--espace-lg); border-radius: var(--rayon-pilule); background: var(--color-fond-marque); color: var(--color-texte-sur-marque); font: 500 14px/1.2 var(--font-corps); box-shadow: var(--ombre-flottante); animation: view-enter 0.25s ease both; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }

/* listes de lignes (groupes, amis) : espace vertical entre les lignes */
#groupes-accueil, #groupes, #compagnons, #invitations-groupes { display: flex; flex-direction: column; gap: var(--espace-md); }
