/* =====================================================================
   Liveo — Feuille de style principale
   Charte : moderne, glamour, chaleureuse. Rose/violet dominants.
   ===================================================================== */

:root {
    --pink:      #ff3d77;
    --pink-dark: #e01f5c;
    --violet:    #7b2ff7;
    --violet-dk: #5b1fd0;
    --gold:      #ffb020;
    --ink:       #1b1226;
    --ink-soft:  #4a4458;
    --muted:     #8b8598;
    --line:      #ece8f1;
    --bg:        #faf8fc;
    --card:      #ffffff;
    --ok:        #17b978;
    --warn:      #f5a623;
    --err:       #e0344b;
    --radius:    16px;
    --radius-sm: 10px;
    --shadow:    0 10px 30px rgba(43, 20, 74, .08);
    --shadow-lg: 0 24px 60px rgba(43, 20, 74, .16);
    --grad:      linear-gradient(120deg, var(--violet) 0%, var(--pink) 100%);
    --grad-gold: linear-gradient(120deg, #ff8a3d, var(--gold));
    --maxw:      1140px;
    --font:      "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* Icônes SVG inline */
.ic { width: 1em; height: 1em; display: inline-block; vertical-align: -.125em; flex: none; }
.ic-lg { width: 1.4em; height: 1.4em; }
.ic-inline { margin-right: .4em; }
.is-gold { color: var(--gold); }
.is-ok { color: var(--ok); }
.is-pink { color: var(--pink); }
.icon-badge { display: inline-flex; align-items: center; justify-content: center; }
.icon-tile { width: 52px; height: 52px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; background: var(--grad); color: #fff; }
.icon-tile .ic { width: 26px; height: 26px; }
.icon-tile.soft { background: #f3f0fb; color: var(--violet); }
body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--violet-dk); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(1.9rem, 4vw, 3rem); letter-spacing: -.02em; font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); letter-spacing: -.015em; font-weight: 800; }
.section-head h2 { text-transform: uppercase; }
p { margin: 0 0 1rem; }
.muted { color: var(--muted); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 12px; top: 12px; background: #fff; padding: 8px 14px; border-radius: 8px; z-index: 200; }

/* --- Header ---------------------------------------------------------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: #ffffff;            /* fond solide : évite le flash blanc au scroll */
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 18px; min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; }
.brand:hover { text-decoration: none; }
.brand-name {
    font-size: 1.35rem; letter-spacing: -.02em;
    background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.main-nav { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.main-nav > a { color: var(--ink-soft); font-weight: 600; font-size: .95rem; position: relative; }
.main-nav > a.active { color: var(--pink-dark); }
.main-nav > a:hover { text-decoration: none; color: var(--violet); }
.has-badge { position: relative; }
.badge {
    position: absolute; top: -8px; right: -12px; min-width: 18px; height: 18px; padding: 0 5px;
    background: var(--violet); color: #fff; font-size: .7rem; font-weight: 700;
    border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
}
.badge-alert { background: var(--pink); }
.nav-cta { margin-left: 4px; }

.nav-toggle { display: none; margin-left: auto; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .2s; }

/* Menu utilisateur (dropdown) */
.nav-user { position: relative; }
.nav-user-btn {
    display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line);
    padding: 5px 12px 5px 5px; border-radius: 999px; cursor: pointer; font-weight: 600; color: var(--ink);
}
.nav-user-btn:hover { border-color: var(--pink); }
.avatar-xs { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.verified { color: var(--ok); font-size: .8rem; }
.dropdown {
    position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; background: #fff;
    border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
    padding: 8px; display: none;
}
.dropdown.open { display: block; }
.dropdown a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--ink-soft); font-weight: 600; }
.dropdown a:hover { background: var(--bg); text-decoration: none; color: var(--violet); }
.dropdown-sep { height: 1px; background: var(--line); margin: 6px 4px; }

/* Sélecteur de langue (drapeau + nom + chevron) */
.lang-select { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--grad); color: #fff; border: 0; cursor: pointer;
    padding: 8px 12px; border-radius: 999px; font-family: inherit; font-weight: 700; font-size: .88rem; box-shadow: 0 6px 16px rgba(123,47,247,.25); }
.lang-btn .flag { width: 22px; height: 15px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.lang-btn .chev { display: inline-flex; transform: rotate(90deg); transition: transform .2s; }
.lang-select.open .lang-btn .chev { transform: rotate(-90deg); }
.lang-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 180px; background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); padding: 6px; display: none; z-index: 120; }
.lang-select.open .lang-menu { display: block; }
.lang-menu a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; color: var(--ink); font-weight: 600; font-size: .9rem; }
.lang-menu a:hover { background: var(--bg); text-decoration: none; }
.lang-menu a.active { background: #f3f0fb; color: var(--violet-dk); }
.lang-menu .flag { width: 22px; height: 15px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }

/* --- Flash ----------------------------------------------------------- */
.flash { padding: 12px 0; font-weight: 600; }
.flash-success { background: #e6f9f0; color: #0c7a4d; }
.flash-error   { background: #fdeaed; color: #b21f36; }
.flash-info    { background: #eef0fd; color: #3a3ba0; }

/* --- Boutons --------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: inherit; font-weight: 700; font-size: .98rem; line-height: 1;
    padding: 13px 22px; border-radius: 999px; border: 1px solid transparent; cursor: pointer;
    transition: transform .08s ease, box-shadow .2s ease, background .2s; text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 9px 16px; font-size: .9rem; }
.btn-lg { padding: 16px 30px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 20px rgba(224, 31, 92, .28); }
.btn-primary:hover { color: #fff; box-shadow: 0 12px 26px rgba(224, 31, 92, .36); }
/* Texte des boutons pleins toujours blanc (liens inclus) */
a.btn-primary, a.btn-primary:hover, a.btn-primary:focus,
.btn-primary, .btn-primary:hover, .btn-primary:focus { color: #fff !important; }
.btn-primary .ic { color: #fff; }
a.btn-danger:hover, .btn-danger:hover { color: #fff !important; }
.btn-gold { background: var(--grad-gold); color: #4a2c00; }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--violet); color: var(--violet); }
.btn-danger { background: #fff; border-color: #f4c2c9; color: var(--err); }
.btn-danger:hover { background: var(--err); color: #fff; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* --- Hero ------------------------------------------------------------ */
.hero {
    position: relative; overflow: hidden;
    background: radial-gradient(1200px 500px at 80% -10%, rgba(123, 47, 247, .18), transparent 60%),
                radial-gradient(900px 500px at 0% 20%, rgba(255, 61, 119, .16), transparent 55%);
    padding: 72px 0 60px;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero h1 { margin-bottom: .35em; }
.hero .lead { font-size: 1.18rem; color: var(--ink-soft); max-width: 32ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.hero-pills { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.pill { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-weight: 600; font-size: .85rem; box-shadow: var(--shadow); }
.hero-visual { position: relative; }
.hero-card {
    background: var(--card); border-radius: 22px; box-shadow: var(--shadow-lg); overflow: hidden;
    border: 1px solid var(--line);
}
.hero-card .hc-photo { aspect-ratio: 4/3; background: var(--grad); display: grid; place-items: center; color: #fff; font-size: 4rem; }
.hero-card .hc-body { padding: 18px 20px; }
.hero-card .hc-row { display: flex; justify-content: space-between; align-items: center; }
.floaty { position: absolute; background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); padding: 12px 16px; font-weight: 700; }
.floaty.f1 { top: -18px; left: -14px; }
.floaty.f2 { bottom: -16px; right: -10px; color: var(--pink-dark); }

/* --- Sections -------------------------------------------------------- */
.section { padding: 56px 0; }
/* Section teintée (dégradé doux, ambiance Froove) */
.section-tint { background:
    radial-gradient(600px 300px at 100% 0%, rgba(255,176,32,.10), transparent 60%),
    radial-gradient(700px 360px at 0% 100%, rgba(123,47,247,.10), transparent 55%),
    linear-gradient(180deg, #fbf7ff, #fff5f8); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.concept .step-card { transition: transform .18s, box-shadow .2s; }
.concept .step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.section-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 26px; gap: 20px; flex-wrap: wrap; }
.section-head p { margin: 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 800; color: var(--pink); margin-bottom: 6px; }

/* --- Grilles de cartes ---------------------------------------------- */
.grid { display: grid; gap: 22px; }
.grid-cats { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.grid-events { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* Carte catégorie */
.cat-card {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 22px 18px; text-align: center; box-shadow: var(--shadow); transition: .2s;
    display: block; color: var(--ink);
}
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); text-decoration: none; border-color: var(--pink); }
.cat-card .ico { font-size: 2.2rem; }
.cat-card .cname { font-weight: 700; margin-top: 8px; }
.cat-card .ccount { color: var(--muted); font-size: .85rem; }

/* Carte événement */
.event-card {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow); transition: .2s; display: flex; flex-direction: column;
}
.event-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.ec-media { position: relative; aspect-ratio: 16/10; background: var(--grad); }
.ec-media img { width: 100%; height: 100%; object-fit: cover; }
.ec-strip {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 12px;
    background: linear-gradient(transparent, rgba(0,0,0,.78)); color: #fff;
    display: flex; align-items: center; gap: 8px;
}
.ec-strip .avatar-xs { width: 26px; height: 26px; border: 2px solid #fff; }
.ec-type {
    position: absolute; top: 10px; left: 10px; font-size: .72rem; font-weight: 800; letter-spacing: .03em;
    padding: 5px 10px; border-radius: 999px; color: #fff; text-transform: uppercase;
}
.ec-type.rentmii { background: var(--pink); }
.ec-type.joinme  { background: var(--gold); color: #4a2c00; }
.ec-price {
    position: absolute; top: 10px; right: 10px; background: #fff; color: var(--ink);
    font-weight: 800; font-size: .85rem; padding: 5px 10px; border-radius: 999px; box-shadow: var(--shadow);
}
.ec-price.free { color: var(--ok); }
.ec-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.ec-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ec-title { font-weight: 800; font-size: 1.1rem; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.ec-title:hover { color: var(--pink-dark); text-decoration: none; }
.ec-catico { flex: none; width: 38px; height: 38px; border-radius: 11px; background: #f3f0fb; color: var(--violet); display: inline-flex; align-items: center; justify-content: center; }
.ec-sub { color: var(--muted); font-size: .88rem; display: flex; align-items: center; gap: 5px; }
.ec-priceline { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin: 2px 0 4px; }
.pl-amount { font-size: 1.3rem; font-weight: 800; color: var(--pink-dark); letter-spacing: -.02em; }
.pl-amount.is-earn { color: var(--ok); }
.pl-free { font-size: 1.3rem; font-weight: 800; color: var(--ok); }
.pl-dur { color: var(--muted); font-size: .9rem; }
.pl-tag { margin-left: auto; }
.ec-meta { color: var(--muted); font-size: .86rem; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.ec-foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; }

/* --- Cartes génériques / panels ------------------------------------- */
.card {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 26px;
}
.card + .card { margin-top: 20px; }
.card h3 { margin-top: 0; }
.panel-narrow { max-width: 460px; margin: 40px auto; }
.panel-wide { max-width: 760px; margin: 30px auto; }

/* --- Formulaires ----------------------------------------------------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .92rem; }
.field .hint { color: var(--muted); font-size: .82rem; margin-top: 4px; }
input[type=text], input[type=email], input[type=password], input[type=number],
input[type=date], input[type=datetime-local], input[type=search], input[type=tel],
select, textarea {
    width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
    font-family: inherit; font-size: 1rem; background: #fff; color: var(--ink); transition: .15s;
}
input:focus, select:focus, textarea:focus {
    outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(123, 47, 247, .14);
}
textarea { min-height: 100px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: .92rem; }
.check input { width: auto; margin-top: 3px; }
.radio-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.radio-card { border: 2px solid var(--line); border-radius: var(--radius-sm); padding: 14px; cursor: pointer; transition: .15s; }
.radio-card:hover { border-color: var(--violet); }
.radio-card input { display: none; }
.radio-card input:checked + .rc-body { color: var(--pink-dark); }
.radio-card:has(input:checked) { border-color: var(--pink); background: #fff5f8; }
.rc-body strong { display: block; }

/* --- Badges & pastilles --------------------------------------------- */
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--bg); color: var(--ink-soft); border: 1px solid var(--line); }
.tag-ok    { background: #e6f9f0; color: #0c7a4d; border-color: #bdeed6; }
.tag-warn  { background: #fff4e2; color: #a5670a; border-color: #f6dcae; }
.tag-err   { background: #fdeaed; color: #b21f36; border-color: #f6c7ce; }
.tag-info  { background: #eef0fd; color: #3a3ba0; border-color: #d4d7f6; }
.tag-pink  { background: #ffe6ee; color: var(--pink-dark); border-color: #ffc6d9; }

.stars { color: var(--gold); letter-spacing: 2px; }

/* --- Tableau de bord / stats ---------------------------------------- */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.stat {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 18px 20px; box-shadow: var(--shadow);
}
.stat .n { font-size: 1.8rem; font-weight: 800; letter-spacing: -.02em; }
.stat .l { color: var(--muted); font-size: .85rem; font-weight: 600; }
.stat.grad { background: var(--grad); color: #fff; border: 0; }
.stat.grad .l { color: rgba(255,255,255,.85); }

/* --- Onglets --------------------------------------------------------- */
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 22px; flex-wrap: wrap; }
.tabs a { padding: 10px 16px; font-weight: 700; color: var(--muted); border-bottom: 3px solid transparent; }
.tabs a.active { color: var(--pink-dark); border-color: var(--pink); }
.tabs a:hover { text-decoration: none; color: var(--violet); }

/* --- Tables ---------------------------------------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table.data { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 620px; }
table.data th, table.data td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); }
table.data th { background: var(--bg); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
table.data tr:last-child td { border-bottom: 0; }
table.data tr:hover td { background: #fcfaff; }

/* --- Profil ---------------------------------------------------------- */
.profile-head { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.avatar-lg { width: 120px; height: 120px; border-radius: 24px; object-fit: cover; box-shadow: var(--shadow); }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.photo-grid .ph { position: relative; aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); }
.photo-grid .ph img { width: 100%; height: 100%; object-fit: cover; }
.photo-grid .ph .rm { position: absolute; top: 6px; right: 6px; }

/* --- Messagerie ------------------------------------------------------ */
.chat { display: flex; flex-direction: column; height: 60vh; min-height: 380px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.chat-head { padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
.chat-body { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); }
.bubble { max-width: 72%; padding: 10px 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.bubble.me { align-self: flex-end; background: var(--grad); color: #fff; border: 0; }
.bubble .meta { font-size: .7rem; opacity: .7; margin-top: 4px; }
.chat-foot { padding: 12px; border-top: 1px solid var(--line); display: flex; gap: 10px; }
.chat-foot input { flex: 1; }
.conv-list a { display: flex; gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--ink); }
.conv-list a:hover { text-decoration: none; border-color: var(--pink); }
.conv-list .unread-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--pink); }

/* --- Notifications --------------------------------------------------- */
.notif { display: flex; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.notif.unread { border-left: 4px solid var(--pink); background: #fffafc; }
.notif .ico { font-size: 1.3rem; }

/* --- Étapes « comment ça marche » ----------------------------------- */
.steps { counter-reset: step; display: grid; gap: 18px; }
.step { display: flex; gap: 16px; align-items: flex-start; }
.step .num {
    flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--grad); color: #fff;
    display: grid; place-items: center; font-weight: 800; counter-increment: step;
}
.step .num::before { content: counter(step); }

/* --- Divers ---------------------------------------------------------- */
.empty { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty .big { font-size: 3rem; margin-bottom: 8px; }
.callout { border-left: 4px solid var(--violet); background: #f6f4ff; padding: 14px 18px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.callout.gold { border-color: var(--gold); background: #fff9ec; }
.callout.pink { border-color: var(--pink); background: #fff5f8; }
.divider { height: 1px; background: var(--line); margin: 22px 0; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 16px; }
.flex { display: flex; gap: 12px; align-items: center; }
.flex-between { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.gap-sm { gap: 8px; }
.wrap { flex-wrap: wrap; }
.big-price { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; }
.big-price small { font-size: .9rem; font-weight: 600; color: var(--muted); }

/* --- Filtres (recherche) -------------------------------------------- */
.filters { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.filters .fgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; align-items: end; }

/* --- Footer ---------------------------------------------------------- */
.site-footer { background: #17111f; color: #cfc8db; margin-top: 60px; padding: 48px 0 22px; }
.site-footer a { color: #cfc8db; display: block; padding: 4px 0; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; }
.footer-brand .brand-name { color: #fff; }
.footer-col h4 { color: #fff; font-size: .95rem; margin-bottom: 10px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 22px; margin-top: 30px; border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; }
.footer-bottom .muted { color: #8b8598; }

/* --- Admin ----------------------------------------------------------- */
.admin-layout { display: grid; grid-template-columns: 230px 1fr; gap: 24px; align-items: start; }
.admin-side { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow); position: sticky; top: 82px; }
.admin-side a { display: block; padding: 10px 14px; border-radius: 8px; color: var(--ink-soft); font-weight: 600; }
.admin-side a.active { background: var(--grad); color: #fff; }
.admin-side a:hover { text-decoration: none; }
.admin-side a:not(.active):hover { background: var(--bg); }

/* --- Chips (filtres rapides) ---------------------------------------- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: .9rem; color: var(--ink-soft); }
.chip:hover { border-color: var(--pink); color: var(--pink-dark); text-decoration: none; }

/* --- Tuiles catégories visuelles (label sur l'image, façon Froove) --- */
.cat-tile { position: relative; display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: .2s; color: #fff; aspect-ratio: 3/4; background: var(--grad); }
.cat-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); text-decoration: none; }
.cat-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.cat-tile:hover img { transform: scale(1.06); }
.cat-tile-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; padding: 14px; background: linear-gradient(to top, rgba(20,10,35,.82) 0%, rgba(20,10,35,.15) 55%, transparent 100%); }
.cat-tile .cname { font-weight: 800; font-size: 1.05rem; display: flex; align-items: center; gap: 6px; }
.cat-tile .ccount { color: rgba(255,255,255,.85); font-size: .82rem; }
@media (max-width: 760px) {
    .grid-cats { grid-template-columns: 1fr 1fr; gap: 12px; }
    .cat-tile { aspect-ratio: 5/4; }          /* tuiles plus courtes sur mobile */
    .cat-tile .cname { font-size: .95rem; }
}

/* --- Grille de centres d'intérêt (onboarding) ----------------------- */
.interest-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.interest { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 2px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; transition: .15s; font-weight: 600; background: #fff; }
.interest:hover { border-color: var(--violet); }
.interest.on { border-color: var(--pink); background: #fff5f8; color: var(--pink-dark); }
.interest input { display: none; }
.interest .icon-badge { color: var(--violet); }
.interest.on .icon-badge { color: var(--pink); }

/* --- Fil (scroll infini) -------------------------------------------- */
.feed-sentinel { height: 1px; }
.feed-loader { text-align: center; padding: 24px; color: var(--muted); }
.spinner { width: 26px; height: 26px; border: 3px solid var(--line); border-top-color: var(--pink); border-radius: 50%; display: inline-block; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* --- Bandeau concept (home) ----------------------------------------- */
.concept { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.concept .step-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 16px; text-align: center; box-shadow: var(--shadow); position: relative; }
.concept .step-card .n { width: 34px; height: 34px; border-radius: 10px; background: var(--grad); color: #fff; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.concept .step-card .ic { color: var(--violet); }
.verified-badge { display: inline-flex; align-items: center; gap: 5px; font-size: .8rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: #e8f7ff; color: #0a6aa1; border: 1px solid #bfe6f7; }

/* --- Pop-up d'installation (PWA) ------------------------------------ */
.install-pop { position: fixed; right: 20px; bottom: 88px; z-index: 300; max-width: 360px; width: calc(100% - 40px); opacity: 0; transform: translateY(12px); transition: .25s; }
.install-pop.show { opacity: 1; transform: translateY(0); }
.install-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 18px 18px 16px; }
.install-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.install-close { position: absolute; top: 10px; right: 10px; background: none; border: 0; color: var(--muted); cursor: pointer; }
.install-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 6px; }
@media (max-width: 480px) { .install-pop { right: 12px; left: 12px; bottom: 96px; width: auto; max-width: none; } }

/* --- Bandeau cookies ------------------------------------------------- */
.cookie-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 290; background: #17111f; color: #eee; padding: 12px 0; box-shadow: 0 -6px 24px rgba(0,0,0,.2); }
.cookie-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.cookie-actions { display: flex; gap: 8px; }
.cookie-bar .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.cookie-bar .btn-ghost:hover { border-color: #fff; color: #fff; }

/* --- Bouton orange (accent façon Froove) ---------------------------- */
.btn-orange { background: linear-gradient(120deg, #ff8a3d, #ff3d77); color: #fff; box-shadow: 0 8px 20px rgba(255,110,60,.32); }
.btn-orange:hover { color: #fff; box-shadow: 0 12px 26px rgba(255,110,60,.4); }
a.btn-orange, a.btn-orange:hover { color: #fff !important; }

/* --- Hero « splash » (accueil visiteur, style app) ------------------ */
.hero-splash { position: relative; overflow: hidden; color: #fff;
    background: linear-gradient(135deg, #3a1d6e 0%, #5b1fd0 45%, #ff3d77 100%); }
.hero-splash::after { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 400px at 85% 10%, rgba(255,176,32,.25), transparent 60%); pointer-events: none; }
.hero-splash .container { position: relative; z-index: 1; }
.hero-splash .eyebrow { color: #ffd36b; }
.splash-title { font-size: clamp(2.3rem, 5.5vw, 4.2rem); line-height: 1; letter-spacing: -.02em; text-transform: uppercase; font-weight: 800; margin: 0 0 .3em; color: #fff; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .splash-title { background: linear-gradient(100deg, #ffd36b 0%, #ff8a3d 30%, #ff3d77 60%, #fff 100%);
        -webkit-background-clip: text; background-clip: text; color: transparent; }
}
.hero-splash .lead { color: rgba(255,255,255,.92); }
.hero-splash .pill { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.2); color: #fff; }
.hero-splash .pill .ic { color: #ffd36b; }
.hero-splash .hero-card { color: var(--ink); }
.hero-splash .btn-ghost { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.35); color: #fff; }
.hero-splash .btn-ghost:hover { background: rgba(255,255,255,.2); color: #fff; }

/* --- Bande CTA en dégradé (style Froove) ---------------------------- */
.cta-band { background: linear-gradient(120deg, #ff8a3d, #ff3d77 55%, #7b2ff7); color: #fff; border-radius: 26px; padding: 40px 28px; text-align: center; box-shadow: var(--shadow-lg); }
.cta-band h2 { color: #fff; text-transform: uppercase; font-size: clamp(1.5rem, 3.5vw, 2.4rem); }
.cta-band p { color: rgba(255,255,255,.9); max-width: 60ch; margin: 0 auto 18px; }

/* --- Responsive ------------------------------------------------------ */
@media (max-width: 820px) { .concept { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .concept { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-visual { order: -1; max-width: 420px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .admin-layout { grid-template-columns: 1fr; }
    .admin-side { position: static; display: flex; flex-wrap: wrap; gap: 6px; }
    .admin-side a { flex: 1 1 auto; text-align: center; }
}
@media (max-width: 760px) {
    .nav-toggle { display: block; }
    .main-nav {
        position: fixed; inset: 66px 0 auto 0; background: #fff; flex-direction: column; align-items: stretch;
        gap: 4px; padding: 16px 20px 24px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
        transform: translateY(-8px); opacity: 0; pointer-events: none; transition: .18s; margin-left: 0;
    }
    .main-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
    .main-nav > a { padding: 10px 4px; border-bottom: 1px solid var(--line); }
    .nav-user { width: 100%; }
    .nav-user-btn { width: 100%; justify-content: flex-start; }
    .dropdown { position: static; box-shadow: none; border: 0; padding: 0; display: block; }
    .nav-cta { margin: 8px 0 0; }
    .lang-switch { margin-top: 10px; }
    .form-row { grid-template-columns: 1fr; }
    .radio-cards { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 8px; }
}
@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
    .section { padding: 40px 0; }
}

/* =====================================================================
   Barre d'onglets mobile (façon application) + confort mobile
   ===================================================================== */
html { background: var(--bg); }             /* évite tout flash blanc au scroll */

.tabbar { display: none; }
@media (max-width: 760px) {
    .tabbar {
        display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 280;
        background: #fff; border-top: 1px solid var(--line);
        padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
        justify-content: space-around; align-items: flex-end;
        box-shadow: 0 -6px 20px rgba(43, 20, 74, .08);
    }
    .tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
        padding: 6px 2px; color: var(--muted); font-size: .66rem; font-weight: 700; }
    .tab:hover { text-decoration: none; }
    .tab.active { color: var(--pink-dark); }
    .tab-ic { position: relative; display: inline-flex; }
    .tab-badge { position: absolute; top: -2px; right: -5px; width: 9px; height: 9px;
        border-radius: 50%; background: var(--pink); border: 2px solid #fff; }
    .tab-fab { flex: 0 0 auto; }
    .tab-fab .fab { width: 54px; height: 54px; margin-top: -24px; border-radius: 50%;
        background: var(--grad); color: #fff; display: inline-flex; align-items: center;
        justify-content: center; box-shadow: 0 10px 22px rgba(224, 31, 92, .42); }
    .tab-fab .fab .ic { width: 24px; height: 24px; }

    body { padding-bottom: 70px; }          /* place pour la tabbar */
    .cookie-bar { bottom: 66px; }           /* au-dessus de la tabbar */
    .install-pop { bottom: 142px; }
    .site-footer { margin-bottom: 62px; }
}

/* Cartes d'activité plus compactes sur mobile */
@media (max-width: 560px) {
    .ec-media { aspect-ratio: 16/9; }
    .ec-body { padding: 12px 14px 14px; gap: 4px; }
    .ec-title { font-size: 1.02rem; }
    .pl-amount, .pl-free { font-size: 1.15rem; }
    .grid-events { gap: 16px; }
}

/* --- Anti-débordement horizontal & confort mobile ------------------- */
body { overflow-x: hidden; }
h1, h2, h3 { overflow-wrap: break-word; }
@media (max-width: 560px) {
    .filters .fgrid { grid-template-columns: 1fr; }   /* filtres empilés, pleine largeur */
    .form-row { grid-template-columns: 1fr; }
    h1 { font-size: clamp(1.7rem, 7vw, 2.2rem); }
    .section { padding: 40px 0; }
    .hero { padding: 48px 0 40px; }
}

/* Autoriser le rétrécissement des enfants flex (évite le texte rogné) */
.section-head > div { min-width: 0; }
.cookie-inner > span { min-width: 0; flex: 1 1 auto; }
.flex-between > * { min-width: 0; }

/* Garde-fou anti-débordement horizontal (racine) */
html, body { max-width: 100%; overflow-x: clip; }
img, svg { max-width: 100%; }
.container { max-width: min(var(--maxw), 100%); }

/* ---- Fil hybride : badges & contenus Lyveo ---------------------------- */
.feed-badge {
    position: absolute; top: 10px; left: 10px; z-index: 2;
    padding: 4px 10px; border-radius: 999px; font-size: .72rem; font-weight: 800;
    letter-spacing: .02em; color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.badge-idea   { background: var(--violet); }
.badge-event  { background: #1f8f8f; }
.badge-insp   { background: var(--gold); color: #4a2c00; }
.badge-social { background: var(--pink); }
.ec-title-static { font-weight: 800; font-size: 1.1rem; color: var(--ink); letter-spacing: -.01em; }
.feed-sub { color: var(--muted); font-size: .9rem; margin: 2px 0 0; }
.feed-actions { display: grid; gap: 8px; margin-top: 10px; }
.feed-item .ec-body { display: flex; flex-direction: column; }
.feed-item .feed-actions { margin-top: auto; }
/* Filtres du fil : état actif */
.feed-filters { overflow-x: auto; -webkit-overflow-scrolling: touch; flex-wrap: nowrap; padding-bottom: 4px; }
.feed-filters .chip { flex: 0 0 auto; }
.chip.is-on { background: var(--pink); border-color: var(--pink); color: #fff; }
.chip.is-on:hover { color: #fff; }
@media (max-width: 760px) {
    .ec-title-static { font-size: 1.02rem; }
}

/* ======================= Stories 24 h ======================= */
.stories-bar {
    display: flex; gap: 14px; overflow-x: auto; -webkit-overflow-scrolling: touch;
    padding: 4px 2px 14px; margin-bottom: 8px; scrollbar-width: none;
}
.stories-bar::-webkit-scrollbar { display: none; }
.story-cell { flex: 0 0 auto; width: 72px; text-align: center; }
.story-ava {
    position: relative; display: block; width: 66px; height: 66px; margin: 0 auto 6px;
    border-radius: 50%; padding: 3px; background: var(--line);
}
.story-ava.unseen { background: var(--grad); }
.story-ava.seen   { background: #d7d7e0; }
.story-ava.add    { background: var(--line); }
.story-ava img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 2px solid var(--bg); background: var(--card); }
.story-plus {
    position: absolute; right: -2px; bottom: -2px; width: 24px; height: 24px; border-radius: 50%;
    background: var(--grad); color: #fff; display: grid; place-items: center; border: 2px solid var(--bg);
}
.story-name { display: block; font-size: .74rem; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Lecteur plein écran */
.story-viewer {
    position: fixed; inset: 0; z-index: 2000; background: #0c0c12;
    display: grid; place-items: center;
}
.sv-inner { position: relative; width: 100%; max-width: 460px; height: 100%; max-height: 100vh; background: #000; overflow: hidden; }
.sv-bars { position: absolute; top: 10px; left: 10px; right: 10px; z-index: 3; display: flex; gap: 4px; }
.sv-bar { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.3); overflow: hidden; }
.sv-bar b { display: block; height: 100%; width: 0; background: #fff; }
.sv-head {
    position: absolute; top: 22px; left: 12px; right: 12px; z-index: 3;
    display: flex; align-items: center; gap: 8px; color: #fff;
}
.sv-head .avatar-xs { width: 34px; height: 34px; border: 2px solid rgba(255,255,255,.6); }
.sv-head strong { font-size: .95rem; }
.sv-time { font-size: .8rem; opacity: .8; }
.sv-close { margin-left: auto; color: #fff; display: grid; place-items: center; }
.sv-close:hover { color: #fff; opacity: .8; }
.sv-stage { position: absolute; inset: 0; display: grid; place-items: center; background: #000; }
.sv-slide { position: absolute; inset: 0; margin: 0; display: none; }
.sv-slide.on { display: block; }
.sv-slide img { width: 100%; height: 100%; object-fit: contain; }
.sv-caption {
    position: absolute; left: 0; right: 0; bottom: 70px; padding: 12px 18px; color: #fff;
    font-size: 1rem; text-align: center; text-shadow: 0 1px 6px rgba(0,0,0,.6);
    background: linear-gradient(transparent, rgba(0,0,0,.45));
}
.sv-nav { position: absolute; top: 0; bottom: 0; width: 35%; z-index: 2; background: transparent; border: 0; cursor: pointer; }
.sv-prev { left: 0; }
.sv-next { right: 0; width: 65%; }
.sv-foot {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 14px 16px;
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    background: linear-gradient(transparent, rgba(0,0,0,.55));
}
.sv-views { color: #fff; font-size: .85rem; display: inline-flex; align-items: center; gap: 6px; }
.sv-foot .btn-ghost { color: #fff; border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.08); }
.sv-foot .btn-ghost:hover { background: rgba(255,255,255,.2); color: #fff; }

/* ---- Story : aperçu avant publication ---- */
.story-preview { position: relative; border-radius: 14px; overflow: hidden; background: #000; max-height: 420px; }
.story-preview img { width: 100%; max-height: 420px; object-fit: contain; display: block; }
.story-clear {
    position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%;
    border: 0; background: rgba(0,0,0,.55); color: #fff; cursor: pointer; display: grid; place-items: center;
}
.story-clear:hover { background: rgba(0,0,0,.75); }

/* ---- Notifications : bannières in-app (toasts) ---- */
.liveo-toasts {
    position: fixed; top: 14px; left: 50%; transform: translateX(-50%);
    z-index: 3000; display: flex; flex-direction: column; gap: 8px;
    width: calc(100% - 28px); max-width: 420px; pointer-events: none;
}
.liveo-toast {
    pointer-events: auto; display: block; text-decoration: none;
    background: var(--card); color: var(--ink); border: 1px solid var(--line);
    border-left: 4px solid var(--pink); border-radius: 12px; padding: 12px 14px;
    box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(-10px);
    transition: opacity .25s ease, transform .25s ease;
}
.liveo-toast.show { opacity: 1; transform: translateY(0); }
.liveo-toast strong { display: block; font-size: .95rem; }
.liveo-toast span { display: block; font-size: .85rem; color: var(--muted); margin-top: 2px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.liveo-toast:hover { text-decoration: none; }
